@measured/puck-plugin-heading-analyzer 0.21.0-canary.6dae6cb7 → 0.21.0-canary.74d9a160

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.d.mts CHANGED
@@ -82,10 +82,14 @@ type ExternalFieldWithAdaptor<Props extends any = {
82
82
  adaptorParams?: object;
83
83
  getItemSummary: (item: NotUndefined<Props>, index?: number) => string;
84
84
  };
85
+ type CacheOpts = {
86
+ enabled?: boolean;
87
+ };
85
88
  type ExternalField<Props extends any = {
86
89
  [key: string]: any;
87
90
  }> = BaseField & {
88
91
  type: "external";
92
+ cache?: CacheOpts;
89
93
  placeholder?: string;
90
94
  fetchList: (params: {
91
95
  query: string;
package/dist/index.d.ts CHANGED
@@ -82,10 +82,14 @@ type ExternalFieldWithAdaptor<Props extends any = {
82
82
  adaptorParams?: object;
83
83
  getItemSummary: (item: NotUndefined<Props>, index?: number) => string;
84
84
  };
85
+ type CacheOpts = {
86
+ enabled?: boolean;
87
+ };
85
88
  type ExternalField<Props extends any = {
86
89
  [key: string]: any;
87
90
  }> = BaseField & {
88
91
  type: "external";
92
+ cache?: CacheOpts;
89
93
  placeholder?: string;
90
94
  fetchList: (params: {
91
95
  query: string;
package/dist/index.js CHANGED
@@ -98,7 +98,7 @@ var require_classnames = __commonJS({
98
98
  init_react_import();
99
99
  (function() {
100
100
  "use strict";
101
- var hasOwn = {}.hasOwnProperty;
101
+ var hasOwn2 = {}.hasOwnProperty;
102
102
  function classNames() {
103
103
  var classes = "";
104
104
  for (var i = 0; i < arguments.length; i++) {
@@ -124,7 +124,7 @@ var require_classnames = __commonJS({
124
124
  }
125
125
  var classes = "";
126
126
  for (var key in arg) {
127
- if (hasOwn.call(arg, key) && arg[key]) {
127
+ if (hasOwn2.call(arg, key) && arg[key]) {
128
128
  classes = appendClass(classes, key);
129
129
  }
130
130
  }
@@ -213,11 +213,11 @@ var require_flat = __commonJS({
213
213
  }
214
214
  function isEmpty(val) {
215
215
  const type = Object.prototype.toString.call(val);
216
- const isArray = type === "[object Array]";
216
+ const isArray2 = type === "[object Array]";
217
217
  const isObject = type === "[object Object]";
218
218
  if (!val) {
219
219
  return true;
220
- } else if (isArray) {
220
+ } else if (isArray2) {
221
221
  return !val.length;
222
222
  } else if (isObject) {
223
223
  return !Object.keys(val).length;
@@ -267,42 +267,6 @@ var require_flat = __commonJS({
267
267
  }
268
268
  });
269
269
 
270
- // ../../node_modules/fast-deep-equal/index.js
271
- var require_fast_deep_equal = __commonJS({
272
- "../../node_modules/fast-deep-equal/index.js"(exports2, module2) {
273
- "use strict";
274
- init_react_import();
275
- module2.exports = function equal(a, b) {
276
- if (a === b) return true;
277
- if (a && b && typeof a == "object" && typeof b == "object") {
278
- if (a.constructor !== b.constructor) return false;
279
- var length, i, keys;
280
- if (Array.isArray(a)) {
281
- length = a.length;
282
- if (length != b.length) return false;
283
- for (i = length; i-- !== 0; )
284
- if (!equal(a[i], b[i])) return false;
285
- return true;
286
- }
287
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
288
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
289
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
290
- keys = Object.keys(a);
291
- length = keys.length;
292
- if (length !== Object.keys(b).length) return false;
293
- for (i = length; i-- !== 0; )
294
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
295
- for (i = length; i-- !== 0; ) {
296
- var key = keys[i];
297
- if (!equal(a[key], b[key])) return false;
298
- }
299
- return true;
300
- }
301
- return a !== a && b !== b;
302
- };
303
- }
304
- });
305
-
306
270
  // index.ts
307
271
  var plugin_heading_analyzer_exports = {};
308
272
  __export(plugin_heading_analyzer_exports, {
@@ -1690,7 +1654,7 @@ var flattenData = (state, config) => {
1690
1654
  (content) => content,
1691
1655
  (item) => {
1692
1656
  data.push(item);
1693
- return null;
1657
+ return item;
1694
1658
  }
1695
1659
  );
1696
1660
  return data;
@@ -1698,13 +1662,425 @@ var flattenData = (state, config) => {
1698
1662
 
1699
1663
  // ../core/lib/get-changed.ts
1700
1664
  init_react_import();
1701
- var import_fast_deep_equal = __toESM(require_fast_deep_equal());
1665
+
1666
+ // ../../node_modules/fast-equals/dist/esm/index.mjs
1667
+ init_react_import();
1668
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
1669
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1670
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
1671
+ function combineComparators(comparatorA, comparatorB) {
1672
+ return function isEqual(a, b, state) {
1673
+ return comparatorA(a, b, state) && comparatorB(a, b, state);
1674
+ };
1675
+ }
1676
+ function createIsCircular(areItemsEqual) {
1677
+ return function isCircular(a, b, state) {
1678
+ if (!a || !b || typeof a !== "object" || typeof b !== "object") {
1679
+ return areItemsEqual(a, b, state);
1680
+ }
1681
+ var cache2 = state.cache;
1682
+ var cachedA = cache2.get(a);
1683
+ var cachedB = cache2.get(b);
1684
+ if (cachedA && cachedB) {
1685
+ return cachedA === b && cachedB === a;
1686
+ }
1687
+ cache2.set(a, b);
1688
+ cache2.set(b, a);
1689
+ var result = areItemsEqual(a, b, state);
1690
+ cache2.delete(a);
1691
+ cache2.delete(b);
1692
+ return result;
1693
+ };
1694
+ }
1695
+ function getStrictProperties(object) {
1696
+ return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
1697
+ }
1698
+ var hasOwn = Object.hasOwn || function(object, property) {
1699
+ return hasOwnProperty.call(object, property);
1700
+ };
1701
+ function sameValueZeroEqual(a, b) {
1702
+ return a === b || !a && !b && a !== a && b !== b;
1703
+ }
1704
+ var PREACT_VNODE = "__v";
1705
+ var PREACT_OWNER = "__o";
1706
+ var REACT_OWNER = "_owner";
1707
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1708
+ var keys = Object.keys;
1709
+ function areArraysEqual(a, b, state) {
1710
+ var index = a.length;
1711
+ if (b.length !== index) {
1712
+ return false;
1713
+ }
1714
+ while (index-- > 0) {
1715
+ if (!state.equals(a[index], b[index], index, index, a, b, state)) {
1716
+ return false;
1717
+ }
1718
+ }
1719
+ return true;
1720
+ }
1721
+ function areDatesEqual(a, b) {
1722
+ return sameValueZeroEqual(a.getTime(), b.getTime());
1723
+ }
1724
+ function areErrorsEqual(a, b) {
1725
+ return a.name === b.name && a.message === b.message && a.cause === b.cause && a.stack === b.stack;
1726
+ }
1727
+ function areFunctionsEqual(a, b) {
1728
+ return a === b;
1729
+ }
1730
+ function areMapsEqual(a, b, state) {
1731
+ var size = a.size;
1732
+ if (size !== b.size) {
1733
+ return false;
1734
+ }
1735
+ if (!size) {
1736
+ return true;
1737
+ }
1738
+ var matchedIndices = new Array(size);
1739
+ var aIterable = a.entries();
1740
+ var aResult;
1741
+ var bResult;
1742
+ var index = 0;
1743
+ while (aResult = aIterable.next()) {
1744
+ if (aResult.done) {
1745
+ break;
1746
+ }
1747
+ var bIterable = b.entries();
1748
+ var hasMatch = false;
1749
+ var matchIndex = 0;
1750
+ while (bResult = bIterable.next()) {
1751
+ if (bResult.done) {
1752
+ break;
1753
+ }
1754
+ if (matchedIndices[matchIndex]) {
1755
+ matchIndex++;
1756
+ continue;
1757
+ }
1758
+ var aEntry = aResult.value;
1759
+ var bEntry = bResult.value;
1760
+ if (state.equals(aEntry[0], bEntry[0], index, matchIndex, a, b, state) && state.equals(aEntry[1], bEntry[1], aEntry[0], bEntry[0], a, b, state)) {
1761
+ hasMatch = matchedIndices[matchIndex] = true;
1762
+ break;
1763
+ }
1764
+ matchIndex++;
1765
+ }
1766
+ if (!hasMatch) {
1767
+ return false;
1768
+ }
1769
+ index++;
1770
+ }
1771
+ return true;
1772
+ }
1773
+ var areNumbersEqual = sameValueZeroEqual;
1774
+ function areObjectsEqual(a, b, state) {
1775
+ var properties = keys(a);
1776
+ var index = properties.length;
1777
+ if (keys(b).length !== index) {
1778
+ return false;
1779
+ }
1780
+ while (index-- > 0) {
1781
+ if (!isPropertyEqual(a, b, state, properties[index])) {
1782
+ return false;
1783
+ }
1784
+ }
1785
+ return true;
1786
+ }
1787
+ function areObjectsEqualStrict(a, b, state) {
1788
+ var properties = getStrictProperties(a);
1789
+ var index = properties.length;
1790
+ if (getStrictProperties(b).length !== index) {
1791
+ return false;
1792
+ }
1793
+ var property;
1794
+ var descriptorA;
1795
+ var descriptorB;
1796
+ while (index-- > 0) {
1797
+ property = properties[index];
1798
+ if (!isPropertyEqual(a, b, state, property)) {
1799
+ return false;
1800
+ }
1801
+ descriptorA = getOwnPropertyDescriptor(a, property);
1802
+ descriptorB = getOwnPropertyDescriptor(b, property);
1803
+ if ((descriptorA || descriptorB) && (!descriptorA || !descriptorB || descriptorA.configurable !== descriptorB.configurable || descriptorA.enumerable !== descriptorB.enumerable || descriptorA.writable !== descriptorB.writable)) {
1804
+ return false;
1805
+ }
1806
+ }
1807
+ return true;
1808
+ }
1809
+ function arePrimitiveWrappersEqual(a, b) {
1810
+ return sameValueZeroEqual(a.valueOf(), b.valueOf());
1811
+ }
1812
+ function areRegExpsEqual(a, b) {
1813
+ return a.source === b.source && a.flags === b.flags;
1814
+ }
1815
+ function areSetsEqual(a, b, state) {
1816
+ var size = a.size;
1817
+ if (size !== b.size) {
1818
+ return false;
1819
+ }
1820
+ if (!size) {
1821
+ return true;
1822
+ }
1823
+ var matchedIndices = new Array(size);
1824
+ var aIterable = a.values();
1825
+ var aResult;
1826
+ var bResult;
1827
+ while (aResult = aIterable.next()) {
1828
+ if (aResult.done) {
1829
+ break;
1830
+ }
1831
+ var bIterable = b.values();
1832
+ var hasMatch = false;
1833
+ var matchIndex = 0;
1834
+ while (bResult = bIterable.next()) {
1835
+ if (bResult.done) {
1836
+ break;
1837
+ }
1838
+ if (!matchedIndices[matchIndex] && state.equals(aResult.value, bResult.value, aResult.value, bResult.value, a, b, state)) {
1839
+ hasMatch = matchedIndices[matchIndex] = true;
1840
+ break;
1841
+ }
1842
+ matchIndex++;
1843
+ }
1844
+ if (!hasMatch) {
1845
+ return false;
1846
+ }
1847
+ }
1848
+ return true;
1849
+ }
1850
+ function areTypedArraysEqual(a, b) {
1851
+ var index = a.length;
1852
+ if (b.length !== index) {
1853
+ return false;
1854
+ }
1855
+ while (index-- > 0) {
1856
+ if (a[index] !== b[index]) {
1857
+ return false;
1858
+ }
1859
+ }
1860
+ return true;
1861
+ }
1862
+ function areUrlsEqual(a, b) {
1863
+ return a.hostname === b.hostname && a.pathname === b.pathname && a.protocol === b.protocol && a.port === b.port && a.hash === b.hash && a.username === b.username && a.password === b.password;
1864
+ }
1865
+ function isPropertyEqual(a, b, state, property) {
1866
+ if ((property === REACT_OWNER || property === PREACT_OWNER || property === PREACT_VNODE) && (a.$$typeof || b.$$typeof)) {
1867
+ return true;
1868
+ }
1869
+ return hasOwn(b, property) && state.equals(a[property], b[property], property, property, a, b, state);
1870
+ }
1871
+ var ARGUMENTS_TAG = "[object Arguments]";
1872
+ var BOOLEAN_TAG = "[object Boolean]";
1873
+ var DATE_TAG = "[object Date]";
1874
+ var ERROR_TAG = "[object Error]";
1875
+ var MAP_TAG = "[object Map]";
1876
+ var NUMBER_TAG = "[object Number]";
1877
+ var OBJECT_TAG = "[object Object]";
1878
+ var REG_EXP_TAG = "[object RegExp]";
1879
+ var SET_TAG = "[object Set]";
1880
+ var STRING_TAG = "[object String]";
1881
+ var URL_TAG = "[object URL]";
1882
+ var isArray = Array.isArray;
1883
+ var isTypedArray = typeof ArrayBuffer === "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null;
1884
+ var assign = Object.assign;
1885
+ var getTag = Object.prototype.toString.call.bind(Object.prototype.toString);
1886
+ function createEqualityComparator(_a) {
1887
+ var areArraysEqual2 = _a.areArraysEqual, areDatesEqual2 = _a.areDatesEqual, areErrorsEqual2 = _a.areErrorsEqual, areFunctionsEqual2 = _a.areFunctionsEqual, areMapsEqual2 = _a.areMapsEqual, areNumbersEqual2 = _a.areNumbersEqual, areObjectsEqual2 = _a.areObjectsEqual, arePrimitiveWrappersEqual2 = _a.arePrimitiveWrappersEqual, areRegExpsEqual2 = _a.areRegExpsEqual, areSetsEqual2 = _a.areSetsEqual, areTypedArraysEqual2 = _a.areTypedArraysEqual, areUrlsEqual2 = _a.areUrlsEqual;
1888
+ return function comparator(a, b, state) {
1889
+ if (a === b) {
1890
+ return true;
1891
+ }
1892
+ if (a == null || b == null) {
1893
+ return false;
1894
+ }
1895
+ var type = typeof a;
1896
+ if (type !== typeof b) {
1897
+ return false;
1898
+ }
1899
+ if (type !== "object") {
1900
+ if (type === "number") {
1901
+ return areNumbersEqual2(a, b, state);
1902
+ }
1903
+ if (type === "function") {
1904
+ return areFunctionsEqual2(a, b, state);
1905
+ }
1906
+ return false;
1907
+ }
1908
+ var constructor = a.constructor;
1909
+ if (constructor !== b.constructor) {
1910
+ return false;
1911
+ }
1912
+ if (constructor === Object) {
1913
+ return areObjectsEqual2(a, b, state);
1914
+ }
1915
+ if (isArray(a)) {
1916
+ return areArraysEqual2(a, b, state);
1917
+ }
1918
+ if (isTypedArray != null && isTypedArray(a)) {
1919
+ return areTypedArraysEqual2(a, b, state);
1920
+ }
1921
+ if (constructor === Date) {
1922
+ return areDatesEqual2(a, b, state);
1923
+ }
1924
+ if (constructor === RegExp) {
1925
+ return areRegExpsEqual2(a, b, state);
1926
+ }
1927
+ if (constructor === Map) {
1928
+ return areMapsEqual2(a, b, state);
1929
+ }
1930
+ if (constructor === Set) {
1931
+ return areSetsEqual2(a, b, state);
1932
+ }
1933
+ var tag = getTag(a);
1934
+ if (tag === DATE_TAG) {
1935
+ return areDatesEqual2(a, b, state);
1936
+ }
1937
+ if (tag === REG_EXP_TAG) {
1938
+ return areRegExpsEqual2(a, b, state);
1939
+ }
1940
+ if (tag === MAP_TAG) {
1941
+ return areMapsEqual2(a, b, state);
1942
+ }
1943
+ if (tag === SET_TAG) {
1944
+ return areSetsEqual2(a, b, state);
1945
+ }
1946
+ if (tag === OBJECT_TAG) {
1947
+ return typeof a.then !== "function" && typeof b.then !== "function" && areObjectsEqual2(a, b, state);
1948
+ }
1949
+ if (tag === URL_TAG) {
1950
+ return areUrlsEqual2(a, b, state);
1951
+ }
1952
+ if (tag === ERROR_TAG) {
1953
+ return areErrorsEqual2(a, b, state);
1954
+ }
1955
+ if (tag === ARGUMENTS_TAG) {
1956
+ return areObjectsEqual2(a, b, state);
1957
+ }
1958
+ if (tag === BOOLEAN_TAG || tag === NUMBER_TAG || tag === STRING_TAG) {
1959
+ return arePrimitiveWrappersEqual2(a, b, state);
1960
+ }
1961
+ return false;
1962
+ };
1963
+ }
1964
+ function createEqualityComparatorConfig(_a) {
1965
+ var circular = _a.circular, createCustomConfig = _a.createCustomConfig, strict = _a.strict;
1966
+ var config = {
1967
+ areArraysEqual: strict ? areObjectsEqualStrict : areArraysEqual,
1968
+ areDatesEqual,
1969
+ areErrorsEqual,
1970
+ areFunctionsEqual,
1971
+ areMapsEqual: strict ? combineComparators(areMapsEqual, areObjectsEqualStrict) : areMapsEqual,
1972
+ areNumbersEqual,
1973
+ areObjectsEqual: strict ? areObjectsEqualStrict : areObjectsEqual,
1974
+ arePrimitiveWrappersEqual,
1975
+ areRegExpsEqual,
1976
+ areSetsEqual: strict ? combineComparators(areSetsEqual, areObjectsEqualStrict) : areSetsEqual,
1977
+ areTypedArraysEqual: strict ? areObjectsEqualStrict : areTypedArraysEqual,
1978
+ areUrlsEqual
1979
+ };
1980
+ if (createCustomConfig) {
1981
+ config = assign({}, config, createCustomConfig(config));
1982
+ }
1983
+ if (circular) {
1984
+ var areArraysEqual$1 = createIsCircular(config.areArraysEqual);
1985
+ var areMapsEqual$1 = createIsCircular(config.areMapsEqual);
1986
+ var areObjectsEqual$1 = createIsCircular(config.areObjectsEqual);
1987
+ var areSetsEqual$1 = createIsCircular(config.areSetsEqual);
1988
+ config = assign({}, config, {
1989
+ areArraysEqual: areArraysEqual$1,
1990
+ areMapsEqual: areMapsEqual$1,
1991
+ areObjectsEqual: areObjectsEqual$1,
1992
+ areSetsEqual: areSetsEqual$1
1993
+ });
1994
+ }
1995
+ return config;
1996
+ }
1997
+ function createInternalEqualityComparator(compare) {
1998
+ return function(a, b, _indexOrKeyA, _indexOrKeyB, _parentA, _parentB, state) {
1999
+ return compare(a, b, state);
2000
+ };
2001
+ }
2002
+ function createIsEqual(_a) {
2003
+ var circular = _a.circular, comparator = _a.comparator, createState = _a.createState, equals = _a.equals, strict = _a.strict;
2004
+ if (createState) {
2005
+ return function isEqual(a, b) {
2006
+ var _a2 = createState(), _b = _a2.cache, cache2 = _b === void 0 ? circular ? /* @__PURE__ */ new WeakMap() : void 0 : _b, meta = _a2.meta;
2007
+ return comparator(a, b, {
2008
+ cache: cache2,
2009
+ equals,
2010
+ meta,
2011
+ strict
2012
+ });
2013
+ };
2014
+ }
2015
+ if (circular) {
2016
+ return function isEqual(a, b) {
2017
+ return comparator(a, b, {
2018
+ cache: /* @__PURE__ */ new WeakMap(),
2019
+ equals,
2020
+ meta: void 0,
2021
+ strict
2022
+ });
2023
+ };
2024
+ }
2025
+ var state = {
2026
+ cache: void 0,
2027
+ equals,
2028
+ meta: void 0,
2029
+ strict
2030
+ };
2031
+ return function isEqual(a, b) {
2032
+ return comparator(a, b, state);
2033
+ };
2034
+ }
2035
+ var deepEqual = createCustomEqual();
2036
+ var strictDeepEqual = createCustomEqual({ strict: true });
2037
+ var circularDeepEqual = createCustomEqual({ circular: true });
2038
+ var strictCircularDeepEqual = createCustomEqual({
2039
+ circular: true,
2040
+ strict: true
2041
+ });
2042
+ var shallowEqual = createCustomEqual({
2043
+ createInternalComparator: function() {
2044
+ return sameValueZeroEqual;
2045
+ }
2046
+ });
2047
+ var strictShallowEqual = createCustomEqual({
2048
+ strict: true,
2049
+ createInternalComparator: function() {
2050
+ return sameValueZeroEqual;
2051
+ }
2052
+ });
2053
+ var circularShallowEqual = createCustomEqual({
2054
+ circular: true,
2055
+ createInternalComparator: function() {
2056
+ return sameValueZeroEqual;
2057
+ }
2058
+ });
2059
+ var strictCircularShallowEqual = createCustomEqual({
2060
+ circular: true,
2061
+ createInternalComparator: function() {
2062
+ return sameValueZeroEqual;
2063
+ },
2064
+ strict: true
2065
+ });
2066
+ function createCustomEqual(options) {
2067
+ if (options === void 0) {
2068
+ options = {};
2069
+ }
2070
+ var _a = options.circular, circular = _a === void 0 ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === void 0 ? false : _b;
2071
+ var config = createEqualityComparatorConfig(options);
2072
+ var comparator = createEqualityComparator(config);
2073
+ var equals = createCustomInternalComparator ? createCustomInternalComparator(comparator) : createInternalEqualityComparator(comparator);
2074
+ return createIsEqual({ circular, comparator, createState, equals, strict });
2075
+ }
2076
+
2077
+ // ../core/lib/get-changed.ts
1702
2078
  var getChanged = (newItem, oldItem) => {
1703
2079
  return newItem ? Object.keys(newItem.props || {}).reduce((acc, item) => {
1704
2080
  const newItemProps = (newItem == null ? void 0 : newItem.props) || {};
1705
2081
  const oldItemProps = (oldItem == null ? void 0 : oldItem.props) || {};
1706
2082
  return __spreadProps(__spreadValues({}, acc), {
1707
- [item]: !(0, import_fast_deep_equal.default)(oldItemProps[item], newItemProps[item])
2083
+ [item]: !deepEqual(oldItemProps[item], newItemProps[item])
1708
2084
  });
1709
2085
  }, {}) : {};
1710
2086
  };
@@ -1829,7 +2205,6 @@ var createFieldsSlice = (_set, _get) => {
1829
2205
 
1830
2206
  // ../core/lib/resolve-component-data.ts
1831
2207
  init_react_import();
1832
- var import_fast_deep_equal2 = __toESM(require_fast_deep_equal());
1833
2208
  var cache = { lastChange: {} };
1834
2209
  var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
1835
2210
  const configForItem = "type" in item && item.type !== "root" ? config.components[item.type] : config.root;
@@ -1838,7 +2213,7 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
1838
2213
  const id = "id" in item.props ? item.props.id : "root";
1839
2214
  if (shouldRunResolver) {
1840
2215
  const { item: oldItem = null, resolved = {} } = cache.lastChange[id] || {};
1841
- if (trigger !== "force" && item && (0, import_fast_deep_equal2.default)(item, oldItem)) {
2216
+ if (trigger !== "force" && item && deepEqual(item, oldItem)) {
1842
2217
  return { node: resolved, didChange: false };
1843
2218
  }
1844
2219
  const changed = getChanged(item, oldItem);
@@ -1888,7 +2263,7 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
1888
2263
  };
1889
2264
  return {
1890
2265
  node: itemWithResolvedChildren,
1891
- didChange: !(0, import_fast_deep_equal2.default)(item, itemWithResolvedChildren)
2266
+ didChange: !deepEqual(item, itemWithResolvedChildren)
1892
2267
  };
1893
2268
  });
1894
2269
 
package/dist/index.mjs CHANGED
@@ -91,7 +91,7 @@ var require_classnames = __commonJS({
91
91
  init_react_import();
92
92
  (function() {
93
93
  "use strict";
94
- var hasOwn = {}.hasOwnProperty;
94
+ var hasOwn2 = {}.hasOwnProperty;
95
95
  function classNames() {
96
96
  var classes = "";
97
97
  for (var i = 0; i < arguments.length; i++) {
@@ -117,7 +117,7 @@ var require_classnames = __commonJS({
117
117
  }
118
118
  var classes = "";
119
119
  for (var key in arg) {
120
- if (hasOwn.call(arg, key) && arg[key]) {
120
+ if (hasOwn2.call(arg, key) && arg[key]) {
121
121
  classes = appendClass(classes, key);
122
122
  }
123
123
  }
@@ -206,11 +206,11 @@ var require_flat = __commonJS({
206
206
  }
207
207
  function isEmpty(val) {
208
208
  const type = Object.prototype.toString.call(val);
209
- const isArray = type === "[object Array]";
209
+ const isArray2 = type === "[object Array]";
210
210
  const isObject = type === "[object Object]";
211
211
  if (!val) {
212
212
  return true;
213
- } else if (isArray) {
213
+ } else if (isArray2) {
214
214
  return !val.length;
215
215
  } else if (isObject) {
216
216
  return !Object.keys(val).length;
@@ -260,42 +260,6 @@ var require_flat = __commonJS({
260
260
  }
261
261
  });
262
262
 
263
- // ../../node_modules/fast-deep-equal/index.js
264
- var require_fast_deep_equal = __commonJS({
265
- "../../node_modules/fast-deep-equal/index.js"(exports, module) {
266
- "use strict";
267
- init_react_import();
268
- module.exports = function equal(a, b) {
269
- if (a === b) return true;
270
- if (a && b && typeof a == "object" && typeof b == "object") {
271
- if (a.constructor !== b.constructor) return false;
272
- var length, i, keys;
273
- if (Array.isArray(a)) {
274
- length = a.length;
275
- if (length != b.length) return false;
276
- for (i = length; i-- !== 0; )
277
- if (!equal(a[i], b[i])) return false;
278
- return true;
279
- }
280
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
281
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
282
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
283
- keys = Object.keys(a);
284
- length = keys.length;
285
- if (length !== Object.keys(b).length) return false;
286
- for (i = length; i-- !== 0; )
287
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
288
- for (i = length; i-- !== 0; ) {
289
- var key = keys[i];
290
- if (!equal(a[key], b[key])) return false;
291
- }
292
- return true;
293
- }
294
- return a !== a && b !== b;
295
- };
296
- }
297
- });
298
-
299
263
  // index.ts
300
264
  init_react_import();
301
265
 
@@ -1678,7 +1642,7 @@ var flattenData = (state, config) => {
1678
1642
  (content) => content,
1679
1643
  (item) => {
1680
1644
  data.push(item);
1681
- return null;
1645
+ return item;
1682
1646
  }
1683
1647
  );
1684
1648
  return data;
@@ -1686,13 +1650,425 @@ var flattenData = (state, config) => {
1686
1650
 
1687
1651
  // ../core/lib/get-changed.ts
1688
1652
  init_react_import();
1689
- var import_fast_deep_equal = __toESM(require_fast_deep_equal());
1653
+
1654
+ // ../../node_modules/fast-equals/dist/esm/index.mjs
1655
+ init_react_import();
1656
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
1657
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1658
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
1659
+ function combineComparators(comparatorA, comparatorB) {
1660
+ return function isEqual(a, b, state) {
1661
+ return comparatorA(a, b, state) && comparatorB(a, b, state);
1662
+ };
1663
+ }
1664
+ function createIsCircular(areItemsEqual) {
1665
+ return function isCircular(a, b, state) {
1666
+ if (!a || !b || typeof a !== "object" || typeof b !== "object") {
1667
+ return areItemsEqual(a, b, state);
1668
+ }
1669
+ var cache2 = state.cache;
1670
+ var cachedA = cache2.get(a);
1671
+ var cachedB = cache2.get(b);
1672
+ if (cachedA && cachedB) {
1673
+ return cachedA === b && cachedB === a;
1674
+ }
1675
+ cache2.set(a, b);
1676
+ cache2.set(b, a);
1677
+ var result = areItemsEqual(a, b, state);
1678
+ cache2.delete(a);
1679
+ cache2.delete(b);
1680
+ return result;
1681
+ };
1682
+ }
1683
+ function getStrictProperties(object) {
1684
+ return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
1685
+ }
1686
+ var hasOwn = Object.hasOwn || function(object, property) {
1687
+ return hasOwnProperty.call(object, property);
1688
+ };
1689
+ function sameValueZeroEqual(a, b) {
1690
+ return a === b || !a && !b && a !== a && b !== b;
1691
+ }
1692
+ var PREACT_VNODE = "__v";
1693
+ var PREACT_OWNER = "__o";
1694
+ var REACT_OWNER = "_owner";
1695
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1696
+ var keys = Object.keys;
1697
+ function areArraysEqual(a, b, state) {
1698
+ var index = a.length;
1699
+ if (b.length !== index) {
1700
+ return false;
1701
+ }
1702
+ while (index-- > 0) {
1703
+ if (!state.equals(a[index], b[index], index, index, a, b, state)) {
1704
+ return false;
1705
+ }
1706
+ }
1707
+ return true;
1708
+ }
1709
+ function areDatesEqual(a, b) {
1710
+ return sameValueZeroEqual(a.getTime(), b.getTime());
1711
+ }
1712
+ function areErrorsEqual(a, b) {
1713
+ return a.name === b.name && a.message === b.message && a.cause === b.cause && a.stack === b.stack;
1714
+ }
1715
+ function areFunctionsEqual(a, b) {
1716
+ return a === b;
1717
+ }
1718
+ function areMapsEqual(a, b, state) {
1719
+ var size = a.size;
1720
+ if (size !== b.size) {
1721
+ return false;
1722
+ }
1723
+ if (!size) {
1724
+ return true;
1725
+ }
1726
+ var matchedIndices = new Array(size);
1727
+ var aIterable = a.entries();
1728
+ var aResult;
1729
+ var bResult;
1730
+ var index = 0;
1731
+ while (aResult = aIterable.next()) {
1732
+ if (aResult.done) {
1733
+ break;
1734
+ }
1735
+ var bIterable = b.entries();
1736
+ var hasMatch = false;
1737
+ var matchIndex = 0;
1738
+ while (bResult = bIterable.next()) {
1739
+ if (bResult.done) {
1740
+ break;
1741
+ }
1742
+ if (matchedIndices[matchIndex]) {
1743
+ matchIndex++;
1744
+ continue;
1745
+ }
1746
+ var aEntry = aResult.value;
1747
+ var bEntry = bResult.value;
1748
+ if (state.equals(aEntry[0], bEntry[0], index, matchIndex, a, b, state) && state.equals(aEntry[1], bEntry[1], aEntry[0], bEntry[0], a, b, state)) {
1749
+ hasMatch = matchedIndices[matchIndex] = true;
1750
+ break;
1751
+ }
1752
+ matchIndex++;
1753
+ }
1754
+ if (!hasMatch) {
1755
+ return false;
1756
+ }
1757
+ index++;
1758
+ }
1759
+ return true;
1760
+ }
1761
+ var areNumbersEqual = sameValueZeroEqual;
1762
+ function areObjectsEqual(a, b, state) {
1763
+ var properties = keys(a);
1764
+ var index = properties.length;
1765
+ if (keys(b).length !== index) {
1766
+ return false;
1767
+ }
1768
+ while (index-- > 0) {
1769
+ if (!isPropertyEqual(a, b, state, properties[index])) {
1770
+ return false;
1771
+ }
1772
+ }
1773
+ return true;
1774
+ }
1775
+ function areObjectsEqualStrict(a, b, state) {
1776
+ var properties = getStrictProperties(a);
1777
+ var index = properties.length;
1778
+ if (getStrictProperties(b).length !== index) {
1779
+ return false;
1780
+ }
1781
+ var property;
1782
+ var descriptorA;
1783
+ var descriptorB;
1784
+ while (index-- > 0) {
1785
+ property = properties[index];
1786
+ if (!isPropertyEqual(a, b, state, property)) {
1787
+ return false;
1788
+ }
1789
+ descriptorA = getOwnPropertyDescriptor(a, property);
1790
+ descriptorB = getOwnPropertyDescriptor(b, property);
1791
+ if ((descriptorA || descriptorB) && (!descriptorA || !descriptorB || descriptorA.configurable !== descriptorB.configurable || descriptorA.enumerable !== descriptorB.enumerable || descriptorA.writable !== descriptorB.writable)) {
1792
+ return false;
1793
+ }
1794
+ }
1795
+ return true;
1796
+ }
1797
+ function arePrimitiveWrappersEqual(a, b) {
1798
+ return sameValueZeroEqual(a.valueOf(), b.valueOf());
1799
+ }
1800
+ function areRegExpsEqual(a, b) {
1801
+ return a.source === b.source && a.flags === b.flags;
1802
+ }
1803
+ function areSetsEqual(a, b, state) {
1804
+ var size = a.size;
1805
+ if (size !== b.size) {
1806
+ return false;
1807
+ }
1808
+ if (!size) {
1809
+ return true;
1810
+ }
1811
+ var matchedIndices = new Array(size);
1812
+ var aIterable = a.values();
1813
+ var aResult;
1814
+ var bResult;
1815
+ while (aResult = aIterable.next()) {
1816
+ if (aResult.done) {
1817
+ break;
1818
+ }
1819
+ var bIterable = b.values();
1820
+ var hasMatch = false;
1821
+ var matchIndex = 0;
1822
+ while (bResult = bIterable.next()) {
1823
+ if (bResult.done) {
1824
+ break;
1825
+ }
1826
+ if (!matchedIndices[matchIndex] && state.equals(aResult.value, bResult.value, aResult.value, bResult.value, a, b, state)) {
1827
+ hasMatch = matchedIndices[matchIndex] = true;
1828
+ break;
1829
+ }
1830
+ matchIndex++;
1831
+ }
1832
+ if (!hasMatch) {
1833
+ return false;
1834
+ }
1835
+ }
1836
+ return true;
1837
+ }
1838
+ function areTypedArraysEqual(a, b) {
1839
+ var index = a.length;
1840
+ if (b.length !== index) {
1841
+ return false;
1842
+ }
1843
+ while (index-- > 0) {
1844
+ if (a[index] !== b[index]) {
1845
+ return false;
1846
+ }
1847
+ }
1848
+ return true;
1849
+ }
1850
+ function areUrlsEqual(a, b) {
1851
+ return a.hostname === b.hostname && a.pathname === b.pathname && a.protocol === b.protocol && a.port === b.port && a.hash === b.hash && a.username === b.username && a.password === b.password;
1852
+ }
1853
+ function isPropertyEqual(a, b, state, property) {
1854
+ if ((property === REACT_OWNER || property === PREACT_OWNER || property === PREACT_VNODE) && (a.$$typeof || b.$$typeof)) {
1855
+ return true;
1856
+ }
1857
+ return hasOwn(b, property) && state.equals(a[property], b[property], property, property, a, b, state);
1858
+ }
1859
+ var ARGUMENTS_TAG = "[object Arguments]";
1860
+ var BOOLEAN_TAG = "[object Boolean]";
1861
+ var DATE_TAG = "[object Date]";
1862
+ var ERROR_TAG = "[object Error]";
1863
+ var MAP_TAG = "[object Map]";
1864
+ var NUMBER_TAG = "[object Number]";
1865
+ var OBJECT_TAG = "[object Object]";
1866
+ var REG_EXP_TAG = "[object RegExp]";
1867
+ var SET_TAG = "[object Set]";
1868
+ var STRING_TAG = "[object String]";
1869
+ var URL_TAG = "[object URL]";
1870
+ var isArray = Array.isArray;
1871
+ var isTypedArray = typeof ArrayBuffer === "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null;
1872
+ var assign = Object.assign;
1873
+ var getTag = Object.prototype.toString.call.bind(Object.prototype.toString);
1874
+ function createEqualityComparator(_a) {
1875
+ var areArraysEqual2 = _a.areArraysEqual, areDatesEqual2 = _a.areDatesEqual, areErrorsEqual2 = _a.areErrorsEqual, areFunctionsEqual2 = _a.areFunctionsEqual, areMapsEqual2 = _a.areMapsEqual, areNumbersEqual2 = _a.areNumbersEqual, areObjectsEqual2 = _a.areObjectsEqual, arePrimitiveWrappersEqual2 = _a.arePrimitiveWrappersEqual, areRegExpsEqual2 = _a.areRegExpsEqual, areSetsEqual2 = _a.areSetsEqual, areTypedArraysEqual2 = _a.areTypedArraysEqual, areUrlsEqual2 = _a.areUrlsEqual;
1876
+ return function comparator(a, b, state) {
1877
+ if (a === b) {
1878
+ return true;
1879
+ }
1880
+ if (a == null || b == null) {
1881
+ return false;
1882
+ }
1883
+ var type = typeof a;
1884
+ if (type !== typeof b) {
1885
+ return false;
1886
+ }
1887
+ if (type !== "object") {
1888
+ if (type === "number") {
1889
+ return areNumbersEqual2(a, b, state);
1890
+ }
1891
+ if (type === "function") {
1892
+ return areFunctionsEqual2(a, b, state);
1893
+ }
1894
+ return false;
1895
+ }
1896
+ var constructor = a.constructor;
1897
+ if (constructor !== b.constructor) {
1898
+ return false;
1899
+ }
1900
+ if (constructor === Object) {
1901
+ return areObjectsEqual2(a, b, state);
1902
+ }
1903
+ if (isArray(a)) {
1904
+ return areArraysEqual2(a, b, state);
1905
+ }
1906
+ if (isTypedArray != null && isTypedArray(a)) {
1907
+ return areTypedArraysEqual2(a, b, state);
1908
+ }
1909
+ if (constructor === Date) {
1910
+ return areDatesEqual2(a, b, state);
1911
+ }
1912
+ if (constructor === RegExp) {
1913
+ return areRegExpsEqual2(a, b, state);
1914
+ }
1915
+ if (constructor === Map) {
1916
+ return areMapsEqual2(a, b, state);
1917
+ }
1918
+ if (constructor === Set) {
1919
+ return areSetsEqual2(a, b, state);
1920
+ }
1921
+ var tag = getTag(a);
1922
+ if (tag === DATE_TAG) {
1923
+ return areDatesEqual2(a, b, state);
1924
+ }
1925
+ if (tag === REG_EXP_TAG) {
1926
+ return areRegExpsEqual2(a, b, state);
1927
+ }
1928
+ if (tag === MAP_TAG) {
1929
+ return areMapsEqual2(a, b, state);
1930
+ }
1931
+ if (tag === SET_TAG) {
1932
+ return areSetsEqual2(a, b, state);
1933
+ }
1934
+ if (tag === OBJECT_TAG) {
1935
+ return typeof a.then !== "function" && typeof b.then !== "function" && areObjectsEqual2(a, b, state);
1936
+ }
1937
+ if (tag === URL_TAG) {
1938
+ return areUrlsEqual2(a, b, state);
1939
+ }
1940
+ if (tag === ERROR_TAG) {
1941
+ return areErrorsEqual2(a, b, state);
1942
+ }
1943
+ if (tag === ARGUMENTS_TAG) {
1944
+ return areObjectsEqual2(a, b, state);
1945
+ }
1946
+ if (tag === BOOLEAN_TAG || tag === NUMBER_TAG || tag === STRING_TAG) {
1947
+ return arePrimitiveWrappersEqual2(a, b, state);
1948
+ }
1949
+ return false;
1950
+ };
1951
+ }
1952
+ function createEqualityComparatorConfig(_a) {
1953
+ var circular = _a.circular, createCustomConfig = _a.createCustomConfig, strict = _a.strict;
1954
+ var config = {
1955
+ areArraysEqual: strict ? areObjectsEqualStrict : areArraysEqual,
1956
+ areDatesEqual,
1957
+ areErrorsEqual,
1958
+ areFunctionsEqual,
1959
+ areMapsEqual: strict ? combineComparators(areMapsEqual, areObjectsEqualStrict) : areMapsEqual,
1960
+ areNumbersEqual,
1961
+ areObjectsEqual: strict ? areObjectsEqualStrict : areObjectsEqual,
1962
+ arePrimitiveWrappersEqual,
1963
+ areRegExpsEqual,
1964
+ areSetsEqual: strict ? combineComparators(areSetsEqual, areObjectsEqualStrict) : areSetsEqual,
1965
+ areTypedArraysEqual: strict ? areObjectsEqualStrict : areTypedArraysEqual,
1966
+ areUrlsEqual
1967
+ };
1968
+ if (createCustomConfig) {
1969
+ config = assign({}, config, createCustomConfig(config));
1970
+ }
1971
+ if (circular) {
1972
+ var areArraysEqual$1 = createIsCircular(config.areArraysEqual);
1973
+ var areMapsEqual$1 = createIsCircular(config.areMapsEqual);
1974
+ var areObjectsEqual$1 = createIsCircular(config.areObjectsEqual);
1975
+ var areSetsEqual$1 = createIsCircular(config.areSetsEqual);
1976
+ config = assign({}, config, {
1977
+ areArraysEqual: areArraysEqual$1,
1978
+ areMapsEqual: areMapsEqual$1,
1979
+ areObjectsEqual: areObjectsEqual$1,
1980
+ areSetsEqual: areSetsEqual$1
1981
+ });
1982
+ }
1983
+ return config;
1984
+ }
1985
+ function createInternalEqualityComparator(compare) {
1986
+ return function(a, b, _indexOrKeyA, _indexOrKeyB, _parentA, _parentB, state) {
1987
+ return compare(a, b, state);
1988
+ };
1989
+ }
1990
+ function createIsEqual(_a) {
1991
+ var circular = _a.circular, comparator = _a.comparator, createState = _a.createState, equals = _a.equals, strict = _a.strict;
1992
+ if (createState) {
1993
+ return function isEqual(a, b) {
1994
+ var _a2 = createState(), _b = _a2.cache, cache2 = _b === void 0 ? circular ? /* @__PURE__ */ new WeakMap() : void 0 : _b, meta = _a2.meta;
1995
+ return comparator(a, b, {
1996
+ cache: cache2,
1997
+ equals,
1998
+ meta,
1999
+ strict
2000
+ });
2001
+ };
2002
+ }
2003
+ if (circular) {
2004
+ return function isEqual(a, b) {
2005
+ return comparator(a, b, {
2006
+ cache: /* @__PURE__ */ new WeakMap(),
2007
+ equals,
2008
+ meta: void 0,
2009
+ strict
2010
+ });
2011
+ };
2012
+ }
2013
+ var state = {
2014
+ cache: void 0,
2015
+ equals,
2016
+ meta: void 0,
2017
+ strict
2018
+ };
2019
+ return function isEqual(a, b) {
2020
+ return comparator(a, b, state);
2021
+ };
2022
+ }
2023
+ var deepEqual = createCustomEqual();
2024
+ var strictDeepEqual = createCustomEqual({ strict: true });
2025
+ var circularDeepEqual = createCustomEqual({ circular: true });
2026
+ var strictCircularDeepEqual = createCustomEqual({
2027
+ circular: true,
2028
+ strict: true
2029
+ });
2030
+ var shallowEqual = createCustomEqual({
2031
+ createInternalComparator: function() {
2032
+ return sameValueZeroEqual;
2033
+ }
2034
+ });
2035
+ var strictShallowEqual = createCustomEqual({
2036
+ strict: true,
2037
+ createInternalComparator: function() {
2038
+ return sameValueZeroEqual;
2039
+ }
2040
+ });
2041
+ var circularShallowEqual = createCustomEqual({
2042
+ circular: true,
2043
+ createInternalComparator: function() {
2044
+ return sameValueZeroEqual;
2045
+ }
2046
+ });
2047
+ var strictCircularShallowEqual = createCustomEqual({
2048
+ circular: true,
2049
+ createInternalComparator: function() {
2050
+ return sameValueZeroEqual;
2051
+ },
2052
+ strict: true
2053
+ });
2054
+ function createCustomEqual(options) {
2055
+ if (options === void 0) {
2056
+ options = {};
2057
+ }
2058
+ var _a = options.circular, circular = _a === void 0 ? false : _a, createCustomInternalComparator = options.createInternalComparator, createState = options.createState, _b = options.strict, strict = _b === void 0 ? false : _b;
2059
+ var config = createEqualityComparatorConfig(options);
2060
+ var comparator = createEqualityComparator(config);
2061
+ var equals = createCustomInternalComparator ? createCustomInternalComparator(comparator) : createInternalEqualityComparator(comparator);
2062
+ return createIsEqual({ circular, comparator, createState, equals, strict });
2063
+ }
2064
+
2065
+ // ../core/lib/get-changed.ts
1690
2066
  var getChanged = (newItem, oldItem) => {
1691
2067
  return newItem ? Object.keys(newItem.props || {}).reduce((acc, item) => {
1692
2068
  const newItemProps = (newItem == null ? void 0 : newItem.props) || {};
1693
2069
  const oldItemProps = (oldItem == null ? void 0 : oldItem.props) || {};
1694
2070
  return __spreadProps(__spreadValues({}, acc), {
1695
- [item]: !(0, import_fast_deep_equal.default)(oldItemProps[item], newItemProps[item])
2071
+ [item]: !deepEqual(oldItemProps[item], newItemProps[item])
1696
2072
  });
1697
2073
  }, {}) : {};
1698
2074
  };
@@ -1817,7 +2193,6 @@ var createFieldsSlice = (_set, _get) => {
1817
2193
 
1818
2194
  // ../core/lib/resolve-component-data.ts
1819
2195
  init_react_import();
1820
- var import_fast_deep_equal2 = __toESM(require_fast_deep_equal());
1821
2196
  var cache = { lastChange: {} };
1822
2197
  var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
1823
2198
  const configForItem = "type" in item && item.type !== "root" ? config.components[item.type] : config.root;
@@ -1826,7 +2201,7 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
1826
2201
  const id = "id" in item.props ? item.props.id : "root";
1827
2202
  if (shouldRunResolver) {
1828
2203
  const { item: oldItem = null, resolved = {} } = cache.lastChange[id] || {};
1829
- if (trigger !== "force" && item && (0, import_fast_deep_equal2.default)(item, oldItem)) {
2204
+ if (trigger !== "force" && item && deepEqual(item, oldItem)) {
1830
2205
  return { node: resolved, didChange: false };
1831
2206
  }
1832
2207
  const changed = getChanged(item, oldItem);
@@ -1876,7 +2251,7 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
1876
2251
  };
1877
2252
  return {
1878
2253
  node: itemWithResolvedChildren,
1879
- didChange: !(0, import_fast_deep_equal2.default)(item, itemWithResolvedChildren)
2254
+ didChange: !deepEqual(item, itemWithResolvedChildren)
1880
2255
  };
1881
2256
  });
1882
2257
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.21.0-canary.6dae6cb7",
3
+ "version": "0.21.0-canary.74d9a160",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
@@ -25,7 +25,7 @@
25
25
  "dist"
26
26
  ],
27
27
  "devDependencies": {
28
- "@measured/puck": "^0.21.0-canary.6dae6cb7",
28
+ "@measured/puck": "^0.21.0-canary.74d9a160",
29
29
  "@types/react": "^19.0.1",
30
30
  "@types/react-dom": "^19.0.2",
31
31
  "eslint": "^7.32.0",