@ones-editor/editor 2.8.28-beta.1 → 2.8.31

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 (79) hide show
  1. package/@ones-editor/block-locker/src/i18n/zh-hant-hk.d.ts +8 -0
  2. package/@ones-editor/block-menu/src/locale/zh-hant-hk.d.ts +25 -0
  3. package/@ones-editor/callout-block/src/locale/zh-hant-hk.d.ts +15 -0
  4. package/@ones-editor/code-block/src/locale/zh-hant-hk.d.ts +13 -0
  5. package/@ones-editor/comments/src/comments/comments.d.ts +0 -4
  6. package/@ones-editor/comments/src/comments-helper/active-comment.d.ts +1 -3
  7. package/@ones-editor/comments/src/comments-helper/get-comment-from-selection.d.ts +0 -3
  8. package/@ones-editor/comments/src/comments-helper/get-comments-from-doc.d.ts +1 -5
  9. package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +1 -2
  10. package/@ones-editor/comments/src/comments-list/comments-list.d.ts +1 -11
  11. package/@ones-editor/comments/src/comments-list/group-item.d.ts +0 -2
  12. package/@ones-editor/comments/src/comments-list/group-list.d.ts +2 -7
  13. package/@ones-editor/comments/src/comments-list/handler.d.ts +1 -2
  14. package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +1 -1
  15. package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +0 -1
  16. package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +0 -1
  17. package/@ones-editor/comments/src/comments-render/index.d.ts +1 -10
  18. package/@ones-editor/comments/src/constant/index.d.ts +1 -2
  19. package/@ones-editor/comments/src/index.d.ts +0 -1
  20. package/@ones-editor/comments/src/locale/en-us.d.ts +0 -7
  21. package/@ones-editor/comments/src/locale/ja-jp.d.ts +0 -7
  22. package/@ones-editor/comments/src/locale/zh-cn.d.ts +0 -7
  23. package/@ones-editor/comments/src/locale/zh-hant-hk.d.ts +24 -0
  24. package/@ones-editor/comments/src/types.d.ts +1 -6
  25. package/@ones-editor/context-menu/src/locale/zh-hant-hk.d.ts +14 -0
  26. package/@ones-editor/core/src/core/block-renderers/block-renderers.d.ts +0 -1
  27. package/@ones-editor/core/src/core/composition/editor-input.d.ts +0 -2
  28. package/@ones-editor/core/src/core/doc/doc.d.ts +0 -9
  29. package/@ones-editor/core/src/core/types.d.ts +0 -3
  30. package/@ones-editor/core/src/i18n/i18n.d.ts +21 -1
  31. package/@ones-editor/core/src/i18n/zh-hant-hk.d.ts +21 -0
  32. package/@ones-editor/core/src/local-doc/index.d.ts +0 -1
  33. package/@ones-editor/dividing-line-embed/src/i18n/zh-hant-hk.d.ts +7 -0
  34. package/@ones-editor/drawio-embed/src/lang/zh-hant-hk.d.ts +19 -0
  35. package/@ones-editor/drawio-embed/types/index.d.ts +1 -1
  36. package/@ones-editor/embed-block-helper/src/locale/zh-hant-hk.d.ts +7 -0
  37. package/@ones-editor/exclusive-block/src/locale/zh-hant-hk.d.ts +7 -0
  38. package/@ones-editor/file/src/locale/zh-hant-hk.d.ts +15 -0
  39. package/@ones-editor/find-dialog/src/locale/zh-hant-hk.d.ts +13 -0
  40. package/@ones-editor/graph-embed/src/lang/zh-hant-hk.d.ts +18 -0
  41. package/@ones-editor/heading-collapse/src/locale/zh-hant-hk.d.ts +7 -0
  42. package/@ones-editor/image-embed/src/locale/zh-hant-hk.d.ts +17 -0
  43. package/@ones-editor/input-handlers/src/i18n/zh-hant-hk.d.ts +13 -0
  44. package/@ones-editor/layout-block/src/locale/zh-hant-hk.d.ts +10 -0
  45. package/@ones-editor/list-block/src/lang/zh-hant-hk.d.ts +21 -0
  46. package/@ones-editor/main-toolbar/src/locale/zh-hant-hk.d.ts +15 -0
  47. package/@ones-editor/mathjax/src/locale/zh-hant-hk.d.ts +7 -0
  48. package/@ones-editor/media-embed/src/locale/zh-hant-hk.d.ts +20 -0
  49. package/@ones-editor/mention/src/locale/zh-hant-hk.d.ts +9 -0
  50. package/@ones-editor/misc/src/re-auth/locale/zh-hant-hk.d.ts +7 -0
  51. package/@ones-editor/mobile-helper/src/locale/zh-hant-hk.d.ts +9 -0
  52. package/@ones-editor/paste-special/src/locale/zh-hant-hk.d.ts +8 -0
  53. package/@ones-editor/sharedb-doc/src/doc/comments.d.ts +1 -2
  54. package/@ones-editor/sharedb-doc/src/doc/op-parser/parse-handler.d.ts +1 -2
  55. package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +1 -3
  56. package/@ones-editor/sharedb-doc/src/types.d.ts +0 -1
  57. package/@ones-editor/status/src/locale/zh-hant-hk.d.ts +25 -0
  58. package/@ones-editor/table-block/src/locale/zh-hant-hk.d.ts +33 -0
  59. package/@ones-editor/templates/src/locale/zh-hant-hk.d.ts +9 -0
  60. package/@ones-editor/toc/src/locale/zh-hant-hk.d.ts +8 -0
  61. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  62. package/@ones-editor/ui/src/locale/zh-hant-hk.d.ts +60 -0
  63. package/@ones-editor/ui/src/readonly-toolbar/add-comment-to-old-doc.d.ts +0 -1
  64. package/@ones-editor/ui-base/src/icons/index.d.ts +1 -2
  65. package/@ones-editor/ui-base/src/locale/zh-hant-hk.d.ts +39 -0
  66. package/@ones-editor/versions/src/locale/zh-hant-hk.d.ts +45 -0
  67. package/@ones-editor/versions/src/version-dialog/history-handler.d.ts +0 -1
  68. package/@ones-editor/webpage-embed/src/locale/zh-hant-hk.d.ts +27 -0
  69. package/dist/comments/local-doc-comments-provider.d.ts +1 -2
  70. package/dist/comments/sharedb-doc-comments-provider.d.ts +1 -3
  71. package/dist/index.d.ts +0 -2
  72. package/dist/index.js +768 -878
  73. package/dist/lang/zh-hant-hk.d.ts +31 -0
  74. package/dist/types.d.ts +0 -2
  75. package/package.json +1 -1
  76. package/@ones-editor/comments/src/comments-render/get-block-comments.d.ts +0 -5
  77. package/@ones-editor/comments/src/resolved-comments/index.d.ts +0 -4
  78. package/@ones-editor/comments/src/resolved-comments/resolved-comment-editor.d.ts +0 -14
  79. package/@ones-editor/comments/src/resolved-comments/resolved-comment-list.d.ts +0 -4
package/dist/index.js CHANGED
@@ -4116,7 +4116,6 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4116
4116
  .comment-item-root .item-head-tools {
4117
4117
  display: flex;
4118
4118
  align-items: center;
4119
- justify-content: center;
4120
4119
  visibility: hidden;
4121
4120
  }
4122
4121
  .comment-item-root .item-head-tools .editor-text-button {
@@ -4126,8 +4125,8 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4126
4125
  color: #0064ff;
4127
4126
  }
4128
4127
  .comment-item-root .item-head-tools .editor-text-button svg {
4129
- width: 16px;
4130
- height: 16px;
4128
+ width: 20px;
4129
+ height: 20px;
4131
4130
  }
4132
4131
  .comment-item-root .item-head-tools.active {
4133
4132
  visibility: visible;
@@ -4320,36 +4319,6 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4320
4319
  will-change: width;
4321
4320
  font-family: var(--editor-font-family);
4322
4321
  }
4323
- .editor-web-comment-root.disable-resolve .comment-groups-container .item-head-switch .editor-text-button[data-button-id=resolve] {
4324
- display: none;
4325
- }
4326
- .editor-web-comment-root.disable-resolve .comment-groups-container .comment-actions button.comment-reopen {
4327
- display: none;
4328
- }
4329
- .editor-web-comment-root[list-type=resolved] .comment-groups-container {
4330
- display: flex;
4331
- flex-direction: column;
4332
- gap: 20px;
4333
- padding-left: 8px;
4334
- padding-top: 60px;
4335
- }
4336
- .editor-web-comment-root[list-type=resolved] .comment-groups-container .comment-no-resolved-tip {
4337
- font-size: 12px;
4338
- width: 100%;
4339
- color: #BEBFC2;
4340
- display: flex;
4341
- justify-content: center;
4342
- align-items: center;
4343
- margin-top: 100px;
4344
- }
4345
- .editor-web-comment-root[list-type=resolved] .comment-groups-container .comment-group-item-root {
4346
- position: inherit;
4347
- transform: none;
4348
- }
4349
- .editor-web-comment-root[list-type=resolved] .comment-groups-container .comment-group-item-root::before {
4350
- left: 8px;
4351
- right: 8px;
4352
- }
4353
4322
  .editor-web-comment-root .comment-groups-container .comment-group-item-root {
4354
4323
  position: absolute;
4355
4324
  left: 50%;
@@ -4363,17 +4332,8 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4363
4332
  box-shadow: var(--editor-box-shadow);
4364
4333
  padding-bottom: 10px;
4365
4334
  }
4366
- .editor-web-comment-root .comment-groups-container .comment-group-item-root.resolved .comment-item-head .item-head-switch {
4367
- display: none;
4368
- }
4369
- .editor-web-comment-root .comment-groups-container .comment-group-item-root.resolved .item-head-tools {
4370
- display: none;
4371
- }
4372
- .editor-web-comment-root .comment-groups-container .comment-group-item-root.resolved .comment-quick-reply {
4373
- display: none;
4374
- }
4375
4335
  .editor-web-comment-root .comment-groups-container .comment-group-item-root:not(.no-animation) {
4376
- transition: top 0.2s ease-in, opacity 0.2s ease-in;
4336
+ transition: top 0.2s ease-in, opacity 0.35s ease-in;
4377
4337
  }
4378
4338
  .editor-web-comment-root .comment-groups-container .comment-group-item-root::before {
4379
4339
  content: "";
@@ -4420,23 +4380,16 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4420
4380
  display: flex;
4421
4381
  align-items: center;
4422
4382
  height: 22px;
4383
+ visibility: hidden;
4423
4384
  }
4424
4385
  .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button {
4425
4386
  padding: 0;
4426
4387
  width: var(--editor-comment-switch-button-width);
4427
- margin-right: 5px;
4388
+ margin: 3px 0;
4428
4389
  color: #606060;
4429
- width: 16px;
4430
- height: 16px;
4431
4390
  }
4432
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] {
4433
- visibility: hidden;
4434
- }
4435
- .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] {
4436
- visibility: hidden;
4437
- }
4438
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button[data-button-id=resolve] {
4439
- margin-right: 0;
4392
+ margin-right: 16px;
4440
4393
  }
4441
4394
  .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button:not(.disabled):hover {
4442
4395
  color: var(--text-button-color-hover);
@@ -4445,57 +4398,15 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4445
4398
  color: rgba(96, 96, 96, 0.5019607843);
4446
4399
  cursor: not-allowed;
4447
4400
  }
4448
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer {
4449
- font-size: 12px;
4450
- line-height: 20px;
4451
- color: #87888A;
4452
- margin-top: 10px;
4453
- }
4454
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions {
4455
- display: flex;
4456
- align-items: center;
4457
- }
4458
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions .comment-date {
4459
- flex: 1;
4460
- white-space: nowrap;
4461
- }
4462
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions .removed-tips {
4463
- color: #87888A;
4464
- white-space: nowrap;
4465
- text-overflow: ellipsis;
4466
- overflow: hidden;
4467
- margin-left: 10px;
4468
- }
4469
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions .comment-reopen {
4470
- background: none;
4471
- border: none;
4472
- cursor: pointer;
4473
- color: #575859;
4474
- font-size: 12px;
4475
- }
4476
- .editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions .comment-reopen:hover {
4477
- color: #0064FF;
4478
- }
4479
4401
  .editor-web-comment-root .comment-groups-container .comment-group-item-root.active::before {
4480
4402
  background-color: #f59300;
4481
4403
  }
4482
- .editor-web-comment-root .comment-groups-container .comment-group-item-root.active .item-head-switch .editor-text-button[data-button-id=switch-up] {
4483
- visibility: visible;
4484
- }
4485
- .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 {
4486
4405
  visibility: visible;
4487
4406
  }
4488
4407
  .editor-web-comment-root .comment-groups-container .comment-group-item-root.readonly .comment-quick-reply .quick-reply-button.invisible {
4489
4408
  display: none;
4490
4409
  }
4491
- .editor-web-comment-root .comment-switcher-container {
4492
- position: absolute;
4493
- z-index: 1;
4494
- top: 0;
4495
- left: 0;
4496
- right: 0;
4497
- font-size: 14px;
4498
- }
4499
4410
  .editor-mobile-comments-root {
4500
4411
  position: fixed;
4501
4412
  left: 0;
@@ -4597,82 +4508,6 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
4597
4508
  }
4598
4509
  :is(.editor-web-comment-root, .editor-mobile-comments-root, .editor-mini-comment-root).hidden {
4599
4510
  display: none;
4600
- }.resolved-comment-list .resolved-comment-group-item-root {
4601
- padding: 10px 20px;
4602
- border-bottom: 1px solid #f0f0f0;
4603
- margin-right: 10px;
4604
- }
4605
- .resolved-comment-list .resolved-comment-group-item-root .comment-group-head {
4606
- margin-bottom: 5px;
4607
- }
4608
- .resolved-comment-list .resolved-comment-group-item-root .comment-group-head span {
4609
- padding: 0 5px;
4610
- display: inline-block;
4611
- line-height: 2;
4612
- background-color: #FFF0D9;
4613
- }
4614
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container,
4615
- .resolved-comment-list .resolved-comment-group-item-root .comment-container {
4616
- padding-left: 10px;
4617
- }
4618
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root,
4619
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root {
4620
- position: relative;
4621
- }
4622
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root:not(.no-children)::before,
4623
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root:not(.no-children)::before {
4624
- content: " ";
4625
- display: block;
4626
- position: absolute;
4627
- left: 10px;
4628
- width: 1px;
4629
- background-color: #DFE1E5;
4630
- overflow: hidden;
4631
- opacity: 0.8;
4632
- top: 21px;
4633
- bottom: -12px;
4634
- transform: scaleX(0.5);
4635
- }
4636
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-head,
4637
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-head {
4638
- padding: 0;
4639
- position: relative;
4640
- display: flex;
4641
- align-items: center;
4642
- }
4643
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-head .comment-avatar,
4644
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-head .comment-avatar {
4645
- margin-right: 5px;
4646
- width: var(--editor-comment-avatar-width, 22px);
4647
- height: var(--editor-comment-avatar-width, 22px);
4648
- border-radius: 100%;
4649
- }
4650
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-head .comment-username,
4651
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-head .comment-username {
4652
- font-size: var(--editor-comment-username-font-size, 12px);
4653
- color: #2d2d2e;
4654
- overflow: hidden;
4655
- text-overflow: ellipsis;
4656
- white-space: nowrap;
4657
- }
4658
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-head .comment-modified,
4659
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-head .comment-modified {
4660
- margin-left: 10px;
4661
- font-size: 12px;
4662
- color: #87888a;
4663
- flex-grow: 1;
4664
- white-space: nowrap;
4665
- }
4666
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-editor,
4667
- .resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-editor {
4668
- border: none;
4669
- padding-top: 0;
4670
- margin-top: 0;
4671
- padding-left: 10px;
4672
- margin-left: 0;
4673
- }
4674
- .resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root:last-child::before {
4675
- display: none;
4676
4511
  }div[data-type=editor-block].table-block {
4677
4512
  --table-bar-width: 6px;
4678
4513
  --table-bar-left: -6px;
@@ -5513,7 +5348,7 @@ div[data-command-bar-id=table-cell-menu] .tippy-box .tippy-content .editor-comma
5513
5348
  }
5514
5349
  .editor-find-dialog-status {
5515
5350
  display: flex;
5516
- }body > div.editor-context-menu[data-tippy-root].zh-CN {
5351
+ }body > div.editor-context-menu[data-tippy-root].zh-CN, body > div.editor-context-menu[data-tippy-root].zh-HK {
5517
5352
  min-width: 200px;
5518
5353
  }
5519
5354
  body > div.editor-context-menu[data-tippy-root].en-US, body > div.editor-context-menu[data-tippy-root].ja-JP {
@@ -9061,6 +8896,26 @@ var __publicField = (obj, key, value) => {
9061
8896
  imageExportFailed: "\u56FE\u7247\u52A0\u8F7D\u5931\u8D25"
9062
8897
  }
9063
8898
  };
8899
+ const zhHK$x = {
8900
+ name: "Ones Editor",
8901
+ date: {
8902
+ dateFromFuture: "\u4F86\u81EA\u672A\u4F86",
8903
+ dateJustNow: "\u525B\u525B",
8904
+ dateYesterday: "\u6628\u5929",
8905
+ dateMinutesAgo: "{num}\u5206\u9418\u524D",
8906
+ date1HourAgo: "1\u5C0F\u6642\u524D",
8907
+ dateHoursAgo: "{num}\u5C0F\u6642\u524D",
8908
+ dateDaysAgo: "{num}\u5929\u524D",
8909
+ dateWeeksAgo: "{num}\u5468\u524D"
8910
+ },
8911
+ common: {
8912
+ cancel: "\u53D6\u6D88",
8913
+ downloadAsImage: "\u4E0B\u8F09\u70BA\u5716\u7247"
8914
+ },
8915
+ docx: {
8916
+ imageExportFailed: "\u5716\u7247\u52A0\u8F09\u5931\u6557"
8917
+ }
8918
+ };
9064
8919
  const jaJP$x = {
9065
8920
  name: "ONES \u30A8\u30C7\u30A3\u30BF\u30FC",
9066
8921
  date: {
@@ -9085,6 +8940,7 @@ var __publicField = (obj, key, value) => {
9085
8940
  const langs$3 = {
9086
8941
  "en-US": enUS$x,
9087
8942
  "zh-CN": zhCN$x,
8943
+ "zh-HK": zhHK$x,
9088
8944
  "ja-JP": jaJP$x
9089
8945
  };
9090
8946
  const i18n = KiwiIntl__default.default.init("en-US", langs$3);
@@ -9372,22 +9228,22 @@ var __publicField = (obj, key, value) => {
9372
9228
  function toFloat(value) {
9373
9229
  return parseFloat(value) || 0;
9374
9230
  }
9375
- function getBordersSize(styles2) {
9231
+ function getBordersSize(styles) {
9376
9232
  var positions = [];
9377
9233
  for (var _i = 1; _i < arguments.length; _i++) {
9378
9234
  positions[_i - 1] = arguments[_i];
9379
9235
  }
9380
9236
  return positions.reduce(function(size, position) {
9381
- var value = styles2["border-" + position + "-width"];
9237
+ var value = styles["border-" + position + "-width"];
9382
9238
  return size + toFloat(value);
9383
9239
  }, 0);
9384
9240
  }
9385
- function getPaddings(styles2) {
9241
+ function getPaddings(styles) {
9386
9242
  var positions = ["top", "right", "bottom", "left"];
9387
9243
  var paddings = {};
9388
9244
  for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
9389
9245
  var position = positions_1[_i];
9390
- var value = styles2["padding-" + position];
9246
+ var value = styles["padding-" + position];
9391
9247
  paddings[position] = toFloat(value);
9392
9248
  }
9393
9249
  return paddings;
@@ -9401,17 +9257,17 @@ var __publicField = (obj, key, value) => {
9401
9257
  if (!clientWidth && !clientHeight) {
9402
9258
  return emptyRect;
9403
9259
  }
9404
- var styles2 = getWindowOf(target).getComputedStyle(target);
9405
- var paddings = getPaddings(styles2);
9260
+ var styles = getWindowOf(target).getComputedStyle(target);
9261
+ var paddings = getPaddings(styles);
9406
9262
  var horizPad = paddings.left + paddings.right;
9407
9263
  var vertPad = paddings.top + paddings.bottom;
9408
- var width = toFloat(styles2.width), height = toFloat(styles2.height);
9409
- if (styles2.boxSizing === "border-box") {
9264
+ var width = toFloat(styles.width), height = toFloat(styles.height);
9265
+ if (styles.boxSizing === "border-box") {
9410
9266
  if (Math.round(width + horizPad) !== clientWidth) {
9411
- width -= getBordersSize(styles2, "left", "right") + horizPad;
9267
+ width -= getBordersSize(styles, "left", "right") + horizPad;
9412
9268
  }
9413
9269
  if (Math.round(height + vertPad) !== clientHeight) {
9414
- height -= getBordersSize(styles2, "top", "bottom") + vertPad;
9270
+ height -= getBordersSize(styles, "top", "bottom") + vertPad;
9415
9271
  }
9416
9272
  }
9417
9273
  if (!isDocumentElement(target)) {
@@ -10066,8 +9922,8 @@ var __publicField = (obj, key, value) => {
10066
9922
  el.setAttribute(key, value);
10067
9923
  });
10068
9924
  }
10069
- function setStyles(el, styles2) {
10070
- Object.entries(styles2).forEach(([key, value]) => {
9925
+ function setStyles(el, styles) {
9926
+ Object.entries(styles).forEach(([key, value]) => {
10071
9927
  el.style.setProperty(key, value);
10072
9928
  });
10073
9929
  }
@@ -12487,12 +12343,12 @@ var __publicField = (obj, key, value) => {
12487
12343
  return blockClass.getBlockStyles(editor, block);
12488
12344
  }
12489
12345
  const data2 = editor.getBlockData(block);
12490
- const styles2 = Object.fromEntries(Object.entries(data2).filter(([key]) => key.startsWith("style-")));
12491
- Object.entries(styles2).forEach(([, value]) => {
12346
+ const styles = Object.fromEntries(Object.entries(data2).filter(([key]) => key.startsWith("style-")));
12347
+ Object.entries(styles).forEach(([, value]) => {
12492
12348
  const type = typeof value;
12493
12349
  assert(logger$4C, type === "string" || type === "number" || type === "boolean", "invalid style value");
12494
12350
  });
12495
- return styles2;
12351
+ return styles;
12496
12352
  }
12497
12353
  function getContainerWidth(container, options) {
12498
12354
  const ret = container.getBoundingClientRect().width;
@@ -25081,7 +24937,7 @@ var __publicField = (obj, key, value) => {
25081
24937
  if (attributes) {
25082
24938
  let string = op.insert;
25083
24939
  const tags = [];
25084
- let styles2 = "";
24940
+ let styles = "";
25085
24941
  if (attributes["style-bold"]) {
25086
24942
  tags.push("strong");
25087
24943
  }
@@ -25099,25 +24955,25 @@ var __publicField = (obj, key, value) => {
25099
24955
  }
25100
24956
  const fontBgColor = Object.keys(attributes).find((k) => k.startsWith("style-bg-color-"));
25101
24957
  if (fontBgColor) {
25102
- styles2 += `background-color: ${styleBackgroundColorToHighlight$1(fontBgColor)};`;
24958
+ styles += `background-color: ${styleBackgroundColorToHighlight$1(fontBgColor)};`;
25103
24959
  }
25104
24960
  const fontColor = Object.keys(attributes).find((k) => k.startsWith("style-color-"));
25105
24961
  if (fontColor) {
25106
- styles2 += `color: ${styleColorToColor$1(fontColor)};`;
24962
+ styles += `color: ${styleColorToColor$1(fontColor)};`;
25107
24963
  }
25108
24964
  if (attributes.link) {
25109
24965
  string = `<a href="${attributes.link}">${string}</a>`;
25110
24966
  }
25111
24967
  let prefix = tags.map((s) => `<${s}>`).join("");
25112
24968
  let suffix = tags.reverse().map((s) => `</${s}>`).join("");
25113
- if (styles2) {
24969
+ if (styles) {
25114
24970
  if (attributes.link) {
25115
- string = `<a href="${attributes.link}" style="${styles2}">${op.insert}</a>`;
24971
+ string = `<a href="${attributes.link}" style="${styles}">${op.insert}</a>`;
25116
24972
  } else {
25117
24973
  if (prefix) {
25118
- prefix = prefix.replace(">", ` style="${styles2}">`);
24974
+ prefix = prefix.replace(">", ` style="${styles}">`);
25119
24975
  } else {
25120
- prefix = `<span style="${styles2}">`;
24976
+ prefix = `<span style="${styles}">`;
25121
24977
  suffix = "</span>";
25122
24978
  }
25123
24979
  }
@@ -25560,9 +25416,6 @@ var __publicField = (obj, key, value) => {
25560
25416
  __publicField(this, "renders", []);
25561
25417
  this.editor = editor;
25562
25418
  }
25563
- getRenderers() {
25564
- return this.renders;
25565
- }
25566
25419
  registerRender(render) {
25567
25420
  this.renders.push(render);
25568
25421
  }
@@ -25800,8 +25653,8 @@ var __publicField = (obj, key, value) => {
25800
25653
  renderBlock(editor, path, blockData) {
25801
25654
  var _a, _b;
25802
25655
  const attributes = {};
25803
- const styles2 = Object.entries(blockData).filter((k) => k[0].startsWith("style-"));
25804
- styles2.forEach(([key, value]) => {
25656
+ const styles = Object.entries(blockData).filter((k) => k[0].startsWith("style-"));
25657
+ styles.forEach(([key, value]) => {
25805
25658
  attributes[`data-${key}`] = `${value}`;
25806
25659
  });
25807
25660
  const classes = [];
@@ -26008,7 +25861,6 @@ var __publicField = (obj, key, value) => {
26008
25861
  constructor(editor, callbacks) {
26009
25862
  __publicField(this, "editor");
26010
25863
  __publicField(this, "composing", false);
26011
- __publicField(this, "composingTimer");
26012
25864
  __publicField(this, "callbacks");
26013
25865
  __publicField(this, "inputElement");
26014
25866
  __publicField(this, "handleBlur", () => {
@@ -26068,13 +25920,12 @@ var __publicField = (obj, key, value) => {
26068
25920
  if (!this.editor.isWritable()) {
26069
25921
  return;
26070
25922
  }
26071
- clearTimeout(this.composingTimer);
26072
25923
  this.composing = true;
26073
25924
  this.callbacks.onCompositionStart(event);
26074
25925
  });
26075
25926
  __publicField(this, "handleCompositionend", (event) => {
26076
25927
  if (isSafari()) {
26077
- this.composingTimer = setTimeout(() => {
25928
+ setTimeout(() => {
26078
25929
  this.composing = false;
26079
25930
  }, 100);
26080
25931
  } else {
@@ -31774,7 +31625,7 @@ ${codeText}
31774
31625
  const logger$38 = getLogger("editor");
31775
31626
  class Editor extends tinyTypedEmitter.TypedEmitter {
31776
31627
  constructor(parent, doc2, optionalOptions) {
31777
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
31628
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
31778
31629
  super();
31779
31630
  __publicField(this, "parent");
31780
31631
  __publicField(this, "rootElement");
@@ -31820,13 +31671,12 @@ ${codeText}
31820
31671
  componentsOptions: (_c = (_b = optionalOptions == null ? void 0 : optionalOptions.components) == null ? void 0 : _b.options) != null ? _c : {},
31821
31672
  scrollContainer: optionalOptions == null ? void 0 : optionalOptions.scrollContainer,
31822
31673
  enableComments: (_d = optionalOptions == null ? void 0 : optionalOptions.enableComments) != null ? _d : true,
31823
- enableResolveComments: (_e = optionalOptions == null ? void 0 : optionalOptions.enableResolveComments) != null ? _e : true,
31824
- enableContextMenu: (_f = optionalOptions == null ? void 0 : optionalOptions.enableContextMenu) != null ? _f : true
31674
+ enableContextMenu: (_e = optionalOptions == null ? void 0 : optionalOptions.enableContextMenu) != null ? _e : true
31825
31675
  };
31826
- this.settingsProvider = (_g = optionalOptions == null ? void 0 : optionalOptions.settingsProvider) != null ? _g : new DefaultSettingsProvider(this);
31676
+ this.settingsProvider = (_f = optionalOptions == null ? void 0 : optionalOptions.settingsProvider) != null ? _f : new DefaultSettingsProvider(this);
31827
31677
  registerComponents(this, optionalOptions == null ? void 0 : optionalOptions.components);
31828
- this.blockHooks.push(...(_i = (_h = optionalOptions == null ? void 0 : optionalOptions.components) == null ? void 0 : _h.blockHooks) != null ? _i : []);
31829
- this.id = (_j = optionalOptions == null ? void 0 : optionalOptions.id) != null ? _j : genId();
31678
+ this.blockHooks.push(...(_h = (_g = optionalOptions == null ? void 0 : optionalOptions.components) == null ? void 0 : _g.blockHooks) != null ? _h : []);
31679
+ this.id = (_i = optionalOptions == null ? void 0 : optionalOptions.id) != null ? _i : genId();
31830
31680
  this.clientId = genId();
31831
31681
  this.undoManager = new UndoManager(this);
31832
31682
  this.doc = new EditorDoc(this, doc2, this.undoManager);
@@ -32312,9 +32162,6 @@ ${codeText}
32312
32162
  toJSON() {
32313
32163
  return cloneDeep__default.default(this.doc);
32314
32164
  }
32315
- rawData() {
32316
- return this.doc;
32317
- }
32318
32165
  getContainerBlocks(containerId) {
32319
32166
  const blocks = this.doc.blocks[containerId];
32320
32167
  return blocks;
@@ -38835,12 +38682,6 @@ ${codeText}
38835
38682
  commentId
38836
38683
  });
38837
38684
  }
38838
- onUpdateCommentResolver(commentId) {
38839
- this.pushActions({
38840
- type: "updateCommentResolved",
38841
- commentId
38842
- });
38843
- }
38844
38685
  end() {
38845
38686
  const actions2 = this.actions;
38846
38687
  const deletedBlocks = /* @__PURE__ */ new Set();
@@ -38915,9 +38756,6 @@ ${codeText}
38915
38756
  } else if (action.type === "updateComment") {
38916
38757
  const a = action;
38917
38758
  this.outerHandler.onUpdateComment(a.commentId, this.local);
38918
- } else if (action.type === "updateCommentResolved") {
38919
- const a = action;
38920
- this.outerHandler.onUpdateCommentResolver(a.commentId, this.local);
38921
38759
  }
38922
38760
  });
38923
38761
  Array.from(updatingBlockDataDeltaMap.entries()).forEach(([blockId, objectData]) => {
@@ -39095,14 +38933,7 @@ ${codeText}
39095
38933
  assert(logger$2W, commentId, `invalid comment op, no commentId: ${JSON.stringify(ops)}`);
39096
38934
  assert(logger$2W, actions2, `invalid comment op, no actions: ${JSON.stringify(ops)}`);
39097
38935
  if (typeof actions2 === "string") {
39098
- const data2 = ops[3];
39099
- if (actions2 === "resolver" && typeof data2 === "object") {
39100
- if (parseType === "upsert") {
39101
- handler.onUpdateCommentResolver(commentId);
39102
- }
39103
- } else {
39104
- logger$2W.error(`unknown comment op, ${JSON.stringify(ops)}`);
39105
- }
38936
+ logger$2W.error(`unknown comment op, ${JSON.stringify(ops)}`);
39106
38937
  } else {
39107
38938
  if (actions2.i && actions2.r) {
39108
38939
  if (parseType === "upsert") {
@@ -39212,8 +39043,7 @@ ${codeText}
39212
39043
  avatarUrl,
39213
39044
  abstract,
39214
39045
  created,
39215
- modified,
39216
- resolver: resolved
39046
+ modified
39217
39047
  } = shareDBComment;
39218
39048
  return {
39219
39049
  id,
@@ -39223,8 +39053,7 @@ ${codeText}
39223
39053
  avatarUrl,
39224
39054
  abstract,
39225
39055
  created,
39226
- modified,
39227
- resolver: resolved
39056
+ modified
39228
39057
  };
39229
39058
  }
39230
39059
  function commentToShareDbComment(comment, doc2) {
@@ -39696,21 +39525,6 @@ ${codeText}
39696
39525
  const op = ["comments", comment.id, { r: true, i: shareDBComment }];
39697
39526
  return this.submitOp(op);
39698
39527
  }
39699
- localUpdateCommentResolver(commentId, resolver) {
39700
- const oldComment = this.getComment(commentId);
39701
- const oldResolved = oldComment.resolver;
39702
- const op = ["comments", commentId, "resolver", {}];
39703
- if (!oldResolved && !resolver) {
39704
- return Promise.resolve(true);
39705
- }
39706
- if (oldResolved !== void 0) {
39707
- op[3] = { r: true };
39708
- }
39709
- if (resolver) {
39710
- op[3].i = resolver;
39711
- }
39712
- return this.submitOp(op);
39713
- }
39714
39528
  destroy() {
39715
39529
  var _a;
39716
39530
  this.destroyed = true;
@@ -39787,13 +39601,6 @@ ${codeText}
39787
39601
  return (_a = cb.onUpdateComment) == null ? void 0 : _a.call(cb, commentId, local);
39788
39602
  });
39789
39603
  }
39790
- onUpdateCommentResolver(commentId, local) {
39791
- assert(logger$2T, this.callbacks.length > 0, "no callbacks");
39792
- this.callbacks.forEach((cb) => {
39793
- var _a;
39794
- return (_a = cb.onUpdateCommentResolver) == null ? void 0 : _a.call(cb, commentId, local);
39795
- });
39796
- }
39797
39604
  onCustomMessage(msg) {
39798
39605
  const message = msg;
39799
39606
  if ((message == null ? void 0 : message.type) === "custom" && (message == null ? void 0 : message.clientId) !== this.client.clientId) {
@@ -40625,6 +40432,44 @@ ${codeText}
40625
40432
  loading: "\u52A0\u8F7D\u4E2D..."
40626
40433
  }
40627
40434
  };
40435
+ const zhHK$w = {
40436
+ button: {
40437
+ ok: "\u78BA\u5B9A",
40438
+ cancel: "\u53D6\u6D88",
40439
+ confirm: "\u78BA\u5B9A"
40440
+ },
40441
+ colorPalette: {
40442
+ colorDesc: "\u5B57\u9AD4\u984F\u8272",
40443
+ name: "\u5B57\u9AD4\u984F\u8272",
40444
+ backgroundDesc: "\u80CC\u666F\u984F\u8272",
40445
+ reset: "\u6062\u5FA9\u9ED8\u8A8D",
40446
+ more: "\u66F4\u591A\u984F\u8272"
40447
+ },
40448
+ emojiPalette: {
40449
+ name: "\u66F4\u63DB\u5716\u6A19",
40450
+ search: {
40451
+ placeholder: "\u641C\u7D22"
40452
+ },
40453
+ content: {
40454
+ loading: "\u52A0\u8F09\u4E2D",
40455
+ empty: "\u66AB\u7121\u5339\u914D\u7D50\u679C"
40456
+ },
40457
+ category: {
40458
+ frequentlyUsed: "\u6700\u5E38\u4F7F\u7528",
40459
+ smileysAndPeople: "\u8868\u60C5\u7B26\u865F\u8207\u4EBA\u7269",
40460
+ animalsAndNature: "\u52D5\u7269\u8207\u81EA\u7136",
40461
+ foodAndDrink: "\u98DF\u7269\u8207\u98F2\u6599",
40462
+ activity: "\u6D3B\u52D5",
40463
+ travelAndPlaces: "\u65C5\u884C\u8207\u5730\u9EDE",
40464
+ objects: "\u7269\u9AD4",
40465
+ symbols: "\u7B26\u865F"
40466
+ }
40467
+ },
40468
+ search: {
40469
+ emptyTips: "\u66AB\u7121\u641C\u7D22\u7D50\u679C",
40470
+ loading: "\u52A0\u8F09\u4E2D..."
40471
+ }
40472
+ };
40628
40473
  const enUS$w = {
40629
40474
  button: {
40630
40475
  ok: "OK",
@@ -40703,6 +40548,7 @@ ${codeText}
40703
40548
  };
40704
40549
  i18n$1.mergeLang({
40705
40550
  "zh-CN": zhCN$w,
40551
+ "zh-HK": zhHK$w,
40706
40552
  "en-US": enUS$w,
40707
40553
  "ja-JP": jaJP$w
40708
40554
  });
@@ -40823,7 +40669,6 @@ ${codeText}
40823
40669
  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>';
40824
40670
  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';
40825
40671
  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>';
40826
- 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';
40827
40672
  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';
40828
40673
  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';
40829
40674
  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';
@@ -40979,7 +40824,6 @@ ${codeText}
40979
40824
  RefreshIcon,
40980
40825
  HelpIcon,
40981
40826
  CheckMarkIcon,
40982
- CircleCheckMarkIcon,
40983
40827
  TextIcon,
40984
40828
  RightArrowIcon: rightArrow,
40985
40829
  TencentVideoIcon,
@@ -48840,6 +48684,12 @@ ${codeText}
48840
48684
  addComment: "\u6DFB\u52A0\u6279\u6CE8"
48841
48685
  }
48842
48686
  };
48687
+ const zhHK$v = {
48688
+ embedProperties: {
48689
+ edit: "\u7DE8\u8F2F",
48690
+ addComment: "\u6DFB\u52A0\u6279\u8A3B"
48691
+ }
48692
+ };
48843
48693
  const enUS$v = {
48844
48694
  embedProperties: {
48845
48695
  edit: "Edit",
@@ -48854,6 +48704,7 @@ ${codeText}
48854
48704
  };
48855
48705
  i18n$1.mergeLang({
48856
48706
  "zh-CN": zhCN$v,
48707
+ "zh-HK": zhHK$v,
48857
48708
  "en-US": enUS$v,
48858
48709
  "ja-JP": jaJP$v
48859
48710
  });
@@ -49433,6 +49284,12 @@ ${codeText}
49433
49284
  fallbackAbstract: "\u8BE5 Block"
49434
49285
  }
49435
49286
  };
49287
+ const zhHK$u = {
49288
+ exclusive: {
49289
+ tips: "\u300C{editor}\u300D\u6B63\u5728\u7DE8\u8F2F\uFF0C\u300C{embedType}\u300D\u4E0D\u652F\u6301\u591A\u4EBA\u7DE8\u8F2F",
49290
+ fallbackAbstract: "\u8A72 Block"
49291
+ }
49292
+ };
49436
49293
  const enUS$u = {
49437
49294
  exclusive: {
49438
49295
  tips: "\u300C{editor}\u300Dis editing\uFF0C\u300C{embedType}\u300Ddoes not support multi-person editing",
@@ -49447,6 +49304,7 @@ ${codeText}
49447
49304
  };
49448
49305
  i18n$1.mergeLang({
49449
49306
  "zh-CN": zhCN$u,
49307
+ "zh-HK": zhHK$u,
49450
49308
  "en-US": enUS$u,
49451
49309
  "ja-JP": jaJP$u
49452
49310
  });
@@ -49632,6 +49490,13 @@ ${codeText}
49632
49490
  lockedBy: "\u88AB {name} \u9501\u5B9A"
49633
49491
  }
49634
49492
  };
49493
+ const zhHK$t = {
49494
+ locker: {
49495
+ lock: "\u9396\u5B9A",
49496
+ unlock: "\u89E3\u9664\u9396\u5B9A",
49497
+ lockedBy: "\u88AB {name} \u9396\u5B9A"
49498
+ }
49499
+ };
49635
49500
  const enUS$t = {
49636
49501
  locker: {
49637
49502
  lock: "Lock",
@@ -49648,6 +49513,7 @@ ${codeText}
49648
49513
  };
49649
49514
  i18n$1.mergeLang({
49650
49515
  "zh-CN": zhCN$t,
49516
+ "zh-HK": zhHK$t,
49651
49517
  "en-US": enUS$t,
49652
49518
  "ja-JP": jaJP$t
49653
49519
  });
@@ -50767,7 +50633,7 @@ ${codeText}
50767
50633
  });
50768
50634
  return !!ret;
50769
50635
  }
50770
- function addBlockClasses(from, to, styles2) {
50636
+ function addBlockClasses(from, to, styles) {
50771
50637
  const container = getParentContainer(from);
50772
50638
  if (to) {
50773
50639
  const container2 = getParentContainer(to);
@@ -50778,18 +50644,18 @@ ${codeText}
50778
50644
  const toIndex = getBlockIndex(to);
50779
50645
  assert(logger$24, fromIndex <= toIndex, "invalid block index");
50780
50646
  }
50781
- addClass(from, ...styles2);
50647
+ addClass(from, ...styles);
50782
50648
  if (!to || to === from) {
50783
50649
  return;
50784
50650
  }
50785
50651
  let next2 = getNextBlock(from);
50786
50652
  while (next2 !== to) {
50787
50653
  assert(logger$24, next2, "no next button");
50788
- addClass(next2, ...styles2);
50654
+ addClass(next2, ...styles);
50789
50655
  next2 = getNextBlock(next2);
50790
50656
  }
50791
50657
  if (next2) {
50792
- addClass(next2, ...styles2);
50658
+ addClass(next2, ...styles);
50793
50659
  }
50794
50660
  }
50795
50661
  async function requestMindmapFullscreen(editor, block, mindmapTools) {
@@ -51777,7 +51643,7 @@ ${codeText}
51777
51643
  html = `<input type="checkbox" disabled="disabled" /> ${html}`;
51778
51644
  }
51779
51645
  let listTag = "ul";
51780
- let styles2 = "";
51646
+ let styles = "";
51781
51647
  if (list2.ordered) {
51782
51648
  html = `<li value="${list2.start}">${html}</li>`;
51783
51649
  listTag = "ol";
@@ -51785,18 +51651,18 @@ ${codeText}
51785
51651
  case 2:
51786
51652
  case 5:
51787
51653
  case 8:
51788
- styles2 = "list-style-type: lower-alpha;";
51654
+ styles = "list-style-type: lower-alpha;";
51789
51655
  break;
51790
51656
  case 3:
51791
51657
  case 6:
51792
- styles2 = "list-style-type: lower-roman;";
51658
+ styles = "list-style-type: lower-roman;";
51793
51659
  break;
51794
51660
  }
51795
51661
  } else {
51796
51662
  html = `<li>${html}</li>`;
51797
51663
  }
51798
51664
  if (isFirstListItem(editor, blockData, doc2, path)) {
51799
- html = `<${listTag}${styles2 ? ` style="${styles2}"` : ""}>${html}`;
51665
+ html = `<${listTag}${styles ? ` style="${styles}"` : ""}>${html}`;
51800
51666
  }
51801
51667
  if (isLastListItem(editor, blockData, doc2, path)) {
51802
51668
  html = `${html}</${listTag}>`;
@@ -52632,6 +52498,26 @@ ${codeText}
52632
52498
  exitFullscreen: "\u9000\u51FA\u5168\u5C4F"
52633
52499
  }
52634
52500
  };
52501
+ const zhHK$s = {
52502
+ list: {
52503
+ confirm: "\u78BA\u5B9A",
52504
+ setStart: "\u8A2D\u7F6E\u7DE8\u865F",
52505
+ continueList: "\u7E7C\u7E8C\u7DE8\u865F",
52506
+ restartList: "\u958B\u59CB\u65B0\u5217\u8868",
52507
+ changeNumber: "\u4FEE\u6539\u7DE8\u865F\u503C",
52508
+ numberLabel: "\u7DE8\u865F\u9806\u5E8F",
52509
+ mention: {
52510
+ tooltip: "\u63D0\u53CA\u4EBA\u54E1\u4E26\u901A\u77E5"
52511
+ }
52512
+ },
52513
+ mindmap: {
52514
+ viewAsMindMap: "\u986F\u793A\u70BA\u8166\u5716",
52515
+ autoFit: "\u81EA\u52D5\u7E2E\u653E",
52516
+ fullScreen: "\u5168\u5C4F\u67E5\u770B",
52517
+ close: "\u95DC\u9589",
52518
+ exitFullscreen: "\u9000\u51FA\u5168\u5C4F"
52519
+ }
52520
+ };
52635
52521
  const enUS$s = {
52636
52522
  list: {
52637
52523
  confirm: "Confirm",
@@ -52674,6 +52560,7 @@ ${codeText}
52674
52560
  };
52675
52561
  i18n$1.mergeLang({
52676
52562
  "zh-CN": zhCN$s,
52563
+ "zh-HK": zhHK$s,
52677
52564
  "en-US": enUS$s,
52678
52565
  "ja-JP": jaJP$s
52679
52566
  });
@@ -55162,6 +55049,12 @@ $$${mathData.mathjaxText}$$
55162
55049
  abstract: "\u516C\u5F0F"
55163
55050
  }
55164
55051
  };
55052
+ const zhHK$r = {
55053
+ mathjax: {
55054
+ emptyText: "\u7A7A\u7684\u516C\u5F0F",
55055
+ abstract: "\u516C\u5F0F"
55056
+ }
55057
+ };
55165
55058
  const enUS$r = {
55166
55059
  mathjax: {
55167
55060
  emptyText: "Empty formula",
@@ -55176,6 +55069,7 @@ $$${mathData.mathjaxText}$$
55176
55069
  };
55177
55070
  i18n$1.mergeLang({
55178
55071
  "zh-CN": zhCN$r,
55072
+ "zh-HK": zhHK$r,
55179
55073
  "en-US": enUS$r,
55180
55074
  "ja-JP": jaJP$r
55181
55075
  });
@@ -60959,6 +60853,30 @@ $$${mathData.mathjaxText}$$
60959
60853
  }
60960
60854
  }
60961
60855
  };
60856
+ const zhHK$q = {
60857
+ status: {
60858
+ empty: "\u8A2D\u7F6E\u72C0\u614B",
60859
+ command: {
60860
+ name: "\u72C0\u614B"
60861
+ },
60862
+ color: {
60863
+ red: "\u7D05\u8272",
60864
+ yellow: "\u9EC3\u8272",
60865
+ green: "\u7DA0\u8272",
60866
+ blue: "\u85CD\u8272",
60867
+ purple: "\u7D2B\u8272",
60868
+ grey: "\u7070\u8272"
60869
+ },
60870
+ colorDefaultTitle: {
60871
+ red: "\u5DF2\u5EF6\u671F",
60872
+ yellow: "\u9032\u884C\u4E2D",
60873
+ green: "\u5DF2\u5B8C\u6210",
60874
+ blue: "\u672A\u958B\u59CB",
60875
+ purple: "\u5F85\u78BA\u8A8D",
60876
+ grey: "\u5DF2\u66AB\u505C"
60877
+ }
60878
+ }
60879
+ };
60962
60880
  const jaJP$q = {
60963
60881
  status: {
60964
60882
  empty: "\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8A2D\u5B9A",
@@ -60986,6 +60904,7 @@ $$${mathData.mathjaxText}$$
60986
60904
  const langs$2 = {
60987
60905
  "en-US": enUS$q,
60988
60906
  "zh-CN": zhCN$q,
60907
+ "zh-HK": zhHK$q,
60989
60908
  "ja-JP": jaJP$q
60990
60909
  };
60991
60910
  i18n$1.mergeLang(langs$2);
@@ -62096,6 +62015,65 @@ $$${mathData.mathjaxText}$$
62096
62015
  selectBlock: "\u9009\u62E9\u533A\u5757"
62097
62016
  }
62098
62017
  };
62018
+ const zhHK$p = {
62019
+ quickMenu: {
62020
+ basic: {
62021
+ heading: {
62022
+ title: "\u6A19\u984C {heading}",
62023
+ space: "{markdown}\u7A7A\u683C"
62024
+ },
62025
+ unordered: "\u7121\u5E8F\u5217\u8868",
62026
+ ordered: "\u6709\u5E8F\u5217\u8868",
62027
+ checkbox: "\u5F85\u8FA6\u5217\u8868",
62028
+ quote: "\u5F15\u7528"
62029
+ },
62030
+ inlineBox: {
62031
+ math: "\u516C\u5F0F",
62032
+ link: "\u9023\u7D50",
62033
+ emoji: "\u8868\u60C5"
62034
+ }
62035
+ },
62036
+ link: {
62037
+ textLabel: "\u6587\u672C",
62038
+ urlLabel: "\u93C8\u63A5\u5730\u5740",
62039
+ textPlaceholder: "\u8ACB\u8F38\u5165\u6587\u672C",
62040
+ urlPlaceholder: "\u8ACB\u8F38\u5165\u93C8\u63A5\u5730\u5740",
62041
+ mobileTextPlaceholder: "\u8ACB\u8F38\u5165\u6587\u672C",
62042
+ mobileUrlPlaceholder: "\u8ACB\u8F38\u5165\u93C8\u63A5\u5730\u5740",
62043
+ submitText: "\u78BA\u5B9A",
62044
+ cancelText: "\u53D6\u6D88",
62045
+ edit: "\u7DE8\u8F2F",
62046
+ remove: "\u53D6\u6D88\u93C8\u63A5",
62047
+ title: "\u63D2\u5165\u93C8\u63A5",
62048
+ openLink: "\u6253\u958B\u93C8\u63A5"
62049
+ },
62050
+ commands: {
62051
+ unordered: "\u7121\u5E8F\u5217\u8868",
62052
+ ordered: "\u6709\u5E8F\u5217\u8868",
62053
+ check: "\u5F85\u8FA6\u5217\u8868",
62054
+ link: "\u9023\u7D50",
62055
+ quote: "\u5F15\u7528",
62056
+ alignLeft: "\u5DE6\u5C0D\u9F4A",
62057
+ alignRight: "\u53F3\u5C0D\u9F4A",
62058
+ alignCenter: "\u5C45\u4E2D\u5C0D\u9F4A",
62059
+ alignGroup: "\u5C0D\u9F4A\u65B9\u5F0F",
62060
+ heading: "\u6A19\u984C {name}",
62061
+ headingGroup: "\u6A19\u984C\u6A23\u5F0F",
62062
+ text: "\u6B63\u6587",
62063
+ paste: "\u7C98\u8CBC",
62064
+ tab: "Tab",
62065
+ shiftTab: "Shift+Tab",
62066
+ bold: "\u7C97\u9AD4",
62067
+ italic: "\u659C\u9AD4",
62068
+ underline: "\u4E0B\u5283\u7DDA",
62069
+ strikethrough: "\u522A\u9664\u7DDA",
62070
+ code: "\u884C\u5167\u4EE3\u78BC",
62071
+ subscript: "\u4E0B\u6A19",
62072
+ superscript: "\u4E0A\u6A19",
62073
+ more: "\u66F4\u591A",
62074
+ selectBlock: "\u9078\u64C7\u5340\u584A"
62075
+ }
62076
+ };
62099
62077
  const enUS$p = {
62100
62078
  quickMenu: {
62101
62079
  basic: {
@@ -62216,6 +62194,7 @@ $$${mathData.mathjaxText}$$
62216
62194
  };
62217
62195
  i18n$1.mergeLang({
62218
62196
  "zh-CN": zhCN$p,
62197
+ "zh-HK": zhHK$p,
62219
62198
  "en-US": enUS$p,
62220
62199
  "ja-JP": jaJP$p
62221
62200
  });
@@ -62612,13 +62591,13 @@ $$${mathData.mathjaxText}$$
62612
62591
  if (!op.attributes) {
62613
62592
  return /* @__PURE__ */ new Map();
62614
62593
  }
62615
- const styles2 = Object.entries(op.attributes).filter(([key]) => {
62594
+ const styles = Object.entries(op.attributes).filter(([key]) => {
62616
62595
  if (key.startsWith("style-")) {
62617
62596
  return true;
62618
62597
  }
62619
62598
  return false;
62620
62599
  });
62621
- return new Map(styles2);
62600
+ return new Map(styles);
62622
62601
  };
62623
62602
  if (text2.length === 0) {
62624
62603
  return /* @__PURE__ */ new Map();
@@ -62662,11 +62641,11 @@ $$${mathData.mathjaxText}$$
62662
62641
  if (getTextLength(text2) === 0) {
62663
62642
  return textStyles;
62664
62643
  }
62665
- let styles2 = getIntersectionStyles(text2);
62666
- styles2 = mergeActiveStyle(editor, styles2);
62644
+ let styles = getIntersectionStyles(text2);
62645
+ styles = mergeActiveStyle(editor, styles);
62667
62646
  function getTextStyle(item) {
62668
62647
  const { id, icon, desc, name } = item;
62669
- const value = styles2.get(id);
62648
+ const value = styles.get(id);
62670
62649
  if (value !== void 0) {
62671
62650
  return {
62672
62651
  id,
@@ -63262,7 +63241,6 @@ $$${mathData.mathjaxText}$$
63262
63241
  GroupItemActions2["QuickReply"] = "quick-reply";
63263
63242
  GroupItemActions2["QuickReplyOk"] = "quick-reply-ok";
63264
63243
  GroupItemActions2["QuickReplyCancel"] = "quick-reply-cancel";
63265
- GroupItemActions2["Resolve"] = "resolve";
63266
63244
  return GroupItemActions2;
63267
63245
  })(GroupItemActions || {});
63268
63246
  const GROUP_ITEM_ACTION_MARK = "group-item-action";
@@ -63310,7 +63288,7 @@ $$${mathData.mathjaxText}$$
63310
63288
  return attributes.filter((attribute) => attribute.startsWith("comment-")).map((attribute) => attribute.replace("comment-", ""));
63311
63289
  }
63312
63290
  const logger$1G = getLogger("doc-comments");
63313
- function addBlockComments$1(doc2, block, result, resultSet) {
63291
+ function addBlockComments(doc2, block, result, resultSet) {
63314
63292
  if (block.comments) {
63315
63293
  const blockComments = block.comments;
63316
63294
  if (Array.isArray(blockComments)) {
@@ -63346,7 +63324,7 @@ $$${mathData.mathjaxText}$$
63346
63324
  children.forEach((childContainerId) => {
63347
63325
  const childBlocks = doc2.blocks[childContainerId];
63348
63326
  childBlocks.forEach((subBlock) => {
63349
- addBlockComments$1(doc2, subBlock, result, resultSet);
63327
+ addBlockComments(doc2, subBlock, result, resultSet);
63350
63328
  });
63351
63329
  });
63352
63330
  }
@@ -63354,7 +63332,7 @@ $$${mathData.mathjaxText}$$
63354
63332
  const result = [];
63355
63333
  const resultSet = /* @__PURE__ */ new Set();
63356
63334
  doc2.blocks.root.forEach((block) => {
63357
- addBlockComments$1(doc2, block, result, resultSet);
63335
+ addBlockComments(doc2, block, result, resultSet);
63358
63336
  });
63359
63337
  const resultMap = /* @__PURE__ */ new Map();
63360
63338
  result.forEach((commentId, index2) => resultMap.set(commentId, index2));
@@ -63410,26 +63388,6 @@ $$${mathData.mathjaxText}$$
63410
63388
  });
63411
63389
  return result;
63412
63390
  }
63413
- function getUnresolvedCommentsGroupFromDoc(editor, commentsProvider) {
63414
- return getCommentsGroupFromDoc(editor, commentsProvider).filter((group) => !group.resolver);
63415
- }
63416
- function getResolvedCommentsGroupFromDoc(editor, commentsProvider) {
63417
- const doc2 = editor.doc.toJSON();
63418
- const commentsMap = getCommentsFromDoc(doc2);
63419
- const commentGroup = getCommentsGroup(commentsProvider.getComments());
63420
- const result = commentGroup.filter((group) => group.resolver).sort((group1, group2) => {
63421
- var _a, _b, _c, _d;
63422
- const date1 = (_b = (_a = group1.resolver) == null ? void 0 : _a.date) != null ? _b : 0;
63423
- const date2 = (_d = (_c = group2.resolver) == null ? void 0 : _c.date) != null ? _d : 0;
63424
- return date2 - date1;
63425
- });
63426
- result.forEach((group) => {
63427
- if (!commentsMap.has(group.id)) {
63428
- group.removedFromDoc = true;
63429
- }
63430
- });
63431
- return result;
63432
- }
63433
63391
  function flattenCommentGroup(comment) {
63434
63392
  const { children, ...raw } = comment;
63435
63393
  const comments = [raw];
@@ -63486,18 +63444,6 @@ $$${mathData.mathjaxText}$$
63486
63444
  const commentIds = intersection__default.default(comments1, comments2);
63487
63445
  return commentIds;
63488
63446
  }
63489
- function removeUnresolvedComments(commentProvider, commentIds) {
63490
- return commentIds.filter((commentId) => {
63491
- const comment = commentProvider.getComment(commentId);
63492
- return !!comment.resolver;
63493
- });
63494
- }
63495
- function removeResolvedComments(commentProvider, commentIds) {
63496
- return commentIds.filter((commentId) => {
63497
- const comment = commentProvider.getComment(commentId);
63498
- return !(comment == null ? void 0 : comment.resolver);
63499
- });
63500
- }
63501
63447
  const logger$1F = getLogger("active-comments");
63502
63448
  function inactiveComment(editor, commentId) {
63503
63449
  const activeCommentElements = editor.rootContainer.querySelectorAll(`span.comment[comment-${commentId}],[data-type=editor-block].comment[comment-${commentId}]`);
@@ -63553,11 +63499,6 @@ $$${mathData.mathjaxText}$$
63553
63499
  }
63554
63500
  }
63555
63501
  }
63556
- function getElementsByCommentId(editor, commentId) {
63557
- const lowerCommentId = commentId.toLocaleLowerCase();
63558
- const elements = editor.rootContainer.querySelectorAll(`span.comment[comment-${lowerCommentId}],[data-type=editor-block].comment[comment-${lowerCommentId}]`);
63559
- return Array.from(elements);
63560
- }
63561
63502
  function isImageBlock(block) {
63562
63503
  return getBlockType(block) === "embed" && getEmbedType(block) === "image";
63563
63504
  }
@@ -65915,6 +65856,18 @@ ${codeText}
65915
65856
  plainText: "Plain Text"
65916
65857
  }
65917
65858
  };
65859
+ const zhHK$o = {
65860
+ code: {
65861
+ title: "\u4EE3\u78BC",
65862
+ abstract: "\u4EE3\u78BC",
65863
+ wrap: "\u63DB\u884C",
65864
+ copy: "\u8907\u88FD",
65865
+ caption: "\u8AAC\u660E",
65866
+ search: "\u8F38\u5165\u95DC\u9375\u8A5E\u641C\u7D22",
65867
+ copySuccess: "\u8907\u88FD\u6210\u529F",
65868
+ plainText: "Plain Text"
65869
+ }
65870
+ };
65918
65871
  const enUS$o = {
65919
65872
  code: {
65920
65873
  title: "Code",
@@ -65941,6 +65894,7 @@ ${codeText}
65941
65894
  };
65942
65895
  i18n$1.mergeLang({
65943
65896
  "zh-CN": zhCN$o,
65897
+ "zh-HK": zhHK$o,
65944
65898
  "en-US": enUS$o,
65945
65899
  "ja-JP": jaJP$o
65946
65900
  });
@@ -66360,6 +66314,18 @@ ${codeText}
66360
66314
  mobileDefault: "\u8F93\u5165\u4EE5\u6DFB\u52A0\u5185\u5BB9"
66361
66315
  }
66362
66316
  };
66317
+ const zhHK$n = {
66318
+ placeholder: {
66319
+ default: "\u8F38\u5165\u300C/\u300D\u5FEB\u901F\u63D2\u5165",
66320
+ heading: "\u6A19\u984C{heading}",
66321
+ list: "\u5217\u8868",
66322
+ mention: "\u5FEB\u901F\u5206\u914D\u4EFB\u52D9\uFF0C@\u63D0\u53CA\u81EA\u5DF1\u6216\u4ED6\u4EBA",
66323
+ mobileMention: "\u5FEB\u901F\u5206\u914D\u4EFB\u52D9\uFF0C@\u63D0\u53CA\u81EA\u5DF1\u6216\u4ED6\u4EBA",
66324
+ quote: "\u5F15\u7528",
66325
+ title: "\u8ACB\u8F38\u5165\u6587\u6A94\u6A19\u984C",
66326
+ mobileDefault: "\u8F38\u5165\u4EE5\u6DFB\u52A0\u5167\u5BB9"
66327
+ }
66328
+ };
66363
66329
  const jaJP$n = {
66364
66330
  placeholder: {
66365
66331
  default: "\u300C/\u300D\u3092\u5165\u529B\u3057\u3066\u7D20\u65E9\u304F\u633F\u5165\u3059\u308B",
@@ -66375,6 +66341,7 @@ ${codeText}
66375
66341
  const langs$1 = {
66376
66342
  "en-US": enUS$n,
66377
66343
  "zh-CN": zhCN$n,
66344
+ "zh-HK": zhHK$n,
66378
66345
  "ja-JP": jaJP$n
66379
66346
  };
66380
66347
  i18n$1.mergeLang(langs$1);
@@ -67131,6 +67098,30 @@ ${codeText}
67131
67098
  }
67132
67099
  }
67133
67100
  };
67101
+ const zhHK$m = {
67102
+ blockMenu: {
67103
+ section: {
67104
+ basics: "\u57FA\u790E",
67105
+ system: "\u7CFB\u7D71",
67106
+ styles: "\u6A23\u5F0F",
67107
+ common: "\u901A\u7528",
67108
+ actions: "\u64CD\u4F5C",
67109
+ thirdParty: "\u7B2C\u4E09\u65B9\u5167\u5BB9"
67110
+ },
67111
+ command: {
67112
+ insertAbove: "\u5728\u4E0A\u65B9\u63D2\u5165",
67113
+ insertAfter: "\u5728\u4E0B\u65B9\u63D2\u5165",
67114
+ copy: "\u8907\u88FD",
67115
+ cut: "\u526A\u5207",
67116
+ delete: "\u522A\u9664"
67117
+ },
67118
+ button: {
67119
+ searchPlaceholder: "\u8F38\u5165\u95DC\u9375\u8A5E\u641C\u7D22",
67120
+ tips: "\u9577\u6309\u62D6\u62FD \n \u9EDE\u64CA\u6253\u958B\u83DC\u55AE",
67121
+ insertTips: "\u9EDE\u64CA\u6DFB\u52A0\u5340\u584A"
67122
+ }
67123
+ }
67124
+ };
67134
67125
  const enUS$m = {
67135
67126
  blockMenu: {
67136
67127
  section: {
@@ -67181,6 +67172,7 @@ ${codeText}
67181
67172
  };
67182
67173
  i18n$1.mergeLang({
67183
67174
  "zh-CN": zhCN$m,
67175
+ "zh-HK": zhHK$m,
67184
67176
  "en-US": enUS$m,
67185
67177
  "ja-JP": jaJP$m
67186
67178
  });
@@ -68166,6 +68158,22 @@ ${codeText}
68166
68158
  abstract: "\u56FE\u7247"
68167
68159
  }
68168
68160
  };
68161
+ const zhHK$l = {
68162
+ image: {
68163
+ title: "\u5716\u7247",
68164
+ upload: {
68165
+ failed: '<div class="line-1">\u5716\u7247\u4E0A\u50B3\u5931\u6557</div><div class="line-2">\u7DB2\u7D61\u670D\u52D9\u7570\u5E38\uFF0C\u4F60\u53EF\u4EE5 <a href="" class="retry-upload">\u91CD\u8A66</a></div>'
68166
+ },
68167
+ load: {
68168
+ failed: '<div class="line-1">\u5716\u7247\u52A0\u8F09\u5931\u6557</div><div class="line-2">\u7DB2\u7D61\u670D\u52D9\u7570\u5E38\uFF0C\u4F60\u53EF\u4EE5 <a href="" class="retry-upload">\u91CD\u8A66</a></div>',
68169
+ remote: {
68170
+ failed: '<div class="line-1">\u5716\u7247\u52A0\u8F09\u5931\u6557</div><div class="line-2">\u8A72\u5716\u7247\u4F86\u81EA\u5916\u90E8\u9023\u7D50\uFF0C\u5916\u90E8\u9023\u7D50\u5DF2\u5931\u6548</div><div class="line-3">\u8ACB\u5C07\u539F\u5716\u4FDD\u5B58\u5230\u672C\u5730\u5F8C\u4E0A\u50B3\uFF0C <a href="" class="retry-upload">\u6253\u958B\u5716\u7247\u9023\u7D50</a></div>',
68171
+ tooltip: "\u8A72\u5716\u7247\u4F86\u81EA\u5916\u90E8\u9023\u7D50\uFF0C\u5982\u679C\u9023\u7D50\u5931\u6548\u5716\u7247\u5C07\u7121\u6CD5\u67E5\u770B\uFF0C\u5EFA\u8B70\u4FDD\u5B58\u5230\u672C\u5730\u5F8C\u6DFB\u52A0\u5230\u9801\u9762\u4E2D"
68172
+ }
68173
+ },
68174
+ abstract: "\u5716\u7247"
68175
+ }
68176
+ };
68169
68177
  const enUS$l = {
68170
68178
  image: {
68171
68179
  title: "Image",
@@ -68200,6 +68208,7 @@ ${codeText}
68200
68208
  };
68201
68209
  i18n$1.mergeLang({
68202
68210
  "zh-CN": zhCN$l,
68211
+ "zh-HK": zhHK$l,
68203
68212
  "en-US": enUS$l,
68204
68213
  "ja-JP": jaJP$l
68205
68214
  });
@@ -69290,9 +69299,8 @@ ${codeText}
69290
69299
  return items;
69291
69300
  }
69292
69301
  reloadList(data2) {
69293
- this._items.forEach((item) => item.destroy());
69294
69302
  this.container.innerHTML = "";
69295
- this._items = this.createList(data2);
69303
+ this.createList(data2);
69296
69304
  }
69297
69305
  insertItem(data2) {
69298
69306
  const index2 = this.findInsertPos(data2);
@@ -69365,8 +69373,8 @@ ${codeText}
69365
69373
  });
69366
69374
  }
69367
69375
  }
69368
- 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';
69369
- 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';
69376
+ 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>';
69377
+ 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>';
69370
69378
  const index$8 = "";
69371
69379
  const REPLY_EDITOR_EDITING_CLS = "reply-editor-editing";
69372
69380
  const { t: t$3 } = i18n$1;
@@ -69489,9 +69497,6 @@ ${codeText}
69489
69497
  __publicField(this, "quickReply");
69490
69498
  __publicField(this, "createRoot", () => {
69491
69499
  const root2 = createElement("div", ["comment-group-item-root"], null);
69492
- if (this.comment.resolver) {
69493
- addClass(root2, "resolved");
69494
- }
69495
69500
  return root2;
69496
69501
  });
69497
69502
  __publicField(this, "createChildrenList", () => {
@@ -69548,7 +69553,6 @@ ${codeText}
69548
69553
  this.mainItem = this.createItem();
69549
69554
  this.childrenList = this.createChildrenList();
69550
69555
  this.quickReply = this.createQuickReply();
69551
- this.createFooter();
69552
69556
  this.editor.on("readonlyChanged", this.handleReadonlyChanged);
69553
69557
  this.resizeObserver = new index$g(this.handleResize);
69554
69558
  this.resizeObserver.observe(this.root);
@@ -69558,29 +69562,6 @@ ${codeText}
69558
69562
  const count = getCommentItemCountInGroupItem(this.root);
69559
69563
  return count;
69560
69564
  }
69561
- createFooter() {
69562
- if (!this.comment.resolver) {
69563
- return null;
69564
- }
69565
- const footer = createElement("div", ["comment-item-footer"], this.root);
69566
- const modified = createElement("span", ["comment-modified"], footer);
69567
- const date = new Date(this.comment.modified);
69568
- const resolver = this.comment.resolver;
69569
- assert(logger$1h, resolver, "resolver should not be null");
69570
- const text2 = i18n$1.t("comment.resolvedBy", { name: resolver.displayName, date: fromNowString(date) });
69571
- modified.innerText = text2;
69572
- const actions2 = createElement("div", ["comment-actions"], footer);
69573
- createElement("span", ["comment-date"], actions2, fromNowString(new Date(resolver.date)));
69574
- if (this.comment.removedFromDoc) {
69575
- createElement("span", ["removed-tips"], actions2, i18n$1.t("comment.removedFromDoc"));
69576
- } else {
69577
- const reopen = createElement("button", ["comment-reopen"], actions2, i18n$1.t("comment.reopen"));
69578
- reopen.onclick = () => {
69579
- this.commentsProvider.localUpdateCommentResolver(this.comment.id, void 0);
69580
- };
69581
- }
69582
- return footer;
69583
- }
69584
69565
  createQuickReply() {
69585
69566
  const { editor, commentsProvider, comment } = this;
69586
69567
  const commentQuickReply = new CommentQuickReply(editor, commentsProvider, comment, this);
@@ -69595,15 +69576,8 @@ ${codeText}
69595
69576
  const switchContainer = createElement("span", ["item-head-switch"], head);
69596
69577
  const switchUp = createTextButton(switchContainer, GroupItemActions.SwitchUp, "up", switchUpIcon);
69597
69578
  const switchDown = createTextButton(switchContainer, GroupItemActions.SwitchDown, "down", switchDownIcon);
69598
- const resolve = createTextButton(switchContainer, GroupItemActions.Resolve, "resolve", CircleCheckMarkIcon);
69599
69579
  addGroupActionToElement(switchUp, GroupItemActions.SwitchUp);
69600
69580
  addGroupActionToElement(switchDown, GroupItemActions.SwitchDown);
69601
- addGroupActionToElement(resolve, GroupItemActions.Resolve);
69602
- resolve.setAttribute(`data-editor-tooltip-${this.editor.clientId}`, i18n$1.t("comment.resolveComment"));
69603
- addClass(resolve, "disable-active");
69604
- if (comment.resolver) {
69605
- addClass(resolve, "resolved");
69606
- }
69607
69581
  return head;
69608
69582
  }
69609
69583
  createItem() {
@@ -69643,7 +69617,6 @@ ${codeText}
69643
69617
  handleUpdateMainComment(comment) {
69644
69618
  assert(logger$1h, comment.id === this.mainItem.comment.id, "invalid comment");
69645
69619
  this.mainItem.reloadDoc();
69646
- this.setCreatingComment(false);
69647
69620
  }
69648
69621
  deleteMainComment(commentId) {
69649
69622
  assert(logger$1h, commentId === this.mainItem.comment.id, "invalid comment");
@@ -69652,18 +69625,6 @@ ${codeText}
69652
69625
  edit() {
69653
69626
  this.mainItem.edit();
69654
69627
  }
69655
- setCreatingComment(creating) {
69656
- const resolveButton = this.header.querySelector('.editor-text-button[group-item-action="resolve"]');
69657
- if (!resolveButton) {
69658
- return;
69659
- }
69660
- resolveButton.disabled = creating;
69661
- if (creating) {
69662
- resolveButton.classList.add("disabled");
69663
- } else {
69664
- resolveButton.classList.remove("disabled");
69665
- }
69666
- }
69667
69628
  destroy() {
69668
69629
  this.quickReply.destroy();
69669
69630
  this.mainItem.destroy();
@@ -69849,17 +69810,7 @@ ${codeText}
69849
69810
  this.commentsProvider.localDeleteComment(comment.id);
69850
69811
  quickReply.show();
69851
69812
  });
69852
- __publicField(this, "handleResolve", (groupItem) => {
69853
- const { commentsProvider } = this;
69854
- const comment = commentsProvider.getComment(groupItem.comment.id);
69855
- const user = this.groupList.editor.doc.getUser();
69856
- commentsProvider.localUpdateCommentResolver(comment.id, {
69857
- userId: user.userId,
69858
- displayName: user.displayName,
69859
- date: Date.now()
69860
- });
69861
- });
69862
- __publicField(this, "execute", (element, groupItem, commentId, itemIndex, event) => {
69813
+ __publicField(this, "execute", (element, groupItem, commentId, itemIndex) => {
69863
69814
  const actionElement = getClosestGroupItemActionElement(element);
69864
69815
  if (!actionElement)
69865
69816
  return;
@@ -69898,11 +69849,6 @@ ${codeText}
69898
69849
  case GroupItemActions.QuickReplyCancel:
69899
69850
  this.handleQuickReplyCancel(groupItem);
69900
69851
  break;
69901
- case GroupItemActions.Resolve:
69902
- event.preventDefault();
69903
- event.stopPropagation();
69904
- this.handleResolve(groupItem);
69905
- break;
69906
69852
  default:
69907
69853
  const exhaustiveCheck = actionId;
69908
69854
  logger$1f.debug(`not implement handler for ${exhaustiveCheck}`);
@@ -69916,8 +69862,8 @@ ${codeText}
69916
69862
  }
69917
69863
  const logger$1e = getLogger("comment-group-list");
69918
69864
  class CommentGroupList extends ListBase {
69919
- constructor(editor, commentsProvider, parent, type) {
69920
- super(editor, commentsProvider, parent, getUnresolvedCommentsGroupFromDoc(editor, commentsProvider), {});
69865
+ constructor(editor, commentsProvider, parent) {
69866
+ super(editor, commentsProvider, parent, getCommentsGroupFromDoc(editor, commentsProvider), {});
69921
69867
  __publicField(this, "groupItemHandlers");
69922
69868
  __publicField(this, "dispatchScroll", debounce__default.default(() => {
69923
69869
  this.editor.scrollContainer.dispatchEvent(new Event("scroll"));
@@ -69955,9 +69901,7 @@ ${codeText}
69955
69901
  const commentId = getClosestCommentItemId(event.target);
69956
69902
  const index2 = this.items.findIndex((item) => item.root === itemRoot);
69957
69903
  if (index2 !== -1) {
69958
- const disableActive = !!event.target.closest(".disable-active");
69959
- const enableActive = !disableActive;
69960
- if (this.activeIndex !== index2 && enableActive) {
69904
+ if (this.activeIndex !== index2) {
69961
69905
  this.setActiveItem(index2);
69962
69906
  }
69963
69907
  const { groupItemHandlers } = this;
@@ -69965,8 +69909,7 @@ ${codeText}
69965
69909
  event.target,
69966
69910
  this.items[index2],
69967
69911
  commentId,
69968
- index2,
69969
- event
69912
+ index2
69970
69913
  );
69971
69914
  }
69972
69915
  });
@@ -70007,7 +69950,7 @@ ${codeText}
70007
69950
  __publicField(this, "handleSelectionChanged", () => {
70008
69951
  setTimeout(() => {
70009
69952
  var _a;
70010
- const commentIds = this.type === "current" ? removeResolvedComments(this.commentsProvider, getCommentsFromSelection(this.editor)) : removeUnresolvedComments(this.commentsProvider, getCommentsFromSelection(this.editor));
69953
+ const commentIds = getCommentsFromSelection(this.editor);
70011
69954
  if (commentIds.length > 0) {
70012
69955
  if (((_a = this.activeItem) == null ? void 0 : _a.comment.id) && commentIds.includes(this.activeItem.comment.id)) {
70013
69956
  return;
@@ -70048,9 +69991,7 @@ ${codeText}
70048
69991
  const top = Number.parseFloat(firstItem.style.top);
70049
69992
  const targetTop = Number.parseFloat(firstItem.getAttribute("data-target-top") || "0");
70050
69993
  if (!Number.isNaN(top) && !Number.isNaN(targetTop) && top < targetTop) {
70051
- if (this.type === "current") {
70052
- arrangeItems(this.editor, this.items, null, Math.min(top + (0 - event.deltaY) * 3, targetTop));
70053
- }
69994
+ arrangeItems(this.editor, this.items, null, Math.min(top + (0 - event.deltaY) * 3, targetTop));
70054
69995
  }
70055
69996
  });
70056
69997
  __publicField(this, "updateGroupItemSwitch", () => {
@@ -70059,7 +70000,7 @@ ${codeText}
70059
70000
  activeItem.updateSwitchButton();
70060
70001
  });
70061
70002
  __publicField(this, "updateComments", debounce__default.default(() => {
70062
- const commentsGroup = this.type === "current" ? getUnresolvedCommentsGroupFromDoc(this.editor, this.commentsProvider) : getResolvedCommentsGroupFromDoc(this.editor, this.commentsProvider);
70003
+ const commentsGroup = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
70063
70004
  let hasBeenChanged = false;
70064
70005
  for (let i = 0; i < commentsGroup.length; i++) {
70065
70006
  const comment = commentsGroup[i];
@@ -70082,8 +70023,6 @@ ${codeText}
70082
70023
  this.emit("commentCountChanged");
70083
70024
  }
70084
70025
  }, 100));
70085
- this.editor = editor;
70086
- this.type = type;
70087
70026
  this.updateItemsLayout();
70088
70027
  this.bindEvents();
70089
70028
  this.editor.addListener("selectionChanged", this.handleSelectionChanged);
@@ -70104,9 +70043,7 @@ ${codeText}
70104
70043
  document.removeEventListener("click", this.handleDocumentClick);
70105
70044
  }
70106
70045
  updateItemsLayout(dispatchScroll = true) {
70107
- if (this.type === "current") {
70108
- arrangeItems(this.editor, this.items, this.activeItem);
70109
- }
70046
+ arrangeItems(this.editor, this.items, this.activeItem);
70110
70047
  if (dispatchScroll) {
70111
70048
  this.dispatchScroll();
70112
70049
  }
@@ -70130,7 +70067,7 @@ ${codeText}
70130
70067
  return item;
70131
70068
  }
70132
70069
  findInsertPos(data2) {
70133
- const commentsMap = getUnresolvedCommentsGroupFromDoc(this.editor, this.commentsProvider);
70070
+ const commentsMap = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
70134
70071
  const index2 = commentsMap.findIndex((group) => group.id === data2.id);
70135
70072
  if (index2 === -1) {
70136
70073
  return -1;
@@ -70230,7 +70167,6 @@ ${codeText}
70230
70167
  newItem.quickReply.hide();
70231
70168
  setTimeout(() => {
70232
70169
  newItem.edit();
70233
- newItem.setCreatingComment(true);
70234
70170
  }, 300);
70235
70171
  }
70236
70172
  }
@@ -70255,12 +70191,6 @@ ${codeText}
70255
70191
  }
70256
70192
  }
70257
70193
  }
70258
- handleResolveComment(commentId) {
70259
- const item = this.findItem(commentId);
70260
- if (item) {
70261
- this.deleteItem(item.comment.id);
70262
- }
70263
- }
70264
70194
  handleUpdateComment(comment) {
70265
70195
  const group = this.findItemAsGroupId(comment.groupId);
70266
70196
  if (group && group.comment.id !== comment.id) {
@@ -70272,239 +70202,6 @@ ${codeText}
70272
70202
  item.handleUpdateMainComment(comment);
70273
70203
  }
70274
70204
  }
70275
- changeType(type) {
70276
- this.type = type;
70277
- const comments = this.type === "current" ? getUnresolvedCommentsGroupFromDoc(this.editor, this.commentsProvider) : getResolvedCommentsGroupFromDoc(this.editor, this.commentsProvider);
70278
- this.reloadList(comments);
70279
- if (this.type === "current") {
70280
- setTimeout(() => {
70281
- arrangeItems(this.editor, this.items, null);
70282
- });
70283
- }
70284
- }
70285
- reloadList(data2) {
70286
- super.reloadList(data2);
70287
- this._items.forEach((item) => item.addListener("resize", this.handleItemResize));
70288
- }
70289
- }
70290
- function addBlockComments(doc2, block, resultMap) {
70291
- if (block.comments) {
70292
- const blockComments = block.comments;
70293
- if (Array.isArray(blockComments)) {
70294
- blockComments.forEach((commentId) => {
70295
- const commentIds = resultMap.get(block.id);
70296
- if (commentIds) {
70297
- commentIds.add(commentId);
70298
- } else {
70299
- resultMap.set(block.id, /* @__PURE__ */ new Set([commentId]));
70300
- }
70301
- });
70302
- }
70303
- }
70304
- if (block.text) {
70305
- const text2 = block.text;
70306
- text2.forEach((op) => {
70307
- if (op.attributes) {
70308
- const prefix = "comment-";
70309
- Object.entries(op.attributes).forEach(([key, value]) => {
70310
- if (key.startsWith(prefix)) {
70311
- const commentId = value;
70312
- const commentIds = resultMap.get(block.id);
70313
- if (commentIds) {
70314
- commentIds.add(commentId);
70315
- } else {
70316
- resultMap.set(block.id, /* @__PURE__ */ new Set([commentId]));
70317
- }
70318
- }
70319
- });
70320
- }
70321
- });
70322
- }
70323
- const children = block.children;
70324
- if (!children) {
70325
- return;
70326
- }
70327
- children.forEach((childContainerId) => {
70328
- const childBlocks = doc2.blocks[childContainerId];
70329
- childBlocks.forEach((subBlock) => {
70330
- addBlockComments(doc2, subBlock, resultMap);
70331
- });
70332
- });
70333
- }
70334
- function getBlockCommentsFromDoc(doc2) {
70335
- const resultMap = /* @__PURE__ */ new Map();
70336
- doc2.blocks.root.forEach((block) => {
70337
- addBlockComments(doc2, block, resultMap);
70338
- });
70339
- return resultMap;
70340
- }
70341
- function getBlocksByCommentId(doc2, commentId) {
70342
- const result = [];
70343
- const resultMap = getBlockCommentsFromDoc(doc2);
70344
- resultMap.forEach((commentIds, blockId) => {
70345
- if (commentIds.has(commentId)) {
70346
- result.push(blockId);
70347
- }
70348
- });
70349
- return result;
70350
- }
70351
- class OnesEditorCommentsRender {
70352
- constructor(type = "current") {
70353
- __publicField(this, "updateUnknownCommentsDelayed", debounce__default.default((editor) => {
70354
- const comments = this.getComments(editor);
70355
- const invisibleComments = Object.values(comments).filter((comment) => {
70356
- if (comment.id !== comment.groupId) {
70357
- return false;
70358
- }
70359
- const ret = this.type === "current" ? !!comment.resolver : !comment.resolver;
70360
- return ret;
70361
- });
70362
- const root2 = editor.rootContainer;
70363
- const effectedElements = /* @__PURE__ */ new Set();
70364
- invisibleComments.forEach((comment) => {
70365
- const key = `comment-${comment.id.toLocaleLowerCase()}`;
70366
- const elements = root2.querySelectorAll(`[${key}]`);
70367
- elements.forEach((elem) => {
70368
- elem.removeAttribute(key);
70369
- effectedElements.add(elem);
70370
- });
70371
- });
70372
- effectedElements.forEach((elem) => {
70373
- const commentAttributes = Array.from(elem.attributes).filter((a) => a.name.startsWith("comment-"));
70374
- if (commentAttributes.length === 0) {
70375
- elem.classList.remove("comment");
70376
- }
70377
- });
70378
- }));
70379
- this.type = type;
70380
- }
70381
- renderText(editor, path, attributes) {
70382
- const classes = [];
70383
- const textAttributes = {};
70384
- Object.entries(attributes).forEach(([key, value]) => {
70385
- if (key.startsWith("comment-")) {
70386
- this.renderCommentElement(editor, key, value, classes, textAttributes);
70387
- }
70388
- });
70389
- return { classes, attributes: textAttributes };
70390
- }
70391
- renderBox(editor, path, attributes) {
70392
- const classes = [];
70393
- const textAttributes = {};
70394
- Object.entries(attributes).forEach(([key, value]) => {
70395
- if (key.startsWith("comment-")) {
70396
- this.renderCommentElement(editor, key, value, classes, textAttributes);
70397
- }
70398
- });
70399
- return { classes, attributes: textAttributes };
70400
- }
70401
- renderBlock(editor, path, blockData) {
70402
- const comments = blockData.comments;
70403
- if (!comments || comments.length === 0) {
70404
- return {};
70405
- }
70406
- const classes = [];
70407
- const attributes = {};
70408
- comments.forEach((commentId) => {
70409
- const key = `comment-${commentId.toLocaleLowerCase()}`;
70410
- this.renderCommentElement(editor, key, commentId, classes, attributes);
70411
- });
70412
- return {
70413
- classes,
70414
- attributes
70415
- };
70416
- }
70417
- updateBlock(editor, path, blockElement, blockData) {
70418
- const comments = blockData.comments;
70419
- removeClass(blockElement, "comment");
70420
- Array.from(blockElement.attributes).forEach((a) => {
70421
- if (a.name.startsWith("comment-")) {
70422
- blockElement.removeAttribute(a.name);
70423
- }
70424
- });
70425
- if (!comments || comments.length === 0) {
70426
- return;
70427
- }
70428
- addClass(blockElement, "comment");
70429
- const classList = [];
70430
- comments.forEach((commentId) => {
70431
- const key = `comment-${commentId.toLocaleLowerCase()}`;
70432
- this.renderCommentElement(editor, key, commentId, classList, {});
70433
- });
70434
- if (classList.length > 0) {
70435
- addClass(blockElement, ...classList);
70436
- }
70437
- }
70438
- getCommentStatus(editor, commentId) {
70439
- const comments = editor.findCustom("editor-comments");
70440
- if (!comments) {
70441
- return "unknown";
70442
- }
70443
- const commentsProvider = comments.commentProvider;
70444
- const comment = commentsProvider.getComment(commentId);
70445
- if (!comment) {
70446
- return "unknown";
70447
- }
70448
- if (comment.resolver) {
70449
- return "resolved";
70450
- }
70451
- return "unresolved";
70452
- }
70453
- renderCommentElement(editor, key, commentId, classes, textAttributes) {
70454
- const status = this.getCommentStatus(editor, commentId);
70455
- if (this.type === "current") {
70456
- if (status === "resolved") {
70457
- return;
70458
- }
70459
- } else {
70460
- if (status === "unresolved") {
70461
- return;
70462
- }
70463
- }
70464
- classes.push("comment");
70465
- textAttributes[key] = commentId;
70466
- if (status === "unknown") {
70467
- this.updateUnknownCommentsDelayed(editor);
70468
- }
70469
- }
70470
- getComments(editor) {
70471
- const editorComments = editor.findCustom("editor-comments");
70472
- if (!editorComments) {
70473
- return [];
70474
- }
70475
- const commentProvider = editorComments.commentProvider;
70476
- return commentProvider.getComments();
70477
- }
70478
- changeType(editor, type) {
70479
- this.type = type;
70480
- const elements = editor.rootContainer.querySelectorAll(".comment");
70481
- elements.forEach((elem) => {
70482
- elem.classList.remove("comment");
70483
- Array.from(elem.attributes).forEach((a) => {
70484
- if (a.name.startsWith("comment-")) {
70485
- elem.removeAttribute(a.name);
70486
- }
70487
- });
70488
- });
70489
- const comments = this.getComments(editor);
70490
- const visibleComments = Object.values(comments).filter((comment) => {
70491
- if (comment.id !== comment.groupId) {
70492
- return false;
70493
- }
70494
- const ret = this.type === "current" ? !comment.resolver : !!comment.resolver;
70495
- return ret;
70496
- });
70497
- const visibleCommentsId = new Set(visibleComments.map((c) => c.id));
70498
- const commentsFromDoc = getBlockCommentsFromDoc(editor.doc.toJSON());
70499
- commentsFromDoc.forEach((commentIds, blockId) => {
70500
- if (Array.from(commentIds).some((c) => visibleCommentsId.has(c))) {
70501
- const block = editor.findBlockById(blockId);
70502
- if (block) {
70503
- editor.reloadBlock(block);
70504
- }
70505
- }
70506
- });
70507
- }
70508
70205
  }
70509
70206
  const COMMENT_MINI_CLS = "comment-mini";
70510
70207
  getLogger("comment-list");
@@ -70514,43 +70211,6 @@ ${codeText}
70514
70211
  __publicField(this, "root");
70515
70212
  __publicField(this, "groupsContainer");
70516
70213
  __publicField(this, "list");
70517
- __publicField(this, "listType", "current");
70518
- __publicField(this, "switcherItem", {
70519
- id: "switch-comment",
70520
- name: i18n$1.t("comment.currentComment"),
70521
- dropdown: true,
70522
- manualShowChildren: true,
70523
- childrenPlacement: "bottom-start",
70524
- children: [{
70525
- id: "current-comment",
70526
- name: i18n$1.t("comment.currentComment"),
70527
- states: ["checked"]
70528
- }, {
70529
- id: "resolved-comment",
70530
- name: i18n$1.t("comment.resolvedComment")
70531
- }]
70532
- });
70533
- __publicField(this, "switcherBar");
70534
- __publicField(this, "noResolvedCommentTip", null);
70535
- __publicField(this, "handleSwitchType", (bar2, item) => {
70536
- if (item.id === "current-comment") {
70537
- this.listType = "current";
70538
- } else {
70539
- this.listType = "resolved";
70540
- }
70541
- this.root.setAttribute("list-type", this.listType);
70542
- this.switcherItem.name = this.listType === "current" ? i18n$1.t("comment.currentComment") : i18n$1.t("comment.resolvedComment");
70543
- const children = this.switcherItem.children;
70544
- children[0].states = this.listType === "current" ? ["checked"] : [];
70545
- children[1].states = this.listType === "resolved" ? ["checked"] : [];
70546
- this.switcherBar.updateItems([this.switcherItem]);
70547
- this.list.changeType(this.listType);
70548
- const renderer = this.editor.editorBlockRenders.getRenderers().find((r) => r instanceof OnesEditorCommentsRender);
70549
- if (renderer) {
70550
- renderer.changeType(this.editor, this.listType);
70551
- }
70552
- this.updateNoResolvedCommentTip();
70553
- });
70554
70214
  __publicField(this, "handleSelectionOnComment", () => {
70555
70215
  this.emit("onSelectComment");
70556
70216
  });
@@ -70558,12 +70218,8 @@ ${codeText}
70558
70218
  var _a, _b;
70559
70219
  const count = getCommentsCountInDoc(this.editor, this.commentsProvider);
70560
70220
  (_b = (_a = this.commentOptions) == null ? void 0 : _a.onCommentCountChange) == null ? void 0 : _b.call(_a, count);
70561
- this.updateNoResolvedCommentTip();
70562
70221
  });
70563
70222
  __publicField(this, "handleActiveItemChanged", (index2, direction) => {
70564
- if (this.listType === "resolved") {
70565
- return;
70566
- }
70567
70223
  setTimeout(() => {
70568
70224
  var _a, _b;
70569
70225
  const item = this.list.activeItem;
@@ -70580,18 +70236,13 @@ ${codeText}
70580
70236
  this.editor = editor;
70581
70237
  this.commentsProvider = commentsProvider;
70582
70238
  this.root = createElement("div", ["editor-web-comment-root"], null);
70583
- this.root.setAttribute("list-type", this.listType);
70584
70239
  this.groupsContainer = createElement("div", ["comment-groups-container"], this.root);
70585
70240
  this.list = this.createList();
70586
- this.switcherBar = this.createSwitcher();
70587
70241
  this.commentsProvider.addListener(this);
70588
70242
  this.list.addListener("activeItemChanged", this.handleActiveItemChanged);
70589
70243
  this.list.addListener("itemLayoutUpdated", this.handleItemLayoutUpdated);
70590
70244
  this.list.addListener("selectionOnComment", this.handleSelectionOnComment);
70591
70245
  this.list.addListener("commentCountChanged", this.updateCommentCount);
70592
- if (!this.editor.options.enableResolveComments) {
70593
- this.root.classList.add("disable-resolve");
70594
- }
70595
70246
  this.updateCommentCount();
70596
70247
  }
70597
70248
  get commentOptions() {
@@ -70599,13 +70250,10 @@ ${codeText}
70599
70250
  return commentOptions;
70600
70251
  }
70601
70252
  destroy() {
70602
- var _a;
70603
70253
  this.list.removeAllListeners();
70604
70254
  this.commentsProvider.removeListener(this);
70605
70255
  this.list.destroy();
70606
70256
  this.root.remove();
70607
- this.switcherBar.destroy();
70608
- (_a = this.noResolvedCommentTip) == null ? void 0 : _a.remove();
70609
70257
  }
70610
70258
  onCreateComment(commentId, local) {
70611
70259
  const comment = this.commentsProvider.getComment(commentId);
@@ -70620,73 +70268,8 @@ ${codeText}
70620
70268
  const comment = this.commentsProvider.getComment(commentId);
70621
70269
  this.list.handleUpdateComment(comment);
70622
70270
  }
70623
- onUpdateCommentResolver(commentId, local) {
70624
- const comment = this.commentsProvider.getComment(commentId);
70625
- if (!comment) {
70626
- return;
70627
- }
70628
- let type = "add";
70629
- if (this.listType === "current") {
70630
- if (comment.resolver) {
70631
- type = "remove";
70632
- }
70633
- } else {
70634
- if (!comment.resolver) {
70635
- type = "remove";
70636
- }
70637
- }
70638
- const blocks = /* @__PURE__ */ new Set();
70639
- if (type === "remove") {
70640
- getElementsByCommentId(this.editor, commentId).forEach((element) => {
70641
- if (isBlock$1(element)) {
70642
- blocks.add(element);
70643
- } else {
70644
- const block = getParentBlock(element);
70645
- if (block) {
70646
- blocks.add(block);
70647
- }
70648
- }
70649
- });
70650
- } else {
70651
- const blockIds = getBlocksByCommentId(this.editor.doc.toJSON(), commentId);
70652
- blockIds.forEach((blockId) => {
70653
- const block = this.editor.findBlockById(blockId);
70654
- if (block) {
70655
- blocks.add(block);
70656
- }
70657
- });
70658
- }
70659
- blocks.forEach((block) => {
70660
- this.editor.reloadBlock(block);
70661
- });
70662
- const commentGroup = getCommentsGroup(this.commentsProvider.getComments());
70663
- const commentWithChildren = commentGroup.find((group) => group.groupId === comment.groupId);
70664
- if (!commentWithChildren) {
70665
- return;
70666
- }
70667
- setTimeout(() => {
70668
- if (type === "add") {
70669
- this.list.handleCreateComment(commentWithChildren, local);
70670
- } else {
70671
- this.list.handleResolveComment(commentId);
70672
- }
70673
- this.updateCommentCount();
70674
- }, 300);
70675
- }
70676
70271
  createList() {
70677
- return new CommentGroupList(this.editor, this.commentsProvider, this.groupsContainer, this.listType);
70678
- }
70679
- createSwitcher() {
70680
- const container = createElement("div", ["comment-switcher-container"], this.root);
70681
- const commandBar2 = new FixedToolbar(container, [this.switcherItem], {
70682
- id: "comment-switcher"
70683
- });
70684
- commandBar2.addListener("click", this.handleSwitchType);
70685
- return commandBar2;
70686
- }
70687
- setSwitcherParent(parent) {
70688
- this.switcherBar.content.remove();
70689
- parent.append(this.switcherBar.content);
70272
+ return new CommentGroupList(this.editor, this.commentsProvider, this.groupsContainer);
70690
70273
  }
70691
70274
  isEditing(includeEmpty) {
70692
70275
  return this.list.isEditing(includeEmpty);
@@ -70694,30 +70277,14 @@ ${codeText}
70694
70277
  setFirstEditingCommentActive() {
70695
70278
  this.list.setFirstEditingCommentActive();
70696
70279
  }
70697
- updateNoResolvedCommentTip() {
70698
- var _a;
70699
- if (this.listType === "resolved" && this.list.items.length === 0) {
70700
- if (!this.noResolvedCommentTip) {
70701
- this.noResolvedCommentTip = createElement("div", ["comment-no-resolved-tip"], this.groupsContainer);
70702
- this.noResolvedCommentTip.innerText = i18n$1.t("comment.noResolvedComment");
70703
- }
70704
- return;
70705
- }
70706
- (_a = this.noResolvedCommentTip) == null ? void 0 : _a.remove();
70707
- this.noResolvedCommentTip = null;
70708
- }
70709
70280
  show(groupId) {
70710
- var _a, _b;
70281
+ var _a;
70711
70282
  removeClass(this.root, "hidden");
70712
70283
  if (groupId) {
70713
- if (this.listType !== "current") {
70714
- const commandItem = (_a = this.switcherItem.children) == null ? void 0 : _a[0];
70715
- this.handleSwitchType(this.switcherBar, commandItem);
70716
- }
70717
70284
  const index2 = this.list.findItemIndex(groupId);
70718
70285
  this.list.setActiveItem(index2);
70719
70286
  }
70720
- (_b = this.commentOptions) == null ? void 0 : _b.controller.showCommentList();
70287
+ (_a = this.commentOptions) == null ? void 0 : _a.controller.showCommentList();
70721
70288
  }
70722
70289
  hide() {
70723
70290
  addClass(this.root, "hidden");
@@ -70845,7 +70412,7 @@ ${codeText}
70845
70412
  const logger$1c = getLogger("mobile-group-list");
70846
70413
  class MobileGroupList extends ListBase {
70847
70414
  constructor(editor, commentsProvider, parent, scrollElement) {
70848
- super(editor, commentsProvider, parent, getUnresolvedCommentsGroupFromDoc(editor, commentsProvider), {});
70415
+ super(editor, commentsProvider, parent, getCommentsGroupFromDoc(editor, commentsProvider), {});
70849
70416
  __publicField(this, "scroller");
70850
70417
  __publicField(this, "refreshScroller", () => {
70851
70418
  this.scroller.refresh();
@@ -70893,7 +70460,7 @@ ${codeText}
70893
70460
  this.updateComments();
70894
70461
  });
70895
70462
  __publicField(this, "updateComments", debounce__default.default(() => {
70896
- const commentsGroup = getUnresolvedCommentsGroupFromDoc(this.editor, this.commentsProvider);
70463
+ const commentsGroup = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
70897
70464
  for (let i = 0; i < commentsGroup.length; i++) {
70898
70465
  const comment = commentsGroup[i];
70899
70466
  const groupItem = this.findGroupItem(comment.groupId);
@@ -70927,7 +70494,7 @@ ${codeText}
70927
70494
  return item;
70928
70495
  }
70929
70496
  findInsertPos(data2) {
70930
- const commentsMap = getUnresolvedCommentsGroupFromDoc(this.editor, this.commentsProvider);
70497
+ const commentsMap = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
70931
70498
  const index2 = commentsMap.findIndex((group) => group.id === data2.id);
70932
70499
  if (index2 === -1) {
70933
70500
  return -1;
@@ -71063,8 +70630,6 @@ ${codeText}
71063
70630
  const comment = this.commentsProvider.getComment(commentId);
71064
70631
  this.list.handleUpdateComment(comment);
71065
70632
  }
71066
- onUpdateCommentResolver(commentId, local) {
71067
- }
71068
70633
  get commentOptions() {
71069
70634
  const commentOptions = this.editor.getComponentOptions("comment");
71070
70635
  return commentOptions;
@@ -71090,7 +70655,7 @@ ${codeText}
71090
70655
  }
71091
70656
  }
71092
70657
  function getMiniCommentsGroupFromDoc(editor, commentsProvider) {
71093
- const commentsGroupFromDoc = getUnresolvedCommentsGroupFromDoc(editor, commentsProvider);
70658
+ const commentsGroupFromDoc = getCommentsGroupFromDoc(editor, commentsProvider);
71094
70659
  const miniCommentGroups = /* @__PURE__ */ new Map();
71095
70660
  for (const commentGroup of commentsGroupFromDoc) {
71096
70661
  const blockId = getBlockIdByGroupId(editor, commentGroup.groupId);
@@ -71237,9 +70802,6 @@ ${codeText}
71237
70802
  }
71238
70803
  onUpdateComment(commentId, local) {
71239
70804
  }
71240
- onUpdateCommentResolver(commentId, local) {
71241
- this.list.updateMiniCommentsGroup();
71242
- }
71243
70805
  show() {
71244
70806
  removeClass(this.root, "hidden");
71245
70807
  }
@@ -71508,15 +71070,6 @@ ${codeText}
71508
71070
  get isMobile() {
71509
71071
  return clientType.isMobile;
71510
71072
  }
71511
- getCommentList() {
71512
- return this.commentList;
71513
- }
71514
- getMobileCommentList() {
71515
- return this.mobileCommentList;
71516
- }
71517
- getMiniCommentList() {
71518
- return this.miniCommentList;
71519
- }
71520
71073
  destroy() {
71521
71074
  var _a, _b;
71522
71075
  (_a = this.commentList) == null ? void 0 : _a.destroy();
@@ -71542,9 +71095,6 @@ ${codeText}
71542
71095
  if (containers.mobileContainer && this.mobileCommentList) {
71543
71096
  containers.mobileContainer.append(this.mobileCommentList.root);
71544
71097
  }
71545
- if (containers.switchBarContainer && this.commentList) {
71546
- this.commentList.setSwitcherParent(containers.switchBarContainer);
71547
- }
71548
71098
  }
71549
71099
  }
71550
71100
  const style$7 = "";
@@ -71568,14 +71118,30 @@ ${codeText}
71568
71118
  more: "\u66F4\u591A",
71569
71119
  comment: "\u6DFB\u52A0\u6279\u6CE8",
71570
71120
  command: "\u6DFB\u52A0\u6279\u6CE8",
71571
- quickMenuCommand: "\u6DFB\u52A0\u6279\u6CE8",
71572
- resolvedBy: "\u5DF2\u7531 {name} \u6210\u5458\u89E3\u51B3",
71573
- reopen: "\u91CD\u65B0\u6253\u5F00",
71574
- currentComment: "\u5F53\u524D\u6279\u6CE8",
71575
- resolvedComment: "\u5DF2\u89E3\u51B3\u6279\u6CE8",
71576
- removedFromDoc: "\u5F15\u7528\u5185\u5BB9\u5DF2\u5220\u9664",
71577
- noResolvedComment: "\u65E0\u5DF2\u89E3\u51B3\u6279\u6CE8",
71578
- resolveComment: "\u6807\u8BB0\u4E3A\u5DF2\u89E3\u51B3"
71121
+ quickMenuCommand: "\u6DFB\u52A0\u6279\u6CE8"
71122
+ }
71123
+ };
71124
+ const zhHK$k = {
71125
+ comment: {
71126
+ count: "\u6279\u8A3B ({num})",
71127
+ hide: "\u96B1\u85CF\u6279\u8A3B",
71128
+ show: "\u986F\u793A\u6279\u8A3B",
71129
+ reply: "\u56DE\u8986",
71130
+ quicklyReply: "\u56DE\u8986...",
71131
+ send: "\u78BA\u5B9A",
71132
+ placeholder: "\u6DFB\u52A0\u6279\u8A3B...",
71133
+ replyPlaceholder: "\u6DFB\u52A0\u6279\u8A3B\u6216@\u4ED6\u4EBA",
71134
+ edit: "\u7DE8\u8F2F",
71135
+ delete: "\u522A\u9664",
71136
+ image: "\u5716\u7247",
71137
+ sendTitle: "\u6309Enter\u767C\u9001\u6279\u8A3B",
71138
+ replyTitle: "\u6309Enter\u56DE\u8986\u6279\u8A3B",
71139
+ isFirst: "\u5DF2\u7D93\u662F\u7B2C\u4E00\u689D\u6279\u8A3B",
71140
+ isLast: "\u5DF2\u7D93\u662F\u6700\u5F8C\u4E00\u689D\u6279\u8A3B",
71141
+ more: "\u66F4\u591A",
71142
+ comment: "\u6DFB\u52A0\u6279\u8A3B",
71143
+ command: "\u6DFB\u52A0\u6279\u8A3B",
71144
+ quickMenuCommand: "\u6DFB\u52A0\u6279\u8A3B"
71579
71145
  }
71580
71146
  };
71581
71147
  const enUS$k = {
@@ -71598,14 +71164,7 @@ ${codeText}
71598
71164
  more: "More",
71599
71165
  comment: "Add annotation",
71600
71166
  command: "Add annotation",
71601
- quickMenuCommand: "Add annotation",
71602
- resolvedBy: "Resolved by {name}",
71603
- reopen: "Reopen",
71604
- currentComment: "Unresolved annotations",
71605
- resolvedComment: "Resolved annotations",
71606
- removedFromDoc: "Quoted content deleted.",
71607
- noResolvedComment: "No resolved annotations.",
71608
- resolveComment: "Mark as resolved"
71167
+ quickMenuCommand: "Add annotation"
71609
71168
  }
71610
71169
  };
71611
71170
  const jaJP$k = {
@@ -71628,21 +71187,70 @@ ${codeText}
71628
71187
  more: "\u305D\u306E\u4ED6",
71629
71188
  comment: "\u6CE8\u91C8\u3092\u8FFD\u52A0",
71630
71189
  command: "\u6CE8\u91C8\u3092\u8FFD\u52A0",
71631
- quickMenuCommand: "\u6CE8\u91C8\u3092\u8FFD\u52A0",
71632
- resolvedBy: "{name}\u3055\u3093\u304C\u89E3\u6C7A\u3057\u307E\u3057\u305F",
71633
- reopen: "\u518D\u958B",
71634
- currentComment: "\u672A\u89E3\u6C7A\u30B3\u30E1\u30F3\u30C8",
71635
- resolvedComment: "\u89E3\u6C7A\u6E08\u307F\u30B3\u30E1\u30F3\u30C8",
71636
- removedFromDoc: "\u5F15\u7528\u3055\u308C\u305F\u5185\u5BB9\u306F\u524A\u9664\u3055\u308C\u307E\u3057\u305F\u3002",
71637
- noResolvedComment: "\u89E3\u6C7A\u6E08\u307F\u30B3\u30E1\u30F3\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
71638
- resolveComment: "\u89E3\u6C7A\u3055\u308C\u307E\u3057\u305F"
71190
+ quickMenuCommand: "\u6CE8\u91C8\u3092\u8FFD\u52A0"
71639
71191
  }
71640
71192
  };
71641
71193
  i18n$1.mergeLang({
71642
71194
  "zh-CN": zhCN$k,
71195
+ "zh-HK": zhHK$k,
71643
71196
  "en-US": enUS$k,
71644
71197
  "ja-JP": jaJP$k
71645
71198
  });
71199
+ class OnesEditorCommentsRender {
71200
+ renderText(editor, path, attributes) {
71201
+ const classes = [];
71202
+ const textAttributes = {};
71203
+ Object.entries(attributes).forEach(([key, value]) => {
71204
+ if (key.startsWith("comment-")) {
71205
+ classes.push("comment");
71206
+ textAttributes[key] = value;
71207
+ }
71208
+ });
71209
+ return { classes, attributes: textAttributes };
71210
+ }
71211
+ renderBox(editor, path, attributes) {
71212
+ const classes = [];
71213
+ const textAttributes = {};
71214
+ Object.entries(attributes).forEach(([key, value]) => {
71215
+ if (key.startsWith("comment-")) {
71216
+ classes.push("comment");
71217
+ textAttributes[key] = value;
71218
+ }
71219
+ });
71220
+ return { classes, attributes: textAttributes };
71221
+ }
71222
+ renderBlock(editor, path, blockData) {
71223
+ const comments = blockData.comments;
71224
+ if (!comments || comments.length === 0) {
71225
+ return {};
71226
+ }
71227
+ const classes = ["comment"];
71228
+ const attributes = {};
71229
+ comments.forEach((commentId) => {
71230
+ attributes[`comment-${commentId.toLocaleLowerCase()}`] = commentId;
71231
+ });
71232
+ return {
71233
+ classes,
71234
+ attributes
71235
+ };
71236
+ }
71237
+ updateBlock(editor, path, blockElement, blockData) {
71238
+ const comments = blockData.comments;
71239
+ removeClass(blockElement, "comment");
71240
+ Array.from(blockElement.attributes).forEach((a) => {
71241
+ if (a.name.startsWith("comment-")) {
71242
+ blockElement.removeAttribute(a.name);
71243
+ }
71244
+ });
71245
+ if (!comments || comments.length === 0) {
71246
+ return;
71247
+ }
71248
+ addClass(blockElement, "comment");
71249
+ comments.forEach((commentId) => {
71250
+ blockElement.setAttribute(`comment-${commentId.toLocaleLowerCase()}`, commentId);
71251
+ });
71252
+ }
71253
+ }
71646
71254
  class OnesEditorCommentPlaceholderHandler {
71647
71255
  constructor(editor) {
71648
71256
  __publicField(this, "handleUpdateCompositionText", (editor, containerId, blockIndex, offset, end) => {
@@ -71794,21 +71402,6 @@ ${codeText}
71794
71402
  method: "delete"
71795
71403
  });
71796
71404
  }
71797
- function updateCommentResolverToOldDoc(editor, version, commentId, resolver) {
71798
- var _a, _b;
71799
- const doc2 = editor.doc;
71800
- const server = (_b = (_a = doc2.getServerMeta) == null ? void 0 : _a.call(doc2)) == null ? void 0 : _b.apiServer;
71801
- assert(logger$16, server, "apiServer is not set");
71802
- const api = `${server}/${version}/comments/${commentId}/resolver`;
71803
- return doc2.request(api, {
71804
- method: "put",
71805
- data: {
71806
- resolver
71807
- }
71808
- });
71809
- }
71810
- getLogger("resolved-comment-item");
71811
- const styles = "";
71812
71405
  const isAllContainersSelected = (editor) => {
71813
71406
  var _a;
71814
71407
  const range = editor.selection.range;
@@ -71883,16 +71476,6 @@ ${codeText}
71883
71476
  await updateCommentToOldDoc(this.editor, this.version, commentId, comments.commentProvider.getCommentDoc(commentId));
71884
71477
  }
71885
71478
  }
71886
- onUpdateCommentResolver(commentId, local) {
71887
- const comments = this.editor.getCustom("editor-comments");
71888
- const provider = comments.commentProvider;
71889
- const comment = provider.getComment(commentId);
71890
- if (!comment) {
71891
- return;
71892
- }
71893
- const resolver = comment.resolver;
71894
- updateCommentResolverToOldDoc(this.editor, this.version, commentId, resolver);
71895
- }
71896
71479
  hideToolbar(editor) {
71897
71480
  const toolbar2 = editor.findCustom("toolbar-handler");
71898
71481
  toolbar2 == null ? void 0 : toolbar2.disableTextToolbar();
@@ -74246,6 +73829,38 @@ ${codeText}
74246
73829
  }
74247
73830
  }
74248
73831
  };
73832
+ const zhHK$j = {
73833
+ table: {
73834
+ cellBackground: "\u55AE\u5143\u683C\u80CC\u666F\u8272",
73835
+ deleteSelectRow: "\u522A\u9664\u6240\u9078\u884C",
73836
+ deleteSelectCol: "\u522A\u9664\u6240\u9078\u5217",
73837
+ mergeCell: "\u5408\u4F75\u55AE\u5143\u683C",
73838
+ splitCell: "\u62C6\u5206\u55AE\u5143\u683C",
73839
+ tableConfigKey: "\u8868\u683C\u8A2D\u7F6E",
73840
+ deleteTable: "\u522A\u9664\u8868\u683C",
73841
+ adjustColumnWidthsEvenly: "\u5E73\u5747\u5206\u914D\u5217\u5BEC",
73842
+ insertCol: "\u63D2\u5165\u5217",
73843
+ insertRow: "\u63D2\u5165\u884C",
73844
+ deleteCol: "\u522A\u9664\u5217",
73845
+ deleteRow: "\u522A\u9664\u884C",
73846
+ tableConfig: {
73847
+ rowTitle: "\u884C\u6A19\u984C",
73848
+ colTitle: "\u5217\u6A19\u984C",
73849
+ stripeStyle: "\u689D\u7D0B\u6A23\u5F0F",
73850
+ hideBorder: "\u96B1\u85CF\u8868\u683C\u7DDA",
73851
+ showBorder: "\u986F\u793A\u9336\u683C\u7DDA",
73852
+ showChart: "\u986F\u793A\u5716\u8868",
73853
+ hideChart: "\u96B1\u85CF\u5716\u8868"
73854
+ },
73855
+ title: "\u8868\u683C",
73856
+ abstract: "\u8868\u683C",
73857
+ commands: {
73858
+ setting: "\u8868\u683C\u8A2D\u7F6E",
73859
+ insertRightCol: "\u5411\u53F3\u63D2\u5165\u5217",
73860
+ insertBottomRow: "\u5411\u4E0B\u63D2\u5165\u884C"
73861
+ }
73862
+ }
73863
+ };
74249
73864
  const enUS$j = {
74250
73865
  table: {
74251
73866
  cellBackground: "Cell background color",
@@ -74312,6 +73927,7 @@ ${codeText}
74312
73927
  };
74313
73928
  i18n$1.mergeLang({
74314
73929
  "zh-CN": zhCN$j,
73930
+ "zh-HK": zhHK$j,
74315
73931
  "en-US": enUS$j,
74316
73932
  "ja-JP": jaJP$j
74317
73933
  });
@@ -74742,6 +74358,13 @@ ${codeText}
74742
74358
  markdown: "\u7C98\u8D34\u4E3A Markdown"
74743
74359
  }
74744
74360
  };
74361
+ const zhHK$i = {
74362
+ pasteSpecial: {
74363
+ originFormats: "\u4FDD\u6301\u539F\u6A23\u5F0F",
74364
+ plainText: "\u7C98\u8CBC\u7D14\u6587\u672C",
74365
+ markdown: "\u7C98\u8CBC\u70BA Markdown"
74366
+ }
74367
+ };
74745
74368
  const enUS$i = {
74746
74369
  pasteSpecial: {
74747
74370
  originFormats: "Keep source formatting",
@@ -74758,6 +74381,7 @@ ${codeText}
74758
74381
  };
74759
74382
  i18n$1.mergeLang({
74760
74383
  "zh-CN": zhCN$i,
74384
+ "zh-HK": zhHK$i,
74761
74385
  "en-US": enUS$i,
74762
74386
  "ja-JP": jaJP$i
74763
74387
  });
@@ -77205,14 +76829,14 @@ ${docStr}
77205
76829
  }
77206
76830
  function isList(elem) {
77207
76831
  var _a;
77208
- const styles2 = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
77209
- return styles2.findIndex((style2) => style2.startsWith("level")) !== -1;
76832
+ const styles = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
76833
+ return styles.findIndex((style2) => style2.startsWith("level")) !== -1;
77210
76834
  }
77211
76835
  function getOfficeListGroupId(elem) {
77212
76836
  var _a;
77213
- const styles2 = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
77214
- for (let i = 0; i < styles2.length; i++) {
77215
- const name = styles2[i];
76837
+ const styles = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
76838
+ for (let i = 0; i < styles.length; i++) {
76839
+ const name = styles[i];
77216
76840
  if (name.startsWith("mso-list:")) {
77217
76841
  return name;
77218
76842
  }
@@ -77221,9 +76845,9 @@ ${docStr}
77221
76845
  }
77222
76846
  function getLevel(elem) {
77223
76847
  var _a, _b;
77224
- const styles2 = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
77225
- for (let i = 0; i < styles2.length; i++) {
77226
- const name = styles2[i];
76848
+ const styles = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
76849
+ for (let i = 0; i < styles.length; i++) {
76850
+ const name = styles[i];
77227
76851
  if (name.startsWith("level")) {
77228
76852
  const level = (_b = Number.parseInt(name.substring(5), 10)) != null ? _b : void 0;
77229
76853
  if (level) {
@@ -78762,6 +78386,18 @@ ${docStr}
78762
78386
  replacePlaceholder: "\u66FF\u6362\u4E3A"
78763
78387
  }
78764
78388
  };
78389
+ const zhHK$h = {
78390
+ find: {
78391
+ findLabel: "\u67E5\u627E:",
78392
+ replaceLabel: "\u66FF\u63DB:",
78393
+ findButton: "\u67E5\u627E",
78394
+ replaceButton: "\u66FF\u63DB",
78395
+ replaceAllButton: "\u5168\u90E8\u66FF\u63DB",
78396
+ moreButton: "",
78397
+ findPlaceholder: "\u5728\u6587\u6A94\u5167\u67E5\u627E",
78398
+ replacePlaceholder: "\u66FF\u63DB\u70BA"
78399
+ }
78400
+ };
78765
78401
  const enUS$h = {
78766
78402
  find: {
78767
78403
  findLabel: "Search:",
@@ -78788,6 +78424,7 @@ ${docStr}
78788
78424
  };
78789
78425
  i18n$1.mergeLang({
78790
78426
  "zh-CN": zhCN$h,
78427
+ "zh-HK": zhHK$h,
78791
78428
  "en-US": enUS$h,
78792
78429
  "ja-JP": jaJP$h
78793
78430
  });
@@ -79546,6 +79183,19 @@ ${docStr}
79546
79183
  uneditableBlockSelected: "\u9009\u4E2D\u533A\u57DF\u5305\u542B\u9501\u5B9A\u533A\u5757\uFF0C\u6682\u4E0D\u652F\u6301\u526A\u5207"
79547
79184
  }
79548
79185
  };
79186
+ const zhHK$g = {
79187
+ contextMenu: {
79188
+ copyMarkdown: "\u8907\u88FD\u70BA Markdown",
79189
+ paste: "\u7C98\u8CBC",
79190
+ copyImage: "\u8907\u88FD\u5716\u7247",
79191
+ copyImageUrl: "\u8907\u88FD\u5716\u7247\u5730\u5740",
79192
+ imageSaveAs: "\u5716\u7247\u53E6\u5B58\u70BA",
79193
+ newTabOpenImage: "\u65B0\u6A19\u7C64\u9801\u6253\u958B\u5716\u7247",
79194
+ selectBlock: "\u9078\u4E2D\u5340\u584A",
79195
+ selectAll: "\u9078\u4E2D\u5168\u6587",
79196
+ uneditableBlockSelected: "\u9078\u4E2D\u5340\u57DF\u5305\u542B\u9396\u5B9A\u5340\u584A\uFF0C\u66AB\u4E0D\u652F\u6301\u526A\u5207"
79197
+ }
79198
+ };
79549
79199
  const enUS$g = {
79550
79200
  contextMenu: {
79551
79201
  copyMarkdown: "Copy as Markdown",
@@ -79574,6 +79224,7 @@ ${docStr}
79574
79224
  };
79575
79225
  i18n$1.mergeLang({
79576
79226
  "zh-CN": zhCN$g,
79227
+ "zh-HK": zhHK$g,
79577
79228
  "en-US": enUS$g,
79578
79229
  "ja-JP": jaJP$g
79579
79230
  });
@@ -80137,6 +79788,20 @@ ${docStr}
80137
79788
  askAi: "\u8BE2\u95EE Copilot"
80138
79789
  }
80139
79790
  };
79791
+ const zhHK$f = {
79792
+ file: {
79793
+ abstract: "\u9644\u4EF6",
79794
+ commands: {
79795
+ download: "\u4E0B\u8F09",
79796
+ toLink: "\u8F49\u70BA\u6A19\u984C",
79797
+ toCard: "\u8F49\u70BA\u5361\u7247",
79798
+ comment: "\u6DFB\u52A0\u6279\u8A3B",
79799
+ preview: "\u9810\u89BD"
79800
+ },
79801
+ uploadedTime: "\u4E0A\u50B3\u65BC { time }",
79802
+ askAi: "\u8A62\u554F Copilot"
79803
+ }
79804
+ };
80140
79805
  const enUS$f = {
80141
79806
  file: {
80142
79807
  abstract: "Attachment",
@@ -80167,6 +79832,7 @@ ${docStr}
80167
79832
  };
80168
79833
  i18n$1.mergeLang({
80169
79834
  "zh-CN": zhCN$f,
79835
+ "zh-HK": zhHK$f,
80170
79836
  "en-US": enUS$f,
80171
79837
  "ja-JP": jaJP$f
80172
79838
  });
@@ -80252,6 +79918,50 @@ ${docStr}
80252
79918
  filterMemoed: "\u7B5B\u9009\u5DF2\u5907\u6CE8\u7684\u7248\u672C"
80253
79919
  }
80254
79920
  };
79921
+ const zhHK$e = {
79922
+ version: {
79923
+ latest: "\u6700\u65B0\u7248\u672C",
79924
+ update: "{name}\u4FEE\u6539",
79925
+ insert: "{name} \u6DFB\u52A0",
79926
+ delete: "{name} \u522A\u9664",
79927
+ goBack: "\u8FD4\u56DE",
79928
+ revertVersion: "\u9084\u539F\u5167\u5BB9",
79929
+ play: "\u64AD\u653E\u6B77\u53F2\u64CD\u4F5C",
79930
+ versionList: "\u6B77\u53F2\u7248\u672C ({count})",
79931
+ versionListHeader: "\u6B77\u53F2\u7248\u672C",
79932
+ unknown: "\u672A\u77E5\u7248\u672C",
79933
+ restoreFrom: "\u56DE\u6EFE\u81EA\u7248\u672C\u300C{from}\u300D",
79934
+ restoreInfo: "\u56DE\u6EFE\u7684\u7248\u672C\u66AB\u4E0D\u652F\u6301\u8207\u4E0A\u4E00\u7248\u672C\u5C0D\u6BD4",
79935
+ versionInfoLeft: '<span class="text-1">\u7576\u524D\u7248\u672C: </span><span class="name">{versionName}</span><span class="text-2"> \u8207</span>',
79936
+ versionInfoRight: '<span class="text-3">\u5C0D\u6BD4</span>',
79937
+ noSelectedVersion: "\u672A\u9078\u64C7\u7248\u672C",
79938
+ noMemoedVersion: "\u66AB\u7121\u5DF2\u5099\u8A3B\u7684\u6B77\u53F2\u7248\u672C",
79939
+ noFilterVersion: "\u66AB\u7121\u5339\u914D\u7D50\u679C",
79940
+ memo: "\u5099\u8A3B",
79941
+ revert: "\u56DE\u6EFE",
79942
+ filter: {
79943
+ all: "\u5168\u90E8",
79944
+ memoed: "\u5DF2\u5099\u8A3B",
79945
+ allVersions: "\u5168\u90E8\u6B77\u53F2\u7248\u672C",
79946
+ memoVersions: "\u5DF2\u5099\u8A3B\u7684\u6B77\u53F2\u7248\u672C"
79947
+ },
79948
+ textarea: {
79949
+ placeholder: "\u8ACB\u8F38\u5165\u7248\u672C\u5099\u8A3B"
79950
+ },
79951
+ tooltip: {
79952
+ help: "1. \u56DE\u6EFE\u7248\u672C\u4E0D\u652F\u6301\u8207\u56DE\u6EFE\u524D\u7248\u672C\u9032\u884C\u5C0D\u6BD4\uFF1B\n2. \u82E5\u5169\u500B\u7248\u672C\u4E4B\u9593\u5B58\u5728\u56DE\u6EFE\u7248\u672C\uFF0C\u5247\u4E0D\u652F\u6301\u5C0D\u6BD4\u3002",
79953
+ user: "\u7248\u672C\u7DE8\u8F2F\u8005\uFF1A{name}",
79954
+ auth: "\u66AB\u7121\u9801\u9762\u7DE8\u8F2F\u6B0A\u9650\uFF0C\u8ACB\u806F\u7E6B\u7BA1\u7406\u54E1"
79955
+ },
79956
+ dropdownHeader: "\u50C5\u5C55\u793A\u53EF\u8207\u7576\u524D\u7248\u672C\u9032\u884C\u5C0D\u6BD4\u7684\u6B77\u53F2\u7248\u672C",
79957
+ dropdown: {
79958
+ header: "\u6240\u6709\u53EF\u5C0D\u6BD4\u7684\u7248\u672C"
79959
+ },
79960
+ noVersions: "\u66AB\u7121\u53EF\u5C0D\u6BD4\u7684\u7248\u672C",
79961
+ lastVersion: "\u4E0A\u4E00\u7248\u672C",
79962
+ filterMemoed: "\u7BE9\u9078\u5DF2\u5099\u8A3B\u7684\u7248\u672C"
79963
+ }
79964
+ };
80255
79965
  const enUS$e = {
80256
79966
  version: {
80257
79967
  latest: "Latest",
@@ -80342,6 +80052,7 @@ ${docStr}
80342
80052
  };
80343
80053
  i18n$1.mergeLang({
80344
80054
  "zh-CN": zhCN$e,
80055
+ "zh-HK": zhHK$e,
80345
80056
  "en-US": enUS$e,
80346
80057
  "ja-JP": jaJP$e
80347
80058
  });
@@ -80827,8 +80538,6 @@ ${docStr}
80827
80538
  }
80828
80539
  onUpdateComment() {
80829
80540
  }
80830
- onUpdateCommentResolver(commentId, local) {
80831
- }
80832
80541
  }
80833
80542
  async function playHistoryData(doc2, versionHelper, historyData) {
80834
80543
  for (const data2 of historyData) {
@@ -82234,6 +81943,12 @@ ${docStr}
82234
81943
  collapse: "\u6536\u8D77"
82235
81944
  }
82236
81945
  };
81946
+ const zhHK$d = {
81947
+ expandCollapseButton: {
81948
+ expand: "\u5C55\u958B",
81949
+ collapse: "\u6536\u8D77"
81950
+ }
81951
+ };
82237
81952
  const enUS$d = {
82238
81953
  expandCollapseButton: {
82239
81954
  expand: "Expand",
@@ -82248,6 +81963,7 @@ ${docStr}
82248
81963
  };
82249
81964
  i18n$1.mergeLang({
82250
81965
  "zh-CN": zhCN$d,
81966
+ "zh-HK": zhHK$d,
82251
81967
  "en-US": enUS$d,
82252
81968
  "ja-JP": jaJP$d
82253
81969
  });
@@ -83084,6 +82800,13 @@ ${docStr}
83084
82800
  abstract: "\u6807\u9898\u76EE\u5F55"
83085
82801
  }
83086
82802
  };
82803
+ const zhHK$c = {
82804
+ toc: {
82805
+ name: "\u6A19\u984C\u76EE\u9304",
82806
+ empty: "\u7576\u524D\u9801\u9762\u66AB\u7121\u6A19\u984C\u6A23\u5F0F\u6587\u672C",
82807
+ abstract: "\u6A19\u984C\u76EE\u9304"
82808
+ }
82809
+ };
83087
82810
  const enUS$c = {
83088
82811
  toc: {
83089
82812
  name: "Toc",
@@ -83100,6 +82823,7 @@ ${docStr}
83100
82823
  };
83101
82824
  i18n$1.mergeLang({
83102
82825
  "zh-CN": zhCN$c,
82826
+ "zh-HK": zhHK$c,
83103
82827
  "en-US": enUS$c,
83104
82828
  "ja-JP": jaJP$c
83105
82829
  });
@@ -83586,6 +83310,14 @@ ${docStr}
83586
83310
  header: "\u63D0\u53CA\u6210\u5458"
83587
83311
  }
83588
83312
  };
83313
+ const zhHK$b = {
83314
+ mention: {
83315
+ abstract: "\u6210\u54E1",
83316
+ placeholder: "\u641C\u7D22\u6210\u54E1",
83317
+ noResult: "\u66AB\u7121\u5339\u914D\u7D50\u679C",
83318
+ header: "\u63D0\u53CA\u6210\u54E1"
83319
+ }
83320
+ };
83589
83321
  const enUS$b = {
83590
83322
  mention: {
83591
83323
  abstract: "Member",
@@ -83604,6 +83336,7 @@ ${docStr}
83604
83336
  };
83605
83337
  i18n$1.mergeLang({
83606
83338
  "zh-CN": zhCN$b,
83339
+ "zh-HK": zhHK$b,
83607
83340
  "en-US": enUS$b,
83608
83341
  "ja-JP": jaJP$b
83609
83342
  });
@@ -83615,6 +83348,14 @@ ${docStr}
83615
83348
  customizedMark: "\u81EA\u5B9A\u4E49"
83616
83349
  }
83617
83350
  };
83351
+ const zhHK$a = {
83352
+ templates: {
83353
+ title: "\u9078\u64C7\u6A21\u677F\uFF0C\u5FEB\u901F\u5275\u5EFA",
83354
+ create: "\u65B0\u5EFA\u6A21\u677F",
83355
+ choose: "\u5168\u90E8\u6A21\u677F",
83356
+ customizedMark: "\u81EA\u5B9A\u7FA9"
83357
+ }
83358
+ };
83618
83359
  const enUS$a = {
83619
83360
  templates: {
83620
83361
  title: "Choose a template",
@@ -83633,6 +83374,7 @@ ${docStr}
83633
83374
  };
83634
83375
  i18n$1.mergeLang({
83635
83376
  "zh-CN": zhCN$a,
83377
+ "zh-HK": zhHK$a,
83636
83378
  "en-US": enUS$a,
83637
83379
  "ja-JP": jaJP$a
83638
83380
  });
@@ -83831,6 +83573,20 @@ ${docStr}
83831
83573
  }
83832
83574
  }
83833
83575
  };
83576
+ const zhHK$9 = {
83577
+ callout: {
83578
+ name: "\u9AD8\u4EAE\u584A",
83579
+ command: {
83580
+ presetInfo: "\u5E38\u898F\u6A23\u5F0F",
83581
+ presetAlert: "\u8B66\u793A\u6A23\u5F0F",
83582
+ clearEmoji: "\u522A\u9664\u5716\u6A19",
83583
+ background: "\u80CC\u666F\u984F\u8272"
83584
+ },
83585
+ icon: {
83586
+ toggleIcon: "\u9EDE\u64CA\u66F4\u63DB\u5716\u6A19"
83587
+ }
83588
+ }
83589
+ };
83834
83590
  const enUS$9 = {
83835
83591
  callout: {
83836
83592
  name: "Callout",
@@ -83861,6 +83617,7 @@ ${docStr}
83861
83617
  };
83862
83618
  i18n$1.mergeLang({
83863
83619
  "zh-CN": zhCN$9,
83620
+ "zh-HK": zhHK$9,
83864
83621
  "en-US": enUS$9,
83865
83622
  "ja-JP": jaJP$9
83866
83623
  });
@@ -85396,6 +85153,23 @@ ${docStr}
85396
85153
  }
85397
85154
  }
85398
85155
  };
85156
+ const zhHK$8 = {
85157
+ graph: {
85158
+ empty: "\u8F38\u5165\u4EE3\u78BC\u5C55\u793A\u7E6A\u5716",
85159
+ readonlyEmpty: "\u66AB\u7121\u7E6A\u5716",
85160
+ errorTips: "\u5167\u5BB9\u7121\u6548\uFF0C\u7121\u6CD5\u751F\u6210\u7E6A\u5716",
85161
+ help: "\u5E6B\u52A9",
85162
+ plantuml: "PlantUML",
85163
+ mermaid: "Mermaid",
85164
+ flowchart: "Flowchart",
85165
+ command: {
85166
+ name: "\u6587\u672C\u7E6A\u5716",
85167
+ bothShow: "\u5C55\u793A\u4EE3\u78BC\u8207\u7E6A\u5716",
85168
+ codeShow: "\u50C5\u5C55\u793A\u4EE3\u78BC",
85169
+ drawShow: "\u50C5\u5C55\u793A\u7E6A\u5716"
85170
+ }
85171
+ }
85172
+ };
85399
85173
  const enUS$8 = {
85400
85174
  graph: {
85401
85175
  empty: "Input code to generate diagram",
@@ -85432,6 +85206,7 @@ ${docStr}
85432
85206
  };
85433
85207
  i18n$1.mergeLang({
85434
85208
  "zh-CN": zhCN$8,
85209
+ "zh-HK": zhHK$8,
85435
85210
  "en-US": enUS$8,
85436
85211
  "ja-JP": jaJP$8
85437
85212
  });
@@ -85765,7 +85540,7 @@ ${data2.flowchartText}
85765
85540
  }
85766
85541
  const DrawioLang = {
85767
85542
  "zh-CN": "zh",
85768
- "zh-TW": "zh-tw",
85543
+ "zh-HK": "zh-tw",
85769
85544
  "ja-JP": "ja",
85770
85545
  "en-US": "en"
85771
85546
  };
@@ -86442,6 +86217,24 @@ ${data2.flowchartText}
86442
86217
  }
86443
86218
  }
86444
86219
  };
86220
+ const zhHK$7 = {
86221
+ drawio: {
86222
+ title: "\u6D41\u7A0B\u5716/UML",
86223
+ empty: "\u7A7A\u5716\u8868",
86224
+ loading: "\u52A0\u8F09\u4E2D",
86225
+ abstract: "\u6D41\u7A0B\u5716/UML",
86226
+ errorTips: "\u6D41\u7A0B\u5716/UML\u52A0\u8F09\u5931\u6557",
86227
+ errorSubTips: "\u7DB2\u7D61\u670D\u52D9\u7570\u5E38\uFF0C\u4F60\u53EF\u4EE5",
86228
+ warnTips: "\u6D41\u7A0B\u5716/UML \u8CC7\u6E90\u7372\u53D6\u5931\u6557\uFF0C\u7121\u6CD5\u9032\u884C\u7DE8\u8F2F\u3002",
86229
+ retry: "\u91CD\u8A66",
86230
+ save: "\u4FDD\u5B58\u4E2D",
86231
+ exit: "\u9000\u51FA",
86232
+ error: {
86233
+ exitConfirm: "\u9000\u51FA\u7DE8\u8F2F",
86234
+ exitMessage: "\u9000\u51FA\u7DE8\u8F2F\u5F8C\uFF0C\u6240\u6709\u66F4\u6539\u7121\u6CD5\u4FDD\u5B58\u3002\u662F\u5426\u78BA\u5B9A\u9000\u51FA\uFF1F"
86235
+ }
86236
+ }
86237
+ };
86445
86238
  const jaJP$7 = {
86446
86239
  drawio: {
86447
86240
  title: "\u30D5\u30ED\u30FC\u30C1\u30E3\u30FC\u30C8/UML",
@@ -86463,6 +86256,7 @@ ${data2.flowchartText}
86463
86256
  const langs = {
86464
86257
  "en-US": enUS$7,
86465
86258
  "zh-CN": zhCN$7,
86259
+ "zh-HK": zhHK$7,
86466
86260
  "ja-JP": jaJP$7
86467
86261
  };
86468
86262
  i18n$1.mergeLang(langs);
@@ -87538,6 +87332,14 @@ ${data2.plantumlText}
87538
87332
  }
87539
87333
  }
87540
87334
  };
87335
+ const zhHK$6 = {
87336
+ mobile: {
87337
+ insert: "\u63D2\u5165",
87338
+ commands: {
87339
+ select: "\u9078\u64C7"
87340
+ }
87341
+ }
87342
+ };
87541
87343
  const enUS$6 = {
87542
87344
  mobile: {
87543
87345
  insert: "Insert",
@@ -87556,6 +87358,7 @@ ${data2.plantumlText}
87556
87358
  };
87557
87359
  i18n$1.mergeLang({
87558
87360
  "zh-CN": zhCN$6,
87361
+ "zh-HK": zhHK$6,
87559
87362
  "en-US": enUS$6,
87560
87363
  "ja-JP": jaJP$6
87561
87364
  });
@@ -87686,6 +87489,15 @@ ${data2.plantumlText}
87686
87489
  currentCols: "{currentColumns} \u680F"
87687
87490
  }
87688
87491
  };
87492
+ const zhHK$5 = {
87493
+ layout: {
87494
+ title: "\u5206\u6B04",
87495
+ columnDrag: "\u9577\u6309\u62D6\u62FD\n\u9EDE\u64CA\u53EF\u64CD\u4F5C\u522A\u9664",
87496
+ insertColumn: "\u63D2\u5165\u5206\u6B04",
87497
+ selectColumn: "\u9078\u64C7\u5206\u6B04",
87498
+ currentCols: "{currentColumns} \u6B04"
87499
+ }
87500
+ };
87689
87501
  const enUS$5 = {
87690
87502
  layout: {
87691
87503
  title: "Column",
@@ -87706,6 +87518,7 @@ ${data2.plantumlText}
87706
87518
  };
87707
87519
  i18n$1.mergeLang({
87708
87520
  "zh-CN": zhCN$5,
87521
+ "zh-HK": zhHK$5,
87709
87522
  "en-US": enUS$5,
87710
87523
  "ja-JP": jaJP$5
87711
87524
  });
@@ -89801,6 +89614,32 @@ ${data2.plantumlText}
89801
89614
  }
89802
89615
  }
89803
89616
  };
89617
+ const zhHK$4 = {
89618
+ webpage: {
89619
+ title: "\u7DB2\u9801",
89620
+ youku: "\u512A\u9177\u8996\u983B",
89621
+ modao: "\u58A8\u5200",
89622
+ tencent: "\u9A30\u8A0A\u8996\u983B",
89623
+ bilibili: "Bilibili",
89624
+ figma: "Figma",
89625
+ dialog: {
89626
+ helpContent: "\u56E0\u76EE\u6A19\u7DB2\u9801\u7684\u9650\u5236\uFF0C\u90E8\u5206\u7DB2\u9801\u53EF\u80FD\u7121\u6CD5\u6210\u529F\u9810\u89BD\u3002",
89627
+ helpLink: "\u5982\u4F55\u7372\u53D6\u9023\u7D50",
89628
+ label: "\u7DB2\u9801\u5730\u5740",
89629
+ placeholder: "\u8ACB\u8F38\u5165",
89630
+ title: "\u63D2\u5165{name}",
89631
+ errorEnterUrl: "\u8ACB\u8F38\u5165\u7DB2\u9801\u5730\u5740",
89632
+ unsupportedUrl: "\u66AB\u4E0D\u652F\u6301\u63D2\u5165\u8A72\u9023\u7D50\u5167\u5BB9",
89633
+ okText: "\u78BA\u5B9A",
89634
+ cancelText: "\u53D6\u6D88"
89635
+ },
89636
+ abstract: "\u7DB2\u9801",
89637
+ command: {
89638
+ refresh: "\u5237\u65B0\u9801\u9762",
89639
+ openPage: "\u6253\u958B\u539F\u59CB\u9801\u9762"
89640
+ }
89641
+ }
89642
+ };
89804
89643
  const enUS$4 = {
89805
89644
  webpage: {
89806
89645
  title: "Webpage",
@@ -89855,6 +89694,7 @@ ${data2.plantumlText}
89855
89694
  };
89856
89695
  i18n$1.mergeLang({
89857
89696
  "zh-CN": zhCN$4,
89697
+ "zh-HK": zhHK$4,
89858
89698
  "en-US": enUS$4,
89859
89699
  "ja-JP": jaJP$4
89860
89700
  });
@@ -89866,6 +89706,12 @@ ${data2.plantumlText}
89866
89706
  abstract: "\u5206\u5272\u7EBF"
89867
89707
  }
89868
89708
  };
89709
+ const zhHK$3 = {
89710
+ dividingLine: {
89711
+ type: "\u5206\u5272\u7DDA",
89712
+ abstract: "\u5206\u5272\u7DDA"
89713
+ }
89714
+ };
89869
89715
  const enUS$3 = {
89870
89716
  dividingLine: {
89871
89717
  type: "Dividing-Line",
@@ -89880,6 +89726,7 @@ ${data2.plantumlText}
89880
89726
  };
89881
89727
  i18n$1.mergeLang({
89882
89728
  "zh-CN": zhCN$3,
89729
+ "zh-HK": zhHK$3,
89883
89730
  "en-US": enUS$3,
89884
89731
  "ja-JP": jaJP$3
89885
89732
  });
@@ -89959,6 +89806,25 @@ ${data2.plantumlText}
89959
89806
  }
89960
89807
  }
89961
89808
  };
89809
+ const zhHK$2 = {
89810
+ media: {
89811
+ upload: {
89812
+ failed: '<div class="line-1">{name}\u4E0A\u50B3\u5931\u6557</div><div class="line-2">\u7DB2\u7D61\u670D\u52D9\u7570\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8A66</span></div>',
89813
+ maxSizeFailed: '<div class="line-1">{name}\u4E0A\u50B3\u5931\u6557</div><div class="line-2">\u6587\u4EF6\u5927\u5C0F\u8D85\u904E\u9650\u5236\uFF0C\u8ACB\u91CD\u65B0\u9078\u64C7\u6587\u4EF6</div>'
89814
+ },
89815
+ load: {
89816
+ failed: '<div class="line-1">{name}\u52A0\u8F09\u5931\u6557</div><div class="line-2">\u7DB2\u7D61\u670D\u52D9\u7570\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8A66</span></div>'
89817
+ },
89818
+ audio: {
89819
+ menuItem: "\u97F3\u983B",
89820
+ abstract: "\u97F3\u983B"
89821
+ },
89822
+ video: {
89823
+ menuItem: "\u8996\u983B",
89824
+ abstract: "\u8996\u983B"
89825
+ }
89826
+ }
89827
+ };
89962
89828
  const enUS$2 = {
89963
89829
  media: {
89964
89830
  upload: {
@@ -89999,6 +89865,7 @@ ${data2.plantumlText}
89999
89865
  };
90000
89866
  i18n$1.mergeLang({
90001
89867
  "zh-CN": zhCN$2,
89868
+ "zh-HK": zhHK$2,
90002
89869
  "en-US": enUS$2,
90003
89870
  "ja-JP": jaJP$2
90004
89871
  });
@@ -91000,9 +90867,6 @@ ${data2.plantumlText}
91000
90867
  localUpdateComment(comment, doc2) {
91001
90868
  this.doc.localUpdateComment(comment, doc2);
91002
90869
  }
91003
- localUpdateCommentResolver(commentId, resolver) {
91004
- this.doc.localUpdateCommentResolver(commentId, resolver);
91005
- }
91006
90870
  onCreateComment(commentId, local) {
91007
90871
  Array.from(this.listeners.values()).forEach((listener) => listener.onCreateComment(commentId, local));
91008
90872
  }
@@ -91012,9 +90876,6 @@ ${data2.plantumlText}
91012
90876
  onUpdateComment(commentId, local) {
91013
90877
  Array.from(this.listeners.values()).forEach((listener) => listener.onUpdateComment(commentId, local));
91014
90878
  }
91015
- onUpdateCommentResolver(commentId, local) {
91016
- Array.from(this.listeners.values()).forEach((listener) => listener.onUpdateCommentResolver(commentId, local));
91017
- }
91018
90879
  addListener(callback) {
91019
90880
  this.listeners.add(callback);
91020
90881
  }
@@ -91040,10 +90901,9 @@ ${data2.plantumlText}
91040
90901
  constructor(editor, localDoc) {
91041
90902
  __publicField(this, "_listeners", /* @__PURE__ */ new Set());
91042
90903
  __publicField(this, "_doc");
91043
- var _a, _b;
91044
90904
  this.editor = editor;
91045
90905
  this.localDoc = localDoc;
91046
- this._doc = ((_b = (_a = this.localDoc).rawData) == null ? void 0 : _b.call(_a)) || this.localDoc.toJSON();
90906
+ this._doc = this.localDoc.toJSON();
91047
90907
  }
91048
90908
  get doc() {
91049
90909
  return this._doc;
@@ -91098,17 +90958,6 @@ ${data2.plantumlText}
91098
90958
  this._doc.comments[id] = shareDBComment;
91099
90959
  Array.from(this._listeners.values()).forEach((listener) => listener.onUpdateComment(id, true));
91100
90960
  }
91101
- localUpdateCommentResolver(commentId, resolver) {
91102
- const comment = this.getComment(commentId);
91103
- if (comment) {
91104
- if (resolver) {
91105
- comment.resolver = resolver;
91106
- } else {
91107
- delete comment.resolver;
91108
- }
91109
- Array.from(this._listeners.values()).forEach((listener) => listener.onUpdateCommentResolver(commentId, true));
91110
- }
91111
- }
91112
90961
  createCommentEditor(parent, childDoc) {
91113
90962
  const commentEditor = createCommentEditor(this.editor, {
91114
90963
  root: parent,
@@ -91154,6 +91003,36 @@ ${data2.plantumlText}
91154
91003
  uploadResourceNoPopup: "\u6587\u4EF6\u8D44\u6E90\u4E0A\u4F20\u5F02\u5E38\uFF0C\u4E3A\u907F\u514D\u6570\u636E\u4E22\u5931\uFF0C\u5DF2\u6682\u65F6\u7981\u7528\u7F16\u8F91\u3002\u8BF7\u590D\u5236\u8FD8\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\uFF0C\u5237\u65B0\u9875\u9762\u540E\u91CD\u8BD5\u3002"
91155
91004
  }
91156
91005
  };
91006
+ const zhHK$1 = {
91007
+ placeholder: {
91008
+ common: {
91009
+ title: "\u8ACB\u8F38\u5165\u6A19\u984C",
91010
+ mobileTitle: "\u8ACB\u8F38\u5165\u6A19\u984C",
91011
+ readonlyTitle: "\u8ACB\u8F38\u5165\u6A19\u984C",
91012
+ content: "\u9EDE\u64CA + \uFF0C\u6216\u8F38\u5165 / \u5FEB\u6377\u63D2\u5165\u7D44\u4EF6",
91013
+ contentInContainer: "\u8F38\u5165 / \u5FEB\u6377\u63D2\u5165\u7D44\u4EF6",
91014
+ contentInCallout: "\u8ACB\u8F38\u5165"
91015
+ },
91016
+ local: {
91017
+ readonlyTitle: "\u672A\u547D\u540D"
91018
+ }
91019
+ },
91020
+ copyCutProperty: {
91021
+ copy: "\u8907\u88FD",
91022
+ cut: "\u526A\u5207",
91023
+ unsafeEnvTips: "\u7531\u65BC\u7576\u524D http \u8A2A\u554F\u74B0\u5883\u4E0B\u7684\u9650\u5236\uFF0C\u8ACB\u4F7F\u7528\u5FEB\u6377\u9375({shortCut}) {operation}",
91024
+ limitedEnvTips: "\u7531\u65BC\u700F\u89BD\u5668\u9650\u5236\uFF0C\u8ACB\u4F7F\u7528 {shortCut} \u7C98\u8CBC"
91025
+ },
91026
+ error: {
91027
+ retry: "\u91CD\u8A66",
91028
+ network: "\u670D\u52D9\u9023\u63A5\u7570\u5E38\uFF0C\u6B63\u5728\u5617\u8A66\u91CD\u9023\u3002\u70BA\u907F\u514D\u5167\u5BB9\u7121\u6CD5\u540C\u6B65\uFF0C\u5DF2\u66AB\u6642\u7981\u7528\u7DE8\u8F2F\u3002\u8ACB\u5728\u670D\u52D9\u9023\u63A5\u5F8C\u7E7C\u7E8C\u3002",
91029
+ networkPopup: "\u670D\u52D9\u9023\u63A5\u7570\u5E38\uFF0C\u6B63\u5728\u5617\u8A66\u91CD\u9023...",
91030
+ uploadResourceError: "\u6578\u64DA\u4FDD\u5B58\u7570\u5E38",
91031
+ uploadResourceErrorMessage: "\u8CC7\u6E90\u4FDD\u5B58\u5931\u6557\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66\u3002",
91032
+ uploadResourcePopup: "\u8CC7\u6E90\u4E0A\u50B3\u7570\u5E38\uFF0C\u7121\u6CD5\u4FDD\u5B58\u6578\u64DA\u3002\u8ACB\u8907\u88FD\u9084\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\uFF0C\u5237\u65B0\u9801\u9762\u5F8C\u91CD\u8A66\u3002",
91033
+ uploadResourceNoPopup: "\u6587\u4EF6\u8CC7\u6E90\u4E0A\u50B3\u7570\u5E38\uFF0C\u70BA\u907F\u514D\u6578\u64DA\u4E1F\u5931\uFF0C\u5DF2\u66AB\u6642\u7981\u7528\u7DE8\u8F2F\u3002\u8ACB\u8907\u88FD\u9084\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\uFF0C\u5237\u65B0\u9801\u9762\u5F8C\u91CD\u8A66\u3002"
91034
+ }
91035
+ };
91157
91036
  const enUS$1 = {
91158
91037
  placeholder: {
91159
91038
  common: {
@@ -91216,6 +91095,7 @@ ${data2.plantumlText}
91216
91095
  };
91217
91096
  i18n$1.mergeLang({
91218
91097
  "zh-CN": zhCN$1,
91098
+ "zh-HK": zhHK$1,
91219
91099
  "en-US": enUS$1,
91220
91100
  "ja-JP": jaJP$1
91221
91101
  });
@@ -91847,8 +91727,8 @@ ${data2.plantumlText}
91847
91727
  const inlineStyles = attributesOfText(text2, "inlineStyle");
91848
91728
  if (inlineStyles == null)
91849
91729
  return;
91850
- const styles2 = inlineStyles.split(";");
91851
- for (const style2 of styles2) {
91730
+ const styles = inlineStyles.split(";");
91731
+ for (const style2 of styles) {
91852
91732
  const pair = style2.split(":");
91853
91733
  if (pair.length !== 2)
91854
91734
  continue;
@@ -93522,6 +93402,20 @@ ${data2.plantumlText}
93522
93402
  unorderedList: "\u65E0\u5E8F\u5217\u8868"
93523
93403
  }
93524
93404
  };
93405
+ const zhHK = {
93406
+ toolbar: {
93407
+ undo: "\u64A4\u92B7",
93408
+ redo: "\u91CD\u505A",
93409
+ insert: "\u63D2\u5165",
93410
+ findReplace: "\u67E5\u627E\u548C\u66FF\u63DB",
93411
+ image: "\u63D2\u5165\u5716\u7247",
93412
+ link: "\u63D2\u5165\u9023\u7D50",
93413
+ quote: "\u5F15\u7528",
93414
+ checkList: "\u4EFB\u52D9\u5217\u8868",
93415
+ orderedList: "\u6709\u5E8F\u5217\u8868",
93416
+ unorderedList: "\u7121\u5E8F\u5217\u8868"
93417
+ }
93418
+ };
93525
93419
  const enUS = {
93526
93420
  toolbar: {
93527
93421
  undo: "Undo",
@@ -93552,6 +93446,7 @@ ${data2.plantumlText}
93552
93446
  };
93553
93447
  i18n$1.mergeLang({
93554
93448
  "zh-CN": zhCN,
93449
+ "zh-HK": zhHK,
93555
93450
  "en-US": enUS,
93556
93451
  "ja-JP": jaJP
93557
93452
  });
@@ -93664,7 +93559,6 @@ ${data2.plantumlText}
93664
93559
  id: options.id,
93665
93560
  scrollContainer: options == null ? void 0 : options.scrollContainer,
93666
93561
  enableComments: options == null ? void 0 : options.enableComments,
93667
- enableResolveComments: options == null ? void 0 : options.enableResolveComments,
93668
93562
  enableContextMenu: options == null ? void 0 : options.enableContextMenu,
93669
93563
  components: {
93670
93564
  blocks: [...StandardBlocks, ...((_d = options == null ? void 0 : options.components) == null ? void 0 : _d.blocks) || []],
@@ -93902,7 +93796,7 @@ ${data2.plantumlText}
93902
93796
  }
93903
93797
  }
93904
93798
  });
93905
- editor.version = "2.8.28-beta.1";
93799
+ editor.version = "2.8.31";
93906
93800
  return editor;
93907
93801
  }
93908
93802
  function isDoc(doc2) {
@@ -93924,7 +93818,6 @@ ${data2.plantumlText}
93924
93818
  const editor = createEditor(root2, doc2, {
93925
93819
  id: options.id,
93926
93820
  scrollContainer: options == null ? void 0 : options.scrollContainer,
93927
- enableResolveComments: options == null ? void 0 : options.enableResolveComments,
93928
93821
  components: {
93929
93822
  blocks: [...StandardBlocks, ...(_f = (_e = options.components) == null ? void 0 : _e.blocks) != null ? _f : []],
93930
93823
  commandProviders: [new TableBlockCommandProvider()],
@@ -94016,7 +93909,7 @@ ${data2.plantumlText}
94016
93909
  }
94017
93910
  });
94018
93911
  OnesEditorToolbar.register(editor);
94019
- editor.version = "2.8.28-beta.1";
93912
+ editor.version = "2.8.31";
94020
93913
  return editor;
94021
93914
  }
94022
93915
  async function showDocVersions(editor, options, serverUrl) {
@@ -139836,7 +139729,6 @@ ${data2.plantumlText}
139836
139729
  exports2.CheckMarkIcon = CheckMarkIcon;
139837
139730
  exports2.CheckboxIcon = CheckboxIcon;
139838
139731
  exports2.CircleAddIcon = CircleAddIcon;
139839
- exports2.CircleCheckMarkIcon = CircleCheckMarkIcon;
139840
139732
  exports2.ClearIcon = ClearIcon;
139841
139733
  exports2.ClipboardProvider = ClipboardProvider;
139842
139734
  exports2.CloseIcon = CloseIcon;
@@ -139987,8 +139879,6 @@ ${data2.plantumlText}
139987
139879
  exports2.MoreItem = MoreItem;
139988
139880
  exports2.NextIcon = NextIcon;
139989
139881
  exports2.OnesEditorAutoSuggest = OnesEditorAutoSuggest;
139990
- exports2.OnesEditorComments = OnesEditorComments;
139991
- exports2.OnesEditorCommentsRender = OnesEditorCommentsRender;
139992
139882
  exports2.OnesEditorCustomDataWrapper = OnesEditorCustomDataWrapper;
139993
139883
  exports2.OnesEditorExclusiveBlock = OnesEditorExclusiveBlock;
139994
139884
  exports2.OnesEditorHoveringBlock = OnesEditorHoveringBlock;