@useinsider/guido 1.0.0-beta.6ecc044 → 1.0.0-beta.71a8dc6
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 +410 -21
- package/dist/@types/generic.d.ts +35 -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 +20 -3
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +78 -29
- 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 +31 -18
- 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/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 +3 -0
- package/dist/composables/useActionsApi.js +62 -34
- 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 +35 -20
- 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/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 +53 -30
- package/dist/composables/useTranslations.js +3 -2
- 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.js +14 -5
- 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/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/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/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/_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/services/stripoApi.d.ts +2 -1
- package/dist/services/stripoApi.js +27 -7
- 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 +135 -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 +1 -1
- package/dist/stores/editor.js +4 -4
- package/dist/stores/preview.d.ts +46 -0
- package/dist/stores/preview.js +53 -0
- package/dist/utils/arrayUtil.d.ts +1 -0
- package/dist/utils/arrayUtil.js +10 -0
- package/dist/utils/genericUtil.d.ts +2 -0
- package/dist/utils/genericUtil.js +7 -0
- package/dist/utils/htmlCompiler.d.ts +12 -0
- package/dist/utils/htmlCompiler.js +70 -0
- package/dist/utils/tooltipUtils.d.ts +2 -0
- package/dist/utils/tooltipUtils.js +11 -0
- package/package.json +6 -5
- package/dist/components/organisms/base/ModalWrapper.vue.d.ts +0 -72
- package/dist/components/organisms/base/ModalWrapper.vue.js +0 -19
- package/dist/components/organisms/base/ModalWrapper.vue2.js +0 -43
- package/dist/components/organisms/save-template/SaveTemplateModal.vue.d.ts +0 -20
- package/dist/components/organisms/save-template/SaveTemplateModal.vue.js +0 -19
- package/dist/components/organisms/save-template/SaveTemplateModal.vue2.js +0 -66
- package/dist/composables/useTemplateValidation.d.ts +0 -13
- package/dist/composables/useTemplateValidation.js +0 -57
- 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
- /package/dist/mock/api/{template-library.d.ts → default-template.d.ts} +0 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
const n = `ue-wide-panel {
|
|
2
|
+
width: 425px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
ue-main-tabs-panel-component .fixed-panel-header {
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.label {
|
|
10
|
+
font-size: 13px;
|
|
11
|
+
color: var(--guido-color-gray-800);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.stacked-panel-title {
|
|
15
|
+
padding: 16px;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
color: var(--guido-color-gray-800);
|
|
19
|
+
text-align: left;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.stacked-panel-item {
|
|
23
|
+
border-radius: 4px;
|
|
24
|
+
border: 1px solid var(--guido-color-gray-300);
|
|
25
|
+
box-shadow: var(--guido-box-shadow);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.container {
|
|
29
|
+
padding: 16px;
|
|
30
|
+
grid-column-gap: 8px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.container.widest-spacing {
|
|
34
|
+
grid-column-gap: 16px;
|
|
35
|
+
grid-row-gap: 16px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.container.parent-container > .container {
|
|
39
|
+
padding: 0 16px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.container .container.has-container-separator {
|
|
43
|
+
padding-top: 16px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
ue-control-panel,
|
|
47
|
+
.common-wrapper {
|
|
48
|
+
border: 1px solid var(--guido-color-gray-300);
|
|
49
|
+
box-shadow: var(--guido-box-shadow);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.control-panel-header {
|
|
53
|
+
grid-template-columns: repeat(12, 1fr);
|
|
54
|
+
padding: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.control-panel-header > * {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.header-control-panel-left {
|
|
63
|
+
grid-area: 1 / 1 / 2 / 2;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.header-control-panel-label {
|
|
67
|
+
grid-area: 1 / 2 / 2 / 12;
|
|
68
|
+
text-align: left;
|
|
69
|
+
padding: 0;
|
|
70
|
+
font-size: 16px;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
line-height: 24px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.header-control-panel-right {
|
|
76
|
+
grid-area: 1 / 12 / 2 / 13;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.control-panel-header button {
|
|
80
|
+
padding: 16px !important;
|
|
81
|
+
border: 0;
|
|
82
|
+
min-height: auto;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.container.droppable-header-container ue-button:last-child {
|
|
86
|
+
margin-right: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.secondary-control-group {
|
|
90
|
+
gap: 16px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.droppable-container {
|
|
94
|
+
padding-top: 6px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.control-plus-rounded-wrapper {
|
|
98
|
+
border-radius: 4px;
|
|
99
|
+
border: 1px solid var(--guido-color-gray-300);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.structure-item-container {
|
|
103
|
+
padding: 8px 16px 8px 10px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
ue-label {
|
|
107
|
+
align-items: center;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
ue-label.accent-dot:before {
|
|
111
|
+
content: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
ue-label.accent-dot:after {
|
|
115
|
+
content: "New";
|
|
116
|
+
width: auto;
|
|
117
|
+
height: auto;
|
|
118
|
+
border-radius: 4px;
|
|
119
|
+
background: var(--guido-color-primary-500);
|
|
120
|
+
z-index: 2;
|
|
121
|
+
color: var(--guido-color-white);
|
|
122
|
+
padding: 4px 8px;
|
|
123
|
+
right: 1px;
|
|
124
|
+
font-size: 13px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.e2e-size,
|
|
128
|
+
.e2e-timer-size {
|
|
129
|
+
grid-auto-flow: row;
|
|
130
|
+
grid-template-columns: 1fr !important;
|
|
131
|
+
}
|
|
132
|
+
`;
|
|
133
|
+
export {
|
|
134
|
+
n as default
|
|
135
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const o = `:host {
|
|
2
|
+
--guido-color-white: #FFFFFF;
|
|
3
|
+
--guido-color-primary-500: #0A2ECC;
|
|
4
|
+
--guido-color-primary-200: #B5C1F1;
|
|
5
|
+
--guido-color-primary-100: #DAE1FB;
|
|
6
|
+
--guido-color-gray-800: #292929;
|
|
7
|
+
--guido-color-gray-700: #989898;
|
|
8
|
+
--guido-color-gray-600: #666666;
|
|
9
|
+
--guido-color-gray-300: #E1E1E1;
|
|
10
|
+
--guido-color-gray-1: #F0F0F0;
|
|
11
|
+
--guido-color-gray-0: #F9F9F9;
|
|
12
|
+
--guido-color-neutral-800: #222938;
|
|
13
|
+
--guido-color-neutral-200: #DCDFE6;
|
|
14
|
+
--guido-color-neutral-100: #EFF2F4;
|
|
15
|
+
--guido-color-danger-500: #DC2A2A;
|
|
16
|
+
--guido-box-shadow: 0 4px 12px 0 rgba(44,53,70,0.15);
|
|
17
|
+
--guido-color-background-onpage-message-info: #D3EEF8;
|
|
18
|
+
--guido-color-border-onpage-message-info: #258DDE;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
export {
|
|
22
|
+
o as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DynamicContent } from '@@/Types/generic';
|
|
2
|
+
export declare const useDynamicContentStore: import("pinia").StoreDefinition<"dynamicContent", {
|
|
3
|
+
selectedDynamicContent: DynamicContent;
|
|
4
|
+
selectedDynamicContentList: DynamicContent[];
|
|
5
|
+
}, {
|
|
6
|
+
getSelectedDynamicContentList: (state: {
|
|
7
|
+
selectedDynamicContent: {
|
|
8
|
+
value: string;
|
|
9
|
+
text: string;
|
|
10
|
+
fallback?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
selectedDynamicContentList: {
|
|
13
|
+
value: string;
|
|
14
|
+
text: string;
|
|
15
|
+
fallback?: string | undefined;
|
|
16
|
+
}[];
|
|
17
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
18
|
+
selectedDynamicContent: DynamicContent;
|
|
19
|
+
selectedDynamicContentList: DynamicContent[];
|
|
20
|
+
}>) => {
|
|
21
|
+
text: string;
|
|
22
|
+
value: string;
|
|
23
|
+
fallback: string | undefined;
|
|
24
|
+
}[];
|
|
25
|
+
}, {
|
|
26
|
+
setSelectedDynamicContent(dynamicContent: DynamicContent): void;
|
|
27
|
+
}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { removeDuplicatesFromArray as n } from "../utils/arrayUtil.js";
|
|
2
|
+
import { defineStore as a } from "pinia";
|
|
3
|
+
const s = a("dynamicContent", {
|
|
4
|
+
state: () => ({
|
|
5
|
+
selectedDynamicContent: { text: "", value: "", fallback: "" },
|
|
6
|
+
selectedDynamicContentList: []
|
|
7
|
+
}),
|
|
8
|
+
actions: {
|
|
9
|
+
setSelectedDynamicContent(e) {
|
|
10
|
+
this.selectedDynamicContent = e, this.selectedDynamicContentList.push(e);
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
getters: {
|
|
14
|
+
getSelectedDynamicContentList: (e) => n(e.selectedDynamicContentList).map((t) => ({
|
|
15
|
+
text: t.text,
|
|
16
|
+
value: t.value,
|
|
17
|
+
fallback: t.fallback
|
|
18
|
+
})) || []
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
s as useDynamicContentStore
|
|
23
|
+
};
|
package/dist/stores/editor.d.ts
CHANGED
package/dist/stores/editor.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineStore as e } from "pinia";
|
|
2
|
-
const
|
|
2
|
+
const i = e("editor", {
|
|
3
3
|
state: () => ({
|
|
4
4
|
isCodeEditorOpen: !1,
|
|
5
5
|
isVersionHistoryOpen: !1,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
isPreviewModeOpen: !1,
|
|
7
|
+
editorVisualMode: "desktop"
|
|
8
8
|
})
|
|
9
9
|
});
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
i as useEditorStore
|
|
12
12
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { PreviewState, EmailFormat } from '@@/Types/preview';
|
|
2
|
+
export declare const usePreviewStore: import("pinia").StoreDefinition<"preview", PreviewState, {
|
|
3
|
+
isAMPModeEnabled: (state: {
|
|
4
|
+
emailFormat: EmailFormat;
|
|
5
|
+
ampHtml: string;
|
|
6
|
+
ampErrors: string[];
|
|
7
|
+
templateHtml: string;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
isLoaded: boolean;
|
|
10
|
+
isAMPErrorModalVisible: boolean;
|
|
11
|
+
isPreviewModeOpen: boolean;
|
|
12
|
+
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => boolean;
|
|
13
|
+
previewHtml(): string;
|
|
14
|
+
hasAMP: (state: {
|
|
15
|
+
emailFormat: EmailFormat;
|
|
16
|
+
ampHtml: string;
|
|
17
|
+
ampErrors: string[];
|
|
18
|
+
templateHtml: string;
|
|
19
|
+
isLoading: boolean;
|
|
20
|
+
isLoaded: boolean;
|
|
21
|
+
isAMPErrorModalVisible: boolean;
|
|
22
|
+
isPreviewModeOpen: boolean;
|
|
23
|
+
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => boolean;
|
|
24
|
+
hasAMPErrors: (state: {
|
|
25
|
+
emailFormat: EmailFormat;
|
|
26
|
+
ampHtml: string;
|
|
27
|
+
ampErrors: string[];
|
|
28
|
+
templateHtml: string;
|
|
29
|
+
isLoading: boolean;
|
|
30
|
+
isLoaded: boolean;
|
|
31
|
+
isAMPErrorModalVisible: boolean;
|
|
32
|
+
isPreviewModeOpen: boolean;
|
|
33
|
+
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => boolean;
|
|
34
|
+
showAMPErrorButton(): boolean;
|
|
35
|
+
isAMPResponsive(): boolean;
|
|
36
|
+
}, {
|
|
37
|
+
updateAMPData(ampData: {
|
|
38
|
+
ampHtml?: string;
|
|
39
|
+
ampErrors?: string[];
|
|
40
|
+
}): void;
|
|
41
|
+
setEmailFormat(format: EmailFormat): void;
|
|
42
|
+
closeErrorModal(): void;
|
|
43
|
+
openErrorModal(): void;
|
|
44
|
+
openPreviewMode(): void;
|
|
45
|
+
closePreviewMode(): void;
|
|
46
|
+
}>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineStore as t } from "pinia";
|
|
2
|
+
const s = () => ({
|
|
3
|
+
emailFormat: "html",
|
|
4
|
+
ampHtml: "",
|
|
5
|
+
ampErrors: [],
|
|
6
|
+
templateHtml: "",
|
|
7
|
+
isLoading: !1,
|
|
8
|
+
isLoaded: !1,
|
|
9
|
+
isAMPErrorModalVisible: !1,
|
|
10
|
+
isPreviewModeOpen: !1
|
|
11
|
+
}), o = t("preview", {
|
|
12
|
+
state: () => s(),
|
|
13
|
+
getters: {
|
|
14
|
+
isAMPModeEnabled: (e) => e.emailFormat === "AMP",
|
|
15
|
+
previewHtml() {
|
|
16
|
+
return this.isAMPModeEnabled ? this.ampHtml : this.templateHtml;
|
|
17
|
+
},
|
|
18
|
+
hasAMP: (e) => {
|
|
19
|
+
var r;
|
|
20
|
+
return !!((r = e.ampHtml) != null && r.trim());
|
|
21
|
+
},
|
|
22
|
+
hasAMPErrors: (e) => e.ampErrors.length > 0,
|
|
23
|
+
showAMPErrorButton() {
|
|
24
|
+
return this.isAMPModeEnabled && this.hasAMPErrors;
|
|
25
|
+
},
|
|
26
|
+
isAMPResponsive() {
|
|
27
|
+
return this.isAMPModeEnabled && this.ampHtml.includes("@media") && this.ampHtml.includes(".adapt-img");
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
actions: {
|
|
31
|
+
updateAMPData(e) {
|
|
32
|
+
this.ampHtml = e.ampHtml ?? "", this.ampErrors = e.ampErrors ?? [], this.emailFormat = e.ampHtml ? "AMP" : "html";
|
|
33
|
+
},
|
|
34
|
+
setEmailFormat(e) {
|
|
35
|
+
this.emailFormat = e;
|
|
36
|
+
},
|
|
37
|
+
closeErrorModal() {
|
|
38
|
+
this.isAMPErrorModalVisible = !1;
|
|
39
|
+
},
|
|
40
|
+
openErrorModal() {
|
|
41
|
+
this.isAMPErrorModalVisible = !0;
|
|
42
|
+
},
|
|
43
|
+
openPreviewMode() {
|
|
44
|
+
this.isPreviewModeOpen = !0;
|
|
45
|
+
},
|
|
46
|
+
closePreviewMode() {
|
|
47
|
+
this.isPreviewModeOpen = !1;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
o as usePreviewStore
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const removeDuplicatesFromArray: <T>(arr?: T[]) => T[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CompilerRule, CompilationResult, HtmlCompiler } from '@@/Types/html-compiler';
|
|
2
|
+
export declare class HtmlCompilerEngine implements HtmlCompiler {
|
|
3
|
+
private rules;
|
|
4
|
+
constructor(rules?: CompilerRule[]);
|
|
5
|
+
compile(html: string, rules?: CompilerRule[]): CompilationResult;
|
|
6
|
+
private applyRule;
|
|
7
|
+
private applyReplaceRule;
|
|
8
|
+
private applyRegexRule;
|
|
9
|
+
private applyRemoveRule;
|
|
10
|
+
private applyCustomRule;
|
|
11
|
+
}
|
|
12
|
+
export declare const createHtmlCompiler: (rules?: CompilerRule[]) => HtmlCompiler;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var g = (p, e, r) => e in p ? y(p, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : p[e] = r;
|
|
3
|
+
var u = (p, e, r) => g(p, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import { useToaster as m } from "../composables/useToaster.js";
|
|
5
|
+
class d {
|
|
6
|
+
constructor(e = []) {
|
|
7
|
+
u(this, "rules");
|
|
8
|
+
this.rules = e;
|
|
9
|
+
}
|
|
10
|
+
compile(e, r) {
|
|
11
|
+
const l = performance.now(), t = e, o = e.length;
|
|
12
|
+
let s = e;
|
|
13
|
+
const a = [];
|
|
14
|
+
(r || this.rules).sort((n, c) => n.priority - c.priority).forEach((n) => {
|
|
15
|
+
const c = s.length;
|
|
16
|
+
s = this.applyRule(s, n), s.length !== c && a.push(n.id);
|
|
17
|
+
});
|
|
18
|
+
const i = s.length, R = o > 0 ? (o - i) / o * 100 : 0;
|
|
19
|
+
return {
|
|
20
|
+
originalHtml: t,
|
|
21
|
+
compiledHtml: s,
|
|
22
|
+
appliedRules: a,
|
|
23
|
+
// TODO: We can use stats for monitoring in the future
|
|
24
|
+
stats: {
|
|
25
|
+
originalSize: o,
|
|
26
|
+
compiledSize: i,
|
|
27
|
+
reductionPercentage: R,
|
|
28
|
+
executionTime: performance.now() - l
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
applyRule(e, r) {
|
|
33
|
+
try {
|
|
34
|
+
switch (r.type) {
|
|
35
|
+
case "replace":
|
|
36
|
+
return this.applyReplaceRule(e, r);
|
|
37
|
+
case "regex":
|
|
38
|
+
return this.applyRegexRule(e, r);
|
|
39
|
+
case "remove":
|
|
40
|
+
return this.applyRemoveRule(e, r);
|
|
41
|
+
case "custom":
|
|
42
|
+
return this.applyCustomRule(e, r);
|
|
43
|
+
default:
|
|
44
|
+
return e;
|
|
45
|
+
}
|
|
46
|
+
} catch (l) {
|
|
47
|
+
const { handleError: t } = m();
|
|
48
|
+
return t(l, `Failed to apply rule ${r.id}:`), e;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
applyReplaceRule(e, r) {
|
|
52
|
+
const { search: l, replacement: t, replaceAll: o = !0 } = r;
|
|
53
|
+
return o ? e.replaceAll(l, t) : e.replace(l, t);
|
|
54
|
+
}
|
|
55
|
+
applyRegexRule(e, r) {
|
|
56
|
+
const { pattern: l, replacement: t, flags: o = "g" } = r, s = new RegExp(l, o);
|
|
57
|
+
return e.replace(s, t);
|
|
58
|
+
}
|
|
59
|
+
applyRemoveRule(e, r) {
|
|
60
|
+
return r.targets.reduce((l, t) => t instanceof RegExp ? l.replace(t, "") : l.replaceAll(t, ""), e);
|
|
61
|
+
}
|
|
62
|
+
applyCustomRule(e, r) {
|
|
63
|
+
return r.processor(e);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
const A = (p = []) => new d(p);
|
|
67
|
+
export {
|
|
68
|
+
d as HtmlCompilerEngine,
|
|
69
|
+
A as createHtmlCompiler
|
|
70
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const e = (s, t = {}) => ({
|
|
2
|
+
id: s,
|
|
3
|
+
dynamicPosition: t.dynamicPosition ?? !1,
|
|
4
|
+
staticPosition: t.staticPosition ?? "bottom center",
|
|
5
|
+
iconStatus: t.iconStatus ?? !1,
|
|
6
|
+
offset: t.offset,
|
|
7
|
+
preventXss: t.preventXss
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
e as getTooltipOptions
|
|
11
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.71a8dc6",
|
|
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",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
],
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
"import": "./dist/library.js",
|
|
14
|
+
"types": "./dist/components/Guido.vue.d.ts",
|
|
15
|
+
"require": "./dist/components/Guido.vue.js"
|
|
16
16
|
},
|
|
17
17
|
"./style": "./dist/guido.css"
|
|
18
18
|
},
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"start": "vite",
|
|
22
22
|
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.app.json",
|
|
23
23
|
"preview": "vite preview",
|
|
24
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
25
24
|
"lint": "NODE_OPTIONS=--max-old-space-size=2048 eslint ./ && bun run type-check",
|
|
26
25
|
"lint:fix": "NODE_OPTIONS=--max-old-space-size=2048 eslint --fix ./",
|
|
27
26
|
"type-check": "vue-tsc --noEmit --project tsconfig.config.json && vue-tsc --noEmit --project tsconfig.app.json"
|
|
@@ -30,6 +29,7 @@
|
|
|
30
29
|
"author": "",
|
|
31
30
|
"license": "ISC",
|
|
32
31
|
"dependencies": {
|
|
32
|
+
"@stripoinc/ui-editor-extensions": "1.0.6",
|
|
33
33
|
"@useinsider/design-system-vue": "0.14.8",
|
|
34
34
|
"@vuelidate/core": "2.0.3",
|
|
35
35
|
"@vuelidate/validators": "2.0.4",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"@cspell/eslint-plugin": "8.17.5",
|
|
43
43
|
"@eslint/eslintrc": "3.3.0",
|
|
44
44
|
"@eslint/js": "8.57.1",
|
|
45
|
+
"@playwright/test": "^1.54.2",
|
|
45
46
|
"@stylistic/eslint-plugin": "3.1.0",
|
|
46
47
|
"@stylistic/eslint-plugin-migrate": "3.1.0",
|
|
47
48
|
"@types/eslint": "8.56.12",
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
interface ModalWrapperProps {
|
|
2
|
-
isOpen: boolean;
|
|
3
|
-
title: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
size?: 'small' | 'medium' | 'large' | 'extra-large';
|
|
6
|
-
primaryButtonText?: string;
|
|
7
|
-
primaryButtonDisabled?: boolean;
|
|
8
|
-
primaryButtonLoading?: boolean;
|
|
9
|
-
cancelButtonText?: string;
|
|
10
|
-
showCancelButton?: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
declare var __VLS_12: {};
|
|
14
|
-
type __VLS_Slots = {} & {
|
|
15
|
-
default?: (props: typeof __VLS_12) => any;
|
|
16
|
-
};
|
|
17
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ModalWrapperProps>, {
|
|
18
|
-
description: string;
|
|
19
|
-
size: string;
|
|
20
|
-
primaryButtonText: string;
|
|
21
|
-
primaryButtonDisabled: boolean;
|
|
22
|
-
primaryButtonLoading: boolean;
|
|
23
|
-
cancelButtonText: string;
|
|
24
|
-
showCancelButton: boolean;
|
|
25
|
-
className: string;
|
|
26
|
-
}>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
27
|
-
close: () => void;
|
|
28
|
-
save: () => void;
|
|
29
|
-
cancel: () => void;
|
|
30
|
-
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ModalWrapperProps>, {
|
|
31
|
-
description: string;
|
|
32
|
-
size: string;
|
|
33
|
-
primaryButtonText: string;
|
|
34
|
-
primaryButtonDisabled: boolean;
|
|
35
|
-
primaryButtonLoading: boolean;
|
|
36
|
-
cancelButtonText: string;
|
|
37
|
-
showCancelButton: boolean;
|
|
38
|
-
className: string;
|
|
39
|
-
}>>>, {
|
|
40
|
-
className: string;
|
|
41
|
-
size: "small" | "medium" | "large" | "extra-large";
|
|
42
|
-
description: string;
|
|
43
|
-
primaryButtonText: string;
|
|
44
|
-
primaryButtonDisabled: boolean;
|
|
45
|
-
primaryButtonLoading: boolean;
|
|
46
|
-
cancelButtonText: string;
|
|
47
|
-
showCancelButton: boolean;
|
|
48
|
-
}>;
|
|
49
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
50
|
-
export default _default;
|
|
51
|
-
type __VLS_WithDefaults<P, D> = {
|
|
52
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
53
|
-
default: D[K];
|
|
54
|
-
}> : P[K];
|
|
55
|
-
};
|
|
56
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
57
|
-
type __VLS_TypePropsToOption<T> = {
|
|
58
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
59
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
60
|
-
} : {
|
|
61
|
-
type: import('vue').PropType<T[K]>;
|
|
62
|
-
required: true;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
66
|
-
new (): {
|
|
67
|
-
$scopedSlots: S;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
type __VLS_PrettifyLocal<T> = {
|
|
71
|
-
[K in keyof T]: T[K];
|
|
72
|
-
} & {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import r from "./ModalWrapper.vue2.js";
|
|
2
|
-
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var s = function() {
|
|
4
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
5
|
-
return n(e.InDrawer, { attrs: { id: `drawer-${Math.random().toString(36).substr(2, 9)}`, "description-text": t.description, "footer-button-group-options": e.drawerFooterOptions, size: t.size, status: t.isOpen, "title-text": t.title }, on: { cancelOrBackButtonEvent: e.handleCancel, onCloseEvent: e.handleClose, primaryButtonEvent: e.handleSave }, scopedSlots: t._u([{ key: "contentSlot", fn: function() {
|
|
6
|
-
return [n("div", { staticClass: "modal-content-wrapper", class: t.className }, [t._t("default")], 2)];
|
|
7
|
-
}, proxy: !0 }], null, !0) });
|
|
8
|
-
}, a = [], l = /* @__PURE__ */ o(
|
|
9
|
-
r,
|
|
10
|
-
s,
|
|
11
|
-
a,
|
|
12
|
-
!1,
|
|
13
|
-
null,
|
|
14
|
-
null
|
|
15
|
-
);
|
|
16
|
-
const u = l.exports;
|
|
17
|
-
export {
|
|
18
|
-
u as default
|
|
19
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, computed as l } from "vue";
|
|
2
|
-
import { InDrawer as r } from "@useinsider/design-system-vue";
|
|
3
|
-
const i = /* @__PURE__ */ o({
|
|
4
|
-
__name: "ModalWrapper",
|
|
5
|
-
props: {
|
|
6
|
-
isOpen: { type: Boolean },
|
|
7
|
-
title: null,
|
|
8
|
-
description: { default: "" },
|
|
9
|
-
size: { default: "medium" },
|
|
10
|
-
primaryButtonText: { default: "Save" },
|
|
11
|
-
primaryButtonDisabled: { type: Boolean, default: !1 },
|
|
12
|
-
primaryButtonLoading: { type: Boolean, default: !1 },
|
|
13
|
-
cancelButtonText: { default: "Cancel" },
|
|
14
|
-
showCancelButton: { type: Boolean, default: !0 },
|
|
15
|
-
className: { default: "" }
|
|
16
|
-
},
|
|
17
|
-
emits: ["close", "save", "cancel"],
|
|
18
|
-
setup(a, { emit: t }) {
|
|
19
|
-
const e = a, n = l(() => ({
|
|
20
|
-
primaryButton: {
|
|
21
|
-
styling: "solid",
|
|
22
|
-
type: "primary",
|
|
23
|
-
labelText: e.primaryButtonText,
|
|
24
|
-
disabled: e.primaryButtonDisabled || e.primaryButtonLoading
|
|
25
|
-
},
|
|
26
|
-
cancelOrBackButton: e.showCancelButton ? {
|
|
27
|
-
type: "secondary",
|
|
28
|
-
styling: "ghost",
|
|
29
|
-
labelText: e.cancelButtonText
|
|
30
|
-
} : void 0
|
|
31
|
-
}));
|
|
32
|
-
return { __sfc: !0, props: e, emit: t, drawerFooterOptions: n, handleClose: () => {
|
|
33
|
-
t("close");
|
|
34
|
-
}, handleSave: () => {
|
|
35
|
-
t("save");
|
|
36
|
-
}, handleCancel: () => {
|
|
37
|
-
t("cancel");
|
|
38
|
-
}, InDrawer: r };
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
export {
|
|
42
|
-
i as default
|
|
43
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
interface TemplateModalProps {
|
|
2
|
-
isOpen: boolean;
|
|
3
|
-
}
|
|
4
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<TemplateModalProps>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
5
|
-
close: () => void;
|
|
6
|
-
save: (data: {
|
|
7
|
-
templateName: string;
|
|
8
|
-
htmlData: string;
|
|
9
|
-
}) => void;
|
|
10
|
-
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<TemplateModalProps>>>, {}>;
|
|
11
|
-
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToOption<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|