@useinsider/guido 1.0.2 → 1.0.3-beta.001f60f
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 +32 -2
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +111 -68
- package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +3 -2
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +28 -0
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +38 -0
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +17 -0
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +37 -0
- package/dist/components/organisms/extensions/recommendation/Filters.vue.js +20 -0
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +44 -0
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +17 -0
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +27 -0
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +15 -9
- package/dist/components/organisms/header/LeftSlot.vue.js +10 -10
- package/dist/components/organisms/header/LeftSlot.vue2.js +23 -10
- package/dist/components/organisms/header/RightSlot.vue.js +5 -3
- package/dist/components/organisms/header/RightSlot.vue2.js +26 -27
- package/dist/components/organisms/header/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/ViewOptions.vue2.js +5 -5
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +20 -0
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +37 -0
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +21 -0
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +83 -0
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +17 -0
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +30 -0
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +19 -0
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +43 -0
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +21 -0
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +74 -0
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +20 -0
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +37 -0
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +18 -0
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +16 -0
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +24 -0
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +64 -0
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +18 -0
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +107 -0
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +18 -0
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +12 -0
- package/dist/components/wrappers/WpDrawer.vue.js +6 -4
- package/dist/composables/useApiErrorTracking.js +137 -0
- package/dist/composables/useCustomInterfaceAppearance.js +22 -18
- package/dist/composables/useErrorTracking.js +98 -0
- package/dist/composables/useHtmlCompiler.js +17 -9
- package/dist/composables/useHtmlValidator.js +148 -0
- package/dist/composables/useHttp.js +127 -60
- package/dist/composables/usePartner.js +16 -9
- package/dist/composables/useRecommendation.js +27 -0
- package/dist/composables/useSave.js +15 -0
- package/dist/composables/useStripo.js +206 -53
- package/dist/composables/useStripoErrorCategory.js +138 -0
- package/dist/composables/useStripoEventHandler.js +20 -0
- package/dist/composables/useStripoSlackNotifier.js +47 -0
- package/dist/composables/useToaster.js +17 -17
- package/dist/config/compiler/outlookCompilerRules.js +36 -0
- package/dist/config/compiler/recommendationCompilerRules.js +83 -0
- package/dist/config/compiler/socialCompilerRules.js +21 -0
- package/dist/config/compiler/unsubscribeCompilerRules.js +77 -0
- package/dist/config/migrator/checkboxMigrator.js +83 -0
- package/dist/config/migrator/couponBlockMigrator.js +67 -0
- package/dist/config/migrator/index.js +11 -0
- package/dist/config/migrator/radioButtonMigrator.js +86 -0
- package/dist/config/migrator/unsubscribeMigrator.js +124 -0
- package/dist/enums/defaults.js +48 -9
- package/dist/enums/extensions/recommendationBlock.js +80 -0
- package/dist/enums/html-validator.js +7 -0
- package/dist/enums/onboarding.js +8 -0
- package/dist/enums/recommendation.js +56 -0
- package/dist/enums/unsubscribe.js +54 -0
- package/dist/extensions/Blocks/Checkbox/block.js +30 -0
- package/dist/extensions/Blocks/Checkbox/control.js +92 -0
- package/dist/extensions/Blocks/Checkbox/extension.js +9 -0
- package/dist/extensions/Blocks/Checkbox/iconsRegistry.js +18 -0
- package/dist/extensions/Blocks/Checkbox/settingsPanel.js +25 -0
- package/dist/extensions/Blocks/Checkbox/template.js +64 -0
- package/dist/extensions/Blocks/CouponBlock/block.js +33 -0
- package/dist/extensions/Blocks/CouponBlock/extension.js +8 -0
- package/dist/extensions/Blocks/CouponBlock/iconsRegistry.js +33 -0
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +24 -0
- package/dist/extensions/Blocks/CouponBlock/template.js +18 -0
- package/dist/extensions/Blocks/RadioButton/block.js +30 -0
- package/dist/extensions/Blocks/RadioButton/control.js +92 -0
- package/dist/extensions/Blocks/RadioButton/extension.js +9 -0
- package/dist/extensions/Blocks/RadioButton/iconsRegistry.js +14 -0
- package/dist/extensions/Blocks/RadioButton/settingsPanel.js +26 -0
- package/dist/extensions/Blocks/RadioButton/template.js +149 -0
- package/dist/extensions/Blocks/Recommendation/block.js +27 -0
- package/dist/extensions/Blocks/Recommendation/control.js +277 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +10 -0
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +51 -0
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +19 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +32 -0
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +266 -0
- package/dist/extensions/Blocks/Recommendation/template.js +200 -0
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +28 -0
- package/dist/extensions/Blocks/Unsubscribe/block.js +131 -0
- package/dist/extensions/Blocks/Unsubscribe/control.js +167 -0
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +42 -0
- package/dist/extensions/Blocks/Unsubscribe/extension.js +21 -0
- package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.js +21 -0
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +35 -0
- package/dist/extensions/Blocks/Unsubscribe/styles.css.js +42 -0
- package/dist/extensions/Blocks/Unsubscribe/tagRegistry.js +10 -0
- package/dist/extensions/Blocks/Unsubscribe/template.js +22 -0
- package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +11 -0
- package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +6 -0
- package/dist/extensions/Blocks/common-control.js +102 -0
- package/dist/extensions/DynamicContent/dynamic-content.js +21 -21
- package/dist/extensions/DynamicContent/extension.js +6 -6
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +659 -0
- package/dist/package.json.js +7 -0
- package/dist/services/onboardingApi.js +23 -0
- package/dist/services/recommendationApi.js +43 -0
- package/dist/services/slackNotificationService.js +167 -0
- package/dist/services/stripoApi.js +51 -19
- package/dist/services/stripoErrorDeduplicationService.js +91 -0
- package/dist/services/unsubscribeApi.js +16 -0
- package/dist/src/@types/events.d.ts +7 -0
- package/dist/{@types → src/@types}/generic.d.ts +17 -0
- package/dist/{components → src/components}/Guido.vue.d.ts +6 -3
- package/dist/src/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +19 -0
- package/dist/src/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +16 -0
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +4 -0
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +4 -0
- package/dist/src/components/organisms/onboarding/GenericOnboarding.vue.d.ts +2 -0
- package/dist/src/components/organisms/onboarding/NewVersionPopup.vue.d.ts +2 -0
- package/dist/src/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +2 -0
- package/dist/src/components/organisms/onboarding/TextBlockOnboarding.vue.d.ts +2 -0
- package/dist/src/components/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +2 -0
- package/dist/src/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +2 -0
- package/dist/src/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +2 -0
- package/dist/src/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +2 -0
- package/dist/src/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +2 -0
- package/dist/src/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +2 -0
- package/dist/{components → src/components}/wrappers/WpDrawer.vue.d.ts +6 -4
- package/dist/src/composables/useApiErrorTracking.d.ts +28 -0
- package/dist/src/composables/useErrorTracking.d.ts +30 -0
- package/dist/src/composables/useHtmlValidator.d.ts +4 -0
- package/dist/{composables → src/composables}/useHttp.d.ts +2 -0
- package/dist/{composables → src/composables}/usePartner.d.ts +1 -0
- package/dist/src/composables/useRecommendation.d.ts +19 -0
- package/dist/src/composables/useSave.d.ts +4 -0
- package/dist/{composables → src/composables}/useStripo.d.ts +1 -0
- package/dist/src/composables/useStripoErrorCategory.d.ts +29 -0
- package/dist/src/composables/useStripoEventHandler.d.ts +3 -0
- package/dist/src/composables/useStripoSlackNotifier.d.ts +8 -0
- package/dist/src/config/compiler/outlookCompilerRules.d.ts +2 -0
- package/dist/src/config/compiler/recommendationCompilerRules.d.ts +2 -0
- package/dist/src/config/compiler/socialCompilerRules.d.ts +2 -0
- package/dist/src/config/compiler/unsubscribeCompilerRules.d.ts +2 -0
- package/dist/src/config/migrator/checkboxMigrator.d.ts +1 -0
- package/dist/src/config/migrator/couponBlockMigrator.d.ts +1 -0
- package/dist/src/config/migrator/index.d.ts +1 -0
- package/dist/src/config/migrator/radioButtonMigrator.d.ts +1 -0
- package/dist/src/config/migrator/unsubscribeMigrator.d.ts +1 -0
- package/dist/{enums → src/enums}/defaults.d.ts +6 -1
- package/dist/src/enums/extensions/recommendationBlock.d.ts +16 -0
- package/dist/src/enums/html-validator.d.ts +6 -0
- package/dist/src/enums/onboarding.d.ts +1 -0
- package/dist/src/enums/recommendation.d.ts +54 -0
- package/dist/src/enums/unsubscribe.d.ts +38 -0
- package/dist/src/extensions/Blocks/Checkbox/block.d.ts +11 -0
- package/dist/src/extensions/Blocks/Checkbox/control.d.ts +22 -0
- package/dist/src/extensions/Blocks/Checkbox/iconsRegistry.d.ts +4 -0
- package/dist/src/extensions/Blocks/Checkbox/settingsPanel.d.ts +4 -0
- package/dist/src/extensions/Blocks/Checkbox/template.d.ts +6 -0
- package/dist/src/extensions/Blocks/CouponBlock/block.d.ts +12 -0
- package/dist/src/extensions/Blocks/CouponBlock/extension.d.ts +2 -0
- package/dist/src/extensions/Blocks/CouponBlock/iconsRegistry.d.ts +4 -0
- package/dist/src/extensions/Blocks/CouponBlock/settingsPanel.d.ts +4 -0
- package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +3 -0
- package/dist/src/extensions/Blocks/RadioButton/block.d.ts +11 -0
- package/dist/src/extensions/Blocks/RadioButton/control.d.ts +17 -0
- package/dist/src/extensions/Blocks/RadioButton/extension.d.ts +2 -0
- package/dist/src/extensions/Blocks/RadioButton/iconsRegistry.d.ts +4 -0
- package/dist/src/extensions/Blocks/RadioButton/settingsPanel.d.ts +4 -0
- package/dist/src/extensions/Blocks/RadioButton/template.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +10 -0
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +29 -0
- package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +2 -0
- package/dist/src/extensions/Blocks/Recommendation/iconsRegistry.d.ts +4 -0
- package/dist/src/extensions/Blocks/Recommendation/settingsPanel.d.ts +4 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +555 -0
- package/dist/src/extensions/Blocks/Recommendation/template.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +7 -0
- package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +32 -0
- package/dist/src/extensions/Blocks/Unsubscribe/control.d.ts +29 -0
- package/dist/src/extensions/Blocks/Unsubscribe/elements/preview.d.ts +11 -0
- package/dist/src/extensions/Blocks/Unsubscribe/extension.d.ts +2 -0
- package/dist/src/extensions/Blocks/Unsubscribe/iconsRegistry.d.ts +4 -0
- package/dist/src/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +4 -0
- package/dist/src/extensions/Blocks/Unsubscribe/tagRegistry.d.ts +4 -0
- package/dist/src/extensions/Blocks/Unsubscribe/template.d.ts +12 -0
- package/dist/src/extensions/Blocks/Unsubscribe/utils/constants.d.ts +9 -0
- package/dist/src/extensions/Blocks/Unsubscribe/utils/utils.d.ts +7 -0
- package/dist/src/extensions/Blocks/_Boilerplate/block.d.ts +11 -0
- package/dist/src/extensions/Blocks/_Boilerplate/control.d.ts +17 -0
- package/dist/src/extensions/Blocks/_Boilerplate/extension.d.ts +2 -0
- package/dist/src/extensions/Blocks/_Boilerplate/iconsRegistry.d.ts +4 -0
- package/dist/src/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +4 -0
- package/dist/src/extensions/Blocks/_Boilerplate/template.d.ts +6 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +66 -0
- package/dist/src/extensions/DynamicContent/extension.d.ts +2 -0
- package/dist/src/mock/api/template-library.d.ts +2 -0
- package/dist/src/mock/api/unsubscribe.d.ts +2 -0
- package/dist/src/mock/api/user-modal-state.d.ts +2 -0
- package/dist/src/mock/api/validator.d.ts +2 -0
- package/dist/src/services/onboardingApi.d.ts +4 -0
- package/dist/src/services/recommendationApi.d.ts +6 -0
- package/dist/src/services/slackNotificationService.d.ts +110 -0
- package/dist/{services → src/services}/stripoApi.d.ts +1 -1
- package/dist/src/services/stripoErrorDeduplicationService.d.ts +75 -0
- package/dist/src/services/unsubscribeApi.d.ts +4 -0
- package/dist/src/stores/config.d.ts +96 -0
- package/dist/{stores → src/stores}/dynamic-content.d.ts +12 -0
- package/dist/{stores → src/stores}/editor.d.ts +42 -0
- package/dist/src/stores/onboarding.d.ts +1068 -0
- package/dist/src/stores/recommendation.d.ts +10 -0
- package/dist/src/stores/unsubscribe.d.ts +256 -0
- package/dist/src/utils/genericUtil.d.ts +9 -0
- package/dist/static/assets/onboarding-img.svg.js +4 -0
- package/dist/static/styles/components/alert-message.css.js +32 -2
- package/dist/static/styles/components/button.css.js +32 -2
- package/dist/static/styles/components/notification.css.js +55 -0
- package/dist/static/styles/components/popup.css.js +68 -0
- package/dist/static/styles/components/wide-panel.css.js +5 -1
- package/dist/static/styles/customEditorStyle.css.js +6 -0
- package/dist/static/styles/variables.css.js +10 -0
- package/dist/stores/config.js +17 -0
- package/dist/stores/dynamic-content.js +7 -6
- package/dist/stores/editor.js +3 -1
- package/dist/stores/onboarding.js +95 -0
- package/dist/stores/recommendation.js +9 -0
- package/dist/stores/unsubscribe.js +129 -0
- package/dist/utils/genericUtil.js +9 -5
- package/dist/utils/templatePreparation.js +25 -17
- package/package.json +11 -5
- package/dist/@types/events.d.ts +0 -1
- package/dist/_virtual/AddCustomFont.js +0 -4
- package/dist/_virtual/AiAssistantValueType.js +0 -4
- package/dist/_virtual/BackgroundColorBuiltInControl.js +0 -4
- package/dist/_virtual/BackgroundImageBuiltInControl.js +0 -4
- package/dist/_virtual/Block.js +0 -4
- package/dist/_virtual/BlockAttributes.js +0 -4
- package/dist/_virtual/BlockCompositionType.js +0 -4
- package/dist/_virtual/BlockPaddingsBuiltInControl.js +0 -4
- package/dist/_virtual/BlockRenderer.js +0 -4
- package/dist/_virtual/BlockType.js +0 -4
- package/dist/_virtual/BlocksPanel.js +0 -4
- package/dist/_virtual/BuiltInControl.js +0 -4
- package/dist/_virtual/BuiltInControlTypes.js +0 -4
- package/dist/_virtual/ButtonBorderBuiltInControl.js +0 -4
- package/dist/_virtual/ButtonColorBuiltInControl.js +0 -4
- package/dist/_virtual/ButtonFontColorBuiltInControl.js +0 -4
- package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +0 -4
- package/dist/_virtual/ButtonTextBuiltInControl.js +0 -4
- package/dist/_virtual/ContextAction.js +0 -4
- package/dist/_virtual/ContextActionType.js +0 -4
- package/dist/_virtual/Control.js +0 -4
- package/dist/_virtual/EditorStatePropertyType.js +0 -4
- package/dist/_virtual/Extension.js +0 -4
- package/dist/_virtual/ExtensionBuilder.js +0 -4
- package/dist/_virtual/FontFamilyBuiltInControl.js +0 -4
- package/dist/_virtual/LinkColorBuiltInControl.js +0 -4
- package/dist/_virtual/ModificationDescription.js +0 -4
- package/dist/_virtual/PanelPosition.js +0 -4
- package/dist/_virtual/PreviewDeviceMode.js +0 -4
- package/dist/_virtual/SettingsPanelRegistry.js +0 -4
- package/dist/_virtual/SettingsPanelTab.js +0 -4
- package/dist/_virtual/SettingsTab.js +0 -4
- package/dist/_virtual/StructureBorderBuiltInControl.js +0 -4
- package/dist/_virtual/StructurePaddingsBuiltInControl.js +0 -4
- package/dist/_virtual/TextColorBuiltInControl.js +0 -4
- package/dist/_virtual/TextLineSpacingBuiltInControl.js +0 -4
- package/dist/_virtual/TextSizeBuiltInControl.js +0 -4
- package/dist/_virtual/TextStyleBuiltInControl.js +0 -4
- package/dist/_virtual/UIElement.js +0 -4
- package/dist/_virtual/UIElementTagRegistry.js +0 -4
- package/dist/_virtual/UIElementType.js +0 -4
- package/dist/_virtual/UIElementsAttributes.js +0 -4
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -4
- package/dist/config/compiler/outlookCompilerRules.d.ts +0 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +0 -51
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +0 -52
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +0 -41
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +0 -18
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +0 -32
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +0 -18
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +0 -8
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +0 -34
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +0 -104
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +0 -46
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +0 -44
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +0 -22
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +0 -46
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +0 -46
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +0 -20
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +0 -18
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +0 -32
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +0 -46
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +0 -44
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +0 -266
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +0 -26
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +0 -22
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +0 -18
- package/dist/utils/genericUtil.d.ts +0 -3
- /package/dist/{@types → src/@types}/save-as-template.d.ts +0 -0
- /package/dist/{App.vue.d.ts → src/App.vue.d.ts} +0 -0
- /package/dist/{components → src/components}/organisms/LoadingWrapper.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/base/Toaster.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/PreviewContainer.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -0
- /package/dist/{components/organisms/header/HeaderWrapper.vue.d.ts → src/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts} +0 -0
- /package/dist/{components/organisms/header/LeftSlot.vue.d.ts → src/components/organisms/extensions/recommendation/Filters.vue.d.ts} +0 -0
- /package/dist/{components/organisms/header/MiddleSlot.vue.d.ts → src/components/organisms/header/LeftSlot.vue.d.ts} +0 -0
- /package/dist/{components/organisms/header/RightSlot.vue.d.ts → src/components/organisms/header/MiddleSlot.vue.d.ts} +0 -0
- /package/dist/{components → src/components}/organisms/header/ViewOptions.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/version-history/RestoreButton.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/version-history/VersionHistory.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/version-history/ViewOptions.vue.d.ts +0 -0
- /package/dist/{components/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts → src/components/organisms/onboarding/AMPOnboarding.vue.d.ts} +0 -0
- /package/dist/{components → src/components}/wrappers/WpModal.vue.d.ts +0 -0
- /package/dist/{composables → src/composables}/useActionsApi.d.ts +0 -0
- /package/dist/{composables → src/composables}/useApiExample.d.ts +0 -0
- /package/dist/{composables → src/composables}/useCodeEditorApi.d.ts +0 -0
- /package/dist/{composables → src/composables}/useConfig.d.ts +0 -0
- /package/dist/{composables → src/composables}/useCustomInterfaceAppearance.d.ts +0 -0
- /package/dist/{composables → src/composables}/useDebounce.d.ts +0 -0
- /package/dist/{composables → src/composables}/useExport.d.ts +0 -0
- /package/dist/{composables → src/composables}/useGuidoActions.d.ts +0 -0
- /package/dist/{composables → src/composables}/useHtmlCompiler.d.ts +0 -0
- /package/dist/{composables → src/composables}/usePreviewMode.d.ts +0 -0
- /package/dist/{composables → src/composables}/useProvideInject.d.ts +0 -0
- /package/dist/{composables → src/composables}/useResponsivePreview.d.ts +0 -0
- /package/dist/{composables → src/composables}/useToaster.d.ts +0 -0
- /package/dist/{composables → src/composables}/useTranslations.d.ts +0 -0
- /package/dist/{composables → src/composables}/useValidation.d.ts +0 -0
- /package/dist/{composables → src/composables}/useVersionHistoryApi.d.ts +0 -0
- /package/dist/{composables → src/composables}/validators/saveAsTemplate.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/htmlCompilerRules.d.ts +0 -0
- /package/dist/{enums → src/enums}/displayConditions.d.ts +0 -0
- /package/dist/{enums → src/enums}/preview.d.ts +0 -0
- /package/dist/{enums → src/enums}/toaster.d.ts +0 -0
- /package/dist/{extensions/DynamicContent → src/extensions/Blocks/Checkbox}/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/DynamicContent/dynamic-content-modal.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/DynamicContent/dynamic-content.d.ts +0 -0
- /package/dist/{library.d.ts → src/library.d.ts} +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
- /package/dist/{mock → src/mock}/api/auth.d.ts +0 -0
- /package/dist/{mock → src/mock}/api/custom-fonts.d.ts +0 -0
- /package/dist/{mock → src/mock}/api/default-template.d.ts +0 -0
- /package/dist/{mock/api/template-library.d.ts → src/mock/api/recommendation.d.ts} +0 -0
- /package/dist/{mock → src/mock}/browser.d.ts +0 -0
- /package/dist/{mock → src/mock}/handlers.d.ts +0 -0
- /package/dist/{services → src/services}/templateLibraryApi.d.ts +0 -0
- /package/dist/{stores → src/stores}/preview.d.ts +0 -0
- /package/dist/{stores → src/stores}/save-as-template.d.ts +0 -0
- /package/dist/{stores → src/stores}/toaster.d.ts +0 -0
- /package/dist/{stores → src/stores}/version-history.d.ts +0 -0
- /package/dist/{utils → src/utils}/arrayUtil.d.ts +0 -0
- /package/dist/{utils → src/utils}/base64.d.ts +0 -0
- /package/dist/{utils → src/utils}/dateUtil.d.ts +0 -0
- /package/dist/{utils → src/utils}/htmlCompiler.d.ts +0 -0
- /package/dist/{utils → src/utils}/templatePreparation.d.ts +0 -0
- /package/dist/{utils → src/utils}/tooltipUtils.d.ts +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const a = [
|
|
2
|
+
{
|
|
3
|
+
id: "fix-custom-social-block",
|
|
4
|
+
description: "Fixing custom social block.",
|
|
5
|
+
type: "custom",
|
|
6
|
+
processor: (e) => {
|
|
7
|
+
let c = e;
|
|
8
|
+
const s = c.match(/<table[^>]*?class="[^>]*?es-social[^>]*?"[\S\s]*?<\/table>/gm);
|
|
9
|
+
return s && s.forEach((o) => {
|
|
10
|
+
if (o.match(/<img[^>]*?height="[0-9]+?"/gm)) {
|
|
11
|
+
const i = o.replace(/<img[^>]*?height="[0-9]+?"/gm, (t) => t.replace("height", "width"));
|
|
12
|
+
c = c.replace(o, i);
|
|
13
|
+
}
|
|
14
|
+
}), c;
|
|
15
|
+
},
|
|
16
|
+
priority: 80
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
export {
|
|
20
|
+
a as socialCompilerRules
|
|
21
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { usePartner as U } from "../../composables/usePartner.js";
|
|
2
|
+
import { LINK_REGEXES as l, LINK_TYPES as b, URLS as f } from "../../enums/unsubscribe.js";
|
|
3
|
+
import { parsePageList as B } from "../../extensions/Blocks/Unsubscribe/utils/utils.js";
|
|
4
|
+
import { useConfigStore as N } from "../../stores/config.js";
|
|
5
|
+
import { useUnsubscribeStore as I } from "../../stores/unsubscribe.js";
|
|
6
|
+
const T = [
|
|
7
|
+
{
|
|
8
|
+
id: "add-unsubscribe-link-values",
|
|
9
|
+
description: "Adding unsubscribe link values",
|
|
10
|
+
type: "custom",
|
|
11
|
+
processor: (t) => {
|
|
12
|
+
const { getPartnerName: i } = U(), a = N(), n = I(), u = a.getVariationId;
|
|
13
|
+
if (!u)
|
|
14
|
+
return t;
|
|
15
|
+
let o = t;
|
|
16
|
+
const e = `/${i()}/email/${u}?user={{iid}}`;
|
|
17
|
+
return new DOMParser().parseFromString(o, "text/html").querySelectorAll(".unsubscribe-block-v2[data-unsubscribe-page-list]").forEach((p) => {
|
|
18
|
+
var g;
|
|
19
|
+
const d = p.getAttribute("data-unsubscribe-page-list");
|
|
20
|
+
if (!d)
|
|
21
|
+
return;
|
|
22
|
+
const S = B(d), m = ((g = n.templates) == null ? void 0 : g.filter(
|
|
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;
|
|
34
|
+
},
|
|
35
|
+
priority: 60
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "remove-data-ogsb-button-styles",
|
|
39
|
+
description: "Removing styles like [data-ogsb] .es-button.es-button-123 { background: red; }",
|
|
40
|
+
type: "regex",
|
|
41
|
+
pattern: l.DATA_OGSB_BUTTON_CSS_REGEX,
|
|
42
|
+
replacement: "",
|
|
43
|
+
flags: "g",
|
|
44
|
+
priority: 61
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "format-comment-braces",
|
|
48
|
+
description: "Adding spaces around comment braces for proper formatting",
|
|
49
|
+
type: "custom",
|
|
50
|
+
processor: (t) => t.replace(/{#/g, "{ #").replace(/#}/g, "# }"),
|
|
51
|
+
priority: 62
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: "add-universal-link-flags",
|
|
55
|
+
description: "Adding universal link flags",
|
|
56
|
+
type: "custom",
|
|
57
|
+
processor: (t) => {
|
|
58
|
+
let i = t;
|
|
59
|
+
const a = i.match(/<a[^>]+>(.*?)<\/a>/gm);
|
|
60
|
+
return a && a.forEach((n) => {
|
|
61
|
+
if (n.includes("insEmail=1"))
|
|
62
|
+
return;
|
|
63
|
+
if (n.match(/<a\s+(?:[^>]*?\s+)?href=(["'`”])(.*?)\1\s+(?:[^>]*?\s+)?universal=(["'`”])true\3/gm)) {
|
|
64
|
+
const o = n.replace(/href=(["'`”])(.*?)\1/gm, (e) => {
|
|
65
|
+
const r = e.slice(6, e.length - 1).trim();
|
|
66
|
+
return e.includes("?") || e.includes("#") ? r.slice(-1) === "&" ? e.replace(r, `${r}insEmail=1`) : e.replace(r, `${r}&insEmail=1`) : e.replace(r, `${r}?insEmail=1`);
|
|
67
|
+
});
|
|
68
|
+
i = i.replace(n, o);
|
|
69
|
+
}
|
|
70
|
+
}), i;
|
|
71
|
+
},
|
|
72
|
+
priority: 63
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
export {
|
|
76
|
+
T as unsubscribeCompilerRules
|
|
77
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var y = (s, t, e) => t in s ? x(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var m = (s, t, e) => y(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import b from "../../extensions/Blocks/Checkbox/template.js";
|
|
5
|
+
class f {
|
|
6
|
+
constructor() {
|
|
7
|
+
m(this, "parser");
|
|
8
|
+
this.parser = new DOMParser();
|
|
9
|
+
}
|
|
10
|
+
migrate(t) {
|
|
11
|
+
try {
|
|
12
|
+
const e = this.parser.parseFromString(t, "text/html"), i = e.querySelectorAll("td.checkbox-block");
|
|
13
|
+
return i.length === 0 ? t : (i.forEach((r) => {
|
|
14
|
+
const n = r.getAttribute("id"), l = this.extractTextFromElement(r, "ins-title"), c = this.extractTextFromElement(r, "ins-description"), a = this.buildTextBlock(l), p = this.buildTextBlock(c), g = b.replace("{-{-TITLE-}-}", a).replace("{-{-DESCRIPTION-}-}", p), o = this.parser.parseFromString(
|
|
15
|
+
`<table id="tempDoc"><tbody><tr>${g}</tr></tbody></table>`,
|
|
16
|
+
"text/html"
|
|
17
|
+
).querySelector(".checkbox-block-v2");
|
|
18
|
+
o && r.parentNode && (o.setAttribute("id", n || ""), r.parentNode.replaceChild(o, r));
|
|
19
|
+
}), e.documentElement.outerHTML);
|
|
20
|
+
} catch (e) {
|
|
21
|
+
return console.error("CheckboxMigrator failed:", e), t;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
extractTextFromElement(t, e) {
|
|
25
|
+
var o, u;
|
|
26
|
+
const i = t.querySelector(`.${e}`);
|
|
27
|
+
if (!i)
|
|
28
|
+
return {
|
|
29
|
+
text: e === "ins-title" ? "Title" : "Description",
|
|
30
|
+
isBold: !1,
|
|
31
|
+
isItalic: !1,
|
|
32
|
+
align: "left",
|
|
33
|
+
styles: ""
|
|
34
|
+
};
|
|
35
|
+
const r = i.querySelector("p");
|
|
36
|
+
if (!r)
|
|
37
|
+
return {
|
|
38
|
+
text: ((o = i.textContent) == null ? void 0 : o.trim()) || (e === "ins-title" ? "Title" : "Description"),
|
|
39
|
+
isBold: !1,
|
|
40
|
+
isItalic: !1,
|
|
41
|
+
align: i.getAttribute("align") || "left",
|
|
42
|
+
styles: ""
|
|
43
|
+
};
|
|
44
|
+
const n = ((u = r.textContent) == null ? void 0 : u.trim()) || (e === "ins-title" ? "Title" : "Description"), l = r.getAttribute("style") || "", c = i.getAttribute("align") || r.getAttribute("align") || "left", a = /font-weight\s*:\s*bold/i.test(l) || !!r.querySelector("b, strong"), p = /font-style\s*:\s*italic/i.test(l) || !!r.querySelector("i, em"), g = this.removeStyleProperties(l, ["font-weight", "font-style"]), d = this.convertInlineToBlock(g);
|
|
45
|
+
return {
|
|
46
|
+
text: n,
|
|
47
|
+
isBold: a,
|
|
48
|
+
isItalic: p,
|
|
49
|
+
align: c,
|
|
50
|
+
styles: d
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
buildTextBlock(t) {
|
|
54
|
+
let e = t.text;
|
|
55
|
+
t.isBold && t.isItalic ? e = `<strong path="1,0"><em path="1,0,0">${e}</em></strong>` : t.isBold ? e = `<strong path="1,0">${e}</strong>` : t.isItalic && (e = `<em path="1,0">${e}</em>`);
|
|
56
|
+
const i = t.align ? ` align="${t.align}"` : "", r = t.styles ? ` style="${t.styles}"` : "";
|
|
57
|
+
return `
|
|
58
|
+
<td class="esd-block-text" ${i}>
|
|
59
|
+
<p path="1" ${r}>
|
|
60
|
+
${e}
|
|
61
|
+
</p>
|
|
62
|
+
</td>
|
|
63
|
+
`;
|
|
64
|
+
}
|
|
65
|
+
removeStyleProperties(t, e) {
|
|
66
|
+
return t ? e.reduce((r, n) => {
|
|
67
|
+
const l = new RegExp(`${n}\\s*:\\s*[^;]*;?`, "gi");
|
|
68
|
+
return r.replace(l, "");
|
|
69
|
+
}, t).replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim() : "";
|
|
70
|
+
}
|
|
71
|
+
convertInlineToBlock(t) {
|
|
72
|
+
if (!t)
|
|
73
|
+
return "";
|
|
74
|
+
let e = t.replace(/display\s*:\s*inline/gi, "display: block");
|
|
75
|
+
return /display\s*:/i.test(e) || (e = e ? `${e}; display: block` : "display: block"), e.replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function k(s) {
|
|
79
|
+
return new f().migrate(s);
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
k as migrateCheckbox
|
|
83
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
|
+
var m = (o, t, e) => t in o ? k(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var x = (o, t, e) => m(o, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import h from "../../extensions/Blocks/CouponBlock/template.js";
|
|
5
|
+
class y {
|
|
6
|
+
constructor() {
|
|
7
|
+
x(this, "parser");
|
|
8
|
+
this.parser = new DOMParser();
|
|
9
|
+
}
|
|
10
|
+
migrate(t) {
|
|
11
|
+
try {
|
|
12
|
+
const e = this.parser.parseFromString(t, "text/html"), n = e.querySelectorAll("td.coupon-block.ins-coupon-code:not([esd-extension-block-id])");
|
|
13
|
+
return n.length === 0 ? t : (n.forEach((s) => {
|
|
14
|
+
const i = this.extractText(s), c = this.extractAttributes(s), l = h.replace("{@COUPON_CODE}", i).replace(
|
|
15
|
+
'class="coupon-block coupon-block-v2 ins-coupon-code esd-block-text esd-extension-block"',
|
|
16
|
+
c.class
|
|
17
|
+
).replace(
|
|
18
|
+
'esd-extension-block-id="coupon-block"',
|
|
19
|
+
`esd-extension-block-id="coupon-block"${c.block}`
|
|
20
|
+
).replace(
|
|
21
|
+
'<p class="ins-title"',
|
|
22
|
+
`<p class="ins-title"${c.text}`
|
|
23
|
+
);
|
|
24
|
+
s.outerHTML = l;
|
|
25
|
+
}), e.documentElement.outerHTML);
|
|
26
|
+
} catch (e) {
|
|
27
|
+
return console.error("CouponBlockMigrator failed:", e), t;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
extractText(t) {
|
|
31
|
+
var g;
|
|
32
|
+
const e = t.querySelector(".ins-title");
|
|
33
|
+
if (!e)
|
|
34
|
+
return "{@COUPON_CODE}";
|
|
35
|
+
const n = ((g = e.textContent) == null ? void 0 : g.trim()) || "{@COUPON_CODE}", s = e.getAttribute("style") || "", i = /font-weight\s*:\s*bold/i.test(s), c = /font-style\s*:\s*italic/i.test(s), l = /text-decoration[^;]*underline/i.test(s), u = /text-decoration[^;]*line-through/i.test(s), a = /vertical-align\s*:\s*sub/i.test(s), p = /vertical-align\s*:\s*super/i.test(s);
|
|
36
|
+
return [
|
|
37
|
+
[i, "strong"],
|
|
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);
|
|
44
|
+
}
|
|
45
|
+
extractAttributes(t) {
|
|
46
|
+
const e = t.querySelector(".ins-title"), n = t.className.split(" ").filter((r) => r.startsWith("es-")), s = t.getAttribute("align"), i = t.getAttribute("bgcolor"), c = t.getAttribute("style"), l = e == null ? void 0 : e.getAttribute("style");
|
|
47
|
+
let u = 'class="coupon-block coupon-block-v2 ins-coupon-code esd-block-text esd-extension-block';
|
|
48
|
+
n.length && (u += ` ${n.join(" ")}`), u += '"';
|
|
49
|
+
let a = "";
|
|
50
|
+
if (s && (a += ` align="${s}"`), i && (a += ` bgcolor="${i}"`), c) {
|
|
51
|
+
const r = c.replace(/background-color[^;]+;?/gi, "").replace(/;+/g, ";").trim();
|
|
52
|
+
r && (a += ` style="${r.replace(/"/g, "'")}"`);
|
|
53
|
+
}
|
|
54
|
+
let p = "";
|
|
55
|
+
if (l) {
|
|
56
|
+
const r = l.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, "'");
|
|
57
|
+
r && (p = ` style="${r}"`);
|
|
58
|
+
}
|
|
59
|
+
return { class: u, block: a, text: p };
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function C(o) {
|
|
63
|
+
return new y().migrate(o);
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
C as migrateCouponBlock
|
|
67
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { migrateCheckbox as o } from "./checkboxMigrator.js";
|
|
2
|
+
import { migrateCouponBlock as m } from "./couponBlockMigrator.js";
|
|
3
|
+
import { migrateRadioButton as i } from "./radioButtonMigrator.js";
|
|
4
|
+
import { migrateUnsubscribe as e } from "./unsubscribeMigrator.js";
|
|
5
|
+
const c = async (t) => {
|
|
6
|
+
let r = t;
|
|
7
|
+
return r = o(r), r = i(r), r = await e(r), r = m(r), r;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
c as migrate
|
|
11
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
var b = Object.defineProperty;
|
|
2
|
+
var f = (r, t, e) => t in r ? b(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
+
var x = (r, t, e) => f(r, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import h from "../../extensions/Blocks/RadioButton/template.js";
|
|
5
|
+
class T {
|
|
6
|
+
constructor() {
|
|
7
|
+
x(this, "parser");
|
|
8
|
+
this.parser = new DOMParser();
|
|
9
|
+
}
|
|
10
|
+
migrate(t) {
|
|
11
|
+
try {
|
|
12
|
+
const e = this.parser.parseFromString(t, "text/html"), i = e.querySelectorAll("td.radio-button-block");
|
|
13
|
+
return i.length === 0 ? t : (i.forEach((s) => {
|
|
14
|
+
const o = s.getAttribute("id"), l = this.extractTextFromElement(s, "ins-title"), a = this.extractTextFromElement(s, "ins-description"), p = this.extractTextFromElement(s, "ins-subscribe"), u = this.extractTextFromElement(s, "ins-unsubscribe"), d = this.buildTextBlock(l), g = this.buildTextBlock(a), m = this.buildTextBlock({ ...p, classList: "" }), n = this.buildTextBlock({ ...u, classList: "" }), c = h.replace("{-{-TITLE-}-}", d).replace("{-{-DESCRIPTION-}-}", g).replace("{-{-YES-}-}", m).replace("{-{-NO-}-}", n), y = this.parser.parseFromString(
|
|
15
|
+
`<table id="tempDoc"><tbody><tr>${c}</tr></tbody></table>`,
|
|
16
|
+
"text/html"
|
|
17
|
+
).querySelector(".radio-button-v2");
|
|
18
|
+
y && s.parentNode && (y.setAttribute("id", o || ""), s.parentNode.replaceChild(y, s));
|
|
19
|
+
}), e.documentElement.outerHTML);
|
|
20
|
+
} catch (e) {
|
|
21
|
+
return console.error("RadioButtonMigrator failed:", e), t;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
extractTextFromElement(t, e) {
|
|
25
|
+
var n, c;
|
|
26
|
+
const i = t.querySelector(`.${e}`);
|
|
27
|
+
if (!i)
|
|
28
|
+
return {
|
|
29
|
+
text: e === "ins-title" ? "Title" : "Description",
|
|
30
|
+
isBold: !1,
|
|
31
|
+
isItalic: !1,
|
|
32
|
+
align: "left",
|
|
33
|
+
styles: "",
|
|
34
|
+
classList: ""
|
|
35
|
+
};
|
|
36
|
+
const s = i.querySelector("p");
|
|
37
|
+
if (!s)
|
|
38
|
+
return {
|
|
39
|
+
text: ((n = i.textContent) == null ? void 0 : n.trim()) || (e === "ins-title" ? "Title" : "Description"),
|
|
40
|
+
isBold: !1,
|
|
41
|
+
isItalic: !1,
|
|
42
|
+
align: i.getAttribute("align") || "left",
|
|
43
|
+
styles: "",
|
|
44
|
+
classList: ""
|
|
45
|
+
};
|
|
46
|
+
const o = ((c = s.textContent) == null ? void 0 : c.trim()) || (e === "ins-title" ? "Title" : "Description"), l = s.getAttribute("style") || "", a = i.getAttribute("align") || s.getAttribute("align") || "left", p = /font-weight\s*:\s*bold/i.test(l) || !!s.querySelector("b, strong"), u = /font-style\s*:\s*italic/i.test(l) || !!s.querySelector("i, em"), d = this.removeStyleProperties(l, ["font-weight", "font-style"]), g = this.convertInlineToBlock(d), m = i.getAttribute("class") || "";
|
|
47
|
+
return {
|
|
48
|
+
text: o,
|
|
49
|
+
isBold: p,
|
|
50
|
+
isItalic: u,
|
|
51
|
+
align: a,
|
|
52
|
+
styles: g,
|
|
53
|
+
classList: m
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
buildTextBlock(t) {
|
|
57
|
+
let e = t.text;
|
|
58
|
+
t.isBold && t.isItalic ? e = `<strong path="1,0"><em path="1,0,0">${e}</em></strong>` : t.isBold ? e = `<strong path="1,0">${e}</strong>` : t.isItalic && (e = `<em path="1,0">${e}</em>`);
|
|
59
|
+
const i = t.align ? ` align="${t.align}"` : "", s = t.styles ? ` style="${t.styles.replaceAll('"', "'")}"` : "";
|
|
60
|
+
return `
|
|
61
|
+
<td class="esd-block-text ${t.classList}" ${i}>
|
|
62
|
+
<p path="1" ${s}>
|
|
63
|
+
${e}
|
|
64
|
+
</p>
|
|
65
|
+
</td>
|
|
66
|
+
`;
|
|
67
|
+
}
|
|
68
|
+
removeStyleProperties(t, e) {
|
|
69
|
+
return t ? e.reduce((s, o) => {
|
|
70
|
+
const l = new RegExp(`${o}\\s*:\\s*[^;]*;?`, "gi");
|
|
71
|
+
return s.replace(l, "");
|
|
72
|
+
}, t).replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim() : "";
|
|
73
|
+
}
|
|
74
|
+
convertInlineToBlock(t) {
|
|
75
|
+
if (!t)
|
|
76
|
+
return "";
|
|
77
|
+
let e = t.replace(/display\s*:\s*inline/gi, "display: block");
|
|
78
|
+
return /display\s*:/i.test(e) || (e = e ? `${e}; display: block` : "display: block"), e.replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function A(r) {
|
|
82
|
+
return new T().migrate(r);
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
A as migrateRadioButton
|
|
86
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var x = (l, e, t) => e in l ? h(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
|
|
3
|
+
var S = (l, e, t) => x(l, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { MERGE_TAGS as k, PAGE_TYPES as p } from "../../enums/unsubscribe.js";
|
|
5
|
+
import { DATA_ATTRIBUTES as A } from "../../extensions/Blocks/Unsubscribe/utils/constants.js";
|
|
6
|
+
import { useUnsubscribeStore as T } from "../../stores/unsubscribe.js";
|
|
7
|
+
class C {
|
|
8
|
+
constructor() {
|
|
9
|
+
S(this, "parser");
|
|
10
|
+
this.parser = new DOMParser();
|
|
11
|
+
}
|
|
12
|
+
async migrate(e) {
|
|
13
|
+
try {
|
|
14
|
+
const t = this.parser.parseFromString(e, "text/html"), i = t.querySelectorAll("td.unsubscribe-block");
|
|
15
|
+
if (!i.length)
|
|
16
|
+
return e;
|
|
17
|
+
const o = T();
|
|
18
|
+
return await o.fetchTemplates(), i.forEach((r) => {
|
|
19
|
+
const c = r.getAttribute("id"), g = this.extractPaddingClass(r), u = r.getAttribute("bgcolor") || "", n = this.extractUnsubscribeContent(r), s = this.getCollectionTypeFromMergeTag(n.linkHref), b = o.getSelectedUnsubscribePagesByCollection(s);
|
|
20
|
+
console.debug("[UnsubscribeMigrator]", {
|
|
21
|
+
mergeTag: n.linkHref,
|
|
22
|
+
collectionType: s,
|
|
23
|
+
pageIds: b,
|
|
24
|
+
paddingClass: g,
|
|
25
|
+
bgColor: u
|
|
26
|
+
});
|
|
27
|
+
const f = this.buildUnsubscribeBlock(
|
|
28
|
+
n,
|
|
29
|
+
s,
|
|
30
|
+
b,
|
|
31
|
+
g,
|
|
32
|
+
u
|
|
33
|
+
), a = this.parser.parseFromString(
|
|
34
|
+
`<table id="tempDoc"><tbody><tr>${f}</tr></tbody></table>`,
|
|
35
|
+
"text/html"
|
|
36
|
+
).querySelector(".unsubscribe-block-v2");
|
|
37
|
+
a && r.parentNode && (a.setAttribute("id", c || ""), r.parentNode.replaceChild(a, r));
|
|
38
|
+
}), t.documentElement.outerHTML;
|
|
39
|
+
} catch (t) {
|
|
40
|
+
return console.error("UnsubscribeMigrator failed:", t), e;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
extractPaddingClass(e) {
|
|
44
|
+
const i = (e.getAttribute("class") || "").match(/\bes-p\d+\b/);
|
|
45
|
+
return i ? i[0] : "";
|
|
46
|
+
}
|
|
47
|
+
extractUnsubscribeContent(e) {
|
|
48
|
+
var m;
|
|
49
|
+
const t = e.querySelector("p");
|
|
50
|
+
if (!t)
|
|
51
|
+
return {
|
|
52
|
+
textBefore: "You can ",
|
|
53
|
+
linkText: "unsubscribe",
|
|
54
|
+
linkHref: "{{ins-unsubscribe-link}}",
|
|
55
|
+
linkStyle: "",
|
|
56
|
+
textAfter: " from our emails, if you need to.",
|
|
57
|
+
isBold: !1,
|
|
58
|
+
isItalic: !1,
|
|
59
|
+
align: "center",
|
|
60
|
+
paragraphStyle: ""
|
|
61
|
+
};
|
|
62
|
+
const i = e.getAttribute("align") || t.getAttribute("align") || "center", o = t.getAttribute("style") || "", r = t.querySelector("a.unsubscribe-link") || t.querySelector('a[href*="unsubscribe"]');
|
|
63
|
+
if (!r)
|
|
64
|
+
return {
|
|
65
|
+
textBefore: "You can ",
|
|
66
|
+
linkText: "unsubscribe",
|
|
67
|
+
linkHref: "{{ins-unsubscribe-link}}",
|
|
68
|
+
linkStyle: "",
|
|
69
|
+
textAfter: " from our emails, if you need to.",
|
|
70
|
+
isBold: !1,
|
|
71
|
+
isItalic: !1,
|
|
72
|
+
align: i,
|
|
73
|
+
paragraphStyle: o
|
|
74
|
+
};
|
|
75
|
+
const c = ((m = r.textContent) == null ? void 0 : m.trim()) || "unsubscribe", g = r.getAttribute("href") || "{{ins-unsubscribe-link}}", u = r.getAttribute("style") || "", n = t.textContent || "", s = n.indexOf(c), b = s >= 0 ? n.substring(0, s).trim() : "You can ", f = s >= 0 ? n.substring(s + c.length).trim() : " from our emails, if you need to.", d = !!t.querySelector("b, strong"), a = !!t.querySelector("i, em");
|
|
76
|
+
return {
|
|
77
|
+
textBefore: b,
|
|
78
|
+
linkText: c,
|
|
79
|
+
linkHref: this.normalizeUnsubscribeHref(g),
|
|
80
|
+
linkStyle: u,
|
|
81
|
+
textAfter: f,
|
|
82
|
+
isBold: d,
|
|
83
|
+
isItalic: a,
|
|
84
|
+
align: i,
|
|
85
|
+
paragraphStyle: o
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
buildUnsubscribeBlock(e, t, i, o, r) {
|
|
89
|
+
const c = e.linkStyle ? ` style="${e.linkStyle}"` : "", u = `<a ${`href="${e.linkHref}" class="unsubscribe-link" target="_blank" data-unsubscribe-link="true"`}${c}>${e.linkText}</a>`, n = [];
|
|
90
|
+
e.textBefore && n.push(e.textBefore), n.push(u), e.textAfter && n.push(e.textAfter);
|
|
91
|
+
let s = n.join(" ");
|
|
92
|
+
e.isBold && e.isItalic ? s = `<strong path="1,0"><em path="1,0,0">${s}</em></strong>` : e.isBold ? s = `<strong path="1,0">${s}</strong>` : e.isItalic && (s = `<em path="1,0">${s}</em>`);
|
|
93
|
+
const b = e.align ? ` align="${e.align}"` : "", f = r ? ` bgcolor="${r}"` : "", d = e.paragraphStyle ? ` style="${e.paragraphStyle}"` : "", a = i.length > 0 ? ` ${A.PAGE_LIST}="${i.join(",")}"` : "", m = ` ${A.PAGE_TYPE}="${t}"`, y = "esd-block-text unsubscribe-block-v2 esd-block-unsubscribe esd-unsubscribe-block esd-extension-block";
|
|
94
|
+
return `
|
|
95
|
+
<td
|
|
96
|
+
data-migration="true"
|
|
97
|
+
esd-extension-block-id="unsubscribe-block"
|
|
98
|
+
class="${o ? `${y} ${o}` : y}"
|
|
99
|
+
${b}${f}${m}${a}
|
|
100
|
+
>
|
|
101
|
+
<p path="1"${d}>
|
|
102
|
+
${s}
|
|
103
|
+
</p>
|
|
104
|
+
</td>
|
|
105
|
+
`;
|
|
106
|
+
}
|
|
107
|
+
getCollectionTypeFromMergeTag(e) {
|
|
108
|
+
return e === k[p.SUBSCRIPTION_PREFERENCE_CENTER] ? p.SUBSCRIPTION_PREFERENCE_CENTER : e === k[p.GLOBAL_UNSUBSCRIBE] ? p.GLOBAL_UNSUBSCRIBE : p.GLOBAL_UNSUBSCRIBE;
|
|
109
|
+
}
|
|
110
|
+
normalizeUnsubscribeHref(e) {
|
|
111
|
+
if (Object.values(k).includes(e))
|
|
112
|
+
return e;
|
|
113
|
+
const i = e.match(/{{ins-(?:global-)?(?:preferences-)?unsubscribe-link}}/);
|
|
114
|
+
return i ? i[0] : e.includes("unsubscribe") || e.includes("unsub") ? (console.warn(
|
|
115
|
+
`[UnsubscribeMigrator] Unrecognized unsubscribe href format: "${e}". Defaulting to {{ins-unsubscribe-link}}`
|
|
116
|
+
), "{{ins-unsubscribe-link}}") : e;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
async function M(l) {
|
|
120
|
+
return new C().migrate(l);
|
|
121
|
+
}
|
|
122
|
+
export {
|
|
123
|
+
M as migrateUnsubscribe
|
|
124
|
+
};
|
package/dist/enums/defaults.js
CHANGED
|
@@ -1,24 +1,63 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a = {
|
|
2
2
|
translationsPath: "window.trans.en",
|
|
3
3
|
emailHeader: {
|
|
4
4
|
senderName: "",
|
|
5
5
|
subject: ""
|
|
6
6
|
},
|
|
7
|
+
extensions: {
|
|
8
|
+
unsubscribe: !0
|
|
9
|
+
},
|
|
7
10
|
features: {
|
|
8
11
|
dynamicContent: !0,
|
|
9
12
|
saveAsTemplate: !0,
|
|
10
13
|
versionHistory: !0
|
|
11
14
|
},
|
|
12
15
|
useHeader: !0
|
|
13
|
-
}, t =
|
|
16
|
+
}, t = {
|
|
17
|
+
promotional: 1,
|
|
18
|
+
transactional: 2
|
|
19
|
+
}, e = "email", o = "Guido User", n = t.promotional, s = 2, i = {
|
|
14
20
|
email: 60,
|
|
15
21
|
architect: 49
|
|
16
|
-
}
|
|
22
|
+
}, u = [
|
|
23
|
+
"alfredtesting",
|
|
24
|
+
"electio",
|
|
25
|
+
"eurekatest",
|
|
26
|
+
"gachapontestpart",
|
|
27
|
+
"gluautomation1",
|
|
28
|
+
"gluautomation2",
|
|
29
|
+
"gluautomation3",
|
|
30
|
+
"gluautomation4",
|
|
31
|
+
"inone",
|
|
32
|
+
"inshoppingcart",
|
|
33
|
+
"krakentest",
|
|
34
|
+
"leeroy",
|
|
35
|
+
"newsletteruat",
|
|
36
|
+
"ozaspava",
|
|
37
|
+
"piratesquad",
|
|
38
|
+
"qaautomation1",
|
|
39
|
+
"qaautomation2",
|
|
40
|
+
"qaautomation3",
|
|
41
|
+
"qaautomation4",
|
|
42
|
+
"roiautomation",
|
|
43
|
+
"seleniumautomation",
|
|
44
|
+
"seleniumautomation1",
|
|
45
|
+
"seleniumautomation2",
|
|
46
|
+
"seleniumautomation3",
|
|
47
|
+
"shopbagg",
|
|
48
|
+
"shopifytest",
|
|
49
|
+
"singlepageqa",
|
|
50
|
+
"testqa",
|
|
51
|
+
"vikingsankara",
|
|
52
|
+
"stripoeditorlivetest"
|
|
53
|
+
];
|
|
17
54
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
55
|
+
a as DefaultGuidoConfig,
|
|
56
|
+
n as DefaultMessageType,
|
|
57
|
+
e as DefaultProductType,
|
|
58
|
+
o as DefaultUsername,
|
|
59
|
+
s as EditorType,
|
|
60
|
+
i as ProductIds,
|
|
61
|
+
u as TEST_PARTNER_LIST,
|
|
62
|
+
t as TemplateTypes
|
|
24
63
|
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const s = {
|
|
2
|
+
RECOMMENDATION_API_URL: "http://recommendationv2.api.useinsider.com"
|
|
3
|
+
}, i = [
|
|
4
|
+
{ id: 11, key: "similarViewed", name: "Viewed Together", path: "viewed-together" },
|
|
5
|
+
{ id: 12, key: "similarBought", name: "Purchased Together", path: "purchased-together" },
|
|
6
|
+
{ id: 13, key: "userBased", name: "User Based", path: "user-based" },
|
|
7
|
+
{ id: 36, key: "highestDiscounted", name: "Highest Discounted Items", path: "highest-discounted" },
|
|
8
|
+
{ id: 38, key: "manualMerchandising", name: "Manual Merchandising", path: "manual-merchandising" },
|
|
9
|
+
{ id: 39, key: "newArrivals", name: "New Arrivals", path: "new-arrivals" },
|
|
10
|
+
{ id: 40, key: "trendingProducts", name: "Trending Products", path: "trending" },
|
|
11
|
+
{ id: 46, key: "mostValuableOfPartner", name: "Most Valuable Products", path: "most-valuable" },
|
|
12
|
+
{ id: 61, key: "mostPopular", name: "Most Popular Items", path: "most-popular" },
|
|
13
|
+
{ id: 62, key: "mostPurchased", name: "Top Sellers", path: "top-sellers" }
|
|
14
|
+
], u = ["discount", "omnibus_price", "omnibus_discount", "price", "original_price"], l = [
|
|
15
|
+
{ text: "after the amount", value: "1" },
|
|
16
|
+
{ text: "before the amount", value: "0" }
|
|
17
|
+
], c = [
|
|
18
|
+
{ text: "dot(.)", value: "." },
|
|
19
|
+
{ text: "comma(,)", value: "," }
|
|
20
|
+
], d = [
|
|
21
|
+
{ text: "0", value: "0" },
|
|
22
|
+
{ text: "1", value: "1" },
|
|
23
|
+
{ text: "2", value: "2" },
|
|
24
|
+
{ text: "3", value: "3" },
|
|
25
|
+
{ text: "4", value: "4" },
|
|
26
|
+
{ text: "5", value: "5" }
|
|
27
|
+
], e = [
|
|
28
|
+
{ text: "is exactly", value: "=" },
|
|
29
|
+
{ text: "contains", value: "~" },
|
|
30
|
+
{ text: "does not contain", value: "!~" },
|
|
31
|
+
{ text: "any of", value: "||" }
|
|
32
|
+
], a = [
|
|
33
|
+
{ text: "is exactly", value: "=" },
|
|
34
|
+
{ text: "is not exactly", value: "!==" },
|
|
35
|
+
{ text: "contains", value: "~" },
|
|
36
|
+
{ text: "does not contain", value: "!~" },
|
|
37
|
+
{ text: "any of", value: "||" }
|
|
38
|
+
], r = [
|
|
39
|
+
{ text: "is equal to", value: "=" },
|
|
40
|
+
{ text: "is greater than", value: ">" },
|
|
41
|
+
{ text: "is less than", value: "<" }
|
|
42
|
+
], o = [
|
|
43
|
+
{ text: "is equal to", value: "=" },
|
|
44
|
+
{ text: "after", value: ">" },
|
|
45
|
+
{ text: "before", value: "<" }
|
|
46
|
+
], n = [
|
|
47
|
+
{ text: "true", value: "==" },
|
|
48
|
+
{ text: "false", value: "!=" }
|
|
49
|
+
], p = (t) => {
|
|
50
|
+
if (!t)
|
|
51
|
+
return e;
|
|
52
|
+
switch (t) {
|
|
53
|
+
case "Boolean":
|
|
54
|
+
return n;
|
|
55
|
+
case "Date":
|
|
56
|
+
return o;
|
|
57
|
+
case "Number":
|
|
58
|
+
return r;
|
|
59
|
+
case "String":
|
|
60
|
+
return e;
|
|
61
|
+
case "Strings":
|
|
62
|
+
return a;
|
|
63
|
+
default:
|
|
64
|
+
return e;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
u as PriceAttributes,
|
|
69
|
+
i as RecommendationFeedSourceMaps,
|
|
70
|
+
s as URLS,
|
|
71
|
+
d as currencyDecimalCounts,
|
|
72
|
+
l as currencyLocationMaps,
|
|
73
|
+
c as currencyOperators,
|
|
74
|
+
p as getOperatorOptions,
|
|
75
|
+
a as operatorOptionsForArrayOfStrings,
|
|
76
|
+
n as operatorOptionsForBooleans,
|
|
77
|
+
o as operatorOptionsForDates,
|
|
78
|
+
r as operatorOptionsForNumbers,
|
|
79
|
+
e as operatorOptionsForStrings
|
|
80
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const e = "newsletter.already-in-progress", n = "newsletter.campaign-could-not-be-saved", o = / (==|<=|>=|!=|>|<|in) | (if|elif|endif|else|and|or) |("[\S ]+")|('[\S ]+')|([^”\s\n]+)|(({%)|( %}))/gm, a = /{%( )*now( )(".*")( )*%}/gm;
|
|
2
|
+
export {
|
|
3
|
+
n as CampaignCouldNotBeSavedKey,
|
|
4
|
+
e as CanNotMakeAnyChangesForRunningKey,
|
|
5
|
+
a as DISPLAY_CONDITIONS_EXCEPTIONS_REGEX,
|
|
6
|
+
o as DISPLAY_CONDITIONS_REGEX
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
".service-element.stacked-panel-item.ng-tns-c1014751574-3.level-bottom-0.ng-star-inserted",
|
|
3
|
+
".service-element.stacked-panel-item.ng-tns-c1014751574-3.level-bottom-1.ng-star-inserted",
|
|
4
|
+
".service-element.stacked-panel-item.ng-tns-c1014751574-3.level-bottom-2.ng-star-inserted"
|
|
5
|
+
];
|
|
6
|
+
export {
|
|
7
|
+
e as SERVICE_HOVER_SELECTORS
|
|
8
|
+
};
|