@useinsider/guido 3.15.0-beta.3794b87 → 3.15.0-beta.afdb685
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/organisms/header/EditorActions.vue.js +1 -1
- package/dist/components/organisms/header/EditorActions.vue2.js +38 -47
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +28 -30
- package/dist/composables/useHttp.js +57 -90
- package/dist/composables/useStripo.js +30 -29
- package/dist/guido.css +1 -1
- package/dist/{composables → src/composables}/useHttp.d.ts +0 -6
- package/dist/stores/onboarding.js +18 -25
- 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}/useCortexBlueprintBridge.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}/useEmailTemplateApplier.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}/useHtmlValidator.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/recommendation/types.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/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/layout.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Recommendation/constants/selectors.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/cardComposition/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/main/utils.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/templates/utils.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/common-control.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}/guido-email-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
|
@@ -1,75 +1,66 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useActionsApi as
|
|
1
|
+
import { defineComponent as O, ref as n, computed as h } from "vue";
|
|
2
|
+
import { useActionsApi as q } from "../../../composables/useActionsApi.js";
|
|
3
3
|
import { useConfig as b } from "../../../composables/useConfig.js";
|
|
4
4
|
import { useExport as k } from "../../../composables/useExport.js";
|
|
5
5
|
import { useTestEmailClick as B } from "../../../composables/useGuidoActions.js";
|
|
6
|
-
import { useHtmlCompiler as
|
|
7
|
-
import { useSave as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
import Q from "./MigrationConfirmModal.vue.js";
|
|
19
|
-
const yo = /* @__PURE__ */ q({
|
|
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";
|
|
13
|
+
import { getTooltipOptions as j } from "../../../utils/tooltipUtils.js";
|
|
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({
|
|
20
18
|
__name: "EditorActions",
|
|
21
|
-
setup(
|
|
22
|
-
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 = () => {
|
|
23
21
|
if (e.isVersionHistoryOpen) {
|
|
24
22
|
p();
|
|
25
23
|
return;
|
|
26
24
|
}
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
},
|
|
25
|
+
c();
|
|
26
|
+
}, w = async () => {
|
|
27
|
+
i.value = !0, await m(), i.value = !1;
|
|
28
|
+
}, _ = () => {
|
|
31
29
|
e.isSaveAsTemplateDrawerOpen = !0;
|
|
32
|
-
}, C = h(() => e.isVersionHistoryOpen ?
|
|
30
|
+
}, C = h(() => e.isVersionHistoryOpen ? s("newsletter.close-version-history") : s("newsletter.version-history")), A = h(
|
|
33
31
|
() => {
|
|
34
|
-
var
|
|
35
|
-
return ((
|
|
32
|
+
var t, o;
|
|
33
|
+
return ((o = (t = a.value) == null ? void 0 : t.features) == null ? void 0 : o.versionHistory) && !e.isPreviewModeOpen;
|
|
36
34
|
}
|
|
37
|
-
), V = async (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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();
|
|
44
43
|
return;
|
|
45
|
-
} finally {
|
|
46
|
-
i.value = !1;
|
|
47
44
|
}
|
|
48
|
-
|
|
49
|
-
var t;
|
|
50
|
-
if (!o && S.value) {
|
|
51
|
-
(t = H.value) == null || t.open();
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
return V(o);
|
|
45
|
+
return V(t);
|
|
55
46
|
}, M = async () => {
|
|
56
47
|
if (l("liquidSyntax")) {
|
|
57
48
|
e.loadingStatus = !0;
|
|
58
49
|
try {
|
|
59
|
-
const { html:
|
|
60
|
-
if (!await v(
|
|
50
|
+
const { html: t } = await f({ minimize: !0, resetDataSavedFlag: !1 }), { compiledHtml: o } = d(t);
|
|
51
|
+
if (!await v(o))
|
|
61
52
|
return;
|
|
62
53
|
} finally {
|
|
63
54
|
e.loadingStatus = !1;
|
|
64
55
|
}
|
|
65
56
|
}
|
|
66
|
-
|
|
57
|
+
H();
|
|
67
58
|
};
|
|
68
|
-
return
|
|
59
|
+
return x({
|
|
69
60
|
handleSave: E
|
|
70
|
-
}), { __sfc: !0, config:
|
|
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 };
|
|
71
62
|
}
|
|
72
63
|
});
|
|
73
64
|
export {
|
|
74
|
-
|
|
65
|
+
ut as default
|
|
75
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,119 +1,86 @@
|
|
|
1
|
-
import { getCsrfToken as
|
|
2
|
-
import { ref as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
1
|
+
import { getCsrfToken as H } from "../utils/genericUtil.js";
|
|
2
|
+
import { ref as p, computed as T } from "vue";
|
|
3
|
+
const k = (b = {}) => {
|
|
4
|
+
const h = p(!1), a = p(null), u = p(null), g = T(() => h.value), y = T(() => a.value !== null), v = {
|
|
5
5
|
baseURL: "",
|
|
6
6
|
timeout: 1e4,
|
|
7
7
|
retry: 0,
|
|
8
8
|
retryDelay: 1e3,
|
|
9
9
|
headers: {
|
|
10
10
|
"Content-Type": "application/json",
|
|
11
|
-
"X-CSRF-TOKEN":
|
|
11
|
+
"X-CSRF-TOKEN": H()
|
|
12
12
|
},
|
|
13
|
-
|
|
14
|
-
},
|
|
13
|
+
...b
|
|
14
|
+
}, w = (e, s) => {
|
|
15
15
|
if (e.startsWith("http://") || e.startsWith("https://"))
|
|
16
16
|
return e;
|
|
17
|
-
const
|
|
18
|
-
return
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}), clear: () => clearTimeout(o) };
|
|
29
|
-
}, b = (e) => {
|
|
30
|
-
if (e instanceof Error)
|
|
31
|
-
return e;
|
|
32
|
-
const t = new Error(typeof e == "string" ? e : "Request was cancelled");
|
|
33
|
-
return t.name = "AbortError", t;
|
|
34
|
-
}, U = (e, t) => {
|
|
35
|
-
let r;
|
|
36
|
-
return new Promise((d, o) => {
|
|
37
|
-
if (t.aborted) {
|
|
38
|
-
o(b(t.reason));
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
const c = () => {
|
|
42
|
-
clearTimeout(r), o(b(t.reason));
|
|
43
|
-
};
|
|
44
|
-
r = setTimeout(() => {
|
|
45
|
-
t.removeEventListener("abort", c), d();
|
|
46
|
-
}, e), t.addEventListener("abort", c, { once: !0 });
|
|
47
|
-
});
|
|
48
|
-
}, u = async (e, t, r, d = {}) => {
|
|
49
|
-
i.value = null, T.value = !0;
|
|
50
|
-
const o = { ...A, ...d }, c = L(t, o.baseURL), m = {
|
|
17
|
+
const t = s || v.baseURL || "";
|
|
18
|
+
return t.endsWith("/") && e.startsWith("/") ? `${t}${e.slice(1)}` : t.endsWith("/") || e.startsWith("/") ? `${t}${e}` : `${t}/${e}`;
|
|
19
|
+
}, P = (e) => new Promise((s, t) => {
|
|
20
|
+
setTimeout(() => {
|
|
21
|
+
t(new Error("Request timeout"));
|
|
22
|
+
}, e);
|
|
23
|
+
}), x = (e) => new Promise((s) => {
|
|
24
|
+
setTimeout(s, e);
|
|
25
|
+
}), i = async (e, s, t, D = {}) => {
|
|
26
|
+
a.value = null, h.value = !0, u.value = new AbortController();
|
|
27
|
+
const n = { ...v, ...D }, L = w(s, n.baseURL), c = {
|
|
51
28
|
method: e,
|
|
52
|
-
headers: { ...
|
|
53
|
-
|
|
29
|
+
headers: { ...n.headers },
|
|
30
|
+
signal: u.value.signal,
|
|
31
|
+
...n
|
|
54
32
|
};
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
E.value = a;
|
|
58
|
-
const l = async (v = 0) => {
|
|
59
|
-
const h = new AbortController(), g = () => h.abort(a.signal.reason);
|
|
60
|
-
a.signal.aborted ? g() : a.signal.addEventListener("abort", g, { once: !0 });
|
|
61
|
-
const R = { ...m, signal: h.signal }, y = o.timeout ? O(o.timeout, e, c, h) : null;
|
|
33
|
+
t && ["POST", "PUT", "PATCH"].includes(e) && (t instanceof FormData ? (delete c.headers["Content-Type"], c.body = t) : c.body = JSON.stringify(t));
|
|
34
|
+
const E = async (m = 0) => {
|
|
62
35
|
try {
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
36
|
+
const o = [fetch(L, c)];
|
|
37
|
+
n.timeout && o.push(P(n.timeout));
|
|
38
|
+
const r = await Promise.race(o);
|
|
39
|
+
if (!r.ok) {
|
|
40
|
+
const O = `HTTP Error: ${r.status} ${r.statusText}`, d = new Error(O);
|
|
41
|
+
throw d.status = r.status, d.statusText = r.statusText, d.response = r, d;
|
|
67
42
|
}
|
|
68
43
|
let f;
|
|
69
|
-
const
|
|
70
|
-
return
|
|
44
|
+
const l = r.headers.get("content-type");
|
|
45
|
+
return l != null && l.includes("application/json") ? f = await r.json() : l != null && l.includes("text/") ? f = await r.text() : f = await r.blob(), {
|
|
71
46
|
data: f,
|
|
72
|
-
status:
|
|
73
|
-
statusText:
|
|
74
|
-
headers:
|
|
47
|
+
status: r.status,
|
|
48
|
+
statusText: r.statusText,
|
|
49
|
+
headers: r.headers
|
|
75
50
|
};
|
|
76
|
-
} catch (
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}), !a.signal.aborted)
|
|
82
|
-
return await l(v + 1);
|
|
83
|
-
n = b(a.signal.reason);
|
|
84
|
-
}
|
|
85
|
-
throw n instanceof Error ? n.name === "AbortError" ? i.value = { message: "Request was cancelled" } : i.value = { message: n.message } : i.value = n, n;
|
|
86
|
-
} finally {
|
|
87
|
-
a.signal.removeEventListener("abort", g);
|
|
51
|
+
} catch (o) {
|
|
52
|
+
const r = o instanceof Error && o.name === "AbortError";
|
|
53
|
+
if (m < (n.retry || 0) && !r)
|
|
54
|
+
return await x(n.retryDelay || 1e3), E(m + 1);
|
|
55
|
+
throw o instanceof Error ? o.name === "AbortError" ? a.value = { message: "Request was cancelled" } : a.value = { message: o.message } : a.value = o, o;
|
|
88
56
|
}
|
|
89
57
|
};
|
|
90
58
|
try {
|
|
91
|
-
return await
|
|
59
|
+
return await E();
|
|
92
60
|
} finally {
|
|
93
|
-
|
|
61
|
+
h.value = !1, u.value = null;
|
|
94
62
|
}
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
|
|
63
|
+
}, C = (e, s) => i("GET", e, void 0, s), $ = (e, s, t) => i("POST", e, s, t), R = (e, s, t) => i("PUT", e, s, t), U = (e, s, t) => i("PATCH", e, s, t), A = (e, s) => i("DELETE", e, void 0, s), W = (e) => {
|
|
64
|
+
u.value && u.value.abort(e);
|
|
65
|
+
}, q = () => {
|
|
66
|
+
a.value = null;
|
|
99
67
|
};
|
|
100
68
|
return {
|
|
101
69
|
// State
|
|
102
|
-
loading:
|
|
103
|
-
error:
|
|
104
|
-
hasError:
|
|
70
|
+
loading: g,
|
|
71
|
+
error: T(() => a.value),
|
|
72
|
+
hasError: y,
|
|
105
73
|
// Methods
|
|
106
|
-
request:
|
|
107
|
-
get:
|
|
108
|
-
post:
|
|
109
|
-
put:
|
|
110
|
-
patch:
|
|
111
|
-
delete:
|
|
112
|
-
cancel:
|
|
113
|
-
clearError:
|
|
74
|
+
request: i,
|
|
75
|
+
get: C,
|
|
76
|
+
post: $,
|
|
77
|
+
put: R,
|
|
78
|
+
patch: U,
|
|
79
|
+
delete: A,
|
|
80
|
+
cancel: W,
|
|
81
|
+
clearError: q
|
|
114
82
|
};
|
|
115
83
|
};
|
|
116
84
|
export {
|
|
117
|
-
|
|
118
|
-
I as useHttp
|
|
85
|
+
k as useHttp
|
|
119
86
|
};
|
|
@@ -16,22 +16,22 @@ import { useEditorStore as b } from "../stores/editor.js";
|
|
|
16
16
|
import { buildMergeTagEntries as W, flattenDynamicContentList as Y } from "../utils/genericUtil.js";
|
|
17
17
|
import Z from "../package.json.js";
|
|
18
18
|
let n = null;
|
|
19
|
-
const
|
|
20
|
-
const { features: c, template: u, isFeatureEnabled: m } = q(), { handleError: p, showToaster: k } = G(), { getToken:
|
|
19
|
+
const Ce = () => {
|
|
20
|
+
const { features: c, template: u, isFeatureEnabled: m } = q(), { handleError: p, showToaster: k } = G(), { getToken: M, getCustomFonts: T, getSyncModulesStatus: v } = K(), { handleEvent: B } = z(), { handleModuleAdd: F } = j(), { getStripoBlocksConfig: A } = O(), { getStripoNotifications: V } = $(), f = () => n || (n = new Promise((i, s) => {
|
|
21
21
|
var l;
|
|
22
22
|
if (document.getElementById("UiEditorScript")) {
|
|
23
23
|
i();
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
const o = Z.guido, r = `https://email-static.useinsider.com/guido/${(l = o == null ? void 0 : o.stripo) == null ? void 0 : l.version}/UIEditor.js`,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}, document.body.appendChild(
|
|
26
|
+
const o = Z.guido, r = `https://email-static.useinsider.com/guido/${(l = o == null ? void 0 : o.stripo) == null ? void 0 : l.version}/UIEditor.js`, e = document.createElement("script");
|
|
27
|
+
e.id = "UiEditorScript", e.type = "module", e.src = r, e.onload = () => i(), e.onerror = () => {
|
|
28
|
+
e.remove(), s(new Error(`Failed to load Stripo UIEditor script from S3: ${r}`));
|
|
29
|
+
}, document.body.appendChild(e);
|
|
30
30
|
}), n.catch(() => {
|
|
31
31
|
n = null;
|
|
32
32
|
}), n), _ = async (i, s, o, a = [], r = !1) => {
|
|
33
33
|
var y, E, h, C;
|
|
34
|
-
const
|
|
34
|
+
const e = b(), { html: l, css: D } = i, { baseBlocks: g, extensions: R } = await A(), S = ((y = c.value) == null ? void 0 : y.displayConditions) ?? !0, P = ((E = c.value) == null ? void 0 : E.modulesDisabled) ?? !1, U = ((h = u.value) == null ? void 0 : h.forceRecreate) ?? !1;
|
|
35
35
|
await window.UIEditor.initEditor(
|
|
36
36
|
document.querySelector("#guido-editor"),
|
|
37
37
|
{
|
|
@@ -57,6 +57,7 @@ const Ct = () => {
|
|
|
57
57
|
messageSettingsEnabled: !0,
|
|
58
58
|
displayGmailAnnotations: !0,
|
|
59
59
|
displayHiddenPreheader: !1,
|
|
60
|
+
keepModuleStylesEnabled: !0,
|
|
60
61
|
displayTitle: !1,
|
|
61
62
|
displayUTM: !1,
|
|
62
63
|
selectElementAfterDrop: !0,
|
|
@@ -77,38 +78,38 @@ const Ct = () => {
|
|
|
77
78
|
)
|
|
78
79
|
}
|
|
79
80
|
],
|
|
80
|
-
async onTokenRefreshRequest(
|
|
81
|
+
async onTokenRefreshRequest(t) {
|
|
81
82
|
try {
|
|
82
|
-
const d = await
|
|
83
|
-
|
|
83
|
+
const d = await M();
|
|
84
|
+
t(d);
|
|
84
85
|
} catch (d) {
|
|
85
86
|
p(d, "Failed to refresh token");
|
|
86
87
|
}
|
|
87
88
|
},
|
|
88
89
|
onTemplateLoaded() {
|
|
89
90
|
try {
|
|
90
|
-
const { importCss:
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
const { importCss: t } = H(), { activateCustomViewStyles: d, updateTimerInClonedTemplate: I } = L(), { injectFullStory: x } = N();
|
|
92
|
+
t(), d(), x(), I(), o.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
|
|
93
|
+
e.hasChanges = !1;
|
|
93
94
|
}, 1e3);
|
|
94
|
-
} catch (
|
|
95
|
-
p(
|
|
95
|
+
} catch (t) {
|
|
96
|
+
p(t, "Failed to load custom interface appearance");
|
|
96
97
|
}
|
|
97
98
|
},
|
|
98
|
-
onCodeEditorVisibilityChanged(
|
|
99
|
-
|
|
99
|
+
onCodeEditorVisibilityChanged(t) {
|
|
100
|
+
e.isCodeEditorOpen = t;
|
|
100
101
|
},
|
|
101
|
-
onEditorVisualModeChanged(
|
|
102
|
-
|
|
102
|
+
onEditorVisualModeChanged(t) {
|
|
103
|
+
e.editorVisualMode = t.toLowerCase();
|
|
103
104
|
},
|
|
104
|
-
onVersionHistoryVisibilityChanged(
|
|
105
|
-
|
|
105
|
+
onVersionHistoryVisibilityChanged(t) {
|
|
106
|
+
e.isVersionHistoryOpen = t;
|
|
106
107
|
},
|
|
107
108
|
onDataChanged() {
|
|
108
|
-
|
|
109
|
+
e.hasChanges = !0;
|
|
109
110
|
},
|
|
110
|
-
onEvent:
|
|
111
|
-
onModuleAdd:
|
|
111
|
+
onEvent: B,
|
|
112
|
+
onModuleAdd: F,
|
|
112
113
|
notifications: V(),
|
|
113
114
|
ignoreClickOutsideSelectors: [
|
|
114
115
|
"#guido-dynamic-content-modal",
|
|
@@ -124,11 +125,11 @@ const Ct = () => {
|
|
|
124
125
|
const a = b();
|
|
125
126
|
try {
|
|
126
127
|
await f();
|
|
127
|
-
const [r,
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
const [r, e] = await Promise.all([
|
|
129
|
+
T(),
|
|
130
|
+
v()
|
|
130
131
|
]);
|
|
131
|
-
a.syncModulesEnabled =
|
|
132
|
+
a.syncModulesEnabled = e, await _(i, s, o, r, e);
|
|
132
133
|
} catch {
|
|
133
134
|
a.loadingStatus = !1, k({
|
|
134
135
|
type: X.Error,
|
|
@@ -145,5 +146,5 @@ const Ct = () => {
|
|
|
145
146
|
} };
|
|
146
147
|
};
|
|
147
148
|
export {
|
|
148
|
-
|
|
149
|
+
Ce as useStripo
|
|
149
150
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.auto-save-toggle[data-v-2c964af4]{position:relative}.auto-save-toggle__info-box[data-v-2c964af4]{position:absolute;top:100%;left:0;z-index:10;width:280px}.editor-actions[data-v-
|
|
1
|
+
.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.auto-save-toggle[data-v-2c964af4]{position:relative}.auto-save-toggle__info-box[data-v-2c964af4]{position:absolute;top:100%;left:0;z-index:10;width:280px}.editor-actions[data-v-6e711fd7]{gap:4px}.header-wrapper[data-v-d11dd577]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-5079a1c8]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-5079a1c8]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-5079a1c8]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-91a26acd]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-91a26acd]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-91a26acd]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-91a26acd]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-91a26acd]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-f16f20f8] .vueperslides__bullets{pointer-events:none!important}[data-v-f16f20f8] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-bb3cca55] .vueperslides__bullets{pointer-events:none!important}[data-v-bb3cca55] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}
|
|
@@ -17,12 +17,6 @@ export interface HttpError {
|
|
|
17
17
|
statusText?: string;
|
|
18
18
|
response?: Response;
|
|
19
19
|
}
|
|
20
|
-
export declare const TIMEOUT_ERROR_NAME = "TimeoutError";
|
|
21
|
-
export interface TimeoutErrorContext {
|
|
22
|
-
url: string;
|
|
23
|
-
method: HttpMethod;
|
|
24
|
-
timeout: number;
|
|
25
|
-
}
|
|
26
20
|
export declare const useHttp: (defaultOptions?: HttpOptions) => {
|
|
27
21
|
loading: import("vue").ComputedRef<boolean>;
|
|
28
22
|
error: import("vue").ComputedRef<{
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { useOnboardingApi as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
const
|
|
1
|
+
import { useOnboardingApi as r } from "../services/onboardingApi.js";
|
|
2
|
+
import { defineStore as e } from "pinia";
|
|
3
|
+
const t = () => ({
|
|
4
4
|
cardIndex: 0,
|
|
5
5
|
isActive: !1,
|
|
6
6
|
config: []
|
|
7
|
-
}),
|
|
7
|
+
}), a = () => ({
|
|
8
8
|
onboardings: {
|
|
9
|
-
newVersionPopup:
|
|
10
|
-
genericOnboarding:
|
|
11
|
-
textBlockOnboarding:
|
|
12
|
-
versionHistoryOnboarding:
|
|
13
|
-
ampOnboarding:
|
|
14
|
-
itemsOnboarding:
|
|
9
|
+
newVersionPopup: t(),
|
|
10
|
+
genericOnboarding: t(),
|
|
11
|
+
textBlockOnboarding: t(),
|
|
12
|
+
versionHistoryOnboarding: t(),
|
|
13
|
+
ampOnboarding: t(),
|
|
14
|
+
itemsOnboarding: t()
|
|
15
15
|
},
|
|
16
16
|
userModalState: {},
|
|
17
17
|
isFetched: !1
|
|
18
|
-
}),
|
|
19
|
-
state: () =>
|
|
18
|
+
}), c = e("guidoOnboarding", {
|
|
19
|
+
state: () => a(),
|
|
20
20
|
getters: {
|
|
21
21
|
getOnboarding: (n) => (i) => n.onboardings[i],
|
|
22
22
|
isActive: (n) => (i) => n.onboardings[i].isActive,
|
|
@@ -45,8 +45,6 @@ const r = () => ({
|
|
|
45
45
|
return i.config[i.cardIndex];
|
|
46
46
|
},
|
|
47
47
|
shouldShowOnboarding: (n) => (i) => {
|
|
48
|
-
if (!n.isFetched)
|
|
49
|
-
return !1;
|
|
50
48
|
const o = n.userModalState.Guido;
|
|
51
49
|
return i === "newVersionPopup" && (o != null && o.genericOnboarding) ? !1 : o ? !o[i] : !0;
|
|
52
50
|
}
|
|
@@ -74,8 +72,8 @@ const r = () => ({
|
|
|
74
72
|
this.onboardings[n].cardIndex > 0 && this.onboardings[n].cardIndex--;
|
|
75
73
|
},
|
|
76
74
|
updateCardPosition(n, i, o) {
|
|
77
|
-
const
|
|
78
|
-
|
|
75
|
+
const s = this.onboardings[n].config[i];
|
|
76
|
+
s && (s.top = o.top, s.position = o.position);
|
|
79
77
|
},
|
|
80
78
|
setConfig(n, i) {
|
|
81
79
|
this.onboardings[n].config = i ?? [], this.onboardings[n].cardIndex >= this.onboardings[n].config.length && (this.onboardings[n].cardIndex = 0);
|
|
@@ -95,20 +93,15 @@ const r = () => ({
|
|
|
95
93
|
async fetchUserModalState() {
|
|
96
94
|
if (this.isFetched)
|
|
97
95
|
return;
|
|
98
|
-
const { fetchUserModalState: n } =
|
|
96
|
+
const { fetchUserModalState: n } = r(), i = await n();
|
|
99
97
|
this.userModalState = i, this.isFetched = !0;
|
|
100
98
|
},
|
|
101
99
|
async setUserModalState(n, i, o) {
|
|
102
|
-
const { setUserModalState:
|
|
103
|
-
await
|
|
104
|
-
try {
|
|
105
|
-
this.userModalState = await s(), this.isFetched = !0;
|
|
106
|
-
} catch (a) {
|
|
107
|
-
this.isFetched = !1, console.error("[GUIDO_ONBOARDING] user modal state refresh failed", a);
|
|
108
|
-
}
|
|
100
|
+
const { setUserModalState: s } = r();
|
|
101
|
+
await s(n, i, o), this.isFetched = !1, await this.fetchUserModalState();
|
|
109
102
|
}
|
|
110
103
|
}
|
|
111
104
|
});
|
|
112
105
|
export {
|
|
113
|
-
|
|
106
|
+
c as useOnboardingStore
|
|
114
107
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.15.0-beta.
|
|
3
|
+
"version": "3.15.0-beta.afdb685",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|
|
File without changes
|
|
File without changes
|