microboard-temp 0.13.78 → 0.13.79
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 +1 -29
- package/dist/cjs/index.js +1 -29
- package/dist/cjs/node.js +1 -29
- package/dist/cjs/protocol.js +0 -16
- package/dist/esm/browser.js +1 -29
- package/dist/esm/index.js +1 -29
- package/dist/esm/node.js +1 -29
- package/dist/esm/protocol.js +0 -16
- package/dist/types/Events/MessageRouter/boardMessageInterface.d.ts +1 -3
- package/dist/types/Events/MessageRouter/socketContract.d.ts +0 -13
- package/dist/types/Settings.d.ts +0 -24
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -3827,24 +3827,6 @@ var init_Settings = __esm(() => {
|
|
|
3827
3827
|
HIGHLIGHTER_DEFAULT_COLOR: "rgba(0, 158, 41, 0.5)",
|
|
3828
3828
|
ERASER_DEFAULT_COLOR: "rgba(222, 224, 227, 0.5)",
|
|
3829
3829
|
ERASER_MAX_LINE_LENGTH: 12,
|
|
3830
|
-
TEMPLATE_CATEGORIES: [
|
|
3831
|
-
"Research & Analysis",
|
|
3832
|
-
"Diagramming",
|
|
3833
|
-
"Meeting & Workshop",
|
|
3834
|
-
"Strategy & Planning",
|
|
3835
|
-
"Brainstorming",
|
|
3836
|
-
"Agile Workflow",
|
|
3837
|
-
"Icebreaker & Game",
|
|
3838
|
-
"Education"
|
|
3839
|
-
],
|
|
3840
|
-
TEMPLATE_LANGUAGES: [
|
|
3841
|
-
{ value: "ru", label: "Russian" },
|
|
3842
|
-
{ value: "en", label: "English" },
|
|
3843
|
-
{ value: "de", label: "German" },
|
|
3844
|
-
{ value: "es", label: "Spanish" },
|
|
3845
|
-
{ value: "fr", label: "French" },
|
|
3846
|
-
{ value: "zh", label: "Chinese" }
|
|
3847
|
-
],
|
|
3848
3830
|
CANVAS_BG_COLOR: "#f6f6f6",
|
|
3849
3831
|
URL_REGEX: /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i,
|
|
3850
3832
|
AI_NODE_DEFAULT_NODE_WIDTH: 640,
|
|
@@ -28357,7 +28339,7 @@ function normalizeBoardSubscriptionCompletedMsg(data) {
|
|
|
28357
28339
|
eventsSinceLastSnapshot: exports_external.array(SocketSyncEventSchema).parse(parsed.eventsSinceLastSnapshot)
|
|
28358
28340
|
});
|
|
28359
28341
|
}
|
|
28360
|
-
var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema,
|
|
28342
|
+
var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema, BoardConnectResponseSchema;
|
|
28361
28343
|
var init_socketContract = __esm(() => {
|
|
28362
28344
|
init_zod();
|
|
28363
28345
|
StringOrNumberSchema = exports_external.union([exports_external.string(), exports_external.number()]);
|
|
@@ -29346,11 +29328,6 @@ var init_socketContract = __esm(() => {
|
|
|
29346
29328
|
accessMode: exports_external.enum(accessModeValues),
|
|
29347
29329
|
isWsToken: exports_external.literal(true)
|
|
29348
29330
|
}).strict();
|
|
29349
|
-
TemplateWsHandshakeJwtPayloadSchema = exports_external.object({
|
|
29350
|
-
templateId: exports_external.string(),
|
|
29351
|
-
connectionType: exports_external.literal("template"),
|
|
29352
|
-
isWsToken: exports_external.literal(true)
|
|
29353
|
-
}).strict();
|
|
29354
29331
|
BoardConnectResponseSchema = exports_external.object({
|
|
29355
29332
|
wsUrl: exports_external.string(),
|
|
29356
29333
|
jwt: exports_external.string(),
|
|
@@ -29358,11 +29335,6 @@ var init_socketContract = __esm(() => {
|
|
|
29358
29335
|
sessionId: exports_external.string(),
|
|
29359
29336
|
accessMode: exports_external.enum(accessModeValues)
|
|
29360
29337
|
}).strict();
|
|
29361
|
-
TemplateConnectResponseSchema = exports_external.object({
|
|
29362
|
-
wsUrl: exports_external.string(),
|
|
29363
|
-
jwt: exports_external.string(),
|
|
29364
|
-
userId: exports_external.string()
|
|
29365
|
-
}).strict();
|
|
29366
29338
|
});
|
|
29367
29339
|
|
|
29368
29340
|
// src/Events/MessageRouter/createMessageRouter.ts
|
package/dist/cjs/index.js
CHANGED
|
@@ -3827,24 +3827,6 @@ var init_Settings = __esm(() => {
|
|
|
3827
3827
|
HIGHLIGHTER_DEFAULT_COLOR: "rgba(0, 158, 41, 0.5)",
|
|
3828
3828
|
ERASER_DEFAULT_COLOR: "rgba(222, 224, 227, 0.5)",
|
|
3829
3829
|
ERASER_MAX_LINE_LENGTH: 12,
|
|
3830
|
-
TEMPLATE_CATEGORIES: [
|
|
3831
|
-
"Research & Analysis",
|
|
3832
|
-
"Diagramming",
|
|
3833
|
-
"Meeting & Workshop",
|
|
3834
|
-
"Strategy & Planning",
|
|
3835
|
-
"Brainstorming",
|
|
3836
|
-
"Agile Workflow",
|
|
3837
|
-
"Icebreaker & Game",
|
|
3838
|
-
"Education"
|
|
3839
|
-
],
|
|
3840
|
-
TEMPLATE_LANGUAGES: [
|
|
3841
|
-
{ value: "ru", label: "Russian" },
|
|
3842
|
-
{ value: "en", label: "English" },
|
|
3843
|
-
{ value: "de", label: "German" },
|
|
3844
|
-
{ value: "es", label: "Spanish" },
|
|
3845
|
-
{ value: "fr", label: "French" },
|
|
3846
|
-
{ value: "zh", label: "Chinese" }
|
|
3847
|
-
],
|
|
3848
3830
|
CANVAS_BG_COLOR: "#f6f6f6",
|
|
3849
3831
|
URL_REGEX: /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i,
|
|
3850
3832
|
AI_NODE_DEFAULT_NODE_WIDTH: 640,
|
|
@@ -28357,7 +28339,7 @@ function normalizeBoardSubscriptionCompletedMsg(data) {
|
|
|
28357
28339
|
eventsSinceLastSnapshot: exports_external.array(SocketSyncEventSchema).parse(parsed.eventsSinceLastSnapshot)
|
|
28358
28340
|
});
|
|
28359
28341
|
}
|
|
28360
|
-
var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema,
|
|
28342
|
+
var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema, BoardConnectResponseSchema;
|
|
28361
28343
|
var init_socketContract = __esm(() => {
|
|
28362
28344
|
init_zod();
|
|
28363
28345
|
StringOrNumberSchema = exports_external.union([exports_external.string(), exports_external.number()]);
|
|
@@ -29346,11 +29328,6 @@ var init_socketContract = __esm(() => {
|
|
|
29346
29328
|
accessMode: exports_external.enum(accessModeValues),
|
|
29347
29329
|
isWsToken: exports_external.literal(true)
|
|
29348
29330
|
}).strict();
|
|
29349
|
-
TemplateWsHandshakeJwtPayloadSchema = exports_external.object({
|
|
29350
|
-
templateId: exports_external.string(),
|
|
29351
|
-
connectionType: exports_external.literal("template"),
|
|
29352
|
-
isWsToken: exports_external.literal(true)
|
|
29353
|
-
}).strict();
|
|
29354
29331
|
BoardConnectResponseSchema = exports_external.object({
|
|
29355
29332
|
wsUrl: exports_external.string(),
|
|
29356
29333
|
jwt: exports_external.string(),
|
|
@@ -29358,11 +29335,6 @@ var init_socketContract = __esm(() => {
|
|
|
29358
29335
|
sessionId: exports_external.string(),
|
|
29359
29336
|
accessMode: exports_external.enum(accessModeValues)
|
|
29360
29337
|
}).strict();
|
|
29361
|
-
TemplateConnectResponseSchema = exports_external.object({
|
|
29362
|
-
wsUrl: exports_external.string(),
|
|
29363
|
-
jwt: exports_external.string(),
|
|
29364
|
-
userId: exports_external.string()
|
|
29365
|
-
}).strict();
|
|
29366
29338
|
});
|
|
29367
29339
|
|
|
29368
29340
|
// src/Events/MessageRouter/createMessageRouter.ts
|
package/dist/cjs/node.js
CHANGED
|
@@ -3827,24 +3827,6 @@ var init_Settings = __esm(() => {
|
|
|
3827
3827
|
HIGHLIGHTER_DEFAULT_COLOR: "rgba(0, 158, 41, 0.5)",
|
|
3828
3828
|
ERASER_DEFAULT_COLOR: "rgba(222, 224, 227, 0.5)",
|
|
3829
3829
|
ERASER_MAX_LINE_LENGTH: 12,
|
|
3830
|
-
TEMPLATE_CATEGORIES: [
|
|
3831
|
-
"Research & Analysis",
|
|
3832
|
-
"Diagramming",
|
|
3833
|
-
"Meeting & Workshop",
|
|
3834
|
-
"Strategy & Planning",
|
|
3835
|
-
"Brainstorming",
|
|
3836
|
-
"Agile Workflow",
|
|
3837
|
-
"Icebreaker & Game",
|
|
3838
|
-
"Education"
|
|
3839
|
-
],
|
|
3840
|
-
TEMPLATE_LANGUAGES: [
|
|
3841
|
-
{ value: "ru", label: "Russian" },
|
|
3842
|
-
{ value: "en", label: "English" },
|
|
3843
|
-
{ value: "de", label: "German" },
|
|
3844
|
-
{ value: "es", label: "Spanish" },
|
|
3845
|
-
{ value: "fr", label: "French" },
|
|
3846
|
-
{ value: "zh", label: "Chinese" }
|
|
3847
|
-
],
|
|
3848
3830
|
CANVAS_BG_COLOR: "#f6f6f6",
|
|
3849
3831
|
URL_REGEX: /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i,
|
|
3850
3832
|
AI_NODE_DEFAULT_NODE_WIDTH: 640,
|
|
@@ -28377,7 +28359,7 @@ function normalizeBoardSubscriptionCompletedMsg(data) {
|
|
|
28377
28359
|
eventsSinceLastSnapshot: exports_external.array(SocketSyncEventSchema).parse(parsed.eventsSinceLastSnapshot)
|
|
28378
28360
|
});
|
|
28379
28361
|
}
|
|
28380
|
-
var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema,
|
|
28362
|
+
var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema, BoardConnectResponseSchema;
|
|
28381
28363
|
var init_socketContract = __esm(() => {
|
|
28382
28364
|
init_zod();
|
|
28383
28365
|
StringOrNumberSchema = exports_external.union([exports_external.string(), exports_external.number()]);
|
|
@@ -29366,11 +29348,6 @@ var init_socketContract = __esm(() => {
|
|
|
29366
29348
|
accessMode: exports_external.enum(accessModeValues),
|
|
29367
29349
|
isWsToken: exports_external.literal(true)
|
|
29368
29350
|
}).strict();
|
|
29369
|
-
TemplateWsHandshakeJwtPayloadSchema = exports_external.object({
|
|
29370
|
-
templateId: exports_external.string(),
|
|
29371
|
-
connectionType: exports_external.literal("template"),
|
|
29372
|
-
isWsToken: exports_external.literal(true)
|
|
29373
|
-
}).strict();
|
|
29374
29351
|
BoardConnectResponseSchema = exports_external.object({
|
|
29375
29352
|
wsUrl: exports_external.string(),
|
|
29376
29353
|
jwt: exports_external.string(),
|
|
@@ -29378,11 +29355,6 @@ var init_socketContract = __esm(() => {
|
|
|
29378
29355
|
sessionId: exports_external.string(),
|
|
29379
29356
|
accessMode: exports_external.enum(accessModeValues)
|
|
29380
29357
|
}).strict();
|
|
29381
|
-
TemplateConnectResponseSchema = exports_external.object({
|
|
29382
|
-
wsUrl: exports_external.string(),
|
|
29383
|
-
jwt: exports_external.string(),
|
|
29384
|
-
userId: exports_external.string()
|
|
29385
|
-
}).strict();
|
|
29386
29358
|
});
|
|
29387
29359
|
|
|
29388
29360
|
// src/Events/MessageRouter/createMessageRouter.ts
|
package/dist/cjs/protocol.js
CHANGED
|
@@ -30,7 +30,6 @@ var __export = (target, all) => {
|
|
|
30
30
|
var exports_protocol = {};
|
|
31
31
|
__export(exports_protocol, {
|
|
32
32
|
safeParseSocketMsg: () => safeParseSocketMsg,
|
|
33
|
-
parseTemplateConnectResponse: () => parseTemplateConnectResponse,
|
|
34
33
|
parseSocketMsg: () => parseSocketMsg,
|
|
35
34
|
parseOperation: () => parseOperation,
|
|
36
35
|
parseEventsMsg: () => parseEventsMsg,
|
|
@@ -40,8 +39,6 @@ __export(exports_protocol, {
|
|
|
40
39
|
VersionCheckMsgSchema: () => VersionCheckMsgSchema,
|
|
41
40
|
UserJoinMsgSchema: () => UserJoinMsgSchema,
|
|
42
41
|
UnsubscribeMsgSchema: () => UnsubscribeMsgSchema,
|
|
43
|
-
TemplateWsHandshakeJwtPayloadSchema: () => TemplateWsHandshakeJwtPayloadSchema,
|
|
44
|
-
TemplateConnectResponseSchema: () => TemplateConnectResponseSchema,
|
|
45
42
|
SubscribeMsgSchema: () => SubscribeMsgSchema,
|
|
46
43
|
StopFollowingPresenceEventSchema: () => StopFollowingPresenceEventSchema,
|
|
47
44
|
SocketSyncEventSchema: () => SocketSyncEventSchema,
|
|
@@ -14610,11 +14607,6 @@ var BoardWsHandshakeJwtPayloadSchema = exports_external.object({
|
|
|
14610
14607
|
accessMode: exports_external.enum(accessModeValues),
|
|
14611
14608
|
isWsToken: exports_external.literal(true)
|
|
14612
14609
|
}).strict();
|
|
14613
|
-
var TemplateWsHandshakeJwtPayloadSchema = exports_external.object({
|
|
14614
|
-
templateId: exports_external.string(),
|
|
14615
|
-
connectionType: exports_external.literal("template"),
|
|
14616
|
-
isWsToken: exports_external.literal(true)
|
|
14617
|
-
}).strict();
|
|
14618
14610
|
var BoardConnectResponseSchema = exports_external.object({
|
|
14619
14611
|
wsUrl: exports_external.string(),
|
|
14620
14612
|
jwt: exports_external.string(),
|
|
@@ -14622,11 +14614,6 @@ var BoardConnectResponseSchema = exports_external.object({
|
|
|
14622
14614
|
sessionId: exports_external.string(),
|
|
14623
14615
|
accessMode: exports_external.enum(accessModeValues)
|
|
14624
14616
|
}).strict();
|
|
14625
|
-
var TemplateConnectResponseSchema = exports_external.object({
|
|
14626
|
-
wsUrl: exports_external.string(),
|
|
14627
|
-
jwt: exports_external.string(),
|
|
14628
|
-
userId: exports_external.string()
|
|
14629
|
-
}).strict();
|
|
14630
14617
|
function parseSocketMsg(data) {
|
|
14631
14618
|
return SocketMsgSchema.parse(data);
|
|
14632
14619
|
}
|
|
@@ -14642,9 +14629,6 @@ function parseOperation(data) {
|
|
|
14642
14629
|
function parseBoardConnectResponse(data) {
|
|
14643
14630
|
return BoardConnectResponseSchema.parse(data);
|
|
14644
14631
|
}
|
|
14645
|
-
function parseTemplateConnectResponse(data) {
|
|
14646
|
-
return TemplateConnectResponseSchema.parse(data);
|
|
14647
|
-
}
|
|
14648
14632
|
function normalizeBoardSnapshot(data) {
|
|
14649
14633
|
return NormalizedBoardSnapshotSchema.parse(data);
|
|
14650
14634
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -3834,24 +3834,6 @@ var init_Settings = __esm(() => {
|
|
|
3834
3834
|
HIGHLIGHTER_DEFAULT_COLOR: "rgba(0, 158, 41, 0.5)",
|
|
3835
3835
|
ERASER_DEFAULT_COLOR: "rgba(222, 224, 227, 0.5)",
|
|
3836
3836
|
ERASER_MAX_LINE_LENGTH: 12,
|
|
3837
|
-
TEMPLATE_CATEGORIES: [
|
|
3838
|
-
"Research & Analysis",
|
|
3839
|
-
"Diagramming",
|
|
3840
|
-
"Meeting & Workshop",
|
|
3841
|
-
"Strategy & Planning",
|
|
3842
|
-
"Brainstorming",
|
|
3843
|
-
"Agile Workflow",
|
|
3844
|
-
"Icebreaker & Game",
|
|
3845
|
-
"Education"
|
|
3846
|
-
],
|
|
3847
|
-
TEMPLATE_LANGUAGES: [
|
|
3848
|
-
{ value: "ru", label: "Russian" },
|
|
3849
|
-
{ value: "en", label: "English" },
|
|
3850
|
-
{ value: "de", label: "German" },
|
|
3851
|
-
{ value: "es", label: "Spanish" },
|
|
3852
|
-
{ value: "fr", label: "French" },
|
|
3853
|
-
{ value: "zh", label: "Chinese" }
|
|
3854
|
-
],
|
|
3855
3837
|
CANVAS_BG_COLOR: "#f6f6f6",
|
|
3856
3838
|
URL_REGEX: /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i,
|
|
3857
3839
|
AI_NODE_DEFAULT_NODE_WIDTH: 640,
|
|
@@ -28329,7 +28311,7 @@ function normalizeBoardSubscriptionCompletedMsg(data) {
|
|
|
28329
28311
|
eventsSinceLastSnapshot: exports_external.array(SocketSyncEventSchema).parse(parsed.eventsSinceLastSnapshot)
|
|
28330
28312
|
});
|
|
28331
28313
|
}
|
|
28332
|
-
var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema,
|
|
28314
|
+
var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema, BoardConnectResponseSchema;
|
|
28333
28315
|
var init_socketContract = __esm(() => {
|
|
28334
28316
|
init_zod();
|
|
28335
28317
|
StringOrNumberSchema = exports_external.union([exports_external.string(), exports_external.number()]);
|
|
@@ -29318,11 +29300,6 @@ var init_socketContract = __esm(() => {
|
|
|
29318
29300
|
accessMode: exports_external.enum(accessModeValues),
|
|
29319
29301
|
isWsToken: exports_external.literal(true)
|
|
29320
29302
|
}).strict();
|
|
29321
|
-
TemplateWsHandshakeJwtPayloadSchema = exports_external.object({
|
|
29322
|
-
templateId: exports_external.string(),
|
|
29323
|
-
connectionType: exports_external.literal("template"),
|
|
29324
|
-
isWsToken: exports_external.literal(true)
|
|
29325
|
-
}).strict();
|
|
29326
29303
|
BoardConnectResponseSchema = exports_external.object({
|
|
29327
29304
|
wsUrl: exports_external.string(),
|
|
29328
29305
|
jwt: exports_external.string(),
|
|
@@ -29330,11 +29307,6 @@ var init_socketContract = __esm(() => {
|
|
|
29330
29307
|
sessionId: exports_external.string(),
|
|
29331
29308
|
accessMode: exports_external.enum(accessModeValues)
|
|
29332
29309
|
}).strict();
|
|
29333
|
-
TemplateConnectResponseSchema = exports_external.object({
|
|
29334
|
-
wsUrl: exports_external.string(),
|
|
29335
|
-
jwt: exports_external.string(),
|
|
29336
|
-
userId: exports_external.string()
|
|
29337
|
-
}).strict();
|
|
29338
29310
|
});
|
|
29339
29311
|
|
|
29340
29312
|
// src/Events/MessageRouter/createMessageRouter.ts
|
package/dist/esm/index.js
CHANGED
|
@@ -3827,24 +3827,6 @@ var init_Settings = __esm(() => {
|
|
|
3827
3827
|
HIGHLIGHTER_DEFAULT_COLOR: "rgba(0, 158, 41, 0.5)",
|
|
3828
3828
|
ERASER_DEFAULT_COLOR: "rgba(222, 224, 227, 0.5)",
|
|
3829
3829
|
ERASER_MAX_LINE_LENGTH: 12,
|
|
3830
|
-
TEMPLATE_CATEGORIES: [
|
|
3831
|
-
"Research & Analysis",
|
|
3832
|
-
"Diagramming",
|
|
3833
|
-
"Meeting & Workshop",
|
|
3834
|
-
"Strategy & Planning",
|
|
3835
|
-
"Brainstorming",
|
|
3836
|
-
"Agile Workflow",
|
|
3837
|
-
"Icebreaker & Game",
|
|
3838
|
-
"Education"
|
|
3839
|
-
],
|
|
3840
|
-
TEMPLATE_LANGUAGES: [
|
|
3841
|
-
{ value: "ru", label: "Russian" },
|
|
3842
|
-
{ value: "en", label: "English" },
|
|
3843
|
-
{ value: "de", label: "German" },
|
|
3844
|
-
{ value: "es", label: "Spanish" },
|
|
3845
|
-
{ value: "fr", label: "French" },
|
|
3846
|
-
{ value: "zh", label: "Chinese" }
|
|
3847
|
-
],
|
|
3848
3830
|
CANVAS_BG_COLOR: "#f6f6f6",
|
|
3849
3831
|
URL_REGEX: /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i,
|
|
3850
3832
|
AI_NODE_DEFAULT_NODE_WIDTH: 640,
|
|
@@ -28322,7 +28304,7 @@ function normalizeBoardSubscriptionCompletedMsg(data) {
|
|
|
28322
28304
|
eventsSinceLastSnapshot: exports_external.array(SocketSyncEventSchema).parse(parsed.eventsSinceLastSnapshot)
|
|
28323
28305
|
});
|
|
28324
28306
|
}
|
|
28325
|
-
var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema,
|
|
28307
|
+
var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema, BoardConnectResponseSchema;
|
|
28326
28308
|
var init_socketContract = __esm(() => {
|
|
28327
28309
|
init_zod();
|
|
28328
28310
|
StringOrNumberSchema = exports_external.union([exports_external.string(), exports_external.number()]);
|
|
@@ -29311,11 +29293,6 @@ var init_socketContract = __esm(() => {
|
|
|
29311
29293
|
accessMode: exports_external.enum(accessModeValues),
|
|
29312
29294
|
isWsToken: exports_external.literal(true)
|
|
29313
29295
|
}).strict();
|
|
29314
|
-
TemplateWsHandshakeJwtPayloadSchema = exports_external.object({
|
|
29315
|
-
templateId: exports_external.string(),
|
|
29316
|
-
connectionType: exports_external.literal("template"),
|
|
29317
|
-
isWsToken: exports_external.literal(true)
|
|
29318
|
-
}).strict();
|
|
29319
29296
|
BoardConnectResponseSchema = exports_external.object({
|
|
29320
29297
|
wsUrl: exports_external.string(),
|
|
29321
29298
|
jwt: exports_external.string(),
|
|
@@ -29323,11 +29300,6 @@ var init_socketContract = __esm(() => {
|
|
|
29323
29300
|
sessionId: exports_external.string(),
|
|
29324
29301
|
accessMode: exports_external.enum(accessModeValues)
|
|
29325
29302
|
}).strict();
|
|
29326
|
-
TemplateConnectResponseSchema = exports_external.object({
|
|
29327
|
-
wsUrl: exports_external.string(),
|
|
29328
|
-
jwt: exports_external.string(),
|
|
29329
|
-
userId: exports_external.string()
|
|
29330
|
-
}).strict();
|
|
29331
29303
|
});
|
|
29332
29304
|
|
|
29333
29305
|
// src/Events/MessageRouter/createMessageRouter.ts
|
package/dist/esm/node.js
CHANGED
|
@@ -3829,24 +3829,6 @@ var init_Settings = __esm(() => {
|
|
|
3829
3829
|
HIGHLIGHTER_DEFAULT_COLOR: "rgba(0, 158, 41, 0.5)",
|
|
3830
3830
|
ERASER_DEFAULT_COLOR: "rgba(222, 224, 227, 0.5)",
|
|
3831
3831
|
ERASER_MAX_LINE_LENGTH: 12,
|
|
3832
|
-
TEMPLATE_CATEGORIES: [
|
|
3833
|
-
"Research & Analysis",
|
|
3834
|
-
"Diagramming",
|
|
3835
|
-
"Meeting & Workshop",
|
|
3836
|
-
"Strategy & Planning",
|
|
3837
|
-
"Brainstorming",
|
|
3838
|
-
"Agile Workflow",
|
|
3839
|
-
"Icebreaker & Game",
|
|
3840
|
-
"Education"
|
|
3841
|
-
],
|
|
3842
|
-
TEMPLATE_LANGUAGES: [
|
|
3843
|
-
{ value: "ru", label: "Russian" },
|
|
3844
|
-
{ value: "en", label: "English" },
|
|
3845
|
-
{ value: "de", label: "German" },
|
|
3846
|
-
{ value: "es", label: "Spanish" },
|
|
3847
|
-
{ value: "fr", label: "French" },
|
|
3848
|
-
{ value: "zh", label: "Chinese" }
|
|
3849
|
-
],
|
|
3850
3832
|
CANVAS_BG_COLOR: "#f6f6f6",
|
|
3851
3833
|
URL_REGEX: /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i,
|
|
3852
3834
|
AI_NODE_DEFAULT_NODE_WIDTH: 640,
|
|
@@ -28344,7 +28326,7 @@ function normalizeBoardSubscriptionCompletedMsg(data) {
|
|
|
28344
28326
|
eventsSinceLastSnapshot: exports_external.array(SocketSyncEventSchema).parse(parsed.eventsSinceLastSnapshot)
|
|
28345
28327
|
});
|
|
28346
28328
|
}
|
|
28347
|
-
var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema,
|
|
28329
|
+
var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema, BoardConnectResponseSchema;
|
|
28348
28330
|
var init_socketContract = __esm(() => {
|
|
28349
28331
|
init_zod();
|
|
28350
28332
|
StringOrNumberSchema = exports_external.union([exports_external.string(), exports_external.number()]);
|
|
@@ -29333,11 +29315,6 @@ var init_socketContract = __esm(() => {
|
|
|
29333
29315
|
accessMode: exports_external.enum(accessModeValues),
|
|
29334
29316
|
isWsToken: exports_external.literal(true)
|
|
29335
29317
|
}).strict();
|
|
29336
|
-
TemplateWsHandshakeJwtPayloadSchema = exports_external.object({
|
|
29337
|
-
templateId: exports_external.string(),
|
|
29338
|
-
connectionType: exports_external.literal("template"),
|
|
29339
|
-
isWsToken: exports_external.literal(true)
|
|
29340
|
-
}).strict();
|
|
29341
29318
|
BoardConnectResponseSchema = exports_external.object({
|
|
29342
29319
|
wsUrl: exports_external.string(),
|
|
29343
29320
|
jwt: exports_external.string(),
|
|
@@ -29345,11 +29322,6 @@ var init_socketContract = __esm(() => {
|
|
|
29345
29322
|
sessionId: exports_external.string(),
|
|
29346
29323
|
accessMode: exports_external.enum(accessModeValues)
|
|
29347
29324
|
}).strict();
|
|
29348
|
-
TemplateConnectResponseSchema = exports_external.object({
|
|
29349
|
-
wsUrl: exports_external.string(),
|
|
29350
|
-
jwt: exports_external.string(),
|
|
29351
|
-
userId: exports_external.string()
|
|
29352
|
-
}).strict();
|
|
29353
29325
|
});
|
|
29354
29326
|
|
|
29355
29327
|
// src/Events/MessageRouter/createMessageRouter.ts
|
package/dist/esm/protocol.js
CHANGED
|
@@ -14528,11 +14528,6 @@ var BoardWsHandshakeJwtPayloadSchema = exports_external.object({
|
|
|
14528
14528
|
accessMode: exports_external.enum(accessModeValues),
|
|
14529
14529
|
isWsToken: exports_external.literal(true)
|
|
14530
14530
|
}).strict();
|
|
14531
|
-
var TemplateWsHandshakeJwtPayloadSchema = exports_external.object({
|
|
14532
|
-
templateId: exports_external.string(),
|
|
14533
|
-
connectionType: exports_external.literal("template"),
|
|
14534
|
-
isWsToken: exports_external.literal(true)
|
|
14535
|
-
}).strict();
|
|
14536
14531
|
var BoardConnectResponseSchema = exports_external.object({
|
|
14537
14532
|
wsUrl: exports_external.string(),
|
|
14538
14533
|
jwt: exports_external.string(),
|
|
@@ -14540,11 +14535,6 @@ var BoardConnectResponseSchema = exports_external.object({
|
|
|
14540
14535
|
sessionId: exports_external.string(),
|
|
14541
14536
|
accessMode: exports_external.enum(accessModeValues)
|
|
14542
14537
|
}).strict();
|
|
14543
|
-
var TemplateConnectResponseSchema = exports_external.object({
|
|
14544
|
-
wsUrl: exports_external.string(),
|
|
14545
|
-
jwt: exports_external.string(),
|
|
14546
|
-
userId: exports_external.string()
|
|
14547
|
-
}).strict();
|
|
14548
14538
|
function parseSocketMsg(data) {
|
|
14549
14539
|
return SocketMsgSchema.parse(data);
|
|
14550
14540
|
}
|
|
@@ -14560,9 +14550,6 @@ function parseOperation(data) {
|
|
|
14560
14550
|
function parseBoardConnectResponse(data) {
|
|
14561
14551
|
return BoardConnectResponseSchema.parse(data);
|
|
14562
14552
|
}
|
|
14563
|
-
function parseTemplateConnectResponse(data) {
|
|
14564
|
-
return TemplateConnectResponseSchema.parse(data);
|
|
14565
|
-
}
|
|
14566
14553
|
function normalizeBoardSnapshot(data) {
|
|
14567
14554
|
return NormalizedBoardSnapshotSchema.parse(data);
|
|
14568
14555
|
}
|
|
@@ -14577,7 +14564,6 @@ function normalizeBoardSubscriptionCompletedMsg(data) {
|
|
|
14577
14564
|
}
|
|
14578
14565
|
export {
|
|
14579
14566
|
safeParseSocketMsg,
|
|
14580
|
-
parseTemplateConnectResponse,
|
|
14581
14567
|
parseSocketMsg,
|
|
14582
14568
|
parseOperation,
|
|
14583
14569
|
parseEventsMsg,
|
|
@@ -14587,8 +14573,6 @@ export {
|
|
|
14587
14573
|
VersionCheckMsgSchema,
|
|
14588
14574
|
UserJoinMsgSchema,
|
|
14589
14575
|
UnsubscribeMsgSchema,
|
|
14590
|
-
TemplateWsHandshakeJwtPayloadSchema,
|
|
14591
|
-
TemplateConnectResponseSchema,
|
|
14592
14576
|
SubscribeMsgSchema,
|
|
14593
14577
|
StopFollowingPresenceEventSchema,
|
|
14594
14578
|
SocketSyncEventSchema,
|
|
@@ -2,7 +2,7 @@ import type { BoardSnapshot } from "../../Board";
|
|
|
2
2
|
import type { SyncEvent } from "../Events";
|
|
3
3
|
import type { PresenceEventType, PresenceUser } from "../../Presence/Events";
|
|
4
4
|
import type { AiChatEventType } from "./handleAiChatMassage";
|
|
5
|
-
import type { SocketContractAiChatMsg, SocketContractAuthConfirmationMsg, SocketContractAuthMsg, SocketContractBoardAccessDeniedMsg, SocketContractBoardConnectResponse, SocketContractBoardEventMsg, SocketContractNormalizedBoardSnapshot, SocketContractNormalizedBoardSubscriptionCompletedMsg, SocketContractBoardSnapshotMsg, SocketContractBoardSubscriptionCompletedMsg, SocketContractBoardWsHandshakeJwtPayload, SocketContractConfirmationMsg, SocketContractErrorMsg, SocketContractGetModeMsg, SocketContractInvalidateRightsMsg, SocketContractLogoutMsg, SocketContractModeMsg, SocketContractPingMsg, SocketContractPongMsg, SocketContractPresenceEventMsg, SocketContractSnapshotRequestMsg, SocketContractSubscribeMsg,
|
|
5
|
+
import type { SocketContractAiChatMsg, SocketContractAuthConfirmationMsg, SocketContractAuthMsg, SocketContractBoardAccessDeniedMsg, SocketContractBoardConnectResponse, SocketContractBoardEventMsg, SocketContractNormalizedBoardSnapshot, SocketContractNormalizedBoardSubscriptionCompletedMsg, SocketContractBoardSnapshotMsg, SocketContractBoardSubscriptionCompletedMsg, SocketContractBoardWsHandshakeJwtPayload, SocketContractConfirmationMsg, SocketContractErrorMsg, SocketContractGetModeMsg, SocketContractInvalidateRightsMsg, SocketContractLogoutMsg, SocketContractModeMsg, SocketContractPingMsg, SocketContractPongMsg, SocketContractPresenceEventMsg, SocketContractSnapshotRequestMsg, SocketContractSubscribeMsg, SocketContractUnsubscribeMsg, SocketContractUserJoinMsg, SocketContractVersionCheckMsg } from "./socketContract";
|
|
6
6
|
export type AuthMsg = SocketContractAuthMsg;
|
|
7
7
|
export type LogoutMsg = SocketContractLogoutMsg;
|
|
8
8
|
export type InvalidateRightsMsg = SocketContractInvalidateRightsMsg;
|
|
@@ -16,9 +16,7 @@ export type PingMsg = SocketContractPingMsg;
|
|
|
16
16
|
export type PongMsg = SocketContractPongMsg;
|
|
17
17
|
export type BoardAccessDeniedMsg = SocketContractBoardAccessDeniedMsg;
|
|
18
18
|
export type BoardConnectResponse = SocketContractBoardConnectResponse;
|
|
19
|
-
export type TemplateConnectResponse = SocketContractTemplateConnectResponse;
|
|
20
19
|
export type BoardWsHandshakeJwtPayload = SocketContractBoardWsHandshakeJwtPayload;
|
|
21
|
-
export type TemplateWsHandshakeJwtPayload = SocketContractTemplateWsHandshakeJwtPayload;
|
|
22
20
|
export type BoardSubscriptionCompletedMsg = Omit<SocketContractNormalizedBoardSubscriptionCompletedMsg, "JSONSnapshot" | "eventsSinceLastSnapshot"> & {
|
|
23
21
|
mode: "view" | "edit";
|
|
24
22
|
JSONSnapshot?: BoardSnapshot | null;
|
|
@@ -13598,11 +13598,6 @@ export declare const BoardWsHandshakeJwtPayloadSchema: z.ZodObject<{
|
|
|
13598
13598
|
}>;
|
|
13599
13599
|
isWsToken: z.ZodLiteral<true>;
|
|
13600
13600
|
}, z.core.$strict>;
|
|
13601
|
-
export declare const TemplateWsHandshakeJwtPayloadSchema: z.ZodObject<{
|
|
13602
|
-
templateId: z.ZodString;
|
|
13603
|
-
connectionType: z.ZodLiteral<"template">;
|
|
13604
|
-
isWsToken: z.ZodLiteral<true>;
|
|
13605
|
-
}, z.core.$strict>;
|
|
13606
13601
|
export declare const BoardConnectResponseSchema: z.ZodObject<{
|
|
13607
13602
|
wsUrl: z.ZodString;
|
|
13608
13603
|
jwt: z.ZodString;
|
|
@@ -13613,11 +13608,6 @@ export declare const BoardConnectResponseSchema: z.ZodObject<{
|
|
|
13613
13608
|
edit: "edit";
|
|
13614
13609
|
}>;
|
|
13615
13610
|
}, z.core.$strict>;
|
|
13616
|
-
export declare const TemplateConnectResponseSchema: z.ZodObject<{
|
|
13617
|
-
wsUrl: z.ZodString;
|
|
13618
|
-
jwt: z.ZodString;
|
|
13619
|
-
userId: z.ZodString;
|
|
13620
|
-
}, z.core.$strict>;
|
|
13621
13611
|
export type SocketContractAuthMsg = z.infer<typeof AuthMsgSchema>;
|
|
13622
13612
|
export type SocketContractLogoutMsg = z.infer<typeof LogoutMsgSchema>;
|
|
13623
13613
|
export type SocketContractInvalidateRightsMsg = z.infer<typeof InvalidateRightsMsgSchema>;
|
|
@@ -13655,9 +13645,7 @@ export type SocketContractSyncBoardEventPack = z.infer<typeof SocketSyncBoardEve
|
|
|
13655
13645
|
export type SocketContractSyncEvent = z.infer<typeof SocketSyncEventSchema>;
|
|
13656
13646
|
export type SocketContractAccessMode = z.infer<typeof AccessModeSchema>;
|
|
13657
13647
|
export type SocketContractBoardWsHandshakeJwtPayload = z.infer<typeof BoardWsHandshakeJwtPayloadSchema>;
|
|
13658
|
-
export type SocketContractTemplateWsHandshakeJwtPayload = z.infer<typeof TemplateWsHandshakeJwtPayloadSchema>;
|
|
13659
13648
|
export type SocketContractBoardConnectResponse = z.infer<typeof BoardConnectResponseSchema>;
|
|
13660
|
-
export type SocketContractTemplateConnectResponse = z.infer<typeof TemplateConnectResponseSchema>;
|
|
13661
13649
|
export declare function parseSocketMsg(data: unknown): SocketContractSocketMsg;
|
|
13662
13650
|
export declare function safeParseSocketMsg(data: unknown): z.ZodSafeParseResult<{
|
|
13663
13651
|
type: "AiChat";
|
|
@@ -15202,6 +15190,5 @@ export declare function safeParseSocketMsg(data: unknown): z.ZodSafeParseResult<
|
|
|
15202
15190
|
export declare function parseEventsMsg(data: unknown): SocketContractEventsMsg;
|
|
15203
15191
|
export declare function parseOperation(data: unknown): SocketContractOperation;
|
|
15204
15192
|
export declare function parseBoardConnectResponse(data: unknown): SocketContractBoardConnectResponse;
|
|
15205
|
-
export declare function parseTemplateConnectResponse(data: unknown): SocketContractTemplateConnectResponse;
|
|
15206
15193
|
export declare function normalizeBoardSnapshot(data: unknown): SocketContractNormalizedBoardSnapshot;
|
|
15207
15194
|
export declare function normalizeBoardSubscriptionCompletedMsg(data: unknown): SocketContractNormalizedBoardSubscriptionCompletedMsg;
|
package/dist/types/Settings.d.ts
CHANGED
|
@@ -52,25 +52,6 @@ export interface NotifyFunction {
|
|
|
52
52
|
* Allowed drawing tools.
|
|
53
53
|
*/
|
|
54
54
|
export type DrawingTool = "Pen" | "Eraser" | "Highlighter";
|
|
55
|
-
/**
|
|
56
|
-
* Template categories as a literal union.
|
|
57
|
-
*/
|
|
58
|
-
export type TemplateCategory = "All templates" | "Research & Analysis" | "Diagramming" | "Meeting & Workshop" | "Strategy & Planning" | "Brainstorming" | "Agile Workflow" | "Icebreaker & Game" | "Education";
|
|
59
|
-
/**
|
|
60
|
-
* Template language definition.
|
|
61
|
-
*/
|
|
62
|
-
export interface TemplateLanguage {
|
|
63
|
-
value: "ru" | "en" | "de" | "es" | "fr" | "zh";
|
|
64
|
-
label: string;
|
|
65
|
-
}
|
|
66
|
-
export interface Template {
|
|
67
|
-
id: string;
|
|
68
|
-
preview: string;
|
|
69
|
-
languages: string[];
|
|
70
|
-
tags: string[];
|
|
71
|
-
name: string;
|
|
72
|
-
created: string;
|
|
73
|
-
}
|
|
74
55
|
export declare enum ExportQuality {
|
|
75
56
|
HIGH = 0,
|
|
76
57
|
MEDIUM = 1,
|
|
@@ -216,11 +197,6 @@ export declare const conf: {
|
|
|
216
197
|
HIGHLIGHTER_DEFAULT_COLOR: string;
|
|
217
198
|
ERASER_DEFAULT_COLOR: string;
|
|
218
199
|
ERASER_MAX_LINE_LENGTH: number;
|
|
219
|
-
TEMPLATE_CATEGORIES: string[];
|
|
220
|
-
TEMPLATE_LANGUAGES: {
|
|
221
|
-
value: string;
|
|
222
|
-
label: string;
|
|
223
|
-
}[];
|
|
224
200
|
CANVAS_BG_COLOR: string;
|
|
225
201
|
URL_REGEX: RegExp;
|
|
226
202
|
AI_NODE_DEFAULT_NODE_WIDTH: number;
|