microboard-temp 0.13.77 → 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.
@@ -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,
@@ -89,5 +89,6 @@ export declare class EventsLog {
89
89
  * Retrieves the most recently confirmed event
90
90
  */
91
91
  getLastConfirmed(): BoardEvent | null;
92
+ refreshUnconfirmedIdentity(sessionId: string, authorUserId?: string): void;
92
93
  }
93
94
  export declare function createEventsLog(board: Board, commandFactory: (ops: Operation) => Command): EventsLog;
@@ -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, SocketContractTemplateConnectResponse, SocketContractTemplateWsHandshakeJwtPayload, SocketContractUnsubscribeMsg, SocketContractUserJoinMsg, SocketContractVersionCheckMsg } from "./socketContract";
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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.13.77",
3
+ "version": "0.13.79",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,4 +0,0 @@
1
- export declare function mapItemsByOperation<Item, O>(item: Item | Item[], getCallback: (item: Item) => O): {
2
- item: Item;
3
- operation: O;
4
- }[];