@almadar/ui 3.5.3 → 3.5.4
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/avl/index.cjs +5 -4
- package/dist/avl/index.js +5 -4
- package/dist/runtime/index.cjs +5 -4
- package/dist/runtime/index.js +5 -4
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -51545,10 +51545,11 @@ function SlotsProvider({ children }) {
|
|
|
51545
51545
|
}, []);
|
|
51546
51546
|
const clearSlot = React126.useCallback((slot) => {
|
|
51547
51547
|
setSlots((prev) => {
|
|
51548
|
-
|
|
51549
|
-
|
|
51550
|
-
|
|
51551
|
-
|
|
51548
|
+
const existing = prev[slot];
|
|
51549
|
+
if (existing && existing.patterns.length === 0 && !existing.source) {
|
|
51550
|
+
return prev;
|
|
51551
|
+
}
|
|
51552
|
+
return { ...prev, [slot]: { patterns: [] } };
|
|
51552
51553
|
});
|
|
51553
51554
|
}, []);
|
|
51554
51555
|
const clearAllSlots = React126.useCallback(() => {
|
package/dist/avl/index.js
CHANGED
|
@@ -51499,10 +51499,11 @@ function SlotsProvider({ children }) {
|
|
|
51499
51499
|
}, []);
|
|
51500
51500
|
const clearSlot = useCallback((slot) => {
|
|
51501
51501
|
setSlots((prev) => {
|
|
51502
|
-
|
|
51503
|
-
|
|
51504
|
-
|
|
51505
|
-
|
|
51502
|
+
const existing = prev[slot];
|
|
51503
|
+
if (existing && existing.patterns.length === 0 && !existing.source) {
|
|
51504
|
+
return prev;
|
|
51505
|
+
}
|
|
51506
|
+
return { ...prev, [slot]: { patterns: [] } };
|
|
51506
51507
|
});
|
|
51507
51508
|
}, []);
|
|
51508
51509
|
const clearAllSlots = useCallback(() => {
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -38455,10 +38455,11 @@ function SlotsProvider({ children }) {
|
|
|
38455
38455
|
}, []);
|
|
38456
38456
|
const clearSlot = React116.useCallback((slot) => {
|
|
38457
38457
|
setSlots((prev) => {
|
|
38458
|
-
|
|
38459
|
-
|
|
38460
|
-
|
|
38461
|
-
|
|
38458
|
+
const existing = prev[slot];
|
|
38459
|
+
if (existing && existing.patterns.length === 0 && !existing.source) {
|
|
38460
|
+
return prev;
|
|
38461
|
+
}
|
|
38462
|
+
return { ...prev, [slot]: { patterns: [] } };
|
|
38462
38463
|
});
|
|
38463
38464
|
}, []);
|
|
38464
38465
|
const clearAllSlots = React116.useCallback(() => {
|
package/dist/runtime/index.js
CHANGED
|
@@ -38410,10 +38410,11 @@ function SlotsProvider({ children }) {
|
|
|
38410
38410
|
}, []);
|
|
38411
38411
|
const clearSlot = useCallback((slot) => {
|
|
38412
38412
|
setSlots((prev) => {
|
|
38413
|
-
|
|
38414
|
-
|
|
38415
|
-
|
|
38416
|
-
|
|
38413
|
+
const existing = prev[slot];
|
|
38414
|
+
if (existing && existing.patterns.length === 0 && !existing.source) {
|
|
38415
|
+
return prev;
|
|
38416
|
+
}
|
|
38417
|
+
return { ...prev, [slot]: { patterns: [] } };
|
|
38417
38418
|
});
|
|
38418
38419
|
}, []);
|
|
38419
38420
|
const clearAllSlots = useCallback(() => {
|