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.
@@ -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,
@@ -6241,6 +6223,21 @@ class EventsLog {
6241
6223
  }
6242
6224
  return records[records.length - 1].event;
6243
6225
  }
6226
+ refreshUnconfirmedIdentity(sessionId, authorUserId) {
6227
+ const records = [
6228
+ ...this.list.getRecordsToSend(),
6229
+ ...this.list.getNewRecords()
6230
+ ];
6231
+ for (const record of records) {
6232
+ record.event.body.sessionId = sessionId;
6233
+ record.event.body.userId = sessionId;
6234
+ record.event.body.authorUserId = authorUserId;
6235
+ }
6236
+ if (this.pendingEvent) {
6237
+ this.pendingEvent = null;
6238
+ this.firstSentTime = null;
6239
+ }
6240
+ }
6244
6241
  }
6245
6242
  function createEventsLog(board, commandFactory) {
6246
6243
  return new EventsLog(board, commandFactory);
@@ -6258,15 +6255,6 @@ var init_Log = __esm(() => {
6258
6255
  init_EventsLog();
6259
6256
  });
6260
6257
 
6261
- // src/Items/ItemsCommandUtils.ts
6262
- function mapItemsByOperation(item, getCallback) {
6263
- const items = Array.isArray(item) ? item : [item];
6264
- return items.map((item2) => {
6265
- const operation = getCallback(item2);
6266
- return { item: item2, operation };
6267
- });
6268
- }
6269
-
6270
6258
  // src/Items/Shape/ShapeCommand.ts
6271
6259
  class ShapeCommand {
6272
6260
  shape;
@@ -6297,52 +6285,73 @@ class ShapeCommand {
6297
6285
  const shape = this.shape;
6298
6286
  switch (this.operation.method) {
6299
6287
  case "setBackgroundColor":
6300
- return mapItemsByOperation(shape, (shape2) => {
6288
+ return shape.map((shape2) => {
6301
6289
  return {
6302
- ...this.operation,
6303
- backgroundColor: shape2.getBackgroundColor()
6290
+ item: shape2,
6291
+ operation: {
6292
+ ...this.operation,
6293
+ backgroundColor: shape2.getBackgroundColor()
6294
+ }
6304
6295
  };
6305
6296
  });
6306
6297
  case "setBackgroundOpacity":
6307
- return mapItemsByOperation(shape, (shape2) => {
6298
+ return shape.map((shape2) => {
6308
6299
  return {
6309
- ...this.operation,
6310
- backgroundOpacity: shape2.getBackgroundOpacity()
6300
+ item: shape2,
6301
+ operation: {
6302
+ ...this.operation,
6303
+ backgroundOpacity: shape2.getBackgroundOpacity()
6304
+ }
6311
6305
  };
6312
6306
  });
6313
6307
  case "setBorderColor":
6314
- return mapItemsByOperation(shape, (shape2) => {
6308
+ return shape.map((shape2) => {
6315
6309
  return {
6316
- ...this.operation,
6317
- borderColor: shape2.getStrokeColor()
6310
+ item: shape2,
6311
+ operation: {
6312
+ ...this.operation,
6313
+ borderColor: shape2.getStrokeColor()
6314
+ }
6318
6315
  };
6319
6316
  });
6320
6317
  case "setBorderOpacity":
6321
- return mapItemsByOperation(shape, (shape2) => {
6318
+ return shape.map((shape2) => {
6322
6319
  return {
6323
- ...this.operation,
6324
- borderOpacity: shape2.getBorderOpacity()
6320
+ item: shape2,
6321
+ operation: {
6322
+ ...this.operation,
6323
+ borderOpacity: shape2.getBorderOpacity()
6324
+ }
6325
6325
  };
6326
6326
  });
6327
6327
  case "setBorderStyle":
6328
- return mapItemsByOperation(shape, (shape2) => {
6328
+ return shape.map((shape2) => {
6329
6329
  return {
6330
- ...this.operation,
6331
- borderStyle: shape2.getBorderStyle()
6330
+ item: shape2,
6331
+ operation: {
6332
+ ...this.operation,
6333
+ borderStyle: shape2.getBorderStyle()
6334
+ }
6332
6335
  };
6333
6336
  });
6334
6337
  case "setBorderWidth":
6335
- return mapItemsByOperation(shape, (_shape) => {
6338
+ return shape.map((_shape) => {
6336
6339
  return {
6337
- ...this.operation,
6338
- borderWidth: this.operation.prevBorderWidth
6340
+ item: _shape,
6341
+ operation: {
6342
+ ...this.operation,
6343
+ borderWidth: this.operation.prevBorderWidth
6344
+ }
6339
6345
  };
6340
6346
  });
6341
6347
  case "setShapeType":
6342
- return mapItemsByOperation(shape, (shape2) => {
6348
+ return shape.map((shape2) => {
6343
6349
  return {
6344
- ...this.operation,
6345
- shapeType: shape2.getShapeType()
6350
+ item: shape2,
6351
+ operation: {
6352
+ ...this.operation,
6353
+ shapeType: shape2.getShapeType()
6354
+ }
6346
6355
  };
6347
6356
  });
6348
6357
  }
@@ -6425,78 +6434,99 @@ class TransformationCommand {
6425
6434
  });
6426
6435
  }
6427
6436
  case "translateTo":
6428
- return mapItemsByOperation(this.transformation, (transformation) => {
6437
+ return this.transformation.map((transformation) => {
6429
6438
  return {
6430
- ...this.operation,
6431
- x: transformation.getTranslation().x,
6432
- y: transformation.getTranslation().y
6439
+ item: transformation,
6440
+ operation: {
6441
+ ...this.operation,
6442
+ x: transformation.getTranslation().x,
6443
+ y: transformation.getTranslation().y
6444
+ }
6433
6445
  };
6434
6446
  });
6435
6447
  case "translateBy": {
6436
6448
  const op2 = this.operation;
6437
- return mapItemsByOperation(this.transformation, () => {
6449
+ return this.transformation.map((transformation) => {
6438
6450
  return {
6439
- ...this.operation,
6440
- x: -op2.x,
6441
- y: -op2.y
6451
+ item: transformation,
6452
+ operation: {
6453
+ ...this.operation,
6454
+ x: -op2.x,
6455
+ y: -op2.y
6456
+ }
6442
6457
  };
6443
6458
  });
6444
6459
  }
6445
6460
  case "scaleTo":
6446
6461
  case "scaleToRelativeTo": {
6447
- return mapItemsByOperation(this.transformation, (transformation) => {
6462
+ return this.transformation.map((transformation) => {
6448
6463
  return {
6449
- ...op,
6450
- x: transformation.getScale().x,
6451
- y: transformation.getScale().y
6464
+ item: transformation,
6465
+ operation: {
6466
+ ...op,
6467
+ x: transformation.getScale().x,
6468
+ y: transformation.getScale().y
6469
+ }
6452
6470
  };
6453
6471
  });
6454
6472
  }
6455
6473
  case "scaleBy":
6456
6474
  case "scaleByRelativeTo": {
6457
6475
  const op2 = this.operation;
6458
- return mapItemsByOperation(this.transformation, () => {
6476
+ return this.transformation.map((transformation) => {
6459
6477
  return {
6460
- ...op2,
6461
- x: 1 / op2.x,
6462
- y: 1 / op2.y
6478
+ item: transformation,
6479
+ operation: {
6480
+ ...op2,
6481
+ x: 1 / op2.x,
6482
+ y: 1 / op2.y
6483
+ }
6463
6484
  };
6464
6485
  });
6465
6486
  }
6466
6487
  case "scaleByTranslateBy": {
6467
6488
  const op2 = this.operation;
6468
- const scaleTransformation = mapItemsByOperation(this.transformation, () => {
6489
+ const scaleTransformation = this.transformation.map((transformation) => {
6469
6490
  const scaleX = 1 / op2.scale.x;
6470
6491
  const scaleY = 1 / op2.scale.y;
6471
6492
  const translateX = -op2.translate.x;
6472
6493
  const translateY = -op2.translate.y;
6473
6494
  return {
6474
- ...op2,
6475
- scale: {
6476
- x: scaleX,
6477
- y: scaleY
6478
- },
6479
- translate: {
6480
- x: translateX,
6481
- y: translateY
6495
+ item: transformation,
6496
+ operation: {
6497
+ ...op2,
6498
+ scale: {
6499
+ x: scaleX,
6500
+ y: scaleY
6501
+ },
6502
+ translate: {
6503
+ x: translateX,
6504
+ y: translateY
6505
+ }
6482
6506
  }
6483
6507
  };
6484
6508
  });
6485
6509
  return scaleTransformation;
6486
6510
  }
6487
6511
  case "rotateTo":
6488
- return mapItemsByOperation(this.transformation, (transformation) => {
6512
+ return this.transformation.map((transformation) => {
6489
6513
  return {
6490
- ...this.operation,
6491
- degree: transformation.getRotation()
6514
+ item: transformation,
6515
+ operation: {
6516
+ ...this.operation,
6517
+ degree: transformation.getRotation()
6518
+ }
6492
6519
  };
6493
6520
  });
6494
6521
  case "rotateBy": {
6495
6522
  const op2 = this.operation;
6496
- return mapItemsByOperation(this.transformation, () => {
6523
+ return this.transformation.map((transformation) => {
6497
6524
  return {
6498
- ...this.operation,
6499
- degree: -op2.degree
6525
+ item: transformation,
6526
+ operation: {
6527
+ ...this.operation,
6528
+ degree: -op2.degree
6529
+ }
6500
6530
  };
6501
6531
  });
6502
6532
  }
@@ -6534,23 +6564,29 @@ class TransformationCommand {
6534
6564
  }
6535
6565
  case "locked": {
6536
6566
  const op2 = this.operation;
6537
- return mapItemsByOperation(this.transformation, () => {
6567
+ return this.transformation.map((transformation) => {
6538
6568
  return {
6539
- ...op2,
6540
- item: [...op2.item],
6541
- method: "unlocked",
6542
- locked: false
6569
+ item: transformation,
6570
+ operation: {
6571
+ ...op2,
6572
+ item: [...op2.item],
6573
+ method: "unlocked",
6574
+ locked: false
6575
+ }
6543
6576
  };
6544
6577
  });
6545
6578
  }
6546
6579
  case "unlocked": {
6547
6580
  const op2 = this.operation;
6548
- return mapItemsByOperation(this.transformation, () => {
6581
+ return this.transformation.map((transformation) => {
6549
6582
  return {
6550
- ...op2,
6551
- item: [...op2.item],
6552
- method: "locked",
6553
- locked: true
6583
+ item: transformation,
6584
+ operation: {
6585
+ ...op2,
6586
+ item: [...op2.item],
6587
+ method: "locked",
6588
+ locked: true
6589
+ }
6554
6590
  };
6555
6591
  });
6556
6592
  }
@@ -7070,16 +7106,18 @@ class StickerCommand {
7070
7106
  getReverse() {
7071
7107
  switch (this.operation.method) {
7072
7108
  case "setBackgroundColor":
7073
- return mapItemsByOperation(this.sticker, (sticker) => {
7109
+ return this.sticker.map((sticker) => {
7074
7110
  return {
7075
- ...this.operation,
7076
- backgroundColor: sticker.getBackgroundColor()
7111
+ item: sticker,
7112
+ operation: {
7113
+ ...this.operation,
7114
+ backgroundColor: sticker.getBackgroundColor()
7115
+ }
7077
7116
  };
7078
7117
  });
7079
7118
  }
7080
7119
  }
7081
7120
  }
7082
- var init_StickerCommand = () => {};
7083
7121
 
7084
7122
  // src/Items/Frame/FrameCommand.ts
7085
7123
  class FrameCommand {
@@ -7105,51 +7143,68 @@ class FrameCommand {
7105
7143
  const frame = this.frame;
7106
7144
  switch (this.operation.method) {
7107
7145
  case "setBackgroundColor":
7108
- return mapItemsByOperation(frame, (frame2) => {
7146
+ return frame.map((frame2) => {
7109
7147
  return {
7110
- ...this.operation,
7111
- backgroundColor: frame2.getBackgroundColor()
7148
+ item: frame2,
7149
+ operation: {
7150
+ ...this.operation,
7151
+ backgroundColor: frame2.getBackgroundColor()
7152
+ }
7112
7153
  };
7113
7154
  });
7114
7155
  case "setCanChangeRatio":
7115
- return mapItemsByOperation(frame, (frame2) => {
7156
+ return frame.map((frame2) => {
7116
7157
  return {
7117
- ...this.operation,
7118
- canChangeRatio: frame2.getCanChangeRatio()
7158
+ item: frame2,
7159
+ operation: {
7160
+ ...this.operation,
7161
+ canChangeRatio: frame2.getCanChangeRatio()
7162
+ }
7119
7163
  };
7120
7164
  });
7121
7165
  case "setFrameType":
7122
- return mapItemsByOperation(frame, () => {
7166
+ return frame.map((frame2) => {
7123
7167
  return {
7124
- ...this.operation,
7125
- shapeType: this.operation.prevShapeType
7168
+ item: frame2,
7169
+ operation: {
7170
+ ...this.operation,
7171
+ shapeType: this.operation.prevShapeType
7172
+ }
7126
7173
  };
7127
7174
  });
7128
7175
  case "addChild":
7129
- return mapItemsByOperation(frame, (frame2) => {
7176
+ return frame.map((frame2) => {
7130
7177
  return {
7131
- ...this.operation,
7132
- children: frame2.getChildrenIds()
7178
+ item: frame2,
7179
+ operation: {
7180
+ ...this.operation,
7181
+ children: frame2.getChildrenIds()
7182
+ }
7133
7183
  };
7134
7184
  });
7135
7185
  case "removeChild":
7136
- return mapItemsByOperation(frame, (frame2) => {
7186
+ return frame.map((frame2) => {
7137
7187
  return {
7138
- ...this.operation,
7139
- children: frame2.getChildrenIds()
7188
+ item: frame2,
7189
+ operation: {
7190
+ ...this.operation,
7191
+ children: frame2.getChildrenIds()
7192
+ }
7140
7193
  };
7141
7194
  });
7142
7195
  case "addChildren":
7143
7196
  case "removeChildren":
7144
- return mapItemsByOperation(frame, (item) => {
7197
+ return frame.map((item) => {
7145
7198
  return {
7146
- ...this.operation
7199
+ item,
7200
+ operation: {
7201
+ ...this.operation
7202
+ }
7147
7203
  };
7148
7204
  });
7149
7205
  }
7150
7206
  }
7151
7207
  }
7152
- var init_FrameCommand = () => {};
7153
7208
 
7154
7209
  // src/SubjectOperation.ts
7155
7210
  class SubjectOperation {
@@ -7631,60 +7686,80 @@ class CommentCommand {
7631
7686
  const op = this.operation;
7632
7687
  switch (op.method) {
7633
7688
  case "createMessage":
7634
- return mapItemsByOperation(this.comment, (comment) => {
7689
+ return this.comment.map((comment) => {
7635
7690
  return {
7636
- ...this.operation,
7637
- message: comment.getThread()[comment.getThread().length - 1]
7691
+ item: comment,
7692
+ operation: {
7693
+ ...this.operation,
7694
+ message: comment.getThread()[comment.getThread().length - 1]
7695
+ }
7638
7696
  };
7639
7697
  });
7640
7698
  case "editMessage":
7641
- return mapItemsByOperation(this.comment, (comment) => {
7699
+ return this.comment.map((comment) => {
7642
7700
  return {
7643
- ...op,
7644
- message: comment.getThread().find((mes) => mes.id === op.message.id)
7701
+ item: comment,
7702
+ operation: {
7703
+ ...op,
7704
+ message: comment.getThread().find((mes) => mes.id === op.message.id)
7705
+ }
7645
7706
  };
7646
7707
  });
7647
7708
  case "removeMessage":
7648
- return mapItemsByOperation(this.comment, (comment) => {
7709
+ return this.comment.map((comment) => {
7649
7710
  return {
7650
- ...this.operation,
7651
- messageId: op.messageId
7711
+ item: comment,
7712
+ operation: {
7713
+ ...this.operation,
7714
+ messageId: op.messageId
7715
+ }
7652
7716
  };
7653
7717
  });
7654
7718
  case "setResolved":
7655
- return mapItemsByOperation(this.comment, (comment) => {
7719
+ return this.comment.map((comment) => {
7656
7720
  return {
7657
- ...this.operation,
7658
- resolved: comment.getResolved()
7721
+ item: comment,
7722
+ operation: {
7723
+ ...this.operation,
7724
+ resolved: comment.getResolved()
7725
+ }
7659
7726
  };
7660
7727
  });
7661
7728
  case "markMessagesAsRead":
7662
- return mapItemsByOperation(this.comment, (comment) => {
7729
+ return this.comment.map((comment) => {
7663
7730
  return {
7664
- ...this.operation,
7665
- messageIds: comment.getThread().filter((mes) => op.messageIds.includes(mes.id)).map((mes) => mes.id),
7666
- userId: op.userId
7731
+ item: comment,
7732
+ operation: {
7733
+ ...this.operation,
7734
+ messageIds: comment.getThread().filter((mes) => op.messageIds.includes(mes.id)).map((mes) => mes.id),
7735
+ userId: op.userId
7736
+ }
7667
7737
  };
7668
7738
  });
7669
7739
  case "markThreadAsUnread":
7670
7740
  case "markThreadAsRead":
7671
- return mapItemsByOperation(this.comment, (comment) => {
7741
+ return this.comment.map((comment) => {
7672
7742
  return {
7673
- ...this.operation,
7674
- userId: op.userId
7743
+ item: comment,
7744
+ operation: {
7745
+ ...this.operation,
7746
+ userId: op.userId
7747
+ }
7675
7748
  };
7676
7749
  });
7677
7750
  case "setItemToFollow":
7678
- return mapItemsByOperation(this.comment, (comment) => {
7751
+ return this.comment.map((comment) => {
7679
7752
  return {
7680
- ...this.operation,
7681
- itemId: op.itemId
7753
+ item: comment,
7754
+ operation: {
7755
+ ...this.operation,
7756
+ itemId: op.itemId
7757
+ }
7682
7758
  };
7683
7759
  });
7684
7760
  }
7685
7761
  }
7686
7762
  }
7687
- var init_CommentCommand = () => {};
7688
7763
 
7689
7764
  // src/Items/GeometricNormal.ts
7690
7765
  class GeometricNormal {
@@ -8318,16 +8393,18 @@ class LinkToCommand {
8318
8393
  getReverse() {
8319
8394
  switch (this.operation.method) {
8320
8395
  case "setLinkTo":
8321
- return mapItemsByOperation(this.linkTo, (linkTo) => {
8396
+ return this.linkTo.map((linkTo) => {
8322
8397
  return {
8323
- ...this.operation,
8324
- link: linkTo.link
8398
+ item: linkTo,
8399
+ operation: {
8400
+ ...this.operation,
8401
+ link: linkTo.link
8402
+ }
8325
8403
  };
8326
8404
  });
8327
8405
  }
8328
8406
  }
8329
8407
  }
8330
- var init_LinkToCommand = () => {};
8331
8408
 
8332
8409
  // src/Items/LinkTo/LinkTo.ts
8333
8410
  class LinkTo {
@@ -8433,7 +8510,6 @@ class LinkTo {
8433
8510
  }
8434
8511
  }
8435
8512
  var init_LinkTo = __esm(() => {
8436
- init_LinkToCommand();
8437
8513
  init_Settings();
8438
8514
  });
8439
8515
 
@@ -13459,7 +13535,6 @@ var ANONYMOUS_ID = 9999999999, Comment;
13459
13535
  var init_Comment = __esm(() => {
13460
13536
  init_Point2();
13461
13537
  init_Transformation2();
13462
- init_CommentCommand();
13463
13538
  init_Mbr2();
13464
13539
  init_Line2();
13465
13540
  init_esm_browser();
@@ -13813,7 +13888,6 @@ var init_Comment = __esm(() => {
13813
13888
  // src/Items/Comment/index.ts
13814
13889
  var init_Comment2 = __esm(() => {
13815
13890
  init_Comment();
13816
- init_CommentCommand();
13817
13891
  });
13818
13892
 
13819
13893
  // src/Items/Group/GroupCommand.ts
@@ -13920,30 +13994,38 @@ class PlaceholderCommand {
13920
13994
  const placeholder = this.placeholder;
13921
13995
  switch (this.operation.method) {
13922
13996
  case "setBackgroundColor":
13923
- return mapItemsByOperation(placeholder, (placeholder2) => {
13997
+ return placeholder.map((placeholder2) => {
13924
13998
  return {
13925
- ...this.operation,
13926
- backgroundColor: placeholder2.getBackgroundColor()
13999
+ item: placeholder2,
14000
+ operation: {
14001
+ ...this.operation,
14002
+ backgroundColor: placeholder2.getBackgroundColor()
14003
+ }
13927
14004
  };
13928
14005
  });
13929
14006
  case "setIcon":
13930
- return mapItemsByOperation(placeholder, (placeholder2) => {
14007
+ return placeholder.map((placeholder2) => {
13931
14008
  return {
13932
- ...this.operation,
13933
- icon: placeholder2.getIcon()
14009
+ item: placeholder2,
14010
+ operation: {
14011
+ ...this.operation,
14012
+ icon: placeholder2.getIcon()
14013
+ }
13934
14014
  };
13935
14015
  });
13936
14016
  case "setMiroData":
13937
- return mapItemsByOperation(placeholder, (placeholder2) => {
14017
+ return placeholder.map((placeholder2) => {
13938
14018
  return {
13939
- ...this.operation,
13940
- miroData: placeholder2.getIcon()
14019
+ item: placeholder2,
14020
+ operation: {
14021
+ ...this.operation,
14022
+ miroData: placeholder2.getIcon()
14023
+ }
13941
14024
  };
13942
14025
  });
13943
14026
  }
13944
14027
  }
13945
14028
  }
13946
- var init_PlaceholderCommand = () => {};
13947
14029
 
13948
14030
  // src/Items/Image/ImageCommand.ts
13949
14031
  class ImageCommand {
@@ -14181,11 +14263,7 @@ var init_CreateCommand = __esm(() => {
14181
14263
  init_EventsCommand();
14182
14264
  init_ConnectorCommand();
14183
14265
  init_DrawingCommand();
14184
- init_StickerCommand();
14185
- init_FrameCommand();
14186
14266
  init_Comment2();
14187
- init_LinkToCommand();
14188
- init_PlaceholderCommand();
14189
14267
  init_Command();
14190
14268
  itemCommandFactories = {
14191
14269
  Sticker: createStickerCommand,
@@ -28233,7 +28311,7 @@ function normalizeBoardSubscriptionCompletedMsg(data) {
28233
28311
  eventsSinceLastSnapshot: exports_external.array(SocketSyncEventSchema).parse(parsed.eventsSinceLastSnapshot)
28234
28312
  });
28235
28313
  }
28236
- 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, TemplateWsHandshakeJwtPayloadSchema, BoardConnectResponseSchema, TemplateConnectResponseSchema;
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;
28237
28315
  var init_socketContract = __esm(() => {
28238
28316
  init_zod();
28239
28317
  StringOrNumberSchema = exports_external.union([exports_external.string(), exports_external.number()]);
@@ -29222,11 +29300,6 @@ var init_socketContract = __esm(() => {
29222
29300
  accessMode: exports_external.enum(accessModeValues),
29223
29301
  isWsToken: exports_external.literal(true)
29224
29302
  }).strict();
29225
- TemplateWsHandshakeJwtPayloadSchema = exports_external.object({
29226
- templateId: exports_external.string(),
29227
- connectionType: exports_external.literal("template"),
29228
- isWsToken: exports_external.literal(true)
29229
- }).strict();
29230
29303
  BoardConnectResponseSchema = exports_external.object({
29231
29304
  wsUrl: exports_external.string(),
29232
29305
  jwt: exports_external.string(),
@@ -29234,11 +29307,6 @@ var init_socketContract = __esm(() => {
29234
29307
  sessionId: exports_external.string(),
29235
29308
  accessMode: exports_external.enum(accessModeValues)
29236
29309
  }).strict();
29237
- TemplateConnectResponseSchema = exports_external.object({
29238
- wsUrl: exports_external.string(),
29239
- jwt: exports_external.string(),
29240
- userId: exports_external.string()
29241
- }).strict();
29242
29310
  });
29243
29311
 
29244
29312
  // src/Events/MessageRouter/createMessageRouter.ts
@@ -58411,7 +58479,6 @@ var init_Sticker = __esm(() => {
58411
58479
  init_Transformation();
58412
58480
  init_getResizeMatrix();
58413
58481
  init_RichText();
58414
- init_StickerCommand();
58415
58482
  init_StickerOperation();
58416
58483
  init_LinkTo();
58417
58484
  init_SessionStorage();
@@ -59663,7 +59730,6 @@ var init_Frame = __esm(() => {
59663
59730
  init_RichText();
59664
59731
  init_Matrix();
59665
59732
  init_Basic();
59666
- init_FrameCommand();
59667
59733
  init_exportBoardSnapshot();
59668
59734
  init_LinkTo();
59669
59735
  init_HTMLRender();
@@ -60193,7 +60259,6 @@ var init_Frame = __esm(() => {
60193
60259
  // src/Items/Frame/index.ts
60194
60260
  var init_Frame2 = __esm(() => {
60195
60261
  init_Frame();
60196
- init_FrameCommand();
60197
60262
  init_FrameData();
60198
60263
  init_FrameData();
60199
60264
  init_Basic();
@@ -69403,7 +69468,6 @@ var init_Placeholder2 = __esm(() => {
69403
69468
  init_Shape2();
69404
69469
  init_Path();
69405
69470
  init_Transformation();
69406
- init_PlaceholderCommand();
69407
69471
  init_getResizeMatrix();
69408
69472
  init_BaseItem();
69409
69473
  Placeholder2 = class Placeholder2 extends BaseItem {
@@ -70316,10 +70380,10 @@ function normalizeForBoard(msg) {
70316
70380
  }
70317
70381
  function handleSeqNumApplication(initialSequenceNumber, board) {
70318
70382
  const { log } = board.events;
70383
+ const sessionId = getConnectionSessionId(board.events.connection);
70384
+ const authorUserId = getConnectionAuthorUserId(board.events.connection);
70385
+ log.refreshUnconfirmedIdentity(sessionId, authorUserId);
70319
70386
  log.currentSequenceNumber = initialSequenceNumber;
70320
- if (log.pendingEvent) {
70321
- log.pendingEvent.sequenceNumber = log.currentSequenceNumber;
70322
- }
70323
70387
  startIntervals(board);
70324
70388
  }
70325
70389
  function startIntervals(board) {