@ones-editor/editor 2.8.25-beta.9 → 2.8.26

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.
Files changed (42) hide show
  1. package/@ones-editor/comments/src/comments/comments.d.ts +0 -4
  2. package/@ones-editor/comments/src/comments-helper/active-comment.d.ts +1 -3
  3. package/@ones-editor/comments/src/comments-helper/get-comment-from-selection.d.ts +0 -3
  4. package/@ones-editor/comments/src/comments-helper/get-comments-from-doc.d.ts +1 -5
  5. package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +1 -2
  6. package/@ones-editor/comments/src/comments-list/comments-list.d.ts +1 -11
  7. package/@ones-editor/comments/src/comments-list/group-item.d.ts +0 -2
  8. package/@ones-editor/comments/src/comments-list/group-list.d.ts +2 -5
  9. package/@ones-editor/comments/src/comments-list/handler.d.ts +1 -2
  10. package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +1 -1
  11. package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +0 -1
  12. package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +0 -1
  13. package/@ones-editor/comments/src/comments-render/index.d.ts +1 -10
  14. package/@ones-editor/comments/src/constant/index.d.ts +1 -2
  15. package/@ones-editor/comments/src/index.d.ts +0 -1
  16. package/@ones-editor/comments/src/locale/en-us.d.ts +0 -6
  17. package/@ones-editor/comments/src/locale/ja-jp.d.ts +0 -6
  18. package/@ones-editor/comments/src/locale/zh-cn.d.ts +0 -6
  19. package/@ones-editor/comments/src/types.d.ts +1 -6
  20. package/@ones-editor/core/src/core/block-renderers/block-renderers.d.ts +0 -1
  21. package/@ones-editor/core/src/core/doc/doc.d.ts +0 -9
  22. package/@ones-editor/core/src/core/types.d.ts +0 -1
  23. package/@ones-editor/core/src/local-doc/index.d.ts +0 -1
  24. package/@ones-editor/drawio-embed/src/config/drawio.d.ts +1 -1
  25. package/@ones-editor/drawio-embed/types/index.d.ts +2 -1
  26. package/@ones-editor/sharedb-doc/src/doc/comments.d.ts +1 -2
  27. package/@ones-editor/sharedb-doc/src/doc/op-parser/parse-handler.d.ts +1 -2
  28. package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +1 -3
  29. package/@ones-editor/sharedb-doc/src/types.d.ts +0 -1
  30. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  31. package/@ones-editor/ui/src/readonly-toolbar/add-comment-to-old-doc.d.ts +0 -1
  32. package/@ones-editor/ui-base/src/icons/index.d.ts +1 -2
  33. package/@ones-editor/versions/src/version-dialog/history-handler.d.ts +0 -1
  34. package/dist/comments/local-doc-comments-provider.d.ts +1 -2
  35. package/dist/comments/sharedb-doc-comments-provider.d.ts +1 -3
  36. package/dist/index.d.ts +0 -1
  37. package/dist/index.js +175 -843
  38. package/package.json +1 -1
  39. package/@ones-editor/comments/src/comments-render/get-block-comments.d.ts +0 -5
  40. package/@ones-editor/comments/src/resolved-comments/index.d.ts +0 -4
  41. package/@ones-editor/comments/src/resolved-comments/resolved-comment-editor.d.ts +0 -14
  42. package/@ones-editor/comments/src/resolved-comments/resolved-comment-list.d.ts +0 -4
package/dist/index.js CHANGED
@@ -4319,30 +4319,6 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4319
4319
  will-change: width;
4320
4320
  font-family: var(--editor-font-family);
4321
4321
  }
4322
- .editor-web-comment-root[list-type=resolved] .comment-groups-container {
4323
- display: flex;
4324
- flex-direction: column;
4325
- gap: 20px;
4326
- padding-left: 8px;
4327
- padding-top: 60px;
4328
- }
4329
- .editor-web-comment-root[list-type=resolved] .comment-groups-container .comment-no-resolved-tip {
4330
- font-size: 12px;
4331
- width: 100%;
4332
- color: #BEBFC2;
4333
- display: flex;
4334
- justify-content: center;
4335
- align-items: center;
4336
- margin-top: 100px;
4337
- }
4338
- .editor-web-comment-root[list-type=resolved] .comment-groups-container .comment-group-item-root {
4339
- position: inherit;
4340
- transform: none;
4341
- }
4342
- .editor-web-comment-root[list-type=resolved] .comment-groups-container .comment-group-item-root::before {
4343
- left: 8px;
4344
- right: 8px;
4345
- }
4346
4322
  .editor-web-comment-root .comment-groups-container .comment-group-item-root {
4347
4323
  position: absolute;
4348
4324
  left: 50%;
@@ -4356,17 +4332,8 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4356
4332
  box-shadow: var(--editor-box-shadow);
4357
4333
  padding-bottom: 10px;
4358
4334
  }
4359
- .editor-web-comment-root .comment-groups-container .comment-group-item-root.resolved .comment-item-head .item-head-switch {
4360
- display: none;
4361
- }
4362
- .editor-web-comment-root .comment-groups-container .comment-group-item-root.resolved .item-head-tools {
4363
- display: none;
4364
- }
4365
- .editor-web-comment-root .comment-groups-container .comment-group-item-root.resolved .comment-quick-reply {
4366
- display: none;
4367
- }
4368
4335
  .editor-web-comment-root .comment-groups-container .comment-group-item-root:not(.no-animation) {
4369
- transition: top 0.2s ease-in, opacity 0.2s ease-in;
4336
+ transition: top 0.2s ease-in, opacity 0.35s ease-in;
4370
4337
  }
4371
4338
  .editor-web-comment-root .comment-groups-container .comment-group-item-root::before {
4372
4339
  content: "";
@@ -4413,23 +4380,16 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4413
4380
  display: flex;
4414
4381
  align-items: center;
4415
4382
  height: 22px;
4383
+ visibility: hidden;
4416
4384
  }
4417
4385
  .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button {
4418
4386
  padding: 0;
4419
4387
  width: var(--editor-comment-switch-button-width);
4420
- margin-right: 5px;
4388
+ margin: 3px 0;
4421
4389
  color: #606060;
4422
- width: 16px;
4423
- height: 16px;
4424
4390
  }
4425
4391
  .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button[data-button-id=switch-up] {
4426
- visibility: hidden;
4427
- }
4428
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button[data-button-id=switch-down] {
4429
- visibility: hidden;
4430
- }
4431
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button[data-button-id=resolve] {
4432
- margin-right: 0;
4392
+ margin-right: 16px;
4433
4393
  }
4434
4394
  .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button:not(.disabled):hover {
4435
4395
  color: var(--text-button-color-hover);
@@ -4438,57 +4398,15 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4438
4398
  color: rgba(96, 96, 96, 0.5019607843);
4439
4399
  cursor: not-allowed;
4440
4400
  }
4441
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer {
4442
- font-size: 12px;
4443
- line-height: 20px;
4444
- color: #87888A;
4445
- margin-top: 10px;
4446
- }
4447
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions {
4448
- display: flex;
4449
- align-items: center;
4450
- }
4451
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions .comment-date {
4452
- flex: 1;
4453
- white-space: nowrap;
4454
- }
4455
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions .removed-tips {
4456
- color: #87888A;
4457
- white-space: nowrap;
4458
- text-overflow: ellipsis;
4459
- overflow: hidden;
4460
- margin-left: 10px;
4461
- }
4462
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions .comment-reopen {
4463
- background: none;
4464
- border: none;
4465
- cursor: pointer;
4466
- color: #575859;
4467
- font-size: 12px;
4468
- }
4469
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions .comment-reopen:hover {
4470
- color: #0064FF;
4471
- }
4472
4401
  .editor-web-comment-root .comment-groups-container .comment-group-item-root.active::before {
4473
4402
  background-color: #f59300;
4474
4403
  }
4475
- .editor-web-comment-root .comment-groups-container .comment-group-item-root.active .item-head-switch .editor-text-button[data-button-id=switch-up] {
4476
- visibility: visible;
4477
- }
4478
- .editor-web-comment-root .comment-groups-container .comment-group-item-root.active .item-head-switch .editor-text-button[data-button-id=switch-down] {
4404
+ .editor-web-comment-root .comment-groups-container .comment-group-item-root.active .item-head-switch {
4479
4405
  visibility: visible;
4480
4406
  }
4481
4407
  .editor-web-comment-root .comment-groups-container .comment-group-item-root.readonly .comment-quick-reply .quick-reply-button.invisible {
4482
4408
  display: none;
4483
4409
  }
4484
- .editor-web-comment-root .comment-switcher-container {
4485
- position: absolute;
4486
- z-index: 1;
4487
- top: 0;
4488
- left: 0;
4489
- right: 0;
4490
- font-size: 14px;
4491
- }
4492
4410
  .editor-mobile-comments-root {
4493
4411
  position: fixed;
4494
4412
  left: 0;
@@ -4590,82 +4508,6 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4590
4508
  }
4591
4509
  :is(.editor-web-comment-root, .editor-mobile-comments-root, .editor-mini-comment-root).hidden {
4592
4510
  display: none;
4593
- }.resolved-comment-list .resolved-comment-group-item-root {
4594
- padding: 10px 20px;
4595
- border-bottom: 1px solid #f0f0f0;
4596
- margin-right: 10px;
4597
- }
4598
- .resolved-comment-list .resolved-comment-group-item-root .comment-group-head {
4599
- margin-bottom: 5px;
4600
- }
4601
- .resolved-comment-list .resolved-comment-group-item-root .comment-group-head span {
4602
- padding: 0 5px;
4603
- display: inline-block;
4604
- line-height: 2;
4605
- background-color: #FFF0D9;
4606
- }
4607
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container,
4608
- .resolved-comment-list .resolved-comment-group-item-root .comment-container {
4609
- padding-left: 10px;
4610
- }
4611
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root,
4612
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root {
4613
- position: relative;
4614
- }
4615
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root:not(.no-children)::before,
4616
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root:not(.no-children)::before {
4617
- content: " ";
4618
- display: block;
4619
- position: absolute;
4620
- left: 10px;
4621
- width: 1px;
4622
- background-color: #DFE1E5;
4623
- overflow: hidden;
4624
- opacity: 0.8;
4625
- top: 21px;
4626
- bottom: -12px;
4627
- transform: scaleX(0.5);
4628
- }
4629
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-head,
4630
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-head {
4631
- padding: 0;
4632
- position: relative;
4633
- display: flex;
4634
- align-items: center;
4635
- }
4636
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-head .comment-avatar,
4637
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-head .comment-avatar {
4638
- margin-right: 5px;
4639
- width: var(--editor-comment-avatar-width, 22px);
4640
- height: var(--editor-comment-avatar-width, 22px);
4641
- border-radius: 100%;
4642
- }
4643
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-head .comment-username,
4644
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-head .comment-username {
4645
- font-size: var(--editor-comment-username-font-size, 12px);
4646
- color: #2d2d2e;
4647
- overflow: hidden;
4648
- text-overflow: ellipsis;
4649
- white-space: nowrap;
4650
- }
4651
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-head .comment-modified,
4652
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-head .comment-modified {
4653
- margin-left: 10px;
4654
- font-size: 12px;
4655
- color: #87888a;
4656
- flex-grow: 1;
4657
- white-space: nowrap;
4658
- }
4659
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-editor,
4660
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-editor {
4661
- border: none;
4662
- padding-top: 0;
4663
- margin-top: 0;
4664
- padding-left: 10px;
4665
- margin-left: 0;
4666
- }
4667
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root:last-child::before {
4668
- display: none;
4669
4511
  }div[data-type=editor-block].table-block {
4670
4512
  --table-bar-width: 6px;
4671
4513
  --table-bar-left: -6px;
@@ -9365,22 +9207,22 @@ var __publicField = (obj, key, value) => {
9365
9207
  function toFloat(value) {
9366
9208
  return parseFloat(value) || 0;
9367
9209
  }
9368
- function getBordersSize(styles2) {
9210
+ function getBordersSize(styles) {
9369
9211
  var positions = [];
9370
9212
  for (var _i = 1; _i < arguments.length; _i++) {
9371
9213
  positions[_i - 1] = arguments[_i];
9372
9214
  }
9373
9215
  return positions.reduce(function(size, position) {
9374
- var value = styles2["border-" + position + "-width"];
9216
+ var value = styles["border-" + position + "-width"];
9375
9217
  return size + toFloat(value);
9376
9218
  }, 0);
9377
9219
  }
9378
- function getPaddings(styles2) {
9220
+ function getPaddings(styles) {
9379
9221
  var positions = ["top", "right", "bottom", "left"];
9380
9222
  var paddings = {};
9381
9223
  for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
9382
9224
  var position = positions_1[_i];
9383
- var value = styles2["padding-" + position];
9225
+ var value = styles["padding-" + position];
9384
9226
  paddings[position] = toFloat(value);
9385
9227
  }
9386
9228
  return paddings;
@@ -9394,17 +9236,17 @@ var __publicField = (obj, key, value) => {
9394
9236
  if (!clientWidth && !clientHeight) {
9395
9237
  return emptyRect;
9396
9238
  }
9397
- var styles2 = getWindowOf(target).getComputedStyle(target);
9398
- var paddings = getPaddings(styles2);
9239
+ var styles = getWindowOf(target).getComputedStyle(target);
9240
+ var paddings = getPaddings(styles);
9399
9241
  var horizPad = paddings.left + paddings.right;
9400
9242
  var vertPad = paddings.top + paddings.bottom;
9401
- var width = toFloat(styles2.width), height = toFloat(styles2.height);
9402
- if (styles2.boxSizing === "border-box") {
9243
+ var width = toFloat(styles.width), height = toFloat(styles.height);
9244
+ if (styles.boxSizing === "border-box") {
9403
9245
  if (Math.round(width + horizPad) !== clientWidth) {
9404
- width -= getBordersSize(styles2, "left", "right") + horizPad;
9246
+ width -= getBordersSize(styles, "left", "right") + horizPad;
9405
9247
  }
9406
9248
  if (Math.round(height + vertPad) !== clientHeight) {
9407
- height -= getBordersSize(styles2, "top", "bottom") + vertPad;
9249
+ height -= getBordersSize(styles, "top", "bottom") + vertPad;
9408
9250
  }
9409
9251
  }
9410
9252
  if (!isDocumentElement(target)) {
@@ -10059,8 +9901,8 @@ var __publicField = (obj, key, value) => {
10059
9901
  el.setAttribute(key, value);
10060
9902
  });
10061
9903
  }
10062
- function setStyles(el, styles2) {
10063
- Object.entries(styles2).forEach(([key, value]) => {
9904
+ function setStyles(el, styles) {
9905
+ Object.entries(styles).forEach(([key, value]) => {
10064
9906
  el.style.setProperty(key, value);
10065
9907
  });
10066
9908
  }
@@ -12480,12 +12322,12 @@ var __publicField = (obj, key, value) => {
12480
12322
  return blockClass.getBlockStyles(editor, block);
12481
12323
  }
12482
12324
  const data2 = editor.getBlockData(block);
12483
- const styles2 = Object.fromEntries(Object.entries(data2).filter(([key]) => key.startsWith("style-")));
12484
- Object.entries(styles2).forEach(([, value]) => {
12325
+ const styles = Object.fromEntries(Object.entries(data2).filter(([key]) => key.startsWith("style-")));
12326
+ Object.entries(styles).forEach(([, value]) => {
12485
12327
  const type = typeof value;
12486
12328
  assert(logger$4B, type === "string" || type === "number" || type === "boolean", "invalid style value");
12487
12329
  });
12488
- return styles2;
12330
+ return styles;
12489
12331
  }
12490
12332
  function getContainerWidth(container, options) {
12491
12333
  const ret = container.getBoundingClientRect().width;
@@ -25074,7 +24916,7 @@ var __publicField = (obj, key, value) => {
25074
24916
  if (attributes) {
25075
24917
  let string = op.insert;
25076
24918
  const tags = [];
25077
- let styles2 = "";
24919
+ let styles = "";
25078
24920
  if (attributes["style-bold"]) {
25079
24921
  tags.push("strong");
25080
24922
  }
@@ -25092,25 +24934,25 @@ var __publicField = (obj, key, value) => {
25092
24934
  }
25093
24935
  const fontBgColor = Object.keys(attributes).find((k) => k.startsWith("style-bg-color-"));
25094
24936
  if (fontBgColor) {
25095
- styles2 += `background-color: ${styleBackgroundColorToHighlight$1(fontBgColor)};`;
24937
+ styles += `background-color: ${styleBackgroundColorToHighlight$1(fontBgColor)};`;
25096
24938
  }
25097
24939
  const fontColor = Object.keys(attributes).find((k) => k.startsWith("style-color-"));
25098
24940
  if (fontColor) {
25099
- styles2 += `color: ${styleColorToColor$1(fontColor)};`;
24941
+ styles += `color: ${styleColorToColor$1(fontColor)};`;
25100
24942
  }
25101
24943
  if (attributes.link) {
25102
24944
  string = `<a href="${attributes.link}">${string}</a>`;
25103
24945
  }
25104
24946
  let prefix = tags.map((s) => `<${s}>`).join("");
25105
24947
  let suffix = tags.reverse().map((s) => `</${s}>`).join("");
25106
- if (styles2) {
24948
+ if (styles) {
25107
24949
  if (attributes.link) {
25108
- string = `<a href="${attributes.link}" style="${styles2}">${op.insert}</a>`;
24950
+ string = `<a href="${attributes.link}" style="${styles}">${op.insert}</a>`;
25109
24951
  } else {
25110
24952
  if (prefix) {
25111
- prefix = prefix.replace(">", ` style="${styles2}">`);
24953
+ prefix = prefix.replace(">", ` style="${styles}">`);
25112
24954
  } else {
25113
- prefix = `<span style="${styles2}">`;
24955
+ prefix = `<span style="${styles}">`;
25114
24956
  suffix = "</span>";
25115
24957
  }
25116
24958
  }
@@ -25553,9 +25395,6 @@ var __publicField = (obj, key, value) => {
25553
25395
  __publicField(this, "renders", []);
25554
25396
  this.editor = editor;
25555
25397
  }
25556
- getRenderers() {
25557
- return this.renders;
25558
- }
25559
25398
  registerRender(render) {
25560
25399
  this.renders.push(render);
25561
25400
  }
@@ -25793,8 +25632,8 @@ var __publicField = (obj, key, value) => {
25793
25632
  renderBlock(editor, path, blockData) {
25794
25633
  var _a, _b;
25795
25634
  const attributes = {};
25796
- const styles2 = Object.entries(blockData).filter((k) => k[0].startsWith("style-"));
25797
- styles2.forEach(([key, value]) => {
25635
+ const styles = Object.entries(blockData).filter((k) => k[0].startsWith("style-"));
25636
+ styles.forEach(([key, value]) => {
25798
25637
  attributes[`data-${key}`] = `${value}`;
25799
25638
  });
25800
25639
  const classes = [];
@@ -32302,9 +32141,6 @@ ${codeText}
32302
32141
  toJSON() {
32303
32142
  return cloneDeep__default.default(this.doc);
32304
32143
  }
32305
- rawData() {
32306
- return this.doc;
32307
- }
32308
32144
  getContainerBlocks(containerId) {
32309
32145
  const blocks = this.doc.blocks[containerId];
32310
32146
  return blocks;
@@ -38825,12 +38661,6 @@ ${codeText}
38825
38661
  commentId
38826
38662
  });
38827
38663
  }
38828
- onUpdateCommentResolver(commentId) {
38829
- this.pushActions({
38830
- type: "updateCommentResolved",
38831
- commentId
38832
- });
38833
- }
38834
38664
  end() {
38835
38665
  const actions2 = this.actions;
38836
38666
  const deletedBlocks = /* @__PURE__ */ new Set();
@@ -38905,9 +38735,6 @@ ${codeText}
38905
38735
  } else if (action.type === "updateComment") {
38906
38736
  const a = action;
38907
38737
  this.outerHandler.onUpdateComment(a.commentId, this.local);
38908
- } else if (action.type === "updateCommentResolved") {
38909
- const a = action;
38910
- this.outerHandler.onUpdateCommentResolver(a.commentId, this.local);
38911
38738
  }
38912
38739
  });
38913
38740
  Array.from(updatingBlockDataDeltaMap.entries()).forEach(([blockId, objectData]) => {
@@ -39085,14 +38912,7 @@ ${codeText}
39085
38912
  assert(logger$2V, commentId, `invalid comment op, no commentId: ${JSON.stringify(ops)}`);
39086
38913
  assert(logger$2V, actions2, `invalid comment op, no actions: ${JSON.stringify(ops)}`);
39087
38914
  if (typeof actions2 === "string") {
39088
- const data2 = ops[3];
39089
- if (actions2 === "resolver" && typeof data2 === "object") {
39090
- if (parseType === "upsert") {
39091
- handler.onUpdateCommentResolver(commentId);
39092
- }
39093
- } else {
39094
- logger$2V.error(`unknown comment op, ${JSON.stringify(ops)}`);
39095
- }
38915
+ logger$2V.error(`unknown comment op, ${JSON.stringify(ops)}`);
39096
38916
  } else {
39097
38917
  if (actions2.i && actions2.r) {
39098
38918
  if (parseType === "upsert") {
@@ -39202,8 +39022,7 @@ ${codeText}
39202
39022
  avatarUrl,
39203
39023
  abstract,
39204
39024
  created,
39205
- modified,
39206
- resolver: resolved
39025
+ modified
39207
39026
  } = shareDBComment;
39208
39027
  return {
39209
39028
  id,
@@ -39213,8 +39032,7 @@ ${codeText}
39213
39032
  avatarUrl,
39214
39033
  abstract,
39215
39034
  created,
39216
- modified,
39217
- resolver: resolved
39035
+ modified
39218
39036
  };
39219
39037
  }
39220
39038
  function commentToShareDbComment(comment, doc2) {
@@ -39686,21 +39504,6 @@ ${codeText}
39686
39504
  const op = ["comments", comment.id, { r: true, i: shareDBComment }];
39687
39505
  return this.submitOp(op);
39688
39506
  }
39689
- localUpdateCommentResolver(commentId, resolver) {
39690
- const oldComment = this.getComment(commentId);
39691
- const oldResolved = oldComment.resolver;
39692
- const op = ["comments", commentId, "resolver", {}];
39693
- if (!oldResolved && !resolver) {
39694
- return Promise.resolve(true);
39695
- }
39696
- if (oldResolved !== void 0) {
39697
- op[3] = { r: true };
39698
- }
39699
- if (resolver) {
39700
- op[3].i = resolver;
39701
- }
39702
- return this.submitOp(op);
39703
- }
39704
39507
  destroy() {
39705
39508
  var _a;
39706
39509
  this.destroyed = true;
@@ -39777,13 +39580,6 @@ ${codeText}
39777
39580
  return (_a = cb.onUpdateComment) == null ? void 0 : _a.call(cb, commentId, local);
39778
39581
  });
39779
39582
  }
39780
- onUpdateCommentResolver(commentId, local) {
39781
- assert(logger$2S, this.callbacks.length > 0, "no callbacks");
39782
- this.callbacks.forEach((cb) => {
39783
- var _a;
39784
- return (_a = cb.onUpdateCommentResolver) == null ? void 0 : _a.call(cb, commentId, local);
39785
- });
39786
- }
39787
39583
  onCustomMessage(msg) {
39788
39584
  const message = msg;
39789
39585
  if ((message == null ? void 0 : message.type) === "custom" && (message == null ? void 0 : message.clientId) !== this.client.clientId) {
@@ -40776,7 +40572,6 @@ ${codeText}
40776
40572
  const RefreshIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M15.3498 7.51663L12.9692 9.49971L10.5902 7.51663" stroke="currentColor"/>\n<path d="M12.811 9.5C12.9344 9.02057 13 8.51795 13 8C13 4.68629 10.3137 2 7 2C3.68629 2 1 4.68629 1 8C1 11.3137 3.68629 14 7 14C8.39546 14 9.67966 13.5236 10.6988 12.7246" stroke="currentColor"/>\n</svg>';
40777
40573
  const HelpIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M15 8C15 11.8659 11.8659 15 8 15C4.13408 15 1 11.8659 1 8C1 4.13408 4.13408 1 8 1C11.8659 1 15 4.13408 15 8Z" stroke="currentColor"/>\n<path d="M6 6.41815C6 5.81984 6.55057 4.52136 7.98652 4.52136C9.24198 4.52136 10 5.42027 10 6.41815C10 7.24315 9.34611 7.76435 8.89738 8.21308C7.99992 9.11055 7.99992 10.0001 7.99992 10.0001" stroke="currentColor"/>\n<path d="M8 11V13" stroke="currentColor"/>\n</svg>\n';
40778
40574
  const CheckMarkIcon = '<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" stroke-width="2">\n <path d="m1 7.4 1.497-1.498 3.861 3.86L12.85 2.45l1.498 1.497-6.491 7.312.005.007-.096.095-1.318 1.486L1 7.399Z" fill="currentColor" fill-rule="nonzero"></path>\n</svg>';
40779
- const CircleCheckMarkIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M10.9825 5.99158L7.19788 10.0128L5.30554 8.12045" stroke="currentColor" stroke-linejoin="round"/>\n<circle cx="8.03119" cy="7.99481" r="4.98883" stroke="currentColor"/>\n</svg>\n';
40780
40575
  const TextIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2.5 4L2.5 1.5L13.5 1.5V4" stroke="currentColor" stroke-linejoin="round"/>\n<path d="M8 14.5V2" stroke="currentColor"/>\n<path d="M5 14.5H11" stroke="currentColor" stroke-linejoin="round"/>\n</svg>\n';
40781
40576
  const rightArrow = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M5.76573 4.17763L9.58809 7.99999L5.76573 11.8209" stroke="currentColor" stroke-width="2"/>\n</svg>\n';
40782
40577
  const BilibiliIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M11.3909 3.71427H11.8891C12.7699 3.74577 13.5043 4.05144 14.09 4.63244C14.6757 5.21285 14.979 5.94435 15 6.82577V11.1191C14.979 11.9999 14.6757 12.7344 14.09 13.32C13.5043 13.9057 12.7705 14.209 11.8891 14.23H4.11092C3.23008 14.209 2.49567 13.9057 1.91 13.32C1.32433 12.7344 1.021 12.0005 1 11.1191V6.82577C1.021 5.94435 1.32433 5.21285 1.91 4.63244C2.49567 4.05144 3.2295 3.74577 4.11092 3.71427H4.56242L3.87758 3.06094C3.80715 2.99237 3.75151 2.9101 3.71409 2.81921C3.67667 2.72831 3.65826 2.63072 3.66 2.53244C3.66 2.32477 3.73233 2.1486 3.87758 2.00335L3.89333 1.9876C4.04908 1.84235 4.22758 1.77002 4.43 1.77002C4.63242 1.77002 4.81092 1.84235 4.96667 1.9876L6.63092 3.59002C6.67233 3.63144 6.70908 3.67285 6.74 3.71427H9.22908C9.25335 3.66813 9.28486 3.62618 9.32242 3.59002L10.9867 1.9876C11.1424 1.84235 11.3209 1.77002 11.5233 1.77002C11.7258 1.77002 11.9095 1.8581 12.0652 2.00335C12.221 2.1486 12.2933 2.32477 12.2933 2.53244C12.2933 2.73952 12.221 2.91569 12.0757 3.06094L11.3909 3.71427ZM4.11092 5.22335C3.67575 5.23385 3.31 5.38435 3.01425 5.67427C2.71908 5.96477 2.56567 6.33344 2.55575 6.7791V11.1658C2.56567 11.6114 2.71908 11.9795 3.01425 12.27C3.31 12.5605 3.67575 12.711 4.11092 12.7209H11.8891C12.3242 12.711 12.69 12.5605 12.9858 12.27C13.2809 11.9795 13.4343 11.6114 13.4442 11.1658V6.7791C13.4343 6.33285 13.2809 5.96477 12.9858 5.67427C12.69 5.38435 12.3242 5.23385 11.8891 5.22335H4.11092ZM5.66667 7.4791C5.88425 7.4791 6.06567 7.55144 6.21092 7.69669C6.35675 7.84194 6.43433 8.0286 6.44425 8.25669V8.94094C6.43433 9.16902 6.35675 9.35569 6.21092 9.50094C6.06567 9.64677 5.88425 9.7191 5.66667 9.7191C5.44908 9.7191 5.26767 9.64619 5.12242 9.50094C4.97658 9.35569 4.899 9.16902 4.88908 8.94094V8.25669C4.88908 8.0391 4.96433 7.85477 5.11425 7.70427C5.26475 7.55435 5.44908 7.4791 5.66667 7.4791ZM10.3333 7.4791C10.5509 7.4791 10.7323 7.55144 10.8776 7.69669C11.0234 7.84194 11.101 8.0286 11.1109 8.25669V8.94094C11.101 9.16902 11.0234 9.35569 10.8776 9.50094C10.7323 9.64677 10.5509 9.7191 10.3333 9.7191C10.1157 9.7191 9.93433 9.64619 9.78908 9.50094C9.64325 9.35569 9.56567 9.16902 9.55575 8.94094V8.25669C9.56567 8.0286 9.64325 7.84194 9.78908 7.69669C9.93433 7.55144 10.1157 7.4791 10.3333 7.4791Z" fill="#07A3D7"/>\n</svg>\n';
@@ -40932,7 +40727,6 @@ ${codeText}
40932
40727
  RefreshIcon,
40933
40728
  HelpIcon,
40934
40729
  CheckMarkIcon,
40935
- CircleCheckMarkIcon,
40936
40730
  TextIcon,
40937
40731
  RightArrowIcon: rightArrow,
40938
40732
  TencentVideoIcon,
@@ -50720,7 +50514,7 @@ ${codeText}
50720
50514
  });
50721
50515
  return !!ret;
50722
50516
  }
50723
- function addBlockClasses(from, to, styles2) {
50517
+ function addBlockClasses(from, to, styles) {
50724
50518
  const container = getParentContainer(from);
50725
50519
  if (to) {
50726
50520
  const container2 = getParentContainer(to);
@@ -50731,18 +50525,18 @@ ${codeText}
50731
50525
  const toIndex = getBlockIndex(to);
50732
50526
  assert(logger$24, fromIndex <= toIndex, "invalid block index");
50733
50527
  }
50734
- addClass(from, ...styles2);
50528
+ addClass(from, ...styles);
50735
50529
  if (!to || to === from) {
50736
50530
  return;
50737
50531
  }
50738
50532
  let next2 = getNextBlock(from);
50739
50533
  while (next2 !== to) {
50740
50534
  assert(logger$24, next2, "no next button");
50741
- addClass(next2, ...styles2);
50535
+ addClass(next2, ...styles);
50742
50536
  next2 = getNextBlock(next2);
50743
50537
  }
50744
50538
  if (next2) {
50745
- addClass(next2, ...styles2);
50539
+ addClass(next2, ...styles);
50746
50540
  }
50747
50541
  }
50748
50542
  async function requestMindmapFullscreen(editor, block, mindmapTools) {
@@ -51730,7 +51524,7 @@ ${codeText}
51730
51524
  html = `<input type="checkbox" disabled="disabled" /> ${html}`;
51731
51525
  }
51732
51526
  let listTag = "ul";
51733
- let styles2 = "";
51527
+ let styles = "";
51734
51528
  if (list2.ordered) {
51735
51529
  html = `<li value="${list2.start}">${html}</li>`;
51736
51530
  listTag = "ol";
@@ -51738,18 +51532,18 @@ ${codeText}
51738
51532
  case 2:
51739
51533
  case 5:
51740
51534
  case 8:
51741
- styles2 = "list-style-type: lower-alpha;";
51535
+ styles = "list-style-type: lower-alpha;";
51742
51536
  break;
51743
51537
  case 3:
51744
51538
  case 6:
51745
- styles2 = "list-style-type: lower-roman;";
51539
+ styles = "list-style-type: lower-roman;";
51746
51540
  break;
51747
51541
  }
51748
51542
  } else {
51749
51543
  html = `<li>${html}</li>`;
51750
51544
  }
51751
51545
  if (isFirstListItem(editor, blockData, doc2, path)) {
51752
- html = `<${listTag}${styles2 ? ` style="${styles2}"` : ""}>${html}`;
51546
+ html = `<${listTag}${styles ? ` style="${styles}"` : ""}>${html}`;
51753
51547
  }
51754
51548
  if (isLastListItem(editor, blockData, doc2, path)) {
51755
51549
  html = `${html}</${listTag}>`;
@@ -62565,13 +62359,13 @@ $$${mathData.mathjaxText}$$
62565
62359
  if (!op.attributes) {
62566
62360
  return /* @__PURE__ */ new Map();
62567
62361
  }
62568
- const styles2 = Object.entries(op.attributes).filter(([key]) => {
62362
+ const styles = Object.entries(op.attributes).filter(([key]) => {
62569
62363
  if (key.startsWith("style-")) {
62570
62364
  return true;
62571
62365
  }
62572
62366
  return false;
62573
62367
  });
62574
- return new Map(styles2);
62368
+ return new Map(styles);
62575
62369
  };
62576
62370
  if (text2.length === 0) {
62577
62371
  return /* @__PURE__ */ new Map();
@@ -62615,11 +62409,11 @@ $$${mathData.mathjaxText}$$
62615
62409
  if (getTextLength(text2) === 0) {
62616
62410
  return textStyles;
62617
62411
  }
62618
- let styles2 = getIntersectionStyles(text2);
62619
- styles2 = mergeActiveStyle(editor, styles2);
62412
+ let styles = getIntersectionStyles(text2);
62413
+ styles = mergeActiveStyle(editor, styles);
62620
62414
  function getTextStyle(item) {
62621
62415
  const { id, icon, desc, name } = item;
62622
- const value = styles2.get(id);
62416
+ const value = styles.get(id);
62623
62417
  if (value !== void 0) {
62624
62418
  return {
62625
62419
  id,
@@ -63215,7 +63009,6 @@ $$${mathData.mathjaxText}$$
63215
63009
  GroupItemActions2["QuickReply"] = "quick-reply";
63216
63010
  GroupItemActions2["QuickReplyOk"] = "quick-reply-ok";
63217
63011
  GroupItemActions2["QuickReplyCancel"] = "quick-reply-cancel";
63218
- GroupItemActions2["Resolve"] = "resolve";
63219
63012
  return GroupItemActions2;
63220
63013
  })(GroupItemActions || {});
63221
63014
  const GROUP_ITEM_ACTION_MARK = "group-item-action";
@@ -63263,7 +63056,7 @@ $$${mathData.mathjaxText}$$
63263
63056
  return attributes.filter((attribute) => attribute.startsWith("comment-")).map((attribute) => attribute.replace("comment-", ""));
63264
63057
  }
63265
63058
  const logger$1G = getLogger("doc-comments");
63266
- function addBlockComments$1(doc2, block, result, resultSet) {
63059
+ function addBlockComments(doc2, block, result, resultSet) {
63267
63060
  if (block.comments) {
63268
63061
  const blockComments = block.comments;
63269
63062
  if (Array.isArray(blockComments)) {
@@ -63299,7 +63092,7 @@ $$${mathData.mathjaxText}$$
63299
63092
  children.forEach((childContainerId) => {
63300
63093
  const childBlocks = doc2.blocks[childContainerId];
63301
63094
  childBlocks.forEach((subBlock) => {
63302
- addBlockComments$1(doc2, subBlock, result, resultSet);
63095
+ addBlockComments(doc2, subBlock, result, resultSet);
63303
63096
  });
63304
63097
  });
63305
63098
  }
@@ -63307,7 +63100,7 @@ $$${mathData.mathjaxText}$$
63307
63100
  const result = [];
63308
63101
  const resultSet = /* @__PURE__ */ new Set();
63309
63102
  doc2.blocks.root.forEach((block) => {
63310
- addBlockComments$1(doc2, block, result, resultSet);
63103
+ addBlockComments(doc2, block, result, resultSet);
63311
63104
  });
63312
63105
  const resultMap = /* @__PURE__ */ new Map();
63313
63106
  result.forEach((commentId, index2) => resultMap.set(commentId, index2));
@@ -63363,26 +63156,6 @@ $$${mathData.mathjaxText}$$
63363
63156
  });
63364
63157
  return result;
63365
63158
  }
63366
- function getUnresolvedCommentsGroupFromDoc(editor, commentsProvider) {
63367
- return getCommentsGroupFromDoc(editor, commentsProvider).filter((group) => !group.resolver);
63368
- }
63369
- function getResolvedCommentsGroupFromDoc(editor, commentsProvider) {
63370
- const doc2 = editor.doc.toJSON();
63371
- const commentsMap = getCommentsFromDoc(doc2);
63372
- const commentGroup = getCommentsGroup(commentsProvider.getComments());
63373
- const result = commentGroup.filter((group) => group.resolver).sort((group1, group2) => {
63374
- var _a, _b, _c, _d;
63375
- const date1 = (_b = (_a = group1.resolver) == null ? void 0 : _a.date) != null ? _b : 0;
63376
- const date2 = (_d = (_c = group2.resolver) == null ? void 0 : _c.date) != null ? _d : 0;
63377
- return date2 - date1;
63378
- });
63379
- result.forEach((group) => {
63380
- if (!commentsMap.has(group.id)) {
63381
- group.removedFromDoc = true;
63382
- }
63383
- });
63384
- return result;
63385
- }
63386
63159
  function flattenCommentGroup(comment) {
63387
63160
  const { children, ...raw } = comment;
63388
63161
  const comments = [raw];
@@ -63439,18 +63212,6 @@ $$${mathData.mathjaxText}$$
63439
63212
  const commentIds = intersection__default.default(comments1, comments2);
63440
63213
  return commentIds;
63441
63214
  }
63442
- function removeUnresolvedComments(commentProvider, commentIds) {
63443
- return commentIds.filter((commentId) => {
63444
- const comment = commentProvider.getComment(commentId);
63445
- return !!comment.resolver;
63446
- });
63447
- }
63448
- function removeResolvedComments(commentProvider, commentIds) {
63449
- return commentIds.filter((commentId) => {
63450
- const comment = commentProvider.getComment(commentId);
63451
- return !comment.resolver;
63452
- });
63453
- }
63454
63215
  const logger$1F = getLogger("active-comments");
63455
63216
  function inactiveComment(editor, commentId) {
63456
63217
  const activeCommentElements = editor.rootContainer.querySelectorAll(`span.comment[comment-${commentId}],[data-type=editor-block].comment[comment-${commentId}]`);
@@ -63506,11 +63267,6 @@ $$${mathData.mathjaxText}$$
63506
63267
  }
63507
63268
  }
63508
63269
  }
63509
- function getElementsByCommentId(editor, commentId) {
63510
- const lowerCommentId = commentId.toLocaleLowerCase();
63511
- const elements = editor.rootContainer.querySelectorAll(`span.comment[comment-${lowerCommentId}],[data-type=editor-block].comment[comment-${lowerCommentId}]`);
63512
- return Array.from(elements);
63513
- }
63514
63270
  function isImageBlock(block) {
63515
63271
  return getBlockType(block) === "embed" && getEmbedType(block) === "image";
63516
63272
  }
@@ -63823,7 +63579,11 @@ $$${mathData.mathjaxText}$$
63823
63579
  if (!block) {
63824
63580
  return null;
63825
63581
  }
63826
- return getImageObject(editor, block);
63582
+ try {
63583
+ return getImageObject(editor, block);
63584
+ } catch (e2) {
63585
+ return null;
63586
+ }
63827
63587
  }
63828
63588
  function getImageContainersByBlock(block) {
63829
63589
  const images = Array.from(block.querySelectorAll(".image-container"));
@@ -67469,11 +67229,17 @@ ${codeText}
67469
67229
  const targetBlockClass = getBlockClass(this.editor, targetBlock);
67470
67230
  if (targetBlockClass.handleDrop) {
67471
67231
  const handleDropResult = targetBlockClass.handleDrop(this.editor, targetBlock, dragObject != null ? dragObject : files, insertPos, { isSourceBlock: false, targetBlock });
67472
- if (handleDropResult) {
67473
- event.preventDefault();
67474
- this.editor.focus();
67475
- clearDraggedObject(this.editor);
67476
- const parentContainer = typeof handleDropResult === "boolean" ? getParentContainer(targetBlock) : handleDropResult;
67232
+ if (handleDropResult === false || handleDropResult === void 0) {
67233
+ return;
67234
+ }
67235
+ event.preventDefault();
67236
+ this.editor.focus();
67237
+ clearDraggedObject(this.editor);
67238
+ if (handleDropResult === true) {
67239
+ return;
67240
+ }
67241
+ if (handleDropResult instanceof HTMLElement) {
67242
+ const parentContainer = handleDropResult;
67477
67243
  for (let i = 0; i < this.handlers.length; i++) {
67478
67244
  if (this.handlers[i].handleDrop(this.editor, sourceBlock != null ? sourceBlock : files, parentContainer, 0)) {
67479
67245
  this.editor.focus();
@@ -67481,8 +67247,8 @@ ${codeText}
67481
67247
  return;
67482
67248
  }
67483
67249
  }
67484
- return;
67485
67250
  }
67251
+ return;
67486
67252
  }
67487
67253
  if (sourceBlock) {
67488
67254
  const sourceBlockClass = getBlockClass(this.editor, sourceBlock);
@@ -67708,6 +67474,9 @@ ${codeText}
67708
67474
  }
67709
67475
  }
67710
67476
  function deleteImageFromBlock(editor, block, index2) {
67477
+ if (!editor.findBlockById(getBlockId(block))) {
67478
+ return;
67479
+ }
67711
67480
  const imageObject = ImageObject.getImageObject(editor, block);
67712
67481
  const images = cloneDeep__default.default(imageObject.getImages());
67713
67482
  if (images.length === 1) {
@@ -69230,9 +68999,8 @@ ${codeText}
69230
68999
  return items;
69231
69000
  }
69232
69001
  reloadList(data2) {
69233
- this._items.forEach((item) => item.destroy());
69234
69002
  this.container.innerHTML = "";
69235
- this._items = this.createList(data2);
69003
+ this.createList(data2);
69236
69004
  }
69237
69005
  insertItem(data2) {
69238
69006
  const index2 = this.findInsertPos(data2);
@@ -69305,8 +69073,8 @@ ${codeText}
69305
69073
  });
69306
69074
  }
69307
69075
  }
69308
- const switchUpIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M4.17757 10.2343L7.99993 6.41191L11.8208 10.2343" stroke="currentColor"/>\n</svg>\n';
69309
- const switchDownIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M4.17757 5.76573L7.99993 9.58809L11.8208 5.76573" stroke="currentColor"/>\n</svg>\n';
69076
+ const switchUpIcon = '<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2.00218 11.0005L8.00341 4.99923L14.0046 11.0005" stroke="currentColor" fill="transparent" stroke-width="1.5" stroke-linejoin="bevel"/>\n</svg>';
69077
+ const switchDownIcon = '<svg width="17" height="16" viewBox="0 0 17 16" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.0029 4.99933L8.00172 11.0006L2.00049 4.99933" stroke="currentColor" fill="transparent" stroke-width="1.5" stroke-linejoin="bevel"/>\n</svg>';
69310
69078
  const index$8 = "";
69311
69079
  const REPLY_EDITOR_EDITING_CLS = "reply-editor-editing";
69312
69080
  const { t: t$3 } = i18n$1;
@@ -69429,9 +69197,6 @@ ${codeText}
69429
69197
  __publicField(this, "quickReply");
69430
69198
  __publicField(this, "createRoot", () => {
69431
69199
  const root2 = createElement("div", ["comment-group-item-root"], null);
69432
- if (this.comment.resolver) {
69433
- addClass(root2, "resolved");
69434
- }
69435
69200
  return root2;
69436
69201
  });
69437
69202
  __publicField(this, "createChildrenList", () => {
@@ -69488,7 +69253,6 @@ ${codeText}
69488
69253
  this.mainItem = this.createItem();
69489
69254
  this.childrenList = this.createChildrenList();
69490
69255
  this.quickReply = this.createQuickReply();
69491
- this.createFooter();
69492
69256
  this.editor.on("readonlyChanged", this.handleReadonlyChanged);
69493
69257
  this.resizeObserver = new index$g(this.handleResize);
69494
69258
  this.resizeObserver.observe(this.root);
@@ -69498,29 +69262,6 @@ ${codeText}
69498
69262
  const count = getCommentItemCountInGroupItem(this.root);
69499
69263
  return count;
69500
69264
  }
69501
- createFooter() {
69502
- if (!this.comment.resolver) {
69503
- return null;
69504
- }
69505
- const footer = createElement("div", ["comment-item-footer"], this.root);
69506
- const modified = createElement("span", ["comment-modified"], footer);
69507
- const date = new Date(this.comment.modified);
69508
- const resolver = this.comment.resolver;
69509
- assert(logger$1h, resolver, "resolver should not be null");
69510
- const text2 = i18n$1.t("comment.resolvedBy", { name: resolver.displayName, date: fromNowString(date) });
69511
- modified.innerText = text2;
69512
- const actions2 = createElement("div", ["comment-actions"], footer);
69513
- createElement("span", ["comment-date"], actions2, fromNowString(new Date(resolver.date)));
69514
- if (this.comment.removedFromDoc) {
69515
- createElement("span", ["removed-tips"], actions2, i18n$1.t("comment.removedFromDoc"));
69516
- } else {
69517
- const reopen = createElement("button", ["comment-reopen"], actions2, i18n$1.t("comment.reopen"));
69518
- reopen.onclick = () => {
69519
- this.commentsProvider.localUpdateCommentResolver(this.comment.id, void 0);
69520
- };
69521
- }
69522
- return footer;
69523
- }
69524
69265
  createQuickReply() {
69525
69266
  const { editor, commentsProvider, comment } = this;
69526
69267
  const commentQuickReply = new CommentQuickReply(editor, commentsProvider, comment, this);
@@ -69535,14 +69276,8 @@ ${codeText}
69535
69276
  const switchContainer = createElement("span", ["item-head-switch"], head);
69536
69277
  const switchUp = createTextButton(switchContainer, GroupItemActions.SwitchUp, "up", switchUpIcon);
69537
69278
  const switchDown = createTextButton(switchContainer, GroupItemActions.SwitchDown, "down", switchDownIcon);
69538
- const resolve = createTextButton(switchContainer, GroupItemActions.Resolve, "resolve", CircleCheckMarkIcon);
69539
69279
  addGroupActionToElement(switchUp, GroupItemActions.SwitchUp);
69540
69280
  addGroupActionToElement(switchDown, GroupItemActions.SwitchDown);
69541
- addGroupActionToElement(resolve, GroupItemActions.Resolve);
69542
- addClass(resolve, "disable-active");
69543
- if (comment.resolver) {
69544
- addClass(resolve, "resolved");
69545
- }
69546
69281
  return head;
69547
69282
  }
69548
69283
  createItem() {
@@ -69582,7 +69317,6 @@ ${codeText}
69582
69317
  handleUpdateMainComment(comment) {
69583
69318
  assert(logger$1h, comment.id === this.mainItem.comment.id, "invalid comment");
69584
69319
  this.mainItem.reloadDoc();
69585
- this.setCreatingComment(false);
69586
69320
  }
69587
69321
  deleteMainComment(commentId) {
69588
69322
  assert(logger$1h, commentId === this.mainItem.comment.id, "invalid comment");
@@ -69591,18 +69325,6 @@ ${codeText}
69591
69325
  edit() {
69592
69326
  this.mainItem.edit();
69593
69327
  }
69594
- setCreatingComment(creating) {
69595
- const resolveButton = this.header.querySelector('.editor-text-button[group-item-action="resolve"]');
69596
- if (!resolveButton) {
69597
- return;
69598
- }
69599
- resolveButton.disabled = creating;
69600
- if (creating) {
69601
- resolveButton.classList.add("disabled");
69602
- } else {
69603
- resolveButton.classList.remove("disabled");
69604
- }
69605
- }
69606
69328
  destroy() {
69607
69329
  this.quickReply.destroy();
69608
69330
  this.mainItem.destroy();
@@ -69788,17 +69510,7 @@ ${codeText}
69788
69510
  this.commentsProvider.localDeleteComment(comment.id);
69789
69511
  quickReply.show();
69790
69512
  });
69791
- __publicField(this, "handleResolve", (groupItem) => {
69792
- const { commentsProvider } = this;
69793
- const comment = commentsProvider.getComment(groupItem.comment.id);
69794
- const user = this.groupList.editor.doc.getUser();
69795
- commentsProvider.localUpdateCommentResolver(comment.id, {
69796
- userId: user.userId,
69797
- displayName: user.displayName,
69798
- date: Date.now()
69799
- });
69800
- });
69801
- __publicField(this, "execute", (element, groupItem, commentId, itemIndex, event) => {
69513
+ __publicField(this, "execute", (element, groupItem, commentId, itemIndex) => {
69802
69514
  const actionElement = getClosestGroupItemActionElement(element);
69803
69515
  if (!actionElement)
69804
69516
  return;
@@ -69837,11 +69549,6 @@ ${codeText}
69837
69549
  case GroupItemActions.QuickReplyCancel:
69838
69550
  this.handleQuickReplyCancel(groupItem);
69839
69551
  break;
69840
- case GroupItemActions.Resolve:
69841
- event.preventDefault();
69842
- event.stopPropagation();
69843
- this.handleResolve(groupItem);
69844
- break;
69845
69552
  default:
69846
69553
  const exhaustiveCheck = actionId;
69847
69554
  logger$1f.debug(`not implement handler for ${exhaustiveCheck}`);
@@ -69855,8 +69562,8 @@ ${codeText}
69855
69562
  }
69856
69563
  const logger$1e = getLogger("comment-group-list");
69857
69564
  class CommentGroupList extends ListBase {
69858
- constructor(editor, commentsProvider, parent, type) {
69859
- super(editor, commentsProvider, parent, getUnresolvedCommentsGroupFromDoc(editor, commentsProvider), {});
69565
+ constructor(editor, commentsProvider, parent) {
69566
+ super(editor, commentsProvider, parent, getCommentsGroupFromDoc(editor, commentsProvider), {});
69860
69567
  __publicField(this, "groupItemHandlers");
69861
69568
  __publicField(this, "dispatchScroll", debounce__default.default(() => {
69862
69569
  this.editor.scrollContainer.dispatchEvent(new Event("scroll"));
@@ -69894,9 +69601,7 @@ ${codeText}
69894
69601
  const commentId = getClosestCommentItemId(event.target);
69895
69602
  const index2 = this.items.findIndex((item) => item.root === itemRoot);
69896
69603
  if (index2 !== -1) {
69897
- const disableActive = !!event.target.closest(".disable-active");
69898
- const enableActive = !disableActive;
69899
- if (this.activeIndex !== index2 && enableActive) {
69604
+ if (this.activeIndex !== index2) {
69900
69605
  this.setActiveItem(index2);
69901
69606
  }
69902
69607
  const { groupItemHandlers } = this;
@@ -69904,8 +69609,7 @@ ${codeText}
69904
69609
  event.target,
69905
69610
  this.items[index2],
69906
69611
  commentId,
69907
- index2,
69908
- event
69612
+ index2
69909
69613
  );
69910
69614
  }
69911
69615
  });
@@ -69946,7 +69650,7 @@ ${codeText}
69946
69650
  __publicField(this, "handleSelectionChanged", () => {
69947
69651
  setTimeout(() => {
69948
69652
  var _a;
69949
- const commentIds = this.type === "current" ? removeResolvedComments(this.commentsProvider, getCommentsFromSelection(this.editor)) : removeUnresolvedComments(this.commentsProvider, getCommentsFromSelection(this.editor));
69653
+ const commentIds = getCommentsFromSelection(this.editor);
69950
69654
  if (commentIds.length > 0) {
69951
69655
  if (((_a = this.activeItem) == null ? void 0 : _a.comment.id) && commentIds.includes(this.activeItem.comment.id)) {
69952
69656
  return;
@@ -69987,9 +69691,7 @@ ${codeText}
69987
69691
  const top = Number.parseFloat(firstItem.style.top);
69988
69692
  const targetTop = Number.parseFloat(firstItem.getAttribute("data-target-top") || "0");
69989
69693
  if (!Number.isNaN(top) && !Number.isNaN(targetTop) && top < targetTop) {
69990
- if (this.type === "current") {
69991
- arrangeItems(this.editor, this.items, null, Math.min(top + (0 - event.deltaY) * 3, targetTop));
69992
- }
69694
+ arrangeItems(this.editor, this.items, null, Math.min(top + (0 - event.deltaY) * 3, targetTop));
69993
69695
  }
69994
69696
  });
69995
69697
  __publicField(this, "updateGroupItemSwitch", () => {
@@ -69998,7 +69700,7 @@ ${codeText}
69998
69700
  activeItem.updateSwitchButton();
69999
69701
  });
70000
69702
  __publicField(this, "updateComments", debounce__default.default(() => {
70001
- const commentsGroup = this.type === "current" ? getUnresolvedCommentsGroupFromDoc(this.editor, this.commentsProvider) : getResolvedCommentsGroupFromDoc(this.editor, this.commentsProvider);
69703
+ const commentsGroup = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
70002
69704
  let hasBeenChanged = false;
70003
69705
  for (let i = 0; i < commentsGroup.length; i++) {
70004
69706
  const comment = commentsGroup[i];
@@ -70021,8 +69723,6 @@ ${codeText}
70021
69723
  this.emit("commentCountChanged");
70022
69724
  }
70023
69725
  }, 100));
70024
- this.editor = editor;
70025
- this.type = type;
70026
69726
  this.updateItemsLayout();
70027
69727
  this.bindEvents();
70028
69728
  this.editor.addListener("selectionChanged", this.handleSelectionChanged);
@@ -70043,9 +69743,7 @@ ${codeText}
70043
69743
  document.removeEventListener("click", this.handleDocumentClick);
70044
69744
  }
70045
69745
  updateItemsLayout(dispatchScroll = true) {
70046
- if (this.type === "current") {
70047
- arrangeItems(this.editor, this.items, this.activeItem);
70048
- }
69746
+ arrangeItems(this.editor, this.items, this.activeItem);
70049
69747
  if (dispatchScroll) {
70050
69748
  this.dispatchScroll();
70051
69749
  }
@@ -70069,7 +69767,7 @@ ${codeText}
70069
69767
  return item;
70070
69768
  }
70071
69769
  findInsertPos(data2) {
70072
- const commentsMap = getUnresolvedCommentsGroupFromDoc(this.editor, this.commentsProvider);
69770
+ const commentsMap = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
70073
69771
  const index2 = commentsMap.findIndex((group) => group.id === data2.id);
70074
69772
  if (index2 === -1) {
70075
69773
  return -1;
@@ -70169,7 +69867,6 @@ ${codeText}
70169
69867
  newItem.quickReply.hide();
70170
69868
  setTimeout(() => {
70171
69869
  newItem.edit();
70172
- newItem.setCreatingComment(true);
70173
69870
  }, 300);
70174
69871
  }
70175
69872
  }
@@ -70205,235 +69902,6 @@ ${codeText}
70205
69902
  item.handleUpdateMainComment(comment);
70206
69903
  }
70207
69904
  }
70208
- changeType(type) {
70209
- this.type = type;
70210
- const comments = this.type === "current" ? getUnresolvedCommentsGroupFromDoc(this.editor, this.commentsProvider) : getResolvedCommentsGroupFromDoc(this.editor, this.commentsProvider);
70211
- this.reloadList(comments);
70212
- if (this.type === "current") {
70213
- setTimeout(() => {
70214
- arrangeItems(this.editor, this.items, null);
70215
- });
70216
- }
70217
- }
70218
- }
70219
- function addBlockComments(doc2, block, resultMap) {
70220
- if (block.comments) {
70221
- const blockComments = block.comments;
70222
- if (Array.isArray(blockComments)) {
70223
- blockComments.forEach((commentId) => {
70224
- const commentIds = resultMap.get(block.id);
70225
- if (commentIds) {
70226
- commentIds.add(commentId);
70227
- } else {
70228
- resultMap.set(block.id, /* @__PURE__ */ new Set([commentId]));
70229
- }
70230
- });
70231
- }
70232
- }
70233
- if (block.text) {
70234
- const text2 = block.text;
70235
- text2.forEach((op) => {
70236
- if (op.attributes) {
70237
- const prefix = "comment-";
70238
- Object.entries(op.attributes).forEach(([key, value]) => {
70239
- if (key.startsWith(prefix)) {
70240
- const commentId = value;
70241
- const commentIds = resultMap.get(block.id);
70242
- if (commentIds) {
70243
- commentIds.add(commentId);
70244
- } else {
70245
- resultMap.set(block.id, /* @__PURE__ */ new Set([commentId]));
70246
- }
70247
- }
70248
- });
70249
- }
70250
- });
70251
- }
70252
- const children = block.children;
70253
- if (!children) {
70254
- return;
70255
- }
70256
- children.forEach((childContainerId) => {
70257
- const childBlocks = doc2.blocks[childContainerId];
70258
- childBlocks.forEach((subBlock) => {
70259
- addBlockComments(doc2, subBlock, resultMap);
70260
- });
70261
- });
70262
- }
70263
- function getBlockCommentsFromDoc(doc2) {
70264
- const resultMap = /* @__PURE__ */ new Map();
70265
- doc2.blocks.root.forEach((block) => {
70266
- addBlockComments(doc2, block, resultMap);
70267
- });
70268
- return resultMap;
70269
- }
70270
- function getBlocksByCommentId(doc2, commentId) {
70271
- const result = [];
70272
- const resultMap = getBlockCommentsFromDoc(doc2);
70273
- resultMap.forEach((commentIds, blockId) => {
70274
- if (commentIds.has(commentId)) {
70275
- result.push(blockId);
70276
- }
70277
- });
70278
- return result;
70279
- }
70280
- class OnesEditorCommentsRender {
70281
- constructor(type = "current") {
70282
- __publicField(this, "updateUnknownCommentsDelayed", debounce__default.default((editor) => {
70283
- const comments = this.getComments(editor);
70284
- const invisibleComments = Object.values(comments).filter((comment) => {
70285
- if (comment.id !== comment.groupId) {
70286
- return false;
70287
- }
70288
- const ret = this.type === "current" ? !!comment.resolver : !comment.resolver;
70289
- return ret;
70290
- });
70291
- const root2 = editor.rootContainer;
70292
- const effectedElements = /* @__PURE__ */ new Set();
70293
- invisibleComments.forEach((comment) => {
70294
- const key = `comment-${comment.id.toLocaleLowerCase()}`;
70295
- const elements = root2.querySelectorAll(`[${key}]`);
70296
- elements.forEach((elem) => {
70297
- elem.removeAttribute(key);
70298
- effectedElements.add(elem);
70299
- });
70300
- });
70301
- effectedElements.forEach((elem) => {
70302
- const commentAttributes = Array.from(elem.attributes).filter((a) => a.name.startsWith("comment-"));
70303
- if (commentAttributes.length === 0) {
70304
- elem.classList.remove("comment");
70305
- }
70306
- });
70307
- }));
70308
- this.type = type;
70309
- }
70310
- renderText(editor, path, attributes) {
70311
- const classes = [];
70312
- const textAttributes = {};
70313
- Object.entries(attributes).forEach(([key, value]) => {
70314
- if (key.startsWith("comment-")) {
70315
- this.renderCommentElement(editor, key, value, classes, textAttributes);
70316
- }
70317
- });
70318
- return { classes, attributes: textAttributes };
70319
- }
70320
- renderBox(editor, path, attributes) {
70321
- const classes = [];
70322
- const textAttributes = {};
70323
- Object.entries(attributes).forEach(([key, value]) => {
70324
- if (key.startsWith("comment-")) {
70325
- this.renderCommentElement(editor, key, value, classes, textAttributes);
70326
- }
70327
- });
70328
- return { classes, attributes: textAttributes };
70329
- }
70330
- renderBlock(editor, path, blockData) {
70331
- const comments = blockData.comments;
70332
- if (!comments || comments.length === 0) {
70333
- return {};
70334
- }
70335
- const classes = [];
70336
- const attributes = {};
70337
- comments.forEach((commentId) => {
70338
- const key = `comment-${commentId.toLocaleLowerCase()}`;
70339
- this.renderCommentElement(editor, key, commentId, classes, attributes);
70340
- });
70341
- return {
70342
- classes,
70343
- attributes
70344
- };
70345
- }
70346
- updateBlock(editor, path, blockElement, blockData) {
70347
- const comments = blockData.comments;
70348
- removeClass(blockElement, "comment");
70349
- Array.from(blockElement.attributes).forEach((a) => {
70350
- if (a.name.startsWith("comment-")) {
70351
- blockElement.removeAttribute(a.name);
70352
- }
70353
- });
70354
- if (!comments || comments.length === 0) {
70355
- return;
70356
- }
70357
- addClass(blockElement, "comment");
70358
- const classList = [];
70359
- comments.forEach((commentId) => {
70360
- const key = `comment-${commentId.toLocaleLowerCase()}`;
70361
- this.renderCommentElement(editor, key, commentId, classList, {});
70362
- });
70363
- if (classList.length > 0) {
70364
- addClass(blockElement, ...classList);
70365
- }
70366
- }
70367
- getCommentStatus(editor, commentId) {
70368
- const comments = editor.findCustom("editor-comments");
70369
- if (!comments) {
70370
- return "unknown";
70371
- }
70372
- const commentsProvider = comments.commentProvider;
70373
- const comment = commentsProvider.getComment(commentId);
70374
- if (!comment) {
70375
- return "unknown";
70376
- }
70377
- if (comment.resolver) {
70378
- return "resolved";
70379
- }
70380
- return "unresolved";
70381
- }
70382
- renderCommentElement(editor, key, commentId, classes, textAttributes) {
70383
- const status = this.getCommentStatus(editor, commentId);
70384
- if (this.type === "current") {
70385
- if (status === "resolved") {
70386
- return;
70387
- }
70388
- } else {
70389
- if (status === "unresolved") {
70390
- return;
70391
- }
70392
- }
70393
- classes.push("comment");
70394
- textAttributes[key] = commentId;
70395
- if (status === "unknown") {
70396
- this.updateUnknownCommentsDelayed(editor);
70397
- }
70398
- }
70399
- getComments(editor) {
70400
- const editorComments = editor.findCustom("editor-comments");
70401
- if (!editorComments) {
70402
- return [];
70403
- }
70404
- const commentProvider = editorComments.commentProvider;
70405
- return commentProvider.getComments();
70406
- }
70407
- changeType(editor, type) {
70408
- this.type = type;
70409
- const elements = editor.rootContainer.querySelectorAll(".comment");
70410
- elements.forEach((elem) => {
70411
- elem.classList.remove("comment");
70412
- Array.from(elem.attributes).forEach((a) => {
70413
- if (a.name.startsWith("comment-")) {
70414
- elem.removeAttribute(a.name);
70415
- }
70416
- });
70417
- });
70418
- const comments = this.getComments(editor);
70419
- const visibleComments = Object.values(comments).filter((comment) => {
70420
- if (comment.id !== comment.groupId) {
70421
- return false;
70422
- }
70423
- const ret = this.type === "current" ? !comment.resolver : !!comment.resolver;
70424
- return ret;
70425
- });
70426
- const visibleCommentsId = new Set(visibleComments.map((c) => c.id));
70427
- const commentsFromDoc = getBlockCommentsFromDoc(editor.doc.toJSON());
70428
- commentsFromDoc.forEach((commentIds, blockId) => {
70429
- if (Array.from(commentIds).some((c) => visibleCommentsId.has(c))) {
70430
- const block = editor.findBlockById(blockId);
70431
- if (block) {
70432
- editor.reloadBlock(block);
70433
- }
70434
- }
70435
- });
70436
- }
70437
69905
  }
70438
69906
  const COMMENT_MINI_CLS = "comment-mini";
70439
69907
  getLogger("comment-list");
@@ -70443,43 +69911,6 @@ ${codeText}
70443
69911
  __publicField(this, "root");
70444
69912
  __publicField(this, "groupsContainer");
70445
69913
  __publicField(this, "list");
70446
- __publicField(this, "listType", "current");
70447
- __publicField(this, "switcherItem", {
70448
- id: "switch-comment",
70449
- name: i18n$1.t("comment.currentComment"),
70450
- dropdown: true,
70451
- manualShowChildren: true,
70452
- childrenPlacement: "bottom-start",
70453
- children: [{
70454
- id: "current-comment",
70455
- name: i18n$1.t("comment.currentComment"),
70456
- states: ["checked"]
70457
- }, {
70458
- id: "resolved-comment",
70459
- name: i18n$1.t("comment.resolvedComment")
70460
- }]
70461
- });
70462
- __publicField(this, "switcherBar");
70463
- __publicField(this, "noResolvedCommentTip", null);
70464
- __publicField(this, "handleSwitchType", (bar2, item) => {
70465
- if (item.id === "current-comment") {
70466
- this.listType = "current";
70467
- } else {
70468
- this.listType = "resolved";
70469
- }
70470
- this.root.setAttribute("list-type", this.listType);
70471
- this.switcherItem.name = this.listType === "current" ? i18n$1.t("comment.currentComment") : i18n$1.t("comment.resolvedComment");
70472
- const children = this.switcherItem.children;
70473
- children[0].states = this.listType === "current" ? ["checked"] : [];
70474
- children[1].states = this.listType === "resolved" ? ["checked"] : [];
70475
- this.switcherBar.updateItems([this.switcherItem]);
70476
- this.list.changeType(this.listType);
70477
- const renderer = this.editor.editorBlockRenders.getRenderers().find((r) => r instanceof OnesEditorCommentsRender);
70478
- if (renderer) {
70479
- renderer.changeType(this.editor, this.listType);
70480
- }
70481
- this.updateNoResolvedCommentTip();
70482
- });
70483
69914
  __publicField(this, "handleSelectionOnComment", () => {
70484
69915
  this.emit("onSelectComment");
70485
69916
  });
@@ -70487,12 +69918,8 @@ ${codeText}
70487
69918
  var _a, _b;
70488
69919
  const count = getCommentsCountInDoc(this.editor, this.commentsProvider);
70489
69920
  (_b = (_a = this.commentOptions) == null ? void 0 : _a.onCommentCountChange) == null ? void 0 : _b.call(_a, count);
70490
- this.updateNoResolvedCommentTip();
70491
69921
  });
70492
69922
  __publicField(this, "handleActiveItemChanged", (index2, direction) => {
70493
- if (this.listType === "resolved") {
70494
- return;
70495
- }
70496
69923
  setTimeout(() => {
70497
69924
  var _a, _b;
70498
69925
  const item = this.list.activeItem;
@@ -70509,10 +69936,8 @@ ${codeText}
70509
69936
  this.editor = editor;
70510
69937
  this.commentsProvider = commentsProvider;
70511
69938
  this.root = createElement("div", ["editor-web-comment-root"], null);
70512
- this.root.setAttribute("list-type", this.listType);
70513
69939
  this.groupsContainer = createElement("div", ["comment-groups-container"], this.root);
70514
69940
  this.list = this.createList();
70515
- this.switcherBar = this.createSwitcher();
70516
69941
  this.commentsProvider.addListener(this);
70517
69942
  this.list.addListener("activeItemChanged", this.handleActiveItemChanged);
70518
69943
  this.list.addListener("itemLayoutUpdated", this.handleItemLayoutUpdated);
@@ -70525,13 +69950,10 @@ ${codeText}
70525
69950
  return commentOptions;
70526
69951
  }
70527
69952
  destroy() {
70528
- var _a;
70529
69953
  this.list.removeAllListeners();
70530
69954
  this.commentsProvider.removeListener(this);
70531
69955
  this.list.destroy();
70532
69956
  this.root.remove();
70533
- this.switcherBar.destroy();
70534
- (_a = this.noResolvedCommentTip) == null ? void 0 : _a.remove();
70535
69957
  }
70536
69958
  onCreateComment(commentId, local) {
70537
69959
  const comment = this.commentsProvider.getComment(commentId);
@@ -70546,68 +69968,8 @@ ${codeText}
70546
69968
  const comment = this.commentsProvider.getComment(commentId);
70547
69969
  this.list.handleUpdateComment(comment);
70548
69970
  }
70549
- onUpdateCommentResolver(commentId, local) {
70550
- const comment = this.commentsProvider.getComment(commentId);
70551
- if (!comment) {
70552
- return;
70553
- }
70554
- let type = "add";
70555
- if (this.listType === "current") {
70556
- if (comment.resolver) {
70557
- type = "remove";
70558
- }
70559
- } else {
70560
- if (!comment.resolver) {
70561
- type = "remove";
70562
- }
70563
- }
70564
- const blocks = /* @__PURE__ */ new Set();
70565
- if (type === "remove") {
70566
- getElementsByCommentId(this.editor, commentId).forEach((element) => {
70567
- if (isBlock$1(element)) {
70568
- blocks.add(element);
70569
- } else {
70570
- const block = getParentBlock(element);
70571
- if (block) {
70572
- blocks.add(block);
70573
- }
70574
- }
70575
- });
70576
- } else {
70577
- const blockIds = getBlocksByCommentId(this.editor.doc.toJSON(), commentId);
70578
- blockIds.forEach((blockId) => {
70579
- const block = this.editor.findBlockById(blockId);
70580
- if (block) {
70581
- blocks.add(block);
70582
- }
70583
- });
70584
- }
70585
- blocks.forEach((block) => {
70586
- this.editor.reloadBlock(block);
70587
- });
70588
- setTimeout(() => {
70589
- if (type === "add") {
70590
- this.list.handleCreateComment(comment, local);
70591
- } else {
70592
- this.list.handleDeleteComment(commentId);
70593
- }
70594
- this.updateCommentCount();
70595
- }, 300);
70596
- }
70597
69971
  createList() {
70598
- return new CommentGroupList(this.editor, this.commentsProvider, this.groupsContainer, this.listType);
70599
- }
70600
- createSwitcher() {
70601
- const container = createElement("div", ["comment-switcher-container"], this.root);
70602
- const commandBar2 = new FixedToolbar(container, [this.switcherItem], {
70603
- id: "comment-switcher"
70604
- });
70605
- commandBar2.addListener("click", this.handleSwitchType);
70606
- return commandBar2;
70607
- }
70608
- setSwitcherParent(parent) {
70609
- this.switcherBar.content.remove();
70610
- parent.append(this.switcherBar.content);
69972
+ return new CommentGroupList(this.editor, this.commentsProvider, this.groupsContainer);
70611
69973
  }
70612
69974
  isEditing(includeEmpty) {
70613
69975
  return this.list.isEditing(includeEmpty);
@@ -70615,18 +69977,6 @@ ${codeText}
70615
69977
  setFirstEditingCommentActive() {
70616
69978
  this.list.setFirstEditingCommentActive();
70617
69979
  }
70618
- updateNoResolvedCommentTip() {
70619
- var _a;
70620
- if (this.listType === "resolved" && this.list.items.length === 0) {
70621
- if (!this.noResolvedCommentTip) {
70622
- this.noResolvedCommentTip = createElement("div", ["comment-no-resolved-tip"], this.groupsContainer);
70623
- this.noResolvedCommentTip.innerText = i18n$1.t("comment.noResolvedComment");
70624
- }
70625
- return;
70626
- }
70627
- (_a = this.noResolvedCommentTip) == null ? void 0 : _a.remove();
70628
- this.noResolvedCommentTip = null;
70629
- }
70630
69980
  show(groupId) {
70631
69981
  var _a;
70632
69982
  removeClass(this.root, "hidden");
@@ -70762,7 +70112,7 @@ ${codeText}
70762
70112
  const logger$1c = getLogger("mobile-group-list");
70763
70113
  class MobileGroupList extends ListBase {
70764
70114
  constructor(editor, commentsProvider, parent, scrollElement) {
70765
- super(editor, commentsProvider, parent, getUnresolvedCommentsGroupFromDoc(editor, commentsProvider), {});
70115
+ super(editor, commentsProvider, parent, getCommentsGroupFromDoc(editor, commentsProvider), {});
70766
70116
  __publicField(this, "scroller");
70767
70117
  __publicField(this, "refreshScroller", () => {
70768
70118
  this.scroller.refresh();
@@ -70810,7 +70160,7 @@ ${codeText}
70810
70160
  this.updateComments();
70811
70161
  });
70812
70162
  __publicField(this, "updateComments", debounce__default.default(() => {
70813
- const commentsGroup = getUnresolvedCommentsGroupFromDoc(this.editor, this.commentsProvider);
70163
+ const commentsGroup = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
70814
70164
  for (let i = 0; i < commentsGroup.length; i++) {
70815
70165
  const comment = commentsGroup[i];
70816
70166
  const groupItem = this.findGroupItem(comment.groupId);
@@ -70844,7 +70194,7 @@ ${codeText}
70844
70194
  return item;
70845
70195
  }
70846
70196
  findInsertPos(data2) {
70847
- const commentsMap = getUnresolvedCommentsGroupFromDoc(this.editor, this.commentsProvider);
70197
+ const commentsMap = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
70848
70198
  const index2 = commentsMap.findIndex((group) => group.id === data2.id);
70849
70199
  if (index2 === -1) {
70850
70200
  return -1;
@@ -70980,8 +70330,6 @@ ${codeText}
70980
70330
  const comment = this.commentsProvider.getComment(commentId);
70981
70331
  this.list.handleUpdateComment(comment);
70982
70332
  }
70983
- onUpdateCommentResolver(commentId, local) {
70984
- }
70985
70333
  get commentOptions() {
70986
70334
  const commentOptions = this.editor.getComponentOptions("comment");
70987
70335
  return commentOptions;
@@ -71007,7 +70355,7 @@ ${codeText}
71007
70355
  }
71008
70356
  }
71009
70357
  function getMiniCommentsGroupFromDoc(editor, commentsProvider) {
71010
- const commentsGroupFromDoc = getUnresolvedCommentsGroupFromDoc(editor, commentsProvider);
70358
+ const commentsGroupFromDoc = getCommentsGroupFromDoc(editor, commentsProvider);
71011
70359
  const miniCommentGroups = /* @__PURE__ */ new Map();
71012
70360
  for (const commentGroup of commentsGroupFromDoc) {
71013
70361
  const blockId = getBlockIdByGroupId(editor, commentGroup.groupId);
@@ -71154,9 +70502,6 @@ ${codeText}
71154
70502
  }
71155
70503
  onUpdateComment(commentId, local) {
71156
70504
  }
71157
- onUpdateCommentResolver(commentId, local) {
71158
- this.list.updateMiniCommentsGroup();
71159
- }
71160
70505
  show() {
71161
70506
  removeClass(this.root, "hidden");
71162
70507
  }
@@ -71425,15 +70770,6 @@ ${codeText}
71425
70770
  get isMobile() {
71426
70771
  return clientType.isMobile;
71427
70772
  }
71428
- getCommentList() {
71429
- return this.commentList;
71430
- }
71431
- getMobileCommentList() {
71432
- return this.mobileCommentList;
71433
- }
71434
- getMiniCommentList() {
71435
- return this.miniCommentList;
71436
- }
71437
70773
  destroy() {
71438
70774
  var _a, _b;
71439
70775
  (_a = this.commentList) == null ? void 0 : _a.destroy();
@@ -71459,9 +70795,6 @@ ${codeText}
71459
70795
  if (containers.mobileContainer && this.mobileCommentList) {
71460
70796
  containers.mobileContainer.append(this.mobileCommentList.root);
71461
70797
  }
71462
- if (containers.switchBarContainer && this.commentList) {
71463
- this.commentList.setSwitcherParent(containers.switchBarContainer);
71464
- }
71465
70798
  }
71466
70799
  }
71467
70800
  const style$7 = "";
@@ -71485,13 +70818,7 @@ ${codeText}
71485
70818
  more: "\u66F4\u591A",
71486
70819
  comment: "\u6DFB\u52A0\u6279\u6CE8",
71487
70820
  command: "\u6DFB\u52A0\u6279\u6CE8",
71488
- quickMenuCommand: "\u6DFB\u52A0\u6279\u6CE8",
71489
- resolvedBy: "\u5DF2\u7531 {name} \u6210\u5458\u89E3\u51B3",
71490
- reopen: "\u91CD\u65B0\u6253\u5F00",
71491
- currentComment: "\u5F53\u524D\u6279\u6CE8",
71492
- resolvedComment: "\u5DF2\u89E3\u51B3\u6279\u6CE8",
71493
- removedFromDoc: "\u5F15\u7528\u5185\u5BB9\u5DF2\u5220\u9664",
71494
- noResolvedComment: "\u65E0\u5DF2\u89E3\u51B3\u6279\u6CE8"
70821
+ quickMenuCommand: "\u6DFB\u52A0\u6279\u6CE8"
71495
70822
  }
71496
70823
  };
71497
70824
  const enUS$k = {
@@ -71514,13 +70841,7 @@ ${codeText}
71514
70841
  more: "More",
71515
70842
  comment: "Add annotation",
71516
70843
  command: "Add annotation",
71517
- quickMenuCommand: "Add annotation",
71518
- resolvedBy: "Resolved by {name}",
71519
- reopen: "Reopen",
71520
- currentComment: "Current Annotations",
71521
- resolvedComment: "Resolved Annotations",
71522
- removedFromDoc: "This annotation has been removed from the document",
71523
- noResolvedComment: "No resolved annotations"
70844
+ quickMenuCommand: "Add annotation"
71524
70845
  }
71525
70846
  };
71526
70847
  const jaJP$k = {
@@ -71543,13 +70864,7 @@ ${codeText}
71543
70864
  more: "\u305D\u306E\u4ED6",
71544
70865
  comment: "\u6CE8\u91C8\u3092\u8FFD\u52A0",
71545
70866
  command: "\u6CE8\u91C8\u3092\u8FFD\u52A0",
71546
- quickMenuCommand: "\u6CE8\u91C8\u3092\u8FFD\u52A0",
71547
- resolvedBy: "{name} \u306B\u3088\u3063\u3066\u89E3\u6C7A\u6E08\u307F",
71548
- reopen: "\u518D\u958B",
71549
- currentComment: "\u73FE\u5728\u306E\u6CE8\u91C8",
71550
- resolvedComment: "\u89E3\u6C7A\u6E08\u307F\u306E\u6CE8\u91C8",
71551
- removedFromDoc: "\u3053\u306E\u6CE8\u91C8\u306F\u6587\u66F8\u304B\u3089\u524A\u9664\u3055\u308C\u307E\u3057\u305F",
71552
- noResolvedComment: "\u89E3\u6C7A\u6E08\u307F\u306E\u6CE8\u91C8\u306F\u3042\u308A\u307E\u305B\u3093"
70867
+ quickMenuCommand: "\u6CE8\u91C8\u3092\u8FFD\u52A0"
71553
70868
  }
71554
70869
  };
71555
70870
  i18n$1.mergeLang({
@@ -71557,6 +70872,61 @@ ${codeText}
71557
70872
  "en-US": enUS$k,
71558
70873
  "ja-JP": jaJP$k
71559
70874
  });
70875
+ class OnesEditorCommentsRender {
70876
+ renderText(editor, path, attributes) {
70877
+ const classes = [];
70878
+ const textAttributes = {};
70879
+ Object.entries(attributes).forEach(([key, value]) => {
70880
+ if (key.startsWith("comment-")) {
70881
+ classes.push("comment");
70882
+ textAttributes[key] = value;
70883
+ }
70884
+ });
70885
+ return { classes, attributes: textAttributes };
70886
+ }
70887
+ renderBox(editor, path, attributes) {
70888
+ const classes = [];
70889
+ const textAttributes = {};
70890
+ Object.entries(attributes).forEach(([key, value]) => {
70891
+ if (key.startsWith("comment-")) {
70892
+ classes.push("comment");
70893
+ textAttributes[key] = value;
70894
+ }
70895
+ });
70896
+ return { classes, attributes: textAttributes };
70897
+ }
70898
+ renderBlock(editor, path, blockData) {
70899
+ const comments = blockData.comments;
70900
+ if (!comments || comments.length === 0) {
70901
+ return {};
70902
+ }
70903
+ const classes = ["comment"];
70904
+ const attributes = {};
70905
+ comments.forEach((commentId) => {
70906
+ attributes[`comment-${commentId.toLocaleLowerCase()}`] = commentId;
70907
+ });
70908
+ return {
70909
+ classes,
70910
+ attributes
70911
+ };
70912
+ }
70913
+ updateBlock(editor, path, blockElement, blockData) {
70914
+ const comments = blockData.comments;
70915
+ removeClass(blockElement, "comment");
70916
+ Array.from(blockElement.attributes).forEach((a) => {
70917
+ if (a.name.startsWith("comment-")) {
70918
+ blockElement.removeAttribute(a.name);
70919
+ }
70920
+ });
70921
+ if (!comments || comments.length === 0) {
70922
+ return;
70923
+ }
70924
+ addClass(blockElement, "comment");
70925
+ comments.forEach((commentId) => {
70926
+ blockElement.setAttribute(`comment-${commentId.toLocaleLowerCase()}`, commentId);
70927
+ });
70928
+ }
70929
+ }
71560
70930
  class OnesEditorCommentPlaceholderHandler {
71561
70931
  constructor(editor) {
71562
70932
  __publicField(this, "handleUpdateCompositionText", (editor, containerId, blockIndex, offset, end) => {
@@ -71708,21 +71078,6 @@ ${codeText}
71708
71078
  method: "delete"
71709
71079
  });
71710
71080
  }
71711
- function updateCommentResolverToOldDoc(editor, version, commentId, resolver) {
71712
- var _a, _b;
71713
- const doc2 = editor.doc;
71714
- const server = (_b = (_a = doc2.getServerMeta) == null ? void 0 : _a.call(doc2)) == null ? void 0 : _b.apiServer;
71715
- assert(logger$16, server, "apiServer is not set");
71716
- const api = `${server}/${version}/comments/${commentId}/resolver`;
71717
- return doc2.request(api, {
71718
- method: "put",
71719
- data: {
71720
- resolver
71721
- }
71722
- });
71723
- }
71724
- getLogger("resolved-comment-item");
71725
- const styles = "";
71726
71081
  const isAllContainersSelected = (editor) => {
71727
71082
  var _a;
71728
71083
  const range = editor.selection.range;
@@ -71797,16 +71152,6 @@ ${codeText}
71797
71152
  await updateCommentToOldDoc(this.editor, this.version, commentId, comments.commentProvider.getCommentDoc(commentId));
71798
71153
  }
71799
71154
  }
71800
- onUpdateCommentResolver(commentId, local) {
71801
- const comments = this.editor.getCustom("editor-comments");
71802
- const provider = comments.commentProvider;
71803
- const comment = provider.getComment(commentId);
71804
- if (!comment) {
71805
- return;
71806
- }
71807
- const resolver = comment.resolver;
71808
- updateCommentResolverToOldDoc(this.editor, this.version, commentId, resolver);
71809
- }
71810
71155
  hideToolbar(editor) {
71811
71156
  const toolbar2 = editor.findCustom("toolbar-handler");
71812
71157
  toolbar2 == null ? void 0 : toolbar2.disableTextToolbar();
@@ -77119,14 +76464,14 @@ ${docStr}
77119
76464
  }
77120
76465
  function isList(elem) {
77121
76466
  var _a;
77122
- const styles2 = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
77123
- return styles2.findIndex((style2) => style2.startsWith("level")) !== -1;
76467
+ const styles = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
76468
+ return styles.findIndex((style2) => style2.startsWith("level")) !== -1;
77124
76469
  }
77125
76470
  function getOfficeListGroupId(elem) {
77126
76471
  var _a;
77127
- const styles2 = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
77128
- for (let i = 0; i < styles2.length; i++) {
77129
- const name = styles2[i];
76472
+ const styles = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
76473
+ for (let i = 0; i < styles.length; i++) {
76474
+ const name = styles[i];
77130
76475
  if (name.startsWith("mso-list:")) {
77131
76476
  return name;
77132
76477
  }
@@ -77135,9 +76480,9 @@ ${docStr}
77135
76480
  }
77136
76481
  function getLevel(elem) {
77137
76482
  var _a, _b;
77138
- const styles2 = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
77139
- for (let i = 0; i < styles2.length; i++) {
77140
- const name = styles2[i];
76483
+ const styles = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
76484
+ for (let i = 0; i < styles.length; i++) {
76485
+ const name = styles[i];
77141
76486
  if (name.startsWith("level")) {
77142
76487
  const level = (_b = Number.parseInt(name.substring(5), 10)) != null ? _b : void 0;
77143
76488
  if (level) {
@@ -80741,8 +80086,6 @@ ${docStr}
80741
80086
  }
80742
80087
  onUpdateComment() {
80743
80088
  }
80744
- onUpdateCommentResolver(commentId, local) {
80745
- }
80746
80089
  }
80747
80090
  async function playHistoryData(doc2, versionHelper, historyData) {
80748
80091
  for (const data2 of historyData) {
@@ -85685,7 +85028,7 @@ ${data2.flowchartText}
85685
85028
  };
85686
85029
  const drawioIframeUrl = "https://embed.diagrams.net/?embed=1";
85687
85030
  const DrawioJsUrl = "https://www.draw.io/embed.js";
85688
- const PakoJsUrl = "https://cdn.jsdelivr.net/npm/pako@2.0.3/dist/pako.es5.js";
85031
+ const PakoJsUrl = "https://cdn.jsdelivr.net/npm/pako@2.0.3/dist/pako.es5.min.js";
85689
85032
  const EmptyIcon = '<svg width="48" height="49" viewBox="0 0 48 49" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect x="27" y="18.5" width="18" height="9" stroke="#C7C7C7" stroke-width="3"/>\n<rect x="12" y="18.5" width="9" height="9" transform="rotate(45 12 18.5)" stroke="#C7C7C7" stroke-width="3"/>\n<rect x="27" y="36.5" width="18" height="9" stroke="#C7C7C7" stroke-width="3"/>\n<path d="M27 24.5L18 24.5" stroke="#C7C7C7" stroke-width="3"/>\n<path d="M28.5 41H18" stroke="#C7C7C7" stroke-width="3"/>\n<path d="M18 41H12L12 30.5" stroke="#C7C7C7" stroke-width="3"/>\n<path d="M12 21.5L12 12.5" stroke="#C7C7C7" stroke-width="3"/>\n<rect x="7.5" y="3.5" width="9" height="9" rx="4.5" stroke="#C7C7C7" stroke-width="3"/>\n</svg>\n';
85690
85033
  const DEFAULT_STYLES = `
85691
85034
  <mxStylesheet>
@@ -86105,10 +85448,13 @@ ${data2.flowchartText}
86105
85448
  drawioIframe.setAttribute("src", iframeUrl);
86106
85449
  }
86107
85450
  async function initDrawIo(editor) {
86108
- var _a, _b;
85451
+ var _a, _b, _c, _d, _e;
86109
85452
  const option = getDrawioOptions(editor);
86110
- const drawIoUrl = ((_a = option.cdn) == null ? void 0 : _a.drawio) || DrawioJsUrl;
85453
+ const drawIoUrl = ((_a = option.cdn) == null ? void 0 : _a.drawioJs) || DrawioJsUrl;
86111
85454
  const pakoUrl = ((_b = option.cdn) == null ? void 0 : _b.pako) || PakoJsUrl;
85455
+ window.DRAWIO_BASE_URL = ((_c = option.cdn) == null ? void 0 : _c.drawioBaseUrl) || void 0;
85456
+ window.DRAWIO_LIGHTBOX_URL = ((_d = option.cdn) == null ? void 0 : _d.drawioBaseUrl) || void 0;
85457
+ window.STENCIL_PATH = ((_e = option.cdn) == null ? void 0 : _e.drawioBaseUrl) ? `${option.cdn.drawioBaseUrl}/stencils` : void 0;
86112
85458
  await loadJsPromise(pakoUrl, "editor-pako");
86113
85459
  await loadJsPromise(drawIoUrl, "editor-drawio");
86114
85460
  }
@@ -88330,11 +87676,17 @@ ${data2.plantumlText}
88330
87676
  }
88331
87677
  );
88332
87678
  toolbar2.addListener("selectionChange", (bar2, item) => {
88333
- const container = getContainerById(editor, containerID);
88334
- if (item === "delete-column") {
88335
- addClass(container, "danger");
88336
- } else {
88337
- removeClass(container, "danger");
87679
+ try {
87680
+ const container = getExistsContainerById(editor, containerID);
87681
+ if (!container) {
87682
+ return;
87683
+ }
87684
+ if (item === "delete-column") {
87685
+ addClass(container, "danger");
87686
+ } else {
87687
+ removeClass(container, "danger");
87688
+ }
87689
+ } catch (e2) {
88338
87690
  }
88339
87691
  });
88340
87692
  toolbar2.addListener("click", (bar2, item) => {
@@ -90905,9 +90257,6 @@ ${data2.plantumlText}
90905
90257
  localUpdateComment(comment, doc2) {
90906
90258
  this.doc.localUpdateComment(comment, doc2);
90907
90259
  }
90908
- localUpdateCommentResolver(commentId, resolver) {
90909
- this.doc.localUpdateCommentResolver(commentId, resolver);
90910
- }
90911
90260
  onCreateComment(commentId, local) {
90912
90261
  Array.from(this.listeners.values()).forEach((listener) => listener.onCreateComment(commentId, local));
90913
90262
  }
@@ -90917,9 +90266,6 @@ ${data2.plantumlText}
90917
90266
  onUpdateComment(commentId, local) {
90918
90267
  Array.from(this.listeners.values()).forEach((listener) => listener.onUpdateComment(commentId, local));
90919
90268
  }
90920
- onUpdateCommentResolver(commentId, local) {
90921
- Array.from(this.listeners.values()).forEach((listener) => listener.onUpdateCommentResolver(commentId, local));
90922
- }
90923
90269
  addListener(callback) {
90924
90270
  this.listeners.add(callback);
90925
90271
  }
@@ -90945,10 +90291,9 @@ ${data2.plantumlText}
90945
90291
  constructor(editor, localDoc) {
90946
90292
  __publicField(this, "_listeners", /* @__PURE__ */ new Set());
90947
90293
  __publicField(this, "_doc");
90948
- var _a, _b;
90949
90294
  this.editor = editor;
90950
90295
  this.localDoc = localDoc;
90951
- this._doc = ((_b = (_a = this.localDoc).rawData) == null ? void 0 : _b.call(_a)) || this.localDoc.toJSON();
90296
+ this._doc = this.localDoc.toJSON();
90952
90297
  }
90953
90298
  get doc() {
90954
90299
  return this._doc;
@@ -91003,17 +90348,6 @@ ${data2.plantumlText}
91003
90348
  this._doc.comments[id] = shareDBComment;
91004
90349
  Array.from(this._listeners.values()).forEach((listener) => listener.onUpdateComment(id, true));
91005
90350
  }
91006
- localUpdateCommentResolver(commentId, resolver) {
91007
- const comment = this.getComment(commentId);
91008
- if (comment) {
91009
- if (resolver) {
91010
- comment.resolver = resolver;
91011
- } else {
91012
- delete comment.resolver;
91013
- }
91014
- Array.from(this._listeners.values()).forEach((listener) => listener.onUpdateCommentResolver(commentId, true));
91015
- }
91016
- }
91017
90351
  createCommentEditor(parent, childDoc) {
91018
90352
  const commentEditor = createCommentEditor(this.editor, {
91019
90353
  root: parent,
@@ -91355,6 +90689,7 @@ ${data2.plantumlText}
91355
90689
  this._editor = editor;
91356
90690
  }
91357
90691
  handleError(error2, customMessage) {
90692
+ console.error("wiz-editor error:", error2);
91358
90693
  if (this._editor) {
91359
90694
  this._editor.readonly = true;
91360
90695
  }
@@ -91751,8 +91086,8 @@ ${data2.plantumlText}
91751
91086
  const inlineStyles = attributesOfText(text2, "inlineStyle");
91752
91087
  if (inlineStyles == null)
91753
91088
  return;
91754
- const styles2 = inlineStyles.split(";");
91755
- for (const style2 of styles2) {
91089
+ const styles = inlineStyles.split(";");
91090
+ for (const style2 of styles) {
91756
91091
  const pair = style2.split(":");
91757
91092
  if (pair.length !== 2)
91758
91093
  continue;
@@ -93805,7 +93140,7 @@ ${data2.plantumlText}
93805
93140
  }
93806
93141
  }
93807
93142
  });
93808
- editor.version = "2.8.25-beta.9";
93143
+ editor.version = "2.8.26";
93809
93144
  return editor;
93810
93145
  }
93811
93146
  function isDoc(doc2) {
@@ -93918,7 +93253,7 @@ ${data2.plantumlText}
93918
93253
  }
93919
93254
  });
93920
93255
  OnesEditorToolbar.register(editor);
93921
- editor.version = "2.8.25-beta.9";
93256
+ editor.version = "2.8.26";
93922
93257
  return editor;
93923
93258
  }
93924
93259
  async function showDocVersions(editor, options, serverUrl) {
@@ -139738,7 +139073,6 @@ ${data2.plantumlText}
139738
139073
  exports2.CheckMarkIcon = CheckMarkIcon;
139739
139074
  exports2.CheckboxIcon = CheckboxIcon;
139740
139075
  exports2.CircleAddIcon = CircleAddIcon;
139741
- exports2.CircleCheckMarkIcon = CircleCheckMarkIcon;
139742
139076
  exports2.ClearIcon = ClearIcon;
139743
139077
  exports2.ClipboardProvider = ClipboardProvider;
139744
139078
  exports2.CloseIcon = CloseIcon;
@@ -139889,8 +139223,6 @@ ${data2.plantumlText}
139889
139223
  exports2.MoreItem = MoreItem;
139890
139224
  exports2.NextIcon = NextIcon;
139891
139225
  exports2.OnesEditorAutoSuggest = OnesEditorAutoSuggest;
139892
- exports2.OnesEditorComments = OnesEditorComments;
139893
- exports2.OnesEditorCommentsRender = OnesEditorCommentsRender;
139894
139226
  exports2.OnesEditorCustomDataWrapper = OnesEditorCustomDataWrapper;
139895
139227
  exports2.OnesEditorExclusiveBlock = OnesEditorExclusiveBlock;
139896
139228
  exports2.OnesEditorHoveringBlock = OnesEditorHoveringBlock;