@plasmicapp/react-web 0.2.294 → 0.2.295
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/index.cjs.js +126 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/react-web.esm.js +126 -1
- package/dist/react-web.esm.js.map +1 -1
- package/dist/states/helpers.d.ts +6 -0
- package/package.json +2 -2
- package/skinny/dist/index.js +126 -1
- package/skinny/dist/index.js.map +1 -1
- package/skinny/dist/states/helpers.d.ts +6 -0
package/dist/index.cjs.js
CHANGED
|
@@ -11,7 +11,6 @@ var ssr = require('@react-aria/ssr');
|
|
|
11
11
|
var focus = require('@react-aria/focus');
|
|
12
12
|
var valtio = require('valtio');
|
|
13
13
|
var clone = require('clone');
|
|
14
|
-
var deepEqual = require('fast-deep-equal');
|
|
15
14
|
var checkbox = require('@react-aria/checkbox');
|
|
16
15
|
var visuallyHidden = require('@react-aria/visually-hidden');
|
|
17
16
|
var toggle = require('@react-stately/toggle');
|
|
@@ -2659,6 +2658,132 @@ function assignValue(object, key, value) {
|
|
|
2659
2658
|
baseAssignValue(object, key, value);
|
|
2660
2659
|
}
|
|
2661
2660
|
}
|
|
2661
|
+
var isInstanceOfMap = function (a) {
|
|
2662
|
+
return a != null &&
|
|
2663
|
+
typeof a === "object" &&
|
|
2664
|
+
"size" in a &&
|
|
2665
|
+
typeof a.entries === "function" &&
|
|
2666
|
+
typeof a.get === "function" &&
|
|
2667
|
+
typeof a.set === "function" &&
|
|
2668
|
+
typeof a.has === "function";
|
|
2669
|
+
};
|
|
2670
|
+
var isInstanceOfSet = function (a) {
|
|
2671
|
+
return a != null &&
|
|
2672
|
+
typeof a === "object" &&
|
|
2673
|
+
"size" in a &&
|
|
2674
|
+
typeof a.entries === "function" &&
|
|
2675
|
+
typeof a.add === "function" &&
|
|
2676
|
+
typeof a.has === "function" &&
|
|
2677
|
+
typeof a.delete === "function";
|
|
2678
|
+
};
|
|
2679
|
+
var isRegExp = function (a) {
|
|
2680
|
+
return Object.prototype.toString.call(a) === "[object RegExp]";
|
|
2681
|
+
};
|
|
2682
|
+
/**
|
|
2683
|
+
* Forked from https://github.com/jamesfoster/DeepEqual
|
|
2684
|
+
* Changes: removed the comparison between constructors and instanceof objects
|
|
2685
|
+
* because they are dependent on the window object
|
|
2686
|
+
*/
|
|
2687
|
+
function deepEqual(a, b) {
|
|
2688
|
+
var e_4, _a, e_5, _b, e_6, _c;
|
|
2689
|
+
if (a === b)
|
|
2690
|
+
return true;
|
|
2691
|
+
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
2692
|
+
// if (a.constructor !== b.constructor) return false;
|
|
2693
|
+
var length, i, keys;
|
|
2694
|
+
if (Array.isArray(a)) {
|
|
2695
|
+
length = a.length;
|
|
2696
|
+
if (length != b.length)
|
|
2697
|
+
return false;
|
|
2698
|
+
for (i = length; i-- !== 0;)
|
|
2699
|
+
if (!deepEqual(a[i], b[i]))
|
|
2700
|
+
return false;
|
|
2701
|
+
return true;
|
|
2702
|
+
}
|
|
2703
|
+
// if ((a instanceof Map) && (b instanceof Map)) {
|
|
2704
|
+
if (isInstanceOfMap(a) && isInstanceOfMap(b)) {
|
|
2705
|
+
if (a.size !== b.size)
|
|
2706
|
+
return false;
|
|
2707
|
+
try {
|
|
2708
|
+
for (var _d = __values(a.entries()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
2709
|
+
i = _e.value;
|
|
2710
|
+
if (!b.has(i[0]))
|
|
2711
|
+
return false;
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
2715
|
+
finally {
|
|
2716
|
+
try {
|
|
2717
|
+
if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
|
|
2718
|
+
}
|
|
2719
|
+
finally { if (e_4) throw e_4.error; }
|
|
2720
|
+
}
|
|
2721
|
+
try {
|
|
2722
|
+
for (var _f = __values(a.entries()), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
2723
|
+
i = _g.value;
|
|
2724
|
+
if (!deepEqual(i[1], b.get(i[0])))
|
|
2725
|
+
return false;
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
2729
|
+
finally {
|
|
2730
|
+
try {
|
|
2731
|
+
if (_g && !_g.done && (_b = _f.return)) _b.call(_f);
|
|
2732
|
+
}
|
|
2733
|
+
finally { if (e_5) throw e_5.error; }
|
|
2734
|
+
}
|
|
2735
|
+
return true;
|
|
2736
|
+
}
|
|
2737
|
+
// if ((a instanceof Set) && (b instanceof Set)) {
|
|
2738
|
+
if (isInstanceOfSet(a) && isInstanceOfSet(b)) {
|
|
2739
|
+
if (a.size !== b.size)
|
|
2740
|
+
return false;
|
|
2741
|
+
try {
|
|
2742
|
+
for (var _h = __values(a.entries()), _j = _h.next(); !_j.done; _j = _h.next()) {
|
|
2743
|
+
i = _j.value;
|
|
2744
|
+
if (!b.has(i[0]))
|
|
2745
|
+
return false;
|
|
2746
|
+
}
|
|
2747
|
+
}
|
|
2748
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
2749
|
+
finally {
|
|
2750
|
+
try {
|
|
2751
|
+
if (_j && !_j.done && (_c = _h.return)) _c.call(_h);
|
|
2752
|
+
}
|
|
2753
|
+
finally { if (e_6) throw e_6.error; }
|
|
2754
|
+
}
|
|
2755
|
+
return true;
|
|
2756
|
+
}
|
|
2757
|
+
// if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
2758
|
+
if (isRegExp(a) && isRegExp(b))
|
|
2759
|
+
return a.source === b.source && a.flags === b.flags;
|
|
2760
|
+
if (a.valueOf !== Object.prototype.valueOf)
|
|
2761
|
+
return a.valueOf() === b.valueOf();
|
|
2762
|
+
if (a.toString !== Object.prototype.toString)
|
|
2763
|
+
return a.toString() === b.toString();
|
|
2764
|
+
keys = Object.keys(a);
|
|
2765
|
+
length = keys.length;
|
|
2766
|
+
if (length !== Object.keys(b).length)
|
|
2767
|
+
return false;
|
|
2768
|
+
for (i = length; i-- !== 0;)
|
|
2769
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i]))
|
|
2770
|
+
return false;
|
|
2771
|
+
for (i = length; i-- !== 0;) {
|
|
2772
|
+
var key = keys[i];
|
|
2773
|
+
if (key === "_owner" && a.$$typeof) {
|
|
2774
|
+
// React-specific: avoid traversing React elements' _owner.
|
|
2775
|
+
// _owner contains circular references
|
|
2776
|
+
// and is not needed when comparing the actual elements (and not their owners)
|
|
2777
|
+
continue;
|
|
2778
|
+
}
|
|
2779
|
+
if (!deepEqual(a[key], b[key]))
|
|
2780
|
+
return false;
|
|
2781
|
+
}
|
|
2782
|
+
return true;
|
|
2783
|
+
}
|
|
2784
|
+
// true if both NaN, false otherwise
|
|
2785
|
+
return a !== a && b !== b;
|
|
2786
|
+
}
|
|
2662
2787
|
|
|
2663
2788
|
// Utilities used by generated code
|
|
2664
2789
|
var classNames = classNames$1;
|