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

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