@useinsider/guido 3.1.0 → 3.1.1-beta.0b09ab4

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.
@@ -1,4 +1,4 @@
1
- const o = { stripo: { version: "2.54.0" } }, s = {
1
+ const o = { stripo: { version: "2.59.0" } }, s = {
2
2
  guido: o
3
3
  };
4
4
  export {
@@ -95,6 +95,8 @@ export declare const TemplateSchema: v.ObjectSchema<{
95
95
  readonly value: v.StringSchema<undefined>;
96
96
  }, undefined>, undefined>;
97
97
  }, undefined>, undefined>, readonly []>;
98
+ /** Valid custom field attribute names from the partner's categorized fields */
99
+ readonly customFieldAttributes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
98
100
  /** Selected unsubscribe page IDs */
99
101
  readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
100
102
  /** Force recreate template in Stripo storage (use true when updating externally modified templates) */
@@ -422,6 +424,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
422
424
  readonly value: v.StringSchema<undefined>;
423
425
  }, undefined>, undefined>;
424
426
  }, undefined>, undefined>, readonly []>;
427
+ /** Valid custom field attribute names from the partner's categorized fields */
428
+ readonly customFieldAttributes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
425
429
  /** Selected unsubscribe page IDs */
426
430
  readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
427
431
  /** Force recreate template in Stripo storage (use true when updating externally modified templates) */
@@ -30,6 +30,7 @@ export declare const useConfig: () => {
30
30
  value: string;
31
31
  } | undefined;
32
32
  }[];
33
+ customFieldAttributes: string[];
33
34
  selectedUnsubscribePages: number[];
34
35
  forceRecreate: boolean;
35
36
  };
@@ -121,6 +122,7 @@ export declare const useConfig: () => {
121
122
  value: string;
122
123
  } | undefined;
123
124
  }[];
125
+ customFieldAttributes: string[];
124
126
  selectedUnsubscribePages: number[];
125
127
  forceRecreate: boolean;
126
128
  } | null>;
@@ -15,7 +15,7 @@ export interface NodeWithGetStyle {
15
15
  }
16
16
  /** Interface for nodes with parent method */
17
17
  export interface NodeWithParent {
18
- parent: () => ImmutableHtmlNode | null;
18
+ parent: () => ImmutableHtmlNode | undefined;
19
19
  }
20
20
  /**
21
21
  * Type guard to check if a node has getStyle method
@@ -38,13 +38,13 @@ export declare function isTdNode(node: unknown): node is ImmutableHtmlNode & Nod
38
38
  * @param property - The CSS property name
39
39
  * @returns The style value or null if not accessible
40
40
  */
41
- export declare function safeGetStyle(node: ImmutableHtmlNode | null, property: string): string | null | undefined;
41
+ export declare function safeGetStyle(node: ImmutableHtmlNode | null | undefined, property: string): string | null | undefined;
42
42
  /**
43
43
  * Safely retrieves the parent element of a node
44
44
  * @param node - The node to get the parent from
45
45
  * @returns The parent node or null if not accessible
46
46
  */
47
- export declare function safeGetParent(node: ImmutableHtmlNode | null): ImmutableHtmlNode | null;
47
+ export declare function safeGetParent(node: ImmutableHtmlNode | null | undefined): ImmutableHtmlNode | null;
48
48
  /**
49
49
  * Safely retrieves the tag name from a node.
50
50
  * Handles both standard DOM tagName property and Stripo's getTagName() method.
@@ -35,6 +35,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
35
35
  value: string;
36
36
  } | undefined;
37
37
  }[];
38
+ customFieldAttributes: string[];
38
39
  selectedUnsubscribePages: number[];
39
40
  forceRecreate: boolean;
40
41
  };
@@ -132,6 +133,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
132
133
  value: string;
133
134
  } | undefined;
134
135
  }[];
136
+ customFieldAttributes: string[];
135
137
  selectedUnsubscribePages: number[];
136
138
  forceRecreate: boolean;
137
139
  };
@@ -229,6 +231,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
229
231
  value: string;
230
232
  } | undefined;
231
233
  }[];
234
+ customFieldAttributes: string[];
232
235
  selectedUnsubscribePages: number[];
233
236
  forceRecreate: boolean;
234
237
  };
@@ -326,6 +329,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
326
329
  value: string;
327
330
  } | undefined;
328
331
  }[];
332
+ customFieldAttributes: string[];
329
333
  selectedUnsubscribePages: number[];
330
334
  forceRecreate: boolean;
331
335
  };
@@ -423,6 +427,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
423
427
  value: string;
424
428
  } | undefined;
425
429
  }[];
430
+ customFieldAttributes: string[];
426
431
  selectedUnsubscribePages: number[];
427
432
  forceRecreate: boolean;
428
433
  };
@@ -520,6 +525,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
520
525
  value: string;
521
526
  } | undefined;
522
527
  }[];
528
+ customFieldAttributes: string[];
523
529
  selectedUnsubscribePages: number[];
524
530
  forceRecreate: boolean;
525
531
  };
@@ -617,6 +623,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
617
623
  value: string;
618
624
  } | undefined;
619
625
  }[];
626
+ customFieldAttributes: string[];
620
627
  selectedUnsubscribePages: number[];
621
628
  forceRecreate: boolean;
622
629
  };
@@ -714,6 +721,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
714
721
  value: string;
715
722
  } | undefined;
716
723
  }[];
724
+ customFieldAttributes: string[];
717
725
  selectedUnsubscribePages: number[];
718
726
  forceRecreate: boolean;
719
727
  };
@@ -811,6 +819,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
811
819
  value: string;
812
820
  } | undefined;
813
821
  }[];
822
+ customFieldAttributes: string[];
814
823
  selectedUnsubscribePages: number[];
815
824
  forceRecreate: boolean;
816
825
  };
@@ -908,6 +917,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
908
917
  value: string;
909
918
  } | undefined;
910
919
  }[];
920
+ customFieldAttributes: string[];
911
921
  selectedUnsubscribePages: number[];
912
922
  forceRecreate: boolean;
913
923
  };
@@ -1005,6 +1015,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1005
1015
  value: string;
1006
1016
  } | undefined;
1007
1017
  }[];
1018
+ customFieldAttributes: string[];
1008
1019
  selectedUnsubscribePages: number[];
1009
1020
  forceRecreate: boolean;
1010
1021
  };
@@ -1102,6 +1113,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1102
1113
  value: string;
1103
1114
  } | undefined;
1104
1115
  }[];
1116
+ customFieldAttributes: string[];
1105
1117
  selectedUnsubscribePages: number[];
1106
1118
  forceRecreate: boolean;
1107
1119
  };
@@ -1199,6 +1211,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1199
1211
  value: string;
1200
1212
  } | undefined;
1201
1213
  }[];
1214
+ customFieldAttributes: string[];
1202
1215
  selectedUnsubscribePages: number[];
1203
1216
  forceRecreate: boolean;
1204
1217
  };
@@ -1296,6 +1309,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1296
1309
  value: string;
1297
1310
  } | undefined;
1298
1311
  }[];
1312
+ customFieldAttributes: string[];
1299
1313
  selectedUnsubscribePages: number[];
1300
1314
  forceRecreate: boolean;
1301
1315
  };
@@ -1393,6 +1407,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1393
1407
  value: string;
1394
1408
  } | undefined;
1395
1409
  }[];
1410
+ customFieldAttributes: string[];
1396
1411
  selectedUnsubscribePages: number[];
1397
1412
  forceRecreate: boolean;
1398
1413
  };
@@ -1490,6 +1505,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1490
1505
  value: string;
1491
1506
  } | undefined;
1492
1507
  }[];
1508
+ customFieldAttributes: string[];
1493
1509
  selectedUnsubscribePages: number[];
1494
1510
  forceRecreate: boolean;
1495
1511
  };
@@ -1587,6 +1603,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1587
1603
  value: string;
1588
1604
  } | undefined;
1589
1605
  }[];
1606
+ customFieldAttributes: string[];
1590
1607
  selectedUnsubscribePages: number[];
1591
1608
  forceRecreate: boolean;
1592
1609
  };
@@ -1684,6 +1701,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1684
1701
  value: string;
1685
1702
  } | undefined;
1686
1703
  }[];
1704
+ customFieldAttributes: string[];
1687
1705
  selectedUnsubscribePages: number[];
1688
1706
  forceRecreate: boolean;
1689
1707
  };
@@ -99,18 +99,12 @@ ue-check-button.checked:not(.flat-white) input:checked + label .icon-button {
99
99
  color: var(--guido-color-primary-500);
100
100
  }
101
101
 
102
- ue-select.full-width .button {
103
- border: none !important;
104
- background-color: var(--guido-color-neutral-200) !important;
105
- color: var(--guido-color-neutral-800) !important;
106
- }
107
-
108
102
  ue-select.full-width .button .icon-button {
109
103
  color: var(--guido-color-gray-600) !important;
110
104
  }
111
105
 
112
106
  ue-select.full-width .button:hover:not(:disabled,.disabled) {
113
- background-color: var(--guido-color-neutral-100) !important;
107
+ background-color: var(--guido-color-gray-0) !important;
114
108
  }
115
109
 
116
110
  ue-color {
@@ -130,6 +124,18 @@ ue-select-text-input .select-text-input-toggle .button {
130
124
  justify-content: center;
131
125
  background-color: transparent !important;
132
126
  }
127
+
128
+ .control-shadow-wrapper,
129
+ ue-button:not(.no-shadow,.flat-white),
130
+ ue-toggle:not(.no-shadow,.flat-white),
131
+ :is(ue-popover-toggler,ue-toggle-icon-picker,ue-emoji-toggle),
132
+ .button-group,
133
+ ue-counter:not(.no-shadow),
134
+ :is(ue-select,ue-mergetags,ue-font-family-select):not(.no-shadow),
135
+ ue-check-button:not(.no-shadow,.flat-white) {
136
+ background: none;
137
+ padding: 0;
138
+ }
133
139
  `;
134
140
  export {
135
141
  o as default
@@ -28,6 +28,58 @@ ue-stripe-thumb:hover:not(.disabled),
28
28
  border-color: var(--guido-color-primary-500);
29
29
  }
30
30
 
31
+ /* Module search — initial */
32
+ .module-search-container {
33
+ background-color: var(--guido-color-gray-0);
34
+ border: 1px solid var(--guido-color-gray-300);
35
+ border-radius: 4px;
36
+ }
37
+
38
+ .module-search-container .service-element {
39
+ background-color: unset;
40
+ }
41
+
42
+ .module-filter-toggle {
43
+ top: -1px !important;
44
+ right: -1px !important;
45
+ }
46
+
47
+ .module-filter-toggle > .button,
48
+ .module-search-container:hover .module-filter-toggle > .button {
49
+ border: none;
50
+ background: transparent;
51
+ }
52
+
53
+ /* Module search — hover */
54
+ .module-search-container:has(.module-search-chip-input:hover) {
55
+ border-color: var(--guido-color-primary-500);
56
+ }
57
+
58
+ .module-search-container .module-search-chip-input .service-element:hover {
59
+ background-color: var(--guido-color-gray-0);
60
+ border-radius: 4px;
61
+ }
62
+
63
+ .module-search-container .module-filter-toggle:hover > .button {
64
+ background-color: var(--guido-color-gray-1);
65
+ }
66
+
67
+ /* Module search — selected (.on) */
68
+ .module-search-container:has(.module-search-chip-input.on),
69
+ .module-search-container:has(.module-search-chip-input.on):hover {
70
+ border-color: var(--guido-color-primary-500);
71
+ box-shadow: 0 0 0 3px var(--guido-color-primary-200) !important;
72
+ }
73
+
74
+ .module-search-container .module-search-chip-input.on .input-section {
75
+ background-color: unset;
76
+ box-shadow: unset;
77
+ }
78
+
79
+ .module-categories-list .menu-item {
80
+ padding: 8px 20px !important;
81
+ }
82
+
31
83
  .modules-layout-wrapper {
32
84
  padding: 0 16px 16px;
33
85
  grid-row-gap: 16px;
@@ -1,27 +1,27 @@
1
- import { ToasterTypeOptions as s } from "../enums/toaster.js";
1
+ import { ToasterTypeOptions as e } from "../enums/toaster.js";
2
2
  import { defineStore as i } from "pinia";
3
3
  const a = () => ({
4
4
  status: !1,
5
- type: s.Success,
5
+ type: e.Success,
6
6
  text: "",
7
7
  icon: "",
8
8
  withIcon: !0,
9
9
  withoutLeftMargin: !1,
10
10
  actionButton: void 0
11
- }), u = i("guidoToaster", {
11
+ }), n = i("guidoToaster", {
12
12
  state: () => a(),
13
13
  getters: {
14
14
  shouldAutoHide: (t) => t.status && !!t.text
15
15
  },
16
16
  actions: {
17
- showToaster({ type: t = s.Success, message: e, actionButton: o }) {
18
- this.status = !0, this.text = e, this.type = t, this.actionButton = o;
17
+ showToaster({ type: t = e.Success, message: s, actionButton: o }) {
18
+ this.status = !0, this.text = s, this.type = t, this.actionButton = o;
19
19
  },
20
20
  hideToaster() {
21
- this.status = !1, this.text = "", this.actionButton = void 0;
21
+ this.status = !1;
22
22
  }
23
23
  }
24
24
  });
25
25
  export {
26
- u as useToasterStore
26
+ n as useToasterStore
27
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.1.0",
3
+ "version": "3.1.1-beta.0b09ab4",
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",
@@ -32,7 +32,7 @@
32
32
  "author": "",
33
33
  "license": "ISC",
34
34
  "dependencies": {
35
- "@stripoinc/ui-editor-extensions": "3.5.0",
35
+ "@stripoinc/ui-editor-extensions": "3.7.0",
36
36
  "@useinsider/design-system-vue": "0.14.28",
37
37
  "@vueuse/core": "11.3.0",
38
38
  "lodash-es": "4.17.21",
@@ -86,7 +86,7 @@
86
86
  },
87
87
  "guido": {
88
88
  "stripo": {
89
- "version": "2.54.0"
89
+ "version": "2.59.0"
90
90
  }
91
91
  }
92
92
  }