@useinsider/guido 3.30.0-beta.232ea3c → 3.30.0-beta.25ed52c

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 (46) hide show
  1. package/README.md +52 -0
  2. package/dist/@types/config/schemas.js +40 -33
  3. package/dist/components/Guido.vue.js +8 -8
  4. package/dist/components/Guido.vue2.js +128 -113
  5. package/dist/components/organisms/dynamic-content/DynamicContentAooRuleConfig.vue.js +34 -0
  6. package/dist/components/organisms/dynamic-content/DynamicContentAooRuleConfig.vue2.js +76 -0
  7. package/dist/components/organisms/dynamic-content/DynamicContentCustomFormat.vue.js +21 -0
  8. package/dist/components/organisms/dynamic-content/DynamicContentCustomFormat.vue2.js +33 -0
  9. package/dist/components/organisms/dynamic-content/DynamicContentPicker.vue.js +42 -0
  10. package/dist/components/organisms/dynamic-content/DynamicContentPicker.vue2.js +216 -0
  11. package/dist/composables/useDynamicContentFormat.js +10 -0
  12. package/dist/composables/useDynamicContentPicker.js +36 -0
  13. package/dist/composables/useHtmlCompiler.js +15 -13
  14. package/dist/composables/useInfoBoxPosition.js +16 -0
  15. package/dist/composables/useStripo.js +59 -57
  16. package/dist/config/compiler/liquidCompilerRules.js +13 -5
  17. package/dist/config/migrator/itemsBlockMigrator.js +164 -161
  18. package/dist/enums/dynamic-content.js +180 -2
  19. package/dist/extensions/DynamicContent/dynamic-content.js +56 -33
  20. package/dist/guido.css +1 -1
  21. package/dist/package.json.js +1 -1
  22. package/dist/src/@types/config/schemas.d.ts +16 -0
  23. package/dist/src/@types/generic.d.ts +11 -0
  24. package/dist/src/components/organisms/dynamic-content/DynamicContentAooRuleConfig.vue.d.ts +48 -0
  25. package/dist/src/components/organisms/dynamic-content/DynamicContentCustomFormat.vue.d.ts +44 -0
  26. package/dist/src/components/organisms/dynamic-content/DynamicContentPicker.vue.d.ts +67 -0
  27. package/dist/src/components/wrappers/WpDrawer.vue.d.ts +1 -1
  28. package/dist/src/composables/useConfig.d.ts +6 -0
  29. package/dist/src/composables/useDynamicContentFormat.d.ts +5 -0
  30. package/dist/src/composables/useDynamicContentPicker.d.ts +35 -0
  31. package/dist/src/composables/useInfoBoxPosition.d.ts +24 -0
  32. package/dist/src/enums/dynamic-content.d.ts +21 -0
  33. package/dist/src/extensions/DynamicContent/dynamic-content.d.ts +11 -0
  34. package/dist/src/stores/config.d.ts +63 -0
  35. package/dist/src/utils/clipboardText.d.ts +1 -0
  36. package/dist/src/utils/dynamicContentPicker.d.ts +43 -0
  37. package/dist/src/utils/genericUtil.d.ts +7 -2
  38. package/dist/src/utils/linkTokenPaste.d.ts +3 -0
  39. package/dist/src/utils/liquidLinkQuotes.d.ts +4 -0
  40. package/dist/utils/clipboardText.js +31 -0
  41. package/dist/utils/dynamicContentPicker.js +88 -0
  42. package/dist/utils/genericUtil.js +53 -43
  43. package/dist/utils/linkTokenPaste.js +28 -0
  44. package/dist/utils/liquidLinkQuotes.js +10 -0
  45. package/dist/utils/pairProductVariables.js +98 -108
  46. package/package.json +1 -1
@@ -1,4 +1,182 @@
1
- var n = /* @__PURE__ */ ((d) => (d.Pending = "data-guido-dc-pending", d))(n || {});
1
+ var t = /* @__PURE__ */ ((Y) => (Y.Pending = "data-guido-dc-pending", Y))(t || {}), e = /* @__PURE__ */ ((Y) => (Y.Datetime = "datetime", Y.Number = "number", Y))(e || {}), M = /* @__PURE__ */ ((Y) => (Y.Time = "time-format", Y.Number = "number-format", Y))(M || {});
2
+ const i = "array_of_objects", s = "array-of-objects", r = "dynamic-content.array-of-objects", D = "dynamic-content.array-of-objects-info-text", d = "Order the objects by {key} {order} and return top {limit}.", p = [
3
+ { text: "M/DD/YYYY", value: "M/DD/YYYY", description: "4/11/2023" },
4
+ { text: "MM/DD/YYYY", value: "MM/DD/YYYY", description: "04/11/2023" },
5
+ { text: "MMM/DD/YYYY", value: "MMM/DD/YYYY", description: "Apr/11/2023" },
6
+ { text: "MMMM/DD/YYYY", value: "MMMM/DD/YYYY", description: "April/11/2023" },
7
+ { text: "M/DD/YY", value: "M/DD/YY", description: "4/11/23" },
8
+ { text: "MM/DD/YY", value: "MM/DD/YY", description: "04/11/23" },
9
+ { text: "MMM/DD/YY", value: "MMM/DD/YY", description: "Apr/11/23" },
10
+ { text: "MMMM/DD/YY", value: "MMMM/DD/YY", description: "April/11/23" },
11
+ { text: "DD/M/YYYY", value: "DD/M/YYYY", description: "11/4/2023" },
12
+ { text: "DD/MM/YYYY", value: "DD/MM/YYYY", description: "11/04/2023" },
13
+ { text: "DD/MMM/YYYY", value: "DD/MMM/YYYY", description: "11/Apr/2023" },
14
+ { text: "DD/MMMM/YYYY", value: "DD/MMMM/YYYY", description: "11/April/2023" },
15
+ { text: "DD/M/YY", value: "DD/M/YY", description: "11/4/23" },
16
+ { text: "DD/MM/YY", value: "DD/MM/YY", description: "11/04/23" },
17
+ { text: "DD/MMM/YY", value: "DD/MMM/YY", description: "11/Apr/23" },
18
+ { text: "DD/MMMM/YY", value: "DD/MMMM/YY", description: "11/April/23" },
19
+ { text: "DD-M-YYYY", value: "DD-M-YYYY", description: "11-4-2023" },
20
+ { text: "DD-MM-YYYY", value: "DD-MM-YYYY", description: "11-04-2023" },
21
+ { text: "DD-MMM-YYYY", value: "DD-MMM-YYYY", description: "11-Apr-2023" },
22
+ { text: "DD-MMMM-YYYY", value: "DD-MMMM-YYYY", description: "11-April-2023" },
23
+ { text: "DD-MM-YY", value: "DD-MM-YY", description: "11-04-23" },
24
+ { text: "YYYY-M-DD", value: "YYYY-M-DD", description: "2023-4-11" },
25
+ { text: "YYYY-MM-DD", value: "YYYY-MM-DD", description: "2023-04-11" },
26
+ { text: "YYYY-MMM-DD", value: "YYYY-MMM-DD", description: "2023-Apr-11" },
27
+ { text: "YYYY-MMMM-DD", value: "YYYY-MMMM-DD", description: "2023-April-11" },
28
+ { text: "M/D/YYYY", value: "M/D/YYYY", description: "4/11/2023" },
29
+ { text: "MM/D/YYYY", value: "MM/D/YYYY", description: "04/11/2023" },
30
+ { text: "MMM/D/YYYY", value: "MMM/D/YYYY", description: "Apr/11/2023" },
31
+ { text: "MMMM/D/YYYY", value: "MMMM/D/YYYY", description: "April/11/2023" },
32
+ { text: "M/D/YY", value: "M/D/YY", description: "4/11/23" },
33
+ { text: "MM/D/YY", value: "MM/D/YY", description: "04/11/23" },
34
+ { text: "MMM/D/YY", value: "MMM/D/YY", description: "Apr/11/23" },
35
+ { text: "MMMM/D/YY", value: "MMMM/D/YY", description: "April/11/23" },
36
+ { text: "D/M/YYYY", value: "D/M/YYYY", description: "11/4/2023" },
37
+ { text: "D/MM/YYYY", value: "D/MM/YYYY", description: "11/04/2023" },
38
+ { text: "D/MMM/YYYY", value: "D/MMM/YYYY", description: "11/Apr/2023" },
39
+ { text: "D/MMMM/YYYY", value: "D/MMMM/YYYY", description: "11/April/2023" },
40
+ { text: "D/M/YY", value: "D/M/YY", description: "11/4/23" },
41
+ { text: "D/MM/YY", value: "D/MM/YY", description: "11/04/23" },
42
+ { text: "D/MMM/YY", value: "D/MMM/YY", description: "11/Apr/23" },
43
+ { text: "D/MMMM/YY", value: "D/MMMM/YY", description: "11/April/23" },
44
+ { text: "M-D-YY", value: "M-D-YY", description: "4-11-23" },
45
+ { text: "MM-D-YY", value: "MM-D-YY", description: "04-11-23" },
46
+ { text: "MMM-D-YY", value: "MMM-D-YY", description: "Apr-11-23" },
47
+ { text: "MMMM-D-YY", value: "MMMM-D-YY", description: "April-11-23" },
48
+ { text: "D-M-YYYY", value: "D-M-YYYY", description: "11-4-2023" },
49
+ { text: "D-MM-YYYY", value: "D-MM-YYYY", description: "11-04-2023" },
50
+ { text: "D-MMM-YYYY", value: "D-MMM-YYYY", description: "11-Apr-2023" },
51
+ { text: "D-MMMM-YYYY", value: "D-MMMM-YYYY", description: "11-April-2023" },
52
+ { text: "D-M-YY", value: "D-M-YY", description: "11-4-23" },
53
+ { text: "D-MM-YY", value: "D-MM-YY", description: "11-04-23" },
54
+ { text: "D-MMM-YY", value: "D-MMM-YY", description: "11-Apr-23" },
55
+ { text: "D-MMMM-YY", value: "D-MMMM-YY", description: "11-April-23" },
56
+ { text: "MMM D, YYYY", value: "MMM D, YYYY", description: "Apr 11, 2023" },
57
+ { text: "MMMM D, YYYY", value: "MMMM D, YYYY", description: "April 11, 2023" },
58
+ { text: "YYYY-MM-DD hh:mm:ss", value: "YYYY-MM-DD hh:mm:ss", description: "2023-04-11 03:21:13" },
59
+ { text: "hh:mm:ss", value: "hh:mm:ss", description: "03:21:13" },
60
+ { text: "YYYY-MM-DD hh:mm:ss A", value: "YYYY-MM-DD hh:mm:ss A", description: "2023-04-11 03:21:13 PM" },
61
+ { text: "YYYY-MM-DD hh:mm:ss a", value: "YYYY-MM-DD hh:mm:ss a", description: "2023-04-11 03:21:13 pm" },
62
+ { text: "H:m:s", value: "H:m:s", description: "15:21:13" },
63
+ { text: "H:m:ss", value: "H:m:ss", description: "15:21:13" },
64
+ { text: "HH:m:ss", value: "HH:m:ss", description: "15:21:13" },
65
+ { text: "h:m:s", value: "h:m:s", description: "3:21:13" },
66
+ { text: "h:m:ss", value: "h:m:ss", description: "3:21:13" },
67
+ { text: "hh:m:s", value: "hh:m:s", description: "03:21:13" },
68
+ { text: "hh:m:ss", value: "hh:m:ss", description: "03:21:13" },
69
+ { text: "H:mm:s", value: "H:mm:s", description: "15:21:13" },
70
+ { text: "H:mm:ss", value: "H:mm:ss", description: "15:21:13" },
71
+ { text: "HH:mm:s", value: "HH:mm:s", description: "15:21:13" },
72
+ { text: "HH:mm:ss", value: "HH:mm:ss", description: "15:21:13" },
73
+ { text: "h:mm:s", value: "h:mm:s", description: "3:21:13" },
74
+ { text: "h:mm:ss", value: "h:mm:ss", description: "3:21:13" },
75
+ { text: "hh:mm:s", value: "hh:mm:s", description: "03:21:13" },
76
+ { text: "D MMM", value: "D MMM", description: "11 Apr" },
77
+ { text: "D MMMM", value: "D MMMM", description: "11 April" }
78
+ ], o = [
79
+ { text: "M/DD/YYYY", value: "%-m/%d/%Y", description: "4/11/2023" },
80
+ { text: "MM/DD/YYYY", value: "%m/%d/%Y", description: "04/11/2023" },
81
+ { text: "MMM/DD/YYYY", value: "%b/%d/%Y", description: "Apr/11/2023" },
82
+ { text: "MMMM/DD/YYYY", value: "%B/%d/%Y", description: "April/11/2023" },
83
+ { text: "M/DD/YY", value: "%-m/%d/%y", description: "4/11/23" },
84
+ { text: "MM/DD/YY", value: "%m/%d/%y", description: "04/11/23" },
85
+ { text: "MMM/DD/YY", value: "%b/%d/%y", description: "Apr/11/23" },
86
+ { text: "MMMM/DD/YY", value: "%B/%d/%y", description: "April/11/23" },
87
+ { text: "DD/M/YYYY", value: "%d/%-m/%Y", description: "11/4/2023" },
88
+ { text: "DD/MM/YYYY", value: "%d/%m/%Y", description: "11/04/2023" },
89
+ { text: "DD/MMM/YYYY", value: "%d/%b/%Y", description: "11/Apr/2023" },
90
+ { text: "DD/MMMM/YYYY", value: "%d/%B/%Y", description: "11/April/2023" },
91
+ { text: "DD/M/YY", value: "%d/%-m/%y", description: "11/4/23" },
92
+ { text: "DD/MM/YY", value: "%d/%m/%y", description: "11/04/23" },
93
+ { text: "DD/MMM/YY", value: "%d/%b/%y", description: "11/Apr/23" },
94
+ { text: "DD/MMMM/YY", value: "%d/%B/%y", description: "11/April/23" },
95
+ { text: "DD-M-YYYY", value: "%d-%-m-%Y", description: "11-4-2023" },
96
+ { text: "DD-MM-YYYY", value: "%d-%m-%Y", description: "11-04-2023" },
97
+ { text: "DD-MMM-YYYY", value: "%d-%b-%Y", description: "11-Apr-2023" },
98
+ { text: "DD-MMMM-YYYY", value: "%d-%B-%Y", description: "11-April-2023" },
99
+ { text: "DD-MM-YY", value: "%d-%m-%y", description: "11-04-23" },
100
+ { text: "YYYY-M-DD", value: "%Y-%-m-%d", description: "2023-4-11" },
101
+ { text: "YYYY-MM-DD", value: "%Y-%m-%d", description: "2023-04-11" },
102
+ { text: "YYYY-MMM-DD", value: "%Y-%b-%d", description: "2023-Apr-11" },
103
+ { text: "YYYY-MMMM-DD", value: "%Y-%B-%d", description: "2023-April-11" },
104
+ { text: "M/D/YYYY", value: "%-m/%-d/%Y", description: "4/11/2023" },
105
+ { text: "MM/D/YYYY", value: "%m/%-d/%Y", description: "04/11/2023" },
106
+ { text: "MMM/D/YYYY", value: "%b/%-d/%Y", description: "Apr/11/2023" },
107
+ { text: "MMMM/D/YYYY", value: "%B/%-d/%Y", description: "April/11/2023" },
108
+ { text: "M/D/YY", value: "%-m/%-d/%y", description: "4/11/23" },
109
+ { text: "MM/D/YY", value: "%m/%-d/%y", description: "04/11/23" },
110
+ { text: "MMM/D/YY", value: "%b/%-d/%y", description: "Apr/11/23" },
111
+ { text: "MMMM/D/YY", value: "%B/%-d/%y", description: "April/11/23" },
112
+ { text: "D/M/YYYY", value: "%-d/%-m/%Y", description: "11/4/2023" },
113
+ { text: "D/MM/YYYY", value: "%-d/%m/%Y", description: "11/04/2023" },
114
+ { text: "D/MMM/YYYY", value: "%-d/%b/%Y", description: "11/Apr/2023" },
115
+ { text: "D/MMMM/YYYY", value: "%-d/%B/%Y", description: "11/April/2023" },
116
+ { text: "D/M/YY", value: "%-d/%-m/%y", description: "11/4/23" },
117
+ { text: "D/MM/YY", value: "%-d/%m/%y", description: "11/04/23" },
118
+ { text: "D/MMM/YY", value: "%-d/%b/%y", description: "11/Apr/23" },
119
+ { text: "D/MMMM/YY", value: "%-d/%B/%y", description: "11/April/23" },
120
+ { text: "M-D-YY", value: "%-m-%-d-%y", description: "4-11-23" },
121
+ { text: "MM-D-YY", value: "%m-%-d-%y", description: "04-11-23" },
122
+ { text: "MMM-D-YY", value: "%b-%-d-%y", description: "Apr-11-23" },
123
+ { text: "MMMM-D-YY", value: "%B-%-d-%y", description: "April-11-23" },
124
+ { text: "D-M-YYYY", value: "%-d-%-m-%Y", description: "11-4-2023" },
125
+ { text: "D-MM-YYYY", value: "%-d-%m-%Y", description: "11-04-2023" },
126
+ { text: "D-MMM-YYYY", value: "%-d-%b-%Y", description: "11-Apr-2023" },
127
+ { text: "D-MMMM-YYYY", value: "%-d-%B-%Y", description: "11-April-2023" },
128
+ { text: "D-M-YY", value: "%-d-%-m-%y", description: "11-4-23" },
129
+ { text: "D-MM-YY", value: "%-d-%m-%y", description: "11-04-23" },
130
+ { text: "D-MMM-YY", value: "%-d-%b-%y", description: "11-Apr-23" },
131
+ { text: "D-MMMM-YY", value: "%-d-%B-%y", description: "11-April-23" },
132
+ { text: "MMM D, YYYY", value: "%b %-d, %Y", description: "Apr 11, 2023" },
133
+ { text: "MMMM D, YYYY", value: "%B %-d, %Y", description: "April 11, 2023" },
134
+ { text: "YYYY-MM-DD hh:mm:ss", value: "%Y-%m-%d %I:%M:%S", description: "2023-04-11 03:21:13" },
135
+ { text: "hh:mm:ss", value: "%I:%M:%S", description: "03:21:13" },
136
+ { text: "YYYY-MM-DD hh:mm:ss A", value: "%Y-%m-%d %I:%M:%S %p", description: "2023-04-11 03:21:13 PM" },
137
+ { text: "YYYY-MM-DD hh:mm:ss a", value: "%Y-%m-%d %I:%M:%S %P", description: "2023-04-11 03:21:13 pm" },
138
+ { text: "H:m:s", value: "%-H:%-M:%-S", description: "15:21:13" },
139
+ { text: "H:m:ss", value: "%-H:%-M:%S", description: "15:21:13" },
140
+ { text: "HH:m:ss", value: "%H:%-M:%S", description: "15:21:13" },
141
+ { text: "h:m:s", value: "%-I:%-M:%-S", description: "3:21:13" },
142
+ { text: "h:m:ss", value: "%-I:%-M:%S", description: "3:21:13" },
143
+ { text: "hh:m:s", value: "%I:%-M:%-S", description: "03:21:13" },
144
+ { text: "hh:m:ss", value: "%I:%-M:%S", description: "03:21:13" },
145
+ { text: "H:mm:s", value: "%-H:%M:%-S", description: "15:21:13" },
146
+ { text: "H:mm:ss", value: "%-H:%M:%S", description: "15:21:13" },
147
+ { text: "HH:mm:s", value: "%H:%M:%-S", description: "15:21:13" },
148
+ { text: "HH:mm:ss", value: "%H:%M:%S", description: "15:21:13" },
149
+ { text: "h:mm:s", value: "%-I:%M:%-S", description: "3:21:13" },
150
+ { text: "h:mm:ss", value: "%-I:%M:%S", description: "3:21:13" },
151
+ { text: "hh:mm:s", value: "%I:%M:%-S", description: "03:21:13" },
152
+ { text: "D MMM", value: "%-d %b", description: "11 Apr" },
153
+ { text: "D MMMM", value: "%-d %B", description: "11 April" }
154
+ ], a = [
155
+ { text: "dot,comma", value: "dot,comma", description: "1.234.567.890,00" },
156
+ { text: "comma,dot", value: "comma,dot", description: "1,234,567,890.00" },
157
+ { text: "apostrophe,comma", value: "apostrophe,comma", description: "1'234'567'890,00" },
158
+ { text: "space,dot", value: "space,dot", description: "1 234 567 890.00" },
159
+ { text: "dot,dot", value: "dot,dot", description: "1.234.567.890.00" },
160
+ { text: "apostrophe,dot", value: "apostrophe,dot", description: "1'234'567'890.00" },
161
+ { text: "dot", value: "dot", description: "1.234.567.890.00" },
162
+ { text: "comma", value: "comma", description: "1,234,567,890.00" },
163
+ { text: "apostrophe", value: "apostrophe", description: "1'234'567'890.00" },
164
+ { text: "space", value: "space", description: "1 234 567 890.00" },
165
+ { text: ",comma", value: ",comma", description: "1234567890,00" },
166
+ { text: ",dot", value: ",dot", description: "1234567890.00" },
167
+ { text: ",apostrophe", value: ",apostrophe", description: "1234567890'00" },
168
+ { text: ",space", value: ",space", description: "1234567890 00" }
169
+ ];
2
170
  export {
3
- n as ModuleDynamicContentAttribute
171
+ D as AOO_INFO_TEXT_KEY,
172
+ d as AOO_INFO_TEXT_TEMPLATE,
173
+ s as ARRAY_OF_OBJECTS_CATEGORY_VALUE,
174
+ r as ARRAY_OF_OBJECTS_LABEL_BASE,
175
+ i as ARRAY_OF_OBJECTS_TYPE,
176
+ e as DynamicContentAttributeType,
177
+ M as DynamicContentCustomFormat,
178
+ o as LiquidTimeFormats,
179
+ t as ModuleDynamicContentAttribute,
180
+ a as NumberFormats,
181
+ p as PongoTimeFormats
4
182
  };
@@ -1,37 +1,40 @@
1
1
  var c = Object.defineProperty;
2
- var g = (o, s, t) => s in o ? c(o, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[s] = t;
3
- var r = (o, s, t) => g(o, typeof s != "symbol" ? s + "" : s, t);
4
- import { useConfig as d } from "../../composables/useConfig.js";
5
- import { findEditorShadowRoot as m } from "../../utils/editorShadowRoot.js";
6
- import { mergeTagToDynamicContent as u, dynamicContentToMergeTags as h } from "../../utils/genericUtil.js";
7
- import { UIElement as T, UIElementType as a, UEAttr as y, UIElementTagRegistry as C } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
8
- import { ExternalMergeTagsLibrary as E } from "./dynamic-content-modal.js";
9
- const l = "external-dynamic-content-ui-element", L = "button-add-dynamic-content";
10
- class B extends C {
11
- registerUiElements(s) {
12
- s[a.MERGETAGS] = l;
2
+ var d = (o, r, t) => r in o ? c(o, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[r] = t;
3
+ var s = (o, r, t) => d(o, typeof r != "symbol" ? r + "" : r, t);
4
+ import { useConfig as g } from "../../composables/useConfig.js";
5
+ import { clipboardHtmlToPlainText as m } from "../../utils/clipboardText.js";
6
+ import { findEditorShadowRoot as u } from "../../utils/editorShadowRoot.js";
7
+ import { mergeTagToDynamicContent as h, dynamicContentToMergeTags as T } from "../../utils/genericUtil.js";
8
+ import { UIElement as p, UIElementType as l, UEAttr as C, UIElementTagRegistry as y } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
9
+ import { ExternalMergeTagsLibrary as L } from "./dynamic-content-modal.js";
10
+ const a = "external-dynamic-content-ui-element", E = "button-add-dynamic-content";
11
+ class v extends y {
12
+ registerUiElements(r) {
13
+ r[l.MERGETAGS] = a;
13
14
  }
14
15
  }
15
- class x extends T {
16
+ class P extends p {
16
17
  constructor() {
17
18
  super(...arguments);
18
- r(this, "mergeTagsButton", null);
19
- r(this, "mergeTagsLibrary", null);
20
- r(this, "clickListener", null);
21
- r(this, "lastClickedElement", null);
22
- r(this, "lastClickedFrame", null);
23
- r(this, "mousedownListener", null);
19
+ s(this, "mergeTagsButton", null);
20
+ s(this, "mergeTagsLibrary", null);
21
+ s(this, "clickListener", null);
22
+ s(this, "lastClickedElement", null);
23
+ s(this, "lastClickedFrame", null);
24
+ s(this, "mousedownListener", null);
25
+ s(this, "clipboardWindow", null);
26
+ s(this, "clipboardListener", (t) => this._writeTokenAsPlainText(t));
24
27
  }
25
28
  getId() {
26
- return l;
29
+ return a;
27
30
  }
28
31
  onRender(t) {
29
32
  var e;
30
- this.mergeTagsButton = t.querySelector("#guido__btn-add-dynamic-content"), this.clickListener = this._onClick.bind(this), (e = this.mergeTagsButton) == null || e.addEventListener("click", this.clickListener), this._setupCoordinateTracking();
33
+ this.mergeTagsButton = t.querySelector("#guido__btn-add-dynamic-content"), this.clickListener = this._onClick.bind(this), (e = this.mergeTagsButton) == null || e.addEventListener("click", this.clickListener), this._setupCoordinateTracking(), this._setupClipboardTracking();
31
34
  }
32
35
  onDestroy() {
33
36
  var t;
34
- this.clickListener && ((t = this.mergeTagsButton) == null || t.removeEventListener("click", this.clickListener)), this._cleanupCoordinateTracking(), this.mergeTagsButton = null, this.clickListener = null, this.lastClickedElement = null, this.lastClickedFrame = null;
37
+ this.clickListener && ((t = this.mergeTagsButton) == null || t.removeEventListener("click", this.clickListener)), this._cleanupCoordinateTracking(), this._cleanupClipboardTracking(), this.mergeTagsButton = null, this.clickListener = null, this.lastClickedElement = null, this.lastClickedFrame = null;
35
38
  }
36
39
  _onClick() {
37
40
  this.openMergeTagLibrary();
@@ -45,7 +48,7 @@ class x extends T {
45
48
  onAttributeUpdated(t, e) {
46
49
  if (t !== "mergeTag" || !(e != null && e.value))
47
50
  return;
48
- const n = u(e), i = this._getLastClickedPosition();
51
+ const n = h(e), i = this._getLastClickedPosition();
49
52
  this.lastClickedElement = null, this.lastClickedFrame = null, this._openDynamicContentLibrary(n, i);
50
53
  }
51
54
  openMergeTagLibrary() {
@@ -57,12 +60,12 @@ class x extends T {
57
60
  * Dispatches event with dynamic content data and position
58
61
  */
59
62
  _openDynamicContentLibrary(t, e) {
60
- this.mergeTagsLibrary || (this.mergeTagsLibrary = new E()), this.mergeTagsLibrary.openMergeTagsLibrary(
63
+ this.mergeTagsLibrary || (this.mergeTagsLibrary = new L()), this.mergeTagsLibrary.openMergeTagsLibrary(
61
64
  t,
62
65
  (n) => {
63
66
  if (n.text && n.value) {
64
- const { isFeatureEnabled: i } = d();
65
- this.api.triggerValueChange(h([n], i("liquidSyntax"))[0]);
67
+ const { isFeatureEnabled: i } = g();
68
+ this.api.triggerValueChange(T([n], i("liquidSyntax"))[0]);
66
69
  } else
67
70
  this.api.triggerValueChange(null);
68
71
  },
@@ -91,12 +94,32 @@ class x extends T {
91
94
  i && (this.lastClickedElement = i, this.lastClickedFrame = t);
92
95
  }, t.contentWindow.document.addEventListener("mousedown", this.mousedownListener));
93
96
  }
97
+ /**
98
+ * Listens on the canvas window so it runs after Stripo's own copy handler
99
+ */
100
+ _setupClipboardTracking() {
101
+ var e;
102
+ this._cleanupClipboardTracking();
103
+ const t = (e = this._getEditorFrame()) == null ? void 0 : e.contentWindow;
104
+ t && (this.clipboardWindow = t, t.addEventListener("copy", this.clipboardListener), t.addEventListener("cut", this.clipboardListener));
105
+ }
106
+ _cleanupClipboardTracking() {
107
+ var t, e;
108
+ (t = this.clipboardWindow) == null || t.removeEventListener("copy", this.clipboardListener), (e = this.clipboardWindow) == null || e.removeEventListener("cut", this.clipboardListener), this.clipboardWindow = null;
109
+ }
110
+ /**
111
+ * Link and image fields paste the plain flavour, where Stripo puts the chip label
112
+ */
113
+ _writeTokenAsPlainText({ clipboardData: t }) {
114
+ const e = m((t == null ? void 0 : t.getData("text/html")) ?? "");
115
+ e !== null && (t == null || t.setData("text/plain", e));
116
+ }
94
117
  /**
95
118
  * Gets the editor iframe element
96
119
  */
97
120
  _getEditorFrame() {
98
121
  var e, n;
99
- const t = (e = m()) == null ? void 0 : e.querySelector("iframe");
122
+ const t = (e = u()) == null ? void 0 : e.querySelector("iframe");
100
123
  return (n = t == null ? void 0 : t.contentWindow) != null && n.document ? t : null;
101
124
  }
102
125
  /**
@@ -142,18 +165,18 @@ class x extends T {
142
165
  getTemplate() {
143
166
  return `
144
167
  <div>
145
- <${a.BUTTON}
168
+ <${l.BUTTON}
146
169
  id="guido__btn-add-dynamic-content"
147
170
  class="btn btn-primary"
148
- ${y.BUTTON.name}="${L}">
149
- <${a.ICON} src="plus" class="icon icon-button color-primary">
150
- </${a.ICON}>
171
+ ${C.BUTTON.name}="${E}">
172
+ <${l.ICON} src="plus" class="icon icon-button color-primary">
173
+ </${l.ICON}>
151
174
  ${this.api.translate("Add Dynamic Content")}
152
- </${a.BUTTON}>
175
+ </${l.BUTTON}>
153
176
  </div>`;
154
177
  }
155
178
  }
156
179
  export {
157
- B as DynamicContentTagRegistry,
158
- x as DynamicContentUiElementExtension
180
+ v as DynamicContentTagRegistry,
181
+ P as DynamicContentUiElementExtension
159
182
  };
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-bdb3b37a]{z-index:20;width:222px}.editor-actions[data-v-9a028d08]{gap:16px}.editor-actions__divider[data-v-9a028d08]{width:1px;height:40px;background-color:#e1e1e1}.right-slot[data-v-77451c9a]{gap:16px}.header-wrapper[data-v-3c713746]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-0c5f11a1]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-0c5f11a1]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-0c5f11a1]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.guido-tab-bar-onboarding[data-v-219b4f7c]{z-index:21}[data-v-fcba7e99] .vueperslides__bullets{pointer-events:none!important}[data-v-fcba7e99] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-1a34025a] .vueperslides__bullets{pointer-events:none!important}[data-v-1a34025a] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-8fc96a58] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.guido-display-condition-create__separator[data-v-929822bc]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,currentColor 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__methods[data-v-929822bc]{gap:16px}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__footer{justify-content:flex-start}.guido-display-condition-select__delete-modal[data-v-0d740001]{position:relative;z-index:145}.guido-display-condition-select__delete-modal[data-v-0d740001] .in-modal-v2-wrapper__header-title{margin-bottom:0}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__content>div{display:flex;flex-direction:column;min-height:100%}.guido-display-condition-select__list[data-v-0d740001]{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}.guido-display-condition-card__header[data-v-0d740001]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px}.guido-display-condition-card__text[data-v-0d740001]{min-width:0}.guido-display-condition-card__name[data-v-0d740001],.guido-display-condition-card__description[data-v-0d740001]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__actions[data-v-0d740001]{display:flex;flex-shrink:0;align-items:center;gap:16px}.guido-display-condition-card__split[data-v-0d740001]{position:relative;display:flex;gap:1px}.guido-display-condition-card__menu[data-v-0d740001]{z-index:2;min-width:115px}.guido-display-condition-card__divider[data-v-0d740001]{width:1px;height:24px}.guido-display-condition-card__code[data-v-0d740001]{margin:1px 15px 15px;padding:8px;font-family:inherit;white-space:pre-wrap;word-break:break-word}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}.ambiguous-dynamic-content-modal__content[data-v-2643213c]{padding-bottom:150px}
1
+ @charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}[data-v-6073170a] .in-select{max-width:100%}.dynamic-content-layer[data-v-687d286f]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:144;outline:none}.dynamic-content-layer__box[data-v-687d286f]{position:absolute;width:321px;transition:none}.dynamic-content-layer__card[data-v-687d286f]{width:100%}.dynamic-content-layer__box--scrollable .dynamic-content-layer__card[data-v-687d286f]{max-height:calc(100vh - 16px);overflow-y:auto;overscroll-behavior:contain}[data-v-687d286f] .in-select{max-width:100%}[data-v-687d286f] .in-basic-text-input-wrapper{width:100%}[data-v-687d286f] #tooltip-dynamic-content-fallback-input{margin-left:5px}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-bdb3b37a]{z-index:20;width:222px}.editor-actions[data-v-9a028d08]{gap:16px}.editor-actions__divider[data-v-9a028d08]{width:1px;height:40px;background-color:#e1e1e1}.right-slot[data-v-77451c9a]{gap:16px}.header-wrapper[data-v-3c713746]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-a737f14a]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-a737f14a]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-a737f14a]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.guido-tab-bar-onboarding[data-v-219b4f7c]{z-index:21}[data-v-fcba7e99] .vueperslides__bullets{pointer-events:none!important}[data-v-fcba7e99] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-1a34025a] .vueperslides__bullets{pointer-events:none!important}[data-v-1a34025a] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-8fc96a58] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.guido-display-condition-create__separator[data-v-929822bc]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,currentColor 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__methods[data-v-929822bc]{gap:16px}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__footer{justify-content:flex-start}.guido-display-condition-select__delete-modal[data-v-0d740001]{position:relative;z-index:145}.guido-display-condition-select__delete-modal[data-v-0d740001] .in-modal-v2-wrapper__header-title{margin-bottom:0}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__content>div{display:flex;flex-direction:column;min-height:100%}.guido-display-condition-select__list[data-v-0d740001]{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}.guido-display-condition-card__header[data-v-0d740001]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px}.guido-display-condition-card__text[data-v-0d740001]{min-width:0}.guido-display-condition-card__name[data-v-0d740001],.guido-display-condition-card__description[data-v-0d740001]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__actions[data-v-0d740001]{display:flex;flex-shrink:0;align-items:center;gap:16px}.guido-display-condition-card__split[data-v-0d740001]{position:relative;display:flex;gap:1px}.guido-display-condition-card__menu[data-v-0d740001]{z-index:2;min-width:115px}.guido-display-condition-card__divider[data-v-0d740001]{width:1px;height:24px}.guido-display-condition-card__code[data-v-0d740001]{margin:1px 15px 15px;padding:8px;font-family:inherit;white-space:pre-wrap;word-break:break-word}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}.ambiguous-dynamic-content-modal__content[data-v-2643213c]{padding-bottom:150px}
@@ -1,4 +1,4 @@
1
- const o = "3.30.0-beta.232ea3c", s = { stripo: { version: "2.87.0" } }, e = {
1
+ const o = "3.30.0-beta.25ed52c", s = { stripo: { version: "2.87.0" } }, e = {
2
2
  version: o,
3
3
  guido: s
4
4
  };
@@ -350,6 +350,8 @@ export declare const EmailHeaderSchema: v.ObjectSchema<{
350
350
  readonly senderName: v.OptionalSchema<v.StringSchema<undefined>, "">;
351
351
  /** Email subject line */
352
352
  readonly subject: v.OptionalSchema<v.StringSchema<undefined>, "">;
353
+ /** Email preheader text */
354
+ readonly preheader: v.OptionalSchema<v.StringSchema<undefined>, "">;
353
355
  }, undefined>;
354
356
  /**
355
357
  * Editor configuration - core editor settings
@@ -367,9 +369,12 @@ export declare const EditorSchema: v.ObjectSchema<{
367
369
  readonly senderName: v.OptionalSchema<v.StringSchema<undefined>, "">;
368
370
  /** Email subject line */
369
371
  readonly subject: v.OptionalSchema<v.StringSchema<undefined>, "">;
372
+ /** Email preheader text */
373
+ readonly preheader: v.OptionalSchema<v.StringSchema<undefined>, "">;
370
374
  }, undefined>, {
371
375
  readonly senderName: "";
372
376
  readonly subject: "";
377
+ readonly preheader: "";
373
378
  }>;
374
379
  /** Folder name for user-saved modules (used by Stripo plugin panel for path construction) */
375
380
  readonly savedModulesFolderName: v.OptionalSchema<v.StringSchema<undefined>, "savedModules">;
@@ -417,6 +422,10 @@ export declare const FeaturesSchema: v.ObjectSchema<{
417
422
  /** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
418
423
  readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
419
424
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
425
+ /** List the dynamic-content catalogue as Stripo special links in the link type selector */
426
+ readonly dynamicContentSpecialLinks: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
427
+ /** Open Guido's own Text Block dynamic content picker instead of emitting `dynamic-content:open` */
428
+ readonly dynamicContentPicker: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
420
429
  /** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
421
430
  readonly legacyUnsubscribeConversion: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
422
431
  /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
@@ -798,9 +807,12 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
798
807
  readonly senderName: v.OptionalSchema<v.StringSchema<undefined>, "">;
799
808
  /** Email subject line */
800
809
  readonly subject: v.OptionalSchema<v.StringSchema<undefined>, "">;
810
+ /** Email preheader text */
811
+ readonly preheader: v.OptionalSchema<v.StringSchema<undefined>, "">;
801
812
  }, undefined>, {
802
813
  readonly senderName: "";
803
814
  readonly subject: "";
815
+ readonly preheader: "";
804
816
  }>;
805
817
  /** Folder name for user-saved modules (used by Stripo plugin panel for path construction) */
806
818
  readonly savedModulesFolderName: v.OptionalSchema<v.StringSchema<undefined>, "savedModules">;
@@ -844,6 +856,10 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
844
856
  /** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
845
857
  readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
846
858
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
859
+ /** List the dynamic-content catalogue as Stripo special links in the link type selector */
860
+ readonly dynamicContentSpecialLinks: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
861
+ /** Open Guido's own Text Block dynamic content picker instead of emitting `dynamic-content:open` */
862
+ readonly dynamicContentPicker: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
847
863
  /** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
848
864
  readonly legacyUnsubscribeConversion: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
849
865
  /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
@@ -22,8 +22,11 @@ export type DynamicContentNode = {
22
22
  text?: string;
23
23
  tag_text?: string;
24
24
  value?: string;
25
+ description?: string;
26
+ type?: string;
25
27
  children?: DynamicContentNode[];
26
28
  select_items?: DynamicContentNode[];
29
+ columns?: DynamicContentNode[];
27
30
  };
28
31
  /**
29
32
  * Partner-keyed dynamic-content list. Architect is multi-partner, so the map is
@@ -44,6 +47,14 @@ export type MergeTag = BaseDynamicContent & {
44
47
  selEnd?: number;
45
48
  hidden?: boolean;
46
49
  };
50
+ export type SpecialLinkGroup = {
51
+ category: string;
52
+ entries: {
53
+ label: string;
54
+ value: string;
55
+ hidden?: boolean;
56
+ }[];
57
+ };
47
58
  export type PositionData = {
48
59
  x: number;
49
60
  y: number;
@@ -0,0 +1,48 @@
1
+ import type { PickerInitialData, PickerOption } from '@@/Utils/dynamicContentPicker';
2
+ type __VLS_Props = {
3
+ categories?: PickerOption[];
4
+ usedPatterns?: string[];
5
+ initialValue?: PickerInitialData | null;
6
+ validationActive?: boolean;
7
+ };
8
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
9
+ categories: () => never[];
10
+ usedPatterns: () => never[];
11
+ initialValue: null;
12
+ validationActive: boolean;
13
+ }>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
14
+ openList: (id: string, isOpen: boolean) => void;
15
+ select: (payload: {
16
+ leaf: PickerOption;
17
+ rule: PickerOption;
18
+ }) => void;
19
+ clear: () => void;
20
+ }, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
21
+ categories: () => never[];
22
+ usedPatterns: () => never[];
23
+ initialValue: null;
24
+ validationActive: boolean;
25
+ }>>>, {
26
+ categories: PickerOption[];
27
+ usedPatterns: string[];
28
+ initialValue: PickerInitialData | null;
29
+ validationActive: boolean;
30
+ }>;
31
+ export default _default;
32
+ type __VLS_WithDefaults<P, D> = {
33
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
34
+ default: D[K];
35
+ }> : P[K];
36
+ };
37
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
+ type __VLS_TypePropsToOption<T> = {
39
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
40
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
41
+ } : {
42
+ type: import('vue').PropType<T[K]>;
43
+ required: true;
44
+ };
45
+ };
46
+ type __VLS_PrettifyLocal<T> = {
47
+ [K in keyof T]: T[K];
48
+ } & {};
@@ -0,0 +1,44 @@
1
+ import type { DynamicContentFormatOption } from '@@/Enums/dynamic-content';
2
+ type __VLS_Props = {
3
+ checkboxLabelText: string;
4
+ selectLabelText: string;
5
+ selectPlaceholderText: string;
6
+ formatType: string;
7
+ formatOptions?: DynamicContentFormatOption[];
8
+ };
9
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
10
+ formatOptions: () => never[];
11
+ }>, {
12
+ resetState: () => void;
13
+ setFormat: (format: DynamicContentFormatOption) => void;
14
+ validate: () => boolean;
15
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
16
+ openList: (id: string, isOpen: boolean) => void;
17
+ select: (format: {
18
+ key: string;
19
+ value: string;
20
+ }) => void;
21
+ updateStatus: (isEnabled: boolean) => void;
22
+ }, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
23
+ formatOptions: () => never[];
24
+ }>>>, {
25
+ formatOptions: DynamicContentFormatOption[];
26
+ }>;
27
+ export default _default;
28
+ type __VLS_WithDefaults<P, D> = {
29
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
30
+ default: D[K];
31
+ }> : P[K];
32
+ };
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToOption<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
42
+ type __VLS_PrettifyLocal<T> = {
43
+ [K in keyof T]: T[K];
44
+ } & {};
@@ -0,0 +1,67 @@
1
+ import type { InfoBoxAnchor } from '@@/Composables/useInfoBoxPosition';
2
+ import type { PickerInitialData, PickerOption } from '@@/Utils/dynamicContentPicker';
3
+ type __VLS_Props = {
4
+ visible: boolean;
5
+ dynamicContentOptions?: PickerOption[];
6
+ aooOptions?: PickerOption[];
7
+ aooScanContent?: string;
8
+ initialData?: PickerInitialData | null;
9
+ position?: InfoBoxAnchor;
10
+ };
11
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
12
+ dynamicContentOptions: () => never[];
13
+ aooOptions: () => never[];
14
+ aooScanContent: string;
15
+ initialData: null;
16
+ position: () => {};
17
+ }>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
18
+ close: () => void;
19
+ addDynamicContent: (payload: import("../../../library").DynamicContentNode & {
20
+ [key: string]: unknown;
21
+ categoryText?: string;
22
+ description?: string;
23
+ bindingLabel?: string;
24
+ columns?: PickerOption[];
25
+ rules?: Record<string, string | number>;
26
+ filtersDescription?: Record<string, string>[];
27
+ disable?: boolean;
28
+ infoBoxProps?: Record<string, string>;
29
+ children?: PickerOption[];
30
+ select_items?: PickerOption[];
31
+ } & PickerInitialData) => void;
32
+ }, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
33
+ dynamicContentOptions: () => never[];
34
+ aooOptions: () => never[];
35
+ aooScanContent: string;
36
+ initialData: null;
37
+ position: () => {};
38
+ }>>>, {
39
+ initialData: PickerInitialData | null;
40
+ position: {
41
+ x?: number;
42
+ y?: number;
43
+ width?: number;
44
+ height?: number;
45
+ } | null;
46
+ dynamicContentOptions: PickerOption[];
47
+ aooOptions: PickerOption[];
48
+ aooScanContent: string;
49
+ }>;
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_PrettifyLocal<T> = {
66
+ [K in keyof T]: T[K];
67
+ } & {};