@wix/editor-react-components 1.2722.0 → 1.2724.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.
- package/dist/site/components/Button/constants.d.ts +0 -4
- package/dist/site/components/Button/manifest.js +1 -10
- package/dist/site/components/CollapsibleText/manifest.js +1 -2
- package/dist/site/components/Lottie/manifest.js +1 -9
- package/dist/site/components/Menu/manifest.js +1 -1
- package/dist/site/components/Slideshow/manifest.js +1 -2
- package/dist/site/components/chunks/Video.js +8 -2
- package/dist/site/components/chunks/constants21.js +0 -5
- package/package.json +4 -4
|
@@ -5,7 +5,6 @@ export declare const TestIds: {
|
|
|
5
5
|
};
|
|
6
6
|
export declare const TRANSITION_DURATION = 400;
|
|
7
7
|
export declare const DEFAULT_ICON_POSITION = "row-reverse";
|
|
8
|
-
export declare const HIDDEN_DATA_ITEMS: string[];
|
|
9
8
|
export declare const SEMANTIC_CLASS_NAMES: {
|
|
10
9
|
readonly root: "button";
|
|
11
10
|
readonly buttonLabel: "button__label";
|
|
@@ -63,7 +62,4 @@ export declare const DisplayNames: {
|
|
|
63
62
|
};
|
|
64
63
|
cssCustomProperties: {};
|
|
65
64
|
};
|
|
66
|
-
data: {
|
|
67
|
-
iconCollapsed: string;
|
|
68
|
-
};
|
|
69
65
|
};
|
|
@@ -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-ZHYIPFVN.js";
|
|
2
|
-
import { D as DesignStates, b as DisplayNames,
|
|
2
|
+
import { D as DesignStates, b as DisplayNames, c as DEFAULT_ICON_POSITION, C as COMPONENT_TYPE } 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";
|
|
@@ -82,11 +82,6 @@ const manifest = {
|
|
|
82
82
|
disableStretching: true,
|
|
83
83
|
disablePositioning: false
|
|
84
84
|
},
|
|
85
|
-
displayFilters: {
|
|
86
|
-
data: {
|
|
87
|
-
hide: [...HIDDEN_DATA_ITEMS]
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
85
|
cssProperties: {
|
|
91
86
|
background: {},
|
|
92
87
|
boxShadow: {},
|
|
@@ -207,10 +202,6 @@ const manifest = {
|
|
|
207
202
|
direction: {
|
|
208
203
|
dataType: DATA.DATA_TYPE.direction
|
|
209
204
|
},
|
|
210
|
-
iconCollapsed: {
|
|
211
|
-
displayName: DisplayNames.data.iconCollapsed,
|
|
212
|
-
dataType: DATA.DATA_TYPE.booleanValue
|
|
213
|
-
},
|
|
214
205
|
disabled: {
|
|
215
206
|
displayName: DisplayNames.root.data.disabled,
|
|
216
207
|
dataType: DATA.DATA_TYPE.booleanValue,
|
|
@@ -184,7 +184,7 @@ const manifest = {
|
|
|
184
184
|
hide: ["animatedIcon"]
|
|
185
185
|
},
|
|
186
186
|
data: {
|
|
187
|
-
hide: ["label", "
|
|
187
|
+
hide: ["label", "link", "disabled"]
|
|
188
188
|
},
|
|
189
189
|
cssProperties: {
|
|
190
190
|
hide: ["columnGap", "rowGap"]
|
|
@@ -195,7 +195,6 @@ const manifest = {
|
|
|
195
195
|
},
|
|
196
196
|
data: {
|
|
197
197
|
label: { disableEditing: true },
|
|
198
|
-
iconCollapsed: { disableEditing: true },
|
|
199
198
|
link: { disableEditing: true },
|
|
200
199
|
disabled: { disableEditing: true }
|
|
201
200
|
},
|
|
@@ -117,14 +117,7 @@ const manifest = {
|
|
|
117
117
|
hide: ["label"]
|
|
118
118
|
},
|
|
119
119
|
data: {
|
|
120
|
-
hide: [
|
|
121
|
-
"a11y",
|
|
122
|
-
"link",
|
|
123
|
-
"label",
|
|
124
|
-
"iconCollapsed",
|
|
125
|
-
"direction",
|
|
126
|
-
"disabled"
|
|
127
|
-
]
|
|
120
|
+
hide: ["a11y", "link", "label", "direction", "disabled"]
|
|
128
121
|
},
|
|
129
122
|
cssProperties: {
|
|
130
123
|
hide: ["rowGap", "columnGap"]
|
|
@@ -137,7 +130,6 @@ const manifest = {
|
|
|
137
130
|
a11y: { disableEditing: true },
|
|
138
131
|
link: { disableEditing: true },
|
|
139
132
|
label: { disableEditing: true },
|
|
140
|
-
iconCollapsed: { disableEditing: true },
|
|
141
133
|
direction: { disableEditing: true },
|
|
142
134
|
disabled: { disableEditing: true }
|
|
143
135
|
},
|
|
@@ -10,7 +10,7 @@ const navigationButtons = {
|
|
|
10
10
|
displayName: DisplayNames.navigationButtons.elementDisplayName,
|
|
11
11
|
displayFilters: {
|
|
12
12
|
data: {
|
|
13
|
-
hide: ["a11y", "link", "label", "
|
|
13
|
+
hide: ["a11y", "link", "label", "disabled"]
|
|
14
14
|
},
|
|
15
15
|
cssCustomProperties: {
|
|
16
16
|
hide: ["icon-position", "content-horizontal-alignment"]
|
|
@@ -23,7 +23,6 @@ const navigationButtons = {
|
|
|
23
23
|
a11y: { disableEditing: true },
|
|
24
24
|
link: { disableEditing: true },
|
|
25
25
|
label: { disableEditing: true },
|
|
26
|
-
iconCollapsed: { disableEditing: true },
|
|
27
26
|
disabled: { disableEditing: true }
|
|
28
27
|
},
|
|
29
28
|
cssCustomProperties: {
|
|
@@ -382,6 +382,7 @@ function initCustomElement(contextWindow, services) {
|
|
|
382
382
|
const actualWindow = contextWindow || window;
|
|
383
383
|
init(actualWindow, services);
|
|
384
384
|
}
|
|
385
|
+
const FALLBACK_POSTER_SRC = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
|
|
385
386
|
if (typeof window !== "undefined") {
|
|
386
387
|
if (document.readyState === "loading") {
|
|
387
388
|
document.addEventListener("DOMContentLoaded", () => {
|
|
@@ -427,7 +428,7 @@ const Video = (props) => {
|
|
|
427
428
|
focalPoint
|
|
428
429
|
});
|
|
429
430
|
}, [videoMedia, playbackRate, posterEffect, autoplay, qualityPolicy, focalPoint]);
|
|
430
|
-
const VideoPosterImage = videoMedia.poster
|
|
431
|
+
const VideoPosterImage = videoMedia.poster ? /* @__PURE__ */ React.createElement(Image, _extends({}, videoMedia.poster, {
|
|
431
432
|
focalPoint,
|
|
432
433
|
id: `videoPoster_${id}`,
|
|
433
434
|
displayMode: posterFittingType,
|
|
@@ -435,7 +436,12 @@ const Video = (props) => {
|
|
|
435
436
|
quality: videoMedia.poster.quality ? {
|
|
436
437
|
quality: videoMedia.poster.quality
|
|
437
438
|
} : void 0
|
|
438
|
-
}))
|
|
439
|
+
})) : /* @__PURE__ */ React.createElement("img", {
|
|
440
|
+
id: `videoPoster_${id}`,
|
|
441
|
+
src: FALLBACK_POSTER_SRC,
|
|
442
|
+
alt: "",
|
|
443
|
+
"aria-hidden": "true"
|
|
444
|
+
});
|
|
439
445
|
const handleVideoElementError = React.useCallback((event) => {
|
|
440
446
|
if (onError) {
|
|
441
447
|
var _videoElement$error;
|
|
@@ -5,7 +5,6 @@ const TestIds = {
|
|
|
5
5
|
};
|
|
6
6
|
const TRANSITION_DURATION = 400;
|
|
7
7
|
const DEFAULT_ICON_POSITION = "row-reverse";
|
|
8
|
-
const HIDDEN_DATA_ITEMS = ["iconCollapsed"];
|
|
9
8
|
const SEMANTIC_CLASS_NAMES = {
|
|
10
9
|
root: "button",
|
|
11
10
|
buttonLabel: "button__label"
|
|
@@ -48,15 +47,11 @@ const DisplayNames = {
|
|
|
48
47
|
cssProperties: {
|
|
49
48
|
font: "Typography"
|
|
50
49
|
}
|
|
51
|
-
},
|
|
52
|
-
data: {
|
|
53
|
-
iconCollapsed: "Display icon"
|
|
54
50
|
}
|
|
55
51
|
};
|
|
56
52
|
export {
|
|
57
53
|
COMPONENT_TYPE as C,
|
|
58
54
|
DesignStates as D,
|
|
59
|
-
HIDDEN_DATA_ITEMS as H,
|
|
60
55
|
SEMANTIC_CLASS_NAMES as S,
|
|
61
56
|
TRANSITION_DURATION as T,
|
|
62
57
|
TestIds as a,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2724.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"@wix/site-service-configuration": "^1.0.1",
|
|
86
86
|
"@wix/site-service-experiments": "^1.0.4",
|
|
87
87
|
"@wix/site-service-rendering-context": "^1.0.1",
|
|
88
|
-
"@wix/site-ui": "1.
|
|
89
|
-
"@wix/video": "^1.
|
|
88
|
+
"@wix/site-ui": "1.287.0",
|
|
89
|
+
"@wix/video": "^1.109.0",
|
|
90
90
|
"@wix/viewer-service-consent-policy": "^1.0.103",
|
|
91
91
|
"@wix/web-bi-logger": "^2.1.29",
|
|
92
92
|
"@wix/wix-ui-icons-common": "^3.173.0",
|
|
@@ -201,5 +201,5 @@
|
|
|
201
201
|
"registry": "https://registry.npmjs.org/",
|
|
202
202
|
"access": "public"
|
|
203
203
|
},
|
|
204
|
-
"falconPackageHash": "
|
|
204
|
+
"falconPackageHash": "ea4f19e983042eacb0670883898264e5beaaa7e861be93b5833b88d3"
|
|
205
205
|
}
|