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/esm/index.js CHANGED
@@ -3827,24 +3827,6 @@ var init_Settings = __esm(() => {
3827
3827
  HIGHLIGHTER_DEFAULT_COLOR: "rgba(0, 158, 41, 0.5)",
3828
3828
  ERASER_DEFAULT_COLOR: "rgba(222, 224, 227, 0.5)",
3829
3829
  ERASER_MAX_LINE_LENGTH: 12,
3830
- TEMPLATE_CATEGORIES: [
3831
- "Research & Analysis",
3832
- "Diagramming",
3833
- "Meeting & Workshop",
3834
- "Strategy & Planning",
3835
- "Brainstorming",
3836
- "Agile Workflow",
3837
- "Icebreaker & Game",
3838
- "Education"
3839
- ],
3840
- TEMPLATE_LANGUAGES: [
3841
- { value: "ru", label: "Russian" },
3842
- { value: "en", label: "English" },
3843
- { value: "de", label: "German" },
3844
- { value: "es", label: "Spanish" },
3845
- { value: "fr", label: "French" },
3846
- { value: "zh", label: "Chinese" }
3847
- ],
3848
3830
  CANVAS_BG_COLOR: "#f6f6f6",
3849
3831
  URL_REGEX: /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i,
3850
3832
  AI_NODE_DEFAULT_NODE_WIDTH: 640,
@@ -6234,6 +6216,21 @@ class EventsLog {
6234
6216
  }
6235
6217
  return records[records.length - 1].event;
6236
6218
  }
6219
+ refreshUnconfirmedIdentity(sessionId, authorUserId) {
6220
+ const records = [
6221
+ ...this.list.getRecordsToSend(),
6222
+ ...this.list.getNewRecords()
6223
+ ];
6224
+ for (const record of records) {
6225
+ record.event.body.sessionId = sessionId;
6226
+ record.event.body.userId = sessionId;
6227
+ record.event.body.authorUserId = authorUserId;
6228
+ }
6229
+ if (this.pendingEvent) {
6230
+ this.pendingEvent = null;
6231
+ this.firstSentTime = null;
6232
+ }
6233
+ }
6237
6234
  }
6238
6235
  function createEventsLog(board, commandFactory) {
6239
6236
  return new EventsLog(board, commandFactory);
@@ -6251,15 +6248,6 @@ var init_Log = __esm(() => {
6251
6248
  init_EventsLog();
6252
6249
  });
6253
6250
 
6254
- // src/Items/ItemsCommandUtils.ts
6255
- function mapItemsByOperation(item, getCallback) {
6256
- const items = Array.isArray(item) ? item : [item];
6257
- return items.map((item2) => {
6258
- const operation = getCallback(item2);
6259
- return { item: item2, operation };
6260
- });
6261
- }
6262
-
6263
6251
  // src/Items/Shape/ShapeCommand.ts
6264
6252
  class ShapeCommand {
6265
6253
  shape;
@@ -6290,52 +6278,73 @@ class ShapeCommand {
6290
6278
  const shape = this.shape;
6291
6279
  switch (this.operation.method) {
6292
6280
  case "setBackgroundColor":
6293
- return mapItemsByOperation(shape, (shape2) => {
6281
+ return shape.map((shape2) => {
6294
6282
  return {
6295
- ...this.operation,
6296
- backgroundColor: shape2.getBackgroundColor()
6283
+ item: shape2,
6284
+ operation: {
6285
+ ...this.operation,
6286
+ backgroundColor: shape2.getBackgroundColor()
6287
+ }
6297
6288
  };
6298
6289
  });
6299
6290
  case "setBackgroundOpacity":
6300
- return mapItemsByOperation(shape, (shape2) => {
6291
+ return shape.map((shape2) => {
6301
6292
  return {
6302
- ...this.operation,
6303
- backgroundOpacity: shape2.getBackgroundOpacity()
6293
+ item: shape2,
6294
+ operation: {
6295
+ ...this.operation,
6296
+ backgroundOpacity: shape2.getBackgroundOpacity()
6297
+ }
6304
6298
  };
6305
6299
  });
6306
6300
  case "setBorderColor":
6307
- return mapItemsByOperation(shape, (shape2) => {
6301
+ return shape.map((shape2) => {
6308
6302
  return {
6309
- ...this.operation,
6310
- borderColor: shape2.getStrokeColor()
6303
+ item: shape2,
6304
+ operation: {
6305
+ ...this.operation,
6306
+ borderColor: shape2.getStrokeColor()
6307
+ }
6311
6308
  };
6312
6309
  });
6313
6310
  case "setBorderOpacity":
6314
- return mapItemsByOperation(shape, (shape2) => {
6311
+ return shape.map((shape2) => {
6315
6312
  return {
6316
- ...this.operation,
6317
- borderOpacity: shape2.getBorderOpacity()
6313
+ item: shape2,
6314
+ operation: {
6315
+ ...this.operation,
6316
+ borderOpacity: shape2.getBorderOpacity()
6317
+ }
6318
6318
  };
6319
6319
  });
6320
6320
  case "setBorderStyle":
6321
- return mapItemsByOperation(shape, (shape2) => {
6321
+ return shape.map((shape2) => {
6322
6322
  return {
6323
- ...this.operation,
6324
- borderStyle: shape2.getBorderStyle()
6323
+ item: shape2,
6324
+ operation: {
6325
+ ...this.operation,
6326
+ borderStyle: shape2.getBorderStyle()
6327
+ }
6325
6328
  };
6326
6329
  });
6327
6330
  case "setBorderWidth":
6328
- return mapItemsByOperation(shape, (_shape) => {
6331
+ return shape.map((_shape) => {
6329
6332
  return {
6330
- ...this.operation,
6331
- borderWidth: this.operation.prevBorderWidth
6333
+ item: _shape,
6334
+ operation: {
6335
+ ...this.operation,
6336
+ borderWidth: this.operation.prevBorderWidth
6337
+ }
6332
6338
  };
6333
6339
  });
6334
6340
  case "setShapeType":
6335
- return mapItemsByOperation(shape, (shape2) => {
6341
+ return shape.map((shape2) => {
6336
6342
  return {
6337
- ...this.operation,
6338
- shapeType: shape2.getShapeType()
6343
+ item: shape2,
6344
+ operation: {
6345
+ ...this.operation,
6346
+ shapeType: shape2.getShapeType()
6347
+ }
6339
6348
  };
6340
6349
  });
6341
6350
  }
@@ -6418,78 +6427,99 @@ class TransformationCommand {
6418
6427
  });
6419
6428
  }
6420
6429
  case "translateTo":
6421
- return mapItemsByOperation(this.transformation, (transformation) => {
6430
+ return this.transformation.map((transformation) => {
6422
6431
  return {
6423
- ...this.operation,
6424
- x: transformation.getTranslation().x,
6425
- y: transformation.getTranslation().y
6432
+ item: transformation,
6433
+ operation: {
6434
+ ...this.operation,
6435
+ x: transformation.getTranslation().x,
6436
+ y: transformation.getTranslation().y
6437
+ }
6426
6438
  };
6427
6439
  });
6428
6440
  case "translateBy": {
6429
6441
  const op2 = this.operation;
6430
- return mapItemsByOperation(this.transformation, () => {
6442
+ return this.transformation.map((transformation) => {
6431
6443
  return {
6432
- ...this.operation,
6433
- x: -op2.x,
6434
- y: -op2.y
6444
+ item: transformation,
6445
+ operation: {
6446
+ ...this.operation,
6447
+ x: -op2.x,
6448
+ y: -op2.y
6449
+ }
6435
6450
  };
6436
6451
  });
6437
6452
  }
6438
6453
  case "scaleTo":
6439
6454
  case "scaleToRelativeTo": {
6440
- return mapItemsByOperation(this.transformation, (transformation) => {
6455
+ return this.transformation.map((transformation) => {
6441
6456
  return {
6442
- ...op,
6443
- x: transformation.getScale().x,
6444
- y: transformation.getScale().y
6457
+ item: transformation,
6458
+ operation: {
6459
+ ...op,
6460
+ x: transformation.getScale().x,
6461
+ y: transformation.getScale().y
6462
+ }
6445
6463
  };
6446
6464
  });
6447
6465
  }
6448
6466
  case "scaleBy":
6449
6467
  case "scaleByRelativeTo": {
6450
6468
  const op2 = this.operation;
6451
- return mapItemsByOperation(this.transformation, () => {
6469
+ return this.transformation.map((transformation) => {
6452
6470
  return {
6453
- ...op2,
6454
- x: 1 / op2.x,
6455
- y: 1 / op2.y
6471
+ item: transformation,
6472
+ operation: {
6473
+ ...op2,
6474
+ x: 1 / op2.x,
6475
+ y: 1 / op2.y
6476
+ }
6456
6477
  };
6457
6478
  });
6458
6479
  }
6459
6480
  case "scaleByTranslateBy": {
6460
6481
  const op2 = this.operation;
6461
- const scaleTransformation = mapItemsByOperation(this.transformation, () => {
6482
+ const scaleTransformation = this.transformation.map((transformation) => {
6462
6483
  const scaleX = 1 / op2.scale.x;
6463
6484
  const scaleY = 1 / op2.scale.y;
6464
6485
  const translateX = -op2.translate.x;
6465
6486
  const translateY = -op2.translate.y;
6466
6487
  return {
6467
- ...op2,
6468
- scale: {
6469
- x: scaleX,
6470
- y: scaleY
6471
- },
6472
- translate: {
6473
- x: translateX,
6474
- y: translateY
6488
+ item: transformation,
6489
+ operation: {
6490
+ ...op2,
6491
+ scale: {
6492
+ x: scaleX,
6493
+ y: scaleY
6494
+ },
6495
+ translate: {
6496
+ x: translateX,
6497
+ y: translateY
6498
+ }
6475
6499
  }
6476
6500
  };
6477
6501
  });
6478
6502
  return scaleTransformation;
6479
6503
  }
6480
6504
  case "rotateTo":
6481
- return mapItemsByOperation(this.transformation, (transformation) => {
6505
+ return this.transformation.map((transformation) => {
6482
6506
  return {
6483
- ...this.operation,
6484
- degree: transformation.getRotation()
6507
+ item: transformation,
6508
+ operation: {
6509
+ ...this.operation,
6510
+ degree: transformation.getRotation()
6511
+ }
6485
6512
  };
6486
6513
  });
6487
6514
  case "rotateBy": {
6488
6515
  const op2 = this.operation;
6489
- return mapItemsByOperation(this.transformation, () => {
6516
+ return this.transformation.map((transformation) => {
6490
6517
  return {
6491
- ...this.operation,
6492
- degree: -op2.degree
6518
+ item: transformation,
6519
+ operation: {
6520
+ ...this.operation,
6521
+ degree: -op2.degree
6522
+ }
6493
6523
  };
6494
6524
  });
6495
6525
  }
@@ -6527,23 +6557,29 @@ class TransformationCommand {
6527
6557
  }
6528
6558
  case "locked": {
6529
6559
  const op2 = this.operation;
6530
- return mapItemsByOperation(this.transformation, () => {
6560
+ return this.transformation.map((transformation) => {
6531
6561
  return {
6532
- ...op2,
6533
- item: [...op2.item],
6534
- method: "unlocked",
6535
- locked: false
6562
+ item: transformation,
6563
+ operation: {
6564
+ ...op2,
6565
+ item: [...op2.item],
6566
+ method: "unlocked",
6567
+ locked: false
6568
+ }
6536
6569
  };
6537
6570
  });
6538
6571
  }
6539
6572
  case "unlocked": {
6540
6573
  const op2 = this.operation;
6541
- return mapItemsByOperation(this.transformation, () => {
6574
+ return this.transformation.map((transformation) => {
6542
6575
  return {
6543
- ...op2,
6544
- item: [...op2.item],
6545
- method: "locked",
6546
- locked: true
6576
+ item: transformation,
6577
+ operation: {
6578
+ ...op2,
6579
+ item: [...op2.item],
6580
+ method: "locked",
6581
+ locked: true
6582
+ }
6547
6583
  };
6548
6584
  });
6549
6585
  }
@@ -7063,16 +7099,18 @@ class StickerCommand {
7063
7099
  getReverse() {
7064
7100
  switch (this.operation.method) {
7065
7101
  case "setBackgroundColor":
7066
- return mapItemsByOperation(this.sticker, (sticker) => {
7102
+ return this.sticker.map((sticker) => {
7067
7103
  return {
7068
- ...this.operation,
7069
- backgroundColor: sticker.getBackgroundColor()
7104
+ item: sticker,
7105
+ operation: {
7106
+ ...this.operation,
7107
+ backgroundColor: sticker.getBackgroundColor()
7108
+ }
7070
7109
  };
7071
7110
  });
7072
7111
  }
7073
7112
  }
7074
7113
  }
7075
- var init_StickerCommand = () => {};
7076
7114
 
7077
7115
  // src/Items/Frame/FrameCommand.ts
7078
7116
  class FrameCommand {
@@ -7098,51 +7136,68 @@ class FrameCommand {
7098
7136
  const frame = this.frame;
7099
7137
  switch (this.operation.method) {
7100
7138
  case "setBackgroundColor":
7101
- return mapItemsByOperation(frame, (frame2) => {
7139
+ return frame.map((frame2) => {
7102
7140
  return {
7103
- ...this.operation,
7104
- backgroundColor: frame2.getBackgroundColor()
7141
+ item: frame2,
7142
+ operation: {
7143
+ ...this.operation,
7144
+ backgroundColor: frame2.getBackgroundColor()
7145
+ }
7105
7146
  };
7106
7147
  });
7107
7148
  case "setCanChangeRatio":
7108
- return mapItemsByOperation(frame, (frame2) => {
7149
+ return frame.map((frame2) => {
7109
7150
  return {
7110
- ...this.operation,
7111
- canChangeRatio: frame2.getCanChangeRatio()
7151
+ item: frame2,
7152
+ operation: {
7153
+ ...this.operation,
7154
+ canChangeRatio: frame2.getCanChangeRatio()
7155
+ }
7112
7156
  };
7113
7157
  });
7114
7158
  case "setFrameType":
7115
- return mapItemsByOperation(frame, () => {
7159
+ return frame.map((frame2) => {
7116
7160
  return {
7117
- ...this.operation,
7118
- shapeType: this.operation.prevShapeType
7161
+ item: frame2,
7162
+ operation: {
7163
+ ...this.operation,
7164
+ shapeType: this.operation.prevShapeType
7165
+ }
7119
7166
  };
7120
7167
  });
7121
7168
  case "addChild":
7122
- return mapItemsByOperation(frame, (frame2) => {
7169
+ return frame.map((frame2) => {
7123
7170
  return {
7124
- ...this.operation,
7125
- children: frame2.getChildrenIds()
7171
+ item: frame2,
7172
+ operation: {
7173
+ ...this.operation,
7174
+ children: frame2.getChildrenIds()
7175
+ }
7126
7176
  };
7127
7177
  });
7128
7178
  case "removeChild":
7129
- return mapItemsByOperation(frame, (frame2) => {
7179
+ return frame.map((frame2) => {
7130
7180
  return {
7131
- ...this.operation,
7132
- children: frame2.getChildrenIds()
7181
+ item: frame2,
7182
+ operation: {
7183
+ ...this.operation,
7184
+ children: frame2.getChildrenIds()
7185
+ }
7133
7186
  };
7134
7187
  });
7135
7188
  case "addChildren":
7136
7189
  case "removeChildren":
7137
- return mapItemsByOperation(frame, (item) => {
7190
+ return frame.map((item) => {
7138
7191
  return {
7139
- ...this.operation
7192
+ item,
7193
+ operation: {
7194
+ ...this.operation
7195
+ }
7140
7196
  };
7141
7197
  });
7142
7198
  }
7143
7199
  }
7144
7200
  }
7145
- var init_FrameCommand = () => {};
7146
7201
 
7147
7202
  // src/SubjectOperation.ts
7148
7203
  class SubjectOperation {
@@ -7624,60 +7679,80 @@ class CommentCommand {
7624
7679
  const op = this.operation;
7625
7680
  switch (op.method) {
7626
7681
  case "createMessage":
7627
- return mapItemsByOperation(this.comment, (comment) => {
7682
+ return this.comment.map((comment) => {
7628
7683
  return {
7629
- ...this.operation,
7630
- message: comment.getThread()[comment.getThread().length - 1]
7684
+ item: comment,
7685
+ operation: {
7686
+ ...this.operation,
7687
+ message: comment.getThread()[comment.getThread().length - 1]
7688
+ }
7631
7689
  };
7632
7690
  });
7633
7691
  case "editMessage":
7634
- return mapItemsByOperation(this.comment, (comment) => {
7692
+ return this.comment.map((comment) => {
7635
7693
  return {
7636
- ...op,
7637
- message: comment.getThread().find((mes) => mes.id === op.message.id)
7694
+ item: comment,
7695
+ operation: {
7696
+ ...op,
7697
+ message: comment.getThread().find((mes) => mes.id === op.message.id)
7698
+ }
7638
7699
  };
7639
7700
  });
7640
7701
  case "removeMessage":
7641
- return mapItemsByOperation(this.comment, (comment) => {
7702
+ return this.comment.map((comment) => {
7642
7703
  return {
7643
- ...this.operation,
7644
- messageId: op.messageId
7704
+ item: comment,
7705
+ operation: {
7706
+ ...this.operation,
7707
+ messageId: op.messageId
7708
+ }
7645
7709
  };
7646
7710
  });
7647
7711
  case "setResolved":
7648
- return mapItemsByOperation(this.comment, (comment) => {
7712
+ return this.comment.map((comment) => {
7649
7713
  return {
7650
- ...this.operation,
7651
- resolved: comment.getResolved()
7714
+ item: comment,
7715
+ operation: {
7716
+ ...this.operation,
7717
+ resolved: comment.getResolved()
7718
+ }
7652
7719
  };
7653
7720
  });
7654
7721
  case "markMessagesAsRead":
7655
- return mapItemsByOperation(this.comment, (comment) => {
7722
+ return this.comment.map((comment) => {
7656
7723
  return {
7657
- ...this.operation,
7658
- messageIds: comment.getThread().filter((mes) => op.messageIds.includes(mes.id)).map((mes) => mes.id),
7659
- userId: op.userId
7724
+ item: comment,
7725
+ operation: {
7726
+ ...this.operation,
7727
+ messageIds: comment.getThread().filter((mes) => op.messageIds.includes(mes.id)).map((mes) => mes.id),
7728
+ userId: op.userId
7729
+ }
7660
7730
  };
7661
7731
  });
7662
7732
  case "markThreadAsUnread":
7663
7733
  case "markThreadAsRead":
7664
- return mapItemsByOperation(this.comment, (comment) => {
7734
+ return this.comment.map((comment) => {
7665
7735
  return {
7666
- ...this.operation,
7667
- userId: op.userId
7736
+ item: comment,
7737
+ operation: {
7738
+ ...this.operation,
7739
+ userId: op.userId
7740
+ }
7668
7741
  };
7669
7742
  });
7670
7743
  case "setItemToFollow":
7671
- return mapItemsByOperation(this.comment, (comment) => {
7744
+ return this.comment.map((comment) => {
7672
7745
  return {
7673
- ...this.operation,
7674
- itemId: op.itemId
7746
+ item: comment,
7747
+ operation: {
7748
+ ...this.operation,
7749
+ itemId: op.itemId
7750
+ }
7675
7751
  };
7676
7752
  });
7677
7753
  }
7678
7754
  }
7679
7755
  }
7680
- var init_CommentCommand = () => {};
7681
7756
 
7682
7757
  // src/Items/GeometricNormal.ts
7683
7758
  class GeometricNormal {
@@ -8311,16 +8386,18 @@ class LinkToCommand {
8311
8386
  getReverse() {
8312
8387
  switch (this.operation.method) {
8313
8388
  case "setLinkTo":
8314
- return mapItemsByOperation(this.linkTo, (linkTo) => {
8389
+ return this.linkTo.map((linkTo) => {
8315
8390
  return {
8316
- ...this.operation,
8317
- link: linkTo.link
8391
+ item: linkTo,
8392
+ operation: {
8393
+ ...this.operation,
8394
+ link: linkTo.link
8395
+ }
8318
8396
  };
8319
8397
  });
8320
8398
  }
8321
8399
  }
8322
8400
  }
8323
- var init_LinkToCommand = () => {};
8324
8401
 
8325
8402
  // src/Items/LinkTo/LinkTo.ts
8326
8403
  class LinkTo {
@@ -8426,7 +8503,6 @@ class LinkTo {
8426
8503
  }
8427
8504
  }
8428
8505
  var init_LinkTo = __esm(() => {
8429
- init_LinkToCommand();
8430
8506
  init_Settings();
8431
8507
  });
8432
8508
 
@@ -13452,7 +13528,6 @@ var ANONYMOUS_ID = 9999999999, Comment;
13452
13528
  var init_Comment = __esm(() => {
13453
13529
  init_Point2();
13454
13530
  init_Transformation2();
13455
- init_CommentCommand();
13456
13531
  init_Mbr2();
13457
13532
  init_Line2();
13458
13533
  init_esm_browser();
@@ -13806,7 +13881,6 @@ var init_Comment = __esm(() => {
13806
13881
  // src/Items/Comment/index.ts
13807
13882
  var init_Comment2 = __esm(() => {
13808
13883
  init_Comment();
13809
- init_CommentCommand();
13810
13884
  });
13811
13885
 
13812
13886
  // src/Items/Group/GroupCommand.ts
@@ -13913,30 +13987,38 @@ class PlaceholderCommand {
13913
13987
  const placeholder = this.placeholder;
13914
13988
  switch (this.operation.method) {
13915
13989
  case "setBackgroundColor":
13916
- return mapItemsByOperation(placeholder, (placeholder2) => {
13990
+ return placeholder.map((placeholder2) => {
13917
13991
  return {
13918
- ...this.operation,
13919
- backgroundColor: placeholder2.getBackgroundColor()
13992
+ item: placeholder2,
13993
+ operation: {
13994
+ ...this.operation,
13995
+ backgroundColor: placeholder2.getBackgroundColor()
13996
+ }
13920
13997
  };
13921
13998
  });
13922
13999
  case "setIcon":
13923
- return mapItemsByOperation(placeholder, (placeholder2) => {
14000
+ return placeholder.map((placeholder2) => {
13924
14001
  return {
13925
- ...this.operation,
13926
- icon: placeholder2.getIcon()
14002
+ item: placeholder2,
14003
+ operation: {
14004
+ ...this.operation,
14005
+ icon: placeholder2.getIcon()
14006
+ }
13927
14007
  };
13928
14008
  });
13929
14009
  case "setMiroData":
13930
- return mapItemsByOperation(placeholder, (placeholder2) => {
14010
+ return placeholder.map((placeholder2) => {
13931
14011
  return {
13932
- ...this.operation,
13933
- miroData: placeholder2.getIcon()
14012
+ item: placeholder2,
14013
+ operation: {
14014
+ ...this.operation,
14015
+ miroData: placeholder2.getIcon()
14016
+ }
13934
14017
  };
13935
14018
  });
13936
14019
  }
13937
14020
  }
13938
14021
  }
13939
- var init_PlaceholderCommand = () => {};
13940
14022
 
13941
14023
  // src/Items/Image/ImageCommand.ts
13942
14024
  class ImageCommand {
@@ -14174,11 +14256,7 @@ var init_CreateCommand = __esm(() => {
14174
14256
  init_EventsCommand();
14175
14257
  init_ConnectorCommand();
14176
14258
  init_DrawingCommand();
14177
- init_StickerCommand();
14178
- init_FrameCommand();
14179
14259
  init_Comment2();
14180
- init_LinkToCommand();
14181
- init_PlaceholderCommand();
14182
14260
  init_Command();
14183
14261
  itemCommandFactories = {
14184
14262
  Sticker: createStickerCommand,
@@ -28226,7 +28304,7 @@ function normalizeBoardSubscriptionCompletedMsg(data) {
28226
28304
  eventsSinceLastSnapshot: exports_external.array(SocketSyncEventSchema).parse(parsed.eventsSinceLastSnapshot)
28227
28305
  });
28228
28306
  }
28229
- 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;
28307
+ var StringOrNumberSchema, StringArraySchema, UnknownRecordSchema, TimestampSchema, accessModeValues, AccessModeSchema, OptionalTransportTimestampSchema, MatrixDataSchema, ApplyMatrixItemSchema, UndoOperationSchema, RedoOperationSchema, AddSingleItemBoardOperationSchema, AddManyItemsBoardOperationSchema, BoardOperationSchemas, TranslateOperationSchema, ScaleOperationSchema, RotateOperationSchema, ScaleRelativeToOperationSchema, ScaleByTranslateByOperationSchema, ApplyMatrixOperationSchema, TransformManyItemsOperationSchema, TransformationOperationSchemas, ShapeOperationSchemas, StickerOperationSchema, RichTextWholeTextOperationSchema, RichTextSelectionOperationSchema, RichTextGroupEditOperationSchema, ConnectorOperationSchemas, DrawingOperationSchemas, FrameOperationSchemas, LinkToOperationSchema, PlaceholderOperationSchemas, GroupOperationSchemas, CommentOperationSchemas, ImageOperationSchema, VideoOperationSchema, AudioOperationSchema, SocketOperationSchema, SocketBoardEventBodySchema, SocketBoardEventPackBodySchema, SocketBoardEventSchema, SocketBoardEventPackSchema, SocketSyncBoardEventSchema, SocketSyncBoardEventPackSchema, SocketSyncEventSchema, PointerMovePresenceEventSchema, SelectionPresenceEventSchema, SetUserColorPresenceEventSchema, DrawSelectPresenceEventSchema, CancelDrawSelectPresenceEventSchema, CameraPresenceEventSchema, PingPresenceEventSchema, BringToMePresenceEventSchema, StopFollowingPresenceEventSchema, FollowPresenceEventSchema, PresenceEventSchema, TextActionSchema, UserRequestAiChatEventSchema, GenerateImageRequestAiChatEventSchema, GenerateImageResponseAiChatEventSchema, GenerateAudioRequestAiChatEventSchema, GenerateAudioResponseAiChatEventSchema, StopGenerationAiChatEventSchema, ChatChunkAiChatEventSchema, AiChatEventSchema, SocketBoardSnapshotSchema, NormalizedBoardSnapshotSchema, AuthMsgSchema, LogoutMsgSchema, InvalidateRightsMsgSchema, GetModeMsgSchema, SubscribeMsgSchema, UnsubscribeMsgSchema, ErrorMsgSchema, VersionCheckMsgSchema, AuthConfirmationMsgSchema, PingMsgSchema, PongMsgSchema, BoardAccessDeniedMsgSchema, BoardSubscriptionCompletedMsgSchema, NormalizedBoardSubscriptionCompletedMsgSchema, BoardSnapshotMsgSchema, AiChatMsgSchema, BoardEventMsgSchema, ConfirmationMsgSchema, ModeMsgSchema, SnapshotRequestMsgSchema, UserJoinMsgSchema, PresenceEventMsgSchema, EventsMsgSchema, SocketMsgSchema, BoardWsHandshakeJwtPayloadSchema, BoardConnectResponseSchema;
28230
28308
  var init_socketContract = __esm(() => {
28231
28309
  init_zod();
28232
28310
  StringOrNumberSchema = exports_external.union([exports_external.string(), exports_external.number()]);
@@ -29215,11 +29293,6 @@ var init_socketContract = __esm(() => {
29215
29293
  accessMode: exports_external.enum(accessModeValues),
29216
29294
  isWsToken: exports_external.literal(true)
29217
29295
  }).strict();
29218
- TemplateWsHandshakeJwtPayloadSchema = exports_external.object({
29219
- templateId: exports_external.string(),
29220
- connectionType: exports_external.literal("template"),
29221
- isWsToken: exports_external.literal(true)
29222
- }).strict();
29223
29296
  BoardConnectResponseSchema = exports_external.object({
29224
29297
  wsUrl: exports_external.string(),
29225
29298
  jwt: exports_external.string(),
@@ -29227,11 +29300,6 @@ var init_socketContract = __esm(() => {
29227
29300
  sessionId: exports_external.string(),
29228
29301
  accessMode: exports_external.enum(accessModeValues)
29229
29302
  }).strict();
29230
- TemplateConnectResponseSchema = exports_external.object({
29231
- wsUrl: exports_external.string(),
29232
- jwt: exports_external.string(),
29233
- userId: exports_external.string()
29234
- }).strict();
29235
29303
  });
29236
29304
 
29237
29305
  // src/Events/MessageRouter/createMessageRouter.ts
@@ -58404,7 +58472,6 @@ var init_Sticker = __esm(() => {
58404
58472
  init_Transformation();
58405
58473
  init_getResizeMatrix();
58406
58474
  init_RichText();
58407
- init_StickerCommand();
58408
58475
  init_StickerOperation();
58409
58476
  init_LinkTo();
58410
58477
  init_SessionStorage();
@@ -59656,7 +59723,6 @@ var init_Frame = __esm(() => {
59656
59723
  init_RichText();
59657
59724
  init_Matrix();
59658
59725
  init_Basic();
59659
- init_FrameCommand();
59660
59726
  init_exportBoardSnapshot();
59661
59727
  init_LinkTo();
59662
59728
  init_HTMLRender();
@@ -60186,7 +60252,6 @@ var init_Frame = __esm(() => {
60186
60252
  // src/Items/Frame/index.ts
60187
60253
  var init_Frame2 = __esm(() => {
60188
60254
  init_Frame();
60189
- init_FrameCommand();
60190
60255
  init_FrameData();
60191
60256
  init_FrameData();
60192
60257
  init_Basic();
@@ -69396,7 +69461,6 @@ var init_Placeholder2 = __esm(() => {
69396
69461
  init_Shape2();
69397
69462
  init_Path();
69398
69463
  init_Transformation();
69399
- init_PlaceholderCommand();
69400
69464
  init_getResizeMatrix();
69401
69465
  init_BaseItem();
69402
69466
  Placeholder2 = class Placeholder2 extends BaseItem {
@@ -70309,10 +70373,10 @@ function normalizeForBoard(msg) {
70309
70373
  }
70310
70374
  function handleSeqNumApplication(initialSequenceNumber, board) {
70311
70375
  const { log } = board.events;
70376
+ const sessionId = getConnectionSessionId(board.events.connection);
70377
+ const authorUserId = getConnectionAuthorUserId(board.events.connection);
70378
+ log.refreshUnconfirmedIdentity(sessionId, authorUserId);
70312
70379
  log.currentSequenceNumber = initialSequenceNumber;
70313
- if (log.pendingEvent) {
70314
- log.pendingEvent.sequenceNumber = log.currentSequenceNumber;
70315
- }
70316
70380
  startIntervals(board);
70317
70381
  }
70318
70382
  function startIntervals(board) {