@measured/puck-plugin-heading-analyzer 0.16.0-canary.eb42734 → 0.16.0-canary.ef2e5ec

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 +6 -15
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -73709,7 +73709,6 @@ var require_dist = __commonJS({
73709
73709
  init_react_import2();
73710
73710
  init_react_import2();
73711
73711
  init_react_import2();
73712
- init_react_import2();
73713
73712
  var import_classnames2 = __toESM2(require_classnames2());
73714
73713
  var getClassNameFactory2 = (rootClass, styles, { baseClass = "" } = {}) => (options = {}) => {
73715
73714
  let descendant = false;
@@ -77492,13 +77491,13 @@ See https://github.com/measuredco/puck/issues/411 for more information. This mes
77492
77491
  var import_react27 = require("react");
77493
77492
  var import_use_debounce3 = (init_index_module(), __toCommonJS(index_module_exports));
77494
77493
  var EMPTY_HISTORY_INDEX = -1;
77495
- function useHistoryStore(initialHistory) {
77494
+ function useHistoryStore(initialHistories) {
77496
77495
  var _a3, _b;
77497
77496
  const [histories, setHistories] = (0, import_react27.useState)(
77498
- (_a3 = initialHistory == null ? void 0 : initialHistory.histories) != null ? _a3 : []
77497
+ (_a3 = initialHistories == null ? void 0 : initialHistories.histories) != null ? _a3 : []
77499
77498
  );
77500
77499
  const [index, setIndex] = (0, import_react27.useState)(
77501
- (_b = initialHistory == null ? void 0 : initialHistory.index) != null ? _b : EMPTY_HISTORY_INDEX
77500
+ (_b = initialHistories == null ? void 0 : initialHistories.index) != null ? _b : EMPTY_HISTORY_INDEX
77502
77501
  );
77503
77502
  const hasPast = index > EMPTY_HISTORY_INDEX;
77504
77503
  const hasFuture = index < histories.length - 1;
@@ -77953,10 +77952,10 @@ See https://github.com/measuredco/puck/issues/411 for more information. This mes
77953
77952
  enabled: true
77954
77953
  },
77955
77954
  dnd,
77956
- initialHistory
77955
+ initialHistories
77957
77956
  }) {
77958
77957
  var _a3;
77959
- const historyStore = useHistoryStore(initialHistory);
77958
+ const historyStore = useHistoryStore(initialHistories);
77960
77959
  const [reducer2] = (0, import_react30.useState)(
77961
77960
  () => createReducer({ config, record: historyStore.record })
77962
77961
  );
@@ -78498,15 +78497,7 @@ See https://github.com/measuredco/puck/issues/411 for more information. This mes
78498
78497
  appState,
78499
78498
  config,
78500
78499
  dispatch,
78501
- history: {
78502
- back: history.back,
78503
- forward: history.forward,
78504
- hasPast: history.historyStore.hasPast,
78505
- hasFuture: history.historyStore.hasFuture,
78506
- histories: history.historyStore.histories,
78507
- index: history.historyStore.index,
78508
- historyStore: history.historyStore
78509
- },
78500
+ history,
78510
78501
  selectedItem: selectedItem || null
78511
78502
  };
78512
78503
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.16.0-canary.eb42734",
3
+ "version": "0.16.0-canary.ef2e5ec",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
@@ -18,7 +18,7 @@
18
18
  "dist"
19
19
  ],
20
20
  "devDependencies": {
21
- "@measured/puck": "^0.16.0-canary.eb42734",
21
+ "@measured/puck": "^0.16.0-canary.ef2e5ec",
22
22
  "@types/react": "^18.2.0",
23
23
  "@types/react-dom": "^18.2.0",
24
24
  "eslint": "^7.32.0",