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.
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,
@@ -6269,6 +6251,21 @@ class EventsLog {
6269
6251
  }
6270
6252
  return records[records.length - 1].event;
6271
6253
  }
6254
+ refreshUnconfirmedIdentity(sessionId, authorUserId) {
6255
+ const records = [
6256
+ ...this.list.getRecordsToSend(),
6257
+ ...this.list.getNewRecords()
6258
+ ];
6259
+ for (const record of records) {
6260
+ record.event.body.sessionId = sessionId;
6261
+ record.event.body.userId = sessionId;
6262
+ record.event.body.authorUserId = authorUserId;
6263
+ }
6264
+ if (this.pendingEvent) {
6265
+ this.pendingEvent = null;
6266
+ this.firstSentTime = null;
6267
+ }
6268
+ }
6272
6269
  }
6273
6270
  function createEventsLog(board, commandFactory) {
6274
6271
  return new EventsLog(board, commandFactory);
@@ -6286,15 +6283,6 @@ var init_Log = __esm(() => {
6286
6283
  init_EventsLog();
6287
6284
  });
6288
6285
 
6289
- // src/Items/ItemsCommandUtils.ts
6290
- function mapItemsByOperation(item, getCallback) {
6291
- const items = Array.isArray(item) ? item : [item];
6292
- return items.map((item2) => {
6293
- const operation = getCallback(item2);
6294
- return { item: item2, operation };
6295
- });
6296
- }
6297
-
6298
6286
  // src/Items/Shape/ShapeCommand.ts
6299
6287
  class ShapeCommand {
6300
6288
  shape;
@@ -6325,52 +6313,73 @@ class ShapeCommand {
6325
6313
  const shape = this.shape;
6326
6314
  switch (this.operation.method) {
6327
6315
  case "setBackgroundColor":
6328
- return mapItemsByOperation(shape, (shape2) => {
6316
+ return shape.map((shape2) => {
6329
6317
  return {
6330
- ...this.operation,
6331
- backgroundColor: shape2.getBackgroundColor()
6318
+ item: shape2,
6319
+ operation: {
6320
+ ...this.operation,
6321
+ backgroundColor: shape2.getBackgroundColor()
6322
+ }
6332
6323
  };
6333
6324
  });
6334
6325
  case "setBackgroundOpacity":
6335
- return mapItemsByOperation(shape, (shape2) => {
6326
+ return shape.map((shape2) => {
6336
6327
  return {
6337
- ...this.operation,
6338
- backgroundOpacity: shape2.getBackgroundOpacity()
6328
+ item: shape2,
6329
+ operation: {
6330
+ ...this.operation,
6331
+ backgroundOpacity: shape2.getBackgroundOpacity()
6332
+ }
6339
6333
  };
6340
6334
  });
6341
6335
  case "setBorderColor":
6342
- return mapItemsByOperation(shape, (shape2) => {
6336
+ return shape.map((shape2) => {
6343
6337
  return {
6344
- ...this.operation,
6345
- borderColor: shape2.getStrokeColor()
6338
+ item: shape2,
6339
+ operation: {
6340
+ ...this.operation,
6341
+ borderColor: shape2.getStrokeColor()
6342
+ }
6346
6343
  };
6347
6344
  });
6348
6345
  case "setBorderOpacity":
6349
- return mapItemsByOperation(shape, (shape2) => {
6346
+ return shape.map((shape2) => {
6350
6347
  return {
6351
- ...this.operation,
6352
- borderOpacity: shape2.getBorderOpacity()
6348
+ item: shape2,
6349
+ operation: {
6350
+ ...this.operation,
6351
+ borderOpacity: shape2.getBorderOpacity()
6352
+ }
6353
6353
  };
6354
6354
  });
6355
6355
  case "setBorderStyle":
6356
- return mapItemsByOperation(shape, (shape2) => {
6356
+ return shape.map((shape2) => {
6357
6357
  return {
6358
- ...this.operation,
6359
- borderStyle: shape2.getBorderStyle()
6358
+ item: shape2,
6359
+ operation: {
6360
+ ...this.operation,
6361
+ borderStyle: shape2.getBorderStyle()
6362
+ }
6360
6363
  };
6361
6364
  });
6362
6365
  case "setBorderWidth":
6363
- return mapItemsByOperation(shape, (_shape) => {
6366
+ return shape.map((_shape) => {
6364
6367
  return {
6365
- ...this.operation,
6366
- borderWidth: this.operation.prevBorderWidth
6368
+ item: _shape,
6369
+ operation: {
6370
+ ...this.operation,
6371
+ borderWidth: this.operation.prevBorderWidth
6372
+ }
6367
6373
  };
6368
6374
  });
6369
6375
  case "setShapeType":
6370
- return mapItemsByOperation(shape, (shape2) => {
6376
+ return shape.map((shape2) => {
6371
6377
  return {
6372
- ...this.operation,
6373
- shapeType: shape2.getShapeType()
6378
+ item: shape2,
6379
+ operation: {
6380
+ ...this.operation,
6381
+ shapeType: shape2.getShapeType()
6382
+ }
6374
6383
  };
6375
6384
  });
6376
6385
  }
@@ -6453,78 +6462,99 @@ class TransformationCommand {
6453
6462
  });
6454
6463
  }
6455
6464
  case "translateTo":
6456
- return mapItemsByOperation(this.transformation, (transformation) => {
6465
+ return this.transformation.map((transformation) => {
6457
6466
  return {
6458
- ...this.operation,
6459
- x: transformation.getTranslation().x,
6460
- y: transformation.getTranslation().y
6467
+ item: transformation,
6468
+ operation: {
6469
+ ...this.operation,
6470
+ x: transformation.getTranslation().x,
6471
+ y: transformation.getTranslation().y
6472
+ }
6461
6473
  };
6462
6474
  });
6463
6475
  case "translateBy": {
6464
6476
  const op2 = this.operation;
6465
- return mapItemsByOperation(this.transformation, () => {
6477
+ return this.transformation.map((transformation) => {
6466
6478
  return {
6467
- ...this.operation,
6468
- x: -op2.x,
6469
- y: -op2.y
6479
+ item: transformation,
6480
+ operation: {
6481
+ ...this.operation,
6482
+ x: -op2.x,
6483
+ y: -op2.y
6484
+ }
6470
6485
  };
6471
6486
  });
6472
6487
  }
6473
6488
  case "scaleTo":
6474
6489
  case "scaleToRelativeTo": {
6475
- return mapItemsByOperation(this.transformation, (transformation) => {
6490
+ return this.transformation.map((transformation) => {
6476
6491
  return {
6477
- ...op,
6478
- x: transformation.getScale().x,
6479
- y: transformation.getScale().y
6492
+ item: transformation,
6493
+ operation: {
6494
+ ...op,
6495
+ x: transformation.getScale().x,
6496
+ y: transformation.getScale().y
6497
+ }
6480
6498
  };
6481
6499
  });
6482
6500
  }
6483
6501
  case "scaleBy":
6484
6502
  case "scaleByRelativeTo": {
6485
6503
  const op2 = this.operation;
6486
- return mapItemsByOperation(this.transformation, () => {
6504
+ return this.transformation.map((transformation) => {
6487
6505
  return {
6488
- ...op2,
6489
- x: 1 / op2.x,
6490
- y: 1 / op2.y
6506
+ item: transformation,
6507
+ operation: {
6508
+ ...op2,
6509
+ x: 1 / op2.x,
6510
+ y: 1 / op2.y
6511
+ }
6491
6512
  };
6492
6513
  });
6493
6514
  }
6494
6515
  case "scaleByTranslateBy": {
6495
6516
  const op2 = this.operation;
6496
- const scaleTransformation = mapItemsByOperation(this.transformation, () => {
6517
+ const scaleTransformation = this.transformation.map((transformation) => {
6497
6518
  const scaleX = 1 / op2.scale.x;
6498
6519
  const scaleY = 1 / op2.scale.y;
6499
6520
  const translateX = -op2.translate.x;
6500
6521
  const translateY = -op2.translate.y;
6501
6522
  return {
6502
- ...op2,
6503
- scale: {
6504
- x: scaleX,
6505
- y: scaleY
6506
- },
6507
- translate: {
6508
- x: translateX,
6509
- y: translateY
6523
+ item: transformation,
6524
+ operation: {
6525
+ ...op2,
6526
+ scale: {
6527
+ x: scaleX,
6528
+ y: scaleY
6529
+ },
6530
+ translate: {
6531
+ x: translateX,
6532
+ y: translateY
6533
+ }
6510
6534
  }
6511
6535
  };
6512
6536
  });
6513
6537
  return scaleTransformation;
6514
6538
  }
6515
6539
  case "rotateTo":
6516
- return mapItemsByOperation(this.transformation, (transformation) => {
6540
+ return this.transformation.map((transformation) => {
6517
6541
  return {
6518
- ...this.operation,
6519
- degree: transformation.getRotation()
6542
+ item: transformation,
6543
+ operation: {
6544
+ ...this.operation,
6545
+ degree: transformation.getRotation()
6546
+ }
6520
6547
  };
6521
6548
  });
6522
6549
  case "rotateBy": {
6523
6550
  const op2 = this.operation;
6524
- return mapItemsByOperation(this.transformation, () => {
6551
+ return this.transformation.map((transformation) => {
6525
6552
  return {
6526
- ...this.operation,
6527
- degree: -op2.degree
6553
+ item: transformation,
6554
+ operation: {
6555
+ ...this.operation,
6556
+ degree: -op2.degree
6557
+ }
6528
6558
  };
6529
6559
  });
6530
6560
  }
@@ -6562,23 +6592,29 @@ class TransformationCommand {
6562
6592
  }
6563
6593
  case "locked": {
6564
6594
  const op2 = this.operation;
6565
- return mapItemsByOperation(this.transformation, () => {
6595
+ return this.transformation.map((transformation) => {
6566
6596
  return {
6567
- ...op2,
6568
- item: [...op2.item],
6569
- method: "unlocked",
6570
- locked: false
6597
+ item: transformation,
6598
+ operation: {
6599
+ ...op2,
6600
+ item: [...op2.item],
6601
+ method: "unlocked",
6602
+ locked: false
6603
+ }
6571
6604
  };
6572
6605
  });
6573
6606
  }
6574
6607
  case "unlocked": {
6575
6608
  const op2 = this.operation;
6576
- return mapItemsByOperation(this.transformation, () => {
6609
+ return this.transformation.map((transformation) => {
6577
6610
  return {
6578
- ...op2,
6579
- item: [...op2.item],
6580
- method: "locked",
6581
- locked: true
6611
+ item: transformation,
6612
+ operation: {
6613
+ ...op2,
6614
+ item: [...op2.item],
6615
+ method: "locked",
6616
+ locked: true
6617
+ }
6582
6618
  };
6583
6619
  });
6584
6620
  }
@@ -7098,16 +7134,18 @@ class StickerCommand {
7098
7134
  getReverse() {
7099
7135
  switch (this.operation.method) {
7100
7136
  case "setBackgroundColor":
7101
- return mapItemsByOperation(this.sticker, (sticker) => {
7137
+ return this.sticker.map((sticker) => {
7102
7138
  return {
7103
- ...this.operation,
7104
- backgroundColor: sticker.getBackgroundColor()
7139
+ item: sticker,
7140
+ operation: {
7141
+ ...this.operation,
7142
+ backgroundColor: sticker.getBackgroundColor()
7143
+ }
7105
7144
  };
7106
7145
  });
7107
7146
  }
7108
7147
  }
7109
7148
  }
7110
- var init_StickerCommand = () => {};
7111
7149
 
7112
7150
  // src/Items/Frame/FrameCommand.ts
7113
7151
  class FrameCommand {
@@ -7133,51 +7171,68 @@ class FrameCommand {
7133
7171
  const frame = this.frame;
7134
7172
  switch (this.operation.method) {
7135
7173
  case "setBackgroundColor":
7136
- return mapItemsByOperation(frame, (frame2) => {
7174
+ return frame.map((frame2) => {
7137
7175
  return {
7138
- ...this.operation,
7139
- backgroundColor: frame2.getBackgroundColor()
7176
+ item: frame2,
7177
+ operation: {
7178
+ ...this.operation,
7179
+ backgroundColor: frame2.getBackgroundColor()
7180
+ }
7140
7181
  };
7141
7182
  });
7142
7183
  case "setCanChangeRatio":
7143
- return mapItemsByOperation(frame, (frame2) => {
7184
+ return frame.map((frame2) => {
7144
7185
  return {
7145
- ...this.operation,
7146
- canChangeRatio: frame2.getCanChangeRatio()
7186
+ item: frame2,
7187
+ operation: {
7188
+ ...this.operation,
7189
+ canChangeRatio: frame2.getCanChangeRatio()
7190
+ }
7147
7191
  };
7148
7192
  });
7149
7193
  case "setFrameType":
7150
- return mapItemsByOperation(frame, () => {
7194
+ return frame.map((frame2) => {
7151
7195
  return {
7152
- ...this.operation,
7153
- shapeType: this.operation.prevShapeType
7196
+ item: frame2,
7197
+ operation: {
7198
+ ...this.operation,
7199
+ shapeType: this.operation.prevShapeType
7200
+ }
7154
7201
  };
7155
7202
  });
7156
7203
  case "addChild":
7157
- return mapItemsByOperation(frame, (frame2) => {
7204
+ return frame.map((frame2) => {
7158
7205
  return {
7159
- ...this.operation,
7160
- children: frame2.getChildrenIds()
7206
+ item: frame2,
7207
+ operation: {
7208
+ ...this.operation,
7209
+ children: frame2.getChildrenIds()
7210
+ }
7161
7211
  };
7162
7212
  });
7163
7213
  case "removeChild":
7164
- return mapItemsByOperation(frame, (frame2) => {
7214
+ return frame.map((frame2) => {
7165
7215
  return {
7166
- ...this.operation,
7167
- children: frame2.getChildrenIds()
7216
+ item: frame2,
7217
+ operation: {
7218
+ ...this.operation,
7219
+ children: frame2.getChildrenIds()
7220
+ }
7168
7221
  };
7169
7222
  });
7170
7223
  case "addChildren":
7171
7224
  case "removeChildren":
7172
- return mapItemsByOperation(frame, (item) => {
7225
+ return frame.map((item) => {
7173
7226
  return {
7174
- ...this.operation
7227
+ item,
7228
+ operation: {
7229
+ ...this.operation
7230
+ }
7175
7231
  };
7176
7232
  });
7177
7233
  }
7178
7234
  }
7179
7235
  }
7180
- var init_FrameCommand = () => {};
7181
7236
 
7182
7237
  // src/SubjectOperation.ts
7183
7238
  class SubjectOperation {
@@ -7659,60 +7714,80 @@ class CommentCommand {
7659
7714
  const op = this.operation;
7660
7715
  switch (op.method) {
7661
7716
  case "createMessage":
7662
- return mapItemsByOperation(this.comment, (comment) => {
7717
+ return this.comment.map((comment) => {
7663
7718
  return {
7664
- ...this.operation,
7665
- message: comment.getThread()[comment.getThread().length - 1]
7719
+ item: comment,
7720
+ operation: {
7721
+ ...this.operation,
7722
+ message: comment.getThread()[comment.getThread().length - 1]
7723
+ }
7666
7724
  };
7667
7725
  });
7668
7726
  case "editMessage":
7669
- return mapItemsByOperation(this.comment, (comment) => {
7727
+ return this.comment.map((comment) => {
7670
7728
  return {
7671
- ...op,
7672
- message: comment.getThread().find((mes) => mes.id === op.message.id)
7729
+ item: comment,
7730
+ operation: {
7731
+ ...op,
7732
+ message: comment.getThread().find((mes) => mes.id === op.message.id)
7733
+ }
7673
7734
  };
7674
7735
  });
7675
7736
  case "removeMessage":
7676
- return mapItemsByOperation(this.comment, (comment) => {
7737
+ return this.comment.map((comment) => {
7677
7738
  return {
7678
- ...this.operation,
7679
- messageId: op.messageId
7739
+ item: comment,
7740
+ operation: {
7741
+ ...this.operation,
7742
+ messageId: op.messageId
7743
+ }
7680
7744
  };
7681
7745
  });
7682
7746
  case "setResolved":
7683
- return mapItemsByOperation(this.comment, (comment) => {
7747
+ return this.comment.map((comment) => {
7684
7748
  return {
7685
- ...this.operation,
7686
- resolved: comment.getResolved()
7749
+ item: comment,
7750
+ operation: {
7751
+ ...this.operation,
7752
+ resolved: comment.getResolved()
7753
+ }
7687
7754
  };
7688
7755
  });
7689
7756
  case "markMessagesAsRead":
7690
- return mapItemsByOperation(this.comment, (comment) => {
7757
+ return this.comment.map((comment) => {
7691
7758
  return {
7692
- ...this.operation,
7693
- messageIds: comment.getThread().filter((mes) => op.messageIds.includes(mes.id)).map((mes) => mes.id),
7694
- userId: op.userId
7759
+ item: comment,
7760
+ operation: {
7761
+ ...this.operation,
7762
+ messageIds: comment.getThread().filter((mes) => op.messageIds.includes(mes.id)).map((mes) => mes.id),
7763
+ userId: op.userId
7764
+ }
7695
7765
  };
7696
7766
  });
7697
7767
  case "markThreadAsUnread":
7698
7768
  case "markThreadAsRead":
7699
- return mapItemsByOperation(this.comment, (comment) => {
7769
+ return this.comment.map((comment) => {
7700
7770
  return {
7701
- ...this.operation,
7702
- userId: op.userId
7771
+ item: comment,
7772
+ operation: {
7773
+ ...this.operation,
7774
+ userId: op.userId
7775
+ }
7703
7776
  };
7704
7777
  });
7705
7778
  case "setItemToFollow":
7706
- return mapItemsByOperation(this.comment, (comment) => {
7779
+ return this.comment.map((comment) => {
7707
7780
  return {
7708
- ...this.operation,
7709
- itemId: op.itemId
7781
+ item: comment,
7782
+ operation: {
7783
+ ...this.operation,
7784
+ itemId: op.itemId
7785
+ }
7710
7786
  };
7711
7787
  });
7712
7788
  }
7713
7789
  }
7714
7790
  }
7715
- var init_CommentCommand = () => {};
7716
7791
 
7717
7792
  // src/Items/GeometricNormal.ts
7718
7793
  class GeometricNormal {
@@ -8346,16 +8421,18 @@ class LinkToCommand {
8346
8421
  getReverse() {
8347
8422
  switch (this.operation.method) {
8348
8423
  case "setLinkTo":
8349
- return mapItemsByOperation(this.linkTo, (linkTo) => {
8424
+ return this.linkTo.map((linkTo) => {
8350
8425
  return {
8351
- ...this.operation,
8352
- link: linkTo.link
8426
+ item: linkTo,
8427
+ operation: {
8428
+ ...this.operation,
8429
+ link: linkTo.link
8430
+ }
8353
8431
  };
8354
8432
  });
8355
8433
  }
8356
8434
  }
8357
8435
  }
8358
- var init_LinkToCommand = () => {};
8359
8436
 
8360
8437
  // src/Items/LinkTo/LinkTo.ts
8361
8438
  class LinkTo {
@@ -8461,7 +8538,6 @@ class LinkTo {
8461
8538
  }
8462
8539
  }
8463
8540
  var init_LinkTo = __esm(() => {
8464
- init_LinkToCommand();
8465
8541
  init_Settings();
8466
8542
  });
8467
8543
 
@@ -13507,7 +13583,6 @@ var ANONYMOUS_ID = 9999999999, Comment;
13507
13583
  var init_Comment = __esm(() => {
13508
13584
  init_Point2();
13509
13585
  init_Transformation2();
13510
- init_CommentCommand();
13511
13586
  init_Mbr2();
13512
13587
  init_Line2();
13513
13588
  init_esm();
@@ -13861,7 +13936,6 @@ var init_Comment = __esm(() => {
13861
13936
  // src/Items/Comment/index.ts
13862
13937
  var init_Comment2 = __esm(() => {
13863
13938
  init_Comment();
13864
- init_CommentCommand();
13865
13939
  });
13866
13940
 
13867
13941
  // src/Items/Group/GroupCommand.ts
@@ -13968,30 +14042,38 @@ class PlaceholderCommand {
13968
14042
  const placeholder = this.placeholder;
13969
14043
  switch (this.operation.method) {
13970
14044
  case "setBackgroundColor":
13971
- return mapItemsByOperation(placeholder, (placeholder2) => {
14045
+ return placeholder.map((placeholder2) => {
13972
14046
  return {
13973
- ...this.operation,
13974
- backgroundColor: placeholder2.getBackgroundColor()
14047
+ item: placeholder2,
14048
+ operation: {
14049
+ ...this.operation,
14050
+ backgroundColor: placeholder2.getBackgroundColor()
14051
+ }
13975
14052
  };
13976
14053
  });
13977
14054
  case "setIcon":
13978
- return mapItemsByOperation(placeholder, (placeholder2) => {
14055
+ return placeholder.map((placeholder2) => {
13979
14056
  return {
13980
- ...this.operation,
13981
- icon: placeholder2.getIcon()
14057
+ item: placeholder2,
14058
+ operation: {
14059
+ ...this.operation,
14060
+ icon: placeholder2.getIcon()
14061
+ }
13982
14062
  };
13983
14063
  });
13984
14064
  case "setMiroData":
13985
- return mapItemsByOperation(placeholder, (placeholder2) => {
14065
+ return placeholder.map((placeholder2) => {
13986
14066
  return {
13987
- ...this.operation,
13988
- miroData: placeholder2.getIcon()
14067
+ item: placeholder2,
14068
+ operation: {
14069
+ ...this.operation,
14070
+ miroData: placeholder2.getIcon()
14071
+ }
13989
14072
  };
13990
14073
  });
13991
14074
  }
13992
14075
  }
13993
14076
  }
13994
- var init_PlaceholderCommand = () => {};
13995
14077
 
13996
14078
  // src/Items/Image/ImageCommand.ts
13997
14079
  class ImageCommand {
@@ -14229,11 +14311,7 @@ var init_CreateCommand = __esm(() => {
14229
14311
  init_EventsCommand();
14230
14312
  init_ConnectorCommand();
14231
14313
  init_DrawingCommand();
14232
- init_StickerCommand();
14233
- init_FrameCommand();
14234
14314
  init_Comment2();
14235
- init_LinkToCommand();
14236
- init_PlaceholderCommand();
14237
14315
  init_Command();
14238
14316
  itemCommandFactories = {
14239
14317
  Sticker: createStickerCommand,
@@ -28281,7 +28359,7 @@ function normalizeBoardSubscriptionCompletedMsg(data) {
28281
28359
  eventsSinceLastSnapshot: exports_external.array(SocketSyncEventSchema).parse(parsed.eventsSinceLastSnapshot)
28282
28360
  });
28283
28361
  }
28284
- 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;
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;
28285
28363
  var init_socketContract = __esm(() => {
28286
28364
  init_zod();
28287
28365
  StringOrNumberSchema = exports_external.union([exports_external.string(), exports_external.number()]);
@@ -29270,11 +29348,6 @@ var init_socketContract = __esm(() => {
29270
29348
  accessMode: exports_external.enum(accessModeValues),
29271
29349
  isWsToken: exports_external.literal(true)
29272
29350
  }).strict();
29273
- TemplateWsHandshakeJwtPayloadSchema = exports_external.object({
29274
- templateId: exports_external.string(),
29275
- connectionType: exports_external.literal("template"),
29276
- isWsToken: exports_external.literal(true)
29277
- }).strict();
29278
29351
  BoardConnectResponseSchema = exports_external.object({
29279
29352
  wsUrl: exports_external.string(),
29280
29353
  jwt: exports_external.string(),
@@ -29282,11 +29355,6 @@ var init_socketContract = __esm(() => {
29282
29355
  sessionId: exports_external.string(),
29283
29356
  accessMode: exports_external.enum(accessModeValues)
29284
29357
  }).strict();
29285
- TemplateConnectResponseSchema = exports_external.object({
29286
- wsUrl: exports_external.string(),
29287
- jwt: exports_external.string(),
29288
- userId: exports_external.string()
29289
- }).strict();
29290
29358
  });
29291
29359
 
29292
29360
  // src/Events/MessageRouter/createMessageRouter.ts
@@ -60893,7 +60961,6 @@ var init_Sticker = __esm(() => {
60893
60961
  init_Transformation();
60894
60962
  init_getResizeMatrix();
60895
60963
  init_RichText();
60896
- init_StickerCommand();
60897
60964
  init_StickerOperation();
60898
60965
  init_LinkTo();
60899
60966
  init_SessionStorage();
@@ -62145,7 +62212,6 @@ var init_Frame = __esm(() => {
62145
62212
  init_RichText();
62146
62213
  init_Matrix();
62147
62214
  init_Basic();
62148
- init_FrameCommand();
62149
62215
  init_exportBoardSnapshot();
62150
62216
  init_LinkTo();
62151
62217
  init_HTMLRender();
@@ -62675,7 +62741,6 @@ var init_Frame = __esm(() => {
62675
62741
  // src/Items/Frame/index.ts
62676
62742
  var init_Frame2 = __esm(() => {
62677
62743
  init_Frame();
62678
- init_FrameCommand();
62679
62744
  init_FrameData();
62680
62745
  init_FrameData();
62681
62746
  init_Basic();
@@ -71885,7 +71950,6 @@ var init_Placeholder2 = __esm(() => {
71885
71950
  init_Shape2();
71886
71951
  init_Path();
71887
71952
  init_Transformation();
71888
- init_PlaceholderCommand();
71889
71953
  init_getResizeMatrix();
71890
71954
  init_BaseItem();
71891
71955
  Placeholder2 = class Placeholder2 extends BaseItem {
@@ -72798,10 +72862,10 @@ function normalizeForBoard(msg) {
72798
72862
  }
72799
72863
  function handleSeqNumApplication(initialSequenceNumber, board) {
72800
72864
  const { log } = board.events;
72865
+ const sessionId = getConnectionSessionId(board.events.connection);
72866
+ const authorUserId = getConnectionAuthorUserId(board.events.connection);
72867
+ log.refreshUnconfirmedIdentity(sessionId, authorUserId);
72801
72868
  log.currentSequenceNumber = initialSequenceNumber;
72802
- if (log.pendingEvent) {
72803
- log.pendingEvent.sequenceNumber = log.currentSequenceNumber;
72804
- }
72805
72869
  startIntervals(board);
72806
72870
  }
72807
72871
  function startIntervals(board) {