@useinsider/guido 1.0.3-beta.f711f2e → 1.0.3-beta.fb2b45b
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/README.md +3 -141
- package/dist/{src/@types → @types}/generic.d.ts +0 -19
- package/dist/{src/components → components}/Guido.vue.d.ts +0 -1
- package/dist/components/Guido.vue.js +9 -11
- package/dist/components/Guido.vue2.js +62 -69
- package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
- package/dist/components/organisms/header/LeftSlot.vue2.js +15 -16
- package/dist/components/organisms/header/RightSlot.vue.js +11 -11
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +9 -9
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +17 -30
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +10 -12
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +18 -19
- package/dist/composables/useStripo.js +45 -39
- package/dist/config/migrator/index.js +5 -7
- package/dist/enums/defaults.js +8 -15
- package/dist/enums/onboarding.d.ts +1 -0
- package/dist/enums/onboarding.js +1 -2
- package/dist/{src/enums → enums}/unsubscribe.d.ts +0 -4
- package/dist/enums/unsubscribe.js +11 -15
- package/dist/extensions/Blocks/Checkbox/control.js +53 -55
- package/dist/extensions/Blocks/Checkbox/extension.js +2 -2
- package/dist/extensions/Blocks/RadioButton/control.js +42 -44
- package/dist/extensions/Blocks/RadioButton/template.js +6 -6
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +93 -311
- package/dist/services/stripoApi.js +1 -1
- package/dist/static/styles/components/narrow-panel.css.js +0 -10
- package/dist/static/styles/customEditorStyle.css.js +0 -5
- package/dist/{src/stores → stores}/config.d.ts +0 -7
- package/dist/{src/stores → stores}/editor.d.ts +0 -21
- package/dist/stores/editor.js +1 -2
- package/dist/utils/dateUtil.d.ts +1 -0
- package/dist/utils/dateUtil.js +3 -24
- package/dist/{src/utils → utils}/genericUtil.d.ts +0 -1
- package/dist/utils/genericUtil.js +7 -8
- package/package.json +3 -8
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +0 -28
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +0 -38
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +0 -17
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +0 -37
- package/dist/components/organisms/extensions/recommendation/Filters.vue.js +0 -20
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +0 -44
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +0 -17
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +0 -27
- package/dist/composables/useBlocksConfig.js +0 -49
- package/dist/config/migrator/couponBlockMigrator.js +0 -67
- package/dist/config/migrator/recommendationMigrator.js +0 -293
- package/dist/enums/date.js +0 -6
- package/dist/enums/extensions/recommendationBlock.js +0 -80
- package/dist/extensions/Blocks/CouponBlock/block.js +0 -33
- package/dist/extensions/Blocks/CouponBlock/extension.js +0 -8
- package/dist/extensions/Blocks/CouponBlock/iconsRegistry.js +0 -33
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +0 -24
- package/dist/extensions/Blocks/CouponBlock/template.js +0 -18
- package/dist/extensions/Blocks/Recommendation/block.js +0 -30
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -103
- package/dist/extensions/Blocks/Recommendation/constants.js +0 -5
- package/dist/extensions/Blocks/Recommendation/control.js +0 -306
- package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/extension.js +0 -45
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +0 -51
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +0 -19
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +0 -117
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +0 -266
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +0 -160
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +0 -152
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -180
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +0 -28
- package/dist/extensions/Blocks/common-control.js +0 -184
- package/dist/package.json.js +0 -7
- package/dist/services/recommendationApi.js +0 -43
- package/dist/src/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +0 -19
- package/dist/src/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +0 -16
- package/dist/src/components/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -4
- package/dist/src/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -4
- package/dist/src/composables/useBlocksConfig.d.ts +0 -11
- package/dist/src/config/migrator/couponBlockMigrator.d.ts +0 -1
- package/dist/src/config/migrator/recommendationMigrator.d.ts +0 -1
- package/dist/src/enums/date.d.ts +0 -4
- package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -16
- package/dist/src/enums/onboarding.d.ts +0 -2
- package/dist/src/extensions/Blocks/CouponBlock/block.d.ts +0 -12
- package/dist/src/extensions/Blocks/CouponBlock/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/CouponBlock/settingsPanel.d.ts +0 -4
- package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +0 -3
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -11
- package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +0 -28
- package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +0 -51
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -35
- package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -555
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/migrationTemplate.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +0 -44
- package/dist/src/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +0 -7
- package/dist/src/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
- package/dist/src/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
- package/dist/src/extensions/Blocks/common-control.d.ts +0 -87
- package/dist/src/extensions/DynamicContent/extension.d.ts +0 -2
- package/dist/src/mock/api/recommendation.d.ts +0 -2
- package/dist/src/services/recommendationApi.d.ts +0 -6
- package/dist/src/utils/dateUtil.d.ts +0 -22
- package/dist/{src/@types → @types}/events.d.ts +0 -0
- package/dist/{src/@types → @types}/save-as-template.d.ts +0 -0
- package/dist/{src/App.vue.d.ts → App.vue.d.ts} +0 -0
- package/dist/{src/components → components}/organisms/LoadingWrapper.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/base/Toaster.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/email-preview/PreviewContainer.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/header/HeaderWrapper.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/header/LeftSlot.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/header/MiddleSlot.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/header/RightSlot.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/header/ViewOptions.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/header/version-history/RestoreButton.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/header/version-history/VersionHistory.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/header/version-history/ViewOptions.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -0
- package/dist/{src/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts → components/organisms/onboarding/NewVersionPopup.vue.d.ts} +0 -0
- package/dist/{src/components/organisms/extensions/recommendation/Filters.vue.d.ts → components/organisms/onboarding/OnboardingWrapper.vue.d.ts} +0 -0
- package/dist/{src/components → components}/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -0
- package/dist/{src/components → components}/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -0
- package/dist/{src/components → components}/wrappers/WpDrawer.vue.d.ts +0 -0
- package/dist/{src/components → components}/wrappers/WpModal.vue.d.ts +1 -1
- /package/dist/{src/composables → composables}/useActionsApi.d.ts +0 -0
- /package/dist/{src/composables → composables}/useApiExample.d.ts +0 -0
- /package/dist/{src/composables → composables}/useCodeEditorApi.d.ts +0 -0
- /package/dist/{src/composables → composables}/useConfig.d.ts +0 -0
- /package/dist/{src/composables → composables}/useCustomInterfaceAppearance.d.ts +0 -0
- /package/dist/{src/composables → composables}/useDebounce.d.ts +0 -0
- /package/dist/{src/composables → composables}/useExport.d.ts +0 -0
- /package/dist/{src/composables → composables}/useGuidoActions.d.ts +0 -0
- /package/dist/{src/composables → composables}/useHtmlCompiler.d.ts +0 -0
- /package/dist/{src/composables → composables}/useHtmlValidator.d.ts +0 -0
- /package/dist/{src/composables → composables}/useHttp.d.ts +0 -0
- /package/dist/{src/composables → composables}/usePartner.d.ts +0 -0
- /package/dist/{src/composables → composables}/usePreviewMode.d.ts +0 -0
- /package/dist/{src/composables → composables}/useProvideInject.d.ts +0 -0
- /package/dist/{src/composables → composables}/useRecommendation.d.ts +0 -0
- /package/dist/{src/composables → composables}/useResponsivePreview.d.ts +0 -0
- /package/dist/{src/composables → composables}/useSave.d.ts +0 -0
- /package/dist/{src/composables → composables}/useStripo.d.ts +0 -0
- /package/dist/{src/composables → composables}/useStripoEventHandler.d.ts +0 -0
- /package/dist/{src/composables → composables}/useToaster.d.ts +0 -0
- /package/dist/{src/composables → composables}/useTranslations.d.ts +0 -0
- /package/dist/{src/composables → composables}/useValidation.d.ts +0 -0
- /package/dist/{src/composables → composables}/useVersionHistoryApi.d.ts +0 -0
- /package/dist/{src/composables → composables}/validators/saveAsTemplate.d.ts +0 -0
- /package/dist/{src/config → config}/compiler/htmlCompilerRules.d.ts +0 -0
- /package/dist/{src/config → config}/compiler/outlookCompilerRules.d.ts +0 -0
- /package/dist/{src/config → config}/compiler/recommendationCompilerRules.d.ts +0 -0
- /package/dist/{src/config → config}/compiler/socialCompilerRules.d.ts +0 -0
- /package/dist/{src/config → config}/compiler/unsubscribeCompilerRules.d.ts +0 -0
- /package/dist/{src/config → config}/migrator/checkboxMigrator.d.ts +0 -0
- /package/dist/{src/config → config}/migrator/index.d.ts +0 -0
- /package/dist/{src/config → config}/migrator/radioButtonMigrator.d.ts +0 -0
- /package/dist/{src/config → config}/migrator/unsubscribeMigrator.d.ts +0 -0
- /package/dist/{src/enums → enums}/defaults.d.ts +0 -0
- /package/dist/{src/enums → enums}/displayConditions.d.ts +0 -0
- /package/dist/{src/enums → enums}/html-validator.d.ts +0 -0
- /package/dist/{src/enums → enums}/preview.d.ts +0 -0
- /package/dist/{src/enums → enums}/recommendation.d.ts +0 -0
- /package/dist/{src/enums → enums}/toaster.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Checkbox/block.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Checkbox/control.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Checkbox/extension.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Checkbox/iconsRegistry.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Checkbox/settingsPanel.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Checkbox/template.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/RadioButton/block.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/RadioButton/control.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/CouponBlock → extensions/Blocks/RadioButton}/extension.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/RadioButton/iconsRegistry.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/RadioButton/settingsPanel.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/RadioButton/template.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/block.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/control.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/elements/preview.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/RadioButton → extensions/Blocks/Unsubscribe}/extension.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/iconsRegistry.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/Recommendation → extensions/Blocks/Unsubscribe}/settingsPanel.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/tagRegistry.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/template.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/utils/constants.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Unsubscribe/utils/utils.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/block.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/control.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/Recommendation → extensions/Blocks/_Boilerplate}/extension.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/iconsRegistry.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/Unsubscribe → extensions/Blocks/_Boilerplate}/settingsPanel.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/template.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content-modal.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/Unsubscribe → extensions/DynamicContent}/extension.d.ts +0 -0
- /package/dist/{src/library.d.ts → library.d.ts} +0 -0
- /package/dist/{src/main.d.ts → main.d.ts} +0 -0
- /package/dist/{src/mock → mock}/api/auth.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/custom-fonts.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/default-template.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/template-library.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/unsubscribe.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/user-modal-state.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/validator.d.ts +0 -0
- /package/dist/{src/mock → mock}/browser.d.ts +0 -0
- /package/dist/{src/mock → mock}/handlers.d.ts +0 -0
- /package/dist/{src/services → services}/onboardingApi.d.ts +0 -0
- /package/dist/{src/services → services}/stripoApi.d.ts +0 -0
- /package/dist/{src/services → services}/templateLibraryApi.d.ts +0 -0
- /package/dist/{src/services → services}/unsubscribeApi.d.ts +0 -0
- /package/dist/{src/stores → stores}/dynamic-content.d.ts +0 -0
- /package/dist/{src/stores → stores}/onboarding.d.ts +0 -0
- /package/dist/{src/stores → stores}/preview.d.ts +0 -0
- /package/dist/{src/stores → stores}/recommendation.d.ts +0 -0
- /package/dist/{src/stores → stores}/save-as-template.d.ts +0 -0
- /package/dist/{src/stores → stores}/toaster.d.ts +0 -0
- /package/dist/{src/stores → stores}/unsubscribe.d.ts +0 -0
- /package/dist/{src/stores → stores}/version-history.d.ts +0 -0
- /package/dist/{src/utils → utils}/arrayUtil.d.ts +0 -0
- /package/dist/{src/utils → utils}/base64.d.ts +0 -0
- /package/dist/{src/utils → utils}/htmlCompiler.d.ts +0 -0
- /package/dist/{src/utils → utils}/templatePreparation.d.ts +0 -0
- /package/dist/{src/utils → utils}/tooltipUtils.d.ts +0 -0
|
@@ -1,43 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import { useOnboardingStore as _ } from "../../../stores/onboarding.js";
|
|
8
|
-
import { isAfterDate as C, formatShortDate as L } from "../../../utils/dateUtil.js";
|
|
9
|
-
const I = /* @__PURE__ */ g({
|
|
1
|
+
import { defineComponent as s, ref as r } from "vue";
|
|
2
|
+
import a from "../../wrappers/WpModal.vue.js";
|
|
3
|
+
import { useTranslations as i } from "../../../composables/useTranslations.js";
|
|
4
|
+
import l from "../../../static/assets/onboarding-img.svg.js";
|
|
5
|
+
import { useOnboardingStore as m } from "../../../stores/onboarding.js";
|
|
6
|
+
const w = /* @__PURE__ */ s({
|
|
10
7
|
__name: "NewVersionPopup",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const e = h(), t = _(), s = b(!0), { config: p } = D(), i = o(() => p.migrationDate), n = o(() => C(i.value || 0)), d = o(() => L(
|
|
14
|
-
i.value
|
|
15
|
-
)), m = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), c = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
|
|
16
|
-
sunsetDate: d.value,
|
|
17
|
-
academyLink: l
|
|
18
|
-
}) : e("email-editor.onboarding-description", {
|
|
19
|
-
academyLink: l
|
|
20
|
-
})), u = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), f = o(() => ({
|
|
8
|
+
setup(p) {
|
|
9
|
+
const n = i(), e = m(), o = r(!0), t = r({
|
|
21
10
|
primaryButton: {
|
|
22
11
|
type: "primary",
|
|
23
|
-
labelText:
|
|
12
|
+
labelText: n("left-menu.discover-now")
|
|
24
13
|
},
|
|
25
14
|
secondaryButton: {
|
|
26
15
|
type: "subtle-primary",
|
|
27
|
-
labelText:
|
|
16
|
+
labelText: n("products.remind-me-later")
|
|
28
17
|
}
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return { __sfc: !0, emit: a, trans: e, onboardingStore: t, isVisible: s, config: p, migrationDate: i, isAfterMigrationDate: n, formattedSunsetDate: d, popupTitle: m, popupDescription: c, secondaryButtonLabel: u, footerButtonOptions: f, closePopup: r, handleDiscoverNow: () => {
|
|
33
|
-
t.onDiscoverNowClicked(), r();
|
|
18
|
+
});
|
|
19
|
+
return { __sfc: !0, trans: n, onboardingStore: e, isVisible: o, footerButtonOptions: t, handleDiscoverNow: () => {
|
|
20
|
+
e.onDiscoverNowClicked(), o.value = !1;
|
|
34
21
|
}, handleRemindLater: () => {
|
|
35
|
-
|
|
22
|
+
e.onRemindMeLater(), o.value = !1;
|
|
36
23
|
}, handleClose: () => {
|
|
37
|
-
|
|
38
|
-
}, WpModal:
|
|
24
|
+
e.onNewVersionPopupClose(), o.value = !1;
|
|
25
|
+
}, WpModal: a, onboardingImageSvg: l };
|
|
39
26
|
}
|
|
40
27
|
});
|
|
41
28
|
export {
|
|
42
|
-
|
|
29
|
+
w as default
|
|
43
30
|
};
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import o from "./OnboardingWrapper.vue2.js";
|
|
2
|
+
import _ from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
3
|
var s = function() {
|
|
4
|
-
var n = this, e = n._self._c,
|
|
5
|
-
return e("div", n._l(
|
|
6
|
-
return e(
|
|
7
|
-
return r.emit("onboarding-finished");
|
|
8
|
-
} } });
|
|
4
|
+
var n = this, e = n._self._c, t = n._self._setupProxy;
|
|
5
|
+
return e("div", n._l(t.visibleOnboardings, function(r) {
|
|
6
|
+
return e(r.component, { key: r.type, tag: "component" });
|
|
9
7
|
}), 1);
|
|
10
|
-
},
|
|
11
|
-
|
|
8
|
+
}, a = [], p = /* @__PURE__ */ _(
|
|
9
|
+
o,
|
|
12
10
|
s,
|
|
13
|
-
|
|
11
|
+
a,
|
|
14
12
|
!1,
|
|
15
13
|
null,
|
|
16
14
|
null
|
|
17
15
|
);
|
|
18
|
-
const
|
|
16
|
+
const m = p.exports;
|
|
19
17
|
export {
|
|
20
|
-
|
|
18
|
+
m as default
|
|
21
19
|
};
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { usePartner as
|
|
3
|
-
import { useEditorStore as
|
|
4
|
-
import { useOnboardingStore as
|
|
5
|
-
import { usePreviewStore as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { defineComponent as g, computed as e, onMounted as b, watch as t } from "vue";
|
|
2
|
+
import { usePartner as O } from "../../../composables/usePartner.js";
|
|
3
|
+
import { useEditorStore as u } from "../../../stores/editor.js";
|
|
4
|
+
import { useOnboardingStore as v } from "../../../stores/onboarding.js";
|
|
5
|
+
import { usePreviewStore as l } from "../../../stores/preview.js";
|
|
6
|
+
import y from "./AMPOnboarding.vue.js";
|
|
7
|
+
import S from "./GenericOnboarding.vue.js";
|
|
8
8
|
import w from "./NewVersionPopup.vue.js";
|
|
9
9
|
import P from "./TextBlockOnboarding.vue.js";
|
|
10
|
-
import
|
|
11
|
-
const
|
|
10
|
+
import h from "./VersionHistoryOnboarding.vue.js";
|
|
11
|
+
const E = /* @__PURE__ */ g({
|
|
12
12
|
__name: "OnboardingWrapper",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const o = l(), r = v(), s = y(), { isTestPartner: a } = u(), p = e(() => r.isStripoInitialized), d = e(() => a()), m = [
|
|
13
|
+
setup(_) {
|
|
14
|
+
const o = v(), r = u(), s = l(), { isTestPartner: a } = O(), p = e(() => r.isStripoInitialized), d = e(() => a()), m = [
|
|
16
15
|
{ type: "newVersionPopup", component: w },
|
|
17
|
-
{ type: "genericOnboarding", component:
|
|
16
|
+
{ type: "genericOnboarding", component: S },
|
|
18
17
|
{ type: "textBlockOnboarding", component: P },
|
|
19
|
-
{ type: "versionHistoryOnboarding", component:
|
|
20
|
-
{ type: "ampOnboarding", component:
|
|
21
|
-
], c = (n) => d.value || !p.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n),
|
|
22
|
-
return
|
|
18
|
+
{ type: "versionHistoryOnboarding", component: h },
|
|
19
|
+
{ type: "ampOnboarding", component: y }
|
|
20
|
+
], c = (n) => d.value || !p.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n), f = e(() => m.filter((n) => c(n.type)));
|
|
21
|
+
return b(async () => {
|
|
23
22
|
await o.fetchUserModalState();
|
|
24
23
|
}), t(
|
|
25
24
|
() => r.isVersionHistoryOpen,
|
|
@@ -36,9 +35,9 @@ const F = /* @__PURE__ */ b({
|
|
|
36
35
|
(n) => {
|
|
37
36
|
!n && o.isActive("ampOnboarding") && o.close("ampOnboarding");
|
|
38
37
|
}
|
|
39
|
-
), { __sfc: !0,
|
|
38
|
+
), { __sfc: !0, onboardingStore: o, editorStore: r, previewStore: s, isTestPartner: a, isStripoReady: p, isTestPartnerActive: d, onboardingConfigs: m, shouldShow: c, visibleOnboardings: f };
|
|
40
39
|
}
|
|
41
40
|
});
|
|
42
41
|
export {
|
|
43
|
-
|
|
42
|
+
E as default
|
|
44
43
|
};
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { useActionsApi as f } from "./useActionsApi.js";
|
|
2
|
+
import { useCustomInterfaceAppearance as S } from "./useCustomInterfaceAppearance.js";
|
|
3
|
+
import { useStripoEventHandler as E } from "./useStripoEventHandler.js";
|
|
4
|
+
import { useToaster as C } from "./useToaster.js";
|
|
5
|
+
import { displayConditions as y } from "../enums/displayConditions.js";
|
|
6
|
+
import h from "../extensions/Blocks/Checkbox/extension.js";
|
|
7
|
+
import w from "../extensions/Blocks/RadioButton/extension.js";
|
|
8
|
+
import b from "../extensions/Blocks/Unsubscribe/extension.js";
|
|
9
|
+
import _ from "../extensions/DynamicContent/extension.js";
|
|
10
|
+
import { useStripoApi as k } from "../services/stripoApi.js";
|
|
11
|
+
import B from "../static/styles/customEditorStyle.css.js";
|
|
12
|
+
import { useEditorStore as V } from "../stores/editor.js";
|
|
10
13
|
import { dynamicContentToMergeTags as F } from "../utils/genericUtil.js";
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const t = _(), { html: n, css: l, forceRecreate: a } = r, { baseBlocks: e, extensions: c } = await f();
|
|
14
|
+
const j = (s) => {
|
|
15
|
+
const { handleError: d } = C(), { getToken: c, getCustomFonts: u } = k(), { handleEvent: l } = E(), m = (r, i = []) => {
|
|
16
|
+
const t = V(), { html: e, css: a, forceRecreate: g } = r;
|
|
15
17
|
window.UIEditor.initEditor(
|
|
16
18
|
document.querySelector("#guido-editor"),
|
|
17
19
|
{
|
|
18
|
-
metadata:
|
|
19
|
-
html:
|
|
20
|
-
css:
|
|
21
|
-
forceRecreate:
|
|
20
|
+
metadata: s,
|
|
21
|
+
html: e,
|
|
22
|
+
css: a,
|
|
23
|
+
forceRecreate: g,
|
|
22
24
|
locale: "en",
|
|
23
25
|
undoButtonSelector: "#guido__undo-button",
|
|
24
26
|
redoButtonSelector: "#guido__redo-button",
|
|
@@ -28,14 +30,13 @@ const L = (d) => {
|
|
|
28
30
|
customAppearanceMergetags: !0,
|
|
29
31
|
customAppearanceMergetagsBorderColor: "#f1f3fe",
|
|
30
32
|
customAppearanceMergetagsBackgroundColor: "#f1f3fe",
|
|
31
|
-
customViewStyles:
|
|
33
|
+
customViewStyles: B,
|
|
32
34
|
conditionsEnabled: !0,
|
|
33
35
|
customConditionsEnabled: !0,
|
|
34
|
-
conditionCategories:
|
|
36
|
+
conditionCategories: y,
|
|
35
37
|
enableXSSSecurity: !0,
|
|
36
38
|
messageSettingsEnabled: !1,
|
|
37
39
|
selectBlockAfterDropFromSettingsPanel: !0,
|
|
38
|
-
...e ? { baseBlocks: e } : {},
|
|
39
40
|
editorFonts: {
|
|
40
41
|
showDefaultStandardFonts: !0,
|
|
41
42
|
showDefaultNotStandardFonts: !0,
|
|
@@ -43,25 +44,25 @@ const L = (d) => {
|
|
|
43
44
|
},
|
|
44
45
|
mergeTags: [
|
|
45
46
|
{
|
|
46
|
-
entries: F(
|
|
47
|
+
entries: F(s.preselectedDynamicContentList)
|
|
47
48
|
}
|
|
48
49
|
],
|
|
49
50
|
async onTokenRefreshRequest(o) {
|
|
50
51
|
try {
|
|
51
|
-
const
|
|
52
|
-
o(
|
|
53
|
-
} catch (
|
|
54
|
-
|
|
52
|
+
const n = await c();
|
|
53
|
+
o(n);
|
|
54
|
+
} catch (n) {
|
|
55
|
+
d(n, "Failed to refresh token");
|
|
55
56
|
}
|
|
56
57
|
},
|
|
57
58
|
onTemplateLoaded() {
|
|
58
59
|
try {
|
|
59
|
-
const { importCss: o } =
|
|
60
|
-
o(),
|
|
60
|
+
const { importCss: o } = S(), { activateCustomViewStyles: n } = f();
|
|
61
|
+
o(), n(), s.onReady(), t.isStripoInitialized = !0, t.loadingStatus = !1, setTimeout(() => {
|
|
61
62
|
t.hasChanges = !1;
|
|
62
63
|
}, 1e3);
|
|
63
64
|
} catch (o) {
|
|
64
|
-
|
|
65
|
+
d(o, "Failed to load custom interface appearance");
|
|
65
66
|
}
|
|
66
67
|
},
|
|
67
68
|
onCodeEditorVisibilityChanged(o) {
|
|
@@ -76,35 +77,40 @@ const L = (d) => {
|
|
|
76
77
|
onDataChanged() {
|
|
77
78
|
t.hasChanges = !0;
|
|
78
79
|
},
|
|
79
|
-
onEvent:
|
|
80
|
+
onEvent: l,
|
|
80
81
|
ignoreClickOutsideSelectors: [
|
|
81
82
|
"#guido-dynamic-content-modal",
|
|
82
83
|
".in-on-board-wrapper",
|
|
83
84
|
".in-drawer__container"
|
|
84
85
|
],
|
|
85
|
-
extensions:
|
|
86
|
+
extensions: [
|
|
87
|
+
_,
|
|
88
|
+
h,
|
|
89
|
+
w,
|
|
90
|
+
b
|
|
91
|
+
]
|
|
86
92
|
}
|
|
87
93
|
);
|
|
88
|
-
},
|
|
89
|
-
var c;
|
|
94
|
+
}, p = (r) => new Promise((i, t) => {
|
|
90
95
|
if (document.getElementById("UiEditorScript")) {
|
|
91
96
|
r(), i();
|
|
92
97
|
return;
|
|
93
98
|
}
|
|
94
|
-
const
|
|
95
|
-
e.id = "UiEditorScript", e.type = "module", e.src =
|
|
99
|
+
const e = document.createElement("script");
|
|
100
|
+
e.id = "UiEditorScript", e.type = "module", e.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", e.onload = () => {
|
|
96
101
|
r(), i();
|
|
97
102
|
}, e.onerror = () => {
|
|
98
|
-
|
|
103
|
+
const a = new Error("Failed to load Stripo UIEditor script");
|
|
104
|
+
t(a);
|
|
99
105
|
}, document.body.appendChild(e);
|
|
100
106
|
});
|
|
101
107
|
return { initPlugin: async (r) => {
|
|
102
|
-
await
|
|
103
|
-
const i = await
|
|
104
|
-
|
|
108
|
+
await p(async () => {
|
|
109
|
+
const i = await u();
|
|
110
|
+
m(r, i);
|
|
105
111
|
});
|
|
106
112
|
} };
|
|
107
113
|
};
|
|
108
114
|
export {
|
|
109
|
-
|
|
115
|
+
j as useStripo
|
|
110
116
|
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { migrateCheckbox as m } from "./checkboxMigrator.js";
|
|
2
|
-
import { migrateCouponBlock as o } from "./couponBlockMigrator.js";
|
|
3
2
|
import { migrateRadioButton as i } from "./radioButtonMigrator.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return r = m(r), r = i(r), r = await a(r), r = o(r), r = e(r), r;
|
|
3
|
+
import { migrateUnsubscribe as o } from "./unsubscribeMigrator.js";
|
|
4
|
+
const n = async (r) => {
|
|
5
|
+
let t = r;
|
|
6
|
+
return t = m(t), t = i(t), t = await o(t), t;
|
|
9
7
|
};
|
|
10
8
|
export {
|
|
11
|
-
|
|
9
|
+
n as migrate
|
|
12
10
|
};
|
package/dist/enums/defaults.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a = {
|
|
2
2
|
translationsPath: "window.trans.en",
|
|
3
|
-
migrationDate: 1759696858,
|
|
4
3
|
emailHeader: {
|
|
5
4
|
senderName: "",
|
|
6
5
|
subject: ""
|
|
@@ -8,24 +7,18 @@ const e = {
|
|
|
8
7
|
extensions: {
|
|
9
8
|
unsubscribe: !0
|
|
10
9
|
},
|
|
11
|
-
blocks: {
|
|
12
|
-
excludeDefaults: [],
|
|
13
|
-
includeCustoms: []
|
|
14
|
-
},
|
|
15
10
|
features: {
|
|
16
11
|
dynamicContent: !0,
|
|
17
12
|
saveAsTemplate: !0,
|
|
18
|
-
versionHistory: !0
|
|
19
|
-
testMessage: !0
|
|
13
|
+
versionHistory: !0
|
|
20
14
|
},
|
|
21
15
|
useHeader: !0
|
|
22
16
|
}, t = {
|
|
23
17
|
promotional: 1,
|
|
24
18
|
transactional: 2
|
|
25
|
-
},
|
|
19
|
+
}, e = "email", o = "Guido User", n = t.promotional, s = 2, i = {
|
|
26
20
|
email: 60,
|
|
27
|
-
architect: 49
|
|
28
|
-
unsubscribePages: 97
|
|
21
|
+
architect: 49
|
|
29
22
|
}, u = [
|
|
30
23
|
"alfredtesting",
|
|
31
24
|
"electio",
|
|
@@ -59,11 +52,11 @@ const e = {
|
|
|
59
52
|
"stripoeditorlivetest"
|
|
60
53
|
];
|
|
61
54
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
a as DefaultGuidoConfig,
|
|
56
|
+
n as DefaultMessageType,
|
|
57
|
+
e as DefaultProductType,
|
|
65
58
|
o as DefaultUsername,
|
|
66
|
-
|
|
59
|
+
s as EditorType,
|
|
67
60
|
i as ProductIds,
|
|
68
61
|
u as TEST_PARTNER_LIST,
|
|
69
62
|
t as TemplateTypes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SERVICE_HOVER_SELECTORS: string[];
|
package/dist/enums/onboarding.js
CHANGED
|
@@ -2,8 +2,7 @@ const e = [
|
|
|
2
2
|
".service-element.stacked-panel-item.ng-tns-c1014751574-3.level-bottom-0.ng-star-inserted",
|
|
3
3
|
".service-element.stacked-panel-item.ng-tns-c1014751574-3.level-bottom-1.ng-star-inserted",
|
|
4
4
|
".service-element.stacked-panel-item.ng-tns-c1014751574-3.level-bottom-2.ng-star-inserted"
|
|
5
|
-
]
|
|
5
|
+
];
|
|
6
6
|
export {
|
|
7
|
-
t as ACADEMY_LINK,
|
|
8
7
|
e as SERVICE_HOVER_SELECTORS
|
|
9
8
|
};
|
|
@@ -13,10 +13,6 @@ export declare const URLS: {
|
|
|
13
13
|
PREFERENCES_URL: string;
|
|
14
14
|
};
|
|
15
15
|
export declare const INSIDER_ID = "iid";
|
|
16
|
-
export declare const DEFAULT_UNSUBSCRIBE_GROUP: {
|
|
17
|
-
readonly name: "Global Unsubscribe";
|
|
18
|
-
readonly sendGridId: "G";
|
|
19
|
-
};
|
|
20
16
|
export declare const ACADEMY_LINK = "https://academy.useinsider.com/docs/global-unsubscribe-preference-center";
|
|
21
17
|
export declare const UNSUBSCRIBE_PAGES_LINK = "/email/unsubscribe-pages";
|
|
22
18
|
export declare const PAGE_TYPES: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTranslations as e } from "../composables/useTranslations.js";
|
|
2
|
-
const s = e(),
|
|
2
|
+
const s = e(), n = {
|
|
3
3
|
UNSUBSCRIBE_LINK_TYPE: 1,
|
|
4
4
|
PREFERENCES_LINK_TYPE: 3
|
|
5
5
|
}, S = {
|
|
@@ -10,16 +10,13 @@ const s = e(), R = {
|
|
|
10
10
|
}, N = {
|
|
11
11
|
UNSUBSCRIBE_URL: "https://mail.useinsider.com/user/v1/unsub",
|
|
12
12
|
PREFERENCES_URL: "https://mail.useinsider.com/user/v1/prefs"
|
|
13
|
-
}, _ = {
|
|
14
|
-
name: "Global Unsubscribe",
|
|
15
|
-
sendGridId: "G"
|
|
16
|
-
}, I = "https://academy.useinsider.com/docs/global-unsubscribe-preference-center", r = "/email/unsubscribe-pages", E = {
|
|
13
|
+
}, _ = "https://academy.useinsider.com/docs/global-unsubscribe-preference-center", I = "/email/unsubscribe-pages", E = {
|
|
17
14
|
GLOBAL_UNSUBSCRIBE: 1,
|
|
18
15
|
GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE: 2,
|
|
19
16
|
SUBSCRIPTION_PREFERENCE_CENTER: 3,
|
|
20
17
|
SUBSCRIPTION_PREFERENCE_CONFIRMATION: 4,
|
|
21
18
|
RESUBSCRIBE: 5
|
|
22
|
-
},
|
|
19
|
+
}, r = {
|
|
23
20
|
[E.GLOBAL_UNSUBSCRIBE]: [
|
|
24
21
|
E.GLOBAL_UNSUBSCRIBE,
|
|
25
22
|
E.GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE,
|
|
@@ -29,26 +26,25 @@ const s = e(), R = {
|
|
|
29
26
|
E.SUBSCRIPTION_PREFERENCE_CENTER,
|
|
30
27
|
E.SUBSCRIPTION_PREFERENCE_CONFIRMATION
|
|
31
28
|
]
|
|
32
|
-
},
|
|
29
|
+
}, i = {
|
|
33
30
|
[E.GLOBAL_UNSUBSCRIBE]: s("unsubscription-preference.type-global-unsubscribe"),
|
|
34
31
|
[E.GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE]: s("unsubscription-preference.type-global-unsubscription-confirmation"),
|
|
35
32
|
[E.RESUBSCRIBE]: s("unsubscription-preference.type-resubscribe"),
|
|
36
33
|
[E.SUBSCRIPTION_PREFERENCE_CENTER]: s("unsubscription-preference.type-subscription-preferences-center"),
|
|
37
34
|
[E.SUBSCRIPTION_PREFERENCE_CONFIRMATION]: s("unsubscription-preference.type-subscription-preferences-confirmation")
|
|
38
|
-
},
|
|
35
|
+
}, B = {
|
|
39
36
|
default: "{{ins-unsubscribe-link}}",
|
|
40
37
|
[E.GLOBAL_UNSUBSCRIBE]: "{{ins-global-unsubscribe-link}}",
|
|
41
38
|
[E.SUBSCRIPTION_PREFERENCE_CENTER]: "{{ins-preferences-unsubscribe-link}}"
|
|
42
39
|
};
|
|
43
40
|
export {
|
|
44
|
-
|
|
45
|
-
_ as DEFAULT_UNSUBSCRIBE_GROUP,
|
|
41
|
+
_ as ACADEMY_LINK,
|
|
46
42
|
S as LINK_REGEXES,
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
n as LINK_TYPES,
|
|
44
|
+
B as MERGE_TAGS,
|
|
49
45
|
E as PAGE_TYPES,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
r as TYPE_COLLECTIONS,
|
|
47
|
+
i as TYPE_TRANSLATIONS,
|
|
48
|
+
I as UNSUBSCRIBE_PAGES_LINK,
|
|
53
49
|
N as URLS
|
|
54
50
|
};
|
|
@@ -1,92 +1,90 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { useHttp as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class S extends h {
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var c = (r, s, t) => s in r ? E(r, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[s] = t;
|
|
3
|
+
var a = (r, s, t) => c(r, typeof s != "symbol" ? s + "" : s, t);
|
|
4
|
+
import { useHttp as l } from "../../../composables/useHttp.js";
|
|
5
|
+
import { Control as d, UIElementType as n, UEAttr as e, ModificationDescription as L } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
6
|
+
const p = "ui-elements-checkbox", o = "select", { get: h } = l();
|
|
7
|
+
class b extends d {
|
|
9
8
|
constructor() {
|
|
10
9
|
super(...arguments);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
a(this, "currentNode");
|
|
11
|
+
a(this, "selectedUnsubGroup");
|
|
12
|
+
a(this, "unsubList", []);
|
|
14
13
|
}
|
|
15
14
|
getId() {
|
|
16
|
-
return
|
|
15
|
+
return p;
|
|
17
16
|
}
|
|
18
17
|
_setFormValues() {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const s = e === u.sendGridId ? e : Number(e);
|
|
23
|
-
s && (this.selectedUnsubGroup = s, this.api.updateValues({
|
|
24
|
-
[a]: this.selectedUnsubGroup
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
18
|
+
this.api.updateValues({
|
|
19
|
+
[o]: ""
|
|
20
|
+
});
|
|
28
21
|
}
|
|
29
|
-
_getLabel(
|
|
22
|
+
_getLabel(t, i = `${Math.random()}`) {
|
|
30
23
|
return `
|
|
31
|
-
<${
|
|
32
|
-
${
|
|
33
|
-
${
|
|
34
|
-
</${
|
|
24
|
+
<${n.LABEL}
|
|
25
|
+
${e.LABEL.text}="${t}"
|
|
26
|
+
${e.LABEL.name}="${i}">
|
|
27
|
+
</${n.LABEL}>
|
|
35
28
|
`;
|
|
36
29
|
}
|
|
37
|
-
_getSelectItem(
|
|
30
|
+
_getSelectItem(t, i) {
|
|
38
31
|
return `
|
|
39
|
-
<${
|
|
40
|
-
${
|
|
41
|
-
${
|
|
42
|
-
</${
|
|
32
|
+
<${n.SELECT_ITEM}
|
|
33
|
+
${e.SELECT_ITEM.text}="${t}"
|
|
34
|
+
${e.SELECT_ITEM.value}="${i}">
|
|
35
|
+
</${n.SELECT_ITEM}>`;
|
|
43
36
|
}
|
|
44
37
|
_getSelect() {
|
|
45
|
-
return this.unsubList.map((
|
|
38
|
+
return this.unsubList.map((t) => this._getSelectItem(t.name, t.sendGridId)).join("");
|
|
46
39
|
}
|
|
47
40
|
getTemplate() {
|
|
48
41
|
return `
|
|
49
42
|
<div class="checkbox-controls-container">
|
|
50
43
|
<div class="checkbox-select-container container two-columns stretch">
|
|
51
|
-
<${
|
|
52
|
-
${
|
|
53
|
-
${
|
|
54
|
-
</${
|
|
44
|
+
<${n.LABEL}
|
|
45
|
+
${e.LABEL.text}="${this.api.translate("Unsubscribe Group")}"
|
|
46
|
+
${e.LABEL.name}="${Math.random()}">
|
|
47
|
+
</${n.LABEL}>
|
|
55
48
|
|
|
56
|
-
<${
|
|
57
|
-
${
|
|
58
|
-
${
|
|
49
|
+
<${n.SELECTPICKER}
|
|
50
|
+
${e.SELECTPICKER.name}="${o}"
|
|
51
|
+
${e.SELECTPICKER.placeholder}="${this.api.translate("Select Unsubscribe Group")}">
|
|
59
52
|
${this._getSelect()}
|
|
60
|
-
</${
|
|
53
|
+
</${n.SELECTPICKER}>
|
|
61
54
|
</div>
|
|
62
55
|
</div>
|
|
63
56
|
`;
|
|
64
57
|
}
|
|
65
|
-
_onSelectChange(
|
|
66
|
-
this.currentNode && this.api.getDocumentModifier().modifyHtml(this.currentNode).setAttribute("id",
|
|
58
|
+
_onSelectChange(t) {
|
|
59
|
+
this.currentNode && this.api.getDocumentModifier().modifyHtml(this.currentNode).setAttribute("id", t.toString()).apply(new L(`Updated text to ${t}`));
|
|
67
60
|
}
|
|
68
61
|
_listenToFormUpdates() {
|
|
69
|
-
this.api.onValueChanged(
|
|
62
|
+
this.api.onValueChanged(o, (t) => this._onSelectChange(t));
|
|
70
63
|
}
|
|
71
|
-
onTemplateNodeUpdated(
|
|
72
|
-
this.currentNode =
|
|
64
|
+
onTemplateNodeUpdated(t) {
|
|
65
|
+
if (this.currentNode = t, "getAttribute" in t) {
|
|
66
|
+
const i = Number(t.getAttribute("id"));
|
|
67
|
+
i && (this.selectedUnsubGroup = i, this.api.updateValues({
|
|
68
|
+
[o]: this.selectedUnsubGroup
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
73
71
|
}
|
|
74
72
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
75
73
|
async onRender() {
|
|
76
|
-
const
|
|
74
|
+
const t = await h(
|
|
77
75
|
"/unsubscribe-groups/unsubscribe-list"
|
|
78
|
-
),
|
|
79
|
-
[
|
|
80
|
-
[
|
|
76
|
+
), i = t.data.map((u) => ({
|
|
77
|
+
[e.SELECT_ITEM.text]: u.name,
|
|
78
|
+
[e.SELECT_ITEM.value]: u.sendGridId
|
|
81
79
|
}));
|
|
82
|
-
this.unsubList =
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
this.unsubList = t.data, this.api.setUIEAttribute(
|
|
81
|
+
o,
|
|
82
|
+
e.SELECTPICKER.items,
|
|
83
|
+
i
|
|
86
84
|
), this._setFormValues(), this._listenToFormUpdates();
|
|
87
85
|
}
|
|
88
86
|
}
|
|
89
87
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
p as CHECKBOX_CONTROL_BLOCK_ID,
|
|
89
|
+
b as CheckboxControl
|
|
92
90
|
};
|
|
@@ -3,7 +3,7 @@ import { CheckboxBlock as t } from "./block.js";
|
|
|
3
3
|
import { CheckboxControl as e } from "./control.js";
|
|
4
4
|
import { CheckboxIconsRegistry as r } from "./iconsRegistry.js";
|
|
5
5
|
import { CheckboxBlockSettings as i } from "./settingsPanel.js";
|
|
6
|
-
const
|
|
6
|
+
const k = new o().addBlock(t).withSettingsPanelRegistry(i).addControl(e).withIconsRegistry(r).build();
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
k as default
|
|
9
9
|
};
|