@hyperbook/markdown 0.58.2 → 0.58.4

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.
@@ -537,10 +537,10 @@ hyperbook.cloud = (function () {
537
537
 
538
538
  if (data && data.snapshot) {
539
539
  const storeData = data.snapshot.data || data.snapshot;
540
- const { hyperbook } = storeData;
540
+ const { hyperbook: hb } = storeData;
541
541
 
542
- if (hyperbook) {
543
- const blob = new Blob([JSON.stringify(hyperbook)], {
542
+ if (hb) {
543
+ const blob = new Blob([JSON.stringify(hb)], {
544
544
  type: "application/json",
545
545
  });
546
546
  await hyperbook.store.db.import(blob, { clearTablesBeforeImport: true });
@@ -1,5 +1,5 @@
1
1
  /// <reference path="./hyperbook.types.js" />
2
- window.hyperbook = window.hyperbook || {};
2
+ var hyperbook = window.hyperbook = window.hyperbook || {};
3
3
 
4
4
  /**
5
5
  * Persistent store backed by Dexie (IndexedDB).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbook/markdown",
3
- "version": "0.58.2",
3
+ "version": "0.58.4",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",
@@ -95,8 +95,8 @@
95
95
  "vitest": "^4.0.18",
96
96
  "wavesurfer.js": "^7.12.1",
97
97
  "@hyperbook/fs": "0.24.2",
98
- "@hyperbook/types": "0.22.1",
99
- "@hyperbook/web-component-excalidraw": "0.3.3"
98
+ "@hyperbook/web-component-excalidraw": "0.3.3",
99
+ "@hyperbook/types": "0.22.1"
100
100
  },
101
101
  "scripts": {
102
102
  "version": "pnpm build",