@useinsider/guido 3.12.0-beta.b9402d1 → 3.12.0-beta.cfe6433

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
- var o = /* @__PURE__ */ ((c) => (c.BLOCK_BACKGROUND = "recommendation-block-background-color-control", c.BUTTON_ALIGN = "recommendation-block-button-align-control", c.BUTTON_BORDER = "recommendation-block-button-border-control", c.BUTTON_BORDER_RADIUS = "recommendation-block-button-border-radius-control", c.BUTTON_COLOR = "recommendation-block-button-color-control", c.BUTTON_FIT_TO_CONTENT = "recommendation-block-button-fit-to-content-control", c.BUTTON_FONT_FAMILY = "recommendation-block-button-font-family-control", c.BUTTON_MARGINS = "recommendation-block-button-margins-control", c.BUTTON_PADDINGS = "recommendation-block-button-paddings-control", c.BUTTON_TEXT = "recommendation-block-button-text-control", c.BUTTON_TEXT_SIZE = "recommendation-block-button-text-size-control", c.BUTTON_TEXT_STYLE_AND_FONT_COLOR = "recommendation-block-button-text-style-and-font-color-control", c.NAME_ALIGN = "recommendation-block-name-align-control", c.NAME_BACKGROUND = "recommendation-block-name-background-control", c.NAME_COLOR = "recommendation-block-name-color-control", c.NAME_FONT_FAMILY = "recommendation-block-name-font-family-control", c.NAME_PADDINGS = "recommendation-block-name-paddings-control", c.NAME_SIZE = "recommendation-block-name-size-control", c.NAME_STYLE = "recommendation-block-name-style-control", c.NAME_TEXT_TRIM = "recommendation-block-name-text-trim-control", c.PRICE_ALIGN = "recommendation-block-price-align-control", c.PRICE_BACKGROUND = "recommendation-block-price-background-control", c.PRICE_COLOR = "recommendation-block-price-color-control", c.PRICE_FONT_FAMILY = "recommendation-block-price-font-family-control", c.PRICE_PADDINGS = "recommendation-block-price-paddings-control", c.PRICE_SIZE = "recommendation-block-price-size-control", c.PRICE_STYLE = "recommendation-block-price-style-control", c.OLD_PRICE_ALIGN = "recommendation-block-old-price-align-control", c.OLD_PRICE_BACKGROUND = "recommendation-block-old-price-background-control", c.OLD_PRICE_COLOR = "recommendation-block-old-price-color-control", c.OLD_PRICE_FONT_FAMILY = "recommendation-block-old-price-font-family-control", c.OLD_PRICE_PADDINGS = "recommendation-block-old-price-paddings-control", c.OLD_PRICE_SIZE = "recommendation-block-old-price-size-control", c.OLD_PRICE_STYLE = "recommendation-block-old-price-style-control", c.OMNIBUS_PRICE_ALIGN = "recommendation-block-omnibus-price-align-control", c.OMNIBUS_PRICE_BACKGROUND = "recommendation-block-omnibus-price-background-control", c.OMNIBUS_PRICE_COLOR = "recommendation-block-omnibus-price-color-control", c.OMNIBUS_PRICE_FONT_FAMILY = "recommendation-block-omnibus-price-font-family-control", c.OMNIBUS_PRICE_PADDINGS = "recommendation-block-omnibus-price-paddings-control", c.OMNIBUS_PRICE_SIZE = "recommendation-block-omnibus-price-size-control", c.OMNIBUS_PRICE_STYLE = "recommendation-block-omnibus-price-style-control", c.OMNIBUS_PRICE_TEXT_BEFORE = "recommendation-block-omnibus-price-text-before-control", c.OMNIBUS_PRICE_TEXT_AFTER = "recommendation-block-omnibus-price-text-after-control", c.OMNIBUS_DISCOUNT_ALIGN = "recommendation-block-omnibus-discount-align-control", c.OMNIBUS_DISCOUNT_BACKGROUND = "recommendation-block-omnibus-discount-background-control", c.OMNIBUS_DISCOUNT_COLOR = "recommendation-block-omnibus-discount-color-control", c.OMNIBUS_DISCOUNT_FONT_FAMILY = "recommendation-block-omnibus-discount-font-family-control", c.OMNIBUS_DISCOUNT_PADDINGS = "recommendation-block-omnibus-discount-paddings-control", c.OMNIBUS_DISCOUNT_SIZE = "recommendation-block-omnibus-discount-size-control", c.OMNIBUS_DISCOUNT_STYLE = "recommendation-block-omnibus-discount-style-control", c.OMNIBUS_DISCOUNT_TEXT_BEFORE = "recommendation-block-omnibus-discount-text-before-control", c.OMNIBUS_DISCOUNT_TEXT_AFTER = "recommendation-block-omnibus-discount-text-after-control", c.IMAGE_SIZE = "recommendation-block-image-size-control", c.IMAGE_MARGINS = "recommendation-block-image-margins-control", c.CUSTOM_ATTR_ALIGN = "recommendation-block-custom-attr-align-control", c.CUSTOM_ATTR_BACKGROUND = "recommendation-block-custom-attr-background-control", c.CUSTOM_ATTR_COLOR = "recommendation-block-custom-attr-color-control", c.CUSTOM_ATTR_FONT_FAMILY = "recommendation-block-custom-attr-font-family-control", c.CUSTOM_ATTR_PADDINGS = "recommendation-block-custom-attr-paddings-control", c.CUSTOM_ATTR_SIZE = "recommendation-block-custom-attr-size-control", c.CUSTOM_ATTR_STYLE = "recommendation-block-custom-attr-style-control", c.CUSTOM_ATTR_TEXT_TRIM = "recommendation-block-custom-attr-text-trim-control", c.SYNC_INFO_MESSAGE = "recommendation-block-sync-info-message", c))(o || {});
1
+ var o = /* @__PURE__ */ ((c) => (c.BUTTON_ALIGN = "recommendation-block-button-align-control", c.BUTTON_BORDER = "recommendation-block-button-border-control", c.BUTTON_BORDER_RADIUS = "recommendation-block-button-border-radius-control", c.BUTTON_COLOR = "recommendation-block-button-color-control", c.BUTTON_FIT_TO_CONTENT = "recommendation-block-button-fit-to-content-control", c.BUTTON_FONT_FAMILY = "recommendation-block-button-font-family-control", c.BUTTON_MARGINS = "recommendation-block-button-margins-control", c.BUTTON_PADDINGS = "recommendation-block-button-paddings-control", c.BUTTON_TEXT = "recommendation-block-button-text-control", c.BUTTON_TEXT_SIZE = "recommendation-block-button-text-size-control", c.BUTTON_TEXT_STYLE_AND_FONT_COLOR = "recommendation-block-button-text-style-and-font-color-control", c.NAME_ALIGN = "recommendation-block-name-align-control", c.NAME_BACKGROUND = "recommendation-block-name-background-control", c.NAME_COLOR = "recommendation-block-name-color-control", c.NAME_FONT_FAMILY = "recommendation-block-name-font-family-control", c.NAME_PADDINGS = "recommendation-block-name-paddings-control", c.NAME_SIZE = "recommendation-block-name-size-control", c.NAME_STYLE = "recommendation-block-name-style-control", c.NAME_TEXT_TRIM = "recommendation-block-name-text-trim-control", c.PRICE_ALIGN = "recommendation-block-price-align-control", c.PRICE_BACKGROUND = "recommendation-block-price-background-control", c.PRICE_COLOR = "recommendation-block-price-color-control", c.PRICE_FONT_FAMILY = "recommendation-block-price-font-family-control", c.PRICE_PADDINGS = "recommendation-block-price-paddings-control", c.PRICE_SIZE = "recommendation-block-price-size-control", c.PRICE_STYLE = "recommendation-block-price-style-control", c.OLD_PRICE_ALIGN = "recommendation-block-old-price-align-control", c.OLD_PRICE_BACKGROUND = "recommendation-block-old-price-background-control", c.OLD_PRICE_COLOR = "recommendation-block-old-price-color-control", c.OLD_PRICE_FONT_FAMILY = "recommendation-block-old-price-font-family-control", c.OLD_PRICE_PADDINGS = "recommendation-block-old-price-paddings-control", c.OLD_PRICE_SIZE = "recommendation-block-old-price-size-control", c.OLD_PRICE_STYLE = "recommendation-block-old-price-style-control", c.OMNIBUS_PRICE_ALIGN = "recommendation-block-omnibus-price-align-control", c.OMNIBUS_PRICE_BACKGROUND = "recommendation-block-omnibus-price-background-control", c.OMNIBUS_PRICE_COLOR = "recommendation-block-omnibus-price-color-control", c.OMNIBUS_PRICE_FONT_FAMILY = "recommendation-block-omnibus-price-font-family-control", c.OMNIBUS_PRICE_PADDINGS = "recommendation-block-omnibus-price-paddings-control", c.OMNIBUS_PRICE_SIZE = "recommendation-block-omnibus-price-size-control", c.OMNIBUS_PRICE_STYLE = "recommendation-block-omnibus-price-style-control", c.OMNIBUS_PRICE_TEXT_BEFORE = "recommendation-block-omnibus-price-text-before-control", c.OMNIBUS_PRICE_TEXT_AFTER = "recommendation-block-omnibus-price-text-after-control", c.OMNIBUS_DISCOUNT_ALIGN = "recommendation-block-omnibus-discount-align-control", c.OMNIBUS_DISCOUNT_BACKGROUND = "recommendation-block-omnibus-discount-background-control", c.OMNIBUS_DISCOUNT_COLOR = "recommendation-block-omnibus-discount-color-control", c.OMNIBUS_DISCOUNT_FONT_FAMILY = "recommendation-block-omnibus-discount-font-family-control", c.OMNIBUS_DISCOUNT_PADDINGS = "recommendation-block-omnibus-discount-paddings-control", c.OMNIBUS_DISCOUNT_SIZE = "recommendation-block-omnibus-discount-size-control", c.OMNIBUS_DISCOUNT_STYLE = "recommendation-block-omnibus-discount-style-control", c.OMNIBUS_DISCOUNT_TEXT_BEFORE = "recommendation-block-omnibus-discount-text-before-control", c.OMNIBUS_DISCOUNT_TEXT_AFTER = "recommendation-block-omnibus-discount-text-after-control", c.IMAGE_SIZE = "recommendation-block-image-size-control", c.IMAGE_MARGINS = "recommendation-block-image-margins-control", c.CUSTOM_ATTR_ALIGN = "recommendation-block-custom-attr-align-control", c.CUSTOM_ATTR_BACKGROUND = "recommendation-block-custom-attr-background-control", c.CUSTOM_ATTR_COLOR = "recommendation-block-custom-attr-color-control", c.CUSTOM_ATTR_FONT_FAMILY = "recommendation-block-custom-attr-font-family-control", c.CUSTOM_ATTR_PADDINGS = "recommendation-block-custom-attr-paddings-control", c.CUSTOM_ATTR_SIZE = "recommendation-block-custom-attr-size-control", c.CUSTOM_ATTR_STYLE = "recommendation-block-custom-attr-style-control", c.CUSTOM_ATTR_TEXT_TRIM = "recommendation-block-custom-attr-text-trim-control", c.SYNC_INFO_MESSAGE = "recommendation-block-sync-info-message", c))(o || {});
2
2
  export {
3
3
  o as RecommendationControlId
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ExtensionBuilder as t } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
1
+ import { ExtensionBuilder as r } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
2
  import { RecommendationBlock as m } from "./block.js";
3
3
  import n from "./canvasPreview.css.js";
4
4
  import { RecommendationBlockControl as i } from "./controls/main/index.js";
@@ -6,44 +6,42 @@ import "./constants/selectors.js";
6
6
  import "./store/recommendation.js";
7
7
  import "./utils/captureStyleTemplates.js";
8
8
  import { NameControls as e } from "./controls/name/index.js";
9
- import { PriceControls as l } from "./controls/price/index.js";
10
- import { OldPriceControls as s } from "./controls/oldPrice/index.js";
9
+ import { PriceControls as s } from "./controls/price/index.js";
10
+ import { OldPriceControls as l } from "./controls/oldPrice/index.js";
11
11
  import { OmnibusPriceControls as p } from "./controls/omnibusPrice/index.js";
12
12
  import { OmnibusDiscountControls as a } from "./controls/omnibusDiscount/index.js";
13
13
  import { ButtonControls as c } from "./controls/button/index.js";
14
- import { ImageControls as C } from "./controls/image/index.js";
15
- import { CustomAttributeControls as f } from "./controls/customAttribute/index.js";
14
+ import { ImageControls as f } from "./controls/image/index.js";
15
+ import { CustomAttributeControls as C } from "./controls/customAttribute/index.js";
16
16
  import { SpacingControl as d } from "./controls/spacing/index.js";
17
- import { BlockBackgroundColorControl as u } from "./controls/blockBackground/index.js";
18
- import { CardBackgroundColorControl as g } from "./controls/cardBackground/index.js";
19
- import { RecommendationCardCompositionControl as y } from "./controls/cardComposition/index.js";
20
- import { SyncInfoMessageControl as B } from "./controls/syncInfoMessage.js";
17
+ import { CardBackgroundColorControl as u } from "./controls/cardBackground/index.js";
18
+ import { RecommendationCardCompositionControl as g } from "./controls/cardComposition/index.js";
19
+ import { SyncInfoMessageControl as y } from "./controls/syncInfoMessage.js";
21
20
  import { RecommendationIconsRegistry as P } from "./iconsRegistry.js";
22
21
  import R from "./recommendation.css.js";
23
22
  import { SettingsPanel as S } from "./settingsPanel.js";
24
- const k = [
23
+ const w = [
25
24
  e,
26
- l,
27
25
  s,
26
+ l,
28
27
  p,
29
28
  a,
30
29
  c,
31
- C,
32
- f
33
- ], w = [
30
+ f,
31
+ C
32
+ ], B = [
34
33
  i,
35
34
  u,
36
- g,
37
35
  d,
38
- y,
39
- B
36
+ g,
37
+ y
40
38
  ], b = [
41
- ...w,
42
- ...k.flatMap((o) => Object.values(o))
43
- ], W = b.reduce(
44
- (o, r) => o.addControl(r),
45
- new t().addBlock(m).withSettingsPanelRegistry(S)
39
+ ...B,
40
+ ...w.flatMap((o) => Object.values(o))
41
+ ], U = b.reduce(
42
+ (o, t) => o.addControl(t),
43
+ new r().addBlock(m).withSettingsPanelRegistry(S)
46
44
  ).addStyles(R).withPreviewStyles(n).withIconsRegistry(P).build();
47
45
  export {
48
- W as default
46
+ U as default
49
47
  };
@@ -1,9 +1,9 @@
1
- import { SettingsPanelRegistry as E, SettingsPanelTab as _, SettingsTab as I, ContainerControls as C } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { BLOCK_ID as R } from "./block.js";
1
+ import { SettingsPanelRegistry as E, SettingsPanelTab as _, SettingsTab as O, ContainerControls as C, TextControls as R } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
+ import { BLOCK_ID as U } from "./block.js";
3
3
  import { RecommendationBlockId as S } from "./constants/blockIds.js";
4
4
  import { RecommendationControlId as T } from "./constants/controlIds.js";
5
5
  import "./constants/selectors.js";
6
- import { CONTROL_BLOCK_ID as U } from "./controls/main/index.js";
6
+ import { CONTROL_BLOCK_ID as A } from "./controls/main/index.js";
7
7
  import "./store/recommendation.js";
8
8
  import "./utils/captureStyleTemplates.js";
9
9
  import "./controls/name/index.js";
@@ -13,38 +13,37 @@ import "./controls/omnibusPrice/index.js";
13
13
  import "./controls/omnibusDiscount/index.js";
14
14
  import "./controls/button/index.js";
15
15
  import "./controls/image/index.js";
16
- import { SPACING_CONTROL_ID as A } from "./controls/spacing/index.js";
17
- import "./controls/blockBackground/index.js";
18
- import { CARD_BACKGROUND_COLOR_CONTROL_ID as L } from "./controls/cardBackground/index.js";
19
- import { COMPOSITION_CONTROL_BLOCK_ID as D } from "./controls/cardComposition/index.js";
16
+ import { SPACING_CONTROL_ID as L } from "./controls/spacing/index.js";
17
+ import { CARD_BACKGROUND_COLOR_CONTROL_ID as D } from "./controls/cardBackground/index.js";
18
+ import { COMPOSITION_CONTROL_BLOCK_ID as B } from "./controls/cardComposition/index.js";
20
19
  import { SYNC_INFO_MESSAGE_CONTROL_ID as N } from "./controls/syncInfoMessage.js";
21
- class s extends E {
22
- registerBlockControls(O) {
23
- O[R] = [
20
+ class d extends E {
21
+ registerBlockControls(I) {
22
+ I[U] = [
24
23
  new _(
25
- I.SETTINGS,
24
+ O.SETTINGS,
26
25
  [
27
- U,
26
+ A,
28
27
  C.EXTERNAL_INDENTS
29
28
  ]
30
29
  ),
31
30
  new _(
32
- I.STYLES,
31
+ O.STYLES,
33
32
  [
34
- T.BLOCK_BACKGROUND,
35
- L,
36
- A
33
+ R.TEXT_BLOCK_BACKGROUND_COLOR,
34
+ D,
35
+ L
37
36
  ]
38
37
  ),
39
38
  new _(
40
39
  "Card Composition",
41
40
  [
42
- D
41
+ B
43
42
  ]
44
43
  ).withLabel(this.api.translate("Card Composition"))
45
- ], O[S.NAME] = [
44
+ ], I[S.NAME] = [
46
45
  new _(
47
- I.SETTINGS,
46
+ O.SETTINGS,
48
47
  [
49
48
  N,
50
49
  T.NAME_STYLE,
@@ -54,7 +53,7 @@ class s extends E {
54
53
  ]
55
54
  ),
56
55
  new _(
57
- I.STYLES,
56
+ O.STYLES,
58
57
  [
59
58
  T.NAME_BACKGROUND,
60
59
  T.NAME_FONT_FAMILY,
@@ -62,9 +61,9 @@ class s extends E {
62
61
  T.NAME_COLOR
63
62
  ]
64
63
  )
65
- ], O[S.PRICE] = [
64
+ ], I[S.PRICE] = [
66
65
  new _(
67
- I.SETTINGS,
66
+ O.SETTINGS,
68
67
  [
69
68
  N,
70
69
  T.PRICE_STYLE,
@@ -73,7 +72,7 @@ class s extends E {
73
72
  ]
74
73
  ),
75
74
  new _(
76
- I.STYLES,
75
+ O.STYLES,
77
76
  [
78
77
  T.PRICE_BACKGROUND,
79
78
  T.PRICE_FONT_FAMILY,
@@ -81,9 +80,9 @@ class s extends E {
81
80
  T.PRICE_COLOR
82
81
  ]
83
82
  )
84
- ], O[S.OLD_PRICE] = [
83
+ ], I[S.OLD_PRICE] = [
85
84
  new _(
86
- I.SETTINGS,
85
+ O.SETTINGS,
87
86
  [
88
87
  N,
89
88
  T.OLD_PRICE_STYLE,
@@ -92,7 +91,7 @@ class s extends E {
92
91
  ]
93
92
  ),
94
93
  new _(
95
- I.STYLES,
94
+ O.STYLES,
96
95
  [
97
96
  T.OLD_PRICE_BACKGROUND,
98
97
  T.OLD_PRICE_FONT_FAMILY,
@@ -100,9 +99,9 @@ class s extends E {
100
99
  T.OLD_PRICE_COLOR
101
100
  ]
102
101
  )
103
- ], O[S.OMNIBUS_PRICE] = [
102
+ ], I[S.OMNIBUS_PRICE] = [
104
103
  new _(
105
- I.SETTINGS,
104
+ O.SETTINGS,
106
105
  [
107
106
  N,
108
107
  T.OMNIBUS_PRICE_TEXT_BEFORE,
@@ -113,7 +112,7 @@ class s extends E {
113
112
  ]
114
113
  ),
115
114
  new _(
116
- I.STYLES,
115
+ O.STYLES,
117
116
  [
118
117
  T.OMNIBUS_PRICE_BACKGROUND,
119
118
  T.OMNIBUS_PRICE_FONT_FAMILY,
@@ -121,9 +120,9 @@ class s extends E {
121
120
  T.OMNIBUS_PRICE_COLOR
122
121
  ]
123
122
  )
124
- ], O[S.OMNIBUS_DISCOUNT] = [
123
+ ], I[S.OMNIBUS_DISCOUNT] = [
125
124
  new _(
126
- I.SETTINGS,
125
+ O.SETTINGS,
127
126
  [
128
127
  N,
129
128
  T.OMNIBUS_DISCOUNT_TEXT_BEFORE,
@@ -134,7 +133,7 @@ class s extends E {
134
133
  ]
135
134
  ),
136
135
  new _(
137
- I.STYLES,
136
+ O.STYLES,
138
137
  [
139
138
  T.OMNIBUS_DISCOUNT_BACKGROUND,
140
139
  T.OMNIBUS_DISCOUNT_FONT_FAMILY,
@@ -142,9 +141,9 @@ class s extends E {
142
141
  T.OMNIBUS_DISCOUNT_COLOR
143
142
  ]
144
143
  )
145
- ], O[S.BUTTON] = [
144
+ ], I[S.BUTTON] = [
146
145
  new _(
147
- I.SETTINGS,
146
+ O.SETTINGS,
148
147
  [
149
148
  N,
150
149
  T.BUTTON_TEXT,
@@ -154,7 +153,7 @@ class s extends E {
154
153
  ]
155
154
  ),
156
155
  new _(
157
- I.STYLES,
156
+ O.STYLES,
158
157
  [
159
158
  T.BUTTON_COLOR,
160
159
  T.BUTTON_FONT_FAMILY,
@@ -165,9 +164,9 @@ class s extends E {
165
164
  T.BUTTON_BORDER
166
165
  ]
167
166
  )
168
- ], O[S.CUSTOM_ATTRIBUTE] = [
167
+ ], I[S.CUSTOM_ATTRIBUTE] = [
169
168
  new _(
170
- I.SETTINGS,
169
+ O.SETTINGS,
171
170
  [
172
171
  T.CUSTOM_ATTR_STYLE,
173
172
  T.CUSTOM_ATTR_ALIGN,
@@ -176,7 +175,7 @@ class s extends E {
176
175
  ]
177
176
  ),
178
177
  new _(
179
- I.STYLES,
178
+ O.STYLES,
180
179
  [
181
180
  T.CUSTOM_ATTR_BACKGROUND,
182
181
  T.CUSTOM_ATTR_FONT_FAMILY,
@@ -184,9 +183,9 @@ class s extends E {
184
183
  T.CUSTOM_ATTR_COLOR
185
184
  ]
186
185
  )
187
- ], O[S.IMAGE] = [
186
+ ], I[S.IMAGE] = [
188
187
  new _(
189
- I.SETTINGS,
188
+ O.SETTINGS,
190
189
  [
191
190
  N,
192
191
  T.IMAGE_SIZE,
@@ -197,5 +196,5 @@ class s extends E {
197
196
  }
198
197
  }
199
198
  export {
200
- s as SettingsPanel
199
+ d as SettingsPanel
201
200
  };
@@ -1,80 +1,80 @@
1
- import { TextAlignBuiltInControl as C, TextColorBuiltInControl as B, TextSizeBuiltInControl as T, TextStyleBuiltInControl as m, TextFontFamilyBuiltInControl as y, ButtonBackgroundColorBuiltInControl as a, TextPaddingsBuiltInControl as I, ImageSizeBuiltInControl as S, ImageMarginsBuiltInControl as b, ButtonAlignBuiltInControl as A, ButtonBorderBuiltInControl as k, ButtonBorderRadiusBuiltInControl as N, ButtonColorBuiltInControl as h, ButtonFontFamilyBuiltInControl as p, ButtonMarginsBuiltInControl as q, ButtonPaddingsBuiltInControl as $, ButtonTextBuiltInControl as F, ButtonTextSizeBuiltInControl as v, ButtonTextStyleAndFontColorBuiltInControl as M, ButtonFitToContainerBuiltInControl as R, TextLineSpacingBuiltInControl as _ } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- const O = "buttonTextStyleForm", g = "backgroundColor", f = /* @__PURE__ */ new Set(["", "transparent", "rgba(0, 0, 0, 0)"]), E = ["elementColor", g];
3
- function L(o, e, r) {
4
- return class extends C {
1
+ import { TextAlignBuiltInControl as a, TextColorBuiltInControl as g, TextSizeBuiltInControl as f, TextStyleBuiltInControl as x, TextFontFamilyBuiltInControl as C, ButtonBackgroundColorBuiltInControl as T, TextPaddingsBuiltInControl as B, ImageSizeBuiltInControl as m, ImageMarginsBuiltInControl as y, ButtonAlignBuiltInControl as I, ButtonBorderBuiltInControl as S, ButtonBorderRadiusBuiltInControl as A, ButtonColorBuiltInControl as b, ButtonFontFamilyBuiltInControl as N, ButtonMarginsBuiltInControl as q, ButtonPaddingsBuiltInControl as $, ButtonTextBuiltInControl as k, ButtonTextSizeBuiltInControl as p, ButtonTextStyleAndFontColorBuiltInControl as h, ButtonFitToContainerBuiltInControl as F, TextLineSpacingBuiltInControl as M } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
+ const R = "buttonTextStyleForm", _ = "backgroundColor", E = /* @__PURE__ */ new Set(["", "transparent", "rgba(0, 0, 0, 0)"]);
3
+ function z(o, n, r) {
4
+ return class extends a {
5
5
  getId() {
6
6
  return o;
7
7
  }
8
- getTargetNodes(n) {
9
- if (!e || !r)
10
- return [n];
11
- const t = n.closest(r);
12
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
8
+ getTargetNodes(e) {
9
+ if (!n || !r)
10
+ return [e];
11
+ const t = e.closest(r);
12
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
13
13
  }
14
14
  };
15
15
  }
16
- function P(o, e, r) {
17
- return class extends B {
16
+ function v(o, n, r) {
17
+ return class extends g {
18
18
  getId() {
19
19
  return o;
20
20
  }
21
- getTargetNodes(n) {
22
- if (!e || !r)
23
- return [n];
24
- const t = n.closest(r);
25
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
21
+ getTargetNodes(e) {
22
+ if (!n || !r)
23
+ return [e];
24
+ const t = e.closest(r);
25
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
26
26
  }
27
27
  };
28
28
  }
29
- function U(o, e, r) {
30
- return class extends T {
29
+ function P(o, n, r) {
30
+ return class extends f {
31
31
  getId() {
32
32
  return o;
33
33
  }
34
- getTargetNodes(n) {
35
- if (!e || !r)
36
- return [n];
37
- const t = n.closest(r);
38
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
34
+ getTargetNodes(e) {
35
+ if (!n || !r)
36
+ return [e];
37
+ const t = e.closest(r);
38
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
39
39
  }
40
40
  };
41
41
  }
42
- function Y(o, e, r) {
43
- return class extends m {
42
+ function D(o, n, r) {
43
+ return class extends x {
44
44
  getId() {
45
45
  return o;
46
46
  }
47
- getTargetNodes(n) {
48
- if (!e || !r)
49
- return [n];
50
- const t = n.closest(r);
51
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
47
+ getTargetNodes(e) {
48
+ if (!n || !r)
49
+ return [e];
50
+ const t = e.closest(r);
51
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
52
52
  }
53
53
  };
54
54
  }
55
- function G(o, e, r) {
56
- return class extends y {
55
+ function K(o, n, r) {
56
+ return class extends C {
57
57
  getId() {
58
58
  return o;
59
59
  }
60
- getTargetNodes(n) {
61
- if (!e || !r)
62
- return [n];
63
- const t = n.closest(r);
64
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
60
+ getTargetNodes(e) {
61
+ if (!n || !r)
62
+ return [e];
63
+ const t = e.closest(r);
64
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
65
65
  }
66
66
  };
67
67
  }
68
- function H(o, e, r) {
69
- return class extends a {
68
+ function L(o, n, r) {
69
+ return class extends T {
70
70
  getId() {
71
71
  return o;
72
72
  }
73
- getTargetNodes(n) {
74
- if (!e || !r)
75
- return [n];
76
- const t = n.closest(r);
77
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
73
+ getTargetNodes(e) {
74
+ if (!n || !r)
75
+ return [e];
76
+ const t = e.closest(r);
77
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
78
78
  }
79
79
  /**
80
80
  * Mirrors the picked background onto each target cell as an INLINE style.
@@ -85,196 +85,148 @@ function H(o, e, r) {
85
85
  * (SD-143023). Writing the inline here keeps it the single source of truth and in
86
86
  * sync on every edit. Merged into the parent control's single patch (no extra apply).
87
87
  */
88
- getAdditionalModifications(n) {
89
- const t = this.getTargetNodes(n);
88
+ getAdditionalModifications(e) {
89
+ const t = this.getTargetNodes(e);
90
90
  if (!t.length)
91
91
  return;
92
- const s = this.api.getValues()[g], i = !s || f.has(s), l = this.api.getDocumentModifier();
92
+ const s = this.api.getValues()[_], i = !s || E.has(s), c = this.api.getDocumentModifier();
93
93
  return t.forEach((u) => {
94
- const c = l.modifyHtml(u);
95
- i ? c.removeStyle("background-color") : c.setStyle("background-color", s);
96
- }), l;
94
+ const l = c.modifyHtml(u);
95
+ i ? l.removeStyle("background-color") : l.setStyle("background-color", s);
96
+ }), c;
97
97
  }
98
98
  };
99
99
  }
100
- function K(o) {
101
- const e = E.find((n) => n in o);
102
- if (!e)
103
- return;
104
- const r = o[e];
105
- return typeof r == "string" ? r : "";
106
- }
107
- function z(o, e) {
108
- return e.startsWith(".") && "hasClass" in o && o.hasClass(e.slice(1));
109
- }
110
- function d(o, e) {
111
- try {
112
- return z(o, e) ? o : o.closest(e) ?? void 0;
113
- } catch {
114
- return;
115
- }
116
- }
117
- function V(o, e) {
118
- return class extends a {
100
+ function U(o, n, r) {
101
+ return class extends B {
119
102
  getId() {
120
103
  return o;
121
104
  }
122
- /** The parent control renders its own generic title; restore the block-level wording. */
123
- getLabels() {
124
- return { title: this.api.translate("Block Background Color") };
125
- }
126
- getTargetNodes(r) {
127
- const n = d(r, e);
128
- return n ? [n] : [];
129
- }
130
- /**
131
- * Writes the picked background onto the block as an inline style plus a `bgcolor`
132
- * attribute. This is the whole mechanism, not a mirror: the parent control's own
133
- * write never reaches the block element (verified at runtime). `bgcolor` is the
134
- * channel Outlook honours on a `<td>`, and matches what the migrator emits.
135
- */
136
- getAdditionalModifications(r) {
137
- const n = d(r, e);
138
- if (!n)
139
- return;
140
- const t = K(this.api.getValues());
141
- if (t === void 0)
142
- return;
143
- const s = !t || f.has(t), i = this.api.getDocumentModifier(), l = i.modifyHtml(n);
144
- return s ? l.removeStyle("background-color").removeAttribute("bgcolor") : l.setStyle("background-color", t).setAttribute("bgcolor", t), i;
105
+ getTargetNodes(e) {
106
+ if (!n || !r)
107
+ return [e];
108
+ const t = e.closest(r);
109
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
145
110
  }
146
111
  };
147
112
  }
148
- function w(o, e, r) {
149
- return class extends I {
113
+ function Y(o, n, r) {
114
+ return class extends M {
150
115
  getId() {
151
116
  return o;
152
117
  }
153
- getTargetNodes(n) {
154
- if (!e || !r)
155
- return [n];
156
- const t = n.closest(r);
157
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
118
+ getTargetNodes(e) {
119
+ return [e];
158
120
  }
159
121
  };
160
122
  }
161
- function W(o, e, r) {
162
- return class extends _ {
123
+ function w(o, n, r = ".ins-recommendation-product-container") {
124
+ return class extends I {
163
125
  getId() {
164
126
  return o;
165
127
  }
166
- getTargetNodes(n) {
167
- return [n];
128
+ getTargetNodes(e) {
129
+ const t = e.closest(r);
130
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
168
131
  }
169
132
  };
170
133
  }
171
- function X(o, e, r = ".ins-recommendation-product-container") {
172
- return class extends A {
134
+ function G(o, n, r = ".ins-recommendation-product-container") {
135
+ return class extends b {
173
136
  getId() {
174
137
  return o;
175
138
  }
176
- getTargetNodes(n) {
177
- const t = n.closest(r);
178
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
139
+ getTargetNodes(e) {
140
+ const t = e.closest(r);
141
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
179
142
  }
180
143
  };
181
144
  }
182
- function j(o, e, r = ".ins-recommendation-product-container") {
183
- return class extends h {
145
+ function H(o, n, r = ".ins-recommendation-product-container") {
146
+ return class extends S {
184
147
  getId() {
185
148
  return o;
186
149
  }
187
- getTargetNodes(n) {
188
- const t = n.closest(r);
189
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
150
+ getTargetNodes(e) {
151
+ const t = e.closest(r);
152
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
190
153
  }
191
154
  };
192
155
  }
193
- function J(o, e, r = ".ins-recommendation-product-container") {
194
- return class extends k {
156
+ function V(o, n, r = ".ins-recommendation-product-container") {
157
+ return class extends A {
195
158
  getId() {
196
159
  return o;
197
160
  }
198
- getTargetNodes(n) {
199
- const t = n.closest(r);
200
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
161
+ getTargetNodes(e) {
162
+ const t = e.closest(r);
163
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
201
164
  }
202
165
  };
203
166
  }
204
- function Q(o, e, r = ".ins-recommendation-product-container") {
167
+ function W(o, n, r = ".ins-recommendation-product-container") {
205
168
  return class extends N {
206
169
  getId() {
207
170
  return o;
208
171
  }
209
- getTargetNodes(n) {
210
- const t = n.closest(r);
211
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
212
- }
213
- };
214
- }
215
- function Z(o, e, r = ".ins-recommendation-product-container") {
216
- return class extends p {
217
- getId() {
218
- return o;
219
- }
220
- getTargetNodes(n) {
221
- const t = n.closest(r);
222
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
172
+ getTargetNodes(e) {
173
+ const t = e.closest(r);
174
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
223
175
  }
224
176
  };
225
177
  }
226
- function tt(o, e, r = ".ins-recommendation-product-container") {
178
+ function X(o, n, r = ".ins-recommendation-product-container") {
227
179
  return class extends q {
228
180
  getId() {
229
181
  return o;
230
182
  }
231
- getTargetNodes(n) {
232
- const t = n.closest(r);
233
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
183
+ getTargetNodes(e) {
184
+ const t = e.closest(r);
185
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
234
186
  }
235
187
  };
236
188
  }
237
- function et(o, e, r = ".ins-recommendation-product-container") {
189
+ function j(o, n, r = ".ins-recommendation-product-container") {
238
190
  return class extends $ {
239
191
  getId() {
240
192
  return o;
241
193
  }
242
- getTargetNodes(n) {
243
- const t = n.closest(r);
244
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
194
+ getTargetNodes(e) {
195
+ const t = e.closest(r);
196
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
245
197
  }
246
198
  };
247
199
  }
248
- function nt(o, e, r = ".ins-recommendation-product-container") {
249
- return class extends F {
200
+ function J(o, n, r = ".ins-recommendation-product-container") {
201
+ return class extends k {
250
202
  getId() {
251
203
  return o;
252
204
  }
253
- getTargetNodes(n) {
254
- const t = n.closest(r);
255
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
205
+ getTargetNodes(e) {
206
+ const t = e.closest(r);
207
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
256
208
  }
257
209
  };
258
210
  }
259
- function rt(o, e, r = ".ins-recommendation-product-container") {
260
- return class extends v {
211
+ function Q(o, n, r = ".ins-recommendation-product-container") {
212
+ return class extends p {
261
213
  getId() {
262
214
  return o;
263
215
  }
264
- getTargetNodes(n) {
265
- const t = n.closest(r);
266
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
216
+ getTargetNodes(e) {
217
+ const t = e.closest(r);
218
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
267
219
  }
268
220
  };
269
221
  }
270
- function ot(o, e, r) {
271
- return class extends M {
222
+ function Z(o, n, r) {
223
+ return class extends h {
272
224
  getId() {
273
225
  return o;
274
226
  }
275
- getTargetNodes(n) {
276
- const t = n.closest(r);
277
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
227
+ getTargetNodes(e) {
228
+ const t = e.closest(r);
229
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
278
230
  }
279
231
  /**
280
232
  * Propagates Bold/Italic to ALL product buttons, not just the focused one.
@@ -286,58 +238,58 @@ function ot(o, e, r) {
286
238
  * (`buttonTextStyleForm.{bold,italic}`) because the patched node isn't updated yet
287
239
  * when this runs. Returned modifications are merged into the parent control's patch.
288
240
  */
289
- getAdditionalModifications(n) {
290
- const t = n.closest(r);
241
+ getAdditionalModifications(e) {
242
+ const t = e.closest(r);
291
243
  if (!t)
292
244
  return;
293
- const s = t.querySelectorAll(`[esd-extension-block-id="${e}"] a.es-button`);
245
+ const s = t.querySelectorAll(`[esd-extension-block-id="${n}"] a.es-button`);
294
246
  if (!s.length)
295
247
  return;
296
- const i = this.api.getValues()[O];
248
+ const i = this.api.getValues()[R];
297
249
  if (!i)
298
250
  return;
299
- const l = i.bold ? "bold" : "normal", u = i.italic ? "italic" : "normal", c = this.api.getDocumentModifier();
300
- return s.forEach((x) => {
301
- c.modifyHtml(x).setStyle("font-weight", l).setStyle("font-style", u);
302
- }), c;
251
+ const c = i.bold ? "bold" : "normal", u = i.italic ? "italic" : "normal", l = this.api.getDocumentModifier();
252
+ return s.forEach((d) => {
253
+ l.modifyHtml(d).setStyle("font-weight", c).setStyle("font-style", u);
254
+ }), l;
303
255
  }
304
256
  };
305
257
  }
306
- function st(o, e, r) {
307
- return class extends R {
258
+ function tt(o, n, r) {
259
+ return class extends F {
308
260
  getId() {
309
261
  return o;
310
262
  }
311
- getTargetNodes(n) {
312
- const t = n.closest(r);
313
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
263
+ getTargetNodes(e) {
264
+ const t = e.closest(r);
265
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
314
266
  }
315
267
  };
316
268
  }
317
- function it(o, e, r) {
318
- return class extends S {
269
+ function et(o, n, r) {
270
+ return class extends m {
319
271
  getId() {
320
272
  return o;
321
273
  }
322
- getTargetNodes(n) {
274
+ getTargetNodes(e) {
323
275
  try {
324
- const t = n.closest(r);
325
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
276
+ const t = e.closest(r);
277
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
326
278
  } catch {
327
279
  return [];
328
280
  }
329
281
  }
330
282
  };
331
283
  }
332
- function lt(o, e, r) {
333
- return class extends b {
284
+ function nt(o, n, r) {
285
+ return class extends y {
334
286
  getId() {
335
287
  return o;
336
288
  }
337
- getTargetNodes(n) {
289
+ getTargetNodes(e) {
338
290
  try {
339
- const t = n.closest(r);
340
- return t ? t.querySelectorAll(`[esd-extension-block-id="${e}"]`) : [];
291
+ const t = e.closest(r);
292
+ return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
341
293
  } catch {
342
294
  return [];
343
295
  }
@@ -345,26 +297,25 @@ function lt(o, e, r) {
345
297
  };
346
298
  }
347
299
  export {
348
- V as createBlockBackgroundColorControl,
349
- X as createButtonAlignControl,
350
- J as createButtonBorderControl,
351
- Q as createButtonBorderRadiusControl,
352
- j as createButtonColorControl,
353
- st as createButtonFitToContainerControl,
354
- Z as createButtonFontFamilyControl,
355
- tt as createButtonMarginsControl,
356
- et as createButtonPaddingsControl,
357
- nt as createButtonTextControl,
358
- rt as createButtonTextSizeControl,
359
- ot as createButtonTextStyleAndFontColorControl,
360
- lt as createImageMarginsControl,
361
- it as createImageSizeControl,
362
- w as createPaddingsControl,
363
- L as createTextAlignControl,
364
- H as createTextBackgroundColorControl,
365
- P as createTextColorControl,
366
- G as createTextFontFamilyControl,
367
- W as createTextLineSpacingControl,
368
- U as createTextSizeControl,
369
- Y as createTextStyleControl
300
+ w as createButtonAlignControl,
301
+ H as createButtonBorderControl,
302
+ V as createButtonBorderRadiusControl,
303
+ G as createButtonColorControl,
304
+ tt as createButtonFitToContainerControl,
305
+ W as createButtonFontFamilyControl,
306
+ X as createButtonMarginsControl,
307
+ j as createButtonPaddingsControl,
308
+ J as createButtonTextControl,
309
+ Q as createButtonTextSizeControl,
310
+ Z as createButtonTextStyleAndFontColorControl,
311
+ nt as createImageMarginsControl,
312
+ et as createImageSizeControl,
313
+ U as createPaddingsControl,
314
+ z as createTextAlignControl,
315
+ L as createTextBackgroundColorControl,
316
+ v as createTextColorControl,
317
+ K as createTextFontFamilyControl,
318
+ Y as createTextLineSpacingControl,
319
+ P as createTextSizeControl,
320
+ D as createTextStyleControl
370
321
  };
@@ -3,7 +3,6 @@
3
3
  * These IDs are returned by the getId() method of each control
4
4
  */
5
5
  export declare enum RecommendationControlId {
6
- BLOCK_BACKGROUND = "recommendation-block-background-color-control",
7
6
  BUTTON_ALIGN = "recommendation-block-button-align-control",
8
7
  BUTTON_BORDER = "recommendation-block-button-border-control",
9
8
  BUTTON_BORDER_RADIUS = "recommendation-block-button-border-radius-control",
@@ -20,7 +20,6 @@ export { ButtonControls } from './button';
20
20
  export { ImageControls } from './image';
21
21
  export { CustomAttributeControls } from './customAttribute';
22
22
  export { SpacingControl, SPACING_CONTROL_ID } from './spacing';
23
- export { BlockBackgroundColorControl } from './blockBackground';
24
23
  export { CardBackgroundColorControl, CARD_BACKGROUND_COLOR_CONTROL_ID } from './cardBackground';
25
24
  export { RecommendationCardCompositionControl, COMPOSITION_CONTROL_BLOCK_ID } from './cardComposition';
26
25
  export { SyncInfoMessageControl, SYNC_INFO_MESSAGE_CONTROL_ID } from './syncInfoMessage';
@@ -115,35 +115,6 @@ export declare function createTextBackgroundColorControl(controlId: string, targ
115
115
  isVisible(_node: ImmutableHtmlNode): boolean;
116
116
  };
117
117
  };
118
- /**
119
- * Factory function to create a background color control for a whole extension block.
120
- *
121
- * Stripo's built-in block-background control resolves its own target and descends to the
122
- * nearest `.esd-block-text`, which inside a Recommendation block is the title cell rather
123
- * than the block itself (SD-145082). Overriding `getTargetNodes` moves that resolution here
124
- * so the color lands on the block `<td>` only — inner text blocks keep their own controls.
125
- */
126
- export declare function createBlockBackgroundColorControl(controlId: string, blockRootSelector?: string): {
127
- new (): {
128
- getId(): string;
129
- /** The parent control renders its own generic title; restore the block-level wording. */
130
- getLabels(): {
131
- title: string;
132
- };
133
- getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
134
- /**
135
- * Writes the picked background onto the block as an inline style plus a `bgcolor`
136
- * attribute. This is the whole mechanism, not a mirror: the parent control's own
137
- * write never reaches the block element (verified at runtime). `bgcolor` is the
138
- * channel Outlook honours on a `<td>`, and matches what the migrator emits.
139
- */
140
- getAdditionalModifications(root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
141
- getParentControlId(): string;
142
- api: import("@stripoinc/ui-editor-extensions").ControlApi;
143
- getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
144
- isVisible(_node: ImmutableHtmlNode): boolean;
145
- };
146
- };
147
118
  /**
148
119
  * Factory function to create paddings controls for different block elements
149
120
  * When targetBlockId and containerSelector are not provided, applies directly to root
@@ -3,8 +3,12 @@ const n = `.base-input {
3
3
  border-radius: 4px;
4
4
  background-color: var(--guido-color-gray-0);
5
5
  align-items: center;
6
- height: 40px;
7
- max-height: 40px;
6
+ /* 40px is a floor, never a cap: \`.base-input\` is shared by every settings field,
7
+ including Stripo's own auto-height inputs (e.g. the link field) that expand on
8
+ focus. A fixed max-height clamped their inner box; keep 40px only as the floor. */
9
+ min-height: 40px;
10
+ height: auto;
11
+ max-height: none;
8
12
  box-sizing: content-box;
9
13
  outline: none;
10
14
  resize: vertical;
@@ -36,11 +40,6 @@ ue-contenteditable .base-input {
36
40
  line-height: 24px;
37
41
  }
38
42
 
39
- /* Image link input is auto-height; lift the fixed 40px cap so it can grow. */
40
- ue-contenteditable.link-autoheight-contenteditable .base-input {
41
- max-height: none;
42
- }
43
-
44
43
  ue-icon-component.icon-button.icon-clear-input {
45
44
  right: 2px;
46
45
  top: 2px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.12.0-beta.b9402d1",
3
+ "version": "3.12.0-beta.cfe6433",
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,10 +0,0 @@
1
- import { createBlockBackgroundColorControl as o } from "../../../controlFactories.js";
2
- import { RecommendationControlId as r } from "../../constants/controlIds.js";
3
- import { BLOCK_ROOT_SELECTOR as t } from "../../constants/selectors.js";
4
- const c = o(
5
- r.BLOCK_BACKGROUND,
6
- t
7
- );
8
- export {
9
- c as BlockBackgroundColorControl
10
- };
@@ -1,14 +0,0 @@
1
- export declare const BlockBackgroundColorControl: {
2
- new (): {
3
- getId(): string;
4
- getLabels(): {
5
- title: string;
6
- };
7
- getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
8
- getAdditionalModifications(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
9
- getParentControlId(): string;
10
- api: import("@stripoinc/ui-editor-extensions").ControlApi;
11
- getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
12
- isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
13
- };
14
- };