Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
languages
/
wp-content-20241001222009
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
atomic
/
blocks
/
product-elements
/
title
:
attributes.ts
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { isFeaturePluginBuild } from '@woocommerce/block-settings'; let blockAttributes: Record< string, Record< string, unknown > > = { headingLevel: { type: 'number', default: 2, }, showProductLink: { type: 'boolean', default: true, }, linkTarget: { type: 'string', }, productId: { type: 'number', default: 0, }, }; if ( isFeaturePluginBuild() ) { blockAttributes = { ...blockAttributes, align: { type: 'string', }, }; } export default blockAttributes;