@measured/puck-plugin-heading-analyzer 0.21.0-canary.e9d5c0ea → 0.21.0-canary.f3ce0d72
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +27 -62
- package/dist/index.mjs +24 -59
- package/package.json +3 -2
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -268,11 +268,11 @@ var require_flat = __commonJS({
|
|
|
268
268
|
});
|
|
269
269
|
|
|
270
270
|
// index.ts
|
|
271
|
-
var
|
|
272
|
-
__export(
|
|
271
|
+
var index_exports = {};
|
|
272
|
+
__export(index_exports, {
|
|
273
273
|
default: () => HeadingAnalyzer_default
|
|
274
274
|
});
|
|
275
|
-
module.exports = __toCommonJS(
|
|
275
|
+
module.exports = __toCommonJS(index_exports);
|
|
276
276
|
init_react_import();
|
|
277
277
|
|
|
278
278
|
// src/HeadingAnalyzer.tsx
|
|
@@ -853,10 +853,10 @@ var insert = (list, index, item) => {
|
|
|
853
853
|
// ../core/lib/generate-id.ts
|
|
854
854
|
init_react_import();
|
|
855
855
|
|
|
856
|
-
//
|
|
856
|
+
// ../core/node_modules/uuid/dist/esm-node/index.js
|
|
857
857
|
init_react_import();
|
|
858
858
|
|
|
859
|
-
//
|
|
859
|
+
// ../core/node_modules/uuid/dist/esm-node/rng.js
|
|
860
860
|
init_react_import();
|
|
861
861
|
var import_crypto = __toESM(require("crypto"));
|
|
862
862
|
var rnds8Pool = new Uint8Array(256);
|
|
@@ -869,7 +869,7 @@ function rng() {
|
|
|
869
869
|
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
-
//
|
|
872
|
+
// ../core/node_modules/uuid/dist/esm-node/stringify.js
|
|
873
873
|
init_react_import();
|
|
874
874
|
var byteToHex = [];
|
|
875
875
|
for (let i = 0; i < 256; ++i) {
|
|
@@ -879,17 +879,17 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
879
879
|
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
880
880
|
}
|
|
881
881
|
|
|
882
|
-
//
|
|
882
|
+
// ../core/node_modules/uuid/dist/esm-node/v4.js
|
|
883
883
|
init_react_import();
|
|
884
884
|
|
|
885
|
-
//
|
|
885
|
+
// ../core/node_modules/uuid/dist/esm-node/native.js
|
|
886
886
|
init_react_import();
|
|
887
887
|
var import_crypto2 = __toESM(require("crypto"));
|
|
888
888
|
var native_default = {
|
|
889
889
|
randomUUID: import_crypto2.default.randomUUID
|
|
890
890
|
};
|
|
891
891
|
|
|
892
|
-
//
|
|
892
|
+
// ../core/node_modules/uuid/dist/esm-node/v4.js
|
|
893
893
|
function v4(options, buf, offset) {
|
|
894
894
|
if (native_default.randomUUID && !buf && !options) {
|
|
895
895
|
return native_default.randomUUID();
|
|
@@ -1470,7 +1470,7 @@ var createStoreImpl = (createState) => {
|
|
|
1470
1470
|
const initialState = state = createState(setState, getState, api);
|
|
1471
1471
|
return api;
|
|
1472
1472
|
};
|
|
1473
|
-
var createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
1473
|
+
var createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
|
|
1474
1474
|
|
|
1475
1475
|
// ../../node_modules/zustand/esm/react.mjs
|
|
1476
1476
|
init_react_import();
|
|
@@ -1479,8 +1479,8 @@ var identity = (arg) => arg;
|
|
|
1479
1479
|
function useStore(api, selector = identity) {
|
|
1480
1480
|
const slice = import_react4.default.useSyncExternalStore(
|
|
1481
1481
|
api.subscribe,
|
|
1482
|
-
() => selector(api.getState()),
|
|
1483
|
-
() => selector(api.getInitialState())
|
|
1482
|
+
import_react4.default.useCallback(() => selector(api.getState()), [api, selector]),
|
|
1483
|
+
import_react4.default.useCallback(() => selector(api.getInitialState()), [api, selector])
|
|
1484
1484
|
);
|
|
1485
1485
|
import_react4.default.useDebugValue(slice);
|
|
1486
1486
|
return slice;
|
|
@@ -1491,13 +1491,13 @@ var createImpl = (createState) => {
|
|
|
1491
1491
|
Object.assign(useBoundStore, api);
|
|
1492
1492
|
return useBoundStore;
|
|
1493
1493
|
};
|
|
1494
|
-
var create = (createState) => createState ? createImpl(createState) : createImpl;
|
|
1494
|
+
var create = ((createState) => createState ? createImpl(createState) : createImpl);
|
|
1495
1495
|
|
|
1496
1496
|
// ../../node_modules/zustand/esm/middleware.mjs
|
|
1497
1497
|
init_react_import();
|
|
1498
1498
|
var subscribeWithSelectorImpl = (fn) => (set, get, api) => {
|
|
1499
1499
|
const origSubscribe = api.subscribe;
|
|
1500
|
-
api.subscribe = (selector, optListener, options) => {
|
|
1500
|
+
api.subscribe = ((selector, optListener, options) => {
|
|
1501
1501
|
let listener = selector;
|
|
1502
1502
|
if (optListener) {
|
|
1503
1503
|
const equalityFn = (options == null ? void 0 : options.equalityFn) || Object.is;
|
|
@@ -1514,7 +1514,7 @@ var subscribeWithSelectorImpl = (fn) => (set, get, api) => {
|
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
1516
|
return origSubscribe(listener);
|
|
1517
|
-
};
|
|
1517
|
+
});
|
|
1518
1518
|
const initialState = fn(set, get, api);
|
|
1519
1519
|
return initialState;
|
|
1520
1520
|
};
|
|
@@ -1731,9 +1731,9 @@ function createIsCircular(areItemsEqual) {
|
|
|
1731
1731
|
function getStrictProperties(object) {
|
|
1732
1732
|
return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
|
|
1733
1733
|
}
|
|
1734
|
-
var hasOwn = Object.hasOwn || function(object, property) {
|
|
1734
|
+
var hasOwn = Object.hasOwn || (function(object, property) {
|
|
1735
1735
|
return hasOwnProperty.call(object, property);
|
|
1736
|
-
};
|
|
1736
|
+
});
|
|
1737
1737
|
function sameValueZeroEqual(a, b) {
|
|
1738
1738
|
return a === b || !a && !b && a !== a && b !== b;
|
|
1739
1739
|
}
|
|
@@ -2123,10 +2123,10 @@ var getChanged = (newItem, oldItem) => {
|
|
|
2123
2123
|
|
|
2124
2124
|
// ../core/store/slices/permissions.ts
|
|
2125
2125
|
var createPermissionsSlice = (set, get) => {
|
|
2126
|
-
const resolvePermissions = (..._0) => __async(
|
|
2126
|
+
const resolvePermissions = (..._0) => __async(null, [..._0], function* (params = {}, force) {
|
|
2127
2127
|
const { state, permissions, config } = get();
|
|
2128
2128
|
const { cache: cache2, globalPermissions } = permissions;
|
|
2129
|
-
const resolveDataForItem = (item2, force2 = false) => __async(
|
|
2129
|
+
const resolveDataForItem = (item2, force2 = false) => __async(null, null, function* () {
|
|
2130
2130
|
var _a, _b, _c;
|
|
2131
2131
|
const { config: config2, state: appState, setComponentLoading } = get();
|
|
2132
2132
|
const componentConfig = item2.type === "root" ? config2.root : config2.components[item2.type];
|
|
@@ -2181,13 +2181,13 @@ var createPermissionsSlice = (set, get) => {
|
|
|
2181
2181
|
if (item) {
|
|
2182
2182
|
yield resolveDataForItem(item, force);
|
|
2183
2183
|
} else if (type) {
|
|
2184
|
-
flattenData(state, config).filter((item2) => item2.type === type).map((item2) => __async(
|
|
2184
|
+
flattenData(state, config).filter((item2) => item2.type === type).map((item2) => __async(null, null, function* () {
|
|
2185
2185
|
yield resolveDataForItem(item2, force);
|
|
2186
2186
|
}));
|
|
2187
2187
|
} else if (root) {
|
|
2188
2188
|
resolveDataForRoot(force);
|
|
2189
2189
|
} else {
|
|
2190
|
-
flattenData(state, config).map((item2) => __async(
|
|
2190
|
+
flattenData(state, config).map((item2) => __async(null, null, function* () {
|
|
2191
2191
|
yield resolveDataForItem(item2, force);
|
|
2192
2192
|
}));
|
|
2193
2193
|
}
|
|
@@ -2242,7 +2242,7 @@ var createFieldsSlice = (_set, _get) => {
|
|
|
2242
2242
|
// ../core/lib/resolve-component-data.ts
|
|
2243
2243
|
init_react_import();
|
|
2244
2244
|
var cache = { lastChange: {} };
|
|
2245
|
-
var resolveComponentData = (_0, _1, ..._2) => __async(
|
|
2245
|
+
var resolveComponentData = (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
|
|
2246
2246
|
const configForItem = "type" in item && item.type !== "root" ? config.components[item.type] : config.root;
|
|
2247
2247
|
const resolvedItem = __spreadValues({}, item);
|
|
2248
2248
|
const shouldRunResolver = (configForItem == null ? void 0 : configForItem.resolveData) && item.props;
|
|
@@ -2270,11 +2270,11 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
|
|
|
2270
2270
|
let itemWithResolvedChildren = yield mapFields(
|
|
2271
2271
|
resolvedItem,
|
|
2272
2272
|
{
|
|
2273
|
-
slot: (_02) => __async(
|
|
2273
|
+
slot: (_02) => __async(null, [_02], function* ({ value }) {
|
|
2274
2274
|
const content = value;
|
|
2275
2275
|
return yield Promise.all(
|
|
2276
2276
|
content.map(
|
|
2277
|
-
(childItem) => __async(
|
|
2277
|
+
(childItem) => __async(null, null, function* () {
|
|
2278
2278
|
return (yield resolveComponentData(
|
|
2279
2279
|
childItem,
|
|
2280
2280
|
config,
|
|
@@ -2466,7 +2466,7 @@ var createAppStore = (initialAppStore) => create()(
|
|
|
2466
2466
|
const selectedItem = state.ui.itemSelector ? getItem(state.ui.itemSelector, state) : null;
|
|
2467
2467
|
return __spreadProps(__spreadValues({}, s), { state, selectedItem });
|
|
2468
2468
|
}),
|
|
2469
|
-
resolveComponentData: (componentData, trigger) => __async(
|
|
2469
|
+
resolveComponentData: (componentData, trigger) => __async(null, null, function* () {
|
|
2470
2470
|
const { config, metadata, setComponentLoading, permissions } = get();
|
|
2471
2471
|
const timeouts = {};
|
|
2472
2472
|
return yield resolveComponentData(
|
|
@@ -2477,7 +2477,7 @@ var createAppStore = (initialAppStore) => create()(
|
|
|
2477
2477
|
const id = "id" in item.props ? item.props.id : "root";
|
|
2478
2478
|
timeouts[id] = setComponentLoading(id, true, 50);
|
|
2479
2479
|
},
|
|
2480
|
-
(item) => __async(
|
|
2480
|
+
(item) => __async(null, null, function* () {
|
|
2481
2481
|
const id = "id" in item.props ? item.props.id : "root";
|
|
2482
2482
|
if ("type" in item) {
|
|
2483
2483
|
yield permissions.refreshPermissions({ item });
|
|
@@ -2489,7 +2489,7 @@ var createAppStore = (initialAppStore) => create()(
|
|
|
2489
2489
|
trigger
|
|
2490
2490
|
);
|
|
2491
2491
|
}),
|
|
2492
|
-
resolveAndCommitData: () => __async(
|
|
2492
|
+
resolveAndCommitData: () => __async(null, null, function* () {
|
|
2493
2493
|
const { config, state, dispatch, resolveComponentData: resolveComponentData2 } = get();
|
|
2494
2494
|
walkAppState(
|
|
2495
2495
|
state,
|
|
@@ -2722,45 +2722,10 @@ classnames/index.js:
|
|
|
2722
2722
|
*)
|
|
2723
2723
|
|
|
2724
2724
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
2725
|
-
(**
|
|
2726
|
-
* @license lucide-react v0.468.0 - ISC
|
|
2727
|
-
*
|
|
2728
|
-
* This source code is licensed under the ISC license.
|
|
2729
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2730
|
-
*)
|
|
2731
|
-
|
|
2732
2725
|
lucide-react/dist/esm/defaultAttributes.js:
|
|
2733
|
-
(**
|
|
2734
|
-
* @license lucide-react v0.468.0 - ISC
|
|
2735
|
-
*
|
|
2736
|
-
* This source code is licensed under the ISC license.
|
|
2737
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2738
|
-
*)
|
|
2739
|
-
|
|
2740
2726
|
lucide-react/dist/esm/Icon.js:
|
|
2741
|
-
(**
|
|
2742
|
-
* @license lucide-react v0.468.0 - ISC
|
|
2743
|
-
*
|
|
2744
|
-
* This source code is licensed under the ISC license.
|
|
2745
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2746
|
-
*)
|
|
2747
|
-
|
|
2748
2727
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
2749
|
-
(**
|
|
2750
|
-
* @license lucide-react v0.468.0 - ISC
|
|
2751
|
-
*
|
|
2752
|
-
* This source code is licensed under the ISC license.
|
|
2753
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2754
|
-
*)
|
|
2755
|
-
|
|
2756
2728
|
lucide-react/dist/esm/icons/heading-1.js:
|
|
2757
|
-
(**
|
|
2758
|
-
* @license lucide-react v0.468.0 - ISC
|
|
2759
|
-
*
|
|
2760
|
-
* This source code is licensed under the ISC license.
|
|
2761
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2762
|
-
*)
|
|
2763
|
-
|
|
2764
2729
|
lucide-react/dist/esm/lucide-react.js:
|
|
2765
2730
|
(**
|
|
2766
2731
|
* @license lucide-react v0.468.0 - ISC
|
package/dist/index.mjs
CHANGED
|
@@ -841,10 +841,10 @@ var insert = (list, index, item) => {
|
|
|
841
841
|
// ../core/lib/generate-id.ts
|
|
842
842
|
init_react_import();
|
|
843
843
|
|
|
844
|
-
//
|
|
844
|
+
// ../core/node_modules/uuid/dist/esm-node/index.js
|
|
845
845
|
init_react_import();
|
|
846
846
|
|
|
847
|
-
//
|
|
847
|
+
// ../core/node_modules/uuid/dist/esm-node/rng.js
|
|
848
848
|
init_react_import();
|
|
849
849
|
import crypto from "crypto";
|
|
850
850
|
var rnds8Pool = new Uint8Array(256);
|
|
@@ -857,7 +857,7 @@ function rng() {
|
|
|
857
857
|
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
858
858
|
}
|
|
859
859
|
|
|
860
|
-
//
|
|
860
|
+
// ../core/node_modules/uuid/dist/esm-node/stringify.js
|
|
861
861
|
init_react_import();
|
|
862
862
|
var byteToHex = [];
|
|
863
863
|
for (let i = 0; i < 256; ++i) {
|
|
@@ -867,17 +867,17 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
867
867
|
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
868
868
|
}
|
|
869
869
|
|
|
870
|
-
//
|
|
870
|
+
// ../core/node_modules/uuid/dist/esm-node/v4.js
|
|
871
871
|
init_react_import();
|
|
872
872
|
|
|
873
|
-
//
|
|
873
|
+
// ../core/node_modules/uuid/dist/esm-node/native.js
|
|
874
874
|
init_react_import();
|
|
875
875
|
import crypto2 from "crypto";
|
|
876
876
|
var native_default = {
|
|
877
877
|
randomUUID: crypto2.randomUUID
|
|
878
878
|
};
|
|
879
879
|
|
|
880
|
-
//
|
|
880
|
+
// ../core/node_modules/uuid/dist/esm-node/v4.js
|
|
881
881
|
function v4(options, buf, offset) {
|
|
882
882
|
if (native_default.randomUUID && !buf && !options) {
|
|
883
883
|
return native_default.randomUUID();
|
|
@@ -1458,7 +1458,7 @@ var createStoreImpl = (createState) => {
|
|
|
1458
1458
|
const initialState = state = createState(setState, getState, api);
|
|
1459
1459
|
return api;
|
|
1460
1460
|
};
|
|
1461
|
-
var createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
1461
|
+
var createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
|
|
1462
1462
|
|
|
1463
1463
|
// ../../node_modules/zustand/esm/react.mjs
|
|
1464
1464
|
init_react_import();
|
|
@@ -1467,8 +1467,8 @@ var identity = (arg) => arg;
|
|
|
1467
1467
|
function useStore(api, selector = identity) {
|
|
1468
1468
|
const slice = React2.useSyncExternalStore(
|
|
1469
1469
|
api.subscribe,
|
|
1470
|
-
() => selector(api.getState()),
|
|
1471
|
-
() => selector(api.getInitialState())
|
|
1470
|
+
React2.useCallback(() => selector(api.getState()), [api, selector]),
|
|
1471
|
+
React2.useCallback(() => selector(api.getInitialState()), [api, selector])
|
|
1472
1472
|
);
|
|
1473
1473
|
React2.useDebugValue(slice);
|
|
1474
1474
|
return slice;
|
|
@@ -1479,13 +1479,13 @@ var createImpl = (createState) => {
|
|
|
1479
1479
|
Object.assign(useBoundStore, api);
|
|
1480
1480
|
return useBoundStore;
|
|
1481
1481
|
};
|
|
1482
|
-
var create = (createState) => createState ? createImpl(createState) : createImpl;
|
|
1482
|
+
var create = ((createState) => createState ? createImpl(createState) : createImpl);
|
|
1483
1483
|
|
|
1484
1484
|
// ../../node_modules/zustand/esm/middleware.mjs
|
|
1485
1485
|
init_react_import();
|
|
1486
1486
|
var subscribeWithSelectorImpl = (fn) => (set, get, api) => {
|
|
1487
1487
|
const origSubscribe = api.subscribe;
|
|
1488
|
-
api.subscribe = (selector, optListener, options) => {
|
|
1488
|
+
api.subscribe = ((selector, optListener, options) => {
|
|
1489
1489
|
let listener = selector;
|
|
1490
1490
|
if (optListener) {
|
|
1491
1491
|
const equalityFn = (options == null ? void 0 : options.equalityFn) || Object.is;
|
|
@@ -1502,7 +1502,7 @@ var subscribeWithSelectorImpl = (fn) => (set, get, api) => {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
1504
|
return origSubscribe(listener);
|
|
1505
|
-
};
|
|
1505
|
+
});
|
|
1506
1506
|
const initialState = fn(set, get, api);
|
|
1507
1507
|
return initialState;
|
|
1508
1508
|
};
|
|
@@ -1719,9 +1719,9 @@ function createIsCircular(areItemsEqual) {
|
|
|
1719
1719
|
function getStrictProperties(object) {
|
|
1720
1720
|
return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
|
|
1721
1721
|
}
|
|
1722
|
-
var hasOwn = Object.hasOwn || function(object, property) {
|
|
1722
|
+
var hasOwn = Object.hasOwn || (function(object, property) {
|
|
1723
1723
|
return hasOwnProperty.call(object, property);
|
|
1724
|
-
};
|
|
1724
|
+
});
|
|
1725
1725
|
function sameValueZeroEqual(a, b) {
|
|
1726
1726
|
return a === b || !a && !b && a !== a && b !== b;
|
|
1727
1727
|
}
|
|
@@ -2111,10 +2111,10 @@ var getChanged = (newItem, oldItem) => {
|
|
|
2111
2111
|
|
|
2112
2112
|
// ../core/store/slices/permissions.ts
|
|
2113
2113
|
var createPermissionsSlice = (set, get) => {
|
|
2114
|
-
const resolvePermissions = (..._0) => __async(
|
|
2114
|
+
const resolvePermissions = (..._0) => __async(null, [..._0], function* (params = {}, force) {
|
|
2115
2115
|
const { state, permissions, config } = get();
|
|
2116
2116
|
const { cache: cache2, globalPermissions } = permissions;
|
|
2117
|
-
const resolveDataForItem = (item2, force2 = false) => __async(
|
|
2117
|
+
const resolveDataForItem = (item2, force2 = false) => __async(null, null, function* () {
|
|
2118
2118
|
var _a, _b, _c;
|
|
2119
2119
|
const { config: config2, state: appState, setComponentLoading } = get();
|
|
2120
2120
|
const componentConfig = item2.type === "root" ? config2.root : config2.components[item2.type];
|
|
@@ -2169,13 +2169,13 @@ var createPermissionsSlice = (set, get) => {
|
|
|
2169
2169
|
if (item) {
|
|
2170
2170
|
yield resolveDataForItem(item, force);
|
|
2171
2171
|
} else if (type) {
|
|
2172
|
-
flattenData(state, config).filter((item2) => item2.type === type).map((item2) => __async(
|
|
2172
|
+
flattenData(state, config).filter((item2) => item2.type === type).map((item2) => __async(null, null, function* () {
|
|
2173
2173
|
yield resolveDataForItem(item2, force);
|
|
2174
2174
|
}));
|
|
2175
2175
|
} else if (root) {
|
|
2176
2176
|
resolveDataForRoot(force);
|
|
2177
2177
|
} else {
|
|
2178
|
-
flattenData(state, config).map((item2) => __async(
|
|
2178
|
+
flattenData(state, config).map((item2) => __async(null, null, function* () {
|
|
2179
2179
|
yield resolveDataForItem(item2, force);
|
|
2180
2180
|
}));
|
|
2181
2181
|
}
|
|
@@ -2230,7 +2230,7 @@ var createFieldsSlice = (_set, _get) => {
|
|
|
2230
2230
|
// ../core/lib/resolve-component-data.ts
|
|
2231
2231
|
init_react_import();
|
|
2232
2232
|
var cache = { lastChange: {} };
|
|
2233
|
-
var resolveComponentData = (_0, _1, ..._2) => __async(
|
|
2233
|
+
var resolveComponentData = (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
|
|
2234
2234
|
const configForItem = "type" in item && item.type !== "root" ? config.components[item.type] : config.root;
|
|
2235
2235
|
const resolvedItem = __spreadValues({}, item);
|
|
2236
2236
|
const shouldRunResolver = (configForItem == null ? void 0 : configForItem.resolveData) && item.props;
|
|
@@ -2258,11 +2258,11 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
|
|
|
2258
2258
|
let itemWithResolvedChildren = yield mapFields(
|
|
2259
2259
|
resolvedItem,
|
|
2260
2260
|
{
|
|
2261
|
-
slot: (_02) => __async(
|
|
2261
|
+
slot: (_02) => __async(null, [_02], function* ({ value }) {
|
|
2262
2262
|
const content = value;
|
|
2263
2263
|
return yield Promise.all(
|
|
2264
2264
|
content.map(
|
|
2265
|
-
(childItem) => __async(
|
|
2265
|
+
(childItem) => __async(null, null, function* () {
|
|
2266
2266
|
return (yield resolveComponentData(
|
|
2267
2267
|
childItem,
|
|
2268
2268
|
config,
|
|
@@ -2454,7 +2454,7 @@ var createAppStore = (initialAppStore) => create()(
|
|
|
2454
2454
|
const selectedItem = state.ui.itemSelector ? getItem(state.ui.itemSelector, state) : null;
|
|
2455
2455
|
return __spreadProps(__spreadValues({}, s), { state, selectedItem });
|
|
2456
2456
|
}),
|
|
2457
|
-
resolveComponentData: (componentData, trigger) => __async(
|
|
2457
|
+
resolveComponentData: (componentData, trigger) => __async(null, null, function* () {
|
|
2458
2458
|
const { config, metadata, setComponentLoading, permissions } = get();
|
|
2459
2459
|
const timeouts = {};
|
|
2460
2460
|
return yield resolveComponentData(
|
|
@@ -2465,7 +2465,7 @@ var createAppStore = (initialAppStore) => create()(
|
|
|
2465
2465
|
const id = "id" in item.props ? item.props.id : "root";
|
|
2466
2466
|
timeouts[id] = setComponentLoading(id, true, 50);
|
|
2467
2467
|
},
|
|
2468
|
-
(item) => __async(
|
|
2468
|
+
(item) => __async(null, null, function* () {
|
|
2469
2469
|
const id = "id" in item.props ? item.props.id : "root";
|
|
2470
2470
|
if ("type" in item) {
|
|
2471
2471
|
yield permissions.refreshPermissions({ item });
|
|
@@ -2477,7 +2477,7 @@ var createAppStore = (initialAppStore) => create()(
|
|
|
2477
2477
|
trigger
|
|
2478
2478
|
);
|
|
2479
2479
|
}),
|
|
2480
|
-
resolveAndCommitData: () => __async(
|
|
2480
|
+
resolveAndCommitData: () => __async(null, null, function* () {
|
|
2481
2481
|
const { config, state, dispatch, resolveComponentData: resolveComponentData2 } = get();
|
|
2482
2482
|
walkAppState(
|
|
2483
2483
|
state,
|
|
@@ -2713,45 +2713,10 @@ classnames/index.js:
|
|
|
2713
2713
|
*)
|
|
2714
2714
|
|
|
2715
2715
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
2716
|
-
(**
|
|
2717
|
-
* @license lucide-react v0.468.0 - ISC
|
|
2718
|
-
*
|
|
2719
|
-
* This source code is licensed under the ISC license.
|
|
2720
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2721
|
-
*)
|
|
2722
|
-
|
|
2723
2716
|
lucide-react/dist/esm/defaultAttributes.js:
|
|
2724
|
-
(**
|
|
2725
|
-
* @license lucide-react v0.468.0 - ISC
|
|
2726
|
-
*
|
|
2727
|
-
* This source code is licensed under the ISC license.
|
|
2728
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2729
|
-
*)
|
|
2730
|
-
|
|
2731
2717
|
lucide-react/dist/esm/Icon.js:
|
|
2732
|
-
(**
|
|
2733
|
-
* @license lucide-react v0.468.0 - ISC
|
|
2734
|
-
*
|
|
2735
|
-
* This source code is licensed under the ISC license.
|
|
2736
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2737
|
-
*)
|
|
2738
|
-
|
|
2739
2718
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
2740
|
-
(**
|
|
2741
|
-
* @license lucide-react v0.468.0 - ISC
|
|
2742
|
-
*
|
|
2743
|
-
* This source code is licensed under the ISC license.
|
|
2744
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2745
|
-
*)
|
|
2746
|
-
|
|
2747
2719
|
lucide-react/dist/esm/icons/heading-1.js:
|
|
2748
|
-
(**
|
|
2749
|
-
* @license lucide-react v0.468.0 - ISC
|
|
2750
|
-
*
|
|
2751
|
-
* This source code is licensed under the ISC license.
|
|
2752
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
2753
|
-
*)
|
|
2754
|
-
|
|
2755
2720
|
lucide-react/dist/esm/lucide-react.js:
|
|
2756
2721
|
(**
|
|
2757
2722
|
* @license lucide-react v0.468.0 - ISC
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@measured/puck-plugin-heading-analyzer",
|
|
3
|
-
"version": "0.21.0-canary.
|
|
3
|
+
"version": "0.21.0-canary.f3ce0d72",
|
|
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,8 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@measured/puck": "^0.21.0-canary.
|
|
28
|
+
"@measured/puck": "^0.21.0-canary.f3ce0d72",
|
|
29
|
+
"@types/minimatch": "3.0.5",
|
|
29
30
|
"@types/react": "^19.0.1",
|
|
30
31
|
"@types/react-dom": "^19.0.2",
|
|
31
32
|
"eslint": "^7.32.0",
|