microboard-temp 0.13.77 → 0.13.78

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/node.js CHANGED
@@ -6236,6 +6236,21 @@ class EventsLog {
6236
6236
  }
6237
6237
  return records[records.length - 1].event;
6238
6238
  }
6239
+ refreshUnconfirmedIdentity(sessionId, authorUserId) {
6240
+ const records = [
6241
+ ...this.list.getRecordsToSend(),
6242
+ ...this.list.getNewRecords()
6243
+ ];
6244
+ for (const record of records) {
6245
+ record.event.body.sessionId = sessionId;
6246
+ record.event.body.userId = sessionId;
6247
+ record.event.body.authorUserId = authorUserId;
6248
+ }
6249
+ if (this.pendingEvent) {
6250
+ this.pendingEvent = null;
6251
+ this.firstSentTime = null;
6252
+ }
6253
+ }
6239
6254
  }
6240
6255
  function createEventsLog(board, commandFactory) {
6241
6256
  return new EventsLog(board, commandFactory);
@@ -6253,15 +6268,6 @@ var init_Log = __esm(() => {
6253
6268
  init_EventsLog();
6254
6269
  });
6255
6270
 
6256
- // src/Items/ItemsCommandUtils.ts
6257
- function mapItemsByOperation(item, getCallback) {
6258
- const items = Array.isArray(item) ? item : [item];
6259
- return items.map((item2) => {
6260
- const operation = getCallback(item2);
6261
- return { item: item2, operation };
6262
- });
6263
- }
6264
-
6265
6271
  // src/Items/Shape/ShapeCommand.ts
6266
6272
  class ShapeCommand {
6267
6273
  shape;
@@ -6292,52 +6298,73 @@ class ShapeCommand {
6292
6298
  const shape = this.shape;
6293
6299
  switch (this.operation.method) {
6294
6300
  case "setBackgroundColor":
6295
- return mapItemsByOperation(shape, (shape2) => {
6301
+ return shape.map((shape2) => {
6296
6302
  return {
6297
- ...this.operation,
6298
- backgroundColor: shape2.getBackgroundColor()
6303
+ item: shape2,
6304
+ operation: {
6305
+ ...this.operation,
6306
+ backgroundColor: shape2.getBackgroundColor()
6307
+ }
6299
6308
  };
6300
6309
  });
6301
6310
  case "setBackgroundOpacity":
6302
- return mapItemsByOperation(shape, (shape2) => {
6311
+ return shape.map((shape2) => {
6303
6312
  return {
6304
- ...this.operation,
6305
- backgroundOpacity: shape2.getBackgroundOpacity()
6313
+ item: shape2,
6314
+ operation: {
6315
+ ...this.operation,
6316
+ backgroundOpacity: shape2.getBackgroundOpacity()
6317
+ }
6306
6318
  };
6307
6319
  });
6308
6320
  case "setBorderColor":
6309
- return mapItemsByOperation(shape, (shape2) => {
6321
+ return shape.map((shape2) => {
6310
6322
  return {
6311
- ...this.operation,
6312
- borderColor: shape2.getStrokeColor()
6323
+ item: shape2,
6324
+ operation: {
6325
+ ...this.operation,
6326
+ borderColor: shape2.getStrokeColor()
6327
+ }
6313
6328
  };
6314
6329
  });
6315
6330
  case "setBorderOpacity":
6316
- return mapItemsByOperation(shape, (shape2) => {
6331
+ return shape.map((shape2) => {
6317
6332
  return {
6318
- ...this.operation,
6319
- borderOpacity: shape2.getBorderOpacity()
6333
+ item: shape2,
6334
+ operation: {
6335
+ ...this.operation,
6336
+ borderOpacity: shape2.getBorderOpacity()
6337
+ }
6320
6338
  };
6321
6339
  });
6322
6340
  case "setBorderStyle":
6323
- return mapItemsByOperation(shape, (shape2) => {
6341
+ return shape.map((shape2) => {
6324
6342
  return {
6325
- ...this.operation,
6326
- borderStyle: shape2.getBorderStyle()
6343
+ item: shape2,
6344
+ operation: {
6345
+ ...this.operation,
6346
+ borderStyle: shape2.getBorderStyle()
6347
+ }
6327
6348
  };
6328
6349
  });
6329
6350
  case "setBorderWidth":
6330
- return mapItemsByOperation(shape, (_shape) => {
6351
+ return shape.map((_shape) => {
6331
6352
  return {
6332
- ...this.operation,
6333
- borderWidth: this.operation.prevBorderWidth
6353
+ item: _shape,
6354
+ operation: {
6355
+ ...this.operation,
6356
+ borderWidth: this.operation.prevBorderWidth
6357
+ }
6334
6358
  };
6335
6359
  });
6336
6360
  case "setShapeType":
6337
- return mapItemsByOperation(shape, (shape2) => {
6361
+ return shape.map((shape2) => {
6338
6362
  return {
6339
- ...this.operation,
6340
- shapeType: shape2.getShapeType()
6363
+ item: shape2,
6364
+ operation: {
6365
+ ...this.operation,
6366
+ shapeType: shape2.getShapeType()
6367
+ }
6341
6368
  };
6342
6369
  });
6343
6370
  }
@@ -6420,78 +6447,99 @@ class TransformationCommand {
6420
6447
  });
6421
6448
  }
6422
6449
  case "translateTo":
6423
- return mapItemsByOperation(this.transformation, (transformation) => {
6450
+ return this.transformation.map((transformation) => {
6424
6451
  return {
6425
- ...this.operation,
6426
- x: transformation.getTranslation().x,
6427
- y: transformation.getTranslation().y
6452
+ item: transformation,
6453
+ operation: {
6454
+ ...this.operation,
6455
+ x: transformation.getTranslation().x,
6456
+ y: transformation.getTranslation().y
6457
+ }
6428
6458
  };
6429
6459
  });
6430
6460
  case "translateBy": {
6431
6461
  const op2 = this.operation;
6432
- return mapItemsByOperation(this.transformation, () => {
6462
+ return this.transformation.map((transformation) => {
6433
6463
  return {
6434
- ...this.operation,
6435
- x: -op2.x,
6436
- y: -op2.y
6464
+ item: transformation,
6465
+ operation: {
6466
+ ...this.operation,
6467
+ x: -op2.x,
6468
+ y: -op2.y
6469
+ }
6437
6470
  };
6438
6471
  });
6439
6472
  }
6440
6473
  case "scaleTo":
6441
6474
  case "scaleToRelativeTo": {
6442
- return mapItemsByOperation(this.transformation, (transformation) => {
6475
+ return this.transformation.map((transformation) => {
6443
6476
  return {
6444
- ...op,
6445
- x: transformation.getScale().x,
6446
- y: transformation.getScale().y
6477
+ item: transformation,
6478
+ operation: {
6479
+ ...op,
6480
+ x: transformation.getScale().x,
6481
+ y: transformation.getScale().y
6482
+ }
6447
6483
  };
6448
6484
  });
6449
6485
  }
6450
6486
  case "scaleBy":
6451
6487
  case "scaleByRelativeTo": {
6452
6488
  const op2 = this.operation;
6453
- return mapItemsByOperation(this.transformation, () => {
6489
+ return this.transformation.map((transformation) => {
6454
6490
  return {
6455
- ...op2,
6456
- x: 1 / op2.x,
6457
- y: 1 / op2.y
6491
+ item: transformation,
6492
+ operation: {
6493
+ ...op2,
6494
+ x: 1 / op2.x,
6495
+ y: 1 / op2.y
6496
+ }
6458
6497
  };
6459
6498
  });
6460
6499
  }
6461
6500
  case "scaleByTranslateBy": {
6462
6501
  const op2 = this.operation;
6463
- const scaleTransformation = mapItemsByOperation(this.transformation, () => {
6502
+ const scaleTransformation = this.transformation.map((transformation) => {
6464
6503
  const scaleX = 1 / op2.scale.x;
6465
6504
  const scaleY = 1 / op2.scale.y;
6466
6505
  const translateX = -op2.translate.x;
6467
6506
  const translateY = -op2.translate.y;
6468
6507
  return {
6469
- ...op2,
6470
- scale: {
6471
- x: scaleX,
6472
- y: scaleY
6473
- },
6474
- translate: {
6475
- x: translateX,
6476
- y: translateY
6508
+ item: transformation,
6509
+ operation: {
6510
+ ...op2,
6511
+ scale: {
6512
+ x: scaleX,
6513
+ y: scaleY
6514
+ },
6515
+ translate: {
6516
+ x: translateX,
6517
+ y: translateY
6518
+ }
6477
6519
  }
6478
6520
  };
6479
6521
  });
6480
6522
  return scaleTransformation;
6481
6523
  }
6482
6524
  case "rotateTo":
6483
- return mapItemsByOperation(this.transformation, (transformation) => {
6525
+ return this.transformation.map((transformation) => {
6484
6526
  return {
6485
- ...this.operation,
6486
- degree: transformation.getRotation()
6527
+ item: transformation,
6528
+ operation: {
6529
+ ...this.operation,
6530
+ degree: transformation.getRotation()
6531
+ }
6487
6532
  };
6488
6533
  });
6489
6534
  case "rotateBy": {
6490
6535
  const op2 = this.operation;
6491
- return mapItemsByOperation(this.transformation, () => {
6536
+ return this.transformation.map((transformation) => {
6492
6537
  return {
6493
- ...this.operation,
6494
- degree: -op2.degree
6538
+ item: transformation,
6539
+ operation: {
6540
+ ...this.operation,
6541
+ degree: -op2.degree
6542
+ }
6495
6543
  };
6496
6544
  });
6497
6545
  }
@@ -6529,23 +6577,29 @@ class TransformationCommand {
6529
6577
  }
6530
6578
  case "locked": {
6531
6579
  const op2 = this.operation;
6532
- return mapItemsByOperation(this.transformation, () => {
6580
+ return this.transformation.map((transformation) => {
6533
6581
  return {
6534
- ...op2,
6535
- item: [...op2.item],
6536
- method: "unlocked",
6537
- locked: false
6582
+ item: transformation,
6583
+ operation: {
6584
+ ...op2,
6585
+ item: [...op2.item],
6586
+ method: "unlocked",
6587
+ locked: false
6588
+ }
6538
6589
  };
6539
6590
  });
6540
6591
  }
6541
6592
  case "unlocked": {
6542
6593
  const op2 = this.operation;
6543
- return mapItemsByOperation(this.transformation, () => {
6594
+ return this.transformation.map((transformation) => {
6544
6595
  return {
6545
- ...op2,
6546
- item: [...op2.item],
6547
- method: "locked",
6548
- locked: true
6596
+ item: transformation,
6597
+ operation: {
6598
+ ...op2,
6599
+ item: [...op2.item],
6600
+ method: "locked",
6601
+ locked: true
6602
+ }
6549
6603
  };
6550
6604
  });
6551
6605
  }
@@ -7065,16 +7119,18 @@ class StickerCommand {
7065
7119
  getReverse() {
7066
7120
  switch (this.operation.method) {
7067
7121
  case "setBackgroundColor":
7068
- return mapItemsByOperation(this.sticker, (sticker) => {
7122
+ return this.sticker.map((sticker) => {
7069
7123
  return {
7070
- ...this.operation,
7071
- backgroundColor: sticker.getBackgroundColor()
7124
+ item: sticker,
7125
+ operation: {
7126
+ ...this.operation,
7127
+ backgroundColor: sticker.getBackgroundColor()
7128
+ }
7072
7129
  };
7073
7130
  });
7074
7131
  }
7075
7132
  }
7076
7133
  }
7077
- var init_StickerCommand = () => {};
7078
7134
 
7079
7135
  // src/Items/Frame/FrameCommand.ts
7080
7136
  class FrameCommand {
@@ -7100,51 +7156,68 @@ class FrameCommand {
7100
7156
  const frame = this.frame;
7101
7157
  switch (this.operation.method) {
7102
7158
  case "setBackgroundColor":
7103
- return mapItemsByOperation(frame, (frame2) => {
7159
+ return frame.map((frame2) => {
7104
7160
  return {
7105
- ...this.operation,
7106
- backgroundColor: frame2.getBackgroundColor()
7161
+ item: frame2,
7162
+ operation: {
7163
+ ...this.operation,
7164
+ backgroundColor: frame2.getBackgroundColor()
7165
+ }
7107
7166
  };
7108
7167
  });
7109
7168
  case "setCanChangeRatio":
7110
- return mapItemsByOperation(frame, (frame2) => {
7169
+ return frame.map((frame2) => {
7111
7170
  return {
7112
- ...this.operation,
7113
- canChangeRatio: frame2.getCanChangeRatio()
7171
+ item: frame2,
7172
+ operation: {
7173
+ ...this.operation,
7174
+ canChangeRatio: frame2.getCanChangeRatio()
7175
+ }
7114
7176
  };
7115
7177
  });
7116
7178
  case "setFrameType":
7117
- return mapItemsByOperation(frame, () => {
7179
+ return frame.map((frame2) => {
7118
7180
  return {
7119
- ...this.operation,
7120
- shapeType: this.operation.prevShapeType
7181
+ item: frame2,
7182
+ operation: {
7183
+ ...this.operation,
7184
+ shapeType: this.operation.prevShapeType
7185
+ }
7121
7186
  };
7122
7187
  });
7123
7188
  case "addChild":
7124
- return mapItemsByOperation(frame, (frame2) => {
7189
+ return frame.map((frame2) => {
7125
7190
  return {
7126
- ...this.operation,
7127
- children: frame2.getChildrenIds()
7191
+ item: frame2,
7192
+ operation: {
7193
+ ...this.operation,
7194
+ children: frame2.getChildrenIds()
7195
+ }
7128
7196
  };
7129
7197
  });
7130
7198
  case "removeChild":
7131
- return mapItemsByOperation(frame, (frame2) => {
7199
+ return frame.map((frame2) => {
7132
7200
  return {
7133
- ...this.operation,
7134
- children: frame2.getChildrenIds()
7201
+ item: frame2,
7202
+ operation: {
7203
+ ...this.operation,
7204
+ children: frame2.getChildrenIds()
7205
+ }
7135
7206
  };
7136
7207
  });
7137
7208
  case "addChildren":
7138
7209
  case "removeChildren":
7139
- return mapItemsByOperation(frame, (item) => {
7210
+ return frame.map((item) => {
7140
7211
  return {
7141
- ...this.operation
7212
+ item,
7213
+ operation: {
7214
+ ...this.operation
7215
+ }
7142
7216
  };
7143
7217
  });
7144
7218
  }
7145
7219
  }
7146
7220
  }
7147
- var init_FrameCommand = () => {};
7148
7221
 
7149
7222
  // src/SubjectOperation.ts
7150
7223
  class SubjectOperation {
@@ -7626,60 +7699,80 @@ class CommentCommand {
7626
7699
  const op = this.operation;
7627
7700
  switch (op.method) {
7628
7701
  case "createMessage":
7629
- return mapItemsByOperation(this.comment, (comment) => {
7702
+ return this.comment.map((comment) => {
7630
7703
  return {
7631
- ...this.operation,
7632
- message: comment.getThread()[comment.getThread().length - 1]
7704
+ item: comment,
7705
+ operation: {
7706
+ ...this.operation,
7707
+ message: comment.getThread()[comment.getThread().length - 1]
7708
+ }
7633
7709
  };
7634
7710
  });
7635
7711
  case "editMessage":
7636
- return mapItemsByOperation(this.comment, (comment) => {
7712
+ return this.comment.map((comment) => {
7637
7713
  return {
7638
- ...op,
7639
- message: comment.getThread().find((mes) => mes.id === op.message.id)
7714
+ item: comment,
7715
+ operation: {
7716
+ ...op,
7717
+ message: comment.getThread().find((mes) => mes.id === op.message.id)
7718
+ }
7640
7719
  };
7641
7720
  });
7642
7721
  case "removeMessage":
7643
- return mapItemsByOperation(this.comment, (comment) => {
7722
+ return this.comment.map((comment) => {
7644
7723
  return {
7645
- ...this.operation,
7646
- messageId: op.messageId
7724
+ item: comment,
7725
+ operation: {
7726
+ ...this.operation,
7727
+ messageId: op.messageId
7728
+ }
7647
7729
  };
7648
7730
  });
7649
7731
  case "setResolved":
7650
- return mapItemsByOperation(this.comment, (comment) => {
7732
+ return this.comment.map((comment) => {
7651
7733
  return {
7652
- ...this.operation,
7653
- resolved: comment.getResolved()
7734
+ item: comment,
7735
+ operation: {
7736
+ ...this.operation,
7737
+ resolved: comment.getResolved()
7738
+ }
7654
7739
  };
7655
7740
  });
7656
7741
  case "markMessagesAsRead":
7657
- return mapItemsByOperation(this.comment, (comment) => {
7742
+ return this.comment.map((comment) => {
7658
7743
  return {
7659
- ...this.operation,
7660
- messageIds: comment.getThread().filter((mes) => op.messageIds.includes(mes.id)).map((mes) => mes.id),
7661
- userId: op.userId
7744
+ item: comment,
7745
+ operation: {
7746
+ ...this.operation,
7747
+ messageIds: comment.getThread().filter((mes) => op.messageIds.includes(mes.id)).map((mes) => mes.id),
7748
+ userId: op.userId
7749
+ }
7662
7750
  };
7663
7751
  });
7664
7752
  case "markThreadAsUnread":
7665
7753
  case "markThreadAsRead":
7666
- return mapItemsByOperation(this.comment, (comment) => {
7754
+ return this.comment.map((comment) => {
7667
7755
  return {
7668
- ...this.operation,
7669
- userId: op.userId
7756
+ item: comment,
7757
+ operation: {
7758
+ ...this.operation,
7759
+ userId: op.userId
7760
+ }
7670
7761
  };
7671
7762
  });
7672
7763
  case "setItemToFollow":
7673
- return mapItemsByOperation(this.comment, (comment) => {
7764
+ return this.comment.map((comment) => {
7674
7765
  return {
7675
- ...this.operation,
7676
- itemId: op.itemId
7766
+ item: comment,
7767
+ operation: {
7768
+ ...this.operation,
7769
+ itemId: op.itemId
7770
+ }
7677
7771
  };
7678
7772
  });
7679
7773
  }
7680
7774
  }
7681
7775
  }
7682
- var init_CommentCommand = () => {};
7683
7776
 
7684
7777
  // src/Items/GeometricNormal.ts
7685
7778
  class GeometricNormal {
@@ -8313,16 +8406,18 @@ class LinkToCommand {
8313
8406
  getReverse() {
8314
8407
  switch (this.operation.method) {
8315
8408
  case "setLinkTo":
8316
- return mapItemsByOperation(this.linkTo, (linkTo) => {
8409
+ return this.linkTo.map((linkTo) => {
8317
8410
  return {
8318
- ...this.operation,
8319
- link: linkTo.link
8411
+ item: linkTo,
8412
+ operation: {
8413
+ ...this.operation,
8414
+ link: linkTo.link
8415
+ }
8320
8416
  };
8321
8417
  });
8322
8418
  }
8323
8419
  }
8324
8420
  }
8325
- var init_LinkToCommand = () => {};
8326
8421
 
8327
8422
  // src/Items/LinkTo/LinkTo.ts
8328
8423
  class LinkTo {
@@ -8428,7 +8523,6 @@ class LinkTo {
8428
8523
  }
8429
8524
  }
8430
8525
  var init_LinkTo = __esm(() => {
8431
- init_LinkToCommand();
8432
8526
  init_Settings();
8433
8527
  });
8434
8528
 
@@ -13474,7 +13568,6 @@ var ANONYMOUS_ID = 9999999999, Comment;
13474
13568
  var init_Comment = __esm(() => {
13475
13569
  init_Point2();
13476
13570
  init_Transformation2();
13477
- init_CommentCommand();
13478
13571
  init_Mbr2();
13479
13572
  init_Line2();
13480
13573
  init_esm();
@@ -13828,7 +13921,6 @@ var init_Comment = __esm(() => {
13828
13921
  // src/Items/Comment/index.ts
13829
13922
  var init_Comment2 = __esm(() => {
13830
13923
  init_Comment();
13831
- init_CommentCommand();
13832
13924
  });
13833
13925
 
13834
13926
  // src/Items/Group/GroupCommand.ts
@@ -13935,30 +14027,38 @@ class PlaceholderCommand {
13935
14027
  const placeholder = this.placeholder;
13936
14028
  switch (this.operation.method) {
13937
14029
  case "setBackgroundColor":
13938
- return mapItemsByOperation(placeholder, (placeholder2) => {
14030
+ return placeholder.map((placeholder2) => {
13939
14031
  return {
13940
- ...this.operation,
13941
- backgroundColor: placeholder2.getBackgroundColor()
14032
+ item: placeholder2,
14033
+ operation: {
14034
+ ...this.operation,
14035
+ backgroundColor: placeholder2.getBackgroundColor()
14036
+ }
13942
14037
  };
13943
14038
  });
13944
14039
  case "setIcon":
13945
- return mapItemsByOperation(placeholder, (placeholder2) => {
14040
+ return placeholder.map((placeholder2) => {
13946
14041
  return {
13947
- ...this.operation,
13948
- icon: placeholder2.getIcon()
14042
+ item: placeholder2,
14043
+ operation: {
14044
+ ...this.operation,
14045
+ icon: placeholder2.getIcon()
14046
+ }
13949
14047
  };
13950
14048
  });
13951
14049
  case "setMiroData":
13952
- return mapItemsByOperation(placeholder, (placeholder2) => {
14050
+ return placeholder.map((placeholder2) => {
13953
14051
  return {
13954
- ...this.operation,
13955
- miroData: placeholder2.getIcon()
14052
+ item: placeholder2,
14053
+ operation: {
14054
+ ...this.operation,
14055
+ miroData: placeholder2.getIcon()
14056
+ }
13956
14057
  };
13957
14058
  });
13958
14059
  }
13959
14060
  }
13960
14061
  }
13961
- var init_PlaceholderCommand = () => {};
13962
14062
 
13963
14063
  // src/Items/Image/ImageCommand.ts
13964
14064
  class ImageCommand {
@@ -14196,11 +14296,7 @@ var init_CreateCommand = __esm(() => {
14196
14296
  init_EventsCommand();
14197
14297
  init_ConnectorCommand();
14198
14298
  init_DrawingCommand();
14199
- init_StickerCommand();
14200
- init_FrameCommand();
14201
14299
  init_Comment2();
14202
- init_LinkToCommand();
14203
- init_PlaceholderCommand();
14204
14300
  init_Command();
14205
14301
  itemCommandFactories = {
14206
14302
  Sticker: createStickerCommand,
@@ -60813,7 +60909,6 @@ var init_Sticker = __esm(() => {
60813
60909
  init_Transformation();
60814
60910
  init_getResizeMatrix();
60815
60911
  init_RichText();
60816
- init_StickerCommand();
60817
60912
  init_StickerOperation();
60818
60913
  init_LinkTo();
60819
60914
  init_SessionStorage();
@@ -62065,7 +62160,6 @@ var init_Frame = __esm(() => {
62065
62160
  init_RichText();
62066
62161
  init_Matrix();
62067
62162
  init_Basic();
62068
- init_FrameCommand();
62069
62163
  init_exportBoardSnapshot();
62070
62164
  init_LinkTo();
62071
62165
  init_HTMLRender();
@@ -62595,7 +62689,6 @@ var init_Frame = __esm(() => {
62595
62689
  // src/Items/Frame/index.ts
62596
62690
  var init_Frame2 = __esm(() => {
62597
62691
  init_Frame();
62598
- init_FrameCommand();
62599
62692
  init_FrameData();
62600
62693
  init_FrameData();
62601
62694
  init_Basic();
@@ -71805,7 +71898,6 @@ var init_Placeholder2 = __esm(() => {
71805
71898
  init_Shape2();
71806
71899
  init_Path();
71807
71900
  init_Transformation();
71808
- init_PlaceholderCommand();
71809
71901
  init_getResizeMatrix();
71810
71902
  init_BaseItem();
71811
71903
  Placeholder2 = class Placeholder2 extends BaseItem {
@@ -72718,10 +72810,10 @@ function normalizeForBoard(msg) {
72718
72810
  }
72719
72811
  function handleSeqNumApplication(initialSequenceNumber, board) {
72720
72812
  const { log } = board.events;
72813
+ const sessionId = getConnectionSessionId(board.events.connection);
72814
+ const authorUserId = getConnectionAuthorUserId(board.events.connection);
72815
+ log.refreshUnconfirmedIdentity(sessionId, authorUserId);
72721
72816
  log.currentSequenceNumber = initialSequenceNumber;
72722
- if (log.pendingEvent) {
72723
- log.pendingEvent.sequenceNumber = log.currentSequenceNumber;
72724
- }
72725
72817
  startIntervals(board);
72726
72818
  }
72727
72819
  function startIntervals(board) {
@@ -89,5 +89,6 @@ export declare class EventsLog {
89
89
  * Retrieves the most recently confirmed event
90
90
  */
91
91
  getLastConfirmed(): BoardEvent | null;
92
+ refreshUnconfirmedIdentity(sessionId: string, authorUserId?: string): void;
92
93
  }
93
94
  export declare function createEventsLog(board: Board, commandFactory: (ops: Operation) => Command): EventsLog;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.13.77",
3
+ "version": "0.13.78",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,4 +0,0 @@
1
- export declare function mapItemsByOperation<Item, O>(item: Item | Item[], getCallback: (item: Item) => O): {
2
- item: Item;
3
- operation: O;
4
- }[];