@designcrowd/library.brand-page 6.1.3 → 6.1.4-ast-prepurchase
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/{CreatedOnBrandCrowd-de-de-Lk8J1vHg.js → CreatedOnBrandCrowd-de-de-BFDE6VfS.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-BbXj5fb1.js → CreatedOnBrandCrowd-en-us-CRhl6-Cd.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CjnqvYCi.js → CreatedOnBrandCrowd-es-es-VaP_-7dv.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-Dbjv4qpN.js → CreatedOnBrandCrowd-fr-ca-BySGqvWO.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-Dbjv4qpN.js → CreatedOnBrandCrowd-fr-fr-BySGqvWO.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-BZIOPEvL.js → CreatedOnBrandCrowd-pt-br-BHjXVcSk.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-BZIOPEvL.js → CreatedOnBrandCrowd-pt-pt-BHjXVcSk.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-aN4JMRDI.js → CreatedOnDcom-de-de-DIFO5IZY.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-f3VD6Pz4.js → CreatedOnDcom-en-us-CcpDa04T.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-CQhNdtRP.js → CreatedOnDcom-es-es-DHwY0lWp.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CFsC_XoO.js → CreatedOnDcom-fr-ca-BP3P0hJL.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-J4ZtCBO9.js → CreatedOnDcom-fr-fr-Bai1giy3.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-C1yFugh_.js → CreatedOnDcom-pt-br-GgKiDrbK.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-ycOo5lDn.js → CreatedOnDcom-pt-pt-uuuxCYR3.js} +1 -1
- package/lib/src/PreviewModal-DY2aAN0a.js +19931 -0
- package/lib/src/brand-page/components/page-footer/PageFooter.mixin.d.ts +0 -1
- package/lib/src/brand-page/components/page-footer/PageFooter.mixin.js +1 -4
- package/lib/src/brand-page/models/brand-page-context.model.d.ts +2 -0
- package/lib/src/brand-page/models/brand-page-context.model.js +12 -0
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +2 -0
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.js +14 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +134 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +50 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +130 -0
- package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/navigation/Navigation.mixin.js +3 -0
- package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +14 -0
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +130 -0
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +130 -0
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +130 -0
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +130 -0
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +130 -0
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +130 -0
- package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +1 -0
- package/lib/src/brand-page-maker/composables/useEventTracker.js +1 -0
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +132 -0
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +22 -6
- package/lib/src/bundled-translations-D42tE0D2.js +179 -0
- package/lib/src/bundled-translations.de-DE-D9aWGgFt.js +179 -0
- package/lib/src/bundled-translations.es-ES-lk4B0xQ7.js +179 -0
- package/lib/src/bundled-translations.fr-CA-DhOBNt6q.js +179 -0
- package/lib/src/bundled-translations.fr-FR-CnpafQeG.js +179 -0
- package/lib/src/bundled-translations.pt-BR-C4PnKrd9.js +179 -0
- package/lib/src/bundled-translations.pt-PT-CfKDVQC-.js +179 -0
- package/lib/src/bundles/bundled-translations.de-DE.json +5 -0
- package/lib/src/bundles/bundled-translations.es-ES.json +5 -0
- package/lib/src/bundles/bundled-translations.fr-CA.json +5 -0
- package/lib/src/bundles/bundled-translations.fr-FR.json +5 -0
- package/lib/src/bundles/bundled-translations.json +5 -0
- package/lib/src/bundles/bundled-translations.pt-BR.json +5 -0
- package/lib/src/bundles/bundled-translations.pt-PT.json +5 -0
- package/lib/src/clients/brand-page-client.d.ts +1 -0
- package/lib/src/composables/useTranslate.d.ts +2 -1
- package/lib/src/composables/useTranslate.js +2 -1
- package/lib/src/constants/brand-page-maker.d.ts +2 -0
- package/lib/src/constants/brand-page-maker.js +5 -0
- package/lib/src/constants/live-preview.constants.d.ts +15 -0
- package/lib/src/constants/live-preview.constants.js +15 -0
- package/lib/src/css/library.brand-page-brandCrowd.min.css +264 -121
- package/lib/src/css/library.brand-page-brandPage.min.css +268 -121
- package/lib/src/css/library.brand-page-designCom.min.css +264 -121
- package/lib/src/css/library.brand-page-preview.min.css +264 -121
- package/lib/src/index.d.ts +2 -1
- package/lib/src/index.mjs +102150 -225
- package/lib/src/lib.js +2 -1
- package/lib/src/preview-modal.d.ts +5 -0
- package/lib/src/preview-modal.js +12 -0
- package/lib/src/preview-modal.mjs +6 -0
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +130 -0
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +130 -0
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +130 -0
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +130 -0
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +144 -0
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +130 -0
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +130 -0
- package/lib/src/tracker.mjs +1 -1
- package/lib/src/{useEventTracker-DmQ6AkNn.js → useEventTracker-Dmc2jFdN.js} +5 -4
- package/package.json +5 -1
- package/src/brand-page/components/button/Button.vue +11 -0
- package/src/brand-page/components/button/Button.vue.test.ts +90 -0
- package/src/brand-page/components/image-gallery/masonry/MasonryGallery.vue +1 -0
- package/src/brand-page/components/images-section/ImagesSection.vue +10 -0
- package/src/brand-page/components/media/Video.vue +60 -1
- package/src/brand-page/components/page-footer/PageFooter.mixin.ts +1 -4
- package/src/brand-page/components/page-footer/PageFooter.vue +0 -1
- package/src/brand-page/components/payment/Payment.vue +3 -0
- package/src/brand-page/components/payment/request-payment/RequestPayment.vue +1 -0
- package/src/brand-page/components/payment/support-me/SupportMe.vue +3 -0
- package/src/brand-page/components/shop/CartModal.vue +9 -0
- package/src/brand-page/components/shop/Shop.vue +19 -0
- package/src/brand-page/components/shop/Shop.vue.test.ts +182 -2
- package/src/brand-page/components/social-links/SocialLinks.vue +1 -9
- package/src/brand-page/components/social-links/SocialLinks.vue.test.ts +28 -8
- package/src/brand-page/components/social-links/SocialLinksItems.vue +6 -2
- package/src/brand-page/components/testimonial-section/TestimonialSection.vue +2 -2
- package/src/brand-page/components/video/Video.vue +3 -0
- package/src/brand-page/models/brand-page-context.model.ts +23 -0
- package/src/brand-page-maker/components/action-bar/ActionBar.mixin.ts +15 -0
- package/src/brand-page-maker/components/action-bar/ActionBarNavigation.test.ts +95 -0
- package/src/brand-page-maker/components/action-bar/ActionBarNavigation.vue +19 -4
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +57 -0
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.preview-gate.test.ts +113 -0
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +26 -1
- package/src/brand-page-maker/components/navigation/Navigation.mixin.ts +3 -0
- package/src/brand-page-maker/components/navigation/Navigation.vue +1 -0
- package/src/brand-page-maker/components/preview-modal/PreviewModal.test.ts +162 -0
- package/src/brand-page-maker/components/preview-modal/PreviewModal.vue +347 -0
- package/src/brand-page-maker/components/preview-modal/PreviewModalWithState.test.ts +226 -0
- package/src/brand-page-maker/components/preview-modal/PreviewModalWithState.vue +149 -0
- package/src/brand-page-maker/components/preview-modal/i18n/preview-modal.de-DE.json +6 -0
- package/src/brand-page-maker/components/preview-modal/i18n/preview-modal.es-ES.json +6 -0
- package/src/brand-page-maker/components/preview-modal/i18n/preview-modal.fr-CA.json +6 -0
- package/src/brand-page-maker/components/preview-modal/i18n/preview-modal.fr-FR.json +6 -0
- package/src/brand-page-maker/components/preview-modal/i18n/preview-modal.json +6 -0
- package/src/brand-page-maker/components/preview-modal/i18n/preview-modal.pt-BR.json +6 -0
- package/src/brand-page-maker/components/preview-modal/i18n/preview-modal.pt-PT.json +6 -0
- package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +29 -17
- package/src/brand-page-maker/composables/useEventTracker.ts +1 -0
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.save.test.ts +106 -0
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +40 -8
- package/src/bundles/bundled-translations.de-DE.json +5 -0
- package/src/bundles/bundled-translations.es-ES.json +5 -0
- package/src/bundles/bundled-translations.fr-CA.json +5 -0
- package/src/bundles/bundled-translations.fr-FR.json +5 -0
- package/src/bundles/bundled-translations.json +5 -0
- package/src/bundles/bundled-translations.pt-BR.json +5 -0
- package/src/bundles/bundled-translations.pt-PT.json +5 -0
- package/src/clients/brand-page-client.ts +2 -0
- package/src/composables/useTranslate.ts +2 -0
- package/src/constants/brand-page-maker.ts +5 -0
- package/src/constants/live-preview.constants.ts +15 -0
- package/src/lib.ts +5 -1
- package/src/preview-modal.ts +14 -0
- package/src/shared/common/i18n/common.de-DE.json +1 -0
- package/src/shared/common/i18n/common.es-ES.json +1 -0
- package/src/shared/common/i18n/common.fr-CA.json +1 -0
- package/src/shared/common/i18n/common.fr-FR.json +1 -0
- package/src/shared/common/i18n/common.json +1 -0
- package/src/shared/common/i18n/common.pt-BR.json +1 -0
- package/src/shared/common/i18n/common.pt-PT.json +1 -0
- package/src/shared/ecommerce-settings/store/cart-store.test.ts +38 -0
- package/lib/src/bundled-translations-2HkRBbBD.js +0 -177
- package/lib/src/bundled-translations.de-DE-CL9ZEhU2.js +0 -177
- package/lib/src/bundled-translations.es-ES-uj7Sliu0.js +0 -177
- package/lib/src/bundled-translations.fr-CA-BMnBtr_w.js +0 -177
- package/lib/src/bundled-translations.fr-FR-9PEZedzq.js +0 -177
- package/lib/src/bundled-translations.pt-BR-B3oNDkoe.js +0 -177
- package/lib/src/bundled-translations.pt-PT-DM7Vsf-h.js +0 -177
- package/lib/src/lib-CVwyHyBz.js +0 -121538
|
@@ -153,11 +153,27 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
153
153
|
isVariation: boolean;
|
|
154
154
|
isExcluded: boolean;
|
|
155
155
|
} | undefined;
|
|
156
|
+
bp_5873_live_preview_prepurchase?: {
|
|
157
|
+
key: string;
|
|
158
|
+
value: string;
|
|
159
|
+
isControl: boolean;
|
|
160
|
+
isVariation: boolean;
|
|
161
|
+
isExcluded: boolean;
|
|
162
|
+
} | undefined;
|
|
163
|
+
bp_5873_live_preview_postpurchase?: {
|
|
164
|
+
key: string;
|
|
165
|
+
value: string;
|
|
166
|
+
isControl: boolean;
|
|
167
|
+
isVariation: boolean;
|
|
168
|
+
isExcluded: boolean;
|
|
169
|
+
} | undefined;
|
|
156
170
|
};
|
|
157
171
|
isSubsequentPublish: boolean;
|
|
158
172
|
isContextualUpgradeModalVisible: boolean;
|
|
159
173
|
contextualUpgradeType: import("@brand-page-maker/stores").WebsiteContextUpgradeType | undefined;
|
|
160
174
|
requestVerificationToken?: string | undefined;
|
|
175
|
+
isHostModalVisible?: boolean | undefined;
|
|
176
|
+
livePreviewUrl?: string | undefined;
|
|
161
177
|
} & import("pinia").PiniaCustomStateProperties<import("@brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
162
178
|
isUserDraft: (state: {
|
|
163
179
|
availableTaxes: any[];
|
|
@@ -231,11 +247,121 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
231
247
|
isVariation: boolean;
|
|
232
248
|
isExcluded: boolean;
|
|
233
249
|
} | undefined;
|
|
250
|
+
bp_5873_live_preview_prepurchase?: {
|
|
251
|
+
key: string;
|
|
252
|
+
value: string;
|
|
253
|
+
isControl: boolean;
|
|
254
|
+
isVariation: boolean;
|
|
255
|
+
isExcluded: boolean;
|
|
256
|
+
} | undefined;
|
|
257
|
+
bp_5873_live_preview_postpurchase?: {
|
|
258
|
+
key: string;
|
|
259
|
+
value: string;
|
|
260
|
+
isControl: boolean;
|
|
261
|
+
isVariation: boolean;
|
|
262
|
+
isExcluded: boolean;
|
|
263
|
+
} | undefined;
|
|
234
264
|
};
|
|
235
265
|
isSubsequentPublish: boolean;
|
|
236
266
|
isContextualUpgradeModalVisible: boolean;
|
|
237
267
|
contextualUpgradeType: import("@brand-page-maker/stores").WebsiteContextUpgradeType | undefined;
|
|
238
268
|
requestVerificationToken?: string | undefined;
|
|
269
|
+
isHostModalVisible?: boolean | undefined;
|
|
270
|
+
livePreviewUrl?: string | undefined;
|
|
271
|
+
} & import("pinia").PiniaCustomStateProperties<import("@brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
272
|
+
isAnyModalVisible: (state: {
|
|
273
|
+
availableTaxes: any[];
|
|
274
|
+
brandPageBaseUrl: string;
|
|
275
|
+
baseFabricRenderUrl: string;
|
|
276
|
+
brandPageDescription: string;
|
|
277
|
+
brandPageDisplayName: string;
|
|
278
|
+
templateTypeName: string;
|
|
279
|
+
sensitiveContent: number;
|
|
280
|
+
brandPageSlug: string;
|
|
281
|
+
brandPageStatus: string;
|
|
282
|
+
brandPageToken: string | undefined;
|
|
283
|
+
brandPageTitle: string;
|
|
284
|
+
customDomain: {
|
|
285
|
+
id: string;
|
|
286
|
+
created: Date;
|
|
287
|
+
updated: Date;
|
|
288
|
+
brandPageToken: string;
|
|
289
|
+
domainName: string;
|
|
290
|
+
status: import("@brand-page-maker/constants").CustomDomainStatus;
|
|
291
|
+
dnsConfigurationStatus: import("@brand-page-maker/constants").DnsConfigurationStatus;
|
|
292
|
+
triggerOrigin?: string | undefined;
|
|
293
|
+
} | null;
|
|
294
|
+
createCustomDomainErrorMessage: string | null;
|
|
295
|
+
customDomainConfig?: {
|
|
296
|
+
dns: {
|
|
297
|
+
ipAddresses: string[];
|
|
298
|
+
};
|
|
299
|
+
} | undefined;
|
|
300
|
+
designDraftToken?: string | undefined;
|
|
301
|
+
designTemplateToken: string;
|
|
302
|
+
isCustomDomainEnabled: boolean;
|
|
303
|
+
isBrandPageSlugEditMode: boolean;
|
|
304
|
+
isPublishModalVisible: boolean;
|
|
305
|
+
isUpgradeModalVisible: boolean;
|
|
306
|
+
isPublishing: boolean;
|
|
307
|
+
isProduction: boolean;
|
|
308
|
+
isSellDomainNameEnabled: boolean;
|
|
309
|
+
isStripeOnboardingModalVisible: boolean;
|
|
310
|
+
isReactivationModal: boolean;
|
|
311
|
+
isPublishUpgradeModal: boolean;
|
|
312
|
+
isSaving: boolean;
|
|
313
|
+
backButtonLabel: string;
|
|
314
|
+
manageWebsiteDesignsUrl: string;
|
|
315
|
+
publishErrorMessage: string;
|
|
316
|
+
upgradeUrl: string;
|
|
317
|
+
reactivationUrl: string;
|
|
318
|
+
runtimeEnvironment: string;
|
|
319
|
+
selectedTaxId: number | undefined;
|
|
320
|
+
slug: string;
|
|
321
|
+
standalone: boolean;
|
|
322
|
+
triggerSaveSuccessMessage: boolean;
|
|
323
|
+
isDesignCom: boolean;
|
|
324
|
+
isPrePurchase: boolean;
|
|
325
|
+
makerFonts: any[];
|
|
326
|
+
eventButtonLocation?: string | undefined;
|
|
327
|
+
websiteUpsellModalViewModel?: any;
|
|
328
|
+
showPublishOptionModal?: boolean | undefined;
|
|
329
|
+
abTests: {
|
|
330
|
+
bp_3926_freemium_watermark?: {
|
|
331
|
+
key: string;
|
|
332
|
+
value: string;
|
|
333
|
+
isControl: boolean;
|
|
334
|
+
isVariation: boolean;
|
|
335
|
+
isExcluded: boolean;
|
|
336
|
+
} | undefined;
|
|
337
|
+
bp_5245_ai_website_assistant?: {
|
|
338
|
+
key: string;
|
|
339
|
+
value: string;
|
|
340
|
+
isControl: boolean;
|
|
341
|
+
isVariation: boolean;
|
|
342
|
+
isExcluded: boolean;
|
|
343
|
+
} | undefined;
|
|
344
|
+
bp_5873_live_preview_prepurchase?: {
|
|
345
|
+
key: string;
|
|
346
|
+
value: string;
|
|
347
|
+
isControl: boolean;
|
|
348
|
+
isVariation: boolean;
|
|
349
|
+
isExcluded: boolean;
|
|
350
|
+
} | undefined;
|
|
351
|
+
bp_5873_live_preview_postpurchase?: {
|
|
352
|
+
key: string;
|
|
353
|
+
value: string;
|
|
354
|
+
isControl: boolean;
|
|
355
|
+
isVariation: boolean;
|
|
356
|
+
isExcluded: boolean;
|
|
357
|
+
} | undefined;
|
|
358
|
+
};
|
|
359
|
+
isSubsequentPublish: boolean;
|
|
360
|
+
isContextualUpgradeModalVisible: boolean;
|
|
361
|
+
contextualUpgradeType: import("@brand-page-maker/stores").WebsiteContextUpgradeType | undefined;
|
|
362
|
+
requestVerificationToken?: string | undefined;
|
|
363
|
+
isHostModalVisible?: boolean | undefined;
|
|
364
|
+
livePreviewUrl?: string | undefined;
|
|
239
365
|
} & import("pinia").PiniaCustomStateProperties<import("@brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
240
366
|
}, {
|
|
241
367
|
initialise(payload: import("../../stores/brandpage-container").InitialisePayload): void;
|
|
@@ -249,6 +375,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
249
375
|
setContextualUpgradeType(payload: any): void;
|
|
250
376
|
setIsSaving(payload: any): void;
|
|
251
377
|
setIsUpgradeModalVisible(payload: any): void;
|
|
378
|
+
setIsHostModalVisible(payload: {
|
|
379
|
+
isVisible: boolean;
|
|
380
|
+
}): void;
|
|
252
381
|
setPublishErrorMessage(payload: any): void;
|
|
253
382
|
setTriggerSaveSuccessMessage(payload: any): void;
|
|
254
383
|
setSlug(payload: any): void;
|
|
@@ -296,6 +425,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
296
425
|
saveBrandPage(payload?: {
|
|
297
426
|
isPublish?: boolean;
|
|
298
427
|
eventButtonLocation?: string;
|
|
428
|
+
saveOnly?: boolean;
|
|
299
429
|
}): Promise<false | {
|
|
300
430
|
saved: boolean;
|
|
301
431
|
canPublish: boolean;
|
|
@@ -80,11 +80,27 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
80
|
isVariation: boolean;
|
|
81
81
|
isExcluded: boolean;
|
|
82
82
|
} | undefined;
|
|
83
|
+
bp_5873_live_preview_prepurchase?: {
|
|
84
|
+
key: string;
|
|
85
|
+
value: string;
|
|
86
|
+
isControl: boolean;
|
|
87
|
+
isVariation: boolean;
|
|
88
|
+
isExcluded: boolean;
|
|
89
|
+
} | undefined;
|
|
90
|
+
bp_5873_live_preview_postpurchase?: {
|
|
91
|
+
key: string;
|
|
92
|
+
value: string;
|
|
93
|
+
isControl: boolean;
|
|
94
|
+
isVariation: boolean;
|
|
95
|
+
isExcluded: boolean;
|
|
96
|
+
} | undefined;
|
|
83
97
|
};
|
|
84
98
|
isSubsequentPublish: boolean;
|
|
85
99
|
isContextualUpgradeModalVisible: boolean;
|
|
86
100
|
contextualUpgradeType: import("@brand-page-maker/stores").WebsiteContextUpgradeType | undefined;
|
|
87
101
|
requestVerificationToken?: string | undefined;
|
|
102
|
+
isHostModalVisible?: boolean | undefined;
|
|
103
|
+
livePreviewUrl?: string | undefined;
|
|
88
104
|
} & import("pinia").PiniaCustomStateProperties<import("@brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
89
105
|
isUserDraft: (state: {
|
|
90
106
|
availableTaxes: any[];
|
|
@@ -158,11 +174,121 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
158
174
|
isVariation: boolean;
|
|
159
175
|
isExcluded: boolean;
|
|
160
176
|
} | undefined;
|
|
177
|
+
bp_5873_live_preview_prepurchase?: {
|
|
178
|
+
key: string;
|
|
179
|
+
value: string;
|
|
180
|
+
isControl: boolean;
|
|
181
|
+
isVariation: boolean;
|
|
182
|
+
isExcluded: boolean;
|
|
183
|
+
} | undefined;
|
|
184
|
+
bp_5873_live_preview_postpurchase?: {
|
|
185
|
+
key: string;
|
|
186
|
+
value: string;
|
|
187
|
+
isControl: boolean;
|
|
188
|
+
isVariation: boolean;
|
|
189
|
+
isExcluded: boolean;
|
|
190
|
+
} | undefined;
|
|
191
|
+
};
|
|
192
|
+
isSubsequentPublish: boolean;
|
|
193
|
+
isContextualUpgradeModalVisible: boolean;
|
|
194
|
+
contextualUpgradeType: import("@brand-page-maker/stores").WebsiteContextUpgradeType | undefined;
|
|
195
|
+
requestVerificationToken?: string | undefined;
|
|
196
|
+
isHostModalVisible?: boolean | undefined;
|
|
197
|
+
livePreviewUrl?: string | undefined;
|
|
198
|
+
} & import("pinia").PiniaCustomStateProperties<import("@brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
199
|
+
isAnyModalVisible: (state: {
|
|
200
|
+
availableTaxes: any[];
|
|
201
|
+
brandPageBaseUrl: string;
|
|
202
|
+
baseFabricRenderUrl: string;
|
|
203
|
+
brandPageDescription: string;
|
|
204
|
+
brandPageDisplayName: string;
|
|
205
|
+
templateTypeName: string;
|
|
206
|
+
sensitiveContent: number;
|
|
207
|
+
brandPageSlug: string;
|
|
208
|
+
brandPageStatus: string;
|
|
209
|
+
brandPageToken: string | undefined;
|
|
210
|
+
brandPageTitle: string;
|
|
211
|
+
customDomain: {
|
|
212
|
+
id: string;
|
|
213
|
+
created: Date;
|
|
214
|
+
updated: Date;
|
|
215
|
+
brandPageToken: string;
|
|
216
|
+
domainName: string;
|
|
217
|
+
status: import("../../constants").CustomDomainStatus;
|
|
218
|
+
dnsConfigurationStatus: import("../../constants").DnsConfigurationStatus;
|
|
219
|
+
triggerOrigin?: string | undefined;
|
|
220
|
+
} | null;
|
|
221
|
+
createCustomDomainErrorMessage: string | null;
|
|
222
|
+
customDomainConfig?: {
|
|
223
|
+
dns: {
|
|
224
|
+
ipAddresses: string[];
|
|
225
|
+
};
|
|
226
|
+
} | undefined;
|
|
227
|
+
designDraftToken?: string | undefined;
|
|
228
|
+
designTemplateToken: string;
|
|
229
|
+
isCustomDomainEnabled: boolean;
|
|
230
|
+
isBrandPageSlugEditMode: boolean;
|
|
231
|
+
isPublishModalVisible: boolean;
|
|
232
|
+
isUpgradeModalVisible: boolean;
|
|
233
|
+
isPublishing: boolean;
|
|
234
|
+
isProduction: boolean;
|
|
235
|
+
isSellDomainNameEnabled: boolean;
|
|
236
|
+
isStripeOnboardingModalVisible: boolean;
|
|
237
|
+
isReactivationModal: boolean;
|
|
238
|
+
isPublishUpgradeModal: boolean;
|
|
239
|
+
isSaving: boolean;
|
|
240
|
+
backButtonLabel: string;
|
|
241
|
+
manageWebsiteDesignsUrl: string;
|
|
242
|
+
publishErrorMessage: string;
|
|
243
|
+
upgradeUrl: string;
|
|
244
|
+
reactivationUrl: string;
|
|
245
|
+
runtimeEnvironment: string;
|
|
246
|
+
selectedTaxId: number | undefined;
|
|
247
|
+
slug: string;
|
|
248
|
+
standalone: boolean;
|
|
249
|
+
triggerSaveSuccessMessage: boolean;
|
|
250
|
+
isDesignCom: boolean;
|
|
251
|
+
isPrePurchase: boolean;
|
|
252
|
+
makerFonts: any[];
|
|
253
|
+
eventButtonLocation?: string | undefined;
|
|
254
|
+
websiteUpsellModalViewModel?: any;
|
|
255
|
+
showPublishOptionModal?: boolean | undefined;
|
|
256
|
+
abTests: {
|
|
257
|
+
bp_3926_freemium_watermark?: {
|
|
258
|
+
key: string;
|
|
259
|
+
value: string;
|
|
260
|
+
isControl: boolean;
|
|
261
|
+
isVariation: boolean;
|
|
262
|
+
isExcluded: boolean;
|
|
263
|
+
} | undefined;
|
|
264
|
+
bp_5245_ai_website_assistant?: {
|
|
265
|
+
key: string;
|
|
266
|
+
value: string;
|
|
267
|
+
isControl: boolean;
|
|
268
|
+
isVariation: boolean;
|
|
269
|
+
isExcluded: boolean;
|
|
270
|
+
} | undefined;
|
|
271
|
+
bp_5873_live_preview_prepurchase?: {
|
|
272
|
+
key: string;
|
|
273
|
+
value: string;
|
|
274
|
+
isControl: boolean;
|
|
275
|
+
isVariation: boolean;
|
|
276
|
+
isExcluded: boolean;
|
|
277
|
+
} | undefined;
|
|
278
|
+
bp_5873_live_preview_postpurchase?: {
|
|
279
|
+
key: string;
|
|
280
|
+
value: string;
|
|
281
|
+
isControl: boolean;
|
|
282
|
+
isVariation: boolean;
|
|
283
|
+
isExcluded: boolean;
|
|
284
|
+
} | undefined;
|
|
161
285
|
};
|
|
162
286
|
isSubsequentPublish: boolean;
|
|
163
287
|
isContextualUpgradeModalVisible: boolean;
|
|
164
288
|
contextualUpgradeType: import("@brand-page-maker/stores").WebsiteContextUpgradeType | undefined;
|
|
165
289
|
requestVerificationToken?: string | undefined;
|
|
290
|
+
isHostModalVisible?: boolean | undefined;
|
|
291
|
+
livePreviewUrl?: string | undefined;
|
|
166
292
|
} & import("pinia").PiniaCustomStateProperties<import("@brand-page-maker/stores").BrandPageContainerState>) => boolean;
|
|
167
293
|
}, {
|
|
168
294
|
initialise(payload: import("../../stores/brandpage-container").InitialisePayload): void;
|
|
@@ -176,6 +302,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
176
302
|
setContextualUpgradeType(payload: any): void;
|
|
177
303
|
setIsSaving(payload: any): void;
|
|
178
304
|
setIsUpgradeModalVisible(payload: any): void;
|
|
305
|
+
setIsHostModalVisible(payload: {
|
|
306
|
+
isVisible: boolean;
|
|
307
|
+
}): void;
|
|
179
308
|
setPublishErrorMessage(payload: any): void;
|
|
180
309
|
setTriggerSaveSuccessMessage(payload: any): void;
|
|
181
310
|
setSlug(payload: any): void;
|
|
@@ -223,6 +352,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
223
352
|
saveBrandPage(payload?: {
|
|
224
353
|
isPublish?: boolean;
|
|
225
354
|
eventButtonLocation?: string;
|
|
355
|
+
saveOnly?: boolean;
|
|
226
356
|
}): Promise<false | {
|
|
227
357
|
saved: boolean;
|
|
228
358
|
canPublish: boolean;
|
|
@@ -75,6 +75,7 @@ export declare const UPGRADE_CTA_LOCATIONS: {
|
|
|
75
75
|
ADD_CONTENT: string;
|
|
76
76
|
EDITOR_PUBLISH_TOP: string;
|
|
77
77
|
EDITOR_PUBLISH_BOTTOM: string;
|
|
78
|
+
EDITOR_PREVIEW_PUBLISH: string;
|
|
78
79
|
SLUG_CHANGE_MAKER_SIDEBAR_SETTINGS: string;
|
|
79
80
|
SLUG_CHANGE_MANAGE_PAGE: string;
|
|
80
81
|
GOOGLE_ADSENSE: string;
|
|
@@ -56,6 +56,7 @@ export const UPGRADE_CTA_LOCATIONS = {
|
|
|
56
56
|
ADD_CONTENT: 'add_content',
|
|
57
57
|
EDITOR_PUBLISH_TOP: 'editor_publish_top',
|
|
58
58
|
EDITOR_PUBLISH_BOTTOM: 'editor_publish_bottom',
|
|
59
|
+
EDITOR_PREVIEW_PUBLISH: 'editor_preview_publish',
|
|
59
60
|
SLUG_CHANGE_MAKER_SIDEBAR_SETTINGS: 'slug_change_maker_sidebar_settings',
|
|
60
61
|
SLUG_CHANGE_MANAGE_PAGE: 'slug_change_manage_page',
|
|
61
62
|
GOOGLE_ADSENSE: 'google_adsense',
|
|
@@ -55,6 +55,8 @@ export interface BrandPageContainerState {
|
|
|
55
55
|
isContextualUpgradeModalVisible: boolean;
|
|
56
56
|
contextualUpgradeType: WebsiteContextUpgradeType | undefined;
|
|
57
57
|
requestVerificationToken?: string;
|
|
58
|
+
isHostModalVisible?: boolean;
|
|
59
|
+
livePreviewUrl?: string;
|
|
58
60
|
}
|
|
59
61
|
export type GettyVideoEditorViewModelResponse = {
|
|
60
62
|
assetId: string;
|
|
@@ -157,11 +159,27 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
157
159
|
isVariation: boolean;
|
|
158
160
|
isExcluded: boolean;
|
|
159
161
|
} | undefined;
|
|
162
|
+
bp_5873_live_preview_prepurchase?: {
|
|
163
|
+
key: string;
|
|
164
|
+
value: string;
|
|
165
|
+
isControl: boolean;
|
|
166
|
+
isVariation: boolean;
|
|
167
|
+
isExcluded: boolean;
|
|
168
|
+
} | undefined;
|
|
169
|
+
bp_5873_live_preview_postpurchase?: {
|
|
170
|
+
key: string;
|
|
171
|
+
value: string;
|
|
172
|
+
isControl: boolean;
|
|
173
|
+
isVariation: boolean;
|
|
174
|
+
isExcluded: boolean;
|
|
175
|
+
} | undefined;
|
|
160
176
|
};
|
|
161
177
|
isSubsequentPublish: boolean;
|
|
162
178
|
isContextualUpgradeModalVisible: boolean;
|
|
163
179
|
contextualUpgradeType: WebsiteContextUpgradeType | undefined;
|
|
164
180
|
requestVerificationToken?: string | undefined;
|
|
181
|
+
isHostModalVisible?: boolean | undefined;
|
|
182
|
+
livePreviewUrl?: string | undefined;
|
|
165
183
|
} & import("pinia").PiniaCustomStateProperties<BrandPageContainerState>) => boolean;
|
|
166
184
|
isUserDraft: (state: {
|
|
167
185
|
availableTaxes: any[];
|
|
@@ -235,11 +253,121 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
235
253
|
isVariation: boolean;
|
|
236
254
|
isExcluded: boolean;
|
|
237
255
|
} | undefined;
|
|
256
|
+
bp_5873_live_preview_prepurchase?: {
|
|
257
|
+
key: string;
|
|
258
|
+
value: string;
|
|
259
|
+
isControl: boolean;
|
|
260
|
+
isVariation: boolean;
|
|
261
|
+
isExcluded: boolean;
|
|
262
|
+
} | undefined;
|
|
263
|
+
bp_5873_live_preview_postpurchase?: {
|
|
264
|
+
key: string;
|
|
265
|
+
value: string;
|
|
266
|
+
isControl: boolean;
|
|
267
|
+
isVariation: boolean;
|
|
268
|
+
isExcluded: boolean;
|
|
269
|
+
} | undefined;
|
|
270
|
+
};
|
|
271
|
+
isSubsequentPublish: boolean;
|
|
272
|
+
isContextualUpgradeModalVisible: boolean;
|
|
273
|
+
contextualUpgradeType: WebsiteContextUpgradeType | undefined;
|
|
274
|
+
requestVerificationToken?: string | undefined;
|
|
275
|
+
isHostModalVisible?: boolean | undefined;
|
|
276
|
+
livePreviewUrl?: string | undefined;
|
|
277
|
+
} & import("pinia").PiniaCustomStateProperties<BrandPageContainerState>) => boolean;
|
|
278
|
+
isAnyModalVisible: (state: {
|
|
279
|
+
availableTaxes: any[];
|
|
280
|
+
brandPageBaseUrl: string;
|
|
281
|
+
baseFabricRenderUrl: string;
|
|
282
|
+
brandPageDescription: string;
|
|
283
|
+
brandPageDisplayName: string;
|
|
284
|
+
templateTypeName: string;
|
|
285
|
+
sensitiveContent: number;
|
|
286
|
+
brandPageSlug: string;
|
|
287
|
+
brandPageStatus: string;
|
|
288
|
+
brandPageToken: string | undefined;
|
|
289
|
+
brandPageTitle: string;
|
|
290
|
+
customDomain: {
|
|
291
|
+
id: string;
|
|
292
|
+
created: Date;
|
|
293
|
+
updated: Date;
|
|
294
|
+
brandPageToken: string;
|
|
295
|
+
domainName: string;
|
|
296
|
+
status: import("@brand-page-maker/constants").CustomDomainStatus;
|
|
297
|
+
dnsConfigurationStatus: import("@brand-page-maker/constants").DnsConfigurationStatus;
|
|
298
|
+
triggerOrigin?: string | undefined;
|
|
299
|
+
} | null;
|
|
300
|
+
createCustomDomainErrorMessage: string | null;
|
|
301
|
+
customDomainConfig?: {
|
|
302
|
+
dns: {
|
|
303
|
+
ipAddresses: string[];
|
|
304
|
+
};
|
|
305
|
+
} | undefined;
|
|
306
|
+
designDraftToken?: string | undefined;
|
|
307
|
+
designTemplateToken: string;
|
|
308
|
+
isCustomDomainEnabled: boolean;
|
|
309
|
+
isBrandPageSlugEditMode: boolean;
|
|
310
|
+
isPublishModalVisible: boolean;
|
|
311
|
+
isUpgradeModalVisible: boolean;
|
|
312
|
+
isPublishing: boolean;
|
|
313
|
+
isProduction: boolean;
|
|
314
|
+
isSellDomainNameEnabled: boolean;
|
|
315
|
+
isStripeOnboardingModalVisible: boolean;
|
|
316
|
+
isReactivationModal: boolean;
|
|
317
|
+
isPublishUpgradeModal: boolean;
|
|
318
|
+
isSaving: boolean;
|
|
319
|
+
backButtonLabel: string;
|
|
320
|
+
manageWebsiteDesignsUrl: string;
|
|
321
|
+
publishErrorMessage: string;
|
|
322
|
+
upgradeUrl: string;
|
|
323
|
+
reactivationUrl: string;
|
|
324
|
+
runtimeEnvironment: string;
|
|
325
|
+
selectedTaxId: number | undefined;
|
|
326
|
+
slug: string;
|
|
327
|
+
standalone: boolean;
|
|
328
|
+
triggerSaveSuccessMessage: boolean;
|
|
329
|
+
isDesignCom: boolean;
|
|
330
|
+
isPrePurchase: boolean;
|
|
331
|
+
makerFonts: any[];
|
|
332
|
+
eventButtonLocation?: string | undefined;
|
|
333
|
+
websiteUpsellModalViewModel?: any;
|
|
334
|
+
showPublishOptionModal?: boolean | undefined;
|
|
335
|
+
abTests: {
|
|
336
|
+
bp_3926_freemium_watermark?: {
|
|
337
|
+
key: string;
|
|
338
|
+
value: string;
|
|
339
|
+
isControl: boolean;
|
|
340
|
+
isVariation: boolean;
|
|
341
|
+
isExcluded: boolean;
|
|
342
|
+
} | undefined;
|
|
343
|
+
bp_5245_ai_website_assistant?: {
|
|
344
|
+
key: string;
|
|
345
|
+
value: string;
|
|
346
|
+
isControl: boolean;
|
|
347
|
+
isVariation: boolean;
|
|
348
|
+
isExcluded: boolean;
|
|
349
|
+
} | undefined;
|
|
350
|
+
bp_5873_live_preview_prepurchase?: {
|
|
351
|
+
key: string;
|
|
352
|
+
value: string;
|
|
353
|
+
isControl: boolean;
|
|
354
|
+
isVariation: boolean;
|
|
355
|
+
isExcluded: boolean;
|
|
356
|
+
} | undefined;
|
|
357
|
+
bp_5873_live_preview_postpurchase?: {
|
|
358
|
+
key: string;
|
|
359
|
+
value: string;
|
|
360
|
+
isControl: boolean;
|
|
361
|
+
isVariation: boolean;
|
|
362
|
+
isExcluded: boolean;
|
|
363
|
+
} | undefined;
|
|
238
364
|
};
|
|
239
365
|
isSubsequentPublish: boolean;
|
|
240
366
|
isContextualUpgradeModalVisible: boolean;
|
|
241
367
|
contextualUpgradeType: WebsiteContextUpgradeType | undefined;
|
|
242
368
|
requestVerificationToken?: string | undefined;
|
|
369
|
+
isHostModalVisible?: boolean | undefined;
|
|
370
|
+
livePreviewUrl?: string | undefined;
|
|
243
371
|
} & import("pinia").PiniaCustomStateProperties<BrandPageContainerState>) => boolean;
|
|
244
372
|
}, {
|
|
245
373
|
initialise(payload: InitialisePayload): void;
|
|
@@ -253,6 +381,9 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
253
381
|
setContextualUpgradeType(payload: any): void;
|
|
254
382
|
setIsSaving(payload: any): void;
|
|
255
383
|
setIsUpgradeModalVisible(payload: any): void;
|
|
384
|
+
setIsHostModalVisible(payload: {
|
|
385
|
+
isVisible: boolean;
|
|
386
|
+
}): void;
|
|
256
387
|
setPublishErrorMessage(payload: any): void;
|
|
257
388
|
setTriggerSaveSuccessMessage(payload: any): void;
|
|
258
389
|
setSlug(payload: any): void;
|
|
@@ -300,6 +431,7 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
300
431
|
saveBrandPage(payload?: {
|
|
301
432
|
isPublish?: boolean;
|
|
302
433
|
eventButtonLocation?: string;
|
|
434
|
+
saveOnly?: boolean;
|
|
303
435
|
}): Promise<false | {
|
|
304
436
|
saved: boolean;
|
|
305
437
|
canPublish: boolean;
|
|
@@ -68,7 +68,9 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
68
68
|
isSubsequentPublish: false,
|
|
69
69
|
isContextualUpgradeModalVisible: false,
|
|
70
70
|
contextualUpgradeType: undefined,
|
|
71
|
+
isHostModalVisible: false,
|
|
71
72
|
requestVerificationToken: undefined,
|
|
73
|
+
livePreviewUrl: undefined,
|
|
72
74
|
};
|
|
73
75
|
},
|
|
74
76
|
actions: {
|
|
@@ -185,6 +187,10 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
185
187
|
setIsUpgradeModalVisible(payload) {
|
|
186
188
|
this.isUpgradeModalVisible = payload.isVisible;
|
|
187
189
|
},
|
|
190
|
+
// Hosts call this from their own modals so the live preview steps back for them.
|
|
191
|
+
setIsHostModalVisible(payload) {
|
|
192
|
+
this.isHostModalVisible = payload.isVisible;
|
|
193
|
+
},
|
|
188
194
|
setPublishErrorMessage(payload) {
|
|
189
195
|
this.publishErrorMessage = payload.errorMessage;
|
|
190
196
|
},
|
|
@@ -594,10 +600,11 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
594
600
|
try {
|
|
595
601
|
await this.setIsSaving({ isSaving: true });
|
|
596
602
|
const saveRequest = await this.exportDesignAsync();
|
|
597
|
-
const response = await brandPageClient.saveBrandPageAsync(brandPageMakerStore.brandPageType, saveRequest, this.designDraftToken);
|
|
603
|
+
const response = await brandPageClient.saveBrandPageAsync(brandPageMakerStore.brandPageType, { ...saveRequest, saveOnly: !!payload.saveOnly }, this.designDraftToken);
|
|
598
604
|
if (!response) {
|
|
599
605
|
return false;
|
|
600
606
|
}
|
|
607
|
+
this.livePreviewUrl = response.livePreviewUrl;
|
|
601
608
|
if (this.brandPageStatus !== response.status) {
|
|
602
609
|
await this.setBrandPageStatus(response.status);
|
|
603
610
|
}
|
|
@@ -632,9 +639,6 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
632
639
|
if (this.slug !== response.slug) {
|
|
633
640
|
this.setSlug({ slug: response.slug });
|
|
634
641
|
}
|
|
635
|
-
this.setTriggerSaveSuccessMessage({
|
|
636
|
-
triggerSaveSuccessMessage: true,
|
|
637
|
-
});
|
|
638
642
|
if (brandPageMakerStore.contentErrorCount > 0) {
|
|
639
643
|
await brandPageMakerStore.setSelectedTabName({
|
|
640
644
|
tabName: SIDE_BAR_TAB_NAMES.CONTENT_SETTINGS,
|
|
@@ -643,7 +647,9 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
643
647
|
this.setTriggerSaveSuccessMessage({
|
|
644
648
|
triggerSaveSuccessMessage: true,
|
|
645
649
|
});
|
|
646
|
-
|
|
650
|
+
// Deferred, not skipped, when something covers the editor: the publish modal
|
|
651
|
+
// and the preview each raise it on close.
|
|
652
|
+
if (!payload.isPublish && !payload.saveOnly) {
|
|
647
653
|
await this.showSaveSuccessMessage();
|
|
648
654
|
await brandPageMakerStore.showNextNotificationMessage();
|
|
649
655
|
}
|
|
@@ -785,7 +791,9 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
785
791
|
}
|
|
786
792
|
}
|
|
787
793
|
this.setIsUpgradeModalVisible({ isVisible: true });
|
|
788
|
-
|
|
794
|
+
// The upgrade modal is already open over the editor, so don't fire the
|
|
795
|
+
// save banner underneath it — `closeUpgradeModal` replays it on dismiss.
|
|
796
|
+
await this.saveBrandPage({ isPublish: true });
|
|
789
797
|
},
|
|
790
798
|
async getContextualUpgradeResponseAsync() {
|
|
791
799
|
const brandPageMakerStore = useBrandPageMakerStore();
|
|
@@ -982,5 +990,13 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
|
|
|
982
990
|
return state.brandPageStatus === 'Published';
|
|
983
991
|
},
|
|
984
992
|
isUserDraft: (state) => !!state.designDraftToken,
|
|
993
|
+
// Every modal that can open OVER the editor. The live preview is a full-viewport
|
|
994
|
+
// takeover, so it has to step back for all of them or they open behind it —
|
|
995
|
+
// add new modals here (or via isHostModalVisible) rather than to the caller.
|
|
996
|
+
isAnyModalVisible: (state) => state.isPublishModalVisible ||
|
|
997
|
+
state.isUpgradeModalVisible ||
|
|
998
|
+
state.isContextualUpgradeModalVisible ||
|
|
999
|
+
state.isStripeOnboardingModalVisible ||
|
|
1000
|
+
!!state.isHostModalVisible,
|
|
985
1001
|
},
|
|
986
1002
|
});
|