microboard-temp 0.5.121 → 0.5.124
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 -5
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/node.js +5 -5
- package/dist/esm/browser.js +5 -5
- package/dist/esm/index.js +5 -5
- package/dist/esm/node.js +5 -5
- package/dist/types/Items/Video/VideoHelpers.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -40869,8 +40869,8 @@ class Frame2 extends BaseItem {
|
|
|
40869
40869
|
}
|
|
40870
40870
|
}
|
|
40871
40871
|
// src/api/MediaHelpers.ts
|
|
40872
|
-
var uploadSvgDirectly = async (blob, accessToken, boardId) => {
|
|
40873
|
-
const response = await fetch(
|
|
40872
|
+
var uploadSvgDirectly = async (blob, accessToken, boardId, baseUrl) => {
|
|
40873
|
+
const response = await fetch(`${baseUrl || ""}/api/v1/media/svg/${boardId}`, {
|
|
40874
40874
|
method: "POST",
|
|
40875
40875
|
headers: {
|
|
40876
40876
|
"Content-Type": "image/svg+xml",
|
|
@@ -40888,8 +40888,8 @@ var uploadSvgDirectly = async (blob, accessToken, boardId) => {
|
|
|
40888
40888
|
}
|
|
40889
40889
|
return data.url;
|
|
40890
40890
|
};
|
|
40891
|
-
var uploadWithPresignedUrl = async (blob, accessToken, boardId, type) => {
|
|
40892
|
-
const generateUrlResponse = await fetch(
|
|
40891
|
+
var uploadWithPresignedUrl = async (blob, accessToken, boardId, type, baseUrl) => {
|
|
40892
|
+
const generateUrlResponse = await fetch(`${baseUrl || ""}/api/v1/media/upload`, {
|
|
40893
40893
|
method: "POST",
|
|
40894
40894
|
headers: {
|
|
40895
40895
|
"Content-Type": "application/json",
|
|
@@ -41513,7 +41513,7 @@ var prepareImage = (inp, accessToken, boardId) => resizeAndConvertToPng(inp).the
|
|
|
41513
41513
|
});
|
|
41514
41514
|
|
|
41515
41515
|
// src/Items/Video/VideoHelpers.ts
|
|
41516
|
-
var uploadVideoToStorage = async (hash, videoBlob, accessToken, boardId) => {
|
|
41516
|
+
var uploadVideoToStorage = async (hash, videoBlob, accessToken, boardId, baseUrl) => {
|
|
41517
41517
|
return new Promise((resolve2, reject) => {
|
|
41518
41518
|
fetch(`${window.location.origin}/api/v1/media/video/${boardId}`, {
|
|
41519
41519
|
method: "POST",
|
package/dist/cjs/index.js
CHANGED
|
@@ -40869,8 +40869,8 @@ class Frame2 extends BaseItem {
|
|
|
40869
40869
|
}
|
|
40870
40870
|
}
|
|
40871
40871
|
// src/api/MediaHelpers.ts
|
|
40872
|
-
var uploadSvgDirectly = async (blob, accessToken, boardId) => {
|
|
40873
|
-
const response = await fetch(
|
|
40872
|
+
var uploadSvgDirectly = async (blob, accessToken, boardId, baseUrl) => {
|
|
40873
|
+
const response = await fetch(`${baseUrl || ""}/api/v1/media/svg/${boardId}`, {
|
|
40874
40874
|
method: "POST",
|
|
40875
40875
|
headers: {
|
|
40876
40876
|
"Content-Type": "image/svg+xml",
|
|
@@ -40888,8 +40888,8 @@ var uploadSvgDirectly = async (blob, accessToken, boardId) => {
|
|
|
40888
40888
|
}
|
|
40889
40889
|
return data.url;
|
|
40890
40890
|
};
|
|
40891
|
-
var uploadWithPresignedUrl = async (blob, accessToken, boardId, type) => {
|
|
40892
|
-
const generateUrlResponse = await fetch(
|
|
40891
|
+
var uploadWithPresignedUrl = async (blob, accessToken, boardId, type, baseUrl) => {
|
|
40892
|
+
const generateUrlResponse = await fetch(`${baseUrl || ""}/api/v1/media/upload`, {
|
|
40893
40893
|
method: "POST",
|
|
40894
40894
|
headers: {
|
|
40895
40895
|
"Content-Type": "application/json",
|
|
@@ -41513,7 +41513,7 @@ var prepareImage = (inp, accessToken, boardId) => resizeAndConvertToPng(inp).the
|
|
|
41513
41513
|
});
|
|
41514
41514
|
|
|
41515
41515
|
// src/Items/Video/VideoHelpers.ts
|
|
41516
|
-
var uploadVideoToStorage = async (hash, videoBlob, accessToken, boardId) => {
|
|
41516
|
+
var uploadVideoToStorage = async (hash, videoBlob, accessToken, boardId, baseUrl) => {
|
|
41517
41517
|
return new Promise((resolve2, reject) => {
|
|
41518
41518
|
fetch(`${window.location.origin}/api/v1/media/video/${boardId}`, {
|
|
41519
41519
|
method: "POST",
|
package/dist/cjs/node.js
CHANGED
|
@@ -43342,8 +43342,8 @@ class Frame2 extends BaseItem {
|
|
|
43342
43342
|
}
|
|
43343
43343
|
}
|
|
43344
43344
|
// src/api/MediaHelpers.ts
|
|
43345
|
-
var uploadSvgDirectly = async (blob, accessToken, boardId) => {
|
|
43346
|
-
const response = await fetch(
|
|
43345
|
+
var uploadSvgDirectly = async (blob, accessToken, boardId, baseUrl) => {
|
|
43346
|
+
const response = await fetch(`${baseUrl || ""}/api/v1/media/svg/${boardId}`, {
|
|
43347
43347
|
method: "POST",
|
|
43348
43348
|
headers: {
|
|
43349
43349
|
"Content-Type": "image/svg+xml",
|
|
@@ -43361,8 +43361,8 @@ var uploadSvgDirectly = async (blob, accessToken, boardId) => {
|
|
|
43361
43361
|
}
|
|
43362
43362
|
return data.url;
|
|
43363
43363
|
};
|
|
43364
|
-
var uploadWithPresignedUrl = async (blob, accessToken, boardId, type) => {
|
|
43365
|
-
const generateUrlResponse = await fetch(
|
|
43364
|
+
var uploadWithPresignedUrl = async (blob, accessToken, boardId, type, baseUrl) => {
|
|
43365
|
+
const generateUrlResponse = await fetch(`${baseUrl || ""}/api/v1/media/upload`, {
|
|
43366
43366
|
method: "POST",
|
|
43367
43367
|
headers: {
|
|
43368
43368
|
"Content-Type": "application/json",
|
|
@@ -43986,7 +43986,7 @@ var prepareImage = (inp, accessToken, boardId) => resizeAndConvertToPng(inp).the
|
|
|
43986
43986
|
});
|
|
43987
43987
|
|
|
43988
43988
|
// src/Items/Video/VideoHelpers.ts
|
|
43989
|
-
var uploadVideoToStorage = async (hash, videoBlob, accessToken, boardId) => {
|
|
43989
|
+
var uploadVideoToStorage = async (hash, videoBlob, accessToken, boardId, baseUrl) => {
|
|
43990
43990
|
return new Promise((resolve2, reject) => {
|
|
43991
43991
|
fetch(`${window.location.origin}/api/v1/media/video/${boardId}`, {
|
|
43992
43992
|
method: "POST",
|
package/dist/esm/browser.js
CHANGED
|
@@ -40713,8 +40713,8 @@ class Frame2 extends BaseItem {
|
|
|
40713
40713
|
}
|
|
40714
40714
|
}
|
|
40715
40715
|
// src/api/MediaHelpers.ts
|
|
40716
|
-
var uploadSvgDirectly = async (blob, accessToken, boardId) => {
|
|
40717
|
-
const response = await fetch(
|
|
40716
|
+
var uploadSvgDirectly = async (blob, accessToken, boardId, baseUrl) => {
|
|
40717
|
+
const response = await fetch(`${baseUrl || ""}/api/v1/media/svg/${boardId}`, {
|
|
40718
40718
|
method: "POST",
|
|
40719
40719
|
headers: {
|
|
40720
40720
|
"Content-Type": "image/svg+xml",
|
|
@@ -40732,8 +40732,8 @@ var uploadSvgDirectly = async (blob, accessToken, boardId) => {
|
|
|
40732
40732
|
}
|
|
40733
40733
|
return data.url;
|
|
40734
40734
|
};
|
|
40735
|
-
var uploadWithPresignedUrl = async (blob, accessToken, boardId, type) => {
|
|
40736
|
-
const generateUrlResponse = await fetch(
|
|
40735
|
+
var uploadWithPresignedUrl = async (blob, accessToken, boardId, type, baseUrl) => {
|
|
40736
|
+
const generateUrlResponse = await fetch(`${baseUrl || ""}/api/v1/media/upload`, {
|
|
40737
40737
|
method: "POST",
|
|
40738
40738
|
headers: {
|
|
40739
40739
|
"Content-Type": "application/json",
|
|
@@ -41357,7 +41357,7 @@ var prepareImage = (inp, accessToken, boardId) => resizeAndConvertToPng(inp).the
|
|
|
41357
41357
|
});
|
|
41358
41358
|
|
|
41359
41359
|
// src/Items/Video/VideoHelpers.ts
|
|
41360
|
-
var uploadVideoToStorage = async (hash, videoBlob, accessToken, boardId) => {
|
|
41360
|
+
var uploadVideoToStorage = async (hash, videoBlob, accessToken, boardId, baseUrl) => {
|
|
41361
41361
|
return new Promise((resolve2, reject) => {
|
|
41362
41362
|
fetch(`${window.location.origin}/api/v1/media/video/${boardId}`, {
|
|
41363
41363
|
method: "POST",
|
package/dist/esm/index.js
CHANGED
|
@@ -40706,8 +40706,8 @@ class Frame2 extends BaseItem {
|
|
|
40706
40706
|
}
|
|
40707
40707
|
}
|
|
40708
40708
|
// src/api/MediaHelpers.ts
|
|
40709
|
-
var uploadSvgDirectly = async (blob, accessToken, boardId) => {
|
|
40710
|
-
const response = await fetch(
|
|
40709
|
+
var uploadSvgDirectly = async (blob, accessToken, boardId, baseUrl) => {
|
|
40710
|
+
const response = await fetch(`${baseUrl || ""}/api/v1/media/svg/${boardId}`, {
|
|
40711
40711
|
method: "POST",
|
|
40712
40712
|
headers: {
|
|
40713
40713
|
"Content-Type": "image/svg+xml",
|
|
@@ -40725,8 +40725,8 @@ var uploadSvgDirectly = async (blob, accessToken, boardId) => {
|
|
|
40725
40725
|
}
|
|
40726
40726
|
return data.url;
|
|
40727
40727
|
};
|
|
40728
|
-
var uploadWithPresignedUrl = async (blob, accessToken, boardId, type) => {
|
|
40729
|
-
const generateUrlResponse = await fetch(
|
|
40728
|
+
var uploadWithPresignedUrl = async (blob, accessToken, boardId, type, baseUrl) => {
|
|
40729
|
+
const generateUrlResponse = await fetch(`${baseUrl || ""}/api/v1/media/upload`, {
|
|
40730
40730
|
method: "POST",
|
|
40731
40731
|
headers: {
|
|
40732
40732
|
"Content-Type": "application/json",
|
|
@@ -41350,7 +41350,7 @@ var prepareImage = (inp, accessToken, boardId) => resizeAndConvertToPng(inp).the
|
|
|
41350
41350
|
});
|
|
41351
41351
|
|
|
41352
41352
|
// src/Items/Video/VideoHelpers.ts
|
|
41353
|
-
var uploadVideoToStorage = async (hash, videoBlob, accessToken, boardId) => {
|
|
41353
|
+
var uploadVideoToStorage = async (hash, videoBlob, accessToken, boardId, baseUrl) => {
|
|
41354
41354
|
return new Promise((resolve2, reject) => {
|
|
41355
41355
|
fetch(`${window.location.origin}/api/v1/media/video/${boardId}`, {
|
|
41356
41356
|
method: "POST",
|
package/dist/esm/node.js
CHANGED
|
@@ -43174,8 +43174,8 @@ class Frame2 extends BaseItem {
|
|
|
43174
43174
|
}
|
|
43175
43175
|
}
|
|
43176
43176
|
// src/api/MediaHelpers.ts
|
|
43177
|
-
var uploadSvgDirectly = async (blob, accessToken, boardId) => {
|
|
43178
|
-
const response = await fetch(
|
|
43177
|
+
var uploadSvgDirectly = async (blob, accessToken, boardId, baseUrl) => {
|
|
43178
|
+
const response = await fetch(`${baseUrl || ""}/api/v1/media/svg/${boardId}`, {
|
|
43179
43179
|
method: "POST",
|
|
43180
43180
|
headers: {
|
|
43181
43181
|
"Content-Type": "image/svg+xml",
|
|
@@ -43193,8 +43193,8 @@ var uploadSvgDirectly = async (blob, accessToken, boardId) => {
|
|
|
43193
43193
|
}
|
|
43194
43194
|
return data.url;
|
|
43195
43195
|
};
|
|
43196
|
-
var uploadWithPresignedUrl = async (blob, accessToken, boardId, type) => {
|
|
43197
|
-
const generateUrlResponse = await fetch(
|
|
43196
|
+
var uploadWithPresignedUrl = async (blob, accessToken, boardId, type, baseUrl) => {
|
|
43197
|
+
const generateUrlResponse = await fetch(`${baseUrl || ""}/api/v1/media/upload`, {
|
|
43198
43198
|
method: "POST",
|
|
43199
43199
|
headers: {
|
|
43200
43200
|
"Content-Type": "application/json",
|
|
@@ -43818,7 +43818,7 @@ var prepareImage = (inp, accessToken, boardId) => resizeAndConvertToPng(inp).the
|
|
|
43818
43818
|
});
|
|
43819
43819
|
|
|
43820
43820
|
// src/Items/Video/VideoHelpers.ts
|
|
43821
|
-
var uploadVideoToStorage = async (hash, videoBlob, accessToken, boardId) => {
|
|
43821
|
+
var uploadVideoToStorage = async (hash, videoBlob, accessToken, boardId, baseUrl) => {
|
|
43822
43822
|
return new Promise((resolve2, reject) => {
|
|
43823
43823
|
fetch(`${window.location.origin}/api/v1/media/video/${boardId}`, {
|
|
43824
43824
|
method: "POST",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Board } from '../../Board';
|
|
2
2
|
import { VideoConstructorData, VideoItem } from './Video';
|
|
3
|
-
export declare const uploadVideoToStorage: (hash: string, videoBlob: Blob, accessToken: string | null, boardId: string) => Promise<string>;
|
|
3
|
+
export declare const uploadVideoToStorage: (hash: string, videoBlob: Blob, accessToken: string | null, boardId: string, baseUrl?: string) => Promise<string>;
|
|
4
4
|
export declare const getVideoMetadata: (file: File) => Promise<{
|
|
5
5
|
width: number;
|
|
6
6
|
height: number;
|