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.
@@ -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
 
@@ -13487,7 +13563,6 @@ var ANONYMOUS_ID = 9999999999, Comment;
13487
13563
  var init_Comment = __esm(() => {
13488
13564
  init_Point2();
13489
13565
  init_Transformation2();
13490
- init_CommentCommand();
13491
13566
  init_Mbr2();
13492
13567
  init_Line2();
13493
13568
  init_esm_browser();
@@ -13841,7 +13916,6 @@ var init_Comment = __esm(() => {
13841
13916
  // src/Items/Comment/index.ts
13842
13917
  var init_Comment2 = __esm(() => {
13843
13918
  init_Comment();
13844
- init_CommentCommand();
13845
13919
  });
13846
13920
 
13847
13921
  // src/Items/Group/GroupCommand.ts
@@ -13948,30 +14022,38 @@ class PlaceholderCommand {
13948
14022
  const placeholder = this.placeholder;
13949
14023
  switch (this.operation.method) {
13950
14024
  case "setBackgroundColor":
13951
- return mapItemsByOperation(placeholder, (placeholder2) => {
14025
+ return placeholder.map((placeholder2) => {
13952
14026
  return {
13953
- ...this.operation,
13954
- backgroundColor: placeholder2.getBackgroundColor()
14027
+ item: placeholder2,
14028
+ operation: {
14029
+ ...this.operation,
14030
+ backgroundColor: placeholder2.getBackgroundColor()
14031
+ }
13955
14032
  };
13956
14033
  });
13957
14034
  case "setIcon":
13958
- return mapItemsByOperation(placeholder, (placeholder2) => {
14035
+ return placeholder.map((placeholder2) => {
13959
14036
  return {
13960
- ...this.operation,
13961
- icon: placeholder2.getIcon()
14037
+ item: placeholder2,
14038
+ operation: {
14039
+ ...this.operation,
14040
+ icon: placeholder2.getIcon()
14041
+ }
13962
14042
  };
13963
14043
  });
13964
14044
  case "setMiroData":
13965
- return mapItemsByOperation(placeholder, (placeholder2) => {
14045
+ return placeholder.map((placeholder2) => {
13966
14046
  return {
13967
- ...this.operation,
13968
- miroData: placeholder2.getIcon()
14047
+ item: placeholder2,
14048
+ operation: {
14049
+ ...this.operation,
14050
+ miroData: placeholder2.getIcon()
14051
+ }
13969
14052
  };
13970
14053
  });
13971
14054
  }
13972
14055
  }
13973
14056
  }
13974
- var init_PlaceholderCommand = () => {};
13975
14057
 
13976
14058
  // src/Items/Image/ImageCommand.ts
13977
14059
  class ImageCommand {
@@ -14209,11 +14291,7 @@ var init_CreateCommand = __esm(() => {
14209
14291
  init_EventsCommand();
14210
14292
  init_ConnectorCommand();
14211
14293
  init_DrawingCommand();
14212
- init_StickerCommand();
14213
- init_FrameCommand();
14214
14294
  init_Comment2();
14215
- init_LinkToCommand();
14216
- init_PlaceholderCommand();
14217
14295
  init_Command();
14218
14296
  itemCommandFactories = {
14219
14297
  Sticker: createStickerCommand,
@@ -28261,7 +28339,7 @@ function normalizeBoardSubscriptionCompletedMsg(data) {
28261
28339
  eventsSinceLastSnapshot: exports_external.array(SocketSyncEventSchema).parse(parsed.eventsSinceLastSnapshot)
28262
28340
  });
28263
28341
  }
28264
- 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;
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;
28265
28343
  var init_socketContract = __esm(() => {
28266
28344
  init_zod();
28267
28345
  StringOrNumberSchema = exports_external.union([exports_external.string(), exports_external.number()]);
@@ -29250,11 +29328,6 @@ var init_socketContract = __esm(() => {
29250
29328
  accessMode: exports_external.enum(accessModeValues),
29251
29329
  isWsToken: exports_external.literal(true)
29252
29330
  }).strict();
29253
- TemplateWsHandshakeJwtPayloadSchema = exports_external.object({
29254
- templateId: exports_external.string(),
29255
- connectionType: exports_external.literal("template"),
29256
- isWsToken: exports_external.literal(true)
29257
- }).strict();
29258
29331
  BoardConnectResponseSchema = exports_external.object({
29259
29332
  wsUrl: exports_external.string(),
29260
29333
  jwt: exports_external.string(),
@@ -29262,11 +29335,6 @@ var init_socketContract = __esm(() => {
29262
29335
  sessionId: exports_external.string(),
29263
29336
  accessMode: exports_external.enum(accessModeValues)
29264
29337
  }).strict();
29265
- TemplateConnectResponseSchema = exports_external.object({
29266
- wsUrl: exports_external.string(),
29267
- jwt: exports_external.string(),
29268
- userId: exports_external.string()
29269
- }).strict();
29270
29338
  });
29271
29339
 
29272
29340
  // src/Events/MessageRouter/createMessageRouter.ts
@@ -58473,7 +58541,6 @@ var init_Sticker = __esm(() => {
58473
58541
  init_Transformation();
58474
58542
  init_getResizeMatrix();
58475
58543
  init_RichText();
58476
- init_StickerCommand();
58477
58544
  init_StickerOperation();
58478
58545
  init_LinkTo();
58479
58546
  init_SessionStorage();
@@ -59725,7 +59792,6 @@ var init_Frame = __esm(() => {
59725
59792
  init_RichText();
59726
59793
  init_Matrix();
59727
59794
  init_Basic();
59728
- init_FrameCommand();
59729
59795
  init_exportBoardSnapshot();
59730
59796
  init_LinkTo();
59731
59797
  init_HTMLRender();
@@ -60255,7 +60321,6 @@ var init_Frame = __esm(() => {
60255
60321
  // src/Items/Frame/index.ts
60256
60322
  var init_Frame2 = __esm(() => {
60257
60323
  init_Frame();
60258
- init_FrameCommand();
60259
60324
  init_FrameData();
60260
60325
  init_FrameData();
60261
60326
  init_Basic();
@@ -69465,7 +69530,6 @@ var init_Placeholder2 = __esm(() => {
69465
69530
  init_Shape2();
69466
69531
  init_Path();
69467
69532
  init_Transformation();
69468
- init_PlaceholderCommand();
69469
69533
  init_getResizeMatrix();
69470
69534
  init_BaseItem();
69471
69535
  Placeholder2 = class Placeholder2 extends BaseItem {
@@ -70378,10 +70442,10 @@ function normalizeForBoard(msg) {
70378
70442
  }
70379
70443
  function handleSeqNumApplication(initialSequenceNumber, board) {
70380
70444
  const { log } = board.events;
70445
+ const sessionId = getConnectionSessionId(board.events.connection);
70446
+ const authorUserId = getConnectionAuthorUserId(board.events.connection);
70447
+ log.refreshUnconfirmedIdentity(sessionId, authorUserId);
70381
70448
  log.currentSequenceNumber = initialSequenceNumber;
70382
- if (log.pendingEvent) {
70383
- log.pendingEvent.sequenceNumber = log.currentSequenceNumber;
70384
- }
70385
70449
  startIntervals(board);
70386
70450
  }
70387
70451
  function startIntervals(board) {