@measured/puck-plugin-heading-analyzer 0.13.0-canary.d1baf8f → 0.13.0-canary.d7540e3
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 +17 -18
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -71303,7 +71303,7 @@ var require_dist = __commonJS({
|
|
71303
71303
|
history: {}
|
71304
71304
|
});
|
71305
71305
|
var AppProvider2 = appContext2.Provider;
|
71306
|
-
|
71306
|
+
function useAppContext2() {
|
71307
71307
|
const mainContext = (0, import_react82.useContext)(appContext2);
|
71308
71308
|
const selectedItem = mainContext.state.ui.itemSelector ? getItem2(mainContext.state.ui.itemSelector, mainContext.state.data) : void 0;
|
71309
71309
|
return __spreadProps2(__spreadValues2({}, mainContext), {
|
@@ -71317,7 +71317,7 @@ var require_dist = __commonJS({
|
|
71317
71317
|
});
|
71318
71318
|
}
|
71319
71319
|
});
|
71320
|
-
}
|
71320
|
+
}
|
71321
71321
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
71322
71322
|
var getClassName5 = get_class_name_factory_default2("DropZone", styles_module_default42);
|
71323
71323
|
function DropZoneEdit({ zone, allow, disallow, style: style2 }) {
|
@@ -72163,17 +72163,19 @@ var require_dist = __commonJS({
|
|
72163
72163
|
}
|
72164
72164
|
return __spreadValues2(__spreadValues2({}, state), action.state(state));
|
72165
72165
|
};
|
72166
|
-
|
72166
|
+
function createReducer({
|
72167
72167
|
config,
|
72168
72168
|
record
|
72169
|
-
})
|
72170
|
-
|
72171
|
-
|
72172
|
-
|
72173
|
-
|
72174
|
-
|
72175
|
-
|
72176
|
-
|
72169
|
+
}) {
|
72170
|
+
return storeInterceptor((state, action) => {
|
72171
|
+
const data = reduceData(state.data, action, config);
|
72172
|
+
const ui = reduceUi(state.ui, action);
|
72173
|
+
if (action.type === "set") {
|
72174
|
+
return setAction(state, action);
|
72175
|
+
}
|
72176
|
+
return { data, ui };
|
72177
|
+
}, record);
|
72178
|
+
}
|
72177
72179
|
init_react_import2();
|
72178
72180
|
var flushZones = (appState) => {
|
72179
72181
|
const containsZones = typeof appState.data.zones !== "undefined";
|
@@ -74051,7 +74053,7 @@ var require_dist = __commonJS({
|
|
74051
74053
|
[loadedOverrides]
|
74052
74054
|
);
|
74053
74055
|
const disableZoom = children || loadedOverrides.puck ? true : false;
|
74054
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { children: [
|
74056
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "Puck", children: [
|
74055
74057
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
74056
74058
|
AppProvider2,
|
74057
74059
|
{
|
@@ -74270,10 +74272,7 @@ var require_dist = __commonJS({
|
|
74270
74272
|
Puck.Preview = Preview;
|
74271
74273
|
init_react_import2();
|
74272
74274
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
74273
|
-
function Render({
|
74274
|
-
config,
|
74275
|
-
data
|
74276
|
-
}) {
|
74275
|
+
function Render({ config, data }) {
|
74277
74276
|
var _a;
|
74278
74277
|
const rootProps = data.root.props || data.root;
|
74279
74278
|
const title = (rootProps == null ? void 0 : rootProps.title) || "";
|
@@ -74636,7 +74635,7 @@ var appContext = (0, import_react10.createContext)({
|
|
74636
74635
|
history: {}
|
74637
74636
|
});
|
74638
74637
|
var AppProvider = appContext.Provider;
|
74639
|
-
|
74638
|
+
function useAppContext() {
|
74640
74639
|
const mainContext = (0, import_react10.useContext)(appContext);
|
74641
74640
|
const selectedItem = mainContext.state.ui.itemSelector ? getItem(mainContext.state.ui.itemSelector, mainContext.state.data) : void 0;
|
74642
74641
|
return __spreadProps(__spreadValues({}, mainContext), {
|
@@ -74650,7 +74649,7 @@ var useAppContext = () => {
|
|
74650
74649
|
});
|
74651
74650
|
}
|
74652
74651
|
});
|
74653
|
-
}
|
74652
|
+
}
|
74654
74653
|
|
74655
74654
|
// ../core/lib/use-breadcrumbs.ts
|
74656
74655
|
var convertPathDataToBreadcrumbs = (selectedItem, pathData, data) => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck-plugin-heading-analyzer",
|
3
|
-
"version": "0.13.0-canary.
|
3
|
+
"version": "0.13.0-canary.d7540e3",
|
4
4
|
"private": false,
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"types": "./dist/index.d.ts",
|
@@ -14,7 +14,7 @@
|
|
14
14
|
"dist"
|
15
15
|
],
|
16
16
|
"devDependencies": {
|
17
|
-
"@measured/puck": "^0.13.0-canary.
|
17
|
+
"@measured/puck": "^0.13.0-canary.d7540e3",
|
18
18
|
"@types/react": "^18.2.0",
|
19
19
|
"@types/react-dom": "^18.2.0",
|
20
20
|
"eslint": "^7.32.0",
|