@useinsider/guido 1.0.0-beta.f7c239e → 1.0.1-beta.0168eae
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 +422 -21
- package/dist/@types/generic.d.ts +39 -23
- package/dist/@types/save-as-template.d.ts +29 -0
- package/dist/App.vue.d.ts +1 -1
- package/dist/_virtual/AddCustomFont.js +4 -0
- package/dist/_virtual/AiAssistantValueType.js +4 -0
- package/dist/_virtual/BackgroundColorBuiltInControl.js +4 -0
- package/dist/_virtual/BackgroundImageBuiltInControl.js +4 -0
- package/dist/_virtual/Block.js +4 -0
- package/dist/_virtual/BlockAttributes.js +4 -0
- package/dist/_virtual/BlockCompositionType.js +4 -0
- package/dist/_virtual/BlockPaddingsBuiltInControl.js +4 -0
- package/dist/_virtual/BlockRenderer.js +4 -0
- package/dist/_virtual/BlockType.js +4 -0
- package/dist/_virtual/BlocksPanel.js +4 -0
- package/dist/_virtual/BuiltInControl.js +4 -0
- package/dist/_virtual/BuiltInControlTypes.js +4 -0
- package/dist/_virtual/ButtonBorderBuiltInControl.js +4 -0
- package/dist/_virtual/ButtonColorBuiltInControl.js +4 -0
- package/dist/_virtual/ButtonFontColorBuiltInControl.js +4 -0
- package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +4 -0
- package/dist/_virtual/ButtonTextBuiltInControl.js +4 -0
- package/dist/_virtual/ContextAction.js +4 -0
- package/dist/_virtual/ContextActionType.js +4 -0
- package/dist/_virtual/Control.js +4 -0
- package/dist/_virtual/EditorStatePropertyType.js +4 -0
- package/dist/_virtual/Extension.js +4 -0
- package/dist/_virtual/ExtensionBuilder.js +4 -0
- package/dist/_virtual/FontFamilyBuiltInControl.js +4 -0
- package/dist/_virtual/LinkColorBuiltInControl.js +4 -0
- package/dist/_virtual/ModificationDescription.js +4 -0
- package/dist/_virtual/PanelPosition.js +4 -0
- package/dist/_virtual/PreviewDeviceMode.js +4 -0
- package/dist/_virtual/SettingsPanelRegistry.js +4 -0
- package/dist/_virtual/SettingsPanelTab.js +4 -0
- package/dist/_virtual/SettingsTab.js +4 -0
- package/dist/_virtual/StructureBorderBuiltInControl.js +4 -0
- package/dist/_virtual/StructurePaddingsBuiltInControl.js +4 -0
- package/dist/_virtual/TextColorBuiltInControl.js +4 -0
- package/dist/_virtual/TextLineSpacingBuiltInControl.js +4 -0
- package/dist/_virtual/TextSizeBuiltInControl.js +4 -0
- package/dist/_virtual/TextStyleBuiltInControl.js +4 -0
- package/dist/_virtual/UIElement.js +4 -0
- package/dist/_virtual/UIElementTagRegistry.js +4 -0
- package/dist/_virtual/UIElementType.js +4 -0
- package/dist/_virtual/UIElementsAttributes.js +4 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/components/Guido.vue.d.ts +21 -4
- package/dist/components/Guido.vue.js +12 -12
- package/dist/components/Guido.vue2.js +89 -25
- package/dist/components/organisms/base/Toaster.vue.d.ts +2 -0
- package/dist/components/organisms/base/Toaster.vue.js +17 -0
- package/dist/components/organisms/base/Toaster.vue2.js +15 -0
- package/dist/components/organisms/email-preview/PreviewContainer.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/PreviewContainer.vue.js +19 -0
- package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +19 -0
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +4 -0
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +22 -0
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +30 -0
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +19 -0
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +29 -0
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +22 -0
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +31 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +17 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +20 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +18 -0
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +25 -0
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +4 -0
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +19 -0
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +23 -0
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +4 -0
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +20 -0
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +21 -0
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +2 -0
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +17 -0
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +22 -0
- package/dist/components/organisms/header/LeftSlot.vue.d.ts +1 -1
- package/dist/components/organisms/header/LeftSlot.vue.js +9 -9
- package/dist/components/organisms/header/LeftSlot.vue2.js +10 -6
- package/dist/components/organisms/header/MiddleSlot.vue.js +10 -10
- package/dist/components/organisms/header/MiddleSlot.vue2.js +16 -15
- package/dist/components/organisms/header/RightSlot.vue.js +12 -14
- package/dist/components/organisms/header/RightSlot.vue2.js +30 -17
- package/dist/components/organisms/header/ViewOptions.vue.d.ts +1 -1
- package/dist/components/organisms/header/ViewOptions.vue.js +8 -8
- package/dist/components/organisms/header/ViewOptions.vue2.js +30 -10
- package/dist/components/organisms/header/version-history/RestoreButton.vue.d.ts +2 -0
- package/dist/components/organisms/header/version-history/RestoreButton.vue.js +19 -0
- package/dist/components/organisms/header/version-history/RestoreButton.vue2.js +14 -0
- package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +13 -1
- package/dist/components/organisms/header/version-history/VersionHistory.vue.js +7 -7
- package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +13 -10
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +1 -1
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +1 -1
- package/dist/components/organisms/header/version-history/ViewOptions.vue.d.ts +1 -1
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +3 -3
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +34 -16
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +2 -0
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +20 -0
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +63 -0
- package/dist/components/wrappers/WpDrawer.vue.d.ts +63 -0
- package/dist/components/wrappers/WpDrawer.vue.js +25 -0
- package/dist/components/wrappers/WpDrawer.vue2.js +23 -0
- package/dist/components/wrappers/WpModal.vue.d.ts +65 -0
- package/dist/components/wrappers/WpModal.vue.js +27 -0
- package/dist/components/wrappers/WpModal.vue2.js +22 -0
- package/dist/composables/useActionsApi.d.ts +5 -1
- package/dist/composables/useActionsApi.js +74 -31
- package/dist/composables/useApiExample.d.ts +6 -4
- package/dist/composables/useCodeEditorApi.d.ts +4 -0
- package/dist/composables/useCodeEditorApi.js +11 -0
- package/dist/composables/useConfig.d.ts +4 -0
- package/dist/composables/useConfig.js +7 -0
- package/dist/composables/useCustomInterfaceAppearance.js +45 -9
- package/dist/composables/useDebounce.d.ts +4 -0
- package/dist/composables/useDebounce.js +12 -0
- package/dist/composables/useExport.d.ts +1 -1
- package/dist/composables/useExport.js +38 -22
- package/dist/composables/useGuidoActions.d.ts +46 -0
- package/dist/composables/useGuidoActions.js +37 -0
- package/dist/composables/useHtmlCompiler.d.ts +4 -0
- package/dist/composables/useHtmlCompiler.js +17 -0
- package/dist/composables/useHttp.d.ts +19 -1
- package/dist/composables/useHttp.js +23 -21
- package/dist/composables/usePartner.d.ts +1 -1
- package/dist/composables/usePartner.js +9 -14
- package/dist/composables/usePreviewMode.d.ts +5 -0
- package/dist/composables/usePreviewMode.js +31 -0
- package/dist/composables/useProvideInject.d.ts +14 -0
- package/dist/composables/useProvideInject.js +17 -0
- package/dist/composables/useResponsivePreview.d.ts +5 -0
- package/dist/composables/useResponsivePreview.js +86 -0
- package/dist/composables/useStripo.js +66 -40
- package/dist/composables/useToaster.d.ts +1 -8
- package/dist/composables/useToaster.js +24 -30
- package/dist/composables/useTranslations.d.ts +4 -1
- package/dist/composables/useTranslations.js +3 -2
- package/dist/composables/useValidation.d.ts +56 -0
- package/dist/composables/useValidation.js +19 -0
- package/dist/composables/useVersionHistoryApi.js +11 -10
- package/dist/composables/validators/saveAsTemplate.d.ts +31 -0
- package/dist/composables/validators/saveAsTemplate.js +24 -0
- package/dist/config/compiler/htmlCompilerRules.d.ts +2 -0
- package/dist/config/compiler/htmlCompilerRules.js +145 -0
- package/dist/config/compiler/outlookCompilerRules.d.ts +0 -0
- package/dist/enums/defaults.d.ts +4 -1
- package/dist/enums/defaults.js +22 -6
- package/dist/enums/displayConditions.d.ts +2 -0
- package/dist/enums/displayConditions.js +80 -0
- package/dist/enums/preview.d.ts +13 -0
- package/dist/enums/preview.js +23 -0
- package/dist/enums/toaster.d.ts +5 -0
- package/dist/enums/toaster.js +4 -0
- package/dist/extensions/DynamicContent/dynamic-content-modal.d.ts +6 -0
- package/dist/extensions/DynamicContent/dynamic-content-modal.js +27 -0
- package/dist/extensions/DynamicContent/dynamic-content.css.js +24 -0
- package/dist/extensions/DynamicContent/dynamic-content.d.ts +16 -0
- package/dist/extensions/DynamicContent/dynamic-content.js +61 -0
- package/dist/extensions/DynamicContent/extension.d.ts +2 -0
- package/dist/extensions/DynamicContent/extension.js +11 -0
- package/dist/guido.css +1 -1
- package/dist/mock/api/default-template.d.ts +2 -0
- package/dist/mock/api/template-library.d.ts +2 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +51 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +52 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +41 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +18 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +32 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +18 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +8 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +34 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +104 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +13 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +46 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +44 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +22 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +46 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +46 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +20 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +18 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +32 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +46 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +44 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +266 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +26 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +22 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +18 -0
- package/dist/node_modules/@vueuse/shared/index.js +45 -0
- package/dist/node_modules/lodash-es/_Stack.js +18 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/lodash-es/_apply.js +16 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +19 -0
- package/dist/node_modules/lodash-es/_assignMergeValue.js +8 -0
- package/dist/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/lodash-es/_baseCreate.js +17 -0
- package/dist/node_modules/lodash-es/_baseFor.js +5 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.js +15 -0
- package/dist/node_modules/lodash-es/_baseMerge.js +20 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +31 -0
- package/dist/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +8 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/_copyArray.js +9 -0
- package/dist/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/lodash-es/_createAssigner.js +15 -0
- package/dist/node_modules/lodash-es/_createBaseFor.js +13 -0
- package/dist/node_modules/lodash-es/_defineProperty.js +11 -0
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.js +13 -0
- package/dist/node_modules/lodash-es/_isMasked.js +2 -2
- package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +10 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +11 -0
- package/dist/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/lodash-es/_overRest.js +15 -0
- package/dist/node_modules/lodash-es/_safeGet.js +7 -0
- package/dist/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/lodash-es/_shortOut.js +16 -0
- package/dist/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/lodash-es/_stackSet.js +17 -0
- package/dist/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +8 -0
- package/dist/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/lodash-es/isPlainObject.js +16 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/lodash-es/merge.js +8 -0
- package/dist/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/lodash-es/toPlainObject.js +8 -0
- package/dist/node_modules/valibot/dist/index.js +190 -0
- package/dist/node_modules/vue-demi/lib/index.js +7 -0
- package/dist/services/stripoApi.d.ts +6 -7
- package/dist/services/stripoApi.js +44 -23
- package/dist/services/templateLibraryApi.d.ts +7 -0
- package/dist/services/templateLibraryApi.js +87 -0
- package/dist/static/assets/inbox-mockup.svg.js +4 -0
- package/dist/static/assets/phone-mockup.svg.js +4 -0
- package/dist/static/styles/base.css.js +11 -0
- package/dist/static/styles/components/alert-message.css.js +39 -0
- package/dist/static/styles/components/amp-block.css.js +18 -0
- package/dist/static/styles/components/base-input.css.js +47 -0
- package/dist/static/styles/components/button-group.css.js +54 -0
- package/dist/static/styles/components/button.css.js +106 -0
- package/dist/static/styles/components/combobox.css.js +49 -0
- package/dist/static/styles/components/counter.css.js +42 -0
- package/dist/static/styles/components/dropdown-menu.css.js +52 -0
- package/dist/static/styles/components/narrow-panel.css.js +38 -0
- package/dist/static/styles/components/switcher.css.js +11 -0
- package/dist/static/styles/components/tabs.css.js +97 -0
- package/dist/static/styles/components/tools.css.js +23 -0
- package/dist/static/styles/components/version-history.css.js +30 -0
- package/dist/static/styles/components/wide-panel.css.js +144 -0
- package/dist/static/styles/customEditorStyle.css.js +18 -0
- package/dist/static/styles/variables.css.js +23 -0
- package/dist/stores/dynamic-content.d.ts +27 -0
- package/dist/stores/dynamic-content.js +23 -0
- package/dist/stores/editor.d.ts +3 -0
- package/dist/stores/editor.js +6 -3
- package/dist/stores/preview.d.ts +46 -0
- package/dist/stores/preview.js +53 -0
- package/dist/stores/save-as-template.d.ts +73 -0
- package/dist/stores/save-as-template.js +48 -0
- package/dist/stores/toaster.d.ts +18 -0
- package/dist/stores/toaster.js +27 -0
- package/dist/utils/arrayUtil.d.ts +1 -0
- package/dist/utils/arrayUtil.js +10 -0
- package/dist/utils/base64.d.ts +1 -0
- package/dist/utils/base64.js +7 -0
- package/dist/utils/genericUtil.d.ts +3 -0
- package/dist/utils/genericUtil.js +11 -0
- package/dist/utils/htmlCompiler.d.ts +12 -0
- package/dist/utils/htmlCompiler.js +70 -0
- package/dist/utils/templatePreparation.d.ts +4 -0
- package/dist/utils/templatePreparation.js +33 -0
- package/dist/utils/tooltipUtils.d.ts +2 -0
- package/dist/utils/tooltipUtils.js +11 -0
- package/package.json +8 -7
- package/dist/@types/http.d.ts +0 -19
- package/dist/composables/useTemplates.d.ts +0 -5
- package/dist/composables/useTemplates.js +0 -27
- package/dist/static/editor.css.js +0 -232
- package/dist/static/templates/default/index.html.js +0 -5
- package/dist/static/templates/default/style.css.js +0 -119
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
{
|
|
3
|
+
category: "Demographics",
|
|
4
|
+
conditions: [
|
|
5
|
+
{
|
|
6
|
+
id: 1,
|
|
7
|
+
name: "Language",
|
|
8
|
+
description: "Users who are in the English will see the banner",
|
|
9
|
+
beforeScript: '{% if language == "en_US" %}',
|
|
10
|
+
afterScript: "{% endif %}"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: 2,
|
|
14
|
+
name: "Country",
|
|
15
|
+
description: "Only people who live in Australia will see the banner",
|
|
16
|
+
beforeScript: '{% if country == "Australia" %}',
|
|
17
|
+
afterScript: "{% endif %}"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 3,
|
|
21
|
+
name: "Country & City",
|
|
22
|
+
description: "Only people who are located in that country and city",
|
|
23
|
+
beforeScript: '{% if country == "United Kingdom" and city == "London" %}',
|
|
24
|
+
afterScript: "{% endif %}"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 4,
|
|
28
|
+
name: "Age (Less than operator)",
|
|
29
|
+
description: "Users whose age is less than 18",
|
|
30
|
+
beforeScript: "{% if age < 18 %}",
|
|
31
|
+
afterScript: "{% endif %}"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: 5,
|
|
35
|
+
name: "Age (Equal and greater than operator)",
|
|
36
|
+
description: "Users whose age is equal or greater than 25",
|
|
37
|
+
beforeScript: "{% if age >= 25 %}",
|
|
38
|
+
afterScript: "{% endif %}"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: 6,
|
|
42
|
+
name: "Age (Greater than & less than operators)",
|
|
43
|
+
description: "Users whose age is between 18 and 25",
|
|
44
|
+
beforeScript: "{% if age > 18 and age < 25 %}",
|
|
45
|
+
afterScript: "{% endif %}"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 7,
|
|
49
|
+
name: "Gender",
|
|
50
|
+
description: "Users whose gender is Female",
|
|
51
|
+
beforeScript: '{% if gender == "Female" %}',
|
|
52
|
+
afterScript: "{% endif %}"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 8,
|
|
56
|
+
name: "State",
|
|
57
|
+
description: "Users whose state is one of the followings. c_state is a custom attribute. Use this condition if you have the attribute with the same naming. ",
|
|
58
|
+
beforeScript: '{% if c_state == "VIC" or c_state == "NSW" or c_state == "QLD" %}',
|
|
59
|
+
afterScript: "{% endif %}"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 9,
|
|
63
|
+
name: "VIP User",
|
|
64
|
+
description: "Users who are VIP users for that brand. c_is_vip_user = true. c_is_vip_user is a custom attribute. Use this condition if you have the attribute with the same naming.",
|
|
65
|
+
beforeScript: "{% if c_is_vip_user %}",
|
|
66
|
+
afterScript: "{% endif %}"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 10,
|
|
70
|
+
name: "Membership Type",
|
|
71
|
+
description: "Users who belong to gold or silver membership type. c_is_gold_member = true, c_is_silver_member = true. These are custom attributes. Use this condition if you have the attribute with the same naming.",
|
|
72
|
+
beforeScript: "{% if c_is_gold_member or c_is_silver_member %}",
|
|
73
|
+
afterScript: "{% endif %}"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
export {
|
|
79
|
+
e as displayConditions
|
|
80
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const ResponsivePreviewConfig: {
|
|
2
|
+
DEFAULT_WIDTH: number;
|
|
3
|
+
MIN_SCALE: number;
|
|
4
|
+
RESIZE_DEBOUNCE_MS: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const ResponsivePreviewRegex: {
|
|
7
|
+
INLINE_WIDTH: RegExp;
|
|
8
|
+
TABLE_WIDTH: RegExp;
|
|
9
|
+
META_VIEWPORT: RegExp;
|
|
10
|
+
};
|
|
11
|
+
export declare const ResponsivePreviewSelectors: {
|
|
12
|
+
CONTAINERS: string[];
|
|
13
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
DEFAULT_WIDTH: 600,
|
|
3
|
+
MIN_SCALE: 0.2,
|
|
4
|
+
RESIZE_DEBOUNCE_MS: 100
|
|
5
|
+
}, i = {
|
|
6
|
+
INLINE_WIDTH: /width\s*:\s*(\d+(\.\d+)?)px/i,
|
|
7
|
+
TABLE_WIDTH: /^(\d+(\.\d+)?)(px)?$/i,
|
|
8
|
+
META_VIEWPORT: /width\s*=\s*device-width/i
|
|
9
|
+
}, n = {
|
|
10
|
+
CONTAINERS: [
|
|
11
|
+
".wrapper",
|
|
12
|
+
".container",
|
|
13
|
+
"#wrapper",
|
|
14
|
+
"#container",
|
|
15
|
+
"[data-email-container]",
|
|
16
|
+
'[role="presentation"]'
|
|
17
|
+
]
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
e as ResponsivePreviewConfig,
|
|
21
|
+
i as ResponsivePreviewRegex,
|
|
22
|
+
n as ResponsivePreviewSelectors
|
|
23
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DynamicContent } from '@@/Types/generic';
|
|
2
|
+
export declare class ExternalMergeTagsLibrary {
|
|
3
|
+
selectedDynamicContent: DynamicContent | null;
|
|
4
|
+
dataSelectCallback: (data: DynamicContent) => void;
|
|
5
|
+
openMergeTagsLibrary(dynamicContent: DynamicContent, onDataSelectCallback: (data: DynamicContent) => void): void;
|
|
6
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var d = (t, e, n) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var a = (t, e, n) => d(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
class y {
|
|
5
|
+
constructor() {
|
|
6
|
+
a(this, "selectedDynamicContent", null);
|
|
7
|
+
a(this, "dataSelectCallback", () => {
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
openMergeTagsLibrary(e, n) {
|
|
11
|
+
this.dataSelectCallback = n, this.selectedDynamicContent = e;
|
|
12
|
+
const s = new CustomEvent("dynamic-content:open", {
|
|
13
|
+
detail: {
|
|
14
|
+
attribute: e
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
document.dispatchEvent(s);
|
|
18
|
+
const o = (l) => {
|
|
19
|
+
const c = l.detail;
|
|
20
|
+
this.selectedDynamicContent = c, c.text && c.value && this.dataSelectCallback(c), document.removeEventListener("dynamic-content:close", o);
|
|
21
|
+
};
|
|
22
|
+
document.addEventListener("dynamic-content:close", o);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
y as ExternalMergeTagsLibrary
|
|
27
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const n = `
|
|
2
|
+
#guido__btn-add-dynamic-content {
|
|
3
|
+
background-color: transparent;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
#guido__btn-add-dynamic-content > button {
|
|
7
|
+
color: var(--guido-color-primary-500);
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
box-shadow: none;
|
|
10
|
+
padding: 0;
|
|
11
|
+
border: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
#guido__btn-add-dynamic-content > button:hover {
|
|
15
|
+
text-decoration: underline;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.color-primary {
|
|
19
|
+
color: var(--guido-color-primary-500) !important;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
export {
|
|
23
|
+
n as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UIElementType, UIElement, UIElementTagRegistry } from '@stripoinc/ui-editor-extensions';
|
|
2
|
+
export declare class DynamicContentTagRegistry extends UIElementTagRegistry {
|
|
3
|
+
registerUiElements(uiElementsTagsMap: Record<UIElementType, string>): void;
|
|
4
|
+
}
|
|
5
|
+
export declare class DynamicContentUiElementExtension extends UIElement {
|
|
6
|
+
private mergeTagsButton;
|
|
7
|
+
private listener;
|
|
8
|
+
private mergeTagsLibrary;
|
|
9
|
+
private selectedDynamicContent;
|
|
10
|
+
getId(): string;
|
|
11
|
+
onRender(container: HTMLElement): void;
|
|
12
|
+
onDestroy(): void;
|
|
13
|
+
_onClick(): void;
|
|
14
|
+
openMergeTagLibrary(): void;
|
|
15
|
+
getTemplate(): string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var m = (i, t, e) => t in i ? o(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var r = (i, t, e) => m(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { dynamicContentToMergeTags as l } from "../../utils/genericUtil.js";
|
|
5
|
+
import { d as n } from "../../_virtual/index.js";
|
|
6
|
+
import { ExternalMergeTagsLibrary as g } from "./dynamic-content-modal.js";
|
|
7
|
+
const a = "external-dynamic-content-ui-element", c = "button-add-dynamic-content";
|
|
8
|
+
class p extends n.UIElementTagRegistry {
|
|
9
|
+
registerUiElements(t) {
|
|
10
|
+
t[n.UIElementType.MERGETAGS] = a;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
class u extends n.UIElement {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
r(this, "mergeTagsButton", null);
|
|
17
|
+
r(this, "listener", () => {
|
|
18
|
+
});
|
|
19
|
+
r(this, "mergeTagsLibrary", null);
|
|
20
|
+
r(this, "selectedDynamicContent", { value: "", text: "" });
|
|
21
|
+
}
|
|
22
|
+
getId() {
|
|
23
|
+
return a;
|
|
24
|
+
}
|
|
25
|
+
onRender(e) {
|
|
26
|
+
var s;
|
|
27
|
+
this.listener = this._onClick.bind(this), this.mergeTagsButton = e.querySelector("#guido__btn-add-dynamic-content"), (s = this.mergeTagsButton) == null || s.addEventListener("click", this.listener);
|
|
28
|
+
}
|
|
29
|
+
onDestroy() {
|
|
30
|
+
var e;
|
|
31
|
+
(e = this.mergeTagsButton) == null || e.removeEventListener("click", this.listener);
|
|
32
|
+
}
|
|
33
|
+
_onClick() {
|
|
34
|
+
this.openMergeTagLibrary();
|
|
35
|
+
}
|
|
36
|
+
openMergeTagLibrary() {
|
|
37
|
+
this.mergeTagsLibrary || (this.mergeTagsLibrary = new g()), this.mergeTagsLibrary.openMergeTagsLibrary(
|
|
38
|
+
this.selectedDynamicContent,
|
|
39
|
+
(e) => {
|
|
40
|
+
this.api.onValueChanged(l([e])[0]);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
getTemplate() {
|
|
45
|
+
return `
|
|
46
|
+
<div>
|
|
47
|
+
<${n.UIElementType.BUTTON}
|
|
48
|
+
id="guido__btn-add-dynamic-content"
|
|
49
|
+
class="btn btn-primary"
|
|
50
|
+
${n.UEAttr.BUTTON.name}="${c}">
|
|
51
|
+
<${n.UIElementType.ICON} src="plus" class="icon icon-button color-primary">
|
|
52
|
+
</${n.UIElementType.ICON}>
|
|
53
|
+
${this.api.translate("Add Dynamic Content")}
|
|
54
|
+
</${n.UIElementType.BUTTON}>
|
|
55
|
+
</div>`;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
p as DynamicContentTagRegistry,
|
|
60
|
+
u as DynamicContentUiElementExtension
|
|
61
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { d as t } from "../../_virtual/index.js";
|
|
2
|
+
import { DynamicContentUiElementExtension as n, DynamicContentTagRegistry as i } from "./dynamic-content.js";
|
|
3
|
+
import e from "./dynamic-content.css.js";
|
|
4
|
+
const s = new t.ExtensionBuilder().addUiElement(n).withStyles(e).withLocalization({
|
|
5
|
+
en: {
|
|
6
|
+
"Add Dynamic Content": "Add Dynamic Content"
|
|
7
|
+
}
|
|
8
|
+
}).withUiElementTagRegistry(i).build();
|
|
9
|
+
export {
|
|
10
|
+
s as default
|
|
11
|
+
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.version-history-item[data-v-
|
|
1
|
+
.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}[data-v-421ffc13] .guido__verion-history-view-option-selection-desktop svg,[data-v-421ffc13] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-421ffc13] .in-segments-wrapper__button_selected,[data-v-421ffc13] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-421ffc13] .in-tooltip-wrapper__icon{cursor:pointer}[data-v-aad05c54] .guido__view-option-selection-desktop svg,[data-v-aad05c54] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-aad05c54] .in-segments-wrapper__button_selected,[data-v-aad05c54] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-aad05c54] .in-tooltip-wrapper__icon{cursor:pointer}.guido-editor__wrapper[data-v-49bb5907],.guido-editor__container[data-v-49bb5907]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-49bb5907]{height:calc(100vh - 75px)}.error-list[data-v-7a09985c]{gap:16px}[data-v-c2adc57d] .in-progress-wrapper__progress p span:last-child{display:none!important}.desktop-preview-container[data-v-2dd60b0c],[data-v-2dd60b0c] .desktop-preview-container .in-container{min-height:720px!important;height:100%}.cropped-text[data-v-f20b3a9b]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { __exports as e } from "../../../../_virtual/Extension.js";
|
|
2
|
+
var o;
|
|
3
|
+
function m() {
|
|
4
|
+
if (o) return e;
|
|
5
|
+
o = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.Extension = void 0;
|
|
6
|
+
var a = (
|
|
7
|
+
/** @class */
|
|
8
|
+
(function() {
|
|
9
|
+
function t(u, l, i, y, n, p, r, s, h, g, c, f, x, E, d) {
|
|
10
|
+
i === void 0 && (i = []), n === void 0 && (n = []), r === void 0 && (r = []), s === void 0 && (s = []), this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = u, this.styles = l, this.previewStyles = c, this.uiElements = i, this.uiElementTagRegistry = y, this.controls = n, this.settingsPanelRegistry = p, this.contextActions = r, this.blocks = s, this.externalSmartElementsLibrary = h, this.externalImageLibrary = g, this.externalAiAssistant = f, this.externalDisplayConditionsLibrary = x, this.externalVideoLibrary = E, this.blocksPanel = d, this.id = Math.random().toString(36).substring(2);
|
|
11
|
+
}
|
|
12
|
+
return t.prototype.getI18n = function() {
|
|
13
|
+
return this.i18n;
|
|
14
|
+
}, t.prototype.getStyles = function() {
|
|
15
|
+
return this.styles;
|
|
16
|
+
}, t.prototype.getPreviewStyles = function() {
|
|
17
|
+
return this.previewStyles;
|
|
18
|
+
}, t.prototype.getUiElements = function() {
|
|
19
|
+
return this.uiElements;
|
|
20
|
+
}, t.prototype.getUiElementTagRegistry = function() {
|
|
21
|
+
return this.uiElementTagRegistry;
|
|
22
|
+
}, t.prototype.getControls = function() {
|
|
23
|
+
return this.controls;
|
|
24
|
+
}, t.prototype.getSettingsPanelRegistry = function() {
|
|
25
|
+
return this.settingsPanelRegistry;
|
|
26
|
+
}, t.prototype.getContextActions = function() {
|
|
27
|
+
return this.contextActions;
|
|
28
|
+
}, t.prototype.getBlocks = function() {
|
|
29
|
+
return this.blocks;
|
|
30
|
+
}, t.prototype.getId = function() {
|
|
31
|
+
return this.id;
|
|
32
|
+
}, t.prototype.getExternalSmartElementsLibrary = function() {
|
|
33
|
+
return this.externalSmartElementsLibrary;
|
|
34
|
+
}, t.prototype.getExternalImageLibrary = function() {
|
|
35
|
+
return this.externalImageLibrary;
|
|
36
|
+
}, t.prototype.getExternalAiAssistant = function() {
|
|
37
|
+
return this.externalAiAssistant;
|
|
38
|
+
}, t.prototype.getExternalDisplayConditionsLibrary = function() {
|
|
39
|
+
return this.externalDisplayConditionsLibrary;
|
|
40
|
+
}, t.prototype.getExternalVideoLibrary = function() {
|
|
41
|
+
return this.externalVideoLibrary;
|
|
42
|
+
}, t.prototype.getBlocksPanel = function() {
|
|
43
|
+
return this.blocksPanel;
|
|
44
|
+
}, t;
|
|
45
|
+
})()
|
|
46
|
+
);
|
|
47
|
+
return e.Extension = a, e;
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
m as __require
|
|
51
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __exports as e } from "../../../../_virtual/ExtensionBuilder.js";
|
|
2
|
+
import { __require as o } from "./Extension.js";
|
|
3
|
+
var n;
|
|
4
|
+
function l() {
|
|
5
|
+
if (n) return e;
|
|
6
|
+
n = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.ExtensionBuilder = void 0;
|
|
7
|
+
var r = o(), s = (
|
|
8
|
+
/** @class */
|
|
9
|
+
(function() {
|
|
10
|
+
function i() {
|
|
11
|
+
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
|
|
12
|
+
}
|
|
13
|
+
return i.prototype.withLocalization = function(t) {
|
|
14
|
+
return this.i18n = t, this;
|
|
15
|
+
}, i.prototype.withStyles = function(t) {
|
|
16
|
+
return this.styles = t, this;
|
|
17
|
+
}, i.prototype.withPreviewStyles = function(t) {
|
|
18
|
+
return this.previewStyles = t, this;
|
|
19
|
+
}, i.prototype.addContextAction = function(t) {
|
|
20
|
+
return this.contextActions.push(t), this;
|
|
21
|
+
}, i.prototype.addUiElement = function(t) {
|
|
22
|
+
return this.uiElements.push(t), this;
|
|
23
|
+
}, i.prototype.withUiElementTagRegistry = function(t) {
|
|
24
|
+
return this.uiElementTagRegistry = t, this;
|
|
25
|
+
}, i.prototype.addControl = function(t) {
|
|
26
|
+
return this.controls.push(t), this;
|
|
27
|
+
}, i.prototype.withSettingsPanelRegistry = function(t) {
|
|
28
|
+
return this.settingsPanelRegistry = t, this;
|
|
29
|
+
}, i.prototype.withExternalSmartElementsLibrary = function(t) {
|
|
30
|
+
return this.externalSmartElementsLibrary = t, this;
|
|
31
|
+
}, i.prototype.withExternalImageLibrary = function(t) {
|
|
32
|
+
return this.externalImageLibrary = t, this;
|
|
33
|
+
}, i.prototype.withExternalAiAssistant = function(t) {
|
|
34
|
+
return this.externalAiAssistant = t, this;
|
|
35
|
+
}, i.prototype.withExternalDisplayCondition = function(t) {
|
|
36
|
+
return this.externalDisplayConditionsLibrary = t, this;
|
|
37
|
+
}, i.prototype.withExternalVideosLibrary = function(t) {
|
|
38
|
+
return this.externalVideoLibrary = t, this;
|
|
39
|
+
}, i.prototype.withBlocksPanel = function(t) {
|
|
40
|
+
return this.blocksPanel = t, this;
|
|
41
|
+
}, i.prototype.addBlock = function(t) {
|
|
42
|
+
return this.blocks.push(t), this;
|
|
43
|
+
}, i.prototype.build = function() {
|
|
44
|
+
return new r.Extension(this.i18n, this.styles, this.uiElements, this.uiElementTagRegistry, this.controls, this.settingsPanelRegistry, this.contextActions, this.blocks, this.externalSmartElementsLibrary, this.externalImageLibrary, this.previewStyles, this.externalAiAssistant, this.externalDisplayConditionsLibrary, this.externalVideoLibrary, this.blocksPanel);
|
|
45
|
+
}, i;
|
|
46
|
+
})()
|
|
47
|
+
);
|
|
48
|
+
return e.ExtensionBuilder = s, e;
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
l as __require
|
|
52
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __exports as o } from "../../../../../_virtual/Block.js";
|
|
2
|
+
import { __require as i } from "../constants/BlockCompositionType.js";
|
|
3
|
+
var n;
|
|
4
|
+
function f() {
|
|
5
|
+
if (n) return o;
|
|
6
|
+
n = 1, Object.defineProperty(o, "__esModule", { value: !0 }), o.Block = void 0;
|
|
7
|
+
var r = i(), u = (
|
|
8
|
+
/** @class */
|
|
9
|
+
(function() {
|
|
10
|
+
function e() {
|
|
11
|
+
}
|
|
12
|
+
return e.prototype.isEnabled = function() {
|
|
13
|
+
return !0;
|
|
14
|
+
}, e.prototype.canBeSavedAsModule = function() {
|
|
15
|
+
return !1;
|
|
16
|
+
}, e.prototype.getContextActionsIds = function() {
|
|
17
|
+
}, e.prototype.getCustomRenderer = function() {
|
|
18
|
+
}, e.prototype.getUniqueBlockClassname = function() {
|
|
19
|
+
return "esd-".concat(this.getId());
|
|
20
|
+
}, e.prototype.onDocumentInit = function() {
|
|
21
|
+
}, e.prototype.onSelect = function(t) {
|
|
22
|
+
}, e.prototype.onCopy = function(t, p) {
|
|
23
|
+
}, e.prototype.onDelete = function(t) {
|
|
24
|
+
}, e.prototype.onCreated = function(t) {
|
|
25
|
+
}, e.prototype.onDocumentChanged = function() {
|
|
26
|
+
}, e.prototype.getBlockCompositionType = function() {
|
|
27
|
+
return r.BlockCompositionType.BLOCK;
|
|
28
|
+
}, e.prototype.shouldDisplayQuickAddIcon = function() {
|
|
29
|
+
return !1;
|
|
30
|
+
}, e.prototype.allowInnerBlocksSelection = function() {
|
|
31
|
+
return !0;
|
|
32
|
+
}, e.prototype.allowInnerBlocksDND = function() {
|
|
33
|
+
return !0;
|
|
34
|
+
}, e;
|
|
35
|
+
})()
|
|
36
|
+
);
|
|
37
|
+
return o.Block = u, o;
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
f as __require
|
|
41
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __exports as e } from "../../../../../_virtual/BlockRenderer.js";
|
|
2
|
+
var r;
|
|
3
|
+
function u() {
|
|
4
|
+
if (r) return e;
|
|
5
|
+
r = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.BlockRenderer = void 0;
|
|
6
|
+
var n = (
|
|
7
|
+
/** @class */
|
|
8
|
+
/* @__PURE__ */ (function() {
|
|
9
|
+
function o() {
|
|
10
|
+
}
|
|
11
|
+
return o;
|
|
12
|
+
})()
|
|
13
|
+
);
|
|
14
|
+
return e.BlockRenderer = n, e;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
u as __require
|
|
18
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __exports as t } from "../../../../../_virtual/BlocksPanel.js";
|
|
2
|
+
var o;
|
|
3
|
+
function l() {
|
|
4
|
+
if (o) return t;
|
|
5
|
+
o = 1, Object.defineProperty(t, "__esModule", { value: !0 }), t.BlocksPanel = void 0;
|
|
6
|
+
var r = (
|
|
7
|
+
/** @class */
|
|
8
|
+
(function() {
|
|
9
|
+
function e() {
|
|
10
|
+
}
|
|
11
|
+
return e.prototype.getBlockItemHtml = function(n) {
|
|
12
|
+
}, e.prototype.isBlockHintVisible = function(n) {
|
|
13
|
+
return !0;
|
|
14
|
+
}, e.prototype.getBlockHint = function(n) {
|
|
15
|
+
return {
|
|
16
|
+
title: n.title,
|
|
17
|
+
description: n.description
|
|
18
|
+
};
|
|
19
|
+
}, e.prototype.getBlocksPanelHeaderHtml = function() {
|
|
20
|
+
}, e.prototype.getModulesPanelCollapsedHtml = function() {
|
|
21
|
+
}, e.prototype.isModulesPanelCollapsedHintVisible = function() {
|
|
22
|
+
return !0;
|
|
23
|
+
}, e.prototype.getHintDelay = function() {
|
|
24
|
+
}, e.prototype.getModulesPanelHint = function() {
|
|
25
|
+
}, e;
|
|
26
|
+
})()
|
|
27
|
+
);
|
|
28
|
+
return t.BlocksPanel = r, t;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
l as __require
|
|
32
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __exports as t } from "../../../../../_virtual/ContextAction.js";
|
|
2
|
+
var e;
|
|
3
|
+
function i() {
|
|
4
|
+
if (e) return t;
|
|
5
|
+
e = 1, Object.defineProperty(t, "__esModule", { value: !0 }), t.ContextAction = void 0;
|
|
6
|
+
var n = (
|
|
7
|
+
/** @class */
|
|
8
|
+
/* @__PURE__ */ (function() {
|
|
9
|
+
function o() {
|
|
10
|
+
}
|
|
11
|
+
return o;
|
|
12
|
+
})()
|
|
13
|
+
);
|
|
14
|
+
return t.ContextAction = n, t;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
i as __require
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exports as e } from "../../../../../_virtual/AddCustomFont.js";
|
|
2
|
+
var r;
|
|
3
|
+
function _() {
|
|
4
|
+
return r ? e : (r = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.ADD_CUSTOM_FONT_OPTION = void 0, e.ADD_CUSTOM_FONT_OPTION = "ADD_CUSTOM_FONT_OPTION", e);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
_ as __require
|
|
8
|
+
};
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __exports as e } from "../../../../../_virtual/AiAssistantValueType.js";
|
|
2
|
+
var i;
|
|
3
|
+
function a() {
|
|
4
|
+
if (i) return e;
|
|
5
|
+
i = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.AiAssistantValueType = void 0;
|
|
6
|
+
var r;
|
|
7
|
+
return (function(t) {
|
|
8
|
+
t.SUBJECT = "subject", t.HIDDEN_PREHEADER = "hiddenPreheader", t.TEXT_BLOCK = "textBlock";
|
|
9
|
+
})(r || (e.AiAssistantValueType = r = {})), e;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
a as __require
|
|
13
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { __exports as t } from "../../../../../_virtual/BlockAttributes.js";
|
|
2
|
+
var s;
|
|
3
|
+
function _() {
|
|
4
|
+
if (s) return t;
|
|
5
|
+
s = 1;
|
|
6
|
+
var r = t && t.__assign || function() {
|
|
7
|
+
return r = Object.assign || function(o) {
|
|
8
|
+
for (var e, n = 1, b = arguments.length; n < b; n++) {
|
|
9
|
+
e = arguments[n];
|
|
10
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (o[a] = e[a]);
|
|
11
|
+
}
|
|
12
|
+
return o;
|
|
13
|
+
}, r.apply(this, arguments);
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), t.BlockAttr = void 0;
|
|
16
|
+
var i = {
|
|
17
|
+
widthPercent: "width-percent"
|
|
18
|
+
}, u = r(r({}, i), { blocks: "blocks" }), c = {
|
|
19
|
+
src: "src",
|
|
20
|
+
alt: "alt",
|
|
21
|
+
href: "href"
|
|
22
|
+
}, l = {
|
|
23
|
+
href: "href"
|
|
24
|
+
};
|
|
25
|
+
return t.BlockAttr = {
|
|
26
|
+
EMPTY_CONTAINER: u,
|
|
27
|
+
CONTAINER: i,
|
|
28
|
+
BLOCK_IMAGE: c,
|
|
29
|
+
BLOCK_BUTTON: l
|
|
30
|
+
}, t;
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
_ as __require
|
|
34
|
+
};
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __exports as o } from "../../../../../_virtual/BlockCompositionType.js";
|
|
2
|
+
var r;
|
|
3
|
+
function p() {
|
|
4
|
+
if (r) return o;
|
|
5
|
+
r = 1, Object.defineProperty(o, "__esModule", { value: !0 }), o.BlockCompositionType = void 0;
|
|
6
|
+
var e;
|
|
7
|
+
return (function(i) {
|
|
8
|
+
i.BLOCK = "BLOCK", i.STRUCTURE = "STRUCTURE";
|
|
9
|
+
})(e || (o.BlockCompositionType = e = {})), o;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
p as __require
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __exports as C } from "../../../../../_virtual/BlockType.js";
|
|
2
|
+
var L;
|
|
3
|
+
function K() {
|
|
4
|
+
if (L) return C;
|
|
5
|
+
L = 1, Object.defineProperty(C, "__esModule", { value: !0 }), C.BlockType = void 0;
|
|
6
|
+
var _;
|
|
7
|
+
return (function(O) {
|
|
8
|
+
O.BLOCK_IMAGE = "BLOCK_IMAGE", O.BLOCK_TEXT = "BLOCK_TEXT", O.BLOCK_BUTTON = "BLOCK_BUTTON", O.BLOCK_SPACER = "BLOCK_SPACER", O.BLOCK_VIDEO = "BLOCK_VIDEO", O.BLOCK_SOCIAL = "BLOCK_SOCIAL", O.BLOCK_BANNER = "BLOCK_BANNER", O.BLOCK_TIMER = "BLOCK_TIMER", O.BLOCK_MENU = "BLOCK_MENU", O.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", O.BLOCK_HTML = "BLOCK_HTML", O.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", O.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", O.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", O.CONTAINER = "CONTAINER", O.FORM_CONTAINER = "FORM_CONTAINER", O.STRUCTURE = "STRUCTURE", O.STRIPE = "STRIPE", O.EMPTY_CONTAINER = "EMPTY_CONTAINER", O.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", O.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", O.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT";
|
|
9
|
+
})(_ || (C.BlockType = _ = {})), C;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
K as __require
|
|
13
|
+
};
|