@wix/editor-react-components 1.2828.0 → 1.2830.0

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 (30) hide show
  1. package/dist/site/components/AccordionComponent/manifest.js +9 -15
  2. package/dist/site/components/AnimatedIcon/manifest.js +6 -11
  3. package/dist/site/components/AudioPlayer/manifest.js +3 -6
  4. package/dist/site/components/AudioPlayer/manifestConfigs/controlsConfig.d.ts +0 -1
  5. package/dist/site/components/Breadcrumbs/manifest.js +6 -9
  6. package/dist/site/components/Button/manifest.js +8 -14
  7. package/dist/site/components/Checkbox/manifest.js +10 -15
  8. package/dist/site/components/CheckboxGroup/manifest.js +10 -15
  9. package/dist/site/components/DatePicker/constants.d.ts +2 -3
  10. package/dist/site/components/DatePicker/manifest.js +5 -8
  11. package/dist/site/components/Dropdown/manifest.js +13 -21
  12. package/dist/site/components/HTMLComponent/component.js +2 -1
  13. package/dist/site/components/LinkBar/manifest.js +3 -6
  14. package/dist/site/components/Menu/manifest.js +14 -23
  15. package/dist/site/components/RadioButtons/manifest.js +10 -15
  16. package/dist/site/components/ShareButtons/manifest.js +10 -17
  17. package/dist/site/components/Tabs/manifest.js +4 -8
  18. package/dist/site/components/TextBox/manifest.js +10 -15
  19. package/dist/site/components/TextInput/manifest.js +0 -2
  20. package/dist/site/components/TimePicker/manifest.js +7 -9
  21. package/dist/site/components/chunks/constants18.js +2 -2
  22. package/dist/site/components/chunks/constants24.js +2 -2
  23. package/dist/site/components/chunks/constants31.js +2 -2
  24. package/dist/site/components/chunks/constants39.js +2 -2
  25. package/dist/site/components/chunks/constants40.js +2 -2
  26. package/dist/site/components/chunks/constants43.js +2 -2
  27. package/dist/site/components/chunks/hls.js +32303 -26955
  28. package/dist/site/components/chunks/manifest.js +1 -3
  29. package/package.json +3 -3
  30. package/dist/site/components/chunks/specs.js +0 -8
@@ -1,8 +1,6 @@
1
1
  import { C as CSS_PROPERTIES, b as DISPLAY_GROUPS, D as DATA, L as LAYOUT, c as ContainerType, a as ACTIONS, E as ELEMENTS, N as NativeStateType, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { D as DesignStates, b as DISPLAY_NAMES, c as accordionManifestDefaults, C as CONTAINER_INITIAL_HEIGHT } from "../chunks/constants44.js";
2
+ import { b as DISPLAY_NAMES, c as accordionManifestDefaults, C as CONTAINER_INITIAL_HEIGHT, D as DesignStates } from "../chunks/constants44.js";
3
3
  import { a as manifestFocusable, c as manifestMouseHover, d as manifestClickable } from "../chunks/manifestSdkMixins.js";
4
- import { w as withSpec } from "../chunks/manifest.js";
5
- import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
6
4
  const options = [
7
5
  {
8
6
  value: "Start",
@@ -97,17 +95,15 @@ const manifest = {
97
95
  boxShadow: {}
98
96
  },
99
97
  states: {
100
- hover: withSpec({
101
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
98
+ hover: {
102
99
  displayName: DesignStates.accordionItem.hover.displayName,
103
100
  className: DesignStates.accordionItem.hover.className,
104
101
  pseudoClass: NativeStateType.hover
105
- }),
106
- selected: withSpec({
107
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
102
+ },
103
+ selected: {
108
104
  displayName: DesignStates.accordionItem.selected.displayName,
109
105
  className: DesignStates.accordionItem.selected.className
110
- })
106
+ }
111
107
  }
112
108
  }
113
109
  },
@@ -175,17 +171,15 @@ const manifest = {
175
171
  "icon-position": iconPositionConfig
176
172
  },
177
173
  states: {
178
- hover: withSpec({
179
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
174
+ hover: {
180
175
  displayName: DesignStates.itemTitle.hover.displayName,
181
176
  className: DesignStates.itemTitle.hover.className,
182
177
  pseudoClass: NativeStateType.hover
183
- }),
184
- selected: withSpec({
185
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
178
+ },
179
+ selected: {
186
180
  displayName: DesignStates.itemTitle.selected.displayName,
187
181
  className: DesignStates.itemTitle.selected.className
188
- })
182
+ }
189
183
  },
190
184
  displayGroups: {
191
185
  layoutGroup: {
@@ -1,7 +1,5 @@
1
1
  import { b as DISPLAY_GROUPS, N as NativeStateType, C as CSS_PROPERTIES, D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { c as DesignStates, d as DisplayNames, D as DEFAULT_ANIMATION_DURATION } from "../chunks/constants19.js";
3
- import { w as withSpec } from "../chunks/manifest.js";
4
- import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
5
3
  const displayConfig = {
6
4
  displayValues: ["none", "block"]
7
5
  };
@@ -103,23 +101,20 @@ const manifest = {
103
101
  }
104
102
  },
105
103
  states: {
106
- hover: withSpec({
107
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
104
+ hover: {
108
105
  displayName: DesignStates.root.hover.displayName,
109
106
  className: DesignStates.root.hover.className,
110
107
  pseudoClass: NativeStateType.hover
111
- }),
112
- disabled: withSpec({
113
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
108
+ },
109
+ disabled: {
114
110
  displayName: DesignStates.root.disabled.displayName,
115
111
  className: DesignStates.root.disabled.className,
116
112
  pseudoClass: NativeStateType.disabled
117
- }),
118
- selected: withSpec({
119
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
113
+ },
114
+ selected: {
120
115
  displayName: DesignStates.root.selected.displayName,
121
116
  className: DesignStates.root.selected.className
122
- })
117
+ }
123
118
  },
124
119
  helpArticle: {
125
120
  kbId: "b724e3de-3d89-4a75-8a48-1f01873e3c66"
@@ -1,9 +1,7 @@
1
1
  import { b as DISPLAY_GROUPS, N as NativeStateType, C as CSS_PROPERTIES, E as ELEMENTS, D as DATA, I as INTERACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { c as manifestMouseHover, f as manifestMediaProgress, e as manifestPlayable } from "../chunks/manifestSdkMixins.js";
3
- import { D as DesignStates, a as DisplayNames, s as selectors, b as borderDefaultValue } from "../chunks/constants43.js";
3
+ import { D as DisplayNames, a as DesignStates, s as selectors, b as borderDefaultValue } from "../chunks/constants43.js";
4
4
  import manifest$1 from "../Image3/manifest.js";
5
- import { w as withSpec } from "../chunks/manifest.js";
6
- import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
7
5
  const controlsConfig = {
8
6
  elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
9
7
  inlineElement: {
@@ -41,12 +39,11 @@ const controlsConfig = {
41
39
  }
42
40
  },
43
41
  states: {
44
- hover: withSpec({
45
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
42
+ hover: {
46
43
  displayName: DesignStates.controls.hover.displayName,
47
44
  className: DesignStates.controls.hover.className,
48
45
  pseudoClass: NativeStateType.hover
49
- })
46
+ }
50
47
  },
51
48
  displayGroups: {
52
49
  fillColors: {
@@ -37,7 +37,6 @@ export declare const controlsConfig: {
37
37
  };
38
38
  states: {
39
39
  hover: {
40
- spec: string;
41
40
  displayName: "Hover";
42
41
  className: "audio-player__controls--hover";
43
42
  pseudoClass: NATIVE_STATE_TYPE;
@@ -1,8 +1,7 @@
1
1
  import { L as LAYOUT, a as ACTIONS, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, E as ELEMENTS, N as NativeStateType, D as DATA, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { g as getTranslationResources } from "../chunks/translationResources.js";
3
- import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
4
- import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
5
- import { D as DesignStates, a as DisplayNames, h as homepageModeValues, b as defaultStateValues, e as separatorValues, c as componentMetadata, s as semanticClassNames } from "../chunks/constants41.js";
3
+ import { g as getSelector } from "../chunks/manifest.js";
4
+ import { a as DisplayNames, h as homepageModeValues, b as defaultStateValues, e as separatorValues, D as DesignStates, c as componentMetadata, s as semanticClassNames } from "../chunks/constants41.js";
6
5
  import { c as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
7
6
  const manifest = {
8
7
  id: componentMetadata.id,
@@ -103,17 +102,15 @@ const manifest = {
103
102
  }
104
103
  },
105
104
  states: {
106
- hover: withSpec({
107
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
105
+ hover: {
108
106
  displayName: DesignStates.item.hover.displayName,
109
107
  className: DesignStates.item.hover.className,
110
108
  pseudoClass: NativeStateType.hover
111
- }),
112
- selected: withSpec({
113
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
109
+ },
110
+ selected: {
114
111
  displayName: DesignStates.item.selected.displayName,
115
112
  className: DesignStates.item.selected.className
116
- })
113
+ }
117
114
  }
118
115
  }
119
116
  },
@@ -1,8 +1,6 @@
1
1
  import { a as ACTIONS, E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, I as INTERACTIONS, D as DATA, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { D as DesignStates, b as DisplayNames, c as DEFAULT_ICON_POSITION, C as COMPONENT_TYPE } from "../chunks/constants21.js";
3
3
  import { a as manifestFocusable, c as manifestMouseHover, d as manifestClickable } from "../chunks/manifestSdkMixins.js";
4
- import { w as withSpec } from "../chunks/manifest.js";
5
- import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
6
4
  const displayConfig = {
7
5
  displayValues: ["none", "block"]
8
6
  };
@@ -175,19 +173,17 @@ const manifest = {
175
173
  }
176
174
  },
177
175
  states: {
178
- hover: withSpec({
179
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
176
+ hover: {
180
177
  displayName: DesignStates.root.hover.displayName,
181
178
  className: DesignStates.root.hover.className,
182
179
  pseudoClass: NativeStateType.hover
183
- }),
184
- disabled: withSpec({
185
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
180
+ },
181
+ disabled: {
186
182
  displayName: DesignStates.root.disabled.displayName,
187
183
  className: DesignStates.root.disabled.className,
188
184
  pseudoClass: NativeStateType.disabled,
189
185
  props: { disabled: true }
190
- })
186
+ }
191
187
  },
192
188
  data: {
193
189
  link: {
@@ -271,18 +267,16 @@ const manifest = {
271
267
  }
272
268
  },
273
269
  states: {
274
- hover: withSpec({
275
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
270
+ hover: {
276
271
  displayName: DesignStates.label.hover.displayName,
277
272
  className: DesignStates.label.hover.className,
278
273
  pseudoClass: NativeStateType.hover
279
- }),
280
- disabled: withSpec({
281
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
274
+ },
275
+ disabled: {
282
276
  displayName: DesignStates.label.disabled.displayName,
283
277
  className: DesignStates.label.disabled.className,
284
278
  pseudoClass: NativeStateType.disabled
285
- })
279
+ }
286
280
  }
287
281
  }
288
282
  },
@@ -1,7 +1,6 @@
1
1
  import { E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, D as DATA, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { D as DesignStates, b as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants40.js";
3
- import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
4
- import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
2
+ import { D as DisplayNames, b as DesignStates, d as defaultValues, s as selectors } from "../chunks/constants40.js";
3
+ import { g as getSelector } from "../chunks/manifest.js";
5
4
  import { a as manifestFocusable, b as manifestChangeable } from "../chunks/manifestSdkMixins.js";
6
5
  import { m as manifestValidation } from "../chunks/manifest2.js";
7
6
  const manifest = {
@@ -143,31 +142,27 @@ const manifest = {
143
142
  }
144
143
  },
145
144
  states: {
146
- hover: withSpec({
147
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
145
+ hover: {
148
146
  displayName: DesignStates.indicator.hover.displayName,
149
147
  className: DesignStates.indicator.hover.className,
150
148
  pseudoClass: NativeStateType.hover
151
- }),
152
- focus: withSpec({
153
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
149
+ },
150
+ focus: {
154
151
  displayName: DesignStates.indicator.focus.displayName,
155
152
  className: DesignStates.indicator.focus.className,
156
153
  pseudoClass: NativeStateType.focus
157
- }),
158
- disabled: withSpec({
159
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
154
+ },
155
+ disabled: {
160
156
  displayName: DesignStates.indicator.disabled.displayName,
161
157
  className: DesignStates.indicator.disabled.className,
162
158
  pseudoClass: NativeStateType.disabled,
163
159
  props: { disabled: true }
164
- }),
165
- invalid: withSpec({
166
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
160
+ },
161
+ invalid: {
167
162
  displayName: DesignStates.indicator.invalid.displayName,
168
163
  className: DesignStates.indicator.invalid.className,
169
164
  pseudoClass: NativeStateType.invalid
170
- })
165
+ }
171
166
  }
172
167
  }
173
168
  },
@@ -1,7 +1,6 @@
1
1
  import { E as ELEMENTS, C as CSS_PROPERTIES, N as NativeStateType, b as DISPLAY_GROUPS, D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { D as DesignStates, c as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants39.js";
3
- import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
4
- import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
2
+ import { D as DisplayNames, c as DesignStates, d as defaultValues, s as selectors } from "../chunks/constants39.js";
3
+ import { g as getSelector } from "../chunks/manifest.js";
5
4
  import { a as manifestFocusable, b as manifestChangeable } from "../chunks/manifestSdkMixins.js";
6
5
  import { m as manifestValidation } from "../chunks/manifest2.js";
7
6
  const manifest = {
@@ -191,31 +190,27 @@ const manifest = {
191
190
  removable: false
192
191
  },
193
192
  states: {
194
- hover: withSpec({
195
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
193
+ hover: {
196
194
  displayName: DesignStates.indicator.hover.displayName,
197
195
  className: DesignStates.indicator.hover.className,
198
196
  pseudoClass: NativeStateType.hover
199
- }),
200
- focus: withSpec({
201
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
197
+ },
198
+ focus: {
202
199
  displayName: DesignStates.indicator.focus.displayName,
203
200
  className: DesignStates.indicator.focus.className,
204
201
  pseudoClass: NativeStateType.focus
205
- }),
206
- disabled: withSpec({
207
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
202
+ },
203
+ disabled: {
208
204
  displayName: DesignStates.indicator.disabled.displayName,
209
205
  className: DesignStates.indicator.disabled.className,
210
206
  pseudoClass: NativeStateType.disabled,
211
207
  props: { disabled: true }
212
- }),
213
- invalid: withSpec({
214
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
208
+ },
209
+ invalid: {
215
210
  displayName: DesignStates.indicator.invalid.displayName,
216
211
  className: DesignStates.indicator.invalid.className,
217
212
  pseudoClass: NativeStateType.invalid
218
- })
213
+ }
219
214
  },
220
215
  cssProperties: {
221
216
  borderRadius: {
@@ -53,9 +53,8 @@ export declare const defaultValues: {
53
53
  /** Shown on stage while the Error design state is selected. */
54
54
  export declare const PREVIEW_ERROR_MESSAGE = "Error message";
55
55
  /**
56
- * Design states. Wired in the manifest via `withSpec(IS_SUPPORT_DESIGN_STATE_SPEC)`
57
- * so they stay inert until the Conductor spec is declared. BEM classNames are the
58
- * editor's preview hooks; the live site uses the matching native pseudo-classes.
56
+ * BEM classNames are the editor's preview hooks; the live site uses the matching
57
+ * native pseudo-classes.
59
58
  */
60
59
  export declare const DesignStates: {
61
60
  root: {
@@ -1,8 +1,7 @@
1
1
  import { C as CSS_PROPERTIES, N as NativeStateType, b as DISPLAY_GROUPS, D as DATA, E as ELEMENTS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { g as getTranslationResources } from "../chunks/translationResources.js";
3
- import { D as DesignStates, P as PREVIEW_CALENDAR_OPEN, d as defaultValues, b as DisplayNames, c as Descriptions, e as PREVIEW_ERROR_MESSAGE, C as COMPONENT_TYPE, s as selectors } from "../chunks/constants37.js";
4
- import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
5
- import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
3
+ import { P as PREVIEW_CALENDAR_OPEN, D as DesignStates, d as defaultValues, b as DisplayNames, c as Descriptions, e as PREVIEW_ERROR_MESSAGE, C as COMPONENT_TYPE, s as selectors } from "../chunks/constants37.js";
4
+ import { g as getSelector } from "../chunks/manifest.js";
6
5
  const basePresetName = "baseDatePicker";
7
6
  const presetFont = (size) => ({
8
7
  defaultValue: `normal normal 400 ${size}/1.3em 'Wix Madefor Text', sans-serif`
@@ -27,8 +26,7 @@ const presetBox = {
27
26
  paddingInlineStart: zero,
28
27
  paddingInlineEnd: zero
29
28
  };
30
- const designState = (s) => withSpec({
31
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
29
+ const designState = (s) => ({
32
30
  displayName: s.displayName,
33
31
  className: s.className
34
32
  });
@@ -394,13 +392,12 @@ const manifest = {
394
392
  // Calendar button, Dates). A root Hover/Focus would restyle every part
395
393
  // whenever any of the component is hovered or focused.
396
394
  states: {
397
- disabled: withSpec({
398
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
395
+ disabled: {
399
396
  displayName: DesignStates.root.disabled.displayName,
400
397
  className: DesignStates.root.disabled.className,
401
398
  pseudoClass: NativeStateType.disabled,
402
399
  props: { disabled: true }
403
- }),
400
+ },
404
401
  // Editor-only: activating this state passes `previewCalendarOpen` so the
405
402
  // overlay parts (referenced via `visibleState`) are editable on canvas.
406
403
  [PREVIEW_CALENDAR_OPEN]: {
@@ -1,8 +1,6 @@
1
1
  import { b as DISPLAY_GROUPS, D as DATA, E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { g as getTranslationResources } from "../chunks/translationResources.js";
3
- import { D as DesignStates, a as DisplayNames, b as TEXT_PROP_STATIC_VALUE_MAX_LENGTH, F as FunctionalStateKeys, e as editorElementClassNames, C as COMPONENT_TYPE } from "../chunks/constants36.js";
4
- import { w as withSpec } from "../chunks/manifest.js";
5
- import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
3
+ import { a as DisplayNames, b as TEXT_PROP_STATIC_VALUE_MAX_LENGTH, F as FunctionalStateKeys, e as editorElementClassNames, D as DesignStates, C as COMPONENT_TYPE } from "../chunks/constants36.js";
6
4
  const basePresetName = "baseDropdown";
7
5
  const manifest = {
8
6
  id: "d46302be-0629-45c8-bdf3-cdb14c6457c8",
@@ -259,35 +257,31 @@ const manifest = {
259
257
  }
260
258
  },
261
259
  states: {
262
- hover: withSpec({
263
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
260
+ hover: {
264
261
  displayName: DesignStates.input.hover.displayName,
265
262
  className: DesignStates.input.hover.className,
266
263
  pseudoClass: NativeStateType.hover
267
- }),
268
- focus: withSpec({
269
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
264
+ },
265
+ focus: {
270
266
  displayName: DesignStates.input.focus.displayName,
271
267
  className: DesignStates.input.focus.className,
272
268
  pseudoClass: NativeStateType.focus
273
- }),
269
+ },
274
270
  // No native pseudo-class exists for "invalid" (Base UI's
275
271
  // Combobox.Trigger doesn't render as a real `<input>`) — this
276
272
  // state's export is scoped to this `className` instead, so
277
273
  // Dropdown.tsx applies it for real whenever `inErrorState` is true
278
274
  // (not just during design preview), same as Option's `selected`.
279
- error: withSpec({
280
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
275
+ error: {
281
276
  displayName: DesignStates.input.error.displayName,
282
277
  className: DesignStates.input.error.className
283
- }),
284
- disabled: withSpec({
285
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
278
+ },
279
+ disabled: {
286
280
  displayName: DesignStates.input.disabled.displayName,
287
281
  className: DesignStates.input.disabled.className,
288
282
  pseudoClass: NativeStateType.disabled,
289
283
  props: { disabled: true }
290
- })
284
+ }
291
285
  }
292
286
  }
293
287
  },
@@ -363,21 +357,19 @@ const manifest = {
363
357
  paddingInlineEnd: {}
364
358
  },
365
359
  states: {
366
- hover: withSpec({
367
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
360
+ hover: {
368
361
  displayName: DesignStates.option.hover.displayName,
369
362
  className: DesignStates.option.hover.className,
370
363
  pseudoClass: NativeStateType.hover
371
- }),
364
+ },
372
365
  // No native pseudo-class exists for "selected list item" — the
373
366
  // panel's export for this state is scoped to this `className`
374
367
  // instead, so Dropdown.tsx applies it for real whenever an
375
368
  // option is actually selected (not just during design preview).
376
- selected: withSpec({
377
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
369
+ selected: {
378
370
  displayName: DesignStates.option.selected.displayName,
379
371
  className: DesignStates.option.selected.className
380
- })
372
+ }
381
373
  },
382
374
  visibleState: {
383
375
  stateKey: FunctionalStateKeys.previewList,
@@ -9,7 +9,6 @@ import { d as defineStaticService } from "../chunks/staticService.js";
9
9
  import { E as EnvironmentDefinition } from "../chunks/index2.js";
10
10
  import { T as TranslationsDefinition } from "../chunks/index4.js";
11
11
  import { A as ALLOWED_PROTOCOLS, S as SANDBOX, C as COMPONENT_TYPE, H as HTML_COMPONENT_TITLE_KEY, a as ARIA_LABEL_NAMESPACE, L as LEGACY_HTML_COMPONENT_TITLE_KEY, b as HTML_COMPONENT_TITLE_DEFAULT, D as DEFAULT_CONSENT_POLICY, c as ConsentTranslations } from "../chunks/constants35.js";
12
- import { C as CLASS_NAME_ON_COMPONENT_ROOT_EXPERIMENT, M as MOVE_PREVIEW_IDENTITY_CLASSES_TO_ROOT_EXPERIMENT } from "../chunks/specs.js";
13
12
  const isBrowser = () => typeof window !== "undefined";
14
13
  function useIFrame({
15
14
  reducer = () => ({}),
@@ -172,6 +171,8 @@ const setProtocol = (url, staticHTMLComponentUrl) => {
172
171
  const link = url.split("//")[1];
173
172
  return alreadySet ? url : `${protocol}//${link}`;
174
173
  };
174
+ const CLASS_NAME_ON_COMPONENT_ROOT_EXPERIMENT = "classNameOnComponentRoot";
175
+ const MOVE_PREVIEW_IDENTITY_CLASSES_TO_ROOT_EXPERIMENT = "movePreviewIdentityClassesToRoot";
175
176
  const useHTMLComponentProps = ({
176
177
  props,
177
178
  isPreview,
@@ -1,9 +1,7 @@
1
1
  import { a as ACTIONS, D as DATA, M as MEDIA, N as NativeStateType, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, L as LAYOUT, I as INTERACTIONS, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { g as getTranslationResources } from "../chunks/translationResources.js";
3
- import { a as DesignStates, p as presets, b as DisplayNames, C as COMPONENT_TYPE } from "../chunks/constants31.js";
3
+ import { p as presets, a as DisplayNames, b as DesignStates, C as COMPONENT_TYPE } from "../chunks/constants31.js";
4
4
  import { c as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
5
- import { w as withSpec } from "../chunks/manifest.js";
6
- import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
7
5
  const manifest = {
8
6
  id: "241afef1-74bd-4a10-843f-ac4928c25882",
9
7
  type: COMPONENT_TYPE,
@@ -133,12 +131,11 @@ const manifest = {
133
131
  }
134
132
  },
135
133
  states: {
136
- hover: withSpec({
137
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
134
+ hover: {
138
135
  displayName: DesignStates.root.hover.displayName,
139
136
  className: DesignStates.root.hover.className,
140
137
  pseudoClass: NativeStateType.hover
141
- })
138
+ }
142
139
  },
143
140
  data: {
144
141
  a11y: {
@@ -1,8 +1,6 @@
1
1
  import { E as ELEMENTS, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, N as NativeStateType, a as ACTIONS, D as DATA, L as LAYOUT, I as INTERACTIONS, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { g as getTranslationResources } from "../chunks/translationResources.js";
3
3
  import { c as DesignStates, f as DisplayNames, s as selectors, g as DropdownAnchorPositions, h as DropdownAppliedStyleProperties, i as elementKeys, j as customActionKeys, k as MENU_ANIMATED_ICON_SPEC, m as states, p as presets, n as menuBuiltInActions, C as COMPONENT_TYPE } from "../chunks/constants27.js";
4
- import { w as withSpec } from "../chunks/manifest.js";
5
- import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
6
4
  import { c as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
7
5
  const dropdownItemConfig = {
8
6
  elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
@@ -14,17 +12,15 @@ const dropdownItemConfig = {
14
12
  removable: false
15
13
  },
16
14
  states: {
17
- hover: withSpec({
18
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
15
+ hover: {
19
16
  displayName: DesignStates.dropdownItem.hover.displayName,
20
17
  className: DesignStates.dropdownItem.hover.className,
21
18
  pseudoClass: NativeStateType.hover
22
- }),
23
- selected: withSpec({
24
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
19
+ },
20
+ selected: {
25
21
  displayName: DesignStates.dropdownItem.selected.displayName,
26
22
  className: DesignStates.dropdownItem.selected.className
27
- })
23
+ }
28
24
  },
29
25
  cssProperties: {
30
26
  background: {},
@@ -83,17 +79,15 @@ const dropdownSubItemConfig = {
83
79
  removable: false
84
80
  },
85
81
  states: {
86
- hover: withSpec({
87
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
82
+ hover: {
88
83
  displayName: DesignStates.dropdownSubItem.hover.displayName,
89
84
  className: DesignStates.dropdownSubItem.hover.className,
90
85
  pseudoClass: NativeStateType.hover
91
- }),
92
- selected: withSpec({
93
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
86
+ },
87
+ selected: {
94
88
  displayName: DesignStates.dropdownSubItem.selected.displayName,
95
89
  className: DesignStates.dropdownSubItem.selected.className
96
- })
90
+ }
97
91
  },
98
92
  cssProperties: {
99
93
  background: {},
@@ -519,12 +513,11 @@ const scrollButtonConfig = {
519
513
  }
520
514
  },
521
515
  states: {
522
- hover: withSpec({
523
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
516
+ hover: {
524
517
  displayName: DesignStates.scrollButton.hover.displayName,
525
518
  className: DesignStates.scrollButton.hover.className,
526
519
  pseudoClass: NativeStateType.hover
527
- })
520
+ }
528
521
  }
529
522
  }
530
523
  };
@@ -603,16 +596,14 @@ const itemConfig = {
603
596
  // Not native: the item must stay hovered while the pointer is over its
604
597
  // mega menu dropdown, which isn't a DOM descendant of the item, so real
605
598
  // :hover can't cover it — the className is toggled via JS instead
606
- hover: withSpec({
607
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
599
+ hover: {
608
600
  displayName: DesignStates.item.hover.displayName,
609
601
  className: DesignStates.item.hover.className
610
- }),
611
- selected: withSpec({
612
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
602
+ },
603
+ selected: {
613
604
  displayName: DesignStates.item.selected.displayName,
614
605
  className: DesignStates.item.selected.className
615
- })
606
+ }
616
607
  },
617
608
  cssProperties: {
618
609
  font: {},
@@ -1,7 +1,6 @@
1
1
  import { E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { D as DesignStates, c as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants24.js";
3
- import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
4
- import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
2
+ import { D as DisplayNames, c as DesignStates, d as defaultValues, s as selectors } from "../chunks/constants24.js";
3
+ import { g as getSelector } from "../chunks/manifest.js";
5
4
  import { a as manifestFocusable, b as manifestChangeable } from "../chunks/manifestSdkMixins.js";
6
5
  import { m as manifestValidation } from "../chunks/manifest2.js";
7
6
  const manifest = {
@@ -205,31 +204,27 @@ const manifest = {
205
204
  }
206
205
  },
207
206
  states: {
208
- hover: withSpec({
209
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
207
+ hover: {
210
208
  displayName: DesignStates.radio.hover.displayName,
211
209
  className: DesignStates.radio.hover.className,
212
210
  pseudoClass: NativeStateType.hover
213
- }),
214
- focus: withSpec({
215
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
211
+ },
212
+ focus: {
216
213
  displayName: DesignStates.radio.focus.displayName,
217
214
  className: DesignStates.radio.focus.className,
218
215
  pseudoClass: NativeStateType.focus
219
- }),
220
- disabled: withSpec({
221
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
216
+ },
217
+ disabled: {
222
218
  displayName: DesignStates.radio.disabled.displayName,
223
219
  className: DesignStates.radio.disabled.className,
224
220
  pseudoClass: NativeStateType.disabled,
225
221
  props: { disabled: true }
226
- }),
227
- invalid: withSpec({
228
- spec: IS_SUPPORT_DESIGN_STATE_SPEC,
222
+ },
223
+ invalid: {
229
224
  displayName: DesignStates.radio.invalid.displayName,
230
225
  className: DesignStates.radio.invalid.className,
231
226
  pseudoClass: NativeStateType.invalid
232
- })
227
+ }
233
228
  }
234
229
  }
235
230
  },