@useinsider/guido 1.0.0-beta.6ebce36 → 1.0.0-beta.6ecc044

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 (61) hide show
  1. package/README.md +1 -191
  2. package/dist/@types/generic.d.ts +0 -3
  3. package/dist/components/Guido.vue.js +8 -8
  4. package/dist/components/Guido.vue2.js +26 -22
  5. package/dist/components/organisms/base/ModalWrapper.vue.d.ts +72 -0
  6. package/dist/components/organisms/base/ModalWrapper.vue.js +19 -0
  7. package/dist/components/organisms/base/ModalWrapper.vue2.js +43 -0
  8. package/dist/components/organisms/header/LeftSlot.vue.d.ts +1 -1
  9. package/dist/components/organisms/header/LeftSlot.vue.js +8 -8
  10. package/dist/components/organisms/header/LeftSlot.vue2.js +3 -5
  11. package/dist/components/organisms/header/MiddleSlot.vue.js +7 -7
  12. package/dist/components/organisms/header/MiddleSlot.vue2.js +4 -6
  13. package/dist/components/organisms/header/RightSlot.vue.d.ts +1 -1
  14. package/dist/components/organisms/header/RightSlot.vue.js +10 -7
  15. package/dist/components/organisms/header/RightSlot.vue2.js +19 -14
  16. package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +1 -13
  17. package/dist/components/organisms/header/version-history/VersionHistory.vue.js +7 -7
  18. package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +10 -13
  19. package/dist/components/organisms/save-template/SaveTemplateModal.vue.d.ts +20 -0
  20. package/dist/components/organisms/save-template/SaveTemplateModal.vue.js +19 -0
  21. package/dist/components/organisms/save-template/SaveTemplateModal.vue2.js +66 -0
  22. package/dist/composables/useCustomInterfaceAppearance.js +9 -45
  23. package/dist/composables/useExport.d.ts +1 -1
  24. package/dist/composables/useExport.js +20 -35
  25. package/dist/composables/useStripo.js +8 -13
  26. package/dist/composables/useTemplateValidation.d.ts +13 -0
  27. package/dist/composables/useTemplateValidation.js +57 -0
  28. package/dist/guido.css +1 -1
  29. package/dist/mock/api/template-library.d.ts +2 -0
  30. package/dist/static/editor.css.js +232 -0
  31. package/dist/stores/editor.d.ts +1 -0
  32. package/dist/stores/editor.js +2 -1
  33. package/package.json +1 -1
  34. package/dist/components/organisms/header/version-history/RestoreButton.vue.d.ts +0 -2
  35. package/dist/components/organisms/header/version-history/RestoreButton.vue.js +0 -19
  36. package/dist/components/organisms/header/version-history/RestoreButton.vue2.js +0 -14
  37. package/dist/composables/useHtmlCompiler.d.ts +0 -4
  38. package/dist/composables/useHtmlCompiler.js +0 -16
  39. package/dist/config/compiler/htmlCompilerRules.d.ts +0 -2
  40. package/dist/config/compiler/htmlCompilerRules.js +0 -145
  41. package/dist/config/compiler/outlookCompilerRules.d.ts +0 -0
  42. package/dist/enums/displayConditions.d.ts +0 -2
  43. package/dist/enums/displayConditions.js +0 -80
  44. package/dist/static/styles/base.css.js +0 -11
  45. package/dist/static/styles/components/alert-message.css.js +0 -39
  46. package/dist/static/styles/components/amp-block.css.js +0 -18
  47. package/dist/static/styles/components/base-input.css.js +0 -47
  48. package/dist/static/styles/components/button-group.css.js +0 -54
  49. package/dist/static/styles/components/button.css.js +0 -106
  50. package/dist/static/styles/components/combobox.css.js +0 -49
  51. package/dist/static/styles/components/counter.css.js +0 -42
  52. package/dist/static/styles/components/dropdown-menu.css.js +0 -52
  53. package/dist/static/styles/components/narrow-panel.css.js +0 -38
  54. package/dist/static/styles/components/switcher.css.js +0 -11
  55. package/dist/static/styles/components/tabs.css.js +0 -97
  56. package/dist/static/styles/components/tools.css.js +0 -23
  57. package/dist/static/styles/components/version-history.css.js +0 -30
  58. package/dist/static/styles/components/wide-panel.css.js +0 -135
  59. package/dist/static/styles/variables.css.js +0 -23
  60. package/dist/utils/htmlCompiler.d.ts +0 -12
  61. package/dist/utils/htmlCompiler.js +0 -70
@@ -0,0 +1,232 @@
1
+ const n = `:host {
2
+ --guido-color-white: #FFFFFF;
3
+ --guido-color-primary-500: #0A2ECC;
4
+ --guido-color-primary-100: #DAE1FB;
5
+ --guido-color-gray-800: #292929;
6
+ --guido-color-gray-300: #E1E1E1;
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 #dcdfe6;
25
+ box-shadow: 0 0 0 0 var(--guido-color-gray-300),0 15px 35px -5px rgba(0, 0, 0, .1),0 8px 10px -6px rgba(0, 0, 0, .1);
26
+ }
27
+
28
+ .container {
29
+ padding: 16px;
30
+ }
31
+
32
+ .container.parent-container>.container {
33
+ padding: 0 16px;
34
+ }
35
+
36
+ /** SEGMENT BUTTON */
37
+ ue-switcher input {
38
+ border-radius: 26px;
39
+ }
40
+
41
+ ue-switcher input:before {
42
+ border-radius: 22px;
43
+ }
44
+
45
+ .tabs-header {
46
+ padding: 0;
47
+ column-gap: 0;
48
+ background-color: transparent;
49
+ }
50
+
51
+ .tabs-header button {
52
+ background-color: #f7f9fa;
53
+ outline: none;
54
+ padding: 8px 16px;
55
+ border: 1px solid #dcdee6;
56
+ height: 42px;
57
+ }
58
+
59
+ .tabs-header button ue-icon-component.icon-button {
60
+ color: var(--guido-color-gray-800);
61
+ }
62
+
63
+ .tabs-header button:not(:last-child),
64
+ .tabs-header button:not(:first-child) {
65
+ border-radius: 0;
66
+ }
67
+
68
+ .tabs-header button:first-child {
69
+ border-radius: 4px 0 0 4px;
70
+ }
71
+
72
+ .tabs-header button:last-child {
73
+ border-radius: 0 4px 4px 0;
74
+ }
75
+
76
+ .tabs-header button.checked {
77
+ background-color: var(--guido-color-primary-100);
78
+ color: var(--guido-color-primary-500);
79
+ border-color: var(--guido-color-primary-500);
80
+ }
81
+
82
+ .tabs-header button.checked ue-icon-component.icon-button {
83
+ color: var(--guido-color-primary-500);
84
+ }
85
+ /** SEGMENT BUTTON */
86
+
87
+ /** BUTTON */
88
+ .button:not(:disabled,.disabled):active {
89
+ transform: none !important;
90
+ }
91
+ /** BUTTON */
92
+
93
+ /** BUTTON GROUP */
94
+ .button-group {
95
+ padding: 0;
96
+ column-gap: 0;
97
+ border-radius: 0;
98
+ background-color: transparent;
99
+ }
100
+
101
+ .button-group .button {
102
+ background-color: #f7f9fa;
103
+ outline: none;
104
+ padding: 8px 12px;
105
+ border: 1px solid #dcdee6;
106
+ box-shadow: none;
107
+ height: 42px;
108
+ }
109
+
110
+ .button-group .button ue-icon-component.icon-button {
111
+ color: var(--guido-color-gray-800);
112
+ }
113
+
114
+ .button-group > div:first-of-type .button {
115
+ border-radius: 4px 0 0 4px;
116
+ }
117
+
118
+ .button-group > *:last-child .button {
119
+ border-radius: 0 4px 4px 0;
120
+ }
121
+
122
+ ue-check-buttons input:checked + .button,
123
+ ue-radio-buttons input:checked + .button {
124
+ background-color: var(--guido-color-primary-100);
125
+ color: var(--guido-color-primary-500);
126
+ border-color: var(--guido-color-primary-500);
127
+ }
128
+
129
+ ue-check-buttons input:checked + .button ue-icon-component.icon-button,
130
+ ue-radio-buttons input:checked + .button ue-icon-component.icon-button {
131
+ color: var(--guido-color-primary-500);
132
+ }
133
+ /** BUTTON GROUP */
134
+
135
+ /** COMBOBOX */
136
+ .control-shadow-wrapper:has(.button[role="combobox"]) {
137
+ border-radius: 0;
138
+ padding: 0;
139
+ background: transparent;
140
+ }
141
+
142
+ .button[role="combobox"] {
143
+ background-color: #f9f9f9;
144
+ border: 1px solid var(--guido-color-gray-300);
145
+ border-radius: 4px;
146
+ box-shadow: none;
147
+ min-height: 42px;
148
+ padding: 8px;
149
+ color: var(--guido-color-gray-800);
150
+ text-align: left;
151
+ outline: none;
152
+ white-space: nowrap;
153
+ text-overflow: ellipsis;
154
+ overflow: hidden;
155
+ }
156
+
157
+ .button[role="combobox"].on {
158
+ background-color: #f9f9f9;
159
+ border-color: var(--guido-color-primary-500);
160
+ box-shadow: 0 0 0 3px #b5c1f1 !important;
161
+ }
162
+ /** COMBOBOX */
163
+
164
+ /** BASE INPUT */
165
+ .base-input {
166
+ border: 1px solid var(--guido-color-gray-300);
167
+ border-radius: 4px;
168
+ background-color: #f9f9f9;
169
+ align-items: center;
170
+ height: 40px;
171
+ max-height: 40px;
172
+ box-sizing: content-box;
173
+ outline: none;
174
+ resize: vertical;
175
+ padding: 8px;
176
+ transition: none !important;
177
+ color: var(--guido-color-gray-800);
178
+ box-shadow: none !important;
179
+ box-sizing: border-box !important;
180
+ }
181
+
182
+ .base-input:hover:not(:disabled) {
183
+ background-color: #f9f9f9;
184
+ border-color: #7a92f2;
185
+ }
186
+
187
+ .base-input:focus:not(:disabled) {
188
+ background-color: #f9f9f9;
189
+ border-color: #0a2ecc;
190
+ box-shadow: 0 0 0 3px #b5c1f1 !important;
191
+ }
192
+ /** BASE INPUT */
193
+
194
+ /** COUNTER */
195
+ ue-counter {
196
+ padding: 0 !important;
197
+ background-color: var(--guido-color-white) !important;
198
+ border: 1px solid var(--guido-color-gray-300);
199
+ }
200
+
201
+ ue-counter .button {
202
+ width: 40px;
203
+ height: 40px;
204
+ box-shadow: none;
205
+ }
206
+
207
+ ue-counter .button .icon-button {
208
+ color: var(--guido-color-primary-500);
209
+ }
210
+
211
+ ue-counter ue-button:first-child .button {
212
+ border-right: 1px solid var(--guido-color-gray-300);
213
+ }
214
+
215
+ ue-counter ue-button:last-child .button {
216
+ border-left: 1px solid var(--guido-color-gray-300);
217
+ }
218
+ /** COUNTER */
219
+
220
+ /** COLOR */
221
+ ue-color {
222
+ width: 80px;
223
+ }
224
+
225
+ ue-color .base-input {
226
+ width: 100%;
227
+ }
228
+ /** COLOR */
229
+ `;
230
+ export {
231
+ n as default
232
+ };
@@ -2,4 +2,5 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
2
2
  isCodeEditorOpen: boolean;
3
3
  isVersionHistoryOpen: boolean;
4
4
  editorVisualMode: string;
5
+ isSaveTemplateModalOpen: boolean;
5
6
  }, {}, {}>;
@@ -3,7 +3,8 @@ const t = e("editor", {
3
3
  state: () => ({
4
4
  isCodeEditorOpen: !1,
5
5
  isVersionHistoryOpen: !1,
6
- editorVisualMode: "desktop"
6
+ editorVisualMode: "desktop",
7
+ isSaveTemplateModalOpen: !1
7
8
  })
8
9
  });
9
10
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "1.0.0-beta.6ebce36",
3
+ "version": "1.0.0-beta.6ecc044",
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",
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;
@@ -1,19 +0,0 @@
1
- import n from "./RestoreButton.vue2.js";
2
- import o from "../../../../_virtual/_plugin-vue2_normalizer.js";
3
- var s = function() {
4
- var e = this, r = e._self._c, t = e._self._setupProxy;
5
- return r(t.InButtonV2, { attrs: { id: "guido__restore-button", "label-text": "Restore", type: "subtle-primary" }, on: { click: function(a) {
6
- return t.restoreVersion(t.versionHistoryStore.currentPatch.id);
7
- } } });
8
- }, _ = [], i = /* @__PURE__ */ o(
9
- n,
10
- s,
11
- _,
12
- !1,
13
- null,
14
- null
15
- );
16
- const f = i.exports;
17
- export {
18
- f as default
19
- };
@@ -1,14 +0,0 @@
1
- import { defineComponent as t } from "vue";
2
- import { useVersionHistoryApi as e } from "../../../../composables/useVersionHistoryApi.js";
3
- import { useVersionHistoryStore as s } from "../../../../stores/version-history.js";
4
- import { InButtonV2 as n } from "@useinsider/design-system-vue";
5
- const _ = /* @__PURE__ */ t({
6
- __name: "RestoreButton",
7
- setup(i) {
8
- const { restoreVersion: o } = e(), r = s();
9
- return { __sfc: !0, restoreVersion: o, versionHistoryStore: r, InButtonV2: n };
10
- }
11
- });
12
- export {
13
- _ as default
14
- };
@@ -1,4 +0,0 @@
1
- import type { CompilationResult } from '@@/Types/html-compiler';
2
- export declare const useHtmlCompiler: () => {
3
- compileHtml: (html: string) => CompilationResult;
4
- };
@@ -1,16 +0,0 @@
1
- import { defaultHtmlCompilerRules as r } from "../config/compiler/htmlCompilerRules.js";
2
- import { createHtmlCompiler as p } from "../utils/htmlCompiler.js";
3
- const a = () => {
4
- const e = typeof window < "u" ? window.GuidoConfig : void 0, l = (e == null ? void 0 : e.htmlCompilerRules) || [], t = [
5
- ...!!(e != null && e.ignoreDefaultHtmlCompilerRules) ? [] : r,
6
- ...l.map((o, m) => ({
7
- ...o,
8
- priority: o.priority + 1e3 + m
9
- // Ensure additional rules run after default rules
10
- }))
11
- ], i = p(t);
12
- return { compileHtml: (o) => i.compile(o) };
13
- };
14
- export {
15
- a as useHtmlCompiler
16
- };
@@ -1,2 +0,0 @@
1
- import type { CompilerRule } from '@@/Types/html-compiler';
2
- export declare const defaultHtmlCompilerRules: CompilerRule[];
@@ -1,145 +0,0 @@
1
- const a = [
2
- {
3
- id: "fix-url-encoding-start",
4
- description: "Replace {%22 with %7B%22 to fix URL encoding",
5
- type: "replace",
6
- search: "{%22",
7
- replacement: "%7B%22",
8
- replaceAll: !0,
9
- priority: 10
10
- },
11
- {
12
- id: "fix-url-encoding-end",
13
- description: "Replace %22} with %22%7D to fix URL encoding",
14
- type: "replace",
15
- search: "%22}",
16
- replacement: "%22%7D",
17
- replaceAll: !0,
18
- priority: 10
19
- },
20
- {
21
- id: "fix-tags-start",
22
- description: "Replace %7B%7B with {{ to fix URL encoding",
23
- type: "replace",
24
- search: "%7B%7B",
25
- replacement: "{{",
26
- replaceAll: !0,
27
- priority: 11
28
- },
29
- {
30
- id: "fix-tags-end",
31
- description: "Replace %7D%7D with }} to fix URL encoding",
32
- type: "replace",
33
- search: "%7D%7D",
34
- replacement: "}}",
35
- replaceAll: !0,
36
- priority: 12
37
- },
38
- {
39
- id: "unescape-inequality-operators-start",
40
- description: "Replace &lt; with < to fix URL encoding",
41
- type: "replace",
42
- search: "&lt;",
43
- replacement: "<",
44
- replaceAll: !0,
45
- priority: 13
46
- },
47
- {
48
- id: "unescape-inequality-operators-end",
49
- description: "Replace &gt; with > to fix URL encoding",
50
- type: "replace",
51
- search: "&gt;",
52
- replacement: ">",
53
- replaceAll: !0,
54
- priority: 14
55
- },
56
- {
57
- id: "remove-apty-iframe",
58
- description: "Cleanup Apty Iframe Code",
59
- type: "remove",
60
- targets: [
61
- '<iframe src="about:blank" id="letznav-iframe-script" allowtransparency="true" style="width:1px;height:1px"></iframe>',
62
- 'src="about:blank" id="letznav-iframe-script" allowtransparency="true" style="width:1px;height:1px"></iframe>'
63
- ],
64
- priority: 20
65
- },
66
- {
67
- id: "remove-apty-styles",
68
- description: "Removing Apty Styles",
69
- type: "regex",
70
- pattern: '<styles*data-styles="apty_styles"s* type="text/css"s*>((s|.)*?)</style>',
71
- replacement: "",
72
- flags: "g",
73
- priority: 21
74
- },
75
- {
76
- id: "remove-mso-conditions",
77
- description: "Removing MSO Conditions",
78
- type: "remove",
79
- targets: [
80
- "/<!--[ifs(mso 16)]>s*<styles*S*>s*as*{s*text-decorations*:s*nones*;*s*}s*</style>s*<![endif]-->/g",
81
- "/<!--[ifsgte mso 9]>s*<styles*S*>s*sups*{s*font-sizes*:s*100%s*!importants*;*s*}s*</style>s*<![endif]-->/g",
82
- "/<!--[ifsgte mso 9]>s*<noscript>s*<xml>s*<o:OfficeDocumentSettings>s*<o:AllowPNG>s*</o:AllowPNG>s*<o:PixelsPerInch>d+</o:PixelsPerInch>s*</o:OfficeDocumentSettings>s*</xml>s*</noscript>s*<![endif]-->/g",
83
- '/<!--[if mso]>s*<xml>s*<w:WordDocuments+xmlns:w="urn:schemas-microsoft-com:office:word">s*<w:DontUseAdvancedTypographyReadingMail></w:DontUseAdvancedTypographyReadingMail>s*</w:WordDocument>s*</xml>s*<![endif]-->/g',
84
- "/<!--[if !mso]><!--s*d*s*-->s*<!--[if !mso]><!--s*d*s*-->s*<!--<![endif]-->/g",
85
- "/<!--[ifs!mso]>s*<!-- d -->/g"
86
- ],
87
- priority: 22
88
- },
89
- {
90
- id: "add-mso-conditions",
91
- description: "Adding MSO Conditions",
92
- type: "custom",
93
- processor: (e) => {
94
- const t = [
95
- `<!--[if gte mso 9]>
96
- <style>sup {
97
- font-size: 100% !important;
98
- }</style><![endif]-->`,
99
- `<!--[if gte mso 9]>
100
- <noscript>
101
- <xml>
102
- <o:OfficeDocumentSettings>
103
- <o:AllowPNG></o:AllowPNG>
104
- <o:PixelsPerInch>96</o:PixelsPerInch>
105
- </o:OfficeDocumentSettings>
106
- </xml>
107
- </noscript><![endif]-->`,
108
- `<!--[if mso]>
109
- <xml>
110
- <w:WordDocument xmlns:w="urn:schemas-microsoft-com:office:word">
111
- <w:DontUseAdvancedTypographyReadingMail></w:DontUseAdvancedTypographyReadingMail>
112
- </w:WordDocument>
113
- </xml><![endif]-->`
114
- ], s = /<head>([\S\s]*)<\/head>/, o = new RegExp(s);
115
- if (!e.match(o))
116
- return e;
117
- let i = e;
118
- return t.forEach((r) => {
119
- i = i.replace("</head>", `${r}</head>`);
120
- }), i;
121
- },
122
- priority: 30
123
- },
124
- {
125
- id: "replace-old-image-domain",
126
- description: "Replacing old image domains",
127
- type: "replace",
128
- search: "stripo-editor-image.s3-eu-west-1.amazonaws.com",
129
- replacement: "email-static.useinsider.com",
130
- replaceAll: !0,
131
- priority: 40
132
- },
133
- {
134
- id: "replace-old-v2-image-domain",
135
- description: "Replacing old image domains",
136
- type: "replace",
137
- search: "email.static.useinsider.com",
138
- replacement: "email-static.useinsider.com",
139
- replaceAll: !0,
140
- priority: 41
141
- }
142
- ];
143
- export {
144
- a as defaultHtmlCompilerRules
145
- };
File without changes
@@ -1,2 +0,0 @@
1
- import type { ConditionCategories } from '@@/Types/condition-categories';
2
- export declare const displayConditions: ConditionCategories;
@@ -1,80 +0,0 @@
1
- const e = [
2
- {
3
- category: "Demographics",
4
- conditions: [
5
- {
6
- id: 1,
7
- name: "Language",
8
- description: "Users who are in the English will see the banner",
9
- beforeScript: '{% if language == "en_US" %}',
10
- afterScript: "{% endif %}"
11
- },
12
- {
13
- id: 2,
14
- name: "Country",
15
- description: "Only people who live in Australia will see the banner",
16
- beforeScript: '{% if country == "Australia" %}',
17
- afterScript: "{% endif %}"
18
- },
19
- {
20
- id: 3,
21
- name: "Country & City",
22
- description: "Only people who are located in that country and city",
23
- beforeScript: '{% if country == "United Kingdom" and city == "London" %}',
24
- afterScript: "{% endif %}"
25
- },
26
- {
27
- id: 4,
28
- name: "Age (Less than operator)",
29
- description: "Users whose age is less than 18",
30
- beforeScript: "{% if age < 18 %}",
31
- afterScript: "{% endif %}"
32
- },
33
- {
34
- id: 5,
35
- name: "Age (Equal and greater than operator)",
36
- description: "Users whose age is equal or greater than 25",
37
- beforeScript: "{% if age >= 25 %}",
38
- afterScript: "{% endif %}"
39
- },
40
- {
41
- id: 6,
42
- name: "Age (Greater than & less than operators)",
43
- description: "Users whose age is between 18 and 25",
44
- beforeScript: "{% if age > 18 and age < 25 %}",
45
- afterScript: "{% endif %}"
46
- },
47
- {
48
- id: 7,
49
- name: "Gender",
50
- description: "Users whose gender is Female",
51
- beforeScript: '{% if gender == "Female" %}',
52
- afterScript: "{% endif %}"
53
- },
54
- {
55
- id: 8,
56
- name: "State",
57
- description: "Users whose state is one of the followings. c_state is a custom attribute. Use this condition if you have the attribute with the same naming. ",
58
- beforeScript: '{% if c_state == "VIC" or c_state == "NSW" or c_state == "QLD" %}',
59
- afterScript: "{% endif %}"
60
- },
61
- {
62
- id: 9,
63
- name: "VIP User",
64
- description: "Users who are VIP users for that brand. c_is_vip_user = true. c_is_vip_user is a custom attribute. Use this condition if you have the attribute with the same naming.",
65
- beforeScript: "{% if c_is_vip_user %}",
66
- afterScript: "{% endif %}"
67
- },
68
- {
69
- id: 10,
70
- name: "Membership Type",
71
- description: "Users who belong to gold or silver membership type. c_is_gold_member = true, c_is_silver_member = true. These are custom attributes. Use this condition if you have the attribute with the same naming.",
72
- beforeScript: "{% if c_is_gold_member or c_is_silver_member %}",
73
- afterScript: "{% endif %}"
74
- }
75
- ]
76
- }
77
- ];
78
- export {
79
- e as displayConditions
80
- };
@@ -1,11 +0,0 @@
1
- const t = `.amp-input-list,
2
- .button,
3
- .base-input,
4
- ue-stripe-thumb,
5
- .ue-stripe-thumb {
6
- transition: all .5s ease;
7
- }
8
- `;
9
- export {
10
- t as default
11
- };
@@ -1,39 +0,0 @@
1
- const n = `.alert-message-wrapper {
2
- box-shadow: none;
3
- border: 1px solid var(--guido-color-gray-300);
4
- color: var(--guido-color-gray-600);
5
- }
6
-
7
- .alert-message-wrapper.info,
8
- .alert-message-wrapper.loader {
9
- background: var(--guido-color-background-onpage-message-info);
10
- border-color: var(--guido-color-border-onpage-message-info);
11
- color: inherit;
12
- }
13
-
14
- .alert-message-wrapper.info ue-icon-component.icon,
15
- .alert-message-wrapper.loader ue-icon-component.icon {
16
- color: var(--guido-color-border-onpage-message-info);
17
- }
18
-
19
- .alert-message-wrapper ue-button {
20
- padding: 0;
21
- }
22
-
23
- .alert-message-wrapper .button {
24
- border: none;
25
- background: transparent;
26
- color: var(--guido-color-primary-500);
27
- padding: 0;
28
- min-width: unset;
29
- min-height: unset;
30
- }
31
-
32
- .alert-message-wrapper .button:hover:not(:disabled,.disabled) {
33
- background-color: transparent;
34
- text-decoration: underline;
35
- }
36
- `;
37
- export {
38
- n as default
39
- };
@@ -1,18 +0,0 @@
1
- const n = `.amp-input-list {
2
- box-shadow: none;
3
- border: 1px solid var(--guido-color-gray-300);
4
- margin-bottom: 16px;
5
- }
6
-
7
- .amp-input-list:last-child {
8
- margin-bottom: 0;
9
- }
10
-
11
- .amp-input-list.active,
12
- .amp-input-list:hover {
13
- background-color: var(--guido-color-neutral-100);
14
- }
15
- `;
16
- export {
17
- n as default
18
- };
@@ -1,47 +0,0 @@
1
- const n = `.base-input {
2
- border: 1px solid var(--guido-color-gray-300);
3
- border-radius: 4px;
4
- background-color: var(--guido-color-gray-0);
5
- align-items: center;
6
- height: 40px;
7
- max-height: 40px;
8
- box-sizing: content-box;
9
- outline: none;
10
- resize: vertical;
11
- padding: 8px;
12
- font-size: 13px;
13
- color: var(--guido-color-gray-800);
14
- box-shadow: none !important;
15
- box-sizing: border-box !important;
16
- }
17
-
18
- .base-input:hover:not(:disabled) {
19
- background-color: var(--guido-color-gray-0);
20
- border-color: var(--guido-color-primary-500);
21
- }
22
-
23
- .base-input:focus:not(:disabled),
24
- .base-input.focused {
25
- background-color: var(--guido-color-gray-0);
26
- border-color: var(--guido-color-primary-500);
27
- box-shadow: 0 0 0 3px var(--guido-color-primary-200) !important;
28
- }
29
-
30
- ue-contenteditable {
31
- height: 40px;
32
- overflow: unset;
33
- }
34
-
35
- ue-contenteditable .base-input {
36
- line-height: 24px;
37
- }
38
-
39
- ue-icon-component.icon-button.icon-clear-input {
40
- right: 2px;
41
- top: 2px;
42
- padding: 9px;
43
- }
44
- `;
45
- export {
46
- n as default
47
- };