@useinsider/guido 1.0.3-beta.2155d71 → 1.0.3-beta.2214097
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{src/@types → @types}/generic.d.ts +0 -9
- package/dist/{src/components → components}/Guido.vue.d.ts +2 -2
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +69 -74
- 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 +43 -52
- package/dist/config/compiler/unsubscribeCompilerRules.js +29 -42
- package/dist/config/migrator/index.d.ts +1 -0
- package/dist/config/migrator/index.js +5 -7
- package/dist/enums/defaults.js +3 -6
- 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/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 +18 -7
- 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/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/stores/unsubscribe.d.ts +8 -0
- package/dist/stores/unsubscribe.js +6 -126
- package/dist/utils/templatePreparation.js +16 -17
- package/package.json +2 -7
- 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/couponBlockMigrator.js +0 -67
- package/dist/config/migrator/unsubscribeMigrator.js +0 -124
- package/dist/extensions/Blocks/Checkbox/iconsRegistry.js +0 -18
- package/dist/extensions/Blocks/CouponBlock/block.js +0 -33
- package/dist/extensions/Blocks/CouponBlock/extension.js +0 -8
- package/dist/extensions/Blocks/CouponBlock/iconsRegistry.js +0 -33
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +0 -24
- package/dist/extensions/Blocks/CouponBlock/template.js +0 -18
- package/dist/extensions/Blocks/RadioButton/iconsRegistry.js +0 -14
- 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/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +0 -648
- package/dist/package.json.js +0 -7
- package/dist/services/unsubscribeApi.js +0 -16
- 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/couponBlockMigrator.d.ts +0 -1
- package/dist/src/config/migrator/index.d.ts +0 -1
- package/dist/src/config/migrator/unsubscribeMigrator.d.ts +0 -1
- 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/block.d.ts +0 -12
- package/dist/src/extensions/Blocks/CouponBlock/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/CouponBlock/settingsPanel.d.ts +0 -4
- package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +0 -3
- package/dist/src/extensions/Blocks/RadioButton/iconsRegistry.d.ts +0 -4
- 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/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/DynamicContent/extension.d.ts +0 -2
- package/dist/src/services/unsubscribeApi.d.ts +0 -4
- package/dist/src/stores/config.d.ts +0 -96
- package/dist/src/stores/unsubscribe.d.ts +0 -256
- 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 → components}/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -0
- /package/dist/{src/components → 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/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}/onboarding.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/RadioButton/control.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/CouponBlock → extensions/Blocks/RadioButton}/extension.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/RadioButton/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/RadioButton → extensions/Blocks/_Boilerplate}/extension.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/Unsubscribe → extensions/Blocks/_Boilerplate}/settingsPanel.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/template.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content-modal.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/Unsubscribe → extensions/DynamicContent}/extension.d.ts +0 -0
- /package/dist/{src/library.d.ts → library.d.ts} +0 -0
- /package/dist/{src/main.d.ts → main.d.ts} +0 -0
- /package/dist/{src/mock → mock}/api/auth.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/custom-fonts.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/default-template.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/template-library.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/unsubscribe.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/user-modal-state.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/validator.d.ts +0 -0
- /package/dist/{src/mock → mock}/browser.d.ts +0 -0
- /package/dist/{src/mock → mock}/handlers.d.ts +0 -0
- /package/dist/{src/services → services}/onboardingApi.d.ts +0 -0
- /package/dist/{src/services → services}/stripoApi.d.ts +0 -0
- /package/dist/{src/services → services}/templateLibraryApi.d.ts +0 -0
- /package/dist/{src/stores → stores}/dynamic-content.d.ts +0 -0
- /package/dist/{src/stores → stores}/editor.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}/dateUtil.d.ts +0 -0
- /package/dist/{src/utils → utils}/genericUtil.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
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { BlockType as T } from "./BlockType.js";
|
|
2
|
+
var d;
|
|
3
|
+
(function(E) {
|
|
4
|
+
E.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", E.APPLY_CONDITION = "applyCondition", E.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", E.BACKGROUND_COLOR = "backgroundColor", E.BACKGROUND_IMAGE = "generalImageContainer", E.TEXT_COLOR = "textColor", E.TEXT_STYLE = "textStyle", E.TEXT_SIZE = "textSize", E.TEXT_LINE_SPACING = "textLineSpacing", E.TEXT_ALIGN = "textAlign", E.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", E.HIDDEN_NODE = "hiddenNode", E.SMART_BLOCK = "smartBlock", E.SYNCHRONIZED_MODULE = "synchronizedModuleForm", E.FONT_FAMILY = "generalFontFamilyForm", E.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", E.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents";
|
|
5
|
+
})(d || (d = {}));
|
|
6
|
+
var I;
|
|
7
|
+
(function(E) {
|
|
8
|
+
E.ALIGNMENT = "bannerAlignment", E.ALT_TEXT = "bannerAltText", E.ANCHOR_LINK_CONTAINER = "bannerAnchorLinkContainerForm", E.ASPECT_RATIO = "bannerAspectRatioForm", E.BACKGROUND_COLOR = "bannerBackgroundColor", E.BACKGROUND_IMAGE_CONTAINER = "bannerBackgroundImageContainer", E.SIZE = "bannerBlockBannerSize", E.BLOCK_LINK = "bannerBlockLink", E.CHILD_ROTATION = "bannerChildRotationForm", E.CROP = "bannerCropForm", E.FILTER = "bannerFilter", E.EXTERNAL_INDENTS = "bannerExternalIndents", E.MIME_TYPE = "bannerMimeTypeForm", E.RESPONSIVE_IMAGE = "bannerResponsiveImageForm";
|
|
9
|
+
})(I || (I = {}));
|
|
10
|
+
var p;
|
|
11
|
+
(function(E) {
|
|
12
|
+
E.ADDITIONAL_IMAGE = "bannerAdditionalImageForm", E.ADDITIONAL_IMAGE_ASPECT_RATIO = "bannerAdditionalImageAspectRatioForm", E.CHILD_COLOR = "bannerChildColorForm", E.CHILD_FLIP = "bannerChildFlipForm", E.CHILD_OPACITY = "bannerChildOpacityForm", E.TEXT_ALIGNMENT = "bannerTextAlignmentForm", E.TEXT_FONT = "bannerTextFontContainer", E.TEXT_LETTER_CASE = "bannerTextLetterCaseForm", E.TEXT_STYLE = "bannerTextStyleForm";
|
|
13
|
+
})(p || (p = {}));
|
|
14
|
+
var _;
|
|
15
|
+
(function(E) {
|
|
16
|
+
E.ADJUST_TO_WIDTH = "adjustToWidth", E.ALIGNMENT = "buttonAlignment", E.BORDER = "buttonBorder", E.BORDER_RADIUS = "buttonBorderRadius", E.COLOR = "buttonColor", E.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", E.EXTERNAL_INDENTS = "buttonExternalIndents", E.FIXED_HEIGHT_CONTAINER = "buttonFixedHeightContainerForm", E.FONT_COLOR = "buttonFontColor", E.FONT_FAMILY = "buttonFontFamily", E.FONT_SIZE = "buttonFontSize", E.ICON = "buttonIconContainer", E.ICON_ALIGN = "buttonIconAlign", E.ICON_INDENT = "buttonIconIndent", E.ICON_WIDTH = "buttonIconWidth", E.IMAGE = "buttonImageForm", E.INTERNAL_INDENTS = "buttonInternalIndents", E.LINK = "buttonLink", E.MIME_TYPE = "buttonMimeTypeForm", E.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", E.TEXT = "buttonText", E.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", E.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", E.HOVERED_COLOR = "hoveredButtonColorForm", E.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm";
|
|
17
|
+
})(_ || (_ = {}));
|
|
18
|
+
var N;
|
|
19
|
+
(function(E) {
|
|
20
|
+
E.HIDDEN_NODE = "hiddenNodeText", E.PARAGRAPH_STYLE = "paragraphStyleForm", E.ALIGN = "textAlignmentForm", E.ANCHOR_CONTAINER = "textAnchorForm", E.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", E.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", E.FONT_COLOR = "textBlockFontColor", E.FONT_FAMILY = "textBlockFontFamily", E.FONT_SIZE = "textBlockFontSize", E.DIRECTION = "textBlockDirectionForm", E.INSERT_FORM = "textBlockInsertForm", E.LINK_DATA = "textBlockLinkDataForm", E.FORMAT = "textBlockTextFormatForm", E.FIXED_HEIGHT_CONTAINER = "textFixedHeightContainerForm", E.INTERNAL_INDENTS = "textInternalIndents", E.LINE_HEIGHT = "textLineHeightForm", E.LINKS_COLOR = "textLinksFontColorForm", E.MIME_TYPE = "textMimeTypeForm", E.NO_LINE_WRAPS = "textNoLineWrapsForm";
|
|
21
|
+
})(N || (N = {}));
|
|
22
|
+
var O;
|
|
23
|
+
(function(E) {
|
|
24
|
+
E.AMP_FORM_HIDDEN_NODE = "ampFormHiddenNodeForm", E.AMP_FORM_MIME_TYPE = "ampFormMimeTypeForm", E.BACKGROUND_COLOR = "ampFormBackgroundColorForm";
|
|
25
|
+
})(O || (O = {}));
|
|
26
|
+
var A;
|
|
27
|
+
(function(E) {
|
|
28
|
+
E.CUSTOM_THUMBNAIL_CONTAINER = "customThumbnailContainerForm", E.METADATA_LINK = "metadataLink", E.PLAY_BUTTON = "playButton", E.ALIGNMENT = "videoAlignment", E.ALT_TEXT = "videoAltText", E.EXTERNAL_INDENTS = "videoExternalIndents", E.MIME_TYPE = "videoMimeTypeForm", E.RESPONSIVE = "videoResponsive", E.SIZE = "videoSizeContainer";
|
|
29
|
+
})(A || (A = {}));
|
|
30
|
+
var R;
|
|
31
|
+
(function(E) {
|
|
32
|
+
E.ALIGNMENT = "timerAlignment", E.ALT_TEXT = "timerAltText", E.BACKGROUND_COLOR = "timerBackgroundColor", E.DATE_TIME = "timeDateTime", E.DIGITAL_LABELS = "timerDigitalLabels", E.DIGITS_FONT_COLOR_CONTAINER = "timerDigitsFontColorContainer", E.DIGITS_FONT_CONTAINER = "timerDigitsFontContainer", E.DISPLAY_DAYS_SWITCHER = "timerDisplayDaysSwitcher", E.EXPIRATION_IMAGE = "timerExpirationImage", E.EXPIRATION_IMAGE_SWITCHER = "timerExpirationSwitcher", E.EXTERNAL_INDENTS = "timerExternalIndents", E.LABELS_CASE = "timerLabelsCase", E.LABELS_FONT_COLOR_CONTAINER = "timerLabelsFontColorContainer", E.LABELS_FONT_CONTAINER = "timerLabelsFontContainer", E.LABEL_LANGUAGE = "timerLabelsLanguage", E.LINK = "timerLink", E.MIME_TYPE = "timerMimeTypeForm", E.RESPONSIVE = "timerResponsive", E.RETINA_DISPLAY_SUPPORT = "timerRetinaDisplaySupport", E.SEPARATOR = "timerSeparator", E.SEPARATOR_FONT_COLOR = "timerSeparatorFontColor", E.SEPARATOR_FONT_CONTAINER = "timerSeparatorFontContainer", E.SIZE = "timerSize", E.TIME_ZONE = "timerTimeZone";
|
|
33
|
+
})(R || (R = {}));
|
|
34
|
+
var i;
|
|
35
|
+
(function(E) {
|
|
36
|
+
E.ALIGNMENT = "spacerAlignment", E.BORDER = "spacerBorder", E.EXTERNAL_INDENTS = "spacerExternalIndents", E.MIME_TYPE = "spacerMimeTypeForm", E.MODE = "spacerMode", E.SIZE = "spacerSize", E.BACKGROUND_COLOR = "spacerBackgroundColor";
|
|
37
|
+
})(i || (i = {}));
|
|
38
|
+
var m;
|
|
39
|
+
(function(E) {
|
|
40
|
+
E.ALT_TEXT = "altText", E.LINK = "blockLink", E.ALIGNMENT = "imageAlignment", E.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", E.BORDER_RADIUS = "imageBorderRadiusForm", E.IMAGE = "imageImageForm", E.EXTERNAL_INDENTS = "imageExternalIndents", E.MIME_TYPE = "imageMimeTypeForm", E.RESPONSIVE = "imageResponsive", E.ROLLOVER_IMAGE = "imageRolloverImageForm", E.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", E.SIZE = "imageSizeContainer";
|
|
41
|
+
})(m || (m = {}));
|
|
42
|
+
var e;
|
|
43
|
+
(function(E) {
|
|
44
|
+
E.EXTERNAL_INDENTS = "htmlExternalIndents", E.MIME_TYPE = "htmlMimeTypeForm";
|
|
45
|
+
})(e || (e = {}));
|
|
46
|
+
var L;
|
|
47
|
+
(function(E) {
|
|
48
|
+
E.IMAGE = "customBlockImageForm", E.COLOR_FORM = "customLinkColorForm", E.HREF_FORM = "customLinkHrefForm", E.TEXT_FORM = "customLinkTextForm", E.UNDERLINE_FORM = "customLinkUnderlineForm", E.WORD_BREAK_FORM = "customLinkWordBreakForm";
|
|
49
|
+
})(L || (L = {}));
|
|
50
|
+
var a;
|
|
51
|
+
(function(E) {
|
|
52
|
+
E.ALT_TEXT_FORM = "customBlockImageAltTextForm", E.WITHOUT_LINK_FORM = "customBlockImageWithOutLinkForm";
|
|
53
|
+
})(a || (a = {}));
|
|
54
|
+
var F;
|
|
55
|
+
(function(E) {
|
|
56
|
+
E.ALIGN = "customTextBlockTextAlign", E.FONT_SIZE = "customTextFontSizeController";
|
|
57
|
+
})(F || (F = {}));
|
|
58
|
+
var S;
|
|
59
|
+
(function(E) {
|
|
60
|
+
E.ICON_SIZE = "iconSize", E.EXTERNAL_INDENTS = "socialExternalIndents", E.ICON_SPACER = "socialIconsSpacer", E.ICON_TYPE = "socialIconTypeForm", E.ITEM = "socialItemForm", E.ITEM_TEXT_CUSTOMIZATION = "socialItemTextCustomizationForm", E.MIME_TYPE = "socialMimeTypeForm", E.NETWORK_ALIGNMENT = "socialNetworkAlignment", E.BACKGROUND_COLOR = "socialBackgroundColor";
|
|
61
|
+
})(S || (S = {}));
|
|
62
|
+
var D;
|
|
63
|
+
(function(E) {
|
|
64
|
+
E.EXTERNAL_INDENTS = "menuExternalIndents", E.ALIGNMENT = "menuAlignment", E.RESPONSIVE_MENU = "menuResponsive", E.FIT_TO_CONTAINER = "menuFitToContainer", E.FONT_FAMILY = "menuFontFamily", E.FONT_SIZE = "menuFontSize", E.HIDDEN = "menuHidden", E.ICONS_CONFIGURATION = "menuIconsConfiguration", E.ITEMS = "menuItemsForm", E.ITEMS_COUNT = "menuItemsCount", E.ITEM_INTERNAL_INDENTS = "menuItemInternalIndents", E.MIME_TYPE = "menuMimeTypeForm", E.SEPARATE_ITEMS = "menuSeparateItems", E.SEPARATE_ITEMS_COLOR_SWITCHER = "menuSeparateItemsColorSwitcher", E.SEPARATOR = "menuSeparatorForm", E.STYLES = "menuStylesForm", E.TEXT_STYLE_AND_COLOR = "menuTextStyleAndColor", E.TYPE_CONTAINER = "menuTypeContainerForm";
|
|
65
|
+
})(D || (D = {}));
|
|
66
|
+
var n;
|
|
67
|
+
(function(E) {
|
|
68
|
+
E.MIME_TYPE = "ampAccordionMimeTypeForm", E.ANIMATED_OPENING = "ampAccordionAnimatedOpeningForm", E.AUTO_COLLAPSING = "ampAccordionAutoCollapsingForm", E.BORDER_FORM = "ampAccordionBorderForm", E.FONT_FAMILY = "ampAccordionFontFamily", E.ICON_SIZE = "ampAccordionIconSizeForm", E.SECTIONS_GAP_FORM = "ampAccordionSectionsGapForm", E.SECTIONS_MAIN_FORM = "ampAccordionSectionsMainForm", E.TITLES_BACKGROUND_COLOR = "ampAccordionTitlesBackgroundColor", E.TITLE_ALIGNMENT_FORM = "ampAccordionTitleAlignmentForm", E.TITLE_FONT_SIZE = "AmpAccordionTitleFontSizeController", E.TITLE_ICON_IMAGE = "ampAccordionTitleIconImageForm", E.TITLE_ICON_SWITCHER = "ampAccordionTitleIconSwitcherForm", E.TITLE_TEXT_STYLE_AND_COLOR = "AmpAccordionTitleTextStyleAndColorController";
|
|
69
|
+
})(n || (n = {}));
|
|
70
|
+
var r;
|
|
71
|
+
(function(E) {
|
|
72
|
+
E.MIME_TYPE = "ampCarouselMimeTypeForm", E.AUTOPLAY = "ampCarouselAutoplayForm", E.AUTOPLAY_DELAY = "ampCarouselDelayForm", E.LOOP = "ampCarouselLoopForm", E.SLIDES = "ampSlidesForm", E.SLIDE_ALT_TEXT = "ampSlideAltTextForm", E.SLIDE_IMAGE = "ampSlideImageForm", E.SLIDE_IMAGE_FIT = "ampCarouselSlideImageFitForm", E.SLIDE_LINK = "ampSlideLinkForm", E.SLIDE_RADIUS = "ampCarouselSlideRadiusForm", E.SLIDE_THUMBNAIL_SWITCHER = "ampCarouselSlideThumbnailSwitcherForm", E.THUMBNAIL_BORDER_STYLE = "ampCarouselThumbnailBorderStyleForm", E.THUMBNAIL_CONTAINER = "ampCarouselThumbnailContainerForm", E.THUMBNAIL_CUSTOM_REVIEW = "ampCarouselThumbnailCustomPreviewImageForm", E.THUMBNAIL_RADIUS = "ampCarouselThumbnailRadiusForm", E.AMP_GENERAL_LINK = "AMP_GENERAL_LINK_CONTROLLER", E.AMP_GENERAL_LINK_SWITCHER = "AMP_GENERAL_LINK_SWITCHER";
|
|
73
|
+
})(r || (r = {}));
|
|
74
|
+
var M;
|
|
75
|
+
(function(E) {
|
|
76
|
+
E.BORDER_FORM = "stripeBorderForm", E.COLOR = "stripeColorForm", E.CONTENT_COLOR = "stripeContentColor", E.IMAGE_CONTAINER = "stripeImageContainerForm", E.INTERNAL_INDENTS = "stripeInternalIndents", E.MESSAGE_AREA = "stripeMessageAreaForm", E.MIME_TYPE = "stripeMimeTypeForm";
|
|
77
|
+
})(M || (M = {}));
|
|
78
|
+
var t;
|
|
79
|
+
(function(E) {
|
|
80
|
+
E.RESPONSIVE_STRUCTURE = "responsiveStructure", E.BACKGROUND_COLOR = "structureBackgroundColor", E.BORDER_RADIUS = "structureBorderRadiusForm", E.CONTAINER_GAP = "structureContainerGap", E.CONTAINER_INVERSION = "structureContainerInversion", E.DYNAMIC_CONTAINERS = "structureDynamicContainers", E.EXTERNAL_INDENTS = "structureExternalIndents", E.IMAGE_CONTAINER = "structureImageContainerForm", E.INTERNAL_INDENTS = "structureInternalIndents", E.ITEM = "structureItem", E.MIME_TYPE = "structureMimeType", E.BORDER_FORM = "structureBorderForm";
|
|
81
|
+
})(t || (t = {}));
|
|
82
|
+
var c;
|
|
83
|
+
(function(E) {
|
|
84
|
+
E.BACKGROUND_COLOR = "containerBackgroundColorForm", E.BORDER_FORM = "containerBorderForm", E.BORDER_RADIUS = "containerBorderRadiusForm", E.EXTERNAL_INDENTS = "containerExternalIndentsForm", E.IMAGE_CONTAINER = "containerImageContainerForm", E.MIME_TYPE = "containerMimeTypeForm", E.DISPLAY_CONDITIONS = "displayConditions";
|
|
85
|
+
})(c || (c = {}));
|
|
86
|
+
var P;
|
|
87
|
+
(function(E) {
|
|
88
|
+
E.DISPLAY_OFFER_BADGE = "displayOfferBadgeForm", E.DISPLAY_PROMO_CODE_BADGE = "displayPromoCodeBadgeForm", E.END_DISCOUNT_OFFER = "endDiscountOfferForm", E.GMAIL_PROMOTIONS_TAB = "gmailPromotionsTabForm", E.HIDDEN_PRE_HEADER = "hiddenPreHeaderForm", E.PROMO_IMAGE_CAROUSEL = "promoImageCarouselForm", E.INCLUDE_SENDER_LOGO = "includeSenderLogoForm", E.SUBJECT_TITLE = "subjectTitleForm", E.UTM_PARAMETERS = "utmParametersForm", E.UTM_PARAMETERS_CAMPAIGN = "utmParameterCampaignForm", E.UTM_PARAMETERS_CUSTOM = "utmParametersCustomForm", E.UTM_PARAMETERS_CUSTOM_ITEM = "utmParametersCustomItemForm";
|
|
89
|
+
})(P || (P = {}));
|
|
90
|
+
var u;
|
|
91
|
+
(function(E) {
|
|
92
|
+
E.BUTTONS_ADJUST_TO_WIDTH_CONTAINER = "buttonsAdjustToWidthFormContainer", E.BUTTONS_BORDER = "buttonsBorder", E.BUTTONS_BORDER_RADIUS_CONTAINER = "buttonsBorderRadiusContainer", E.BUTTONS_COLOR_CONTAINER = "buttonsColorContainer", E.BUTTONS_FONT_FAMILY_CONTAINER = "buttonsFontFamilyContainer", E.BUTTONS_FONT_SIZE_CONTAINER = "buttonsFontSizeFormContainer", E.BUTTONS_HOVERED_BUTTON_STYLE = "buttonsHoveredButtonStyleForm", E.BUTTONS_INTERNAL_INDENTS_CONTAINER = "buttonsInternalIndentsContainer", E.BUTTONS_LETTER_SPACING_CONTAINER = "buttonsLetterSpacingContainer", E.BUTTONS_OUTLOOK_SUPPORT_CONTAINER = "buttonsOutlookSupportContainer", E.BUTTONS_TEXT_STYLE_AND_COLOR_CONTAINER = "buttonsTextStyleAndColorFormContainer", E.DEFAULT_STRUCTURE_INTERNAL_INDENTS = "defaultStructureInternalIndents", E.GENERAL_BACKGROUND_COLOR_CONTAINER = "generalBackgroundColorContainer", E.GENERAL_IMAGE_CONTAINER = "generalImageContainer", E.HEADINGS_FONT_FAMILY_CONTAINER = "headingsFontFamilyContainer", E.HEADINGS_H1_CONTROLS_CONTAINER = "headingH1controlsContainer", E.HEADINGS_H2_CONTROLS_CONTAINER = "headingH2controlsContainer", E.HEADINGS_H3_CONTROLS_CONTAINER = "headingH3controlsContainer", E.HEADINGS_H4_CONTROLS_CONTAINER = "headingH4controlsContainer", E.HEADINGS_H5_CONTROLS_CONTAINER = "headingH5controlsContainer", E.HEADINGS_H6_CONTROLS_CONTAINER = "headingH6controlsContainer", E.HEADINGS_LETTER_SPACING_CONTAINER = "headingsLetterSpacingFormContainer", E.HEADINGS_PARAGRAPH_BOTTOM_MARGIN = "headingsParagraphBottomMarginForm", E.HEADINGS_TYPES_BUTTON_BAR = "headingsTypesButtonBarForm", E.LISTS_STYLES = "listsStyles", E.MARGIN_AROUND_MESSAGE = "marginAroundMessage", E.MESSAGE_ALIGNMENT = "messageAlignment", E.MESSAGE_CONTENT_WIDTH = "messageContentWidth", E.RESPONSIVE_DESIGN = "responsiveDesign", E.RIGHT_TO_LEFT_CONTAINER = "rightToLeftContainer", E.STRIPES_CONTENT_CONTROLS_CONTAINER = "stripesContentControlsContainer", E.STRIPES_FONT_FAMILY_CONTAINER = "stripesFontFamilyFormContainer", E.STRIPES_FOOTER_CONTROLS_CONTAINER = "stripesFooterControlsContainer", E.STRIPES_HEADER_CONTROLS_CONTAINER = "stripesHeaderControlsContainer", E.STRIPES_INFO_AREA_CONTROLS_CONTAINER = "stripesInfoAreaControlsContainer", E.STRIPES_LETTER_SPACING_CONTAINER = "stripesLetterSpacingFormContainer", E.STRIPES_LINE_HEIGHT_CONTAINER = "stripesLineHeightFormContainer", E.STRIPE_TYPES_BUTTON_BAR = "stripeTypesButtonBarForm", E.UNDERLINE_LINKS_CONTAINER = "underlineLinksContainer";
|
|
93
|
+
})(u || (u = {}));
|
|
94
|
+
T.BLOCK_BANNER + "", T.BLOCK_BUTTON + "", T.BLOCK_TEXT + "", T.BLOCK_VIDEO + "", T.BLOCK_TIMER + "", T.BLOCK_SPACER + "", T.BLOCK_IMAGE + "", T.BLOCK_HTML + "", T.BLOCK_SOCIAL + "", T.BLOCK_MENU + "", T.BLOCK_AMP_FORM + "", T.BLOCK_AMP_ACCORDION + "", T.BLOCK_AMP_CAROUSEL + "", T.STRIPE + "", T.STRUCTURE + "", T.CONTAINER + "", T.CUSTOM_BLOCK_LINK + "", T.CUSTOM_BLOCK_IMAGE + "", T.CUSTOM_BLOCK_TEXT + "";
|
|
95
|
+
export {
|
|
96
|
+
n as AccordionControls,
|
|
97
|
+
O as AmpFormControls,
|
|
98
|
+
p as BannerChildControls,
|
|
99
|
+
I as BannerControls,
|
|
100
|
+
_ as ButtonControls,
|
|
101
|
+
r as CarouselControls,
|
|
102
|
+
c as ContainerControls,
|
|
103
|
+
a as CustomImageControls,
|
|
104
|
+
L as CustomLinkControls,
|
|
105
|
+
F as CustomTextControls,
|
|
106
|
+
d as GeneralControls,
|
|
107
|
+
u as GeneralStylesControls,
|
|
108
|
+
e as HTMLControls,
|
|
109
|
+
m as ImageControls,
|
|
110
|
+
D as MenuControls,
|
|
111
|
+
P as MessageSettingsControls,
|
|
112
|
+
S as SocialControls,
|
|
113
|
+
i as SpacerControls,
|
|
114
|
+
M as StripeControls,
|
|
115
|
+
t as StructureControls,
|
|
116
|
+
N as TextControls,
|
|
117
|
+
R as TimerControls,
|
|
118
|
+
A as VideoControls
|
|
119
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var O;
|
|
2
|
+
(function(E) {
|
|
3
|
+
E.SAVE_AS_MODULE = "saveAsModule", E.UPDATE_MODULE = "updateModule", E.IMPROVE_WITH_AI = "improveWithAI", E.MOVE = "move", E.COPY = "copy", E.REMOVE = "remove", E.CLEAR_CONTAINER = "clearContainer", E.REMOVE_CONTAINER = "removeContainer", E.EXTERNAL_DISPLAY_CONDITION = "externalDisplayCondition";
|
|
4
|
+
})(O || (O = {}));
|
|
5
|
+
export {
|
|
6
|
+
O as ContextActionType
|
|
7
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var T;
|
|
2
|
+
(function(t) {
|
|
3
|
+
t.TOP = "top", t.RIGHT = "right", t.BOTTOM = "bottom", t.LEFT = "left";
|
|
4
|
+
})(T || (T = {}));
|
|
5
|
+
var a;
|
|
6
|
+
(function(t) {
|
|
7
|
+
t.AI_HIDDEN_PREHEADER = "aiHiddenPreheader", t.AI_SUBJECT = "aiSubject", t.AI_TEXT = "aiText";
|
|
8
|
+
})(a || (a = {}));
|
|
9
|
+
export {
|
|
10
|
+
a as ExtensionPopoverType,
|
|
11
|
+
T as PopoverSide
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var C;
|
|
2
|
+
(function(E) {
|
|
3
|
+
E.BUTTON = "UE-BUTTON", E.CHECKBOX = "UE-CHECKBOX", E.CHECK_BUTTONS = "UE-CHECK-BUTTONS", E.COLOR = "UE-COLOR", E.COUNTER = "UE-COUNTER", E.DATEPICKER = "UE-DATEPICKER", E.LABEL = "UE-LABEL", E.MESSAGE = "UE-MESSAGE", E.RADIO_BUTTONS = "UE-RADIO-BUTTONS", E.SELECTPICKER = "UE-SELECT", E.SWITCHER = "UE-SWITCHER", E.TEXT = "UE-TEXT", E.TEXTAREA = "UE-TEXTAREA", E.CHECK_ITEM = "UE-CHECK-ITEM", E.RADIO_ITEM = "UE-RADIO-ITEM", E.SELECT_ITEM = "UE-SELECT-ITEM", E.ICON = "UE-ICON", E.MERGETAGS = "UE-MERGETAGS", E.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", E.NESTED_CONTROL = "UE-NESTED-CONTROL";
|
|
4
|
+
})(C || (C = {}));
|
|
5
|
+
export {
|
|
6
|
+
C as UIElementType
|
|
7
|
+
};
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
name: "name",
|
|
3
|
+
disabled: "disabled"
|
|
4
|
+
}, e = {
|
|
5
|
+
...t
|
|
6
|
+
}, s = {
|
|
7
|
+
...t,
|
|
8
|
+
text: "text"
|
|
9
|
+
}, l = {
|
|
10
|
+
...t,
|
|
11
|
+
placeholder: "placeholder",
|
|
12
|
+
items: "items"
|
|
13
|
+
}, c = {
|
|
14
|
+
text: "text",
|
|
15
|
+
value: "value"
|
|
16
|
+
}, n = {
|
|
17
|
+
BUTTON: e,
|
|
18
|
+
LABEL: s,
|
|
19
|
+
SELECTPICKER: l,
|
|
20
|
+
SELECT_ITEM: c
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
n as UEAttr
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var t = (e, o, n) => o in e ? s(e, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[o] = n;
|
|
3
|
+
var r = (e, o, n) => t(e, typeof o != "symbol" ? o + "" : o, n);
|
|
4
|
+
class l {
|
|
5
|
+
constructor() {
|
|
6
|
+
/** Provides access to editor functionalities specific to this UI control instance. */
|
|
7
|
+
r(this, "api");
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Optional hook called when the control is initially rendered.
|
|
11
|
+
* Use this for setup tasks like attaching event listeners to the control's template elements.
|
|
12
|
+
*/
|
|
13
|
+
onRender() {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Optional cleanup hook called when the control is being destroyed.
|
|
17
|
+
* Use this to remove event listeners or perform other cleanup tasks.
|
|
18
|
+
*/
|
|
19
|
+
onDestroy() {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
l as Control
|
|
24
|
+
};
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var g = (s, e, t) => e in s ? i(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
+
var a = (s, e, t) => g(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
class n {
|
|
5
|
+
constructor() {
|
|
6
|
+
a(this, "api");
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
n as SettingsPanelRegistry
|
|
11
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var n = (e, s, t) => s in e ? r(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
|
|
3
|
+
var l = (e, s, t) => n(e, typeof s != "symbol" ? s + "" : s, t);
|
|
4
|
+
class o {
|
|
5
|
+
constructor(s, t) {
|
|
6
|
+
l(this, "tabId");
|
|
7
|
+
l(this, "label");
|
|
8
|
+
l(this, "controlsIds");
|
|
9
|
+
this.tabId = s, this.controlsIds = t;
|
|
10
|
+
}
|
|
11
|
+
getTabId() {
|
|
12
|
+
return this.tabId;
|
|
13
|
+
}
|
|
14
|
+
getLabel() {
|
|
15
|
+
return this.label;
|
|
16
|
+
}
|
|
17
|
+
getControlsIds() {
|
|
18
|
+
return this.controlsIds;
|
|
19
|
+
}
|
|
20
|
+
withLabel(s) {
|
|
21
|
+
return this.label = s, this;
|
|
22
|
+
}
|
|
23
|
+
addControl(s, t) {
|
|
24
|
+
return t < 0 ? this.controlsIds.unshift(s) : t > this.controlsIds.length ? this.controlsIds.push(s) : this.controlsIds.splice(t, 0, s), this;
|
|
25
|
+
}
|
|
26
|
+
deleteControl(s) {
|
|
27
|
+
const t = this.controlsIds.indexOf(s);
|
|
28
|
+
t !== -1 && this.controlsIds.splice(t, 1);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
o as SettingsPanelTab
|
|
33
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var e = (t, s, a) => s in t ? i(t, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[s] = a;
|
|
3
|
+
var r = (t, s, a) => e(t, typeof s != "symbol" ? s + "" : s, a);
|
|
4
|
+
class o {
|
|
5
|
+
constructor(s) {
|
|
6
|
+
r(this, "key");
|
|
7
|
+
r(this, "params");
|
|
8
|
+
this.key = s;
|
|
9
|
+
}
|
|
10
|
+
withParams(s) {
|
|
11
|
+
return this.params = s, this;
|
|
12
|
+
}
|
|
13
|
+
getValue() {
|
|
14
|
+
return {
|
|
15
|
+
key: this.key,
|
|
16
|
+
params: this.params
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
o as ModificationDescription
|
|
22
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var n = (t, e, a) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
3
|
+
var l = (t, e, a) => n(t, typeof e != "symbol" ? e + "" : e, a);
|
|
4
|
+
class s {
|
|
5
|
+
constructor() {
|
|
6
|
+
/** Provides access to editor functionalities specific to this UI element instance. */
|
|
7
|
+
l(this, "api");
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Optional cleanup hook called when the UI element is being destroyed.
|
|
11
|
+
* Use this to remove event listeners or perform other cleanup tasks.
|
|
12
|
+
*/
|
|
13
|
+
onDestroy() {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Optional method to get the current value of the UI element.
|
|
17
|
+
* Implement this if the element manages a state or value (e.g., input fields).
|
|
18
|
+
* @returns The current value of the element.
|
|
19
|
+
*/
|
|
20
|
+
getValue() {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Optional method to set the value of the UI element.
|
|
24
|
+
* Implement this if the element manages a state or value and needs to be updated externally.
|
|
25
|
+
* @param value - The new value to set.
|
|
26
|
+
*/
|
|
27
|
+
setValue(e) {
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @description Optional hook called when one of the element's supported attributes ({@link UEAttr}) gets updated externally.
|
|
31
|
+
* Implement this to react to attribute changes (e.g., visibility, disabled state).
|
|
32
|
+
* @param name - The name of the attribute that was updated.
|
|
33
|
+
* @param value - The new value of the attribute.
|
|
34
|
+
*/
|
|
35
|
+
onAttributeUpdated(e, a) {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
s as UIElement
|
|
40
|
+
};
|
|
@@ -1,129 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
selectedTemplates: {},
|
|
7
|
-
selectedUnsubscribePages: [],
|
|
8
|
-
selectedCollectionType: a.GLOBAL_UNSUBSCRIBE,
|
|
9
|
-
activeType: a.GLOBAL_UNSUBSCRIBE,
|
|
10
|
-
pageSelectionUpdateStatus: !1,
|
|
11
|
-
pageSelectionDrawerStatus: !1,
|
|
12
|
-
typeSelectionDrawerStatus: !1,
|
|
13
|
-
isGlobalUnsubscribeDisabled: !1,
|
|
14
|
-
isSubscriptionPreferencesCenterDisabled: !1
|
|
15
|
-
}), g = d("unsubscribe", {
|
|
16
|
-
state: () => p(),
|
|
17
|
-
getters: {
|
|
18
|
-
getSelectedCollection: (e) => i[e.selectedCollectionType],
|
|
19
|
-
getSelectedTemplateByActiveType: (e) => e.selectedTemplates[e.activeType],
|
|
20
|
-
getTemplatesByActiveType: (e) => e.templates.filter((t) => t.type === e.activeType),
|
|
21
|
-
getThumbnailByTemplateId: (e) => (t) => {
|
|
22
|
-
var c;
|
|
23
|
-
return ((c = e.templates.find((s) => s.id === t)) == null ? void 0 : c.thumbnail) ?? "";
|
|
24
|
-
},
|
|
25
|
-
getSelectedUnsubscribePagesByCollection: (e) => (t) => {
|
|
26
|
-
const c = i[t];
|
|
27
|
-
if (!c)
|
|
28
|
-
return [];
|
|
29
|
-
const s = /* @__PURE__ */ new Map();
|
|
30
|
-
e.templates.forEach((n) => {
|
|
31
|
-
s.set(n.id, n.type);
|
|
32
|
-
});
|
|
33
|
-
const l = new Set(c);
|
|
34
|
-
return e.selectedUnsubscribePages.filter((n) => {
|
|
35
|
-
const o = s.get(n);
|
|
36
|
-
return o !== void 0 && l.has(o);
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
isActiveTypeFirstInCollection: (e) => {
|
|
40
|
-
const t = i[e.selectedCollectionType];
|
|
41
|
-
return e.activeType === t[0];
|
|
42
|
-
},
|
|
43
|
-
isActiveTypeLastInCollection: (e) => {
|
|
44
|
-
const t = i[e.selectedCollectionType];
|
|
45
|
-
return e.activeType === t[t.length - 1];
|
|
46
|
-
},
|
|
47
|
-
hasTemplatesByCollectionType: (e) => {
|
|
48
|
-
const t = {};
|
|
49
|
-
return i[e.selectedCollectionType].forEach((s) => {
|
|
50
|
-
t[s] = e.templates.some((l) => l.type === s);
|
|
51
|
-
}), t;
|
|
52
|
-
},
|
|
53
|
-
unsubscribePagesStatus: (e) => e.selectedUnsubscribePages.length > 0
|
|
54
|
-
},
|
|
55
|
-
actions: {
|
|
56
|
-
$reset() {
|
|
57
|
-
const { templates: e, selectedUnsubscribePages: t } = this;
|
|
58
|
-
Object.assign(this, {
|
|
59
|
-
...p(),
|
|
60
|
-
templates: e,
|
|
61
|
-
selectedUnsubscribePages: t
|
|
62
|
-
});
|
|
63
|
-
},
|
|
64
|
-
async fetchTemplates() {
|
|
65
|
-
if (this.templates.length)
|
|
66
|
-
return;
|
|
67
|
-
const { getUnsubscribePages: e } = r(), t = await e();
|
|
68
|
-
this.templates = t;
|
|
69
|
-
},
|
|
70
|
-
setCollection(e) {
|
|
71
|
-
this.selectedCollectionType = e;
|
|
72
|
-
const t = i[e];
|
|
73
|
-
if (t && t.length > 0) {
|
|
74
|
-
[this.activeType] = t;
|
|
75
|
-
const c = { ...this.selectedTemplates };
|
|
76
|
-
t.forEach((s) => {
|
|
77
|
-
if (!c[s]) {
|
|
78
|
-
const l = this.templates.find((n) => n.type === s);
|
|
79
|
-
l && (c[s] = l.id);
|
|
80
|
-
}
|
|
81
|
-
}), this.selectedTemplates = c;
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
setCollectionWithoutAutoSelection(e) {
|
|
85
|
-
this.selectedCollectionType = e;
|
|
86
|
-
const t = i[e];
|
|
87
|
-
t && t.length > 0 && ([this.activeType] = t);
|
|
88
|
-
},
|
|
89
|
-
setSelectedTemplate(e) {
|
|
90
|
-
this.selectedTemplates = {
|
|
91
|
-
...this.selectedTemplates,
|
|
92
|
-
[this.activeType]: e
|
|
93
|
-
};
|
|
94
|
-
},
|
|
95
|
-
setNextType() {
|
|
96
|
-
const t = this.getSelectedCollection.indexOf(this.activeType) + 1;
|
|
97
|
-
t < this.getSelectedCollection.length && (this.activeType = this.getSelectedCollection[t]);
|
|
98
|
-
},
|
|
99
|
-
setPreviousType() {
|
|
100
|
-
const t = this.getSelectedCollection.indexOf(this.activeType) - 1;
|
|
101
|
-
t >= 0 && (this.activeType = this.getSelectedCollection[t]);
|
|
102
|
-
},
|
|
103
|
-
loadSelectedTemplates(e) {
|
|
104
|
-
const t = new Map(this.templates.map((s) => [s.id, s.type])), c = { ...this.selectedTemplates };
|
|
105
|
-
e.forEach((s) => {
|
|
106
|
-
const l = t.get(s);
|
|
107
|
-
l !== void 0 && (c[l] = s);
|
|
108
|
-
}), this.selectedTemplates = c;
|
|
109
|
-
},
|
|
110
|
-
getSelectedTemplatesByCollection(e) {
|
|
111
|
-
const t = i[e], c = [];
|
|
112
|
-
return t.forEach((s) => {
|
|
113
|
-
this.selectedTemplates[s] && c.push(this.selectedTemplates[s]);
|
|
114
|
-
}), c;
|
|
115
|
-
},
|
|
116
|
-
addUnsubscribePages(e) {
|
|
117
|
-
const t = /* @__PURE__ */ new Set([...this.selectedUnsubscribePages, ...e]);
|
|
118
|
-
this.selectedUnsubscribePages = Array.from(t);
|
|
119
|
-
},
|
|
120
|
-
removeUnsubscribePages(e) {
|
|
121
|
-
this.selectedUnsubscribePages = this.selectedUnsubscribePages.filter(
|
|
122
|
-
(t) => !e.includes(t)
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
1
|
+
import { defineStore as e } from "pinia";
|
|
2
|
+
const t = () => ({
|
|
3
|
+
selectedUnsubscribePages: []
|
|
4
|
+
}), r = e("unsubscribe", {
|
|
5
|
+
state: () => t()
|
|
126
6
|
});
|
|
127
7
|
export {
|
|
128
|
-
|
|
8
|
+
r as useUnsubscribeStore
|
|
129
9
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import { useHtmlCompiler as
|
|
1
|
+
import { useActionsApi as g } from "../composables/useActionsApi.js";
|
|
2
|
+
import { useHtmlCompiler as S } from "../composables/useHtmlCompiler.js";
|
|
3
3
|
import { useDynamicContentStore as f } from "../stores/dynamic-content.js";
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const i = f(), t = C(), { getCompiledEmail: o, getTemplateData: s } = S(), { compileHtml: n } = b();
|
|
4
|
+
const H = () => {
|
|
5
|
+
const t = f(), { getCompiledEmail: i, getTemplateData: o } = g(), { compileHtml: n } = S();
|
|
7
6
|
return {
|
|
8
7
|
prepareTemplateDetails: async () => {
|
|
9
|
-
const { html: a, ampHtml:
|
|
8
|
+
const { html: a, ampHtml: s = "", ampErrors: m = [] } = await i({
|
|
10
9
|
minimize: !0,
|
|
11
10
|
resetDataSavedFlag: !1
|
|
12
|
-
}), { html:
|
|
11
|
+
}), { html: r, css: c, syncModulesIds: l = [] } = await o(), { compiledHtml: p, stats: e, appliedRules: d } = n(a), u = t.getSelectedDynamicContentList;
|
|
13
12
|
return console.debug("HTML Compilation Stats:", {
|
|
14
13
|
originalSize: e.originalSize,
|
|
15
14
|
compiledSize: e.compiledSize,
|
|
@@ -17,25 +16,25 @@ const z = () => {
|
|
|
17
16
|
appliedRules: d,
|
|
18
17
|
executionTime: `${e.executionTime.toFixed(2)}ms`
|
|
19
18
|
}), {
|
|
20
|
-
dynamicContentList:
|
|
21
|
-
compiledHtml:
|
|
22
|
-
rawHtml:
|
|
23
|
-
css:
|
|
24
|
-
ampHtml:
|
|
25
|
-
ampErrors:
|
|
26
|
-
modules:
|
|
19
|
+
dynamicContentList: u,
|
|
20
|
+
compiledHtml: p,
|
|
21
|
+
rawHtml: r,
|
|
22
|
+
css: c,
|
|
23
|
+
ampHtml: s,
|
|
24
|
+
ampErrors: m,
|
|
25
|
+
modules: l,
|
|
27
26
|
recommendation: {
|
|
28
27
|
campaignUrls: {},
|
|
29
28
|
configs: {}
|
|
30
29
|
},
|
|
31
30
|
unsubscribe: {
|
|
32
|
-
status:
|
|
33
|
-
config:
|
|
31
|
+
status: !1,
|
|
32
|
+
config: []
|
|
34
33
|
}
|
|
35
34
|
};
|
|
36
35
|
}
|
|
37
36
|
};
|
|
38
37
|
};
|
|
39
38
|
export {
|
|
40
|
-
|
|
39
|
+
H as useTemplatePreparation
|
|
41
40
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "1.0.3-beta.
|
|
3
|
+
"version": "1.0.3-beta.2214097",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"author": "",
|
|
32
32
|
"license": "ISC",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@stripoinc/ui-editor-extensions": "
|
|
34
|
+
"@stripoinc/ui-editor-extensions": "2.0.2",
|
|
35
35
|
"@useinsider/design-system-vue": "0.14.8",
|
|
36
36
|
"@vueuse/core": "11.3.0",
|
|
37
37
|
"lodash-es": "4.17.21",
|
|
@@ -80,10 +80,5 @@
|
|
|
80
80
|
},
|
|
81
81
|
"msw": {
|
|
82
82
|
"workerDirectory": "public"
|
|
83
|
-
},
|
|
84
|
-
"guido": {
|
|
85
|
-
"stripo": {
|
|
86
|
-
"version": "2.42.0"
|
|
87
|
-
}
|
|
88
83
|
}
|
|
89
84
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import s from "./UnsubscribeBreadcrumb.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import a from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var o = function() {
|
|
5
|
-
var e = this, t = e._self._c, r = e._self._setupProxy;
|
|
6
|
-
return t(r.InBreadcrumb, { staticClass: "c-p", attrs: { "without-router": "", "active-tab": r.unsubscribeStore.activeType, "home-icon": !1, list: r.breadcrumbs, routes: [] }, on: { click: r.navigate } });
|
|
7
|
-
}, c = [], n = /* @__PURE__ */ a(
|
|
8
|
-
s,
|
|
9
|
-
o,
|
|
10
|
-
c,
|
|
11
|
-
!1,
|
|
12
|
-
null,
|
|
13
|
-
"70835920"
|
|
14
|
-
);
|
|
15
|
-
const f = n.exports;
|
|
16
|
-
export {
|
|
17
|
-
f as default
|
|
18
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, computed as n } from "vue";
|
|
2
|
-
import { TYPE_TRANSLATIONS as s } from "../../../enums/unsubscribe.js";
|
|
3
|
-
import { useUnsubscribeStore as c } from "../../../stores/unsubscribe.js";
|
|
4
|
-
import { InBreadcrumb as m } from "@useinsider/design-system-vue";
|
|
5
|
-
const f = /* @__PURE__ */ o({
|
|
6
|
-
__name: "UnsubscribeBreadcrumb",
|
|
7
|
-
setup(a) {
|
|
8
|
-
const r = c(), t = n(() => r.getSelectedCollection.map((e) => ({ value: e, text: s[e] })));
|
|
9
|
-
return { __sfc: !0, unsubscribeStore: r, breadcrumbs: t, navigate: (e) => {
|
|
10
|
-
r.activeType = e.value;
|
|
11
|
-
}, InBreadcrumb: m };
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
export {
|
|
15
|
-
f as default
|
|
16
|
-
};
|