@ones-editor/editor 2.8.36 → 2.8.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@ones-editor/comments/src/comments/comments.d.ts +1 -5
- package/@ones-editor/comments/src/comments-helper/active-comment.d.ts +1 -3
- package/@ones-editor/comments/src/comments-helper/get-comment-from-selection.d.ts +0 -3
- package/@ones-editor/comments/src/comments-helper/get-comments-from-doc.d.ts +1 -5
- package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +1 -2
- package/@ones-editor/comments/src/comments-list/comments-list.d.ts +2 -14
- package/@ones-editor/comments/src/comments-list/group-item.d.ts +0 -2
- package/@ones-editor/comments/src/comments-list/group-list.d.ts +2 -8
- package/@ones-editor/comments/src/comments-list/handler.d.ts +1 -2
- package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +1 -1
- package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +0 -1
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +0 -1
- package/@ones-editor/comments/src/comments-render/index.d.ts +1 -10
- package/@ones-editor/comments/src/constant/index.d.ts +1 -2
- package/@ones-editor/comments/src/index.d.ts +0 -1
- package/@ones-editor/comments/src/locale/en-us.d.ts +0 -9
- package/@ones-editor/comments/src/locale/ja-jp.d.ts +0 -9
- package/@ones-editor/comments/src/locale/zh-cn.d.ts +0 -9
- package/@ones-editor/comments/src/types.d.ts +1 -7
- package/@ones-editor/core/src/core/block-renderers/block-renderers.d.ts +0 -1
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +0 -2
- package/@ones-editor/core/src/core/doc/doc.d.ts +0 -9
- package/@ones-editor/core/src/core/types.d.ts +0 -3
- package/@ones-editor/core/src/local-doc/index.d.ts +0 -1
- package/@ones-editor/scroll-container/src/scroll-bar-handle.d.ts +1 -4
- package/@ones-editor/sharedb-doc/src/doc/comments.d.ts +1 -2
- package/@ones-editor/sharedb-doc/src/doc/op-parser/parse-handler.d.ts +1 -2
- package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +1 -3
- package/@ones-editor/sharedb-doc/src/types.d.ts +0 -1
- package/@ones-editor/to-docx/src/index.d.ts +1 -0
- package/@ones-editor/to-docx/src/locale/en-us.d.ts +7 -0
- package/@ones-editor/to-docx/src/locale/index.d.ts +1 -0
- package/@ones-editor/to-docx/src/locale/ja-jp.d.ts +7 -0
- package/@ones-editor/to-docx/src/locale/zh-cn.d.ts +7 -0
- package/@ones-editor/to-docx/src/locale/zh-hant-hk.d.ts +7 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/readonly-toolbar/add-comment-to-old-doc.d.ts +0 -1
- package/@ones-editor/ui-base/src/icons/index.d.ts +1 -2
- package/@ones-editor/versions/src/version-dialog/history-handler.d.ts +0 -1
- package/dist/comments/local-doc-comments-provider.d.ts +1 -2
- package/dist/comments/sharedb-doc-comments-provider.d.ts +1 -3
- package/dist/index.d.ts +0 -2
- package/dist/index.js +479 -1267
- package/dist/types.d.ts +0 -2
- package/package.json +1 -1
- package/@ones-editor/comments/src/comments-render/get-block-comments.d.ts +0 -5
- package/@ones-editor/comments/src/resolved-comments/index.d.ts +0 -4
- package/@ones-editor/comments/src/resolved-comments/resolved-comment-editor.d.ts +0 -14
- package/@ones-editor/comments/src/resolved-comments/resolved-comment-list.d.ts +0 -4
package/dist/index.js
CHANGED
|
@@ -2196,7 +2196,7 @@ div.scroll-container-root > div.container-scroll-tool .container-left-border-sha
|
|
|
2196
2196
|
div.scroll-container-root > div.container-scroll-tool .container-scrollbar {
|
|
2197
2197
|
position: absolute;
|
|
2198
2198
|
left: 0;
|
|
2199
|
-
z-index:
|
|
2199
|
+
z-index: 700;
|
|
2200
2200
|
visibility: visible;
|
|
2201
2201
|
overflow-x: auto;
|
|
2202
2202
|
overflow-y: hidden;
|
|
@@ -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:
|
|
4130
|
-
height:
|
|
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 .comment-groups-container .no-comment-tip {
|
|
4330
|
-
font-size: 12px;
|
|
4331
|
-
width: 100%;
|
|
4332
|
-
color: #BEBFC2;
|
|
4333
|
-
display: flex;
|
|
4334
|
-
justify-content: center;
|
|
4335
|
-
align-items: center;
|
|
4336
|
-
margin-top: 100px;
|
|
4337
|
-
}
|
|
4338
|
-
.editor-web-comment-root[list-type=resolved] .comment-groups-container {
|
|
4339
|
-
display: flex;
|
|
4340
|
-
flex-direction: column;
|
|
4341
|
-
padding-left: 8px;
|
|
4342
|
-
padding-top: 60px;
|
|
4343
|
-
}
|
|
4344
|
-
.editor-web-comment-root[list-type=resolved] .comment-groups-container .comment-group-item-root {
|
|
4345
|
-
margin-bottom: 20px;
|
|
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.
|
|
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
|
|
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
|
-
|
|
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,70 +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-resolved {
|
|
4455
|
-
font-size: 12px;
|
|
4456
|
-
color: #87888a;
|
|
4457
|
-
flex-grow: 1;
|
|
4458
|
-
display: flex;
|
|
4459
|
-
white-space: nowrap;
|
|
4460
|
-
}
|
|
4461
|
-
.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-resolved .resolver-name {
|
|
4462
|
-
flex-shrink: 1;
|
|
4463
|
-
white-space: nowrap;
|
|
4464
|
-
overflow: hidden;
|
|
4465
|
-
text-overflow: ellipsis;
|
|
4466
|
-
}
|
|
4467
|
-
.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions {
|
|
4468
|
-
display: flex;
|
|
4469
|
-
align-items: center;
|
|
4470
|
-
}
|
|
4471
|
-
.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions .comment-date {
|
|
4472
|
-
flex: 1;
|
|
4473
|
-
white-space: nowrap;
|
|
4474
|
-
}
|
|
4475
|
-
.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions .removed-tips {
|
|
4476
|
-
color: #87888A;
|
|
4477
|
-
white-space: nowrap;
|
|
4478
|
-
text-overflow: ellipsis;
|
|
4479
|
-
overflow: hidden;
|
|
4480
|
-
margin-left: 10px;
|
|
4481
|
-
}
|
|
4482
|
-
.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions .comment-reopen {
|
|
4483
|
-
background: none;
|
|
4484
|
-
border: none;
|
|
4485
|
-
cursor: pointer;
|
|
4486
|
-
color: #575859;
|
|
4487
|
-
font-size: 12px;
|
|
4488
|
-
}
|
|
4489
|
-
.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions .comment-reopen:hover {
|
|
4490
|
-
color: #0064FF;
|
|
4491
|
-
}
|
|
4492
4401
|
.editor-web-comment-root .comment-groups-container .comment-group-item-root.active::before {
|
|
4493
4402
|
background-color: #f59300;
|
|
4494
4403
|
}
|
|
4495
|
-
.editor-web-comment-root .comment-groups-container .comment-group-item-root.active .item-head-switch
|
|
4496
|
-
visibility: visible;
|
|
4497
|
-
}
|
|
4498
|
-
.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 {
|
|
4499
4405
|
visibility: visible;
|
|
4500
4406
|
}
|
|
4501
4407
|
.editor-web-comment-root .comment-groups-container .comment-group-item-root.readonly .comment-quick-reply .quick-reply-button.invisible {
|
|
4502
4408
|
display: none;
|
|
4503
4409
|
}
|
|
4504
|
-
.editor-web-comment-root .comment-switcher-container {
|
|
4505
|
-
position: absolute;
|
|
4506
|
-
z-index: 1;
|
|
4507
|
-
top: 0;
|
|
4508
|
-
left: 0;
|
|
4509
|
-
right: 0;
|
|
4510
|
-
font-size: 14px;
|
|
4511
|
-
}
|
|
4512
4410
|
.editor-mobile-comments-root {
|
|
4513
4411
|
position: fixed;
|
|
4514
4412
|
left: 0;
|
|
@@ -4610,108 +4508,6 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
|
|
|
4610
4508
|
}
|
|
4611
4509
|
:is(.editor-web-comment-root, .editor-mobile-comments-root, .editor-mini-comment-root).hidden {
|
|
4612
4510
|
display: none;
|
|
4613
|
-
}
|
|
4614
|
-
.editor-root .editor-content [data-type=editor-container][comment-list-type=resolved] div[data-type=editor-block].text-block.comment > div[data-type=block-content] > span {
|
|
4615
|
-
border-bottom-color: transparent;
|
|
4616
|
-
}
|
|
4617
|
-
.editor-root .editor-content [data-type=editor-container][comment-list-type=resolved] div[data-type=editor-block] span.text.comment,
|
|
4618
|
-
.editor-root .editor-content [data-type=editor-container][comment-list-type=resolved] div[data-type=editor-block] span[data-type=editor-box].comment {
|
|
4619
|
-
border-bottom-color: transparent;
|
|
4620
|
-
}
|
|
4621
|
-
.editor-root .editor-content [data-type=editor-container][comment-list-type=resolved] div[data-type=editor-block] span.text.comment.active,
|
|
4622
|
-
.editor-root .editor-content [data-type=editor-container][comment-list-type=resolved] div[data-type=editor-block] span[data-type=editor-box].comment.active {
|
|
4623
|
-
background-color: transparent;
|
|
4624
|
-
}
|
|
4625
|
-
.editor-root .editor-content [data-type=editor-container][comment-list-type=resolved] div[data-type=editor-block].comment::after {
|
|
4626
|
-
background-color: transparent;
|
|
4627
|
-
}
|
|
4628
|
-
.editor-root .editor-content [data-type=editor-container][comment-list-type=resolved] div[data-type=editor-block].comment.active {
|
|
4629
|
-
outline: none;
|
|
4630
|
-
}.resolved-comment-list .resolved-comment-group-item-root {
|
|
4631
|
-
padding: 10px 20px;
|
|
4632
|
-
border-bottom: 1px solid #f0f0f0;
|
|
4633
|
-
margin-right: 10px;
|
|
4634
|
-
}
|
|
4635
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-group-head {
|
|
4636
|
-
margin-bottom: 5px;
|
|
4637
|
-
}
|
|
4638
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-group-head span {
|
|
4639
|
-
padding: 0 5px;
|
|
4640
|
-
display: inline-block;
|
|
4641
|
-
line-height: 2;
|
|
4642
|
-
background-color: #FFF0D9;
|
|
4643
|
-
}
|
|
4644
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-children-container,
|
|
4645
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-container {
|
|
4646
|
-
padding-left: 10px;
|
|
4647
|
-
}
|
|
4648
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root,
|
|
4649
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root {
|
|
4650
|
-
position: relative;
|
|
4651
|
-
}
|
|
4652
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root:not(.no-children)::before,
|
|
4653
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root:not(.no-children)::before {
|
|
4654
|
-
content: " ";
|
|
4655
|
-
display: block;
|
|
4656
|
-
position: absolute;
|
|
4657
|
-
left: 10px;
|
|
4658
|
-
width: 1px;
|
|
4659
|
-
background-color: #DFE1E5;
|
|
4660
|
-
overflow: hidden;
|
|
4661
|
-
opacity: 0.8;
|
|
4662
|
-
top: 21px;
|
|
4663
|
-
bottom: -12px;
|
|
4664
|
-
transform: scaleX(0.5);
|
|
4665
|
-
}
|
|
4666
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-head,
|
|
4667
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-head {
|
|
4668
|
-
padding: 0;
|
|
4669
|
-
position: relative;
|
|
4670
|
-
display: flex;
|
|
4671
|
-
align-items: center;
|
|
4672
|
-
}
|
|
4673
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-head .comment-avatar,
|
|
4674
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-head .comment-avatar {
|
|
4675
|
-
margin-right: 5px;
|
|
4676
|
-
width: var(--editor-comment-avatar-width, 22px);
|
|
4677
|
-
height: var(--editor-comment-avatar-width, 22px);
|
|
4678
|
-
border-radius: 100%;
|
|
4679
|
-
}
|
|
4680
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-head .comment-username,
|
|
4681
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-head .comment-username {
|
|
4682
|
-
font-size: var(--editor-comment-username-font-size, 12px);
|
|
4683
|
-
color: #2d2d2e;
|
|
4684
|
-
overflow: hidden;
|
|
4685
|
-
text-overflow: ellipsis;
|
|
4686
|
-
white-space: nowrap;
|
|
4687
|
-
}
|
|
4688
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-head .comment-modified,
|
|
4689
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-head .comment-modified {
|
|
4690
|
-
margin-left: 10px;
|
|
4691
|
-
font-size: 12px;
|
|
4692
|
-
color: #87888a;
|
|
4693
|
-
flex-grow: 1;
|
|
4694
|
-
white-space: nowrap;
|
|
4695
|
-
}
|
|
4696
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root .comment-editor,
|
|
4697
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-container .resolved-comment-item-root .comment-editor {
|
|
4698
|
-
border: none;
|
|
4699
|
-
padding-top: 0;
|
|
4700
|
-
margin-top: 0;
|
|
4701
|
-
padding-left: 10px;
|
|
4702
|
-
margin-left: 0;
|
|
4703
|
-
}
|
|
4704
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root:last-child::before {
|
|
4705
|
-
display: none;
|
|
4706
|
-
}
|
|
4707
|
-
.resolved-comment-list .resolved-comment-group-item-root .comment-item-footer .comment-resolved {
|
|
4708
|
-
margin-left: 10px;
|
|
4709
|
-
font-size: 12px;
|
|
4710
|
-
color: #87888a;
|
|
4711
|
-
flex-grow: 1;
|
|
4712
|
-
white-space: nowrap;
|
|
4713
|
-
overflow: hidden;
|
|
4714
|
-
text-overflow: ellipsis;
|
|
4715
4511
|
}div[data-type=editor-block].table-block {
|
|
4716
4512
|
--table-bar-width: 6px;
|
|
4717
4513
|
--table-bar-left: -6px;
|
|
@@ -9060,7 +8856,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9060
8856
|
loggerClass.set(category, instance);
|
|
9061
8857
|
return instance;
|
|
9062
8858
|
}
|
|
9063
|
-
const enUS$
|
|
8859
|
+
const enUS$y = {
|
|
9064
8860
|
name: "ONES Editor",
|
|
9065
8861
|
date: {
|
|
9066
8862
|
dateFromFuture: "From the future",
|
|
@@ -9080,7 +8876,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9080
8876
|
imageExportFailed: "Failed to load image"
|
|
9081
8877
|
}
|
|
9082
8878
|
};
|
|
9083
|
-
const zhCN$
|
|
8879
|
+
const zhCN$y = {
|
|
9084
8880
|
name: "Ones Editor",
|
|
9085
8881
|
date: {
|
|
9086
8882
|
dateFromFuture: "\u6765\u81EA\u672A\u6765",
|
|
@@ -9100,7 +8896,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9100
8896
|
imageExportFailed: "\u56FE\u7247\u52A0\u8F7D\u5931\u8D25"
|
|
9101
8897
|
}
|
|
9102
8898
|
};
|
|
9103
|
-
const zhHK$
|
|
8899
|
+
const zhHK$y = {
|
|
9104
8900
|
name: "Ones Editor",
|
|
9105
8901
|
date: {
|
|
9106
8902
|
dateFromFuture: "\u4F86\u81EA\u672A\u4F86",
|
|
@@ -9120,7 +8916,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9120
8916
|
imageExportFailed: "\u5716\u7247\u52A0\u8F09\u5931\u6557"
|
|
9121
8917
|
}
|
|
9122
8918
|
};
|
|
9123
|
-
const jaJP$
|
|
8919
|
+
const jaJP$y = {
|
|
9124
8920
|
name: "ONES \u30A8\u30C7\u30A3\u30BF\u30FC",
|
|
9125
8921
|
date: {
|
|
9126
8922
|
dateFromFuture: "\u672A\u6765\u304B\u3089",
|
|
@@ -9142,10 +8938,10 @@ var __publicField = (obj, key, value) => {
|
|
|
9142
8938
|
};
|
|
9143
8939
|
const logger$4T = getLogger("i18n");
|
|
9144
8940
|
const langs$3 = {
|
|
9145
|
-
"en-US": enUS$
|
|
9146
|
-
"zh-CN": zhCN$
|
|
9147
|
-
"zh-HK": zhHK$
|
|
9148
|
-
"ja-JP": jaJP$
|
|
8941
|
+
"en-US": enUS$y,
|
|
8942
|
+
"zh-CN": zhCN$y,
|
|
8943
|
+
"zh-HK": zhHK$y,
|
|
8944
|
+
"ja-JP": jaJP$y
|
|
9149
8945
|
};
|
|
9150
8946
|
const i18n = KiwiIntl__default.default.init("en-US", langs$3);
|
|
9151
8947
|
let currentLang = "en-US";
|
|
@@ -9432,22 +9228,22 @@ var __publicField = (obj, key, value) => {
|
|
|
9432
9228
|
function toFloat(value) {
|
|
9433
9229
|
return parseFloat(value) || 0;
|
|
9434
9230
|
}
|
|
9435
|
-
function getBordersSize(
|
|
9231
|
+
function getBordersSize(styles) {
|
|
9436
9232
|
var positions = [];
|
|
9437
9233
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9438
9234
|
positions[_i - 1] = arguments[_i];
|
|
9439
9235
|
}
|
|
9440
9236
|
return positions.reduce(function(size, position) {
|
|
9441
|
-
var value =
|
|
9237
|
+
var value = styles["border-" + position + "-width"];
|
|
9442
9238
|
return size + toFloat(value);
|
|
9443
9239
|
}, 0);
|
|
9444
9240
|
}
|
|
9445
|
-
function getPaddings(
|
|
9241
|
+
function getPaddings(styles) {
|
|
9446
9242
|
var positions = ["top", "right", "bottom", "left"];
|
|
9447
9243
|
var paddings = {};
|
|
9448
9244
|
for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
|
|
9449
9245
|
var position = positions_1[_i];
|
|
9450
|
-
var value =
|
|
9246
|
+
var value = styles["padding-" + position];
|
|
9451
9247
|
paddings[position] = toFloat(value);
|
|
9452
9248
|
}
|
|
9453
9249
|
return paddings;
|
|
@@ -9461,17 +9257,17 @@ var __publicField = (obj, key, value) => {
|
|
|
9461
9257
|
if (!clientWidth && !clientHeight) {
|
|
9462
9258
|
return emptyRect;
|
|
9463
9259
|
}
|
|
9464
|
-
var
|
|
9465
|
-
var paddings = getPaddings(
|
|
9260
|
+
var styles = getWindowOf(target).getComputedStyle(target);
|
|
9261
|
+
var paddings = getPaddings(styles);
|
|
9466
9262
|
var horizPad = paddings.left + paddings.right;
|
|
9467
9263
|
var vertPad = paddings.top + paddings.bottom;
|
|
9468
|
-
var width = toFloat(
|
|
9469
|
-
if (
|
|
9264
|
+
var width = toFloat(styles.width), height = toFloat(styles.height);
|
|
9265
|
+
if (styles.boxSizing === "border-box") {
|
|
9470
9266
|
if (Math.round(width + horizPad) !== clientWidth) {
|
|
9471
|
-
width -= getBordersSize(
|
|
9267
|
+
width -= getBordersSize(styles, "left", "right") + horizPad;
|
|
9472
9268
|
}
|
|
9473
9269
|
if (Math.round(height + vertPad) !== clientHeight) {
|
|
9474
|
-
height -= getBordersSize(
|
|
9270
|
+
height -= getBordersSize(styles, "top", "bottom") + vertPad;
|
|
9475
9271
|
}
|
|
9476
9272
|
}
|
|
9477
9273
|
if (!isDocumentElement(target)) {
|
|
@@ -10126,8 +9922,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10126
9922
|
el.setAttribute(key, value);
|
|
10127
9923
|
});
|
|
10128
9924
|
}
|
|
10129
|
-
function setStyles(el,
|
|
10130
|
-
Object.entries(
|
|
9925
|
+
function setStyles(el, styles) {
|
|
9926
|
+
Object.entries(styles).forEach(([key, value]) => {
|
|
10131
9927
|
el.style.setProperty(key, value);
|
|
10132
9928
|
});
|
|
10133
9929
|
}
|
|
@@ -12547,12 +12343,12 @@ var __publicField = (obj, key, value) => {
|
|
|
12547
12343
|
return blockClass.getBlockStyles(editor, block);
|
|
12548
12344
|
}
|
|
12549
12345
|
const data2 = editor.getBlockData(block);
|
|
12550
|
-
const
|
|
12551
|
-
Object.entries(
|
|
12346
|
+
const styles = Object.fromEntries(Object.entries(data2).filter(([key]) => key.startsWith("style-")));
|
|
12347
|
+
Object.entries(styles).forEach(([, value]) => {
|
|
12552
12348
|
const type = typeof value;
|
|
12553
12349
|
assert(logger$4C, type === "string" || type === "number" || type === "boolean", "invalid style value");
|
|
12554
12350
|
});
|
|
12555
|
-
return
|
|
12351
|
+
return styles;
|
|
12556
12352
|
}
|
|
12557
12353
|
function getContainerWidth(container, options) {
|
|
12558
12354
|
const ret = container.getBoundingClientRect().width;
|
|
@@ -25141,7 +24937,7 @@ var __publicField = (obj, key, value) => {
|
|
|
25141
24937
|
if (attributes) {
|
|
25142
24938
|
let string = op.insert;
|
|
25143
24939
|
const tags = [];
|
|
25144
|
-
let
|
|
24940
|
+
let styles = "";
|
|
25145
24941
|
if (attributes["style-bold"]) {
|
|
25146
24942
|
tags.push("strong");
|
|
25147
24943
|
}
|
|
@@ -25159,25 +24955,25 @@ var __publicField = (obj, key, value) => {
|
|
|
25159
24955
|
}
|
|
25160
24956
|
const fontBgColor = Object.keys(attributes).find((k) => k.startsWith("style-bg-color-"));
|
|
25161
24957
|
if (fontBgColor) {
|
|
25162
|
-
|
|
24958
|
+
styles += `background-color: ${styleBackgroundColorToHighlight$1(fontBgColor)};`;
|
|
25163
24959
|
}
|
|
25164
24960
|
const fontColor = Object.keys(attributes).find((k) => k.startsWith("style-color-"));
|
|
25165
24961
|
if (fontColor) {
|
|
25166
|
-
|
|
24962
|
+
styles += `color: ${styleColorToColor$1(fontColor)};`;
|
|
25167
24963
|
}
|
|
25168
24964
|
if (attributes.link) {
|
|
25169
24965
|
string = `<a href="${attributes.link}">${string}</a>`;
|
|
25170
24966
|
}
|
|
25171
24967
|
let prefix = tags.map((s) => `<${s}>`).join("");
|
|
25172
24968
|
let suffix = tags.reverse().map((s) => `</${s}>`).join("");
|
|
25173
|
-
if (
|
|
24969
|
+
if (styles) {
|
|
25174
24970
|
if (attributes.link) {
|
|
25175
|
-
string = `<a href="${attributes.link}" style="${
|
|
24971
|
+
string = `<a href="${attributes.link}" style="${styles}">${op.insert}</a>`;
|
|
25176
24972
|
} else {
|
|
25177
24973
|
if (prefix) {
|
|
25178
|
-
prefix = prefix.replace(">", ` style="${
|
|
24974
|
+
prefix = prefix.replace(">", ` style="${styles}">`);
|
|
25179
24975
|
} else {
|
|
25180
|
-
prefix = `<span style="${
|
|
24976
|
+
prefix = `<span style="${styles}">`;
|
|
25181
24977
|
suffix = "</span>";
|
|
25182
24978
|
}
|
|
25183
24979
|
}
|
|
@@ -25620,9 +25416,6 @@ var __publicField = (obj, key, value) => {
|
|
|
25620
25416
|
__publicField(this, "renders", []);
|
|
25621
25417
|
this.editor = editor;
|
|
25622
25418
|
}
|
|
25623
|
-
getRenderers() {
|
|
25624
|
-
return this.renders;
|
|
25625
|
-
}
|
|
25626
25419
|
registerRender(render) {
|
|
25627
25420
|
this.renders.push(render);
|
|
25628
25421
|
}
|
|
@@ -25860,8 +25653,8 @@ var __publicField = (obj, key, value) => {
|
|
|
25860
25653
|
renderBlock(editor, path, blockData) {
|
|
25861
25654
|
var _a, _b;
|
|
25862
25655
|
const attributes = {};
|
|
25863
|
-
const
|
|
25864
|
-
|
|
25656
|
+
const styles = Object.entries(blockData).filter((k) => k[0].startsWith("style-"));
|
|
25657
|
+
styles.forEach(([key, value]) => {
|
|
25865
25658
|
attributes[`data-${key}`] = `${value}`;
|
|
25866
25659
|
});
|
|
25867
25660
|
const classes = [];
|
|
@@ -26068,7 +25861,6 @@ var __publicField = (obj, key, value) => {
|
|
|
26068
25861
|
constructor(editor, callbacks) {
|
|
26069
25862
|
__publicField(this, "editor");
|
|
26070
25863
|
__publicField(this, "composing", false);
|
|
26071
|
-
__publicField(this, "composingTimer");
|
|
26072
25864
|
__publicField(this, "callbacks");
|
|
26073
25865
|
__publicField(this, "inputElement");
|
|
26074
25866
|
__publicField(this, "handleBlur", () => {
|
|
@@ -26128,13 +25920,12 @@ var __publicField = (obj, key, value) => {
|
|
|
26128
25920
|
if (!this.editor.isWritable()) {
|
|
26129
25921
|
return;
|
|
26130
25922
|
}
|
|
26131
|
-
clearTimeout(this.composingTimer);
|
|
26132
25923
|
this.composing = true;
|
|
26133
25924
|
this.callbacks.onCompositionStart(event);
|
|
26134
25925
|
});
|
|
26135
25926
|
__publicField(this, "handleCompositionend", (event) => {
|
|
26136
25927
|
if (isSafari()) {
|
|
26137
|
-
|
|
25928
|
+
setTimeout(() => {
|
|
26138
25929
|
this.composing = false;
|
|
26139
25930
|
}, 100);
|
|
26140
25931
|
} else {
|
|
@@ -31834,7 +31625,7 @@ ${codeText}
|
|
|
31834
31625
|
const logger$38 = getLogger("editor");
|
|
31835
31626
|
class Editor extends tinyTypedEmitter.TypedEmitter {
|
|
31836
31627
|
constructor(parent, doc2, optionalOptions) {
|
|
31837
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i
|
|
31628
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
31838
31629
|
super();
|
|
31839
31630
|
__publicField(this, "parent");
|
|
31840
31631
|
__publicField(this, "rootElement");
|
|
@@ -31880,13 +31671,12 @@ ${codeText}
|
|
|
31880
31671
|
componentsOptions: (_c = (_b = optionalOptions == null ? void 0 : optionalOptions.components) == null ? void 0 : _b.options) != null ? _c : {},
|
|
31881
31672
|
scrollContainer: optionalOptions == null ? void 0 : optionalOptions.scrollContainer,
|
|
31882
31673
|
enableComments: (_d = optionalOptions == null ? void 0 : optionalOptions.enableComments) != null ? _d : true,
|
|
31883
|
-
|
|
31884
|
-
enableContextMenu: (_f = optionalOptions == null ? void 0 : optionalOptions.enableContextMenu) != null ? _f : true
|
|
31674
|
+
enableContextMenu: (_e = optionalOptions == null ? void 0 : optionalOptions.enableContextMenu) != null ? _e : true
|
|
31885
31675
|
};
|
|
31886
|
-
this.settingsProvider = (
|
|
31676
|
+
this.settingsProvider = (_f = optionalOptions == null ? void 0 : optionalOptions.settingsProvider) != null ? _f : new DefaultSettingsProvider(this);
|
|
31887
31677
|
registerComponents(this, optionalOptions == null ? void 0 : optionalOptions.components);
|
|
31888
|
-
this.blockHooks.push(...(
|
|
31889
|
-
this.id = (
|
|
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();
|
|
31890
31680
|
this.clientId = genId();
|
|
31891
31681
|
this.undoManager = new UndoManager(this);
|
|
31892
31682
|
this.doc = new EditorDoc(this, doc2, this.undoManager);
|
|
@@ -32372,9 +32162,6 @@ ${codeText}
|
|
|
32372
32162
|
toJSON() {
|
|
32373
32163
|
return cloneDeep__default.default(this.doc);
|
|
32374
32164
|
}
|
|
32375
|
-
rawData() {
|
|
32376
|
-
return this.doc;
|
|
32377
|
-
}
|
|
32378
32165
|
getContainerBlocks(containerId) {
|
|
32379
32166
|
const blocks = this.doc.blocks[containerId];
|
|
32380
32167
|
return blocks;
|
|
@@ -38895,12 +38682,6 @@ ${codeText}
|
|
|
38895
38682
|
commentId
|
|
38896
38683
|
});
|
|
38897
38684
|
}
|
|
38898
|
-
onUpdateCommentResolver(commentId) {
|
|
38899
|
-
this.pushActions({
|
|
38900
|
-
type: "updateCommentResolved",
|
|
38901
|
-
commentId
|
|
38902
|
-
});
|
|
38903
|
-
}
|
|
38904
38685
|
end() {
|
|
38905
38686
|
const actions2 = this.actions;
|
|
38906
38687
|
const deletedBlocks = /* @__PURE__ */ new Set();
|
|
@@ -38975,9 +38756,6 @@ ${codeText}
|
|
|
38975
38756
|
} else if (action.type === "updateComment") {
|
|
38976
38757
|
const a = action;
|
|
38977
38758
|
this.outerHandler.onUpdateComment(a.commentId, this.local);
|
|
38978
|
-
} else if (action.type === "updateCommentResolved") {
|
|
38979
|
-
const a = action;
|
|
38980
|
-
this.outerHandler.onUpdateCommentResolver(a.commentId, this.local);
|
|
38981
38759
|
}
|
|
38982
38760
|
});
|
|
38983
38761
|
Array.from(updatingBlockDataDeltaMap.entries()).forEach(([blockId, objectData]) => {
|
|
@@ -39155,14 +38933,7 @@ ${codeText}
|
|
|
39155
38933
|
assert(logger$2W, commentId, `invalid comment op, no commentId: ${JSON.stringify(ops)}`);
|
|
39156
38934
|
assert(logger$2W, actions2, `invalid comment op, no actions: ${JSON.stringify(ops)}`);
|
|
39157
38935
|
if (typeof actions2 === "string") {
|
|
39158
|
-
|
|
39159
|
-
if (actions2 === "resolver" && typeof data2 === "object") {
|
|
39160
|
-
if (parseType === "upsert") {
|
|
39161
|
-
handler.onUpdateCommentResolver(commentId);
|
|
39162
|
-
}
|
|
39163
|
-
} else {
|
|
39164
|
-
logger$2W.error(`unknown comment op, ${JSON.stringify(ops)}`);
|
|
39165
|
-
}
|
|
38936
|
+
logger$2W.error(`unknown comment op, ${JSON.stringify(ops)}`);
|
|
39166
38937
|
} else {
|
|
39167
38938
|
if (actions2.i && actions2.r) {
|
|
39168
38939
|
if (parseType === "upsert") {
|
|
@@ -39272,8 +39043,7 @@ ${codeText}
|
|
|
39272
39043
|
avatarUrl,
|
|
39273
39044
|
abstract,
|
|
39274
39045
|
created,
|
|
39275
|
-
modified
|
|
39276
|
-
resolver: resolved
|
|
39046
|
+
modified
|
|
39277
39047
|
} = shareDBComment;
|
|
39278
39048
|
return {
|
|
39279
39049
|
id,
|
|
@@ -39283,8 +39053,7 @@ ${codeText}
|
|
|
39283
39053
|
avatarUrl,
|
|
39284
39054
|
abstract,
|
|
39285
39055
|
created,
|
|
39286
|
-
modified
|
|
39287
|
-
resolver: resolved
|
|
39056
|
+
modified
|
|
39288
39057
|
};
|
|
39289
39058
|
}
|
|
39290
39059
|
function commentToShareDbComment(comment, doc2) {
|
|
@@ -39756,21 +39525,6 @@ ${codeText}
|
|
|
39756
39525
|
const op = ["comments", comment.id, { r: true, i: shareDBComment }];
|
|
39757
39526
|
return this.submitOp(op);
|
|
39758
39527
|
}
|
|
39759
|
-
localUpdateCommentResolver(commentId, resolver) {
|
|
39760
|
-
const oldComment = this.getComment(commentId);
|
|
39761
|
-
const oldResolved = oldComment.resolver;
|
|
39762
|
-
const op = ["comments", commentId, "resolver", {}];
|
|
39763
|
-
if (!oldResolved && !resolver) {
|
|
39764
|
-
return Promise.resolve(true);
|
|
39765
|
-
}
|
|
39766
|
-
if (oldResolved !== void 0) {
|
|
39767
|
-
op[3] = { r: true };
|
|
39768
|
-
}
|
|
39769
|
-
if (resolver) {
|
|
39770
|
-
op[3].i = resolver;
|
|
39771
|
-
}
|
|
39772
|
-
return this.submitOp(op);
|
|
39773
|
-
}
|
|
39774
39528
|
destroy() {
|
|
39775
39529
|
var _a;
|
|
39776
39530
|
this.destroyed = true;
|
|
@@ -39847,13 +39601,6 @@ ${codeText}
|
|
|
39847
39601
|
return (_a = cb.onUpdateComment) == null ? void 0 : _a.call(cb, commentId, local);
|
|
39848
39602
|
});
|
|
39849
39603
|
}
|
|
39850
|
-
onUpdateCommentResolver(commentId, local) {
|
|
39851
|
-
assert(logger$2T, this.callbacks.length > 0, "no callbacks");
|
|
39852
|
-
this.callbacks.forEach((cb) => {
|
|
39853
|
-
var _a;
|
|
39854
|
-
return (_a = cb.onUpdateCommentResolver) == null ? void 0 : _a.call(cb, commentId, local);
|
|
39855
|
-
});
|
|
39856
|
-
}
|
|
39857
39604
|
onCustomMessage(msg) {
|
|
39858
39605
|
const message = msg;
|
|
39859
39606
|
if ((message == null ? void 0 : message.type) === "custom" && (message == null ? void 0 : message.clientId) !== this.client.clientId) {
|
|
@@ -40647,7 +40394,7 @@ ${codeText}
|
|
|
40647
40394
|
handler.removeListener("insert", callback);
|
|
40648
40395
|
}
|
|
40649
40396
|
const style$e = "";
|
|
40650
|
-
const zhCN$
|
|
40397
|
+
const zhCN$x = {
|
|
40651
40398
|
button: {
|
|
40652
40399
|
ok: "\u786E\u5B9A",
|
|
40653
40400
|
cancel: "\u53D6\u6D88",
|
|
@@ -40685,7 +40432,7 @@ ${codeText}
|
|
|
40685
40432
|
loading: "\u52A0\u8F7D\u4E2D..."
|
|
40686
40433
|
}
|
|
40687
40434
|
};
|
|
40688
|
-
const zhHK$
|
|
40435
|
+
const zhHK$x = {
|
|
40689
40436
|
button: {
|
|
40690
40437
|
ok: "\u78BA\u5B9A",
|
|
40691
40438
|
cancel: "\u53D6\u6D88",
|
|
@@ -40723,7 +40470,7 @@ ${codeText}
|
|
|
40723
40470
|
loading: "\u52A0\u8F09\u4E2D..."
|
|
40724
40471
|
}
|
|
40725
40472
|
};
|
|
40726
|
-
const enUS$
|
|
40473
|
+
const enUS$x = {
|
|
40727
40474
|
button: {
|
|
40728
40475
|
ok: "OK",
|
|
40729
40476
|
cancel: "Cancel",
|
|
@@ -40761,7 +40508,7 @@ ${codeText}
|
|
|
40761
40508
|
loading: "Loading..."
|
|
40762
40509
|
}
|
|
40763
40510
|
};
|
|
40764
|
-
const jaJP$
|
|
40511
|
+
const jaJP$x = {
|
|
40765
40512
|
button: {
|
|
40766
40513
|
ok: "\u9069\u7528",
|
|
40767
40514
|
cancel: "\u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
@@ -40800,10 +40547,10 @@ ${codeText}
|
|
|
40800
40547
|
}
|
|
40801
40548
|
};
|
|
40802
40549
|
i18n$1.mergeLang({
|
|
40803
|
-
"zh-CN": zhCN$
|
|
40804
|
-
"zh-HK": zhHK$
|
|
40805
|
-
"en-US": enUS$
|
|
40806
|
-
"ja-JP": jaJP$
|
|
40550
|
+
"zh-CN": zhCN$x,
|
|
40551
|
+
"zh-HK": zhHK$x,
|
|
40552
|
+
"en-US": enUS$x,
|
|
40553
|
+
"ja-JP": jaJP$x
|
|
40807
40554
|
});
|
|
40808
40555
|
const button = "";
|
|
40809
40556
|
const logger$2N = getLogger("button");
|
|
@@ -40922,7 +40669,6 @@ ${codeText}
|
|
|
40922
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>';
|
|
40923
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';
|
|
40924
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>';
|
|
40925
|
-
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';
|
|
40926
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';
|
|
40927
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';
|
|
40928
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';
|
|
@@ -41078,7 +40824,6 @@ ${codeText}
|
|
|
41078
40824
|
RefreshIcon,
|
|
41079
40825
|
HelpIcon,
|
|
41080
40826
|
CheckMarkIcon,
|
|
41081
|
-
CircleCheckMarkIcon,
|
|
41082
40827
|
TextIcon,
|
|
41083
40828
|
RightArrowIcon: rightArrow,
|
|
41084
40829
|
TencentVideoIcon,
|
|
@@ -47916,7 +47661,33 @@ ${codeText}
|
|
|
47916
47661
|
const childWidth = getSizeAsScale(scrollContainer, originWidth + maxRight + overflowWidth - paddingLeft - paddingRight);
|
|
47917
47662
|
scrollbarContainer.firstElementChild.style.width = `${childWidth}px`;
|
|
47918
47663
|
}
|
|
47919
|
-
|
|
47664
|
+
function debounceByArgs(func, wait) {
|
|
47665
|
+
const debouncers = /* @__PURE__ */ new Map();
|
|
47666
|
+
return function(...args) {
|
|
47667
|
+
var _a;
|
|
47668
|
+
const scrollWrap = args[1];
|
|
47669
|
+
let key = (scrollWrap == null ? void 0 : scrollWrap.genId) || "";
|
|
47670
|
+
if (!key) {
|
|
47671
|
+
key = genId();
|
|
47672
|
+
if (scrollWrap)
|
|
47673
|
+
scrollWrap.genId = key;
|
|
47674
|
+
}
|
|
47675
|
+
if (!debouncers.has(key)) {
|
|
47676
|
+
debouncers.set(key, debounce__default.default(
|
|
47677
|
+
(...innerArgs) => {
|
|
47678
|
+
const result = func.apply(this, innerArgs);
|
|
47679
|
+
if (scrollWrap)
|
|
47680
|
+
scrollWrap.genId = void 0;
|
|
47681
|
+
debouncers.delete(key);
|
|
47682
|
+
return result;
|
|
47683
|
+
},
|
|
47684
|
+
wait
|
|
47685
|
+
));
|
|
47686
|
+
}
|
|
47687
|
+
return (_a = debouncers.get(key)) == null ? void 0 : _a.apply(this, args);
|
|
47688
|
+
};
|
|
47689
|
+
}
|
|
47690
|
+
const resetScrollbar = debounceByArgs(resetScrollbarCore, 50);
|
|
47920
47691
|
function resetScrollbarLeft(scrollContainer, scrollbarContainer) {
|
|
47921
47692
|
const scrollWrap = getContainerScrollArea(scrollContainer);
|
|
47922
47693
|
const { paddingLeft } = getScrollWrapPaddingSize(scrollWrap);
|
|
@@ -48933,35 +48704,35 @@ ${codeText}
|
|
|
48933
48704
|
}
|
|
48934
48705
|
return rects[0];
|
|
48935
48706
|
}
|
|
48936
|
-
const zhCN$
|
|
48707
|
+
const zhCN$w = {
|
|
48937
48708
|
embedProperties: {
|
|
48938
48709
|
edit: "\u7F16\u8F91",
|
|
48939
48710
|
addComment: "\u6DFB\u52A0\u6279\u6CE8"
|
|
48940
48711
|
}
|
|
48941
48712
|
};
|
|
48942
|
-
const zhHK$
|
|
48713
|
+
const zhHK$w = {
|
|
48943
48714
|
embedProperties: {
|
|
48944
48715
|
edit: "\u7DE8\u8F2F",
|
|
48945
48716
|
addComment: "\u6DFB\u52A0\u6279\u8A3B"
|
|
48946
48717
|
}
|
|
48947
48718
|
};
|
|
48948
|
-
const enUS$
|
|
48719
|
+
const enUS$w = {
|
|
48949
48720
|
embedProperties: {
|
|
48950
48721
|
edit: "Edit",
|
|
48951
48722
|
addComment: "Add annotation"
|
|
48952
48723
|
}
|
|
48953
48724
|
};
|
|
48954
|
-
const jaJP$
|
|
48725
|
+
const jaJP$w = {
|
|
48955
48726
|
embedProperties: {
|
|
48956
48727
|
edit: "\u7DE8\u96C6",
|
|
48957
48728
|
addComment: "\u6CE8\u91C8\u3092\u8FFD\u52A0"
|
|
48958
48729
|
}
|
|
48959
48730
|
};
|
|
48960
48731
|
i18n$1.mergeLang({
|
|
48961
|
-
"zh-CN": zhCN$
|
|
48962
|
-
"zh-HK": zhHK$
|
|
48963
|
-
"en-US": enUS$
|
|
48964
|
-
"ja-JP": jaJP$
|
|
48732
|
+
"zh-CN": zhCN$w,
|
|
48733
|
+
"zh-HK": zhHK$w,
|
|
48734
|
+
"en-US": enUS$w,
|
|
48735
|
+
"ja-JP": jaJP$w
|
|
48965
48736
|
});
|
|
48966
48737
|
const logger$2a = getLogger("embed-block-properties");
|
|
48967
48738
|
function addCommentToBlock$1(editor, block) {
|
|
@@ -49533,35 +49304,35 @@ ${codeText}
|
|
|
49533
49304
|
}
|
|
49534
49305
|
}
|
|
49535
49306
|
const exclusiveBlockStyles = "";
|
|
49536
|
-
const zhCN$
|
|
49307
|
+
const zhCN$v = {
|
|
49537
49308
|
exclusive: {
|
|
49538
49309
|
tips: "\u300C{editor}\u300D\u6B63\u5728\u7F16\u8F91\uFF0C\u300C{embedType}\u300D\u4E0D\u652F\u6301\u591A\u4EBA\u7F16\u8F91",
|
|
49539
49310
|
fallbackAbstract: "\u8BE5 Block"
|
|
49540
49311
|
}
|
|
49541
49312
|
};
|
|
49542
|
-
const zhHK$
|
|
49313
|
+
const zhHK$v = {
|
|
49543
49314
|
exclusive: {
|
|
49544
49315
|
tips: "\u300C{editor}\u300D\u6B63\u5728\u7DE8\u8F2F\uFF0C\u300C{embedType}\u300D\u4E0D\u652F\u6301\u591A\u4EBA\u7DE8\u8F2F",
|
|
49545
49316
|
fallbackAbstract: "\u8A72 Block"
|
|
49546
49317
|
}
|
|
49547
49318
|
};
|
|
49548
|
-
const enUS$
|
|
49319
|
+
const enUS$v = {
|
|
49549
49320
|
exclusive: {
|
|
49550
49321
|
tips: "\u300C{editor}\u300Dis editing\uFF0C\u300C{embedType}\u300Ddoes not support multi-person editing",
|
|
49551
49322
|
fallbackAbstract: "This Block"
|
|
49552
49323
|
}
|
|
49553
49324
|
};
|
|
49554
|
-
const jaJP$
|
|
49325
|
+
const jaJP$v = {
|
|
49555
49326
|
exclusive: {
|
|
49556
49327
|
tips: "\u300C{editor}\u300D\u306F\u7DE8\u96C6\u4E2D\u3067\u3059\u3002\u300C{embedType}\u300D\u306F\u8907\u6570\u4EBA\u3067\u540C\u6642\u7DE8\u96C6\u3067\u304D\u307E\u305B\u3093",
|
|
49557
49328
|
fallbackAbstract: "\u3053\u306E\u8981\u7D20"
|
|
49558
49329
|
}
|
|
49559
49330
|
};
|
|
49560
49331
|
i18n$1.mergeLang({
|
|
49561
|
-
"zh-CN": zhCN$
|
|
49562
|
-
"zh-HK": zhHK$
|
|
49563
|
-
"en-US": enUS$
|
|
49564
|
-
"ja-JP": jaJP$
|
|
49332
|
+
"zh-CN": zhCN$v,
|
|
49333
|
+
"zh-HK": zhHK$v,
|
|
49334
|
+
"en-US": enUS$v,
|
|
49335
|
+
"ja-JP": jaJP$v
|
|
49565
49336
|
});
|
|
49566
49337
|
function getBlockInfo(editor, block) {
|
|
49567
49338
|
const data2 = editor.getBlockData(block);
|
|
@@ -49738,28 +49509,28 @@ ${codeText}
|
|
|
49738
49509
|
}
|
|
49739
49510
|
}
|
|
49740
49511
|
const style$b = "";
|
|
49741
|
-
const zhCN$
|
|
49512
|
+
const zhCN$u = {
|
|
49742
49513
|
locker: {
|
|
49743
49514
|
lock: "\u9501\u5B9A",
|
|
49744
49515
|
unlock: "\u89E3\u9664\u9501\u5B9A",
|
|
49745
49516
|
lockedBy: "\u88AB {name} \u9501\u5B9A"
|
|
49746
49517
|
}
|
|
49747
49518
|
};
|
|
49748
|
-
const zhHK$
|
|
49519
|
+
const zhHK$u = {
|
|
49749
49520
|
locker: {
|
|
49750
49521
|
lock: "\u9396\u5B9A",
|
|
49751
49522
|
unlock: "\u89E3\u9664\u9396\u5B9A",
|
|
49752
49523
|
lockedBy: "\u88AB {name} \u9396\u5B9A"
|
|
49753
49524
|
}
|
|
49754
49525
|
};
|
|
49755
|
-
const enUS$
|
|
49526
|
+
const enUS$u = {
|
|
49756
49527
|
locker: {
|
|
49757
49528
|
lock: "Lock",
|
|
49758
49529
|
unlock: "Unlock",
|
|
49759
49530
|
lockedBy: "Locked by {name}"
|
|
49760
49531
|
}
|
|
49761
49532
|
};
|
|
49762
|
-
const jaJP$
|
|
49533
|
+
const jaJP$u = {
|
|
49763
49534
|
locker: {
|
|
49764
49535
|
lock: "\u30ED\u30C3\u30AF",
|
|
49765
49536
|
unlock: "\u30ED\u30C3\u30AF\u89E3\u9664",
|
|
@@ -49767,10 +49538,10 @@ ${codeText}
|
|
|
49767
49538
|
}
|
|
49768
49539
|
};
|
|
49769
49540
|
i18n$1.mergeLang({
|
|
49770
|
-
"zh-CN": zhCN$
|
|
49771
|
-
"zh-HK": zhHK$
|
|
49772
|
-
"en-US": enUS$
|
|
49773
|
-
"ja-JP": jaJP$
|
|
49541
|
+
"zh-CN": zhCN$u,
|
|
49542
|
+
"zh-HK": zhHK$u,
|
|
49543
|
+
"en-US": enUS$u,
|
|
49544
|
+
"ja-JP": jaJP$u
|
|
49774
49545
|
});
|
|
49775
49546
|
class BlockLockerPasteHandler {
|
|
49776
49547
|
async handleBeforePasteDoc(editor, doc2) {
|
|
@@ -50888,7 +50659,7 @@ ${codeText}
|
|
|
50888
50659
|
});
|
|
50889
50660
|
return !!ret;
|
|
50890
50661
|
}
|
|
50891
|
-
function addBlockClasses(from, to,
|
|
50662
|
+
function addBlockClasses(from, to, styles) {
|
|
50892
50663
|
const container = getParentContainer(from);
|
|
50893
50664
|
if (to) {
|
|
50894
50665
|
const container2 = getParentContainer(to);
|
|
@@ -50899,18 +50670,18 @@ ${codeText}
|
|
|
50899
50670
|
const toIndex = getBlockIndex(to);
|
|
50900
50671
|
assert(logger$24, fromIndex <= toIndex, "invalid block index");
|
|
50901
50672
|
}
|
|
50902
|
-
addClass(from, ...
|
|
50673
|
+
addClass(from, ...styles);
|
|
50903
50674
|
if (!to || to === from) {
|
|
50904
50675
|
return;
|
|
50905
50676
|
}
|
|
50906
50677
|
let next2 = getNextBlock(from);
|
|
50907
50678
|
while (next2 !== to) {
|
|
50908
50679
|
assert(logger$24, next2, "no next button");
|
|
50909
|
-
addClass(next2, ...
|
|
50680
|
+
addClass(next2, ...styles);
|
|
50910
50681
|
next2 = getNextBlock(next2);
|
|
50911
50682
|
}
|
|
50912
50683
|
if (next2) {
|
|
50913
|
-
addClass(next2, ...
|
|
50684
|
+
addClass(next2, ...styles);
|
|
50914
50685
|
}
|
|
50915
50686
|
}
|
|
50916
50687
|
async function requestMindmapFullscreen(editor, block, mindmapTools) {
|
|
@@ -51898,7 +51669,7 @@ ${codeText}
|
|
|
51898
51669
|
html = `<input type="checkbox" disabled="disabled" /> ${html}`;
|
|
51899
51670
|
}
|
|
51900
51671
|
let listTag = "ul";
|
|
51901
|
-
let
|
|
51672
|
+
let styles = "";
|
|
51902
51673
|
if (list2.ordered) {
|
|
51903
51674
|
html = `<li value="${list2.start}">${html}</li>`;
|
|
51904
51675
|
listTag = "ol";
|
|
@@ -51906,18 +51677,18 @@ ${codeText}
|
|
|
51906
51677
|
case 2:
|
|
51907
51678
|
case 5:
|
|
51908
51679
|
case 8:
|
|
51909
|
-
|
|
51680
|
+
styles = "list-style-type: lower-alpha;";
|
|
51910
51681
|
break;
|
|
51911
51682
|
case 3:
|
|
51912
51683
|
case 6:
|
|
51913
|
-
|
|
51684
|
+
styles = "list-style-type: lower-roman;";
|
|
51914
51685
|
break;
|
|
51915
51686
|
}
|
|
51916
51687
|
} else {
|
|
51917
51688
|
html = `<li>${html}</li>`;
|
|
51918
51689
|
}
|
|
51919
51690
|
if (isFirstListItem(editor, blockData, doc2, path)) {
|
|
51920
|
-
html = `<${listTag}${
|
|
51691
|
+
html = `<${listTag}${styles ? ` style="${styles}"` : ""}>${html}`;
|
|
51921
51692
|
}
|
|
51922
51693
|
if (isLastListItem(editor, blockData, doc2, path)) {
|
|
51923
51694
|
html = `${html}</${listTag}>`;
|
|
@@ -52733,7 +52504,7 @@ ${codeText}
|
|
|
52733
52504
|
}
|
|
52734
52505
|
return blockContent;
|
|
52735
52506
|
}
|
|
52736
|
-
const zhCN$
|
|
52507
|
+
const zhCN$t = {
|
|
52737
52508
|
list: {
|
|
52738
52509
|
confirm: "\u786E\u5B9A",
|
|
52739
52510
|
setStart: "\u8BBE\u7F6E\u7F16\u53F7",
|
|
@@ -52753,7 +52524,7 @@ ${codeText}
|
|
|
52753
52524
|
exitFullscreen: "\u9000\u51FA\u5168\u5C4F"
|
|
52754
52525
|
}
|
|
52755
52526
|
};
|
|
52756
|
-
const zhHK$
|
|
52527
|
+
const zhHK$t = {
|
|
52757
52528
|
list: {
|
|
52758
52529
|
confirm: "\u78BA\u5B9A",
|
|
52759
52530
|
setStart: "\u8A2D\u7F6E\u7DE8\u865F",
|
|
@@ -52773,7 +52544,7 @@ ${codeText}
|
|
|
52773
52544
|
exitFullscreen: "\u9000\u51FA\u5168\u5C4F"
|
|
52774
52545
|
}
|
|
52775
52546
|
};
|
|
52776
|
-
const enUS$
|
|
52547
|
+
const enUS$t = {
|
|
52777
52548
|
list: {
|
|
52778
52549
|
confirm: "Confirm",
|
|
52779
52550
|
setStart: "Set number",
|
|
@@ -52793,7 +52564,7 @@ ${codeText}
|
|
|
52793
52564
|
exitFullscreen: "Exit full screen"
|
|
52794
52565
|
}
|
|
52795
52566
|
};
|
|
52796
|
-
const jaJP$
|
|
52567
|
+
const jaJP$t = {
|
|
52797
52568
|
list: {
|
|
52798
52569
|
confirm: "OK",
|
|
52799
52570
|
setStart: "\u756A\u53F7\u3092\u8A2D\u5B9A",
|
|
@@ -52814,10 +52585,10 @@ ${codeText}
|
|
|
52814
52585
|
}
|
|
52815
52586
|
};
|
|
52816
52587
|
i18n$1.mergeLang({
|
|
52817
|
-
"zh-CN": zhCN$
|
|
52818
|
-
"zh-HK": zhHK$
|
|
52819
|
-
"en-US": enUS$
|
|
52820
|
-
"ja-JP": jaJP$
|
|
52588
|
+
"zh-CN": zhCN$t,
|
|
52589
|
+
"zh-HK": zhHK$t,
|
|
52590
|
+
"en-US": enUS$t,
|
|
52591
|
+
"ja-JP": jaJP$t
|
|
52821
52592
|
});
|
|
52822
52593
|
const style$a = "";
|
|
52823
52594
|
const logger$20 = getLogger("list-block:paste-handler");
|
|
@@ -55298,35 +55069,35 @@ $$${mathData.mathjaxText}$$
|
|
|
55298
55069
|
getBlockProperties: getBlockProperties$c
|
|
55299
55070
|
};
|
|
55300
55071
|
const mathjaxStyle = "";
|
|
55301
|
-
const zhCN$
|
|
55072
|
+
const zhCN$s = {
|
|
55302
55073
|
mathjax: {
|
|
55303
55074
|
emptyText: "\u7A7A\u7684\u516C\u5F0F",
|
|
55304
55075
|
abstract: "\u516C\u5F0F"
|
|
55305
55076
|
}
|
|
55306
55077
|
};
|
|
55307
|
-
const zhHK$
|
|
55078
|
+
const zhHK$s = {
|
|
55308
55079
|
mathjax: {
|
|
55309
55080
|
emptyText: "\u7A7A\u7684\u516C\u5F0F",
|
|
55310
55081
|
abstract: "\u516C\u5F0F"
|
|
55311
55082
|
}
|
|
55312
55083
|
};
|
|
55313
|
-
const enUS$
|
|
55084
|
+
const enUS$s = {
|
|
55314
55085
|
mathjax: {
|
|
55315
55086
|
emptyText: "Empty formula",
|
|
55316
55087
|
abstract: "Formula"
|
|
55317
55088
|
}
|
|
55318
55089
|
};
|
|
55319
|
-
const jaJP$
|
|
55090
|
+
const jaJP$s = {
|
|
55320
55091
|
mathjax: {
|
|
55321
55092
|
emptyText: "\u6570\u5F0F\u306A\u3057",
|
|
55322
55093
|
abstract: "\u6570\u5F0F"
|
|
55323
55094
|
}
|
|
55324
55095
|
};
|
|
55325
55096
|
i18n$1.mergeLang({
|
|
55326
|
-
"zh-CN": zhCN$
|
|
55327
|
-
"zh-HK": zhHK$
|
|
55328
|
-
"en-US": enUS$
|
|
55329
|
-
"ja-JP": jaJP$
|
|
55097
|
+
"zh-CN": zhCN$s,
|
|
55098
|
+
"zh-HK": zhHK$s,
|
|
55099
|
+
"en-US": enUS$s,
|
|
55100
|
+
"ja-JP": jaJP$s
|
|
55330
55101
|
});
|
|
55331
55102
|
function convertToMath(editor, containerId, blockIndex, offset) {
|
|
55332
55103
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -61060,7 +60831,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61060
60831
|
}
|
|
61061
60832
|
}
|
|
61062
60833
|
__publicField(StatusBoxCommand, "id", "insert-status");
|
|
61063
|
-
const enUS$
|
|
60834
|
+
const enUS$r = {
|
|
61064
60835
|
status: {
|
|
61065
60836
|
empty: "Set status",
|
|
61066
60837
|
command: {
|
|
@@ -61084,7 +60855,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61084
60855
|
}
|
|
61085
60856
|
}
|
|
61086
60857
|
};
|
|
61087
|
-
const zhCN$
|
|
60858
|
+
const zhCN$r = {
|
|
61088
60859
|
status: {
|
|
61089
60860
|
empty: "\u8BBE\u7F6E\u72B6\u6001",
|
|
61090
60861
|
command: {
|
|
@@ -61108,7 +60879,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61108
60879
|
}
|
|
61109
60880
|
}
|
|
61110
60881
|
};
|
|
61111
|
-
const zhHK$
|
|
60882
|
+
const zhHK$r = {
|
|
61112
60883
|
status: {
|
|
61113
60884
|
empty: "\u8A2D\u7F6E\u72C0\u614B",
|
|
61114
60885
|
command: {
|
|
@@ -61132,7 +60903,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61132
60903
|
}
|
|
61133
60904
|
}
|
|
61134
60905
|
};
|
|
61135
|
-
const jaJP$
|
|
60906
|
+
const jaJP$r = {
|
|
61136
60907
|
status: {
|
|
61137
60908
|
empty: "\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8A2D\u5B9A",
|
|
61138
60909
|
command: {
|
|
@@ -61157,10 +60928,10 @@ $$${mathData.mathjaxText}$$
|
|
|
61157
60928
|
}
|
|
61158
60929
|
};
|
|
61159
60930
|
const langs$2 = {
|
|
61160
|
-
"en-US": enUS$
|
|
61161
|
-
"zh-CN": zhCN$
|
|
61162
|
-
"zh-HK": zhHK$
|
|
61163
|
-
"ja-JP": jaJP$
|
|
60931
|
+
"en-US": enUS$r,
|
|
60932
|
+
"zh-CN": zhCN$r,
|
|
60933
|
+
"zh-HK": zhHK$r,
|
|
60934
|
+
"ja-JP": jaJP$r
|
|
61164
60935
|
};
|
|
61165
60936
|
i18n$1.mergeLang(langs$2);
|
|
61166
60937
|
class EmojiPopup {
|
|
@@ -62211,7 +61982,7 @@ $$${mathData.mathjaxText}$$
|
|
|
62211
61982
|
const TextColorShortcuts = {
|
|
62212
61983
|
"CtrlOrCmd+Alt+KeyH": (editor) => executeShortcut(editor)
|
|
62213
61984
|
};
|
|
62214
|
-
const zhCN$
|
|
61985
|
+
const zhCN$q = {
|
|
62215
61986
|
quickMenu: {
|
|
62216
61987
|
basic: {
|
|
62217
61988
|
heading: {
|
|
@@ -62270,7 +62041,7 @@ $$${mathData.mathjaxText}$$
|
|
|
62270
62041
|
selectBlock: "\u9009\u62E9\u533A\u5757"
|
|
62271
62042
|
}
|
|
62272
62043
|
};
|
|
62273
|
-
const zhHK$
|
|
62044
|
+
const zhHK$q = {
|
|
62274
62045
|
quickMenu: {
|
|
62275
62046
|
basic: {
|
|
62276
62047
|
heading: {
|
|
@@ -62329,7 +62100,7 @@ $$${mathData.mathjaxText}$$
|
|
|
62329
62100
|
selectBlock: "\u9078\u64C7\u5340\u584A"
|
|
62330
62101
|
}
|
|
62331
62102
|
};
|
|
62332
|
-
const enUS$
|
|
62103
|
+
const enUS$q = {
|
|
62333
62104
|
quickMenu: {
|
|
62334
62105
|
basic: {
|
|
62335
62106
|
heading: {
|
|
@@ -62388,7 +62159,7 @@ $$${mathData.mathjaxText}$$
|
|
|
62388
62159
|
selectBlock: "Select Block"
|
|
62389
62160
|
}
|
|
62390
62161
|
};
|
|
62391
|
-
const jaJP$
|
|
62162
|
+
const jaJP$q = {
|
|
62392
62163
|
quickMenu: {
|
|
62393
62164
|
basic: {
|
|
62394
62165
|
heading: {
|
|
@@ -62448,10 +62219,10 @@ $$${mathData.mathjaxText}$$
|
|
|
62448
62219
|
}
|
|
62449
62220
|
};
|
|
62450
62221
|
i18n$1.mergeLang({
|
|
62451
|
-
"zh-CN": zhCN$
|
|
62452
|
-
"zh-HK": zhHK$
|
|
62453
|
-
"en-US": enUS$
|
|
62454
|
-
"ja-JP": jaJP$
|
|
62222
|
+
"zh-CN": zhCN$q,
|
|
62223
|
+
"zh-HK": zhHK$q,
|
|
62224
|
+
"en-US": enUS$q,
|
|
62225
|
+
"ja-JP": jaJP$q
|
|
62455
62226
|
});
|
|
62456
62227
|
class TextStylesFixedProvider extends ProxyProvider {
|
|
62457
62228
|
constructor(editor, afterCommandCallback) {
|
|
@@ -62846,13 +62617,13 @@ $$${mathData.mathjaxText}$$
|
|
|
62846
62617
|
if (!op.attributes) {
|
|
62847
62618
|
return /* @__PURE__ */ new Map();
|
|
62848
62619
|
}
|
|
62849
|
-
const
|
|
62620
|
+
const styles = Object.entries(op.attributes).filter(([key]) => {
|
|
62850
62621
|
if (key.startsWith("style-")) {
|
|
62851
62622
|
return true;
|
|
62852
62623
|
}
|
|
62853
62624
|
return false;
|
|
62854
62625
|
});
|
|
62855
|
-
return new Map(
|
|
62626
|
+
return new Map(styles);
|
|
62856
62627
|
};
|
|
62857
62628
|
if (text2.length === 0) {
|
|
62858
62629
|
return /* @__PURE__ */ new Map();
|
|
@@ -62896,11 +62667,11 @@ $$${mathData.mathjaxText}$$
|
|
|
62896
62667
|
if (getTextLength(text2) === 0) {
|
|
62897
62668
|
return textStyles;
|
|
62898
62669
|
}
|
|
62899
|
-
let
|
|
62900
|
-
|
|
62670
|
+
let styles = getIntersectionStyles(text2);
|
|
62671
|
+
styles = mergeActiveStyle(editor, styles);
|
|
62901
62672
|
function getTextStyle(item) {
|
|
62902
62673
|
const { id, icon, desc, name } = item;
|
|
62903
|
-
const value =
|
|
62674
|
+
const value = styles.get(id);
|
|
62904
62675
|
if (value !== void 0) {
|
|
62905
62676
|
return {
|
|
62906
62677
|
id,
|
|
@@ -63496,7 +63267,6 @@ $$${mathData.mathjaxText}$$
|
|
|
63496
63267
|
GroupItemActions2["QuickReply"] = "quick-reply";
|
|
63497
63268
|
GroupItemActions2["QuickReplyOk"] = "quick-reply-ok";
|
|
63498
63269
|
GroupItemActions2["QuickReplyCancel"] = "quick-reply-cancel";
|
|
63499
|
-
GroupItemActions2["Resolve"] = "resolve";
|
|
63500
63270
|
return GroupItemActions2;
|
|
63501
63271
|
})(GroupItemActions || {});
|
|
63502
63272
|
const GROUP_ITEM_ACTION_MARK = "group-item-action";
|
|
@@ -63544,7 +63314,7 @@ $$${mathData.mathjaxText}$$
|
|
|
63544
63314
|
return attributes.filter((attribute) => attribute.startsWith("comment-")).map((attribute) => attribute.replace("comment-", ""));
|
|
63545
63315
|
}
|
|
63546
63316
|
const logger$1G = getLogger("doc-comments");
|
|
63547
|
-
function addBlockComments
|
|
63317
|
+
function addBlockComments(doc2, block, result, resultSet) {
|
|
63548
63318
|
if (block.comments) {
|
|
63549
63319
|
const blockComments = block.comments;
|
|
63550
63320
|
if (Array.isArray(blockComments)) {
|
|
@@ -63580,7 +63350,7 @@ $$${mathData.mathjaxText}$$
|
|
|
63580
63350
|
children.forEach((childContainerId) => {
|
|
63581
63351
|
const childBlocks = doc2.blocks[childContainerId];
|
|
63582
63352
|
childBlocks.forEach((subBlock) => {
|
|
63583
|
-
addBlockComments
|
|
63353
|
+
addBlockComments(doc2, subBlock, result, resultSet);
|
|
63584
63354
|
});
|
|
63585
63355
|
});
|
|
63586
63356
|
}
|
|
@@ -63588,7 +63358,7 @@ $$${mathData.mathjaxText}$$
|
|
|
63588
63358
|
const result = [];
|
|
63589
63359
|
const resultSet = /* @__PURE__ */ new Set();
|
|
63590
63360
|
doc2.blocks.root.forEach((block) => {
|
|
63591
|
-
addBlockComments
|
|
63361
|
+
addBlockComments(doc2, block, result, resultSet);
|
|
63592
63362
|
});
|
|
63593
63363
|
const resultMap = /* @__PURE__ */ new Map();
|
|
63594
63364
|
result.forEach((commentId, index2) => resultMap.set(commentId, index2));
|
|
@@ -63644,26 +63414,6 @@ $$${mathData.mathjaxText}$$
|
|
|
63644
63414
|
});
|
|
63645
63415
|
return result;
|
|
63646
63416
|
}
|
|
63647
|
-
function getUnresolvedCommentsGroupFromDoc(editor, commentsProvider) {
|
|
63648
|
-
return getCommentsGroupFromDoc(editor, commentsProvider).filter((group) => !group.resolver);
|
|
63649
|
-
}
|
|
63650
|
-
function getResolvedCommentsGroupFromDoc(editor, commentsProvider) {
|
|
63651
|
-
const doc2 = editor.doc.toJSON();
|
|
63652
|
-
const commentsMap = getCommentsFromDoc(doc2);
|
|
63653
|
-
const commentGroup = getCommentsGroup(commentsProvider.getComments());
|
|
63654
|
-
const result = commentGroup.filter((group) => group.resolver).sort((group1, group2) => {
|
|
63655
|
-
var _a, _b, _c, _d;
|
|
63656
|
-
const date1 = (_b = (_a = group1.resolver) == null ? void 0 : _a.date) != null ? _b : 0;
|
|
63657
|
-
const date2 = (_d = (_c = group2.resolver) == null ? void 0 : _c.date) != null ? _d : 0;
|
|
63658
|
-
return date2 - date1;
|
|
63659
|
-
});
|
|
63660
|
-
result.forEach((group) => {
|
|
63661
|
-
if (!commentsMap.has(group.groupId)) {
|
|
63662
|
-
group.removedFromDoc = true;
|
|
63663
|
-
}
|
|
63664
|
-
});
|
|
63665
|
-
return result;
|
|
63666
|
-
}
|
|
63667
63417
|
function flattenCommentGroup(comment) {
|
|
63668
63418
|
const { children, ...raw } = comment;
|
|
63669
63419
|
const comments = [raw];
|
|
@@ -63673,12 +63423,9 @@ $$${mathData.mathjaxText}$$
|
|
|
63673
63423
|
return comments;
|
|
63674
63424
|
}
|
|
63675
63425
|
function getCommentsCountInDoc(editor, commentsProvider) {
|
|
63676
|
-
const
|
|
63677
|
-
const
|
|
63678
|
-
|
|
63679
|
-
const total = unresolved + resolved;
|
|
63680
|
-
logger$1G.debug(`total comments: ${total}, unresolved: ${unresolved}, resolved: ${resolved}`);
|
|
63681
|
-
return total;
|
|
63426
|
+
const commentGroups = getCommentsGroupFromDoc(editor, commentsProvider);
|
|
63427
|
+
const count = commentGroups.length;
|
|
63428
|
+
return count;
|
|
63682
63429
|
}
|
|
63683
63430
|
function getCommentsFromPos(editor, pos) {
|
|
63684
63431
|
const commentIds = [];
|
|
@@ -63723,24 +63470,6 @@ $$${mathData.mathjaxText}$$
|
|
|
63723
63470
|
const commentIds = intersection__default.default(comments1, comments2);
|
|
63724
63471
|
return commentIds;
|
|
63725
63472
|
}
|
|
63726
|
-
function removeUnresolvedComments(commentProvider, commentIds) {
|
|
63727
|
-
return commentIds.filter((commentId) => {
|
|
63728
|
-
const comment = commentProvider.getComment(commentId);
|
|
63729
|
-
if (!comment) {
|
|
63730
|
-
return false;
|
|
63731
|
-
}
|
|
63732
|
-
return !!comment.resolver;
|
|
63733
|
-
});
|
|
63734
|
-
}
|
|
63735
|
-
function removeResolvedComments(commentProvider, commentIds) {
|
|
63736
|
-
return commentIds.filter((commentId) => {
|
|
63737
|
-
const comment = commentProvider.getComment(commentId);
|
|
63738
|
-
if (!comment) {
|
|
63739
|
-
return false;
|
|
63740
|
-
}
|
|
63741
|
-
return !(comment == null ? void 0 : comment.resolver);
|
|
63742
|
-
});
|
|
63743
|
-
}
|
|
63744
63473
|
const logger$1F = getLogger("active-comments");
|
|
63745
63474
|
function inactiveComment(editor, commentId) {
|
|
63746
63475
|
const activeCommentElements = editor.rootContainer.querySelectorAll(`span.comment[comment-${commentId}],[data-type=editor-block].comment[comment-${commentId}]`);
|
|
@@ -63796,11 +63525,6 @@ $$${mathData.mathjaxText}$$
|
|
|
63796
63525
|
}
|
|
63797
63526
|
}
|
|
63798
63527
|
}
|
|
63799
|
-
function getElementsByCommentId(editor, commentId) {
|
|
63800
|
-
const lowerCommentId = commentId.toLocaleLowerCase();
|
|
63801
|
-
const elements = editor.rootContainer.querySelectorAll(`span.comment[comment-${lowerCommentId}],[data-type=editor-block].comment[comment-${lowerCommentId}]`);
|
|
63802
|
-
return Array.from(elements);
|
|
63803
|
-
}
|
|
63804
63528
|
function isImageBlock(block) {
|
|
63805
63529
|
return getBlockType(block) === "embed" && getEmbedType(block) === "image";
|
|
63806
63530
|
}
|
|
@@ -66146,7 +65870,7 @@ ${codeText}
|
|
|
66146
65870
|
};
|
|
66147
65871
|
}
|
|
66148
65872
|
}
|
|
66149
|
-
const zhCN$
|
|
65873
|
+
const zhCN$p = {
|
|
66150
65874
|
code: {
|
|
66151
65875
|
title: "\u4EE3\u7801",
|
|
66152
65876
|
abstract: "\u4EE3\u7801",
|
|
@@ -66158,7 +65882,7 @@ ${codeText}
|
|
|
66158
65882
|
plainText: "Plain Text"
|
|
66159
65883
|
}
|
|
66160
65884
|
};
|
|
66161
|
-
const zhHK$
|
|
65885
|
+
const zhHK$p = {
|
|
66162
65886
|
code: {
|
|
66163
65887
|
title: "\u4EE3\u78BC",
|
|
66164
65888
|
abstract: "\u4EE3\u78BC",
|
|
@@ -66170,7 +65894,7 @@ ${codeText}
|
|
|
66170
65894
|
plainText: "Plain Text"
|
|
66171
65895
|
}
|
|
66172
65896
|
};
|
|
66173
|
-
const enUS$
|
|
65897
|
+
const enUS$p = {
|
|
66174
65898
|
code: {
|
|
66175
65899
|
title: "Code",
|
|
66176
65900
|
abstract: "Code",
|
|
@@ -66182,7 +65906,7 @@ ${codeText}
|
|
|
66182
65906
|
plainText: "Plain Text"
|
|
66183
65907
|
}
|
|
66184
65908
|
};
|
|
66185
|
-
const jaJP$
|
|
65909
|
+
const jaJP$p = {
|
|
66186
65910
|
code: {
|
|
66187
65911
|
title: "\u30B3\u30FC\u30C9",
|
|
66188
65912
|
abstract: "\u30B3\u30FC\u30C9",
|
|
@@ -66195,10 +65919,10 @@ ${codeText}
|
|
|
66195
65919
|
}
|
|
66196
65920
|
};
|
|
66197
65921
|
i18n$1.mergeLang({
|
|
66198
|
-
"zh-CN": zhCN$
|
|
66199
|
-
"zh-HK": zhHK$
|
|
66200
|
-
"en-US": enUS$
|
|
66201
|
-
"ja-JP": jaJP$
|
|
65922
|
+
"zh-CN": zhCN$p,
|
|
65923
|
+
"zh-HK": zhHK$p,
|
|
65924
|
+
"en-US": enUS$p,
|
|
65925
|
+
"ja-JP": jaJP$p
|
|
66202
65926
|
});
|
|
66203
65927
|
function convertToTable(editor, containerId, blockIndex, offset) {
|
|
66204
65928
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -66592,7 +66316,7 @@ ${codeText}
|
|
|
66592
66316
|
return false;
|
|
66593
66317
|
}
|
|
66594
66318
|
}
|
|
66595
|
-
const enUS$
|
|
66319
|
+
const enUS$o = {
|
|
66596
66320
|
placeholder: {
|
|
66597
66321
|
default: "Type / for commands",
|
|
66598
66322
|
heading: "Heading {heading}",
|
|
@@ -66604,7 +66328,7 @@ ${codeText}
|
|
|
66604
66328
|
mobileDefault: "Type to add content"
|
|
66605
66329
|
}
|
|
66606
66330
|
};
|
|
66607
|
-
const zhCN$
|
|
66331
|
+
const zhCN$o = {
|
|
66608
66332
|
placeholder: {
|
|
66609
66333
|
default: "\u8F93\u5165\u300C/\u300D\u5FEB\u901F\u63D2\u5165",
|
|
66610
66334
|
heading: "\u6807\u9898{heading}",
|
|
@@ -66616,7 +66340,7 @@ ${codeText}
|
|
|
66616
66340
|
mobileDefault: "\u8F93\u5165\u4EE5\u6DFB\u52A0\u5185\u5BB9"
|
|
66617
66341
|
}
|
|
66618
66342
|
};
|
|
66619
|
-
const zhHK$
|
|
66343
|
+
const zhHK$o = {
|
|
66620
66344
|
placeholder: {
|
|
66621
66345
|
default: "\u8F38\u5165\u300C/\u300D\u5FEB\u901F\u63D2\u5165",
|
|
66622
66346
|
heading: "\u6A19\u984C{heading}",
|
|
@@ -66628,7 +66352,7 @@ ${codeText}
|
|
|
66628
66352
|
mobileDefault: "\u8F38\u5165\u4EE5\u6DFB\u52A0\u5167\u5BB9"
|
|
66629
66353
|
}
|
|
66630
66354
|
};
|
|
66631
|
-
const jaJP$
|
|
66355
|
+
const jaJP$o = {
|
|
66632
66356
|
placeholder: {
|
|
66633
66357
|
default: "\u300C/\u300D\u3092\u5165\u529B\u3057\u3066\u7D20\u65E9\u304F\u633F\u5165\u3059\u308B",
|
|
66634
66358
|
heading: "\u898B\u51FA\u3057{heading}",
|
|
@@ -66641,10 +66365,10 @@ ${codeText}
|
|
|
66641
66365
|
}
|
|
66642
66366
|
};
|
|
66643
66367
|
const langs$1 = {
|
|
66644
|
-
"en-US": enUS$
|
|
66645
|
-
"zh-CN": zhCN$
|
|
66646
|
-
"zh-HK": zhHK$
|
|
66647
|
-
"ja-JP": jaJP$
|
|
66368
|
+
"en-US": enUS$o,
|
|
66369
|
+
"zh-CN": zhCN$o,
|
|
66370
|
+
"zh-HK": zhHK$o,
|
|
66371
|
+
"ja-JP": jaJP$o
|
|
66648
66372
|
};
|
|
66649
66373
|
i18n$1.mergeLang(langs$1);
|
|
66650
66374
|
function isEmptyTextBlockWithoutCompositionText(editor, block) {
|
|
@@ -67376,7 +67100,7 @@ ${codeText}
|
|
|
67376
67100
|
this.rootButton.destroy();
|
|
67377
67101
|
}
|
|
67378
67102
|
}
|
|
67379
|
-
const zhCN$
|
|
67103
|
+
const zhCN$n = {
|
|
67380
67104
|
blockMenu: {
|
|
67381
67105
|
section: {
|
|
67382
67106
|
basics: "\u57FA\u7840",
|
|
@@ -67400,7 +67124,7 @@ ${codeText}
|
|
|
67400
67124
|
}
|
|
67401
67125
|
}
|
|
67402
67126
|
};
|
|
67403
|
-
const zhHK$
|
|
67127
|
+
const zhHK$n = {
|
|
67404
67128
|
blockMenu: {
|
|
67405
67129
|
section: {
|
|
67406
67130
|
basics: "\u57FA\u790E",
|
|
@@ -67424,7 +67148,7 @@ ${codeText}
|
|
|
67424
67148
|
}
|
|
67425
67149
|
}
|
|
67426
67150
|
};
|
|
67427
|
-
const enUS$
|
|
67151
|
+
const enUS$n = {
|
|
67428
67152
|
blockMenu: {
|
|
67429
67153
|
section: {
|
|
67430
67154
|
basics: "Basic",
|
|
@@ -67448,7 +67172,7 @@ ${codeText}
|
|
|
67448
67172
|
}
|
|
67449
67173
|
}
|
|
67450
67174
|
};
|
|
67451
|
-
const jaJP$
|
|
67175
|
+
const jaJP$n = {
|
|
67452
67176
|
blockMenu: {
|
|
67453
67177
|
section: {
|
|
67454
67178
|
basics: "\u4E00\u822C",
|
|
@@ -67473,10 +67197,10 @@ ${codeText}
|
|
|
67473
67197
|
}
|
|
67474
67198
|
};
|
|
67475
67199
|
i18n$1.mergeLang({
|
|
67476
|
-
"zh-CN": zhCN$
|
|
67477
|
-
"zh-HK": zhHK$
|
|
67478
|
-
"en-US": enUS$
|
|
67479
|
-
"ja-JP": jaJP$
|
|
67200
|
+
"zh-CN": zhCN$n,
|
|
67201
|
+
"zh-HK": zhHK$n,
|
|
67202
|
+
"en-US": enUS$n,
|
|
67203
|
+
"ja-JP": jaJP$n
|
|
67480
67204
|
});
|
|
67481
67205
|
const style$8 = "";
|
|
67482
67206
|
class DragData {
|
|
@@ -68444,7 +68168,7 @@ ${codeText}
|
|
|
68444
68168
|
}
|
|
68445
68169
|
}
|
|
68446
68170
|
}
|
|
68447
|
-
const zhCN$
|
|
68171
|
+
const zhCN$m = {
|
|
68448
68172
|
image: {
|
|
68449
68173
|
title: "\u56FE\u7247",
|
|
68450
68174
|
upload: {
|
|
@@ -68460,7 +68184,7 @@ ${codeText}
|
|
|
68460
68184
|
abstract: "\u56FE\u7247"
|
|
68461
68185
|
}
|
|
68462
68186
|
};
|
|
68463
|
-
const zhHK$
|
|
68187
|
+
const zhHK$m = {
|
|
68464
68188
|
image: {
|
|
68465
68189
|
title: "\u5716\u7247",
|
|
68466
68190
|
upload: {
|
|
@@ -68476,7 +68200,7 @@ ${codeText}
|
|
|
68476
68200
|
abstract: "\u5716\u7247"
|
|
68477
68201
|
}
|
|
68478
68202
|
};
|
|
68479
|
-
const enUS$
|
|
68203
|
+
const enUS$m = {
|
|
68480
68204
|
image: {
|
|
68481
68205
|
title: "Image",
|
|
68482
68206
|
upload: {
|
|
@@ -68492,7 +68216,7 @@ ${codeText}
|
|
|
68492
68216
|
abstract: "Image"
|
|
68493
68217
|
}
|
|
68494
68218
|
};
|
|
68495
|
-
const jaJP$
|
|
68219
|
+
const jaJP$m = {
|
|
68496
68220
|
image: {
|
|
68497
68221
|
title: "\u753B\u50CF",
|
|
68498
68222
|
upload: {
|
|
@@ -68509,10 +68233,10 @@ ${codeText}
|
|
|
68509
68233
|
}
|
|
68510
68234
|
};
|
|
68511
68235
|
i18n$1.mergeLang({
|
|
68512
|
-
"zh-CN": zhCN$
|
|
68513
|
-
"zh-HK": zhHK$
|
|
68514
|
-
"en-US": enUS$
|
|
68515
|
-
"ja-JP": jaJP$
|
|
68236
|
+
"zh-CN": zhCN$m,
|
|
68237
|
+
"zh-HK": zhHK$m,
|
|
68238
|
+
"en-US": enUS$m,
|
|
68239
|
+
"ja-JP": jaJP$m
|
|
68516
68240
|
});
|
|
68517
68241
|
function convertToImage(editor, containerId, blockIndex, offset) {
|
|
68518
68242
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -69605,9 +69329,8 @@ ${codeText}
|
|
|
69605
69329
|
return items;
|
|
69606
69330
|
}
|
|
69607
69331
|
reloadList(data2) {
|
|
69608
|
-
this._items.forEach((item) => item.destroy());
|
|
69609
69332
|
this.container.innerHTML = "";
|
|
69610
|
-
this.
|
|
69333
|
+
this.createList(data2);
|
|
69611
69334
|
}
|
|
69612
69335
|
insertItem(data2) {
|
|
69613
69336
|
const index2 = this.findInsertPos(data2);
|
|
@@ -69680,8 +69403,8 @@ ${codeText}
|
|
|
69680
69403
|
});
|
|
69681
69404
|
}
|
|
69682
69405
|
}
|
|
69683
|
-
const switchUpIcon = '<svg width="
|
|
69684
|
-
const switchDownIcon = '<svg width="
|
|
69406
|
+
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>';
|
|
69407
|
+
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>';
|
|
69685
69408
|
const index$8 = "";
|
|
69686
69409
|
const REPLY_EDITOR_EDITING_CLS = "reply-editor-editing";
|
|
69687
69410
|
const { t: t$3 } = i18n$1;
|
|
@@ -69804,9 +69527,6 @@ ${codeText}
|
|
|
69804
69527
|
__publicField(this, "quickReply");
|
|
69805
69528
|
__publicField(this, "createRoot", () => {
|
|
69806
69529
|
const root2 = createElement("div", ["comment-group-item-root"], null);
|
|
69807
|
-
if (this.comment.resolver) {
|
|
69808
|
-
addClass(root2, "resolved");
|
|
69809
|
-
}
|
|
69810
69530
|
return root2;
|
|
69811
69531
|
});
|
|
69812
69532
|
__publicField(this, "createChildrenList", () => {
|
|
@@ -69863,7 +69583,6 @@ ${codeText}
|
|
|
69863
69583
|
this.mainItem = this.createItem();
|
|
69864
69584
|
this.childrenList = this.createChildrenList();
|
|
69865
69585
|
this.quickReply = this.createQuickReply();
|
|
69866
|
-
this.createFooter();
|
|
69867
69586
|
this.editor.on("readonlyChanged", this.handleReadonlyChanged);
|
|
69868
69587
|
this.resizeObserver = new index$g(this.handleResize);
|
|
69869
69588
|
this.resizeObserver.observe(this.root);
|
|
@@ -69873,49 +69592,9 @@ ${codeText}
|
|
|
69873
69592
|
const count = getCommentItemCountInGroupItem(this.root);
|
|
69874
69593
|
return count;
|
|
69875
69594
|
}
|
|
69876
|
-
createFooter() {
|
|
69877
|
-
if (!this.comment.resolver) {
|
|
69878
|
-
return null;
|
|
69879
|
-
}
|
|
69880
|
-
const footer = createElement("div", ["comment-item-footer"], this.root);
|
|
69881
|
-
const resolved = createElement("span", ["comment-resolved"], footer);
|
|
69882
|
-
const date = new Date(this.comment.modified);
|
|
69883
|
-
const resolver = this.comment.resolver;
|
|
69884
|
-
assert(logger$1h, resolver, "resolver should not be null");
|
|
69885
|
-
const html = i18n$1.t("comment.resolvedBy", { name: resolver.displayName, date: fromNowString(date) });
|
|
69886
|
-
resolved.innerHTML = html;
|
|
69887
|
-
const actions2 = createElement("div", ["comment-actions"], footer);
|
|
69888
|
-
createElement("span", ["comment-date"], actions2, fromNowString(new Date(resolver.date)));
|
|
69889
|
-
if (this.comment.removedFromDoc) {
|
|
69890
|
-
createElement("span", ["removed-tips"], actions2, i18n$1.t("comment.removedFromDoc"));
|
|
69891
|
-
} else {
|
|
69892
|
-
const reopen = createElement("button", ["comment-reopen"], actions2, i18n$1.t("comment.reopen"));
|
|
69893
|
-
reopen.onclick = () => {
|
|
69894
|
-
const editor = this.editor;
|
|
69895
|
-
const doc2 = editor.doc.toJSON();
|
|
69896
|
-
const commentsMap = getCommentsFromDoc(doc2);
|
|
69897
|
-
if (!commentsMap.has(this.comment.groupId)) {
|
|
69898
|
-
showToast(i18n$1.t("comment.commentHasAlreadyRemoved"), {
|
|
69899
|
-
position: {
|
|
69900
|
-
y: 30,
|
|
69901
|
-
x: window.innerWidth / 2
|
|
69902
|
-
},
|
|
69903
|
-
theme: "warn"
|
|
69904
|
-
});
|
|
69905
|
-
return;
|
|
69906
|
-
}
|
|
69907
|
-
this.commentsProvider.localUpdateCommentResolver(this.comment.id, void 0);
|
|
69908
|
-
};
|
|
69909
|
-
}
|
|
69910
|
-
return footer;
|
|
69911
|
-
}
|
|
69912
69595
|
createQuickReply() {
|
|
69913
69596
|
const { editor, commentsProvider, comment } = this;
|
|
69914
69597
|
const commentQuickReply = new CommentQuickReply(editor, commentsProvider, comment, this);
|
|
69915
|
-
const commentOptions = this.editor.getComponentOptions("comment");
|
|
69916
|
-
if (commentOptions == null ? void 0 : commentOptions.disableReply) {
|
|
69917
|
-
commentQuickReply.root.classList.add("hidden");
|
|
69918
|
-
}
|
|
69919
69598
|
this.root.append(commentQuickReply.root);
|
|
69920
69599
|
return commentQuickReply;
|
|
69921
69600
|
}
|
|
@@ -69927,15 +69606,8 @@ ${codeText}
|
|
|
69927
69606
|
const switchContainer = createElement("span", ["item-head-switch"], head);
|
|
69928
69607
|
const switchUp = createTextButton(switchContainer, GroupItemActions.SwitchUp, "up", switchUpIcon);
|
|
69929
69608
|
const switchDown = createTextButton(switchContainer, GroupItemActions.SwitchDown, "down", switchDownIcon);
|
|
69930
|
-
const resolve = createTextButton(switchContainer, GroupItemActions.Resolve, "resolve", CircleCheckMarkIcon);
|
|
69931
69609
|
addGroupActionToElement(switchUp, GroupItemActions.SwitchUp);
|
|
69932
69610
|
addGroupActionToElement(switchDown, GroupItemActions.SwitchDown);
|
|
69933
|
-
addGroupActionToElement(resolve, GroupItemActions.Resolve);
|
|
69934
|
-
resolve.setAttribute(`data-editor-tooltip-${this.editor.clientId}`, i18n$1.t("comment.resolveComment"));
|
|
69935
|
-
addClass(resolve, "disable-active");
|
|
69936
|
-
if (comment.resolver) {
|
|
69937
|
-
addClass(resolve, "resolved");
|
|
69938
|
-
}
|
|
69939
69611
|
return head;
|
|
69940
69612
|
}
|
|
69941
69613
|
createItem() {
|
|
@@ -69975,7 +69647,6 @@ ${codeText}
|
|
|
69975
69647
|
handleUpdateMainComment(comment) {
|
|
69976
69648
|
assert(logger$1h, comment.id === this.mainItem.comment.id, "invalid comment");
|
|
69977
69649
|
this.mainItem.reloadDoc();
|
|
69978
|
-
this.setCreatingComment(false);
|
|
69979
69650
|
}
|
|
69980
69651
|
deleteMainComment(commentId) {
|
|
69981
69652
|
assert(logger$1h, commentId === this.mainItem.comment.id, "invalid comment");
|
|
@@ -69984,18 +69655,6 @@ ${codeText}
|
|
|
69984
69655
|
edit() {
|
|
69985
69656
|
this.mainItem.edit();
|
|
69986
69657
|
}
|
|
69987
|
-
setCreatingComment(creating) {
|
|
69988
|
-
const resolveButton = this.header.querySelector('.editor-text-button[group-item-action="resolve"]');
|
|
69989
|
-
if (!resolveButton) {
|
|
69990
|
-
return;
|
|
69991
|
-
}
|
|
69992
|
-
resolveButton.disabled = creating;
|
|
69993
|
-
if (creating) {
|
|
69994
|
-
resolveButton.classList.add("disabled");
|
|
69995
|
-
} else {
|
|
69996
|
-
resolveButton.classList.remove("disabled");
|
|
69997
|
-
}
|
|
69998
|
-
}
|
|
69999
69658
|
destroy() {
|
|
70000
69659
|
this.quickReply.destroy();
|
|
70001
69660
|
this.mainItem.destroy();
|
|
@@ -70181,21 +69840,7 @@ ${codeText}
|
|
|
70181
69840
|
this.commentsProvider.localDeleteComment(comment.id);
|
|
70182
69841
|
quickReply.show();
|
|
70183
69842
|
});
|
|
70184
|
-
__publicField(this, "
|
|
70185
|
-
var _a;
|
|
70186
|
-
const { commentsProvider } = this;
|
|
70187
|
-
let comment = commentsProvider.getComment(groupItem.comment.id);
|
|
70188
|
-
if (!comment) {
|
|
70189
|
-
comment = (_a = groupItem.childrenList.items[0]) == null ? void 0 : _a.comment;
|
|
70190
|
-
}
|
|
70191
|
-
const user = this.groupList.editor.doc.getUser();
|
|
70192
|
-
commentsProvider.localUpdateCommentResolver(comment.id, {
|
|
70193
|
-
userId: user.userId,
|
|
70194
|
-
displayName: user.displayName,
|
|
70195
|
-
date: Date.now()
|
|
70196
|
-
});
|
|
70197
|
-
});
|
|
70198
|
-
__publicField(this, "execute", (element, groupItem, commentId, itemIndex, event) => {
|
|
69843
|
+
__publicField(this, "execute", (element, groupItem, commentId, itemIndex) => {
|
|
70199
69844
|
const actionElement = getClosestGroupItemActionElement(element);
|
|
70200
69845
|
if (!actionElement)
|
|
70201
69846
|
return;
|
|
@@ -70234,11 +69879,6 @@ ${codeText}
|
|
|
70234
69879
|
case GroupItemActions.QuickReplyCancel:
|
|
70235
69880
|
this.handleQuickReplyCancel(groupItem);
|
|
70236
69881
|
break;
|
|
70237
|
-
case GroupItemActions.Resolve:
|
|
70238
|
-
event.preventDefault();
|
|
70239
|
-
event.stopPropagation();
|
|
70240
|
-
this.handleResolve(groupItem);
|
|
70241
|
-
break;
|
|
70242
69882
|
default:
|
|
70243
69883
|
const exhaustiveCheck = actionId;
|
|
70244
69884
|
logger$1f.debug(`not implement handler for ${exhaustiveCheck}`);
|
|
@@ -70252,8 +69892,8 @@ ${codeText}
|
|
|
70252
69892
|
}
|
|
70253
69893
|
const logger$1e = getLogger("comment-group-list");
|
|
70254
69894
|
class CommentGroupList extends ListBase {
|
|
70255
|
-
constructor(editor, commentsProvider, parent
|
|
70256
|
-
super(editor, commentsProvider, parent,
|
|
69895
|
+
constructor(editor, commentsProvider, parent) {
|
|
69896
|
+
super(editor, commentsProvider, parent, getCommentsGroupFromDoc(editor, commentsProvider), {});
|
|
70257
69897
|
__publicField(this, "groupItemHandlers");
|
|
70258
69898
|
__publicField(this, "dispatchScroll", debounce__default.default(() => {
|
|
70259
69899
|
this.editor.scrollContainer.dispatchEvent(new Event("scroll"));
|
|
@@ -70291,9 +69931,7 @@ ${codeText}
|
|
|
70291
69931
|
const commentId = getClosestCommentItemId(event.target);
|
|
70292
69932
|
const index2 = this.items.findIndex((item) => item.root === itemRoot);
|
|
70293
69933
|
if (index2 !== -1) {
|
|
70294
|
-
|
|
70295
|
-
const enableActive = !disableActive;
|
|
70296
|
-
if (this.activeIndex !== index2 && enableActive) {
|
|
69934
|
+
if (this.activeIndex !== index2) {
|
|
70297
69935
|
this.setActiveItem(index2);
|
|
70298
69936
|
}
|
|
70299
69937
|
const { groupItemHandlers } = this;
|
|
@@ -70301,8 +69939,7 @@ ${codeText}
|
|
|
70301
69939
|
event.target,
|
|
70302
69940
|
this.items[index2],
|
|
70303
69941
|
commentId,
|
|
70304
|
-
index2
|
|
70305
|
-
event
|
|
69942
|
+
index2
|
|
70306
69943
|
);
|
|
70307
69944
|
}
|
|
70308
69945
|
});
|
|
@@ -70343,10 +69980,7 @@ ${codeText}
|
|
|
70343
69980
|
__publicField(this, "handleSelectionChanged", () => {
|
|
70344
69981
|
setTimeout(() => {
|
|
70345
69982
|
var _a;
|
|
70346
|
-
|
|
70347
|
-
return;
|
|
70348
|
-
}
|
|
70349
|
-
const commentIds = this.type === "current" ? removeResolvedComments(this.commentsProvider, getCommentsFromSelection(this.editor)) : removeUnresolvedComments(this.commentsProvider, getCommentsFromSelection(this.editor));
|
|
69983
|
+
const commentIds = getCommentsFromSelection(this.editor);
|
|
70350
69984
|
if (commentIds.length > 0) {
|
|
70351
69985
|
if (((_a = this.activeItem) == null ? void 0 : _a.comment.id) && commentIds.includes(this.activeItem.comment.id)) {
|
|
70352
69986
|
return;
|
|
@@ -70387,9 +70021,7 @@ ${codeText}
|
|
|
70387
70021
|
const top = Number.parseFloat(firstItem.style.top);
|
|
70388
70022
|
const targetTop = Number.parseFloat(firstItem.getAttribute("data-target-top") || "0");
|
|
70389
70023
|
if (!Number.isNaN(top) && !Number.isNaN(targetTop) && top < targetTop) {
|
|
70390
|
-
|
|
70391
|
-
arrangeItems(this.editor, this.items, null, Math.min(top + (0 - event.deltaY) * 3, targetTop));
|
|
70392
|
-
}
|
|
70024
|
+
arrangeItems(this.editor, this.items, null, Math.min(top + (0 - event.deltaY) * 3, targetTop));
|
|
70393
70025
|
}
|
|
70394
70026
|
});
|
|
70395
70027
|
__publicField(this, "updateGroupItemSwitch", () => {
|
|
@@ -70398,7 +70030,7 @@ ${codeText}
|
|
|
70398
70030
|
activeItem.updateSwitchButton();
|
|
70399
70031
|
});
|
|
70400
70032
|
__publicField(this, "updateComments", debounce__default.default(() => {
|
|
70401
|
-
const commentsGroup =
|
|
70033
|
+
const commentsGroup = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
|
|
70402
70034
|
let hasBeenChanged = false;
|
|
70403
70035
|
for (let i = 0; i < commentsGroup.length; i++) {
|
|
70404
70036
|
const comment = commentsGroup[i];
|
|
@@ -70421,8 +70053,6 @@ ${codeText}
|
|
|
70421
70053
|
this.emit("commentCountChanged");
|
|
70422
70054
|
}
|
|
70423
70055
|
}, 100));
|
|
70424
|
-
this.editor = editor;
|
|
70425
|
-
this.type = type;
|
|
70426
70056
|
this.updateItemsLayout();
|
|
70427
70057
|
this.bindEvents();
|
|
70428
70058
|
this.editor.addListener("selectionChanged", this.handleSelectionChanged);
|
|
@@ -70443,9 +70073,7 @@ ${codeText}
|
|
|
70443
70073
|
document.removeEventListener("click", this.handleDocumentClick);
|
|
70444
70074
|
}
|
|
70445
70075
|
updateItemsLayout(dispatchScroll = true) {
|
|
70446
|
-
|
|
70447
|
-
arrangeItems(this.editor, this.items, this.activeItem);
|
|
70448
|
-
}
|
|
70076
|
+
arrangeItems(this.editor, this.items, this.activeItem);
|
|
70449
70077
|
if (dispatchScroll) {
|
|
70450
70078
|
this.dispatchScroll();
|
|
70451
70079
|
}
|
|
@@ -70469,7 +70097,7 @@ ${codeText}
|
|
|
70469
70097
|
return item;
|
|
70470
70098
|
}
|
|
70471
70099
|
findInsertPos(data2) {
|
|
70472
|
-
const commentsMap =
|
|
70100
|
+
const commentsMap = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
|
|
70473
70101
|
const index2 = commentsMap.findIndex((group) => group.id === data2.id);
|
|
70474
70102
|
if (index2 === -1) {
|
|
70475
70103
|
return -1;
|
|
@@ -70569,7 +70197,6 @@ ${codeText}
|
|
|
70569
70197
|
newItem.quickReply.hide();
|
|
70570
70198
|
setTimeout(() => {
|
|
70571
70199
|
newItem.edit();
|
|
70572
|
-
newItem.setCreatingComment(true);
|
|
70573
70200
|
}, 300);
|
|
70574
70201
|
}
|
|
70575
70202
|
}
|
|
@@ -70594,18 +70221,6 @@ ${codeText}
|
|
|
70594
70221
|
}
|
|
70595
70222
|
}
|
|
70596
70223
|
}
|
|
70597
|
-
handleResolveComment(commentId) {
|
|
70598
|
-
const item = this.findItem(commentId);
|
|
70599
|
-
if (item) {
|
|
70600
|
-
this.deleteItem(item.comment.id);
|
|
70601
|
-
}
|
|
70602
|
-
}
|
|
70603
|
-
removeGroupItem(comment) {
|
|
70604
|
-
const item = this.findItem(comment.id) || this.findItem(comment.groupId);
|
|
70605
|
-
if (item) {
|
|
70606
|
-
this.deleteItem(item.comment.id);
|
|
70607
|
-
}
|
|
70608
|
-
}
|
|
70609
70224
|
handleUpdateComment(comment) {
|
|
70610
70225
|
const group = this.findItemAsGroupId(comment.groupId);
|
|
70611
70226
|
if (group && group.comment.id !== comment.id) {
|
|
@@ -70617,236 +70232,6 @@ ${codeText}
|
|
|
70617
70232
|
item.handleUpdateMainComment(comment);
|
|
70618
70233
|
}
|
|
70619
70234
|
}
|
|
70620
|
-
changeType(type) {
|
|
70621
|
-
this.type = type;
|
|
70622
|
-
const comments = this.type === "current" ? getUnresolvedCommentsGroupFromDoc(this.editor, this.commentsProvider) : getResolvedCommentsGroupFromDoc(this.editor, this.commentsProvider);
|
|
70623
|
-
this.reloadList(comments);
|
|
70624
|
-
if (this.type === "current") {
|
|
70625
|
-
setTimeout(() => {
|
|
70626
|
-
arrangeItems(this.editor, this.items, null);
|
|
70627
|
-
});
|
|
70628
|
-
}
|
|
70629
|
-
}
|
|
70630
|
-
reloadList(data2) {
|
|
70631
|
-
super.reloadList(data2);
|
|
70632
|
-
this._items.forEach((item) => item.addListener("resize", this.handleItemResize));
|
|
70633
|
-
}
|
|
70634
|
-
}
|
|
70635
|
-
function addBlockComments(doc2, block, resultMap) {
|
|
70636
|
-
if (block.comments) {
|
|
70637
|
-
const blockComments = block.comments;
|
|
70638
|
-
if (Array.isArray(blockComments)) {
|
|
70639
|
-
blockComments.forEach((commentId) => {
|
|
70640
|
-
const commentIds = resultMap.get(block.id);
|
|
70641
|
-
if (commentIds) {
|
|
70642
|
-
commentIds.add(commentId);
|
|
70643
|
-
} else {
|
|
70644
|
-
resultMap.set(block.id, /* @__PURE__ */ new Set([commentId]));
|
|
70645
|
-
}
|
|
70646
|
-
});
|
|
70647
|
-
}
|
|
70648
|
-
}
|
|
70649
|
-
if (block.text) {
|
|
70650
|
-
const text2 = block.text;
|
|
70651
|
-
text2.forEach((op) => {
|
|
70652
|
-
if (op.attributes) {
|
|
70653
|
-
const prefix = "comment-";
|
|
70654
|
-
Object.entries(op.attributes).forEach(([key, value]) => {
|
|
70655
|
-
if (key.startsWith(prefix)) {
|
|
70656
|
-
const commentId = value;
|
|
70657
|
-
const commentIds = resultMap.get(block.id);
|
|
70658
|
-
if (commentIds) {
|
|
70659
|
-
commentIds.add(commentId);
|
|
70660
|
-
} else {
|
|
70661
|
-
resultMap.set(block.id, /* @__PURE__ */ new Set([commentId]));
|
|
70662
|
-
}
|
|
70663
|
-
}
|
|
70664
|
-
});
|
|
70665
|
-
}
|
|
70666
|
-
});
|
|
70667
|
-
}
|
|
70668
|
-
const children = block.children;
|
|
70669
|
-
if (!children) {
|
|
70670
|
-
return;
|
|
70671
|
-
}
|
|
70672
|
-
children.forEach((childContainerId) => {
|
|
70673
|
-
const childBlocks = doc2.blocks[childContainerId];
|
|
70674
|
-
childBlocks.forEach((subBlock) => {
|
|
70675
|
-
addBlockComments(doc2, subBlock, resultMap);
|
|
70676
|
-
});
|
|
70677
|
-
});
|
|
70678
|
-
}
|
|
70679
|
-
function getBlockCommentsFromDoc(doc2) {
|
|
70680
|
-
const resultMap = /* @__PURE__ */ new Map();
|
|
70681
|
-
doc2.blocks.root.forEach((block) => {
|
|
70682
|
-
addBlockComments(doc2, block, resultMap);
|
|
70683
|
-
});
|
|
70684
|
-
return resultMap;
|
|
70685
|
-
}
|
|
70686
|
-
function getBlocksByCommentId(doc2, commentId) {
|
|
70687
|
-
const result = [];
|
|
70688
|
-
const resultMap = getBlockCommentsFromDoc(doc2);
|
|
70689
|
-
resultMap.forEach((commentIds, blockId) => {
|
|
70690
|
-
if (commentIds.has(commentId)) {
|
|
70691
|
-
result.push(blockId);
|
|
70692
|
-
}
|
|
70693
|
-
});
|
|
70694
|
-
return result;
|
|
70695
|
-
}
|
|
70696
|
-
class OnesEditorCommentsRender {
|
|
70697
|
-
constructor(type = "current") {
|
|
70698
|
-
__publicField(this, "updateUnknownCommentsDelayed", debounce__default.default((editor) => {
|
|
70699
|
-
const comments = this.getComments(editor);
|
|
70700
|
-
const invisibleComments = Object.values(comments).filter((comment) => {
|
|
70701
|
-
const ret = this.type === "current" ? !!comment.resolver : !comment.resolver;
|
|
70702
|
-
return ret;
|
|
70703
|
-
});
|
|
70704
|
-
const root2 = editor.rootContainer;
|
|
70705
|
-
const effectedElements = /* @__PURE__ */ new Set();
|
|
70706
|
-
invisibleComments.forEach((comment) => {
|
|
70707
|
-
const key = `comment-${comment.groupId.toLocaleLowerCase()}`;
|
|
70708
|
-
const elements = root2.querySelectorAll(`[${key}]`);
|
|
70709
|
-
elements.forEach((elem) => {
|
|
70710
|
-
elem.removeAttribute(key);
|
|
70711
|
-
effectedElements.add(elem);
|
|
70712
|
-
});
|
|
70713
|
-
});
|
|
70714
|
-
effectedElements.forEach((elem) => {
|
|
70715
|
-
const commentAttributes = Array.from(elem.attributes).filter((a) => a.name.startsWith("comment-"));
|
|
70716
|
-
if (commentAttributes.length === 0) {
|
|
70717
|
-
elem.classList.remove("comment");
|
|
70718
|
-
}
|
|
70719
|
-
});
|
|
70720
|
-
}));
|
|
70721
|
-
this.type = type;
|
|
70722
|
-
}
|
|
70723
|
-
renderText(editor, path, attributes) {
|
|
70724
|
-
const classes = [];
|
|
70725
|
-
const textAttributes = {};
|
|
70726
|
-
Object.entries(attributes).forEach(([key, value]) => {
|
|
70727
|
-
if (key.startsWith("comment-")) {
|
|
70728
|
-
this.renderCommentElement(editor, key, value, classes, textAttributes);
|
|
70729
|
-
}
|
|
70730
|
-
});
|
|
70731
|
-
return { classes, attributes: textAttributes };
|
|
70732
|
-
}
|
|
70733
|
-
renderBox(editor, path, attributes) {
|
|
70734
|
-
const classes = [];
|
|
70735
|
-
const textAttributes = {};
|
|
70736
|
-
Object.entries(attributes).forEach(([key, value]) => {
|
|
70737
|
-
if (key.startsWith("comment-")) {
|
|
70738
|
-
this.renderCommentElement(editor, key, value, classes, textAttributes);
|
|
70739
|
-
}
|
|
70740
|
-
});
|
|
70741
|
-
return { classes, attributes: textAttributes };
|
|
70742
|
-
}
|
|
70743
|
-
renderBlock(editor, path, blockData) {
|
|
70744
|
-
const comments = blockData.comments;
|
|
70745
|
-
if (!comments || comments.length === 0) {
|
|
70746
|
-
return {};
|
|
70747
|
-
}
|
|
70748
|
-
const classes = [];
|
|
70749
|
-
const attributes = {};
|
|
70750
|
-
comments.forEach((commentId) => {
|
|
70751
|
-
const key = `comment-${commentId.toLocaleLowerCase()}`;
|
|
70752
|
-
this.renderCommentElement(editor, key, commentId, classes, attributes);
|
|
70753
|
-
});
|
|
70754
|
-
return {
|
|
70755
|
-
classes,
|
|
70756
|
-
attributes
|
|
70757
|
-
};
|
|
70758
|
-
}
|
|
70759
|
-
updateBlock(editor, path, blockElement, blockData) {
|
|
70760
|
-
const comments = blockData.comments;
|
|
70761
|
-
removeClass(blockElement, "comment");
|
|
70762
|
-
Array.from(blockElement.attributes).forEach((a) => {
|
|
70763
|
-
if (a.name.startsWith("comment-")) {
|
|
70764
|
-
blockElement.removeAttribute(a.name);
|
|
70765
|
-
}
|
|
70766
|
-
});
|
|
70767
|
-
if (!comments || comments.length === 0) {
|
|
70768
|
-
return;
|
|
70769
|
-
}
|
|
70770
|
-
if (this.type === "resolved") {
|
|
70771
|
-
return;
|
|
70772
|
-
}
|
|
70773
|
-
addClass(blockElement, "comment");
|
|
70774
|
-
const classList = [];
|
|
70775
|
-
const attributes = {};
|
|
70776
|
-
comments.forEach((commentId) => {
|
|
70777
|
-
const key = `comment-${commentId.toLocaleLowerCase()}`;
|
|
70778
|
-
this.renderCommentElement(editor, key, commentId, classList, attributes);
|
|
70779
|
-
});
|
|
70780
|
-
Object.entries(attributes).forEach(([key, value]) => {
|
|
70781
|
-
blockElement.setAttribute(key, value);
|
|
70782
|
-
});
|
|
70783
|
-
if (classList.length > 0) {
|
|
70784
|
-
addClass(blockElement, ...classList);
|
|
70785
|
-
}
|
|
70786
|
-
}
|
|
70787
|
-
getCommentStatus(editor, commentId) {
|
|
70788
|
-
const comments = editor.findCustom("editor-comments");
|
|
70789
|
-
if (!comments) {
|
|
70790
|
-
return "unknown";
|
|
70791
|
-
}
|
|
70792
|
-
const commentsProvider = comments.commentProvider;
|
|
70793
|
-
const comment = commentsProvider.getComment(commentId);
|
|
70794
|
-
if (!comment) {
|
|
70795
|
-
return "unknown";
|
|
70796
|
-
}
|
|
70797
|
-
if (comment.resolver) {
|
|
70798
|
-
return "resolved";
|
|
70799
|
-
}
|
|
70800
|
-
return "unresolved";
|
|
70801
|
-
}
|
|
70802
|
-
renderCommentElement(editor, key, commentId, classes, textAttributes) {
|
|
70803
|
-
const status = this.getCommentStatus(editor, commentId);
|
|
70804
|
-
if (this.type === "current") {
|
|
70805
|
-
if (status === "resolved") {
|
|
70806
|
-
return;
|
|
70807
|
-
}
|
|
70808
|
-
} else {
|
|
70809
|
-
return;
|
|
70810
|
-
}
|
|
70811
|
-
classes.push("comment");
|
|
70812
|
-
textAttributes[key] = commentId;
|
|
70813
|
-
if (status === "unknown") {
|
|
70814
|
-
this.updateUnknownCommentsDelayed(editor);
|
|
70815
|
-
}
|
|
70816
|
-
}
|
|
70817
|
-
getComments(editor) {
|
|
70818
|
-
const editorComments = editor.findCustom("editor-comments");
|
|
70819
|
-
if (!editorComments) {
|
|
70820
|
-
return [];
|
|
70821
|
-
}
|
|
70822
|
-
const commentProvider = editorComments.commentProvider;
|
|
70823
|
-
return commentProvider.getComments();
|
|
70824
|
-
}
|
|
70825
|
-
changeType(editor, type) {
|
|
70826
|
-
this.type = type;
|
|
70827
|
-
const elements = editor.rootContainer.querySelectorAll(".comment");
|
|
70828
|
-
elements.forEach((elem) => {
|
|
70829
|
-
elem.classList.remove("comment");
|
|
70830
|
-
Array.from(elem.attributes).forEach((a) => {
|
|
70831
|
-
if (a.name.startsWith("comment-")) {
|
|
70832
|
-
elem.removeAttribute(a.name);
|
|
70833
|
-
}
|
|
70834
|
-
});
|
|
70835
|
-
});
|
|
70836
|
-
const comments = this.getComments(editor);
|
|
70837
|
-
const resolvedCommentsId = new Set(Object.values(comments).filter((comment) => !!comment.resolver).map((comment) => comment.groupId));
|
|
70838
|
-
const unresolvedCommentsId = new Set(Object.values(comments).filter((comment) => !resolvedCommentsId.has(comment.groupId)).map((comment) => comment.groupId));
|
|
70839
|
-
const visibleCommentsId = type === "current" ? unresolvedCommentsId : resolvedCommentsId;
|
|
70840
|
-
const commentsFromDoc = getBlockCommentsFromDoc(editor.doc.toJSON());
|
|
70841
|
-
commentsFromDoc.forEach((commentIds, blockId) => {
|
|
70842
|
-
if (Array.from(commentIds).some((c) => visibleCommentsId.has(c))) {
|
|
70843
|
-
const block = editor.findBlockById(blockId);
|
|
70844
|
-
if (block) {
|
|
70845
|
-
editor.reloadBlock(block);
|
|
70846
|
-
}
|
|
70847
|
-
}
|
|
70848
|
-
});
|
|
70849
|
-
}
|
|
70850
70235
|
}
|
|
70851
70236
|
const COMMENT_MINI_CLS = "comment-mini";
|
|
70852
70237
|
getLogger("comment-list");
|
|
@@ -70856,46 +70241,6 @@ ${codeText}
|
|
|
70856
70241
|
__publicField(this, "root");
|
|
70857
70242
|
__publicField(this, "groupsContainer");
|
|
70858
70243
|
__publicField(this, "list");
|
|
70859
|
-
__publicField(this, "listType", "current");
|
|
70860
|
-
__publicField(this, "switcherItem", {
|
|
70861
|
-
id: "switch-comment",
|
|
70862
|
-
name: i18n$1.t("comment.currentComment"),
|
|
70863
|
-
dropdown: true,
|
|
70864
|
-
manualShowChildren: true,
|
|
70865
|
-
childrenPlacement: "bottom-start",
|
|
70866
|
-
children: [{
|
|
70867
|
-
id: "current-comment",
|
|
70868
|
-
name: i18n$1.t("comment.currentComment"),
|
|
70869
|
-
states: ["checked"]
|
|
70870
|
-
}, {
|
|
70871
|
-
id: "resolved-comment",
|
|
70872
|
-
name: i18n$1.t("comment.resolvedComment")
|
|
70873
|
-
}]
|
|
70874
|
-
});
|
|
70875
|
-
__publicField(this, "switcherBar");
|
|
70876
|
-
__publicField(this, "noCommentTip", null);
|
|
70877
|
-
__publicField(this, "handleSwitchType", (bar2, item) => {
|
|
70878
|
-
var _a, _b;
|
|
70879
|
-
if (item.id === "current-comment") {
|
|
70880
|
-
this.listType = "current";
|
|
70881
|
-
} else {
|
|
70882
|
-
this.listType = "resolved";
|
|
70883
|
-
}
|
|
70884
|
-
this.editor.rootContainer.setAttribute("comment-list-type", this.listType);
|
|
70885
|
-
this.root.setAttribute("list-type", this.listType);
|
|
70886
|
-
this.switcherItem.name = this.listType === "current" ? i18n$1.t("comment.currentComment") : i18n$1.t("comment.resolvedComment");
|
|
70887
|
-
const children = this.switcherItem.children;
|
|
70888
|
-
children[0].states = this.listType === "current" ? ["checked"] : [];
|
|
70889
|
-
children[1].states = this.listType === "resolved" ? ["checked"] : [];
|
|
70890
|
-
this.switcherBar.updateItems([this.switcherItem]);
|
|
70891
|
-
this.list.changeType(this.listType);
|
|
70892
|
-
const renderer = this.editor.editorBlockRenders.getRenderers().find((r) => r instanceof OnesEditorCommentsRender);
|
|
70893
|
-
if (renderer) {
|
|
70894
|
-
renderer.changeType(this.editor, this.listType);
|
|
70895
|
-
}
|
|
70896
|
-
this.updateCommentCountTip();
|
|
70897
|
-
(_b = (_a = this.commentOptions) == null ? void 0 : _a.onCommentListTypeChange) == null ? void 0 : _b.call(_a, this.editor, this.listType);
|
|
70898
|
-
});
|
|
70899
70244
|
__publicField(this, "handleSelectionOnComment", () => {
|
|
70900
70245
|
this.emit("onSelectComment");
|
|
70901
70246
|
});
|
|
@@ -70903,12 +70248,8 @@ ${codeText}
|
|
|
70903
70248
|
var _a, _b;
|
|
70904
70249
|
const count = getCommentsCountInDoc(this.editor, this.commentsProvider);
|
|
70905
70250
|
(_b = (_a = this.commentOptions) == null ? void 0 : _a.onCommentCountChange) == null ? void 0 : _b.call(_a, count);
|
|
70906
|
-
this.updateCommentCountTip();
|
|
70907
70251
|
});
|
|
70908
70252
|
__publicField(this, "handleActiveItemChanged", (index2, direction) => {
|
|
70909
|
-
if (this.listType === "resolved") {
|
|
70910
|
-
return;
|
|
70911
|
-
}
|
|
70912
70253
|
setTimeout(() => {
|
|
70913
70254
|
var _a, _b;
|
|
70914
70255
|
const item = this.list.activeItem;
|
|
@@ -70925,19 +70266,13 @@ ${codeText}
|
|
|
70925
70266
|
this.editor = editor;
|
|
70926
70267
|
this.commentsProvider = commentsProvider;
|
|
70927
70268
|
this.root = createElement("div", ["editor-web-comment-root"], null);
|
|
70928
|
-
this.root.setAttribute("list-type", this.listType);
|
|
70929
70269
|
this.groupsContainer = createElement("div", ["comment-groups-container"], this.root);
|
|
70930
70270
|
this.list = this.createList();
|
|
70931
|
-
this.switcherBar = this.createSwitcher();
|
|
70932
70271
|
this.commentsProvider.addListener(this);
|
|
70933
70272
|
this.list.addListener("activeItemChanged", this.handleActiveItemChanged);
|
|
70934
70273
|
this.list.addListener("itemLayoutUpdated", this.handleItemLayoutUpdated);
|
|
70935
70274
|
this.list.addListener("selectionOnComment", this.handleSelectionOnComment);
|
|
70936
70275
|
this.list.addListener("commentCountChanged", this.updateCommentCount);
|
|
70937
|
-
if (!this.editor.options.enableResolveComments) {
|
|
70938
|
-
this.root.classList.add("disable-resolve");
|
|
70939
|
-
}
|
|
70940
|
-
this.editor.rootContainer.setAttribute("comment-list-type", this.listType);
|
|
70941
70276
|
this.updateCommentCount();
|
|
70942
70277
|
}
|
|
70943
70278
|
get commentOptions() {
|
|
@@ -70945,13 +70280,10 @@ ${codeText}
|
|
|
70945
70280
|
return commentOptions;
|
|
70946
70281
|
}
|
|
70947
70282
|
destroy() {
|
|
70948
|
-
var _a;
|
|
70949
70283
|
this.list.removeAllListeners();
|
|
70950
70284
|
this.commentsProvider.removeListener(this);
|
|
70951
70285
|
this.list.destroy();
|
|
70952
70286
|
this.root.remove();
|
|
70953
|
-
this.switcherBar.destroy();
|
|
70954
|
-
(_a = this.noCommentTip) == null ? void 0 : _a.remove();
|
|
70955
70287
|
}
|
|
70956
70288
|
onCreateComment(commentId, local) {
|
|
70957
70289
|
const comment = this.commentsProvider.getComment(commentId);
|
|
@@ -70966,73 +70298,8 @@ ${codeText}
|
|
|
70966
70298
|
const comment = this.commentsProvider.getComment(commentId);
|
|
70967
70299
|
this.list.handleUpdateComment(comment);
|
|
70968
70300
|
}
|
|
70969
|
-
onUpdateCommentResolver(commentId, local) {
|
|
70970
|
-
const comment = this.commentsProvider.getComment(commentId);
|
|
70971
|
-
if (!comment) {
|
|
70972
|
-
return;
|
|
70973
|
-
}
|
|
70974
|
-
let type = "add";
|
|
70975
|
-
if (this.listType === "current") {
|
|
70976
|
-
if (comment.resolver) {
|
|
70977
|
-
type = "remove";
|
|
70978
|
-
}
|
|
70979
|
-
} else {
|
|
70980
|
-
if (!comment.resolver) {
|
|
70981
|
-
type = "remove";
|
|
70982
|
-
}
|
|
70983
|
-
}
|
|
70984
|
-
const blocks = /* @__PURE__ */ new Set();
|
|
70985
|
-
if (type === "remove") {
|
|
70986
|
-
getElementsByCommentId(this.editor, comment.groupId).forEach((element) => {
|
|
70987
|
-
if (isBlock$1(element)) {
|
|
70988
|
-
blocks.add(element);
|
|
70989
|
-
} else {
|
|
70990
|
-
const block = getParentBlock(element);
|
|
70991
|
-
if (block) {
|
|
70992
|
-
blocks.add(block);
|
|
70993
|
-
}
|
|
70994
|
-
}
|
|
70995
|
-
});
|
|
70996
|
-
} else {
|
|
70997
|
-
const blockIds = getBlocksByCommentId(this.editor.doc.toJSON(), comment.groupId);
|
|
70998
|
-
blockIds.forEach((blockId) => {
|
|
70999
|
-
const block = this.editor.findBlockById(blockId);
|
|
71000
|
-
if (block) {
|
|
71001
|
-
blocks.add(block);
|
|
71002
|
-
}
|
|
71003
|
-
});
|
|
71004
|
-
}
|
|
71005
|
-
blocks.forEach((block) => {
|
|
71006
|
-
this.editor.reloadBlock(block);
|
|
71007
|
-
});
|
|
71008
|
-
const commentGroup = getCommentsGroup(this.commentsProvider.getComments());
|
|
71009
|
-
const commentWithChildren = commentGroup.find((group) => group.groupId === comment.groupId);
|
|
71010
|
-
if (!commentWithChildren) {
|
|
71011
|
-
return;
|
|
71012
|
-
}
|
|
71013
|
-
setTimeout(() => {
|
|
71014
|
-
if (type === "add") {
|
|
71015
|
-
this.list.handleCreateComment(commentWithChildren, local);
|
|
71016
|
-
} else {
|
|
71017
|
-
this.list.removeGroupItem(comment);
|
|
71018
|
-
}
|
|
71019
|
-
this.updateCommentCount();
|
|
71020
|
-
}, 300);
|
|
71021
|
-
}
|
|
71022
70301
|
createList() {
|
|
71023
|
-
return new CommentGroupList(this.editor, this.commentsProvider, this.groupsContainer
|
|
71024
|
-
}
|
|
71025
|
-
createSwitcher() {
|
|
71026
|
-
const container = createElement("div", ["comment-switcher-container"], this.root);
|
|
71027
|
-
const commandBar2 = new FixedToolbar(container, [this.switcherItem], {
|
|
71028
|
-
id: "comment-switcher"
|
|
71029
|
-
});
|
|
71030
|
-
commandBar2.addListener("click", this.handleSwitchType);
|
|
71031
|
-
return commandBar2;
|
|
71032
|
-
}
|
|
71033
|
-
setSwitcherParent(parent) {
|
|
71034
|
-
this.switcherBar.content.remove();
|
|
71035
|
-
parent.append(this.switcherBar.content);
|
|
70302
|
+
return new CommentGroupList(this.editor, this.commentsProvider, this.groupsContainer);
|
|
71036
70303
|
}
|
|
71037
70304
|
isEditing(includeEmpty) {
|
|
71038
70305
|
return this.list.isEditing(includeEmpty);
|
|
@@ -71040,49 +70307,14 @@ ${codeText}
|
|
|
71040
70307
|
setFirstEditingCommentActive() {
|
|
71041
70308
|
this.list.setFirstEditingCommentActive();
|
|
71042
70309
|
}
|
|
71043
|
-
getListType() {
|
|
71044
|
-
return this.listType;
|
|
71045
|
-
}
|
|
71046
|
-
setListType(type) {
|
|
71047
|
-
var _a, _b;
|
|
71048
|
-
if (type === "resolved") {
|
|
71049
|
-
const item = (_a = this.switcherItem.children) == null ? void 0 : _a[1];
|
|
71050
|
-
this.handleSwitchType(this.switcherBar, item);
|
|
71051
|
-
} else {
|
|
71052
|
-
const item = (_b = this.switcherItem.children) == null ? void 0 : _b[0];
|
|
71053
|
-
this.handleSwitchType(this.switcherBar, item);
|
|
71054
|
-
}
|
|
71055
|
-
}
|
|
71056
|
-
updateCommentCountTip() {
|
|
71057
|
-
var _a;
|
|
71058
|
-
(_a = this.noCommentTip) == null ? void 0 : _a.remove();
|
|
71059
|
-
this.noCommentTip = null;
|
|
71060
|
-
if (this.listType === "resolved" && this.list.items.length === 0) {
|
|
71061
|
-
if (!this.noCommentTip) {
|
|
71062
|
-
this.noCommentTip = createElement("div", ["no-comment-tip"], this.groupsContainer);
|
|
71063
|
-
this.noCommentTip.innerText = i18n$1.t("comment.noResolvedComment");
|
|
71064
|
-
}
|
|
71065
|
-
return;
|
|
71066
|
-
}
|
|
71067
|
-
if (this.listType === "current" && this.list.items.length === 0) {
|
|
71068
|
-
if (!this.noCommentTip) {
|
|
71069
|
-
this.noCommentTip = createElement("div", ["no-comment-tip"], this.groupsContainer);
|
|
71070
|
-
this.noCommentTip.innerText = i18n$1.t("comment.noCurrentComment");
|
|
71071
|
-
}
|
|
71072
|
-
}
|
|
71073
|
-
}
|
|
71074
70310
|
show(groupId) {
|
|
71075
|
-
var _a
|
|
70311
|
+
var _a;
|
|
71076
70312
|
removeClass(this.root, "hidden");
|
|
71077
70313
|
if (groupId) {
|
|
71078
|
-
if (this.listType !== "current") {
|
|
71079
|
-
const commandItem = (_a = this.switcherItem.children) == null ? void 0 : _a[0];
|
|
71080
|
-
this.handleSwitchType(this.switcherBar, commandItem);
|
|
71081
|
-
}
|
|
71082
70314
|
const index2 = this.list.findItemIndex(groupId);
|
|
71083
70315
|
this.list.setActiveItem(index2);
|
|
71084
70316
|
}
|
|
71085
|
-
(
|
|
70317
|
+
(_a = this.commentOptions) == null ? void 0 : _a.controller.showCommentList();
|
|
71086
70318
|
}
|
|
71087
70319
|
hide() {
|
|
71088
70320
|
addClass(this.root, "hidden");
|
|
@@ -71210,7 +70442,7 @@ ${codeText}
|
|
|
71210
70442
|
const logger$1c = getLogger("mobile-group-list");
|
|
71211
70443
|
class MobileGroupList extends ListBase {
|
|
71212
70444
|
constructor(editor, commentsProvider, parent, scrollElement) {
|
|
71213
|
-
super(editor, commentsProvider, parent,
|
|
70445
|
+
super(editor, commentsProvider, parent, getCommentsGroupFromDoc(editor, commentsProvider), {});
|
|
71214
70446
|
__publicField(this, "scroller");
|
|
71215
70447
|
__publicField(this, "refreshScroller", () => {
|
|
71216
70448
|
this.scroller.refresh();
|
|
@@ -71258,7 +70490,7 @@ ${codeText}
|
|
|
71258
70490
|
this.updateComments();
|
|
71259
70491
|
});
|
|
71260
70492
|
__publicField(this, "updateComments", debounce__default.default(() => {
|
|
71261
|
-
const commentsGroup =
|
|
70493
|
+
const commentsGroup = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
|
|
71262
70494
|
for (let i = 0; i < commentsGroup.length; i++) {
|
|
71263
70495
|
const comment = commentsGroup[i];
|
|
71264
70496
|
const groupItem = this.findGroupItem(comment.groupId);
|
|
@@ -71292,7 +70524,7 @@ ${codeText}
|
|
|
71292
70524
|
return item;
|
|
71293
70525
|
}
|
|
71294
70526
|
findInsertPos(data2) {
|
|
71295
|
-
const commentsMap =
|
|
70527
|
+
const commentsMap = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
|
|
71296
70528
|
const index2 = commentsMap.findIndex((group) => group.id === data2.id);
|
|
71297
70529
|
if (index2 === -1) {
|
|
71298
70530
|
return -1;
|
|
@@ -71428,8 +70660,6 @@ ${codeText}
|
|
|
71428
70660
|
const comment = this.commentsProvider.getComment(commentId);
|
|
71429
70661
|
this.list.handleUpdateComment(comment);
|
|
71430
70662
|
}
|
|
71431
|
-
onUpdateCommentResolver(commentId, local) {
|
|
71432
|
-
}
|
|
71433
70663
|
get commentOptions() {
|
|
71434
70664
|
const commentOptions = this.editor.getComponentOptions("comment");
|
|
71435
70665
|
return commentOptions;
|
|
@@ -71455,7 +70685,7 @@ ${codeText}
|
|
|
71455
70685
|
}
|
|
71456
70686
|
}
|
|
71457
70687
|
function getMiniCommentsGroupFromDoc(editor, commentsProvider) {
|
|
71458
|
-
const commentsGroupFromDoc =
|
|
70688
|
+
const commentsGroupFromDoc = getCommentsGroupFromDoc(editor, commentsProvider);
|
|
71459
70689
|
const miniCommentGroups = /* @__PURE__ */ new Map();
|
|
71460
70690
|
for (const commentGroup of commentsGroupFromDoc) {
|
|
71461
70691
|
const blockId = getBlockIdByGroupId(editor, commentGroup.groupId);
|
|
@@ -71602,9 +70832,6 @@ ${codeText}
|
|
|
71602
70832
|
}
|
|
71603
70833
|
onUpdateComment(commentId, local) {
|
|
71604
70834
|
}
|
|
71605
|
-
onUpdateCommentResolver(commentId, local) {
|
|
71606
|
-
this.list.updateMiniCommentsGroup();
|
|
71607
|
-
}
|
|
71608
70835
|
show() {
|
|
71609
70836
|
removeClass(this.root, "hidden");
|
|
71610
70837
|
}
|
|
@@ -71833,18 +71060,12 @@ ${codeText}
|
|
|
71833
71060
|
(_b = this.commentList) == null ? void 0 : _b.show(groupId);
|
|
71834
71061
|
}
|
|
71835
71062
|
});
|
|
71836
|
-
__publicField(this, "showCommentList", (groupId
|
|
71837
|
-
var _a, _b;
|
|
71063
|
+
__publicField(this, "showCommentList", (groupId) => {
|
|
71838
71064
|
if (this.isMobile) {
|
|
71839
71065
|
this.showComment("mobile", groupId);
|
|
71840
71066
|
} else {
|
|
71841
71067
|
this.showComment("web", groupId);
|
|
71842
71068
|
}
|
|
71843
|
-
if (type) {
|
|
71844
|
-
(_a = this.getCommentList()) == null ? void 0 : _a.setListType(type);
|
|
71845
|
-
} else if (type === void 0) {
|
|
71846
|
-
(_b = this.getCommentList()) == null ? void 0 : _b.setListType("current");
|
|
71847
|
-
}
|
|
71848
71069
|
});
|
|
71849
71070
|
__publicField(this, "handleCommentListClose", () => {
|
|
71850
71071
|
this.showComment("mini");
|
|
@@ -71879,15 +71100,6 @@ ${codeText}
|
|
|
71879
71100
|
get isMobile() {
|
|
71880
71101
|
return clientType.isMobile;
|
|
71881
71102
|
}
|
|
71882
|
-
getCommentList() {
|
|
71883
|
-
return this.commentList;
|
|
71884
|
-
}
|
|
71885
|
-
getMobileCommentList() {
|
|
71886
|
-
return this.mobileCommentList;
|
|
71887
|
-
}
|
|
71888
|
-
getMiniCommentList() {
|
|
71889
|
-
return this.miniCommentList;
|
|
71890
|
-
}
|
|
71891
71103
|
destroy() {
|
|
71892
71104
|
var _a, _b;
|
|
71893
71105
|
(_a = this.commentList) == null ? void 0 : _a.destroy();
|
|
@@ -71913,13 +71125,10 @@ ${codeText}
|
|
|
71913
71125
|
if (containers.mobileContainer && this.mobileCommentList) {
|
|
71914
71126
|
containers.mobileContainer.append(this.mobileCommentList.root);
|
|
71915
71127
|
}
|
|
71916
|
-
if (containers.switchBarContainer && this.commentList) {
|
|
71917
|
-
this.commentList.setSwitcherParent(containers.switchBarContainer);
|
|
71918
|
-
}
|
|
71919
71128
|
}
|
|
71920
71129
|
}
|
|
71921
71130
|
const style$7 = "";
|
|
71922
|
-
const zhCN$
|
|
71131
|
+
const zhCN$l = {
|
|
71923
71132
|
comment: {
|
|
71924
71133
|
count: "\u6279\u6CE8 ({num})",
|
|
71925
71134
|
hide: "\u9690\u85CF\u6279\u6CE8",
|
|
@@ -71939,19 +71148,10 @@ ${codeText}
|
|
|
71939
71148
|
more: "\u66F4\u591A",
|
|
71940
71149
|
comment: "\u6DFB\u52A0\u6279\u6CE8",
|
|
71941
71150
|
command: "\u6DFB\u52A0\u6279\u6CE8",
|
|
71942
|
-
quickMenuCommand: "\u6DFB\u52A0\u6279\u6CE8"
|
|
71943
|
-
resolvedBy: '\u5DF2\u7531 <span class="resolver-name">{name}</span> \u89E3\u51B3',
|
|
71944
|
-
reopen: "\u91CD\u65B0\u6253\u5F00",
|
|
71945
|
-
currentComment: "\u5F53\u524D\u6279\u6CE8",
|
|
71946
|
-
resolvedComment: "\u5DF2\u89E3\u51B3\u6279\u6CE8",
|
|
71947
|
-
removedFromDoc: "\u5F15\u7528\u5185\u5BB9\u5DF2\u5220\u9664",
|
|
71948
|
-
noCurrentComment: "\u6682\u65E0\u6279\u6CE8",
|
|
71949
|
-
noResolvedComment: "\u65E0\u5DF2\u89E3\u51B3\u6279\u6CE8",
|
|
71950
|
-
resolveComment: "\u6807\u8BB0\u4E3A\u5DF2\u89E3\u51B3",
|
|
71951
|
-
commentHasAlreadyRemoved: "\u5F15\u7528\u5185\u5BB9\u5DF2\u88AB\u5220\u9664\uFF0C\u4E0D\u53EF\u91CD\u65B0\u6253\u5F00\u6279\u6CE8"
|
|
71151
|
+
quickMenuCommand: "\u6DFB\u52A0\u6279\u6CE8"
|
|
71952
71152
|
}
|
|
71953
71153
|
};
|
|
71954
|
-
const zhHK$
|
|
71154
|
+
const zhHK$l = {
|
|
71955
71155
|
comment: {
|
|
71956
71156
|
count: "\u6279\u8A3B ({num})",
|
|
71957
71157
|
hide: "\u96B1\u85CF\u6279\u8A3B",
|
|
@@ -71974,7 +71174,7 @@ ${codeText}
|
|
|
71974
71174
|
quickMenuCommand: "\u6DFB\u52A0\u6279\u8A3B"
|
|
71975
71175
|
}
|
|
71976
71176
|
};
|
|
71977
|
-
const enUS$
|
|
71177
|
+
const enUS$l = {
|
|
71978
71178
|
comment: {
|
|
71979
71179
|
count: "Annotations ({num})",
|
|
71980
71180
|
hide: "Hide Annotations",
|
|
@@ -71982,7 +71182,7 @@ ${codeText}
|
|
|
71982
71182
|
reply: "Reply",
|
|
71983
71183
|
quicklyReply: "Reply...",
|
|
71984
71184
|
send: "Confirm",
|
|
71985
|
-
placeholder: "Add
|
|
71185
|
+
placeholder: "Add annotation...",
|
|
71986
71186
|
replyPlaceholder: "Add annotation",
|
|
71987
71187
|
edit: "Edit",
|
|
71988
71188
|
delete: "Delete",
|
|
@@ -71994,19 +71194,10 @@ ${codeText}
|
|
|
71994
71194
|
more: "More",
|
|
71995
71195
|
comment: "Add annotation",
|
|
71996
71196
|
command: "Add annotation",
|
|
71997
|
-
quickMenuCommand: "Add annotation"
|
|
71998
|
-
resolvedBy: 'Resolved by <span class="resolver-name">{name}<span>',
|
|
71999
|
-
reopen: "Reopen",
|
|
72000
|
-
currentComment: "Unresolved annotations",
|
|
72001
|
-
resolvedComment: "Resolved annotations",
|
|
72002
|
-
removedFromDoc: "Quoted content deleted.",
|
|
72003
|
-
noCurrentComment: "No annotation.",
|
|
72004
|
-
noResolvedComment: "No resolved annotations.",
|
|
72005
|
-
resolveComment: "Mark as resolved",
|
|
72006
|
-
commentHasAlreadyRemoved: "Referenced content deleted. Comment can't be reopened."
|
|
71197
|
+
quickMenuCommand: "Add annotation"
|
|
72007
71198
|
}
|
|
72008
71199
|
};
|
|
72009
|
-
const jaJP$
|
|
71200
|
+
const jaJP$l = {
|
|
72010
71201
|
comment: {
|
|
72011
71202
|
count: "\u6CE8\u91C8 ({num})",
|
|
72012
71203
|
hide: "\u6CE8\u91C8\u3092\u975E\u8868\u793A",
|
|
@@ -72026,24 +71217,70 @@ ${codeText}
|
|
|
72026
71217
|
more: "\u305D\u306E\u4ED6",
|
|
72027
71218
|
comment: "\u6CE8\u91C8\u3092\u8FFD\u52A0",
|
|
72028
71219
|
command: "\u6CE8\u91C8\u3092\u8FFD\u52A0",
|
|
72029
|
-
quickMenuCommand: "\u6CE8\u91C8\u3092\u8FFD\u52A0"
|
|
72030
|
-
resolvedBy: '<span class="resolver-name">{name}</span>\u3055\u3093\u304C\u89E3\u6C7A\u3057\u307E\u3057\u305F',
|
|
72031
|
-
reopen: "\u518D\u958B",
|
|
72032
|
-
currentComment: "\u672A\u89E3\u6C7A\u30B3\u30E1\u30F3\u30C8",
|
|
72033
|
-
resolvedComment: "\u89E3\u6C7A\u6E08\u307F\u30B3\u30E1\u30F3\u30C8",
|
|
72034
|
-
removedFromDoc: "\u5F15\u7528\u3055\u308C\u305F\u5185\u5BB9\u306F\u524A\u9664\u3055\u308C\u307E\u3057\u305F\u3002",
|
|
72035
|
-
noCurrentComment: "\u6CE8\u91C8\u306A\u3057",
|
|
72036
|
-
noResolvedComment: "\u89E3\u6C7A\u6E08\u307F\u30B3\u30E1\u30F3\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
72037
|
-
resolveComment: "\u89E3\u6C7A\u3055\u308C\u307E\u3057\u305F",
|
|
72038
|
-
commentHasAlreadyRemoved: "\u5F15\u7528\u5143\u304C\u524A\u9664\u3055\u308C\u305F\u305F\u3081\u3001\u30B3\u30E1\u30F3\u30C8\u518D\u958B\u3067\u304D\u307E\u305B\u3093\u3002"
|
|
71220
|
+
quickMenuCommand: "\u6CE8\u91C8\u3092\u8FFD\u52A0"
|
|
72039
71221
|
}
|
|
72040
71222
|
};
|
|
72041
71223
|
i18n$1.mergeLang({
|
|
72042
|
-
"zh-CN": zhCN$
|
|
72043
|
-
"zh-HK": zhHK$
|
|
72044
|
-
"en-US": enUS$
|
|
72045
|
-
"ja-JP": jaJP$
|
|
71224
|
+
"zh-CN": zhCN$l,
|
|
71225
|
+
"zh-HK": zhHK$l,
|
|
71226
|
+
"en-US": enUS$l,
|
|
71227
|
+
"ja-JP": jaJP$l
|
|
72046
71228
|
});
|
|
71229
|
+
class OnesEditorCommentsRender {
|
|
71230
|
+
renderText(editor, path, attributes) {
|
|
71231
|
+
const classes = [];
|
|
71232
|
+
const textAttributes = {};
|
|
71233
|
+
Object.entries(attributes).forEach(([key, value]) => {
|
|
71234
|
+
if (key.startsWith("comment-")) {
|
|
71235
|
+
classes.push("comment");
|
|
71236
|
+
textAttributes[key] = value;
|
|
71237
|
+
}
|
|
71238
|
+
});
|
|
71239
|
+
return { classes, attributes: textAttributes };
|
|
71240
|
+
}
|
|
71241
|
+
renderBox(editor, path, attributes) {
|
|
71242
|
+
const classes = [];
|
|
71243
|
+
const textAttributes = {};
|
|
71244
|
+
Object.entries(attributes).forEach(([key, value]) => {
|
|
71245
|
+
if (key.startsWith("comment-")) {
|
|
71246
|
+
classes.push("comment");
|
|
71247
|
+
textAttributes[key] = value;
|
|
71248
|
+
}
|
|
71249
|
+
});
|
|
71250
|
+
return { classes, attributes: textAttributes };
|
|
71251
|
+
}
|
|
71252
|
+
renderBlock(editor, path, blockData) {
|
|
71253
|
+
const comments = blockData.comments;
|
|
71254
|
+
if (!comments || comments.length === 0) {
|
|
71255
|
+
return {};
|
|
71256
|
+
}
|
|
71257
|
+
const classes = ["comment"];
|
|
71258
|
+
const attributes = {};
|
|
71259
|
+
comments.forEach((commentId) => {
|
|
71260
|
+
attributes[`comment-${commentId.toLocaleLowerCase()}`] = commentId;
|
|
71261
|
+
});
|
|
71262
|
+
return {
|
|
71263
|
+
classes,
|
|
71264
|
+
attributes
|
|
71265
|
+
};
|
|
71266
|
+
}
|
|
71267
|
+
updateBlock(editor, path, blockElement, blockData) {
|
|
71268
|
+
const comments = blockData.comments;
|
|
71269
|
+
removeClass(blockElement, "comment");
|
|
71270
|
+
Array.from(blockElement.attributes).forEach((a) => {
|
|
71271
|
+
if (a.name.startsWith("comment-")) {
|
|
71272
|
+
blockElement.removeAttribute(a.name);
|
|
71273
|
+
}
|
|
71274
|
+
});
|
|
71275
|
+
if (!comments || comments.length === 0) {
|
|
71276
|
+
return;
|
|
71277
|
+
}
|
|
71278
|
+
addClass(blockElement, "comment");
|
|
71279
|
+
comments.forEach((commentId) => {
|
|
71280
|
+
blockElement.setAttribute(`comment-${commentId.toLocaleLowerCase()}`, commentId);
|
|
71281
|
+
});
|
|
71282
|
+
}
|
|
71283
|
+
}
|
|
72047
71284
|
class OnesEditorCommentPlaceholderHandler {
|
|
72048
71285
|
constructor(editor) {
|
|
72049
71286
|
__publicField(this, "handleUpdateCompositionText", (editor, containerId, blockIndex, offset, end) => {
|
|
@@ -72195,21 +71432,6 @@ ${codeText}
|
|
|
72195
71432
|
method: "delete"
|
|
72196
71433
|
});
|
|
72197
71434
|
}
|
|
72198
|
-
function updateCommentResolverToOldDoc(editor, version, commentId, resolver) {
|
|
72199
|
-
var _a, _b;
|
|
72200
|
-
const doc2 = editor.doc;
|
|
72201
|
-
const server = (_b = (_a = doc2.getServerMeta) == null ? void 0 : _a.call(doc2)) == null ? void 0 : _b.apiServer;
|
|
72202
|
-
assert(logger$16, server, "apiServer is not set");
|
|
72203
|
-
const api = `${server}/${version}/comments/${commentId}/resolver`;
|
|
72204
|
-
return doc2.request(api, {
|
|
72205
|
-
method: "put",
|
|
72206
|
-
data: {
|
|
72207
|
-
resolver
|
|
72208
|
-
}
|
|
72209
|
-
});
|
|
72210
|
-
}
|
|
72211
|
-
getLogger("resolved-comment-item");
|
|
72212
|
-
const styles = "";
|
|
72213
71435
|
const isAllContainersSelected = (editor) => {
|
|
72214
71436
|
var _a;
|
|
72215
71437
|
const range = editor.selection.range;
|
|
@@ -72284,16 +71506,6 @@ ${codeText}
|
|
|
72284
71506
|
await updateCommentToOldDoc(this.editor, this.version, commentId, comments.commentProvider.getCommentDoc(commentId));
|
|
72285
71507
|
}
|
|
72286
71508
|
}
|
|
72287
|
-
onUpdateCommentResolver(commentId, local) {
|
|
72288
|
-
const comments = this.editor.getCustom("editor-comments");
|
|
72289
|
-
const provider = comments.commentProvider;
|
|
72290
|
-
const comment = provider.getComment(commentId);
|
|
72291
|
-
if (!comment) {
|
|
72292
|
-
return;
|
|
72293
|
-
}
|
|
72294
|
-
const resolver = comment.resolver;
|
|
72295
|
-
updateCommentResolverToOldDoc(this.editor, this.version, commentId, resolver);
|
|
72296
|
-
}
|
|
72297
71509
|
hideToolbar(editor) {
|
|
72298
71510
|
const toolbar2 = editor.findCustom("toolbar-handler");
|
|
72299
71511
|
toolbar2 == null ? void 0 : toolbar2.disableTextToolbar();
|
|
@@ -72320,7 +71532,6 @@ ${codeText}
|
|
|
72320
71532
|
order: 60
|
|
72321
71533
|
}],
|
|
72322
71534
|
executeCommand: (editor2, block, item, child2) => {
|
|
72323
|
-
var _a2;
|
|
72324
71535
|
if (!child2) {
|
|
72325
71536
|
return;
|
|
72326
71537
|
}
|
|
@@ -72331,7 +71542,6 @@ ${codeText}
|
|
|
72331
71542
|
}
|
|
72332
71543
|
this.hideToolbar(editor2);
|
|
72333
71544
|
comments.showCommentList();
|
|
72334
|
-
(_a2 = comments.getCommentList()) == null ? void 0 : _a2.setListType("current");
|
|
72335
71545
|
const offset = getChildOffset(block, child2);
|
|
72336
71546
|
const range = createBlockSimpleRange(this.editor, block, offset.start, offset.end);
|
|
72337
71547
|
const comment = addCommentToTextBlocks(editor2, range, comments.commentProvider);
|
|
@@ -72356,16 +71566,15 @@ ${codeText}
|
|
|
72356
71566
|
order: 60
|
|
72357
71567
|
}],
|
|
72358
71568
|
executeCommand: (editor2, block, item) => {
|
|
72359
|
-
var _a2;
|
|
72360
71569
|
if (item.id === "add-comment-to-old-doc") {
|
|
72361
71570
|
const comments = editor2.getCustom("editor-comments");
|
|
72362
71571
|
if (!comments) {
|
|
72363
71572
|
return;
|
|
72364
71573
|
}
|
|
72365
71574
|
editor2.selection.selectBlock(block, 0, getBlockTextLength$6(editor2, block), { noScroll: true });
|
|
72366
|
-
|
|
72367
|
-
|
|
72368
|
-
addCommentToBlock(editor2, block,
|
|
71575
|
+
const editorComments = editor2.getCustom("editor-comments");
|
|
71576
|
+
editorComments.showCommentList();
|
|
71577
|
+
addCommentToBlock(editor2, block, editorComments.commentProvider);
|
|
72369
71578
|
}
|
|
72370
71579
|
}
|
|
72371
71580
|
};
|
|
@@ -72390,14 +71599,12 @@ ${codeText}
|
|
|
72390
71599
|
}];
|
|
72391
71600
|
}
|
|
72392
71601
|
executeCommand(editor, command, options) {
|
|
72393
|
-
var _a;
|
|
72394
71602
|
if (command.id === "add-comment-to-old-doc/text") {
|
|
72395
71603
|
const comments = editor.getCustom("editor-comments");
|
|
72396
71604
|
if (!comments) {
|
|
72397
71605
|
return;
|
|
72398
71606
|
}
|
|
72399
71607
|
comments.showCommentList();
|
|
72400
|
-
(_a = comments.getCommentList()) == null ? void 0 : _a.setListType("current");
|
|
72401
71608
|
const range = editor.selection.range;
|
|
72402
71609
|
if (!range.isSimple()) {
|
|
72403
71610
|
if (isFullSelectedOneComplexBlock(editor, range)) {
|
|
@@ -74620,7 +73827,7 @@ ${codeText}
|
|
|
74620
73827
|
return void 0;
|
|
74621
73828
|
}
|
|
74622
73829
|
};
|
|
74623
|
-
const zhCN$
|
|
73830
|
+
const zhCN$k = {
|
|
74624
73831
|
table: {
|
|
74625
73832
|
cellBackground: "\u5355\u5143\u683C\u80CC\u666F\u8272",
|
|
74626
73833
|
deleteSelectRow: "\u5220\u9664\u6240\u9009\u884C",
|
|
@@ -74652,7 +73859,7 @@ ${codeText}
|
|
|
74652
73859
|
}
|
|
74653
73860
|
}
|
|
74654
73861
|
};
|
|
74655
|
-
const zhHK$
|
|
73862
|
+
const zhHK$k = {
|
|
74656
73863
|
table: {
|
|
74657
73864
|
cellBackground: "\u55AE\u5143\u683C\u80CC\u666F\u8272",
|
|
74658
73865
|
deleteSelectRow: "\u522A\u9664\u6240\u9078\u884C",
|
|
@@ -74684,7 +73891,7 @@ ${codeText}
|
|
|
74684
73891
|
}
|
|
74685
73892
|
}
|
|
74686
73893
|
};
|
|
74687
|
-
const enUS$
|
|
73894
|
+
const enUS$k = {
|
|
74688
73895
|
table: {
|
|
74689
73896
|
cellBackground: "Cell background color",
|
|
74690
73897
|
deleteSelectRow: "Delete selected rows",
|
|
@@ -74716,7 +73923,7 @@ ${codeText}
|
|
|
74716
73923
|
}
|
|
74717
73924
|
}
|
|
74718
73925
|
};
|
|
74719
|
-
const jaJP$
|
|
73926
|
+
const jaJP$k = {
|
|
74720
73927
|
table: {
|
|
74721
73928
|
cellBackground: "\u30BB\u30EB\u306E\u80CC\u666F\u8272",
|
|
74722
73929
|
deleteSelectRow: "\u9078\u629E\u3057\u305F\u884C\u3092\u524A\u9664",
|
|
@@ -74749,10 +73956,10 @@ ${codeText}
|
|
|
74749
73956
|
}
|
|
74750
73957
|
};
|
|
74751
73958
|
i18n$1.mergeLang({
|
|
74752
|
-
"zh-CN": zhCN$
|
|
74753
|
-
"zh-HK": zhHK$
|
|
74754
|
-
"en-US": enUS$
|
|
74755
|
-
"ja-JP": jaJP$
|
|
73959
|
+
"zh-CN": zhCN$k,
|
|
73960
|
+
"zh-HK": zhHK$k,
|
|
73961
|
+
"en-US": enUS$k,
|
|
73962
|
+
"ja-JP": jaJP$k
|
|
74756
73963
|
});
|
|
74757
73964
|
const tableStyle = "";
|
|
74758
73965
|
const logger$U = getLogger("table");
|
|
@@ -75174,28 +74381,28 @@ ${codeText}
|
|
|
75174
74381
|
return false;
|
|
75175
74382
|
}
|
|
75176
74383
|
}
|
|
75177
|
-
const zhCN$
|
|
74384
|
+
const zhCN$j = {
|
|
75178
74385
|
pasteSpecial: {
|
|
75179
74386
|
originFormats: "\u4FDD\u6301\u539F\u6837\u5F0F",
|
|
75180
74387
|
plainText: "\u7C98\u8D34\u7EAF\u6587\u672C",
|
|
75181
74388
|
markdown: "\u7C98\u8D34\u4E3A Markdown"
|
|
75182
74389
|
}
|
|
75183
74390
|
};
|
|
75184
|
-
const zhHK$
|
|
74391
|
+
const zhHK$j = {
|
|
75185
74392
|
pasteSpecial: {
|
|
75186
74393
|
originFormats: "\u4FDD\u6301\u539F\u6A23\u5F0F",
|
|
75187
74394
|
plainText: "\u7C98\u8CBC\u7D14\u6587\u672C",
|
|
75188
74395
|
markdown: "\u7C98\u8CBC\u70BA Markdown"
|
|
75189
74396
|
}
|
|
75190
74397
|
};
|
|
75191
|
-
const enUS$
|
|
74398
|
+
const enUS$j = {
|
|
75192
74399
|
pasteSpecial: {
|
|
75193
74400
|
originFormats: "Keep source formatting",
|
|
75194
74401
|
plainText: "Paste as plain text",
|
|
75195
74402
|
markdown: "Paste as markdown"
|
|
75196
74403
|
}
|
|
75197
74404
|
};
|
|
75198
|
-
const jaJP$
|
|
74405
|
+
const jaJP$j = {
|
|
75199
74406
|
pasteSpecial: {
|
|
75200
74407
|
originFormats: "\u5143\u306E\u5F62\u5F0F\u3092\u4FDD\u6301",
|
|
75201
74408
|
plainText: "\u30D7\u30EC\u30FC\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u308B",
|
|
@@ -75203,10 +74410,10 @@ ${codeText}
|
|
|
75203
74410
|
}
|
|
75204
74411
|
};
|
|
75205
74412
|
i18n$1.mergeLang({
|
|
75206
|
-
"zh-CN": zhCN$
|
|
75207
|
-
"zh-HK": zhHK$
|
|
75208
|
-
"en-US": enUS$
|
|
75209
|
-
"ja-JP": jaJP$
|
|
74413
|
+
"zh-CN": zhCN$j,
|
|
74414
|
+
"zh-HK": zhHK$j,
|
|
74415
|
+
"en-US": enUS$j,
|
|
74416
|
+
"ja-JP": jaJP$j
|
|
75210
74417
|
});
|
|
75211
74418
|
const style$6 = "";
|
|
75212
74419
|
const logger$S = getLogger("html-to-doc");
|
|
@@ -77652,14 +76859,14 @@ ${docStr}
|
|
|
77652
76859
|
}
|
|
77653
76860
|
function isList(elem) {
|
|
77654
76861
|
var _a;
|
|
77655
|
-
const
|
|
77656
|
-
return
|
|
76862
|
+
const styles = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
|
|
76863
|
+
return styles.findIndex((style2) => style2.startsWith("level")) !== -1;
|
|
77657
76864
|
}
|
|
77658
76865
|
function getOfficeListGroupId(elem) {
|
|
77659
76866
|
var _a;
|
|
77660
|
-
const
|
|
77661
|
-
for (let i = 0; i <
|
|
77662
|
-
const name =
|
|
76867
|
+
const styles = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
|
|
76868
|
+
for (let i = 0; i < styles.length; i++) {
|
|
76869
|
+
const name = styles[i];
|
|
77663
76870
|
if (name.startsWith("mso-list:")) {
|
|
77664
76871
|
return name;
|
|
77665
76872
|
}
|
|
@@ -77668,9 +76875,9 @@ ${docStr}
|
|
|
77668
76875
|
}
|
|
77669
76876
|
function getLevel(elem) {
|
|
77670
76877
|
var _a, _b;
|
|
77671
|
-
const
|
|
77672
|
-
for (let i = 0; i <
|
|
77673
|
-
const name =
|
|
76878
|
+
const styles = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
|
|
76879
|
+
for (let i = 0; i < styles.length; i++) {
|
|
76880
|
+
const name = styles[i];
|
|
77674
76881
|
if (name.startsWith("level")) {
|
|
77675
76882
|
const level = (_b = Number.parseInt(name.substring(5), 10)) != null ? _b : void 0;
|
|
77676
76883
|
if (level) {
|
|
@@ -79197,7 +78404,7 @@ ${docStr}
|
|
|
79197
78404
|
(_a = this.dialog) == null ? void 0 : _a.destroy();
|
|
79198
78405
|
}
|
|
79199
78406
|
}
|
|
79200
|
-
const zhCN$
|
|
78407
|
+
const zhCN$i = {
|
|
79201
78408
|
find: {
|
|
79202
78409
|
findLabel: "\u67E5\u627E:",
|
|
79203
78410
|
replaceLabel: "\u66FF\u6362:",
|
|
@@ -79209,7 +78416,7 @@ ${docStr}
|
|
|
79209
78416
|
replacePlaceholder: "\u66FF\u6362\u4E3A"
|
|
79210
78417
|
}
|
|
79211
78418
|
};
|
|
79212
|
-
const zhHK$
|
|
78419
|
+
const zhHK$i = {
|
|
79213
78420
|
find: {
|
|
79214
78421
|
findLabel: "\u67E5\u627E:",
|
|
79215
78422
|
replaceLabel: "\u66FF\u63DB:",
|
|
@@ -79221,7 +78428,7 @@ ${docStr}
|
|
|
79221
78428
|
replacePlaceholder: "\u66FF\u63DB\u70BA"
|
|
79222
78429
|
}
|
|
79223
78430
|
};
|
|
79224
|
-
const enUS$
|
|
78431
|
+
const enUS$i = {
|
|
79225
78432
|
find: {
|
|
79226
78433
|
findLabel: "Search:",
|
|
79227
78434
|
replaceLabel: "Replace:",
|
|
@@ -79233,7 +78440,7 @@ ${docStr}
|
|
|
79233
78440
|
replacePlaceholder: "Replace with"
|
|
79234
78441
|
}
|
|
79235
78442
|
};
|
|
79236
|
-
const jaJP$
|
|
78443
|
+
const jaJP$i = {
|
|
79237
78444
|
find: {
|
|
79238
78445
|
findLabel: "\u691C\u7D22\uFF1A",
|
|
79239
78446
|
replaceLabel: "\u7F6E\u63DB\uFF1A",
|
|
@@ -79246,10 +78453,10 @@ ${docStr}
|
|
|
79246
78453
|
}
|
|
79247
78454
|
};
|
|
79248
78455
|
i18n$1.mergeLang({
|
|
79249
|
-
"zh-CN": zhCN$
|
|
79250
|
-
"zh-HK": zhHK$
|
|
79251
|
-
"en-US": enUS$
|
|
79252
|
-
"ja-JP": jaJP$
|
|
78456
|
+
"zh-CN": zhCN$i,
|
|
78457
|
+
"zh-HK": zhHK$i,
|
|
78458
|
+
"en-US": enUS$i,
|
|
78459
|
+
"ja-JP": jaJP$i
|
|
79253
78460
|
});
|
|
79254
78461
|
function handleFindReplace(editor) {
|
|
79255
78462
|
const dialog = editor.addCustom("find-dialog", () => new FindDialog(editor));
|
|
@@ -79993,7 +79200,7 @@ ${docStr}
|
|
|
79993
79200
|
return false;
|
|
79994
79201
|
}
|
|
79995
79202
|
}
|
|
79996
|
-
const zhCN$
|
|
79203
|
+
const zhCN$h = {
|
|
79997
79204
|
contextMenu: {
|
|
79998
79205
|
copyMarkdown: "\u590D\u5236\u4E3A Markdown",
|
|
79999
79206
|
paste: "\u7C98\u8D34",
|
|
@@ -80006,7 +79213,7 @@ ${docStr}
|
|
|
80006
79213
|
uneditableBlockSelected: "\u9009\u4E2D\u533A\u57DF\u5305\u542B\u9501\u5B9A\u533A\u5757\uFF0C\u6682\u4E0D\u652F\u6301\u526A\u5207"
|
|
80007
79214
|
}
|
|
80008
79215
|
};
|
|
80009
|
-
const zhHK$
|
|
79216
|
+
const zhHK$h = {
|
|
80010
79217
|
contextMenu: {
|
|
80011
79218
|
copyMarkdown: "\u8907\u88FD\u70BA Markdown",
|
|
80012
79219
|
paste: "\u7C98\u8CBC",
|
|
@@ -80019,7 +79226,7 @@ ${docStr}
|
|
|
80019
79226
|
uneditableBlockSelected: "\u9078\u4E2D\u5340\u57DF\u5305\u542B\u9396\u5B9A\u5340\u584A\uFF0C\u66AB\u4E0D\u652F\u6301\u526A\u5207"
|
|
80020
79227
|
}
|
|
80021
79228
|
};
|
|
80022
|
-
const enUS$
|
|
79229
|
+
const enUS$h = {
|
|
80023
79230
|
contextMenu: {
|
|
80024
79231
|
copyMarkdown: "Copy as Markdown",
|
|
80025
79232
|
paste: "Paste",
|
|
@@ -80032,7 +79239,7 @@ ${docStr}
|
|
|
80032
79239
|
uneditableBlockSelected: "The selected area contains locked blocks, and cutting is not currently supported"
|
|
80033
79240
|
}
|
|
80034
79241
|
};
|
|
80035
|
-
const jaJP$
|
|
79242
|
+
const jaJP$h = {
|
|
80036
79243
|
contextMenu: {
|
|
80037
79244
|
copyMarkdown: "Markdown \u3068\u3057\u3066\u30B3\u30D4\u30FC",
|
|
80038
79245
|
paste: "\u8CBC\u308A\u4ED8\u3051",
|
|
@@ -80046,10 +79253,10 @@ ${docStr}
|
|
|
80046
79253
|
}
|
|
80047
79254
|
};
|
|
80048
79255
|
i18n$1.mergeLang({
|
|
80049
|
-
"zh-CN": zhCN$
|
|
80050
|
-
"zh-HK": zhHK$
|
|
80051
|
-
"en-US": enUS$
|
|
80052
|
-
"ja-JP": jaJP$
|
|
79256
|
+
"zh-CN": zhCN$h,
|
|
79257
|
+
"zh-HK": zhHK$h,
|
|
79258
|
+
"en-US": enUS$h,
|
|
79259
|
+
"ja-JP": jaJP$h
|
|
80053
79260
|
});
|
|
80054
79261
|
function hideToolbar(editor) {
|
|
80055
79262
|
const toolbar2 = editor.findCustom("toolbar-handler");
|
|
@@ -80597,7 +79804,7 @@ ${docStr}
|
|
|
80597
79804
|
toStandardDoc: toStandardDoc$1,
|
|
80598
79805
|
getResources
|
|
80599
79806
|
};
|
|
80600
|
-
const zhCN$
|
|
79807
|
+
const zhCN$g = {
|
|
80601
79808
|
file: {
|
|
80602
79809
|
abstract: "\u9644\u4EF6",
|
|
80603
79810
|
commands: {
|
|
@@ -80611,7 +79818,7 @@ ${docStr}
|
|
|
80611
79818
|
askAi: "\u8BE2\u95EE Copilot"
|
|
80612
79819
|
}
|
|
80613
79820
|
};
|
|
80614
|
-
const zhHK$
|
|
79821
|
+
const zhHK$g = {
|
|
80615
79822
|
file: {
|
|
80616
79823
|
abstract: "\u9644\u4EF6",
|
|
80617
79824
|
commands: {
|
|
@@ -80625,7 +79832,7 @@ ${docStr}
|
|
|
80625
79832
|
askAi: "\u8A62\u554F Copilot"
|
|
80626
79833
|
}
|
|
80627
79834
|
};
|
|
80628
|
-
const enUS$
|
|
79835
|
+
const enUS$g = {
|
|
80629
79836
|
file: {
|
|
80630
79837
|
abstract: "Attachment",
|
|
80631
79838
|
commands: {
|
|
@@ -80639,7 +79846,7 @@ ${docStr}
|
|
|
80639
79846
|
askAi: "Ask Copilot"
|
|
80640
79847
|
}
|
|
80641
79848
|
};
|
|
80642
|
-
const jaJP$
|
|
79849
|
+
const jaJP$g = {
|
|
80643
79850
|
file: {
|
|
80644
79851
|
abstract: "\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB",
|
|
80645
79852
|
commands: {
|
|
@@ -80654,10 +79861,10 @@ ${docStr}
|
|
|
80654
79861
|
}
|
|
80655
79862
|
};
|
|
80656
79863
|
i18n$1.mergeLang({
|
|
80657
|
-
"zh-CN": zhCN$
|
|
80658
|
-
"zh-HK": zhHK$
|
|
80659
|
-
"en-US": enUS$
|
|
80660
|
-
"ja-JP": jaJP$
|
|
79864
|
+
"zh-CN": zhCN$g,
|
|
79865
|
+
"zh-HK": zhHK$g,
|
|
79866
|
+
"en-US": enUS$g,
|
|
79867
|
+
"ja-JP": jaJP$g
|
|
80661
79868
|
});
|
|
80662
79869
|
function getEndsWithLinkIndex(str) {
|
|
80663
79870
|
const regex = /(\s|^)(http|https):\/\/[\w\-]+(\.[\w\-]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?$/;
|
|
@@ -80697,7 +79904,7 @@ ${docStr}
|
|
|
80697
79904
|
"Space": autoLink
|
|
80698
79905
|
};
|
|
80699
79906
|
const index$6 = "";
|
|
80700
|
-
const zhCN$
|
|
79907
|
+
const zhCN$f = {
|
|
80701
79908
|
version: {
|
|
80702
79909
|
latest: "\u6700\u65B0\u7248\u672C",
|
|
80703
79910
|
update: "{name}\u4FEE\u6539",
|
|
@@ -80741,7 +79948,7 @@ ${docStr}
|
|
|
80741
79948
|
filterMemoed: "\u7B5B\u9009\u5DF2\u5907\u6CE8\u7684\u7248\u672C"
|
|
80742
79949
|
}
|
|
80743
79950
|
};
|
|
80744
|
-
const zhHK$
|
|
79951
|
+
const zhHK$f = {
|
|
80745
79952
|
version: {
|
|
80746
79953
|
latest: "\u6700\u65B0\u7248\u672C",
|
|
80747
79954
|
update: "{name}\u4FEE\u6539",
|
|
@@ -80785,7 +79992,7 @@ ${docStr}
|
|
|
80785
79992
|
filterMemoed: "\u7BE9\u9078\u5DF2\u5099\u8A3B\u7684\u7248\u672C"
|
|
80786
79993
|
}
|
|
80787
79994
|
};
|
|
80788
|
-
const enUS$
|
|
79995
|
+
const enUS$f = {
|
|
80789
79996
|
version: {
|
|
80790
79997
|
latest: "Latest",
|
|
80791
79998
|
update: "Modified by {name}",
|
|
@@ -80829,7 +80036,7 @@ ${docStr}
|
|
|
80829
80036
|
filterMemoed: "Filter versions with comments"
|
|
80830
80037
|
}
|
|
80831
80038
|
};
|
|
80832
|
-
const jaJP$
|
|
80039
|
+
const jaJP$f = {
|
|
80833
80040
|
version: {
|
|
80834
80041
|
latest: "\u6700\u65B0",
|
|
80835
80042
|
update: "{name} \u304C\u5185\u5BB9\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u3002",
|
|
@@ -80874,10 +80081,10 @@ ${docStr}
|
|
|
80874
80081
|
}
|
|
80875
80082
|
};
|
|
80876
80083
|
i18n$1.mergeLang({
|
|
80877
|
-
"zh-CN": zhCN$
|
|
80878
|
-
"zh-HK": zhHK$
|
|
80879
|
-
"en-US": enUS$
|
|
80880
|
-
"ja-JP": jaJP$
|
|
80084
|
+
"zh-CN": zhCN$f,
|
|
80085
|
+
"zh-HK": zhHK$f,
|
|
80086
|
+
"en-US": enUS$f,
|
|
80087
|
+
"ja-JP": jaJP$f
|
|
80881
80088
|
});
|
|
80882
80089
|
var HistoryClass = /* @__PURE__ */ ((HistoryClass2) => {
|
|
80883
80090
|
HistoryClass2["NEW"] = "history-new";
|
|
@@ -81361,8 +80568,6 @@ ${docStr}
|
|
|
81361
80568
|
}
|
|
81362
80569
|
onUpdateComment() {
|
|
81363
80570
|
}
|
|
81364
|
-
onUpdateCommentResolver(commentId, local) {
|
|
81365
|
-
}
|
|
81366
80571
|
}
|
|
81367
80572
|
async function playHistoryData(doc2, versionHelper, historyData) {
|
|
81368
80573
|
for (const data2 of historyData) {
|
|
@@ -82762,35 +81967,35 @@ ${docStr}
|
|
|
82762
81967
|
(_c = this.editor) == null ? void 0 : _c.destroy();
|
|
82763
81968
|
}
|
|
82764
81969
|
}
|
|
82765
|
-
const zhCN$
|
|
81970
|
+
const zhCN$e = {
|
|
82766
81971
|
expandCollapseButton: {
|
|
82767
81972
|
expand: "\u5C55\u5F00",
|
|
82768
81973
|
collapse: "\u6536\u8D77"
|
|
82769
81974
|
}
|
|
82770
81975
|
};
|
|
82771
|
-
const zhHK$
|
|
81976
|
+
const zhHK$e = {
|
|
82772
81977
|
expandCollapseButton: {
|
|
82773
81978
|
expand: "\u5C55\u958B",
|
|
82774
81979
|
collapse: "\u6536\u8D77"
|
|
82775
81980
|
}
|
|
82776
81981
|
};
|
|
82777
|
-
const enUS$
|
|
81982
|
+
const enUS$e = {
|
|
82778
81983
|
expandCollapseButton: {
|
|
82779
81984
|
expand: "Expand",
|
|
82780
81985
|
collapse: "Collapse"
|
|
82781
81986
|
}
|
|
82782
81987
|
};
|
|
82783
|
-
const jaJP$
|
|
81988
|
+
const jaJP$e = {
|
|
82784
81989
|
expandCollapseButton: {
|
|
82785
81990
|
expand: "\u5C55\u958B",
|
|
82786
81991
|
collapse: "\u7E2E\u5C0F"
|
|
82787
81992
|
}
|
|
82788
81993
|
};
|
|
82789
81994
|
i18n$1.mergeLang({
|
|
82790
|
-
"zh-CN": zhCN$
|
|
82791
|
-
"zh-HK": zhHK$
|
|
82792
|
-
"en-US": enUS$
|
|
82793
|
-
"ja-JP": jaJP$
|
|
81995
|
+
"zh-CN": zhCN$e,
|
|
81996
|
+
"zh-HK": zhHK$e,
|
|
81997
|
+
"en-US": enUS$e,
|
|
81998
|
+
"ja-JP": jaJP$e
|
|
82794
81999
|
});
|
|
82795
82000
|
const style$4 = "";
|
|
82796
82001
|
const logger$w = getLogger("heading-collapse");
|
|
@@ -83618,28 +82823,28 @@ ${docStr}
|
|
|
83618
82823
|
getOptions: getOptions$5,
|
|
83619
82824
|
getBlockProperties: getBlockProperties$7
|
|
83620
82825
|
};
|
|
83621
|
-
const zhCN$
|
|
82826
|
+
const zhCN$d = {
|
|
83622
82827
|
toc: {
|
|
83623
82828
|
name: "\u6807\u9898\u76EE\u5F55",
|
|
83624
82829
|
empty: "\u5F53\u524D\u9875\u9762\u6682\u65E0\u6807\u9898\u6837\u5F0F\u6587\u672C",
|
|
83625
82830
|
abstract: "\u6807\u9898\u76EE\u5F55"
|
|
83626
82831
|
}
|
|
83627
82832
|
};
|
|
83628
|
-
const zhHK$
|
|
82833
|
+
const zhHK$d = {
|
|
83629
82834
|
toc: {
|
|
83630
82835
|
name: "\u6A19\u984C\u76EE\u9304",
|
|
83631
82836
|
empty: "\u7576\u524D\u9801\u9762\u66AB\u7121\u6A19\u984C\u6A23\u5F0F\u6587\u672C",
|
|
83632
82837
|
abstract: "\u6A19\u984C\u76EE\u9304"
|
|
83633
82838
|
}
|
|
83634
82839
|
};
|
|
83635
|
-
const enUS$
|
|
82840
|
+
const enUS$d = {
|
|
83636
82841
|
toc: {
|
|
83637
82842
|
name: "Toc",
|
|
83638
82843
|
empty: "No heading on this page",
|
|
83639
82844
|
abstract: "Table of contents"
|
|
83640
82845
|
}
|
|
83641
82846
|
};
|
|
83642
|
-
const jaJP$
|
|
82847
|
+
const jaJP$d = {
|
|
83643
82848
|
toc: {
|
|
83644
82849
|
name: "Toc",
|
|
83645
82850
|
empty: "\u3053\u306E\u30DA\u30FC\u30B8\u306B\u306F\u898B\u51FA\u3057\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
@@ -83647,10 +82852,10 @@ ${docStr}
|
|
|
83647
82852
|
}
|
|
83648
82853
|
};
|
|
83649
82854
|
i18n$1.mergeLang({
|
|
83650
|
-
"zh-CN": zhCN$
|
|
83651
|
-
"zh-HK": zhHK$
|
|
83652
|
-
"en-US": enUS$
|
|
83653
|
-
"ja-JP": jaJP$
|
|
82855
|
+
"zh-CN": zhCN$d,
|
|
82856
|
+
"zh-HK": zhHK$d,
|
|
82857
|
+
"en-US": enUS$d,
|
|
82858
|
+
"ja-JP": jaJP$d
|
|
83654
82859
|
});
|
|
83655
82860
|
function isHeadingBlock(block) {
|
|
83656
82861
|
return !!block.getAttribute("data-style-heading");
|
|
@@ -84127,7 +83332,7 @@ ${docStr}
|
|
|
84127
83332
|
}
|
|
84128
83333
|
}
|
|
84129
83334
|
const mentionStyle = "";
|
|
84130
|
-
const zhCN$
|
|
83335
|
+
const zhCN$c = {
|
|
84131
83336
|
mention: {
|
|
84132
83337
|
abstract: "\u6210\u5458",
|
|
84133
83338
|
placeholder: "\u641C\u7D22\u6210\u5458",
|
|
@@ -84135,7 +83340,7 @@ ${docStr}
|
|
|
84135
83340
|
header: "\u63D0\u53CA\u6210\u5458"
|
|
84136
83341
|
}
|
|
84137
83342
|
};
|
|
84138
|
-
const zhHK$
|
|
83343
|
+
const zhHK$c = {
|
|
84139
83344
|
mention: {
|
|
84140
83345
|
abstract: "\u6210\u54E1",
|
|
84141
83346
|
placeholder: "\u641C\u7D22\u6210\u54E1",
|
|
@@ -84143,7 +83348,7 @@ ${docStr}
|
|
|
84143
83348
|
header: "\u63D0\u53CA\u6210\u54E1"
|
|
84144
83349
|
}
|
|
84145
83350
|
};
|
|
84146
|
-
const enUS$
|
|
83351
|
+
const enUS$c = {
|
|
84147
83352
|
mention: {
|
|
84148
83353
|
abstract: "Member",
|
|
84149
83354
|
placeholder: "Please select a member",
|
|
@@ -84151,7 +83356,7 @@ ${docStr}
|
|
|
84151
83356
|
header: "Mention members"
|
|
84152
83357
|
}
|
|
84153
83358
|
};
|
|
84154
|
-
const jaJP$
|
|
83359
|
+
const jaJP$c = {
|
|
84155
83360
|
mention: {
|
|
84156
83361
|
abstract: "\u30E1\u30F3\u30D0\u30FC",
|
|
84157
83362
|
placeholder: "\u30E1\u30F3\u30D0\u30FC\u3092\u691C\u7D22",
|
|
@@ -84160,12 +83365,12 @@ ${docStr}
|
|
|
84160
83365
|
}
|
|
84161
83366
|
};
|
|
84162
83367
|
i18n$1.mergeLang({
|
|
84163
|
-
"zh-CN": zhCN$
|
|
84164
|
-
"zh-HK": zhHK$
|
|
84165
|
-
"en-US": enUS$
|
|
84166
|
-
"ja-JP": jaJP$
|
|
83368
|
+
"zh-CN": zhCN$c,
|
|
83369
|
+
"zh-HK": zhHK$c,
|
|
83370
|
+
"en-US": enUS$c,
|
|
83371
|
+
"ja-JP": jaJP$c
|
|
84167
83372
|
});
|
|
84168
|
-
const zhCN$
|
|
83373
|
+
const zhCN$b = {
|
|
84169
83374
|
templates: {
|
|
84170
83375
|
title: "\u9009\u62E9\u6A21\u677F\uFF0C\u5FEB\u901F\u521B\u5EFA",
|
|
84171
83376
|
create: "\u65B0\u5EFA\u6A21\u677F",
|
|
@@ -84173,7 +83378,7 @@ ${docStr}
|
|
|
84173
83378
|
customizedMark: "\u81EA\u5B9A\u4E49"
|
|
84174
83379
|
}
|
|
84175
83380
|
};
|
|
84176
|
-
const zhHK$
|
|
83381
|
+
const zhHK$b = {
|
|
84177
83382
|
templates: {
|
|
84178
83383
|
title: "\u9078\u64C7\u6A21\u677F\uFF0C\u5FEB\u901F\u5275\u5EFA",
|
|
84179
83384
|
create: "\u65B0\u5EFA\u6A21\u677F",
|
|
@@ -84181,7 +83386,7 @@ ${docStr}
|
|
|
84181
83386
|
customizedMark: "\u81EA\u5B9A\u7FA9"
|
|
84182
83387
|
}
|
|
84183
83388
|
};
|
|
84184
|
-
const enUS$
|
|
83389
|
+
const enUS$b = {
|
|
84185
83390
|
templates: {
|
|
84186
83391
|
title: "Choose a template",
|
|
84187
83392
|
create: "New template",
|
|
@@ -84189,7 +83394,7 @@ ${docStr}
|
|
|
84189
83394
|
customizedMark: "Custom"
|
|
84190
83395
|
}
|
|
84191
83396
|
};
|
|
84192
|
-
const jaJP$
|
|
83397
|
+
const jaJP$b = {
|
|
84193
83398
|
templates: {
|
|
84194
83399
|
title: "\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E",
|
|
84195
83400
|
create: "\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u65B0\u898F\u4F5C\u6210",
|
|
@@ -84198,10 +83403,10 @@ ${docStr}
|
|
|
84198
83403
|
}
|
|
84199
83404
|
};
|
|
84200
83405
|
i18n$1.mergeLang({
|
|
84201
|
-
"zh-CN": zhCN$
|
|
84202
|
-
"zh-HK": zhHK$
|
|
84203
|
-
"en-US": enUS$
|
|
84204
|
-
"ja-JP": jaJP$
|
|
83406
|
+
"zh-CN": zhCN$b,
|
|
83407
|
+
"zh-HK": zhHK$b,
|
|
83408
|
+
"en-US": enUS$b,
|
|
83409
|
+
"ja-JP": jaJP$b
|
|
84205
83410
|
});
|
|
84206
83411
|
const selectTemplates = "";
|
|
84207
83412
|
const CHOOSE_TEMPLATE_IMAGE_SRC = "data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjEyMCIgaGVpZ2h0PSIxMjAiIHZpZXdCb3g9IjAgMCAxMjAgMTIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cmVjdCB3aWR0aD0iMTIwIiBoZWlnaHQ9IjEyMCIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTQ4IDU5QzQ4IDU0LjU4MTcgNTEuNTgxNyA1MSA1NiA1MUg5M0M5OC41MjI4IDUxIDEwMyA1NS40NzcyIDEwMyA2MVY4OEMxMDMgOTEuODY2IDk5Ljg2NiA5NSA5NiA5NUg1NkM1MS41ODE3IDk1IDQ4IDkxLjQxODMgNDggODdWNTlaIiBmaWxsPSIjRDZFOUZBIi8+CjxwYXRoIGQ9Ik0xOCA2NEMxOCA2Mi4zNDMxIDE5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
84388
83593
|
callout: {
|
|
84389
83594
|
name: "\u9AD8\u4EAE\u5757",
|
|
84390
83595
|
command: {
|
|
@@ -84398,7 +83603,7 @@ ${docStr}
|
|
|
84398
83603
|
}
|
|
84399
83604
|
}
|
|
84400
83605
|
};
|
|
84401
|
-
const zhHK$
|
|
83606
|
+
const zhHK$a = {
|
|
84402
83607
|
callout: {
|
|
84403
83608
|
name: "\u9AD8\u4EAE\u584A",
|
|
84404
83609
|
command: {
|
|
@@ -84412,7 +83617,7 @@ ${docStr}
|
|
|
84412
83617
|
}
|
|
84413
83618
|
}
|
|
84414
83619
|
};
|
|
84415
|
-
const enUS$
|
|
83620
|
+
const enUS$a = {
|
|
84416
83621
|
callout: {
|
|
84417
83622
|
name: "Callout",
|
|
84418
83623
|
command: {
|
|
@@ -84426,7 +83631,7 @@ ${docStr}
|
|
|
84426
83631
|
}
|
|
84427
83632
|
}
|
|
84428
83633
|
};
|
|
84429
|
-
const jaJP$
|
|
83634
|
+
const jaJP$a = {
|
|
84430
83635
|
callout: {
|
|
84431
83636
|
name: "\u30E1\u30C3\u30BB\u30FC\u30B8\u30DC\u30C3\u30AF\u30B9",
|
|
84432
83637
|
command: {
|
|
@@ -84441,10 +83646,10 @@ ${docStr}
|
|
|
84441
83646
|
}
|
|
84442
83647
|
};
|
|
84443
83648
|
i18n$1.mergeLang({
|
|
84444
|
-
"zh-CN": zhCN$
|
|
84445
|
-
"zh-HK": zhHK$
|
|
84446
|
-
"en-US": enUS$
|
|
84447
|
-
"ja-JP": jaJP$
|
|
83649
|
+
"zh-CN": zhCN$a,
|
|
83650
|
+
"zh-HK": zhHK$a,
|
|
83651
|
+
"en-US": enUS$a,
|
|
83652
|
+
"ja-JP": jaJP$a
|
|
84448
83653
|
});
|
|
84449
83654
|
function isCalloutBlockData(v) {
|
|
84450
83655
|
return v.type === "callout";
|
|
@@ -85961,7 +85166,7 @@ ${docStr}
|
|
|
85961
85166
|
mermaidText: "",
|
|
85962
85167
|
src: ""
|
|
85963
85168
|
}));
|
|
85964
|
-
const zhCN$
|
|
85169
|
+
const zhCN$9 = {
|
|
85965
85170
|
graph: {
|
|
85966
85171
|
empty: "\u8F93\u5165\u4EE3\u7801\u5C55\u793A\u7ED8\u56FE",
|
|
85967
85172
|
readonlyEmpty: "\u6682\u65E0\u7ED8\u56FE",
|
|
@@ -85978,7 +85183,7 @@ ${docStr}
|
|
|
85978
85183
|
}
|
|
85979
85184
|
}
|
|
85980
85185
|
};
|
|
85981
|
-
const zhHK$
|
|
85186
|
+
const zhHK$9 = {
|
|
85982
85187
|
graph: {
|
|
85983
85188
|
empty: "\u8F38\u5165\u4EE3\u78BC\u5C55\u793A\u7E6A\u5716",
|
|
85984
85189
|
readonlyEmpty: "\u66AB\u7121\u7E6A\u5716",
|
|
@@ -85995,7 +85200,7 @@ ${docStr}
|
|
|
85995
85200
|
}
|
|
85996
85201
|
}
|
|
85997
85202
|
};
|
|
85998
|
-
const enUS$
|
|
85203
|
+
const enUS$9 = {
|
|
85999
85204
|
graph: {
|
|
86000
85205
|
empty: "Input code to generate diagram",
|
|
86001
85206
|
readonlyEmpty: "No diagrams.",
|
|
@@ -86012,7 +85217,7 @@ ${docStr}
|
|
|
86012
85217
|
}
|
|
86013
85218
|
}
|
|
86014
85219
|
};
|
|
86015
|
-
const jaJP$
|
|
85220
|
+
const jaJP$9 = {
|
|
86016
85221
|
graph: {
|
|
86017
85222
|
empty: "\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u56F3\u8868\u3092\u8868\u793A\u3057\u307E\u3059\u3002",
|
|
86018
85223
|
readonlyEmpty: "\u30C0\u30A4\u30A2\u30B0\u30E9\u30E0\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
@@ -86030,10 +85235,10 @@ ${docStr}
|
|
|
86030
85235
|
}
|
|
86031
85236
|
};
|
|
86032
85237
|
i18n$1.mergeLang({
|
|
86033
|
-
"zh-CN": zhCN$
|
|
86034
|
-
"zh-HK": zhHK$
|
|
86035
|
-
"en-US": enUS$
|
|
86036
|
-
"ja-JP": jaJP$
|
|
85238
|
+
"zh-CN": zhCN$9,
|
|
85239
|
+
"zh-HK": zhHK$9,
|
|
85240
|
+
"en-US": enUS$9,
|
|
85241
|
+
"ja-JP": jaJP$9
|
|
86037
85242
|
});
|
|
86038
85243
|
function createEmbedContent$5(editor, content, block) {
|
|
86039
85244
|
const mermaid = MermaidInstance.get(editor, block.id);
|
|
@@ -87006,7 +86211,7 @@ ${data2.flowchartText}
|
|
|
87006
86211
|
});
|
|
87007
86212
|
return { ...properties, abstract: i18n$1.t("drawio.abstract") };
|
|
87008
86213
|
}
|
|
87009
|
-
const enUS$
|
|
86214
|
+
const enUS$8 = {
|
|
87010
86215
|
drawio: {
|
|
87011
86216
|
title: "Flowchart/UML",
|
|
87012
86217
|
empty: "Empty graph",
|
|
@@ -87024,7 +86229,7 @@ ${data2.flowchartText}
|
|
|
87024
86229
|
}
|
|
87025
86230
|
}
|
|
87026
86231
|
};
|
|
87027
|
-
const zhCN$
|
|
86232
|
+
const zhCN$8 = {
|
|
87028
86233
|
drawio: {
|
|
87029
86234
|
title: "\u6D41\u7A0B\u56FE/UML",
|
|
87030
86235
|
empty: "\u7A7A\u56FE\u8868",
|
|
@@ -87042,7 +86247,7 @@ ${data2.flowchartText}
|
|
|
87042
86247
|
}
|
|
87043
86248
|
}
|
|
87044
86249
|
};
|
|
87045
|
-
const zhHK$
|
|
86250
|
+
const zhHK$8 = {
|
|
87046
86251
|
drawio: {
|
|
87047
86252
|
title: "\u6D41\u7A0B\u5716/UML",
|
|
87048
86253
|
empty: "\u7A7A\u5716\u8868",
|
|
@@ -87060,7 +86265,7 @@ ${data2.flowchartText}
|
|
|
87060
86265
|
}
|
|
87061
86266
|
}
|
|
87062
86267
|
};
|
|
87063
|
-
const jaJP$
|
|
86268
|
+
const jaJP$8 = {
|
|
87064
86269
|
drawio: {
|
|
87065
86270
|
title: "\u30D5\u30ED\u30FC\u30C1\u30E3\u30FC\u30C8/UML",
|
|
87066
86271
|
empty: "\u30B0\u30E9\u30D5\u30C7\u30FC\u30BF\u306A\u3057",
|
|
@@ -87079,10 +86284,10 @@ ${data2.flowchartText}
|
|
|
87079
86284
|
}
|
|
87080
86285
|
};
|
|
87081
86286
|
const langs = {
|
|
87082
|
-
"en-US": enUS$
|
|
87083
|
-
"zh-CN": zhCN$
|
|
87084
|
-
"zh-HK": zhHK$
|
|
87085
|
-
"ja-JP": jaJP$
|
|
86287
|
+
"en-US": enUS$8,
|
|
86288
|
+
"zh-CN": zhCN$8,
|
|
86289
|
+
"zh-HK": zhHK$8,
|
|
86290
|
+
"ja-JP": jaJP$8
|
|
87086
86291
|
};
|
|
87087
86292
|
i18n$1.mergeLang(langs);
|
|
87088
86293
|
const logger$h = getLogger("embed-block-drawio");
|
|
@@ -88149,7 +87354,7 @@ ${data2.plantumlText}
|
|
|
88149
87354
|
this.editor.removeListener("selectionChanged", this.handleSelectionChanged);
|
|
88150
87355
|
}
|
|
88151
87356
|
}
|
|
88152
|
-
const zhCN$
|
|
87357
|
+
const zhCN$7 = {
|
|
88153
87358
|
mobile: {
|
|
88154
87359
|
insert: "\u63D2\u5165",
|
|
88155
87360
|
commands: {
|
|
@@ -88157,7 +87362,7 @@ ${data2.plantumlText}
|
|
|
88157
87362
|
}
|
|
88158
87363
|
}
|
|
88159
87364
|
};
|
|
88160
|
-
const zhHK$
|
|
87365
|
+
const zhHK$7 = {
|
|
88161
87366
|
mobile: {
|
|
88162
87367
|
insert: "\u63D2\u5165",
|
|
88163
87368
|
commands: {
|
|
@@ -88165,7 +87370,7 @@ ${data2.plantumlText}
|
|
|
88165
87370
|
}
|
|
88166
87371
|
}
|
|
88167
87372
|
};
|
|
88168
|
-
const enUS$
|
|
87373
|
+
const enUS$7 = {
|
|
88169
87374
|
mobile: {
|
|
88170
87375
|
insert: "Insert",
|
|
88171
87376
|
commands: {
|
|
@@ -88173,7 +87378,7 @@ ${data2.plantumlText}
|
|
|
88173
87378
|
}
|
|
88174
87379
|
}
|
|
88175
87380
|
};
|
|
88176
|
-
const jaJP$
|
|
87381
|
+
const jaJP$7 = {
|
|
88177
87382
|
mobile: {
|
|
88178
87383
|
insert: "\u633F\u5165",
|
|
88179
87384
|
commands: {
|
|
@@ -88182,10 +87387,10 @@ ${data2.plantumlText}
|
|
|
88182
87387
|
}
|
|
88183
87388
|
};
|
|
88184
87389
|
i18n$1.mergeLang({
|
|
88185
|
-
"zh-CN": zhCN$
|
|
88186
|
-
"zh-HK": zhHK$
|
|
88187
|
-
"en-US": enUS$
|
|
88188
|
-
"ja-JP": jaJP$
|
|
87390
|
+
"zh-CN": zhCN$7,
|
|
87391
|
+
"zh-HK": zhHK$7,
|
|
87392
|
+
"en-US": enUS$7,
|
|
87393
|
+
"ja-JP": jaJP$7
|
|
88189
87394
|
});
|
|
88190
87395
|
const mobileHelperStyles = "";
|
|
88191
87396
|
const LONG_PRESS_DELAY = 800;
|
|
@@ -88305,7 +87510,7 @@ ${data2.plantumlText}
|
|
|
88305
87510
|
);
|
|
88306
87511
|
return contents;
|
|
88307
87512
|
}
|
|
88308
|
-
const zhCN$
|
|
87513
|
+
const zhCN$6 = {
|
|
88309
87514
|
layout: {
|
|
88310
87515
|
title: "\u5206\u680F",
|
|
88311
87516
|
columnDrag: "\u957F\u6309\u62D6\u62FD\n\u70B9\u51FB\u53EF\u64CD\u4F5C\u5220\u9664",
|
|
@@ -88314,7 +87519,7 @@ ${data2.plantumlText}
|
|
|
88314
87519
|
currentCols: "{currentColumns} \u680F"
|
|
88315
87520
|
}
|
|
88316
87521
|
};
|
|
88317
|
-
const zhHK$
|
|
87522
|
+
const zhHK$6 = {
|
|
88318
87523
|
layout: {
|
|
88319
87524
|
title: "\u5206\u6B04",
|
|
88320
87525
|
columnDrag: "\u9577\u6309\u62D6\u62FD\n\u9EDE\u64CA\u53EF\u64CD\u4F5C\u522A\u9664",
|
|
@@ -88323,7 +87528,7 @@ ${data2.plantumlText}
|
|
|
88323
87528
|
currentCols: "{currentColumns} \u6B04"
|
|
88324
87529
|
}
|
|
88325
87530
|
};
|
|
88326
|
-
const enUS$
|
|
87531
|
+
const enUS$6 = {
|
|
88327
87532
|
layout: {
|
|
88328
87533
|
title: "Column",
|
|
88329
87534
|
columnDrag: "Click and hold the column to drag it.\nClick to delete it.",
|
|
@@ -88332,7 +87537,7 @@ ${data2.plantumlText}
|
|
|
88332
87537
|
currentCols: "{currentColumns} columns"
|
|
88333
87538
|
}
|
|
88334
87539
|
};
|
|
88335
|
-
const jaJP$
|
|
87540
|
+
const jaJP$6 = {
|
|
88336
87541
|
layout: {
|
|
88337
87542
|
title: "\u6BB5\u7D44\u307F",
|
|
88338
87543
|
columnDrag: "\u30C9\u30E9\u30C3\u30B0\u3059\u308B\u306B\u306F\u3001\u30DE\u30A6\u30B9\u306E\u30DC\u30BF\u30F3\u3092\u62BC\u3057\u306A\u304C\u3089\u79FB\u52D5\u3057\u307E\u3059\u3002\n\u524A\u9664\u3059\u308B\u306B\u306F\u3001\u30AF\u30EA\u30C3\u30AF\u3057\u307E\u3059\u3002",
|
|
@@ -88342,10 +87547,10 @@ ${data2.plantumlText}
|
|
|
88342
87547
|
}
|
|
88343
87548
|
};
|
|
88344
87549
|
i18n$1.mergeLang({
|
|
88345
|
-
"zh-CN": zhCN$
|
|
88346
|
-
"zh-HK": zhHK$
|
|
88347
|
-
"en-US": enUS$
|
|
88348
|
-
"ja-JP": jaJP$
|
|
87550
|
+
"zh-CN": zhCN$6,
|
|
87551
|
+
"zh-HK": zhHK$6,
|
|
87552
|
+
"en-US": enUS$6,
|
|
87553
|
+
"ja-JP": jaJP$6
|
|
88349
87554
|
});
|
|
88350
87555
|
const layoutStyles = "";
|
|
88351
87556
|
const LAYOUT_NAME = "LayoutBlock";
|
|
@@ -90413,7 +89618,7 @@ ${data2.plantumlText}
|
|
|
90413
89618
|
handleUpdateBlock,
|
|
90414
89619
|
convertTo: convertTo$1
|
|
90415
89620
|
};
|
|
90416
|
-
const zhCN$
|
|
89621
|
+
const zhCN$5 = {
|
|
90417
89622
|
webpage: {
|
|
90418
89623
|
title: "\u7F51\u9875",
|
|
90419
89624
|
youku: "\u4F18\u9177\u89C6\u9891",
|
|
@@ -90439,7 +89644,7 @@ ${data2.plantumlText}
|
|
|
90439
89644
|
}
|
|
90440
89645
|
}
|
|
90441
89646
|
};
|
|
90442
|
-
const zhHK$
|
|
89647
|
+
const zhHK$5 = {
|
|
90443
89648
|
webpage: {
|
|
90444
89649
|
title: "\u7DB2\u9801",
|
|
90445
89650
|
youku: "\u512A\u9177\u8996\u983B",
|
|
@@ -90465,7 +89670,7 @@ ${data2.plantumlText}
|
|
|
90465
89670
|
}
|
|
90466
89671
|
}
|
|
90467
89672
|
};
|
|
90468
|
-
const enUS$
|
|
89673
|
+
const enUS$5 = {
|
|
90469
89674
|
webpage: {
|
|
90470
89675
|
title: "Webpage",
|
|
90471
89676
|
youku: "Youku",
|
|
@@ -90491,7 +89696,7 @@ ${data2.plantumlText}
|
|
|
90491
89696
|
}
|
|
90492
89697
|
}
|
|
90493
89698
|
};
|
|
90494
|
-
const jaJP$
|
|
89699
|
+
const jaJP$5 = {
|
|
90495
89700
|
webpage: {
|
|
90496
89701
|
title: "Web \u30DA\u30FC\u30B8",
|
|
90497
89702
|
youku: "Youku \u52D5\u753B",
|
|
@@ -90518,42 +89723,42 @@ ${data2.plantumlText}
|
|
|
90518
89723
|
}
|
|
90519
89724
|
};
|
|
90520
89725
|
i18n$1.mergeLang({
|
|
90521
|
-
"zh-CN": zhCN$
|
|
90522
|
-
"zh-HK": zhHK$
|
|
90523
|
-
"en-US": enUS$
|
|
90524
|
-
"ja-JP": jaJP$
|
|
89726
|
+
"zh-CN": zhCN$5,
|
|
89727
|
+
"zh-HK": zhHK$5,
|
|
89728
|
+
"en-US": enUS$5,
|
|
89729
|
+
"ja-JP": jaJP$5
|
|
90525
89730
|
});
|
|
90526
89731
|
const webpageStyle = "";
|
|
90527
89732
|
const DIVIDING_LINE_EMBED = "hr";
|
|
90528
|
-
const zhCN$
|
|
89733
|
+
const zhCN$4 = {
|
|
90529
89734
|
dividingLine: {
|
|
90530
89735
|
type: "\u5206\u5272\u7EBF",
|
|
90531
89736
|
abstract: "\u5206\u5272\u7EBF"
|
|
90532
89737
|
}
|
|
90533
89738
|
};
|
|
90534
|
-
const zhHK$
|
|
89739
|
+
const zhHK$4 = {
|
|
90535
89740
|
dividingLine: {
|
|
90536
89741
|
type: "\u5206\u5272\u7DDA",
|
|
90537
89742
|
abstract: "\u5206\u5272\u7DDA"
|
|
90538
89743
|
}
|
|
90539
89744
|
};
|
|
90540
|
-
const enUS$
|
|
89745
|
+
const enUS$4 = {
|
|
90541
89746
|
dividingLine: {
|
|
90542
89747
|
type: "Dividing-Line",
|
|
90543
89748
|
abstract: "Dividing-Line"
|
|
90544
89749
|
}
|
|
90545
89750
|
};
|
|
90546
|
-
const jaJP$
|
|
89751
|
+
const jaJP$4 = {
|
|
90547
89752
|
dividingLine: {
|
|
90548
89753
|
type: "\u533A\u5207\u308A\u7DDA",
|
|
90549
89754
|
abstract: "\u533A\u5207\u308A\u7DDA"
|
|
90550
89755
|
}
|
|
90551
89756
|
};
|
|
90552
89757
|
i18n$1.mergeLang({
|
|
90553
|
-
"zh-CN": zhCN$
|
|
90554
|
-
"zh-HK": zhHK$
|
|
90555
|
-
"en-US": enUS$
|
|
90556
|
-
"ja-JP": jaJP$
|
|
89758
|
+
"zh-CN": zhCN$4,
|
|
89759
|
+
"zh-HK": zhHK$4,
|
|
89760
|
+
"en-US": enUS$4,
|
|
89761
|
+
"ja-JP": jaJP$4
|
|
90557
89762
|
});
|
|
90558
89763
|
function createEmbedContent(_editor, content) {
|
|
90559
89764
|
const hrElementContainer = createElement("div", ["editor-embed-container"], content);
|
|
@@ -90612,7 +89817,7 @@ ${data2.plantumlText}
|
|
|
90612
89817
|
};
|
|
90613
89818
|
const index$1 = "";
|
|
90614
89819
|
const index = "";
|
|
90615
|
-
const zhCN$
|
|
89820
|
+
const zhCN$3 = {
|
|
90616
89821
|
media: {
|
|
90617
89822
|
upload: {
|
|
90618
89823
|
failed: '<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>',
|
|
@@ -90631,7 +89836,7 @@ ${data2.plantumlText}
|
|
|
90631
89836
|
}
|
|
90632
89837
|
}
|
|
90633
89838
|
};
|
|
90634
|
-
const zhHK$
|
|
89839
|
+
const zhHK$3 = {
|
|
90635
89840
|
media: {
|
|
90636
89841
|
upload: {
|
|
90637
89842
|
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>',
|
|
@@ -90650,7 +89855,7 @@ ${data2.plantumlText}
|
|
|
90650
89855
|
}
|
|
90651
89856
|
}
|
|
90652
89857
|
};
|
|
90653
|
-
const enUS$
|
|
89858
|
+
const enUS$3 = {
|
|
90654
89859
|
media: {
|
|
90655
89860
|
upload: {
|
|
90656
89861
|
failed: '<div class="line-1">{name} upload failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>',
|
|
@@ -90669,7 +89874,7 @@ ${data2.plantumlText}
|
|
|
90669
89874
|
}
|
|
90670
89875
|
}
|
|
90671
89876
|
};
|
|
90672
|
-
const jaJP$
|
|
89877
|
+
const jaJP$3 = {
|
|
90673
89878
|
media: {
|
|
90674
89879
|
upload: {
|
|
90675
89880
|
failed: '<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>',
|
|
@@ -90689,10 +89894,10 @@ ${data2.plantumlText}
|
|
|
90689
89894
|
}
|
|
90690
89895
|
};
|
|
90691
89896
|
i18n$1.mergeLang({
|
|
90692
|
-
"zh-CN": zhCN$
|
|
90693
|
-
"zh-HK": zhHK$
|
|
90694
|
-
"en-US": enUS$
|
|
90695
|
-
"ja-JP": jaJP$
|
|
89897
|
+
"zh-CN": zhCN$3,
|
|
89898
|
+
"zh-HK": zhHK$3,
|
|
89899
|
+
"en-US": enUS$3,
|
|
89900
|
+
"ja-JP": jaJP$3
|
|
90696
89901
|
});
|
|
90697
89902
|
var MediaType = /* @__PURE__ */ ((MediaType2) => {
|
|
90698
89903
|
MediaType2["AUDIO"] = "audio";
|
|
@@ -91692,9 +90897,6 @@ ${data2.plantumlText}
|
|
|
91692
90897
|
localUpdateComment(comment, doc2) {
|
|
91693
90898
|
this.doc.localUpdateComment(comment, doc2);
|
|
91694
90899
|
}
|
|
91695
|
-
localUpdateCommentResolver(commentId, resolver) {
|
|
91696
|
-
this.doc.localUpdateCommentResolver(commentId, resolver);
|
|
91697
|
-
}
|
|
91698
90900
|
onCreateComment(commentId, local) {
|
|
91699
90901
|
Array.from(this.listeners.values()).forEach((listener) => listener.onCreateComment(commentId, local));
|
|
91700
90902
|
}
|
|
@@ -91704,9 +90906,6 @@ ${data2.plantumlText}
|
|
|
91704
90906
|
onUpdateComment(commentId, local) {
|
|
91705
90907
|
Array.from(this.listeners.values()).forEach((listener) => listener.onUpdateComment(commentId, local));
|
|
91706
90908
|
}
|
|
91707
|
-
onUpdateCommentResolver(commentId, local) {
|
|
91708
|
-
Array.from(this.listeners.values()).forEach((listener) => listener.onUpdateCommentResolver(commentId, local));
|
|
91709
|
-
}
|
|
91710
90909
|
addListener(callback) {
|
|
91711
90910
|
this.listeners.add(callback);
|
|
91712
90911
|
}
|
|
@@ -91732,10 +90931,9 @@ ${data2.plantumlText}
|
|
|
91732
90931
|
constructor(editor, localDoc) {
|
|
91733
90932
|
__publicField(this, "_listeners", /* @__PURE__ */ new Set());
|
|
91734
90933
|
__publicField(this, "_doc");
|
|
91735
|
-
var _a, _b;
|
|
91736
90934
|
this.editor = editor;
|
|
91737
90935
|
this.localDoc = localDoc;
|
|
91738
|
-
this._doc =
|
|
90936
|
+
this._doc = this.localDoc.toJSON();
|
|
91739
90937
|
}
|
|
91740
90938
|
get doc() {
|
|
91741
90939
|
return this._doc;
|
|
@@ -91790,17 +90988,6 @@ ${data2.plantumlText}
|
|
|
91790
90988
|
this._doc.comments[id] = shareDBComment;
|
|
91791
90989
|
Array.from(this._listeners.values()).forEach((listener) => listener.onUpdateComment(id, true));
|
|
91792
90990
|
}
|
|
91793
|
-
localUpdateCommentResolver(commentId, resolver) {
|
|
91794
|
-
const comment = this.getComment(commentId);
|
|
91795
|
-
if (comment) {
|
|
91796
|
-
if (resolver) {
|
|
91797
|
-
comment.resolver = resolver;
|
|
91798
|
-
} else {
|
|
91799
|
-
delete comment.resolver;
|
|
91800
|
-
}
|
|
91801
|
-
Array.from(this._listeners.values()).forEach((listener) => listener.onUpdateCommentResolver(commentId, true));
|
|
91802
|
-
}
|
|
91803
|
-
}
|
|
91804
90991
|
createCommentEditor(parent, childDoc) {
|
|
91805
90992
|
const commentEditor = createCommentEditor(this.editor, {
|
|
91806
90993
|
root: parent,
|
|
@@ -91816,7 +91003,7 @@ ${data2.plantumlText}
|
|
|
91816
91003
|
return false;
|
|
91817
91004
|
}
|
|
91818
91005
|
}
|
|
91819
|
-
const zhCN$
|
|
91006
|
+
const zhCN$2 = {
|
|
91820
91007
|
placeholder: {
|
|
91821
91008
|
common: {
|
|
91822
91009
|
title: "\u8BF7\u8F93\u5165\u6807\u9898",
|
|
@@ -91846,7 +91033,7 @@ ${data2.plantumlText}
|
|
|
91846
91033
|
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"
|
|
91847
91034
|
}
|
|
91848
91035
|
};
|
|
91849
|
-
const zhHK$
|
|
91036
|
+
const zhHK$2 = {
|
|
91850
91037
|
placeholder: {
|
|
91851
91038
|
common: {
|
|
91852
91039
|
title: "\u8ACB\u8F38\u5165\u6A19\u984C",
|
|
@@ -91876,7 +91063,7 @@ ${data2.plantumlText}
|
|
|
91876
91063
|
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"
|
|
91877
91064
|
}
|
|
91878
91065
|
};
|
|
91879
|
-
const enUS$
|
|
91066
|
+
const enUS$2 = {
|
|
91880
91067
|
placeholder: {
|
|
91881
91068
|
common: {
|
|
91882
91069
|
title: "Enter a title",
|
|
@@ -91906,7 +91093,7 @@ ${data2.plantumlText}
|
|
|
91906
91093
|
uploadResourceNoPopup: "Resource upload error. Editing is temporarily disabled to prevent data loss. Please copy any unsaved changes and refresh the page to try again."
|
|
91907
91094
|
}
|
|
91908
91095
|
};
|
|
91909
|
-
const jaJP$
|
|
91096
|
+
const jaJP$2 = {
|
|
91910
91097
|
placeholder: {
|
|
91911
91098
|
common: {
|
|
91912
91099
|
title: "\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
@@ -91937,10 +91124,10 @@ ${data2.plantumlText}
|
|
|
91937
91124
|
}
|
|
91938
91125
|
};
|
|
91939
91126
|
i18n$1.mergeLang({
|
|
91940
|
-
"zh-CN": zhCN$
|
|
91941
|
-
"zh-HK": zhHK$
|
|
91942
|
-
"en-US": enUS$
|
|
91943
|
-
"ja-JP": jaJP$
|
|
91127
|
+
"zh-CN": zhCN$2,
|
|
91128
|
+
"zh-HK": zhHK$2,
|
|
91129
|
+
"en-US": enUS$2,
|
|
91130
|
+
"ja-JP": jaJP$2
|
|
91944
91131
|
});
|
|
91945
91132
|
const style$1 = "";
|
|
91946
91133
|
class AutoNewLine {
|
|
@@ -92219,6 +91406,36 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
92219
91406
|
return !!document.querySelector(".editor-popup-info-container");
|
|
92220
91407
|
}
|
|
92221
91408
|
}
|
|
91409
|
+
const zhCN$1 = {
|
|
91410
|
+
toDocx: {
|
|
91411
|
+
videoUnsupportedExport: "[\u89C6\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",
|
|
91412
|
+
audioUnsupportedExport: "[\u97F3\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]"
|
|
91413
|
+
}
|
|
91414
|
+
};
|
|
91415
|
+
const zhHK$1 = {
|
|
91416
|
+
toDocx: {
|
|
91417
|
+
videoUnsupportedExport: "[\u8996\u983B\u66AB\u4E0D\u652F\u6301\u5C0E\u51FA]",
|
|
91418
|
+
audioUnsupportedExport: "[\u97F3\u983B\u66AB\u4E0D\u652F\u6301\u5C0E\u51FA]"
|
|
91419
|
+
}
|
|
91420
|
+
};
|
|
91421
|
+
const enUS$1 = {
|
|
91422
|
+
toDocx: {
|
|
91423
|
+
videoUnsupportedExport: "[Export unavailable for video content]",
|
|
91424
|
+
audioUnsupportedExport: "[Export unavailable for audio content]"
|
|
91425
|
+
}
|
|
91426
|
+
};
|
|
91427
|
+
const jaJP$1 = {
|
|
91428
|
+
toDocx: {
|
|
91429
|
+
videoUnsupportedExport: "[\u52D5\u753B\u306E\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u306B\u306F\u5BFE\u5FDC\u3057\u3066\u304A\u308A\u307E\u305B\u3093]",
|
|
91430
|
+
audioUnsupportedExport: "[\u97F3\u58F0\u306E\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u306B\u306F\u5BFE\u5FDC\u3057\u3066\u304A\u308A\u307E\u305B\u3093]"
|
|
91431
|
+
}
|
|
91432
|
+
};
|
|
91433
|
+
i18n$1.mergeLang({
|
|
91434
|
+
"zh-CN": zhCN$1,
|
|
91435
|
+
"zh-HK": zhHK$1,
|
|
91436
|
+
"en-US": enUS$1,
|
|
91437
|
+
"ja-JP": jaJP$1
|
|
91438
|
+
});
|
|
92222
91439
|
const templateBase64 = "UEsDBBQABgAIAAAAIQBk9WPugQEAACkGAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAACEA+JXI7/wOAADzmQAADwAAAAAAAAAAAAAAAAAfIgAAd29yZC9zdHlsZXMueG1sUEsBAi0AFAAGAAgAAAAhAMySUFR9AQAA8QIAABEAAAAAAAAAAAAAAAAASDEAAGRvY1Byb3BzL2NvcmUueG1sUEsBAi0AFAAGAAgAAAAhACJREfHVAQAA3gMAABAAAAAAAAAAAAAAAAAA/DMAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAiD+lv+EAAABVAQAAGAAAAAAAAAAAAAAAAAAHNwAAY3VzdG9tWG1sL2l0ZW1Qcm9wczEueG1sUEsBAi0AFAAGAAgAAAAhAMEnywi2AAAAIQEAABMAAAAAAAAAAAAAAAAARjgAAGN1c3RvbVhtbC9pdGVtMS54bWxQSwECLQAUAAYACAAAACEAdD85esIAAAAoAQAAHgAAAAAAAAAAAAAAAABVOQAAY3VzdG9tWG1sL19yZWxzL2l0ZW0xLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAOuAYExTAwAAjw4AABIAAAAAAAAAAAAAAAAAWzsAAHdvcmQvZm9udFRhYmxlLnhtbFBLBQYAAAAADwAPANQDAADePgAAAAA=";
|
|
92223
91440
|
const getDefaultDocXTemplate = () => {
|
|
92224
91441
|
const blob = fromBase64ToBlob(templateBase64);
|
|
@@ -92571,8 +91788,8 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
92571
91788
|
const inlineStyles = attributesOfText(text2, "inlineStyle");
|
|
92572
91789
|
if (inlineStyles == null)
|
|
92573
91790
|
return;
|
|
92574
|
-
const
|
|
92575
|
-
for (const style2 of
|
|
91791
|
+
const styles = inlineStyles.split(";");
|
|
91792
|
+
for (const style2 of styles) {
|
|
92576
91793
|
const pair = style2.split(":");
|
|
92577
91794
|
if (pair.length !== 2)
|
|
92578
91795
|
continue;
|
|
@@ -92686,7 +91903,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
92686
91903
|
return new docx.Paragraph({
|
|
92687
91904
|
children: [
|
|
92688
91905
|
new docx.TextRun({
|
|
92689
|
-
text: "
|
|
91906
|
+
text: i18n$1.t("toDocx.videoUnsupportedExport"),
|
|
92690
91907
|
shading: {
|
|
92691
91908
|
type: docx.ShadingType.CLEAR,
|
|
92692
91909
|
color: "FFFFFF",
|
|
@@ -92700,7 +91917,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
92700
91917
|
return new docx.Paragraph({
|
|
92701
91918
|
children: [
|
|
92702
91919
|
new docx.TextRun({
|
|
92703
|
-
text: "
|
|
91920
|
+
text: i18n$1.t("toDocx.audioUnsupportedExport"),
|
|
92704
91921
|
shading: {
|
|
92705
91922
|
type: docx.ShadingType.CLEAR,
|
|
92706
91923
|
color: "FFFFFF",
|
|
@@ -94403,7 +93620,6 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94403
93620
|
id: options.id,
|
|
94404
93621
|
scrollContainer: options == null ? void 0 : options.scrollContainer,
|
|
94405
93622
|
enableComments: options == null ? void 0 : options.enableComments,
|
|
94406
|
-
enableResolveComments: options == null ? void 0 : options.enableResolveComments,
|
|
94407
93623
|
enableContextMenu: options == null ? void 0 : options.enableContextMenu,
|
|
94408
93624
|
components: {
|
|
94409
93625
|
blocks: [...StandardBlocks, ...((_d = options == null ? void 0 : options.components) == null ? void 0 : _d.blocks) || []],
|
|
@@ -94641,7 +93857,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94641
93857
|
}
|
|
94642
93858
|
}
|
|
94643
93859
|
});
|
|
94644
|
-
editor.version = "2.8.
|
|
93860
|
+
editor.version = "2.8.37";
|
|
94645
93861
|
return editor;
|
|
94646
93862
|
}
|
|
94647
93863
|
function isDoc(doc2) {
|
|
@@ -94663,7 +93879,6 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94663
93879
|
const editor = createEditor(root2, doc2, {
|
|
94664
93880
|
id: options.id,
|
|
94665
93881
|
scrollContainer: options == null ? void 0 : options.scrollContainer,
|
|
94666
|
-
enableResolveComments: options == null ? void 0 : options.enableResolveComments,
|
|
94667
93882
|
components: {
|
|
94668
93883
|
blocks: [...StandardBlocks, ...(_f = (_e = options.components) == null ? void 0 : _e.blocks) != null ? _f : []],
|
|
94669
93884
|
commandProviders: [new TableBlockCommandProvider()],
|
|
@@ -94755,7 +93970,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94755
93970
|
}
|
|
94756
93971
|
});
|
|
94757
93972
|
OnesEditorToolbar.register(editor);
|
|
94758
|
-
editor.version = "2.8.
|
|
93973
|
+
editor.version = "2.8.37";
|
|
94759
93974
|
return editor;
|
|
94760
93975
|
}
|
|
94761
93976
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -140575,7 +139790,6 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
140575
139790
|
exports2.CheckMarkIcon = CheckMarkIcon;
|
|
140576
139791
|
exports2.CheckboxIcon = CheckboxIcon;
|
|
140577
139792
|
exports2.CircleAddIcon = CircleAddIcon;
|
|
140578
|
-
exports2.CircleCheckMarkIcon = CircleCheckMarkIcon;
|
|
140579
139793
|
exports2.ClearIcon = ClearIcon;
|
|
140580
139794
|
exports2.ClipboardProvider = ClipboardProvider;
|
|
140581
139795
|
exports2.CloseIcon = CloseIcon;
|
|
@@ -140726,8 +139940,6 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
140726
139940
|
exports2.MoreItem = MoreItem;
|
|
140727
139941
|
exports2.NextIcon = NextIcon;
|
|
140728
139942
|
exports2.OnesEditorAutoSuggest = OnesEditorAutoSuggest;
|
|
140729
|
-
exports2.OnesEditorComments = OnesEditorComments;
|
|
140730
|
-
exports2.OnesEditorCommentsRender = OnesEditorCommentsRender;
|
|
140731
139943
|
exports2.OnesEditorCustomDataWrapper = OnesEditorCustomDataWrapper;
|
|
140732
139944
|
exports2.OnesEditorExclusiveBlock = OnesEditorExclusiveBlock;
|
|
140733
139945
|
exports2.OnesEditorHoveringBlock = OnesEditorHoveringBlock;
|