@wix/editor-react-components 1.2538.0 → 1.2540.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, 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
|
-
|
|
238
|
-
|
|
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: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDetachedItemSlots: (enabled: boolean, rootId?: string, itemCount?: number) => void;
|
|
@@ -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
|
-
|
|
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
|
},
|
|
@@ -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.
|
|
3
|
+
"version": "1.2540.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": "
|
|
200
|
+
"falconPackageHash": "5d28583569337a9f35ec73a584891b4b7bd790cf639c7007efb872f3"
|
|
201
201
|
}
|