@harbour-enterprises/superdoc 0.23.0-next.1 → 0.23.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-C9SGNZr6.cjs → PdfViewer-CxsRHFKK.cjs} +2 -2
- package/dist/chunks/{PdfViewer-D9atA783.es.js → PdfViewer-itEb8CY_.es.js} +2 -2
- package/dist/chunks/{eventemitter3-CZv6vEhA.es.js → eventemitter3-CR2eBWft.es.js} +1 -1
- package/dist/chunks/{eventemitter3-B_kO1Pxm.cjs → eventemitter3-DSRogsNq.cjs} +1 -1
- package/dist/chunks/{index-C8q6lenv.es.js → index-CTFsQkQh.es.js} +75 -28
- package/dist/chunks/{index-CIbe1VMu.cjs → index-DO0hDjEd.cjs} +75 -28
- package/dist/chunks/{jszip-b7l8QkfH.cjs → jszip-B4LDL19y.cjs} +1 -1
- package/dist/chunks/{jszip-B8KIZSNe.es.js → jszip-DAXEPCUv.es.js} +1 -1
- package/dist/chunks/{super-editor.es-DxScE0ep.cjs → super-editor.es-Ck_zDasU.cjs} +259 -86
- package/dist/chunks/{super-editor.es-Dj6Sxtr7.es.js → super-editor.es-D2K5zQwY.es.js} +259 -86
- package/dist/chunks/{vue-DWle4Cai.cjs → vue-DKMj1I9B.cjs} +39 -42
- package/dist/chunks/{vue-CXxsqYcP.es.js → vue-ZWZLQtoU.es.js} +39 -42
- package/dist/chunks/xml-js-Bbc0NeKa.es.js +2 -0
- package/dist/chunks/xml-js-CWV8R-ek.cjs +3 -0
- package/dist/core/SuperDoc.d.ts +5 -18
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +29 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/stores/comments-store.d.ts +3 -3
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/stores/superdoc-store.d.ts.map +1 -1
- package/dist/style.css +73 -54
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-C08GQjNi.js → converter-ClnqoStR.js} +18 -19
- package/dist/super-editor/chunks/{docx-zipper-C3-uf2tI.js → docx-zipper-DC28ucAi.js} +1 -1
- package/dist/super-editor/chunks/{editor-C2IwVkIp.js → editor-C3VH8Ia2.js} +240 -66
- package/dist/super-editor/chunks/{toolbar-De8G_9NV.js → toolbar-BG1F_1RK.js} +4 -4
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/src/core/Attribute.d.ts +2 -2
- package/dist/super-editor/src/core/Schema.d.ts +2 -2
- package/dist/super-editor/src/extensions/comment/comments-plugin.d.ts +60 -0
- package/dist/super-editor/src/extensions/comment/helpers/index.d.ts +2 -0
- package/dist/super-editor/src/extensions/comment/helpers/normalize-comment-event-payload.d.ts +1 -0
- package/dist/super-editor/src/extensions/comment/helpers/update-position.d.ts +7 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +4 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +1 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +5 -0
- package/dist/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsByAlias.d.ts +8 -0
- package/dist/super-editor/src/extensions/structured-content/structuredContentHelpers/index.d.ts +1 -0
- package/dist/super-editor/style.css +46 -27
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +4 -4
- package/dist/superdoc.es.js +4 -4
- package/dist/superdoc.umd.js +362 -142
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-CX8FH0He.cjs +0 -3
- package/dist/chunks/xml-js-D0tLGmKu.es.js +0 -2
package/dist/style.css
CHANGED
|
@@ -438,20 +438,20 @@ span[data-v-53e13009] {
|
|
|
438
438
|
width: 16px;
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
.toolbar-item[data-v-
|
|
441
|
+
.toolbar-item[data-v-cea02a58] {
|
|
442
442
|
position: relative;
|
|
443
443
|
z-index: 1;
|
|
444
444
|
min-width: 30px;
|
|
445
445
|
margin: 0 1px;
|
|
446
446
|
}
|
|
447
|
-
.visually-hidden[data-v-
|
|
447
|
+
.visually-hidden[data-v-cea02a58] {
|
|
448
448
|
position: absolute;
|
|
449
449
|
left: -9999px;
|
|
450
450
|
height: 1px;
|
|
451
451
|
width: 1px;
|
|
452
452
|
overflow: hidden;
|
|
453
453
|
}
|
|
454
|
-
.toolbar-button[data-v-
|
|
454
|
+
.toolbar-button[data-v-cea02a58] {
|
|
455
455
|
padding: 5px;
|
|
456
456
|
height: 32px;
|
|
457
457
|
max-height: 32px;
|
|
@@ -467,21 +467,21 @@ span[data-v-53e13009] {
|
|
|
467
467
|
position: relative;
|
|
468
468
|
box-sizing: border-box;
|
|
469
469
|
}
|
|
470
|
-
.toolbar-button[data-v-
|
|
470
|
+
.toolbar-button[data-v-cea02a58]:hover {
|
|
471
471
|
background-color: #dbdbdb;
|
|
472
472
|
}
|
|
473
|
-
.toolbar-button:hover .toolbar-icon.high-contrast[data-v-
|
|
473
|
+
.toolbar-button:hover .toolbar-icon.high-contrast[data-v-cea02a58] {
|
|
474
474
|
color: #fff;
|
|
475
475
|
}
|
|
476
|
-
.toolbar-button:hover.high-contrast[data-v-
|
|
476
|
+
.toolbar-button:hover.high-contrast[data-v-cea02a58] {
|
|
477
477
|
background-color: #000;
|
|
478
478
|
color: #fff;
|
|
479
479
|
}
|
|
480
|
-
.toolbar-button[data-v-
|
|
481
|
-
.active[data-v-
|
|
480
|
+
.toolbar-button[data-v-cea02a58]:active,
|
|
481
|
+
.active[data-v-cea02a58] {
|
|
482
482
|
background-color: #c8d0d8;
|
|
483
483
|
}
|
|
484
|
-
.button-label[data-v-
|
|
484
|
+
.button-label[data-v-cea02a58] {
|
|
485
485
|
overflow: hidden;
|
|
486
486
|
width: 100%;
|
|
487
487
|
text-align: center;
|
|
@@ -491,37 +491,37 @@ span[data-v-53e13009] {
|
|
|
491
491
|
font-size: 15px;
|
|
492
492
|
margin: 5px;
|
|
493
493
|
}
|
|
494
|
-
.toolbar-icon + .dropdown-caret[data-v-
|
|
494
|
+
.toolbar-icon + .dropdown-caret[data-v-cea02a58] {
|
|
495
495
|
margin-left: 4px;
|
|
496
496
|
}
|
|
497
|
-
.left[data-v-
|
|
498
|
-
.right[data-v-
|
|
497
|
+
.left[data-v-cea02a58],
|
|
498
|
+
.right[data-v-cea02a58] {
|
|
499
499
|
width: 50%;
|
|
500
500
|
height: 100%;
|
|
501
501
|
background-color: #dbdbdb;
|
|
502
502
|
border-radius: 60%;
|
|
503
503
|
}
|
|
504
|
-
.has-inline-text-input[data-v-
|
|
504
|
+
.has-inline-text-input[data-v-cea02a58]:hover {
|
|
505
505
|
cursor: text;
|
|
506
506
|
}
|
|
507
|
-
.disabled[data-v-
|
|
507
|
+
.disabled[data-v-cea02a58] {
|
|
508
508
|
cursor: default;
|
|
509
509
|
}
|
|
510
|
-
.disabled[data-v-
|
|
510
|
+
.disabled[data-v-cea02a58]:hover {
|
|
511
511
|
cursor: default;
|
|
512
512
|
background-color: initial;
|
|
513
513
|
}
|
|
514
|
-
.disabled .toolbar-icon[data-v-
|
|
515
|
-
.disabled .caret[data-v-
|
|
516
|
-
.disabled .button-label[data-v-
|
|
514
|
+
.disabled .toolbar-icon[data-v-cea02a58],
|
|
515
|
+
.disabled .caret[data-v-cea02a58],
|
|
516
|
+
.disabled .button-label[data-v-cea02a58] {
|
|
517
517
|
opacity: 0.35;
|
|
518
518
|
}
|
|
519
|
-
.caret[data-v-
|
|
519
|
+
.caret[data-v-cea02a58] {
|
|
520
520
|
font-size: 1em;
|
|
521
521
|
padding-left: 2px;
|
|
522
522
|
padding-right: 2px;
|
|
523
523
|
}
|
|
524
|
-
.button-text-input[data-v-
|
|
524
|
+
.button-text-input[data-v-cea02a58] {
|
|
525
525
|
color: #47484a;
|
|
526
526
|
border-radius: 4px;
|
|
527
527
|
text-align: center;
|
|
@@ -535,13 +535,13 @@ span[data-v-53e13009] {
|
|
|
535
535
|
border: 1px solid #d8dee5;
|
|
536
536
|
box-sizing: border-box;
|
|
537
537
|
}
|
|
538
|
-
.button-text-input.high-contrast[data-v-
|
|
538
|
+
.button-text-input.high-contrast[data-v-cea02a58] {
|
|
539
539
|
background-color: #fff;
|
|
540
540
|
}
|
|
541
|
-
.button-text-input[data-v-
|
|
541
|
+
.button-text-input[data-v-cea02a58]::placeholder {
|
|
542
542
|
color: #47484a;
|
|
543
543
|
}
|
|
544
|
-
.dropdown-caret[data-v-
|
|
544
|
+
.dropdown-caret[data-v-cea02a58] {
|
|
545
545
|
display: inline-flex;
|
|
546
546
|
align-items: center;
|
|
547
547
|
justify-content: center;
|
|
@@ -551,16 +551,16 @@ span[data-v-53e13009] {
|
|
|
551
551
|
height: 10px;
|
|
552
552
|
}
|
|
553
553
|
@media (max-width: 1280px) {
|
|
554
|
-
.toolbar-item--doc-mode .button-label[data-v-
|
|
554
|
+
.toolbar-item--doc-mode .button-label[data-v-cea02a58] {
|
|
555
555
|
display: none;
|
|
556
556
|
}
|
|
557
|
-
.toolbar-item--doc-mode .toolbar-icon[data-v-
|
|
557
|
+
.toolbar-item--doc-mode .toolbar-icon[data-v-cea02a58] {
|
|
558
558
|
margin-right: 5px;
|
|
559
559
|
}
|
|
560
|
-
.toolbar-item--linked-styles[data-v-
|
|
560
|
+
.toolbar-item--linked-styles[data-v-cea02a58] {
|
|
561
561
|
width: auto !important;
|
|
562
562
|
}
|
|
563
|
-
.toolbar-item--linked-styles .button-label[data-v-
|
|
563
|
+
.toolbar-item--linked-styles .button-label[data-v-cea02a58] {
|
|
564
564
|
display: none;
|
|
565
565
|
}
|
|
566
566
|
}
|
|
@@ -1497,6 +1497,13 @@ on the right if it is inside shape textbox.
|
|
|
1497
1497
|
white-space: nowrap;
|
|
1498
1498
|
text-overflow: ellipsis;
|
|
1499
1499
|
}
|
|
1500
|
+
.ProseMirror.view-mode .sd-document-section-block {
|
|
1501
|
+
background: none;
|
|
1502
|
+
border: none;
|
|
1503
|
+
}
|
|
1504
|
+
.ProseMirror.view-mode .sd-document-section-block-info {
|
|
1505
|
+
display: none;
|
|
1506
|
+
}
|
|
1500
1507
|
.sd-structured-content,
|
|
1501
1508
|
.sd-structured-content-block {
|
|
1502
1509
|
padding: 1px;
|
|
@@ -1505,6 +1512,10 @@ on the right if it is inside shape textbox.
|
|
|
1505
1512
|
border: 1px solid #629be7;
|
|
1506
1513
|
position: relative;
|
|
1507
1514
|
}
|
|
1515
|
+
.sd-structured-content:has(img),
|
|
1516
|
+
.sd-structured-content:has(img) .sd-structured-content__content {
|
|
1517
|
+
display: inline-block;
|
|
1518
|
+
}
|
|
1508
1519
|
.sd-structured-content-draggable {
|
|
1509
1520
|
font-size: 10px;
|
|
1510
1521
|
align-items: center;
|
|
@@ -1536,6 +1547,14 @@ on the right if it is inside shape textbox.
|
|
|
1536
1547
|
.sd-structured-content-block:hover .sd-structured-content-draggable {
|
|
1537
1548
|
display: inline-flex;
|
|
1538
1549
|
}
|
|
1550
|
+
.ProseMirror.view-mode .sd-structured-content,
|
|
1551
|
+
.ProseMirror.view-mode .sd-structured-content-block {
|
|
1552
|
+
padding: 0;
|
|
1553
|
+
border: none;
|
|
1554
|
+
}
|
|
1555
|
+
.ProseMirror.view-mode .sd-structured-content-draggable {
|
|
1556
|
+
display: none;
|
|
1557
|
+
}
|
|
1539
1558
|
|
|
1540
1559
|
.alignment-buttons[data-v-d84f57b6] {
|
|
1541
1560
|
display: flex;
|
|
@@ -2436,46 +2455,46 @@ img[data-v-7dd69850] {
|
|
|
2436
2455
|
box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.05);
|
|
2437
2456
|
}
|
|
2438
2457
|
|
|
2439
|
-
.superdoc[data-v-
|
|
2458
|
+
.superdoc[data-v-96983cf9] {
|
|
2440
2459
|
display: flex;
|
|
2441
2460
|
}
|
|
2442
|
-
.right-sidebar[data-v-
|
|
2461
|
+
.right-sidebar[data-v-96983cf9] {
|
|
2443
2462
|
min-width: 320px;
|
|
2444
2463
|
}
|
|
2445
|
-
.floating-comments[data-v-
|
|
2464
|
+
.floating-comments[data-v-96983cf9] {
|
|
2446
2465
|
min-width: 300px;
|
|
2447
2466
|
width: 300px;
|
|
2448
2467
|
}
|
|
2449
|
-
.superdoc__layers[data-v-
|
|
2468
|
+
.superdoc__layers[data-v-96983cf9] {
|
|
2450
2469
|
height: 100%;
|
|
2451
2470
|
position: relative;
|
|
2452
2471
|
box-sizing: border-box;
|
|
2453
2472
|
}
|
|
2454
|
-
.superdoc__document[data-v-
|
|
2473
|
+
.superdoc__document[data-v-96983cf9] {
|
|
2455
2474
|
width: 100%;
|
|
2456
2475
|
position: relative;
|
|
2457
2476
|
}
|
|
2458
|
-
.superdoc__sub-document[data-v-
|
|
2477
|
+
.superdoc__sub-document[data-v-96983cf9] {
|
|
2459
2478
|
width: 100%;
|
|
2460
2479
|
position: relative;
|
|
2461
2480
|
}
|
|
2462
|
-
.superdoc__selection-layer[data-v-
|
|
2481
|
+
.superdoc__selection-layer[data-v-96983cf9] {
|
|
2463
2482
|
position: absolute;
|
|
2464
2483
|
min-width: 100%;
|
|
2465
2484
|
min-height: 100%;
|
|
2466
2485
|
z-index: 10;
|
|
2467
2486
|
pointer-events: none;
|
|
2468
2487
|
}
|
|
2469
|
-
.superdoc__temp-selection[data-v-
|
|
2488
|
+
.superdoc__temp-selection[data-v-96983cf9] {
|
|
2470
2489
|
position: absolute;
|
|
2471
2490
|
}
|
|
2472
|
-
.superdoc__comments-layer[data-v-
|
|
2491
|
+
.superdoc__comments-layer[data-v-96983cf9] {
|
|
2473
2492
|
/* position: absolute; */
|
|
2474
2493
|
top: 0;
|
|
2475
2494
|
height: 100%;
|
|
2476
2495
|
position: relative;
|
|
2477
2496
|
}
|
|
2478
|
-
.superdoc__right-sidebar[data-v-
|
|
2497
|
+
.superdoc__right-sidebar[data-v-96983cf9] {
|
|
2479
2498
|
width: 320px;
|
|
2480
2499
|
min-width: 320px;
|
|
2481
2500
|
padding: 0 10px;
|
|
@@ -2485,14 +2504,14 @@ img[data-v-7dd69850] {
|
|
|
2485
2504
|
}
|
|
2486
2505
|
|
|
2487
2506
|
/* Tools styles */
|
|
2488
|
-
.tools[data-v-
|
|
2507
|
+
.tools[data-v-96983cf9] {
|
|
2489
2508
|
position: absolute;
|
|
2490
2509
|
z-index: 3;
|
|
2491
2510
|
display: flex;
|
|
2492
2511
|
flex-direction: column;
|
|
2493
2512
|
gap: 6px;
|
|
2494
2513
|
}
|
|
2495
|
-
.tools .tool-icon[data-v-
|
|
2514
|
+
.tools .tool-icon[data-v-96983cf9] {
|
|
2496
2515
|
font-size: 20px;
|
|
2497
2516
|
border-radius: 12px;
|
|
2498
2517
|
border: none;
|
|
@@ -2500,7 +2519,7 @@ img[data-v-7dd69850] {
|
|
|
2500
2519
|
background-color: #dbdbdb;
|
|
2501
2520
|
cursor: pointer;
|
|
2502
2521
|
}
|
|
2503
|
-
.tools-item[data-v-
|
|
2522
|
+
.tools-item[data-v-96983cf9] {
|
|
2504
2523
|
display: flex;
|
|
2505
2524
|
align-items: center;
|
|
2506
2525
|
justify-content: center;
|
|
@@ -2510,10 +2529,10 @@ img[data-v-7dd69850] {
|
|
|
2510
2529
|
border-radius: 12px;
|
|
2511
2530
|
cursor: pointer;
|
|
2512
2531
|
}
|
|
2513
|
-
.tools-item i[data-v-
|
|
2532
|
+
.tools-item i[data-v-96983cf9] {
|
|
2514
2533
|
cursor: pointer;
|
|
2515
2534
|
}
|
|
2516
|
-
.superdoc__tools-icon[data-v-
|
|
2535
|
+
.superdoc__tools-icon[data-v-96983cf9] {
|
|
2517
2536
|
width: 20px;
|
|
2518
2537
|
height: 20px;
|
|
2519
2538
|
flex-shrink: 0;
|
|
@@ -2528,15 +2547,15 @@ img[data-v-7dd69850] {
|
|
|
2528
2547
|
|
|
2529
2548
|
/* 834px is iPad screen size in portrait orientation */
|
|
2530
2549
|
@media (max-width: 834px) {
|
|
2531
|
-
.superdoc .superdoc__layers[data-v-
|
|
2550
|
+
.superdoc .superdoc__layers[data-v-96983cf9] {
|
|
2532
2551
|
margin: 0;
|
|
2533
2552
|
border: 0 !important;
|
|
2534
2553
|
box-shadow: none;
|
|
2535
2554
|
}
|
|
2536
|
-
.superdoc__sub-document[data-v-
|
|
2555
|
+
.superdoc__sub-document[data-v-96983cf9] {
|
|
2537
2556
|
max-width: 100%;
|
|
2538
2557
|
}
|
|
2539
|
-
.superdoc__right-sidebar[data-v-
|
|
2558
|
+
.superdoc__right-sidebar[data-v-96983cf9] {
|
|
2540
2559
|
padding: 10px;
|
|
2541
2560
|
width: 55px;
|
|
2542
2561
|
position: relative;
|
|
@@ -2544,7 +2563,7 @@ img[data-v-7dd69850] {
|
|
|
2544
2563
|
}
|
|
2545
2564
|
|
|
2546
2565
|
/* AI Writer styles */
|
|
2547
|
-
.ai-writer-container[data-v-
|
|
2566
|
+
.ai-writer-container[data-v-96983cf9] {
|
|
2548
2567
|
position: fixed;
|
|
2549
2568
|
z-index: 1000;
|
|
2550
2569
|
background: white;
|
|
@@ -2562,13 +2581,13 @@ img[data-v-7dd69850] {
|
|
|
2562
2581
|
} */
|
|
2563
2582
|
|
|
2564
2583
|
/* Tools styles */
|
|
2565
|
-
.tools[data-v-
|
|
2584
|
+
.tools[data-v-96983cf9] {
|
|
2566
2585
|
position: absolute;
|
|
2567
2586
|
z-index: 3;
|
|
2568
2587
|
display: flex;
|
|
2569
2588
|
gap: 6px;
|
|
2570
2589
|
}
|
|
2571
|
-
.tools .tool-icon[data-v-
|
|
2590
|
+
.tools .tool-icon[data-v-96983cf9] {
|
|
2572
2591
|
font-size: 20px;
|
|
2573
2592
|
border-radius: 12px;
|
|
2574
2593
|
border: none;
|
|
@@ -2576,7 +2595,7 @@ img[data-v-7dd69850] {
|
|
|
2576
2595
|
background-color: #dbdbdb;
|
|
2577
2596
|
cursor: pointer;
|
|
2578
2597
|
}
|
|
2579
|
-
.tools-item[data-v-
|
|
2598
|
+
.tools-item[data-v-96983cf9] {
|
|
2580
2599
|
display: flex;
|
|
2581
2600
|
align-items: center;
|
|
2582
2601
|
justify-content: center;
|
|
@@ -2587,18 +2606,18 @@ img[data-v-7dd69850] {
|
|
|
2587
2606
|
border-radius: 12px;
|
|
2588
2607
|
cursor: pointer;
|
|
2589
2608
|
}
|
|
2590
|
-
.tools-item i[data-v-
|
|
2609
|
+
.tools-item i[data-v-96983cf9] {
|
|
2591
2610
|
cursor: pointer;
|
|
2592
2611
|
}
|
|
2593
|
-
.superdoc__tools-icon[data-v-
|
|
2612
|
+
.superdoc__tools-icon[data-v-96983cf9] {
|
|
2594
2613
|
width: 20px;
|
|
2595
2614
|
height: 20px;
|
|
2596
2615
|
flex-shrink: 0;
|
|
2597
2616
|
}
|
|
2598
|
-
.ai-tool > svg[data-v-
|
|
2617
|
+
.ai-tool > svg[data-v-96983cf9] {
|
|
2599
2618
|
fill: transparent;
|
|
2600
2619
|
}
|
|
2601
|
-
.ai-tool[data-v-
|
|
2620
|
+
.ai-tool[data-v-96983cf9]::before {
|
|
2602
2621
|
content: '';
|
|
2603
2622
|
position: absolute;
|
|
2604
2623
|
width: 20px;
|
|
@@ -2619,7 +2638,7 @@ img[data-v-7dd69850] {
|
|
|
2619
2638
|
filter: brightness(1.2);
|
|
2620
2639
|
transition: filter 0.2s ease;
|
|
2621
2640
|
}
|
|
2622
|
-
.ai-tool[data-v-
|
|
2641
|
+
.ai-tool[data-v-96983cf9]:hover::before {
|
|
2623
2642
|
filter: brightness(1.3);
|
|
2624
2643
|
}
|
|
2625
2644
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
|
|
2
|
-
import { T as TextSelection } from "./chunks/converter-
|
|
3
|
-
import { _ as _export_sfc } from "./chunks/editor-
|
|
2
|
+
import { T as TextSelection } from "./chunks/converter-ClnqoStR.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-C3VH8Ia2.js";
|
|
4
4
|
const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
|
|
5
5
|
const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
|
|
6
6
|
async function baseInsightsFetch(payload, options = {}) {
|
|
@@ -5092,6 +5092,19 @@ function requireSafeRegexTest() {
|
|
|
5092
5092
|
};
|
|
5093
5093
|
return safeRegexTest;
|
|
5094
5094
|
}
|
|
5095
|
+
var generatorFunction;
|
|
5096
|
+
var hasRequiredGeneratorFunction;
|
|
5097
|
+
function requireGeneratorFunction() {
|
|
5098
|
+
if (hasRequiredGeneratorFunction) return generatorFunction;
|
|
5099
|
+
hasRequiredGeneratorFunction = 1;
|
|
5100
|
+
const cached = (
|
|
5101
|
+
/** @type {GeneratorFunctionConstructor} */
|
|
5102
|
+
function* () {
|
|
5103
|
+
}.constructor
|
|
5104
|
+
);
|
|
5105
|
+
generatorFunction = () => cached;
|
|
5106
|
+
return generatorFunction;
|
|
5107
|
+
}
|
|
5095
5108
|
var isGeneratorFunction;
|
|
5096
5109
|
var hasRequiredIsGeneratorFunction;
|
|
5097
5110
|
function requireIsGeneratorFunction() {
|
|
@@ -5104,16 +5117,7 @@ function requireIsGeneratorFunction() {
|
|
|
5104
5117
|
var getProto2 = requireGetProto();
|
|
5105
5118
|
var toStr = callBound2("Object.prototype.toString");
|
|
5106
5119
|
var fnToStr = callBound2("Function.prototype.toString");
|
|
5107
|
-
var
|
|
5108
|
-
if (!hasToStringTag) {
|
|
5109
|
-
return false;
|
|
5110
|
-
}
|
|
5111
|
-
try {
|
|
5112
|
-
return Function("return function*() {}")();
|
|
5113
|
-
} catch (e) {
|
|
5114
|
-
}
|
|
5115
|
-
};
|
|
5116
|
-
var GeneratorFunction;
|
|
5120
|
+
var getGeneratorFunction = /* @__PURE__ */ requireGeneratorFunction();
|
|
5117
5121
|
isGeneratorFunction = function isGeneratorFunction2(fn) {
|
|
5118
5122
|
if (typeof fn !== "function") {
|
|
5119
5123
|
return false;
|
|
@@ -5128,14 +5132,8 @@ function requireIsGeneratorFunction() {
|
|
|
5128
5132
|
if (!getProto2) {
|
|
5129
5133
|
return false;
|
|
5130
5134
|
}
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
GeneratorFunction = generatorFunc ? (
|
|
5134
|
-
/** @type {GeneratorFunctionConstructor} */
|
|
5135
|
-
getProto2(generatorFunc)
|
|
5136
|
-
) : false;
|
|
5137
|
-
}
|
|
5138
|
-
return getProto2(fn) === GeneratorFunction;
|
|
5135
|
+
var GeneratorFunction = getGeneratorFunction();
|
|
5136
|
+
return GeneratorFunction && getProto2(fn) === GeneratorFunction.prototype;
|
|
5139
5137
|
};
|
|
5140
5138
|
return isGeneratorFunction;
|
|
5141
5139
|
}
|
|
@@ -31885,7 +31883,8 @@ generateXml_fn = function(node) {
|
|
|
31885
31883
|
}
|
|
31886
31884
|
if (elements) {
|
|
31887
31885
|
if (name === "w:instrText") {
|
|
31888
|
-
|
|
31886
|
+
const textContent = (elements || []).map((child) => typeof child?.text === "string" ? child.text : "").join("");
|
|
31887
|
+
tags.push(__privateMethod(this, _DocxExporter_instances, replaceSpecialCharacters_fn).call(this, textContent));
|
|
31889
31888
|
} else if (name === "w:t" || name === "w:delText" || name === "wp:posOffset") {
|
|
31890
31889
|
try {
|
|
31891
31890
|
let text = String(elements[0].text);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, aw as commonjsGlobal, B as Buffer, ax as getDefaultExportFromCjs, ay as getContentTypesFromXml, az as xmljs } from "./converter-
|
|
1
|
+
import { p as process$1, aw as commonjsGlobal, B as Buffer, ax as getDefaultExportFromCjs, ay as getContentTypesFromXml, az as xmljs } from "./converter-ClnqoStR.js";
|
|
2
2
|
function commonjsRequire(path) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|