/**
* External dependencies
*/
import { getSetting } from '@woocommerce/settings';
export const blockName = 'woocommerce/checkout';
export const blockAttributes = {
isPreview: {
type: 'boolean',
default: false,
save: false,
},
hasDarkControls: {
default: getSetting( 'hasDarkEditorStyleSupport', false ),
showCompanyField: {
requireCompanyField: {
allowCreateAccount: {
showApartmentField: {
default: true,
showPhoneField: {
requirePhoneField: {
// Deprecated - here for v1 migration support
showOrderNotes: {
showPolicyLinks: {
showReturnToCart: {
cartPageId: {
type: 'number',
default: 0,
showRateAfterTaxName: {
default: getSetting( 'displayCartPricesIncludingTax', false ),
};