@wix/editor-react-components 1.2491.0 → 1.2493.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.
|
@@ -1365,18 +1365,18 @@ function composeContextScopes(...scopes) {
|
|
|
1365
1365
|
createScope.scopeName = baseScope.scopeName;
|
|
1366
1366
|
return createScope;
|
|
1367
1367
|
}
|
|
1368
|
-
function setRef(ref, value) {
|
|
1368
|
+
function setRef$2(ref, value) {
|
|
1369
1369
|
if (typeof ref === "function") {
|
|
1370
1370
|
return ref(value);
|
|
1371
1371
|
} else if (ref !== null && ref !== void 0) {
|
|
1372
1372
|
ref.current = value;
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
function composeRefs(...refs) {
|
|
1375
|
+
function composeRefs$2(...refs) {
|
|
1376
1376
|
return (node) => {
|
|
1377
1377
|
let hasCleanup = false;
|
|
1378
1378
|
const cleanups = refs.map((ref) => {
|
|
1379
|
-
const cleanup = setRef(ref, node);
|
|
1379
|
+
const cleanup = setRef$2(ref, node);
|
|
1380
1380
|
if (!hasCleanup && typeof cleanup == "function") {
|
|
1381
1381
|
hasCleanup = true;
|
|
1382
1382
|
}
|
|
@@ -1389,15 +1389,15 @@ function composeRefs(...refs) {
|
|
|
1389
1389
|
if (typeof cleanup == "function") {
|
|
1390
1390
|
cleanup();
|
|
1391
1391
|
} else {
|
|
1392
|
-
setRef(refs[i], null);
|
|
1392
|
+
setRef$2(refs[i], null);
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
1395
|
};
|
|
1396
1396
|
}
|
|
1397
1397
|
};
|
|
1398
1398
|
}
|
|
1399
|
-
function useComposedRefs(...refs) {
|
|
1400
|
-
return React.useCallback(composeRefs(...refs), refs);
|
|
1399
|
+
function useComposedRefs$2(...refs) {
|
|
1400
|
+
return React.useCallback(composeRefs$2(...refs), refs);
|
|
1401
1401
|
}
|
|
1402
1402
|
// @__NO_SIDE_EFFECTS__
|
|
1403
1403
|
function createSlot$2(ownerName) {
|
|
@@ -1431,7 +1431,7 @@ function createSlotClone$2(ownerName) {
|
|
|
1431
1431
|
const childrenRef = getElementRef$3(children);
|
|
1432
1432
|
const props2 = mergeProps$2(slotProps, children.props);
|
|
1433
1433
|
if (children.type !== React.Fragment) {
|
|
1434
|
-
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
1434
|
+
props2.ref = forwardedRef ? composeRefs$2(forwardedRef, childrenRef) : childrenRef;
|
|
1435
1435
|
}
|
|
1436
1436
|
return React.cloneElement(children, props2);
|
|
1437
1437
|
}
|
|
@@ -1502,7 +1502,7 @@ function createCollection(name) {
|
|
|
1502
1502
|
(props, forwardedRef) => {
|
|
1503
1503
|
const { scope, children } = props;
|
|
1504
1504
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
1505
|
-
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
1505
|
+
const composedRefs = useComposedRefs$2(forwardedRef, context.collectionRef);
|
|
1506
1506
|
return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });
|
|
1507
1507
|
}
|
|
1508
1508
|
);
|
|
@@ -1514,7 +1514,7 @@ function createCollection(name) {
|
|
|
1514
1514
|
(props, forwardedRef) => {
|
|
1515
1515
|
const { scope, children, ...itemData } = props;
|
|
1516
1516
|
const ref = React__default.useRef(null);
|
|
1517
|
-
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
1517
|
+
const composedRefs = useComposedRefs$2(forwardedRef, ref);
|
|
1518
1518
|
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
1519
1519
|
React__default.useEffect(() => {
|
|
1520
1520
|
context.itemMap.set(ref, { ref, ...itemData });
|
|
@@ -1544,6 +1544,40 @@ function createCollection(name) {
|
|
|
1544
1544
|
createCollectionScope2
|
|
1545
1545
|
];
|
|
1546
1546
|
}
|
|
1547
|
+
function setRef$1(ref, value) {
|
|
1548
|
+
if (typeof ref === "function") {
|
|
1549
|
+
return ref(value);
|
|
1550
|
+
} else if (ref !== null && ref !== void 0) {
|
|
1551
|
+
ref.current = value;
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
function composeRefs$1(...refs) {
|
|
1555
|
+
return (node) => {
|
|
1556
|
+
let hasCleanup = false;
|
|
1557
|
+
const cleanups = refs.map((ref) => {
|
|
1558
|
+
const cleanup = setRef$1(ref, node);
|
|
1559
|
+
if (!hasCleanup && typeof cleanup == "function") {
|
|
1560
|
+
hasCleanup = true;
|
|
1561
|
+
}
|
|
1562
|
+
return cleanup;
|
|
1563
|
+
});
|
|
1564
|
+
if (hasCleanup) {
|
|
1565
|
+
return () => {
|
|
1566
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
1567
|
+
const cleanup = cleanups[i];
|
|
1568
|
+
if (typeof cleanup == "function") {
|
|
1569
|
+
cleanup();
|
|
1570
|
+
} else {
|
|
1571
|
+
setRef$1(refs[i], null);
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
};
|
|
1575
|
+
}
|
|
1576
|
+
};
|
|
1577
|
+
}
|
|
1578
|
+
function useComposedRefs$1(...refs) {
|
|
1579
|
+
return React.useCallback(composeRefs$1(...refs), refs);
|
|
1580
|
+
}
|
|
1547
1581
|
function composeEventHandlers$1(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
1548
1582
|
return function handleEvent(event) {
|
|
1549
1583
|
originalEventHandler == null ? void 0 : originalEventHandler(event);
|
|
@@ -1652,7 +1686,7 @@ function createSlotClone$1(ownerName) {
|
|
|
1652
1686
|
const childrenRef = getElementRef$2(children);
|
|
1653
1687
|
const props2 = mergeProps$1(slotProps, children.props);
|
|
1654
1688
|
if (children.type !== React.Fragment) {
|
|
1655
|
-
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
1689
|
+
props2.ref = forwardedRef ? composeRefs$1(forwardedRef, childrenRef) : childrenRef;
|
|
1656
1690
|
}
|
|
1657
1691
|
return React.cloneElement(children, props2);
|
|
1658
1692
|
}
|
|
@@ -1745,6 +1779,40 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
1745
1779
|
}
|
|
1746
1780
|
var useLayoutEffect2$1 = (globalThis == null ? void 0 : globalThis.document) ? React.useLayoutEffect : () => {
|
|
1747
1781
|
};
|
|
1782
|
+
function setRef(ref, value) {
|
|
1783
|
+
if (typeof ref === "function") {
|
|
1784
|
+
return ref(value);
|
|
1785
|
+
} else if (ref !== null && ref !== void 0) {
|
|
1786
|
+
ref.current = value;
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
function composeRefs(...refs) {
|
|
1790
|
+
return (node) => {
|
|
1791
|
+
let hasCleanup = false;
|
|
1792
|
+
const cleanups = refs.map((ref) => {
|
|
1793
|
+
const cleanup = setRef(ref, node);
|
|
1794
|
+
if (!hasCleanup && typeof cleanup == "function") {
|
|
1795
|
+
hasCleanup = true;
|
|
1796
|
+
}
|
|
1797
|
+
return cleanup;
|
|
1798
|
+
});
|
|
1799
|
+
if (hasCleanup) {
|
|
1800
|
+
return () => {
|
|
1801
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
1802
|
+
const cleanup = cleanups[i];
|
|
1803
|
+
if (typeof cleanup == "function") {
|
|
1804
|
+
cleanup();
|
|
1805
|
+
} else {
|
|
1806
|
+
setRef(refs[i], null);
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
};
|
|
1810
|
+
}
|
|
1811
|
+
};
|
|
1812
|
+
}
|
|
1813
|
+
function useComposedRefs(...refs) {
|
|
1814
|
+
return React.useCallback(composeRefs(...refs), refs);
|
|
1815
|
+
}
|
|
1748
1816
|
// @__NO_SIDE_EFFECTS__
|
|
1749
1817
|
function createSlot(ownerName) {
|
|
1750
1818
|
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
@@ -2219,7 +2287,7 @@ var AccordionImpl = React__default.forwardRef(
|
|
|
2219
2287
|
(props, forwardedRef) => {
|
|
2220
2288
|
const { __scopeAccordion, disabled, dir, orientation = "vertical", ...accordionProps } = props;
|
|
2221
2289
|
const accordionRef = React__default.useRef(null);
|
|
2222
|
-
const composedRefs = useComposedRefs(accordionRef, forwardedRef);
|
|
2290
|
+
const composedRefs = useComposedRefs$1(accordionRef, forwardedRef);
|
|
2223
2291
|
const getItems = useCollection(__scopeAccordion);
|
|
2224
2292
|
const direction = useDirection(dir);
|
|
2225
2293
|
const isDirectionLTR = direction === "ltr";
|
|
@@ -2622,6 +2622,7 @@ var AssetType;
|
|
|
2622
2622
|
AssetType2["WIDGET"] = "WIDGET";
|
|
2623
2623
|
AssetType2["FONT"] = "FONT";
|
|
2624
2624
|
AssetType2["ICONS"] = "ICONS";
|
|
2625
|
+
AssetType2["STORY"] = "STORY";
|
|
2625
2626
|
})(AssetType || (AssetType = {}));
|
|
2626
2627
|
var FileMediaType;
|
|
2627
2628
|
(function(FileMediaType2) {
|
|
@@ -2642,6 +2643,7 @@ var Exposure;
|
|
|
2642
2643
|
var AnimationType;
|
|
2643
2644
|
(function(AnimationType2) {
|
|
2644
2645
|
AnimationType2["VIEW"] = "VIEW";
|
|
2646
|
+
AnimationType2["POINTER"] = "POINTER";
|
|
2645
2647
|
})(AnimationType || (AnimationType = {}));
|
|
2646
2648
|
var AppType;
|
|
2647
2649
|
(function(AppType2) {
|
|
@@ -3002,6 +3004,18 @@ var WidthType;
|
|
|
3002
3004
|
WidthType2["ORIGINAL"] = "ORIGINAL";
|
|
3003
3005
|
WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
|
|
3004
3006
|
})(WidthType || (WidthType = {}));
|
|
3007
|
+
var PointerEffectType;
|
|
3008
|
+
(function(PointerEffectType2) {
|
|
3009
|
+
PointerEffectType2["AIRY"] = "AIRY";
|
|
3010
|
+
PointerEffectType2["BLOB"] = "BLOB";
|
|
3011
|
+
PointerEffectType2["BLUR"] = "BLUR";
|
|
3012
|
+
PointerEffectType2["SCALE"] = "SCALE";
|
|
3013
|
+
PointerEffectType2["SKEW"] = "SKEW";
|
|
3014
|
+
PointerEffectType2["SWIVEL"] = "SWIVEL";
|
|
3015
|
+
PointerEffectType2["TILT_3D"] = "TILT_3D";
|
|
3016
|
+
PointerEffectType2["TRACK"] = "TRACK";
|
|
3017
|
+
PointerEffectType2["TRACK_3D"] = "TRACK_3D";
|
|
3018
|
+
})(PointerEffectType || (PointerEffectType = {}));
|
|
3005
3019
|
var BackgroundType;
|
|
3006
3020
|
(function(BackgroundType2) {
|
|
3007
3021
|
BackgroundType2["COLOR"] = "COLOR";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2493.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
"@radix-ui/react-accordion": "^1.2.11",
|
|
78
78
|
"@vimeo/player": "^2.20.1",
|
|
79
79
|
"@vis.gl/react-google-maps": "^1.5.2",
|
|
80
|
-
"@wix/ambassador-devcenter-v1-component-type-data": "^1.0.
|
|
80
|
+
"@wix/ambassador-devcenter-v1-component-type-data": "^1.0.508",
|
|
81
81
|
"@wix/design-system-illustrations": "^2.19.0",
|
|
82
82
|
"@wix/sdk": "^1.21.14",
|
|
83
83
|
"@wix/services-manager-react": "^0.1.27",
|
|
84
84
|
"@wix/site-service-rendering-context": "^1.0.1",
|
|
85
|
-
"@wix/site-ui": "1.
|
|
85
|
+
"@wix/site-ui": "1.217.0",
|
|
86
86
|
"@wix/video": "^1.85.0",
|
|
87
87
|
"@wix/viewer-service-consent-policy": "^1.0.101",
|
|
88
88
|
"@wix/web-bi-logger": "^2.1.29",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@vitejs/plugin-react": "^4.3.4",
|
|
115
115
|
"@wix/a11y-audit-tool-plugin": "^0.391.0",
|
|
116
116
|
"@wix/astro": "^2.67.0",
|
|
117
|
-
"@wix/business-tools": "^1.0.
|
|
117
|
+
"@wix/business-tools": "^1.0.229",
|
|
118
118
|
"@wix/cli": "^1.1.235",
|
|
119
119
|
"@wix/cli-app": "^1.1.235",
|
|
120
120
|
"@wix/component-protocol": "^1.245.0",
|
|
@@ -197,5 +197,5 @@
|
|
|
197
197
|
"registry": "https://registry.npmjs.org/",
|
|
198
198
|
"access": "public"
|
|
199
199
|
},
|
|
200
|
-
"falconPackageHash": "
|
|
200
|
+
"falconPackageHash": "e3553ce2c98e0079a2e4443abc6cb3b8efc3202ff0096b9fd16e5926"
|
|
201
201
|
}
|