microboard-temp 0.14.29 → 0.14.30
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 +33 -10
- package/dist/cjs/index.js +33 -10
- package/dist/cjs/node.js +33 -10
- package/dist/cjs/protocol.js +10 -1
- package/dist/esm/browser.js +33 -10
- package/dist/esm/index.js +33 -10
- package/dist/esm/node.js +33 -10
- package/dist/esm/protocol.js +10 -1
- package/dist/types/Events/MessageRouter/socketContract.d.ts +170 -0
- package/dist/types/HTMLAdapter/BoardHTMLAdapter.d.ts +4 -7
- package/dist/types/HTMLAdapter/LegacyBoardHTMLAdapter.d.ts +14 -0
- package/dist/types/HTMLAdapter/codecSchemaRegistry.d.ts +13 -0
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -5256,7 +5256,7 @@ function mergeSetPropertyOperations(opA, opB) {
|
|
|
5256
5256
|
}
|
|
5257
5257
|
return {
|
|
5258
5258
|
...opB,
|
|
5259
|
-
|
|
5259
|
+
prevValues: opA.prevValues
|
|
5260
5260
|
};
|
|
5261
5261
|
}
|
|
5262
5262
|
function mergeBoardOperations(opA, opB) {
|
|
@@ -27715,6 +27715,14 @@ var AudioOperationSchema = exports_external.object({
|
|
|
27715
27715
|
item: StringArraySchema,
|
|
27716
27716
|
url: exports_external.string()
|
|
27717
27717
|
}).passthrough();
|
|
27718
|
+
var ItemSetPropertyOperationSchema = exports_external.object({
|
|
27719
|
+
class: exports_external.literal("Item"),
|
|
27720
|
+
method: exports_external.literal("setProperty"),
|
|
27721
|
+
item: StringArraySchema,
|
|
27722
|
+
property: exports_external.string(),
|
|
27723
|
+
value: exports_external.unknown(),
|
|
27724
|
+
prevValues: exports_external.array(exports_external.unknown())
|
|
27725
|
+
}).passthrough();
|
|
27718
27726
|
var SocketOperationSchema = exports_external.union([
|
|
27719
27727
|
UndoOperationSchema,
|
|
27720
27728
|
RedoOperationSchema,
|
|
@@ -27734,7 +27742,8 @@ var SocketOperationSchema = exports_external.union([
|
|
|
27734
27742
|
...CommentOperationSchemas,
|
|
27735
27743
|
ImageOperationSchema,
|
|
27736
27744
|
VideoOperationSchema,
|
|
27737
|
-
AudioOperationSchema
|
|
27745
|
+
AudioOperationSchema,
|
|
27746
|
+
ItemSetPropertyOperationSchema
|
|
27738
27747
|
]);
|
|
27739
27748
|
var SocketBoardEventBodySchema = exports_external.object({
|
|
27740
27749
|
eventId: exports_external.string(),
|
|
@@ -58961,7 +58970,7 @@ var addShapeToolOverlay = {
|
|
|
58961
58970
|
createsItemType: "Shape",
|
|
58962
58971
|
family: "shape",
|
|
58963
58972
|
icon: {
|
|
58964
|
-
...
|
|
58973
|
+
...symbolIcon("Shape"),
|
|
58965
58974
|
state: {
|
|
58966
58975
|
note: "UI may swap the top-level icon to the selected shape option when desired."
|
|
58967
58976
|
}
|
|
@@ -67131,15 +67140,15 @@ class Keyboard {
|
|
|
67131
67140
|
}
|
|
67132
67141
|
}
|
|
67133
67142
|
|
|
67134
|
-
// src/HTMLAdapter/
|
|
67135
|
-
function
|
|
67143
|
+
// src/HTMLAdapter/LegacyBoardHTMLAdapter.ts
|
|
67144
|
+
function parseLegacyHTML(el) {
|
|
67136
67145
|
const parser = parsersHTML[el.tagName.toLowerCase()];
|
|
67137
67146
|
if (!parser) {
|
|
67138
67147
|
throw new Error(`Unknown element tag: ${el.tagName.toLowerCase()}`);
|
|
67139
67148
|
}
|
|
67140
67149
|
return parser(el);
|
|
67141
67150
|
}
|
|
67142
|
-
function
|
|
67151
|
+
function serializeBoardToLegacyHTML(board) {
|
|
67143
67152
|
const boardName = board.getName() || board.getBoardId();
|
|
67144
67153
|
const items = board.index.items.getWholeHTML(conf.documentFactory);
|
|
67145
67154
|
const itemsDiv = `<div id="items">${items}</div>`;
|
|
@@ -67165,14 +67174,14 @@ function serializeBoardToHTML(board) {
|
|
|
67165
67174
|
</head>`.replace(/\t|\n/g, "");
|
|
67166
67175
|
return `${head}${body}`;
|
|
67167
67176
|
}
|
|
67168
|
-
function
|
|
67177
|
+
function deserializeLegacyHTMLAndEmitToBoard(board, stringedHTML) {
|
|
67169
67178
|
const parser = conf.getDOMParser();
|
|
67170
67179
|
const doc2 = parser.parseFromString(stringedHTML, "text/html");
|
|
67171
67180
|
const items = doc2.body.querySelector("#items");
|
|
67172
67181
|
if (items) {
|
|
67173
67182
|
const idsMap = {};
|
|
67174
67183
|
const addedConnectors = [];
|
|
67175
|
-
const data = Array.from(items.children).map((el) =>
|
|
67184
|
+
const data = Array.from(items.children).map((el) => parseLegacyHTML(el));
|
|
67176
67185
|
for (const parsedData of data) {
|
|
67177
67186
|
if ("childrenMap" in parsedData) {
|
|
67178
67187
|
const frameData = parsedData;
|
|
@@ -67220,14 +67229,14 @@ function deserializeHTMLAndEmitToBoard(board, stringedHTML) {
|
|
|
67220
67229
|
}
|
|
67221
67230
|
return [];
|
|
67222
67231
|
}
|
|
67223
|
-
function
|
|
67232
|
+
function deserializeLegacyHTMLToBoard(board, stringedHTML) {
|
|
67224
67233
|
const parser = conf.getDOMParser();
|
|
67225
67234
|
const doc2 = parser.parseFromString(stringedHTML, "text/html");
|
|
67226
67235
|
const itemsDiv = doc2.body.querySelector("#items");
|
|
67227
67236
|
if (!itemsDiv) {
|
|
67228
67237
|
return;
|
|
67229
67238
|
}
|
|
67230
|
-
const items = Array.from(itemsDiv.children).map((el) =>
|
|
67239
|
+
const items = Array.from(itemsDiv.children).map((el) => parseLegacyHTML(el));
|
|
67231
67240
|
board.index.clear();
|
|
67232
67241
|
const createdConnectors = {};
|
|
67233
67242
|
const createdGroups = {};
|
|
@@ -67268,6 +67277,20 @@ function deserializeHTMLToBoard(board, stringedHTML) {
|
|
|
67268
67277
|
}
|
|
67269
67278
|
}
|
|
67270
67279
|
|
|
67280
|
+
// src/HTMLAdapter/BoardHTMLAdapter.ts
|
|
67281
|
+
function parseHTML(el) {
|
|
67282
|
+
return parseLegacyHTML(el);
|
|
67283
|
+
}
|
|
67284
|
+
function serializeBoardToHTML(board) {
|
|
67285
|
+
return serializeBoardToLegacyHTML(board);
|
|
67286
|
+
}
|
|
67287
|
+
function deserializeHTMLAndEmitToBoard(board, stringedHTML) {
|
|
67288
|
+
return deserializeLegacyHTMLAndEmitToBoard(board, stringedHTML);
|
|
67289
|
+
}
|
|
67290
|
+
function deserializeHTMLToBoard(board, stringedHTML) {
|
|
67291
|
+
deserializeLegacyHTMLToBoard(board, stringedHTML);
|
|
67292
|
+
}
|
|
67293
|
+
|
|
67271
67294
|
// src/Presence/consts.ts
|
|
67272
67295
|
var PRESENCE_COLORS = [
|
|
67273
67296
|
"rgb(71,120,245)",
|
package/dist/cjs/index.js
CHANGED
|
@@ -5256,7 +5256,7 @@ function mergeSetPropertyOperations(opA, opB) {
|
|
|
5256
5256
|
}
|
|
5257
5257
|
return {
|
|
5258
5258
|
...opB,
|
|
5259
|
-
|
|
5259
|
+
prevValues: opA.prevValues
|
|
5260
5260
|
};
|
|
5261
5261
|
}
|
|
5262
5262
|
function mergeBoardOperations(opA, opB) {
|
|
@@ -27715,6 +27715,14 @@ var AudioOperationSchema = exports_external.object({
|
|
|
27715
27715
|
item: StringArraySchema,
|
|
27716
27716
|
url: exports_external.string()
|
|
27717
27717
|
}).passthrough();
|
|
27718
|
+
var ItemSetPropertyOperationSchema = exports_external.object({
|
|
27719
|
+
class: exports_external.literal("Item"),
|
|
27720
|
+
method: exports_external.literal("setProperty"),
|
|
27721
|
+
item: StringArraySchema,
|
|
27722
|
+
property: exports_external.string(),
|
|
27723
|
+
value: exports_external.unknown(),
|
|
27724
|
+
prevValues: exports_external.array(exports_external.unknown())
|
|
27725
|
+
}).passthrough();
|
|
27718
27726
|
var SocketOperationSchema = exports_external.union([
|
|
27719
27727
|
UndoOperationSchema,
|
|
27720
27728
|
RedoOperationSchema,
|
|
@@ -27734,7 +27742,8 @@ var SocketOperationSchema = exports_external.union([
|
|
|
27734
27742
|
...CommentOperationSchemas,
|
|
27735
27743
|
ImageOperationSchema,
|
|
27736
27744
|
VideoOperationSchema,
|
|
27737
|
-
AudioOperationSchema
|
|
27745
|
+
AudioOperationSchema,
|
|
27746
|
+
ItemSetPropertyOperationSchema
|
|
27738
27747
|
]);
|
|
27739
27748
|
var SocketBoardEventBodySchema = exports_external.object({
|
|
27740
27749
|
eventId: exports_external.string(),
|
|
@@ -58961,7 +58970,7 @@ var addShapeToolOverlay = {
|
|
|
58961
58970
|
createsItemType: "Shape",
|
|
58962
58971
|
family: "shape",
|
|
58963
58972
|
icon: {
|
|
58964
|
-
...
|
|
58973
|
+
...symbolIcon("Shape"),
|
|
58965
58974
|
state: {
|
|
58966
58975
|
note: "UI may swap the top-level icon to the selected shape option when desired."
|
|
58967
58976
|
}
|
|
@@ -67131,15 +67140,15 @@ class Keyboard {
|
|
|
67131
67140
|
}
|
|
67132
67141
|
}
|
|
67133
67142
|
|
|
67134
|
-
// src/HTMLAdapter/
|
|
67135
|
-
function
|
|
67143
|
+
// src/HTMLAdapter/LegacyBoardHTMLAdapter.ts
|
|
67144
|
+
function parseLegacyHTML(el) {
|
|
67136
67145
|
const parser = parsersHTML[el.tagName.toLowerCase()];
|
|
67137
67146
|
if (!parser) {
|
|
67138
67147
|
throw new Error(`Unknown element tag: ${el.tagName.toLowerCase()}`);
|
|
67139
67148
|
}
|
|
67140
67149
|
return parser(el);
|
|
67141
67150
|
}
|
|
67142
|
-
function
|
|
67151
|
+
function serializeBoardToLegacyHTML(board) {
|
|
67143
67152
|
const boardName = board.getName() || board.getBoardId();
|
|
67144
67153
|
const items = board.index.items.getWholeHTML(conf.documentFactory);
|
|
67145
67154
|
const itemsDiv = `<div id="items">${items}</div>`;
|
|
@@ -67165,14 +67174,14 @@ function serializeBoardToHTML(board) {
|
|
|
67165
67174
|
</head>`.replace(/\t|\n/g, "");
|
|
67166
67175
|
return `${head}${body}`;
|
|
67167
67176
|
}
|
|
67168
|
-
function
|
|
67177
|
+
function deserializeLegacyHTMLAndEmitToBoard(board, stringedHTML) {
|
|
67169
67178
|
const parser = conf.getDOMParser();
|
|
67170
67179
|
const doc2 = parser.parseFromString(stringedHTML, "text/html");
|
|
67171
67180
|
const items = doc2.body.querySelector("#items");
|
|
67172
67181
|
if (items) {
|
|
67173
67182
|
const idsMap = {};
|
|
67174
67183
|
const addedConnectors = [];
|
|
67175
|
-
const data = Array.from(items.children).map((el) =>
|
|
67184
|
+
const data = Array.from(items.children).map((el) => parseLegacyHTML(el));
|
|
67176
67185
|
for (const parsedData of data) {
|
|
67177
67186
|
if ("childrenMap" in parsedData) {
|
|
67178
67187
|
const frameData = parsedData;
|
|
@@ -67220,14 +67229,14 @@ function deserializeHTMLAndEmitToBoard(board, stringedHTML) {
|
|
|
67220
67229
|
}
|
|
67221
67230
|
return [];
|
|
67222
67231
|
}
|
|
67223
|
-
function
|
|
67232
|
+
function deserializeLegacyHTMLToBoard(board, stringedHTML) {
|
|
67224
67233
|
const parser = conf.getDOMParser();
|
|
67225
67234
|
const doc2 = parser.parseFromString(stringedHTML, "text/html");
|
|
67226
67235
|
const itemsDiv = doc2.body.querySelector("#items");
|
|
67227
67236
|
if (!itemsDiv) {
|
|
67228
67237
|
return;
|
|
67229
67238
|
}
|
|
67230
|
-
const items = Array.from(itemsDiv.children).map((el) =>
|
|
67239
|
+
const items = Array.from(itemsDiv.children).map((el) => parseLegacyHTML(el));
|
|
67231
67240
|
board.index.clear();
|
|
67232
67241
|
const createdConnectors = {};
|
|
67233
67242
|
const createdGroups = {};
|
|
@@ -67268,6 +67277,20 @@ function deserializeHTMLToBoard(board, stringedHTML) {
|
|
|
67268
67277
|
}
|
|
67269
67278
|
}
|
|
67270
67279
|
|
|
67280
|
+
// src/HTMLAdapter/BoardHTMLAdapter.ts
|
|
67281
|
+
function parseHTML(el) {
|
|
67282
|
+
return parseLegacyHTML(el);
|
|
67283
|
+
}
|
|
67284
|
+
function serializeBoardToHTML(board) {
|
|
67285
|
+
return serializeBoardToLegacyHTML(board);
|
|
67286
|
+
}
|
|
67287
|
+
function deserializeHTMLAndEmitToBoard(board, stringedHTML) {
|
|
67288
|
+
return deserializeLegacyHTMLAndEmitToBoard(board, stringedHTML);
|
|
67289
|
+
}
|
|
67290
|
+
function deserializeHTMLToBoard(board, stringedHTML) {
|
|
67291
|
+
deserializeLegacyHTMLToBoard(board, stringedHTML);
|
|
67292
|
+
}
|
|
67293
|
+
|
|
67271
67294
|
// src/Presence/consts.ts
|
|
67272
67295
|
var PRESENCE_COLORS = [
|
|
67273
67296
|
"rgb(71,120,245)",
|
package/dist/cjs/node.js
CHANGED
|
@@ -6293,7 +6293,7 @@ function mergeSetPropertyOperations(opA, opB) {
|
|
|
6293
6293
|
}
|
|
6294
6294
|
return {
|
|
6295
6295
|
...opB,
|
|
6296
|
-
|
|
6296
|
+
prevValues: opA.prevValues
|
|
6297
6297
|
};
|
|
6298
6298
|
}
|
|
6299
6299
|
function mergeBoardOperations(opA, opB) {
|
|
@@ -28751,6 +28751,14 @@ var AudioOperationSchema = exports_external.object({
|
|
|
28751
28751
|
item: StringArraySchema,
|
|
28752
28752
|
url: exports_external.string()
|
|
28753
28753
|
}).passthrough();
|
|
28754
|
+
var ItemSetPropertyOperationSchema = exports_external.object({
|
|
28755
|
+
class: exports_external.literal("Item"),
|
|
28756
|
+
method: exports_external.literal("setProperty"),
|
|
28757
|
+
item: StringArraySchema,
|
|
28758
|
+
property: exports_external.string(),
|
|
28759
|
+
value: exports_external.unknown(),
|
|
28760
|
+
prevValues: exports_external.array(exports_external.unknown())
|
|
28761
|
+
}).passthrough();
|
|
28754
28762
|
var SocketOperationSchema = exports_external.union([
|
|
28755
28763
|
UndoOperationSchema,
|
|
28756
28764
|
RedoOperationSchema,
|
|
@@ -28770,7 +28778,8 @@ var SocketOperationSchema = exports_external.union([
|
|
|
28770
28778
|
...CommentOperationSchemas,
|
|
28771
28779
|
ImageOperationSchema,
|
|
28772
28780
|
VideoOperationSchema,
|
|
28773
|
-
AudioOperationSchema
|
|
28781
|
+
AudioOperationSchema,
|
|
28782
|
+
ItemSetPropertyOperationSchema
|
|
28774
28783
|
]);
|
|
28775
28784
|
var SocketBoardEventBodySchema = exports_external.object({
|
|
28776
28785
|
eventId: exports_external.string(),
|
|
@@ -61434,7 +61443,7 @@ var addShapeToolOverlay = {
|
|
|
61434
61443
|
createsItemType: "Shape",
|
|
61435
61444
|
family: "shape",
|
|
61436
61445
|
icon: {
|
|
61437
|
-
...
|
|
61446
|
+
...symbolIcon("Shape"),
|
|
61438
61447
|
state: {
|
|
61439
61448
|
note: "UI may swap the top-level icon to the selected shape option when desired."
|
|
61440
61449
|
}
|
|
@@ -69604,15 +69613,15 @@ class Keyboard {
|
|
|
69604
69613
|
}
|
|
69605
69614
|
}
|
|
69606
69615
|
|
|
69607
|
-
// src/HTMLAdapter/
|
|
69608
|
-
function
|
|
69616
|
+
// src/HTMLAdapter/LegacyBoardHTMLAdapter.ts
|
|
69617
|
+
function parseLegacyHTML(el) {
|
|
69609
69618
|
const parser = parsersHTML[el.tagName.toLowerCase()];
|
|
69610
69619
|
if (!parser) {
|
|
69611
69620
|
throw new Error(`Unknown element tag: ${el.tagName.toLowerCase()}`);
|
|
69612
69621
|
}
|
|
69613
69622
|
return parser(el);
|
|
69614
69623
|
}
|
|
69615
|
-
function
|
|
69624
|
+
function serializeBoardToLegacyHTML(board) {
|
|
69616
69625
|
const boardName = board.getName() || board.getBoardId();
|
|
69617
69626
|
const items = board.index.items.getWholeHTML(conf.documentFactory);
|
|
69618
69627
|
const itemsDiv = `<div id="items">${items}</div>`;
|
|
@@ -69638,14 +69647,14 @@ function serializeBoardToHTML(board) {
|
|
|
69638
69647
|
</head>`.replace(/\t|\n/g, "");
|
|
69639
69648
|
return `${head}${body}`;
|
|
69640
69649
|
}
|
|
69641
|
-
function
|
|
69650
|
+
function deserializeLegacyHTMLAndEmitToBoard(board, stringedHTML) {
|
|
69642
69651
|
const parser = conf.getDOMParser();
|
|
69643
69652
|
const doc2 = parser.parseFromString(stringedHTML, "text/html");
|
|
69644
69653
|
const items = doc2.body.querySelector("#items");
|
|
69645
69654
|
if (items) {
|
|
69646
69655
|
const idsMap = {};
|
|
69647
69656
|
const addedConnectors = [];
|
|
69648
|
-
const data = Array.from(items.children).map((el) =>
|
|
69657
|
+
const data = Array.from(items.children).map((el) => parseLegacyHTML(el));
|
|
69649
69658
|
for (const parsedData of data) {
|
|
69650
69659
|
if ("childrenMap" in parsedData) {
|
|
69651
69660
|
const frameData = parsedData;
|
|
@@ -69693,14 +69702,14 @@ function deserializeHTMLAndEmitToBoard(board, stringedHTML) {
|
|
|
69693
69702
|
}
|
|
69694
69703
|
return [];
|
|
69695
69704
|
}
|
|
69696
|
-
function
|
|
69705
|
+
function deserializeLegacyHTMLToBoard(board, stringedHTML) {
|
|
69697
69706
|
const parser = conf.getDOMParser();
|
|
69698
69707
|
const doc2 = parser.parseFromString(stringedHTML, "text/html");
|
|
69699
69708
|
const itemsDiv = doc2.body.querySelector("#items");
|
|
69700
69709
|
if (!itemsDiv) {
|
|
69701
69710
|
return;
|
|
69702
69711
|
}
|
|
69703
|
-
const items = Array.from(itemsDiv.children).map((el) =>
|
|
69712
|
+
const items = Array.from(itemsDiv.children).map((el) => parseLegacyHTML(el));
|
|
69704
69713
|
board.index.clear();
|
|
69705
69714
|
const createdConnectors = {};
|
|
69706
69715
|
const createdGroups = {};
|
|
@@ -69741,6 +69750,20 @@ function deserializeHTMLToBoard(board, stringedHTML) {
|
|
|
69741
69750
|
}
|
|
69742
69751
|
}
|
|
69743
69752
|
|
|
69753
|
+
// src/HTMLAdapter/BoardHTMLAdapter.ts
|
|
69754
|
+
function parseHTML(el) {
|
|
69755
|
+
return parseLegacyHTML(el);
|
|
69756
|
+
}
|
|
69757
|
+
function serializeBoardToHTML(board) {
|
|
69758
|
+
return serializeBoardToLegacyHTML(board);
|
|
69759
|
+
}
|
|
69760
|
+
function deserializeHTMLAndEmitToBoard(board, stringedHTML) {
|
|
69761
|
+
return deserializeLegacyHTMLAndEmitToBoard(board, stringedHTML);
|
|
69762
|
+
}
|
|
69763
|
+
function deserializeHTMLToBoard(board, stringedHTML) {
|
|
69764
|
+
deserializeLegacyHTMLToBoard(board, stringedHTML);
|
|
69765
|
+
}
|
|
69766
|
+
|
|
69744
69767
|
// src/Presence/consts.ts
|
|
69745
69768
|
var PRESENCE_COLORS = [
|
|
69746
69769
|
"rgb(71,120,245)",
|
package/dist/cjs/protocol.js
CHANGED
|
@@ -14254,6 +14254,14 @@ var AudioOperationSchema = exports_external.object({
|
|
|
14254
14254
|
item: StringArraySchema,
|
|
14255
14255
|
url: exports_external.string()
|
|
14256
14256
|
}).passthrough();
|
|
14257
|
+
var ItemSetPropertyOperationSchema = exports_external.object({
|
|
14258
|
+
class: exports_external.literal("Item"),
|
|
14259
|
+
method: exports_external.literal("setProperty"),
|
|
14260
|
+
item: StringArraySchema,
|
|
14261
|
+
property: exports_external.string(),
|
|
14262
|
+
value: exports_external.unknown(),
|
|
14263
|
+
prevValues: exports_external.array(exports_external.unknown())
|
|
14264
|
+
}).passthrough();
|
|
14257
14265
|
var SocketOperationSchema = exports_external.union([
|
|
14258
14266
|
UndoOperationSchema,
|
|
14259
14267
|
RedoOperationSchema,
|
|
@@ -14273,7 +14281,8 @@ var SocketOperationSchema = exports_external.union([
|
|
|
14273
14281
|
...CommentOperationSchemas,
|
|
14274
14282
|
ImageOperationSchema,
|
|
14275
14283
|
VideoOperationSchema,
|
|
14276
|
-
AudioOperationSchema
|
|
14284
|
+
AudioOperationSchema,
|
|
14285
|
+
ItemSetPropertyOperationSchema
|
|
14277
14286
|
]);
|
|
14278
14287
|
var SocketBoardEventBodySchema = exports_external.object({
|
|
14279
14288
|
eventId: exports_external.string(),
|
package/dist/esm/browser.js
CHANGED
|
@@ -5030,7 +5030,7 @@ function mergeSetPropertyOperations(opA, opB) {
|
|
|
5030
5030
|
}
|
|
5031
5031
|
return {
|
|
5032
5032
|
...opB,
|
|
5033
|
-
|
|
5033
|
+
prevValues: opA.prevValues
|
|
5034
5034
|
};
|
|
5035
5035
|
}
|
|
5036
5036
|
function mergeBoardOperations(opA, opB) {
|
|
@@ -27489,6 +27489,14 @@ var AudioOperationSchema = exports_external.object({
|
|
|
27489
27489
|
item: StringArraySchema,
|
|
27490
27490
|
url: exports_external.string()
|
|
27491
27491
|
}).passthrough();
|
|
27492
|
+
var ItemSetPropertyOperationSchema = exports_external.object({
|
|
27493
|
+
class: exports_external.literal("Item"),
|
|
27494
|
+
method: exports_external.literal("setProperty"),
|
|
27495
|
+
item: StringArraySchema,
|
|
27496
|
+
property: exports_external.string(),
|
|
27497
|
+
value: exports_external.unknown(),
|
|
27498
|
+
prevValues: exports_external.array(exports_external.unknown())
|
|
27499
|
+
}).passthrough();
|
|
27492
27500
|
var SocketOperationSchema = exports_external.union([
|
|
27493
27501
|
UndoOperationSchema,
|
|
27494
27502
|
RedoOperationSchema,
|
|
@@ -27508,7 +27516,8 @@ var SocketOperationSchema = exports_external.union([
|
|
|
27508
27516
|
...CommentOperationSchemas,
|
|
27509
27517
|
ImageOperationSchema,
|
|
27510
27518
|
VideoOperationSchema,
|
|
27511
|
-
AudioOperationSchema
|
|
27519
|
+
AudioOperationSchema,
|
|
27520
|
+
ItemSetPropertyOperationSchema
|
|
27512
27521
|
]);
|
|
27513
27522
|
var SocketBoardEventBodySchema = exports_external.object({
|
|
27514
27523
|
eventId: exports_external.string(),
|
|
@@ -58743,7 +58752,7 @@ var addShapeToolOverlay = {
|
|
|
58743
58752
|
createsItemType: "Shape",
|
|
58744
58753
|
family: "shape",
|
|
58745
58754
|
icon: {
|
|
58746
|
-
...
|
|
58755
|
+
...symbolIcon("Shape"),
|
|
58747
58756
|
state: {
|
|
58748
58757
|
note: "UI may swap the top-level icon to the selected shape option when desired."
|
|
58749
58758
|
}
|
|
@@ -66913,15 +66922,15 @@ class Keyboard {
|
|
|
66913
66922
|
}
|
|
66914
66923
|
}
|
|
66915
66924
|
|
|
66916
|
-
// src/HTMLAdapter/
|
|
66917
|
-
function
|
|
66925
|
+
// src/HTMLAdapter/LegacyBoardHTMLAdapter.ts
|
|
66926
|
+
function parseLegacyHTML(el) {
|
|
66918
66927
|
const parser = parsersHTML[el.tagName.toLowerCase()];
|
|
66919
66928
|
if (!parser) {
|
|
66920
66929
|
throw new Error(`Unknown element tag: ${el.tagName.toLowerCase()}`);
|
|
66921
66930
|
}
|
|
66922
66931
|
return parser(el);
|
|
66923
66932
|
}
|
|
66924
|
-
function
|
|
66933
|
+
function serializeBoardToLegacyHTML(board) {
|
|
66925
66934
|
const boardName = board.getName() || board.getBoardId();
|
|
66926
66935
|
const items = board.index.items.getWholeHTML(conf.documentFactory);
|
|
66927
66936
|
const itemsDiv = `<div id="items">${items}</div>`;
|
|
@@ -66947,14 +66956,14 @@ function serializeBoardToHTML(board) {
|
|
|
66947
66956
|
</head>`.replace(/\t|\n/g, "");
|
|
66948
66957
|
return `${head}${body}`;
|
|
66949
66958
|
}
|
|
66950
|
-
function
|
|
66959
|
+
function deserializeLegacyHTMLAndEmitToBoard(board, stringedHTML) {
|
|
66951
66960
|
const parser = conf.getDOMParser();
|
|
66952
66961
|
const doc2 = parser.parseFromString(stringedHTML, "text/html");
|
|
66953
66962
|
const items = doc2.body.querySelector("#items");
|
|
66954
66963
|
if (items) {
|
|
66955
66964
|
const idsMap = {};
|
|
66956
66965
|
const addedConnectors = [];
|
|
66957
|
-
const data = Array.from(items.children).map((el) =>
|
|
66966
|
+
const data = Array.from(items.children).map((el) => parseLegacyHTML(el));
|
|
66958
66967
|
for (const parsedData of data) {
|
|
66959
66968
|
if ("childrenMap" in parsedData) {
|
|
66960
66969
|
const frameData = parsedData;
|
|
@@ -67002,14 +67011,14 @@ function deserializeHTMLAndEmitToBoard(board, stringedHTML) {
|
|
|
67002
67011
|
}
|
|
67003
67012
|
return [];
|
|
67004
67013
|
}
|
|
67005
|
-
function
|
|
67014
|
+
function deserializeLegacyHTMLToBoard(board, stringedHTML) {
|
|
67006
67015
|
const parser = conf.getDOMParser();
|
|
67007
67016
|
const doc2 = parser.parseFromString(stringedHTML, "text/html");
|
|
67008
67017
|
const itemsDiv = doc2.body.querySelector("#items");
|
|
67009
67018
|
if (!itemsDiv) {
|
|
67010
67019
|
return;
|
|
67011
67020
|
}
|
|
67012
|
-
const items = Array.from(itemsDiv.children).map((el) =>
|
|
67021
|
+
const items = Array.from(itemsDiv.children).map((el) => parseLegacyHTML(el));
|
|
67013
67022
|
board.index.clear();
|
|
67014
67023
|
const createdConnectors = {};
|
|
67015
67024
|
const createdGroups = {};
|
|
@@ -67050,6 +67059,20 @@ function deserializeHTMLToBoard(board, stringedHTML) {
|
|
|
67050
67059
|
}
|
|
67051
67060
|
}
|
|
67052
67061
|
|
|
67062
|
+
// src/HTMLAdapter/BoardHTMLAdapter.ts
|
|
67063
|
+
function parseHTML(el) {
|
|
67064
|
+
return parseLegacyHTML(el);
|
|
67065
|
+
}
|
|
67066
|
+
function serializeBoardToHTML(board) {
|
|
67067
|
+
return serializeBoardToLegacyHTML(board);
|
|
67068
|
+
}
|
|
67069
|
+
function deserializeHTMLAndEmitToBoard(board, stringedHTML) {
|
|
67070
|
+
return deserializeLegacyHTMLAndEmitToBoard(board, stringedHTML);
|
|
67071
|
+
}
|
|
67072
|
+
function deserializeHTMLToBoard(board, stringedHTML) {
|
|
67073
|
+
deserializeLegacyHTMLToBoard(board, stringedHTML);
|
|
67074
|
+
}
|
|
67075
|
+
|
|
67053
67076
|
// src/Presence/consts.ts
|
|
67054
67077
|
var PRESENCE_COLORS = [
|
|
67055
67078
|
"rgb(71,120,245)",
|
package/dist/esm/index.js
CHANGED
|
@@ -5023,7 +5023,7 @@ function mergeSetPropertyOperations(opA, opB) {
|
|
|
5023
5023
|
}
|
|
5024
5024
|
return {
|
|
5025
5025
|
...opB,
|
|
5026
|
-
|
|
5026
|
+
prevValues: opA.prevValues
|
|
5027
5027
|
};
|
|
5028
5028
|
}
|
|
5029
5029
|
function mergeBoardOperations(opA, opB) {
|
|
@@ -27482,6 +27482,14 @@ var AudioOperationSchema = exports_external.object({
|
|
|
27482
27482
|
item: StringArraySchema,
|
|
27483
27483
|
url: exports_external.string()
|
|
27484
27484
|
}).passthrough();
|
|
27485
|
+
var ItemSetPropertyOperationSchema = exports_external.object({
|
|
27486
|
+
class: exports_external.literal("Item"),
|
|
27487
|
+
method: exports_external.literal("setProperty"),
|
|
27488
|
+
item: StringArraySchema,
|
|
27489
|
+
property: exports_external.string(),
|
|
27490
|
+
value: exports_external.unknown(),
|
|
27491
|
+
prevValues: exports_external.array(exports_external.unknown())
|
|
27492
|
+
}).passthrough();
|
|
27485
27493
|
var SocketOperationSchema = exports_external.union([
|
|
27486
27494
|
UndoOperationSchema,
|
|
27487
27495
|
RedoOperationSchema,
|
|
@@ -27501,7 +27509,8 @@ var SocketOperationSchema = exports_external.union([
|
|
|
27501
27509
|
...CommentOperationSchemas,
|
|
27502
27510
|
ImageOperationSchema,
|
|
27503
27511
|
VideoOperationSchema,
|
|
27504
|
-
AudioOperationSchema
|
|
27512
|
+
AudioOperationSchema,
|
|
27513
|
+
ItemSetPropertyOperationSchema
|
|
27505
27514
|
]);
|
|
27506
27515
|
var SocketBoardEventBodySchema = exports_external.object({
|
|
27507
27516
|
eventId: exports_external.string(),
|
|
@@ -58736,7 +58745,7 @@ var addShapeToolOverlay = {
|
|
|
58736
58745
|
createsItemType: "Shape",
|
|
58737
58746
|
family: "shape",
|
|
58738
58747
|
icon: {
|
|
58739
|
-
...
|
|
58748
|
+
...symbolIcon("Shape"),
|
|
58740
58749
|
state: {
|
|
58741
58750
|
note: "UI may swap the top-level icon to the selected shape option when desired."
|
|
58742
58751
|
}
|
|
@@ -66906,15 +66915,15 @@ class Keyboard {
|
|
|
66906
66915
|
}
|
|
66907
66916
|
}
|
|
66908
66917
|
|
|
66909
|
-
// src/HTMLAdapter/
|
|
66910
|
-
function
|
|
66918
|
+
// src/HTMLAdapter/LegacyBoardHTMLAdapter.ts
|
|
66919
|
+
function parseLegacyHTML(el) {
|
|
66911
66920
|
const parser = parsersHTML[el.tagName.toLowerCase()];
|
|
66912
66921
|
if (!parser) {
|
|
66913
66922
|
throw new Error(`Unknown element tag: ${el.tagName.toLowerCase()}`);
|
|
66914
66923
|
}
|
|
66915
66924
|
return parser(el);
|
|
66916
66925
|
}
|
|
66917
|
-
function
|
|
66926
|
+
function serializeBoardToLegacyHTML(board) {
|
|
66918
66927
|
const boardName = board.getName() || board.getBoardId();
|
|
66919
66928
|
const items = board.index.items.getWholeHTML(conf.documentFactory);
|
|
66920
66929
|
const itemsDiv = `<div id="items">${items}</div>`;
|
|
@@ -66940,14 +66949,14 @@ function serializeBoardToHTML(board) {
|
|
|
66940
66949
|
</head>`.replace(/\t|\n/g, "");
|
|
66941
66950
|
return `${head}${body}`;
|
|
66942
66951
|
}
|
|
66943
|
-
function
|
|
66952
|
+
function deserializeLegacyHTMLAndEmitToBoard(board, stringedHTML) {
|
|
66944
66953
|
const parser = conf.getDOMParser();
|
|
66945
66954
|
const doc2 = parser.parseFromString(stringedHTML, "text/html");
|
|
66946
66955
|
const items = doc2.body.querySelector("#items");
|
|
66947
66956
|
if (items) {
|
|
66948
66957
|
const idsMap = {};
|
|
66949
66958
|
const addedConnectors = [];
|
|
66950
|
-
const data = Array.from(items.children).map((el) =>
|
|
66959
|
+
const data = Array.from(items.children).map((el) => parseLegacyHTML(el));
|
|
66951
66960
|
for (const parsedData of data) {
|
|
66952
66961
|
if ("childrenMap" in parsedData) {
|
|
66953
66962
|
const frameData = parsedData;
|
|
@@ -66995,14 +67004,14 @@ function deserializeHTMLAndEmitToBoard(board, stringedHTML) {
|
|
|
66995
67004
|
}
|
|
66996
67005
|
return [];
|
|
66997
67006
|
}
|
|
66998
|
-
function
|
|
67007
|
+
function deserializeLegacyHTMLToBoard(board, stringedHTML) {
|
|
66999
67008
|
const parser = conf.getDOMParser();
|
|
67000
67009
|
const doc2 = parser.parseFromString(stringedHTML, "text/html");
|
|
67001
67010
|
const itemsDiv = doc2.body.querySelector("#items");
|
|
67002
67011
|
if (!itemsDiv) {
|
|
67003
67012
|
return;
|
|
67004
67013
|
}
|
|
67005
|
-
const items = Array.from(itemsDiv.children).map((el) =>
|
|
67014
|
+
const items = Array.from(itemsDiv.children).map((el) => parseLegacyHTML(el));
|
|
67006
67015
|
board.index.clear();
|
|
67007
67016
|
const createdConnectors = {};
|
|
67008
67017
|
const createdGroups = {};
|
|
@@ -67043,6 +67052,20 @@ function deserializeHTMLToBoard(board, stringedHTML) {
|
|
|
67043
67052
|
}
|
|
67044
67053
|
}
|
|
67045
67054
|
|
|
67055
|
+
// src/HTMLAdapter/BoardHTMLAdapter.ts
|
|
67056
|
+
function parseHTML(el) {
|
|
67057
|
+
return parseLegacyHTML(el);
|
|
67058
|
+
}
|
|
67059
|
+
function serializeBoardToHTML(board) {
|
|
67060
|
+
return serializeBoardToLegacyHTML(board);
|
|
67061
|
+
}
|
|
67062
|
+
function deserializeHTMLAndEmitToBoard(board, stringedHTML) {
|
|
67063
|
+
return deserializeLegacyHTMLAndEmitToBoard(board, stringedHTML);
|
|
67064
|
+
}
|
|
67065
|
+
function deserializeHTMLToBoard(board, stringedHTML) {
|
|
67066
|
+
deserializeLegacyHTMLToBoard(board, stringedHTML);
|
|
67067
|
+
}
|
|
67068
|
+
|
|
67046
67069
|
// src/Presence/consts.ts
|
|
67047
67070
|
var PRESENCE_COLORS = [
|
|
67048
67071
|
"rgb(71,120,245)",
|
package/dist/esm/node.js
CHANGED
|
@@ -5807,7 +5807,7 @@ function mergeSetPropertyOperations(opA, opB) {
|
|
|
5807
5807
|
}
|
|
5808
5808
|
return {
|
|
5809
5809
|
...opB,
|
|
5810
|
-
|
|
5810
|
+
prevValues: opA.prevValues
|
|
5811
5811
|
};
|
|
5812
5812
|
}
|
|
5813
5813
|
function mergeBoardOperations(opA, opB) {
|
|
@@ -28265,6 +28265,14 @@ var AudioOperationSchema = exports_external.object({
|
|
|
28265
28265
|
item: StringArraySchema,
|
|
28266
28266
|
url: exports_external.string()
|
|
28267
28267
|
}).passthrough();
|
|
28268
|
+
var ItemSetPropertyOperationSchema = exports_external.object({
|
|
28269
|
+
class: exports_external.literal("Item"),
|
|
28270
|
+
method: exports_external.literal("setProperty"),
|
|
28271
|
+
item: StringArraySchema,
|
|
28272
|
+
property: exports_external.string(),
|
|
28273
|
+
value: exports_external.unknown(),
|
|
28274
|
+
prevValues: exports_external.array(exports_external.unknown())
|
|
28275
|
+
}).passthrough();
|
|
28268
28276
|
var SocketOperationSchema = exports_external.union([
|
|
28269
28277
|
UndoOperationSchema,
|
|
28270
28278
|
RedoOperationSchema,
|
|
@@ -28284,7 +28292,8 @@ var SocketOperationSchema = exports_external.union([
|
|
|
28284
28292
|
...CommentOperationSchemas,
|
|
28285
28293
|
ImageOperationSchema,
|
|
28286
28294
|
VideoOperationSchema,
|
|
28287
|
-
AudioOperationSchema
|
|
28295
|
+
AudioOperationSchema,
|
|
28296
|
+
ItemSetPropertyOperationSchema
|
|
28288
28297
|
]);
|
|
28289
28298
|
var SocketBoardEventBodySchema = exports_external.object({
|
|
28290
28299
|
eventId: exports_external.string(),
|
|
@@ -61204,7 +61213,7 @@ var addShapeToolOverlay = {
|
|
|
61204
61213
|
createsItemType: "Shape",
|
|
61205
61214
|
family: "shape",
|
|
61206
61215
|
icon: {
|
|
61207
|
-
...
|
|
61216
|
+
...symbolIcon("Shape"),
|
|
61208
61217
|
state: {
|
|
61209
61218
|
note: "UI may swap the top-level icon to the selected shape option when desired."
|
|
61210
61219
|
}
|
|
@@ -69374,15 +69383,15 @@ class Keyboard {
|
|
|
69374
69383
|
}
|
|
69375
69384
|
}
|
|
69376
69385
|
|
|
69377
|
-
// src/HTMLAdapter/
|
|
69378
|
-
function
|
|
69386
|
+
// src/HTMLAdapter/LegacyBoardHTMLAdapter.ts
|
|
69387
|
+
function parseLegacyHTML(el) {
|
|
69379
69388
|
const parser = parsersHTML[el.tagName.toLowerCase()];
|
|
69380
69389
|
if (!parser) {
|
|
69381
69390
|
throw new Error(`Unknown element tag: ${el.tagName.toLowerCase()}`);
|
|
69382
69391
|
}
|
|
69383
69392
|
return parser(el);
|
|
69384
69393
|
}
|
|
69385
|
-
function
|
|
69394
|
+
function serializeBoardToLegacyHTML(board) {
|
|
69386
69395
|
const boardName = board.getName() || board.getBoardId();
|
|
69387
69396
|
const items = board.index.items.getWholeHTML(conf.documentFactory);
|
|
69388
69397
|
const itemsDiv = `<div id="items">${items}</div>`;
|
|
@@ -69408,14 +69417,14 @@ function serializeBoardToHTML(board) {
|
|
|
69408
69417
|
</head>`.replace(/\t|\n/g, "");
|
|
69409
69418
|
return `${head}${body}`;
|
|
69410
69419
|
}
|
|
69411
|
-
function
|
|
69420
|
+
function deserializeLegacyHTMLAndEmitToBoard(board, stringedHTML) {
|
|
69412
69421
|
const parser = conf.getDOMParser();
|
|
69413
69422
|
const doc2 = parser.parseFromString(stringedHTML, "text/html");
|
|
69414
69423
|
const items = doc2.body.querySelector("#items");
|
|
69415
69424
|
if (items) {
|
|
69416
69425
|
const idsMap = {};
|
|
69417
69426
|
const addedConnectors = [];
|
|
69418
|
-
const data = Array.from(items.children).map((el) =>
|
|
69427
|
+
const data = Array.from(items.children).map((el) => parseLegacyHTML(el));
|
|
69419
69428
|
for (const parsedData of data) {
|
|
69420
69429
|
if ("childrenMap" in parsedData) {
|
|
69421
69430
|
const frameData = parsedData;
|
|
@@ -69463,14 +69472,14 @@ function deserializeHTMLAndEmitToBoard(board, stringedHTML) {
|
|
|
69463
69472
|
}
|
|
69464
69473
|
return [];
|
|
69465
69474
|
}
|
|
69466
|
-
function
|
|
69475
|
+
function deserializeLegacyHTMLToBoard(board, stringedHTML) {
|
|
69467
69476
|
const parser = conf.getDOMParser();
|
|
69468
69477
|
const doc2 = parser.parseFromString(stringedHTML, "text/html");
|
|
69469
69478
|
const itemsDiv = doc2.body.querySelector("#items");
|
|
69470
69479
|
if (!itemsDiv) {
|
|
69471
69480
|
return;
|
|
69472
69481
|
}
|
|
69473
|
-
const items = Array.from(itemsDiv.children).map((el) =>
|
|
69482
|
+
const items = Array.from(itemsDiv.children).map((el) => parseLegacyHTML(el));
|
|
69474
69483
|
board.index.clear();
|
|
69475
69484
|
const createdConnectors = {};
|
|
69476
69485
|
const createdGroups = {};
|
|
@@ -69511,6 +69520,20 @@ function deserializeHTMLToBoard(board, stringedHTML) {
|
|
|
69511
69520
|
}
|
|
69512
69521
|
}
|
|
69513
69522
|
|
|
69523
|
+
// src/HTMLAdapter/BoardHTMLAdapter.ts
|
|
69524
|
+
function parseHTML(el) {
|
|
69525
|
+
return parseLegacyHTML(el);
|
|
69526
|
+
}
|
|
69527
|
+
function serializeBoardToHTML(board) {
|
|
69528
|
+
return serializeBoardToLegacyHTML(board);
|
|
69529
|
+
}
|
|
69530
|
+
function deserializeHTMLAndEmitToBoard(board, stringedHTML) {
|
|
69531
|
+
return deserializeLegacyHTMLAndEmitToBoard(board, stringedHTML);
|
|
69532
|
+
}
|
|
69533
|
+
function deserializeHTMLToBoard(board, stringedHTML) {
|
|
69534
|
+
deserializeLegacyHTMLToBoard(board, stringedHTML);
|
|
69535
|
+
}
|
|
69536
|
+
|
|
69514
69537
|
// src/Presence/consts.ts
|
|
69515
69538
|
var PRESENCE_COLORS = [
|
|
69516
69539
|
"rgb(71,120,245)",
|
package/dist/esm/protocol.js
CHANGED
|
@@ -14175,6 +14175,14 @@ var AudioOperationSchema = exports_external.object({
|
|
|
14175
14175
|
item: StringArraySchema,
|
|
14176
14176
|
url: exports_external.string()
|
|
14177
14177
|
}).passthrough();
|
|
14178
|
+
var ItemSetPropertyOperationSchema = exports_external.object({
|
|
14179
|
+
class: exports_external.literal("Item"),
|
|
14180
|
+
method: exports_external.literal("setProperty"),
|
|
14181
|
+
item: StringArraySchema,
|
|
14182
|
+
property: exports_external.string(),
|
|
14183
|
+
value: exports_external.unknown(),
|
|
14184
|
+
prevValues: exports_external.array(exports_external.unknown())
|
|
14185
|
+
}).passthrough();
|
|
14178
14186
|
var SocketOperationSchema = exports_external.union([
|
|
14179
14187
|
UndoOperationSchema,
|
|
14180
14188
|
RedoOperationSchema,
|
|
@@ -14194,7 +14202,8 @@ var SocketOperationSchema = exports_external.union([
|
|
|
14194
14202
|
...CommentOperationSchemas,
|
|
14195
14203
|
ImageOperationSchema,
|
|
14196
14204
|
VideoOperationSchema,
|
|
14197
|
-
AudioOperationSchema
|
|
14205
|
+
AudioOperationSchema,
|
|
14206
|
+
ItemSetPropertyOperationSchema
|
|
14198
14207
|
]);
|
|
14199
14208
|
var SocketBoardEventBodySchema = exports_external.object({
|
|
14200
14209
|
eventId: exports_external.string(),
|
|
@@ -622,6 +622,13 @@ export declare const SocketOperationSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
622
622
|
method: z.ZodLiteral<"setUrl">;
|
|
623
623
|
item: z.ZodArray<z.ZodString>;
|
|
624
624
|
url: z.ZodString;
|
|
625
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
626
|
+
class: z.ZodLiteral<"Item">;
|
|
627
|
+
method: z.ZodLiteral<"setProperty">;
|
|
628
|
+
item: z.ZodArray<z.ZodString>;
|
|
629
|
+
property: z.ZodString;
|
|
630
|
+
value: z.ZodUnknown;
|
|
631
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
625
632
|
}, z.core.$loose>]>;
|
|
626
633
|
export declare const SocketBoardEventBodySchema: z.ZodObject<{
|
|
627
634
|
eventId: z.ZodString;
|
|
@@ -1248,6 +1255,13 @@ export declare const SocketBoardEventBodySchema: z.ZodObject<{
|
|
|
1248
1255
|
method: z.ZodLiteral<"setUrl">;
|
|
1249
1256
|
item: z.ZodArray<z.ZodString>;
|
|
1250
1257
|
url: z.ZodString;
|
|
1258
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1259
|
+
class: z.ZodLiteral<"Item">;
|
|
1260
|
+
method: z.ZodLiteral<"setProperty">;
|
|
1261
|
+
item: z.ZodArray<z.ZodString>;
|
|
1262
|
+
property: z.ZodString;
|
|
1263
|
+
value: z.ZodUnknown;
|
|
1264
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
1251
1265
|
}, z.core.$loose>]>;
|
|
1252
1266
|
}, z.core.$loose>;
|
|
1253
1267
|
export declare const SocketBoardEventPackBodySchema: z.ZodObject<{
|
|
@@ -1875,6 +1889,13 @@ export declare const SocketBoardEventPackBodySchema: z.ZodObject<{
|
|
|
1875
1889
|
method: z.ZodLiteral<"setUrl">;
|
|
1876
1890
|
item: z.ZodArray<z.ZodString>;
|
|
1877
1891
|
url: z.ZodString;
|
|
1892
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1893
|
+
class: z.ZodLiteral<"Item">;
|
|
1894
|
+
method: z.ZodLiteral<"setProperty">;
|
|
1895
|
+
item: z.ZodArray<z.ZodString>;
|
|
1896
|
+
property: z.ZodString;
|
|
1897
|
+
value: z.ZodUnknown;
|
|
1898
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
1878
1899
|
}, z.core.$loose>]>>;
|
|
1879
1900
|
}, z.core.$loose>;
|
|
1880
1901
|
export declare const SocketBoardEventSchema: z.ZodObject<{
|
|
@@ -2504,6 +2525,13 @@ export declare const SocketBoardEventSchema: z.ZodObject<{
|
|
|
2504
2525
|
method: z.ZodLiteral<"setUrl">;
|
|
2505
2526
|
item: z.ZodArray<z.ZodString>;
|
|
2506
2527
|
url: z.ZodString;
|
|
2528
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2529
|
+
class: z.ZodLiteral<"Item">;
|
|
2530
|
+
method: z.ZodLiteral<"setProperty">;
|
|
2531
|
+
item: z.ZodArray<z.ZodString>;
|
|
2532
|
+
property: z.ZodString;
|
|
2533
|
+
value: z.ZodUnknown;
|
|
2534
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
2507
2535
|
}, z.core.$loose>]>;
|
|
2508
2536
|
}, z.core.$loose>;
|
|
2509
2537
|
}, z.core.$loose>;
|
|
@@ -3134,6 +3162,13 @@ export declare const SocketBoardEventPackSchema: z.ZodObject<{
|
|
|
3134
3162
|
method: z.ZodLiteral<"setUrl">;
|
|
3135
3163
|
item: z.ZodArray<z.ZodString>;
|
|
3136
3164
|
url: z.ZodString;
|
|
3165
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3166
|
+
class: z.ZodLiteral<"Item">;
|
|
3167
|
+
method: z.ZodLiteral<"setProperty">;
|
|
3168
|
+
item: z.ZodArray<z.ZodString>;
|
|
3169
|
+
property: z.ZodString;
|
|
3170
|
+
value: z.ZodUnknown;
|
|
3171
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
3137
3172
|
}, z.core.$loose>]>>;
|
|
3138
3173
|
}, z.core.$loose>;
|
|
3139
3174
|
}, z.core.$loose>;
|
|
@@ -3765,6 +3800,13 @@ export declare const SocketSyncBoardEventSchema: z.ZodObject<{
|
|
|
3765
3800
|
method: z.ZodLiteral<"setUrl">;
|
|
3766
3801
|
item: z.ZodArray<z.ZodString>;
|
|
3767
3802
|
url: z.ZodString;
|
|
3803
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3804
|
+
class: z.ZodLiteral<"Item">;
|
|
3805
|
+
method: z.ZodLiteral<"setProperty">;
|
|
3806
|
+
item: z.ZodArray<z.ZodString>;
|
|
3807
|
+
property: z.ZodString;
|
|
3808
|
+
value: z.ZodUnknown;
|
|
3809
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
3768
3810
|
}, z.core.$loose>]>;
|
|
3769
3811
|
}, z.core.$loose>;
|
|
3770
3812
|
}, z.core.$loose>;
|
|
@@ -4395,6 +4437,13 @@ export declare const SocketSyncBoardEventPackSchema: z.ZodObject<{
|
|
|
4395
4437
|
method: z.ZodLiteral<"setUrl">;
|
|
4396
4438
|
item: z.ZodArray<z.ZodString>;
|
|
4397
4439
|
url: z.ZodString;
|
|
4440
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
4441
|
+
class: z.ZodLiteral<"Item">;
|
|
4442
|
+
method: z.ZodLiteral<"setProperty">;
|
|
4443
|
+
item: z.ZodArray<z.ZodString>;
|
|
4444
|
+
property: z.ZodString;
|
|
4445
|
+
value: z.ZodUnknown;
|
|
4446
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
4398
4447
|
}, z.core.$loose>]>>;
|
|
4399
4448
|
lastKnownOrder: z.ZodNumber;
|
|
4400
4449
|
}, z.core.$loose>;
|
|
@@ -5027,6 +5076,13 @@ export declare const SocketSyncEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
5027
5076
|
method: z.ZodLiteral<"setUrl">;
|
|
5028
5077
|
item: z.ZodArray<z.ZodString>;
|
|
5029
5078
|
url: z.ZodString;
|
|
5079
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
5080
|
+
class: z.ZodLiteral<"Item">;
|
|
5081
|
+
method: z.ZodLiteral<"setProperty">;
|
|
5082
|
+
item: z.ZodArray<z.ZodString>;
|
|
5083
|
+
property: z.ZodString;
|
|
5084
|
+
value: z.ZodUnknown;
|
|
5085
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
5030
5086
|
}, z.core.$loose>]>;
|
|
5031
5087
|
}, z.core.$loose>;
|
|
5032
5088
|
}, z.core.$loose>, z.ZodObject<{
|
|
@@ -5656,6 +5712,13 @@ export declare const SocketSyncEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
5656
5712
|
method: z.ZodLiteral<"setUrl">;
|
|
5657
5713
|
item: z.ZodArray<z.ZodString>;
|
|
5658
5714
|
url: z.ZodString;
|
|
5715
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
5716
|
+
class: z.ZodLiteral<"Item">;
|
|
5717
|
+
method: z.ZodLiteral<"setProperty">;
|
|
5718
|
+
item: z.ZodArray<z.ZodString>;
|
|
5719
|
+
property: z.ZodString;
|
|
5720
|
+
value: z.ZodUnknown;
|
|
5721
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
5659
5722
|
}, z.core.$loose>]>>;
|
|
5660
5723
|
lastKnownOrder: z.ZodNumber;
|
|
5661
5724
|
}, z.core.$loose>;
|
|
@@ -6475,6 +6538,13 @@ export declare const SocketBoardSnapshotSchema: z.ZodObject<{
|
|
|
6475
6538
|
method: z.ZodLiteral<"setUrl">;
|
|
6476
6539
|
item: z.ZodArray<z.ZodString>;
|
|
6477
6540
|
url: z.ZodString;
|
|
6541
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
6542
|
+
class: z.ZodLiteral<"Item">;
|
|
6543
|
+
method: z.ZodLiteral<"setProperty">;
|
|
6544
|
+
item: z.ZodArray<z.ZodString>;
|
|
6545
|
+
property: z.ZodString;
|
|
6546
|
+
value: z.ZodUnknown;
|
|
6547
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
6478
6548
|
}, z.core.$loose>]>;
|
|
6479
6549
|
}, z.core.$loose>;
|
|
6480
6550
|
}, z.core.$loose>>;
|
|
@@ -7110,6 +7180,13 @@ export declare const NormalizedBoardSnapshotSchema: z.ZodObject<{
|
|
|
7110
7180
|
method: z.ZodLiteral<"setUrl">;
|
|
7111
7181
|
item: z.ZodArray<z.ZodString>;
|
|
7112
7182
|
url: z.ZodString;
|
|
7183
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
7184
|
+
class: z.ZodLiteral<"Item">;
|
|
7185
|
+
method: z.ZodLiteral<"setProperty">;
|
|
7186
|
+
item: z.ZodArray<z.ZodString>;
|
|
7187
|
+
property: z.ZodString;
|
|
7188
|
+
value: z.ZodUnknown;
|
|
7189
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
7113
7190
|
}, z.core.$loose>]>;
|
|
7114
7191
|
}, z.core.$loose>;
|
|
7115
7192
|
}, z.core.$loose>, z.ZodObject<{
|
|
@@ -7739,6 +7816,13 @@ export declare const NormalizedBoardSnapshotSchema: z.ZodObject<{
|
|
|
7739
7816
|
method: z.ZodLiteral<"setUrl">;
|
|
7740
7817
|
item: z.ZodArray<z.ZodString>;
|
|
7741
7818
|
url: z.ZodString;
|
|
7819
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
7820
|
+
class: z.ZodLiteral<"Item">;
|
|
7821
|
+
method: z.ZodLiteral<"setProperty">;
|
|
7822
|
+
item: z.ZodArray<z.ZodString>;
|
|
7823
|
+
property: z.ZodString;
|
|
7824
|
+
value: z.ZodUnknown;
|
|
7825
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
7742
7826
|
}, z.core.$loose>]>>;
|
|
7743
7827
|
lastKnownOrder: z.ZodNumber;
|
|
7744
7828
|
}, z.core.$loose>;
|
|
@@ -8446,6 +8530,13 @@ export declare const NormalizedBoardSubscriptionCompletedMsgSchema: z.ZodObject<
|
|
|
8446
8530
|
method: z.ZodLiteral<"setUrl">;
|
|
8447
8531
|
item: z.ZodArray<z.ZodString>;
|
|
8448
8532
|
url: z.ZodString;
|
|
8533
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
8534
|
+
class: z.ZodLiteral<"Item">;
|
|
8535
|
+
method: z.ZodLiteral<"setProperty">;
|
|
8536
|
+
item: z.ZodArray<z.ZodString>;
|
|
8537
|
+
property: z.ZodString;
|
|
8538
|
+
value: z.ZodUnknown;
|
|
8539
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
8449
8540
|
}, z.core.$loose>]>;
|
|
8450
8541
|
}, z.core.$loose>;
|
|
8451
8542
|
}, z.core.$loose>, z.ZodObject<{
|
|
@@ -9075,6 +9166,13 @@ export declare const NormalizedBoardSubscriptionCompletedMsgSchema: z.ZodObject<
|
|
|
9075
9166
|
method: z.ZodLiteral<"setUrl">;
|
|
9076
9167
|
item: z.ZodArray<z.ZodString>;
|
|
9077
9168
|
url: z.ZodString;
|
|
9169
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
9170
|
+
class: z.ZodLiteral<"Item">;
|
|
9171
|
+
method: z.ZodLiteral<"setProperty">;
|
|
9172
|
+
item: z.ZodArray<z.ZodString>;
|
|
9173
|
+
property: z.ZodString;
|
|
9174
|
+
value: z.ZodUnknown;
|
|
9175
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
9078
9176
|
}, z.core.$loose>]>>;
|
|
9079
9177
|
lastKnownOrder: z.ZodNumber;
|
|
9080
9178
|
}, z.core.$loose>;
|
|
@@ -9709,6 +9807,13 @@ export declare const NormalizedBoardSubscriptionCompletedMsgSchema: z.ZodObject<
|
|
|
9709
9807
|
method: z.ZodLiteral<"setUrl">;
|
|
9710
9808
|
item: z.ZodArray<z.ZodString>;
|
|
9711
9809
|
url: z.ZodString;
|
|
9810
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
9811
|
+
class: z.ZodLiteral<"Item">;
|
|
9812
|
+
method: z.ZodLiteral<"setProperty">;
|
|
9813
|
+
item: z.ZodArray<z.ZodString>;
|
|
9814
|
+
property: z.ZodString;
|
|
9815
|
+
value: z.ZodUnknown;
|
|
9816
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
9712
9817
|
}, z.core.$loose>]>;
|
|
9713
9818
|
}, z.core.$loose>;
|
|
9714
9819
|
}, z.core.$loose>, z.ZodObject<{
|
|
@@ -10338,6 +10443,13 @@ export declare const NormalizedBoardSubscriptionCompletedMsgSchema: z.ZodObject<
|
|
|
10338
10443
|
method: z.ZodLiteral<"setUrl">;
|
|
10339
10444
|
item: z.ZodArray<z.ZodString>;
|
|
10340
10445
|
url: z.ZodString;
|
|
10446
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
10447
|
+
class: z.ZodLiteral<"Item">;
|
|
10448
|
+
method: z.ZodLiteral<"setProperty">;
|
|
10449
|
+
item: z.ZodArray<z.ZodString>;
|
|
10450
|
+
property: z.ZodString;
|
|
10451
|
+
value: z.ZodUnknown;
|
|
10452
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
10341
10453
|
}, z.core.$loose>]>>;
|
|
10342
10454
|
lastKnownOrder: z.ZodNumber;
|
|
10343
10455
|
}, z.core.$loose>;
|
|
@@ -11057,6 +11169,13 @@ export declare const BoardEventMsgSchema: z.ZodObject<{
|
|
|
11057
11169
|
method: z.ZodLiteral<"setUrl">;
|
|
11058
11170
|
item: z.ZodArray<z.ZodString>;
|
|
11059
11171
|
url: z.ZodString;
|
|
11172
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11173
|
+
class: z.ZodLiteral<"Item">;
|
|
11174
|
+
method: z.ZodLiteral<"setProperty">;
|
|
11175
|
+
item: z.ZodArray<z.ZodString>;
|
|
11176
|
+
property: z.ZodString;
|
|
11177
|
+
value: z.ZodUnknown;
|
|
11178
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
11060
11179
|
}, z.core.$loose>]>;
|
|
11061
11180
|
}, z.core.$loose>;
|
|
11062
11181
|
}, z.core.$loose>, z.ZodObject<{
|
|
@@ -11686,6 +11805,13 @@ export declare const BoardEventMsgSchema: z.ZodObject<{
|
|
|
11686
11805
|
method: z.ZodLiteral<"setUrl">;
|
|
11687
11806
|
item: z.ZodArray<z.ZodString>;
|
|
11688
11807
|
url: z.ZodString;
|
|
11808
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
11809
|
+
class: z.ZodLiteral<"Item">;
|
|
11810
|
+
method: z.ZodLiteral<"setProperty">;
|
|
11811
|
+
item: z.ZodArray<z.ZodString>;
|
|
11812
|
+
property: z.ZodString;
|
|
11813
|
+
value: z.ZodUnknown;
|
|
11814
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
11689
11815
|
}, z.core.$loose>]>>;
|
|
11690
11816
|
lastKnownOrder: z.ZodNumber;
|
|
11691
11817
|
}, z.core.$loose>;
|
|
@@ -12423,6 +12549,13 @@ export declare const EventsMsgSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
12423
12549
|
method: z.ZodLiteral<"setUrl">;
|
|
12424
12550
|
item: z.ZodArray<z.ZodString>;
|
|
12425
12551
|
url: z.ZodString;
|
|
12552
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
12553
|
+
class: z.ZodLiteral<"Item">;
|
|
12554
|
+
method: z.ZodLiteral<"setProperty">;
|
|
12555
|
+
item: z.ZodArray<z.ZodString>;
|
|
12556
|
+
property: z.ZodString;
|
|
12557
|
+
value: z.ZodUnknown;
|
|
12558
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
12426
12559
|
}, z.core.$loose>]>;
|
|
12427
12560
|
}, z.core.$loose>;
|
|
12428
12561
|
}, z.core.$loose>, z.ZodObject<{
|
|
@@ -13052,6 +13185,13 @@ export declare const EventsMsgSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
13052
13185
|
method: z.ZodLiteral<"setUrl">;
|
|
13053
13186
|
item: z.ZodArray<z.ZodString>;
|
|
13054
13187
|
url: z.ZodString;
|
|
13188
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
13189
|
+
class: z.ZodLiteral<"Item">;
|
|
13190
|
+
method: z.ZodLiteral<"setProperty">;
|
|
13191
|
+
item: z.ZodArray<z.ZodString>;
|
|
13192
|
+
property: z.ZodString;
|
|
13193
|
+
value: z.ZodUnknown;
|
|
13194
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
13055
13195
|
}, z.core.$loose>]>>;
|
|
13056
13196
|
lastKnownOrder: z.ZodNumber;
|
|
13057
13197
|
}, z.core.$loose>;
|
|
@@ -13866,6 +14006,13 @@ export declare const SocketMsgSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [
|
|
|
13866
14006
|
method: z.ZodLiteral<"setUrl">;
|
|
13867
14007
|
item: z.ZodArray<z.ZodString>;
|
|
13868
14008
|
url: z.ZodString;
|
|
14009
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
14010
|
+
class: z.ZodLiteral<"Item">;
|
|
14011
|
+
method: z.ZodLiteral<"setProperty">;
|
|
14012
|
+
item: z.ZodArray<z.ZodString>;
|
|
14013
|
+
property: z.ZodString;
|
|
14014
|
+
value: z.ZodUnknown;
|
|
14015
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
13869
14016
|
}, z.core.$loose>]>;
|
|
13870
14017
|
}, z.core.$loose>;
|
|
13871
14018
|
}, z.core.$loose>, z.ZodObject<{
|
|
@@ -14495,6 +14642,13 @@ export declare const SocketMsgSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [
|
|
|
14495
14642
|
method: z.ZodLiteral<"setUrl">;
|
|
14496
14643
|
item: z.ZodArray<z.ZodString>;
|
|
14497
14644
|
url: z.ZodString;
|
|
14645
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
14646
|
+
class: z.ZodLiteral<"Item">;
|
|
14647
|
+
method: z.ZodLiteral<"setProperty">;
|
|
14648
|
+
item: z.ZodArray<z.ZodString>;
|
|
14649
|
+
property: z.ZodString;
|
|
14650
|
+
value: z.ZodUnknown;
|
|
14651
|
+
prevValues: z.ZodArray<z.ZodUnknown>;
|
|
14498
14652
|
}, z.core.$loose>]>>;
|
|
14499
14653
|
lastKnownOrder: z.ZodNumber;
|
|
14500
14654
|
}, z.core.$loose>;
|
|
@@ -15605,6 +15759,14 @@ export declare function safeParseSocketMsg(data: unknown): z.ZodSafeParseResult<
|
|
|
15605
15759
|
method: "setUrl";
|
|
15606
15760
|
item: string[];
|
|
15607
15761
|
url: string;
|
|
15762
|
+
} | {
|
|
15763
|
+
[x: string]: unknown;
|
|
15764
|
+
class: "Item";
|
|
15765
|
+
method: "setProperty";
|
|
15766
|
+
item: string[];
|
|
15767
|
+
property: string;
|
|
15768
|
+
value: unknown;
|
|
15769
|
+
prevValues: unknown[];
|
|
15608
15770
|
};
|
|
15609
15771
|
userId?: string | number | undefined;
|
|
15610
15772
|
authorUserId?: string | undefined;
|
|
@@ -16321,6 +16483,14 @@ export declare function safeParseSocketMsg(data: unknown): z.ZodSafeParseResult<
|
|
|
16321
16483
|
method: "setUrl";
|
|
16322
16484
|
item: string[];
|
|
16323
16485
|
url: string;
|
|
16486
|
+
} | {
|
|
16487
|
+
[x: string]: unknown;
|
|
16488
|
+
class: "Item";
|
|
16489
|
+
method: "setProperty";
|
|
16490
|
+
item: string[];
|
|
16491
|
+
property: string;
|
|
16492
|
+
value: unknown;
|
|
16493
|
+
prevValues: unknown[];
|
|
16324
16494
|
})[];
|
|
16325
16495
|
lastKnownOrder: number;
|
|
16326
16496
|
userId?: string | number | undefined;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { Board } from "../Board";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
export declare function parseHTML(el: HTMLElement): ItemDataWithId | {
|
|
5
|
-
data: BaseItemData & {
|
|
1
|
+
import type { Board } from "../Board";
|
|
2
|
+
export declare function parseHTML(el: HTMLElement): import("../Items/Item").ItemDataWithId | {
|
|
3
|
+
data: import("..").BaseItemData & {
|
|
6
4
|
id: string;
|
|
7
5
|
};
|
|
8
6
|
childrenMap: {
|
|
9
|
-
[id: string]: ItemDataWithId;
|
|
7
|
+
[id: string]: import("../Items/Item").ItemDataWithId;
|
|
10
8
|
};
|
|
11
9
|
};
|
|
12
10
|
export declare function serializeBoardToHTML(board: Board): string;
|
|
13
|
-
/** @returns ids of added items */
|
|
14
11
|
export declare function deserializeHTMLAndEmitToBoard(board: Board, stringedHTML: string): string[];
|
|
15
12
|
export declare function deserializeHTMLToBoard(board: Board, stringedHTML: string): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Board } from "../Board";
|
|
2
|
+
import { BaseItemData } from "../Items/BaseItem/BaseItem";
|
|
3
|
+
import { ItemDataWithId } from "../Items/Item";
|
|
4
|
+
export declare function parseLegacyHTML(el: HTMLElement): ItemDataWithId | {
|
|
5
|
+
data: BaseItemData & {
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
childrenMap: {
|
|
9
|
+
[id: string]: ItemDataWithId;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare function serializeBoardToLegacyHTML(board: Board): string;
|
|
13
|
+
export declare function deserializeLegacyHTMLAndEmitToBoard(board: Board, stringedHTML: string): string[];
|
|
14
|
+
export declare function deserializeLegacyHTMLToBoard(board: Board, stringedHTML: string): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type CodecScalarType = "string" | "number" | "boolean" | "string[]" | "number[]" | "boolean[]" | "number[][]" | "json";
|
|
2
|
+
type ComponentSchema = {
|
|
3
|
+
type: string;
|
|
4
|
+
properties: Record<string, {
|
|
5
|
+
type: CodecScalarType;
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
8
|
+
type SchemaRegistry = Record<string, ComponentSchema>;
|
|
9
|
+
export declare const BOARD_DOCUMENT_TAG = "microboard-document";
|
|
10
|
+
export declare function buildBoardHtmlSchemaRegistry(): SchemaRegistry;
|
|
11
|
+
export declare function itemTypeToHtmlTag(itemType: string): string;
|
|
12
|
+
export declare function htmlTagToItemType(tagName: string): string | undefined;
|
|
13
|
+
export {};
|