@useinsider/guido 1.0.3-beta.fc5a751 → 1.0.3-beta.ff71e68
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 -144
- package/dist/@types/generic.d.ts +49 -0
- package/dist/{src/components → components}/Guido.vue.d.ts +3 -5
- package/dist/components/Guido.vue.js +9 -11
- package/dist/components/Guido.vue2.js +69 -81
- 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/header/RightSlot.vue2.js +22 -23
- 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/{src/components → components}/wrappers/WpDrawer.vue.d.ts +4 -6
- package/dist/components/wrappers/WpDrawer.vue.js +4 -6
- package/dist/{src/composables → composables}/useGuidoActions.d.ts +0 -9
- package/dist/composables/useGuidoActions.js +9 -19
- package/dist/composables/useStripo.js +53 -53
- package/dist/config/compiler/unsubscribeCompilerRules.js +29 -47
- package/dist/config/migrator/index.d.ts +1 -0
- package/dist/config/migrator/index.js +7 -9
- package/dist/enums/defaults.js +9 -20
- package/dist/enums/onboarding.d.ts +1 -0
- package/dist/enums/onboarding.js +1 -2
- package/dist/enums/unsubscribe.d.ts +15 -0
- package/dist/enums/unsubscribe.js +7 -46
- package/dist/extensions/Blocks/Checkbox/control.js +31 -35
- package/dist/extensions/Blocks/Checkbox/extension.js +2 -2
- package/dist/extensions/Blocks/CouponBlock/extension.js +2 -2
- package/dist/extensions/Blocks/RadioButton/control.js +31 -35
- package/dist/extensions/Blocks/RadioButton/template.js +6 -6
- package/dist/extensions/DynamicContent/dynamic-content-modal.d.ts +6 -0
- package/dist/extensions/DynamicContent/dynamic-content-modal.js +19 -25
- package/dist/extensions/DynamicContent/dynamic-content.d.ts +16 -0
- package/dist/extensions/DynamicContent/dynamic-content.js +33 -128
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +93 -312
- 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}/dynamic-content.d.ts +3 -3
- package/dist/stores/dynamic-content.js +2 -2
- package/dist/{src/stores → stores}/editor.d.ts +1 -22
- package/dist/stores/editor.js +2 -3
- package/dist/{src/stores → stores}/onboarding.d.ts +1 -1
- package/dist/stores/onboarding.js +27 -27
- package/dist/{src/stores → stores}/preview.d.ts +1 -1
- package/dist/stores/preview.js +1 -1
- package/dist/{src/stores → stores}/recommendation.d.ts +1 -1
- package/dist/stores/recommendation.js +3 -3
- package/dist/{src/stores → stores}/save-as-template.d.ts +1 -1
- package/dist/stores/save-as-template.js +2 -2
- package/dist/{src/stores → stores}/toaster.d.ts +1 -1
- package/dist/stores/toaster.js +1 -1
- package/dist/stores/unsubscribe.d.ts +8 -0
- package/dist/stores/unsubscribe.js +6 -126
- package/dist/{src/stores → stores}/version-history.d.ts +1 -1
- package/dist/stores/version-history.js +4 -4
- package/dist/utils/dateUtil.d.ts +1 -0
- package/dist/utils/dateUtil.js +3 -24
- package/dist/{src/utils → utils}/genericUtil.d.ts +0 -2
- package/dist/utils/genericUtil.js +11 -23
- package/dist/utils/templatePreparation.js +16 -17
- package/package.json +4 -9
- 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/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +0 -16
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +0 -24
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +0 -64
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +0 -107
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +0 -12
- package/dist/composables/useBlocksConfig.js +0 -49
- package/dist/config/migrator/recommendationMigrator.js +0 -293
- package/dist/config/migrator/unsubscribeMigrator.js +0 -124
- package/dist/enums/date.js +0 -6
- package/dist/enums/extensions/recommendationBlock.js +0 -80
- 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/Unsubscribe/block.js +0 -131
- package/dist/extensions/Blocks/Unsubscribe/control.js +0 -167
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +0 -42
- package/dist/extensions/Blocks/Unsubscribe/extension.js +0 -21
- package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.js +0 -21
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +0 -35
- package/dist/extensions/Blocks/Unsubscribe/styles.css.js +0 -42
- package/dist/extensions/Blocks/Unsubscribe/tagRegistry.js +0 -10
- package/dist/extensions/Blocks/Unsubscribe/template.js +0 -22
- package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +0 -11
- package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +0 -6
- 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/services/unsubscribeApi.js +0 -16
- package/dist/src/@types/generic.d.ts +0 -98
- 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/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -2
- package/dist/src/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -2
- package/dist/src/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -2
- package/dist/src/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -2
- package/dist/src/composables/useBlocksConfig.d.ts +0 -11
- package/dist/src/config/migrator/index.d.ts +0 -1
- package/dist/src/config/migrator/recommendationMigrator.d.ts +0 -1
- package/dist/src/config/migrator/unsubscribeMigrator.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/enums/unsubscribe.d.ts +0 -38
- 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/Unsubscribe/block.d.ts +0 -32
- package/dist/src/extensions/Blocks/Unsubscribe/control.d.ts +0 -29
- package/dist/src/extensions/Blocks/Unsubscribe/elements/preview.d.ts +0 -11
- package/dist/src/extensions/Blocks/Unsubscribe/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +0 -4
- package/dist/src/extensions/Blocks/Unsubscribe/tagRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/Unsubscribe/template.d.ts +0 -12
- package/dist/src/extensions/Blocks/Unsubscribe/utils/constants.d.ts +0 -9
- package/dist/src/extensions/Blocks/Unsubscribe/utils/utils.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/dynamic-content-modal.d.ts +0 -13
- package/dist/src/extensions/DynamicContent/dynamic-content.d.ts +0 -66
- 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/services/unsubscribeApi.d.ts +0 -4
- package/dist/src/stores/config.d.ts +0 -104
- package/dist/src/stores/unsubscribe.d.ts +0 -256
- package/dist/src/utils/dateUtil.d.ts +0 -22
- package/dist/src/utils/environmentUtil.d.ts +0 -5
- package/dist/stores/config.js +0 -17
- package/dist/utils/environmentUtil.js +0 -4
- 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}/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}/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/couponBlockMigrator.d.ts +0 -0
- /package/dist/{src/config → config}/migrator/radioButtonMigrator.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/CouponBlock/block.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/extension.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/iconsRegistry.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/settingsPanel.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/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 → 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/_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/Recommendation → extensions/Blocks/_Boilerplate}/settingsPanel.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/template.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/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,41 +1,23 @@
|
|
|
1
|
-
import { usePartner as
|
|
2
|
-
import { LINK_REGEXES as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { useDynamicContentStore as y } from "../../stores/dynamic-content.js";
|
|
6
|
-
import { useUnsubscribeStore as L } from "../../stores/unsubscribe.js";
|
|
7
|
-
const D = [
|
|
1
|
+
import { usePartner as m } from "../../composables/usePartner.js";
|
|
2
|
+
import { LINK_REGEXES as c, LINK_TYPES as p, URLS as E } from "../../enums/unsubscribe.js";
|
|
3
|
+
import { useUnsubscribeStore as b } from "../../stores/unsubscribe.js";
|
|
4
|
+
const S = [
|
|
8
5
|
{
|
|
9
6
|
id: "add-unsubscribe-link-values",
|
|
10
7
|
description: "Adding unsubscribe link values",
|
|
11
8
|
type: "custom",
|
|
12
|
-
processor: (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
(o) => R.includes(o.id)
|
|
25
|
-
)) ?? [], _ = d.some((o) => o.type === g.UNSUBSCRIBE_LINK_TYPE), I = d.some((o) => o.type === g.PREFERENCES_LINK_TYPE), E = p.outerHTML;
|
|
26
|
-
let s = E;
|
|
27
|
-
_ && (n.selectedDynamicContentList.push({
|
|
28
|
-
text: f,
|
|
29
|
-
value: f,
|
|
30
|
-
fallback: ""
|
|
31
|
-
}), s = s.replace(
|
|
32
|
-
l.GLOBAL_UNSUBSCRIBE_LINK_REGEX,
|
|
33
|
-
S.UNSUBSCRIBE_URL + r
|
|
34
|
-
)), I && (s = s.replace(
|
|
35
|
-
l.PREFERENCES_UNSUBSCRIBE_LINK_REGEX,
|
|
36
|
-
S.PREFERENCES_URL + r
|
|
37
|
-
)), s = s.replace(l.UNSUBSCRIBE_LINK_REGEX, ""), e = e.replace(E, s);
|
|
38
|
-
}), e;
|
|
9
|
+
processor: (n) => {
|
|
10
|
+
var a, u;
|
|
11
|
+
const { getPartnerName: i } = m(), t = b();
|
|
12
|
+
let e = n;
|
|
13
|
+
const o = `/${i()}/email/0?user={{iid}}`, r = (a = t.selectedUnsubscribePages) == null ? void 0 : a.find((l) => l.type === p.UNSUBSCRIBE_LINK_TYPE), s = (u = t.selectedUnsubscribePages) == null ? void 0 : u.find((l) => l.type === p.PREFERENCES_LINK_TYPE);
|
|
14
|
+
return r && (e = e.replace(
|
|
15
|
+
c.GLOBAL_UNSUBSCRIBE_LINK_REGEX,
|
|
16
|
+
E.UNSUBSCRIBE_URL + o
|
|
17
|
+
)), s && (e = e.replace(
|
|
18
|
+
c.PREFERENCES_UNSUBSCRIBE_LINK_REGEX,
|
|
19
|
+
E.PREFERENCES_URL + o
|
|
20
|
+
)), e.replace(c.UNSUBSCRIBE_LINK_REGEX, "");
|
|
39
21
|
},
|
|
40
22
|
priority: 60
|
|
41
23
|
},
|
|
@@ -43,7 +25,7 @@ const D = [
|
|
|
43
25
|
id: "remove-data-ogsb-button-styles",
|
|
44
26
|
description: "Removing styles like [data-ogsb] .es-button.es-button-123 { background: red; }",
|
|
45
27
|
type: "regex",
|
|
46
|
-
pattern:
|
|
28
|
+
pattern: c.DATA_OGSB_BUTTON_CSS_REGEX,
|
|
47
29
|
replacement: "",
|
|
48
30
|
flags: "g",
|
|
49
31
|
priority: 61
|
|
@@ -52,25 +34,25 @@ const D = [
|
|
|
52
34
|
id: "format-comment-braces",
|
|
53
35
|
description: "Adding spaces around comment braces for proper formatting",
|
|
54
36
|
type: "custom",
|
|
55
|
-
processor: (
|
|
37
|
+
processor: (n) => n.replace(/{#/g, "{ #").replace(/#}/g, "# }"),
|
|
56
38
|
priority: 62
|
|
57
39
|
},
|
|
58
40
|
{
|
|
59
41
|
id: "add-universal-link-flags",
|
|
60
42
|
description: "Adding universal link flags",
|
|
61
43
|
type: "custom",
|
|
62
|
-
processor: (
|
|
63
|
-
let i =
|
|
64
|
-
const
|
|
65
|
-
return
|
|
66
|
-
if (
|
|
44
|
+
processor: (n) => {
|
|
45
|
+
let i = n;
|
|
46
|
+
const t = i.match(/<a[^>]+>(.*?)<\/a>/gm);
|
|
47
|
+
return t && t.forEach((e) => {
|
|
48
|
+
if (e.includes("insEmail=1"))
|
|
67
49
|
return;
|
|
68
|
-
if (
|
|
69
|
-
const
|
|
70
|
-
const
|
|
71
|
-
return
|
|
50
|
+
if (e.match(/<a\s+(?:[^>]*?\s+)?href=(["'`”])(.*?)\1\s+(?:[^>]*?\s+)?universal=(["'`”])true\3/gm)) {
|
|
51
|
+
const o = e.replace(/href=(["'`”])(.*?)\1/gm, (r) => {
|
|
52
|
+
const s = r.slice(6, r.length - 1).trim();
|
|
53
|
+
return r.includes("?") || r.includes("#") ? s.slice(-1) === "&" ? r.replace(s, `${s}insEmail=1`) : r.replace(s, `${s}&insEmail=1`) : r.replace(s, `${s}?insEmail=1`);
|
|
72
54
|
});
|
|
73
|
-
i = i.replace(
|
|
55
|
+
i = i.replace(e, o);
|
|
74
56
|
}
|
|
75
57
|
}), i;
|
|
76
58
|
},
|
|
@@ -78,5 +60,5 @@ const D = [
|
|
|
78
60
|
}
|
|
79
61
|
];
|
|
80
62
|
export {
|
|
81
|
-
|
|
63
|
+
S as unsubscribeCompilerRules
|
|
82
64
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const migrate: (html: string) => string;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { migrateCheckbox as
|
|
2
|
-
import { migrateCouponBlock as
|
|
3
|
-
import { migrateRadioButton as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let r = t;
|
|
8
|
-
return r = m(r), r = i(r), r = await a(r), r = o(r), r = e(r), r;
|
|
1
|
+
import { migrateCheckbox as r } from "./checkboxMigrator.js";
|
|
2
|
+
import { migrateCouponBlock as m } from "./couponBlockMigrator.js";
|
|
3
|
+
import { migrateRadioButton as e } from "./radioButtonMigrator.js";
|
|
4
|
+
const p = (o) => {
|
|
5
|
+
let t = o;
|
|
6
|
+
return t = r(t), t = e(t), t = m(t), t;
|
|
9
7
|
};
|
|
10
8
|
export {
|
|
11
|
-
|
|
9
|
+
p as migrate
|
|
12
10
|
};
|
package/dist/enums/defaults.js
CHANGED
|
@@ -1,32 +1,21 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a = {
|
|
2
2
|
translationsPath: "window.trans.en",
|
|
3
|
-
migrationDate: 1759696858,
|
|
4
3
|
emailHeader: {
|
|
5
4
|
senderName: "",
|
|
6
5
|
subject: ""
|
|
7
6
|
},
|
|
8
|
-
extensions: {
|
|
9
|
-
unsubscribe: !0
|
|
10
|
-
},
|
|
11
|
-
blocks: {
|
|
12
|
-
excludeDefaults: [],
|
|
13
|
-
includeCustoms: []
|
|
14
|
-
},
|
|
15
7
|
features: {
|
|
16
8
|
dynamicContent: !0,
|
|
17
9
|
saveAsTemplate: !0,
|
|
18
|
-
versionHistory: !0
|
|
19
|
-
testMessage: !0,
|
|
20
|
-
displayConditions: !0
|
|
10
|
+
versionHistory: !0
|
|
21
11
|
},
|
|
22
12
|
useHeader: !0
|
|
23
13
|
}, t = {
|
|
24
14
|
promotional: 1,
|
|
25
15
|
transactional: 2
|
|
26
|
-
},
|
|
16
|
+
}, e = "email", o = "Guido User", n = t.promotional, i = 2, s = {
|
|
27
17
|
email: 60,
|
|
28
|
-
architect: 49
|
|
29
|
-
unsubscribePages: 97
|
|
18
|
+
architect: 49
|
|
30
19
|
}, u = [
|
|
31
20
|
"alfredtesting",
|
|
32
21
|
"electio",
|
|
@@ -60,12 +49,12 @@ const e = {
|
|
|
60
49
|
"stripoeditorlivetest"
|
|
61
50
|
];
|
|
62
51
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
52
|
+
a as DefaultGuidoConfig,
|
|
53
|
+
n as DefaultMessageType,
|
|
54
|
+
e as DefaultProductType,
|
|
66
55
|
o as DefaultUsername,
|
|
67
|
-
|
|
68
|
-
|
|
56
|
+
i as EditorType,
|
|
57
|
+
s as ProductIds,
|
|
69
58
|
u as TEST_PARTNER_LIST,
|
|
70
59
|
t as TemplateTypes
|
|
71
60
|
};
|
|
@@ -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
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const LINK_TYPES: {
|
|
2
|
+
UNSUBSCRIBE_LINK_TYPE: number;
|
|
3
|
+
PREFERENCES_LINK_TYPE: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const LINK_REGEXES: {
|
|
6
|
+
UNSUBSCRIBE_LINK_REGEX: RegExp;
|
|
7
|
+
DATA_OGSB_BUTTON_CSS_REGEX: string;
|
|
8
|
+
GLOBAL_UNSUBSCRIBE_LINK_REGEX: RegExp;
|
|
9
|
+
PREFERENCES_UNSUBSCRIBE_LINK_REGEX: RegExp;
|
|
10
|
+
};
|
|
11
|
+
export declare const URLS: {
|
|
12
|
+
UNSUBSCRIBE_URL: string;
|
|
13
|
+
PREFERENCES_URL: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const INSIDER_ID = "iid";
|
|
@@ -1,56 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import { getEnvironmentPrefix as R } from "../utils/environmentUtil.js";
|
|
3
|
-
const e = n(), I = {
|
|
1
|
+
const E = {
|
|
4
2
|
UNSUBSCRIBE_LINK_TYPE: 1,
|
|
5
3
|
PREFERENCES_LINK_TYPE: 3
|
|
6
|
-
},
|
|
4
|
+
}, s = {
|
|
7
5
|
UNSUBSCRIBE_LINK_REGEX: /{{ins-unsubscribe-link}}/g,
|
|
8
6
|
DATA_OGSB_BUTTON_CSS_REGEX: "\\[data-ogsb\\]\\s*\\.es-button\\.es-button-[0-9]+\\s*\\{(?:[^\\}]*)\\}",
|
|
9
7
|
GLOBAL_UNSUBSCRIBE_LINK_REGEX: /{{ins-global-unsubscribe-link}}/g,
|
|
10
8
|
PREFERENCES_UNSUBSCRIBE_LINK_REGEX: /{{ins-preferences-unsubscribe-link}}/g
|
|
11
|
-
},
|
|
12
|
-
UNSUBSCRIBE_URL:
|
|
13
|
-
PREFERENCES_URL:
|
|
14
|
-
}, i = "iid", B = {
|
|
15
|
-
name: "Global Unsubscribe",
|
|
16
|
-
sendGridId: "G"
|
|
17
|
-
}, C = "https://academy.useinsider.com/docs/global-unsubscribe-preference-center", c = "/email/unsubscribe-pages", E = {
|
|
18
|
-
GLOBAL_UNSUBSCRIBE: 1,
|
|
19
|
-
GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE: 2,
|
|
20
|
-
SUBSCRIPTION_PREFERENCE_CENTER: 3,
|
|
21
|
-
SUBSCRIPTION_PREFERENCE_CONFIRMATION: 4,
|
|
22
|
-
RESUBSCRIBE: 5
|
|
23
|
-
}, t = {
|
|
24
|
-
[E.GLOBAL_UNSUBSCRIBE]: [
|
|
25
|
-
E.GLOBAL_UNSUBSCRIBE,
|
|
26
|
-
E.GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE,
|
|
27
|
-
E.RESUBSCRIBE
|
|
28
|
-
],
|
|
29
|
-
[E.SUBSCRIPTION_PREFERENCE_CENTER]: [
|
|
30
|
-
E.SUBSCRIPTION_PREFERENCE_CENTER,
|
|
31
|
-
E.SUBSCRIPTION_PREFERENCE_CONFIRMATION
|
|
32
|
-
]
|
|
33
|
-
}, U = {
|
|
34
|
-
[E.GLOBAL_UNSUBSCRIBE]: e("unsubscription-preference.type-global-unsubscribe"),
|
|
35
|
-
[E.GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE]: e("unsubscription-preference.type-global-unsubscription-confirmation"),
|
|
36
|
-
[E.RESUBSCRIBE]: e("unsubscription-preference.type-resubscribe"),
|
|
37
|
-
[E.SUBSCRIPTION_PREFERENCE_CENTER]: e("unsubscription-preference.type-subscription-preferences-center"),
|
|
38
|
-
[E.SUBSCRIPTION_PREFERENCE_CONFIRMATION]: e("unsubscription-preference.type-subscription-preferences-confirmation")
|
|
39
|
-
}, o = {
|
|
40
|
-
default: "{{ins-unsubscribe-link}}",
|
|
41
|
-
[E.GLOBAL_UNSUBSCRIBE]: "{{ins-global-unsubscribe-link}}",
|
|
42
|
-
[E.SUBSCRIPTION_PREFERENCE_CENTER]: "{{ins-preferences-unsubscribe-link}}"
|
|
9
|
+
}, _ = {
|
|
10
|
+
UNSUBSCRIBE_URL: "https://mail.useinsider.com/user/v1/unsub",
|
|
11
|
+
PREFERENCES_URL: "https://mail.useinsider.com/user/v1/prefs"
|
|
43
12
|
};
|
|
44
13
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
i as INSIDER_ID,
|
|
48
|
-
r as LINK_REGEXES,
|
|
49
|
-
I as LINK_TYPES,
|
|
50
|
-
o as MERGE_TAGS,
|
|
51
|
-
E as PAGE_TYPES,
|
|
52
|
-
t as TYPE_COLLECTIONS,
|
|
53
|
-
U as TYPE_TRANSLATIONS,
|
|
54
|
-
c as UNSUBSCRIBE_PAGES_LINK,
|
|
14
|
+
s as LINK_REGEXES,
|
|
15
|
+
E as LINK_TYPES,
|
|
55
16
|
_ as URLS
|
|
56
17
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var o = (r,
|
|
4
|
-
import { useHttp as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class S extends h {
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var E = (r, s, e) => s in r ? u(r, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[s] = e;
|
|
3
|
+
var o = (r, s, e) => E(r, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
import { useHttp as d } from "../../../composables/useHttp.js";
|
|
5
|
+
import { Control as l, UIElementType as n, UEAttr as t, ModificationDescription as L } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
6
|
+
const h = "ui-elements-checkbox", a = "select", { get: p } = d();
|
|
7
|
+
class b extends l {
|
|
9
8
|
constructor() {
|
|
10
9
|
super(...arguments);
|
|
11
10
|
o(this, "currentNode");
|
|
@@ -13,33 +12,30 @@ class S extends h {
|
|
|
13
12
|
o(this, "unsubList", []);
|
|
14
13
|
}
|
|
15
14
|
getId() {
|
|
16
|
-
return
|
|
15
|
+
return h;
|
|
17
16
|
}
|
|
18
17
|
_setFormValues() {
|
|
19
18
|
if (this.currentNode && "getAttribute" in this.currentNode) {
|
|
20
|
-
const e = this.currentNode.getAttribute("id");
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[a]: this.selectedUnsubGroup
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
19
|
+
const e = Number(this.currentNode.getAttribute("id"));
|
|
20
|
+
e && (this.selectedUnsubGroup = e, this.api.updateValues({
|
|
21
|
+
[a]: this.selectedUnsubGroup
|
|
22
|
+
}));
|
|
27
23
|
}
|
|
28
24
|
}
|
|
29
|
-
_getLabel(e,
|
|
25
|
+
_getLabel(e, i = `${Math.random()}`) {
|
|
30
26
|
return `
|
|
31
|
-
<${
|
|
27
|
+
<${n.LABEL}
|
|
32
28
|
${t.LABEL.text}="${e}"
|
|
33
|
-
${t.LABEL.name}="${
|
|
34
|
-
</${
|
|
29
|
+
${t.LABEL.name}="${i}">
|
|
30
|
+
</${n.LABEL}>
|
|
35
31
|
`;
|
|
36
32
|
}
|
|
37
|
-
_getSelectItem(e,
|
|
33
|
+
_getSelectItem(e, i) {
|
|
38
34
|
return `
|
|
39
|
-
<${
|
|
35
|
+
<${n.SELECT_ITEM}
|
|
40
36
|
${t.SELECT_ITEM.text}="${e}"
|
|
41
|
-
${t.SELECT_ITEM.value}="${
|
|
42
|
-
</${
|
|
37
|
+
${t.SELECT_ITEM.value}="${i}">
|
|
38
|
+
</${n.SELECT_ITEM}>`;
|
|
43
39
|
}
|
|
44
40
|
_getSelect() {
|
|
45
41
|
return this.unsubList.map((e) => this._getSelectItem(e.name, e.sendGridId)).join("");
|
|
@@ -48,22 +44,22 @@ class S extends h {
|
|
|
48
44
|
return `
|
|
49
45
|
<div class="checkbox-controls-container">
|
|
50
46
|
<div class="checkbox-select-container container two-columns stretch">
|
|
51
|
-
<${
|
|
47
|
+
<${n.LABEL}
|
|
52
48
|
${t.LABEL.text}="${this.api.translate("Unsubscribe Group")}"
|
|
53
49
|
${t.LABEL.name}="${Math.random()}">
|
|
54
|
-
</${
|
|
50
|
+
</${n.LABEL}>
|
|
55
51
|
|
|
56
|
-
<${
|
|
52
|
+
<${n.SELECTPICKER}
|
|
57
53
|
${t.SELECTPICKER.name}="${a}"
|
|
58
54
|
${t.SELECTPICKER.placeholder}="${this.api.translate("Select Unsubscribe Group")}">
|
|
59
55
|
${this._getSelect()}
|
|
60
|
-
</${
|
|
56
|
+
</${n.SELECTPICKER}>
|
|
61
57
|
</div>
|
|
62
58
|
</div>
|
|
63
59
|
`;
|
|
64
60
|
}
|
|
65
61
|
_onSelectChange(e) {
|
|
66
|
-
this.currentNode && this.api.getDocumentModifier().modifyHtml(this.currentNode).setAttribute("id", e.toString()).apply(new
|
|
62
|
+
this.currentNode && this.api.getDocumentModifier().modifyHtml(this.currentNode).setAttribute("id", e.toString()).apply(new L(`Updated text to ${e}`));
|
|
67
63
|
}
|
|
68
64
|
_listenToFormUpdates() {
|
|
69
65
|
this.api.onValueChanged(a, (e) => this._onSelectChange(e));
|
|
@@ -73,20 +69,20 @@ class S extends h {
|
|
|
73
69
|
}
|
|
74
70
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
75
71
|
async onRender() {
|
|
76
|
-
const e = await
|
|
72
|
+
const e = await p(
|
|
77
73
|
"/unsubscribe-groups/unsubscribe-list"
|
|
78
|
-
),
|
|
74
|
+
), i = e.data.map((c) => ({
|
|
79
75
|
[t.SELECT_ITEM.text]: c.name,
|
|
80
76
|
[t.SELECT_ITEM.value]: c.sendGridId
|
|
81
77
|
}));
|
|
82
|
-
this.unsubList =
|
|
78
|
+
this.unsubList = e.data, this.api.setUIEAttribute(
|
|
83
79
|
a,
|
|
84
80
|
t.SELECTPICKER.items,
|
|
85
|
-
|
|
81
|
+
i
|
|
86
82
|
), this._setFormValues(), this._listenToFormUpdates();
|
|
87
83
|
}
|
|
88
84
|
}
|
|
89
85
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
h as CHECKBOX_CONTROL_BLOCK_ID,
|
|
87
|
+
b as CheckboxControl
|
|
92
88
|
};
|
|
@@ -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
|
};
|
|
@@ -2,7 +2,7 @@ import { ExtensionBuilder as o } from "../../../node_modules/@stripoinc/ui-edito
|
|
|
2
2
|
import { CouponBlock as t } from "./block.js";
|
|
3
3
|
import { CouponIconsRegistry as i } from "./iconsRegistry.js";
|
|
4
4
|
import { CouponBlockSettings as n } from "./settingsPanel.js";
|
|
5
|
-
const
|
|
5
|
+
const m = new o().addBlock(t).withSettingsPanelRegistry(n).withIconsRegistry(i).build();
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
m as default
|
|
8
8
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var o = (
|
|
4
|
-
import { useHttp as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class _ extends p {
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var c = (i, s, t) => s in i ? E(i, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[s] = t;
|
|
3
|
+
var o = (i, s, t) => c(i, typeof s != "symbol" ? s + "" : s, t);
|
|
4
|
+
import { useHttp as d } from "../../../composables/useHttp.js";
|
|
5
|
+
import { Control as l, 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-radio-button", a = "select", { get: h } = d();
|
|
7
|
+
class b extends l {
|
|
9
8
|
constructor() {
|
|
10
9
|
super(...arguments);
|
|
11
10
|
o(this, "currentNode");
|
|
@@ -13,33 +12,30 @@ class _ extends p {
|
|
|
13
12
|
o(this, "unsubList", []);
|
|
14
13
|
}
|
|
15
14
|
getId() {
|
|
16
|
-
return
|
|
15
|
+
return p;
|
|
17
16
|
}
|
|
18
17
|
_setFormValues() {
|
|
19
18
|
if (this.currentNode && "getAttribute" in this.currentNode) {
|
|
20
|
-
const t = this.currentNode.getAttribute("id");
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[a]: this.selectedUnsubGroup
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
19
|
+
const t = Number(this.currentNode.getAttribute("id"));
|
|
20
|
+
t && (this.selectedUnsubGroup = t, this.api.updateValues({
|
|
21
|
+
[a]: this.selectedUnsubGroup
|
|
22
|
+
}));
|
|
27
23
|
}
|
|
28
24
|
}
|
|
29
|
-
_getLabel(t,
|
|
25
|
+
_getLabel(t, r = `${Math.random()}`) {
|
|
30
26
|
return `
|
|
31
|
-
<${
|
|
27
|
+
<${n.LABEL}
|
|
32
28
|
${e.LABEL.text}="${t}"
|
|
33
|
-
${e.LABEL.name}="${
|
|
34
|
-
</${
|
|
29
|
+
${e.LABEL.name}="${r}">
|
|
30
|
+
</${n.LABEL}>
|
|
35
31
|
`;
|
|
36
32
|
}
|
|
37
|
-
_getSelectItem(t,
|
|
33
|
+
_getSelectItem(t, r) {
|
|
38
34
|
return `
|
|
39
|
-
<${
|
|
35
|
+
<${n.SELECT_ITEM}
|
|
40
36
|
${e.SELECT_ITEM.text}="${t}"
|
|
41
|
-
${e.SELECT_ITEM.value}="${
|
|
42
|
-
</${
|
|
37
|
+
${e.SELECT_ITEM.value}="${r}">
|
|
38
|
+
</${n.SELECT_ITEM}>`;
|
|
43
39
|
}
|
|
44
40
|
_getSelect() {
|
|
45
41
|
return this.unsubList.map((t) => this._getSelectItem(t.name, t.sendGridId)).join("");
|
|
@@ -48,22 +44,22 @@ class _ extends p {
|
|
|
48
44
|
return `
|
|
49
45
|
<div class="checkbox-controls-container">
|
|
50
46
|
<div class="checkbox-select-container container two-columns stretch">
|
|
51
|
-
<${
|
|
47
|
+
<${n.LABEL}
|
|
52
48
|
${e.LABEL.text}="${this.api.translate("Unsubscribe Group")}"
|
|
53
49
|
${e.LABEL.name}="${Math.random()}">
|
|
54
|
-
</${
|
|
50
|
+
</${n.LABEL}>
|
|
55
51
|
|
|
56
|
-
<${
|
|
52
|
+
<${n.SELECTPICKER}
|
|
57
53
|
${e.SELECTPICKER.name}="${a}"
|
|
58
54
|
${e.SELECTPICKER.placeholder}="${this.api.translate("Select Unsubscribe Group")}">
|
|
59
55
|
${this._getSelect()}
|
|
60
|
-
</${
|
|
56
|
+
</${n.SELECTPICKER}>
|
|
61
57
|
</div>
|
|
62
58
|
</div>
|
|
63
59
|
`;
|
|
64
60
|
}
|
|
65
61
|
_onSelectChange(t) {
|
|
66
|
-
this.currentNode && this.api.getDocumentModifier().modifyHtml(this.currentNode).setAttribute("id", t.toString()).apply(new
|
|
62
|
+
this.currentNode && this.api.getDocumentModifier().modifyHtml(this.currentNode).setAttribute("id", t.toString()).apply(new L(`Updated text to ${t}`));
|
|
67
63
|
}
|
|
68
64
|
_listenToFormUpdates() {
|
|
69
65
|
this.api.onValueChanged(a, (t) => this._onSelectChange(t));
|
|
@@ -73,20 +69,20 @@ class _ extends p {
|
|
|
73
69
|
}
|
|
74
70
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
75
71
|
async onRender() {
|
|
76
|
-
const t = await
|
|
72
|
+
const t = await h(
|
|
77
73
|
"/unsubscribe-groups/unsubscribe-list"
|
|
78
|
-
),
|
|
74
|
+
), r = t.data.map((u) => ({
|
|
79
75
|
[e.SELECT_ITEM.text]: u.name,
|
|
80
76
|
[e.SELECT_ITEM.value]: u.sendGridId
|
|
81
77
|
}));
|
|
82
|
-
this.unsubList =
|
|
78
|
+
this.unsubList = t.data, this.api.setUIEAttribute(
|
|
83
79
|
a,
|
|
84
80
|
e.SELECTPICKER.items,
|
|
85
|
-
|
|
81
|
+
r
|
|
86
82
|
), this._setFormValues(), this._listenToFormUpdates();
|
|
87
83
|
}
|
|
88
84
|
}
|
|
89
85
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
p as CONTROL_BLOCK_ID,
|
|
87
|
+
b as RadioButtonControl
|
|
92
88
|
};
|
|
@@ -12,12 +12,12 @@ const e = {
|
|
|
12
12
|
<td align="left" width="70%" style="vertical-align: top;">
|
|
13
13
|
<table cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
14
14
|
<tbody>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
<${t.BLOCK_TEXT}>
|
|
16
|
+
{-{-TITLE-}-}
|
|
17
|
+
</${t.BLOCK_TEXT}>
|
|
18
|
+
<${t.BLOCK_TEXT}>
|
|
19
|
+
{-{-DESCRIPTION-}-}
|
|
20
|
+
</${t.BLOCK_TEXT}>
|
|
21
21
|
</tbody>
|
|
22
22
|
</table>
|
|
23
23
|
</td>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DynamicContent } from '@@/Types/generic';
|
|
2
|
+
export declare class ExternalMergeTagsLibrary {
|
|
3
|
+
selectedDynamicContent: DynamicContent | null;
|
|
4
|
+
dataSelectCallback: (data: DynamicContent) => void;
|
|
5
|
+
openMergeTagsLibrary(dynamicContent: DynamicContent, onDataSelectCallback: (data: DynamicContent) => void): void;
|
|
6
|
+
}
|
|
@@ -1,33 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
class
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var d = (t, e, n) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var a = (t, e, n) => d(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
class y {
|
|
5
5
|
constructor() {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
a(this, "selectedDynamicContent", null);
|
|
7
|
+
a(this, "dataSelectCallback", () => {
|
|
8
8
|
});
|
|
9
|
-
c(this, "closeDynamicContentHandler", null);
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
openMergeTagsLibrary(e, n, l) {
|
|
18
|
-
this.closeDynamicContentHandler && (document.removeEventListener("dynamic-content:close", this.closeDynamicContentHandler), this.closeDynamicContentHandler = null), this.dataSelectCallback = n, this.selectedDynamicContent = e;
|
|
19
|
-
const o = {
|
|
20
|
-
attribute: e,
|
|
21
|
-
position: l
|
|
22
|
-
}, s = new CustomEvent("dynamic-content:open", {
|
|
23
|
-
detail: o
|
|
10
|
+
openMergeTagsLibrary(e, n) {
|
|
11
|
+
this.dataSelectCallback = n, this.selectedDynamicContent = e;
|
|
12
|
+
const s = new CustomEvent("dynamic-content:open", {
|
|
13
|
+
detail: {
|
|
14
|
+
attribute: e
|
|
15
|
+
}
|
|
24
16
|
});
|
|
25
|
-
document.dispatchEvent(s)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
document.dispatchEvent(s);
|
|
18
|
+
const o = (l) => {
|
|
19
|
+
const c = l.detail;
|
|
20
|
+
this.selectedDynamicContent = c, c.text && c.value && this.dataSelectCallback(c), document.removeEventListener("dynamic-content:close", o);
|
|
21
|
+
};
|
|
22
|
+
document.addEventListener("dynamic-content:close", o);
|
|
29
23
|
}
|
|
30
24
|
}
|
|
31
25
|
export {
|
|
32
|
-
|
|
26
|
+
y as ExternalMergeTagsLibrary
|
|
33
27
|
};
|