@useinsider/guido 1.0.2-beta.91efff4 → 1.0.2-beta.93e2012

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.
Files changed (130) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/AddCustomFont.js +4 -0
  3. package/dist/_virtual/AiAssistantValueType.js +4 -0
  4. package/dist/_virtual/BackgroundColorBuiltInControl.js +4 -0
  5. package/dist/_virtual/BackgroundImageBuiltInControl.js +4 -0
  6. package/dist/_virtual/Block.js +4 -0
  7. package/dist/_virtual/BlockAttributes.js +4 -0
  8. package/dist/_virtual/BlockCompositionType.js +4 -0
  9. package/dist/_virtual/BlockPaddingsBuiltInControl.js +4 -0
  10. package/dist/_virtual/BlockRenderer.js +4 -0
  11. package/dist/_virtual/BlockType.js +4 -0
  12. package/dist/_virtual/BlocksPanel.js +4 -0
  13. package/dist/_virtual/BuiltInControl.js +4 -0
  14. package/dist/_virtual/BuiltInControlTypes.js +4 -0
  15. package/dist/_virtual/ButtonBorderBuiltInControl.js +4 -0
  16. package/dist/_virtual/ButtonColorBuiltInControl.js +4 -0
  17. package/dist/_virtual/ButtonFontColorBuiltInControl.js +4 -0
  18. package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +4 -0
  19. package/dist/_virtual/ButtonTextBuiltInControl.js +4 -0
  20. package/dist/_virtual/ContextAction.js +4 -0
  21. package/dist/_virtual/ContextActionType.js +4 -0
  22. package/dist/_virtual/Control.js +4 -0
  23. package/dist/_virtual/EditorStatePropertyType.js +4 -0
  24. package/dist/_virtual/Extension.js +4 -0
  25. package/dist/_virtual/ExtensionBuilder.js +4 -0
  26. package/dist/_virtual/FontFamilyBuiltInControl.js +4 -0
  27. package/dist/_virtual/LinkColorBuiltInControl.js +4 -0
  28. package/dist/_virtual/ModificationDescription.js +4 -0
  29. package/dist/_virtual/PanelPosition.js +4 -0
  30. package/dist/_virtual/PreviewDeviceMode.js +4 -0
  31. package/dist/_virtual/SettingsPanelRegistry.js +4 -0
  32. package/dist/_virtual/SettingsPanelTab.js +4 -0
  33. package/dist/_virtual/SettingsTab.js +4 -0
  34. package/dist/_virtual/StructureBorderBuiltInControl.js +4 -0
  35. package/dist/_virtual/StructurePaddingsBuiltInControl.js +4 -0
  36. package/dist/_virtual/TextColorBuiltInControl.js +4 -0
  37. package/dist/_virtual/TextLineSpacingBuiltInControl.js +4 -0
  38. package/dist/_virtual/TextSizeBuiltInControl.js +4 -0
  39. package/dist/_virtual/TextStyleBuiltInControl.js +4 -0
  40. package/dist/_virtual/UIElement.js +4 -0
  41. package/dist/_virtual/UIElementTagRegistry.js +4 -0
  42. package/dist/_virtual/UIElementType.js +4 -0
  43. package/dist/_virtual/UIElementsAttributes.js +4 -0
  44. package/dist/_virtual/index.js +5 -0
  45. package/dist/_virtual/index2.js +4 -0
  46. package/dist/components/Guido.vue.js +8 -8
  47. package/dist/components/Guido.vue2.js +35 -36
  48. package/dist/composables/useHtmlValidator.d.ts +1 -2
  49. package/dist/composables/useHtmlValidator.js +95 -114
  50. package/dist/composables/useSave.js +6 -6
  51. package/dist/composables/useStripo.js +35 -37
  52. package/dist/extensions/DynamicContent/dynamic-content.js +27 -41
  53. package/dist/extensions/DynamicContent/extension.js +6 -18
  54. package/dist/guido.css +1 -1
  55. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +48 -72
  56. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +49 -74
  57. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +38 -120
  58. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +18 -0
  59. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +32 -0
  60. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +18 -0
  61. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +8 -0
  62. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +11 -5
  63. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +34 -0
  64. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +11 -5
  65. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +11 -5
  66. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +101 -116
  67. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +11 -5
  68. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +11 -5
  69. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +11 -5
  70. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +11 -5
  71. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +11 -5
  72. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +11 -5
  73. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +43 -22
  74. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +43 -0
  75. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +46 -0
  76. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +44 -0
  77. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +22 -0
  78. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +46 -0
  79. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +46 -0
  80. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +45 -0
  81. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +45 -0
  82. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +45 -0
  83. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +17 -21
  84. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +43 -0
  85. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +45 -0
  86. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +15 -8
  87. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +29 -30
  88. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +46 -0
  89. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +44 -0
  90. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +43 -0
  91. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +43 -0
  92. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +45 -0
  93. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +43 -0
  94. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +266 -0
  95. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +23 -19
  96. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +19 -37
  97. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +15 -2
  98. package/dist/utils/genericUtil.d.ts +0 -5
  99. package/package.json +2 -2
  100. package/dist/config/migrator/checkboxMigrator.d.ts +0 -1
  101. package/dist/config/migrator/checkboxMigrator.js +0 -83
  102. package/dist/config/migrator/index.d.ts +0 -1
  103. package/dist/config/migrator/index.js +0 -5
  104. package/dist/extensions/Blocks/Checkbox/block.d.ts +0 -10
  105. package/dist/extensions/Blocks/Checkbox/block.js +0 -39
  106. package/dist/extensions/Blocks/Checkbox/control.d.ts +0 -22
  107. package/dist/extensions/Blocks/Checkbox/control.js +0 -104
  108. package/dist/extensions/Blocks/Checkbox/extension.d.ts +0 -2
  109. package/dist/extensions/Blocks/Checkbox/extension.js +0 -20
  110. package/dist/extensions/Blocks/Checkbox/settingsPanel.d.ts +0 -4
  111. package/dist/extensions/Blocks/Checkbox/settingsPanel.js +0 -38
  112. package/dist/extensions/Blocks/Checkbox/template.d.ts +0 -6
  113. package/dist/extensions/Blocks/Checkbox/template.js +0 -75
  114. package/dist/extensions/Blocks/CouponBlock/block.d.ts +0 -11
  115. package/dist/extensions/Blocks/CouponBlock/block.js +0 -42
  116. package/dist/extensions/Blocks/CouponBlock/extension.d.ts +0 -2
  117. package/dist/extensions/Blocks/CouponBlock/extension.js +0 -19
  118. package/dist/extensions/Blocks/CouponBlock/settingsPanel.d.ts +0 -4
  119. package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +0 -37
  120. package/dist/extensions/Blocks/CouponBlock/template.d.ts +0 -3
  121. package/dist/extensions/Blocks/CouponBlock/template.js +0 -13
  122. package/dist/extensions/Blocks/_Boilerplate/block.d.ts +0 -10
  123. package/dist/extensions/Blocks/_Boilerplate/control.d.ts +0 -17
  124. package/dist/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
  125. package/dist/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
  126. package/dist/extensions/Blocks/_Boilerplate/template.d.ts +0 -6
  127. package/dist/icons/coupon.svg +0 -3
  128. package/dist/mock/api/unsubscribe.d.ts +0 -2
  129. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +0 -12
  130. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +0 -12
@@ -0,0 +1,45 @@
1
+ import { __exports as o } from "../../../../../_virtual/TextSizeBuiltInControl.js";
2
+ import { __require as s } from "./BuiltInControl.js";
3
+ import { __require as _ } from "../constants/BuiltInControlTypes.js";
4
+ var l;
5
+ function T() {
6
+ if (l) return o;
7
+ l = 1;
8
+ var c = o && o.__extends || /* @__PURE__ */ (function() {
9
+ var r = function(t, e) {
10
+ return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
11
+ n.__proto__ = i;
12
+ } || function(n, i) {
13
+ for (var u in i) Object.prototype.hasOwnProperty.call(i, u) && (n[u] = i[u]);
14
+ }, r(t, e);
15
+ };
16
+ return function(t, e) {
17
+ if (typeof e != "function" && e !== null)
18
+ throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
19
+ r(t, e);
20
+ function n() {
21
+ this.constructor = t;
22
+ }
23
+ t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
24
+ };
25
+ })();
26
+ Object.defineProperty(o, "__esModule", { value: !0 }), o.TextSizeBuiltInControl = void 0;
27
+ var p = s(), a = _(), f = (
28
+ /** @class */
29
+ (function(r) {
30
+ c(t, r);
31
+ function t() {
32
+ return r !== null && r.apply(this, arguments) || this;
33
+ }
34
+ return t.prototype.getParentControlId = function() {
35
+ return a.BuiltInControlTypes.GENERAL.TEXT_SIZE;
36
+ }, t.prototype.getTargetNodes = function(e) {
37
+ }, t.prototype.getMobileClassSpecificSelector = function() {
38
+ }, t;
39
+ })(p.BuiltInControl)
40
+ );
41
+ return o.TextSizeBuiltInControl = f, o;
42
+ }
43
+ export {
44
+ T as __require
45
+ };
@@ -0,0 +1,43 @@
1
+ import { __exports as n } from "../../../../../_virtual/TextStyleBuiltInControl.js";
2
+ import { __require as p } from "./BuiltInControl.js";
3
+ import { __require as f } from "../constants/BuiltInControlTypes.js";
4
+ var u;
5
+ function T() {
6
+ if (u) return n;
7
+ u = 1;
8
+ var a = n && n.__extends || /* @__PURE__ */ (function() {
9
+ var o = function(t, r) {
10
+ return o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, l) {
11
+ e.__proto__ = l;
12
+ } || function(e, l) {
13
+ for (var i in l) Object.prototype.hasOwnProperty.call(l, i) && (e[i] = l[i]);
14
+ }, o(t, r);
15
+ };
16
+ return function(t, r) {
17
+ if (typeof r != "function" && r !== null)
18
+ throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
19
+ o(t, r);
20
+ function e() {
21
+ this.constructor = t;
22
+ }
23
+ t.prototype = r === null ? Object.create(r) : (e.prototype = r.prototype, new e());
24
+ };
25
+ })();
26
+ Object.defineProperty(n, "__esModule", { value: !0 }), n.TextStyleBuiltInControl = void 0;
27
+ var _ = p(), s = f(), c = (
28
+ /** @class */
29
+ (function(o) {
30
+ a(t, o);
31
+ function t() {
32
+ return o !== null && o.apply(this, arguments) || this;
33
+ }
34
+ return t.prototype.getParentControlId = function() {
35
+ return s.BuiltInControlTypes.GENERAL.TEXT_STYLE;
36
+ }, t;
37
+ })(_.BuiltInControl)
38
+ );
39
+ return n.TextStyleBuiltInControl = c, n;
40
+ }
41
+ export {
42
+ T as __require
43
+ };
@@ -0,0 +1,266 @@
1
+ import { __exports as t } from "../../../../_virtual/index2.js";
2
+ import { __require as J } from "./ui-elements/UIElement.js";
3
+ import { __require as K } from "./controls/Control.js";
4
+ import { __require as Q } from "./controls/SettingsPanelRegistry.js";
5
+ import { __require as W } from "./blocks/ContextAction.js";
6
+ import { __require as X } from "./blocks/BlockRenderer.js";
7
+ import { __require as Y } from "./blocks/Block.js";
8
+ import { __require as Z } from "./ExtensionBuilder.js";
9
+ import { __require as $ } from "./Extension.js";
10
+ import { __require as x } from "./ui-elements/UIElementTagRegistry.js";
11
+ import { __require as ee } from "./modifications/ModificationDescription.js";
12
+ import { __require as re } from "./controls/SettingsPanelTab.js";
13
+ import { __require as te } from "./constants/UIElementType.js";
14
+ import { __require as ne } from "./constants/BuiltInControlTypes.js";
15
+ import { __require as oe } from "./constants/SettingsTab.js";
16
+ import { __require as ie } from "./constants/UIElementsAttributes.js";
17
+ import { __require as ue } from "./constants/BlockType.js";
18
+ import { __require as le } from "./constants/ContextActionType.js";
19
+ import { __require as ae } from "./constants/BlockCompositionType.js";
20
+ import { __require as ce } from "./constants/BlockAttributes.js";
21
+ import { __require as Ce } from "./constants/AiAssistantValueType.js";
22
+ import { __require as me } from "./constants/AddCustomFont.js";
23
+ import { __require as Be } from "./controls/BuiltInControl.js";
24
+ import { __require as fe } from "./controls/FontFamilyBuiltInControl.js";
25
+ import { __require as de } from "./controls/BackgroundColorBuiltInControl.js";
26
+ import { __require as be } from "./controls/BlockPaddingsBuiltInControl.js";
27
+ import { __require as _e } from "./controls/BackgroundImageBuiltInControl.js";
28
+ import { __require as ge } from "./constants/EditorStatePropertyType.js";
29
+ import { __require as Ie } from "./constants/PreviewDeviceMode.js";
30
+ import { __require as ye } from "./controls/StructurePaddingsBuiltInControl.js";
31
+ import { __require as Pe } from "./controls/TextColorBuiltInControl.js";
32
+ import { __require as se } from "./controls/ButtonFontColorBuiltInControl.js";
33
+ import { __require as Te } from "./controls/ButtonColorBuiltInControl.js";
34
+ import { __require as qe } from "./controls/ButtonInternalIndentsBuiltInControl.js";
35
+ import { __require as Oe } from "./controls/StructureBorderBuiltInControl.js";
36
+ import { __require as je } from "./controls/TextSizeBuiltInControl.js";
37
+ import { __require as Se } from "./controls/TextStyleBuiltInControl.js";
38
+ import { __require as ve } from "./controls/LinkColorBuiltInControl.js";
39
+ import { __require as ke } from "./controls/ButtonTextBuiltInControl.js";
40
+ import { __require as pe } from "./controls/ButtonBorderBuiltInControl.js";
41
+ import { __require as Ae } from "./controls/TextLineSpacingBuiltInControl.js";
42
+ import { __require as Ee } from "./blocks/BlocksPanel.js";
43
+ import { __require as Fe } from "./constants/PanelPosition.js";
44
+ var n;
45
+ function Tr() {
46
+ return n ? t : (n = 1, (function(e) {
47
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.ButtonTextBuiltInControl = e.LinkColorBuiltInControl = e.BackgroundImageBuiltInControl = e.BackgroundColorBuiltInControl = e.FontFamilyBuiltInControl = e.BuiltInControl = e.ADD_CUSTOM_FONT_OPTION = e.BlockAttr = e.AiAssistantValueType = e.BlockCompositionType = e.AmpFormControls = e.GeneralControls = e.GeneralStylesControls = e.MessageSettingsControls = e.ContainerControls = e.StructureControls = e.StripeControls = e.CarouselControls = e.AccordionControls = e.MenuControls = e.SocialControls = e.CustomTextControls = e.CustomImageControls = e.CustomLinkControls = e.HTMLControls = e.ImageControls = e.SpacerControls = e.TimerControls = e.VideoControls = e.TextControls = e.ButtonControls = e.BannerChildControls = e.BannerControls = e.BlockType = e.SettingsTab = e.BuiltInControlTypes = e.ContextActionType = e.UEAttr = e.UIElementType = e.ModificationDescription = e.Extension = e.ExtensionBuilder = e.SettingsPanelTab = e.Block = e.BlockRenderer = e.ContextAction = e.SettingsPanelRegistry = e.Control = e.UIElementTagRegistry = e.UIElement = void 0, e.TextLineSpacingBuiltInControl = e.ButtonBorderBuiltInControl = e.PanelPosition = e.BlocksPanel = e.StructureBorderBuiltInControl = e.TextStyleBuiltInControl = e.TextSizeBuiltInControl = e.PreviewDeviceMode = e.EditorStatePropertyType = e.ButtonColorBuiltInControl = e.ButtonFontColorBuiltInControl = e.TextColorBuiltInControl = e.ButtonInternalIndentsBuiltInControl = e.StructurePaddingsBuiltInControl = e.BlockPaddingsBuiltInControl = void 0;
48
+ var o = J();
49
+ Object.defineProperty(e, "UIElement", { enumerable: !0, get: function() {
50
+ return o.UIElement;
51
+ } });
52
+ var i = K();
53
+ Object.defineProperty(e, "Control", { enumerable: !0, get: function() {
54
+ return i.Control;
55
+ } });
56
+ var u = Q();
57
+ Object.defineProperty(e, "SettingsPanelRegistry", { enumerable: !0, get: function() {
58
+ return u.SettingsPanelRegistry;
59
+ } });
60
+ var l = W();
61
+ Object.defineProperty(e, "ContextAction", { enumerable: !0, get: function() {
62
+ return l.ContextAction;
63
+ } });
64
+ var a = X();
65
+ Object.defineProperty(e, "BlockRenderer", { enumerable: !0, get: function() {
66
+ return a.BlockRenderer;
67
+ } });
68
+ var c = Y();
69
+ Object.defineProperty(e, "Block", { enumerable: !0, get: function() {
70
+ return c.Block;
71
+ } });
72
+ var C = Z();
73
+ Object.defineProperty(e, "ExtensionBuilder", { enumerable: !0, get: function() {
74
+ return C.ExtensionBuilder;
75
+ } });
76
+ var m = $();
77
+ Object.defineProperty(e, "Extension", { enumerable: !0, get: function() {
78
+ return m.Extension;
79
+ } });
80
+ var B = x();
81
+ Object.defineProperty(e, "UIElementTagRegistry", { enumerable: !0, get: function() {
82
+ return B.UIElementTagRegistry;
83
+ } });
84
+ var f = ee();
85
+ Object.defineProperty(e, "ModificationDescription", { enumerable: !0, get: function() {
86
+ return f.ModificationDescription;
87
+ } });
88
+ var d = re();
89
+ Object.defineProperty(e, "SettingsPanelTab", { enumerable: !0, get: function() {
90
+ return d.SettingsPanelTab;
91
+ } });
92
+ var b = te();
93
+ Object.defineProperty(e, "UIElementType", { enumerable: !0, get: function() {
94
+ return b.UIElementType;
95
+ } });
96
+ var r = ne();
97
+ Object.defineProperty(e, "AccordionControls", { enumerable: !0, get: function() {
98
+ return r.AccordionControls;
99
+ } }), Object.defineProperty(e, "AmpFormControls", { enumerable: !0, get: function() {
100
+ return r.AmpFormControls;
101
+ } }), Object.defineProperty(e, "BannerChildControls", { enumerable: !0, get: function() {
102
+ return r.BannerChildControls;
103
+ } }), Object.defineProperty(e, "BannerControls", { enumerable: !0, get: function() {
104
+ return r.BannerControls;
105
+ } }), Object.defineProperty(e, "BuiltInControlTypes", { enumerable: !0, get: function() {
106
+ return r.BuiltInControlTypes;
107
+ } }), Object.defineProperty(e, "ButtonControls", { enumerable: !0, get: function() {
108
+ return r.ButtonControls;
109
+ } }), Object.defineProperty(e, "CarouselControls", { enumerable: !0, get: function() {
110
+ return r.CarouselControls;
111
+ } }), Object.defineProperty(e, "ContainerControls", { enumerable: !0, get: function() {
112
+ return r.ContainerControls;
113
+ } }), Object.defineProperty(e, "CustomImageControls", { enumerable: !0, get: function() {
114
+ return r.CustomImageControls;
115
+ } }), Object.defineProperty(e, "CustomLinkControls", { enumerable: !0, get: function() {
116
+ return r.CustomLinkControls;
117
+ } }), Object.defineProperty(e, "CustomTextControls", { enumerable: !0, get: function() {
118
+ return r.CustomTextControls;
119
+ } }), Object.defineProperty(e, "GeneralControls", { enumerable: !0, get: function() {
120
+ return r.GeneralControls;
121
+ } }), Object.defineProperty(e, "GeneralStylesControls", { enumerable: !0, get: function() {
122
+ return r.GeneralStylesControls;
123
+ } }), Object.defineProperty(e, "HTMLControls", { enumerable: !0, get: function() {
124
+ return r.HTMLControls;
125
+ } }), Object.defineProperty(e, "ImageControls", { enumerable: !0, get: function() {
126
+ return r.ImageControls;
127
+ } }), Object.defineProperty(e, "MenuControls", { enumerable: !0, get: function() {
128
+ return r.MenuControls;
129
+ } }), Object.defineProperty(e, "MessageSettingsControls", { enumerable: !0, get: function() {
130
+ return r.MessageSettingsControls;
131
+ } }), Object.defineProperty(e, "SocialControls", { enumerable: !0, get: function() {
132
+ return r.SocialControls;
133
+ } }), Object.defineProperty(e, "SpacerControls", { enumerable: !0, get: function() {
134
+ return r.SpacerControls;
135
+ } }), Object.defineProperty(e, "StripeControls", { enumerable: !0, get: function() {
136
+ return r.StripeControls;
137
+ } }), Object.defineProperty(e, "StructureControls", { enumerable: !0, get: function() {
138
+ return r.StructureControls;
139
+ } }), Object.defineProperty(e, "TextControls", { enumerable: !0, get: function() {
140
+ return r.TextControls;
141
+ } }), Object.defineProperty(e, "TimerControls", { enumerable: !0, get: function() {
142
+ return r.TimerControls;
143
+ } }), Object.defineProperty(e, "VideoControls", { enumerable: !0, get: function() {
144
+ return r.VideoControls;
145
+ } });
146
+ var _ = oe();
147
+ Object.defineProperty(e, "SettingsTab", { enumerable: !0, get: function() {
148
+ return _.SettingsTab;
149
+ } });
150
+ var g = ie();
151
+ Object.defineProperty(e, "UEAttr", { enumerable: !0, get: function() {
152
+ return g.UEAttr;
153
+ } });
154
+ var I = ue();
155
+ Object.defineProperty(e, "BlockType", { enumerable: !0, get: function() {
156
+ return I.BlockType;
157
+ } });
158
+ var y = le();
159
+ Object.defineProperty(e, "ContextActionType", { enumerable: !0, get: function() {
160
+ return y.ContextActionType;
161
+ } });
162
+ var P = ae();
163
+ Object.defineProperty(e, "BlockCompositionType", { enumerable: !0, get: function() {
164
+ return P.BlockCompositionType;
165
+ } });
166
+ var s = ce();
167
+ Object.defineProperty(e, "BlockAttr", { enumerable: !0, get: function() {
168
+ return s.BlockAttr;
169
+ } });
170
+ var T = Ce();
171
+ Object.defineProperty(e, "AiAssistantValueType", { enumerable: !0, get: function() {
172
+ return T.AiAssistantValueType;
173
+ } });
174
+ var q = me();
175
+ Object.defineProperty(e, "ADD_CUSTOM_FONT_OPTION", { enumerable: !0, get: function() {
176
+ return q.ADD_CUSTOM_FONT_OPTION;
177
+ } });
178
+ var O = Be();
179
+ Object.defineProperty(e, "BuiltInControl", { enumerable: !0, get: function() {
180
+ return O.BuiltInControl;
181
+ } });
182
+ var j = fe();
183
+ Object.defineProperty(e, "FontFamilyBuiltInControl", { enumerable: !0, get: function() {
184
+ return j.FontFamilyBuiltInControl;
185
+ } });
186
+ var S = de();
187
+ Object.defineProperty(e, "BackgroundColorBuiltInControl", { enumerable: !0, get: function() {
188
+ return S.BackgroundColorBuiltInControl;
189
+ } });
190
+ var v = be();
191
+ Object.defineProperty(e, "BlockPaddingsBuiltInControl", { enumerable: !0, get: function() {
192
+ return v.BlockPaddingsBuiltInControl;
193
+ } });
194
+ var k = _e();
195
+ Object.defineProperty(e, "BackgroundImageBuiltInControl", { enumerable: !0, get: function() {
196
+ return k.BackgroundImageBuiltInControl;
197
+ } });
198
+ var p = ge();
199
+ Object.defineProperty(e, "EditorStatePropertyType", { enumerable: !0, get: function() {
200
+ return p.EditorStatePropertyType;
201
+ } });
202
+ var A = Ie();
203
+ Object.defineProperty(e, "PreviewDeviceMode", { enumerable: !0, get: function() {
204
+ return A.PreviewDeviceMode;
205
+ } });
206
+ var E = ye();
207
+ Object.defineProperty(e, "StructurePaddingsBuiltInControl", { enumerable: !0, get: function() {
208
+ return E.StructurePaddingsBuiltInControl;
209
+ } });
210
+ var F = Pe();
211
+ Object.defineProperty(e, "TextColorBuiltInControl", { enumerable: !0, get: function() {
212
+ return F.TextColorBuiltInControl;
213
+ } });
214
+ var M = se();
215
+ Object.defineProperty(e, "ButtonFontColorBuiltInControl", { enumerable: !0, get: function() {
216
+ return M.ButtonFontColorBuiltInControl;
217
+ } });
218
+ var U = Te();
219
+ Object.defineProperty(e, "ButtonColorBuiltInControl", { enumerable: !0, get: function() {
220
+ return U.ButtonColorBuiltInControl;
221
+ } });
222
+ var D = qe();
223
+ Object.defineProperty(e, "ButtonInternalIndentsBuiltInControl", { enumerable: !0, get: function() {
224
+ return D.ButtonInternalIndentsBuiltInControl;
225
+ } });
226
+ var L = Oe();
227
+ Object.defineProperty(e, "StructureBorderBuiltInControl", { enumerable: !0, get: function() {
228
+ return L.StructureBorderBuiltInControl;
229
+ } });
230
+ var R = je();
231
+ Object.defineProperty(e, "TextSizeBuiltInControl", { enumerable: !0, get: function() {
232
+ return R.TextSizeBuiltInControl;
233
+ } });
234
+ var V = Se();
235
+ Object.defineProperty(e, "TextStyleBuiltInControl", { enumerable: !0, get: function() {
236
+ return V.TextStyleBuiltInControl;
237
+ } });
238
+ var G = ve();
239
+ Object.defineProperty(e, "LinkColorBuiltInControl", { enumerable: !0, get: function() {
240
+ return G.LinkColorBuiltInControl;
241
+ } });
242
+ var N = ke();
243
+ Object.defineProperty(e, "ButtonTextBuiltInControl", { enumerable: !0, get: function() {
244
+ return N.ButtonTextBuiltInControl;
245
+ } });
246
+ var w = pe();
247
+ Object.defineProperty(e, "ButtonBorderBuiltInControl", { enumerable: !0, get: function() {
248
+ return w.ButtonBorderBuiltInControl;
249
+ } });
250
+ var z = Ae();
251
+ Object.defineProperty(e, "TextLineSpacingBuiltInControl", { enumerable: !0, get: function() {
252
+ return z.TextLineSpacingBuiltInControl;
253
+ } });
254
+ var h = Ee();
255
+ Object.defineProperty(e, "BlocksPanel", { enumerable: !0, get: function() {
256
+ return h.BlocksPanel;
257
+ } });
258
+ var H = Fe();
259
+ Object.defineProperty(e, "PanelPosition", { enumerable: !0, get: function() {
260
+ return H.PanelPosition;
261
+ } });
262
+ })(t), t);
263
+ }
264
+ export {
265
+ Tr as __require
266
+ };
@@ -1,22 +1,26 @@
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
- }
1
+ import { __exports as i } from "../../../../../_virtual/ModificationDescription.js";
2
+ var r;
3
+ function a() {
4
+ if (r) return i;
5
+ r = 1, Object.defineProperty(i, "__esModule", { value: !0 }), i.ModificationDescription = void 0;
6
+ var e = (
7
+ /** @class */
8
+ (function() {
9
+ function t(o) {
10
+ this.key = o;
11
+ }
12
+ return t.prototype.withParams = function(o) {
13
+ return this.params = o, this;
14
+ }, t.prototype.getValue = function() {
15
+ return {
16
+ key: this.key,
17
+ params: this.params
18
+ };
19
+ }, t;
20
+ })()
21
+ );
22
+ return i.ModificationDescription = e, i;
19
23
  }
20
24
  export {
21
- o as ModificationDescription
25
+ a as __require
22
26
  };
@@ -1,40 +1,22 @@
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
- }
1
+ import { __exports as t } from "../../../../../_virtual/UIElement.js";
2
+ var n;
3
+ function l() {
4
+ if (n) return t;
5
+ n = 1, Object.defineProperty(t, "__esModule", { value: !0 }), t.UIElement = void 0;
6
+ var r = (
7
+ /** @class */
8
+ (function() {
9
+ function e() {
10
+ }
11
+ return e.prototype.onDestroy = function() {
12
+ }, e.prototype.getValue = function() {
13
+ }, e.prototype.setValue = function(o) {
14
+ }, e.prototype.onAttributeUpdated = function(o, u) {
15
+ }, e;
16
+ })()
17
+ );
18
+ return t.UIElement = r, t;
37
19
  }
38
20
  export {
39
- s as UIElement
21
+ l as __require
40
22
  };
@@ -1,5 +1,18 @@
1
- class s {
1
+ import { __exports as e } from "../../../../../_virtual/UIElementTagRegistry.js";
2
+ var r;
3
+ function g() {
4
+ if (r) return e;
5
+ r = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.UIElementTagRegistry = void 0;
6
+ var t = (
7
+ /** @class */
8
+ /* @__PURE__ */ (function() {
9
+ function i() {
10
+ }
11
+ return i;
12
+ })()
13
+ );
14
+ return e.UIElementTagRegistry = t, e;
2
15
  }
3
16
  export {
4
- s as UIElementTagRegistry
17
+ g as __require
5
18
  };
@@ -1,8 +1,3 @@
1
1
  import type { DynamicContent, MergeTag } from '@@/Types/generic';
2
2
  export declare const dynamicContentToMergeTags: (dynamicContentList: DynamicContent[]) => MergeTag[];
3
3
  export declare const getCsrfToken: () => string;
4
- /**
5
- * URL Parameter utilities
6
- */
7
- export declare const getUrlParams: () => URLSearchParams;
8
- export declare const getUrlParam: (paramName: string, defaultValue?: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "1.0.2-beta.91efff4",
3
+ "version": "1.0.2-beta.93e2012",
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": "2.0.2",
34
+ "@stripoinc/ui-editor-extensions": "1.0.6",
35
35
  "@useinsider/design-system-vue": "0.14.8",
36
36
  "@vueuse/core": "11.3.0",
37
37
  "lodash-es": "4.17.21",
@@ -1 +0,0 @@
1
- export declare function migrateCheckbox(html: string): string;
@@ -1,83 +0,0 @@
1
- var x = Object.defineProperty;
2
- var y = (s, t, e) => t in s ? x(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
- var m = (s, t, e) => y(s, typeof t != "symbol" ? t + "" : t, e);
4
- import b from "../../extensions/Blocks/Checkbox/template.js";
5
- class f {
6
- constructor() {
7
- m(this, "parser");
8
- this.parser = new DOMParser();
9
- }
10
- migrate(t) {
11
- try {
12
- const e = this.parser.parseFromString(t, "text/html"), i = e.querySelectorAll("td.checkbox-block");
13
- return i.length === 0 ? t : (i.forEach((r) => {
14
- const n = r.getAttribute("id"), l = this.extractTextFromElement(r, "ins-title"), c = this.extractTextFromElement(r, "ins-description"), a = this.buildTextBlock(l), p = this.buildTextBlock(c), g = b.replace("{-{-TITLE-}-}", a).replace("{-{-DESCRIPTION-}-}", p), o = this.parser.parseFromString(
15
- `<table id="tempDoc"><tbody><tr>${g}</tr></tbody></table>`,
16
- "text/html"
17
- ).querySelector(".checkbox-block-v2");
18
- o && r.parentNode && (o.setAttribute("id", n || ""), r.parentNode.replaceChild(o, r));
19
- }), e.documentElement.outerHTML);
20
- } catch (e) {
21
- return console.error("CheckboxMigrator failed:", e), t;
22
- }
23
- }
24
- extractTextFromElement(t, e) {
25
- var o, u;
26
- const i = t.querySelector(`.${e}`);
27
- if (!i)
28
- return {
29
- text: e === "ins-title" ? "Title" : "Description",
30
- isBold: !1,
31
- isItalic: !1,
32
- align: "left",
33
- styles: ""
34
- };
35
- const r = i.querySelector("p");
36
- if (!r)
37
- return {
38
- text: ((o = i.textContent) == null ? void 0 : o.trim()) || (e === "ins-title" ? "Title" : "Description"),
39
- isBold: !1,
40
- isItalic: !1,
41
- align: i.getAttribute("align") || "left",
42
- styles: ""
43
- };
44
- const n = ((u = r.textContent) == null ? void 0 : u.trim()) || (e === "ins-title" ? "Title" : "Description"), l = r.getAttribute("style") || "", c = i.getAttribute("align") || r.getAttribute("align") || "left", a = /font-weight\s*:\s*bold/i.test(l) || !!r.querySelector("b, strong"), p = /font-style\s*:\s*italic/i.test(l) || !!r.querySelector("i, em"), g = this.removeStyleProperties(l, ["font-weight", "font-style"]), d = this.convertInlineToBlock(g);
45
- return {
46
- text: n,
47
- isBold: a,
48
- isItalic: p,
49
- align: c,
50
- styles: d
51
- };
52
- }
53
- buildTextBlock(t) {
54
- let e = t.text;
55
- t.isBold && t.isItalic ? e = `<strong path="1,0"><em path="1,0,0">${e}</em></strong>` : t.isBold ? e = `<strong path="1,0">${e}</strong>` : t.isItalic && (e = `<em path="1,0">${e}</em>`);
56
- const i = t.align ? ` align="${t.align}"` : "", r = t.styles ? ` style="${t.styles}"` : "";
57
- return `
58
- <td class="esd-block-text" ${i}>
59
- <p path="1" ${r}>
60
- ${e}
61
- </p>
62
- </td>
63
- `;
64
- }
65
- removeStyleProperties(t, e) {
66
- return t ? e.reduce((r, n) => {
67
- const l = new RegExp(`${n}\\s*:\\s*[^;]*;?`, "gi");
68
- return r.replace(l, "");
69
- }, t).replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim() : "";
70
- }
71
- convertInlineToBlock(t) {
72
- if (!t)
73
- return "";
74
- let e = t.replace(/display\s*:\s*inline/gi, "display: block");
75
- return /display\s*:/i.test(e) || (e = e ? `${e}; display: block` : "display: block"), e.replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim();
76
- }
77
- }
78
- function k(s) {
79
- return new f().migrate(s);
80
- }
81
- export {
82
- k as migrateCheckbox
83
- };
@@ -1 +0,0 @@
1
- export declare const migrate: (html: string) => string;
@@ -1,5 +0,0 @@
1
- import { migrateCheckbox as r } from "./checkboxMigrator.js";
2
- const e = (o) => r(o);
3
- export {
4
- e as migrate
5
- };
@@ -1,10 +0,0 @@
1
- import { Block, BlockCompositionType } from '@stripoinc/ui-editor-extensions';
2
- export declare const CHECKBOX_BLOCK_ID = "checkbox-block";
3
- export declare class CheckboxBlock extends Block {
4
- getId(): string;
5
- getIcon(): string;
6
- getBlockCompositionType(): BlockCompositionType;
7
- getName(): string;
8
- getDescription(): string;
9
- getTemplate(): string;
10
- }
@@ -1,39 +0,0 @@
1
- import { Block as t } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js";
2
- import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js";
3
- import { BlockCompositionType as o } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js";
4
- import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js";
5
- import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js";
6
- import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js";
7
- import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js";
8
- import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js";
9
- import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js";
10
- import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js";
11
- import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js";
12
- import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js";
13
- import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js";
14
- import { getDefaultTemplate as r } from "./template.js";
15
- const e = "checkbox-block";
16
- class x extends t {
17
- getId() {
18
- return e;
19
- }
20
- getIcon() {
21
- return "check-circle";
22
- }
23
- getBlockCompositionType() {
24
- return o.BLOCK;
25
- }
26
- getName() {
27
- return this.api.translate("Checkbox block");
28
- }
29
- getDescription() {
30
- return this.api.translate("Checkbox block description");
31
- }
32
- getTemplate() {
33
- return r();
34
- }
35
- }
36
- export {
37
- e as CHECKBOX_BLOCK_ID,
38
- x as CheckboxBlock
39
- };