@useinsider/guido 3.15.0-beta.4134a24 → 3.15.0-beta.6b05db3
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/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +12 -12
- package/dist/components/organisms/header/EditorActions.vue.js +1 -1
- package/dist/components/organisms/header/EditorActions.vue2.js +39 -47
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +28 -30
- package/dist/composables/useCortexBlueprintBridge.js +79 -43
- package/dist/composables/useEmailTemplateApplier.js +84 -44
- package/dist/composables/useHtmlValidator.js +50 -50
- package/dist/composables/useHttp.js +59 -66
- package/dist/config/i18n/en/labels.json.js +7 -3
- package/dist/config/migrator/recommendation/compositionMapper.js +26 -23
- package/dist/config/migrator/recommendation/htmlBuilder.js +156 -155
- package/dist/extensions/Blocks/Recommendation/constants/selectors.js +18 -15
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +363 -322
- package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +8 -8
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +271 -231
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +16 -16
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +16 -16
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +120 -120
- package/dist/extensions/Blocks/Recommendation/utils/captureStyleTemplates.js +55 -54
- package/dist/extensions/Blocks/Recommendation/utils/compositionKeys.js +89 -0
- package/dist/extensions/Blocks/common-control.js +42 -35
- package/dist/guido.css +1 -1
- package/dist/{composables → src/composables}/useCortexBlueprintBridge.d.ts +12 -5
- package/dist/{composables → src/composables}/useEmailTemplateApplier.d.ts +20 -2
- package/dist/{composables → src/composables}/useHtmlValidator.d.ts +3 -2
- package/dist/{composables → src/composables}/useHttp.d.ts +0 -6
- package/dist/{config → src/config}/migrator/recommendation/types.d.ts +1 -0
- package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/index.d.ts +1 -1
- package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/selectors.d.ts +6 -0
- package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/cardComposition/index.d.ts +27 -5
- package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/utils.d.ts +4 -2
- package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/utils.d.ts +12 -11
- package/dist/src/extensions/Blocks/Recommendation/utils/compositionKeys.d.ts +47 -0
- package/dist/{extensions → src/extensions}/Blocks/common-control.d.ts +3 -1
- package/dist/{stores → src/stores}/guido-email-editor.d.ts +32 -0
- package/dist/stores/guido-email-editor.js +9 -1
- package/package.json +1 -1
- /package/dist/{@types → src/@types}/config/defaults.d.ts +0 -0
- /package/dist/{@types → src/@types}/config/index.d.ts +0 -0
- /package/dist/{@types → src/@types}/config/schemas.d.ts +0 -0
- /package/dist/{@types → src/@types}/config/types.d.ts +0 -0
- /package/dist/{@types → src/@types}/config/validator.d.ts +0 -0
- /package/dist/{@types → src/@types}/events.d.ts +0 -0
- /package/dist/{@types → src/@types}/extensions/block.d.ts +0 -0
- /package/dist/{@types → src/@types}/generic.d.ts +0 -0
- /package/dist/{@types → src/@types}/save-as-template.d.ts +0 -0
- /package/dist/{App.vue.d.ts → src/App.vue.d.ts} +0 -0
- /package/dist/{components → src/components}/Guido.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/AutoSaveController.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/LoadingWrapper.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/base/Toaster.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/PreviewContainer.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/extensions/recommendation/FilterItem.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/extensions/recommendation/Filters.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/AutoSaveToggle.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/EditorActions.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/EditorToolbar.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/HeaderWrapper.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/LeftSlot.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/MiddleSlot.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/MigrationConfirmModal.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/RightSlot.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/ViewOptions.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/version-history/RestoreButton.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/version-history/VersionHistory.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/version-history/ViewOptions.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/onboarding/ItemsOnboarding.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -0
- /package/dist/{components → src/components}/wrappers/WpDrawer.vue.d.ts +0 -0
- /package/dist/{components → src/components}/wrappers/WpModal.vue.d.ts +0 -0
- /package/dist/{composables → src/composables}/useActionsApi.d.ts +0 -0
- /package/dist/{composables → src/composables}/useAllowlist.d.ts +0 -0
- /package/dist/{composables → src/composables}/useAutoSave.d.ts +0 -0
- /package/dist/{composables → src/composables}/useBlocksConfig.d.ts +0 -0
- /package/dist/{composables → src/composables}/useCodeEditorApi.d.ts +0 -0
- /package/dist/{composables → src/composables}/useConfig.d.ts +0 -0
- /package/dist/{composables → src/composables}/useCustomInterfaceAppearance.d.ts +0 -0
- /package/dist/{composables → src/composables}/useDebounce.d.ts +0 -0
- /package/dist/{composables → src/composables}/useExport.d.ts +0 -0
- /package/dist/{composables → src/composables}/useFullStoryBridge.d.ts +0 -0
- /package/dist/{composables → src/composables}/useGuidoActions.d.ts +0 -0
- /package/dist/{composables → src/composables}/useGuidoStateBridge.d.ts +0 -0
- /package/dist/{composables → src/composables}/useHtmlCompiler.d.ts +0 -0
- /package/dist/{composables → src/composables}/useModuleDynamicContentRepair.d.ts +0 -0
- /package/dist/{composables → src/composables}/usePartner.d.ts +0 -0
- /package/dist/{composables → src/composables}/usePreviewInteractionGuard.d.ts +0 -0
- /package/dist/{composables → src/composables}/usePreviewMode.d.ts +0 -0
- /package/dist/{composables → src/composables}/useProvideInject.d.ts +0 -0
- /package/dist/{composables → src/composables}/useRecommendation.d.ts +0 -0
- /package/dist/{composables → src/composables}/useRecommendationPreview.d.ts +0 -0
- /package/dist/{composables → src/composables}/useResponsivePreview.d.ts +0 -0
- /package/dist/{composables → src/composables}/useRibbonOffset.d.ts +0 -0
- /package/dist/{composables → src/composables}/useSave.d.ts +0 -0
- /package/dist/{composables → src/composables}/useStripo.d.ts +0 -0
- /package/dist/{composables → src/composables}/useStripoEventHandler.d.ts +0 -0
- /package/dist/{composables → src/composables}/useStripoNotifications.d.ts +0 -0
- /package/dist/{composables → src/composables}/useSyncModuleExtractor.d.ts +0 -0
- /package/dist/{composables → src/composables}/useTimerClone.d.ts +0 -0
- /package/dist/{composables → src/composables}/useToaster.d.ts +0 -0
- /package/dist/{composables → src/composables}/useTranslations.d.ts +0 -0
- /package/dist/{composables → src/composables}/useUserRole.d.ts +0 -0
- /package/dist/{composables → src/composables}/useValidation.d.ts +0 -0
- /package/dist/{composables → src/composables}/useVersionHistoryApi.d.ts +0 -0
- /package/dist/{composables → src/composables}/validators/saveAsTemplate.d.ts +0 -0
- /package/dist/{composables → src/composables}/validators/useCouponBlockValidator.d.ts +0 -0
- /package/dist/{composables → src/composables}/validators/useLiquidValidator.d.ts +0 -0
- /package/dist/{composables → src/composables}/validators/useUnsubscribeBlockValidator.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/htmlCompilerRules.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/itemsCompilerRules.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/liquidCompilerRules.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/outlookCompilerRules.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/recommendationCompilerRules.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/socialCompilerRules.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/unsubscribeCompilerRules.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/utils/itemsCompilerUtils.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/utils/recommendationCompilerUtils.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/utils/recommendationIgnoreUtils.d.ts +0 -0
- /package/dist/{config → src/config}/i18n/en/index.d.ts +0 -0
- /package/dist/{config → src/config}/i18n/index.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/checkboxMigrator.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/couponBlockMigrator.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/index.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/itemsBlockMigrator.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/productNameLinkMigrator.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/radioButtonMigrator.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/recommendation/compositionMapper.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/recommendation/extractors.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/recommendation/htmlBuilder.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/recommendation/parseLegacyConfig.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/recommendation/settingsMapper.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/recommendation/themeMapper.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/recommendationMigrator.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/socialIconMigrator.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/textBlockMigration.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/unsubscribeMigrator.d.ts +0 -0
- /package/dist/{enums → src/enums}/academy.d.ts +0 -0
- /package/dist/{enums → src/enums}/block.d.ts +0 -0
- /package/dist/{enums → src/enums}/date.d.ts +0 -0
- /package/dist/{enums → src/enums}/defaults.d.ts +0 -0
- /package/dist/{enums → src/enums}/extensions/recommendationBlock.d.ts +0 -0
- /package/dist/{enums → src/enums}/html-validator.d.ts +0 -0
- /package/dist/{enums → src/enums}/onboarding.d.ts +0 -0
- /package/dist/{enums → src/enums}/preview.d.ts +0 -0
- /package/dist/{enums → src/enums}/recommendation.d.ts +0 -0
- /package/dist/{enums → src/enums}/roles.d.ts +0 -0
- /package/dist/{enums → src/enums}/toaster.d.ts +0 -0
- /package/dist/{enums → src/enums}/unsubscribe.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Checkbox/block.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Checkbox/control.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Checkbox/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Checkbox/iconsRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Checkbox/settingsPanel.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Checkbox/template.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/block.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/constants.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/controls/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/iconsRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/settingsPanel.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/template.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/block.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/controls/button/link.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/controls/cardComposition.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/controls/image/link.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/controls/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/controls/name/trimming.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/controls/price/currencyLocation.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/controls/price/currencySymbol.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/controls/price/formattedPrice.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/controls/price/hideDiscount.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/controls/price/priceOrientation.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/controls/price/singlePrice.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/controls/settingsControl.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/enums/controlEnums.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/enums/productEnums.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/enums/settingsEnums.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/iconsRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/settingsPanel.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/template.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/utils/nameNode.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Items/utils/nodeConfigUtils.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/RadioButton/block.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/RadioButton/control.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/RadioButton/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/RadioButton/iconsRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/RadioButton/settingsPanel.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/RadioButton/template.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/block.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/blockIds.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/controlIds.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/defaultConfig.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/layout.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/blockBackground/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/button/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/cardBackground/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/customAttribute/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/customAttribute/textTrim.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/image/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/algorithm.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/currency.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/filters.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/layoutOrientation.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/locale.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/pricePlacement.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/productCount.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/productLayout.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/main/shuffle.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/mobileLayout/cssRules.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/name/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/name/textTrim.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/oldPrice/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/omnibusDiscount/textAfter.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/omnibusDiscount/textBefore.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/omnibusPrice/textAfter.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/omnibusPrice/textBefore.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/price/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/shared/textTrimCssRules.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/spacing/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/controls/syncInfoMessage.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/iconsRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/services/configService.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/services/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/settingsPanel.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/store/recommendation.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/grid/elementRenderer.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/grid/migration.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/grid/template.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/list/elementRenderer.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/list/migration.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/templates/list/template.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/types/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/types/nodeConfig.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/useRecommendationBlockWarning.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/captureStyleTemplates.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/filterUtil.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/legacyStrategyMap.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/partnerCustomizations.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/priceFormatter.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/recommendationBlockCount.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/utils/tagName.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/validation/filterSchema.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/validation/requiredFields.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/block.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/control.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/elements/preview.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/iconsRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/settingsPanel.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/tagRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/template.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/utils/constants.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/utils/utils.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/block.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/control.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/iconsRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/settingsPanel.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/template.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/controlFactories.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/DynamicContent/dynamic-content-modal.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/DynamicContent/dynamic-content.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/DynamicContent/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/ModulesTabIcons/extension.d.ts +0 -0
- /package/dist/{library.d.ts → src/library.d.ts} +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
- /package/dist/{mock → src/mock}/api/auth.d.ts +0 -0
- /package/dist/{mock → src/mock}/api/custom-fonts.d.ts +0 -0
- /package/dist/{mock → src/mock}/api/default-template.d.ts +0 -0
- /package/dist/{mock → src/mock}/api/recommendation.d.ts +0 -0
- /package/dist/{mock → src/mock}/api/settings.d.ts +0 -0
- /package/dist/{mock → src/mock}/api/template-library.d.ts +0 -0
- /package/dist/{mock → src/mock}/api/unsubscribe.d.ts +0 -0
- /package/dist/{mock → src/mock}/api/user-modal-state.d.ts +0 -0
- /package/dist/{mock → src/mock}/api/validator.d.ts +0 -0
- /package/dist/{mock → src/mock}/browser.d.ts +0 -0
- /package/dist/{mock → src/mock}/handlers.d.ts +0 -0
- /package/dist/{services → src/services}/allowlistApi.d.ts +0 -0
- /package/dist/{services → src/services}/blankTemplate.d.ts +0 -0
- /package/dist/{services → src/services}/onboardingApi.d.ts +0 -0
- /package/dist/{services → src/services}/recommendationApi.d.ts +0 -0
- /package/dist/{services → src/services}/stripoApi.d.ts +0 -0
- /package/dist/{services → src/services}/templateLibraryApi.d.ts +0 -0
- /package/dist/{services → src/services}/unsubscribeApi.d.ts +0 -0
- /package/dist/{stores → src/stores}/autosave.d.ts +0 -0
- /package/dist/{stores → src/stores}/config.d.ts +0 -0
- /package/dist/{stores → src/stores}/dynamic-content.d.ts +0 -0
- /package/dist/{stores → src/stores}/editor.d.ts +0 -0
- /package/dist/{stores → src/stores}/onboarding.d.ts +0 -0
- /package/dist/{stores → src/stores}/preview.d.ts +0 -0
- /package/dist/{stores → src/stores}/recommendation.d.ts +0 -0
- /package/dist/{stores → src/stores}/save-as-template.d.ts +0 -0
- /package/dist/{stores → src/stores}/template.d.ts +0 -0
- /package/dist/{stores → src/stores}/toaster.d.ts +0 -0
- /package/dist/{stores → src/stores}/unsubscribe.d.ts +0 -0
- /package/dist/{stores → src/stores}/version-history.d.ts +0 -0
- /package/dist/{utils → src/utils}/ampErrorFilter.d.ts +0 -0
- /package/dist/{utils → src/utils}/arrayUtil.d.ts +0 -0
- /package/dist/{utils → src/utils}/base64.d.ts +0 -0
- /package/dist/{utils → src/utils}/dateUtil.d.ts +0 -0
- /package/dist/{utils → src/utils}/dynamicContentConverter.d.ts +0 -0
- /package/dist/{utils → src/utils}/environmentUtil.d.ts +0 -0
- /package/dist/{utils → src/utils}/genericUtil.d.ts +0 -0
- /package/dist/{utils → src/utils}/htmlCompiler.d.ts +0 -0
- /package/dist/{utils → src/utils}/htmlEscape.d.ts +0 -0
- /package/dist/{utils → src/utils}/migrationBannerHtml.d.ts +0 -0
- /package/dist/{utils → src/utils}/pairProductVariables.d.ts +0 -0
- /package/dist/{utils → src/utils}/preserveTextStyles.d.ts +0 -0
- /package/dist/{utils → src/utils}/registerUsedDynamicContent.d.ts +0 -0
- /package/dist/{utils → src/utils}/stripFontTags.d.ts +0 -0
- /package/dist/{utils → src/utils}/templatePreparation.d.ts +0 -0
- /package/dist/{utils → src/utils}/timeUtil.d.ts +0 -0
- /package/dist/{utils → src/utils}/tooltipUtils.d.ts +0 -0
- /package/dist/{utils → src/utils}/unwrapProductNameLink.d.ts +0 -0
- /package/dist/{utils → src/utils}/urlSchemes.d.ts +0 -0
|
@@ -37,11 +37,11 @@ const xe = /* @__PURE__ */ q({
|
|
|
37
37
|
() => import("./organisms/onboarding/OnboardingWrapper.vue.js")
|
|
38
38
|
), g = U(), l = U(), u = le(), S = fe(), o = me();
|
|
39
39
|
i.ready && o.init(i.config);
|
|
40
|
-
const
|
|
40
|
+
const c = O(), $ = ue(), m = _(() => c.hasChanges), { isTestPartner: G } = X(), h = () => {
|
|
41
41
|
var t;
|
|
42
42
|
return (t = g.value) == null ? void 0 : t.handleSave(!0);
|
|
43
43
|
}, b = (t) => {
|
|
44
|
-
|
|
44
|
+
c.loadingStatus = t;
|
|
45
45
|
};
|
|
46
46
|
j(), Q();
|
|
47
47
|
const p = () => {
|
|
@@ -54,7 +54,7 @@ const xe = /* @__PURE__ */ q({
|
|
|
54
54
|
savedModulesFolderName: ((t = o.editor) == null ? void 0 : t.savedModulesFolderName) || N.SAVED_MODULES,
|
|
55
55
|
defaultModulesFolderName: ((e = o.editor) == null ? void 0 : e.defaultModulesFolderName) || N.DEFAULT_MODULES
|
|
56
56
|
};
|
|
57
|
-
}, { initPlugin: E, preloadRuntime: w } = Y(), { getDefaultTemplate: C } = de(), { cloneTimersOnSave: D, hasTimerBlocks: T } = Z(),
|
|
57
|
+
}, { initPlugin: E, preloadRuntime: w } = Y(), { getDefaultTemplate: C } = de(), { cloneTimersOnSave: D, hasTimerBlocks: T } = Z(), H = _(() => {
|
|
58
58
|
var t;
|
|
59
59
|
return !((t = o.ui) != null && t.showHeader);
|
|
60
60
|
});
|
|
@@ -82,8 +82,8 @@ const xe = /* @__PURE__ */ q({
|
|
|
82
82
|
n("on-change", m.value);
|
|
83
83
|
});
|
|
84
84
|
const f = (t) => {
|
|
85
|
-
const e = t, { attribute: s, position:
|
|
86
|
-
console.debug("dynamic-content:open", e.detail), n("dynamic-content:open", s,
|
|
85
|
+
const e = t, { attribute: s, position: d } = e.detail;
|
|
86
|
+
console.debug("dynamic-content:open", e.detail), n("dynamic-content:open", s, d);
|
|
87
87
|
};
|
|
88
88
|
let a = null;
|
|
89
89
|
const y = () => {
|
|
@@ -93,13 +93,13 @@ const xe = /* @__PURE__ */ q({
|
|
|
93
93
|
}, v = async () => {
|
|
94
94
|
var t;
|
|
95
95
|
try {
|
|
96
|
-
o.initialized || o.init(i.config),
|
|
97
|
-
const e = o.template, s = (e == null ? void 0 : e.html) || "",
|
|
96
|
+
o.initialized || o.init(i.config), c.templateId = o.templateId;
|
|
97
|
+
const e = o.template, s = (e == null ? void 0 : e.html) || "", d = (e == null ? void 0 : e.css) || "", k = (e == null ? void 0 : e.preselectedDynamicContent) || [];
|
|
98
98
|
S.selectedUnsubscribePages = (e == null ? void 0 : e.selectedUnsubscribePages) || [];
|
|
99
99
|
const F = ((t = e == null ? void 0 : e.migration) == null ? void 0 : t.recommendationConfigs) ?? {};
|
|
100
100
|
let r = {
|
|
101
101
|
html: s && await I(s, F),
|
|
102
|
-
css:
|
|
102
|
+
css: d
|
|
103
103
|
};
|
|
104
104
|
r.html || (r = await C(), r.html = await I(r.html, F)), T(r.html) && (r.html = await D(r.html));
|
|
105
105
|
const z = {
|
|
@@ -120,8 +120,8 @@ const xe = /* @__PURE__ */ q({
|
|
|
120
120
|
if (t && (a = new ResizeObserver(y), a.observe(t)), w(), i.ready)
|
|
121
121
|
await v();
|
|
122
122
|
else {
|
|
123
|
-
const s = B(() => i.ready, (
|
|
124
|
-
|
|
123
|
+
const s = B(() => i.ready, (d) => {
|
|
124
|
+
d && (s(), v());
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
document.addEventListener("dynamic-content:open", f);
|
|
@@ -132,7 +132,7 @@ const xe = /* @__PURE__ */ q({
|
|
|
132
132
|
} catch {
|
|
133
133
|
console.debug("Failed to remove Stripo editor: No editor found");
|
|
134
134
|
}
|
|
135
|
-
o.reset();
|
|
135
|
+
c.$reset(), o.reset();
|
|
136
136
|
}), A({
|
|
137
137
|
dynamicContent: {
|
|
138
138
|
insert: L,
|
|
@@ -141,7 +141,7 @@ const xe = /* @__PURE__ */ q({
|
|
|
141
141
|
hasChanges: m,
|
|
142
142
|
saveSilent: h,
|
|
143
143
|
setLoading: b
|
|
144
|
-
}), { __sfc: !0, PreviewContainer: W, OnboardingWrapper: x, headerWrapperRef: g, wrapperRef: l, dynamicContentStore: u, unsubscribeStore: S, props: i, configStore: o, editorStore:
|
|
144
|
+
}), { __sfc: !0, PreviewContainer: W, OnboardingWrapper: x, headerWrapperRef: g, wrapperRef: l, dynamicContentStore: u, unsubscribeStore: S, props: i, configStore: o, editorStore: c, previewStore: $, hasChanges: m, isTestPartner: G, saveSilent: h, setLoading: b, emit: n, buildMetadata: p, initPlugin: E, preloadRuntime: w, getDefaultTemplate: C, cloneTimersOnSave: D, hasTimerBlocks: T, noHeader: H, insertDynamicContent: L, closeDynamicContent: R, handleDynamicContentOpen: f, ribbonObserver: a, updateRibbonOffset: y, startEditor: v, AutoSaveController: oe, Toaster: ne, FilterSelectionDrawer: re, HeaderWrapper: se, LoadingWrapper: ie, SaveAsTemplateDrawer: ae, UnsubscribeWrapper: ce };
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
export {
|
|
@@ -1,74 +1,66 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useActionsApi as
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import { useExport as
|
|
5
|
-
import { useTestEmailClick as
|
|
6
|
-
import { useHtmlCompiler as
|
|
7
|
-
import { useSave as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { useTemplateStore as U } from "../../../stores/template.js";
|
|
1
|
+
import { defineComponent as O, ref as n, computed as h } from "vue";
|
|
2
|
+
import { useActionsApi as q } from "../../../composables/useActionsApi.js";
|
|
3
|
+
import { useConfig as b } from "../../../composables/useConfig.js";
|
|
4
|
+
import { useExport as k } from "../../../composables/useExport.js";
|
|
5
|
+
import { useTestEmailClick as B } from "../../../composables/useGuidoActions.js";
|
|
6
|
+
import { useHtmlCompiler as D } from "../../../composables/useHtmlCompiler.js";
|
|
7
|
+
import { useSave as F } from "../../../composables/useSave.js";
|
|
8
|
+
import { useTranslations as L } from "../../../composables/useTranslations.js";
|
|
9
|
+
import { useVersionHistoryApi as R } from "../../../composables/useVersionHistoryApi.js";
|
|
10
|
+
import { useLiquidValidator as z } from "../../../composables/validators/useLiquidValidator.js";
|
|
11
|
+
import { useEditorStore as I } from "../../../stores/editor.js";
|
|
12
|
+
import { useTemplateStore as P } from "../../../stores/template.js";
|
|
14
13
|
import { getTooltipOptions as j } from "../../../utils/tooltipUtils.js";
|
|
15
|
-
import { InButtonV2 as
|
|
16
|
-
import { storeToRefs as
|
|
17
|
-
import
|
|
18
|
-
const
|
|
14
|
+
import { InButtonV2 as G } from "@useinsider/design-system-vue";
|
|
15
|
+
import { storeToRefs as J } from "pinia";
|
|
16
|
+
import K from "./MigrationConfirmModal.vue.js";
|
|
17
|
+
const ut = /* @__PURE__ */ O({
|
|
19
18
|
__name: "EditorActions",
|
|
20
|
-
setup(
|
|
21
|
-
const { config:
|
|
19
|
+
setup(N, { expose: x }) {
|
|
20
|
+
const { config: a, isFeatureEnabled: l } = b(), { exportHtml: m } = k(), { save: u } = F(), { openVersionHistory: c, closeVersionHistory: p } = R(), { getCompiledEmail: f } = q(), { compileHtml: d } = D(), { validateLiquidSyntax: v } = z(), e = I(), y = P(), { hasMigrations: g } = J(y), s = L(), i = n(!1), r = n(!1), S = n(), H = B(), T = () => {
|
|
22
21
|
if (e.isVersionHistoryOpen) {
|
|
23
|
-
|
|
22
|
+
p();
|
|
24
23
|
return;
|
|
25
24
|
}
|
|
26
25
|
c();
|
|
27
26
|
}, w = async () => {
|
|
28
|
-
|
|
29
|
-
},
|
|
27
|
+
i.value = !0, await m(), i.value = !1;
|
|
28
|
+
}, _ = () => {
|
|
30
29
|
e.isSaveAsTemplateDrawerOpen = !0;
|
|
31
|
-
}, C =
|
|
30
|
+
}, C = h(() => e.isVersionHistoryOpen ? s("newsletter.close-version-history") : s("newsletter.version-history")), A = h(
|
|
32
31
|
() => {
|
|
33
|
-
var
|
|
34
|
-
return ((
|
|
32
|
+
var t, o;
|
|
33
|
+
return ((o = (t = a.value) == null ? void 0 : t.features) == null ? void 0 : o.versionHistory) && !e.isPreviewModeOpen;
|
|
35
34
|
}
|
|
36
|
-
),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
), V = async (t) => {
|
|
36
|
+
r.value = !0, t || (e.loadingStatus = !0);
|
|
37
|
+
const o = await u(t);
|
|
38
|
+
return r.value = !1, !t && !o && (e.loadingStatus = !1), o;
|
|
39
|
+
}, E = (t) => {
|
|
40
|
+
var o;
|
|
41
|
+
if (!t && g.value) {
|
|
42
|
+
(o = S.value) == null || o.open();
|
|
43
43
|
return;
|
|
44
|
-
} finally {
|
|
45
|
-
i.value = !1;
|
|
46
44
|
}
|
|
47
|
-
|
|
48
|
-
var t;
|
|
49
|
-
if (!o && S.value) {
|
|
50
|
-
(t = H.value) == null || t.open();
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
return E(o);
|
|
45
|
+
return V(t);
|
|
54
46
|
}, M = async () => {
|
|
55
47
|
if (l("liquidSyntax")) {
|
|
56
48
|
e.loadingStatus = !0;
|
|
57
49
|
try {
|
|
58
|
-
const { html:
|
|
59
|
-
if (!await v(
|
|
50
|
+
const { html: t } = await f({ minimize: !0, resetDataSavedFlag: !1 }), { compiledHtml: o } = d(t);
|
|
51
|
+
if (!await v(o))
|
|
60
52
|
return;
|
|
61
53
|
} finally {
|
|
62
54
|
e.loadingStatus = !1;
|
|
63
55
|
}
|
|
64
56
|
}
|
|
65
|
-
|
|
57
|
+
H();
|
|
66
58
|
};
|
|
67
59
|
return x({
|
|
68
|
-
handleSave:
|
|
69
|
-
}), { __sfc: !0, config:
|
|
60
|
+
handleSave: E
|
|
61
|
+
}), { __sfc: !0, config: a, isFeatureEnabled: l, exportHtml: m, save: u, openVersionHistory: c, closeVersionHistory: p, getCompiledEmail: f, compileHtml: d, validateLiquidSyntax: v, editorStore: e, templateStore: y, hasMigrations: g, trans: s, isExporting: i, isSaving: r, migrationModalRef: S, testEmailClick: H, handleVersionHistory: T, handleExport: w, handleSaveAs: _, versionHistoryTooltipText: C, isVersionHistoryButtonVisible: A, executeSave: V, handleSave: E, handleTestEmail: M, getTooltipOptions: j, InButtonV2: G, MigrationConfirmModal: K };
|
|
70
62
|
}
|
|
71
63
|
});
|
|
72
64
|
export {
|
|
73
|
-
|
|
65
|
+
ut as default
|
|
74
66
|
};
|
|
@@ -1,48 +1,46 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, computed as e, onMounted as O, watch as t } from "vue";
|
|
2
2
|
import u from "./AMPOnboarding.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { usePartner as
|
|
9
|
-
import { useEditorStore as
|
|
3
|
+
import v from "./GenericOnboarding.vue.js";
|
|
4
|
+
import l from "./ItemsOnboarding.vue.js";
|
|
5
|
+
import y from "./NewVersionPopup.vue.js";
|
|
6
|
+
import S from "./TextBlockOnboarding.vue.js";
|
|
7
|
+
import h from "./VersionHistoryOnboarding.vue.js";
|
|
8
|
+
import { usePartner as w } from "../../../composables/usePartner.js";
|
|
9
|
+
import { useEditorStore as P } from "../../../stores/editor.js";
|
|
10
10
|
import { useOnboardingStore as _ } from "../../../stores/onboarding.js";
|
|
11
11
|
import { usePreviewStore as A } from "../../../stores/preview.js";
|
|
12
|
-
const
|
|
12
|
+
const G = /* @__PURE__ */ b({
|
|
13
13
|
__name: "OnboardingWrapper",
|
|
14
14
|
emits: ["onboarding-finished"],
|
|
15
15
|
setup(H, { emit: f }) {
|
|
16
|
-
const
|
|
17
|
-
{ type: "newVersionPopup", component:
|
|
18
|
-
{ type: "genericOnboarding", component:
|
|
19
|
-
{ type: "textBlockOnboarding", component:
|
|
20
|
-
{ type: "versionHistoryOnboarding", component:
|
|
16
|
+
const o = _(), r = P(), s = A(), { isTestPartner: a } = w(), p = e(() => r.isStripoInitialized), d = e(() => a()), m = [
|
|
17
|
+
{ type: "newVersionPopup", component: y },
|
|
18
|
+
{ type: "genericOnboarding", component: v },
|
|
19
|
+
{ type: "textBlockOnboarding", component: S },
|
|
20
|
+
{ type: "versionHistoryOnboarding", component: h },
|
|
21
21
|
{ type: "ampOnboarding", component: u },
|
|
22
|
-
{ type: "itemsOnboarding", component:
|
|
23
|
-
], c = (
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
console.error("[GUIDO_ONBOARDING] user modal state prefetch failed", o);
|
|
27
|
-
});
|
|
22
|
+
{ type: "itemsOnboarding", component: l }
|
|
23
|
+
], c = (n) => d.value || !p.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n), g = e(() => m.filter((n) => c(n.type)));
|
|
24
|
+
return O(async () => {
|
|
25
|
+
await o.fetchUserModalState();
|
|
28
26
|
}), t(
|
|
29
|
-
() =>
|
|
30
|
-
(
|
|
31
|
-
|
|
27
|
+
() => r.isVersionHistoryOpen,
|
|
28
|
+
(n, i) => {
|
|
29
|
+
n && !i && o.shouldShowOnboarding("versionHistoryOnboarding") && o.start("versionHistoryOnboarding"), !n && i && o.isActive("versionHistoryOnboarding") && o.close("versionHistoryOnboarding");
|
|
32
30
|
}
|
|
33
31
|
), t(
|
|
34
32
|
() => s.emailFormat,
|
|
35
|
-
(
|
|
36
|
-
i !== "AMP" &&
|
|
33
|
+
(n, i) => {
|
|
34
|
+
i !== "AMP" && n === "AMP" && o.shouldShowOnboarding("ampOnboarding") && o.start("ampOnboarding");
|
|
37
35
|
}
|
|
38
36
|
), t(
|
|
39
|
-
() =>
|
|
40
|
-
(
|
|
41
|
-
!
|
|
37
|
+
() => r.isPreviewModeOpen,
|
|
38
|
+
(n) => {
|
|
39
|
+
!n && o.isActive("ampOnboarding") && o.close("ampOnboarding");
|
|
42
40
|
}
|
|
43
|
-
), { __sfc: !0, emit: f, onboardingStore:
|
|
41
|
+
), { __sfc: !0, emit: f, onboardingStore: o, editorStore: r, previewStore: s, isTestPartner: a, isStripoReady: p, isTestPartnerActive: d, onboardingConfigs: m, shouldShow: c, visibleOnboardings: g };
|
|
44
42
|
}
|
|
45
43
|
});
|
|
46
44
|
export {
|
|
47
|
-
|
|
45
|
+
G as default
|
|
48
46
|
};
|
|
@@ -1,59 +1,95 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useToaster as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { ToasterTypeOptions as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { resetEmailTemplateApplier as R, useEmailTemplateApplier as q } from "./useEmailTemplateApplier.js";
|
|
2
|
+
import { useToaster as x } from "./useToaster.js";
|
|
3
|
+
import { useTranslations as H } from "./useTranslations.js";
|
|
4
|
+
import { ToasterTypeOptions as K } from "../enums/toaster.js";
|
|
5
|
+
import { useGuidoEmailEditorStore as L } from "../stores/guido-email-editor.js";
|
|
6
|
+
import { getActivePinia as g } from "pinia";
|
|
7
|
+
import { onUnmounted as k, watch as G } from "vue";
|
|
8
|
+
const U = "email_template", C = "chat", F = "guido:debug:ai", O = () => {
|
|
8
9
|
if (typeof window > "u")
|
|
9
10
|
return !1;
|
|
10
11
|
try {
|
|
11
|
-
return window.localStorage.getItem(
|
|
12
|
+
return window.localStorage.getItem(F) === "1";
|
|
12
13
|
} catch {
|
|
13
14
|
return !1;
|
|
14
15
|
}
|
|
15
|
-
},
|
|
16
|
-
const
|
|
17
|
-
if (!
|
|
16
|
+
}, X = () => {
|
|
17
|
+
const T = g();
|
|
18
|
+
if (!T)
|
|
18
19
|
return;
|
|
19
|
-
const
|
|
20
|
-
|
|
20
|
+
const s = L();
|
|
21
|
+
s.$patch((e) => {
|
|
22
|
+
e.bridgeActive = !0, e.applyAcks = {};
|
|
23
|
+
}), k(() => {
|
|
24
|
+
s.$patch((e) => {
|
|
25
|
+
e.bridgeActive = !1, e.applyAcks = {};
|
|
26
|
+
}), R();
|
|
27
|
+
});
|
|
28
|
+
const u = T._s, d = u == null ? void 0 : u.get(C);
|
|
29
|
+
if (!d)
|
|
21
30
|
return;
|
|
22
|
-
const { markPending:
|
|
23
|
-
const
|
|
24
|
-
return
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
|
|
31
|
+
const { markPending: v, applyTemplate: _, applyTemplateDebounced: S } = q(), { showToaster: $ } = x(), M = H(), B = (e, t) => {
|
|
32
|
+
const i = M(e);
|
|
33
|
+
return i === e ? t : i;
|
|
34
|
+
}, a = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Set(), b = O(), D = (e, t) => {
|
|
35
|
+
b && console.debug(`[guido:cortex] msg=${e ?? "?"} type=${(t == null ? void 0 : t.type) ?? "?"}`, t);
|
|
36
|
+
}, A = (e, t, i, r) => {
|
|
37
|
+
s.$patch((n) => {
|
|
38
|
+
const o = n.applyAcks[e], l = Math.max(Date.now(), ((o == null ? void 0 : o.ackAt) ?? 0) + 1);
|
|
39
|
+
n.applyAcks = {
|
|
40
|
+
...n.applyAcks,
|
|
41
|
+
[e]: { status: t, ackAt: l, requestedAt: i, ...r !== void 0 ? { error: r } : {} }
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
}, I = (e) => {
|
|
45
|
+
if (e.blueprintType !== U)
|
|
46
|
+
return;
|
|
47
|
+
const t = e.blueprintId, i = e.blueprintData;
|
|
48
|
+
if (!t || !(i != null && i.html))
|
|
29
49
|
return;
|
|
30
|
-
|
|
31
|
-
|
|
50
|
+
if (!e.applyRequested) {
|
|
51
|
+
v(t);
|
|
32
52
|
return;
|
|
33
|
-
|
|
34
|
-
|
|
53
|
+
}
|
|
54
|
+
const r = `${t}:${e.version ?? 1}`, n = e.applyRequestedAt ?? 0, { html: o } = i, l = a.get(t), y = p.get(r);
|
|
55
|
+
if (l === void 0 && y === void 0 && (d.appliedBlueprintKeys ?? []).includes(r)) {
|
|
56
|
+
a.set(t, o), p.set(r, n), c.set(r, o);
|
|
35
57
|
return;
|
|
36
58
|
}
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
59
|
+
const h = (m) => {
|
|
60
|
+
if (c.set(r, o), l === o) {
|
|
61
|
+
A(r, "applied", n);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
(m ? _(t, i) : S(t, i)).then((E) => {
|
|
65
|
+
if (E.status !== "superseded") {
|
|
66
|
+
if (E.status === "applied") {
|
|
67
|
+
a.set(t, o), A(r, "applied", n);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
A(r, "failed", n, E.error);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
y === void 0 || n > y ? (p.set(r, n), h(!0)) : l !== o && c.get(r) !== o && h(!1);
|
|
75
|
+
}, w = (e) => e === void 0 || f.has(e) ? !1 : (f.add(e), $({
|
|
76
|
+
type: K.Error,
|
|
77
|
+
message: B("newsletter.ai-template-failed", "AI couldn't generate the template. Please try again.")
|
|
78
|
+
}), !0), P = G(
|
|
79
|
+
() => d.messages,
|
|
80
|
+
(e) => {
|
|
81
|
+
Array.isArray(e) && e.forEach((t) => {
|
|
82
|
+
const i = t == null ? void 0 : t.id;
|
|
83
|
+
(t == null ? void 0 : t.isError) === !0 && w(i) && b && console.debug(`[guido:cortex] message-level error id=${i}`, t);
|
|
84
|
+
const r = t == null ? void 0 : t.segments;
|
|
85
|
+
Array.isArray(r) && r.forEach((n) => {
|
|
50
86
|
if (n)
|
|
51
|
-
switch (
|
|
87
|
+
switch (D(i, n), n.type) {
|
|
52
88
|
case "blueprint":
|
|
53
|
-
|
|
89
|
+
I(n);
|
|
54
90
|
break;
|
|
55
91
|
case "error":
|
|
56
|
-
|
|
92
|
+
w(i);
|
|
57
93
|
break;
|
|
58
94
|
}
|
|
59
95
|
});
|
|
@@ -61,10 +97,10 @@ const x = "email_template", L = "chat", M = "guido:debug:ai", R = () => {
|
|
|
61
97
|
},
|
|
62
98
|
{ deep: !0, immediate: !0 }
|
|
63
99
|
);
|
|
64
|
-
|
|
65
|
-
|
|
100
|
+
k(() => {
|
|
101
|
+
P(), a.clear(), p.clear(), c.clear(), f.clear();
|
|
66
102
|
});
|
|
67
103
|
};
|
|
68
104
|
export {
|
|
69
|
-
|
|
105
|
+
X as useCortexBlueprintBridge
|
|
70
106
|
};
|
|
@@ -1,57 +1,97 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import { useConfig as
|
|
3
|
-
import { useToaster as
|
|
4
|
-
import { useTranslations as
|
|
5
|
-
import { ToasterTypeOptions as
|
|
6
|
-
import { useDynamicContentStore as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { useActionsApi as P } from "./useActionsApi.js";
|
|
2
|
+
import { useConfig as U } from "./useConfig.js";
|
|
3
|
+
import { useToaster as O } from "./useToaster.js";
|
|
4
|
+
import { useTranslations as M } from "./useTranslations.js";
|
|
5
|
+
import { ToasterTypeOptions as p } from "../enums/toaster.js";
|
|
6
|
+
import { useDynamicContentStore as Q } from "../stores/dynamic-content.js";
|
|
7
|
+
import { useEditorStore as _ } from "../stores/editor.js";
|
|
8
|
+
import { flattenDynamicContentList as k } from "../utils/genericUtil.js";
|
|
9
|
+
import { extractUsedDynamicContent as z } from "../utils/registerUsedDynamicContent.js";
|
|
10
|
+
import { ref as H, watch as N } from "vue";
|
|
11
|
+
const j = 250, x = 12e4, o = H({}), m = {}, n = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), B = () => {
|
|
12
|
+
var r, l;
|
|
13
|
+
return typeof ((l = (r = window.StripoEditorApi) == null ? void 0 : r.actionsApi) == null ? void 0 : l.updateHtmlAndCss) == "function";
|
|
14
|
+
}, b = () => {
|
|
15
|
+
const { updateHtmlAndCss: r } = P(), { showToaster: l } = O(), h = M(), { template: C } = U(), w = Q(), u = _(), f = (e, t) => {
|
|
16
|
+
const s = h(e);
|
|
17
|
+
return s === e ? t : s;
|
|
18
|
+
}, A = (e) => {
|
|
15
19
|
o.value[e] === void 0 && (o.value = { ...o.value, [e]: "pending" });
|
|
16
|
-
},
|
|
17
|
-
var
|
|
20
|
+
}, d = (e, t, s) => {
|
|
21
|
+
var c;
|
|
18
22
|
o.value = { ...o.value, [e]: "applying" };
|
|
19
23
|
try {
|
|
20
|
-
|
|
24
|
+
r(t, s), o.value = { ...o.value, [e]: "applied" };
|
|
21
25
|
try {
|
|
22
|
-
const
|
|
23
|
-
|
|
26
|
+
const a = k((c = C.value) == null ? void 0 : c.dynamicContentList), i = z(t, a);
|
|
27
|
+
i.length > 0 && w.registerDynamicContent(i);
|
|
24
28
|
} catch {
|
|
25
29
|
}
|
|
26
|
-
|
|
27
|
-
type:
|
|
28
|
-
message:
|
|
29
|
-
}));
|
|
30
|
-
} catch (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
return g.get(e) !== t && (g.set(e, t), l({
|
|
31
|
+
type: p.Success,
|
|
32
|
+
message: f("newsletter.ai-template-applied", "Template applied to the editor")
|
|
33
|
+
})), { status: "applied" };
|
|
34
|
+
} catch (a) {
|
|
35
|
+
const i = a instanceof Error ? a.message : "Failed to apply template";
|
|
36
|
+
return o.value = { ...o.value, [e]: "failed" }, l({
|
|
37
|
+
type: p.Error,
|
|
38
|
+
message: i
|
|
39
|
+
}), { status: "failed", error: i };
|
|
35
40
|
}
|
|
36
|
-
},
|
|
37
|
-
const t =
|
|
38
|
-
t && (clearTimeout(t),
|
|
41
|
+
}, y = (e) => {
|
|
42
|
+
const t = n.get(e);
|
|
43
|
+
t && (n.delete(e), clearTimeout(t.timeoutTimer), t.resolve({ status: "superseded" }));
|
|
44
|
+
}, S = (e, t, s) => (y(e), new Promise((c) => {
|
|
45
|
+
const a = setTimeout(() => {
|
|
46
|
+
n.delete(e), o.value = { ...o.value, [e]: "failed" };
|
|
47
|
+
const i = f(
|
|
48
|
+
"newsletter.ai-template-apply-timeout",
|
|
49
|
+
"The editor took too long to load. Please try applying again."
|
|
50
|
+
);
|
|
51
|
+
l({ type: p.Error, message: i }), c({ status: "failed", error: i });
|
|
52
|
+
}, x);
|
|
53
|
+
n.set(e, { html: t, css: s, resolve: c, timeoutTimer: a });
|
|
54
|
+
})), T = () => u.isStripoInitialized && B(), D = () => {
|
|
55
|
+
if (!T() || n.size === 0)
|
|
56
|
+
return;
|
|
57
|
+
const e = [...n.entries()];
|
|
58
|
+
n.clear(), e.forEach(([t, s]) => {
|
|
59
|
+
clearTimeout(s.timeoutTimer), s.resolve(d(t, s.html, s.css));
|
|
60
|
+
});
|
|
39
61
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
62
|
+
N(
|
|
63
|
+
() => u.isStripoInitialized,
|
|
64
|
+
(e) => {
|
|
65
|
+
e && D();
|
|
66
|
+
},
|
|
67
|
+
{ immediate: !0 }
|
|
68
|
+
);
|
|
69
|
+
const v = (e) => {
|
|
70
|
+
const t = m[e];
|
|
71
|
+
t && (clearTimeout(t.timer), delete m[e], t.resolve({ status: "superseded" }));
|
|
72
|
+
}, E = (e, t, s) => T() ? (y(e), Promise.resolve(d(e, t, s))) : S(e, t, s);
|
|
73
|
+
return { applyStatus: o, markPending: A, applyTemplate: (e, t) => t.html ? (v(e), E(e, t.html, t.css ?? "")) : Promise.resolve({ status: "superseded" }), applyTemplateDebounced: (e, t) => {
|
|
43
74
|
if (!t.html)
|
|
44
|
-
return;
|
|
45
|
-
|
|
46
|
-
const { html:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
75
|
+
return Promise.resolve({ status: "superseded" });
|
|
76
|
+
v(e);
|
|
77
|
+
const { html: s } = t, c = t.css ?? "";
|
|
78
|
+
return new Promise((a) => {
|
|
79
|
+
m[e] = {
|
|
80
|
+
resolve: a,
|
|
81
|
+
timer: setTimeout(() => {
|
|
82
|
+
delete m[e], a(E(e, s, c));
|
|
83
|
+
}, j)
|
|
84
|
+
};
|
|
85
|
+
});
|
|
50
86
|
} };
|
|
51
|
-
},
|
|
52
|
-
Object.values(
|
|
87
|
+
}, I = () => {
|
|
88
|
+
Object.values(m).forEach((r) => {
|
|
89
|
+
clearTimeout(r.timer), r.resolve({ status: "superseded" });
|
|
90
|
+
}), Object.keys(m).forEach((r) => delete m[r]), n.forEach((r) => {
|
|
91
|
+
clearTimeout(r.timeoutTimer), r.resolve({ status: "superseded" });
|
|
92
|
+
}), n.clear(), o.value = {};
|
|
53
93
|
};
|
|
54
94
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
95
|
+
I as resetEmailTemplateApplier,
|
|
96
|
+
b as useEmailTemplateApplier
|
|
57
97
|
};
|