@wix/editor-react-components 1.2537.0 → 1.2539.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.
@@ -1,5 +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-6KMOHX3X.js";
2
- import { c as DesignStates, d as DisplayNames, D as DEFAULT_ANIMATION_DURATION } from "../chunks/constants21.js";
2
+ import { c as DesignStates, d as DisplayNames, D as DEFAULT_ANIMATION_DURATION } from "../chunks/constants19.js";
3
3
  import { w as withSpec } from "../chunks/manifest.js";
4
4
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
5
5
  const displayConfig = {
@@ -1,5 +1,5 @@
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-6KMOHX3X.js";
2
- import { c as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
2
+ import { c as manifestMouseHover, f as manifestMediaProgress, e as manifestPlayable } from "../chunks/manifestSdkMixins.js";
3
3
  import { D as DesignStates, a as DisplayNames, s as selectors, b as borderDefaultValue } from "../chunks/constants39.js";
4
4
  import manifest$1 from "../Image3/manifest.js";
5
5
  import { w as withSpec } from "../chunks/manifest.js";
@@ -234,22 +234,8 @@ const manifest = {
234
234
  ]
235
235
  }
236
236
  },
237
- onPlay: {
238
- dataType: DATA.DATA_TYPE.function,
239
- [DATA.DATA_TYPE.function]: {}
240
- },
241
- onPause: {
242
- dataType: DATA.DATA_TYPE.function,
243
- [DATA.DATA_TYPE.function]: {}
244
- },
245
- onEnded: {
246
- dataType: DATA.DATA_TYPE.function,
247
- [DATA.DATA_TYPE.function]: {}
248
- },
249
- onTimeupdate: {
250
- dataType: DATA.DATA_TYPE.function,
251
- [DATA.DATA_TYPE.function]: {}
252
- },
237
+ ...manifestPlayable(),
238
+ ...manifestMediaProgress(),
253
239
  ...manifestMouseHover()
254
240
  },
255
241
  displayGroups: {
@@ -1,5 +1,5 @@
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-6KMOHX3X.js";
2
- import { D as DesignStates, b as DisplayNames } from "../chunks/constants20.js";
2
+ import { D as DesignStates, b as DisplayNames } from "../chunks/constants21.js";
3
3
  import { m as manifestFocusable, c as manifestMouseHover, d as manifestClickable } from "../chunks/manifestSdkMixins.js";
4
4
  import { w as withSpec } from "../chunks/manifest.js";
5
5
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
@@ -1,7 +1,7 @@
1
1
  import { E as ELEMENTS, C as CSS_PROPERTIES, D as DATA, a as ACTIONS, I as INTERACTIONS, b as DISPLAY_GROUPS, L as LAYOUT, c as ContainerType, A as Archetype } from "../chunks/chunk-6KMOHX3X.js";
2
2
  import { g as getSelector } from "../chunks/manifest.js";
3
3
  import { c as DisplayNames, a as semanticClassNames, d as slideshowCssCustomPropertiesDefaults, e as slideshowCssPropertiesDefaults, s as slideshowDataDefaults } from "../chunks/Slideshow.semanticClassNames.js";
4
- import { c as manifestMouseHover, d as manifestClickable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
4
+ import { c as manifestMouseHover, d as manifestClickable, e as manifestPlayable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
5
5
  const navigationButtons = {
6
6
  elementType: ELEMENTS.ELEMENT_TYPE.refElement,
7
7
  refElement: {
@@ -318,14 +318,7 @@ const manifest = {
318
318
  defaultValue: slideshowDataDefaults.prevButtonLabel
319
319
  },
320
320
  ...manifestChangeable(),
321
- onPlay: {
322
- dataType: DATA.DATA_TYPE.function,
323
- [DATA.DATA_TYPE.function]: {}
324
- },
325
- onPause: {
326
- dataType: DATA.DATA_TYPE.function,
327
- [DATA.DATA_TYPE.function]: {}
328
- },
321
+ ...manifestPlayable(),
329
322
  ...manifestClickable(),
330
323
  ...manifestMouseHover()
331
324
  },
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect, useCallback, useMemo, useRef, useLayoutEffect } from "react";
3
3
  import { c as clsx } from "../chunks/clsx.js";
4
- import { O as OVERFLOW_BEHAVIOR, c as classes } from "../chunks/constants19.js";
4
+ import { O as OVERFLOW_BEHAVIOR, c as classes } from "../chunks/constants20.js";
5
5
  import { d as debounce } from "../chunks/performanceUtils.js";
6
6
  import { useService } from "@wix/services-manager-react";
7
7
  import { E as EnvironmentDefinition } from "../chunks/index2.js";
@@ -1,5 +1,5 @@
1
1
  import { E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, a as ACTIONS, I as INTERACTIONS, b as DISPLAY_GROUPS, D as DATA, L as LAYOUT, c as ContainerType, A as Archetype } from "../chunks/chunk-6KMOHX3X.js";
2
- import { D as DesignStates, c as classes, R as ROOT_MENU_ITEM_CSS_PROPERTIES, a as ROOT_MENU_ITEM_CUSTOM_PROPERTIES } from "../chunks/constants19.js";
2
+ import { D as DesignStates, c as classes, R as ROOT_MENU_ITEM_CSS_PROPERTIES, a as ROOT_MENU_ITEM_CUSTOM_PROPERTIES } from "../chunks/constants20.js";
3
3
  import { w as withSpec } from "../chunks/manifest.js";
4
4
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
5
5
  import { m as manifestFocusable, c as manifestMouseHover, d as manifestClickable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { MenuItemType } from '../Menu/Menu.types';
3
3
  import { A11y, Direction } from '@wix/editor-react-types';
4
+ import { AnimatedIconBuilderProps } from '../AnimatedIcon/types';
4
5
  import { SdkFunctionClickableProps, SdkFunctionMouseHoverProps, SdkFunctionFocusableProps } from '../../../utils/functions/sdkFunctionCallbackProps';
5
6
  type TestCompProps = {
6
7
  id: string;
@@ -26,6 +27,7 @@ type TestCompProps = {
26
27
  errorText?: {
27
28
  text?: string;
28
29
  };
30
+ dummyAnimatedIcon?: AnimatedIconBuilderProps;
29
31
  };
30
32
  a11y?: A11y;
31
33
  isEnabled?: boolean;
@@ -2,6 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { c as clsx } from "../chunks/clsx.js";
3
3
  import { f as formatClassNames } from "../chunks/classNames.js";
4
4
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
5
+ import AnimatedIconWithReducedMotion from "../AnimatedIcon/component.js";
5
6
  const semanticClassNames = {
6
7
  root: "test-comp-card"
7
8
  };
@@ -38,7 +39,7 @@ const styles = {
38
39
  functionBtn
39
40
  };
40
41
  const TestComp = (props) => {
41
- var _a, _b, _c, _d, _e, _f, _g;
42
+ var _a, _b, _c, _d, _e, _f, _g, _h;
42
43
  const {
43
44
  id,
44
45
  className,
@@ -143,13 +144,23 @@ const TestComp = (props) => {
143
144
  }
144
145
  ),
145
146
  isError && /* @__PURE__ */ jsx("p", { className: "card-error-text", children: ((_e = elementProps.errorText) == null ? void 0 : _e.text) || "Something went wrong" }),
146
- ((_f = elementProps.image) == null ? void 0 : _f.src) && /* @__PURE__ */ jsx(
147
+ /* @__PURE__ */ jsx(
148
+ AnimatedIconWithReducedMotion,
149
+ {
150
+ ...elementProps.dummyAnimatedIcon,
151
+ className: clsx(
152
+ "dummy-animated-icon",
153
+ (_f = elementProps.dummyAnimatedIcon) == null ? void 0 : _f.className
154
+ )
155
+ }
156
+ ),
157
+ ((_g = elementProps.image) == null ? void 0 : _g.src) && /* @__PURE__ */ jsx(
147
158
  "div",
148
159
  {
149
160
  className: clsx(
150
161
  styles.imageWrapper,
151
162
  "card-image",
152
- (_g = elementProps.image) == null ? void 0 : _g.className
163
+ (_h = elementProps.image) == null ? void 0 : _h.className
153
164
  ),
154
165
  children: /* @__PURE__ */ jsx(
155
166
  "img",
@@ -205,4 +205,28 @@
205
205
  }
206
206
  .presetWrapper__J1yzj {
207
207
  display: contents;
208
+ }
209
+ .animatedIcon__3o5ii {
210
+ --size: 16px;
211
+ --fill: #000000;
212
+ --rotation: 0deg;
213
+ }
214
+ .animatedIcon__3o5ii {
215
+ display: block;
216
+ width: inherit;
217
+ height: inherit;
218
+ width: var(--size);
219
+ height: var(--size);
220
+ }
221
+ .animatedIcon__3o5ii svg {
222
+ width: var(--size);
223
+ height: var(--size);
224
+ display: block;
225
+ fill: var(--fill);
226
+ transform: rotate(var(--rotation));
227
+ }
228
+ @media (forced-colors: active) {
229
+ .animatedIcon__3o5ii svg {
230
+ fill: currentColor;
231
+ }
208
232
  }
@@ -1,4 +1,4 @@
1
- import { L as LAYOUT, N as NativeStateType, D as DATA, E as ELEMENTS, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, A as Archetype } from "../chunks/chunk-6KMOHX3X.js";
1
+ import { L as LAYOUT, N as NativeStateType, E as ELEMENTS, D as DATA, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, A as Archetype } from "../chunks/chunk-6KMOHX3X.js";
2
2
  import { m as manifestFocusable, c as manifestMouseHover, d as manifestClickable } from "../chunks/manifestSdkMixins.js";
3
3
  const DesignStates = {
4
4
  testCompCard: {
@@ -31,7 +31,10 @@ const manifest = {
31
31
  resources: {
32
32
  client: {
33
33
  componentUrl: "./site/components/TestComp/component.tsx",
34
- moduleSpecifier: "@wix/editor-react-components/TestComp"
34
+ moduleSpecifier: "@wix/editor-react-components/TestComp",
35
+ dependencies: {
36
+ componentDependencies: ["@wix/editor-react-components/AnimatedIcon"]
37
+ }
35
38
  }
36
39
  },
37
40
  editorElement: {
@@ -543,6 +546,15 @@ const manifest = {
543
546
  color: {}
544
547
  }
545
548
  }
549
+ },
550
+ dummyAnimatedIcon: {
551
+ spec: "sp.erc.testCompAnimatedIcon",
552
+ elementType: ELEMENTS.ELEMENT_TYPE.refElement,
553
+ refElement: {
554
+ selector: ".dummy-animated-icon",
555
+ displayName: "Dummy Animated Icon",
556
+ type: "wixEditorElements.AnimatedIcon"
557
+ }
546
558
  }
547
559
  },
548
560
  states: {
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef, useRef, useImperativeHandle, useCallback, useMemo } from "react";
3
3
  import { p as parseSvg } from "./parseSvg.js";
4
- import { A as AnimatedSvgIds, a as AnimatedDataAttributes, b as AnimationDirection, T as TestIds, D as DEFAULT_ANIMATION_DURATION } from "./constants21.js";
4
+ import { A as AnimatedSvgIds, a as AnimatedDataAttributes, b as AnimationDirection, T as TestIds, D as DEFAULT_ANIMATION_DURATION } from "./constants19.js";
5
5
  import { c as cn } from "./index9.js";
6
6
  const AnimatedSvg = forwardRef(
7
7
  ({ svgContent, reducedMotion = false, duration }, ref) => {
@@ -7,7 +7,7 @@ import { a as getDataAttributes, g as getQaDataAttributes } from "./dataUtils.js
7
7
  import { f as formatClassNames } from "./classNames.js";
8
8
  import { I as IconAnimationTriggers } from "./Button.types.js";
9
9
  import AnimatedIconWithReducedMotion from "../AnimatedIcon/component.js";
10
- import { T as TRANSITION_DURATION, S as SEMANTIC_CLASS_NAMES, a as TestIds } from "./constants20.js";
10
+ import { T as TRANSITION_DURATION, S as SEMANTIC_CLASS_NAMES, a as TestIds } from "./constants21.js";
11
11
  import { d as activateByEnterButton, a as activateBySpaceOrEnterButton, r as removeAriaPrefix, g as getAccessibilityAttributesSpread } from "./a11y.js";
12
12
  import { i as isValidLink } from "./Link.js";
13
13
  const root = "root__IB9QF";
@@ -1,56 +1,61 @@
1
- const classes = {
2
- tabs: "tabs",
3
- tabMenu: "tab-menu",
4
- tabMenuItemsWrapper: "tab-menu-items-wrapper",
5
- tabMenuItems: "tab-menu-items",
6
- menuItem: "menu-item",
7
- scrollButton: "scroll-button",
8
- tabContentContainer: "tab-content-container",
9
- tabContentItem: "tab-content-item"
1
+ const DEFAULT_ANIMATION_DURATION = 0.2;
2
+ const AnimatedSvgIds = {
3
+ animatedSvg: "animatedSvg",
4
+ animatedTagPath: "animatedPath",
5
+ animateTagForward: "animateForward",
6
+ animateTagBackward: "animateBackward"
10
7
  };
11
- const OVERFLOW_BEHAVIOR = {
12
- WRAP: "wrap"
8
+ var AnimationDirection = /* @__PURE__ */ ((AnimationDirection2) => {
9
+ AnimationDirection2["FORWARD"] = "Forward";
10
+ AnimationDirection2["BACKWARD"] = "Backward";
11
+ return AnimationDirection2;
12
+ })(AnimationDirection || {});
13
+ const AnimatedDataAttributes = {
14
+ [
15
+ "Forward"
16
+ /* FORWARD */
17
+ ]: "data-animated-end-path",
18
+ [
19
+ "Backward"
20
+ /* BACKWARD */
21
+ ]: "data-animated-start-path"
22
+ };
23
+ const TestIds = {
24
+ animatedSvg: "animated-svg",
25
+ animateTagForward: "animate-tag-forward",
26
+ animateTagBackward: "animate-tag-backward"
13
27
  };
14
28
  const DesignStates = {
15
- menuItem: {
16
- hover: { displayName: "Hover", className: "tabs__item--hover" }
29
+ root: {
30
+ hover: { displayName: "Hover", className: "animated-icon--hover" },
31
+ disabled: { displayName: "Disabled", className: "animated-icon--disabled" },
32
+ selected: { displayName: "Selected", className: "animated-icon--selected" }
33
+ }
34
+ };
35
+ const DisplayNames = {
36
+ root: {
37
+ elementDisplayName: "Animated Icon",
38
+ customActions: {
39
+ animatedIcon: {
40
+ displayName: "Icon"
41
+ }
42
+ },
43
+ data: {
44
+ duration: "Duration"
45
+ },
46
+ cssCustomProperties: {
47
+ size: "Size",
48
+ fill: "Color",
49
+ rotation: "Rotation"
50
+ }
17
51
  }
18
52
  };
19
- const ROOT_MENU_ITEM_CUSTOM_PROPERTIES = [
20
- "menu-item-background",
21
- "menu-item-box-shadow",
22
- "menu-item-color",
23
- "menu-item-text-decoration-line",
24
- "menu-item-letter-spacing",
25
- "menu-item-text-shadow",
26
- "menu-item-text-align",
27
- "menu-item-flex",
28
- "menu-item-border-width-top",
29
- "menu-item-border-width-bottom",
30
- "menu-item-border-width-inline-start",
31
- "menu-item-border-width-inline-end",
32
- "menu-item-border-style-top",
33
- "menu-item-border-style-bottom",
34
- "menu-item-border-style-inline-start",
35
- "menu-item-border-style-inline-end",
36
- "menu-item-border-color-top",
37
- "menu-item-border-color-bottom",
38
- "menu-item-border-color-inline-start",
39
- "menu-item-border-color-inline-end",
40
- "menu-item-border-radius-start-start",
41
- "menu-item-border-radius-start-end",
42
- "menu-item-border-radius-end-start",
43
- "menu-item-border-radius-end-end",
44
- "menu-item-padding-top",
45
- "menu-item-padding-bottom",
46
- "menu-item-padding-inline-start",
47
- "menu-item-padding-inline-end"
48
- ];
49
- const ROOT_MENU_ITEM_CSS_PROPERTIES = ["font"];
50
53
  export {
51
- DesignStates as D,
52
- OVERFLOW_BEHAVIOR as O,
53
- ROOT_MENU_ITEM_CSS_PROPERTIES as R,
54
- ROOT_MENU_ITEM_CUSTOM_PROPERTIES as a,
55
- classes as c
54
+ AnimatedSvgIds as A,
55
+ DEFAULT_ANIMATION_DURATION as D,
56
+ TestIds as T,
57
+ AnimatedDataAttributes as a,
58
+ AnimationDirection as b,
59
+ DesignStates as c,
60
+ DisplayNames as d
56
61
  };
@@ -1,59 +1,56 @@
1
- const TestIds = {
2
- buttonContent: "buttonContent",
3
- buttonLabel: "stylablebutton-label"
1
+ const classes = {
2
+ tabs: "tabs",
3
+ tabMenu: "tab-menu",
4
+ tabMenuItemsWrapper: "tab-menu-items-wrapper",
5
+ tabMenuItems: "tab-menu-items",
6
+ menuItem: "menu-item",
7
+ scrollButton: "scroll-button",
8
+ tabContentContainer: "tab-content-container",
9
+ tabContentItem: "tab-content-item"
4
10
  };
5
- const TRANSITION_DURATION = 400;
6
- const SEMANTIC_CLASS_NAMES = {
7
- root: "button",
8
- buttonLabel: "button__label"
11
+ const OVERFLOW_BEHAVIOR = {
12
+ WRAP: "wrap"
9
13
  };
10
14
  const DesignStates = {
11
- root: {
12
- hover: { displayName: "Hover", className: "button--hover" },
13
- disabled: { displayName: "Disabled", className: "button--disabled" }
14
- },
15
- label: {
16
- hover: { displayName: "Hover", className: "button__label--hover" },
17
- disabled: { displayName: "Disabled", className: "button__label--disabled" }
18
- }
19
- };
20
- const DisplayNames = {
21
- root: {
22
- elementDisplayName: "Button",
23
- data: {
24
- disabled: "Disabled"
25
- },
26
- cssProperties: {
27
- gap: "Space between text and icon"
28
- },
29
- cssCustomProperties: {
30
- "content-horizontal-alignment": "Alignment",
31
- "icon-position": "Icon position"
32
- },
33
- presets: {
34
- baseButton: "Base Button"
35
- },
36
- iconPosition: {
37
- beforeText: "Before text",
38
- afterText: "After text",
39
- belowText: "Below text",
40
- aboveText: "Above text"
41
- }
42
- },
43
- label: {
44
- elementDisplayName: "Text",
45
- cssProperties: {
46
- font: "Typography"
47
- }
48
- },
49
- data: {
50
- iconCollapsed: "Display icon"
15
+ menuItem: {
16
+ hover: { displayName: "Hover", className: "tabs__item--hover" }
51
17
  }
52
18
  };
19
+ const ROOT_MENU_ITEM_CUSTOM_PROPERTIES = [
20
+ "menu-item-background",
21
+ "menu-item-box-shadow",
22
+ "menu-item-color",
23
+ "menu-item-text-decoration-line",
24
+ "menu-item-letter-spacing",
25
+ "menu-item-text-shadow",
26
+ "menu-item-text-align",
27
+ "menu-item-flex",
28
+ "menu-item-border-width-top",
29
+ "menu-item-border-width-bottom",
30
+ "menu-item-border-width-inline-start",
31
+ "menu-item-border-width-inline-end",
32
+ "menu-item-border-style-top",
33
+ "menu-item-border-style-bottom",
34
+ "menu-item-border-style-inline-start",
35
+ "menu-item-border-style-inline-end",
36
+ "menu-item-border-color-top",
37
+ "menu-item-border-color-bottom",
38
+ "menu-item-border-color-inline-start",
39
+ "menu-item-border-color-inline-end",
40
+ "menu-item-border-radius-start-start",
41
+ "menu-item-border-radius-start-end",
42
+ "menu-item-border-radius-end-start",
43
+ "menu-item-border-radius-end-end",
44
+ "menu-item-padding-top",
45
+ "menu-item-padding-bottom",
46
+ "menu-item-padding-inline-start",
47
+ "menu-item-padding-inline-end"
48
+ ];
49
+ const ROOT_MENU_ITEM_CSS_PROPERTIES = ["font"];
53
50
  export {
54
51
  DesignStates as D,
55
- SEMANTIC_CLASS_NAMES as S,
56
- TRANSITION_DURATION as T,
57
- TestIds as a,
58
- DisplayNames as b
52
+ OVERFLOW_BEHAVIOR as O,
53
+ ROOT_MENU_ITEM_CSS_PROPERTIES as R,
54
+ ROOT_MENU_ITEM_CUSTOM_PROPERTIES as a,
55
+ classes as c
59
56
  };
@@ -1,61 +1,59 @@
1
- const DEFAULT_ANIMATION_DURATION = 0.2;
2
- const AnimatedSvgIds = {
3
- animatedSvg: "animatedSvg",
4
- animatedTagPath: "animatedPath",
5
- animateTagForward: "animateForward",
6
- animateTagBackward: "animateBackward"
7
- };
8
- var AnimationDirection = /* @__PURE__ */ ((AnimationDirection2) => {
9
- AnimationDirection2["FORWARD"] = "Forward";
10
- AnimationDirection2["BACKWARD"] = "Backward";
11
- return AnimationDirection2;
12
- })(AnimationDirection || {});
13
- const AnimatedDataAttributes = {
14
- [
15
- "Forward"
16
- /* FORWARD */
17
- ]: "data-animated-end-path",
18
- [
19
- "Backward"
20
- /* BACKWARD */
21
- ]: "data-animated-start-path"
22
- };
23
1
  const TestIds = {
24
- animatedSvg: "animated-svg",
25
- animateTagForward: "animate-tag-forward",
26
- animateTagBackward: "animate-tag-backward"
2
+ buttonContent: "buttonContent",
3
+ buttonLabel: "stylablebutton-label"
4
+ };
5
+ const TRANSITION_DURATION = 400;
6
+ const SEMANTIC_CLASS_NAMES = {
7
+ root: "button",
8
+ buttonLabel: "button__label"
27
9
  };
28
10
  const DesignStates = {
29
11
  root: {
30
- hover: { displayName: "Hover", className: "animated-icon--hover" },
31
- disabled: { displayName: "Disabled", className: "animated-icon--disabled" },
32
- selected: { displayName: "Selected", className: "animated-icon--selected" }
12
+ hover: { displayName: "Hover", className: "button--hover" },
13
+ disabled: { displayName: "Disabled", className: "button--disabled" }
14
+ },
15
+ label: {
16
+ hover: { displayName: "Hover", className: "button__label--hover" },
17
+ disabled: { displayName: "Disabled", className: "button__label--disabled" }
33
18
  }
34
19
  };
35
20
  const DisplayNames = {
36
21
  root: {
37
- elementDisplayName: "Animated Icon",
38
- customActions: {
39
- animatedIcon: {
40
- displayName: "Icon"
41
- }
42
- },
22
+ elementDisplayName: "Button",
43
23
  data: {
44
- duration: "Duration"
24
+ disabled: "Disabled"
25
+ },
26
+ cssProperties: {
27
+ gap: "Space between text and icon"
45
28
  },
46
29
  cssCustomProperties: {
47
- size: "Size",
48
- fill: "Color",
49
- rotation: "Rotation"
30
+ "content-horizontal-alignment": "Alignment",
31
+ "icon-position": "Icon position"
32
+ },
33
+ presets: {
34
+ baseButton: "Base Button"
35
+ },
36
+ iconPosition: {
37
+ beforeText: "Before text",
38
+ afterText: "After text",
39
+ belowText: "Below text",
40
+ aboveText: "Above text"
41
+ }
42
+ },
43
+ label: {
44
+ elementDisplayName: "Text",
45
+ cssProperties: {
46
+ font: "Typography"
50
47
  }
48
+ },
49
+ data: {
50
+ iconCollapsed: "Display icon"
51
51
  }
52
52
  };
53
53
  export {
54
- AnimatedSvgIds as A,
55
- DEFAULT_ANIMATION_DURATION as D,
56
- TestIds as T,
57
- AnimatedDataAttributes as a,
58
- AnimationDirection as b,
59
- DesignStates as c,
60
- DisplayNames as d
54
+ DesignStates as D,
55
+ SEMANTIC_CLASS_NAMES as S,
56
+ TRANSITION_DURATION as T,
57
+ TestIds as a,
58
+ DisplayNames as b
61
59
  };
@@ -8,7 +8,11 @@ const MANIFEST_DEFAULT_FUNCTION_DISPLAY_NAMES = {
8
8
  onFocus: "On Focus",
9
9
  onBlur: "On Blur",
10
10
  onMouseIn: "On Mouse In",
11
- onMouseOut: "On Mouse Out"
11
+ onMouseOut: "On Mouse Out",
12
+ onPlay: "On Play",
13
+ onPause: "On Pause",
14
+ onEnded: "On Ended",
15
+ onTimeupdate: "On Time Update"
12
16
  };
13
17
  function manifestFunction(displayName, payload) {
14
18
  return {
@@ -84,10 +88,38 @@ function manifestMouseHover(names = {}) {
84
88
  )
85
89
  };
86
90
  }
91
+ function manifestPlayable(names = {}) {
92
+ const payload = {};
93
+ return {
94
+ onPlay: manifestFunction(
95
+ names.onPlay ?? MANIFEST_DEFAULT_FUNCTION_DISPLAY_NAMES.onPlay,
96
+ payload
97
+ ),
98
+ onPause: manifestFunction(
99
+ names.onPause ?? MANIFEST_DEFAULT_FUNCTION_DISPLAY_NAMES.onPause,
100
+ payload
101
+ )
102
+ };
103
+ }
104
+ function manifestMediaProgress(names = {}) {
105
+ const payload = {};
106
+ return {
107
+ onEnded: manifestFunction(
108
+ names.onEnded ?? MANIFEST_DEFAULT_FUNCTION_DISPLAY_NAMES.onEnded,
109
+ payload
110
+ ),
111
+ onTimeupdate: manifestFunction(
112
+ names.onTimeupdate ?? MANIFEST_DEFAULT_FUNCTION_DISPLAY_NAMES.onTimeupdate,
113
+ payload
114
+ )
115
+ };
116
+ }
87
117
  export {
88
118
  manifestChangeable as a,
89
119
  manifestInputable as b,
90
120
  manifestMouseHover as c,
91
121
  manifestClickable as d,
122
+ manifestPlayable as e,
123
+ manifestMediaProgress as f,
92
124
  manifestFocusable as m
93
125
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2537.0",
3
+ "version": "1.2539.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -197,5 +197,5 @@
197
197
  "registry": "https://registry.npmjs.org/",
198
198
  "access": "public"
199
199
  },
200
- "falconPackageHash": "b25e3cd10dc548346d3ad3da18e421ac54c36505e895a40120a36bbd"
200
+ "falconPackageHash": "235f2af63dfcbe855f550f083135b1151a96aa6814b8bb3fd64aa7ad"
201
201
  }