31 lines
559 B
JavaScript
31 lines
559 B
JavaScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { getSetting } from '@woocommerce/settings';
|
|
|
|
const blockAttributes = {
|
|
isPreview: {
|
|
type: 'boolean',
|
|
default: false,
|
|
save: false,
|
|
},
|
|
isShippingCalculatorEnabled: {
|
|
type: 'boolean',
|
|
default: getSetting( 'isShippingCalculatorEnabled', true ),
|
|
},
|
|
checkoutPageId: {
|
|
type: 'number',
|
|
default: 0,
|
|
},
|
|
hasDarkControls: {
|
|
type: 'boolean',
|
|
default: getSetting( 'hasDarkEditorStyleSupport', false ),
|
|
},
|
|
showRateAfterTaxName: {
|
|
type: 'boolean',
|
|
default: true,
|
|
},
|
|
};
|
|
|
|
export default blockAttributes;
|