@measured/puck-plugin-heading-analyzer 0.13.0-canary.1c4b97f → 0.13.0-canary.2a8c2ff

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.
Files changed (2) hide show
  1. package/dist/index.js +17 -16
  2. 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
- function useAppContext2() {
71306
+ var 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,19 +72163,17 @@ var require_dist = __commonJS({
72163
72163
  }
72164
72164
  return __spreadValues2(__spreadValues2({}, state), action.state(state));
72165
72165
  };
72166
- function createReducer({
72166
+ var createReducer = ({
72167
72167
  config,
72168
72168
  record
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
- }
72169
+ }) => storeInterceptor((state, action) => {
72170
+ const data = reduceData(state.data, action, config);
72171
+ const ui = reduceUi(state.ui, action);
72172
+ if (action.type === "set") {
72173
+ return setAction(state, action);
72174
+ }
72175
+ return { data, ui };
72176
+ }, record);
72179
72177
  init_react_import2();
72180
72178
  var flushZones = (appState) => {
72181
72179
  const containsZones = typeof appState.data.zones !== "undefined";
@@ -74272,7 +74270,10 @@ var require_dist = __commonJS({
74272
74270
  Puck.Preview = Preview;
74273
74271
  init_react_import2();
74274
74272
  var import_jsx_runtime30 = require("react/jsx-runtime");
74275
- function Render({ config, data }) {
74273
+ function Render({
74274
+ config,
74275
+ data
74276
+ }) {
74276
74277
  var _a;
74277
74278
  const rootProps = data.root.props || data.root;
74278
74279
  const title = (rootProps == null ? void 0 : rootProps.title) || "";
@@ -74635,7 +74636,7 @@ var appContext = (0, import_react10.createContext)({
74635
74636
  history: {}
74636
74637
  });
74637
74638
  var AppProvider = appContext.Provider;
74638
- function useAppContext() {
74639
+ var useAppContext = () => {
74639
74640
  const mainContext = (0, import_react10.useContext)(appContext);
74640
74641
  const selectedItem = mainContext.state.ui.itemSelector ? getItem(mainContext.state.ui.itemSelector, mainContext.state.data) : void 0;
74641
74642
  return __spreadProps(__spreadValues({}, mainContext), {
@@ -74649,7 +74650,7 @@ function useAppContext() {
74649
74650
  });
74650
74651
  }
74651
74652
  });
74652
- }
74653
+ };
74653
74654
 
74654
74655
  // ../core/lib/use-breadcrumbs.ts
74655
74656
  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.1c4b97f",
3
+ "version": "0.13.0-canary.2a8c2ff",
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.1c4b97f",
17
+ "@measured/puck": "^0.13.0-canary.2a8c2ff",
18
18
  "@types/react": "^18.2.0",
19
19
  "@types/react-dom": "^18.2.0",
20
20
  "eslint": "^7.32.0",