@bendyline/docblocks-react 2.7.3 → 2.7.4
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/THIRD_PARTY_NOTICES.txt +23 -23
- package/dist/{AiDiagrams-QE3LVYFK.js → AiDiagrams-QZMJNGDT.js} +3 -3
- package/dist/{AiEditorAssistant-YLJ5OZK2.js → AiEditorAssistant-4HFFGVU4.js} +5 -5
- package/dist/{AiStudyDialog-4TQZZGU3.js → AiStudyDialog-P3E7PJV5.js} +2 -2
- package/dist/{AudioExportDialog-F23QXNPB.js → AudioExportDialog-IOYIEAER.js} +1 -1
- package/dist/{DocumentConflictDialog-5LRVIGXS.js → DocumentConflictDialog-DZ2BV2IH.js} +1 -1
- package/dist/ExportDialog-LGWBXIWN.js +9 -0
- package/dist/{ExportToolbarControls-A2YBKUUD.js → ExportToolbarControls-HOV424TO.js} +84 -13
- package/dist/{GitUI-RCWUZVS6.js → GitUI-F3CNBURE.js} +1 -1
- package/dist/{KeyboardShortcutsDialog-G5OBDTNR.js → KeyboardShortcutsDialog-HVKDFP5Z.js} +1 -1
- package/dist/{PresentationMaker-P2JP6UUX.js → PresentationMaker-MUMFAXEI.js} +3 -3
- package/dist/{QuickOpenDialog-2KK4SEBU.js → QuickOpenDialog-ENVFGIHS.js} +1 -1
- package/dist/{Settings-ByNImjk5.d.ts → Settings-CfhY489G.d.ts} +1 -1
- package/dist/{ShareDialog-XUA2OVGI.js → ShareDialog-PF7D7ORP.js} +1 -1
- package/dist/{SpeechToolbarControl-CLU7RB2G.js → SpeechToolbarControl-KNI2C4JJ.js} +1 -1
- package/dist/{TextFromNarration-NITJQ4IB.js → TextFromNarration-EYOMW2IW.js} +1 -1
- package/dist/{chunk-6PA7QBZT.js → chunk-7CSBRAMT.js} +20 -4
- package/dist/{chunk-YPIVCCTB.js → chunk-7V34VUK6.js} +1 -1
- package/dist/{chunk-3CE5RH2B.js → chunk-D4HIOS7E.js} +2 -2
- package/dist/{chunk-ZMCQO57Q.js → chunk-FBPCURCS.js} +8 -1
- package/dist/{chunk-Y5OE3HJC.js → chunk-GFK4TCKN.js} +11 -5
- package/dist/chunk-H3BK5MK6.js +34 -0
- package/dist/{chunk-6B7G33D5.js → chunk-KBUHWZCF.js} +1 -1
- package/dist/{chunk-EOU2JWAQ.js → chunk-PNZFIIWW.js} +70 -11
- package/dist/{chunk-56KO2LYN.js → chunk-VJPGZCFS.js} +4 -0
- package/dist/editor.js +3 -3
- package/dist/export/index.d.ts +9 -2
- package/dist/export/index.js +4 -4
- package/dist/index.d.ts +7 -3
- package/dist/index.js +503 -186
- package/dist/{run-export-OHRNT2TP.js → run-export-SPNNH32M.js} +1 -1
- package/dist/settings/index.d.ts +1 -1
- package/dist/settings/index.js +2 -2
- package/package.json +8 -8
- package/src/styles/docblocks.css +32 -9
- package/dist/ExportDialog-JRVZCG3J.js +0 -9
- package/dist/chunk-YBEYTVU2.js +0 -12
package/THIRD_PARTY_NOTICES.txt
CHANGED
|
@@ -15,14 +15,14 @@ This notice is included in the published npm tarball. Transitive packages instal
|
|
|
15
15
|
| Package | Version | License | Source |
|
|
16
16
|
| --- | --- | --- | --- |
|
|
17
17
|
| @antfu/install-pkg | 2.1.0 | MIT | https://github.com/antfu-collective/install-pkg |
|
|
18
|
-
| @bendyline/squisq | 2.12.
|
|
18
|
+
| @bendyline/squisq | 2.12.5 | MIT | https://github.com/bendyline/squisq |
|
|
19
19
|
| @bendyline/squisq-calc | 2.11.2 | MIT | https://github.com/bendyline/squisq |
|
|
20
|
-
| @bendyline/squisq-editor-react | 2.12.
|
|
21
|
-
| @bendyline/squisq-formats | 2.7.
|
|
22
|
-
| @bendyline/squisq-grid-react | 2.11.
|
|
23
|
-
| @bendyline/squisq-react | 2.12.
|
|
24
|
-
| @bendyline/squisq-video | 2.4.
|
|
25
|
-
| @bendyline/squisq-video-react | 2.5.
|
|
20
|
+
| @bendyline/squisq-editor-react | 2.12.10 | MIT | https://github.com/bendyline/squisq |
|
|
21
|
+
| @bendyline/squisq-formats | 2.7.6 | MIT | https://github.com/bendyline/squisq |
|
|
22
|
+
| @bendyline/squisq-grid-react | 2.11.28 | MIT | https://github.com/bendyline/squisq |
|
|
23
|
+
| @bendyline/squisq-react | 2.12.6 | MIT | https://github.com/bendyline/squisq |
|
|
24
|
+
| @bendyline/squisq-video | 2.4.5 | MIT | https://github.com/bendyline/squisq |
|
|
25
|
+
| @bendyline/squisq-video-react | 2.5.7 | MIT | https://github.com/bendyline/squisq |
|
|
26
26
|
| @braintree/sanitize-url | 7.1.2 | MIT | https://github.com/braintree/sanitize-url |
|
|
27
27
|
| @chevrotain/types | 11.1.2 | Apache-2.0 | https://github.com/Chevrotain/chevrotain |
|
|
28
28
|
| @ffmpeg/core | 0.12.10 | GPL-2.0-or-later | https://github.com/ffmpegwasm/ffmpeg.wasm |
|
|
@@ -437,7 +437,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
437
437
|
SOFTWARE.
|
|
438
438
|
|
|
439
439
|
==============================================================================
|
|
440
|
-
Components: @bendyline/squisq-calc@2.11.2, @bendyline/squisq-editor-react@2.12.
|
|
440
|
+
Components: @bendyline/squisq-calc@2.11.2, @bendyline/squisq-editor-react@2.12.10, @bendyline/squisq-formats@2.7.6, @bendyline/squisq-grid-react@2.11.28, @bendyline/squisq-react@2.12.6, @bendyline/squisq-video-react@2.5.7, @bendyline/squisq-video@2.4.5, @bendyline/squisq@2.12.5
|
|
441
441
|
Source files: node_modules/@bendyline/squisq-calc/LICENSE, node_modules/@bendyline/squisq-editor-react/LICENSE, node_modules/@bendyline/squisq-formats/LICENSE, node_modules/@bendyline/squisq-grid-react/LICENSE, node_modules/@bendyline/squisq-react/LICENSE, node_modules/@bendyline/squisq-video-react/LICENSE, node_modules/@bendyline/squisq-video/LICENSE, node_modules/@bendyline/squisq/LICENSE
|
|
442
442
|
==============================================================================
|
|
443
443
|
MIT License
|
|
@@ -637,7 +637,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
637
637
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
638
638
|
|
|
639
639
|
==============================================================================
|
|
640
|
-
Components: @bendyline/squisq-editor-react@2.12.
|
|
640
|
+
Components: @bendyline/squisq-editor-react@2.12.10
|
|
641
641
|
Source files: node_modules/@bendyline/squisq-editor-react/NOTICE.md
|
|
642
642
|
==============================================================================
|
|
643
643
|
# Third-Party Notices for @bendyline/squisq-editor-react
|
|
@@ -686,7 +686,7 @@ Exact third-party license texts for the bundled adapter, loader, state helper,
|
|
|
686
686
|
and Font Awesome assets are shipped in THIRD_PARTY_LICENSES.txt.
|
|
687
687
|
|
|
688
688
|
==============================================================================
|
|
689
|
-
Components: @bendyline/squisq-editor-react@2.12.
|
|
689
|
+
Components: @bendyline/squisq-editor-react@2.12.10, @tiptap/core@2.27.3, @tiptap/extension-blockquote@2.27.3, @tiptap/extension-bold@2.27.3, @tiptap/extension-bubble-menu@2.27.3, @tiptap/extension-bullet-list@2.27.3, @tiptap/extension-code-block@2.27.3, @tiptap/extension-code@2.27.3, @tiptap/extension-document@2.27.3, @tiptap/extension-dropcursor@2.27.3, @tiptap/extension-floating-menu@2.27.3, @tiptap/extension-gapcursor@2.27.3, @tiptap/extension-hard-break@2.27.3, @tiptap/extension-heading@2.27.3, @tiptap/extension-history@2.27.3, @tiptap/extension-horizontal-rule@2.27.3, @tiptap/extension-image@2.27.3, @tiptap/extension-italic@2.27.3, @tiptap/extension-link@2.27.3, @tiptap/extension-list-item@2.27.3, @tiptap/extension-mention@2.27.3, @tiptap/extension-ordered-list@2.27.3, @tiptap/extension-paragraph@2.27.3, @tiptap/extension-placeholder@2.27.3, @tiptap/extension-strike@2.27.3, @tiptap/extension-table-cell@2.27.3, @tiptap/extension-table-header@2.27.3, @tiptap/extension-table-row@2.27.3, @tiptap/extension-table@2.27.3, @tiptap/extension-task-item@2.27.3, @tiptap/extension-task-list@2.27.3, @tiptap/extension-text-style@2.27.3, @tiptap/extension-text@2.27.3, @tiptap/pm@2.27.3, @tiptap/react@2.27.3, @tiptap/starter-kit@2.27.3, @tiptap/suggestion@2.27.3
|
|
690
690
|
Source files: node_modules/@bendyline/squisq-editor-react/THIRD_PARTY_LICENSES.txt
|
|
691
691
|
==============================================================================
|
|
692
692
|
THIRD-PARTY LICENSES FOR @bendyline/squisq-editor-react
|
|
@@ -1627,7 +1627,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
1627
1627
|
**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.**
|
|
1628
1628
|
|
|
1629
1629
|
==============================================================================
|
|
1630
|
-
Components: @bendyline/squisq-formats@2.7.
|
|
1630
|
+
Components: @bendyline/squisq-formats@2.7.6
|
|
1631
1631
|
Source files: node_modules/@bendyline/squisq-formats/NOTICE.md
|
|
1632
1632
|
==============================================================================
|
|
1633
1633
|
# Third-Party Notices for @bendyline/squisq-formats
|
|
@@ -1653,7 +1653,7 @@ texts for these dependencies are included in their respective npm
|
|
|
1653
1653
|
distributions and source repositories.
|
|
1654
1654
|
|
|
1655
1655
|
==============================================================================
|
|
1656
|
-
Components: @bendyline/squisq-formats@2.7.
|
|
1656
|
+
Components: @bendyline/squisq-formats@2.7.6
|
|
1657
1657
|
Source files: node_modules/@bendyline/squisq-formats/THIRD_PARTY_LICENSES.txt
|
|
1658
1658
|
==============================================================================
|
|
1659
1659
|
THIRD-PARTY LICENSES FOR @bendyline/squisq-formats
|
|
@@ -2027,7 +2027,7 @@ given a different name.
|
|
|
2027
2027
|
$Id$
|
|
2028
2028
|
|
|
2029
2029
|
==============================================================================
|
|
2030
|
-
Components: @bendyline/squisq-grid-react@2.11.
|
|
2030
|
+
Components: @bendyline/squisq-grid-react@2.11.28
|
|
2031
2031
|
Source files: node_modules/@bendyline/squisq-grid-react/NOTICE.md
|
|
2032
2032
|
==============================================================================
|
|
2033
2033
|
# Third-Party Notices for @bendyline/squisq-grid-react
|
|
@@ -2048,7 +2048,7 @@ Copyright and complete license texts for these dependencies are included in
|
|
|
2048
2048
|
their respective npm distributions and source repositories.
|
|
2049
2049
|
|
|
2050
2050
|
==============================================================================
|
|
2051
|
-
Components: @bendyline/squisq-grid-react@2.11.
|
|
2051
|
+
Components: @bendyline/squisq-grid-react@2.11.28
|
|
2052
2052
|
Source files: node_modules/@bendyline/squisq-grid-react/THIRD_PARTY_LICENSES.txt
|
|
2053
2053
|
==============================================================================
|
|
2054
2054
|
THIRD-PARTY LICENSES FOR @bendyline/squisq-grid-react
|
|
@@ -2060,7 +2060,7 @@ repository license, the pinned upstream copy is vendored and identified below.
|
|
|
2060
2060
|
COMPONENTS
|
|
2061
2061
|
|
|
2062
2062
|
==============================================================================
|
|
2063
|
-
Components: @bendyline/squisq-react@2.12.
|
|
2063
|
+
Components: @bendyline/squisq-react@2.12.6
|
|
2064
2064
|
Source files: node_modules/@bendyline/squisq-react/NOTICE.md
|
|
2065
2065
|
==============================================================================
|
|
2066
2066
|
# Third-Party Notices for @bendyline/squisq-react
|
|
@@ -2085,7 +2085,7 @@ third-party license texts for the complete standalone bundle graph are shipped
|
|
|
2085
2085
|
in THIRD_PARTY_LICENSES.txt.
|
|
2086
2086
|
|
|
2087
2087
|
==============================================================================
|
|
2088
|
-
Components: @bendyline/squisq-react@2.12.
|
|
2088
|
+
Components: @bendyline/squisq-react@2.12.6
|
|
2089
2089
|
Source files: node_modules/@bendyline/squisq-react/THIRD_PARTY_LICENSES.txt
|
|
2090
2090
|
==============================================================================
|
|
2091
2091
|
THIRD-PARTY LICENSES FOR @bendyline/squisq-react
|
|
@@ -6572,7 +6572,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
6572
6572
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
6573
6573
|
|
|
6574
6574
|
==============================================================================
|
|
6575
|
-
Components: @bendyline/squisq-video-react@2.5.
|
|
6575
|
+
Components: @bendyline/squisq-video-react@2.5.7
|
|
6576
6576
|
Source files: node_modules/@bendyline/squisq-video-react/COPYING.GPL-2.0.txt
|
|
6577
6577
|
==============================================================================
|
|
6578
6578
|
GNU GENERAL PUBLIC LICENSE
|
|
@@ -6915,7 +6915,7 @@ library. If this is what you want to do, use the GNU Lesser General
|
|
|
6915
6915
|
Public License instead of this License.
|
|
6916
6916
|
|
|
6917
6917
|
==============================================================================
|
|
6918
|
-
Components: @bendyline/squisq-video-react@2.5.
|
|
6918
|
+
Components: @bendyline/squisq-video-react@2.5.7
|
|
6919
6919
|
Source files: node_modules/@bendyline/squisq-video-react/NOTICE.md
|
|
6920
6920
|
==============================================================================
|
|
6921
6921
|
# Third-Party Notices for @bendyline/squisq-video-react
|
|
@@ -6971,7 +6971,7 @@ at the version listed above and from https://github.com/Vanilagy/mediabunny.
|
|
|
6971
6971
|
The complete MPL-2.0 text is shipped in THIRD_PARTY_LICENSES.txt.
|
|
6972
6972
|
|
|
6973
6973
|
==============================================================================
|
|
6974
|
-
Components: @bendyline/squisq-video-react@2.5.
|
|
6974
|
+
Components: @bendyline/squisq-video-react@2.5.7, @ffmpeg/core@0.12.10, @ffmpeg/ffmpeg@0.12.15, @ffmpeg/types@0.12.4, @ffmpeg/util@0.12.2
|
|
6975
6975
|
Source files: node_modules/@bendyline/squisq-video-react/THIRD_PARTY_LICENSES.txt
|
|
6976
6976
|
==============================================================================
|
|
6977
6977
|
THIRD-PARTY LICENSES FOR @bendyline/squisq-video-react
|
|
@@ -7413,7 +7413,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
7413
7413
|
SOFTWARE.
|
|
7414
7414
|
|
|
7415
7415
|
==============================================================================
|
|
7416
|
-
Components: @bendyline/squisq-video@2.4.
|
|
7416
|
+
Components: @bendyline/squisq-video@2.4.5
|
|
7417
7417
|
Source files: node_modules/@bendyline/squisq-video/NOTICE.md
|
|
7418
7418
|
==============================================================================
|
|
7419
7419
|
# Third-Party Notices for @bendyline/squisq-video
|
|
@@ -7438,7 +7438,7 @@ Copyright and complete license texts for the listed dependencies are included
|
|
|
7438
7438
|
in their respective npm distributions and source repositories.
|
|
7439
7439
|
|
|
7440
7440
|
==============================================================================
|
|
7441
|
-
Components: @bendyline/squisq-video@2.4.
|
|
7441
|
+
Components: @bendyline/squisq-video@2.4.5
|
|
7442
7442
|
Source files: node_modules/@bendyline/squisq-video/THIRD_PARTY_LICENSES.txt
|
|
7443
7443
|
==============================================================================
|
|
7444
7444
|
THIRD-PARTY LICENSES FOR @bendyline/squisq-video
|
|
@@ -7450,7 +7450,7 @@ repository license, the pinned upstream copy is vendored and identified below.
|
|
|
7450
7450
|
COMPONENTS
|
|
7451
7451
|
|
|
7452
7452
|
==============================================================================
|
|
7453
|
-
Components: @bendyline/squisq@2.12.
|
|
7453
|
+
Components: @bendyline/squisq@2.12.5
|
|
7454
7454
|
Source files: node_modules/@bendyline/squisq/NOTICE.md
|
|
7455
7455
|
==============================================================================
|
|
7456
7456
|
# Third-Party Notices for @bendyline/squisq
|
|
@@ -7481,7 +7481,7 @@ third-party license texts for bundled code and data are shipped in
|
|
|
7481
7481
|
THIRD_PARTY_LICENSES.txt.
|
|
7482
7482
|
|
|
7483
7483
|
==============================================================================
|
|
7484
|
-
Components: @bendyline/squisq@2.12.
|
|
7484
|
+
Components: @bendyline/squisq@2.12.5
|
|
7485
7485
|
Source files: node_modules/@bendyline/squisq/THIRD_PARTY_LICENSES.txt
|
|
7486
7486
|
==============================================================================
|
|
7487
7487
|
THIRD-PARTY LICENSES FOR @bendyline/squisq
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
AiDiagramDialog,
|
|
3
3
|
AiIllustratePanel,
|
|
4
4
|
DiagramPreview
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-D4HIOS7E.js";
|
|
6
|
+
import "./chunk-7V34VUK6.js";
|
|
7
7
|
import "./chunk-K4I3NJFL.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-VJPGZCFS.js";
|
|
9
9
|
export {
|
|
10
10
|
AiDiagramDialog,
|
|
11
11
|
AiIllustratePanel,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AiDiagramDialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D4HIOS7E.js";
|
|
4
4
|
import {
|
|
5
5
|
AiGenerationStatus,
|
|
6
6
|
STUDY_AID_KINDS,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-XNT66JC2.js";
|
|
9
9
|
import {
|
|
10
10
|
useConfirmDialog
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KBUHWZCF.js";
|
|
12
12
|
import {
|
|
13
13
|
useMenuKeyboard
|
|
14
14
|
} from "./chunk-GMA4KGGO.js";
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
reviewDocumentCharacters,
|
|
29
29
|
sanitizeGeneratedMarkdown,
|
|
30
30
|
withoutPictureFindings
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7V34VUK6.js";
|
|
32
32
|
import {
|
|
33
33
|
unavailableSentence,
|
|
34
34
|
useAiStatus
|
|
35
35
|
} from "./chunk-K4I3NJFL.js";
|
|
36
36
|
import {
|
|
37
37
|
Dialog
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-VJPGZCFS.js";
|
|
39
39
|
|
|
40
40
|
// src/Ai/AiEditorAssistant.tsx
|
|
41
41
|
import {
|
|
@@ -83,7 +83,7 @@ function draftCapacityNotice(request, model, expectedOutput = "") {
|
|
|
83
83
|
// src/Ai/AiEditorAssistant.tsx
|
|
84
84
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
85
85
|
var AiStudyDialog = lazy(
|
|
86
|
-
() => import("./AiStudyDialog-
|
|
86
|
+
() => import("./AiStudyDialog-P3E7PJV5.js").then((module) => ({ default: module.AiStudyDialog }))
|
|
87
87
|
);
|
|
88
88
|
function AiToolbarControl({
|
|
89
89
|
ai,
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
extractNumbers,
|
|
26
26
|
sanitizeGeneratedMarkdown,
|
|
27
27
|
stripReasoning
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-7V34VUK6.js";
|
|
29
29
|
import {
|
|
30
30
|
unavailableSentence,
|
|
31
31
|
useAiStatus
|
|
32
32
|
} from "./chunk-K4I3NJFL.js";
|
|
33
33
|
import {
|
|
34
34
|
Dialog
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-VJPGZCFS.js";
|
|
36
36
|
|
|
37
37
|
// src/Ai/AiStudyDialog.tsx
|
|
38
38
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -16,8 +16,9 @@ import {
|
|
|
16
16
|
buildExportFilename
|
|
17
17
|
} from "./chunk-5O5YTOXG.js";
|
|
18
18
|
import {
|
|
19
|
+
OpenAfterSaveCheckbox,
|
|
19
20
|
loadTransformStyleSummaries
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-H3BK5MK6.js";
|
|
21
22
|
import {
|
|
22
23
|
FORMAT_EXTENSIONS,
|
|
23
24
|
loadLastExportOptions,
|
|
@@ -26,7 +27,7 @@ import {
|
|
|
26
27
|
} from "./chunk-6MSHXQNB.js";
|
|
27
28
|
import {
|
|
28
29
|
Dialog
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VJPGZCFS.js";
|
|
30
31
|
|
|
31
32
|
// src/Export/ExportToolbarControls.tsx
|
|
32
33
|
import {
|
|
@@ -45,22 +46,40 @@ import {
|
|
|
45
46
|
} from "@bendyline/squisq-editor-react";
|
|
46
47
|
import { readFrontmatterThemeId } from "@bendyline/squisq/markdown";
|
|
47
48
|
import { getThemeSummaries } from "@bendyline/squisq/schemas";
|
|
49
|
+
|
|
50
|
+
// src/preferences/export.ts
|
|
51
|
+
var STORAGE_KEY = "docblocks:openAfterExport";
|
|
52
|
+
function loadOpenAfterExport() {
|
|
53
|
+
try {
|
|
54
|
+
return localStorage.getItem(STORAGE_KEY) === "true";
|
|
55
|
+
} catch {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function saveOpenAfterExport(value) {
|
|
60
|
+
try {
|
|
61
|
+
localStorage.setItem(STORAGE_KEY, String(value));
|
|
62
|
+
} catch {
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// src/Export/ExportToolbarControls.tsx
|
|
48
67
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
49
68
|
var ExportDialog = lazy(
|
|
50
|
-
() => import("./ExportDialog-
|
|
69
|
+
() => import("./ExportDialog-LGWBXIWN.js").then((module) => ({ default: module.ExportDialog }))
|
|
51
70
|
);
|
|
52
71
|
var ShareDialog = lazy(
|
|
53
|
-
() => import("./ShareDialog-
|
|
72
|
+
() => import("./ShareDialog-PF7D7ORP.js").then((module) => ({ default: module.ShareDialog }))
|
|
54
73
|
);
|
|
55
74
|
var runExportModulePromise = null;
|
|
56
75
|
function loadRunExportModule() {
|
|
57
|
-
runExportModulePromise ?? (runExportModulePromise = import("./run-export-
|
|
76
|
+
runExportModulePromise ?? (runExportModulePromise = import("./run-export-SPNNH32M.js"));
|
|
58
77
|
return runExportModulePromise;
|
|
59
78
|
}
|
|
60
79
|
var ExportCancelledError = class extends Error {
|
|
61
80
|
};
|
|
62
81
|
var AudioExportDialog = lazy(
|
|
63
|
-
() => import("./AudioExportDialog-
|
|
82
|
+
() => import("./AudioExportDialog-IOYIEAER.js").then((module) => ({
|
|
64
83
|
default: module.AudioExportDialog
|
|
65
84
|
}))
|
|
66
85
|
);
|
|
@@ -159,6 +178,12 @@ function ExportToolbarControls({
|
|
|
159
178
|
const [transformSummaries, setTransformSummaries] = useState([]);
|
|
160
179
|
const [exporting, setExporting] = useState(false);
|
|
161
180
|
const [exportError, setExportError] = useState(null);
|
|
181
|
+
const [openAfterSave, setOpenAfterSave] = useState(loadOpenAfterExport);
|
|
182
|
+
const [openError, setOpenError] = useState(null);
|
|
183
|
+
const handleOpenAfterSaveChange = useCallback((checked) => {
|
|
184
|
+
setOpenAfterSave(checked);
|
|
185
|
+
saveOpenAfterExport(checked);
|
|
186
|
+
}, []);
|
|
162
187
|
const [exportNotice, setExportNotice] = useState(null);
|
|
163
188
|
const [destinationTarget, setDestinationTarget] = useState(null);
|
|
164
189
|
const [quickDestination, setQuickDestination] = useState(null);
|
|
@@ -301,6 +326,7 @@ function ExportToolbarControls({
|
|
|
301
326
|
setVideoModalOpen(false);
|
|
302
327
|
setVideoDoc(null);
|
|
303
328
|
setVideoLoadError(null);
|
|
329
|
+
setOpenError(null);
|
|
304
330
|
}, []);
|
|
305
331
|
const handleOptionsChange = useCallback(
|
|
306
332
|
(options) => {
|
|
@@ -328,13 +354,27 @@ function ExportToolbarControls({
|
|
|
328
354
|
const savedTarget = await destinationAdapter.saveBlob(blob, filename, target);
|
|
329
355
|
if (!savedTarget) throw new ExportCancelledError();
|
|
330
356
|
setDestinationTarget(savedTarget);
|
|
357
|
+
return savedTarget;
|
|
331
358
|
},
|
|
332
359
|
[destinationAdapter]
|
|
333
360
|
);
|
|
361
|
+
const openSaved = useCallback(
|
|
362
|
+
async (target) => {
|
|
363
|
+
if (!openAfterSave || !destinationAdapter?.openSaved) return;
|
|
364
|
+
try {
|
|
365
|
+
await destinationAdapter.openSaved(target);
|
|
366
|
+
} catch (caught) {
|
|
367
|
+
const detail = hostErrorDetail(caught);
|
|
368
|
+
setOpenError(`The file was saved, but it couldn't be opened.${detail ? ` ${detail}` : ""}`);
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
[destinationAdapter, openAfterSave]
|
|
372
|
+
);
|
|
334
373
|
const handleExport = useCallback(
|
|
335
374
|
async (opts) => {
|
|
336
375
|
setExporting(true);
|
|
337
376
|
setExportError(null);
|
|
377
|
+
setOpenError(null);
|
|
338
378
|
setExportNotice(null);
|
|
339
379
|
try {
|
|
340
380
|
let exportTarget = destinationTarget;
|
|
@@ -345,6 +385,7 @@ function ExportToolbarControls({
|
|
|
345
385
|
setDestinationTarget(exportTarget);
|
|
346
386
|
}
|
|
347
387
|
const { runExport } = await loadRunExportModule();
|
|
388
|
+
let savedTarget;
|
|
348
389
|
const result = await runExport(
|
|
349
390
|
markdownSource,
|
|
350
391
|
selectedFile,
|
|
@@ -353,10 +394,13 @@ function ExportToolbarControls({
|
|
|
353
394
|
fileShare && destinationAdapter?.shareBlob ? async (blob, filename) => {
|
|
354
395
|
const outcome = await destinationAdapter.shareBlob(blob, filename);
|
|
355
396
|
if (outcome === "cancelled") throw new ExportCancelledError();
|
|
356
|
-
} : destinationAdapter ? (blob, filename) =>
|
|
397
|
+
} : destinationAdapter ? async (blob, filename) => {
|
|
398
|
+
savedTarget = await saveToDestination(blob, filename, exportTarget);
|
|
399
|
+
} : saveBlob
|
|
357
400
|
);
|
|
358
401
|
setDialogOpen(false);
|
|
359
402
|
if (result.warnings.length > 0) setExportNotice(result.warnings);
|
|
403
|
+
if (savedTarget) await openSaved(savedTarget);
|
|
360
404
|
} catch (caught) {
|
|
361
405
|
if (!(caught instanceof ExportCancelledError)) setExportError(exportErrorMessage(caught));
|
|
362
406
|
} finally {
|
|
@@ -371,7 +415,8 @@ function ExportToolbarControls({
|
|
|
371
415
|
destinationAdapter,
|
|
372
416
|
destinationTarget,
|
|
373
417
|
saveToDestination,
|
|
374
|
-
saveBlob
|
|
418
|
+
saveBlob,
|
|
419
|
+
openSaved
|
|
375
420
|
]
|
|
376
421
|
);
|
|
377
422
|
const handleQuickExport = useCallback(async () => {
|
|
@@ -379,6 +424,7 @@ function ExportToolbarControls({
|
|
|
379
424
|
closeMenu(true);
|
|
380
425
|
setExporting(true);
|
|
381
426
|
setExportError(null);
|
|
427
|
+
setOpenError(null);
|
|
382
428
|
setExportNotice(null);
|
|
383
429
|
try {
|
|
384
430
|
saveExportOptions(lastOptions);
|
|
@@ -394,14 +440,18 @@ function ExportToolbarControls({
|
|
|
394
440
|
}
|
|
395
441
|
}
|
|
396
442
|
const { runExport } = await loadRunExportModule();
|
|
443
|
+
let savedTarget;
|
|
397
444
|
const result = await runExport(
|
|
398
445
|
markdownSource,
|
|
399
446
|
selectedFile,
|
|
400
447
|
lastOptions,
|
|
401
448
|
mediaContainer,
|
|
402
|
-
destinationAdapter ? async (blob, filename) =>
|
|
449
|
+
destinationAdapter ? async (blob, filename) => {
|
|
450
|
+
savedTarget = await saveToDestination(blob, filename, quickTarget);
|
|
451
|
+
} : saveBlob
|
|
403
452
|
);
|
|
404
453
|
if (result.warnings.length > 0) setExportNotice(result.warnings);
|
|
454
|
+
if (savedTarget) await openSaved(savedTarget);
|
|
405
455
|
} catch (caught) {
|
|
406
456
|
if (!(caught instanceof ExportCancelledError)) setExportError(exportErrorMessage(caught));
|
|
407
457
|
} finally {
|
|
@@ -416,7 +466,8 @@ function ExportToolbarControls({
|
|
|
416
466
|
saveBlob,
|
|
417
467
|
saveToDestination,
|
|
418
468
|
selectedFile,
|
|
419
|
-
quickDestinationTarget
|
|
469
|
+
quickDestinationTarget,
|
|
470
|
+
openSaved
|
|
420
471
|
]);
|
|
421
472
|
const handleDismissExportError = useCallback(() => {
|
|
422
473
|
setExportError(null);
|
|
@@ -425,8 +476,16 @@ function ExportToolbarControls({
|
|
|
425
476
|
setExportNotice(null);
|
|
426
477
|
}, []);
|
|
427
478
|
const videoSaveOutput = useMemo(
|
|
428
|
-
() => destinationAdapter ? createImageSaveOutput(
|
|
429
|
-
|
|
479
|
+
() => destinationAdapter ? createImageSaveOutput({
|
|
480
|
+
...destinationAdapter,
|
|
481
|
+
saveBlob: async (blob, filename, target) => {
|
|
482
|
+
setOpenError(null);
|
|
483
|
+
const saved = await destinationAdapter.saveBlob(blob, filename, target);
|
|
484
|
+
if (saved) await openSaved(saved);
|
|
485
|
+
return saved;
|
|
486
|
+
}
|
|
487
|
+
}) : void 0,
|
|
488
|
+
[destinationAdapter, openSaved]
|
|
430
489
|
);
|
|
431
490
|
const LoadedVideoExportModal = videoModules?.Modal;
|
|
432
491
|
const showAnimatedGifExport = showVideoExport && typeof ffmpegWasm?.coreURL === "string" && ffmpegWasm.coreURL.length > 0;
|
|
@@ -606,6 +665,7 @@ function ExportToolbarControls({
|
|
|
606
665
|
documentThemes,
|
|
607
666
|
exporting,
|
|
608
667
|
error: exportError,
|
|
668
|
+
openAfterSave: !fileShare && destinationAdapter?.openSaved ? { checked: openAfterSave, onChange: handleOpenAfterSaveChange } : void 0,
|
|
609
669
|
destination: destinationAdapter && destinationAdapter.showDestination !== false ? {
|
|
610
670
|
value: destinationTarget?.displayPath ?? "",
|
|
611
671
|
onPick: handlePickDestination,
|
|
@@ -644,7 +704,8 @@ function ExportToolbarControls({
|
|
|
644
704
|
children: /* @__PURE__ */ jsx("p", { className: "db-export-error", role: "alert", children: exportError })
|
|
645
705
|
}
|
|
646
706
|
),
|
|
647
|
-
|
|
707
|
+
openError && !videoModalOpen && /* @__PURE__ */ jsx(Dialog, { title: "Open saved export", onClose: () => setOpenError(null), children: /* @__PURE__ */ jsx("p", { role: "alert", children: openError }) }),
|
|
708
|
+
exportNotice && !dialogOpen && !exportError && !openError && /* @__PURE__ */ jsx(
|
|
648
709
|
Dialog,
|
|
649
710
|
{
|
|
650
711
|
title: "Export Document",
|
|
@@ -691,6 +752,16 @@ function ExportToolbarControls({
|
|
|
691
752
|
mediaEditRenders,
|
|
692
753
|
colorScheme,
|
|
693
754
|
uiPalette: videoExportPalette,
|
|
755
|
+
saveOptions: destinationAdapter?.openSaved ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
756
|
+
/* @__PURE__ */ jsx(
|
|
757
|
+
OpenAfterSaveCheckbox,
|
|
758
|
+
{
|
|
759
|
+
checked: openAfterSave,
|
|
760
|
+
onChange: handleOpenAfterSaveChange
|
|
761
|
+
}
|
|
762
|
+
),
|
|
763
|
+
openError && /* @__PURE__ */ jsx("p", { role: "alert", children: openError })
|
|
764
|
+
] }) : void 0,
|
|
694
765
|
defaultConfig: {
|
|
695
766
|
audioPolicy: "best-effort",
|
|
696
767
|
...ffmpegWasm ? { ffmpegWasm } : {},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PresentationMaker
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-PNZFIIWW.js";
|
|
4
|
+
import "./chunk-7V34VUK6.js";
|
|
5
5
|
import "./chunk-K4I3NJFL.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-VJPGZCFS.js";
|
|
7
7
|
export {
|
|
8
8
|
PresentationMaker
|
|
9
9
|
};
|
|
@@ -34,7 +34,7 @@ declare function saveInterfaceFont(value: InterfaceFontPreference): void;
|
|
|
34
34
|
* (the wire/persisted contract) and the `docblocks.writeCanvasFontScheme` enum
|
|
35
35
|
* in the VS Code `package.json`; a guard test keeps the three in sync.
|
|
36
36
|
*/
|
|
37
|
-
type WriteCanvasFontScheme = 'theme' | 'serif-sans' | 'sans-sans' | 'serif-serif' | 'pt-serif' | 'hanken' | 'playfair-pt-serif' | 'hanken-lora' | 'dm-serif-dm-sans' | 'inter';
|
|
37
|
+
type WriteCanvasFontScheme = 'theme' | 'serif-sans' | 'sans-sans' | 'serif-serif' | 'pt-serif' | 'hanken' | 'playfair-pt-serif' | 'hanken-lora' | 'dm-serif-dm-sans' | 'inter' | 'inconsolata';
|
|
38
38
|
type WriteCanvasFontSchemeGroup = 'theme' | 'system' | 'curated';
|
|
39
39
|
interface WriteCanvasFontSchemeOption {
|
|
40
40
|
id: WriteCanvasFontScheme;
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-GMA4KGGO.js";
|
|
16
16
|
import {
|
|
17
17
|
Dialog
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VJPGZCFS.js";
|
|
19
19
|
|
|
20
20
|
// src/Speech/SpeechToolbarControl.tsx
|
|
21
21
|
import { useEffect as useEffect2, useRef as useRef2, useState as useState2 } from "react";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-K4I3NJFL.js";
|
|
11
11
|
import {
|
|
12
12
|
Dialog
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VJPGZCFS.js";
|
|
14
14
|
|
|
15
15
|
// src/Speech/TextFromNarration.tsx
|
|
16
16
|
import { useEffect as useEffect3, useMemo, useRef as useRef3, useState as useState3 } from "react";
|
|
@@ -136,9 +136,14 @@ async function exportDocument(markdown, selectedFile, options, mediaContainer, s
|
|
|
136
136
|
themeId,
|
|
137
137
|
pageSize: options.pageSize,
|
|
138
138
|
images,
|
|
139
|
-
//
|
|
139
|
+
// Check fidelity before any download or destination write occurs.
|
|
140
140
|
onWarning: (message) => warnings.push(message)
|
|
141
141
|
});
|
|
142
|
+
if (warnings.length > 0) {
|
|
143
|
+
throw new Error(
|
|
144
|
+
"PDF was not saved because its fonts cannot preserve all of this document\u2019s text. Export as Word, HTML, or EPUB to keep every character. " + warnings.join(" ")
|
|
145
|
+
);
|
|
146
|
+
}
|
|
142
147
|
await saveExportBlob(new Blob([buf], { type: MIME_TYPES.pdf }), filename, saveBlob);
|
|
143
148
|
return;
|
|
144
149
|
}
|
|
@@ -157,15 +162,26 @@ async function exportDocument(markdown, selectedFile, options, mediaContainer, s
|
|
|
157
162
|
}
|
|
158
163
|
if (options.format === "pptx") {
|
|
159
164
|
const pptxModule = converterOverrides.docToPptx ? Promise.resolve({ docToPptx: converterOverrides.docToPptx }) : import("@bendyline/squisq-formats/pptx");
|
|
160
|
-
const [
|
|
165
|
+
const [
|
|
166
|
+
{ markdownToDoc },
|
|
167
|
+
{ applyTransform, PRESENTATION_KEY },
|
|
168
|
+
{ buildPreviewDoc },
|
|
169
|
+
{ docToPptx }
|
|
170
|
+
] = await Promise.all([
|
|
161
171
|
import("@bendyline/squisq/doc"),
|
|
162
172
|
import("@bendyline/squisq/transform"),
|
|
163
173
|
import("@bendyline/squisq-editor-react"),
|
|
164
174
|
pptxModule
|
|
165
175
|
]);
|
|
166
176
|
const baseDoc = markdownToDoc(doc);
|
|
167
|
-
|
|
168
|
-
|
|
177
|
+
if (!options.transformStyle) {
|
|
178
|
+
baseDoc.frontmatter = { ...baseDoc.frontmatter };
|
|
179
|
+
delete baseDoc.frontmatter["squisq-transform"];
|
|
180
|
+
delete baseDoc.frontmatter["transform-style"];
|
|
181
|
+
delete baseDoc.frontmatter[PRESENTATION_KEY];
|
|
182
|
+
}
|
|
183
|
+
const contentDoc = options.transformStyle ? applyTransform(baseDoc, options.transformStyle).doc : baseDoc;
|
|
184
|
+
const enrichedDoc = buildPreviewDoc(contentDoc);
|
|
169
185
|
if (themeId) {
|
|
170
186
|
enrichedDoc.themeId = themeId;
|
|
171
187
|
}
|