@bendyline/docblocks-react 2.7.4 → 2.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/THIRD_PARTY_NOTICES.txt +59 -28
  2. package/dist/{AiDiagrams-QZMJNGDT.js → AiDiagrams-VOCEZS6U.js} +4 -2
  3. package/dist/{AiEditorAssistant-4HFFGVU4.js → AiEditorAssistant-2MW6UYNI.js} +51 -11
  4. package/dist/{AiStudyDialog-P3E7PJV5.js → AiStudyDialog-DQZVTBI7.js} +14 -4
  5. package/dist/{AudioExportDialog-IOYIEAER.js → AudioExportDialog-EICCBSSE.js} +1 -1
  6. package/dist/{ExportToolbarControls-HOV424TO.js → ExportToolbarControls-4LYTXGT3.js} +1 -1
  7. package/dist/{PresentationMaker-MUMFAXEI.js → PresentationMaker-T526TBRJ.js} +2 -2
  8. package/dist/{SpeechToolbarControl-KNI2C4JJ.js → SpeechToolbarControl-E6OSJGHL.js} +217 -71
  9. package/dist/{TextFromNarration-EYOMW2IW.js → TextFromNarration-ME6FAYWO.js} +1 -1
  10. package/dist/{WorkspaceSearchPanel-J6BKEZQJ.js → WorkspaceSearchPanel-MEBBTK7F.js} +3 -3
  11. package/dist/{chunk-I44HKDQX.js → chunk-3TSJQESW.js} +16 -3
  12. package/dist/chunk-45YTIVYS.js +1162 -0
  13. package/dist/{chunk-FBPCURCS.js → chunk-7HBKKXRV.js} +291 -82
  14. package/dist/{chunk-KBDZDFPU.js → chunk-BNKIPCXO.js} +4 -1
  15. package/dist/{chunk-2IYBBFQX.js → chunk-BZRYQENB.js} +59 -16
  16. package/dist/{chunk-DICE7VBJ.js → chunk-KHQ44ZFA.js} +16 -1
  17. package/dist/chunk-NOYDVL6M.js +180 -0
  18. package/dist/{chunk-PNZFIIWW.js → chunk-PRUEYW3G.js} +23 -5
  19. package/dist/{chunk-7V34VUK6.js → chunk-T42BH6YX.js} +128 -103
  20. package/dist/editor.js +2 -2
  21. package/dist/index.d.ts +7 -2
  22. package/dist/index.js +817 -710
  23. package/dist/settings/index.js +2 -1
  24. package/package.json +8 -8
  25. package/src/styles/docblocks.css +542 -16
  26. package/dist/chunk-D4HIOS7E.js +0 -812
  27. package/dist/{QuickOpenDialog-ENVFGIHS.js → QuickOpenDialog-3QEX7RZG.js} +3 -3
@@ -6,7 +6,7 @@ Run `npm run generate:notices` from the repository root.
6
6
  Resolved runtime and optional dependency closure declared by packages/react/package.json. Peer dependencies are supplied by the consuming application and are not included.
7
7
 
8
8
  Inventory source: package-lock.json.
9
- Components: 381.
9
+ Components: 382.
10
10
 
11
11
  This notice is included in the published npm tarball. Transitive packages installed by npm also retain their package-local license files.
12
12
 
@@ -15,14 +15,15 @@ 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.5 | MIT | https://github.com/bendyline/squisq |
18
+ | @bendyline/squisq | 2.13.0 | 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.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 |
20
+ | @bendyline/squisq-editor-react | 2.13.2 | MIT | https://github.com/bendyline/squisq |
21
+ | @bendyline/squisq-formats | 2.8.1 | MIT | https://github.com/bendyline/squisq |
22
+ | @bendyline/squisq-graph | 2.13.0 | MIT | https://github.com/bendyline/squisq |
23
+ | @bendyline/squisq-grid-react | 2.11.29 | MIT | https://github.com/bendyline/squisq |
24
+ | @bendyline/squisq-react | 2.12.9 | MIT | https://github.com/bendyline/squisq |
25
+ | @bendyline/squisq-video | 2.4.6 | MIT | https://github.com/bendyline/squisq |
26
+ | @bendyline/squisq-video-react | 2.5.10 | MIT | https://github.com/bendyline/squisq |
26
27
  | @braintree/sanitize-url | 7.1.2 | MIT | https://github.com/braintree/sanitize-url |
27
28
  | @chevrotain/types | 11.1.2 | Apache-2.0 | https://github.com/Chevrotain/chevrotain |
28
29
  | @ffmpeg/core | 0.12.10 | GPL-2.0-or-later | https://github.com/ffmpegwasm/ffmpeg.wasm |
@@ -204,7 +205,7 @@ This notice is included in the published npm tarball. Transitive packages instal
204
205
  | dequal | 2.0.3 | MIT | https://github.com/lukeed/dequal |
205
206
  | devlop | 1.1.0 | MIT | https://github.com/wooorm/devlop |
206
207
  | dijkstrajs | 1.0.3 | MIT | https://github.com/tcort/dijkstrajs |
207
- | dompurify | 3.4.16 | (MPL-2.0 OR Apache-2.0) | https://github.com/cure53/DOMPurify |
208
+ | dompurify | 3.4.17 | (MPL-2.0 OR Apache-2.0) | https://github.com/cure53/DOMPurify |
208
209
  | emoji-regex | 8.0.0 | MIT | https://github.com/mathiasbynens/emoji-regex |
209
210
  | entities | 4.5.0 | BSD-2-Clause | https://github.com/fb55/entities |
210
211
  | entities | 6.0.1 | BSD-2-Clause | https://github.com/fb55/entities |
@@ -437,8 +438,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
437
438
  SOFTWARE.
438
439
 
439
440
  ==============================================================================
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
- 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
441
+ Components: @bendyline/squisq-calc@2.11.2, @bendyline/squisq-editor-react@2.13.2, @bendyline/squisq-formats@2.8.1, @bendyline/squisq-graph@2.13.0, @bendyline/squisq-grid-react@2.11.29, @bendyline/squisq-react@2.12.9, @bendyline/squisq-video-react@2.5.10, @bendyline/squisq-video@2.4.6, @bendyline/squisq@2.13.0
442
+ 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-graph/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
443
  ==============================================================================
443
444
  MIT License
444
445
 
@@ -637,7 +638,7 @@ The above copyright notice and this permission notice shall be included in all c
637
638
  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
639
 
639
640
  ==============================================================================
640
- Components: @bendyline/squisq-editor-react@2.12.10
641
+ Components: @bendyline/squisq-editor-react@2.13.2
641
642
  Source files: node_modules/@bendyline/squisq-editor-react/NOTICE.md
642
643
  ==============================================================================
643
644
  # Third-Party Notices for @bendyline/squisq-editor-react
@@ -686,7 +687,7 @@ Exact third-party license texts for the bundled adapter, loader, state helper,
686
687
  and Font Awesome assets are shipped in THIRD_PARTY_LICENSES.txt.
687
688
 
688
689
  ==============================================================================
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
+ Components: @bendyline/squisq-editor-react@2.13.2, @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
691
  Source files: node_modules/@bendyline/squisq-editor-react/THIRD_PARTY_LICENSES.txt
691
692
  ==============================================================================
692
693
  THIRD-PARTY LICENSES FOR @bendyline/squisq-editor-react
@@ -1627,7 +1628,7 @@ The above copyright notice and this permission notice shall be included in all c
1627
1628
  **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
1629
 
1629
1630
  ==============================================================================
1630
- Components: @bendyline/squisq-formats@2.7.6
1631
+ Components: @bendyline/squisq-formats@2.8.1
1631
1632
  Source files: node_modules/@bendyline/squisq-formats/NOTICE.md
1632
1633
  ==============================================================================
1633
1634
  # Third-Party Notices for @bendyline/squisq-formats
@@ -1653,7 +1654,7 @@ texts for these dependencies are included in their respective npm
1653
1654
  distributions and source repositories.
1654
1655
 
1655
1656
  ==============================================================================
1656
- Components: @bendyline/squisq-formats@2.7.6
1657
+ Components: @bendyline/squisq-formats@2.8.1
1657
1658
  Source files: node_modules/@bendyline/squisq-formats/THIRD_PARTY_LICENSES.txt
1658
1659
  ==============================================================================
1659
1660
  THIRD-PARTY LICENSES FOR @bendyline/squisq-formats
@@ -2027,7 +2028,37 @@ given a different name.
2027
2028
  $Id$
2028
2029
 
2029
2030
  ==============================================================================
2030
- Components: @bendyline/squisq-grid-react@2.11.28
2031
+ Components: @bendyline/squisq-graph@2.13.0
2032
+ Source files: node_modules/@bendyline/squisq-graph/NOTICE.md
2033
+ ==============================================================================
2034
+ # Third-Party Notices for @bendyline/squisq-graph
2035
+
2036
+ This notice applies to the `@bendyline/squisq-graph` npm package.
2037
+ Squisq-authored code is licensed under the MIT license in `LICENSE`.
2038
+ Third-party components remain under their respective license terms.
2039
+
2040
+ ## Runtime dependencies
2041
+
2042
+ | Package | Version | License | Repository |
2043
+ | ------- | ------- | ------- | ---------- |
2044
+
2045
+ This package has no third-party runtime dependencies. The layout engine and its
2046
+ worker entry are Squisq-authored (MIT).
2047
+
2048
+ ==============================================================================
2049
+ Components: @bendyline/squisq-graph@2.13.0
2050
+ Source files: node_modules/@bendyline/squisq-graph/THIRD_PARTY_LICENSES.txt
2051
+ ==============================================================================
2052
+ THIRD-PARTY LICENSES FOR @bendyline/squisq-graph
2053
+
2054
+ Generated from the actual esbuild input graph. Package-local license, copying,
2055
+ and notice files are reproduced verbatim. When an npm tarball omits its
2056
+ repository license, the pinned upstream copy is vendored and identified below.
2057
+
2058
+ COMPONENTS
2059
+
2060
+ ==============================================================================
2061
+ Components: @bendyline/squisq-grid-react@2.11.29
2031
2062
  Source files: node_modules/@bendyline/squisq-grid-react/NOTICE.md
2032
2063
  ==============================================================================
2033
2064
  # Third-Party Notices for @bendyline/squisq-grid-react
@@ -2048,7 +2079,7 @@ Copyright and complete license texts for these dependencies are included in
2048
2079
  their respective npm distributions and source repositories.
2049
2080
 
2050
2081
  ==============================================================================
2051
- Components: @bendyline/squisq-grid-react@2.11.28
2082
+ Components: @bendyline/squisq-grid-react@2.11.29
2052
2083
  Source files: node_modules/@bendyline/squisq-grid-react/THIRD_PARTY_LICENSES.txt
2053
2084
  ==============================================================================
2054
2085
  THIRD-PARTY LICENSES FOR @bendyline/squisq-grid-react
@@ -2060,7 +2091,7 @@ repository license, the pinned upstream copy is vendored and identified below.
2060
2091
  COMPONENTS
2061
2092
 
2062
2093
  ==============================================================================
2063
- Components: @bendyline/squisq-react@2.12.6
2094
+ Components: @bendyline/squisq-react@2.12.9
2064
2095
  Source files: node_modules/@bendyline/squisq-react/NOTICE.md
2065
2096
  ==============================================================================
2066
2097
  # Third-Party Notices for @bendyline/squisq-react
@@ -2085,7 +2116,7 @@ third-party license texts for the complete standalone bundle graph are shipped
2085
2116
  in THIRD_PARTY_LICENSES.txt.
2086
2117
 
2087
2118
  ==============================================================================
2088
- Components: @bendyline/squisq-react@2.12.6
2119
+ Components: @bendyline/squisq-react@2.12.9
2089
2120
  Source files: node_modules/@bendyline/squisq-react/THIRD_PARTY_LICENSES.txt
2090
2121
  ==============================================================================
2091
2122
  THIRD-PARTY LICENSES FOR @bendyline/squisq-react
@@ -6572,7 +6603,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
6572
6603
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6573
6604
 
6574
6605
  ==============================================================================
6575
- Components: @bendyline/squisq-video-react@2.5.7
6606
+ Components: @bendyline/squisq-video-react@2.5.10
6576
6607
  Source files: node_modules/@bendyline/squisq-video-react/COPYING.GPL-2.0.txt
6577
6608
  ==============================================================================
6578
6609
  GNU GENERAL PUBLIC LICENSE
@@ -6915,7 +6946,7 @@ library. If this is what you want to do, use the GNU Lesser General
6915
6946
  Public License instead of this License.
6916
6947
 
6917
6948
  ==============================================================================
6918
- Components: @bendyline/squisq-video-react@2.5.7
6949
+ Components: @bendyline/squisq-video-react@2.5.10
6919
6950
  Source files: node_modules/@bendyline/squisq-video-react/NOTICE.md
6920
6951
  ==============================================================================
6921
6952
  # Third-Party Notices for @bendyline/squisq-video-react
@@ -6971,7 +7002,7 @@ at the version listed above and from https://github.com/Vanilagy/mediabunny.
6971
7002
  The complete MPL-2.0 text is shipped in THIRD_PARTY_LICENSES.txt.
6972
7003
 
6973
7004
  ==============================================================================
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
7005
+ Components: @bendyline/squisq-video-react@2.5.10, @ffmpeg/core@0.12.10, @ffmpeg/ffmpeg@0.12.15, @ffmpeg/types@0.12.4, @ffmpeg/util@0.12.2
6975
7006
  Source files: node_modules/@bendyline/squisq-video-react/THIRD_PARTY_LICENSES.txt
6976
7007
  ==============================================================================
6977
7008
  THIRD-PARTY LICENSES FOR @bendyline/squisq-video-react
@@ -7413,7 +7444,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
7413
7444
  SOFTWARE.
7414
7445
 
7415
7446
  ==============================================================================
7416
- Components: @bendyline/squisq-video@2.4.5
7447
+ Components: @bendyline/squisq-video@2.4.6
7417
7448
  Source files: node_modules/@bendyline/squisq-video/NOTICE.md
7418
7449
  ==============================================================================
7419
7450
  # Third-Party Notices for @bendyline/squisq-video
@@ -7438,7 +7469,7 @@ Copyright and complete license texts for the listed dependencies are included
7438
7469
  in their respective npm distributions and source repositories.
7439
7470
 
7440
7471
  ==============================================================================
7441
- Components: @bendyline/squisq-video@2.4.5
7472
+ Components: @bendyline/squisq-video@2.4.6
7442
7473
  Source files: node_modules/@bendyline/squisq-video/THIRD_PARTY_LICENSES.txt
7443
7474
  ==============================================================================
7444
7475
  THIRD-PARTY LICENSES FOR @bendyline/squisq-video
@@ -7450,7 +7481,7 @@ repository license, the pinned upstream copy is vendored and identified below.
7450
7481
  COMPONENTS
7451
7482
 
7452
7483
  ==============================================================================
7453
- Components: @bendyline/squisq@2.12.5
7484
+ Components: @bendyline/squisq@2.13.0
7454
7485
  Source files: node_modules/@bendyline/squisq/NOTICE.md
7455
7486
  ==============================================================================
7456
7487
  # Third-Party Notices for @bendyline/squisq
@@ -7481,7 +7512,7 @@ third-party license texts for bundled code and data are shipped in
7481
7512
  THIRD_PARTY_LICENSES.txt.
7482
7513
 
7483
7514
  ==============================================================================
7484
- Components: @bendyline/squisq@2.12.5
7515
+ Components: @bendyline/squisq@2.13.0
7485
7516
  Source files: node_modules/@bendyline/squisq/THIRD_PARTY_LICENSES.txt
7486
7517
  ==============================================================================
7487
7518
  THIRD-PARTY LICENSES FOR @bendyline/squisq
@@ -7689,7 +7720,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
7689
7720
  SOFTWARE.
7690
7721
 
7691
7722
  ==============================================================================
7692
- Components: @chevrotain/types@11.1.2, dompurify@3.4.16
7723
+ Components: @chevrotain/types@11.1.2, dompurify@3.4.17
7693
7724
  Source files: node_modules/@chevrotain/types/LICENSE.txt, node_modules/dompurify/LICENSE
7694
7725
  ==============================================================================
7695
7726
 
@@ -9817,7 +9848,7 @@ THE SOFTWARE.
9817
9848
  ```
9818
9849
 
9819
9850
  ==============================================================================
9820
- Components: dompurify@3.4.16
9851
+ Components: dompurify@3.4.17
9821
9852
  Source files: node_modules/dompurify/LICENSE-MPL
9822
9853
  ==============================================================================
9823
9854
  Mozilla Public License Version 2.0
@@ -2,8 +2,10 @@ import {
2
2
  AiDiagramDialog,
3
3
  AiIllustratePanel,
4
4
  DiagramPreview
5
- } from "./chunk-D4HIOS7E.js";
6
- import "./chunk-7V34VUK6.js";
5
+ } from "./chunk-45YTIVYS.js";
6
+ import "./chunk-NOYDVL6M.js";
7
+ import "./chunk-KHQ44ZFA.js";
8
+ import "./chunk-T42BH6YX.js";
7
9
  import "./chunk-K4I3NJFL.js";
8
10
  import "./chunk-VJPGZCFS.js";
9
11
  export {
@@ -1,14 +1,23 @@
1
1
  import {
2
2
  AiDiagramDialog
3
- } from "./chunk-D4HIOS7E.js";
3
+ } from "./chunk-45YTIVYS.js";
4
4
  import {
5
5
  AiGenerationStatus,
6
6
  STUDY_AID_KINDS,
7
7
  STUDY_AID_LABELS
8
8
  } from "./chunk-XNT66JC2.js";
9
+ import {
10
+ AiFactsIndicator,
11
+ AiKnowledgeIndicator,
12
+ factCheckRequest,
13
+ factsNeedReview,
14
+ useAiKnowledge,
15
+ useFactCheck
16
+ } from "./chunk-NOYDVL6M.js";
9
17
  import {
10
18
  useConfirmDialog
11
19
  } from "./chunk-KBUHWZCF.js";
20
+ import "./chunk-KHQ44ZFA.js";
12
21
  import {
13
22
  useMenuKeyboard
14
23
  } from "./chunk-GMA4KGGO.js";
@@ -28,7 +37,7 @@ import {
28
37
  reviewDocumentCharacters,
29
38
  sanitizeGeneratedMarkdown,
30
39
  withoutPictureFindings
31
- } from "./chunk-7V34VUK6.js";
40
+ } from "./chunk-T42BH6YX.js";
32
41
  import {
33
42
  unavailableSentence,
34
43
  useAiStatus
@@ -83,7 +92,7 @@ function draftCapacityNotice(request, model, expectedOutput = "") {
83
92
  // src/Ai/AiEditorAssistant.tsx
84
93
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
85
94
  var AiStudyDialog = lazy(
86
- () => import("./AiStudyDialog-P3E7PJV5.js").then((module) => ({ default: module.AiStudyDialog }))
95
+ () => import("./AiStudyDialog-DQZVTBI7.js").then((module) => ({ default: module.AiStudyDialog }))
87
96
  );
88
97
  function AiToolbarControl({
89
98
  ai,
@@ -340,7 +349,13 @@ function AiDraftDialog({
340
349
  const handleRef = useRef(null);
341
350
  const requestRef = useRef(0);
342
351
  const { confirm: confirmAction, confirmDialog } = useConfirmDialog();
352
+ const { knowledge, ai: knowledgeAi, reset: resetKnowledge } = useAiKnowledge(ai);
343
353
  const selectedMarkdown = capturedSelection.markdown ?? capturedSelection.text;
354
+ const factsGiven = useMemo(
355
+ () => originalRequest?.messages.filter((message) => message.role === "user").map((message) => message.content).join("\n\n") ?? "",
356
+ [originalRequest]
357
+ );
358
+ const facts = useFactCheck(ai, running ? null : draft, knowledge, factsGiven);
344
359
  const draftRequest = useMemo(
345
360
  () => ({
346
361
  ...buildDraftRequest({
@@ -377,10 +392,11 @@ function AiDraftDialog({
377
392
  setFinishNote(null);
378
393
  setIncomplete(false);
379
394
  setRunning(true);
395
+ if (!prefix) resetKnowledge();
380
396
  const startedAt = Date.now();
381
397
  setGeneration({ progress: null, startedAt, lastActivityAt: startedAt });
382
- const handle = ai.chat(request, (event) => {
383
- if (requestRef.current !== requestId) return;
398
+ const handle = knowledgeAi.chat(request, (event) => {
399
+ if (requestRef.current !== requestId || event.kind === "knowledge") return;
384
400
  if (event.kind === "progress") {
385
401
  setGeneration(
386
402
  (current) => current && {
@@ -435,7 +451,7 @@ function AiDraftDialog({
435
451
  });
436
452
  handleRef.current = handle;
437
453
  },
438
- [ai, documentSource]
454
+ [knowledgeAi, resetKnowledge, documentSource]
439
455
  );
440
456
  const generate = useCallback(async () => {
441
457
  if (running || draftCapacityNotice(draftRequest, model)?.blocked) return;
@@ -463,6 +479,22 @@ function AiDraftDialog({
463
479
  if (running) return;
464
480
  const replacement = sanitizeGeneratedMarkdown(draft ?? "", documentSource);
465
481
  if (!replacement) return;
482
+ const factCheck = !incomplete && ai.checkFacts && factCheckRequest(replacement, knowledge, factsGiven);
483
+ if (factCheck) {
484
+ const previousRequest = requestRef.current;
485
+ const checked = await ai.checkFacts?.(factCheck);
486
+ if (requestRef.current !== previousRequest) return;
487
+ if (checked?.ok && factsNeedReview(checked.value)) {
488
+ const count = checked.value.unsourced.length;
489
+ const accepted = await confirmAction({
490
+ title: "Use details no source shows?",
491
+ message: `${count} ${count === 1 ? "statement in this draft includes" : "statements in this draft include"} names, dates or numbers that neither your document nor the reference passages show. The model may have written them from memory. Check them before you rely on them.`,
492
+ confirmLabel: mode === "rewrite" ? "Replace anyway" : "Insert anyway",
493
+ cancelLabel: "Review draft"
494
+ });
495
+ if (!accepted || requestRef.current !== previousRequest) return;
496
+ }
497
+ }
466
498
  if (incomplete) {
467
499
  const previousRequest = requestRef.current;
468
500
  const accepted = await confirmAction({
@@ -502,7 +534,10 @@ function AiDraftDialog({
502
534
  replaceSelection,
503
535
  running,
504
536
  incomplete,
505
- confirmAction
537
+ confirmAction,
538
+ ai,
539
+ knowledge,
540
+ factsGiven
506
541
  ]);
507
542
  const dialog = /* @__PURE__ */ jsxs(
508
543
  Dialog,
@@ -516,7 +551,7 @@ function AiDraftDialog({
516
551
  bodyClassName: "db-ai-draft-body",
517
552
  footerClassName: "db-ai-draft-footer",
518
553
  footer: /* @__PURE__ */ jsxs(Fragment, { children: [
519
- (running || finishNote || error || capacity) && /* @__PURE__ */ jsxs("div", { className: "db-ai-footer-status", children: [
554
+ (running || finishNote || error || capacity || knowledge || facts?.checked) && /* @__PURE__ */ jsxs("div", { className: "db-ai-footer-status", children: [
520
555
  running && generation && /* @__PURE__ */ jsx(
521
556
  AiGenerationStatus,
522
557
  {
@@ -524,6 +559,8 @@ function AiDraftDialog({
524
559
  characters: Math.max(0, (draft?.length ?? 0) - prefixCharacters)
525
560
  }
526
561
  ),
562
+ /* @__PURE__ */ jsx(AiKnowledgeIndicator, { knowledge }),
563
+ !running && /* @__PURE__ */ jsx(AiFactsIndicator, { check: facts }),
527
564
  finishNote && /* @__PURE__ */ jsx("p", { className: "db-ai-note", children: finishNote }),
528
565
  !running && capacity && /* @__PURE__ */ jsx("p", { className: "db-ai-note", role: "status", children: capacity.message }),
529
566
  error && /* @__PURE__ */ jsx("p", { className: "db-ai-error", role: "alert", children: error })
@@ -618,6 +655,7 @@ function AiReviewPanel({ ai, onClose }) {
618
655
  const handleRef = useRef(null);
619
656
  const requestRef = useRef(0);
620
657
  const startedRef = useRef(false);
658
+ const { knowledge, ai: knowledgeAi, reset: resetKnowledge } = useAiKnowledge(ai);
621
659
  const cancelReview = useCallback(() => {
622
660
  requestRef.current += 1;
623
661
  handleRef.current?.cancel();
@@ -647,8 +685,9 @@ function AiReviewPanel({ ai, onClose }) {
647
685
  setResolvedIds(/* @__PURE__ */ new Set());
648
686
  setApplyErrorId(null);
649
687
  setError(null);
650
- const handle = ai.chat(buildReviewRequest(source), (event) => {
651
- if (requestRef.current !== requestId || event.kind === "delta" || event.kind === "progress")
688
+ resetKnowledge();
689
+ const handle = knowledgeAi.chat(buildReviewRequest(source), (event) => {
690
+ if (requestRef.current !== requestId || event.kind === "delta" || event.kind === "progress" || event.kind === "knowledge")
652
691
  return;
653
692
  handleRef.current = null;
654
693
  if (event.kind === "error") {
@@ -672,7 +711,7 @@ function AiReviewPanel({ ai, onClose }) {
672
711
  setPhase("ready");
673
712
  });
674
713
  handleRef.current = handle;
675
- }, [ai, markdownSource]);
714
+ }, [knowledgeAi, resetKnowledge, markdownSource]);
676
715
  useEffect(() => {
677
716
  if (startedRef.current) return;
678
717
  startedRef.current = true;
@@ -733,6 +772,7 @@ function AiReviewPanel({ ai, onClose }) {
733
772
  /* @__PURE__ */ jsx("span", { className: "db-ai-spinner", "aria-hidden": "true" }),
734
773
  " Reviewing this document\u2026"
735
774
  ] }),
775
+ phase !== "idle" && knowledge && /* @__PURE__ */ jsx("div", { className: "db-ai-review-knowledge", children: /* @__PURE__ */ jsx(AiKnowledgeIndicator, { knowledge }) }),
736
776
  phase === "error" && error && /* @__PURE__ */ jsx("div", { className: "db-ai-review-empty db-ai-error", role: "alert", children: error }),
737
777
  cutOff && phase === "ready" && /* @__PURE__ */ jsxs("div", { className: "db-ai-review-stale", role: "status", children: [
738
778
  "The AI ran out of room after ",
@@ -9,6 +9,11 @@ import {
9
9
  withStudyAidFrontmatter,
10
10
  writeStudyAid
11
11
  } from "./chunk-XNT66JC2.js";
12
+ import {
13
+ AiKnowledgeIndicator,
14
+ useAiKnowledge
15
+ } from "./chunk-NOYDVL6M.js";
16
+ import "./chunk-KHQ44ZFA.js";
12
17
  import {
13
18
  AiReportButton,
14
19
  bodyLine,
@@ -25,7 +30,7 @@ import {
25
30
  extractNumbers,
26
31
  sanitizeGeneratedMarkdown,
27
32
  stripReasoning
28
- } from "./chunk-7V34VUK6.js";
33
+ } from "./chunk-T42BH6YX.js";
29
34
  import {
30
35
  unavailableSentence,
31
36
  useAiStatus
@@ -902,6 +907,7 @@ function AiStudyDialog({
902
907
  const primaryRef = useRef(null);
903
908
  const controllerRef = useRef(null);
904
909
  const requestRef = useRef(0);
910
+ const { knowledge, ai: knowledgeAi, reset: resetKnowledge } = useAiKnowledge(ai);
905
911
  useEffect(
906
912
  () => () => {
907
913
  requestRef.current += 1;
@@ -972,8 +978,9 @@ function AiStudyDialog({
972
978
  setNotes([]);
973
979
  setShowSource(false);
974
980
  setGeneration({ progress: null, startedAt, lastActivityAt: startedAt });
981
+ resetKnowledge();
975
982
  const outcome = await generateStudyAid({
976
- ai,
983
+ ai: knowledgeAi,
977
984
  kind,
978
985
  source: documentSource,
979
986
  sourceName: documentName,
@@ -1008,7 +1015,7 @@ function AiStudyDialog({
1008
1015
  if (saveError === null) setSaved({ status: "found", aid });
1009
1016
  else setError(`The ${labels.noun} could not be saved: ${saveError}`);
1010
1017
  }, [
1011
- ai,
1018
+ knowledgeAi,
1012
1019
  budget,
1013
1020
  container,
1014
1021
  documentName,
@@ -1018,6 +1025,7 @@ function AiStudyDialog({
1018
1025
  model,
1019
1026
  onEvent,
1020
1027
  ready,
1028
+ resetKnowledge,
1021
1029
  running
1022
1030
  ]);
1023
1031
  const stop = useCallback(() => controllerRef.current?.abort(), []);
@@ -1072,6 +1080,7 @@ function AiStudyDialog({
1072
1080
  const viewer = shown && /* @__PURE__ */ jsxs("div", { className: "db-ai-study-result", children: [
1073
1081
  /* @__PURE__ */ jsx(StudyAidViewer, { kind, markdown: shown.markdown }),
1074
1082
  notes.map((note) => /* @__PURE__ */ jsx("p", { className: "db-ai-note", children: note }, note)),
1083
+ /* @__PURE__ */ jsx(AiKnowledgeIndicator, { knowledge }),
1075
1084
  /* @__PURE__ */ jsxs("div", { className: "db-ai-study-meta", children: [
1076
1085
  /* @__PURE__ */ jsxs("p", { className: "db-ai-disclaimer", children: [
1077
1086
  describeProvenance(shown.provenance),
@@ -1107,7 +1116,8 @@ function AiStudyDialog({
1107
1116
  ] });
1108
1117
  const progress = running && /* @__PURE__ */ jsxs("div", { className: "db-ai-study-running", children: [
1109
1118
  /* @__PURE__ */ jsx("p", { className: "db-ai-study-stage", "aria-live": "polite", children: stageLabel(kind, stage) }),
1110
- generation && /* @__PURE__ */ jsx(AiGenerationStatus, { state: generation, characters: 0 })
1119
+ generation && /* @__PURE__ */ jsx(AiGenerationStatus, { state: generation, characters: 0 }),
1120
+ /* @__PURE__ */ jsx(AiKnowledgeIndicator, { knowledge })
1111
1121
  ] });
1112
1122
  const dialog = /* @__PURE__ */ jsx(
1113
1123
  Dialog,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  hasDocumentNarration,
3
3
  planSpeech
4
- } from "./chunk-I44HKDQX.js";
4
+ } from "./chunk-3TSJQESW.js";
5
5
  import {
6
6
  buildVideoExportDoc
7
7
  } from "./chunk-RP3DVNTI.js";
@@ -79,7 +79,7 @@ function loadRunExportModule() {
79
79
  var ExportCancelledError = class extends Error {
80
80
  };
81
81
  var AudioExportDialog = lazy(
82
- () => import("./AudioExportDialog-IOYIEAER.js").then((module) => ({
82
+ () => import("./AudioExportDialog-EICCBSSE.js").then((module) => ({
83
83
  default: module.AudioExportDialog
84
84
  }))
85
85
  );
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PresentationMaker
3
- } from "./chunk-PNZFIIWW.js";
4
- import "./chunk-7V34VUK6.js";
3
+ } from "./chunk-PRUEYW3G.js";
4
+ import "./chunk-T42BH6YX.js";
5
5
  import "./chunk-K4I3NJFL.js";
6
6
  import "./chunk-VJPGZCFS.js";
7
7
  export {