microboard-temp 0.5.129 → 0.5.131
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 +2 -9
- package/dist/cjs/index.js +2 -9
- package/dist/cjs/node.js +2 -9
- package/dist/esm/browser.js +2 -9
- package/dist/esm/index.js +2 -9
- package/dist/esm/node.js +2 -9
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -41101,14 +41101,7 @@ class VideoItem extends BaseItem {
|
|
|
41101
41101
|
return this.playBtnMbr;
|
|
41102
41102
|
}
|
|
41103
41103
|
setUrl(url) {
|
|
41104
|
-
|
|
41105
|
-
try {
|
|
41106
|
-
const newUrl = new URL(url);
|
|
41107
|
-
this.url = `${window.location.origin}${newUrl.pathname}`;
|
|
41108
|
-
} catch (_) {}
|
|
41109
|
-
} else {
|
|
41110
|
-
this.url = url;
|
|
41111
|
-
}
|
|
41104
|
+
this.url = url;
|
|
41112
41105
|
}
|
|
41113
41106
|
setPreview(image2) {
|
|
41114
41107
|
this.preview = image2;
|
|
@@ -41523,7 +41516,7 @@ var prepareVideo = (file, accessToken, boardId, baseUrl) => {
|
|
|
41523
41516
|
video.onloadedmetadata = () => {
|
|
41524
41517
|
video.onseeked = () => {
|
|
41525
41518
|
video.onseeked = null;
|
|
41526
|
-
prepareImage(captureFrame(0.1, video)?.src, accessToken, boardId).then((imageData) => {
|
|
41519
|
+
prepareImage(captureFrame(0.1, video)?.src, accessToken, boardId, baseUrl).then((imageData) => {
|
|
41527
41520
|
uploadMediaToStorage(file, accessToken, boardId, "video", baseUrl).then((url) => {
|
|
41528
41521
|
resolve2({
|
|
41529
41522
|
url,
|
package/dist/cjs/index.js
CHANGED
|
@@ -41101,14 +41101,7 @@ class VideoItem extends BaseItem {
|
|
|
41101
41101
|
return this.playBtnMbr;
|
|
41102
41102
|
}
|
|
41103
41103
|
setUrl(url) {
|
|
41104
|
-
|
|
41105
|
-
try {
|
|
41106
|
-
const newUrl = new URL(url);
|
|
41107
|
-
this.url = `${window.location.origin}${newUrl.pathname}`;
|
|
41108
|
-
} catch (_) {}
|
|
41109
|
-
} else {
|
|
41110
|
-
this.url = url;
|
|
41111
|
-
}
|
|
41104
|
+
this.url = url;
|
|
41112
41105
|
}
|
|
41113
41106
|
setPreview(image2) {
|
|
41114
41107
|
this.preview = image2;
|
|
@@ -41523,7 +41516,7 @@ var prepareVideo = (file, accessToken, boardId, baseUrl) => {
|
|
|
41523
41516
|
video.onloadedmetadata = () => {
|
|
41524
41517
|
video.onseeked = () => {
|
|
41525
41518
|
video.onseeked = null;
|
|
41526
|
-
prepareImage(captureFrame(0.1, video)?.src, accessToken, boardId).then((imageData) => {
|
|
41519
|
+
prepareImage(captureFrame(0.1, video)?.src, accessToken, boardId, baseUrl).then((imageData) => {
|
|
41527
41520
|
uploadMediaToStorage(file, accessToken, boardId, "video", baseUrl).then((url) => {
|
|
41528
41521
|
resolve2({
|
|
41529
41522
|
url,
|
package/dist/cjs/node.js
CHANGED
|
@@ -43574,14 +43574,7 @@ class VideoItem extends BaseItem {
|
|
|
43574
43574
|
return this.playBtnMbr;
|
|
43575
43575
|
}
|
|
43576
43576
|
setUrl(url) {
|
|
43577
|
-
|
|
43578
|
-
try {
|
|
43579
|
-
const newUrl = new URL(url);
|
|
43580
|
-
this.url = `${window.location.origin}${newUrl.pathname}`;
|
|
43581
|
-
} catch (_) {}
|
|
43582
|
-
} else {
|
|
43583
|
-
this.url = url;
|
|
43584
|
-
}
|
|
43577
|
+
this.url = url;
|
|
43585
43578
|
}
|
|
43586
43579
|
setPreview(image2) {
|
|
43587
43580
|
this.preview = image2;
|
|
@@ -43996,7 +43989,7 @@ var prepareVideo = (file, accessToken, boardId, baseUrl) => {
|
|
|
43996
43989
|
video.onloadedmetadata = () => {
|
|
43997
43990
|
video.onseeked = () => {
|
|
43998
43991
|
video.onseeked = null;
|
|
43999
|
-
prepareImage(captureFrame(0.1, video)?.src, accessToken, boardId).then((imageData) => {
|
|
43992
|
+
prepareImage(captureFrame(0.1, video)?.src, accessToken, boardId, baseUrl).then((imageData) => {
|
|
44000
43993
|
uploadMediaToStorage(file, accessToken, boardId, "video", baseUrl).then((url) => {
|
|
44001
43994
|
resolve2({
|
|
44002
43995
|
url,
|
package/dist/esm/browser.js
CHANGED
|
@@ -40947,14 +40947,7 @@ class VideoItem extends BaseItem {
|
|
|
40947
40947
|
return this.playBtnMbr;
|
|
40948
40948
|
}
|
|
40949
40949
|
setUrl(url) {
|
|
40950
|
-
|
|
40951
|
-
try {
|
|
40952
|
-
const newUrl = new URL(url);
|
|
40953
|
-
this.url = `${window.location.origin}${newUrl.pathname}`;
|
|
40954
|
-
} catch (_) {}
|
|
40955
|
-
} else {
|
|
40956
|
-
this.url = url;
|
|
40957
|
-
}
|
|
40950
|
+
this.url = url;
|
|
40958
40951
|
}
|
|
40959
40952
|
setPreview(image2) {
|
|
40960
40953
|
this.preview = image2;
|
|
@@ -41369,7 +41362,7 @@ var prepareVideo = (file, accessToken, boardId, baseUrl) => {
|
|
|
41369
41362
|
video.onloadedmetadata = () => {
|
|
41370
41363
|
video.onseeked = () => {
|
|
41371
41364
|
video.onseeked = null;
|
|
41372
|
-
prepareImage(captureFrame(0.1, video)?.src, accessToken, boardId).then((imageData) => {
|
|
41365
|
+
prepareImage(captureFrame(0.1, video)?.src, accessToken, boardId, baseUrl).then((imageData) => {
|
|
41373
41366
|
uploadMediaToStorage(file, accessToken, boardId, "video", baseUrl).then((url) => {
|
|
41374
41367
|
resolve2({
|
|
41375
41368
|
url,
|
package/dist/esm/index.js
CHANGED
|
@@ -40940,14 +40940,7 @@ class VideoItem extends BaseItem {
|
|
|
40940
40940
|
return this.playBtnMbr;
|
|
40941
40941
|
}
|
|
40942
40942
|
setUrl(url) {
|
|
40943
|
-
|
|
40944
|
-
try {
|
|
40945
|
-
const newUrl = new URL(url);
|
|
40946
|
-
this.url = `${window.location.origin}${newUrl.pathname}`;
|
|
40947
|
-
} catch (_) {}
|
|
40948
|
-
} else {
|
|
40949
|
-
this.url = url;
|
|
40950
|
-
}
|
|
40943
|
+
this.url = url;
|
|
40951
40944
|
}
|
|
40952
40945
|
setPreview(image2) {
|
|
40953
40946
|
this.preview = image2;
|
|
@@ -41362,7 +41355,7 @@ var prepareVideo = (file, accessToken, boardId, baseUrl) => {
|
|
|
41362
41355
|
video.onloadedmetadata = () => {
|
|
41363
41356
|
video.onseeked = () => {
|
|
41364
41357
|
video.onseeked = null;
|
|
41365
|
-
prepareImage(captureFrame(0.1, video)?.src, accessToken, boardId).then((imageData) => {
|
|
41358
|
+
prepareImage(captureFrame(0.1, video)?.src, accessToken, boardId, baseUrl).then((imageData) => {
|
|
41366
41359
|
uploadMediaToStorage(file, accessToken, boardId, "video", baseUrl).then((url) => {
|
|
41367
41360
|
resolve2({
|
|
41368
41361
|
url,
|
package/dist/esm/node.js
CHANGED
|
@@ -43408,14 +43408,7 @@ class VideoItem extends BaseItem {
|
|
|
43408
43408
|
return this.playBtnMbr;
|
|
43409
43409
|
}
|
|
43410
43410
|
setUrl(url) {
|
|
43411
|
-
|
|
43412
|
-
try {
|
|
43413
|
-
const newUrl = new URL(url);
|
|
43414
|
-
this.url = `${window.location.origin}${newUrl.pathname}`;
|
|
43415
|
-
} catch (_) {}
|
|
43416
|
-
} else {
|
|
43417
|
-
this.url = url;
|
|
43418
|
-
}
|
|
43411
|
+
this.url = url;
|
|
43419
43412
|
}
|
|
43420
43413
|
setPreview(image2) {
|
|
43421
43414
|
this.preview = image2;
|
|
@@ -43830,7 +43823,7 @@ var prepareVideo = (file, accessToken, boardId, baseUrl) => {
|
|
|
43830
43823
|
video.onloadedmetadata = () => {
|
|
43831
43824
|
video.onseeked = () => {
|
|
43832
43825
|
video.onseeked = null;
|
|
43833
|
-
prepareImage(captureFrame(0.1, video)?.src, accessToken, boardId).then((imageData) => {
|
|
43826
|
+
prepareImage(captureFrame(0.1, video)?.src, accessToken, boardId, baseUrl).then((imageData) => {
|
|
43834
43827
|
uploadMediaToStorage(file, accessToken, boardId, "video", baseUrl).then((url) => {
|
|
43835
43828
|
resolve2({
|
|
43836
43829
|
url,
|