microboard-temp 0.13.62 → 0.13.63
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 +6 -4
- package/dist/cjs/index.js +6 -4
- package/dist/cjs/node.js +6 -4
- package/dist/esm/browser.js +6 -4
- package/dist/esm/index.js +6 -4
- package/dist/esm/node.js +6 -4
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -3624,7 +3624,7 @@ var init_Settings = __esm(() => {
|
|
|
3624
3624
|
measureCtx: undefined,
|
|
3625
3625
|
i18n: instance,
|
|
3626
3626
|
hooks: {
|
|
3627
|
-
beforeMediaUpload: async (...args) =>
|
|
3627
|
+
beforeMediaUpload: async (...args) => true,
|
|
3628
3628
|
beforeMediaRemove: async (...args) => false,
|
|
3629
3629
|
onUploadMediaError: async (...args) => false
|
|
3630
3630
|
},
|
|
@@ -51431,7 +51431,7 @@ function validateFrameData(data) {
|
|
|
51431
51431
|
return false;
|
|
51432
51432
|
}
|
|
51433
51433
|
const frameData = data;
|
|
51434
|
-
const isValid = frameData.hasOwnProperty("shapeType") && frameData.hasOwnProperty("backgroundColor") && frameData.hasOwnProperty("backgroundOpacity") && frameData.hasOwnProperty("borderColor") && frameData.hasOwnProperty("borderOpacity") && frameData.hasOwnProperty("borderStyle") && frameData.hasOwnProperty("borderWidth") && frameData.hasOwnProperty("transformation") && frameData.hasOwnProperty("text") && frameData.hasOwnProperty("children") && typeof frameData.shapeType === "string" && isColorValue(frameData.backgroundColor) && typeof frameData.backgroundOpacity === "number" && isColorValue(frameData.borderColor) && typeof frameData.borderOpacity === "number" && typeof frameData.borderStyle === "string" && typeof frameData.borderWidth === "number" && Array.isArray(frameData.children) && validateTransformationData(frameData.transformation) && validateRichTextData(frameData.text);
|
|
51434
|
+
const isValid = frameData.hasOwnProperty("shapeType") && frameData.hasOwnProperty("backgroundColor") && frameData.hasOwnProperty("backgroundOpacity") && frameData.hasOwnProperty("borderColor") && frameData.hasOwnProperty("borderOpacity") && frameData.hasOwnProperty("borderStyle") && frameData.hasOwnProperty("borderWidth") && frameData.hasOwnProperty("transformation") && frameData.hasOwnProperty("text") && (frameData.hasOwnProperty("childIds") || frameData.hasOwnProperty("children")) && typeof frameData.shapeType === "string" && isColorValue(frameData.backgroundColor) && typeof frameData.backgroundOpacity === "number" && isColorValue(frameData.borderColor) && typeof frameData.borderOpacity === "number" && typeof frameData.borderStyle === "string" && typeof frameData.borderWidth === "number" && (Array.isArray(frameData.childIds) || Array.isArray(frameData.children)) && validateTransformationData(frameData.transformation) && validateRichTextData(frameData.text);
|
|
51435
51435
|
return isValid;
|
|
51436
51436
|
}
|
|
51437
51437
|
function validateShapeData(shapeData) {
|
|
@@ -62124,8 +62124,10 @@ class Board {
|
|
|
62124
62124
|
}
|
|
62125
62125
|
}
|
|
62126
62126
|
const itemDataWithChildren = itemData;
|
|
62127
|
-
if ("
|
|
62128
|
-
itemDataWithChildren.
|
|
62127
|
+
if ("childIds" in itemDataWithChildren && itemDataWithChildren.childIds?.length) {
|
|
62128
|
+
itemDataWithChildren.childIds = itemDataWithChildren.childIds.map((childId) => newItemIdMap[childId] || childId);
|
|
62129
|
+
} else if ("children" in itemDataWithChildren && itemDataWithChildren.children?.length) {
|
|
62130
|
+
itemDataWithChildren.children = itemDataWithChildren.children.map((childId) => newItemIdMap[childId] || childId);
|
|
62129
62131
|
}
|
|
62130
62132
|
newMap[newItemId] = itemData;
|
|
62131
62133
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -3624,7 +3624,7 @@ var init_Settings = __esm(() => {
|
|
|
3624
3624
|
measureCtx: undefined,
|
|
3625
3625
|
i18n: instance,
|
|
3626
3626
|
hooks: {
|
|
3627
|
-
beforeMediaUpload: async (...args) =>
|
|
3627
|
+
beforeMediaUpload: async (...args) => true,
|
|
3628
3628
|
beforeMediaRemove: async (...args) => false,
|
|
3629
3629
|
onUploadMediaError: async (...args) => false
|
|
3630
3630
|
},
|
|
@@ -51431,7 +51431,7 @@ function validateFrameData(data) {
|
|
|
51431
51431
|
return false;
|
|
51432
51432
|
}
|
|
51433
51433
|
const frameData = data;
|
|
51434
|
-
const isValid = frameData.hasOwnProperty("shapeType") && frameData.hasOwnProperty("backgroundColor") && frameData.hasOwnProperty("backgroundOpacity") && frameData.hasOwnProperty("borderColor") && frameData.hasOwnProperty("borderOpacity") && frameData.hasOwnProperty("borderStyle") && frameData.hasOwnProperty("borderWidth") && frameData.hasOwnProperty("transformation") && frameData.hasOwnProperty("text") && frameData.hasOwnProperty("children") && typeof frameData.shapeType === "string" && isColorValue(frameData.backgroundColor) && typeof frameData.backgroundOpacity === "number" && isColorValue(frameData.borderColor) && typeof frameData.borderOpacity === "number" && typeof frameData.borderStyle === "string" && typeof frameData.borderWidth === "number" && Array.isArray(frameData.children) && validateTransformationData(frameData.transformation) && validateRichTextData(frameData.text);
|
|
51434
|
+
const isValid = frameData.hasOwnProperty("shapeType") && frameData.hasOwnProperty("backgroundColor") && frameData.hasOwnProperty("backgroundOpacity") && frameData.hasOwnProperty("borderColor") && frameData.hasOwnProperty("borderOpacity") && frameData.hasOwnProperty("borderStyle") && frameData.hasOwnProperty("borderWidth") && frameData.hasOwnProperty("transformation") && frameData.hasOwnProperty("text") && (frameData.hasOwnProperty("childIds") || frameData.hasOwnProperty("children")) && typeof frameData.shapeType === "string" && isColorValue(frameData.backgroundColor) && typeof frameData.backgroundOpacity === "number" && isColorValue(frameData.borderColor) && typeof frameData.borderOpacity === "number" && typeof frameData.borderStyle === "string" && typeof frameData.borderWidth === "number" && (Array.isArray(frameData.childIds) || Array.isArray(frameData.children)) && validateTransformationData(frameData.transformation) && validateRichTextData(frameData.text);
|
|
51435
51435
|
return isValid;
|
|
51436
51436
|
}
|
|
51437
51437
|
function validateShapeData(shapeData) {
|
|
@@ -62124,8 +62124,10 @@ class Board {
|
|
|
62124
62124
|
}
|
|
62125
62125
|
}
|
|
62126
62126
|
const itemDataWithChildren = itemData;
|
|
62127
|
-
if ("
|
|
62128
|
-
itemDataWithChildren.
|
|
62127
|
+
if ("childIds" in itemDataWithChildren && itemDataWithChildren.childIds?.length) {
|
|
62128
|
+
itemDataWithChildren.childIds = itemDataWithChildren.childIds.map((childId) => newItemIdMap[childId] || childId);
|
|
62129
|
+
} else if ("children" in itemDataWithChildren && itemDataWithChildren.children?.length) {
|
|
62130
|
+
itemDataWithChildren.children = itemDataWithChildren.children.map((childId) => newItemIdMap[childId] || childId);
|
|
62129
62131
|
}
|
|
62130
62132
|
newMap[newItemId] = itemData;
|
|
62131
62133
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -3624,7 +3624,7 @@ var init_Settings = __esm(() => {
|
|
|
3624
3624
|
measureCtx: undefined,
|
|
3625
3625
|
i18n: instance,
|
|
3626
3626
|
hooks: {
|
|
3627
|
-
beforeMediaUpload: async (...args) =>
|
|
3627
|
+
beforeMediaUpload: async (...args) => true,
|
|
3628
3628
|
beforeMediaRemove: async (...args) => false,
|
|
3629
3629
|
onUploadMediaError: async (...args) => false
|
|
3630
3630
|
},
|
|
@@ -53851,7 +53851,7 @@ function validateFrameData(data) {
|
|
|
53851
53851
|
return false;
|
|
53852
53852
|
}
|
|
53853
53853
|
const frameData = data;
|
|
53854
|
-
const isValid = frameData.hasOwnProperty("shapeType") && frameData.hasOwnProperty("backgroundColor") && frameData.hasOwnProperty("backgroundOpacity") && frameData.hasOwnProperty("borderColor") && frameData.hasOwnProperty("borderOpacity") && frameData.hasOwnProperty("borderStyle") && frameData.hasOwnProperty("borderWidth") && frameData.hasOwnProperty("transformation") && frameData.hasOwnProperty("text") && frameData.hasOwnProperty("children") && typeof frameData.shapeType === "string" && isColorValue(frameData.backgroundColor) && typeof frameData.backgroundOpacity === "number" && isColorValue(frameData.borderColor) && typeof frameData.borderOpacity === "number" && typeof frameData.borderStyle === "string" && typeof frameData.borderWidth === "number" && Array.isArray(frameData.children) && validateTransformationData(frameData.transformation) && validateRichTextData(frameData.text);
|
|
53854
|
+
const isValid = frameData.hasOwnProperty("shapeType") && frameData.hasOwnProperty("backgroundColor") && frameData.hasOwnProperty("backgroundOpacity") && frameData.hasOwnProperty("borderColor") && frameData.hasOwnProperty("borderOpacity") && frameData.hasOwnProperty("borderStyle") && frameData.hasOwnProperty("borderWidth") && frameData.hasOwnProperty("transformation") && frameData.hasOwnProperty("text") && (frameData.hasOwnProperty("childIds") || frameData.hasOwnProperty("children")) && typeof frameData.shapeType === "string" && isColorValue(frameData.backgroundColor) && typeof frameData.backgroundOpacity === "number" && isColorValue(frameData.borderColor) && typeof frameData.borderOpacity === "number" && typeof frameData.borderStyle === "string" && typeof frameData.borderWidth === "number" && (Array.isArray(frameData.childIds) || Array.isArray(frameData.children)) && validateTransformationData(frameData.transformation) && validateRichTextData(frameData.text);
|
|
53855
53855
|
return isValid;
|
|
53856
53856
|
}
|
|
53857
53857
|
function validateShapeData(shapeData) {
|
|
@@ -64599,8 +64599,10 @@ class Board {
|
|
|
64599
64599
|
}
|
|
64600
64600
|
}
|
|
64601
64601
|
const itemDataWithChildren = itemData;
|
|
64602
|
-
if ("
|
|
64603
|
-
itemDataWithChildren.
|
|
64602
|
+
if ("childIds" in itemDataWithChildren && itemDataWithChildren.childIds?.length) {
|
|
64603
|
+
itemDataWithChildren.childIds = itemDataWithChildren.childIds.map((childId) => newItemIdMap[childId] || childId);
|
|
64604
|
+
} else if ("children" in itemDataWithChildren && itemDataWithChildren.children?.length) {
|
|
64605
|
+
itemDataWithChildren.children = itemDataWithChildren.children.map((childId) => newItemIdMap[childId] || childId);
|
|
64604
64606
|
}
|
|
64605
64607
|
newMap[newItemId] = itemData;
|
|
64606
64608
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -3631,7 +3631,7 @@ var init_Settings = __esm(() => {
|
|
|
3631
3631
|
measureCtx: undefined,
|
|
3632
3632
|
i18n: instance,
|
|
3633
3633
|
hooks: {
|
|
3634
|
-
beforeMediaUpload: async (...args) =>
|
|
3634
|
+
beforeMediaUpload: async (...args) => true,
|
|
3635
3635
|
beforeMediaRemove: async (...args) => false,
|
|
3636
3636
|
onUploadMediaError: async (...args) => false
|
|
3637
3637
|
},
|
|
@@ -51369,7 +51369,7 @@ function validateFrameData(data) {
|
|
|
51369
51369
|
return false;
|
|
51370
51370
|
}
|
|
51371
51371
|
const frameData = data;
|
|
51372
|
-
const isValid = frameData.hasOwnProperty("shapeType") && frameData.hasOwnProperty("backgroundColor") && frameData.hasOwnProperty("backgroundOpacity") && frameData.hasOwnProperty("borderColor") && frameData.hasOwnProperty("borderOpacity") && frameData.hasOwnProperty("borderStyle") && frameData.hasOwnProperty("borderWidth") && frameData.hasOwnProperty("transformation") && frameData.hasOwnProperty("text") && frameData.hasOwnProperty("children") && typeof frameData.shapeType === "string" && isColorValue(frameData.backgroundColor) && typeof frameData.backgroundOpacity === "number" && isColorValue(frameData.borderColor) && typeof frameData.borderOpacity === "number" && typeof frameData.borderStyle === "string" && typeof frameData.borderWidth === "number" && Array.isArray(frameData.children) && validateTransformationData(frameData.transformation) && validateRichTextData(frameData.text);
|
|
51372
|
+
const isValid = frameData.hasOwnProperty("shapeType") && frameData.hasOwnProperty("backgroundColor") && frameData.hasOwnProperty("backgroundOpacity") && frameData.hasOwnProperty("borderColor") && frameData.hasOwnProperty("borderOpacity") && frameData.hasOwnProperty("borderStyle") && frameData.hasOwnProperty("borderWidth") && frameData.hasOwnProperty("transformation") && frameData.hasOwnProperty("text") && (frameData.hasOwnProperty("childIds") || frameData.hasOwnProperty("children")) && typeof frameData.shapeType === "string" && isColorValue(frameData.backgroundColor) && typeof frameData.backgroundOpacity === "number" && isColorValue(frameData.borderColor) && typeof frameData.borderOpacity === "number" && typeof frameData.borderStyle === "string" && typeof frameData.borderWidth === "number" && (Array.isArray(frameData.childIds) || Array.isArray(frameData.children)) && validateTransformationData(frameData.transformation) && validateRichTextData(frameData.text);
|
|
51373
51373
|
return isValid;
|
|
51374
51374
|
}
|
|
51375
51375
|
function validateShapeData(shapeData) {
|
|
@@ -61867,8 +61867,10 @@ class Board {
|
|
|
61867
61867
|
}
|
|
61868
61868
|
}
|
|
61869
61869
|
const itemDataWithChildren = itemData;
|
|
61870
|
-
if ("
|
|
61871
|
-
itemDataWithChildren.
|
|
61870
|
+
if ("childIds" in itemDataWithChildren && itemDataWithChildren.childIds?.length) {
|
|
61871
|
+
itemDataWithChildren.childIds = itemDataWithChildren.childIds.map((childId) => newItemIdMap[childId] || childId);
|
|
61872
|
+
} else if ("children" in itemDataWithChildren && itemDataWithChildren.children?.length) {
|
|
61873
|
+
itemDataWithChildren.children = itemDataWithChildren.children.map((childId) => newItemIdMap[childId] || childId);
|
|
61872
61874
|
}
|
|
61873
61875
|
newMap[newItemId] = itemData;
|
|
61874
61876
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -3624,7 +3624,7 @@ var init_Settings = __esm(() => {
|
|
|
3624
3624
|
measureCtx: undefined,
|
|
3625
3625
|
i18n: instance,
|
|
3626
3626
|
hooks: {
|
|
3627
|
-
beforeMediaUpload: async (...args) =>
|
|
3627
|
+
beforeMediaUpload: async (...args) => true,
|
|
3628
3628
|
beforeMediaRemove: async (...args) => false,
|
|
3629
3629
|
onUploadMediaError: async (...args) => false
|
|
3630
3630
|
},
|
|
@@ -51362,7 +51362,7 @@ function validateFrameData(data) {
|
|
|
51362
51362
|
return false;
|
|
51363
51363
|
}
|
|
51364
51364
|
const frameData = data;
|
|
51365
|
-
const isValid = frameData.hasOwnProperty("shapeType") && frameData.hasOwnProperty("backgroundColor") && frameData.hasOwnProperty("backgroundOpacity") && frameData.hasOwnProperty("borderColor") && frameData.hasOwnProperty("borderOpacity") && frameData.hasOwnProperty("borderStyle") && frameData.hasOwnProperty("borderWidth") && frameData.hasOwnProperty("transformation") && frameData.hasOwnProperty("text") && frameData.hasOwnProperty("children") && typeof frameData.shapeType === "string" && isColorValue(frameData.backgroundColor) && typeof frameData.backgroundOpacity === "number" && isColorValue(frameData.borderColor) && typeof frameData.borderOpacity === "number" && typeof frameData.borderStyle === "string" && typeof frameData.borderWidth === "number" && Array.isArray(frameData.children) && validateTransformationData(frameData.transformation) && validateRichTextData(frameData.text);
|
|
51365
|
+
const isValid = frameData.hasOwnProperty("shapeType") && frameData.hasOwnProperty("backgroundColor") && frameData.hasOwnProperty("backgroundOpacity") && frameData.hasOwnProperty("borderColor") && frameData.hasOwnProperty("borderOpacity") && frameData.hasOwnProperty("borderStyle") && frameData.hasOwnProperty("borderWidth") && frameData.hasOwnProperty("transformation") && frameData.hasOwnProperty("text") && (frameData.hasOwnProperty("childIds") || frameData.hasOwnProperty("children")) && typeof frameData.shapeType === "string" && isColorValue(frameData.backgroundColor) && typeof frameData.backgroundOpacity === "number" && isColorValue(frameData.borderColor) && typeof frameData.borderOpacity === "number" && typeof frameData.borderStyle === "string" && typeof frameData.borderWidth === "number" && (Array.isArray(frameData.childIds) || Array.isArray(frameData.children)) && validateTransformationData(frameData.transformation) && validateRichTextData(frameData.text);
|
|
51366
51366
|
return isValid;
|
|
51367
51367
|
}
|
|
51368
51368
|
function validateShapeData(shapeData) {
|
|
@@ -61860,8 +61860,10 @@ class Board {
|
|
|
61860
61860
|
}
|
|
61861
61861
|
}
|
|
61862
61862
|
const itemDataWithChildren = itemData;
|
|
61863
|
-
if ("
|
|
61864
|
-
itemDataWithChildren.
|
|
61863
|
+
if ("childIds" in itemDataWithChildren && itemDataWithChildren.childIds?.length) {
|
|
61864
|
+
itemDataWithChildren.childIds = itemDataWithChildren.childIds.map((childId) => newItemIdMap[childId] || childId);
|
|
61865
|
+
} else if ("children" in itemDataWithChildren && itemDataWithChildren.children?.length) {
|
|
61866
|
+
itemDataWithChildren.children = itemDataWithChildren.children.map((childId) => newItemIdMap[childId] || childId);
|
|
61865
61867
|
}
|
|
61866
61868
|
newMap[newItemId] = itemData;
|
|
61867
61869
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -3626,7 +3626,7 @@ var init_Settings = __esm(() => {
|
|
|
3626
3626
|
measureCtx: undefined,
|
|
3627
3627
|
i18n: instance,
|
|
3628
3628
|
hooks: {
|
|
3629
|
-
beforeMediaUpload: async (...args) =>
|
|
3629
|
+
beforeMediaUpload: async (...args) => true,
|
|
3630
3630
|
beforeMediaRemove: async (...args) => false,
|
|
3631
3631
|
onUploadMediaError: async (...args) => false
|
|
3632
3632
|
},
|
|
@@ -53771,7 +53771,7 @@ function validateFrameData(data) {
|
|
|
53771
53771
|
return false;
|
|
53772
53772
|
}
|
|
53773
53773
|
const frameData = data;
|
|
53774
|
-
const isValid = frameData.hasOwnProperty("shapeType") && frameData.hasOwnProperty("backgroundColor") && frameData.hasOwnProperty("backgroundOpacity") && frameData.hasOwnProperty("borderColor") && frameData.hasOwnProperty("borderOpacity") && frameData.hasOwnProperty("borderStyle") && frameData.hasOwnProperty("borderWidth") && frameData.hasOwnProperty("transformation") && frameData.hasOwnProperty("text") && frameData.hasOwnProperty("children") && typeof frameData.shapeType === "string" && isColorValue(frameData.backgroundColor) && typeof frameData.backgroundOpacity === "number" && isColorValue(frameData.borderColor) && typeof frameData.borderOpacity === "number" && typeof frameData.borderStyle === "string" && typeof frameData.borderWidth === "number" && Array.isArray(frameData.children) && validateTransformationData(frameData.transformation) && validateRichTextData(frameData.text);
|
|
53774
|
+
const isValid = frameData.hasOwnProperty("shapeType") && frameData.hasOwnProperty("backgroundColor") && frameData.hasOwnProperty("backgroundOpacity") && frameData.hasOwnProperty("borderColor") && frameData.hasOwnProperty("borderOpacity") && frameData.hasOwnProperty("borderStyle") && frameData.hasOwnProperty("borderWidth") && frameData.hasOwnProperty("transformation") && frameData.hasOwnProperty("text") && (frameData.hasOwnProperty("childIds") || frameData.hasOwnProperty("children")) && typeof frameData.shapeType === "string" && isColorValue(frameData.backgroundColor) && typeof frameData.backgroundOpacity === "number" && isColorValue(frameData.borderColor) && typeof frameData.borderOpacity === "number" && typeof frameData.borderStyle === "string" && typeof frameData.borderWidth === "number" && (Array.isArray(frameData.childIds) || Array.isArray(frameData.children)) && validateTransformationData(frameData.transformation) && validateRichTextData(frameData.text);
|
|
53775
53775
|
return isValid;
|
|
53776
53776
|
}
|
|
53777
53777
|
function validateShapeData(shapeData) {
|
|
@@ -64324,8 +64324,10 @@ class Board {
|
|
|
64324
64324
|
}
|
|
64325
64325
|
}
|
|
64326
64326
|
const itemDataWithChildren = itemData;
|
|
64327
|
-
if ("
|
|
64328
|
-
itemDataWithChildren.
|
|
64327
|
+
if ("childIds" in itemDataWithChildren && itemDataWithChildren.childIds?.length) {
|
|
64328
|
+
itemDataWithChildren.childIds = itemDataWithChildren.childIds.map((childId) => newItemIdMap[childId] || childId);
|
|
64329
|
+
} else if ("children" in itemDataWithChildren && itemDataWithChildren.children?.length) {
|
|
64330
|
+
itemDataWithChildren.children = itemDataWithChildren.children.map((childId) => newItemIdMap[childId] || childId);
|
|
64329
64331
|
}
|
|
64330
64332
|
newMap[newItemId] = itemData;
|
|
64331
64333
|
}
|