microboard-temp 0.5.71 → 0.5.72

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.
@@ -8650,7 +8650,7 @@ class SessionStorage {
8650
8650
  get(key) {
8651
8651
  const boardId = this.getBoardId() || "";
8652
8652
  const item = _sessionStorage.getItem(boardId + "_" + key);
8653
- if (!item) {
8653
+ if (!item || item === "undefined") {
8654
8654
  return;
8655
8655
  }
8656
8656
  return JSON.parse(item);
@@ -53514,7 +53514,7 @@ class BoardSelection {
53514
53514
  if (!text5) {
53515
53515
  return;
53516
53516
  }
53517
- tempStorage.setVerticalAlignment(item.itemType, verticalAlignment);
53517
+ tempStorage.setVerticalAlignment(item.itemType, verticalAlignment || "top");
53518
53518
  if (item instanceof RichText) {
53519
53519
  item.setEditorFocus(this.context);
53520
53520
  }
package/dist/cjs/index.js CHANGED
@@ -8650,7 +8650,7 @@ class SessionStorage {
8650
8650
  get(key) {
8651
8651
  const boardId = this.getBoardId() || "";
8652
8652
  const item = _sessionStorage.getItem(boardId + "_" + key);
8653
- if (!item) {
8653
+ if (!item || item === "undefined") {
8654
8654
  return;
8655
8655
  }
8656
8656
  return JSON.parse(item);
@@ -53514,7 +53514,7 @@ class BoardSelection {
53514
53514
  if (!text5) {
53515
53515
  return;
53516
53516
  }
53517
- tempStorage.setVerticalAlignment(item.itemType, verticalAlignment);
53517
+ tempStorage.setVerticalAlignment(item.itemType, verticalAlignment || "top");
53518
53518
  if (item instanceof RichText) {
53519
53519
  item.setEditorFocus(this.context);
53520
53520
  }
package/dist/cjs/node.js CHANGED
@@ -9687,7 +9687,7 @@ class SessionStorage {
9687
9687
  get(key) {
9688
9688
  const boardId = this.getBoardId() || "";
9689
9689
  const item = _sessionStorage.getItem(boardId + "_" + key);
9690
- if (!item) {
9690
+ if (!item || item === "undefined") {
9691
9691
  return;
9692
9692
  }
9693
9693
  return JSON.parse(item);
@@ -55987,7 +55987,7 @@ class BoardSelection {
55987
55987
  if (!text5) {
55988
55988
  return;
55989
55989
  }
55990
- tempStorage.setVerticalAlignment(item.itemType, verticalAlignment);
55990
+ tempStorage.setVerticalAlignment(item.itemType, verticalAlignment || "top");
55991
55991
  if (item instanceof RichText) {
55992
55992
  item.setEditorFocus(this.context);
55993
55993
  }
@@ -8486,7 +8486,7 @@ class SessionStorage {
8486
8486
  get(key) {
8487
8487
  const boardId = this.getBoardId() || "";
8488
8488
  const item = _sessionStorage.getItem(boardId + "_" + key);
8489
- if (!item) {
8489
+ if (!item || item === "undefined") {
8490
8490
  return;
8491
8491
  }
8492
8492
  return JSON.parse(item);
@@ -53359,7 +53359,7 @@ class BoardSelection {
53359
53359
  if (!text5) {
53360
53360
  return;
53361
53361
  }
53362
- tempStorage.setVerticalAlignment(item.itemType, verticalAlignment);
53362
+ tempStorage.setVerticalAlignment(item.itemType, verticalAlignment || "top");
53363
53363
  if (item instanceof RichText) {
53364
53364
  item.setEditorFocus(this.context);
53365
53365
  }
package/dist/esm/index.js CHANGED
@@ -8479,7 +8479,7 @@ class SessionStorage {
8479
8479
  get(key) {
8480
8480
  const boardId = this.getBoardId() || "";
8481
8481
  const item = _sessionStorage.getItem(boardId + "_" + key);
8482
- if (!item) {
8482
+ if (!item || item === "undefined") {
8483
8483
  return;
8484
8484
  }
8485
8485
  return JSON.parse(item);
@@ -53352,7 +53352,7 @@ class BoardSelection {
53352
53352
  if (!text5) {
53353
53353
  return;
53354
53354
  }
53355
- tempStorage.setVerticalAlignment(item.itemType, verticalAlignment);
53355
+ tempStorage.setVerticalAlignment(item.itemType, verticalAlignment || "top");
53356
53356
  if (item instanceof RichText) {
53357
53357
  item.setEditorFocus(this.context);
53358
53358
  }
package/dist/esm/node.js CHANGED
@@ -9263,7 +9263,7 @@ class SessionStorage {
9263
9263
  get(key) {
9264
9264
  const boardId = this.getBoardId() || "";
9265
9265
  const item = _sessionStorage.getItem(boardId + "_" + key);
9266
- if (!item) {
9266
+ if (!item || item === "undefined") {
9267
9267
  return;
9268
9268
  }
9269
9269
  return JSON.parse(item);
@@ -55820,7 +55820,7 @@ class BoardSelection {
55820
55820
  if (!text5) {
55821
55821
  return;
55822
55822
  }
55823
- tempStorage.setVerticalAlignment(item.itemType, verticalAlignment);
55823
+ tempStorage.setVerticalAlignment(item.itemType, verticalAlignment || "top");
55824
55824
  if (item instanceof RichText) {
55825
55825
  item.setEditorFocus(this.context);
55826
55826
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.5.71",
3
+ "version": "0.5.72",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",