@useinsider/guido 1.0.3-beta.59b0ae1 → 1.0.3-beta.5e01480
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 +0 -4
- package/dist/{src/@types → @types}/generic.d.ts +0 -19
- package/dist/{src/components → components}/Guido.vue.d.ts +2 -3
- package/dist/components/Guido.vue.js +9 -11
- package/dist/components/Guido.vue2.js +69 -75
- 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/composables/useStripo.js +40 -53
- package/dist/config/compiler/unsubscribeCompilerRules.js +29 -42
- package/dist/config/migrator/couponBlockMigrator.js +41 -47
- package/dist/config/migrator/index.d.ts +1 -0
- package/dist/config/migrator/index.js +6 -8
- package/dist/enums/defaults.js +0 -4
- 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 +6 -43
- package/dist/{src/extensions → extensions}/Blocks/Checkbox/block.d.ts +0 -1
- package/dist/extensions/Blocks/Checkbox/block.js +24 -15
- package/dist/extensions/Blocks/Checkbox/control.js +67 -55
- package/dist/extensions/Blocks/Checkbox/extension.js +16 -5
- package/dist/extensions/Blocks/Checkbox/settingsPanel.js +25 -12
- package/dist/extensions/Blocks/Checkbox/template.js +16 -5
- package/dist/{src/extensions → extensions}/Blocks/CouponBlock/block.d.ts +0 -1
- package/dist/extensions/Blocks/CouponBlock/block.js +24 -14
- package/dist/extensions/Blocks/CouponBlock/extension.js +16 -5
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +29 -16
- package/dist/extensions/Blocks/CouponBlock/template.d.ts +3 -0
- package/dist/extensions/Blocks/CouponBlock/template.js +11 -9
- package/dist/{src/extensions → extensions}/Blocks/RadioButton/block.d.ts +0 -1
- package/dist/extensions/Blocks/RadioButton/block.js +22 -13
- package/dist/extensions/Blocks/RadioButton/control.js +52 -40
- package/dist/extensions/Blocks/RadioButton/extension.js +15 -4
- package/dist/extensions/Blocks/RadioButton/settingsPanel.js +26 -13
- package/dist/extensions/Blocks/RadioButton/template.js +24 -13
- package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/block.d.ts +0 -1
- package/dist/extensions/DynamicContent/dynamic-content.js +45 -31
- package/dist/extensions/DynamicContent/extension.js +18 -6
- package/dist/guido.css +1 -1
- package/dist/icons/coupon.svg +3 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +75 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +77 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +123 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +12 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +119 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +12 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +24 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +24 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +11 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +33 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +22 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +40 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +5 -0
- package/dist/static/assets/icons/coupon.svg.js +4 -0
- package/dist/static/styles/components/wide-panel.css.js +4 -0
- package/dist/static/styles/customEditorStyle.css.js +0 -5
- package/dist/{src/stores → stores}/editor.d.ts +0 -21
- package/dist/stores/editor.js +1 -2
- package/dist/stores/unsubscribe.d.ts +8 -0
- package/dist/stores/unsubscribe.js +6 -126
- 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/dist/utils/templatePreparation.js +16 -17
- 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/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/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/Checkbox/iconsRegistry.js +0 -18
- package/dist/extensions/Blocks/CouponBlock/iconsRegistry.js +0 -33
- package/dist/extensions/Blocks/RadioButton/iconsRegistry.js +0 -14
- package/dist/extensions/Blocks/Recommendation/block.js +0 -30
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -182
- package/dist/extensions/Blocks/Recommendation/constants.js +0 -11
- package/dist/extensions/Blocks/Recommendation/control.js +0 -300
- package/dist/extensions/Blocks/Recommendation/controls/index.js +0 -175
- package/dist/extensions/Blocks/Recommendation/extension.js +0 -12
- 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 -153
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -187
- 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/extensions/Blocks/controlFactories.js +0 -223
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +0 -866
- package/dist/package.json.js +0 -7
- package/dist/services/recommendationApi.js +0 -43
- package/dist/services/unsubscribeApi.js +0 -16
- 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/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/Checkbox/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/CouponBlock/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +0 -3
- package/dist/src/extensions/Blocks/RadioButton/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -11
- package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +0 -75
- package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +0 -60
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -34
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +0 -43
- 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 -45
- 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/iconsRegistry.d.ts +0 -4
- 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/Blocks/controlFactories.d.ts +0 -91
- 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 -97
- package/dist/src/stores/unsubscribe.d.ts +0 -256
- package/dist/src/utils/dateUtil.d.ts +0 -22
- package/dist/stores/config.js +0 -17
- /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 +0 -0
- /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/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/control.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Checkbox/extension.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/extension.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/settingsPanel.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/settingsPanel.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/RadioButton/template.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/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 → 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/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}/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,29 +1,26 @@
|
|
|
1
1
|
import { useActionsApi as f } from "./useActionsApi.js";
|
|
2
|
-
import { useCustomInterfaceAppearance as
|
|
3
|
-
import { useStripoEventHandler as
|
|
4
|
-
import { useToaster as
|
|
5
|
-
import { displayConditions as
|
|
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
6
|
import h from "../extensions/Blocks/Checkbox/extension.js";
|
|
7
7
|
import w from "../extensions/Blocks/CouponBlock/extension.js";
|
|
8
8
|
import b from "../extensions/Blocks/RadioButton/extension.js";
|
|
9
|
-
import V from "../extensions/Blocks/Recommendation/extension.js";
|
|
10
|
-
import _ from "../extensions/Blocks/Unsubscribe/extension.js";
|
|
11
9
|
import k from "../extensions/DynamicContent/extension.js";
|
|
12
10
|
import { useStripoApi as B } from "../services/stripoApi.js";
|
|
13
|
-
import
|
|
14
|
-
import { useEditorStore as
|
|
15
|
-
import { dynamicContentToMergeTags as
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
const t = x(), { html: n, css: c, forceRecreate: s } = i;
|
|
11
|
+
import V from "../static/styles/customEditorStyle.css.js";
|
|
12
|
+
import { useEditorStore as _ } from "../stores/editor.js";
|
|
13
|
+
import { dynamicContentToMergeTags as F } from "../utils/genericUtil.js";
|
|
14
|
+
const j = (s) => {
|
|
15
|
+
const { handleError: d } = C(), { getToken: c, getCustomFonts: u } = B(), { handleEvent: l } = E(), m = (r, i = []) => {
|
|
16
|
+
const t = _(), { html: e, css: a, forceRecreate: g } = r;
|
|
20
17
|
window.UIEditor.initEditor(
|
|
21
18
|
document.querySelector("#guido-editor"),
|
|
22
19
|
{
|
|
23
|
-
metadata:
|
|
24
|
-
html:
|
|
25
|
-
css:
|
|
26
|
-
forceRecreate:
|
|
20
|
+
metadata: s,
|
|
21
|
+
html: e,
|
|
22
|
+
css: a,
|
|
23
|
+
forceRecreate: g,
|
|
27
24
|
locale: "en",
|
|
28
25
|
undoButtonSelector: "#guido__undo-button",
|
|
29
26
|
redoButtonSelector: "#guido__redo-button",
|
|
@@ -33,39 +30,35 @@ const X = (a) => {
|
|
|
33
30
|
customAppearanceMergetags: !0,
|
|
34
31
|
customAppearanceMergetagsBorderColor: "#f1f3fe",
|
|
35
32
|
customAppearanceMergetagsBackgroundColor: "#f1f3fe",
|
|
36
|
-
customViewStyles:
|
|
33
|
+
customViewStyles: V,
|
|
37
34
|
conditionsEnabled: !0,
|
|
38
35
|
customConditionsEnabled: !0,
|
|
39
|
-
conditionCategories:
|
|
36
|
+
conditionCategories: y,
|
|
40
37
|
enableXSSSecurity: !0,
|
|
41
|
-
messageSettingsEnabled: !
|
|
42
|
-
displayGmailAnnotations: !0,
|
|
43
|
-
displayHiddenPreheader: !1,
|
|
44
|
-
displayTitle: !1,
|
|
45
|
-
displayUTM: !1,
|
|
38
|
+
messageSettingsEnabled: !1,
|
|
46
39
|
selectBlockAfterDropFromSettingsPanel: !0,
|
|
47
40
|
editorFonts: {
|
|
48
41
|
showDefaultStandardFonts: !0,
|
|
49
42
|
showDefaultNotStandardFonts: !0,
|
|
50
|
-
customFonts:
|
|
43
|
+
customFonts: i
|
|
51
44
|
},
|
|
52
45
|
mergeTags: [
|
|
53
46
|
{
|
|
54
|
-
entries:
|
|
47
|
+
entries: F(s.preselectedDynamicContentList)
|
|
55
48
|
}
|
|
56
49
|
],
|
|
57
50
|
async onTokenRefreshRequest(o) {
|
|
58
51
|
try {
|
|
59
|
-
const
|
|
60
|
-
o(
|
|
61
|
-
} catch (
|
|
62
|
-
d(
|
|
52
|
+
const n = await c();
|
|
53
|
+
o(n);
|
|
54
|
+
} catch (n) {
|
|
55
|
+
d(n, "Failed to refresh token");
|
|
63
56
|
}
|
|
64
57
|
},
|
|
65
58
|
onTemplateLoaded() {
|
|
66
59
|
try {
|
|
67
|
-
const { importCss: o } =
|
|
68
|
-
o(),
|
|
60
|
+
const { importCss: o } = S(), { activateCustomViewStyles: n } = f();
|
|
61
|
+
o(), n(), s.onReady(), t.isStripoInitialized = !0, t.loadingStatus = !1, setTimeout(() => {
|
|
69
62
|
t.hasChanges = !1;
|
|
70
63
|
}, 1e3);
|
|
71
64
|
} catch (o) {
|
|
@@ -85,41 +78,35 @@ const X = (a) => {
|
|
|
85
78
|
t.hasChanges = !0;
|
|
86
79
|
},
|
|
87
80
|
onEvent: l,
|
|
88
|
-
ignoreClickOutsideSelectors: [
|
|
89
|
-
"#guido-dynamic-content-modal",
|
|
90
|
-
".in-on-board-wrapper",
|
|
91
|
-
".in-drawer__container"
|
|
92
|
-
],
|
|
81
|
+
ignoreClickOutsideSelectors: ["#guido-dynamic-content-modal", ".in-on-board-wrapper"],
|
|
93
82
|
extensions: [
|
|
94
83
|
k,
|
|
95
84
|
h,
|
|
96
85
|
b,
|
|
97
|
-
V,
|
|
98
|
-
_,
|
|
99
86
|
w
|
|
100
87
|
]
|
|
101
88
|
}
|
|
102
89
|
);
|
|
103
|
-
},
|
|
104
|
-
var e;
|
|
90
|
+
}, p = (r) => new Promise((i, t) => {
|
|
105
91
|
if (document.getElementById("UiEditorScript")) {
|
|
106
|
-
|
|
92
|
+
r(), i();
|
|
107
93
|
return;
|
|
108
94
|
}
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
|
|
95
|
+
const e = document.createElement("script");
|
|
96
|
+
e.id = "UiEditorScript", e.type = "module", e.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", e.onload = () => {
|
|
97
|
+
r(), i();
|
|
98
|
+
}, e.onerror = () => {
|
|
99
|
+
const a = new Error("Failed to load Stripo UIEditor script");
|
|
100
|
+
t(a);
|
|
101
|
+
}, document.body.appendChild(e);
|
|
115
102
|
});
|
|
116
|
-
return { initPlugin: async (
|
|
117
|
-
await
|
|
118
|
-
const
|
|
119
|
-
|
|
103
|
+
return { initPlugin: async (r) => {
|
|
104
|
+
await p(async () => {
|
|
105
|
+
const i = await u();
|
|
106
|
+
m(r, i);
|
|
120
107
|
});
|
|
121
108
|
} };
|
|
122
109
|
};
|
|
123
110
|
export {
|
|
124
|
-
|
|
111
|
+
j as useStripo
|
|
125
112
|
};
|
|
@@ -1,36 +1,23 @@
|
|
|
1
|
-
import { usePartner as
|
|
2
|
-
import { LINK_REGEXES as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { useUnsubscribeStore as I } from "../../stores/unsubscribe.js";
|
|
6
|
-
const T = [
|
|
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 = [
|
|
7
5
|
{
|
|
8
6
|
id: "add-unsubscribe-link-values",
|
|
9
7
|
description: "Adding unsubscribe link values",
|
|
10
8
|
type: "custom",
|
|
11
|
-
processor: (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
(c) => S.includes(c.id)
|
|
24
|
-
)) ?? [], R = m.some((c) => c.type === b.UNSUBSCRIBE_LINK_TYPE), _ = m.some((c) => c.type === b.PREFERENCES_LINK_TYPE), E = p.outerHTML;
|
|
25
|
-
let s = E;
|
|
26
|
-
R && (s = s.replace(
|
|
27
|
-
l.GLOBAL_UNSUBSCRIBE_LINK_REGEX,
|
|
28
|
-
f.UNSUBSCRIBE_URL + e
|
|
29
|
-
)), _ && (s = s.replace(
|
|
30
|
-
l.PREFERENCES_UNSUBSCRIBE_LINK_REGEX,
|
|
31
|
-
f.PREFERENCES_URL + e
|
|
32
|
-
)), s = s.replace(l.UNSUBSCRIBE_LINK_REGEX, ""), o = o.replace(E, s);
|
|
33
|
-
}), o;
|
|
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, "");
|
|
34
21
|
},
|
|
35
22
|
priority: 60
|
|
36
23
|
},
|
|
@@ -38,7 +25,7 @@ const T = [
|
|
|
38
25
|
id: "remove-data-ogsb-button-styles",
|
|
39
26
|
description: "Removing styles like [data-ogsb] .es-button.es-button-123 { background: red; }",
|
|
40
27
|
type: "regex",
|
|
41
|
-
pattern:
|
|
28
|
+
pattern: c.DATA_OGSB_BUTTON_CSS_REGEX,
|
|
42
29
|
replacement: "",
|
|
43
30
|
flags: "g",
|
|
44
31
|
priority: 61
|
|
@@ -47,25 +34,25 @@ const T = [
|
|
|
47
34
|
id: "format-comment-braces",
|
|
48
35
|
description: "Adding spaces around comment braces for proper formatting",
|
|
49
36
|
type: "custom",
|
|
50
|
-
processor: (
|
|
37
|
+
processor: (n) => n.replace(/{#/g, "{ #").replace(/#}/g, "# }"),
|
|
51
38
|
priority: 62
|
|
52
39
|
},
|
|
53
40
|
{
|
|
54
41
|
id: "add-universal-link-flags",
|
|
55
42
|
description: "Adding universal link flags",
|
|
56
43
|
type: "custom",
|
|
57
|
-
processor: (
|
|
58
|
-
let i =
|
|
59
|
-
const
|
|
60
|
-
return
|
|
61
|
-
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"))
|
|
62
49
|
return;
|
|
63
|
-
if (
|
|
64
|
-
const o =
|
|
65
|
-
const
|
|
66
|
-
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`);
|
|
67
54
|
});
|
|
68
|
-
i = i.replace(
|
|
55
|
+
i = i.replace(e, o);
|
|
69
56
|
}
|
|
70
57
|
}), i;
|
|
71
58
|
},
|
|
@@ -73,5 +60,5 @@ const T = [
|
|
|
73
60
|
}
|
|
74
61
|
];
|
|
75
62
|
export {
|
|
76
|
-
|
|
63
|
+
S as unsubscribeCompilerRules
|
|
77
64
|
};
|
|
@@ -1,67 +1,61 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
class
|
|
1
|
+
var b = Object.defineProperty;
|
|
2
|
+
var d = (c, t, s) => t in c ? b(c, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : c[t] = s;
|
|
3
|
+
var g = (c, t, s) => d(c, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
+
import f from "../../extensions/Blocks/CouponBlock/template.js";
|
|
5
|
+
class x {
|
|
6
6
|
constructor() {
|
|
7
|
-
|
|
7
|
+
g(this, "parser");
|
|
8
8
|
this.parser = new DOMParser();
|
|
9
9
|
}
|
|
10
10
|
migrate(t) {
|
|
11
11
|
try {
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
-
const
|
|
15
|
-
'class="coupon-block coupon-block-v2 ins-coupon-code esd-block-text esd-extension-block"',
|
|
16
|
-
c.class
|
|
17
|
-
).replace(
|
|
12
|
+
const s = this.parser.parseFromString(t, "text/html"), e = s.querySelectorAll("td.coupon-block.ins-coupon-code:not([esd-extension-block-id])");
|
|
13
|
+
return e.length === 0 ? t : (e.forEach((o) => {
|
|
14
|
+
const l = this.extractText(o), n = this.extractAttributes(o), a = f.replace("{-{-COUPON_CODE-}-}", l).replace('class="coupon-block ins-coupon-code esd-block-text esd-extension-block"', n.class).replace(
|
|
18
15
|
'esd-extension-block-id="coupon-block"',
|
|
19
|
-
`esd-extension-block-id="coupon-block"${
|
|
16
|
+
`esd-extension-block-id="coupon-block"${n.block}`
|
|
20
17
|
).replace(
|
|
21
|
-
'<p class="ins-title"',
|
|
22
|
-
`<p class="ins-title"${
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
'<p class="ins-title" contenteditable="false"',
|
|
19
|
+
`<p class="ins-title" contenteditable="false"${n.text}`
|
|
20
|
+
), r = this.parser.parseFromString(
|
|
21
|
+
`<table id="tempDoc"><tbody><tr>${a}</tr></tbody></table>`,
|
|
22
|
+
"text/html"
|
|
23
|
+
).querySelector(".coupon-block.ins-coupon-code");
|
|
24
|
+
r && o.parentNode && (o.id && (r.id = o.id), o.parentNode.replaceChild(r, o));
|
|
25
|
+
}), s.documentElement.outerHTML);
|
|
26
|
+
} catch (s) {
|
|
27
|
+
return console.error("CouponBlockMigrator failed:", s), t;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
extractText(t) {
|
|
31
|
-
var
|
|
32
|
-
const
|
|
33
|
-
if (!
|
|
31
|
+
var i;
|
|
32
|
+
const s = t.querySelector(".ins-title");
|
|
33
|
+
if (!s)
|
|
34
34
|
return "{@COUPON_CODE}";
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
[c, "em"],
|
|
39
|
-
[l, "u"],
|
|
40
|
-
[u, "s"],
|
|
41
|
-
[a, "sub"],
|
|
42
|
-
[p, "sup"]
|
|
43
|
-
].reduce((b, [f, d]) => f ? `<${d}>${b}</${d}>` : b, n);
|
|
35
|
+
let e = ((i = s.textContent) == null ? void 0 : i.trim()) || "{@COUPON_CODE}";
|
|
36
|
+
const o = s.getAttribute("style") || "", l = /font-weight\s*:\s*bold/i.test(o), n = /font-style\s*:\s*italic/i.test(o), a = /text-decoration[^;]*underline/i.test(o), p = /text-decoration[^;]*line-through/i.test(o), r = /vertical-align\s*:\s*sub/i.test(o), u = /vertical-align\s*:\s*super/i.test(o);
|
|
37
|
+
return l && (e = `<strong>${e}</strong>`), n && (e = `<em>${e}</em>`), a && (e = `<u>${e}</u>`), p && (e = `<s>${e}</s>`), r && (e = `<sub>${e}</sub>`), u && (e = `<sup>${e}</sup>`), e;
|
|
44
38
|
}
|
|
45
39
|
extractAttributes(t) {
|
|
46
|
-
const
|
|
47
|
-
let
|
|
48
|
-
|
|
49
|
-
let
|
|
50
|
-
if (
|
|
51
|
-
const
|
|
52
|
-
|
|
40
|
+
const s = t.querySelector(".ins-title"), e = t.className.split(" ").filter((i) => i.startsWith("es-")), o = t.getAttribute("align"), l = t.getAttribute("bgcolor"), n = t.getAttribute("style"), a = s == null ? void 0 : s.getAttribute("style");
|
|
41
|
+
let p = 'class="coupon-block ins-coupon-code esd-block-text esd-extension-block';
|
|
42
|
+
e.length && (p += ` ${e.join(" ")}`), p += '"';
|
|
43
|
+
let r = "";
|
|
44
|
+
if (o && (r += ` align="${o}"`), l && (r += ` bgcolor="${l}"`), n) {
|
|
45
|
+
const i = n.replace(/background-color[^;]+;?/gi, "").replace(/;+/g, ";").trim();
|
|
46
|
+
i && (r += ` style="${i.replace(/"/g, "'")}"`);
|
|
53
47
|
}
|
|
54
|
-
let
|
|
55
|
-
if (
|
|
56
|
-
const
|
|
57
|
-
|
|
48
|
+
let u = "";
|
|
49
|
+
if (a) {
|
|
50
|
+
const i = a.replace(/"/g, '"').replace(/font-weight\s*:\s*[^;]+;?/gi, "").replace(/font-style\s*:\s*[^;]+;?/gi, "").replace(/text-decoration\s*:\s*[^;]+;?/gi, "").replace(/vertical-align\s*:\s*[^;]+;?/gi, "").replace(/;+/g, ";").replace(/^;|;$/g, "").trim().replace(/"/g, "'");
|
|
51
|
+
i && (u = ` style="${i}"`);
|
|
58
52
|
}
|
|
59
|
-
return { class:
|
|
53
|
+
return { class: p, block: r, text: u };
|
|
60
54
|
}
|
|
61
55
|
}
|
|
62
|
-
function
|
|
63
|
-
return new
|
|
56
|
+
function y(c) {
|
|
57
|
+
return new x().migrate(c);
|
|
64
58
|
}
|
|
65
59
|
export {
|
|
66
|
-
|
|
60
|
+
y as migrateCouponBlock
|
|
67
61
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const migrate: (html: string) => string;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { migrateCheckbox as
|
|
2
|
-
import { migrateCouponBlock as
|
|
1
|
+
import { migrateCheckbox as t } from "./checkboxMigrator.js";
|
|
2
|
+
import { migrateCouponBlock as e } from "./couponBlockMigrator.js";
|
|
3
3
|
import { migrateRadioButton as i } from "./radioButtonMigrator.js";
|
|
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;
|
|
4
|
+
const p = (o) => {
|
|
5
|
+
let r = o;
|
|
6
|
+
return r = t(o), r = i(o), r = e(o), r;
|
|
9
7
|
};
|
|
10
8
|
export {
|
|
11
|
-
|
|
9
|
+
p as migrate
|
|
12
10
|
};
|
package/dist/enums/defaults.js
CHANGED
|
@@ -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,54 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
const s = e(), R = {
|
|
1
|
+
const E = {
|
|
3
2
|
UNSUBSCRIBE_LINK_TYPE: 1,
|
|
4
3
|
PREFERENCES_LINK_TYPE: 3
|
|
5
|
-
},
|
|
4
|
+
}, s = {
|
|
6
5
|
UNSUBSCRIBE_LINK_REGEX: /{{ins-unsubscribe-link}}/g,
|
|
7
6
|
DATA_OGSB_BUTTON_CSS_REGEX: "\\[data-ogsb\\]\\s*\\.es-button\\.es-button-[0-9]+\\s*\\{(?:[^\\}]*)\\}",
|
|
8
7
|
GLOBAL_UNSUBSCRIBE_LINK_REGEX: /{{ins-global-unsubscribe-link}}/g,
|
|
9
8
|
PREFERENCES_UNSUBSCRIBE_LINK_REGEX: /{{ins-preferences-unsubscribe-link}}/g
|
|
10
|
-
},
|
|
9
|
+
}, _ = {
|
|
11
10
|
UNSUBSCRIBE_URL: "https://mail.useinsider.com/user/v1/unsub",
|
|
12
11
|
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 = {
|
|
17
|
-
GLOBAL_UNSUBSCRIBE: 1,
|
|
18
|
-
GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE: 2,
|
|
19
|
-
SUBSCRIPTION_PREFERENCE_CENTER: 3,
|
|
20
|
-
SUBSCRIPTION_PREFERENCE_CONFIRMATION: 4,
|
|
21
|
-
RESUBSCRIBE: 5
|
|
22
|
-
}, i = {
|
|
23
|
-
[E.GLOBAL_UNSUBSCRIBE]: [
|
|
24
|
-
E.GLOBAL_UNSUBSCRIBE,
|
|
25
|
-
E.GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE,
|
|
26
|
-
E.RESUBSCRIBE
|
|
27
|
-
],
|
|
28
|
-
[E.SUBSCRIPTION_PREFERENCE_CENTER]: [
|
|
29
|
-
E.SUBSCRIPTION_PREFERENCE_CENTER,
|
|
30
|
-
E.SUBSCRIPTION_PREFERENCE_CONFIRMATION
|
|
31
|
-
]
|
|
32
|
-
}, B = {
|
|
33
|
-
[E.GLOBAL_UNSUBSCRIBE]: s("unsubscription-preference.type-global-unsubscribe"),
|
|
34
|
-
[E.GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE]: s("unsubscription-preference.type-global-unsubscription-confirmation"),
|
|
35
|
-
[E.RESUBSCRIBE]: s("unsubscription-preference.type-resubscribe"),
|
|
36
|
-
[E.SUBSCRIPTION_PREFERENCE_CENTER]: s("unsubscription-preference.type-subscription-preferences-center"),
|
|
37
|
-
[E.SUBSCRIPTION_PREFERENCE_CONFIRMATION]: s("unsubscription-preference.type-subscription-preferences-confirmation")
|
|
38
|
-
}, C = {
|
|
39
|
-
default: "{{ins-unsubscribe-link}}",
|
|
40
|
-
[E.GLOBAL_UNSUBSCRIBE]: "{{ins-global-unsubscribe-link}}",
|
|
41
|
-
[E.SUBSCRIPTION_PREFERENCE_CENTER]: "{{ins-preferences-unsubscribe-link}}"
|
|
42
12
|
};
|
|
43
13
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
R as LINK_TYPES,
|
|
48
|
-
C as MERGE_TAGS,
|
|
49
|
-
E as PAGE_TYPES,
|
|
50
|
-
i as TYPE_COLLECTIONS,
|
|
51
|
-
B as TYPE_TRANSLATIONS,
|
|
52
|
-
r as UNSUBSCRIBE_PAGES_LINK,
|
|
53
|
-
N as URLS
|
|
14
|
+
s as LINK_REGEXES,
|
|
15
|
+
E as LINK_TYPES,
|
|
16
|
+
_ as URLS
|
|
54
17
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Block, BlockCompositionType } from '@stripoinc/ui-editor-extensions';
|
|
2
2
|
export declare const CHECKBOX_BLOCK_ID = "checkbox-block";
|
|
3
3
|
export declare class CheckboxBlock extends Block {
|
|
4
|
-
constructor();
|
|
5
4
|
getId(): string;
|
|
6
5
|
getIcon(): string;
|
|
7
6
|
getBlockCompositionType(): BlockCompositionType;
|
|
@@ -1,30 +1,39 @@
|
|
|
1
|
-
import { Block as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { Block as t } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js";
|
|
2
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js";
|
|
3
|
+
import { BlockCompositionType as o } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js";
|
|
4
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js";
|
|
5
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js";
|
|
6
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js";
|
|
7
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js";
|
|
8
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js";
|
|
9
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js";
|
|
10
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js";
|
|
11
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js";
|
|
12
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js";
|
|
13
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js";
|
|
14
|
+
import { getDefaultTemplate as r } from "./template.js";
|
|
15
|
+
const e = "checkbox-block";
|
|
16
|
+
class x extends t {
|
|
8
17
|
getId() {
|
|
9
|
-
return
|
|
18
|
+
return e;
|
|
10
19
|
}
|
|
11
20
|
getIcon() {
|
|
12
|
-
return "
|
|
21
|
+
return "check-circle";
|
|
13
22
|
}
|
|
14
23
|
getBlockCompositionType() {
|
|
15
|
-
return
|
|
24
|
+
return o.BLOCK;
|
|
16
25
|
}
|
|
17
26
|
getName() {
|
|
18
|
-
return this.api.translate("Checkbox
|
|
27
|
+
return this.api.translate("Checkbox block");
|
|
19
28
|
}
|
|
20
29
|
getDescription() {
|
|
21
|
-
return this.api.translate("Checkbox
|
|
30
|
+
return this.api.translate("Checkbox block description");
|
|
22
31
|
}
|
|
23
32
|
getTemplate() {
|
|
24
|
-
return
|
|
33
|
+
return r();
|
|
25
34
|
}
|
|
26
35
|
}
|
|
27
36
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
e as CHECKBOX_BLOCK_ID,
|
|
38
|
+
x as CheckboxBlock
|
|
30
39
|
};
|