microboard-temp 0.5.148 → 0.5.149

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.
@@ -42239,6 +42239,13 @@ class ImageItem extends BaseItem {
42239
42239
  async setStorageLink(link2) {
42240
42240
  this.storageLink = link2;
42241
42241
  this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken || null) || "";
42242
+ if (!this.signedUrl) {
42243
+ this.setImage(getPlaceholderImage(this.board, this.imageDimension));
42244
+ this.updateMbr();
42245
+ this.subject.publish(this);
42246
+ this.shootLoadCallbacks();
42247
+ return;
42248
+ }
42242
42249
  this.image.src = this.signedUrl;
42243
42250
  }
42244
42251
  getStorageId() {
package/dist/cjs/index.js CHANGED
@@ -42239,6 +42239,13 @@ class ImageItem extends BaseItem {
42239
42239
  async setStorageLink(link2) {
42240
42240
  this.storageLink = link2;
42241
42241
  this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken || null) || "";
42242
+ if (!this.signedUrl) {
42243
+ this.setImage(getPlaceholderImage(this.board, this.imageDimension));
42244
+ this.updateMbr();
42245
+ this.subject.publish(this);
42246
+ this.shootLoadCallbacks();
42247
+ return;
42248
+ }
42242
42249
  this.image.src = this.signedUrl;
42243
42250
  }
42244
42251
  getStorageId() {
package/dist/cjs/node.js CHANGED
@@ -44712,6 +44712,13 @@ class ImageItem extends BaseItem {
44712
44712
  async setStorageLink(link2) {
44713
44713
  this.storageLink = link2;
44714
44714
  this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken || null) || "";
44715
+ if (!this.signedUrl) {
44716
+ this.setImage(getPlaceholderImage(this.board, this.imageDimension));
44717
+ this.updateMbr();
44718
+ this.subject.publish(this);
44719
+ this.shootLoadCallbacks();
44720
+ return;
44721
+ }
44715
44722
  this.image.src = this.signedUrl;
44716
44723
  }
44717
44724
  getStorageId() {
@@ -42082,6 +42082,13 @@ class ImageItem extends BaseItem {
42082
42082
  async setStorageLink(link2) {
42083
42083
  this.storageLink = link2;
42084
42084
  this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken || null) || "";
42085
+ if (!this.signedUrl) {
42086
+ this.setImage(getPlaceholderImage(this.board, this.imageDimension));
42087
+ this.updateMbr();
42088
+ this.subject.publish(this);
42089
+ this.shootLoadCallbacks();
42090
+ return;
42091
+ }
42085
42092
  this.image.src = this.signedUrl;
42086
42093
  }
42087
42094
  getStorageId() {
package/dist/esm/index.js CHANGED
@@ -42075,6 +42075,13 @@ class ImageItem extends BaseItem {
42075
42075
  async setStorageLink(link2) {
42076
42076
  this.storageLink = link2;
42077
42077
  this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken || null) || "";
42078
+ if (!this.signedUrl) {
42079
+ this.setImage(getPlaceholderImage(this.board, this.imageDimension));
42080
+ this.updateMbr();
42081
+ this.subject.publish(this);
42082
+ this.shootLoadCallbacks();
42083
+ return;
42084
+ }
42078
42085
  this.image.src = this.signedUrl;
42079
42086
  }
42080
42087
  getStorageId() {
package/dist/esm/node.js CHANGED
@@ -44543,6 +44543,13 @@ class ImageItem extends BaseItem {
44543
44543
  async setStorageLink(link2) {
44544
44544
  this.storageLink = link2;
44545
44545
  this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken || null) || "";
44546
+ if (!this.signedUrl) {
44547
+ this.setImage(getPlaceholderImage(this.board, this.imageDimension));
44548
+ this.updateMbr();
44549
+ this.subject.publish(this);
44550
+ this.shootLoadCallbacks();
44551
+ return;
44552
+ }
44546
44553
  this.image.src = this.signedUrl;
44547
44554
  }
44548
44555
  getStorageId() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.5.148",
3
+ "version": "0.5.149",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",