microboard-temp 0.5.115 → 0.5.116
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.
- package/dist/cjs/browser.js +5 -11
- package/dist/cjs/index.js +5 -11
- package/dist/cjs/node.js +5 -11
- package/dist/esm/browser.js +5 -11
- package/dist/esm/index.js +5 -11
- package/dist/esm/node.js +5 -11
- package/dist/types/Items/Image/Image.d.ts +1 -1
- package/dist/types/types/Account.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -42235,8 +42235,8 @@ class ImageItem extends BaseItem {
|
|
|
42235
42235
|
console.log("setStorageLink", link2);
|
|
42236
42236
|
this.storageLink = link2;
|
|
42237
42237
|
console.log("board", this.board);
|
|
42238
|
-
console.log("accessToken", this.board.getAccount()?.accessToken
|
|
42239
|
-
this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken
|
|
42238
|
+
console.log("accessToken", this.board.getAccount()?.accessToken);
|
|
42239
|
+
this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken || null) || "";
|
|
42240
42240
|
this.image.src = this.signedUrl;
|
|
42241
42241
|
}
|
|
42242
42242
|
getStorageId() {
|
|
@@ -42255,8 +42255,8 @@ class ImageItem extends BaseItem {
|
|
|
42255
42255
|
this.subject.publish(this);
|
|
42256
42256
|
this.shootLoadCallbacks();
|
|
42257
42257
|
};
|
|
42258
|
-
onError = (
|
|
42259
|
-
this.image = getPlaceholderImage(this.board);
|
|
42258
|
+
onError = () => {
|
|
42259
|
+
this.image = getPlaceholderImage(this.board, this.imageDimension);
|
|
42260
42260
|
this.updateMbr();
|
|
42261
42261
|
this.subject.publish(this);
|
|
42262
42262
|
this.shootLoadCallbacks();
|
|
@@ -42340,13 +42340,7 @@ class ImageItem extends BaseItem {
|
|
|
42340
42340
|
if (this.image.src) {
|
|
42341
42341
|
return this;
|
|
42342
42342
|
}
|
|
42343
|
-
this.
|
|
42344
|
-
const storageImage = new Image;
|
|
42345
|
-
storageImage.onload = () => {
|
|
42346
|
-
this.image = storageImage;
|
|
42347
|
-
this.onLoad();
|
|
42348
|
-
};
|
|
42349
|
-
storageImage.onerror = this.onError;
|
|
42343
|
+
this.onError();
|
|
42350
42344
|
return this;
|
|
42351
42345
|
}
|
|
42352
42346
|
emit(operation) {
|
package/dist/cjs/index.js
CHANGED
|
@@ -42235,8 +42235,8 @@ class ImageItem extends BaseItem {
|
|
|
42235
42235
|
console.log("setStorageLink", link2);
|
|
42236
42236
|
this.storageLink = link2;
|
|
42237
42237
|
console.log("board", this.board);
|
|
42238
|
-
console.log("accessToken", this.board.getAccount()?.accessToken
|
|
42239
|
-
this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken
|
|
42238
|
+
console.log("accessToken", this.board.getAccount()?.accessToken);
|
|
42239
|
+
this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken || null) || "";
|
|
42240
42240
|
this.image.src = this.signedUrl;
|
|
42241
42241
|
}
|
|
42242
42242
|
getStorageId() {
|
|
@@ -42255,8 +42255,8 @@ class ImageItem extends BaseItem {
|
|
|
42255
42255
|
this.subject.publish(this);
|
|
42256
42256
|
this.shootLoadCallbacks();
|
|
42257
42257
|
};
|
|
42258
|
-
onError = (
|
|
42259
|
-
this.image = getPlaceholderImage(this.board);
|
|
42258
|
+
onError = () => {
|
|
42259
|
+
this.image = getPlaceholderImage(this.board, this.imageDimension);
|
|
42260
42260
|
this.updateMbr();
|
|
42261
42261
|
this.subject.publish(this);
|
|
42262
42262
|
this.shootLoadCallbacks();
|
|
@@ -42340,13 +42340,7 @@ class ImageItem extends BaseItem {
|
|
|
42340
42340
|
if (this.image.src) {
|
|
42341
42341
|
return this;
|
|
42342
42342
|
}
|
|
42343
|
-
this.
|
|
42344
|
-
const storageImage = new Image;
|
|
42345
|
-
storageImage.onload = () => {
|
|
42346
|
-
this.image = storageImage;
|
|
42347
|
-
this.onLoad();
|
|
42348
|
-
};
|
|
42349
|
-
storageImage.onerror = this.onError;
|
|
42343
|
+
this.onError();
|
|
42350
42344
|
return this;
|
|
42351
42345
|
}
|
|
42352
42346
|
emit(operation) {
|
package/dist/cjs/node.js
CHANGED
|
@@ -44708,8 +44708,8 @@ class ImageItem extends BaseItem {
|
|
|
44708
44708
|
console.log("setStorageLink", link2);
|
|
44709
44709
|
this.storageLink = link2;
|
|
44710
44710
|
console.log("board", this.board);
|
|
44711
|
-
console.log("accessToken", this.board.getAccount()?.accessToken
|
|
44712
|
-
this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken
|
|
44711
|
+
console.log("accessToken", this.board.getAccount()?.accessToken);
|
|
44712
|
+
this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken || null) || "";
|
|
44713
44713
|
this.image.src = this.signedUrl;
|
|
44714
44714
|
}
|
|
44715
44715
|
getStorageId() {
|
|
@@ -44728,8 +44728,8 @@ class ImageItem extends BaseItem {
|
|
|
44728
44728
|
this.subject.publish(this);
|
|
44729
44729
|
this.shootLoadCallbacks();
|
|
44730
44730
|
};
|
|
44731
|
-
onError = (
|
|
44732
|
-
this.image = getPlaceholderImage(this.board);
|
|
44731
|
+
onError = () => {
|
|
44732
|
+
this.image = getPlaceholderImage(this.board, this.imageDimension);
|
|
44733
44733
|
this.updateMbr();
|
|
44734
44734
|
this.subject.publish(this);
|
|
44735
44735
|
this.shootLoadCallbacks();
|
|
@@ -44813,13 +44813,7 @@ class ImageItem extends BaseItem {
|
|
|
44813
44813
|
if (this.image.src) {
|
|
44814
44814
|
return this;
|
|
44815
44815
|
}
|
|
44816
|
-
this.
|
|
44817
|
-
const storageImage = new Image;
|
|
44818
|
-
storageImage.onload = () => {
|
|
44819
|
-
this.image = storageImage;
|
|
44820
|
-
this.onLoad();
|
|
44821
|
-
};
|
|
44822
|
-
storageImage.onerror = this.onError;
|
|
44816
|
+
this.onError();
|
|
44823
44817
|
return this;
|
|
44824
44818
|
}
|
|
44825
44819
|
emit(operation) {
|
package/dist/esm/browser.js
CHANGED
|
@@ -42079,8 +42079,8 @@ class ImageItem extends BaseItem {
|
|
|
42079
42079
|
console.log("setStorageLink", link2);
|
|
42080
42080
|
this.storageLink = link2;
|
|
42081
42081
|
console.log("board", this.board);
|
|
42082
|
-
console.log("accessToken", this.board.getAccount()?.accessToken
|
|
42083
|
-
this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken
|
|
42082
|
+
console.log("accessToken", this.board.getAccount()?.accessToken);
|
|
42083
|
+
this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken || null) || "";
|
|
42084
42084
|
this.image.src = this.signedUrl;
|
|
42085
42085
|
}
|
|
42086
42086
|
getStorageId() {
|
|
@@ -42099,8 +42099,8 @@ class ImageItem extends BaseItem {
|
|
|
42099
42099
|
this.subject.publish(this);
|
|
42100
42100
|
this.shootLoadCallbacks();
|
|
42101
42101
|
};
|
|
42102
|
-
onError = (
|
|
42103
|
-
this.image = getPlaceholderImage(this.board);
|
|
42102
|
+
onError = () => {
|
|
42103
|
+
this.image = getPlaceholderImage(this.board, this.imageDimension);
|
|
42104
42104
|
this.updateMbr();
|
|
42105
42105
|
this.subject.publish(this);
|
|
42106
42106
|
this.shootLoadCallbacks();
|
|
@@ -42184,13 +42184,7 @@ class ImageItem extends BaseItem {
|
|
|
42184
42184
|
if (this.image.src) {
|
|
42185
42185
|
return this;
|
|
42186
42186
|
}
|
|
42187
|
-
this.
|
|
42188
|
-
const storageImage = new Image;
|
|
42189
|
-
storageImage.onload = () => {
|
|
42190
|
-
this.image = storageImage;
|
|
42191
|
-
this.onLoad();
|
|
42192
|
-
};
|
|
42193
|
-
storageImage.onerror = this.onError;
|
|
42187
|
+
this.onError();
|
|
42194
42188
|
return this;
|
|
42195
42189
|
}
|
|
42196
42190
|
emit(operation) {
|
package/dist/esm/index.js
CHANGED
|
@@ -42072,8 +42072,8 @@ class ImageItem extends BaseItem {
|
|
|
42072
42072
|
console.log("setStorageLink", link2);
|
|
42073
42073
|
this.storageLink = link2;
|
|
42074
42074
|
console.log("board", this.board);
|
|
42075
|
-
console.log("accessToken", this.board.getAccount()?.accessToken
|
|
42076
|
-
this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken
|
|
42075
|
+
console.log("accessToken", this.board.getAccount()?.accessToken);
|
|
42076
|
+
this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken || null) || "";
|
|
42077
42077
|
this.image.src = this.signedUrl;
|
|
42078
42078
|
}
|
|
42079
42079
|
getStorageId() {
|
|
@@ -42092,8 +42092,8 @@ class ImageItem extends BaseItem {
|
|
|
42092
42092
|
this.subject.publish(this);
|
|
42093
42093
|
this.shootLoadCallbacks();
|
|
42094
42094
|
};
|
|
42095
|
-
onError = (
|
|
42096
|
-
this.image = getPlaceholderImage(this.board);
|
|
42095
|
+
onError = () => {
|
|
42096
|
+
this.image = getPlaceholderImage(this.board, this.imageDimension);
|
|
42097
42097
|
this.updateMbr();
|
|
42098
42098
|
this.subject.publish(this);
|
|
42099
42099
|
this.shootLoadCallbacks();
|
|
@@ -42177,13 +42177,7 @@ class ImageItem extends BaseItem {
|
|
|
42177
42177
|
if (this.image.src) {
|
|
42178
42178
|
return this;
|
|
42179
42179
|
}
|
|
42180
|
-
this.
|
|
42181
|
-
const storageImage = new Image;
|
|
42182
|
-
storageImage.onload = () => {
|
|
42183
|
-
this.image = storageImage;
|
|
42184
|
-
this.onLoad();
|
|
42185
|
-
};
|
|
42186
|
-
storageImage.onerror = this.onError;
|
|
42180
|
+
this.onError();
|
|
42187
42181
|
return this;
|
|
42188
42182
|
}
|
|
42189
42183
|
emit(operation) {
|
package/dist/esm/node.js
CHANGED
|
@@ -44540,8 +44540,8 @@ class ImageItem extends BaseItem {
|
|
|
44540
44540
|
console.log("setStorageLink", link2);
|
|
44541
44541
|
this.storageLink = link2;
|
|
44542
44542
|
console.log("board", this.board);
|
|
44543
|
-
console.log("accessToken", this.board.getAccount()?.accessToken
|
|
44544
|
-
this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken
|
|
44543
|
+
console.log("accessToken", this.board.getAccount()?.accessToken);
|
|
44544
|
+
this.signedUrl = await getMediaSignedUrl(link2, this.board.getAccount()?.accessToken || null) || "";
|
|
44545
44545
|
this.image.src = this.signedUrl;
|
|
44546
44546
|
}
|
|
44547
44547
|
getStorageId() {
|
|
@@ -44560,8 +44560,8 @@ class ImageItem extends BaseItem {
|
|
|
44560
44560
|
this.subject.publish(this);
|
|
44561
44561
|
this.shootLoadCallbacks();
|
|
44562
44562
|
};
|
|
44563
|
-
onError = (
|
|
44564
|
-
this.image = getPlaceholderImage(this.board);
|
|
44563
|
+
onError = () => {
|
|
44564
|
+
this.image = getPlaceholderImage(this.board, this.imageDimension);
|
|
44565
44565
|
this.updateMbr();
|
|
44566
44566
|
this.subject.publish(this);
|
|
44567
44567
|
this.shootLoadCallbacks();
|
|
@@ -44645,13 +44645,7 @@ class ImageItem extends BaseItem {
|
|
|
44645
44645
|
if (this.image.src) {
|
|
44646
44646
|
return this;
|
|
44647
44647
|
}
|
|
44648
|
-
this.
|
|
44649
|
-
const storageImage = new Image;
|
|
44650
|
-
storageImage.onload = () => {
|
|
44651
|
-
this.image = storageImage;
|
|
44652
|
-
this.onLoad();
|
|
44653
|
-
};
|
|
44654
|
-
storageImage.onerror = this.onError;
|
|
44648
|
+
this.onError();
|
|
44655
44649
|
return this;
|
|
44656
44650
|
}
|
|
44657
44651
|
emit(operation) {
|
|
@@ -47,7 +47,7 @@ export declare class ImageItem extends BaseItem {
|
|
|
47
47
|
getStorageId(): string | undefined;
|
|
48
48
|
handleError: () => void;
|
|
49
49
|
onLoad: () => Promise<void>;
|
|
50
|
-
onError: (
|
|
50
|
+
onError: () => void;
|
|
51
51
|
onTransform: () => void;
|
|
52
52
|
updateMbr(): void;
|
|
53
53
|
doOnceBeforeOnLoad: (callback: (image: ImageItem) => void) => void;
|