@measured/puck-plugin-heading-analyzer 0.18.0-canary.e6e29ad → 0.18.0-canary.f2e2eaa
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.js +35 -0
- package/dist/index.mjs +35 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -419,9 +419,44 @@ function useAppContext() {
|
|
419
419
|
});
|
420
420
|
}
|
421
421
|
|
422
|
+
// ../../node_modules/zustand/esm/vanilla.mjs
|
423
|
+
init_react_import();
|
424
|
+
var createStoreImpl = (createState) => {
|
425
|
+
let state;
|
426
|
+
const listeners = /* @__PURE__ */ new Set();
|
427
|
+
const setState = (partial, replace) => {
|
428
|
+
const nextState = typeof partial === "function" ? partial(state) : partial;
|
429
|
+
if (!Object.is(nextState, state)) {
|
430
|
+
const previousState = state;
|
431
|
+
state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
432
|
+
listeners.forEach((listener) => listener(state, previousState));
|
433
|
+
}
|
434
|
+
};
|
435
|
+
const getState = () => state;
|
436
|
+
const getInitialState = () => initialState;
|
437
|
+
const subscribe = (listener) => {
|
438
|
+
listeners.add(listener);
|
439
|
+
return () => listeners.delete(listener);
|
440
|
+
};
|
441
|
+
const api = { setState, getState, getInitialState, subscribe };
|
442
|
+
const initialState = state = createState(setState, getState, api);
|
443
|
+
return api;
|
444
|
+
};
|
445
|
+
var createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
446
|
+
|
422
447
|
// ../core/components/DropZone/context.tsx
|
423
448
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
424
449
|
var dropZoneContext = (0, import_react7.createContext)(null);
|
450
|
+
var ZoneStoreContext = (0, import_react7.createContext)(
|
451
|
+
createStore(() => ({
|
452
|
+
zoneDepthIndex: {},
|
453
|
+
nextZoneDepthIndex: {},
|
454
|
+
areaDepthIndex: {},
|
455
|
+
nextAreaDepthIndex: {},
|
456
|
+
draggedItem: null,
|
457
|
+
previewIndex: {}
|
458
|
+
}))
|
459
|
+
);
|
425
460
|
|
426
461
|
// ../core/lib/get-zone-id.ts
|
427
462
|
init_react_import();
|
package/dist/index.mjs
CHANGED
@@ -417,9 +417,44 @@ function useAppContext() {
|
|
417
417
|
});
|
418
418
|
}
|
419
419
|
|
420
|
+
// ../../node_modules/zustand/esm/vanilla.mjs
|
421
|
+
init_react_import();
|
422
|
+
var createStoreImpl = (createState) => {
|
423
|
+
let state;
|
424
|
+
const listeners = /* @__PURE__ */ new Set();
|
425
|
+
const setState = (partial, replace) => {
|
426
|
+
const nextState = typeof partial === "function" ? partial(state) : partial;
|
427
|
+
if (!Object.is(nextState, state)) {
|
428
|
+
const previousState = state;
|
429
|
+
state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
430
|
+
listeners.forEach((listener) => listener(state, previousState));
|
431
|
+
}
|
432
|
+
};
|
433
|
+
const getState = () => state;
|
434
|
+
const getInitialState = () => initialState;
|
435
|
+
const subscribe = (listener) => {
|
436
|
+
listeners.add(listener);
|
437
|
+
return () => listeners.delete(listener);
|
438
|
+
};
|
439
|
+
const api = { setState, getState, getInitialState, subscribe };
|
440
|
+
const initialState = state = createState(setState, getState, api);
|
441
|
+
return api;
|
442
|
+
};
|
443
|
+
var createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
444
|
+
|
420
445
|
// ../core/components/DropZone/context.tsx
|
421
446
|
import { Fragment, jsx as jsx3 } from "react/jsx-runtime";
|
422
447
|
var dropZoneContext = createContext2(null);
|
448
|
+
var ZoneStoreContext = createContext2(
|
449
|
+
createStore(() => ({
|
450
|
+
zoneDepthIndex: {},
|
451
|
+
nextZoneDepthIndex: {},
|
452
|
+
areaDepthIndex: {},
|
453
|
+
nextAreaDepthIndex: {},
|
454
|
+
draggedItem: null,
|
455
|
+
previewIndex: {}
|
456
|
+
}))
|
457
|
+
);
|
423
458
|
|
424
459
|
// ../core/lib/get-zone-id.ts
|
425
460
|
init_react_import();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck-plugin-heading-analyzer",
|
3
|
-
"version": "0.18.0-canary.
|
3
|
+
"version": "0.18.0-canary.f2e2eaa",
|
4
4
|
"author": "Measured Corporation Ltd <hello@measured.co>",
|
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.18.0-canary.
|
28
|
+
"@measured/puck": "^0.18.0-canary.f2e2eaa",
|
29
29
|
"@types/react": "^19.0.1",
|
30
30
|
"@types/react-dom": "^19.0.2",
|
31
31
|
"eslint": "^7.32.0",
|