@ones-editor/editor 2.8.37-beta.9 → 2.8.38
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 -11
- 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/main-toolbar/src/index.d.ts +1 -7
- package/@ones-editor/main-toolbar/src/items/index.d.ts +2 -3
- package/@ones-editor/scroll-container/src/scroll-bar-handle.d.ts +1 -4
- package/@ones-editor/sharedb-doc/src/doc/auth-connection.d.ts +1 -0
- package/@ones-editor/sharedb-doc/src/doc/comments.d.ts +1 -2
- package/@ones-editor/sharedb-doc/src/doc/edit-status.d.ts +1 -1
- 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 +2 -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/command-bar/types.d.ts +7 -8
- package/@ones-editor/ui-base/src/icons/index.d.ts +1 -3
- 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 +1 -3
- package/dist/index.js +612 -1513
- 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/@ones-editor/main-toolbar/src/items/file.d.ts +0 -8
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;
|
|
@@ -8875,35 +8671,6 @@ div.editor-root.compact.no-heading-collapse.no-block-menu > .editor-content {
|
|
|
8875
8671
|
}
|
|
8876
8672
|
[data-command-bar-id=main-toolbar-more-menu] .editor-command-bar.toolbar .command-item.hidden, [data-command-bar-id=main-toolbar-more-menu] .editor-command-bar.menu .command-item.hidden {
|
|
8877
8673
|
display: flex;
|
|
8878
|
-
}
|
|
8879
|
-
.editor-main-toolbar-root {
|
|
8880
|
-
display: flex;
|
|
8881
|
-
width: 100%;
|
|
8882
|
-
min-height: 35px;
|
|
8883
|
-
}
|
|
8884
|
-
.editor-main-toolbar-root .editor-main-toolbar-resizer {
|
|
8885
|
-
position: relative;
|
|
8886
|
-
flex-grow: 1;
|
|
8887
|
-
flex-shrink: 1;
|
|
8888
|
-
}
|
|
8889
|
-
.editor-main-toolbar-root .editor-main-toolbar-resizer .editor-main-toolbar-container {
|
|
8890
|
-
position: absolute;
|
|
8891
|
-
left: 0;
|
|
8892
|
-
right: 0;
|
|
8893
|
-
top: 0;
|
|
8894
|
-
bottom: 0;
|
|
8895
|
-
display: flex;
|
|
8896
|
-
align-items: center;
|
|
8897
|
-
}
|
|
8898
|
-
.editor-main-toolbar-root .editor-main-toolbar-resizer .editor-main-toolbar-container .editor-command-bar-root {
|
|
8899
|
-
overflow: hidden !important;
|
|
8900
|
-
}
|
|
8901
|
-
.editor-main-toolbar-root [data-command-bar-root-id=main-toolbar-fullscreen] {
|
|
8902
|
-
flex-grow: 0 !important;
|
|
8903
|
-
flex-shrink: 0 !important;
|
|
8904
|
-
display: flex;
|
|
8905
|
-
align-items: center;
|
|
8906
|
-
justify-content: center;
|
|
8907
8674
|
}`)),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
8908
8675
|
var __defProp = Object.defineProperty;
|
|
8909
8676
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -9089,7 +8856,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9089
8856
|
loggerClass.set(category, instance);
|
|
9090
8857
|
return instance;
|
|
9091
8858
|
}
|
|
9092
|
-
const enUS$
|
|
8859
|
+
const enUS$y = {
|
|
9093
8860
|
name: "ONES Editor",
|
|
9094
8861
|
date: {
|
|
9095
8862
|
dateFromFuture: "From the future",
|
|
@@ -9109,7 +8876,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9109
8876
|
imageExportFailed: "Failed to load image"
|
|
9110
8877
|
}
|
|
9111
8878
|
};
|
|
9112
|
-
const zhCN$
|
|
8879
|
+
const zhCN$y = {
|
|
9113
8880
|
name: "Ones Editor",
|
|
9114
8881
|
date: {
|
|
9115
8882
|
dateFromFuture: "\u6765\u81EA\u672A\u6765",
|
|
@@ -9129,7 +8896,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9129
8896
|
imageExportFailed: "\u56FE\u7247\u52A0\u8F7D\u5931\u8D25"
|
|
9130
8897
|
}
|
|
9131
8898
|
};
|
|
9132
|
-
const zhHK$
|
|
8899
|
+
const zhHK$y = {
|
|
9133
8900
|
name: "Ones Editor",
|
|
9134
8901
|
date: {
|
|
9135
8902
|
dateFromFuture: "\u4F86\u81EA\u672A\u4F86",
|
|
@@ -9149,7 +8916,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9149
8916
|
imageExportFailed: "\u5716\u7247\u52A0\u8F09\u5931\u6557"
|
|
9150
8917
|
}
|
|
9151
8918
|
};
|
|
9152
|
-
const jaJP$
|
|
8919
|
+
const jaJP$y = {
|
|
9153
8920
|
name: "ONES \u30A8\u30C7\u30A3\u30BF\u30FC",
|
|
9154
8921
|
date: {
|
|
9155
8922
|
dateFromFuture: "\u672A\u6765\u304B\u3089",
|
|
@@ -9171,10 +8938,10 @@ var __publicField = (obj, key, value) => {
|
|
|
9171
8938
|
};
|
|
9172
8939
|
const logger$4T = getLogger("i18n");
|
|
9173
8940
|
const langs$3 = {
|
|
9174
|
-
"en-US": enUS$
|
|
9175
|
-
"zh-CN": zhCN$
|
|
9176
|
-
"zh-HK": zhHK$
|
|
9177
|
-
"ja-JP": jaJP$
|
|
8941
|
+
"en-US": enUS$y,
|
|
8942
|
+
"zh-CN": zhCN$y,
|
|
8943
|
+
"zh-HK": zhHK$y,
|
|
8944
|
+
"ja-JP": jaJP$y
|
|
9178
8945
|
};
|
|
9179
8946
|
const i18n = KiwiIntl__default.default.init("en-US", langs$3);
|
|
9180
8947
|
let currentLang = "en-US";
|
|
@@ -9461,22 +9228,22 @@ var __publicField = (obj, key, value) => {
|
|
|
9461
9228
|
function toFloat(value) {
|
|
9462
9229
|
return parseFloat(value) || 0;
|
|
9463
9230
|
}
|
|
9464
|
-
function getBordersSize(
|
|
9231
|
+
function getBordersSize(styles) {
|
|
9465
9232
|
var positions = [];
|
|
9466
9233
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9467
9234
|
positions[_i - 1] = arguments[_i];
|
|
9468
9235
|
}
|
|
9469
9236
|
return positions.reduce(function(size, position) {
|
|
9470
|
-
var value =
|
|
9237
|
+
var value = styles["border-" + position + "-width"];
|
|
9471
9238
|
return size + toFloat(value);
|
|
9472
9239
|
}, 0);
|
|
9473
9240
|
}
|
|
9474
|
-
function getPaddings(
|
|
9241
|
+
function getPaddings(styles) {
|
|
9475
9242
|
var positions = ["top", "right", "bottom", "left"];
|
|
9476
9243
|
var paddings = {};
|
|
9477
9244
|
for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
|
|
9478
9245
|
var position = positions_1[_i];
|
|
9479
|
-
var value =
|
|
9246
|
+
var value = styles["padding-" + position];
|
|
9480
9247
|
paddings[position] = toFloat(value);
|
|
9481
9248
|
}
|
|
9482
9249
|
return paddings;
|
|
@@ -9490,17 +9257,17 @@ var __publicField = (obj, key, value) => {
|
|
|
9490
9257
|
if (!clientWidth && !clientHeight) {
|
|
9491
9258
|
return emptyRect;
|
|
9492
9259
|
}
|
|
9493
|
-
var
|
|
9494
|
-
var paddings = getPaddings(
|
|
9260
|
+
var styles = getWindowOf(target).getComputedStyle(target);
|
|
9261
|
+
var paddings = getPaddings(styles);
|
|
9495
9262
|
var horizPad = paddings.left + paddings.right;
|
|
9496
9263
|
var vertPad = paddings.top + paddings.bottom;
|
|
9497
|
-
var width = toFloat(
|
|
9498
|
-
if (
|
|
9264
|
+
var width = toFloat(styles.width), height = toFloat(styles.height);
|
|
9265
|
+
if (styles.boxSizing === "border-box") {
|
|
9499
9266
|
if (Math.round(width + horizPad) !== clientWidth) {
|
|
9500
|
-
width -= getBordersSize(
|
|
9267
|
+
width -= getBordersSize(styles, "left", "right") + horizPad;
|
|
9501
9268
|
}
|
|
9502
9269
|
if (Math.round(height + vertPad) !== clientHeight) {
|
|
9503
|
-
height -= getBordersSize(
|
|
9270
|
+
height -= getBordersSize(styles, "top", "bottom") + vertPad;
|
|
9504
9271
|
}
|
|
9505
9272
|
}
|
|
9506
9273
|
if (!isDocumentElement(target)) {
|
|
@@ -10155,8 +9922,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10155
9922
|
el.setAttribute(key, value);
|
|
10156
9923
|
});
|
|
10157
9924
|
}
|
|
10158
|
-
function setStyles(el,
|
|
10159
|
-
Object.entries(
|
|
9925
|
+
function setStyles(el, styles) {
|
|
9926
|
+
Object.entries(styles).forEach(([key, value]) => {
|
|
10160
9927
|
el.style.setProperty(key, value);
|
|
10161
9928
|
});
|
|
10162
9929
|
}
|
|
@@ -12576,12 +12343,12 @@ var __publicField = (obj, key, value) => {
|
|
|
12576
12343
|
return blockClass.getBlockStyles(editor, block);
|
|
12577
12344
|
}
|
|
12578
12345
|
const data2 = editor.getBlockData(block);
|
|
12579
|
-
const
|
|
12580
|
-
Object.entries(
|
|
12346
|
+
const styles = Object.fromEntries(Object.entries(data2).filter(([key]) => key.startsWith("style-")));
|
|
12347
|
+
Object.entries(styles).forEach(([, value]) => {
|
|
12581
12348
|
const type = typeof value;
|
|
12582
12349
|
assert(logger$4C, type === "string" || type === "number" || type === "boolean", "invalid style value");
|
|
12583
12350
|
});
|
|
12584
|
-
return
|
|
12351
|
+
return styles;
|
|
12585
12352
|
}
|
|
12586
12353
|
function getContainerWidth(container, options) {
|
|
12587
12354
|
const ret = container.getBoundingClientRect().width;
|
|
@@ -25170,7 +24937,7 @@ var __publicField = (obj, key, value) => {
|
|
|
25170
24937
|
if (attributes) {
|
|
25171
24938
|
let string = op.insert;
|
|
25172
24939
|
const tags = [];
|
|
25173
|
-
let
|
|
24940
|
+
let styles = "";
|
|
25174
24941
|
if (attributes["style-bold"]) {
|
|
25175
24942
|
tags.push("strong");
|
|
25176
24943
|
}
|
|
@@ -25188,25 +24955,25 @@ var __publicField = (obj, key, value) => {
|
|
|
25188
24955
|
}
|
|
25189
24956
|
const fontBgColor = Object.keys(attributes).find((k) => k.startsWith("style-bg-color-"));
|
|
25190
24957
|
if (fontBgColor) {
|
|
25191
|
-
|
|
24958
|
+
styles += `background-color: ${styleBackgroundColorToHighlight$1(fontBgColor)};`;
|
|
25192
24959
|
}
|
|
25193
24960
|
const fontColor = Object.keys(attributes).find((k) => k.startsWith("style-color-"));
|
|
25194
24961
|
if (fontColor) {
|
|
25195
|
-
|
|
24962
|
+
styles += `color: ${styleColorToColor$1(fontColor)};`;
|
|
25196
24963
|
}
|
|
25197
24964
|
if (attributes.link) {
|
|
25198
24965
|
string = `<a href="${attributes.link}">${string}</a>`;
|
|
25199
24966
|
}
|
|
25200
24967
|
let prefix = tags.map((s) => `<${s}>`).join("");
|
|
25201
24968
|
let suffix = tags.reverse().map((s) => `</${s}>`).join("");
|
|
25202
|
-
if (
|
|
24969
|
+
if (styles) {
|
|
25203
24970
|
if (attributes.link) {
|
|
25204
|
-
string = `<a href="${attributes.link}" style="${
|
|
24971
|
+
string = `<a href="${attributes.link}" style="${styles}">${op.insert}</a>`;
|
|
25205
24972
|
} else {
|
|
25206
24973
|
if (prefix) {
|
|
25207
|
-
prefix = prefix.replace(">", ` style="${
|
|
24974
|
+
prefix = prefix.replace(">", ` style="${styles}">`);
|
|
25208
24975
|
} else {
|
|
25209
|
-
prefix = `<span style="${
|
|
24976
|
+
prefix = `<span style="${styles}">`;
|
|
25210
24977
|
suffix = "</span>";
|
|
25211
24978
|
}
|
|
25212
24979
|
}
|
|
@@ -25649,9 +25416,6 @@ var __publicField = (obj, key, value) => {
|
|
|
25649
25416
|
__publicField(this, "renders", []);
|
|
25650
25417
|
this.editor = editor;
|
|
25651
25418
|
}
|
|
25652
|
-
getRenderers() {
|
|
25653
|
-
return this.renders;
|
|
25654
|
-
}
|
|
25655
25419
|
registerRender(render) {
|
|
25656
25420
|
this.renders.push(render);
|
|
25657
25421
|
}
|
|
@@ -25889,8 +25653,8 @@ var __publicField = (obj, key, value) => {
|
|
|
25889
25653
|
renderBlock(editor, path, blockData) {
|
|
25890
25654
|
var _a, _b;
|
|
25891
25655
|
const attributes = {};
|
|
25892
|
-
const
|
|
25893
|
-
|
|
25656
|
+
const styles = Object.entries(blockData).filter((k) => k[0].startsWith("style-"));
|
|
25657
|
+
styles.forEach(([key, value]) => {
|
|
25894
25658
|
attributes[`data-${key}`] = `${value}`;
|
|
25895
25659
|
});
|
|
25896
25660
|
const classes = [];
|
|
@@ -26097,7 +25861,6 @@ var __publicField = (obj, key, value) => {
|
|
|
26097
25861
|
constructor(editor, callbacks) {
|
|
26098
25862
|
__publicField(this, "editor");
|
|
26099
25863
|
__publicField(this, "composing", false);
|
|
26100
|
-
__publicField(this, "composingTimer");
|
|
26101
25864
|
__publicField(this, "callbacks");
|
|
26102
25865
|
__publicField(this, "inputElement");
|
|
26103
25866
|
__publicField(this, "handleBlur", () => {
|
|
@@ -26157,13 +25920,12 @@ var __publicField = (obj, key, value) => {
|
|
|
26157
25920
|
if (!this.editor.isWritable()) {
|
|
26158
25921
|
return;
|
|
26159
25922
|
}
|
|
26160
|
-
clearTimeout(this.composingTimer);
|
|
26161
25923
|
this.composing = true;
|
|
26162
25924
|
this.callbacks.onCompositionStart(event);
|
|
26163
25925
|
});
|
|
26164
25926
|
__publicField(this, "handleCompositionend", (event) => {
|
|
26165
25927
|
if (isSafari()) {
|
|
26166
|
-
|
|
25928
|
+
setTimeout(() => {
|
|
26167
25929
|
this.composing = false;
|
|
26168
25930
|
}, 100);
|
|
26169
25931
|
} else {
|
|
@@ -31863,7 +31625,7 @@ ${codeText}
|
|
|
31863
31625
|
const logger$38 = getLogger("editor");
|
|
31864
31626
|
class Editor extends tinyTypedEmitter.TypedEmitter {
|
|
31865
31627
|
constructor(parent, doc2, optionalOptions) {
|
|
31866
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i
|
|
31628
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
31867
31629
|
super();
|
|
31868
31630
|
__publicField(this, "parent");
|
|
31869
31631
|
__publicField(this, "rootElement");
|
|
@@ -31909,13 +31671,12 @@ ${codeText}
|
|
|
31909
31671
|
componentsOptions: (_c = (_b = optionalOptions == null ? void 0 : optionalOptions.components) == null ? void 0 : _b.options) != null ? _c : {},
|
|
31910
31672
|
scrollContainer: optionalOptions == null ? void 0 : optionalOptions.scrollContainer,
|
|
31911
31673
|
enableComments: (_d = optionalOptions == null ? void 0 : optionalOptions.enableComments) != null ? _d : true,
|
|
31912
|
-
|
|
31913
|
-
enableContextMenu: (_f = optionalOptions == null ? void 0 : optionalOptions.enableContextMenu) != null ? _f : true
|
|
31674
|
+
enableContextMenu: (_e = optionalOptions == null ? void 0 : optionalOptions.enableContextMenu) != null ? _e : true
|
|
31914
31675
|
};
|
|
31915
|
-
this.settingsProvider = (
|
|
31676
|
+
this.settingsProvider = (_f = optionalOptions == null ? void 0 : optionalOptions.settingsProvider) != null ? _f : new DefaultSettingsProvider(this);
|
|
31916
31677
|
registerComponents(this, optionalOptions == null ? void 0 : optionalOptions.components);
|
|
31917
|
-
this.blockHooks.push(...(
|
|
31918
|
-
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();
|
|
31919
31680
|
this.clientId = genId();
|
|
31920
31681
|
this.undoManager = new UndoManager(this);
|
|
31921
31682
|
this.doc = new EditorDoc(this, doc2, this.undoManager);
|
|
@@ -32401,9 +32162,6 @@ ${codeText}
|
|
|
32401
32162
|
toJSON() {
|
|
32402
32163
|
return cloneDeep__default.default(this.doc);
|
|
32403
32164
|
}
|
|
32404
|
-
rawData() {
|
|
32405
|
-
return this.doc;
|
|
32406
|
-
}
|
|
32407
32165
|
getContainerBlocks(containerId) {
|
|
32408
32166
|
const blocks = this.doc.blocks[containerId];
|
|
32409
32167
|
return blocks;
|
|
@@ -38233,6 +37991,7 @@ ${codeText}
|
|
|
38233
37991
|
}
|
|
38234
37992
|
try {
|
|
38235
37993
|
origHandleMessage(msg);
|
|
37994
|
+
this.emit("opReceived");
|
|
38236
37995
|
} catch (err) {
|
|
38237
37996
|
if ((err == null ? void 0 : err.type) === "writeConflict") {
|
|
38238
37997
|
this.emitWriteConflictError(err, msg);
|
|
@@ -38924,12 +38683,6 @@ ${codeText}
|
|
|
38924
38683
|
commentId
|
|
38925
38684
|
});
|
|
38926
38685
|
}
|
|
38927
|
-
onUpdateCommentResolver(commentId) {
|
|
38928
|
-
this.pushActions({
|
|
38929
|
-
type: "updateCommentResolved",
|
|
38930
|
-
commentId
|
|
38931
|
-
});
|
|
38932
|
-
}
|
|
38933
38686
|
end() {
|
|
38934
38687
|
const actions2 = this.actions;
|
|
38935
38688
|
const deletedBlocks = /* @__PURE__ */ new Set();
|
|
@@ -39004,9 +38757,6 @@ ${codeText}
|
|
|
39004
38757
|
} else if (action.type === "updateComment") {
|
|
39005
38758
|
const a = action;
|
|
39006
38759
|
this.outerHandler.onUpdateComment(a.commentId, this.local);
|
|
39007
|
-
} else if (action.type === "updateCommentResolved") {
|
|
39008
|
-
const a = action;
|
|
39009
|
-
this.outerHandler.onUpdateCommentResolver(a.commentId, this.local);
|
|
39010
38760
|
}
|
|
39011
38761
|
});
|
|
39012
38762
|
Array.from(updatingBlockDataDeltaMap.entries()).forEach(([blockId, objectData]) => {
|
|
@@ -39184,14 +38934,7 @@ ${codeText}
|
|
|
39184
38934
|
assert(logger$2W, commentId, `invalid comment op, no commentId: ${JSON.stringify(ops)}`);
|
|
39185
38935
|
assert(logger$2W, actions2, `invalid comment op, no actions: ${JSON.stringify(ops)}`);
|
|
39186
38936
|
if (typeof actions2 === "string") {
|
|
39187
|
-
|
|
39188
|
-
if (actions2 === "resolver" && typeof data2 === "object") {
|
|
39189
|
-
if (parseType === "upsert") {
|
|
39190
|
-
handler.onUpdateCommentResolver(commentId);
|
|
39191
|
-
}
|
|
39192
|
-
} else {
|
|
39193
|
-
logger$2W.error(`unknown comment op, ${JSON.stringify(ops)}`);
|
|
39194
|
-
}
|
|
38937
|
+
logger$2W.error(`unknown comment op, ${JSON.stringify(ops)}`);
|
|
39195
38938
|
} else {
|
|
39196
38939
|
if (actions2.i && actions2.r) {
|
|
39197
38940
|
if (parseType === "upsert") {
|
|
@@ -39301,8 +39044,7 @@ ${codeText}
|
|
|
39301
39044
|
avatarUrl,
|
|
39302
39045
|
abstract,
|
|
39303
39046
|
created,
|
|
39304
|
-
modified
|
|
39305
|
-
resolver: resolved
|
|
39047
|
+
modified
|
|
39306
39048
|
} = shareDBComment;
|
|
39307
39049
|
return {
|
|
39308
39050
|
id,
|
|
@@ -39312,8 +39054,7 @@ ${codeText}
|
|
|
39312
39054
|
avatarUrl,
|
|
39313
39055
|
abstract,
|
|
39314
39056
|
created,
|
|
39315
|
-
modified
|
|
39316
|
-
resolver: resolved
|
|
39057
|
+
modified
|
|
39317
39058
|
};
|
|
39318
39059
|
}
|
|
39319
39060
|
function commentToShareDbComment(comment, doc2) {
|
|
@@ -39337,9 +39078,9 @@ ${codeText}
|
|
|
39337
39078
|
}
|
|
39338
39079
|
setStatus(status) {
|
|
39339
39080
|
var _a, _b, _c;
|
|
39340
|
-
if (status === "clean") {
|
|
39081
|
+
if (status === "clean" || status === "busy") {
|
|
39341
39082
|
if (this.dirtyTimeout) {
|
|
39342
|
-
logger$2U.info(
|
|
39083
|
+
logger$2U.info(`on ${status}`);
|
|
39343
39084
|
clearTimeout(this.dirtyTimeout);
|
|
39344
39085
|
this.dirtyTimeout = null;
|
|
39345
39086
|
}
|
|
@@ -39411,6 +39152,9 @@ ${codeText}
|
|
|
39411
39152
|
__publicField(this, "handleWriteConflictError", (error2) => {
|
|
39412
39153
|
this.handleReset(`write conflict: ${error2.message}, ${JSON.stringify(error2.orgMsg)}`);
|
|
39413
39154
|
});
|
|
39155
|
+
__publicField(this, "handleOpReceived", () => {
|
|
39156
|
+
this.editStatus.setStatus("busy");
|
|
39157
|
+
});
|
|
39414
39158
|
__publicField(this, "insertObject", async (rootObjectName, index2, obj) => {
|
|
39415
39159
|
const ops = [rootObjectName, index2, { i: obj }];
|
|
39416
39160
|
return this.submitOp(ops);
|
|
@@ -39504,7 +39248,10 @@ ${codeText}
|
|
|
39504
39248
|
if (containers.length === 0) {
|
|
39505
39249
|
return Promise.resolve();
|
|
39506
39250
|
}
|
|
39507
|
-
const ops = containers.map(({ containerId, blocks }) => [
|
|
39251
|
+
const ops = containers.map(({ containerId, blocks }) => [
|
|
39252
|
+
docObjectContainerId2EditorDocContainerId(containerId),
|
|
39253
|
+
{ i: blocks }
|
|
39254
|
+
]);
|
|
39508
39255
|
return this.submitOp([ops]);
|
|
39509
39256
|
});
|
|
39510
39257
|
__publicField(this, "submitDeleteChildContainer", async (containerId) => {
|
|
@@ -39523,7 +39270,10 @@ ${codeText}
|
|
|
39523
39270
|
if (delta.delete.length === 0 && Object.keys(delta.insert).length === 0) {
|
|
39524
39271
|
return Promise.resolve();
|
|
39525
39272
|
}
|
|
39526
|
-
const ops = [
|
|
39273
|
+
const ops = [
|
|
39274
|
+
docObjectContainerId2EditorDocContainerId(containerId),
|
|
39275
|
+
index2
|
|
39276
|
+
];
|
|
39527
39277
|
const deletedKeysSet = new Set(delta.delete);
|
|
39528
39278
|
Object.entries(delta.insert).forEach(([key, value]) => {
|
|
39529
39279
|
if (deletedKeysSet.has(key)) {
|
|
@@ -39574,6 +39324,7 @@ ${codeText}
|
|
|
39574
39324
|
this.disableLogout = disableLogout;
|
|
39575
39325
|
this.registerCallback(this.remoteCaretHandler);
|
|
39576
39326
|
this.editStatus = new EditStatus(options);
|
|
39327
|
+
this.client.connection.addListener("opReceived", this.handleOpReceived);
|
|
39577
39328
|
}
|
|
39578
39329
|
beginBatchUpdate() {
|
|
39579
39330
|
this.doc.preventCompose = false;
|
|
@@ -39758,7 +39509,9 @@ ${codeText}
|
|
|
39758
39509
|
this.endBatchUpdate();
|
|
39759
39510
|
}
|
|
39760
39511
|
getComments() {
|
|
39761
|
-
const comments = Object.values(this.data().comments).map(
|
|
39512
|
+
const comments = Object.values(this.data().comments).map(
|
|
39513
|
+
(comment) => shareDBDocCommentToComment(comment)
|
|
39514
|
+
);
|
|
39762
39515
|
return comments;
|
|
39763
39516
|
}
|
|
39764
39517
|
getComment(commentId) {
|
|
@@ -39785,21 +39538,6 @@ ${codeText}
|
|
|
39785
39538
|
const op = ["comments", comment.id, { r: true, i: shareDBComment }];
|
|
39786
39539
|
return this.submitOp(op);
|
|
39787
39540
|
}
|
|
39788
|
-
localUpdateCommentResolver(commentId, resolver) {
|
|
39789
|
-
const oldComment = this.getComment(commentId);
|
|
39790
|
-
const oldResolved = oldComment.resolver;
|
|
39791
|
-
const op = ["comments", commentId, "resolver", {}];
|
|
39792
|
-
if (!oldResolved && !resolver) {
|
|
39793
|
-
return Promise.resolve(true);
|
|
39794
|
-
}
|
|
39795
|
-
if (oldResolved !== void 0) {
|
|
39796
|
-
op[3] = { r: true };
|
|
39797
|
-
}
|
|
39798
|
-
if (resolver) {
|
|
39799
|
-
op[3].i = resolver;
|
|
39800
|
-
}
|
|
39801
|
-
return this.submitOp(op);
|
|
39802
|
-
}
|
|
39803
39541
|
destroy() {
|
|
39804
39542
|
var _a;
|
|
39805
39543
|
this.destroyed = true;
|
|
@@ -39813,47 +39551,59 @@ ${codeText}
|
|
|
39813
39551
|
}
|
|
39814
39552
|
onDeleteBlock(containerId, blockIndex, local) {
|
|
39815
39553
|
assert(logger$2T, this.callbacks.length > 0, "no callbacks");
|
|
39816
|
-
this.callbacks.forEach(
|
|
39817
|
-
|
|
39818
|
-
|
|
39819
|
-
|
|
39554
|
+
this.callbacks.forEach(
|
|
39555
|
+
(cb) => {
|
|
39556
|
+
var _a;
|
|
39557
|
+
return (_a = cb.onDeleteBlock) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blockIndex, local);
|
|
39558
|
+
}
|
|
39559
|
+
);
|
|
39820
39560
|
}
|
|
39821
39561
|
onInsertBlock(containerId, blockIndex, data2, local) {
|
|
39822
39562
|
assert(logger$2T, this.callbacks.length > 0, "no callbacks");
|
|
39823
|
-
this.callbacks.forEach(
|
|
39824
|
-
|
|
39825
|
-
|
|
39826
|
-
|
|
39563
|
+
this.callbacks.forEach(
|
|
39564
|
+
(cb) => {
|
|
39565
|
+
var _a;
|
|
39566
|
+
return (_a = cb.onInsertBlock) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blockIndex, data2, local);
|
|
39567
|
+
}
|
|
39568
|
+
);
|
|
39827
39569
|
}
|
|
39828
39570
|
onUpdateBlockData(containerId, blockIndex, delta, local) {
|
|
39829
39571
|
assert(logger$2T, this.callbacks.length > 0, "no callbacks");
|
|
39830
|
-
this.callbacks.forEach(
|
|
39831
|
-
|
|
39832
|
-
|
|
39833
|
-
|
|
39572
|
+
this.callbacks.forEach(
|
|
39573
|
+
(cb) => {
|
|
39574
|
+
var _a;
|
|
39575
|
+
return (_a = cb.onUpdateBlockData) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blockIndex, delta, local);
|
|
39576
|
+
}
|
|
39577
|
+
);
|
|
39834
39578
|
}
|
|
39835
39579
|
onUpdateBlockText(containerId, blockIndex, actions2, local) {
|
|
39836
39580
|
assert(logger$2T, this.callbacks.length > 0, "no callbacks");
|
|
39837
|
-
this.callbacks.forEach(
|
|
39838
|
-
|
|
39839
|
-
|
|
39840
|
-
|
|
39581
|
+
this.callbacks.forEach(
|
|
39582
|
+
(cb) => {
|
|
39583
|
+
var _a;
|
|
39584
|
+
return (_a = cb.onUpdateBlockText) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blockIndex, actions2, local);
|
|
39585
|
+
}
|
|
39586
|
+
);
|
|
39841
39587
|
}
|
|
39842
39588
|
onDeleteContainer(containerId, local) {
|
|
39843
39589
|
assert(logger$2T, this.callbacks.length > 0, "no callbacks");
|
|
39844
39590
|
assert(logger$2T, containerId !== "root", "should not delete root container in doc");
|
|
39845
|
-
this.callbacks.forEach(
|
|
39846
|
-
|
|
39847
|
-
|
|
39848
|
-
|
|
39591
|
+
this.callbacks.forEach(
|
|
39592
|
+
(cb) => {
|
|
39593
|
+
var _a;
|
|
39594
|
+
return (_a = cb.onDeleteChildContainer) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), local);
|
|
39595
|
+
}
|
|
39596
|
+
);
|
|
39849
39597
|
}
|
|
39850
39598
|
onCreateContainer(containerId, blocks, local) {
|
|
39851
39599
|
assert(logger$2T, this.callbacks.length > 0, "no callbacks");
|
|
39852
39600
|
assert(logger$2T, containerId !== "root", "should not create root container in doc");
|
|
39853
|
-
this.callbacks.forEach(
|
|
39854
|
-
|
|
39855
|
-
|
|
39856
|
-
|
|
39601
|
+
this.callbacks.forEach(
|
|
39602
|
+
(cb) => {
|
|
39603
|
+
var _a;
|
|
39604
|
+
return (_a = cb.onInsertChildContainer) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blocks, local);
|
|
39605
|
+
}
|
|
39606
|
+
);
|
|
39857
39607
|
}
|
|
39858
39608
|
onDeleteComment(commentId, local) {
|
|
39859
39609
|
assert(logger$2T, this.callbacks.length > 0, "no callbacks");
|
|
@@ -39876,13 +39626,6 @@ ${codeText}
|
|
|
39876
39626
|
return (_a = cb.onUpdateComment) == null ? void 0 : _a.call(cb, commentId, local);
|
|
39877
39627
|
});
|
|
39878
39628
|
}
|
|
39879
|
-
onUpdateCommentResolver(commentId, local) {
|
|
39880
|
-
assert(logger$2T, this.callbacks.length > 0, "no callbacks");
|
|
39881
|
-
this.callbacks.forEach((cb) => {
|
|
39882
|
-
var _a;
|
|
39883
|
-
return (_a = cb.onUpdateCommentResolver) == null ? void 0 : _a.call(cb, commentId, local);
|
|
39884
|
-
});
|
|
39885
|
-
}
|
|
39886
39629
|
onCustomMessage(msg) {
|
|
39887
39630
|
const message = msg;
|
|
39888
39631
|
if ((message == null ? void 0 : message.type) === "custom" && (message == null ? void 0 : message.clientId) !== this.client.clientId) {
|
|
@@ -40676,7 +40419,7 @@ ${codeText}
|
|
|
40676
40419
|
handler.removeListener("insert", callback);
|
|
40677
40420
|
}
|
|
40678
40421
|
const style$e = "";
|
|
40679
|
-
const zhCN$
|
|
40422
|
+
const zhCN$x = {
|
|
40680
40423
|
button: {
|
|
40681
40424
|
ok: "\u786E\u5B9A",
|
|
40682
40425
|
cancel: "\u53D6\u6D88",
|
|
@@ -40714,7 +40457,7 @@ ${codeText}
|
|
|
40714
40457
|
loading: "\u52A0\u8F7D\u4E2D..."
|
|
40715
40458
|
}
|
|
40716
40459
|
};
|
|
40717
|
-
const zhHK$
|
|
40460
|
+
const zhHK$x = {
|
|
40718
40461
|
button: {
|
|
40719
40462
|
ok: "\u78BA\u5B9A",
|
|
40720
40463
|
cancel: "\u53D6\u6D88",
|
|
@@ -40752,7 +40495,7 @@ ${codeText}
|
|
|
40752
40495
|
loading: "\u52A0\u8F09\u4E2D..."
|
|
40753
40496
|
}
|
|
40754
40497
|
};
|
|
40755
|
-
const enUS$
|
|
40498
|
+
const enUS$x = {
|
|
40756
40499
|
button: {
|
|
40757
40500
|
ok: "OK",
|
|
40758
40501
|
cancel: "Cancel",
|
|
@@ -40790,7 +40533,7 @@ ${codeText}
|
|
|
40790
40533
|
loading: "Loading..."
|
|
40791
40534
|
}
|
|
40792
40535
|
};
|
|
40793
|
-
const jaJP$
|
|
40536
|
+
const jaJP$x = {
|
|
40794
40537
|
button: {
|
|
40795
40538
|
ok: "\u9069\u7528",
|
|
40796
40539
|
cancel: "\u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
@@ -40829,10 +40572,10 @@ ${codeText}
|
|
|
40829
40572
|
}
|
|
40830
40573
|
};
|
|
40831
40574
|
i18n$1.mergeLang({
|
|
40832
|
-
"zh-CN": zhCN$
|
|
40833
|
-
"zh-HK": zhHK$
|
|
40834
|
-
"en-US": enUS$
|
|
40835
|
-
"ja-JP": jaJP$
|
|
40575
|
+
"zh-CN": zhCN$x,
|
|
40576
|
+
"zh-HK": zhHK$x,
|
|
40577
|
+
"en-US": enUS$x,
|
|
40578
|
+
"ja-JP": jaJP$x
|
|
40836
40579
|
});
|
|
40837
40580
|
const button = "";
|
|
40838
40581
|
const logger$2N = getLogger("button");
|
|
@@ -40951,7 +40694,6 @@ ${codeText}
|
|
|
40951
40694
|
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>';
|
|
40952
40695
|
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';
|
|
40953
40696
|
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>';
|
|
40954
|
-
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';
|
|
40955
40697
|
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';
|
|
40956
40698
|
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';
|
|
40957
40699
|
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';
|
|
@@ -41032,7 +40774,6 @@ ${codeText}
|
|
|
41032
40774
|
const TableEditIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M8 14.5H2.5C1.94772 14.5 1.5 14.0523 1.5 13.5V2.5C1.5 1.94772 1.94772 1.5 2.5 1.5H13.5C14.0523 1.5 14.5 1.94772 14.5 2.5V8" stroke="#2D2D2E"/>\n<path d="M1.6 4.8H14.4" stroke="#2D2D2E"/>\n<path d="M1.6 9.6H8.00078" stroke="#2D2D2E"/>\n<path d="M5.6 1.6L5.6 14.4" stroke="#2D2D2E"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M11.5043 8.98727L11.6789 8.22924C11.7097 8.09564 11.8387 8 11.9881 8H12.8119C12.9613 8 13.0903 8.09564 13.1211 8.22924L13.2957 8.98727C13.3177 9.08256 13.3912 9.16027 13.488 9.20102C13.569 9.23514 13.648 9.2726 13.7248 9.31318C13.8018 9.35372 13.877 9.3976 13.95 9.44477C14.037 9.50098 14.1474 9.52034 14.2487 9.49008L15.0543 9.24927C15.1963 9.20683 15.3514 9.26108 15.4261 9.37933L15.9576 10.2206C16.0323 10.3389 16.0062 10.4888 15.895 10.5799L15.2639 11.0972C15.1846 11.1622 15.1477 11.2593 15.1575 11.3562C15.1657 11.4375 15.1698 11.5189 15.1697 11.6C15.1698 11.6811 15.1658 11.7625 15.1576 11.8438C15.1478 11.9407 15.1847 12.0378 15.264 12.1028L15.895 12.62C16.0062 12.7112 16.0324 12.8611 15.9577 12.9793L15.4262 13.8206C15.3515 13.9389 15.1963 13.9931 15.0544 13.9507L14.2487 13.7099C14.1474 13.6796 14.037 13.699 13.95 13.7552C13.877 13.8024 13.8018 13.8463 13.7248 13.8868C13.648 13.9274 13.569 13.9649 13.488 13.999C13.3912 14.0397 13.3177 14.1174 13.2957 14.2127L13.1211 14.9708C13.0903 15.1044 12.9613 15.2 12.8119 15.2H11.9881C11.8387 15.2 11.7097 15.1044 11.6789 14.9708L11.5043 14.2127C11.4823 14.1174 11.4088 14.0397 11.312 13.999C11.231 13.9649 11.152 13.9274 11.0752 13.8868C10.9982 13.8463 10.923 13.8024 10.85 13.7552C10.763 13.699 10.6526 13.6796 10.5513 13.7099L9.74565 13.9507C9.60366 13.9931 9.44854 13.9389 9.37384 13.8206L8.84234 12.9793C8.76764 12.8611 8.79378 12.7112 8.905 12.62L9.53602 12.1028C9.61534 12.0378 9.6522 11.9407 9.64243 11.8438C9.63424 11.7625 9.63023 11.6811 9.63031 11.6C9.63023 11.5189 9.63426 11.4375 9.64247 11.3562C9.65226 11.2593 9.61539 11.1622 9.53607 11.0972L8.90506 10.5799C8.79384 10.4888 8.7677 10.3389 8.8424 10.2206L9.3739 9.37933C9.4486 9.26108 9.60371 9.20683 9.74571 9.24927L10.5514 9.49008C10.6526 9.52034 10.7631 9.50098 10.8501 9.44477C10.923 9.3976 10.9982 9.35372 11.0752 9.31318C11.152 9.2726 11.231 9.23514 11.312 9.20102C11.4088 9.16027 11.4823 9.08256 11.5043 8.98727ZM12.3278 12.5136C12.8866 12.5136 13.3396 12.0996 13.3396 11.5889C13.3396 11.0783 12.8866 10.6643 12.3278 10.6643C11.769 10.6643 11.316 11.0783 11.316 11.5889C11.316 12.0996 11.769 12.5136 12.3278 12.5136Z" fill="#2D2D2E"/>\n</svg>\n';
|
|
41033
40775
|
const AdjustWidthIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M8 6H2.5C1.94772 6 1.5 6.44772 1.5 7V13.5C1.5 14.0523 1.94772 14.5 2.5 14.5H8M8 6H13.5C14.0523 6 14.5 6.44772 14.5 7V13.5C14.5 14.0523 14.0523 14.5 13.5 14.5H8M8 6V14.5" stroke="#2D2D2E"/>\n<path d="M1.5 2.5H14.5M1.5 1V4M8 1V4M14.5 1V4" stroke="#2D2D2E"/>\n</svg>\n';
|
|
41034
40776
|
const TocIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2 3.5L14 3.5" stroke="#2D2D2E"/>\n<path d="M2 6.50397H10" stroke="#2D2D2E"/>\n<path d="M2 12.5L14 12.5" stroke="#2D2D2E"/>\n<path d="M6 9.5H14" stroke="#2D2D2E"/>\n</svg>\n';
|
|
41035
|
-
const AttachmentIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.49669 1C4.80282 1 3.0118 2.3515 3.0118 3.76237L3 10.6206M6.49669 1C8.41943 1 10.0154 2.60058 10.0154 4.17342M6.49669 1C7.43289 1 8.28684 1.42118 8.90405 1.96796C9.50746 2.50252 10.0154 3.29036 10.0154 4.17342M10.0154 4.17342L10.0154 9.61446C10.0154 10.4166 9.23033 11.2316 8 11.2316C6.91283 11.2316 6.01026 10.5735 6.01026 9.87981L5.98457 5.04102M3 10.6206C3 13.1126 5.38055 15 8 15M3 10.6206C3 12.9301 5.13252 15 8 15M8 15C10.6194 15 13 13.1988 13 10.7068M8 15C10.8675 15 13 13.0162 13 10.7068M13 10.7068V5.04102" stroke="currentColor" stroke-linecap="square" stroke-linejoin="round"/>\n<path d="M13 4V10C13 12.7614 10.7614 15 8 15C5.23858 15 3 12.7614 3 10V4.5" stroke="currentColor"/>\n<path d="M10 9V4.5C10 2.567 8.433 1 6.5 1C4.567 1 3 2.567 3 4.5" stroke="currentColor"/>\n<path d="M10 9C10 10.1046 9.10457 11 8 11C6.89543 11 6 10.1046 6 9V4" stroke="currentColor"/>\n</svg>\n';
|
|
41036
40777
|
const index$f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41037
40778
|
__proto__: null,
|
|
41038
40779
|
TableEditIcon,
|
|
@@ -41108,7 +40849,6 @@ ${codeText}
|
|
|
41108
40849
|
RefreshIcon,
|
|
41109
40850
|
HelpIcon,
|
|
41110
40851
|
CheckMarkIcon,
|
|
41111
|
-
CircleCheckMarkIcon,
|
|
41112
40852
|
TextIcon,
|
|
41113
40853
|
RightArrowIcon: rightArrow,
|
|
41114
40854
|
TencentVideoIcon,
|
|
@@ -41163,8 +40903,7 @@ ${codeText}
|
|
|
41163
40903
|
LoadingCircleIcon,
|
|
41164
40904
|
TextGroupIcon,
|
|
41165
40905
|
AdjustWidthIcon,
|
|
41166
|
-
TocIcon
|
|
41167
|
-
AttachmentIcon
|
|
40906
|
+
TocIcon
|
|
41168
40907
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
41169
40908
|
function createLoading() {
|
|
41170
40909
|
const loading2 = createElement("span", ["editor-loading-icon"], null);
|
|
@@ -41785,9 +41524,6 @@ ${codeText}
|
|
|
41785
41524
|
}
|
|
41786
41525
|
const content = createElement("div", ["editor-command-bar-root"], null);
|
|
41787
41526
|
content.setAttribute("data-keep-editor-focus", "");
|
|
41788
|
-
if (this.options.rootId) {
|
|
41789
|
-
content.setAttribute("data-command-bar-root-id", this.options.rootId);
|
|
41790
|
-
}
|
|
41791
41527
|
if (this.options.header) {
|
|
41792
41528
|
const headerElem = createElement("div", ["editor-command-bar-header"], null);
|
|
41793
41529
|
if (this.options.header instanceof Function) {
|
|
@@ -47950,7 +47686,33 @@ ${codeText}
|
|
|
47950
47686
|
const childWidth = getSizeAsScale(scrollContainer, originWidth + maxRight + overflowWidth - paddingLeft - paddingRight);
|
|
47951
47687
|
scrollbarContainer.firstElementChild.style.width = `${childWidth}px`;
|
|
47952
47688
|
}
|
|
47953
|
-
|
|
47689
|
+
function debounceByArgs(func, wait) {
|
|
47690
|
+
const debouncers = /* @__PURE__ */ new Map();
|
|
47691
|
+
return function(...args) {
|
|
47692
|
+
var _a;
|
|
47693
|
+
const scrollWrap = args[1];
|
|
47694
|
+
let key = (scrollWrap == null ? void 0 : scrollWrap.genId) || "";
|
|
47695
|
+
if (!key) {
|
|
47696
|
+
key = genId();
|
|
47697
|
+
if (scrollWrap)
|
|
47698
|
+
scrollWrap.genId = key;
|
|
47699
|
+
}
|
|
47700
|
+
if (!debouncers.has(key)) {
|
|
47701
|
+
debouncers.set(key, debounce__default.default(
|
|
47702
|
+
(...innerArgs) => {
|
|
47703
|
+
const result = func.apply(this, innerArgs);
|
|
47704
|
+
if (scrollWrap)
|
|
47705
|
+
scrollWrap.genId = void 0;
|
|
47706
|
+
debouncers.delete(key);
|
|
47707
|
+
return result;
|
|
47708
|
+
},
|
|
47709
|
+
wait
|
|
47710
|
+
));
|
|
47711
|
+
}
|
|
47712
|
+
return (_a = debouncers.get(key)) == null ? void 0 : _a.apply(this, args);
|
|
47713
|
+
};
|
|
47714
|
+
}
|
|
47715
|
+
const resetScrollbar = debounceByArgs(resetScrollbarCore, 50);
|
|
47954
47716
|
function resetScrollbarLeft(scrollContainer, scrollbarContainer) {
|
|
47955
47717
|
const scrollWrap = getContainerScrollArea(scrollContainer);
|
|
47956
47718
|
const { paddingLeft } = getScrollWrapPaddingSize(scrollWrap);
|
|
@@ -48967,35 +48729,35 @@ ${codeText}
|
|
|
48967
48729
|
}
|
|
48968
48730
|
return rects[0];
|
|
48969
48731
|
}
|
|
48970
|
-
const zhCN$
|
|
48732
|
+
const zhCN$w = {
|
|
48971
48733
|
embedProperties: {
|
|
48972
48734
|
edit: "\u7F16\u8F91",
|
|
48973
48735
|
addComment: "\u6DFB\u52A0\u6279\u6CE8"
|
|
48974
48736
|
}
|
|
48975
48737
|
};
|
|
48976
|
-
const zhHK$
|
|
48738
|
+
const zhHK$w = {
|
|
48977
48739
|
embedProperties: {
|
|
48978
48740
|
edit: "\u7DE8\u8F2F",
|
|
48979
48741
|
addComment: "\u6DFB\u52A0\u6279\u8A3B"
|
|
48980
48742
|
}
|
|
48981
48743
|
};
|
|
48982
|
-
const enUS$
|
|
48744
|
+
const enUS$w = {
|
|
48983
48745
|
embedProperties: {
|
|
48984
48746
|
edit: "Edit",
|
|
48985
48747
|
addComment: "Add annotation"
|
|
48986
48748
|
}
|
|
48987
48749
|
};
|
|
48988
|
-
const jaJP$
|
|
48750
|
+
const jaJP$w = {
|
|
48989
48751
|
embedProperties: {
|
|
48990
48752
|
edit: "\u7DE8\u96C6",
|
|
48991
48753
|
addComment: "\u6CE8\u91C8\u3092\u8FFD\u52A0"
|
|
48992
48754
|
}
|
|
48993
48755
|
};
|
|
48994
48756
|
i18n$1.mergeLang({
|
|
48995
|
-
"zh-CN": zhCN$
|
|
48996
|
-
"zh-HK": zhHK$
|
|
48997
|
-
"en-US": enUS$
|
|
48998
|
-
"ja-JP": jaJP$
|
|
48757
|
+
"zh-CN": zhCN$w,
|
|
48758
|
+
"zh-HK": zhHK$w,
|
|
48759
|
+
"en-US": enUS$w,
|
|
48760
|
+
"ja-JP": jaJP$w
|
|
48999
48761
|
});
|
|
49000
48762
|
const logger$2a = getLogger("embed-block-properties");
|
|
49001
48763
|
function addCommentToBlock$1(editor, block) {
|
|
@@ -49567,35 +49329,35 @@ ${codeText}
|
|
|
49567
49329
|
}
|
|
49568
49330
|
}
|
|
49569
49331
|
const exclusiveBlockStyles = "";
|
|
49570
|
-
const zhCN$
|
|
49332
|
+
const zhCN$v = {
|
|
49571
49333
|
exclusive: {
|
|
49572
49334
|
tips: "\u300C{editor}\u300D\u6B63\u5728\u7F16\u8F91\uFF0C\u300C{embedType}\u300D\u4E0D\u652F\u6301\u591A\u4EBA\u7F16\u8F91",
|
|
49573
49335
|
fallbackAbstract: "\u8BE5 Block"
|
|
49574
49336
|
}
|
|
49575
49337
|
};
|
|
49576
|
-
const zhHK$
|
|
49338
|
+
const zhHK$v = {
|
|
49577
49339
|
exclusive: {
|
|
49578
49340
|
tips: "\u300C{editor}\u300D\u6B63\u5728\u7DE8\u8F2F\uFF0C\u300C{embedType}\u300D\u4E0D\u652F\u6301\u591A\u4EBA\u7DE8\u8F2F",
|
|
49579
49341
|
fallbackAbstract: "\u8A72 Block"
|
|
49580
49342
|
}
|
|
49581
49343
|
};
|
|
49582
|
-
const enUS$
|
|
49344
|
+
const enUS$v = {
|
|
49583
49345
|
exclusive: {
|
|
49584
49346
|
tips: "\u300C{editor}\u300Dis editing\uFF0C\u300C{embedType}\u300Ddoes not support multi-person editing",
|
|
49585
49347
|
fallbackAbstract: "This Block"
|
|
49586
49348
|
}
|
|
49587
49349
|
};
|
|
49588
|
-
const jaJP$
|
|
49350
|
+
const jaJP$v = {
|
|
49589
49351
|
exclusive: {
|
|
49590
49352
|
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",
|
|
49591
49353
|
fallbackAbstract: "\u3053\u306E\u8981\u7D20"
|
|
49592
49354
|
}
|
|
49593
49355
|
};
|
|
49594
49356
|
i18n$1.mergeLang({
|
|
49595
|
-
"zh-CN": zhCN$
|
|
49596
|
-
"zh-HK": zhHK$
|
|
49597
|
-
"en-US": enUS$
|
|
49598
|
-
"ja-JP": jaJP$
|
|
49357
|
+
"zh-CN": zhCN$v,
|
|
49358
|
+
"zh-HK": zhHK$v,
|
|
49359
|
+
"en-US": enUS$v,
|
|
49360
|
+
"ja-JP": jaJP$v
|
|
49599
49361
|
});
|
|
49600
49362
|
function getBlockInfo(editor, block) {
|
|
49601
49363
|
const data2 = editor.getBlockData(block);
|
|
@@ -49772,28 +49534,28 @@ ${codeText}
|
|
|
49772
49534
|
}
|
|
49773
49535
|
}
|
|
49774
49536
|
const style$b = "";
|
|
49775
|
-
const zhCN$
|
|
49537
|
+
const zhCN$u = {
|
|
49776
49538
|
locker: {
|
|
49777
49539
|
lock: "\u9501\u5B9A",
|
|
49778
49540
|
unlock: "\u89E3\u9664\u9501\u5B9A",
|
|
49779
49541
|
lockedBy: "\u88AB {name} \u9501\u5B9A"
|
|
49780
49542
|
}
|
|
49781
49543
|
};
|
|
49782
|
-
const zhHK$
|
|
49544
|
+
const zhHK$u = {
|
|
49783
49545
|
locker: {
|
|
49784
49546
|
lock: "\u9396\u5B9A",
|
|
49785
49547
|
unlock: "\u89E3\u9664\u9396\u5B9A",
|
|
49786
49548
|
lockedBy: "\u88AB {name} \u9396\u5B9A"
|
|
49787
49549
|
}
|
|
49788
49550
|
};
|
|
49789
|
-
const enUS$
|
|
49551
|
+
const enUS$u = {
|
|
49790
49552
|
locker: {
|
|
49791
49553
|
lock: "Lock",
|
|
49792
49554
|
unlock: "Unlock",
|
|
49793
49555
|
lockedBy: "Locked by {name}"
|
|
49794
49556
|
}
|
|
49795
49557
|
};
|
|
49796
|
-
const jaJP$
|
|
49558
|
+
const jaJP$u = {
|
|
49797
49559
|
locker: {
|
|
49798
49560
|
lock: "\u30ED\u30C3\u30AF",
|
|
49799
49561
|
unlock: "\u30ED\u30C3\u30AF\u89E3\u9664",
|
|
@@ -49801,10 +49563,10 @@ ${codeText}
|
|
|
49801
49563
|
}
|
|
49802
49564
|
};
|
|
49803
49565
|
i18n$1.mergeLang({
|
|
49804
|
-
"zh-CN": zhCN$
|
|
49805
|
-
"zh-HK": zhHK$
|
|
49806
|
-
"en-US": enUS$
|
|
49807
|
-
"ja-JP": jaJP$
|
|
49566
|
+
"zh-CN": zhCN$u,
|
|
49567
|
+
"zh-HK": zhHK$u,
|
|
49568
|
+
"en-US": enUS$u,
|
|
49569
|
+
"ja-JP": jaJP$u
|
|
49808
49570
|
});
|
|
49809
49571
|
class BlockLockerPasteHandler {
|
|
49810
49572
|
async handleBeforePasteDoc(editor, doc2) {
|
|
@@ -50922,7 +50684,7 @@ ${codeText}
|
|
|
50922
50684
|
});
|
|
50923
50685
|
return !!ret;
|
|
50924
50686
|
}
|
|
50925
|
-
function addBlockClasses(from, to,
|
|
50687
|
+
function addBlockClasses(from, to, styles) {
|
|
50926
50688
|
const container = getParentContainer(from);
|
|
50927
50689
|
if (to) {
|
|
50928
50690
|
const container2 = getParentContainer(to);
|
|
@@ -50933,18 +50695,18 @@ ${codeText}
|
|
|
50933
50695
|
const toIndex = getBlockIndex(to);
|
|
50934
50696
|
assert(logger$24, fromIndex <= toIndex, "invalid block index");
|
|
50935
50697
|
}
|
|
50936
|
-
addClass(from, ...
|
|
50698
|
+
addClass(from, ...styles);
|
|
50937
50699
|
if (!to || to === from) {
|
|
50938
50700
|
return;
|
|
50939
50701
|
}
|
|
50940
50702
|
let next2 = getNextBlock(from);
|
|
50941
50703
|
while (next2 !== to) {
|
|
50942
50704
|
assert(logger$24, next2, "no next button");
|
|
50943
|
-
addClass(next2, ...
|
|
50705
|
+
addClass(next2, ...styles);
|
|
50944
50706
|
next2 = getNextBlock(next2);
|
|
50945
50707
|
}
|
|
50946
50708
|
if (next2) {
|
|
50947
|
-
addClass(next2, ...
|
|
50709
|
+
addClass(next2, ...styles);
|
|
50948
50710
|
}
|
|
50949
50711
|
}
|
|
50950
50712
|
async function requestMindmapFullscreen(editor, block, mindmapTools) {
|
|
@@ -51932,7 +51694,7 @@ ${codeText}
|
|
|
51932
51694
|
html = `<input type="checkbox" disabled="disabled" /> ${html}`;
|
|
51933
51695
|
}
|
|
51934
51696
|
let listTag = "ul";
|
|
51935
|
-
let
|
|
51697
|
+
let styles = "";
|
|
51936
51698
|
if (list2.ordered) {
|
|
51937
51699
|
html = `<li value="${list2.start}">${html}</li>`;
|
|
51938
51700
|
listTag = "ol";
|
|
@@ -51940,18 +51702,18 @@ ${codeText}
|
|
|
51940
51702
|
case 2:
|
|
51941
51703
|
case 5:
|
|
51942
51704
|
case 8:
|
|
51943
|
-
|
|
51705
|
+
styles = "list-style-type: lower-alpha;";
|
|
51944
51706
|
break;
|
|
51945
51707
|
case 3:
|
|
51946
51708
|
case 6:
|
|
51947
|
-
|
|
51709
|
+
styles = "list-style-type: lower-roman;";
|
|
51948
51710
|
break;
|
|
51949
51711
|
}
|
|
51950
51712
|
} else {
|
|
51951
51713
|
html = `<li>${html}</li>`;
|
|
51952
51714
|
}
|
|
51953
51715
|
if (isFirstListItem(editor, blockData, doc2, path)) {
|
|
51954
|
-
html = `<${listTag}${
|
|
51716
|
+
html = `<${listTag}${styles ? ` style="${styles}"` : ""}>${html}`;
|
|
51955
51717
|
}
|
|
51956
51718
|
if (isLastListItem(editor, blockData, doc2, path)) {
|
|
51957
51719
|
html = `${html}</${listTag}>`;
|
|
@@ -52767,7 +52529,7 @@ ${codeText}
|
|
|
52767
52529
|
}
|
|
52768
52530
|
return blockContent;
|
|
52769
52531
|
}
|
|
52770
|
-
const zhCN$
|
|
52532
|
+
const zhCN$t = {
|
|
52771
52533
|
list: {
|
|
52772
52534
|
confirm: "\u786E\u5B9A",
|
|
52773
52535
|
setStart: "\u8BBE\u7F6E\u7F16\u53F7",
|
|
@@ -52787,7 +52549,7 @@ ${codeText}
|
|
|
52787
52549
|
exitFullscreen: "\u9000\u51FA\u5168\u5C4F"
|
|
52788
52550
|
}
|
|
52789
52551
|
};
|
|
52790
|
-
const zhHK$
|
|
52552
|
+
const zhHK$t = {
|
|
52791
52553
|
list: {
|
|
52792
52554
|
confirm: "\u78BA\u5B9A",
|
|
52793
52555
|
setStart: "\u8A2D\u7F6E\u7DE8\u865F",
|
|
@@ -52807,7 +52569,7 @@ ${codeText}
|
|
|
52807
52569
|
exitFullscreen: "\u9000\u51FA\u5168\u5C4F"
|
|
52808
52570
|
}
|
|
52809
52571
|
};
|
|
52810
|
-
const enUS$
|
|
52572
|
+
const enUS$t = {
|
|
52811
52573
|
list: {
|
|
52812
52574
|
confirm: "Confirm",
|
|
52813
52575
|
setStart: "Set number",
|
|
@@ -52827,7 +52589,7 @@ ${codeText}
|
|
|
52827
52589
|
exitFullscreen: "Exit full screen"
|
|
52828
52590
|
}
|
|
52829
52591
|
};
|
|
52830
|
-
const jaJP$
|
|
52592
|
+
const jaJP$t = {
|
|
52831
52593
|
list: {
|
|
52832
52594
|
confirm: "OK",
|
|
52833
52595
|
setStart: "\u756A\u53F7\u3092\u8A2D\u5B9A",
|
|
@@ -52848,10 +52610,10 @@ ${codeText}
|
|
|
52848
52610
|
}
|
|
52849
52611
|
};
|
|
52850
52612
|
i18n$1.mergeLang({
|
|
52851
|
-
"zh-CN": zhCN$
|
|
52852
|
-
"zh-HK": zhHK$
|
|
52853
|
-
"en-US": enUS$
|
|
52854
|
-
"ja-JP": jaJP$
|
|
52613
|
+
"zh-CN": zhCN$t,
|
|
52614
|
+
"zh-HK": zhHK$t,
|
|
52615
|
+
"en-US": enUS$t,
|
|
52616
|
+
"ja-JP": jaJP$t
|
|
52855
52617
|
});
|
|
52856
52618
|
const style$a = "";
|
|
52857
52619
|
const logger$20 = getLogger("list-block:paste-handler");
|
|
@@ -54848,7 +54610,7 @@ ${codeText}
|
|
|
54848
54610
|
const svg = await mathjax2Svg(editor, tex);
|
|
54849
54611
|
const data2 = svg;
|
|
54850
54612
|
const file2 = new File([data2], "math.svg");
|
|
54851
|
-
const path = await editor.doc.uploadResource(file2
|
|
54613
|
+
const path = await editor.doc.uploadResource(file2);
|
|
54852
54614
|
return path.resourceId;
|
|
54853
54615
|
}
|
|
54854
54616
|
async function convertAndUploadMathjaxForEmbed(editor, tex) {
|
|
@@ -54856,7 +54618,7 @@ ${codeText}
|
|
|
54856
54618
|
const perfectState = analyzeMathjaxSvgWidth(svg);
|
|
54857
54619
|
const data2 = svg;
|
|
54858
54620
|
const file2 = new File([data2], "math.svg");
|
|
54859
|
-
const path = await editor.doc.uploadResource(file2
|
|
54621
|
+
const path = await editor.doc.uploadResource(file2);
|
|
54860
54622
|
return {
|
|
54861
54623
|
resourceId: path.resourceId,
|
|
54862
54624
|
...perfectState
|
|
@@ -55332,35 +55094,35 @@ $$${mathData.mathjaxText}$$
|
|
|
55332
55094
|
getBlockProperties: getBlockProperties$c
|
|
55333
55095
|
};
|
|
55334
55096
|
const mathjaxStyle = "";
|
|
55335
|
-
const zhCN$
|
|
55097
|
+
const zhCN$s = {
|
|
55336
55098
|
mathjax: {
|
|
55337
55099
|
emptyText: "\u7A7A\u7684\u516C\u5F0F",
|
|
55338
55100
|
abstract: "\u516C\u5F0F"
|
|
55339
55101
|
}
|
|
55340
55102
|
};
|
|
55341
|
-
const zhHK$
|
|
55103
|
+
const zhHK$s = {
|
|
55342
55104
|
mathjax: {
|
|
55343
55105
|
emptyText: "\u7A7A\u7684\u516C\u5F0F",
|
|
55344
55106
|
abstract: "\u516C\u5F0F"
|
|
55345
55107
|
}
|
|
55346
55108
|
};
|
|
55347
|
-
const enUS$
|
|
55109
|
+
const enUS$s = {
|
|
55348
55110
|
mathjax: {
|
|
55349
55111
|
emptyText: "Empty formula",
|
|
55350
55112
|
abstract: "Formula"
|
|
55351
55113
|
}
|
|
55352
55114
|
};
|
|
55353
|
-
const jaJP$
|
|
55115
|
+
const jaJP$s = {
|
|
55354
55116
|
mathjax: {
|
|
55355
55117
|
emptyText: "\u6570\u5F0F\u306A\u3057",
|
|
55356
55118
|
abstract: "\u6570\u5F0F"
|
|
55357
55119
|
}
|
|
55358
55120
|
};
|
|
55359
55121
|
i18n$1.mergeLang({
|
|
55360
|
-
"zh-CN": zhCN$
|
|
55361
|
-
"zh-HK": zhHK$
|
|
55362
|
-
"en-US": enUS$
|
|
55363
|
-
"ja-JP": jaJP$
|
|
55122
|
+
"zh-CN": zhCN$s,
|
|
55123
|
+
"zh-HK": zhHK$s,
|
|
55124
|
+
"en-US": enUS$s,
|
|
55125
|
+
"ja-JP": jaJP$s
|
|
55364
55126
|
});
|
|
55365
55127
|
function convertToMath(editor, containerId, blockIndex, offset) {
|
|
55366
55128
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -61094,7 +60856,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61094
60856
|
}
|
|
61095
60857
|
}
|
|
61096
60858
|
__publicField(StatusBoxCommand, "id", "insert-status");
|
|
61097
|
-
const enUS$
|
|
60859
|
+
const enUS$r = {
|
|
61098
60860
|
status: {
|
|
61099
60861
|
empty: "Set status",
|
|
61100
60862
|
command: {
|
|
@@ -61118,7 +60880,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61118
60880
|
}
|
|
61119
60881
|
}
|
|
61120
60882
|
};
|
|
61121
|
-
const zhCN$
|
|
60883
|
+
const zhCN$r = {
|
|
61122
60884
|
status: {
|
|
61123
60885
|
empty: "\u8BBE\u7F6E\u72B6\u6001",
|
|
61124
60886
|
command: {
|
|
@@ -61142,7 +60904,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61142
60904
|
}
|
|
61143
60905
|
}
|
|
61144
60906
|
};
|
|
61145
|
-
const zhHK$
|
|
60907
|
+
const zhHK$r = {
|
|
61146
60908
|
status: {
|
|
61147
60909
|
empty: "\u8A2D\u7F6E\u72C0\u614B",
|
|
61148
60910
|
command: {
|
|
@@ -61166,7 +60928,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61166
60928
|
}
|
|
61167
60929
|
}
|
|
61168
60930
|
};
|
|
61169
|
-
const jaJP$
|
|
60931
|
+
const jaJP$r = {
|
|
61170
60932
|
status: {
|
|
61171
60933
|
empty: "\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8A2D\u5B9A",
|
|
61172
60934
|
command: {
|
|
@@ -61191,10 +60953,10 @@ $$${mathData.mathjaxText}$$
|
|
|
61191
60953
|
}
|
|
61192
60954
|
};
|
|
61193
60955
|
const langs$2 = {
|
|
61194
|
-
"en-US": enUS$
|
|
61195
|
-
"zh-CN": zhCN$
|
|
61196
|
-
"zh-HK": zhHK$
|
|
61197
|
-
"ja-JP": jaJP$
|
|
60956
|
+
"en-US": enUS$r,
|
|
60957
|
+
"zh-CN": zhCN$r,
|
|
60958
|
+
"zh-HK": zhHK$r,
|
|
60959
|
+
"ja-JP": jaJP$r
|
|
61198
60960
|
};
|
|
61199
60961
|
i18n$1.mergeLang(langs$2);
|
|
61200
60962
|
class EmojiPopup {
|
|
@@ -62245,7 +62007,7 @@ $$${mathData.mathjaxText}$$
|
|
|
62245
62007
|
const TextColorShortcuts = {
|
|
62246
62008
|
"CtrlOrCmd+Alt+KeyH": (editor) => executeShortcut(editor)
|
|
62247
62009
|
};
|
|
62248
|
-
const zhCN$
|
|
62010
|
+
const zhCN$q = {
|
|
62249
62011
|
quickMenu: {
|
|
62250
62012
|
basic: {
|
|
62251
62013
|
heading: {
|
|
@@ -62304,7 +62066,7 @@ $$${mathData.mathjaxText}$$
|
|
|
62304
62066
|
selectBlock: "\u9009\u62E9\u533A\u5757"
|
|
62305
62067
|
}
|
|
62306
62068
|
};
|
|
62307
|
-
const zhHK$
|
|
62069
|
+
const zhHK$q = {
|
|
62308
62070
|
quickMenu: {
|
|
62309
62071
|
basic: {
|
|
62310
62072
|
heading: {
|
|
@@ -62363,7 +62125,7 @@ $$${mathData.mathjaxText}$$
|
|
|
62363
62125
|
selectBlock: "\u9078\u64C7\u5340\u584A"
|
|
62364
62126
|
}
|
|
62365
62127
|
};
|
|
62366
|
-
const enUS$
|
|
62128
|
+
const enUS$q = {
|
|
62367
62129
|
quickMenu: {
|
|
62368
62130
|
basic: {
|
|
62369
62131
|
heading: {
|
|
@@ -62422,7 +62184,7 @@ $$${mathData.mathjaxText}$$
|
|
|
62422
62184
|
selectBlock: "Select Block"
|
|
62423
62185
|
}
|
|
62424
62186
|
};
|
|
62425
|
-
const jaJP$
|
|
62187
|
+
const jaJP$q = {
|
|
62426
62188
|
quickMenu: {
|
|
62427
62189
|
basic: {
|
|
62428
62190
|
heading: {
|
|
@@ -62482,10 +62244,10 @@ $$${mathData.mathjaxText}$$
|
|
|
62482
62244
|
}
|
|
62483
62245
|
};
|
|
62484
62246
|
i18n$1.mergeLang({
|
|
62485
|
-
"zh-CN": zhCN$
|
|
62486
|
-
"zh-HK": zhHK$
|
|
62487
|
-
"en-US": enUS$
|
|
62488
|
-
"ja-JP": jaJP$
|
|
62247
|
+
"zh-CN": zhCN$q,
|
|
62248
|
+
"zh-HK": zhHK$q,
|
|
62249
|
+
"en-US": enUS$q,
|
|
62250
|
+
"ja-JP": jaJP$q
|
|
62489
62251
|
});
|
|
62490
62252
|
class TextStylesFixedProvider extends ProxyProvider {
|
|
62491
62253
|
constructor(editor, afterCommandCallback) {
|
|
@@ -62880,13 +62642,13 @@ $$${mathData.mathjaxText}$$
|
|
|
62880
62642
|
if (!op.attributes) {
|
|
62881
62643
|
return /* @__PURE__ */ new Map();
|
|
62882
62644
|
}
|
|
62883
|
-
const
|
|
62645
|
+
const styles = Object.entries(op.attributes).filter(([key]) => {
|
|
62884
62646
|
if (key.startsWith("style-")) {
|
|
62885
62647
|
return true;
|
|
62886
62648
|
}
|
|
62887
62649
|
return false;
|
|
62888
62650
|
});
|
|
62889
|
-
return new Map(
|
|
62651
|
+
return new Map(styles);
|
|
62890
62652
|
};
|
|
62891
62653
|
if (text2.length === 0) {
|
|
62892
62654
|
return /* @__PURE__ */ new Map();
|
|
@@ -62930,11 +62692,11 @@ $$${mathData.mathjaxText}$$
|
|
|
62930
62692
|
if (getTextLength(text2) === 0) {
|
|
62931
62693
|
return textStyles;
|
|
62932
62694
|
}
|
|
62933
|
-
let
|
|
62934
|
-
|
|
62695
|
+
let styles = getIntersectionStyles(text2);
|
|
62696
|
+
styles = mergeActiveStyle(editor, styles);
|
|
62935
62697
|
function getTextStyle(item) {
|
|
62936
62698
|
const { id, icon, desc, name } = item;
|
|
62937
|
-
const value =
|
|
62699
|
+
const value = styles.get(id);
|
|
62938
62700
|
if (value !== void 0) {
|
|
62939
62701
|
return {
|
|
62940
62702
|
id,
|
|
@@ -63530,7 +63292,6 @@ $$${mathData.mathjaxText}$$
|
|
|
63530
63292
|
GroupItemActions2["QuickReply"] = "quick-reply";
|
|
63531
63293
|
GroupItemActions2["QuickReplyOk"] = "quick-reply-ok";
|
|
63532
63294
|
GroupItemActions2["QuickReplyCancel"] = "quick-reply-cancel";
|
|
63533
|
-
GroupItemActions2["Resolve"] = "resolve";
|
|
63534
63295
|
return GroupItemActions2;
|
|
63535
63296
|
})(GroupItemActions || {});
|
|
63536
63297
|
const GROUP_ITEM_ACTION_MARK = "group-item-action";
|
|
@@ -63578,7 +63339,7 @@ $$${mathData.mathjaxText}$$
|
|
|
63578
63339
|
return attributes.filter((attribute) => attribute.startsWith("comment-")).map((attribute) => attribute.replace("comment-", ""));
|
|
63579
63340
|
}
|
|
63580
63341
|
const logger$1G = getLogger("doc-comments");
|
|
63581
|
-
function addBlockComments
|
|
63342
|
+
function addBlockComments(doc2, block, result, resultSet) {
|
|
63582
63343
|
if (block.comments) {
|
|
63583
63344
|
const blockComments = block.comments;
|
|
63584
63345
|
if (Array.isArray(blockComments)) {
|
|
@@ -63614,7 +63375,7 @@ $$${mathData.mathjaxText}$$
|
|
|
63614
63375
|
children.forEach((childContainerId) => {
|
|
63615
63376
|
const childBlocks = doc2.blocks[childContainerId];
|
|
63616
63377
|
childBlocks.forEach((subBlock) => {
|
|
63617
|
-
addBlockComments
|
|
63378
|
+
addBlockComments(doc2, subBlock, result, resultSet);
|
|
63618
63379
|
});
|
|
63619
63380
|
});
|
|
63620
63381
|
}
|
|
@@ -63622,7 +63383,7 @@ $$${mathData.mathjaxText}$$
|
|
|
63622
63383
|
const result = [];
|
|
63623
63384
|
const resultSet = /* @__PURE__ */ new Set();
|
|
63624
63385
|
doc2.blocks.root.forEach((block) => {
|
|
63625
|
-
addBlockComments
|
|
63386
|
+
addBlockComments(doc2, block, result, resultSet);
|
|
63626
63387
|
});
|
|
63627
63388
|
const resultMap = /* @__PURE__ */ new Map();
|
|
63628
63389
|
result.forEach((commentId, index2) => resultMap.set(commentId, index2));
|
|
@@ -63678,26 +63439,6 @@ $$${mathData.mathjaxText}$$
|
|
|
63678
63439
|
});
|
|
63679
63440
|
return result;
|
|
63680
63441
|
}
|
|
63681
|
-
function getUnresolvedCommentsGroupFromDoc(editor, commentsProvider) {
|
|
63682
|
-
return getCommentsGroupFromDoc(editor, commentsProvider).filter((group) => !group.resolver);
|
|
63683
|
-
}
|
|
63684
|
-
function getResolvedCommentsGroupFromDoc(editor, commentsProvider) {
|
|
63685
|
-
const doc2 = editor.doc.toJSON();
|
|
63686
|
-
const commentsMap = getCommentsFromDoc(doc2);
|
|
63687
|
-
const commentGroup = getCommentsGroup(commentsProvider.getComments());
|
|
63688
|
-
const result = commentGroup.filter((group) => group.resolver).sort((group1, group2) => {
|
|
63689
|
-
var _a, _b, _c, _d;
|
|
63690
|
-
const date1 = (_b = (_a = group1.resolver) == null ? void 0 : _a.date) != null ? _b : 0;
|
|
63691
|
-
const date2 = (_d = (_c = group2.resolver) == null ? void 0 : _c.date) != null ? _d : 0;
|
|
63692
|
-
return date2 - date1;
|
|
63693
|
-
});
|
|
63694
|
-
result.forEach((group) => {
|
|
63695
|
-
if (!commentsMap.has(group.groupId)) {
|
|
63696
|
-
group.removedFromDoc = true;
|
|
63697
|
-
}
|
|
63698
|
-
});
|
|
63699
|
-
return result;
|
|
63700
|
-
}
|
|
63701
63442
|
function flattenCommentGroup(comment) {
|
|
63702
63443
|
const { children, ...raw } = comment;
|
|
63703
63444
|
const comments = [raw];
|
|
@@ -63707,12 +63448,9 @@ $$${mathData.mathjaxText}$$
|
|
|
63707
63448
|
return comments;
|
|
63708
63449
|
}
|
|
63709
63450
|
function getCommentsCountInDoc(editor, commentsProvider) {
|
|
63710
|
-
const
|
|
63711
|
-
const
|
|
63712
|
-
|
|
63713
|
-
const total = unresolved + resolved;
|
|
63714
|
-
logger$1G.debug(`total comments: ${total}, unresolved: ${unresolved}, resolved: ${resolved}`);
|
|
63715
|
-
return total;
|
|
63451
|
+
const commentGroups = getCommentsGroupFromDoc(editor, commentsProvider);
|
|
63452
|
+
const count = commentGroups.length;
|
|
63453
|
+
return count;
|
|
63716
63454
|
}
|
|
63717
63455
|
function getCommentsFromPos(editor, pos) {
|
|
63718
63456
|
const commentIds = [];
|
|
@@ -63757,24 +63495,6 @@ $$${mathData.mathjaxText}$$
|
|
|
63757
63495
|
const commentIds = intersection__default.default(comments1, comments2);
|
|
63758
63496
|
return commentIds;
|
|
63759
63497
|
}
|
|
63760
|
-
function removeUnresolvedComments(commentProvider, commentIds) {
|
|
63761
|
-
return commentIds.filter((commentId) => {
|
|
63762
|
-
const comment = commentProvider.getComment(commentId);
|
|
63763
|
-
if (!comment) {
|
|
63764
|
-
return false;
|
|
63765
|
-
}
|
|
63766
|
-
return !!comment.resolver;
|
|
63767
|
-
});
|
|
63768
|
-
}
|
|
63769
|
-
function removeResolvedComments(commentProvider, commentIds) {
|
|
63770
|
-
return commentIds.filter((commentId) => {
|
|
63771
|
-
const comment = commentProvider.getComment(commentId);
|
|
63772
|
-
if (!comment) {
|
|
63773
|
-
return false;
|
|
63774
|
-
}
|
|
63775
|
-
return !(comment == null ? void 0 : comment.resolver);
|
|
63776
|
-
});
|
|
63777
|
-
}
|
|
63778
63498
|
const logger$1F = getLogger("active-comments");
|
|
63779
63499
|
function inactiveComment(editor, commentId) {
|
|
63780
63500
|
const activeCommentElements = editor.rootContainer.querySelectorAll(`span.comment[comment-${commentId}],[data-type=editor-block].comment[comment-${commentId}]`);
|
|
@@ -63830,11 +63550,6 @@ $$${mathData.mathjaxText}$$
|
|
|
63830
63550
|
}
|
|
63831
63551
|
}
|
|
63832
63552
|
}
|
|
63833
|
-
function getElementsByCommentId(editor, commentId) {
|
|
63834
|
-
const lowerCommentId = commentId.toLocaleLowerCase();
|
|
63835
|
-
const elements = editor.rootContainer.querySelectorAll(`span.comment[comment-${lowerCommentId}],[data-type=editor-block].comment[comment-${lowerCommentId}]`);
|
|
63836
|
-
return Array.from(elements);
|
|
63837
|
-
}
|
|
63838
63553
|
function isImageBlock(block) {
|
|
63839
63554
|
return getBlockType(block) === "embed" && getEmbedType(block) === "image";
|
|
63840
63555
|
}
|
|
@@ -64860,8 +64575,7 @@ $$${mathData.mathjaxText}$$
|
|
|
64860
64575
|
const res = await this.editor.doc.uploadResource(file2, {
|
|
64861
64576
|
onProgress: (progress) => {
|
|
64862
64577
|
setImageUploading(imageContainer, progress);
|
|
64863
|
-
}
|
|
64864
|
-
resourceType: "image"
|
|
64578
|
+
}
|
|
64865
64579
|
});
|
|
64866
64580
|
removeClass(imageContainer, "uploading");
|
|
64867
64581
|
this.images[index2].src = res.resourceId;
|
|
@@ -66181,7 +65895,7 @@ ${codeText}
|
|
|
66181
65895
|
};
|
|
66182
65896
|
}
|
|
66183
65897
|
}
|
|
66184
|
-
const zhCN$
|
|
65898
|
+
const zhCN$p = {
|
|
66185
65899
|
code: {
|
|
66186
65900
|
title: "\u4EE3\u7801",
|
|
66187
65901
|
abstract: "\u4EE3\u7801",
|
|
@@ -66193,7 +65907,7 @@ ${codeText}
|
|
|
66193
65907
|
plainText: "Plain Text"
|
|
66194
65908
|
}
|
|
66195
65909
|
};
|
|
66196
|
-
const zhHK$
|
|
65910
|
+
const zhHK$p = {
|
|
66197
65911
|
code: {
|
|
66198
65912
|
title: "\u4EE3\u78BC",
|
|
66199
65913
|
abstract: "\u4EE3\u78BC",
|
|
@@ -66205,7 +65919,7 @@ ${codeText}
|
|
|
66205
65919
|
plainText: "Plain Text"
|
|
66206
65920
|
}
|
|
66207
65921
|
};
|
|
66208
|
-
const enUS$
|
|
65922
|
+
const enUS$p = {
|
|
66209
65923
|
code: {
|
|
66210
65924
|
title: "Code",
|
|
66211
65925
|
abstract: "Code",
|
|
@@ -66217,7 +65931,7 @@ ${codeText}
|
|
|
66217
65931
|
plainText: "Plain Text"
|
|
66218
65932
|
}
|
|
66219
65933
|
};
|
|
66220
|
-
const jaJP$
|
|
65934
|
+
const jaJP$p = {
|
|
66221
65935
|
code: {
|
|
66222
65936
|
title: "\u30B3\u30FC\u30C9",
|
|
66223
65937
|
abstract: "\u30B3\u30FC\u30C9",
|
|
@@ -66230,10 +65944,10 @@ ${codeText}
|
|
|
66230
65944
|
}
|
|
66231
65945
|
};
|
|
66232
65946
|
i18n$1.mergeLang({
|
|
66233
|
-
"zh-CN": zhCN$
|
|
66234
|
-
"zh-HK": zhHK$
|
|
66235
|
-
"en-US": enUS$
|
|
66236
|
-
"ja-JP": jaJP$
|
|
65947
|
+
"zh-CN": zhCN$p,
|
|
65948
|
+
"zh-HK": zhHK$p,
|
|
65949
|
+
"en-US": enUS$p,
|
|
65950
|
+
"ja-JP": jaJP$p
|
|
66237
65951
|
});
|
|
66238
65952
|
function convertToTable(editor, containerId, blockIndex, offset) {
|
|
66239
65953
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -66627,7 +66341,7 @@ ${codeText}
|
|
|
66627
66341
|
return false;
|
|
66628
66342
|
}
|
|
66629
66343
|
}
|
|
66630
|
-
const enUS$
|
|
66344
|
+
const enUS$o = {
|
|
66631
66345
|
placeholder: {
|
|
66632
66346
|
default: "Type / for commands",
|
|
66633
66347
|
heading: "Heading {heading}",
|
|
@@ -66639,7 +66353,7 @@ ${codeText}
|
|
|
66639
66353
|
mobileDefault: "Type to add content"
|
|
66640
66354
|
}
|
|
66641
66355
|
};
|
|
66642
|
-
const zhCN$
|
|
66356
|
+
const zhCN$o = {
|
|
66643
66357
|
placeholder: {
|
|
66644
66358
|
default: "\u8F93\u5165\u300C/\u300D\u5FEB\u901F\u63D2\u5165",
|
|
66645
66359
|
heading: "\u6807\u9898{heading}",
|
|
@@ -66651,7 +66365,7 @@ ${codeText}
|
|
|
66651
66365
|
mobileDefault: "\u8F93\u5165\u4EE5\u6DFB\u52A0\u5185\u5BB9"
|
|
66652
66366
|
}
|
|
66653
66367
|
};
|
|
66654
|
-
const zhHK$
|
|
66368
|
+
const zhHK$o = {
|
|
66655
66369
|
placeholder: {
|
|
66656
66370
|
default: "\u8F38\u5165\u300C/\u300D\u5FEB\u901F\u63D2\u5165",
|
|
66657
66371
|
heading: "\u6A19\u984C{heading}",
|
|
@@ -66663,7 +66377,7 @@ ${codeText}
|
|
|
66663
66377
|
mobileDefault: "\u8F38\u5165\u4EE5\u6DFB\u52A0\u5167\u5BB9"
|
|
66664
66378
|
}
|
|
66665
66379
|
};
|
|
66666
|
-
const jaJP$
|
|
66380
|
+
const jaJP$o = {
|
|
66667
66381
|
placeholder: {
|
|
66668
66382
|
default: "\u300C/\u300D\u3092\u5165\u529B\u3057\u3066\u7D20\u65E9\u304F\u633F\u5165\u3059\u308B",
|
|
66669
66383
|
heading: "\u898B\u51FA\u3057{heading}",
|
|
@@ -66676,10 +66390,10 @@ ${codeText}
|
|
|
66676
66390
|
}
|
|
66677
66391
|
};
|
|
66678
66392
|
const langs$1 = {
|
|
66679
|
-
"en-US": enUS$
|
|
66680
|
-
"zh-CN": zhCN$
|
|
66681
|
-
"zh-HK": zhHK$
|
|
66682
|
-
"ja-JP": jaJP$
|
|
66393
|
+
"en-US": enUS$o,
|
|
66394
|
+
"zh-CN": zhCN$o,
|
|
66395
|
+
"zh-HK": zhHK$o,
|
|
66396
|
+
"ja-JP": jaJP$o
|
|
66683
66397
|
};
|
|
66684
66398
|
i18n$1.mergeLang(langs$1);
|
|
66685
66399
|
function isEmptyTextBlockWithoutCompositionText(editor, block) {
|
|
@@ -67411,7 +67125,7 @@ ${codeText}
|
|
|
67411
67125
|
this.rootButton.destroy();
|
|
67412
67126
|
}
|
|
67413
67127
|
}
|
|
67414
|
-
const zhCN$
|
|
67128
|
+
const zhCN$n = {
|
|
67415
67129
|
blockMenu: {
|
|
67416
67130
|
section: {
|
|
67417
67131
|
basics: "\u57FA\u7840",
|
|
@@ -67435,7 +67149,7 @@ ${codeText}
|
|
|
67435
67149
|
}
|
|
67436
67150
|
}
|
|
67437
67151
|
};
|
|
67438
|
-
const zhHK$
|
|
67152
|
+
const zhHK$n = {
|
|
67439
67153
|
blockMenu: {
|
|
67440
67154
|
section: {
|
|
67441
67155
|
basics: "\u57FA\u790E",
|
|
@@ -67459,7 +67173,7 @@ ${codeText}
|
|
|
67459
67173
|
}
|
|
67460
67174
|
}
|
|
67461
67175
|
};
|
|
67462
|
-
const enUS$
|
|
67176
|
+
const enUS$n = {
|
|
67463
67177
|
blockMenu: {
|
|
67464
67178
|
section: {
|
|
67465
67179
|
basics: "Basic",
|
|
@@ -67483,7 +67197,7 @@ ${codeText}
|
|
|
67483
67197
|
}
|
|
67484
67198
|
}
|
|
67485
67199
|
};
|
|
67486
|
-
const jaJP$
|
|
67200
|
+
const jaJP$n = {
|
|
67487
67201
|
blockMenu: {
|
|
67488
67202
|
section: {
|
|
67489
67203
|
basics: "\u4E00\u822C",
|
|
@@ -67508,10 +67222,10 @@ ${codeText}
|
|
|
67508
67222
|
}
|
|
67509
67223
|
};
|
|
67510
67224
|
i18n$1.mergeLang({
|
|
67511
|
-
"zh-CN": zhCN$
|
|
67512
|
-
"zh-HK": zhHK$
|
|
67513
|
-
"en-US": enUS$
|
|
67514
|
-
"ja-JP": jaJP$
|
|
67225
|
+
"zh-CN": zhCN$n,
|
|
67226
|
+
"zh-HK": zhHK$n,
|
|
67227
|
+
"en-US": enUS$n,
|
|
67228
|
+
"ja-JP": jaJP$n
|
|
67515
67229
|
});
|
|
67516
67230
|
const style$8 = "";
|
|
67517
67231
|
class DragData {
|
|
@@ -68479,7 +68193,7 @@ ${codeText}
|
|
|
68479
68193
|
}
|
|
68480
68194
|
}
|
|
68481
68195
|
}
|
|
68482
|
-
const zhCN$
|
|
68196
|
+
const zhCN$m = {
|
|
68483
68197
|
image: {
|
|
68484
68198
|
title: "\u56FE\u7247",
|
|
68485
68199
|
upload: {
|
|
@@ -68495,7 +68209,7 @@ ${codeText}
|
|
|
68495
68209
|
abstract: "\u56FE\u7247"
|
|
68496
68210
|
}
|
|
68497
68211
|
};
|
|
68498
|
-
const zhHK$
|
|
68212
|
+
const zhHK$m = {
|
|
68499
68213
|
image: {
|
|
68500
68214
|
title: "\u5716\u7247",
|
|
68501
68215
|
upload: {
|
|
@@ -68511,7 +68225,7 @@ ${codeText}
|
|
|
68511
68225
|
abstract: "\u5716\u7247"
|
|
68512
68226
|
}
|
|
68513
68227
|
};
|
|
68514
|
-
const enUS$
|
|
68228
|
+
const enUS$m = {
|
|
68515
68229
|
image: {
|
|
68516
68230
|
title: "Image",
|
|
68517
68231
|
upload: {
|
|
@@ -68527,7 +68241,7 @@ ${codeText}
|
|
|
68527
68241
|
abstract: "Image"
|
|
68528
68242
|
}
|
|
68529
68243
|
};
|
|
68530
|
-
const jaJP$
|
|
68244
|
+
const jaJP$m = {
|
|
68531
68245
|
image: {
|
|
68532
68246
|
title: "\u753B\u50CF",
|
|
68533
68247
|
upload: {
|
|
@@ -68544,10 +68258,10 @@ ${codeText}
|
|
|
68544
68258
|
}
|
|
68545
68259
|
};
|
|
68546
68260
|
i18n$1.mergeLang({
|
|
68547
|
-
"zh-CN": zhCN$
|
|
68548
|
-
"zh-HK": zhHK$
|
|
68549
|
-
"en-US": enUS$
|
|
68550
|
-
"ja-JP": jaJP$
|
|
68261
|
+
"zh-CN": zhCN$m,
|
|
68262
|
+
"zh-HK": zhHK$m,
|
|
68263
|
+
"en-US": enUS$m,
|
|
68264
|
+
"ja-JP": jaJP$m
|
|
68551
68265
|
});
|
|
68552
68266
|
function convertToImage(editor, containerId, blockIndex, offset) {
|
|
68553
68267
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -68838,7 +68552,7 @@ ${codeText}
|
|
|
68838
68552
|
}
|
|
68839
68553
|
const fileName = `image.${ext}`;
|
|
68840
68554
|
const file2 = new File([blob], fileName, { type: mimeString });
|
|
68841
|
-
const ret = await editor.doc.uploadResource(file2
|
|
68555
|
+
const ret = await editor.doc.uploadResource(file2);
|
|
68842
68556
|
return ret.resourceId;
|
|
68843
68557
|
}
|
|
68844
68558
|
return src;
|
|
@@ -69640,9 +69354,8 @@ ${codeText}
|
|
|
69640
69354
|
return items;
|
|
69641
69355
|
}
|
|
69642
69356
|
reloadList(data2) {
|
|
69643
|
-
this._items.forEach((item) => item.destroy());
|
|
69644
69357
|
this.container.innerHTML = "";
|
|
69645
|
-
this.
|
|
69358
|
+
this.createList(data2);
|
|
69646
69359
|
}
|
|
69647
69360
|
insertItem(data2) {
|
|
69648
69361
|
const index2 = this.findInsertPos(data2);
|
|
@@ -69715,8 +69428,8 @@ ${codeText}
|
|
|
69715
69428
|
});
|
|
69716
69429
|
}
|
|
69717
69430
|
}
|
|
69718
|
-
const switchUpIcon = '<svg width="
|
|
69719
|
-
const switchDownIcon = '<svg width="
|
|
69431
|
+
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>';
|
|
69432
|
+
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>';
|
|
69720
69433
|
const index$8 = "";
|
|
69721
69434
|
const REPLY_EDITOR_EDITING_CLS = "reply-editor-editing";
|
|
69722
69435
|
const { t: t$3 } = i18n$1;
|
|
@@ -69839,9 +69552,6 @@ ${codeText}
|
|
|
69839
69552
|
__publicField(this, "quickReply");
|
|
69840
69553
|
__publicField(this, "createRoot", () => {
|
|
69841
69554
|
const root2 = createElement("div", ["comment-group-item-root"], null);
|
|
69842
|
-
if (this.comment.resolver) {
|
|
69843
|
-
addClass(root2, "resolved");
|
|
69844
|
-
}
|
|
69845
69555
|
return root2;
|
|
69846
69556
|
});
|
|
69847
69557
|
__publicField(this, "createChildrenList", () => {
|
|
@@ -69898,7 +69608,6 @@ ${codeText}
|
|
|
69898
69608
|
this.mainItem = this.createItem();
|
|
69899
69609
|
this.childrenList = this.createChildrenList();
|
|
69900
69610
|
this.quickReply = this.createQuickReply();
|
|
69901
|
-
this.createFooter();
|
|
69902
69611
|
this.editor.on("readonlyChanged", this.handleReadonlyChanged);
|
|
69903
69612
|
this.resizeObserver = new index$g(this.handleResize);
|
|
69904
69613
|
this.resizeObserver.observe(this.root);
|
|
@@ -69908,49 +69617,9 @@ ${codeText}
|
|
|
69908
69617
|
const count = getCommentItemCountInGroupItem(this.root);
|
|
69909
69618
|
return count;
|
|
69910
69619
|
}
|
|
69911
|
-
createFooter() {
|
|
69912
|
-
if (!this.comment.resolver) {
|
|
69913
|
-
return null;
|
|
69914
|
-
}
|
|
69915
|
-
const footer = createElement("div", ["comment-item-footer"], this.root);
|
|
69916
|
-
const resolved = createElement("span", ["comment-resolved"], footer);
|
|
69917
|
-
const date = new Date(this.comment.modified);
|
|
69918
|
-
const resolver = this.comment.resolver;
|
|
69919
|
-
assert(logger$1h, resolver, "resolver should not be null");
|
|
69920
|
-
const html = i18n$1.t("comment.resolvedBy", { name: resolver.displayName, date: fromNowString(date) });
|
|
69921
|
-
resolved.innerHTML = html;
|
|
69922
|
-
const actions2 = createElement("div", ["comment-actions"], footer);
|
|
69923
|
-
createElement("span", ["comment-date"], actions2, fromNowString(new Date(resolver.date)));
|
|
69924
|
-
if (this.comment.removedFromDoc) {
|
|
69925
|
-
createElement("span", ["removed-tips"], actions2, i18n$1.t("comment.removedFromDoc"));
|
|
69926
|
-
} else {
|
|
69927
|
-
const reopen = createElement("button", ["comment-reopen"], actions2, i18n$1.t("comment.reopen"));
|
|
69928
|
-
reopen.onclick = () => {
|
|
69929
|
-
const editor = this.editor;
|
|
69930
|
-
const doc2 = editor.doc.toJSON();
|
|
69931
|
-
const commentsMap = getCommentsFromDoc(doc2);
|
|
69932
|
-
if (!commentsMap.has(this.comment.groupId)) {
|
|
69933
|
-
showToast(i18n$1.t("comment.commentHasAlreadyRemoved"), {
|
|
69934
|
-
position: {
|
|
69935
|
-
y: 30,
|
|
69936
|
-
x: window.innerWidth / 2
|
|
69937
|
-
},
|
|
69938
|
-
theme: "warn"
|
|
69939
|
-
});
|
|
69940
|
-
return;
|
|
69941
|
-
}
|
|
69942
|
-
this.commentsProvider.localUpdateCommentResolver(this.comment.id, void 0);
|
|
69943
|
-
};
|
|
69944
|
-
}
|
|
69945
|
-
return footer;
|
|
69946
|
-
}
|
|
69947
69620
|
createQuickReply() {
|
|
69948
69621
|
const { editor, commentsProvider, comment } = this;
|
|
69949
69622
|
const commentQuickReply = new CommentQuickReply(editor, commentsProvider, comment, this);
|
|
69950
|
-
const commentOptions = this.editor.getComponentOptions("comment");
|
|
69951
|
-
if (commentOptions == null ? void 0 : commentOptions.disableReply) {
|
|
69952
|
-
commentQuickReply.root.classList.add("hidden");
|
|
69953
|
-
}
|
|
69954
69623
|
this.root.append(commentQuickReply.root);
|
|
69955
69624
|
return commentQuickReply;
|
|
69956
69625
|
}
|
|
@@ -69962,15 +69631,8 @@ ${codeText}
|
|
|
69962
69631
|
const switchContainer = createElement("span", ["item-head-switch"], head);
|
|
69963
69632
|
const switchUp = createTextButton(switchContainer, GroupItemActions.SwitchUp, "up", switchUpIcon);
|
|
69964
69633
|
const switchDown = createTextButton(switchContainer, GroupItemActions.SwitchDown, "down", switchDownIcon);
|
|
69965
|
-
const resolve = createTextButton(switchContainer, GroupItemActions.Resolve, "resolve", CircleCheckMarkIcon);
|
|
69966
69634
|
addGroupActionToElement(switchUp, GroupItemActions.SwitchUp);
|
|
69967
69635
|
addGroupActionToElement(switchDown, GroupItemActions.SwitchDown);
|
|
69968
|
-
addGroupActionToElement(resolve, GroupItemActions.Resolve);
|
|
69969
|
-
resolve.setAttribute(`data-editor-tooltip-${this.editor.clientId}`, i18n$1.t("comment.resolveComment"));
|
|
69970
|
-
addClass(resolve, "disable-active");
|
|
69971
|
-
if (comment.resolver) {
|
|
69972
|
-
addClass(resolve, "resolved");
|
|
69973
|
-
}
|
|
69974
69636
|
return head;
|
|
69975
69637
|
}
|
|
69976
69638
|
createItem() {
|
|
@@ -70010,7 +69672,6 @@ ${codeText}
|
|
|
70010
69672
|
handleUpdateMainComment(comment) {
|
|
70011
69673
|
assert(logger$1h, comment.id === this.mainItem.comment.id, "invalid comment");
|
|
70012
69674
|
this.mainItem.reloadDoc();
|
|
70013
|
-
this.setCreatingComment(false);
|
|
70014
69675
|
}
|
|
70015
69676
|
deleteMainComment(commentId) {
|
|
70016
69677
|
assert(logger$1h, commentId === this.mainItem.comment.id, "invalid comment");
|
|
@@ -70019,18 +69680,6 @@ ${codeText}
|
|
|
70019
69680
|
edit() {
|
|
70020
69681
|
this.mainItem.edit();
|
|
70021
69682
|
}
|
|
70022
|
-
setCreatingComment(creating) {
|
|
70023
|
-
const resolveButton = this.header.querySelector('.editor-text-button[group-item-action="resolve"]');
|
|
70024
|
-
if (!resolveButton) {
|
|
70025
|
-
return;
|
|
70026
|
-
}
|
|
70027
|
-
resolveButton.disabled = creating;
|
|
70028
|
-
if (creating) {
|
|
70029
|
-
resolveButton.classList.add("disabled");
|
|
70030
|
-
} else {
|
|
70031
|
-
resolveButton.classList.remove("disabled");
|
|
70032
|
-
}
|
|
70033
|
-
}
|
|
70034
69683
|
destroy() {
|
|
70035
69684
|
this.quickReply.destroy();
|
|
70036
69685
|
this.mainItem.destroy();
|
|
@@ -70216,21 +69865,7 @@ ${codeText}
|
|
|
70216
69865
|
this.commentsProvider.localDeleteComment(comment.id);
|
|
70217
69866
|
quickReply.show();
|
|
70218
69867
|
});
|
|
70219
|
-
__publicField(this, "
|
|
70220
|
-
var _a;
|
|
70221
|
-
const { commentsProvider } = this;
|
|
70222
|
-
let comment = commentsProvider.getComment(groupItem.comment.id);
|
|
70223
|
-
if (!comment) {
|
|
70224
|
-
comment = (_a = groupItem.childrenList.items[0]) == null ? void 0 : _a.comment;
|
|
70225
|
-
}
|
|
70226
|
-
const user = this.groupList.editor.doc.getUser();
|
|
70227
|
-
commentsProvider.localUpdateCommentResolver(comment.id, {
|
|
70228
|
-
userId: user.userId,
|
|
70229
|
-
displayName: user.displayName,
|
|
70230
|
-
date: Date.now()
|
|
70231
|
-
});
|
|
70232
|
-
});
|
|
70233
|
-
__publicField(this, "execute", (element, groupItem, commentId, itemIndex, event) => {
|
|
69868
|
+
__publicField(this, "execute", (element, groupItem, commentId, itemIndex) => {
|
|
70234
69869
|
const actionElement = getClosestGroupItemActionElement(element);
|
|
70235
69870
|
if (!actionElement)
|
|
70236
69871
|
return;
|
|
@@ -70269,11 +69904,6 @@ ${codeText}
|
|
|
70269
69904
|
case GroupItemActions.QuickReplyCancel:
|
|
70270
69905
|
this.handleQuickReplyCancel(groupItem);
|
|
70271
69906
|
break;
|
|
70272
|
-
case GroupItemActions.Resolve:
|
|
70273
|
-
event.preventDefault();
|
|
70274
|
-
event.stopPropagation();
|
|
70275
|
-
this.handleResolve(groupItem);
|
|
70276
|
-
break;
|
|
70277
69907
|
default:
|
|
70278
69908
|
const exhaustiveCheck = actionId;
|
|
70279
69909
|
logger$1f.debug(`not implement handler for ${exhaustiveCheck}`);
|
|
@@ -70287,8 +69917,8 @@ ${codeText}
|
|
|
70287
69917
|
}
|
|
70288
69918
|
const logger$1e = getLogger("comment-group-list");
|
|
70289
69919
|
class CommentGroupList extends ListBase {
|
|
70290
|
-
constructor(editor, commentsProvider, parent
|
|
70291
|
-
super(editor, commentsProvider, parent,
|
|
69920
|
+
constructor(editor, commentsProvider, parent) {
|
|
69921
|
+
super(editor, commentsProvider, parent, getCommentsGroupFromDoc(editor, commentsProvider), {});
|
|
70292
69922
|
__publicField(this, "groupItemHandlers");
|
|
70293
69923
|
__publicField(this, "dispatchScroll", debounce__default.default(() => {
|
|
70294
69924
|
this.editor.scrollContainer.dispatchEvent(new Event("scroll"));
|
|
@@ -70326,9 +69956,7 @@ ${codeText}
|
|
|
70326
69956
|
const commentId = getClosestCommentItemId(event.target);
|
|
70327
69957
|
const index2 = this.items.findIndex((item) => item.root === itemRoot);
|
|
70328
69958
|
if (index2 !== -1) {
|
|
70329
|
-
|
|
70330
|
-
const enableActive = !disableActive;
|
|
70331
|
-
if (this.activeIndex !== index2 && enableActive) {
|
|
69959
|
+
if (this.activeIndex !== index2) {
|
|
70332
69960
|
this.setActiveItem(index2);
|
|
70333
69961
|
}
|
|
70334
69962
|
const { groupItemHandlers } = this;
|
|
@@ -70336,8 +69964,7 @@ ${codeText}
|
|
|
70336
69964
|
event.target,
|
|
70337
69965
|
this.items[index2],
|
|
70338
69966
|
commentId,
|
|
70339
|
-
index2
|
|
70340
|
-
event
|
|
69967
|
+
index2
|
|
70341
69968
|
);
|
|
70342
69969
|
}
|
|
70343
69970
|
});
|
|
@@ -70378,10 +70005,7 @@ ${codeText}
|
|
|
70378
70005
|
__publicField(this, "handleSelectionChanged", () => {
|
|
70379
70006
|
setTimeout(() => {
|
|
70380
70007
|
var _a;
|
|
70381
|
-
|
|
70382
|
-
return;
|
|
70383
|
-
}
|
|
70384
|
-
const commentIds = this.type === "current" ? removeResolvedComments(this.commentsProvider, getCommentsFromSelection(this.editor)) : removeUnresolvedComments(this.commentsProvider, getCommentsFromSelection(this.editor));
|
|
70008
|
+
const commentIds = getCommentsFromSelection(this.editor);
|
|
70385
70009
|
if (commentIds.length > 0) {
|
|
70386
70010
|
if (((_a = this.activeItem) == null ? void 0 : _a.comment.id) && commentIds.includes(this.activeItem.comment.id)) {
|
|
70387
70011
|
return;
|
|
@@ -70422,9 +70046,7 @@ ${codeText}
|
|
|
70422
70046
|
const top = Number.parseFloat(firstItem.style.top);
|
|
70423
70047
|
const targetTop = Number.parseFloat(firstItem.getAttribute("data-target-top") || "0");
|
|
70424
70048
|
if (!Number.isNaN(top) && !Number.isNaN(targetTop) && top < targetTop) {
|
|
70425
|
-
|
|
70426
|
-
arrangeItems(this.editor, this.items, null, Math.min(top + (0 - event.deltaY) * 3, targetTop));
|
|
70427
|
-
}
|
|
70049
|
+
arrangeItems(this.editor, this.items, null, Math.min(top + (0 - event.deltaY) * 3, targetTop));
|
|
70428
70050
|
}
|
|
70429
70051
|
});
|
|
70430
70052
|
__publicField(this, "updateGroupItemSwitch", () => {
|
|
@@ -70433,7 +70055,7 @@ ${codeText}
|
|
|
70433
70055
|
activeItem.updateSwitchButton();
|
|
70434
70056
|
});
|
|
70435
70057
|
__publicField(this, "updateComments", debounce__default.default(() => {
|
|
70436
|
-
const commentsGroup =
|
|
70058
|
+
const commentsGroup = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
|
|
70437
70059
|
let hasBeenChanged = false;
|
|
70438
70060
|
for (let i = 0; i < commentsGroup.length; i++) {
|
|
70439
70061
|
const comment = commentsGroup[i];
|
|
@@ -70456,8 +70078,6 @@ ${codeText}
|
|
|
70456
70078
|
this.emit("commentCountChanged");
|
|
70457
70079
|
}
|
|
70458
70080
|
}, 100));
|
|
70459
|
-
this.editor = editor;
|
|
70460
|
-
this.type = type;
|
|
70461
70081
|
this.updateItemsLayout();
|
|
70462
70082
|
this.bindEvents();
|
|
70463
70083
|
this.editor.addListener("selectionChanged", this.handleSelectionChanged);
|
|
@@ -70478,9 +70098,7 @@ ${codeText}
|
|
|
70478
70098
|
document.removeEventListener("click", this.handleDocumentClick);
|
|
70479
70099
|
}
|
|
70480
70100
|
updateItemsLayout(dispatchScroll = true) {
|
|
70481
|
-
|
|
70482
|
-
arrangeItems(this.editor, this.items, this.activeItem);
|
|
70483
|
-
}
|
|
70101
|
+
arrangeItems(this.editor, this.items, this.activeItem);
|
|
70484
70102
|
if (dispatchScroll) {
|
|
70485
70103
|
this.dispatchScroll();
|
|
70486
70104
|
}
|
|
@@ -70504,7 +70122,7 @@ ${codeText}
|
|
|
70504
70122
|
return item;
|
|
70505
70123
|
}
|
|
70506
70124
|
findInsertPos(data2) {
|
|
70507
|
-
const commentsMap =
|
|
70125
|
+
const commentsMap = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
|
|
70508
70126
|
const index2 = commentsMap.findIndex((group) => group.id === data2.id);
|
|
70509
70127
|
if (index2 === -1) {
|
|
70510
70128
|
return -1;
|
|
@@ -70604,7 +70222,6 @@ ${codeText}
|
|
|
70604
70222
|
newItem.quickReply.hide();
|
|
70605
70223
|
setTimeout(() => {
|
|
70606
70224
|
newItem.edit();
|
|
70607
|
-
newItem.setCreatingComment(true);
|
|
70608
70225
|
}, 300);
|
|
70609
70226
|
}
|
|
70610
70227
|
}
|
|
@@ -70629,18 +70246,6 @@ ${codeText}
|
|
|
70629
70246
|
}
|
|
70630
70247
|
}
|
|
70631
70248
|
}
|
|
70632
|
-
handleResolveComment(commentId) {
|
|
70633
|
-
const item = this.findItem(commentId);
|
|
70634
|
-
if (item) {
|
|
70635
|
-
this.deleteItem(item.comment.id);
|
|
70636
|
-
}
|
|
70637
|
-
}
|
|
70638
|
-
removeGroupItem(comment) {
|
|
70639
|
-
const item = this.findItem(comment.id) || this.findItem(comment.groupId);
|
|
70640
|
-
if (item) {
|
|
70641
|
-
this.deleteItem(item.comment.id);
|
|
70642
|
-
}
|
|
70643
|
-
}
|
|
70644
70249
|
handleUpdateComment(comment) {
|
|
70645
70250
|
const group = this.findItemAsGroupId(comment.groupId);
|
|
70646
70251
|
if (group && group.comment.id !== comment.id) {
|
|
@@ -70652,236 +70257,6 @@ ${codeText}
|
|
|
70652
70257
|
item.handleUpdateMainComment(comment);
|
|
70653
70258
|
}
|
|
70654
70259
|
}
|
|
70655
|
-
changeType(type) {
|
|
70656
|
-
this.type = type;
|
|
70657
|
-
const comments = this.type === "current" ? getUnresolvedCommentsGroupFromDoc(this.editor, this.commentsProvider) : getResolvedCommentsGroupFromDoc(this.editor, this.commentsProvider);
|
|
70658
|
-
this.reloadList(comments);
|
|
70659
|
-
if (this.type === "current") {
|
|
70660
|
-
setTimeout(() => {
|
|
70661
|
-
arrangeItems(this.editor, this.items, null);
|
|
70662
|
-
});
|
|
70663
|
-
}
|
|
70664
|
-
}
|
|
70665
|
-
reloadList(data2) {
|
|
70666
|
-
super.reloadList(data2);
|
|
70667
|
-
this._items.forEach((item) => item.addListener("resize", this.handleItemResize));
|
|
70668
|
-
}
|
|
70669
|
-
}
|
|
70670
|
-
function addBlockComments(doc2, block, resultMap) {
|
|
70671
|
-
if (block.comments) {
|
|
70672
|
-
const blockComments = block.comments;
|
|
70673
|
-
if (Array.isArray(blockComments)) {
|
|
70674
|
-
blockComments.forEach((commentId) => {
|
|
70675
|
-
const commentIds = resultMap.get(block.id);
|
|
70676
|
-
if (commentIds) {
|
|
70677
|
-
commentIds.add(commentId);
|
|
70678
|
-
} else {
|
|
70679
|
-
resultMap.set(block.id, /* @__PURE__ */ new Set([commentId]));
|
|
70680
|
-
}
|
|
70681
|
-
});
|
|
70682
|
-
}
|
|
70683
|
-
}
|
|
70684
|
-
if (block.text) {
|
|
70685
|
-
const text2 = block.text;
|
|
70686
|
-
text2.forEach((op) => {
|
|
70687
|
-
if (op.attributes) {
|
|
70688
|
-
const prefix = "comment-";
|
|
70689
|
-
Object.entries(op.attributes).forEach(([key, value]) => {
|
|
70690
|
-
if (key.startsWith(prefix)) {
|
|
70691
|
-
const commentId = value;
|
|
70692
|
-
const commentIds = resultMap.get(block.id);
|
|
70693
|
-
if (commentIds) {
|
|
70694
|
-
commentIds.add(commentId);
|
|
70695
|
-
} else {
|
|
70696
|
-
resultMap.set(block.id, /* @__PURE__ */ new Set([commentId]));
|
|
70697
|
-
}
|
|
70698
|
-
}
|
|
70699
|
-
});
|
|
70700
|
-
}
|
|
70701
|
-
});
|
|
70702
|
-
}
|
|
70703
|
-
const children = block.children;
|
|
70704
|
-
if (!children) {
|
|
70705
|
-
return;
|
|
70706
|
-
}
|
|
70707
|
-
children.forEach((childContainerId) => {
|
|
70708
|
-
const childBlocks = doc2.blocks[childContainerId];
|
|
70709
|
-
childBlocks.forEach((subBlock) => {
|
|
70710
|
-
addBlockComments(doc2, subBlock, resultMap);
|
|
70711
|
-
});
|
|
70712
|
-
});
|
|
70713
|
-
}
|
|
70714
|
-
function getBlockCommentsFromDoc(doc2) {
|
|
70715
|
-
const resultMap = /* @__PURE__ */ new Map();
|
|
70716
|
-
doc2.blocks.root.forEach((block) => {
|
|
70717
|
-
addBlockComments(doc2, block, resultMap);
|
|
70718
|
-
});
|
|
70719
|
-
return resultMap;
|
|
70720
|
-
}
|
|
70721
|
-
function getBlocksByCommentId(doc2, commentId) {
|
|
70722
|
-
const result = [];
|
|
70723
|
-
const resultMap = getBlockCommentsFromDoc(doc2);
|
|
70724
|
-
resultMap.forEach((commentIds, blockId) => {
|
|
70725
|
-
if (commentIds.has(commentId)) {
|
|
70726
|
-
result.push(blockId);
|
|
70727
|
-
}
|
|
70728
|
-
});
|
|
70729
|
-
return result;
|
|
70730
|
-
}
|
|
70731
|
-
class OnesEditorCommentsRender {
|
|
70732
|
-
constructor(type = "current") {
|
|
70733
|
-
__publicField(this, "updateUnknownCommentsDelayed", debounce__default.default((editor) => {
|
|
70734
|
-
const comments = this.getComments(editor);
|
|
70735
|
-
const invisibleComments = Object.values(comments).filter((comment) => {
|
|
70736
|
-
const ret = this.type === "current" ? !!comment.resolver : !comment.resolver;
|
|
70737
|
-
return ret;
|
|
70738
|
-
});
|
|
70739
|
-
const root2 = editor.rootContainer;
|
|
70740
|
-
const effectedElements = /* @__PURE__ */ new Set();
|
|
70741
|
-
invisibleComments.forEach((comment) => {
|
|
70742
|
-
const key = `comment-${comment.groupId.toLocaleLowerCase()}`;
|
|
70743
|
-
const elements = root2.querySelectorAll(`[${key}]`);
|
|
70744
|
-
elements.forEach((elem) => {
|
|
70745
|
-
elem.removeAttribute(key);
|
|
70746
|
-
effectedElements.add(elem);
|
|
70747
|
-
});
|
|
70748
|
-
});
|
|
70749
|
-
effectedElements.forEach((elem) => {
|
|
70750
|
-
const commentAttributes = Array.from(elem.attributes).filter((a) => a.name.startsWith("comment-"));
|
|
70751
|
-
if (commentAttributes.length === 0) {
|
|
70752
|
-
elem.classList.remove("comment");
|
|
70753
|
-
}
|
|
70754
|
-
});
|
|
70755
|
-
}));
|
|
70756
|
-
this.type = type;
|
|
70757
|
-
}
|
|
70758
|
-
renderText(editor, path, attributes) {
|
|
70759
|
-
const classes = [];
|
|
70760
|
-
const textAttributes = {};
|
|
70761
|
-
Object.entries(attributes).forEach(([key, value]) => {
|
|
70762
|
-
if (key.startsWith("comment-")) {
|
|
70763
|
-
this.renderCommentElement(editor, key, value, classes, textAttributes);
|
|
70764
|
-
}
|
|
70765
|
-
});
|
|
70766
|
-
return { classes, attributes: textAttributes };
|
|
70767
|
-
}
|
|
70768
|
-
renderBox(editor, path, attributes) {
|
|
70769
|
-
const classes = [];
|
|
70770
|
-
const textAttributes = {};
|
|
70771
|
-
Object.entries(attributes).forEach(([key, value]) => {
|
|
70772
|
-
if (key.startsWith("comment-")) {
|
|
70773
|
-
this.renderCommentElement(editor, key, value, classes, textAttributes);
|
|
70774
|
-
}
|
|
70775
|
-
});
|
|
70776
|
-
return { classes, attributes: textAttributes };
|
|
70777
|
-
}
|
|
70778
|
-
renderBlock(editor, path, blockData) {
|
|
70779
|
-
const comments = blockData.comments;
|
|
70780
|
-
if (!comments || comments.length === 0) {
|
|
70781
|
-
return {};
|
|
70782
|
-
}
|
|
70783
|
-
const classes = [];
|
|
70784
|
-
const attributes = {};
|
|
70785
|
-
comments.forEach((commentId) => {
|
|
70786
|
-
const key = `comment-${commentId.toLocaleLowerCase()}`;
|
|
70787
|
-
this.renderCommentElement(editor, key, commentId, classes, attributes);
|
|
70788
|
-
});
|
|
70789
|
-
return {
|
|
70790
|
-
classes,
|
|
70791
|
-
attributes
|
|
70792
|
-
};
|
|
70793
|
-
}
|
|
70794
|
-
updateBlock(editor, path, blockElement, blockData) {
|
|
70795
|
-
const comments = blockData.comments;
|
|
70796
|
-
removeClass(blockElement, "comment");
|
|
70797
|
-
Array.from(blockElement.attributes).forEach((a) => {
|
|
70798
|
-
if (a.name.startsWith("comment-")) {
|
|
70799
|
-
blockElement.removeAttribute(a.name);
|
|
70800
|
-
}
|
|
70801
|
-
});
|
|
70802
|
-
if (!comments || comments.length === 0) {
|
|
70803
|
-
return;
|
|
70804
|
-
}
|
|
70805
|
-
if (this.type === "resolved") {
|
|
70806
|
-
return;
|
|
70807
|
-
}
|
|
70808
|
-
addClass(blockElement, "comment");
|
|
70809
|
-
const classList = [];
|
|
70810
|
-
const attributes = {};
|
|
70811
|
-
comments.forEach((commentId) => {
|
|
70812
|
-
const key = `comment-${commentId.toLocaleLowerCase()}`;
|
|
70813
|
-
this.renderCommentElement(editor, key, commentId, classList, attributes);
|
|
70814
|
-
});
|
|
70815
|
-
Object.entries(attributes).forEach(([key, value]) => {
|
|
70816
|
-
blockElement.setAttribute(key, value);
|
|
70817
|
-
});
|
|
70818
|
-
if (classList.length > 0) {
|
|
70819
|
-
addClass(blockElement, ...classList);
|
|
70820
|
-
}
|
|
70821
|
-
}
|
|
70822
|
-
getCommentStatus(editor, commentId) {
|
|
70823
|
-
const comments = editor.findCustom("editor-comments");
|
|
70824
|
-
if (!comments) {
|
|
70825
|
-
return "unknown";
|
|
70826
|
-
}
|
|
70827
|
-
const commentsProvider = comments.commentProvider;
|
|
70828
|
-
const comment = commentsProvider.getComment(commentId);
|
|
70829
|
-
if (!comment) {
|
|
70830
|
-
return "unknown";
|
|
70831
|
-
}
|
|
70832
|
-
if (comment.resolver) {
|
|
70833
|
-
return "resolved";
|
|
70834
|
-
}
|
|
70835
|
-
return "unresolved";
|
|
70836
|
-
}
|
|
70837
|
-
renderCommentElement(editor, key, commentId, classes, textAttributes) {
|
|
70838
|
-
const status = this.getCommentStatus(editor, commentId);
|
|
70839
|
-
if (this.type === "current") {
|
|
70840
|
-
if (status === "resolved") {
|
|
70841
|
-
return;
|
|
70842
|
-
}
|
|
70843
|
-
} else {
|
|
70844
|
-
return;
|
|
70845
|
-
}
|
|
70846
|
-
classes.push("comment");
|
|
70847
|
-
textAttributes[key] = commentId;
|
|
70848
|
-
if (status === "unknown") {
|
|
70849
|
-
this.updateUnknownCommentsDelayed(editor);
|
|
70850
|
-
}
|
|
70851
|
-
}
|
|
70852
|
-
getComments(editor) {
|
|
70853
|
-
const editorComments = editor.findCustom("editor-comments");
|
|
70854
|
-
if (!editorComments) {
|
|
70855
|
-
return [];
|
|
70856
|
-
}
|
|
70857
|
-
const commentProvider = editorComments.commentProvider;
|
|
70858
|
-
return commentProvider.getComments();
|
|
70859
|
-
}
|
|
70860
|
-
changeType(editor, type) {
|
|
70861
|
-
this.type = type;
|
|
70862
|
-
const elements = editor.rootContainer.querySelectorAll(".comment");
|
|
70863
|
-
elements.forEach((elem) => {
|
|
70864
|
-
elem.classList.remove("comment");
|
|
70865
|
-
Array.from(elem.attributes).forEach((a) => {
|
|
70866
|
-
if (a.name.startsWith("comment-")) {
|
|
70867
|
-
elem.removeAttribute(a.name);
|
|
70868
|
-
}
|
|
70869
|
-
});
|
|
70870
|
-
});
|
|
70871
|
-
const comments = this.getComments(editor);
|
|
70872
|
-
const resolvedCommentsId = new Set(Object.values(comments).filter((comment) => !!comment.resolver).map((comment) => comment.groupId));
|
|
70873
|
-
const unresolvedCommentsId = new Set(Object.values(comments).filter((comment) => !resolvedCommentsId.has(comment.groupId)).map((comment) => comment.groupId));
|
|
70874
|
-
const visibleCommentsId = type === "current" ? unresolvedCommentsId : resolvedCommentsId;
|
|
70875
|
-
const commentsFromDoc = getBlockCommentsFromDoc(editor.doc.toJSON());
|
|
70876
|
-
commentsFromDoc.forEach((commentIds, blockId) => {
|
|
70877
|
-
if (Array.from(commentIds).some((c) => visibleCommentsId.has(c))) {
|
|
70878
|
-
const block = editor.findBlockById(blockId);
|
|
70879
|
-
if (block) {
|
|
70880
|
-
editor.reloadBlock(block);
|
|
70881
|
-
}
|
|
70882
|
-
}
|
|
70883
|
-
});
|
|
70884
|
-
}
|
|
70885
70260
|
}
|
|
70886
70261
|
const COMMENT_MINI_CLS = "comment-mini";
|
|
70887
70262
|
getLogger("comment-list");
|
|
@@ -70891,46 +70266,6 @@ ${codeText}
|
|
|
70891
70266
|
__publicField(this, "root");
|
|
70892
70267
|
__publicField(this, "groupsContainer");
|
|
70893
70268
|
__publicField(this, "list");
|
|
70894
|
-
__publicField(this, "listType", "current");
|
|
70895
|
-
__publicField(this, "switcherItem", {
|
|
70896
|
-
id: "switch-comment",
|
|
70897
|
-
name: i18n$1.t("comment.currentComment"),
|
|
70898
|
-
dropdown: true,
|
|
70899
|
-
manualShowChildren: true,
|
|
70900
|
-
childrenPlacement: "bottom-start",
|
|
70901
|
-
children: [{
|
|
70902
|
-
id: "current-comment",
|
|
70903
|
-
name: i18n$1.t("comment.currentComment"),
|
|
70904
|
-
states: ["checked"]
|
|
70905
|
-
}, {
|
|
70906
|
-
id: "resolved-comment",
|
|
70907
|
-
name: i18n$1.t("comment.resolvedComment")
|
|
70908
|
-
}]
|
|
70909
|
-
});
|
|
70910
|
-
__publicField(this, "switcherBar");
|
|
70911
|
-
__publicField(this, "noCommentTip", null);
|
|
70912
|
-
__publicField(this, "handleSwitchType", (bar2, item) => {
|
|
70913
|
-
var _a, _b;
|
|
70914
|
-
if (item.id === "current-comment") {
|
|
70915
|
-
this.listType = "current";
|
|
70916
|
-
} else {
|
|
70917
|
-
this.listType = "resolved";
|
|
70918
|
-
}
|
|
70919
|
-
this.editor.rootContainer.setAttribute("comment-list-type", this.listType);
|
|
70920
|
-
this.root.setAttribute("list-type", this.listType);
|
|
70921
|
-
this.switcherItem.name = this.listType === "current" ? i18n$1.t("comment.currentComment") : i18n$1.t("comment.resolvedComment");
|
|
70922
|
-
const children = this.switcherItem.children;
|
|
70923
|
-
children[0].states = this.listType === "current" ? ["checked"] : [];
|
|
70924
|
-
children[1].states = this.listType === "resolved" ? ["checked"] : [];
|
|
70925
|
-
this.switcherBar.updateItems([this.switcherItem]);
|
|
70926
|
-
this.list.changeType(this.listType);
|
|
70927
|
-
const renderer = this.editor.editorBlockRenders.getRenderers().find((r) => r instanceof OnesEditorCommentsRender);
|
|
70928
|
-
if (renderer) {
|
|
70929
|
-
renderer.changeType(this.editor, this.listType);
|
|
70930
|
-
}
|
|
70931
|
-
this.updateCommentCountTip();
|
|
70932
|
-
(_b = (_a = this.commentOptions) == null ? void 0 : _a.onCommentListTypeChange) == null ? void 0 : _b.call(_a, this.editor, this.listType);
|
|
70933
|
-
});
|
|
70934
70269
|
__publicField(this, "handleSelectionOnComment", () => {
|
|
70935
70270
|
this.emit("onSelectComment");
|
|
70936
70271
|
});
|
|
@@ -70938,12 +70273,8 @@ ${codeText}
|
|
|
70938
70273
|
var _a, _b;
|
|
70939
70274
|
const count = getCommentsCountInDoc(this.editor, this.commentsProvider);
|
|
70940
70275
|
(_b = (_a = this.commentOptions) == null ? void 0 : _a.onCommentCountChange) == null ? void 0 : _b.call(_a, count);
|
|
70941
|
-
this.updateCommentCountTip();
|
|
70942
70276
|
});
|
|
70943
70277
|
__publicField(this, "handleActiveItemChanged", (index2, direction) => {
|
|
70944
|
-
if (this.listType === "resolved") {
|
|
70945
|
-
return;
|
|
70946
|
-
}
|
|
70947
70278
|
setTimeout(() => {
|
|
70948
70279
|
var _a, _b;
|
|
70949
70280
|
const item = this.list.activeItem;
|
|
@@ -70960,19 +70291,13 @@ ${codeText}
|
|
|
70960
70291
|
this.editor = editor;
|
|
70961
70292
|
this.commentsProvider = commentsProvider;
|
|
70962
70293
|
this.root = createElement("div", ["editor-web-comment-root"], null);
|
|
70963
|
-
this.root.setAttribute("list-type", this.listType);
|
|
70964
70294
|
this.groupsContainer = createElement("div", ["comment-groups-container"], this.root);
|
|
70965
70295
|
this.list = this.createList();
|
|
70966
|
-
this.switcherBar = this.createSwitcher();
|
|
70967
70296
|
this.commentsProvider.addListener(this);
|
|
70968
70297
|
this.list.addListener("activeItemChanged", this.handleActiveItemChanged);
|
|
70969
70298
|
this.list.addListener("itemLayoutUpdated", this.handleItemLayoutUpdated);
|
|
70970
70299
|
this.list.addListener("selectionOnComment", this.handleSelectionOnComment);
|
|
70971
70300
|
this.list.addListener("commentCountChanged", this.updateCommentCount);
|
|
70972
|
-
if (!this.editor.options.enableResolveComments) {
|
|
70973
|
-
this.root.classList.add("disable-resolve");
|
|
70974
|
-
}
|
|
70975
|
-
this.editor.rootContainer.setAttribute("comment-list-type", this.listType);
|
|
70976
70301
|
this.updateCommentCount();
|
|
70977
70302
|
}
|
|
70978
70303
|
get commentOptions() {
|
|
@@ -70980,13 +70305,10 @@ ${codeText}
|
|
|
70980
70305
|
return commentOptions;
|
|
70981
70306
|
}
|
|
70982
70307
|
destroy() {
|
|
70983
|
-
var _a;
|
|
70984
70308
|
this.list.removeAllListeners();
|
|
70985
70309
|
this.commentsProvider.removeListener(this);
|
|
70986
70310
|
this.list.destroy();
|
|
70987
70311
|
this.root.remove();
|
|
70988
|
-
this.switcherBar.destroy();
|
|
70989
|
-
(_a = this.noCommentTip) == null ? void 0 : _a.remove();
|
|
70990
70312
|
}
|
|
70991
70313
|
onCreateComment(commentId, local) {
|
|
70992
70314
|
const comment = this.commentsProvider.getComment(commentId);
|
|
@@ -71001,73 +70323,8 @@ ${codeText}
|
|
|
71001
70323
|
const comment = this.commentsProvider.getComment(commentId);
|
|
71002
70324
|
this.list.handleUpdateComment(comment);
|
|
71003
70325
|
}
|
|
71004
|
-
onUpdateCommentResolver(commentId, local) {
|
|
71005
|
-
const comment = this.commentsProvider.getComment(commentId);
|
|
71006
|
-
if (!comment) {
|
|
71007
|
-
return;
|
|
71008
|
-
}
|
|
71009
|
-
let type = "add";
|
|
71010
|
-
if (this.listType === "current") {
|
|
71011
|
-
if (comment.resolver) {
|
|
71012
|
-
type = "remove";
|
|
71013
|
-
}
|
|
71014
|
-
} else {
|
|
71015
|
-
if (!comment.resolver) {
|
|
71016
|
-
type = "remove";
|
|
71017
|
-
}
|
|
71018
|
-
}
|
|
71019
|
-
const blocks = /* @__PURE__ */ new Set();
|
|
71020
|
-
if (type === "remove") {
|
|
71021
|
-
getElementsByCommentId(this.editor, comment.groupId).forEach((element) => {
|
|
71022
|
-
if (isBlock$1(element)) {
|
|
71023
|
-
blocks.add(element);
|
|
71024
|
-
} else {
|
|
71025
|
-
const block = getParentBlock(element);
|
|
71026
|
-
if (block) {
|
|
71027
|
-
blocks.add(block);
|
|
71028
|
-
}
|
|
71029
|
-
}
|
|
71030
|
-
});
|
|
71031
|
-
} else {
|
|
71032
|
-
const blockIds = getBlocksByCommentId(this.editor.doc.toJSON(), comment.groupId);
|
|
71033
|
-
blockIds.forEach((blockId) => {
|
|
71034
|
-
const block = this.editor.findBlockById(blockId);
|
|
71035
|
-
if (block) {
|
|
71036
|
-
blocks.add(block);
|
|
71037
|
-
}
|
|
71038
|
-
});
|
|
71039
|
-
}
|
|
71040
|
-
blocks.forEach((block) => {
|
|
71041
|
-
this.editor.reloadBlock(block);
|
|
71042
|
-
});
|
|
71043
|
-
const commentGroup = getCommentsGroup(this.commentsProvider.getComments());
|
|
71044
|
-
const commentWithChildren = commentGroup.find((group) => group.groupId === comment.groupId);
|
|
71045
|
-
if (!commentWithChildren) {
|
|
71046
|
-
return;
|
|
71047
|
-
}
|
|
71048
|
-
setTimeout(() => {
|
|
71049
|
-
if (type === "add") {
|
|
71050
|
-
this.list.handleCreateComment(commentWithChildren, local);
|
|
71051
|
-
} else {
|
|
71052
|
-
this.list.removeGroupItem(comment);
|
|
71053
|
-
}
|
|
71054
|
-
this.updateCommentCount();
|
|
71055
|
-
}, 300);
|
|
71056
|
-
}
|
|
71057
70326
|
createList() {
|
|
71058
|
-
return new CommentGroupList(this.editor, this.commentsProvider, this.groupsContainer
|
|
71059
|
-
}
|
|
71060
|
-
createSwitcher() {
|
|
71061
|
-
const container = createElement("div", ["comment-switcher-container"], this.root);
|
|
71062
|
-
const commandBar2 = new FixedToolbar(container, [this.switcherItem], {
|
|
71063
|
-
id: "comment-switcher"
|
|
71064
|
-
});
|
|
71065
|
-
commandBar2.addListener("click", this.handleSwitchType);
|
|
71066
|
-
return commandBar2;
|
|
71067
|
-
}
|
|
71068
|
-
setSwitcherParent(parent) {
|
|
71069
|
-
this.switcherBar.content.remove();
|
|
71070
|
-
parent.append(this.switcherBar.content);
|
|
70327
|
+
return new CommentGroupList(this.editor, this.commentsProvider, this.groupsContainer);
|
|
71071
70328
|
}
|
|
71072
70329
|
isEditing(includeEmpty) {
|
|
71073
70330
|
return this.list.isEditing(includeEmpty);
|
|
@@ -71075,49 +70332,14 @@ ${codeText}
|
|
|
71075
70332
|
setFirstEditingCommentActive() {
|
|
71076
70333
|
this.list.setFirstEditingCommentActive();
|
|
71077
70334
|
}
|
|
71078
|
-
getListType() {
|
|
71079
|
-
return this.listType;
|
|
71080
|
-
}
|
|
71081
|
-
setListType(type) {
|
|
71082
|
-
var _a, _b;
|
|
71083
|
-
if (type === "resolved") {
|
|
71084
|
-
const item = (_a = this.switcherItem.children) == null ? void 0 : _a[1];
|
|
71085
|
-
this.handleSwitchType(this.switcherBar, item);
|
|
71086
|
-
} else {
|
|
71087
|
-
const item = (_b = this.switcherItem.children) == null ? void 0 : _b[0];
|
|
71088
|
-
this.handleSwitchType(this.switcherBar, item);
|
|
71089
|
-
}
|
|
71090
|
-
}
|
|
71091
|
-
updateCommentCountTip() {
|
|
71092
|
-
var _a;
|
|
71093
|
-
(_a = this.noCommentTip) == null ? void 0 : _a.remove();
|
|
71094
|
-
this.noCommentTip = null;
|
|
71095
|
-
if (this.listType === "resolved" && this.list.items.length === 0) {
|
|
71096
|
-
if (!this.noCommentTip) {
|
|
71097
|
-
this.noCommentTip = createElement("div", ["no-comment-tip"], this.groupsContainer);
|
|
71098
|
-
this.noCommentTip.innerText = i18n$1.t("comment.noResolvedComment");
|
|
71099
|
-
}
|
|
71100
|
-
return;
|
|
71101
|
-
}
|
|
71102
|
-
if (this.listType === "current" && this.list.items.length === 0) {
|
|
71103
|
-
if (!this.noCommentTip) {
|
|
71104
|
-
this.noCommentTip = createElement("div", ["no-comment-tip"], this.groupsContainer);
|
|
71105
|
-
this.noCommentTip.innerText = i18n$1.t("comment.noCurrentComment");
|
|
71106
|
-
}
|
|
71107
|
-
}
|
|
71108
|
-
}
|
|
71109
70335
|
show(groupId) {
|
|
71110
|
-
var _a
|
|
70336
|
+
var _a;
|
|
71111
70337
|
removeClass(this.root, "hidden");
|
|
71112
70338
|
if (groupId) {
|
|
71113
|
-
if (this.listType !== "current") {
|
|
71114
|
-
const commandItem = (_a = this.switcherItem.children) == null ? void 0 : _a[0];
|
|
71115
|
-
this.handleSwitchType(this.switcherBar, commandItem);
|
|
71116
|
-
}
|
|
71117
70339
|
const index2 = this.list.findItemIndex(groupId);
|
|
71118
70340
|
this.list.setActiveItem(index2);
|
|
71119
70341
|
}
|
|
71120
|
-
(
|
|
70342
|
+
(_a = this.commentOptions) == null ? void 0 : _a.controller.showCommentList();
|
|
71121
70343
|
}
|
|
71122
70344
|
hide() {
|
|
71123
70345
|
addClass(this.root, "hidden");
|
|
@@ -71245,7 +70467,7 @@ ${codeText}
|
|
|
71245
70467
|
const logger$1c = getLogger("mobile-group-list");
|
|
71246
70468
|
class MobileGroupList extends ListBase {
|
|
71247
70469
|
constructor(editor, commentsProvider, parent, scrollElement) {
|
|
71248
|
-
super(editor, commentsProvider, parent,
|
|
70470
|
+
super(editor, commentsProvider, parent, getCommentsGroupFromDoc(editor, commentsProvider), {});
|
|
71249
70471
|
__publicField(this, "scroller");
|
|
71250
70472
|
__publicField(this, "refreshScroller", () => {
|
|
71251
70473
|
this.scroller.refresh();
|
|
@@ -71293,7 +70515,7 @@ ${codeText}
|
|
|
71293
70515
|
this.updateComments();
|
|
71294
70516
|
});
|
|
71295
70517
|
__publicField(this, "updateComments", debounce__default.default(() => {
|
|
71296
|
-
const commentsGroup =
|
|
70518
|
+
const commentsGroup = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
|
|
71297
70519
|
for (let i = 0; i < commentsGroup.length; i++) {
|
|
71298
70520
|
const comment = commentsGroup[i];
|
|
71299
70521
|
const groupItem = this.findGroupItem(comment.groupId);
|
|
@@ -71327,7 +70549,7 @@ ${codeText}
|
|
|
71327
70549
|
return item;
|
|
71328
70550
|
}
|
|
71329
70551
|
findInsertPos(data2) {
|
|
71330
|
-
const commentsMap =
|
|
70552
|
+
const commentsMap = getCommentsGroupFromDoc(this.editor, this.commentsProvider);
|
|
71331
70553
|
const index2 = commentsMap.findIndex((group) => group.id === data2.id);
|
|
71332
70554
|
if (index2 === -1) {
|
|
71333
70555
|
return -1;
|
|
@@ -71463,8 +70685,6 @@ ${codeText}
|
|
|
71463
70685
|
const comment = this.commentsProvider.getComment(commentId);
|
|
71464
70686
|
this.list.handleUpdateComment(comment);
|
|
71465
70687
|
}
|
|
71466
|
-
onUpdateCommentResolver(commentId, local) {
|
|
71467
|
-
}
|
|
71468
70688
|
get commentOptions() {
|
|
71469
70689
|
const commentOptions = this.editor.getComponentOptions("comment");
|
|
71470
70690
|
return commentOptions;
|
|
@@ -71490,7 +70710,7 @@ ${codeText}
|
|
|
71490
70710
|
}
|
|
71491
70711
|
}
|
|
71492
70712
|
function getMiniCommentsGroupFromDoc(editor, commentsProvider) {
|
|
71493
|
-
const commentsGroupFromDoc =
|
|
70713
|
+
const commentsGroupFromDoc = getCommentsGroupFromDoc(editor, commentsProvider);
|
|
71494
70714
|
const miniCommentGroups = /* @__PURE__ */ new Map();
|
|
71495
70715
|
for (const commentGroup of commentsGroupFromDoc) {
|
|
71496
70716
|
const blockId = getBlockIdByGroupId(editor, commentGroup.groupId);
|
|
@@ -71637,9 +70857,6 @@ ${codeText}
|
|
|
71637
70857
|
}
|
|
71638
70858
|
onUpdateComment(commentId, local) {
|
|
71639
70859
|
}
|
|
71640
|
-
onUpdateCommentResolver(commentId, local) {
|
|
71641
|
-
this.list.updateMiniCommentsGroup();
|
|
71642
|
-
}
|
|
71643
70860
|
show() {
|
|
71644
70861
|
removeClass(this.root, "hidden");
|
|
71645
70862
|
}
|
|
@@ -71868,18 +71085,12 @@ ${codeText}
|
|
|
71868
71085
|
(_b = this.commentList) == null ? void 0 : _b.show(groupId);
|
|
71869
71086
|
}
|
|
71870
71087
|
});
|
|
71871
|
-
__publicField(this, "showCommentList", (groupId
|
|
71872
|
-
var _a, _b;
|
|
71088
|
+
__publicField(this, "showCommentList", (groupId) => {
|
|
71873
71089
|
if (this.isMobile) {
|
|
71874
71090
|
this.showComment("mobile", groupId);
|
|
71875
71091
|
} else {
|
|
71876
71092
|
this.showComment("web", groupId);
|
|
71877
71093
|
}
|
|
71878
|
-
if (type) {
|
|
71879
|
-
(_a = this.getCommentList()) == null ? void 0 : _a.setListType(type);
|
|
71880
|
-
} else if (type === void 0) {
|
|
71881
|
-
(_b = this.getCommentList()) == null ? void 0 : _b.setListType("current");
|
|
71882
|
-
}
|
|
71883
71094
|
});
|
|
71884
71095
|
__publicField(this, "handleCommentListClose", () => {
|
|
71885
71096
|
this.showComment("mini");
|
|
@@ -71914,15 +71125,6 @@ ${codeText}
|
|
|
71914
71125
|
get isMobile() {
|
|
71915
71126
|
return clientType.isMobile;
|
|
71916
71127
|
}
|
|
71917
|
-
getCommentList() {
|
|
71918
|
-
return this.commentList;
|
|
71919
|
-
}
|
|
71920
|
-
getMobileCommentList() {
|
|
71921
|
-
return this.mobileCommentList;
|
|
71922
|
-
}
|
|
71923
|
-
getMiniCommentList() {
|
|
71924
|
-
return this.miniCommentList;
|
|
71925
|
-
}
|
|
71926
71128
|
destroy() {
|
|
71927
71129
|
var _a, _b;
|
|
71928
71130
|
(_a = this.commentList) == null ? void 0 : _a.destroy();
|
|
@@ -71948,13 +71150,10 @@ ${codeText}
|
|
|
71948
71150
|
if (containers.mobileContainer && this.mobileCommentList) {
|
|
71949
71151
|
containers.mobileContainer.append(this.mobileCommentList.root);
|
|
71950
71152
|
}
|
|
71951
|
-
if (containers.switchBarContainer && this.commentList) {
|
|
71952
|
-
this.commentList.setSwitcherParent(containers.switchBarContainer);
|
|
71953
|
-
}
|
|
71954
71153
|
}
|
|
71955
71154
|
}
|
|
71956
71155
|
const style$7 = "";
|
|
71957
|
-
const zhCN$
|
|
71156
|
+
const zhCN$l = {
|
|
71958
71157
|
comment: {
|
|
71959
71158
|
count: "\u6279\u6CE8 ({num})",
|
|
71960
71159
|
hide: "\u9690\u85CF\u6279\u6CE8",
|
|
@@ -71974,19 +71173,10 @@ ${codeText}
|
|
|
71974
71173
|
more: "\u66F4\u591A",
|
|
71975
71174
|
comment: "\u6DFB\u52A0\u6279\u6CE8",
|
|
71976
71175
|
command: "\u6DFB\u52A0\u6279\u6CE8",
|
|
71977
|
-
quickMenuCommand: "\u6DFB\u52A0\u6279\u6CE8"
|
|
71978
|
-
resolvedBy: '\u5DF2\u7531 <span class="resolver-name">{name}</span> \u89E3\u51B3',
|
|
71979
|
-
reopen: "\u91CD\u65B0\u6253\u5F00",
|
|
71980
|
-
currentComment: "\u5F53\u524D\u6279\u6CE8",
|
|
71981
|
-
resolvedComment: "\u5DF2\u89E3\u51B3\u6279\u6CE8",
|
|
71982
|
-
removedFromDoc: "\u5F15\u7528\u5185\u5BB9\u5DF2\u5220\u9664",
|
|
71983
|
-
noCurrentComment: "\u6682\u65E0\u6279\u6CE8",
|
|
71984
|
-
noResolvedComment: "\u65E0\u5DF2\u89E3\u51B3\u6279\u6CE8",
|
|
71985
|
-
resolveComment: "\u6807\u8BB0\u4E3A\u5DF2\u89E3\u51B3",
|
|
71986
|
-
commentHasAlreadyRemoved: "\u5F15\u7528\u5185\u5BB9\u5DF2\u88AB\u5220\u9664\uFF0C\u4E0D\u53EF\u91CD\u65B0\u6253\u5F00\u6279\u6CE8"
|
|
71176
|
+
quickMenuCommand: "\u6DFB\u52A0\u6279\u6CE8"
|
|
71987
71177
|
}
|
|
71988
71178
|
};
|
|
71989
|
-
const zhHK$
|
|
71179
|
+
const zhHK$l = {
|
|
71990
71180
|
comment: {
|
|
71991
71181
|
count: "\u6279\u8A3B ({num})",
|
|
71992
71182
|
hide: "\u96B1\u85CF\u6279\u8A3B",
|
|
@@ -72009,7 +71199,7 @@ ${codeText}
|
|
|
72009
71199
|
quickMenuCommand: "\u6DFB\u52A0\u6279\u8A3B"
|
|
72010
71200
|
}
|
|
72011
71201
|
};
|
|
72012
|
-
const enUS$
|
|
71202
|
+
const enUS$l = {
|
|
72013
71203
|
comment: {
|
|
72014
71204
|
count: "Annotations ({num})",
|
|
72015
71205
|
hide: "Hide Annotations",
|
|
@@ -72017,7 +71207,7 @@ ${codeText}
|
|
|
72017
71207
|
reply: "Reply",
|
|
72018
71208
|
quicklyReply: "Reply...",
|
|
72019
71209
|
send: "Confirm",
|
|
72020
|
-
placeholder: "Add
|
|
71210
|
+
placeholder: "Add annotation...",
|
|
72021
71211
|
replyPlaceholder: "Add annotation",
|
|
72022
71212
|
edit: "Edit",
|
|
72023
71213
|
delete: "Delete",
|
|
@@ -72029,19 +71219,10 @@ ${codeText}
|
|
|
72029
71219
|
more: "More",
|
|
72030
71220
|
comment: "Add annotation",
|
|
72031
71221
|
command: "Add annotation",
|
|
72032
|
-
quickMenuCommand: "Add annotation"
|
|
72033
|
-
resolvedBy: 'Resolved by <span class="resolver-name">{name}<span>',
|
|
72034
|
-
reopen: "Reopen",
|
|
72035
|
-
currentComment: "Unresolved annotations",
|
|
72036
|
-
resolvedComment: "Resolved annotations",
|
|
72037
|
-
removedFromDoc: "Quoted content deleted.",
|
|
72038
|
-
noCurrentComment: "No annotation.",
|
|
72039
|
-
noResolvedComment: "No resolved annotations.",
|
|
72040
|
-
resolveComment: "Mark as resolved",
|
|
72041
|
-
commentHasAlreadyRemoved: "Referenced content deleted. Comment can't be reopened."
|
|
71222
|
+
quickMenuCommand: "Add annotation"
|
|
72042
71223
|
}
|
|
72043
71224
|
};
|
|
72044
|
-
const jaJP$
|
|
71225
|
+
const jaJP$l = {
|
|
72045
71226
|
comment: {
|
|
72046
71227
|
count: "\u6CE8\u91C8 ({num})",
|
|
72047
71228
|
hide: "\u6CE8\u91C8\u3092\u975E\u8868\u793A",
|
|
@@ -72061,24 +71242,70 @@ ${codeText}
|
|
|
72061
71242
|
more: "\u305D\u306E\u4ED6",
|
|
72062
71243
|
comment: "\u6CE8\u91C8\u3092\u8FFD\u52A0",
|
|
72063
71244
|
command: "\u6CE8\u91C8\u3092\u8FFD\u52A0",
|
|
72064
|
-
quickMenuCommand: "\u6CE8\u91C8\u3092\u8FFD\u52A0"
|
|
72065
|
-
resolvedBy: '<span class="resolver-name">{name}</span>\u3055\u3093\u304C\u89E3\u6C7A\u3057\u307E\u3057\u305F',
|
|
72066
|
-
reopen: "\u518D\u958B",
|
|
72067
|
-
currentComment: "\u672A\u89E3\u6C7A\u30B3\u30E1\u30F3\u30C8",
|
|
72068
|
-
resolvedComment: "\u89E3\u6C7A\u6E08\u307F\u30B3\u30E1\u30F3\u30C8",
|
|
72069
|
-
removedFromDoc: "\u5F15\u7528\u3055\u308C\u305F\u5185\u5BB9\u306F\u524A\u9664\u3055\u308C\u307E\u3057\u305F\u3002",
|
|
72070
|
-
noCurrentComment: "\u6CE8\u91C8\u306A\u3057",
|
|
72071
|
-
noResolvedComment: "\u89E3\u6C7A\u6E08\u307F\u30B3\u30E1\u30F3\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
72072
|
-
resolveComment: "\u89E3\u6C7A\u3055\u308C\u307E\u3057\u305F",
|
|
72073
|
-
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"
|
|
71245
|
+
quickMenuCommand: "\u6CE8\u91C8\u3092\u8FFD\u52A0"
|
|
72074
71246
|
}
|
|
72075
71247
|
};
|
|
72076
71248
|
i18n$1.mergeLang({
|
|
72077
|
-
"zh-CN": zhCN$
|
|
72078
|
-
"zh-HK": zhHK$
|
|
72079
|
-
"en-US": enUS$
|
|
72080
|
-
"ja-JP": jaJP$
|
|
71249
|
+
"zh-CN": zhCN$l,
|
|
71250
|
+
"zh-HK": zhHK$l,
|
|
71251
|
+
"en-US": enUS$l,
|
|
71252
|
+
"ja-JP": jaJP$l
|
|
72081
71253
|
});
|
|
71254
|
+
class OnesEditorCommentsRender {
|
|
71255
|
+
renderText(editor, path, attributes) {
|
|
71256
|
+
const classes = [];
|
|
71257
|
+
const textAttributes = {};
|
|
71258
|
+
Object.entries(attributes).forEach(([key, value]) => {
|
|
71259
|
+
if (key.startsWith("comment-")) {
|
|
71260
|
+
classes.push("comment");
|
|
71261
|
+
textAttributes[key] = value;
|
|
71262
|
+
}
|
|
71263
|
+
});
|
|
71264
|
+
return { classes, attributes: textAttributes };
|
|
71265
|
+
}
|
|
71266
|
+
renderBox(editor, path, attributes) {
|
|
71267
|
+
const classes = [];
|
|
71268
|
+
const textAttributes = {};
|
|
71269
|
+
Object.entries(attributes).forEach(([key, value]) => {
|
|
71270
|
+
if (key.startsWith("comment-")) {
|
|
71271
|
+
classes.push("comment");
|
|
71272
|
+
textAttributes[key] = value;
|
|
71273
|
+
}
|
|
71274
|
+
});
|
|
71275
|
+
return { classes, attributes: textAttributes };
|
|
71276
|
+
}
|
|
71277
|
+
renderBlock(editor, path, blockData) {
|
|
71278
|
+
const comments = blockData.comments;
|
|
71279
|
+
if (!comments || comments.length === 0) {
|
|
71280
|
+
return {};
|
|
71281
|
+
}
|
|
71282
|
+
const classes = ["comment"];
|
|
71283
|
+
const attributes = {};
|
|
71284
|
+
comments.forEach((commentId) => {
|
|
71285
|
+
attributes[`comment-${commentId.toLocaleLowerCase()}`] = commentId;
|
|
71286
|
+
});
|
|
71287
|
+
return {
|
|
71288
|
+
classes,
|
|
71289
|
+
attributes
|
|
71290
|
+
};
|
|
71291
|
+
}
|
|
71292
|
+
updateBlock(editor, path, blockElement, blockData) {
|
|
71293
|
+
const comments = blockData.comments;
|
|
71294
|
+
removeClass(blockElement, "comment");
|
|
71295
|
+
Array.from(blockElement.attributes).forEach((a) => {
|
|
71296
|
+
if (a.name.startsWith("comment-")) {
|
|
71297
|
+
blockElement.removeAttribute(a.name);
|
|
71298
|
+
}
|
|
71299
|
+
});
|
|
71300
|
+
if (!comments || comments.length === 0) {
|
|
71301
|
+
return;
|
|
71302
|
+
}
|
|
71303
|
+
addClass(blockElement, "comment");
|
|
71304
|
+
comments.forEach((commentId) => {
|
|
71305
|
+
blockElement.setAttribute(`comment-${commentId.toLocaleLowerCase()}`, commentId);
|
|
71306
|
+
});
|
|
71307
|
+
}
|
|
71308
|
+
}
|
|
72082
71309
|
class OnesEditorCommentPlaceholderHandler {
|
|
72083
71310
|
constructor(editor) {
|
|
72084
71311
|
__publicField(this, "handleUpdateCompositionText", (editor, containerId, blockIndex, offset, end) => {
|
|
@@ -72230,21 +71457,6 @@ ${codeText}
|
|
|
72230
71457
|
method: "delete"
|
|
72231
71458
|
});
|
|
72232
71459
|
}
|
|
72233
|
-
function updateCommentResolverToOldDoc(editor, version, commentId, resolver) {
|
|
72234
|
-
var _a, _b;
|
|
72235
|
-
const doc2 = editor.doc;
|
|
72236
|
-
const server = (_b = (_a = doc2.getServerMeta) == null ? void 0 : _a.call(doc2)) == null ? void 0 : _b.apiServer;
|
|
72237
|
-
assert(logger$16, server, "apiServer is not set");
|
|
72238
|
-
const api = `${server}/${version}/comments/${commentId}/resolver`;
|
|
72239
|
-
return doc2.request(api, {
|
|
72240
|
-
method: "put",
|
|
72241
|
-
data: {
|
|
72242
|
-
resolver
|
|
72243
|
-
}
|
|
72244
|
-
});
|
|
72245
|
-
}
|
|
72246
|
-
getLogger("resolved-comment-item");
|
|
72247
|
-
const styles = "";
|
|
72248
71460
|
const isAllContainersSelected = (editor) => {
|
|
72249
71461
|
var _a;
|
|
72250
71462
|
const range = editor.selection.range;
|
|
@@ -72319,16 +71531,6 @@ ${codeText}
|
|
|
72319
71531
|
await updateCommentToOldDoc(this.editor, this.version, commentId, comments.commentProvider.getCommentDoc(commentId));
|
|
72320
71532
|
}
|
|
72321
71533
|
}
|
|
72322
|
-
onUpdateCommentResolver(commentId, local) {
|
|
72323
|
-
const comments = this.editor.getCustom("editor-comments");
|
|
72324
|
-
const provider = comments.commentProvider;
|
|
72325
|
-
const comment = provider.getComment(commentId);
|
|
72326
|
-
if (!comment) {
|
|
72327
|
-
return;
|
|
72328
|
-
}
|
|
72329
|
-
const resolver = comment.resolver;
|
|
72330
|
-
updateCommentResolverToOldDoc(this.editor, this.version, commentId, resolver);
|
|
72331
|
-
}
|
|
72332
71534
|
hideToolbar(editor) {
|
|
72333
71535
|
const toolbar2 = editor.findCustom("toolbar-handler");
|
|
72334
71536
|
toolbar2 == null ? void 0 : toolbar2.disableTextToolbar();
|
|
@@ -72355,7 +71557,6 @@ ${codeText}
|
|
|
72355
71557
|
order: 60
|
|
72356
71558
|
}],
|
|
72357
71559
|
executeCommand: (editor2, block, item, child2) => {
|
|
72358
|
-
var _a2;
|
|
72359
71560
|
if (!child2) {
|
|
72360
71561
|
return;
|
|
72361
71562
|
}
|
|
@@ -72366,7 +71567,6 @@ ${codeText}
|
|
|
72366
71567
|
}
|
|
72367
71568
|
this.hideToolbar(editor2);
|
|
72368
71569
|
comments.showCommentList();
|
|
72369
|
-
(_a2 = comments.getCommentList()) == null ? void 0 : _a2.setListType("current");
|
|
72370
71570
|
const offset = getChildOffset(block, child2);
|
|
72371
71571
|
const range = createBlockSimpleRange(this.editor, block, offset.start, offset.end);
|
|
72372
71572
|
const comment = addCommentToTextBlocks(editor2, range, comments.commentProvider);
|
|
@@ -72391,16 +71591,15 @@ ${codeText}
|
|
|
72391
71591
|
order: 60
|
|
72392
71592
|
}],
|
|
72393
71593
|
executeCommand: (editor2, block, item) => {
|
|
72394
|
-
var _a2;
|
|
72395
71594
|
if (item.id === "add-comment-to-old-doc") {
|
|
72396
71595
|
const comments = editor2.getCustom("editor-comments");
|
|
72397
71596
|
if (!comments) {
|
|
72398
71597
|
return;
|
|
72399
71598
|
}
|
|
72400
71599
|
editor2.selection.selectBlock(block, 0, getBlockTextLength$6(editor2, block), { noScroll: true });
|
|
72401
|
-
|
|
72402
|
-
|
|
72403
|
-
addCommentToBlock(editor2, block,
|
|
71600
|
+
const editorComments = editor2.getCustom("editor-comments");
|
|
71601
|
+
editorComments.showCommentList();
|
|
71602
|
+
addCommentToBlock(editor2, block, editorComments.commentProvider);
|
|
72404
71603
|
}
|
|
72405
71604
|
}
|
|
72406
71605
|
};
|
|
@@ -72425,14 +71624,12 @@ ${codeText}
|
|
|
72425
71624
|
}];
|
|
72426
71625
|
}
|
|
72427
71626
|
executeCommand(editor, command, options) {
|
|
72428
|
-
var _a;
|
|
72429
71627
|
if (command.id === "add-comment-to-old-doc/text") {
|
|
72430
71628
|
const comments = editor.getCustom("editor-comments");
|
|
72431
71629
|
if (!comments) {
|
|
72432
71630
|
return;
|
|
72433
71631
|
}
|
|
72434
71632
|
comments.showCommentList();
|
|
72435
|
-
(_a = comments.getCommentList()) == null ? void 0 : _a.setListType("current");
|
|
72436
71633
|
const range = editor.selection.range;
|
|
72437
71634
|
if (!range.isSimple()) {
|
|
72438
71635
|
if (isFullSelectedOneComplexBlock(editor, range)) {
|
|
@@ -74655,7 +73852,7 @@ ${codeText}
|
|
|
74655
73852
|
return void 0;
|
|
74656
73853
|
}
|
|
74657
73854
|
};
|
|
74658
|
-
const zhCN$
|
|
73855
|
+
const zhCN$k = {
|
|
74659
73856
|
table: {
|
|
74660
73857
|
cellBackground: "\u5355\u5143\u683C\u80CC\u666F\u8272",
|
|
74661
73858
|
deleteSelectRow: "\u5220\u9664\u6240\u9009\u884C",
|
|
@@ -74687,7 +73884,7 @@ ${codeText}
|
|
|
74687
73884
|
}
|
|
74688
73885
|
}
|
|
74689
73886
|
};
|
|
74690
|
-
const zhHK$
|
|
73887
|
+
const zhHK$k = {
|
|
74691
73888
|
table: {
|
|
74692
73889
|
cellBackground: "\u55AE\u5143\u683C\u80CC\u666F\u8272",
|
|
74693
73890
|
deleteSelectRow: "\u522A\u9664\u6240\u9078\u884C",
|
|
@@ -74719,7 +73916,7 @@ ${codeText}
|
|
|
74719
73916
|
}
|
|
74720
73917
|
}
|
|
74721
73918
|
};
|
|
74722
|
-
const enUS$
|
|
73919
|
+
const enUS$k = {
|
|
74723
73920
|
table: {
|
|
74724
73921
|
cellBackground: "Cell background color",
|
|
74725
73922
|
deleteSelectRow: "Delete selected rows",
|
|
@@ -74751,7 +73948,7 @@ ${codeText}
|
|
|
74751
73948
|
}
|
|
74752
73949
|
}
|
|
74753
73950
|
};
|
|
74754
|
-
const jaJP$
|
|
73951
|
+
const jaJP$k = {
|
|
74755
73952
|
table: {
|
|
74756
73953
|
cellBackground: "\u30BB\u30EB\u306E\u80CC\u666F\u8272",
|
|
74757
73954
|
deleteSelectRow: "\u9078\u629E\u3057\u305F\u884C\u3092\u524A\u9664",
|
|
@@ -74784,10 +73981,10 @@ ${codeText}
|
|
|
74784
73981
|
}
|
|
74785
73982
|
};
|
|
74786
73983
|
i18n$1.mergeLang({
|
|
74787
|
-
"zh-CN": zhCN$
|
|
74788
|
-
"zh-HK": zhHK$
|
|
74789
|
-
"en-US": enUS$
|
|
74790
|
-
"ja-JP": jaJP$
|
|
73984
|
+
"zh-CN": zhCN$k,
|
|
73985
|
+
"zh-HK": zhHK$k,
|
|
73986
|
+
"en-US": enUS$k,
|
|
73987
|
+
"ja-JP": jaJP$k
|
|
74791
73988
|
});
|
|
74792
73989
|
const tableStyle = "";
|
|
74793
73990
|
const logger$U = getLogger("table");
|
|
@@ -75209,28 +74406,28 @@ ${codeText}
|
|
|
75209
74406
|
return false;
|
|
75210
74407
|
}
|
|
75211
74408
|
}
|
|
75212
|
-
const zhCN$
|
|
74409
|
+
const zhCN$j = {
|
|
75213
74410
|
pasteSpecial: {
|
|
75214
74411
|
originFormats: "\u4FDD\u6301\u539F\u6837\u5F0F",
|
|
75215
74412
|
plainText: "\u7C98\u8D34\u7EAF\u6587\u672C",
|
|
75216
74413
|
markdown: "\u7C98\u8D34\u4E3A Markdown"
|
|
75217
74414
|
}
|
|
75218
74415
|
};
|
|
75219
|
-
const zhHK$
|
|
74416
|
+
const zhHK$j = {
|
|
75220
74417
|
pasteSpecial: {
|
|
75221
74418
|
originFormats: "\u4FDD\u6301\u539F\u6A23\u5F0F",
|
|
75222
74419
|
plainText: "\u7C98\u8CBC\u7D14\u6587\u672C",
|
|
75223
74420
|
markdown: "\u7C98\u8CBC\u70BA Markdown"
|
|
75224
74421
|
}
|
|
75225
74422
|
};
|
|
75226
|
-
const enUS$
|
|
74423
|
+
const enUS$j = {
|
|
75227
74424
|
pasteSpecial: {
|
|
75228
74425
|
originFormats: "Keep source formatting",
|
|
75229
74426
|
plainText: "Paste as plain text",
|
|
75230
74427
|
markdown: "Paste as markdown"
|
|
75231
74428
|
}
|
|
75232
74429
|
};
|
|
75233
|
-
const jaJP$
|
|
74430
|
+
const jaJP$j = {
|
|
75234
74431
|
pasteSpecial: {
|
|
75235
74432
|
originFormats: "\u5143\u306E\u5F62\u5F0F\u3092\u4FDD\u6301",
|
|
75236
74433
|
plainText: "\u30D7\u30EC\u30FC\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u308B",
|
|
@@ -75238,10 +74435,10 @@ ${codeText}
|
|
|
75238
74435
|
}
|
|
75239
74436
|
};
|
|
75240
74437
|
i18n$1.mergeLang({
|
|
75241
|
-
"zh-CN": zhCN$
|
|
75242
|
-
"zh-HK": zhHK$
|
|
75243
|
-
"en-US": enUS$
|
|
75244
|
-
"ja-JP": jaJP$
|
|
74438
|
+
"zh-CN": zhCN$j,
|
|
74439
|
+
"zh-HK": zhHK$j,
|
|
74440
|
+
"en-US": enUS$j,
|
|
74441
|
+
"ja-JP": jaJP$j
|
|
75245
74442
|
});
|
|
75246
74443
|
const style$6 = "";
|
|
75247
74444
|
const logger$S = getLogger("html-to-doc");
|
|
@@ -77687,14 +76884,14 @@ ${docStr}
|
|
|
77687
76884
|
}
|
|
77688
76885
|
function isList(elem) {
|
|
77689
76886
|
var _a;
|
|
77690
|
-
const
|
|
77691
|
-
return
|
|
76887
|
+
const styles = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
|
|
76888
|
+
return styles.findIndex((style2) => style2.startsWith("level")) !== -1;
|
|
77692
76889
|
}
|
|
77693
76890
|
function getOfficeListGroupId(elem) {
|
|
77694
76891
|
var _a;
|
|
77695
|
-
const
|
|
77696
|
-
for (let i = 0; i <
|
|
77697
|
-
const name =
|
|
76892
|
+
const styles = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
|
|
76893
|
+
for (let i = 0; i < styles.length; i++) {
|
|
76894
|
+
const name = styles[i];
|
|
77698
76895
|
if (name.startsWith("mso-list:")) {
|
|
77699
76896
|
return name;
|
|
77700
76897
|
}
|
|
@@ -77703,9 +76900,9 @@ ${docStr}
|
|
|
77703
76900
|
}
|
|
77704
76901
|
function getLevel(elem) {
|
|
77705
76902
|
var _a, _b;
|
|
77706
|
-
const
|
|
77707
|
-
for (let i = 0; i <
|
|
77708
|
-
const name =
|
|
76903
|
+
const styles = Array.from(((_a = elem.getAttribute("style")) != null ? _a : "").split(" "));
|
|
76904
|
+
for (let i = 0; i < styles.length; i++) {
|
|
76905
|
+
const name = styles[i];
|
|
77709
76906
|
if (name.startsWith("level")) {
|
|
77710
76907
|
const level = (_b = Number.parseInt(name.substring(5), 10)) != null ? _b : void 0;
|
|
77711
76908
|
if (level) {
|
|
@@ -79232,7 +78429,7 @@ ${docStr}
|
|
|
79232
78429
|
(_a = this.dialog) == null ? void 0 : _a.destroy();
|
|
79233
78430
|
}
|
|
79234
78431
|
}
|
|
79235
|
-
const zhCN$
|
|
78432
|
+
const zhCN$i = {
|
|
79236
78433
|
find: {
|
|
79237
78434
|
findLabel: "\u67E5\u627E:",
|
|
79238
78435
|
replaceLabel: "\u66FF\u6362:",
|
|
@@ -79244,7 +78441,7 @@ ${docStr}
|
|
|
79244
78441
|
replacePlaceholder: "\u66FF\u6362\u4E3A"
|
|
79245
78442
|
}
|
|
79246
78443
|
};
|
|
79247
|
-
const zhHK$
|
|
78444
|
+
const zhHK$i = {
|
|
79248
78445
|
find: {
|
|
79249
78446
|
findLabel: "\u67E5\u627E:",
|
|
79250
78447
|
replaceLabel: "\u66FF\u63DB:",
|
|
@@ -79256,7 +78453,7 @@ ${docStr}
|
|
|
79256
78453
|
replacePlaceholder: "\u66FF\u63DB\u70BA"
|
|
79257
78454
|
}
|
|
79258
78455
|
};
|
|
79259
|
-
const enUS$
|
|
78456
|
+
const enUS$i = {
|
|
79260
78457
|
find: {
|
|
79261
78458
|
findLabel: "Search:",
|
|
79262
78459
|
replaceLabel: "Replace:",
|
|
@@ -79268,7 +78465,7 @@ ${docStr}
|
|
|
79268
78465
|
replacePlaceholder: "Replace with"
|
|
79269
78466
|
}
|
|
79270
78467
|
};
|
|
79271
|
-
const jaJP$
|
|
78468
|
+
const jaJP$i = {
|
|
79272
78469
|
find: {
|
|
79273
78470
|
findLabel: "\u691C\u7D22\uFF1A",
|
|
79274
78471
|
replaceLabel: "\u7F6E\u63DB\uFF1A",
|
|
@@ -79281,10 +78478,10 @@ ${docStr}
|
|
|
79281
78478
|
}
|
|
79282
78479
|
};
|
|
79283
78480
|
i18n$1.mergeLang({
|
|
79284
|
-
"zh-CN": zhCN$
|
|
79285
|
-
"zh-HK": zhHK$
|
|
79286
|
-
"en-US": enUS$
|
|
79287
|
-
"ja-JP": jaJP$
|
|
78481
|
+
"zh-CN": zhCN$i,
|
|
78482
|
+
"zh-HK": zhHK$i,
|
|
78483
|
+
"en-US": enUS$i,
|
|
78484
|
+
"ja-JP": jaJP$i
|
|
79288
78485
|
});
|
|
79289
78486
|
function handleFindReplace(editor) {
|
|
79290
78487
|
const dialog = editor.addCustom("find-dialog", () => new FindDialog(editor));
|
|
@@ -80028,7 +79225,7 @@ ${docStr}
|
|
|
80028
79225
|
return false;
|
|
80029
79226
|
}
|
|
80030
79227
|
}
|
|
80031
|
-
const zhCN$
|
|
79228
|
+
const zhCN$h = {
|
|
80032
79229
|
contextMenu: {
|
|
80033
79230
|
copyMarkdown: "\u590D\u5236\u4E3A Markdown",
|
|
80034
79231
|
paste: "\u7C98\u8D34",
|
|
@@ -80041,7 +79238,7 @@ ${docStr}
|
|
|
80041
79238
|
uneditableBlockSelected: "\u9009\u4E2D\u533A\u57DF\u5305\u542B\u9501\u5B9A\u533A\u5757\uFF0C\u6682\u4E0D\u652F\u6301\u526A\u5207"
|
|
80042
79239
|
}
|
|
80043
79240
|
};
|
|
80044
|
-
const zhHK$
|
|
79241
|
+
const zhHK$h = {
|
|
80045
79242
|
contextMenu: {
|
|
80046
79243
|
copyMarkdown: "\u8907\u88FD\u70BA Markdown",
|
|
80047
79244
|
paste: "\u7C98\u8CBC",
|
|
@@ -80054,7 +79251,7 @@ ${docStr}
|
|
|
80054
79251
|
uneditableBlockSelected: "\u9078\u4E2D\u5340\u57DF\u5305\u542B\u9396\u5B9A\u5340\u584A\uFF0C\u66AB\u4E0D\u652F\u6301\u526A\u5207"
|
|
80055
79252
|
}
|
|
80056
79253
|
};
|
|
80057
|
-
const enUS$
|
|
79254
|
+
const enUS$h = {
|
|
80058
79255
|
contextMenu: {
|
|
80059
79256
|
copyMarkdown: "Copy as Markdown",
|
|
80060
79257
|
paste: "Paste",
|
|
@@ -80067,7 +79264,7 @@ ${docStr}
|
|
|
80067
79264
|
uneditableBlockSelected: "The selected area contains locked blocks, and cutting is not currently supported"
|
|
80068
79265
|
}
|
|
80069
79266
|
};
|
|
80070
|
-
const jaJP$
|
|
79267
|
+
const jaJP$h = {
|
|
80071
79268
|
contextMenu: {
|
|
80072
79269
|
copyMarkdown: "Markdown \u3068\u3057\u3066\u30B3\u30D4\u30FC",
|
|
80073
79270
|
paste: "\u8CBC\u308A\u4ED8\u3051",
|
|
@@ -80081,10 +79278,10 @@ ${docStr}
|
|
|
80081
79278
|
}
|
|
80082
79279
|
};
|
|
80083
79280
|
i18n$1.mergeLang({
|
|
80084
|
-
"zh-CN": zhCN$
|
|
80085
|
-
"zh-HK": zhHK$
|
|
80086
|
-
"en-US": enUS$
|
|
80087
|
-
"ja-JP": jaJP$
|
|
79281
|
+
"zh-CN": zhCN$h,
|
|
79282
|
+
"zh-HK": zhHK$h,
|
|
79283
|
+
"en-US": enUS$h,
|
|
79284
|
+
"ja-JP": jaJP$h
|
|
80088
79285
|
});
|
|
80089
79286
|
function hideToolbar(editor) {
|
|
80090
79287
|
const toolbar2 = editor.findCustom("toolbar-handler");
|
|
@@ -80632,7 +79829,7 @@ ${docStr}
|
|
|
80632
79829
|
toStandardDoc: toStandardDoc$1,
|
|
80633
79830
|
getResources
|
|
80634
79831
|
};
|
|
80635
|
-
const zhCN$
|
|
79832
|
+
const zhCN$g = {
|
|
80636
79833
|
file: {
|
|
80637
79834
|
abstract: "\u9644\u4EF6",
|
|
80638
79835
|
commands: {
|
|
@@ -80646,7 +79843,7 @@ ${docStr}
|
|
|
80646
79843
|
askAi: "\u8BE2\u95EE Copilot"
|
|
80647
79844
|
}
|
|
80648
79845
|
};
|
|
80649
|
-
const zhHK$
|
|
79846
|
+
const zhHK$g = {
|
|
80650
79847
|
file: {
|
|
80651
79848
|
abstract: "\u9644\u4EF6",
|
|
80652
79849
|
commands: {
|
|
@@ -80660,7 +79857,7 @@ ${docStr}
|
|
|
80660
79857
|
askAi: "\u8A62\u554F Copilot"
|
|
80661
79858
|
}
|
|
80662
79859
|
};
|
|
80663
|
-
const enUS$
|
|
79860
|
+
const enUS$g = {
|
|
80664
79861
|
file: {
|
|
80665
79862
|
abstract: "Attachment",
|
|
80666
79863
|
commands: {
|
|
@@ -80674,7 +79871,7 @@ ${docStr}
|
|
|
80674
79871
|
askAi: "Ask Copilot"
|
|
80675
79872
|
}
|
|
80676
79873
|
};
|
|
80677
|
-
const jaJP$
|
|
79874
|
+
const jaJP$g = {
|
|
80678
79875
|
file: {
|
|
80679
79876
|
abstract: "\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB",
|
|
80680
79877
|
commands: {
|
|
@@ -80689,10 +79886,10 @@ ${docStr}
|
|
|
80689
79886
|
}
|
|
80690
79887
|
};
|
|
80691
79888
|
i18n$1.mergeLang({
|
|
80692
|
-
"zh-CN": zhCN$
|
|
80693
|
-
"zh-HK": zhHK$
|
|
80694
|
-
"en-US": enUS$
|
|
80695
|
-
"ja-JP": jaJP$
|
|
79889
|
+
"zh-CN": zhCN$g,
|
|
79890
|
+
"zh-HK": zhHK$g,
|
|
79891
|
+
"en-US": enUS$g,
|
|
79892
|
+
"ja-JP": jaJP$g
|
|
80696
79893
|
});
|
|
80697
79894
|
function getEndsWithLinkIndex(str) {
|
|
80698
79895
|
const regex = /(\s|^)(http|https):\/\/[\w\-]+(\.[\w\-]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?$/;
|
|
@@ -80732,7 +79929,7 @@ ${docStr}
|
|
|
80732
79929
|
"Space": autoLink
|
|
80733
79930
|
};
|
|
80734
79931
|
const index$6 = "";
|
|
80735
|
-
const zhCN$
|
|
79932
|
+
const zhCN$f = {
|
|
80736
79933
|
version: {
|
|
80737
79934
|
latest: "\u6700\u65B0\u7248\u672C",
|
|
80738
79935
|
update: "{name}\u4FEE\u6539",
|
|
@@ -80776,7 +79973,7 @@ ${docStr}
|
|
|
80776
79973
|
filterMemoed: "\u7B5B\u9009\u5DF2\u5907\u6CE8\u7684\u7248\u672C"
|
|
80777
79974
|
}
|
|
80778
79975
|
};
|
|
80779
|
-
const zhHK$
|
|
79976
|
+
const zhHK$f = {
|
|
80780
79977
|
version: {
|
|
80781
79978
|
latest: "\u6700\u65B0\u7248\u672C",
|
|
80782
79979
|
update: "{name}\u4FEE\u6539",
|
|
@@ -80820,7 +80017,7 @@ ${docStr}
|
|
|
80820
80017
|
filterMemoed: "\u7BE9\u9078\u5DF2\u5099\u8A3B\u7684\u7248\u672C"
|
|
80821
80018
|
}
|
|
80822
80019
|
};
|
|
80823
|
-
const enUS$
|
|
80020
|
+
const enUS$f = {
|
|
80824
80021
|
version: {
|
|
80825
80022
|
latest: "Latest",
|
|
80826
80023
|
update: "Modified by {name}",
|
|
@@ -80864,7 +80061,7 @@ ${docStr}
|
|
|
80864
80061
|
filterMemoed: "Filter versions with comments"
|
|
80865
80062
|
}
|
|
80866
80063
|
};
|
|
80867
|
-
const jaJP$
|
|
80064
|
+
const jaJP$f = {
|
|
80868
80065
|
version: {
|
|
80869
80066
|
latest: "\u6700\u65B0",
|
|
80870
80067
|
update: "{name} \u304C\u5185\u5BB9\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u3002",
|
|
@@ -80909,10 +80106,10 @@ ${docStr}
|
|
|
80909
80106
|
}
|
|
80910
80107
|
};
|
|
80911
80108
|
i18n$1.mergeLang({
|
|
80912
|
-
"zh-CN": zhCN$
|
|
80913
|
-
"zh-HK": zhHK$
|
|
80914
|
-
"en-US": enUS$
|
|
80915
|
-
"ja-JP": jaJP$
|
|
80109
|
+
"zh-CN": zhCN$f,
|
|
80110
|
+
"zh-HK": zhHK$f,
|
|
80111
|
+
"en-US": enUS$f,
|
|
80112
|
+
"ja-JP": jaJP$f
|
|
80916
80113
|
});
|
|
80917
80114
|
var HistoryClass = /* @__PURE__ */ ((HistoryClass2) => {
|
|
80918
80115
|
HistoryClass2["NEW"] = "history-new";
|
|
@@ -81396,8 +80593,6 @@ ${docStr}
|
|
|
81396
80593
|
}
|
|
81397
80594
|
onUpdateComment() {
|
|
81398
80595
|
}
|
|
81399
|
-
onUpdateCommentResolver(commentId, local) {
|
|
81400
|
-
}
|
|
81401
80596
|
}
|
|
81402
80597
|
async function playHistoryData(doc2, versionHelper, historyData) {
|
|
81403
80598
|
for (const data2 of historyData) {
|
|
@@ -82797,35 +81992,35 @@ ${docStr}
|
|
|
82797
81992
|
(_c = this.editor) == null ? void 0 : _c.destroy();
|
|
82798
81993
|
}
|
|
82799
81994
|
}
|
|
82800
|
-
const zhCN$
|
|
81995
|
+
const zhCN$e = {
|
|
82801
81996
|
expandCollapseButton: {
|
|
82802
81997
|
expand: "\u5C55\u5F00",
|
|
82803
81998
|
collapse: "\u6536\u8D77"
|
|
82804
81999
|
}
|
|
82805
82000
|
};
|
|
82806
|
-
const zhHK$
|
|
82001
|
+
const zhHK$e = {
|
|
82807
82002
|
expandCollapseButton: {
|
|
82808
82003
|
expand: "\u5C55\u958B",
|
|
82809
82004
|
collapse: "\u6536\u8D77"
|
|
82810
82005
|
}
|
|
82811
82006
|
};
|
|
82812
|
-
const enUS$
|
|
82007
|
+
const enUS$e = {
|
|
82813
82008
|
expandCollapseButton: {
|
|
82814
82009
|
expand: "Expand",
|
|
82815
82010
|
collapse: "Collapse"
|
|
82816
82011
|
}
|
|
82817
82012
|
};
|
|
82818
|
-
const jaJP$
|
|
82013
|
+
const jaJP$e = {
|
|
82819
82014
|
expandCollapseButton: {
|
|
82820
82015
|
expand: "\u5C55\u958B",
|
|
82821
82016
|
collapse: "\u7E2E\u5C0F"
|
|
82822
82017
|
}
|
|
82823
82018
|
};
|
|
82824
82019
|
i18n$1.mergeLang({
|
|
82825
|
-
"zh-CN": zhCN$
|
|
82826
|
-
"zh-HK": zhHK$
|
|
82827
|
-
"en-US": enUS$
|
|
82828
|
-
"ja-JP": jaJP$
|
|
82020
|
+
"zh-CN": zhCN$e,
|
|
82021
|
+
"zh-HK": zhHK$e,
|
|
82022
|
+
"en-US": enUS$e,
|
|
82023
|
+
"ja-JP": jaJP$e
|
|
82829
82024
|
});
|
|
82830
82025
|
const style$4 = "";
|
|
82831
82026
|
const logger$w = getLogger("heading-collapse");
|
|
@@ -83653,28 +82848,28 @@ ${docStr}
|
|
|
83653
82848
|
getOptions: getOptions$5,
|
|
83654
82849
|
getBlockProperties: getBlockProperties$7
|
|
83655
82850
|
};
|
|
83656
|
-
const zhCN$
|
|
82851
|
+
const zhCN$d = {
|
|
83657
82852
|
toc: {
|
|
83658
82853
|
name: "\u6807\u9898\u76EE\u5F55",
|
|
83659
82854
|
empty: "\u5F53\u524D\u9875\u9762\u6682\u65E0\u6807\u9898\u6837\u5F0F\u6587\u672C",
|
|
83660
82855
|
abstract: "\u6807\u9898\u76EE\u5F55"
|
|
83661
82856
|
}
|
|
83662
82857
|
};
|
|
83663
|
-
const zhHK$
|
|
82858
|
+
const zhHK$d = {
|
|
83664
82859
|
toc: {
|
|
83665
82860
|
name: "\u6A19\u984C\u76EE\u9304",
|
|
83666
82861
|
empty: "\u7576\u524D\u9801\u9762\u66AB\u7121\u6A19\u984C\u6A23\u5F0F\u6587\u672C",
|
|
83667
82862
|
abstract: "\u6A19\u984C\u76EE\u9304"
|
|
83668
82863
|
}
|
|
83669
82864
|
};
|
|
83670
|
-
const enUS$
|
|
82865
|
+
const enUS$d = {
|
|
83671
82866
|
toc: {
|
|
83672
82867
|
name: "Toc",
|
|
83673
82868
|
empty: "No heading on this page",
|
|
83674
82869
|
abstract: "Table of contents"
|
|
83675
82870
|
}
|
|
83676
82871
|
};
|
|
83677
|
-
const jaJP$
|
|
82872
|
+
const jaJP$d = {
|
|
83678
82873
|
toc: {
|
|
83679
82874
|
name: "Toc",
|
|
83680
82875
|
empty: "\u3053\u306E\u30DA\u30FC\u30B8\u306B\u306F\u898B\u51FA\u3057\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
@@ -83682,10 +82877,10 @@ ${docStr}
|
|
|
83682
82877
|
}
|
|
83683
82878
|
};
|
|
83684
82879
|
i18n$1.mergeLang({
|
|
83685
|
-
"zh-CN": zhCN$
|
|
83686
|
-
"zh-HK": zhHK$
|
|
83687
|
-
"en-US": enUS$
|
|
83688
|
-
"ja-JP": jaJP$
|
|
82880
|
+
"zh-CN": zhCN$d,
|
|
82881
|
+
"zh-HK": zhHK$d,
|
|
82882
|
+
"en-US": enUS$d,
|
|
82883
|
+
"ja-JP": jaJP$d
|
|
83689
82884
|
});
|
|
83690
82885
|
function isHeadingBlock(block) {
|
|
83691
82886
|
return !!block.getAttribute("data-style-heading");
|
|
@@ -84162,7 +83357,7 @@ ${docStr}
|
|
|
84162
83357
|
}
|
|
84163
83358
|
}
|
|
84164
83359
|
const mentionStyle = "";
|
|
84165
|
-
const zhCN$
|
|
83360
|
+
const zhCN$c = {
|
|
84166
83361
|
mention: {
|
|
84167
83362
|
abstract: "\u6210\u5458",
|
|
84168
83363
|
placeholder: "\u641C\u7D22\u6210\u5458",
|
|
@@ -84170,7 +83365,7 @@ ${docStr}
|
|
|
84170
83365
|
header: "\u63D0\u53CA\u6210\u5458"
|
|
84171
83366
|
}
|
|
84172
83367
|
};
|
|
84173
|
-
const zhHK$
|
|
83368
|
+
const zhHK$c = {
|
|
84174
83369
|
mention: {
|
|
84175
83370
|
abstract: "\u6210\u54E1",
|
|
84176
83371
|
placeholder: "\u641C\u7D22\u6210\u54E1",
|
|
@@ -84178,7 +83373,7 @@ ${docStr}
|
|
|
84178
83373
|
header: "\u63D0\u53CA\u6210\u54E1"
|
|
84179
83374
|
}
|
|
84180
83375
|
};
|
|
84181
|
-
const enUS$
|
|
83376
|
+
const enUS$c = {
|
|
84182
83377
|
mention: {
|
|
84183
83378
|
abstract: "Member",
|
|
84184
83379
|
placeholder: "Please select a member",
|
|
@@ -84186,7 +83381,7 @@ ${docStr}
|
|
|
84186
83381
|
header: "Mention members"
|
|
84187
83382
|
}
|
|
84188
83383
|
};
|
|
84189
|
-
const jaJP$
|
|
83384
|
+
const jaJP$c = {
|
|
84190
83385
|
mention: {
|
|
84191
83386
|
abstract: "\u30E1\u30F3\u30D0\u30FC",
|
|
84192
83387
|
placeholder: "\u30E1\u30F3\u30D0\u30FC\u3092\u691C\u7D22",
|
|
@@ -84195,12 +83390,12 @@ ${docStr}
|
|
|
84195
83390
|
}
|
|
84196
83391
|
};
|
|
84197
83392
|
i18n$1.mergeLang({
|
|
84198
|
-
"zh-CN": zhCN$
|
|
84199
|
-
"zh-HK": zhHK$
|
|
84200
|
-
"en-US": enUS$
|
|
84201
|
-
"ja-JP": jaJP$
|
|
83393
|
+
"zh-CN": zhCN$c,
|
|
83394
|
+
"zh-HK": zhHK$c,
|
|
83395
|
+
"en-US": enUS$c,
|
|
83396
|
+
"ja-JP": jaJP$c
|
|
84202
83397
|
});
|
|
84203
|
-
const zhCN$
|
|
83398
|
+
const zhCN$b = {
|
|
84204
83399
|
templates: {
|
|
84205
83400
|
title: "\u9009\u62E9\u6A21\u677F\uFF0C\u5FEB\u901F\u521B\u5EFA",
|
|
84206
83401
|
create: "\u65B0\u5EFA\u6A21\u677F",
|
|
@@ -84208,7 +83403,7 @@ ${docStr}
|
|
|
84208
83403
|
customizedMark: "\u81EA\u5B9A\u4E49"
|
|
84209
83404
|
}
|
|
84210
83405
|
};
|
|
84211
|
-
const zhHK$
|
|
83406
|
+
const zhHK$b = {
|
|
84212
83407
|
templates: {
|
|
84213
83408
|
title: "\u9078\u64C7\u6A21\u677F\uFF0C\u5FEB\u901F\u5275\u5EFA",
|
|
84214
83409
|
create: "\u65B0\u5EFA\u6A21\u677F",
|
|
@@ -84216,7 +83411,7 @@ ${docStr}
|
|
|
84216
83411
|
customizedMark: "\u81EA\u5B9A\u7FA9"
|
|
84217
83412
|
}
|
|
84218
83413
|
};
|
|
84219
|
-
const enUS$
|
|
83414
|
+
const enUS$b = {
|
|
84220
83415
|
templates: {
|
|
84221
83416
|
title: "Choose a template",
|
|
84222
83417
|
create: "New template",
|
|
@@ -84224,7 +83419,7 @@ ${docStr}
|
|
|
84224
83419
|
customizedMark: "Custom"
|
|
84225
83420
|
}
|
|
84226
83421
|
};
|
|
84227
|
-
const jaJP$
|
|
83422
|
+
const jaJP$b = {
|
|
84228
83423
|
templates: {
|
|
84229
83424
|
title: "\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E",
|
|
84230
83425
|
create: "\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u65B0\u898F\u4F5C\u6210",
|
|
@@ -84233,10 +83428,10 @@ ${docStr}
|
|
|
84233
83428
|
}
|
|
84234
83429
|
};
|
|
84235
83430
|
i18n$1.mergeLang({
|
|
84236
|
-
"zh-CN": zhCN$
|
|
84237
|
-
"zh-HK": zhHK$
|
|
84238
|
-
"en-US": enUS$
|
|
84239
|
-
"ja-JP": jaJP$
|
|
83431
|
+
"zh-CN": zhCN$b,
|
|
83432
|
+
"zh-HK": zhHK$b,
|
|
83433
|
+
"en-US": enUS$b,
|
|
83434
|
+
"ja-JP": jaJP$b
|
|
84240
83435
|
});
|
|
84241
83436
|
const selectTemplates = "";
|
|
84242
83437
|
const CHOOSE_TEMPLATE_IMAGE_SRC = "data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjEyMCIgaGVpZ2h0PSIxMjAiIHZpZXdCb3g9IjAgMCAxMjAgMTIwI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TA5LjU1MiAzNCAxMDkgMzRIMTA3VjMyQzEwNyAzMS40NDc3IDEwNi41NTIgMzEgMTA2IDMxQzEwNS40NDggMzEgMTA1IDMxLjQ0NzcgMTA1IDMyVjM0SDEwM0MxMDIuNDQ4IDM0IDEwMiAzNC40NDc3IDEwMiAzNUMxMDIgMzUuNTUyMyAxMDIuNDQ4IDM2IDEwMyAzNkgxMDVWMzhaIiBmaWxsPSIjQUI5M0RDIi8+Cjwvc3ZnPgo=";
|
|
@@ -84419,7 +83614,7 @@ ${docStr}
|
|
|
84419
83614
|
}
|
|
84420
83615
|
}
|
|
84421
83616
|
const index$3 = "";
|
|
84422
|
-
const zhCN$
|
|
83617
|
+
const zhCN$a = {
|
|
84423
83618
|
callout: {
|
|
84424
83619
|
name: "\u9AD8\u4EAE\u5757",
|
|
84425
83620
|
command: {
|
|
@@ -84433,7 +83628,7 @@ ${docStr}
|
|
|
84433
83628
|
}
|
|
84434
83629
|
}
|
|
84435
83630
|
};
|
|
84436
|
-
const zhHK$
|
|
83631
|
+
const zhHK$a = {
|
|
84437
83632
|
callout: {
|
|
84438
83633
|
name: "\u9AD8\u4EAE\u584A",
|
|
84439
83634
|
command: {
|
|
@@ -84447,7 +83642,7 @@ ${docStr}
|
|
|
84447
83642
|
}
|
|
84448
83643
|
}
|
|
84449
83644
|
};
|
|
84450
|
-
const enUS$
|
|
83645
|
+
const enUS$a = {
|
|
84451
83646
|
callout: {
|
|
84452
83647
|
name: "Callout",
|
|
84453
83648
|
command: {
|
|
@@ -84461,7 +83656,7 @@ ${docStr}
|
|
|
84461
83656
|
}
|
|
84462
83657
|
}
|
|
84463
83658
|
};
|
|
84464
|
-
const jaJP$
|
|
83659
|
+
const jaJP$a = {
|
|
84465
83660
|
callout: {
|
|
84466
83661
|
name: "\u30E1\u30C3\u30BB\u30FC\u30B8\u30DC\u30C3\u30AF\u30B9",
|
|
84467
83662
|
command: {
|
|
@@ -84476,10 +83671,10 @@ ${docStr}
|
|
|
84476
83671
|
}
|
|
84477
83672
|
};
|
|
84478
83673
|
i18n$1.mergeLang({
|
|
84479
|
-
"zh-CN": zhCN$
|
|
84480
|
-
"zh-HK": zhHK$
|
|
84481
|
-
"en-US": enUS$
|
|
84482
|
-
"ja-JP": jaJP$
|
|
83674
|
+
"zh-CN": zhCN$a,
|
|
83675
|
+
"zh-HK": zhHK$a,
|
|
83676
|
+
"en-US": enUS$a,
|
|
83677
|
+
"ja-JP": jaJP$a
|
|
84483
83678
|
});
|
|
84484
83679
|
function isCalloutBlockData(v) {
|
|
84485
83680
|
return v.type === "callout";
|
|
@@ -85937,7 +85132,7 @@ ${docStr}
|
|
|
85937
85132
|
const file2 = new File([buffer], `${genId()}.svg`, {
|
|
85938
85133
|
type: "image/svg+xml"
|
|
85939
85134
|
});
|
|
85940
|
-
const ret = await editor.doc.uploadResource(file2
|
|
85135
|
+
const ret = await editor.doc.uploadResource(file2);
|
|
85941
85136
|
return ret.resourceId;
|
|
85942
85137
|
}
|
|
85943
85138
|
const _MermaidInstance = class extends GraphBase {
|
|
@@ -85996,7 +85191,7 @@ ${docStr}
|
|
|
85996
85191
|
mermaidText: "",
|
|
85997
85192
|
src: ""
|
|
85998
85193
|
}));
|
|
85999
|
-
const zhCN$
|
|
85194
|
+
const zhCN$9 = {
|
|
86000
85195
|
graph: {
|
|
86001
85196
|
empty: "\u8F93\u5165\u4EE3\u7801\u5C55\u793A\u7ED8\u56FE",
|
|
86002
85197
|
readonlyEmpty: "\u6682\u65E0\u7ED8\u56FE",
|
|
@@ -86013,7 +85208,7 @@ ${docStr}
|
|
|
86013
85208
|
}
|
|
86014
85209
|
}
|
|
86015
85210
|
};
|
|
86016
|
-
const zhHK$
|
|
85211
|
+
const zhHK$9 = {
|
|
86017
85212
|
graph: {
|
|
86018
85213
|
empty: "\u8F38\u5165\u4EE3\u78BC\u5C55\u793A\u7E6A\u5716",
|
|
86019
85214
|
readonlyEmpty: "\u66AB\u7121\u7E6A\u5716",
|
|
@@ -86030,7 +85225,7 @@ ${docStr}
|
|
|
86030
85225
|
}
|
|
86031
85226
|
}
|
|
86032
85227
|
};
|
|
86033
|
-
const enUS$
|
|
85228
|
+
const enUS$9 = {
|
|
86034
85229
|
graph: {
|
|
86035
85230
|
empty: "Input code to generate diagram",
|
|
86036
85231
|
readonlyEmpty: "No diagrams.",
|
|
@@ -86047,7 +85242,7 @@ ${docStr}
|
|
|
86047
85242
|
}
|
|
86048
85243
|
}
|
|
86049
85244
|
};
|
|
86050
|
-
const jaJP$
|
|
85245
|
+
const jaJP$9 = {
|
|
86051
85246
|
graph: {
|
|
86052
85247
|
empty: "\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u56F3\u8868\u3092\u8868\u793A\u3057\u307E\u3059\u3002",
|
|
86053
85248
|
readonlyEmpty: "\u30C0\u30A4\u30A2\u30B0\u30E9\u30E0\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
@@ -86065,10 +85260,10 @@ ${docStr}
|
|
|
86065
85260
|
}
|
|
86066
85261
|
};
|
|
86067
85262
|
i18n$1.mergeLang({
|
|
86068
|
-
"zh-CN": zhCN$
|
|
86069
|
-
"zh-HK": zhHK$
|
|
86070
|
-
"en-US": enUS$
|
|
86071
|
-
"ja-JP": jaJP$
|
|
85263
|
+
"zh-CN": zhCN$9,
|
|
85264
|
+
"zh-HK": zhHK$9,
|
|
85265
|
+
"en-US": enUS$9,
|
|
85266
|
+
"ja-JP": jaJP$9
|
|
86072
85267
|
});
|
|
86073
85268
|
function createEmbedContent$5(editor, content, block) {
|
|
86074
85269
|
const mermaid = MermaidInstance.get(editor, block.id);
|
|
@@ -86175,7 +85370,7 @@ ${data2.mermaidText}
|
|
|
86175
85370
|
const file2 = new File([buffer], `${genId()}.svg`, {
|
|
86176
85371
|
type: "image/svg+xml"
|
|
86177
85372
|
});
|
|
86178
|
-
const resource = await editor.doc.uploadResource(file2
|
|
85373
|
+
const resource = await editor.doc.uploadResource(file2);
|
|
86179
85374
|
return resource.resourceId;
|
|
86180
85375
|
}
|
|
86181
85376
|
const _FlowChartInstance = class extends GraphBase {
|
|
@@ -86630,7 +85825,7 @@ ${data2.flowchartText}
|
|
|
86630
85825
|
});
|
|
86631
85826
|
const targetBlock = editor.findBlockById(getBlockId(block));
|
|
86632
85827
|
if (targetBlock) {
|
|
86633
|
-
const res = await editor.doc.uploadResource(file2
|
|
85828
|
+
const res = await editor.doc.uploadResource(file2);
|
|
86634
85829
|
const { resourceId } = res;
|
|
86635
85830
|
const oldData = editor.getBlockData(targetBlock);
|
|
86636
85831
|
const oldEmbedData = oldData.embedData;
|
|
@@ -86682,40 +85877,31 @@ ${data2.flowchartText}
|
|
|
86682
85877
|
const xml = drawIoData.xmlSvg || drawIoData.xml || "";
|
|
86683
85878
|
switch (msg.event) {
|
|
86684
85879
|
case "configure":
|
|
86685
|
-
iframe.contentWindow.postMessage(
|
|
86686
|
-
|
|
86687
|
-
|
|
86688
|
-
|
|
86689
|
-
|
|
86690
|
-
|
|
86691
|
-
}),
|
|
86692
|
-
"*"
|
|
86693
|
-
);
|
|
85880
|
+
iframe.contentWindow.postMessage(JSON.stringify({
|
|
85881
|
+
action: "configure",
|
|
85882
|
+
config: {
|
|
85883
|
+
defaultFonts: ["Humor Sans", "Helvetica", "Times New Roman"]
|
|
85884
|
+
}
|
|
85885
|
+
}), "*");
|
|
86694
85886
|
break;
|
|
86695
85887
|
case "init":
|
|
86696
|
-
iframe.contentWindow.postMessage(
|
|
86697
|
-
|
|
86698
|
-
|
|
86699
|
-
|
|
86700
|
-
|
|
86701
|
-
|
|
86702
|
-
|
|
86703
|
-
}),
|
|
86704
|
-
"*"
|
|
86705
|
-
);
|
|
85888
|
+
iframe.contentWindow.postMessage(JSON.stringify({
|
|
85889
|
+
action: "load",
|
|
85890
|
+
saveAndExit: 1,
|
|
85891
|
+
noSaveBtn: 1,
|
|
85892
|
+
noExitBtn: 0,
|
|
85893
|
+
xml
|
|
85894
|
+
}), "*");
|
|
86706
85895
|
loaded();
|
|
86707
85896
|
loadingHandler.removeLoading();
|
|
86708
85897
|
break;
|
|
86709
85898
|
case "save":
|
|
86710
85899
|
exportFlag = "save";
|
|
86711
|
-
iframe.contentWindow.postMessage(
|
|
86712
|
-
|
|
86713
|
-
|
|
86714
|
-
|
|
86715
|
-
|
|
86716
|
-
}),
|
|
86717
|
-
"*"
|
|
86718
|
-
);
|
|
85900
|
+
iframe.contentWindow.postMessage(JSON.stringify({
|
|
85901
|
+
action: "export",
|
|
85902
|
+
format: "xmlsvg",
|
|
85903
|
+
spin: "Saving graph"
|
|
85904
|
+
}), "*");
|
|
86719
85905
|
break;
|
|
86720
85906
|
case "export":
|
|
86721
85907
|
if (exportFlag !== "auto") {
|
|
@@ -86741,15 +85927,12 @@ ${data2.flowchartText}
|
|
|
86741
85927
|
allowRetry: true,
|
|
86742
85928
|
onOk: () => {
|
|
86743
85929
|
setTimeout(() => {
|
|
86744
|
-
drawioIframeWindow.postMessage(
|
|
86745
|
-
|
|
86746
|
-
|
|
86747
|
-
|
|
86748
|
-
|
|
86749
|
-
|
|
86750
|
-
}),
|
|
86751
|
-
"*"
|
|
86752
|
-
);
|
|
85930
|
+
drawioIframeWindow.postMessage(JSON.stringify({
|
|
85931
|
+
action: "export",
|
|
85932
|
+
format: "xmlsvg",
|
|
85933
|
+
spin: i18n$1.t("drawio.save"),
|
|
85934
|
+
autoSave: exportFlag
|
|
85935
|
+
}), "*");
|
|
86753
85936
|
}, 1e3);
|
|
86754
85937
|
},
|
|
86755
85938
|
onClose: () => {
|
|
@@ -86815,15 +85998,12 @@ ${data2.flowchartText}
|
|
|
86815
85998
|
if (!drawioIframe || !drawioIframe.contentWindow) {
|
|
86816
85999
|
return;
|
|
86817
86000
|
}
|
|
86818
|
-
drawioIframe.contentWindow.postMessage(
|
|
86819
|
-
|
|
86820
|
-
|
|
86821
|
-
|
|
86822
|
-
|
|
86823
|
-
|
|
86824
|
-
}),
|
|
86825
|
-
"*"
|
|
86826
|
-
);
|
|
86001
|
+
drawioIframe.contentWindow.postMessage(JSON.stringify({
|
|
86002
|
+
action: "export",
|
|
86003
|
+
format: "xmlsvg",
|
|
86004
|
+
spin: "Saving graph",
|
|
86005
|
+
autoSave: true
|
|
86006
|
+
}), "*");
|
|
86827
86007
|
}, SAVE_DELAY_TIME);
|
|
86828
86008
|
};
|
|
86829
86009
|
const exit = () => {
|
|
@@ -86963,12 +86143,10 @@ ${data2.flowchartText}
|
|
|
86963
86143
|
}
|
|
86964
86144
|
function updateGraphByXml(mxFile, embed, editor) {
|
|
86965
86145
|
assert(logger$i, editor, "parameter missing");
|
|
86966
|
-
initDrawIo(editor).then(
|
|
86967
|
-
() =>
|
|
86968
|
-
|
|
86969
|
-
|
|
86970
|
-
})
|
|
86971
|
-
).then(() => {
|
|
86146
|
+
initDrawIo(editor).then(() => loopCheckResourceWasLoaded({
|
|
86147
|
+
checker: () => !!(window.mxUtils && window.mxGraph && window.mxCodec),
|
|
86148
|
+
maxRetryTime: 5e3
|
|
86149
|
+
})).then(() => {
|
|
86972
86150
|
const { mxUtils, mxGraph: MxGraph, mxCodec: MxCodec, Graph } = window;
|
|
86973
86151
|
assert(logger$i, mxUtils, "External resource loading exception: mxUtils");
|
|
86974
86152
|
assert(logger$i, MxGraph, "External resource loading exception: MxGraph");
|
|
@@ -86988,10 +86166,7 @@ ${data2.flowchartText}
|
|
|
86988
86166
|
const raw = atob(diagramBase64);
|
|
86989
86167
|
const pako = window.pako;
|
|
86990
86168
|
assert(logger$i, pako, "External resource loading exception: pako");
|
|
86991
|
-
const encodedXml = pako.inflateRaw(
|
|
86992
|
-
Uint8Array.from(raw, (c) => c.charCodeAt(0)),
|
|
86993
|
-
{ to: "string" }
|
|
86994
|
-
);
|
|
86169
|
+
const encodedXml = pako.inflateRaw(Uint8Array.from(raw, (c) => c.charCodeAt(0)), { to: "string" });
|
|
86995
86170
|
const xml = decodeURIComponent(encodedXml);
|
|
86996
86171
|
xmlDoc = mxUtils.parseXml(xml);
|
|
86997
86172
|
} else {
|
|
@@ -87061,7 +86236,7 @@ ${data2.flowchartText}
|
|
|
87061
86236
|
});
|
|
87062
86237
|
return { ...properties, abstract: i18n$1.t("drawio.abstract") };
|
|
87063
86238
|
}
|
|
87064
|
-
const enUS$
|
|
86239
|
+
const enUS$8 = {
|
|
87065
86240
|
drawio: {
|
|
87066
86241
|
title: "Flowchart/UML",
|
|
87067
86242
|
empty: "Empty graph",
|
|
@@ -87079,7 +86254,7 @@ ${data2.flowchartText}
|
|
|
87079
86254
|
}
|
|
87080
86255
|
}
|
|
87081
86256
|
};
|
|
87082
|
-
const zhCN$
|
|
86257
|
+
const zhCN$8 = {
|
|
87083
86258
|
drawio: {
|
|
87084
86259
|
title: "\u6D41\u7A0B\u56FE/UML",
|
|
87085
86260
|
empty: "\u7A7A\u56FE\u8868",
|
|
@@ -87097,7 +86272,7 @@ ${data2.flowchartText}
|
|
|
87097
86272
|
}
|
|
87098
86273
|
}
|
|
87099
86274
|
};
|
|
87100
|
-
const zhHK$
|
|
86275
|
+
const zhHK$8 = {
|
|
87101
86276
|
drawio: {
|
|
87102
86277
|
title: "\u6D41\u7A0B\u5716/UML",
|
|
87103
86278
|
empty: "\u7A7A\u5716\u8868",
|
|
@@ -87115,7 +86290,7 @@ ${data2.flowchartText}
|
|
|
87115
86290
|
}
|
|
87116
86291
|
}
|
|
87117
86292
|
};
|
|
87118
|
-
const jaJP$
|
|
86293
|
+
const jaJP$8 = {
|
|
87119
86294
|
drawio: {
|
|
87120
86295
|
title: "\u30D5\u30ED\u30FC\u30C1\u30E3\u30FC\u30C8/UML",
|
|
87121
86296
|
empty: "\u30B0\u30E9\u30D5\u30C7\u30FC\u30BF\u306A\u3057",
|
|
@@ -87134,10 +86309,10 @@ ${data2.flowchartText}
|
|
|
87134
86309
|
}
|
|
87135
86310
|
};
|
|
87136
86311
|
const langs = {
|
|
87137
|
-
"en-US": enUS$
|
|
87138
|
-
"zh-CN": zhCN$
|
|
87139
|
-
"zh-HK": zhHK$
|
|
87140
|
-
"ja-JP": jaJP$
|
|
86312
|
+
"en-US": enUS$8,
|
|
86313
|
+
"zh-CN": zhCN$8,
|
|
86314
|
+
"zh-HK": zhHK$8,
|
|
86315
|
+
"ja-JP": jaJP$8
|
|
87141
86316
|
};
|
|
87142
86317
|
i18n$1.mergeLang(langs);
|
|
87143
86318
|
const logger$h = getLogger("embed-block-drawio");
|
|
@@ -87325,7 +86500,7 @@ ${data2.flowchartText}
|
|
|
87325
86500
|
if (!plantumlImgFile) {
|
|
87326
86501
|
return await Promise.resolve(url);
|
|
87327
86502
|
}
|
|
87328
|
-
const uploadResourceResult = await editor.doc.uploadResource(plantumlImgFile
|
|
86503
|
+
const uploadResourceResult = await editor.doc.uploadResource(plantumlImgFile);
|
|
87329
86504
|
return uploadResourceResult.resourceId;
|
|
87330
86505
|
} catch (error2) {
|
|
87331
86506
|
return Promise.resolve(url);
|
|
@@ -88204,7 +87379,7 @@ ${data2.plantumlText}
|
|
|
88204
87379
|
this.editor.removeListener("selectionChanged", this.handleSelectionChanged);
|
|
88205
87380
|
}
|
|
88206
87381
|
}
|
|
88207
|
-
const zhCN$
|
|
87382
|
+
const zhCN$7 = {
|
|
88208
87383
|
mobile: {
|
|
88209
87384
|
insert: "\u63D2\u5165",
|
|
88210
87385
|
commands: {
|
|
@@ -88212,7 +87387,7 @@ ${data2.plantumlText}
|
|
|
88212
87387
|
}
|
|
88213
87388
|
}
|
|
88214
87389
|
};
|
|
88215
|
-
const zhHK$
|
|
87390
|
+
const zhHK$7 = {
|
|
88216
87391
|
mobile: {
|
|
88217
87392
|
insert: "\u63D2\u5165",
|
|
88218
87393
|
commands: {
|
|
@@ -88220,7 +87395,7 @@ ${data2.plantumlText}
|
|
|
88220
87395
|
}
|
|
88221
87396
|
}
|
|
88222
87397
|
};
|
|
88223
|
-
const enUS$
|
|
87398
|
+
const enUS$7 = {
|
|
88224
87399
|
mobile: {
|
|
88225
87400
|
insert: "Insert",
|
|
88226
87401
|
commands: {
|
|
@@ -88228,7 +87403,7 @@ ${data2.plantumlText}
|
|
|
88228
87403
|
}
|
|
88229
87404
|
}
|
|
88230
87405
|
};
|
|
88231
|
-
const jaJP$
|
|
87406
|
+
const jaJP$7 = {
|
|
88232
87407
|
mobile: {
|
|
88233
87408
|
insert: "\u633F\u5165",
|
|
88234
87409
|
commands: {
|
|
@@ -88237,10 +87412,10 @@ ${data2.plantumlText}
|
|
|
88237
87412
|
}
|
|
88238
87413
|
};
|
|
88239
87414
|
i18n$1.mergeLang({
|
|
88240
|
-
"zh-CN": zhCN$
|
|
88241
|
-
"zh-HK": zhHK$
|
|
88242
|
-
"en-US": enUS$
|
|
88243
|
-
"ja-JP": jaJP$
|
|
87415
|
+
"zh-CN": zhCN$7,
|
|
87416
|
+
"zh-HK": zhHK$7,
|
|
87417
|
+
"en-US": enUS$7,
|
|
87418
|
+
"ja-JP": jaJP$7
|
|
88244
87419
|
});
|
|
88245
87420
|
const mobileHelperStyles = "";
|
|
88246
87421
|
const LONG_PRESS_DELAY = 800;
|
|
@@ -88360,7 +87535,7 @@ ${data2.plantumlText}
|
|
|
88360
87535
|
);
|
|
88361
87536
|
return contents;
|
|
88362
87537
|
}
|
|
88363
|
-
const zhCN$
|
|
87538
|
+
const zhCN$6 = {
|
|
88364
87539
|
layout: {
|
|
88365
87540
|
title: "\u5206\u680F",
|
|
88366
87541
|
columnDrag: "\u957F\u6309\u62D6\u62FD\n\u70B9\u51FB\u53EF\u64CD\u4F5C\u5220\u9664",
|
|
@@ -88369,7 +87544,7 @@ ${data2.plantumlText}
|
|
|
88369
87544
|
currentCols: "{currentColumns} \u680F"
|
|
88370
87545
|
}
|
|
88371
87546
|
};
|
|
88372
|
-
const zhHK$
|
|
87547
|
+
const zhHK$6 = {
|
|
88373
87548
|
layout: {
|
|
88374
87549
|
title: "\u5206\u6B04",
|
|
88375
87550
|
columnDrag: "\u9577\u6309\u62D6\u62FD\n\u9EDE\u64CA\u53EF\u64CD\u4F5C\u522A\u9664",
|
|
@@ -88378,7 +87553,7 @@ ${data2.plantumlText}
|
|
|
88378
87553
|
currentCols: "{currentColumns} \u6B04"
|
|
88379
87554
|
}
|
|
88380
87555
|
};
|
|
88381
|
-
const enUS$
|
|
87556
|
+
const enUS$6 = {
|
|
88382
87557
|
layout: {
|
|
88383
87558
|
title: "Column",
|
|
88384
87559
|
columnDrag: "Click and hold the column to drag it.\nClick to delete it.",
|
|
@@ -88387,7 +87562,7 @@ ${data2.plantumlText}
|
|
|
88387
87562
|
currentCols: "{currentColumns} columns"
|
|
88388
87563
|
}
|
|
88389
87564
|
};
|
|
88390
|
-
const jaJP$
|
|
87565
|
+
const jaJP$6 = {
|
|
88391
87566
|
layout: {
|
|
88392
87567
|
title: "\u6BB5\u7D44\u307F",
|
|
88393
87568
|
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",
|
|
@@ -88397,10 +87572,10 @@ ${data2.plantumlText}
|
|
|
88397
87572
|
}
|
|
88398
87573
|
};
|
|
88399
87574
|
i18n$1.mergeLang({
|
|
88400
|
-
"zh-CN": zhCN$
|
|
88401
|
-
"zh-HK": zhHK$
|
|
88402
|
-
"en-US": enUS$
|
|
88403
|
-
"ja-JP": jaJP$
|
|
87575
|
+
"zh-CN": zhCN$6,
|
|
87576
|
+
"zh-HK": zhHK$6,
|
|
87577
|
+
"en-US": enUS$6,
|
|
87578
|
+
"ja-JP": jaJP$6
|
|
88404
87579
|
});
|
|
88405
87580
|
const layoutStyles = "";
|
|
88406
87581
|
const LAYOUT_NAME = "LayoutBlock";
|
|
@@ -90468,7 +89643,7 @@ ${data2.plantumlText}
|
|
|
90468
89643
|
handleUpdateBlock,
|
|
90469
89644
|
convertTo: convertTo$1
|
|
90470
89645
|
};
|
|
90471
|
-
const zhCN$
|
|
89646
|
+
const zhCN$5 = {
|
|
90472
89647
|
webpage: {
|
|
90473
89648
|
title: "\u7F51\u9875",
|
|
90474
89649
|
youku: "\u4F18\u9177\u89C6\u9891",
|
|
@@ -90494,7 +89669,7 @@ ${data2.plantumlText}
|
|
|
90494
89669
|
}
|
|
90495
89670
|
}
|
|
90496
89671
|
};
|
|
90497
|
-
const zhHK$
|
|
89672
|
+
const zhHK$5 = {
|
|
90498
89673
|
webpage: {
|
|
90499
89674
|
title: "\u7DB2\u9801",
|
|
90500
89675
|
youku: "\u512A\u9177\u8996\u983B",
|
|
@@ -90520,7 +89695,7 @@ ${data2.plantumlText}
|
|
|
90520
89695
|
}
|
|
90521
89696
|
}
|
|
90522
89697
|
};
|
|
90523
|
-
const enUS$
|
|
89698
|
+
const enUS$5 = {
|
|
90524
89699
|
webpage: {
|
|
90525
89700
|
title: "Webpage",
|
|
90526
89701
|
youku: "Youku",
|
|
@@ -90546,7 +89721,7 @@ ${data2.plantumlText}
|
|
|
90546
89721
|
}
|
|
90547
89722
|
}
|
|
90548
89723
|
};
|
|
90549
|
-
const jaJP$
|
|
89724
|
+
const jaJP$5 = {
|
|
90550
89725
|
webpage: {
|
|
90551
89726
|
title: "Web \u30DA\u30FC\u30B8",
|
|
90552
89727
|
youku: "Youku \u52D5\u753B",
|
|
@@ -90573,42 +89748,42 @@ ${data2.plantumlText}
|
|
|
90573
89748
|
}
|
|
90574
89749
|
};
|
|
90575
89750
|
i18n$1.mergeLang({
|
|
90576
|
-
"zh-CN": zhCN$
|
|
90577
|
-
"zh-HK": zhHK$
|
|
90578
|
-
"en-US": enUS$
|
|
90579
|
-
"ja-JP": jaJP$
|
|
89751
|
+
"zh-CN": zhCN$5,
|
|
89752
|
+
"zh-HK": zhHK$5,
|
|
89753
|
+
"en-US": enUS$5,
|
|
89754
|
+
"ja-JP": jaJP$5
|
|
90580
89755
|
});
|
|
90581
89756
|
const webpageStyle = "";
|
|
90582
89757
|
const DIVIDING_LINE_EMBED = "hr";
|
|
90583
|
-
const zhCN$
|
|
89758
|
+
const zhCN$4 = {
|
|
90584
89759
|
dividingLine: {
|
|
90585
89760
|
type: "\u5206\u5272\u7EBF",
|
|
90586
89761
|
abstract: "\u5206\u5272\u7EBF"
|
|
90587
89762
|
}
|
|
90588
89763
|
};
|
|
90589
|
-
const zhHK$
|
|
89764
|
+
const zhHK$4 = {
|
|
90590
89765
|
dividingLine: {
|
|
90591
89766
|
type: "\u5206\u5272\u7DDA",
|
|
90592
89767
|
abstract: "\u5206\u5272\u7DDA"
|
|
90593
89768
|
}
|
|
90594
89769
|
};
|
|
90595
|
-
const enUS$
|
|
89770
|
+
const enUS$4 = {
|
|
90596
89771
|
dividingLine: {
|
|
90597
89772
|
type: "Dividing-Line",
|
|
90598
89773
|
abstract: "Dividing-Line"
|
|
90599
89774
|
}
|
|
90600
89775
|
};
|
|
90601
|
-
const jaJP$
|
|
89776
|
+
const jaJP$4 = {
|
|
90602
89777
|
dividingLine: {
|
|
90603
89778
|
type: "\u533A\u5207\u308A\u7DDA",
|
|
90604
89779
|
abstract: "\u533A\u5207\u308A\u7DDA"
|
|
90605
89780
|
}
|
|
90606
89781
|
};
|
|
90607
89782
|
i18n$1.mergeLang({
|
|
90608
|
-
"zh-CN": zhCN$
|
|
90609
|
-
"zh-HK": zhHK$
|
|
90610
|
-
"en-US": enUS$
|
|
90611
|
-
"ja-JP": jaJP$
|
|
89783
|
+
"zh-CN": zhCN$4,
|
|
89784
|
+
"zh-HK": zhHK$4,
|
|
89785
|
+
"en-US": enUS$4,
|
|
89786
|
+
"ja-JP": jaJP$4
|
|
90612
89787
|
});
|
|
90613
89788
|
function createEmbedContent(_editor, content) {
|
|
90614
89789
|
const hrElementContainer = createElement("div", ["editor-embed-container"], content);
|
|
@@ -90667,7 +89842,7 @@ ${data2.plantumlText}
|
|
|
90667
89842
|
};
|
|
90668
89843
|
const index$1 = "";
|
|
90669
89844
|
const index = "";
|
|
90670
|
-
const zhCN$
|
|
89845
|
+
const zhCN$3 = {
|
|
90671
89846
|
media: {
|
|
90672
89847
|
upload: {
|
|
90673
89848
|
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>',
|
|
@@ -90686,7 +89861,7 @@ ${data2.plantumlText}
|
|
|
90686
89861
|
}
|
|
90687
89862
|
}
|
|
90688
89863
|
};
|
|
90689
|
-
const zhHK$
|
|
89864
|
+
const zhHK$3 = {
|
|
90690
89865
|
media: {
|
|
90691
89866
|
upload: {
|
|
90692
89867
|
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>',
|
|
@@ -90705,7 +89880,7 @@ ${data2.plantumlText}
|
|
|
90705
89880
|
}
|
|
90706
89881
|
}
|
|
90707
89882
|
};
|
|
90708
|
-
const enUS$
|
|
89883
|
+
const enUS$3 = {
|
|
90709
89884
|
media: {
|
|
90710
89885
|
upload: {
|
|
90711
89886
|
failed: '<div class="line-1">{name} upload failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>',
|
|
@@ -90724,7 +89899,7 @@ ${data2.plantumlText}
|
|
|
90724
89899
|
}
|
|
90725
89900
|
}
|
|
90726
89901
|
};
|
|
90727
|
-
const jaJP$
|
|
89902
|
+
const jaJP$3 = {
|
|
90728
89903
|
media: {
|
|
90729
89904
|
upload: {
|
|
90730
89905
|
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>',
|
|
@@ -90744,10 +89919,10 @@ ${data2.plantumlText}
|
|
|
90744
89919
|
}
|
|
90745
89920
|
};
|
|
90746
89921
|
i18n$1.mergeLang({
|
|
90747
|
-
"zh-CN": zhCN$
|
|
90748
|
-
"zh-HK": zhHK$
|
|
90749
|
-
"en-US": enUS$
|
|
90750
|
-
"ja-JP": jaJP$
|
|
89922
|
+
"zh-CN": zhCN$3,
|
|
89923
|
+
"zh-HK": zhHK$3,
|
|
89924
|
+
"en-US": enUS$3,
|
|
89925
|
+
"ja-JP": jaJP$3
|
|
90751
89926
|
});
|
|
90752
89927
|
var MediaType = /* @__PURE__ */ ((MediaType2) => {
|
|
90753
89928
|
MediaType2["AUDIO"] = "audio";
|
|
@@ -90860,8 +90035,7 @@ ${data2.plantumlText}
|
|
|
90860
90035
|
const { resourceId } = await editor.doc.uploadResource(file2, {
|
|
90861
90036
|
onProgress: (progress) => {
|
|
90862
90037
|
this.renderProgress(progress, file2);
|
|
90863
|
-
}
|
|
90864
|
-
resourceType: "media"
|
|
90038
|
+
}
|
|
90865
90039
|
});
|
|
90866
90040
|
const { name, type, size } = file2;
|
|
90867
90041
|
const newBlockData = {
|
|
@@ -90999,11 +90173,7 @@ ${data2.plantumlText}
|
|
|
90999
90173
|
renderEmpty(blockData) {
|
|
91000
90174
|
assert(logger$9, this.abstract, "no abstract");
|
|
91001
90175
|
assert(logger$9, this.mediaContainer, "The media element not exist");
|
|
91002
|
-
const empty = createElement(
|
|
91003
|
-
"div",
|
|
91004
|
-
["media-empty", "embed-selected-content", "embed-hover-content"],
|
|
91005
|
-
this.mediaContainer
|
|
91006
|
-
);
|
|
90176
|
+
const empty = createElement("div", ["media-empty", "embed-selected-content", "embed-hover-content"], this.mediaContainer);
|
|
91007
90177
|
empty.innerHTML = this.abstract.mediaIcon;
|
|
91008
90178
|
this.updateMediaContent(empty);
|
|
91009
90179
|
const { editor } = this.options;
|
|
@@ -91024,7 +90194,7 @@ ${data2.plantumlText}
|
|
|
91024
90194
|
}
|
|
91025
90195
|
await editor.doc.addResources([resourceId]);
|
|
91026
90196
|
const serviceAppId = (_b = (_a = editor.doc).getServerMeta) == null ? void 0 : _b.call(_a).appId;
|
|
91027
|
-
if (resourceUrl !== blockData.embedData.src && serviceAppId && blockData.embedData.src.includes(serviceAppId)) {
|
|
90197
|
+
if (resourceUrl !== blockData.embedData.src && (serviceAppId && blockData.embedData.src.includes(serviceAppId))) {
|
|
91028
90198
|
const block = getParentBlock(content);
|
|
91029
90199
|
if (block && !editor.readonly && editor.isBlockWritable(block)) {
|
|
91030
90200
|
const newBlockData = cloneDeep__default.default(blockData);
|
|
@@ -91752,9 +90922,6 @@ ${data2.plantumlText}
|
|
|
91752
90922
|
localUpdateComment(comment, doc2) {
|
|
91753
90923
|
this.doc.localUpdateComment(comment, doc2);
|
|
91754
90924
|
}
|
|
91755
|
-
localUpdateCommentResolver(commentId, resolver) {
|
|
91756
|
-
this.doc.localUpdateCommentResolver(commentId, resolver);
|
|
91757
|
-
}
|
|
91758
90925
|
onCreateComment(commentId, local) {
|
|
91759
90926
|
Array.from(this.listeners.values()).forEach((listener) => listener.onCreateComment(commentId, local));
|
|
91760
90927
|
}
|
|
@@ -91764,9 +90931,6 @@ ${data2.plantumlText}
|
|
|
91764
90931
|
onUpdateComment(commentId, local) {
|
|
91765
90932
|
Array.from(this.listeners.values()).forEach((listener) => listener.onUpdateComment(commentId, local));
|
|
91766
90933
|
}
|
|
91767
|
-
onUpdateCommentResolver(commentId, local) {
|
|
91768
|
-
Array.from(this.listeners.values()).forEach((listener) => listener.onUpdateCommentResolver(commentId, local));
|
|
91769
|
-
}
|
|
91770
90934
|
addListener(callback) {
|
|
91771
90935
|
this.listeners.add(callback);
|
|
91772
90936
|
}
|
|
@@ -91792,10 +90956,9 @@ ${data2.plantumlText}
|
|
|
91792
90956
|
constructor(editor, localDoc) {
|
|
91793
90957
|
__publicField(this, "_listeners", /* @__PURE__ */ new Set());
|
|
91794
90958
|
__publicField(this, "_doc");
|
|
91795
|
-
var _a, _b;
|
|
91796
90959
|
this.editor = editor;
|
|
91797
90960
|
this.localDoc = localDoc;
|
|
91798
|
-
this._doc =
|
|
90961
|
+
this._doc = this.localDoc.toJSON();
|
|
91799
90962
|
}
|
|
91800
90963
|
get doc() {
|
|
91801
90964
|
return this._doc;
|
|
@@ -91850,17 +91013,6 @@ ${data2.plantumlText}
|
|
|
91850
91013
|
this._doc.comments[id] = shareDBComment;
|
|
91851
91014
|
Array.from(this._listeners.values()).forEach((listener) => listener.onUpdateComment(id, true));
|
|
91852
91015
|
}
|
|
91853
|
-
localUpdateCommentResolver(commentId, resolver) {
|
|
91854
|
-
const comment = this.getComment(commentId);
|
|
91855
|
-
if (comment) {
|
|
91856
|
-
if (resolver) {
|
|
91857
|
-
comment.resolver = resolver;
|
|
91858
|
-
} else {
|
|
91859
|
-
delete comment.resolver;
|
|
91860
|
-
}
|
|
91861
|
-
Array.from(this._listeners.values()).forEach((listener) => listener.onUpdateCommentResolver(commentId, true));
|
|
91862
|
-
}
|
|
91863
|
-
}
|
|
91864
91016
|
createCommentEditor(parent, childDoc) {
|
|
91865
91017
|
const commentEditor = createCommentEditor(this.editor, {
|
|
91866
91018
|
root: parent,
|
|
@@ -91876,7 +91028,7 @@ ${data2.plantumlText}
|
|
|
91876
91028
|
return false;
|
|
91877
91029
|
}
|
|
91878
91030
|
}
|
|
91879
|
-
const zhCN$
|
|
91031
|
+
const zhCN$2 = {
|
|
91880
91032
|
placeholder: {
|
|
91881
91033
|
common: {
|
|
91882
91034
|
title: "\u8BF7\u8F93\u5165\u6807\u9898",
|
|
@@ -91906,7 +91058,7 @@ ${data2.plantumlText}
|
|
|
91906
91058
|
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"
|
|
91907
91059
|
}
|
|
91908
91060
|
};
|
|
91909
|
-
const zhHK$
|
|
91061
|
+
const zhHK$2 = {
|
|
91910
91062
|
placeholder: {
|
|
91911
91063
|
common: {
|
|
91912
91064
|
title: "\u8ACB\u8F38\u5165\u6A19\u984C",
|
|
@@ -91936,7 +91088,7 @@ ${data2.plantumlText}
|
|
|
91936
91088
|
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"
|
|
91937
91089
|
}
|
|
91938
91090
|
};
|
|
91939
|
-
const enUS$
|
|
91091
|
+
const enUS$2 = {
|
|
91940
91092
|
placeholder: {
|
|
91941
91093
|
common: {
|
|
91942
91094
|
title: "Enter a title",
|
|
@@ -91966,7 +91118,7 @@ ${data2.plantumlText}
|
|
|
91966
91118
|
uploadResourceNoPopup: "Resource upload error. Editing is temporarily disabled to prevent data loss. Please copy any unsaved changes and refresh the page to try again."
|
|
91967
91119
|
}
|
|
91968
91120
|
};
|
|
91969
|
-
const jaJP$
|
|
91121
|
+
const jaJP$2 = {
|
|
91970
91122
|
placeholder: {
|
|
91971
91123
|
common: {
|
|
91972
91124
|
title: "\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
@@ -91997,10 +91149,10 @@ ${data2.plantumlText}
|
|
|
91997
91149
|
}
|
|
91998
91150
|
};
|
|
91999
91151
|
i18n$1.mergeLang({
|
|
92000
|
-
"zh-CN": zhCN$
|
|
92001
|
-
"zh-HK": zhHK$
|
|
92002
|
-
"en-US": enUS$
|
|
92003
|
-
"ja-JP": jaJP$
|
|
91152
|
+
"zh-CN": zhCN$2,
|
|
91153
|
+
"zh-HK": zhHK$2,
|
|
91154
|
+
"en-US": enUS$2,
|
|
91155
|
+
"ja-JP": jaJP$2
|
|
92004
91156
|
});
|
|
92005
91157
|
const style$1 = "";
|
|
92006
91158
|
class AutoNewLine {
|
|
@@ -92279,6 +91431,36 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
92279
91431
|
return !!document.querySelector(".editor-popup-info-container");
|
|
92280
91432
|
}
|
|
92281
91433
|
}
|
|
91434
|
+
const zhCN$1 = {
|
|
91435
|
+
toDocx: {
|
|
91436
|
+
videoUnsupportedExport: "[\u89C6\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",
|
|
91437
|
+
audioUnsupportedExport: "[\u97F3\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]"
|
|
91438
|
+
}
|
|
91439
|
+
};
|
|
91440
|
+
const zhHK$1 = {
|
|
91441
|
+
toDocx: {
|
|
91442
|
+
videoUnsupportedExport: "[\u8996\u983B\u66AB\u4E0D\u652F\u6301\u5C0E\u51FA]",
|
|
91443
|
+
audioUnsupportedExport: "[\u97F3\u983B\u66AB\u4E0D\u652F\u6301\u5C0E\u51FA]"
|
|
91444
|
+
}
|
|
91445
|
+
};
|
|
91446
|
+
const enUS$1 = {
|
|
91447
|
+
toDocx: {
|
|
91448
|
+
videoUnsupportedExport: "[Export unavailable for video content]",
|
|
91449
|
+
audioUnsupportedExport: "[Export unavailable for audio content]"
|
|
91450
|
+
}
|
|
91451
|
+
};
|
|
91452
|
+
const jaJP$1 = {
|
|
91453
|
+
toDocx: {
|
|
91454
|
+
videoUnsupportedExport: "[\u52D5\u753B\u306E\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u306B\u306F\u5BFE\u5FDC\u3057\u3066\u304A\u308A\u307E\u305B\u3093]",
|
|
91455
|
+
audioUnsupportedExport: "[\u97F3\u58F0\u306E\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u306B\u306F\u5BFE\u5FDC\u3057\u3066\u304A\u308A\u307E\u305B\u3093]"
|
|
91456
|
+
}
|
|
91457
|
+
};
|
|
91458
|
+
i18n$1.mergeLang({
|
|
91459
|
+
"zh-CN": zhCN$1,
|
|
91460
|
+
"zh-HK": zhHK$1,
|
|
91461
|
+
"en-US": enUS$1,
|
|
91462
|
+
"ja-JP": jaJP$1
|
|
91463
|
+
});
|
|
92282
91464
|
const templateBase64 = "UEsDBBQABgAIAAAAIQBk9WPugQEAACkGAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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I7/wOAADzmQAADwAAAAAAAAAAAAAAAAAfIgAAd29yZC9zdHlsZXMueG1sUEsBAi0AFAAGAAgAAAAhAMySUFR9AQAA8QIAABEAAAAAAAAAAAAAAAAASDEAAGRvY1Byb3BzL2NvcmUueG1sUEsBAi0AFAAGAAgAAAAhACJREfHVAQAA3gMAABAAAAAAAAAAAAAAAAAA/DMAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAiD+lv+EAAABVAQAAGAAAAAAAAAAAAAAAAAAHNwAAY3VzdG9tWG1sL2l0ZW1Qcm9wczEueG1sUEsBAi0AFAAGAAgAAAAhAMEnywi2AAAAIQEAABMAAAAAAAAAAAAAAAAARjgAAGN1c3RvbVhtbC9pdGVtMS54bWxQSwECLQAUAAYACAAAACEAdD85esIAAAAoAQAAHgAAAAAAAAAAAAAAAABVOQAAY3VzdG9tWG1sL19yZWxzL2l0ZW0xLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAOuAYExTAwAAjw4AABIAAAAAAAAAAAAAAAAAWzsAAHdvcmQvZm9udFRhYmxlLnhtbFBLBQYAAAAADwAPANQDAADePgAAAAA=";
|
|
92283
91465
|
const getDefaultDocXTemplate = () => {
|
|
92284
91466
|
const blob = fromBase64ToBlob(templateBase64);
|
|
@@ -92631,8 +91813,8 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
92631
91813
|
const inlineStyles = attributesOfText(text2, "inlineStyle");
|
|
92632
91814
|
if (inlineStyles == null)
|
|
92633
91815
|
return;
|
|
92634
|
-
const
|
|
92635
|
-
for (const style2 of
|
|
91816
|
+
const styles = inlineStyles.split(";");
|
|
91817
|
+
for (const style2 of styles) {
|
|
92636
91818
|
const pair = style2.split(":");
|
|
92637
91819
|
if (pair.length !== 2)
|
|
92638
91820
|
continue;
|
|
@@ -92746,7 +91928,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
92746
91928
|
return new docx.Paragraph({
|
|
92747
91929
|
children: [
|
|
92748
91930
|
new docx.TextRun({
|
|
92749
|
-
text: "
|
|
91931
|
+
text: i18n$1.t("toDocx.videoUnsupportedExport"),
|
|
92750
91932
|
shading: {
|
|
92751
91933
|
type: docx.ShadingType.CLEAR,
|
|
92752
91934
|
color: "FFFFFF",
|
|
@@ -92760,7 +91942,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
92760
91942
|
return new docx.Paragraph({
|
|
92761
91943
|
children: [
|
|
92762
91944
|
new docx.TextRun({
|
|
92763
|
-
text: "
|
|
91945
|
+
text: i18n$1.t("toDocx.audioUnsupportedExport"),
|
|
92764
91946
|
shading: {
|
|
92765
91947
|
type: docx.ShadingType.CLEAR,
|
|
92766
91948
|
color: "FFFFFF",
|
|
@@ -94161,11 +93343,11 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94161
93343
|
this.fixedToolbar = (_a = editor.findCustom("main-toolbar-fixed-toolbar")) == null ? void 0 : _a.toolbar;
|
|
94162
93344
|
if (this.fixedToolbar) {
|
|
94163
93345
|
const content = this.fixedToolbar.content;
|
|
94164
|
-
const
|
|
93346
|
+
const toolbar2 = content.closest(".editor-command-bar-root");
|
|
94165
93347
|
this.observer = new ResizeObserver(() => {
|
|
94166
93348
|
this.updateItems();
|
|
94167
93349
|
});
|
|
94168
|
-
this.observer.observe(
|
|
93350
|
+
this.observer.observe(toolbar2);
|
|
94169
93351
|
editor.addCustom("main-toolbar-more-item", () => this);
|
|
94170
93352
|
}
|
|
94171
93353
|
});
|
|
@@ -94192,7 +93374,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94192
93374
|
return;
|
|
94193
93375
|
}
|
|
94194
93376
|
const content = toolbar2.content;
|
|
94195
|
-
const toolbarRoot = content.closest(".editor-
|
|
93377
|
+
const toolbarRoot = content.closest(".editor-command-bar-root");
|
|
94196
93378
|
const toolbarRect = toolbarRoot.getBoundingClientRect();
|
|
94197
93379
|
const toolbarRight = toolbarRect.right;
|
|
94198
93380
|
items.forEach((item) => {
|
|
@@ -94257,39 +93439,8 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94257
93439
|
toolbar2.updateItems(items);
|
|
94258
93440
|
}
|
|
94259
93441
|
}
|
|
94260
|
-
class InsertFileItem {
|
|
94261
|
-
constructor() {
|
|
94262
|
-
__publicField(this, "id", "insert-file");
|
|
94263
|
-
__publicField(this, "name", i18n$1.t("toolbar.file"));
|
|
94264
|
-
__publicField(this, "icon", AttachmentIcon);
|
|
94265
|
-
}
|
|
94266
|
-
async onClick(editor, item) {
|
|
94267
|
-
const block = editor.getBlockById(editor.selection.range.start.blockId);
|
|
94268
|
-
const container = editor.getParentContainer(block);
|
|
94269
|
-
const index2 = editor.getBlockIndex(block);
|
|
94270
|
-
const file2 = await selectFile("*");
|
|
94271
|
-
if (!file2) {
|
|
94272
|
-
return;
|
|
94273
|
-
}
|
|
94274
|
-
const res = await editor.doc.uploadResource(file2);
|
|
94275
|
-
if (!res.resourceId) {
|
|
94276
|
-
return;
|
|
94277
|
-
}
|
|
94278
|
-
const data2 = {
|
|
94279
|
-
src: res.resourceId,
|
|
94280
|
-
fileName: file2.name,
|
|
94281
|
-
fileSize: file2.size,
|
|
94282
|
-
fileType: file2.type,
|
|
94283
|
-
created: Date.now(),
|
|
94284
|
-
creator: editor.doc.getUser().displayName,
|
|
94285
|
-
previewType: FilePreviewType.Card
|
|
94286
|
-
};
|
|
94287
|
-
editor.insertEmbed(getContainerId(container), index2 + 1, "office", data2);
|
|
94288
|
-
}
|
|
94289
|
-
}
|
|
94290
93442
|
function getToolbarDefaultItems(editor) {
|
|
94291
|
-
|
|
94292
|
-
const items = [
|
|
93443
|
+
return [
|
|
94293
93444
|
new UndoItem(),
|
|
94294
93445
|
new RedoItem(),
|
|
94295
93446
|
new SeparatorItem(),
|
|
@@ -94314,15 +93465,14 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94314
93465
|
new AlignCenterItem(),
|
|
94315
93466
|
new AlignRightItem(),
|
|
94316
93467
|
new SeparatorItem(),
|
|
93468
|
+
new InsertImageItem(),
|
|
93469
|
+
new SeparatorItem(),
|
|
94317
93470
|
new InsertItem(editor),
|
|
94318
93471
|
new SeparatorItem(),
|
|
94319
|
-
new FindReplaceItem()
|
|
93472
|
+
new FindReplaceItem(),
|
|
93473
|
+
new CommentItem(),
|
|
93474
|
+
new MoreItem(editor)
|
|
94320
93475
|
];
|
|
94321
|
-
if (commentsEnabled) {
|
|
94322
|
-
items.push(new CommentItem());
|
|
94323
|
-
}
|
|
94324
|
-
items.push(new MoreItem(editor));
|
|
94325
|
-
return items;
|
|
94326
93476
|
}
|
|
94327
93477
|
const zhCN = {
|
|
94328
93478
|
toolbar: {
|
|
@@ -94388,9 +93538,8 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94388
93538
|
});
|
|
94389
93539
|
const style = "";
|
|
94390
93540
|
class MainToolbar {
|
|
94391
|
-
constructor(editor, parent
|
|
93541
|
+
constructor(editor, parent) {
|
|
94392
93542
|
__publicField(this, "toolbar");
|
|
94393
|
-
__publicField(this, "toolbarFullScreen");
|
|
94394
93543
|
__publicField(this, "handleClick", (bar2, item) => {
|
|
94395
93544
|
const command = item;
|
|
94396
93545
|
if (command.onClick) {
|
|
@@ -94427,12 +93576,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94427
93576
|
this.updateState();
|
|
94428
93577
|
});
|
|
94429
93578
|
this.editor = editor;
|
|
94430
|
-
this.
|
|
94431
|
-
const root2 = createElement("div", ["editor-main-toolbar-root"], parent);
|
|
94432
|
-
const container = createElement("div", ["editor-main-toolbar-resizer"], root2);
|
|
94433
|
-
const resizer = createElement("div", ["editor-main-toolbar-container"], container);
|
|
94434
|
-
const items = getToolbarDefaultItems(editor);
|
|
94435
|
-
this.toolbar = new FixedToolbar(resizer, items, {
|
|
93579
|
+
this.toolbar = new FixedToolbar(parent, this.getItems(), {
|
|
94436
93580
|
tooltipId: editor.clientId,
|
|
94437
93581
|
id: "main-toolbar"
|
|
94438
93582
|
});
|
|
@@ -94444,38 +93588,16 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94444
93588
|
destroy: () => {
|
|
94445
93589
|
}
|
|
94446
93590
|
}));
|
|
94447
|
-
if (options.enableFullScreen) {
|
|
94448
|
-
const fullScreenItem = {
|
|
94449
|
-
id: "main-toolbar-fullscreen",
|
|
94450
|
-
icon: FullScreenIcon,
|
|
94451
|
-
name: i18n$1.t("toolbar.fullscreen")
|
|
94452
|
-
};
|
|
94453
|
-
this.toolbarFullScreen = new FixedToolbar(root2, [fullScreenItem], {
|
|
94454
|
-
tooltipId: editor.clientId,
|
|
94455
|
-
id: "main-toolbar-fullscreen",
|
|
94456
|
-
rootId: "main-toolbar-fullscreen"
|
|
94457
|
-
});
|
|
94458
|
-
this.toolbarFullScreen.addListener("click", (bar2, item) => {
|
|
94459
|
-
var _a;
|
|
94460
|
-
if (item.id === "main-toolbar-fullscreen") {
|
|
94461
|
-
(_a = options.onFullScreenClick) == null ? void 0 : _a.call(options, this.editor, item);
|
|
94462
|
-
this.handleSelectionChanged();
|
|
94463
|
-
}
|
|
94464
|
-
});
|
|
94465
|
-
}
|
|
94466
93591
|
}
|
|
94467
93592
|
destroy() {
|
|
94468
|
-
var _a;
|
|
94469
93593
|
this.toolbar.destroy();
|
|
94470
|
-
this.editor.removeListener("selectionChanged", this.handleSelectionChanged);
|
|
94471
|
-
(_a = this.toolbarFullScreen) == null ? void 0 : _a.destroy();
|
|
94472
93594
|
}
|
|
94473
93595
|
setItems(items) {
|
|
94474
93596
|
this.toolbar.updateItems(items);
|
|
94475
93597
|
this.updateState();
|
|
94476
93598
|
}
|
|
94477
93599
|
getItems() {
|
|
94478
|
-
return this.
|
|
93600
|
+
return getToolbarDefaultItems(this.editor);
|
|
94479
93601
|
}
|
|
94480
93602
|
updateState() {
|
|
94481
93603
|
const items = this.toolbar.items;
|
|
@@ -94523,7 +93645,6 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94523
93645
|
id: options.id,
|
|
94524
93646
|
scrollContainer: options == null ? void 0 : options.scrollContainer,
|
|
94525
93647
|
enableComments: options == null ? void 0 : options.enableComments,
|
|
94526
|
-
enableResolveComments: options == null ? void 0 : options.enableResolveComments,
|
|
94527
93648
|
enableContextMenu: options == null ? void 0 : options.enableContextMenu,
|
|
94528
93649
|
components: {
|
|
94529
93650
|
blocks: [...StandardBlocks, ...((_d = options == null ? void 0 : options.components) == null ? void 0 : _d.blocks) || []],
|
|
@@ -94555,7 +93676,15 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94555
93676
|
TextColorShortcuts,
|
|
94556
93677
|
...options.shortcuts || []
|
|
94557
93678
|
],
|
|
94558
|
-
colors: [
|
|
93679
|
+
colors: [
|
|
93680
|
+
"#B21B57",
|
|
93681
|
+
"#008796",
|
|
93682
|
+
"#7241CC",
|
|
93683
|
+
"#CC4C08",
|
|
93684
|
+
"#5D8F00",
|
|
93685
|
+
"#BD2C1C",
|
|
93686
|
+
"#D17D00"
|
|
93687
|
+
]
|
|
94559
93688
|
};
|
|
94560
93689
|
return ret;
|
|
94561
93690
|
}
|
|
@@ -94653,13 +93782,10 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94653
93782
|
editor.input.addHandler(new ListPasteHandler());
|
|
94654
93783
|
editor.doc.registerCallback(new HeadingBlockDocEvents(editor));
|
|
94655
93784
|
editor.addCustom("remote-cursor", () => new RemoteCarets(editor));
|
|
94656
|
-
editor.addCustom(
|
|
94657
|
-
|
|
94658
|
-
()
|
|
94659
|
-
|
|
94660
|
-
(_b2 = (_a2 = options.events) == null ? void 0 : _a2.onPreviewImage) == null ? void 0 : _b2.call(_a2, editor2, img);
|
|
94661
|
-
})
|
|
94662
|
-
);
|
|
93785
|
+
editor.addCustom("editor-image-preview", () => new ImagePreviewHandler(editor, (editor2, img) => {
|
|
93786
|
+
var _a2, _b2;
|
|
93787
|
+
(_b2 = (_a2 = options.events) == null ? void 0 : _a2.onPreviewImage) == null ? void 0 : _b2.call(_a2, editor2, img);
|
|
93788
|
+
}));
|
|
94663
93789
|
if (options.blockMenuButton !== false) {
|
|
94664
93790
|
editor.addCustom("block-menu", (editor2) => new OnesEditorBlockMenuButtons(editor2));
|
|
94665
93791
|
}
|
|
@@ -94709,9 +93835,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94709
93835
|
OnesEditorTocProvider.register(editor);
|
|
94710
93836
|
OnesEditorExclusiveBlock.register(editor);
|
|
94711
93837
|
if (!clientType.isMobile) {
|
|
94712
|
-
editor.editorCommandProviders.registerCommandProvider(
|
|
94713
|
-
new TextCommandProvider(editor, { scriptDropDown: true, isFilter: true })
|
|
94714
|
-
);
|
|
93838
|
+
editor.editorCommandProviders.registerCommandProvider(new TextCommandProvider(editor, { scriptDropDown: true, isFilter: true }));
|
|
94715
93839
|
editor.addCustom("editor-tooltip", () => new OnesEditorTooltip(editor));
|
|
94716
93840
|
} else {
|
|
94717
93841
|
editor.addCustom("mobile-helper", () => new OnesEditorMobileHelper(editor));
|
|
@@ -94758,14 +93882,14 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94758
93882
|
}
|
|
94759
93883
|
}
|
|
94760
93884
|
});
|
|
94761
|
-
editor.version = "2.8.
|
|
93885
|
+
editor.version = "2.8.38";
|
|
94762
93886
|
return editor;
|
|
94763
93887
|
}
|
|
94764
93888
|
function isDoc(doc2) {
|
|
94765
93889
|
return doc2.toJSON !== void 0;
|
|
94766
93890
|
}
|
|
94767
93891
|
async function createLocalEditor(root2, docData, options) {
|
|
94768
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l
|
|
93892
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
94769
93893
|
assert(logger, root2, "app does not exists");
|
|
94770
93894
|
const doc2 = isDoc(docData) ? docData : new LocalDoc(docData, {
|
|
94771
93895
|
serverUrl: options.serverUrl || ""
|
|
@@ -94780,8 +93904,6 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94780
93904
|
const editor = createEditor(root2, doc2, {
|
|
94781
93905
|
id: options.id,
|
|
94782
93906
|
scrollContainer: options == null ? void 0 : options.scrollContainer,
|
|
94783
|
-
enableResolveComments: options == null ? void 0 : options.enableResolveComments,
|
|
94784
|
-
enableComments,
|
|
94785
93907
|
components: {
|
|
94786
93908
|
blocks: [...StandardBlocks, ...(_f = (_e = options.components) == null ? void 0 : _e.blocks) != null ? _f : []],
|
|
94787
93909
|
commandProviders: [new TableBlockCommandProvider()],
|
|
@@ -94822,13 +93944,10 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94822
93944
|
editor.input.addHandler(new OnesEditorPasteHandler(editor));
|
|
94823
93945
|
editor.input.addHandler(new BlockLockerPasteHandler());
|
|
94824
93946
|
editor.input.addHandler(new ListPasteHandler());
|
|
94825
|
-
editor.addCustom(
|
|
94826
|
-
|
|
94827
|
-
()
|
|
94828
|
-
|
|
94829
|
-
(_b2 = (_a2 = options.events) == null ? void 0 : _a2.onPreviewImage) == null ? void 0 : _b2.call(_a2, editor2, img);
|
|
94830
|
-
})
|
|
94831
|
-
);
|
|
93947
|
+
editor.addCustom("editor-image-preview", () => new ImagePreviewHandler(editor, (editor2, img) => {
|
|
93948
|
+
var _a2, _b2;
|
|
93949
|
+
(_b2 = (_a2 = options.events) == null ? void 0 : _a2.onPreviewImage) == null ? void 0 : _b2.call(_a2, editor2, img);
|
|
93950
|
+
}));
|
|
94832
93951
|
if (options.blockMenuButton !== false) {
|
|
94833
93952
|
editor.addCustom("block-menu", (editor2) => new OnesEditorBlockMenuButtons(editor2));
|
|
94834
93953
|
}
|
|
@@ -94838,9 +93957,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94838
93957
|
return new OnesEditorQuickMenu(editor, (_a2 = options.componentsOptions) == null ? void 0 : _a2.quickMenu);
|
|
94839
93958
|
});
|
|
94840
93959
|
editor.addCustom("block-menu", (editor2) => new OnesEditorBlockMenuButtons(editor2));
|
|
94841
|
-
editor.editorCommandProviders.registerCommandProvider(
|
|
94842
|
-
new TextCommandProvider(editor, { scriptDropDown: true, isFilter: true })
|
|
94843
|
-
);
|
|
93960
|
+
editor.editorCommandProviders.registerCommandProvider(new TextCommandProvider(editor, { scriptDropDown: true, isFilter: true }));
|
|
94844
93961
|
editor.addCustom("editor-tooltip", () => new OnesEditorTooltip(editor));
|
|
94845
93962
|
(_k = editor.findCustom("editor-quick-menu")) == null ? void 0 : _k.addFilter("layout-quick-menu-filter", LayoutQuickMenuItemFilter.init(editor));
|
|
94846
93963
|
(_l = editor.findCustom("editor-block-menu")) == null ? void 0 : _l.addFilter("layout-quick-menu-filter", LayoutQuickMenuItemFilter.init(editor));
|
|
@@ -94858,16 +93975,6 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94858
93975
|
if (options.enableContextMenu !== false) {
|
|
94859
93976
|
editor.addCustom("editor-context-menu", (editor2) => new OnesEditorContextMenu(editor2));
|
|
94860
93977
|
}
|
|
94861
|
-
editor.addCustom("create-options", () => new OnesEditorCustomDataWrapper(editor, options));
|
|
94862
|
-
editor.addCustom("drop-target", () => new OnesEditorDropTarget(editor));
|
|
94863
|
-
editor.addCustom("list-to-mindmap", () => new OnesEditorListMindmap(editor));
|
|
94864
|
-
editor.addCustom("list-to-mention", () => new OnesEditorBlockMention(editor));
|
|
94865
|
-
editor.addCustom("code-caret", () => new OnesEditorCodeCaret(editor));
|
|
94866
|
-
editor.addCustom("layout-paste-handler", () => new LayoutBlockCaptionInputHandler(editor, true));
|
|
94867
|
-
if ((_m = options.componentsOptions) == null ? void 0 : _m.mention) {
|
|
94868
|
-
const mentionOptions = options.componentsOptions.mention;
|
|
94869
|
-
editor.addCustom("mention", () => new OnesEditorMention(editor, mentionOptions));
|
|
94870
|
-
}
|
|
94871
93978
|
if (options.headingButton !== false) {
|
|
94872
93979
|
editor.addCustom("heading-collapse", () => new HeadingBlockCollapseButton(editor));
|
|
94873
93980
|
}
|
|
@@ -94888,10 +93995,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94888
93995
|
}
|
|
94889
93996
|
});
|
|
94890
93997
|
OnesEditorToolbar.register(editor);
|
|
94891
|
-
|
|
94892
|
-
OnesEditorTocProvider.register(editor);
|
|
94893
|
-
OnesEditorExclusiveBlock.register(editor);
|
|
94894
|
-
editor.version = "2.8.37-beta.9";
|
|
93998
|
+
editor.version = "2.8.38";
|
|
94895
93999
|
return editor;
|
|
94896
94000
|
}
|
|
94897
94001
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -140684,7 +139788,6 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
140684
139788
|
exports2.ArrowLeftIcon = arrowLeft;
|
|
140685
139789
|
exports2.ArrowRightIcon = ArrowRightIcon;
|
|
140686
139790
|
exports2.ArrowUpIcon = arrowUp;
|
|
140687
|
-
exports2.AttachmentIcon = AttachmentIcon;
|
|
140688
139791
|
exports2.AudioIcon = AudioIcon;
|
|
140689
139792
|
exports2.AuthError = AuthError;
|
|
140690
139793
|
exports2.AuthHeader = AuthHeader;
|
|
@@ -140712,7 +139815,6 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
140712
139815
|
exports2.CheckMarkIcon = CheckMarkIcon;
|
|
140713
139816
|
exports2.CheckboxIcon = CheckboxIcon;
|
|
140714
139817
|
exports2.CircleAddIcon = CircleAddIcon;
|
|
140715
|
-
exports2.CircleCheckMarkIcon = CircleCheckMarkIcon;
|
|
140716
139818
|
exports2.ClearIcon = ClearIcon;
|
|
140717
139819
|
exports2.ClipboardProvider = ClipboardProvider;
|
|
140718
139820
|
exports2.CloseIcon = CloseIcon;
|
|
@@ -140818,7 +139920,6 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
140818
139920
|
exports2.InputtingInsertion = InputtingInsertion;
|
|
140819
139921
|
exports2.InsertAfterIcon = InsertAfterIcon;
|
|
140820
139922
|
exports2.InsertBeforeIcon = InsertBeforeIcon;
|
|
140821
|
-
exports2.InsertFileItem = InsertFileItem;
|
|
140822
139923
|
exports2.InsertImageItem = InsertImageItem;
|
|
140823
139924
|
exports2.InsertItem = InsertItem;
|
|
140824
139925
|
exports2.InsertLinkItem = InsertLinkItem;
|
|
@@ -140864,8 +139965,6 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
140864
139965
|
exports2.MoreItem = MoreItem;
|
|
140865
139966
|
exports2.NextIcon = NextIcon;
|
|
140866
139967
|
exports2.OnesEditorAutoSuggest = OnesEditorAutoSuggest;
|
|
140867
|
-
exports2.OnesEditorComments = OnesEditorComments;
|
|
140868
|
-
exports2.OnesEditorCommentsRender = OnesEditorCommentsRender;
|
|
140869
139968
|
exports2.OnesEditorCustomDataWrapper = OnesEditorCustomDataWrapper;
|
|
140870
139969
|
exports2.OnesEditorExclusiveBlock = OnesEditorExclusiveBlock;
|
|
140871
139970
|
exports2.OnesEditorHoveringBlock = OnesEditorHoveringBlock;
|