@bendyline/squisq-react 2.11.19 → 2.11.21
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/NOTICE.md +3 -3
- package/THIRD_PARTY_LICENSES.txt +20 -6
- package/dist/{MarkdownRenderer-CC9dOc6b.d.ts → MarkdownRenderer-C63CQ9Ca.d.ts} +2 -2
- package/dist/{TableLayer-B7ADuUGc.d.ts → TableLayer-CA18rzIJ.d.ts} +2 -2
- package/dist/{chunk-BMQ3EGOP.js → chunk-4HJBKCSY.js} +3 -3
- package/dist/{chunk-SVVPYDV3.js → chunk-7J4YN7EK.js} +1 -1
- package/dist/{chunk-WG7ALU5G.js → chunk-DI7CKFRY.js} +2 -2
- package/dist/{chunk-63G5OJWY.js → chunk-HCKL2AFN.js} +11 -7
- package/dist/{chunk-ZNW3DJAD.js → chunk-JEEBHC5W.js} +1 -1
- package/dist/{chunk-KJZF2U3I.js → chunk-LCBV2SE4.js} +1 -1
- package/dist/{chunk-YLFAOGJF.js → chunk-T7NVETOH.js} +2 -2
- package/dist/{chunk-J4BHV6UO.js → chunk-XQSZ55EQ.js} +1 -1
- package/dist/{chunk-LXOQCAU6.js → chunk-Y4YCIMES.js} +6 -6
- package/dist/{chunk-QXZXQPL3.js → chunk-Z7OW6RGR.js} +1 -1
- package/dist/diagram-pictures/index.js +4 -4
- package/dist/hooks/index.js +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.js +10 -10
- package/dist/json-view/index.d.ts +2 -2
- package/dist/json-view/index.js +4 -4
- package/dist/layers/index.d.ts +10 -11
- package/dist/layers/index.js +3 -3
- package/dist/markdown/index.d.ts +4 -5
- package/dist/markdown/index.js +3 -3
- package/dist/page/index.d.ts +8 -9
- package/dist/page/index.js +7 -7
- package/dist/player/index.d.ts +4 -5
- package/dist/player/index.js +8 -8
- package/dist/{player-xxe4LWQI.d.ts → player-BONjpRpG.d.ts} +19 -19
- package/dist/squisq-player.full.global.js +552 -492
- package/dist/squisq-player.global.js +85 -71
- package/dist/standalone-icon-styles.js +1 -1
- package/dist/standalone-player-full.js +1 -1
- package/dist/standalone-source.js +1 -1
- package/dist/styles/fa-brands-400-LA6RBN2H.woff2 +0 -0
- package/dist/styles/fa-regular-400-NCGHE5NP.woff2 +0 -0
- package/dist/styles/fa-solid-900-EFITDVWS.woff2 +0 -0
- package/dist/styles/index.css +622 -46
- package/package.json +8 -8
- package/dist/styles/fa-brands-400-AHOAZHCU.woff2 +0 -0
- package/dist/styles/fa-regular-400-VRZYIBIZ.woff2 +0 -0
- package/dist/styles/fa-solid-900-MDEYK55F.woff2 +0 -0
package/NOTICE.md
CHANGED
|
@@ -8,9 +8,9 @@ Third-party components remain under their respective license terms.
|
|
|
8
8
|
|
|
9
9
|
| Package | Version | License | Repository |
|
|
10
10
|
| ----------------------------- | -------------------- | ----------------------------- | ------------------------------------------- |
|
|
11
|
-
| @fortawesome/fontawesome-free | 7.
|
|
12
|
-
| mermaid | 11.
|
|
13
|
-
| preact _(bundled)_ | 10.29.
|
|
11
|
+
| @fortawesome/fontawesome-free | 7.3.1 | CC-BY-4.0 AND OFL-1.1 AND MIT | https://github.com/FortAwesome/Font-Awesome |
|
|
12
|
+
| mermaid | 11.17.2 | MIT | https://github.com/mermaid-js/mermaid |
|
|
13
|
+
| preact _(bundled)_ | 10.29.8 | MIT | https://github.com/preactjs/preact |
|
|
14
14
|
| react _(peer)_ | ^18.0.0 \|\| ^19.0.0 | MIT | https://github.com/facebook/react |
|
|
15
15
|
| react-dom _(peer)_ | ^18.0.0 \|\| ^19.0.0 | MIT | https://github.com/facebook/react |
|
|
16
16
|
|
package/THIRD_PARTY_LICENSES.txt
CHANGED
|
@@ -7,7 +7,7 @@ repository license, the pinned upstream copy is vendored and identified below.
|
|
|
7
7
|
COMPONENTS
|
|
8
8
|
- @braintree/sanitize-url@7.1.2 (MIT); files: LICENSE
|
|
9
9
|
- @iconify/utils@3.1.4 (MIT); files: license.txt
|
|
10
|
-
- @mermaid-js/parser@1.2.
|
|
10
|
+
- @mermaid-js/parser@1.2.1 (MIT); files: LICENSE
|
|
11
11
|
- @upsetjs/venn.js@2.0.0 (MIT); files: LICENSE
|
|
12
12
|
- bail@2.0.2 (MIT); files: license
|
|
13
13
|
- ccount@2.0.1 (MIT); files: license
|
|
@@ -65,6 +65,7 @@ COMPONENTS
|
|
|
65
65
|
- es-toolkit@1.49.0 (MIT); files: LICENSE
|
|
66
66
|
- escape-string-regexp@5.0.0 (MIT); files: license
|
|
67
67
|
- extend@3.0.2 (MIT); files: LICENSE
|
|
68
|
+
- fastdom@1.0.12 (MIT); files: VENDORED-fastdom-1.0.12.txt
|
|
68
69
|
- fault@2.0.1 (MIT); files: license
|
|
69
70
|
- format@0.2.2 (MIT); files: VENDORED-format-0.2.2.txt
|
|
70
71
|
- hast-util-from-html@2.0.3 (MIT); files: license
|
|
@@ -100,7 +101,7 @@ COMPONENTS
|
|
|
100
101
|
- mdast-util-phrasing@4.1.0 (MIT); files: license
|
|
101
102
|
- mdast-util-to-markdown@2.1.2 (MIT); files: license
|
|
102
103
|
- mdast-util-to-string@4.0.0 (MIT); files: license
|
|
103
|
-
- mermaid@11.
|
|
104
|
+
- mermaid@11.17.2 (MIT); files: LICENSE
|
|
104
105
|
- micromark-core-commonmark@2.0.3 (MIT); files: license
|
|
105
106
|
- micromark-extension-directive@3.0.2 (MIT); files: license
|
|
106
107
|
- micromark-extension-frontmatter@2.0.0 (MIT); files: license
|
|
@@ -132,7 +133,7 @@ COMPONENTS
|
|
|
132
133
|
- micromark@4.0.2 (MIT); files: license
|
|
133
134
|
- parse-entities@4.0.2 (MIT); files: license
|
|
134
135
|
- parse5@7.3.0 (MIT); files: LICENSE
|
|
135
|
-
- preact@10.29.
|
|
136
|
+
- preact@10.29.8 (MIT); files: LICENSE
|
|
136
137
|
- property-information@7.1.0 (MIT); files: license
|
|
137
138
|
- remark-directive@3.0.1 (MIT); files: license
|
|
138
139
|
- remark-frontmatter@5.0.0 (MIT); files: license
|
|
@@ -210,7 +211,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
210
211
|
SOFTWARE.
|
|
211
212
|
|
|
212
213
|
==============================================================================
|
|
213
|
-
@mermaid-js/parser@1.2.
|
|
214
|
+
@mermaid-js/parser@1.2.1 - LICENSE
|
|
214
215
|
==============================================================================
|
|
215
216
|
The MIT License (MIT)
|
|
216
217
|
|
|
@@ -2062,6 +2063,19 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
2062
2063
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
2063
2064
|
|
|
2064
2065
|
|
|
2066
|
+
==============================================================================
|
|
2067
|
+
fastdom@1.0.12 - VENDORED-fastdom-1.0.12.txt
|
|
2068
|
+
==============================================================================
|
|
2069
|
+
(The MIT License)
|
|
2070
|
+
|
|
2071
|
+
Copyright (c) 2016 Wilson Page <wilsonpage@me.com>
|
|
2072
|
+
|
|
2073
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
2074
|
+
|
|
2075
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
2076
|
+
|
|
2077
|
+
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.
|
|
2078
|
+
|
|
2065
2079
|
==============================================================================
|
|
2066
2080
|
fault@2.0.1 - license
|
|
2067
2081
|
==============================================================================
|
|
@@ -2985,7 +2999,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
2985
2999
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
2986
3000
|
|
|
2987
3001
|
==============================================================================
|
|
2988
|
-
mermaid@11.
|
|
3002
|
+
mermaid@11.17.2 - LICENSE
|
|
2989
3003
|
==============================================================================
|
|
2990
3004
|
The MIT License (MIT)
|
|
2991
3005
|
|
|
@@ -3813,7 +3827,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
3813
3827
|
THE SOFTWARE.
|
|
3814
3828
|
|
|
3815
3829
|
==============================================================================
|
|
3816
|
-
preact@10.29.
|
|
3830
|
+
preact@10.29.8 - LICENSE
|
|
3817
3831
|
==============================================================================
|
|
3818
3832
|
The MIT License (MIT)
|
|
3819
3833
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { Theme } from '@bendyline/squisq/schemas';
|
|
3
3
|
import { FenceRendererMap } from '@bendyline/squisq/fence';
|
|
4
4
|
import { MarkdownBlockNode, HtmlPolicy } from '@bendyline/squisq/markdown';
|
|
@@ -57,6 +57,6 @@ interface MarkdownRendererProps {
|
|
|
57
57
|
* <MarkdownRenderer nodes={block.contents} />
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
|
-
declare function MarkdownRenderer({ nodes, className, htmlPolicy, linkSchemes, theme, showCodeCopyButton, onCopyCode, fenceRenderers, }: MarkdownRendererProps):
|
|
60
|
+
declare function MarkdownRenderer({ nodes, className, htmlPolicy, linkSchemes, theme, showCodeCopyButton, onCopyCode, fenceRenderers, }: MarkdownRendererProps): react.JSX.Element | null;
|
|
61
61
|
|
|
62
62
|
export { type CodeBlockCopyHandler as C, MarkdownRenderer as M, type CodeBlockCopyContext as a, type MarkdownRendererProps as b };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { ComponentType, ReactNode } from 'react';
|
|
3
3
|
import { Block, TableLayer as TableLayer$1 } from '@bendyline/squisq/schemas';
|
|
4
4
|
|
|
@@ -26,6 +26,6 @@ interface TableLayerProps {
|
|
|
26
26
|
/** Optional host renderer for interactive table content. */
|
|
27
27
|
contentRenderer?: TableLayerContentRenderer;
|
|
28
28
|
}
|
|
29
|
-
declare function TableLayer({ block, layer, viewport, blockTime, contentRenderer, }: TableLayerProps):
|
|
29
|
+
declare function TableLayer({ block, layer, viewport, blockTime, contentRenderer, }: TableLayerProps): react.JSX.Element;
|
|
30
30
|
|
|
31
31
|
export { TableLayer as T, type TableLayerContentRenderer as a, type TableLayerContentRendererProps as b };
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
InlineVideoPlayer,
|
|
6
6
|
MarkdownRenderer,
|
|
7
7
|
VideoEmbedFrame
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-T7NVETOH.js";
|
|
9
9
|
import {
|
|
10
10
|
BlockRenderer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LCBV2SE4.js";
|
|
12
12
|
import {
|
|
13
13
|
useMediaUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HCKL2AFN.js";
|
|
15
15
|
|
|
16
16
|
// src/page/PageViewContext.ts
|
|
17
17
|
import { createContext, useContext } from "react";
|
|
@@ -24,29 +24,33 @@ function useMediaUrl(relativePath, basePath) {
|
|
|
24
24
|
return isResourceUrlAllowed(candidate, resourcePolicy) ? candidate : "";
|
|
25
25
|
}, [isAbsolute, safePath, basePath, resourcePolicy]);
|
|
26
26
|
const needsProvider = !isAbsolute && !!provider;
|
|
27
|
-
const [
|
|
27
|
+
const [resolved, setResolved] = useState(null);
|
|
28
28
|
useEffect(() => {
|
|
29
29
|
if (!needsProvider) {
|
|
30
|
-
setUrl(fallback);
|
|
31
30
|
return;
|
|
32
31
|
}
|
|
33
32
|
let cancelled = false;
|
|
34
|
-
setUrl(fallback);
|
|
35
33
|
provider.resolveUrl(safePath).then(
|
|
36
|
-
(
|
|
34
|
+
(resolved2) => {
|
|
37
35
|
if (!cancelled) {
|
|
38
|
-
|
|
36
|
+
setResolved({
|
|
37
|
+
path: safePath,
|
|
38
|
+
provider,
|
|
39
|
+
policy: resourcePolicy,
|
|
40
|
+
url: isResourceUrlAllowed(resolved2, resourcePolicy) ? resolved2 : ""
|
|
41
|
+
});
|
|
39
42
|
}
|
|
40
43
|
},
|
|
41
44
|
() => {
|
|
42
|
-
if (!cancelled)
|
|
45
|
+
if (!cancelled)
|
|
46
|
+
setResolved({ path: safePath, provider, policy: resourcePolicy, url: fallback });
|
|
43
47
|
}
|
|
44
48
|
);
|
|
45
49
|
return () => {
|
|
46
50
|
cancelled = true;
|
|
47
51
|
};
|
|
48
52
|
}, [needsProvider, provider, safePath, fallback, resourcePolicy]);
|
|
49
|
-
return needsProvider ? url :
|
|
53
|
+
return !needsProvider ? fallback : resolved?.path === safePath && resolved.provider === provider && resolved.policy === resourcePolicy ? resolved.url : "";
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
// src/mermaid/mermaidRuntime.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MermaidDiagram
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z7OW6RGR.js";
|
|
4
4
|
import {
|
|
5
5
|
useMediaProvider,
|
|
6
6
|
useMediaUrl
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HCKL2AFN.js";
|
|
8
8
|
|
|
9
9
|
// src/hooks/FenceRendererContext.tsx
|
|
10
10
|
import { createContext, useContext } from "react";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LinearDocView
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4HJBKCSY.js";
|
|
4
4
|
import {
|
|
5
5
|
useAudioSync,
|
|
6
6
|
useDocPlayback,
|
|
7
7
|
useMediaSchedule,
|
|
8
8
|
useViewportOrientation
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7J4YN7EK.js";
|
|
10
10
|
import {
|
|
11
11
|
useAutoSurface
|
|
12
12
|
} from "./chunk-TT6ENR6T.js";
|
|
13
13
|
import {
|
|
14
14
|
MarkdownRenderer
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-T7NVETOH.js";
|
|
16
16
|
import {
|
|
17
17
|
BlockRenderer
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LCBV2SE4.js";
|
|
19
19
|
import {
|
|
20
20
|
isCaptureDrivenVideo,
|
|
21
21
|
seekVideoToFrame
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DI7CKFRY.js";
|
|
23
23
|
import {
|
|
24
24
|
useMediaProvider,
|
|
25
25
|
useMediaUrl,
|
|
26
26
|
useResourcePolicy
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-HCKL2AFN.js";
|
|
28
28
|
|
|
29
29
|
// src/MediaClipLayer.tsx
|
|
30
30
|
import { useEffect, useRef } from "react";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlockRenderer
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-LCBV2SE4.js";
|
|
4
|
+
import "../chunk-DI7CKFRY.js";
|
|
5
|
+
import "../chunk-Z7OW6RGR.js";
|
|
6
6
|
import {
|
|
7
7
|
renderMermaidSvgForExport
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-HCKL2AFN.js";
|
|
9
9
|
|
|
10
10
|
// src/export/diagramPictures.ts
|
|
11
11
|
import { createElement } from "react";
|
package/dist/hooks/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
useDocPlayback,
|
|
7
7
|
useMediaSchedule,
|
|
8
8
|
useViewportOrientation
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-7J4YN7EK.js";
|
|
10
10
|
import {
|
|
11
11
|
useAutoSurface
|
|
12
12
|
} from "../chunk-TT6ENR6T.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
useMediaProvider,
|
|
17
17
|
useMediaUrl,
|
|
18
18
|
useResourcePolicy
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-HCKL2AFN.js";
|
|
20
20
|
export {
|
|
21
21
|
MediaContext,
|
|
22
22
|
ResourcePolicyContext,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { S as SquisqRenderAPI, V as VideoPresentation$1, P as PipSize, a as PipShape, b as PipPosition } from './player-
|
|
2
|
-
export { B as BlockMarker, c as BlockRenderer, C as CaptionMode, d as CaptionOverlay, e as CaptionPosition, f as CaptionStyle, g as ControlsLayout, D as DisplayMode, h as DocControlsBottom, i as DocControlsOverlay, j as DocControlsSidebar, k as DocControlsSlideshow, l as DocPlayer, m as DocPlayerProps, n as DocPlayerWithSidebar, o as DocProgressBar, F as FlashcardFaceView, p as FlashcardFaceViewProps, q as FlashcardView, r as FlashcardViewProps, I as InlineAudioPlayer, s as InlineAudioPlayerProps, t as InlineVideoPlayer, u as InlineVideoPlayerProps, M as MediaClipLayer, v as MediaClipLayerProps, w as PlaybackActions, x as PlaybackState, R as RenderAudioSegmentInfo, y as RenderBlockInfo, z as RenderCaptionInfo, A as RenderChapterInfo, E as RenderVideoFrameSelector, G as SlideNavActions, H as SocialCaptionOverlay, J as formatTime } from './player-
|
|
1
|
+
import { S as SquisqRenderAPI, V as VideoPresentation$1, P as PipSize, a as PipShape, b as PipPosition } from './player-BONjpRpG.js';
|
|
2
|
+
export { B as BlockMarker, c as BlockRenderer, C as CaptionMode, d as CaptionOverlay, e as CaptionPosition, f as CaptionStyle, g as ControlsLayout, D as DisplayMode, h as DocControlsBottom, i as DocControlsOverlay, j as DocControlsSidebar, k as DocControlsSlideshow, l as DocPlayer, m as DocPlayerProps, n as DocPlayerWithSidebar, o as DocProgressBar, F as FlashcardFaceView, p as FlashcardFaceViewProps, q as FlashcardView, r as FlashcardViewProps, I as InlineAudioPlayer, s as InlineAudioPlayerProps, t as InlineVideoPlayer, u as InlineVideoPlayerProps, M as MediaClipLayer, v as MediaClipLayerProps, w as PlaybackActions, x as PlaybackState, R as RenderAudioSegmentInfo, y as RenderBlockInfo, z as RenderCaptionInfo, A as RenderChapterInfo, E as RenderVideoFrameSelector, G as SlideNavActions, H as SocialCaptionOverlay, J as formatTime } from './player-BONjpRpG.js';
|
|
3
3
|
import { Theme, VideoPresentation, VideoPipSize, VideoPipShape, VideoPipPosition, MotionSpec, Doc, ScheduledClip, MediaProvider } from '@bendyline/squisq/schemas';
|
|
4
4
|
import { DashboardStyleId, ViewportConfig, CoverSlideTemplate, CoverSlidePlayback } from '@bendyline/squisq/doc';
|
|
5
5
|
export { getAnimationStyle, getTransitionClass } from '@bendyline/squisq/doc';
|
|
6
|
-
import { C as CodeBlockCopyHandler } from './MarkdownRenderer-
|
|
7
|
-
export { a as CodeBlockCopyContext, M as MarkdownRenderer, b as MarkdownRendererProps } from './MarkdownRenderer-
|
|
6
|
+
import { C as CodeBlockCopyHandler } from './MarkdownRenderer-C63CQ9Ca.js';
|
|
7
|
+
export { a as CodeBlockCopyContext, M as MarkdownRenderer, b as MarkdownRendererProps } from './MarkdownRenderer-C63CQ9Ca.js';
|
|
8
8
|
export { FenceRendererContext, MermaidDiagram, MermaidDiagramProps, VideoEmbedFrame, VideoEmbedFrameProps, useFenceRenderers } from './markdown/index.js';
|
|
9
9
|
export { CanvasSection, CanvasSectionProps, ImageDisplayMode, LinearDocView, LinearDocViewProps, PageSectionView, PageSectionViewProps, PageViewContext, PageViewContextValue, PaginatedDocPage, PaginatedDocView, PaginatedDocViewProps, usePageView } from './page/index.js';
|
|
10
|
-
import * as
|
|
10
|
+
import * as react from 'react';
|
|
11
11
|
import { RefObject } from 'react';
|
|
12
12
|
import { AnimatedImageInfo } from '@bendyline/squisq/imageEdit';
|
|
13
13
|
export { ImageLayer, MapLayer, MermaidLayer, PathLayer, ShapeLayer, TextLayer, TreeLayer, VideoLayer } from './layers/index.js';
|
|
14
|
-
export { T as TableLayer, a as TableLayerContentRenderer, b as TableLayerContentRendererProps } from './TableLayer-
|
|
14
|
+
export { T as TableLayer, a as TableLayerContentRenderer, b as TableLayerContentRendererProps } from './TableLayer-CA18rzIJ.js';
|
|
15
15
|
export { MediaContext, MediaScheduleController, ModalDialogOptions, ResourcePolicyContext, UseDocPlaybackOptions, useAudioSync, useAutoSurface, useDocPlayback, useMediaProvider, useMediaSchedule, useMediaUrl, useModalDialog, useResourcePolicy, useViewportOrientation } from './hooks/index.js';
|
|
16
16
|
export { FenceRenderContext, FenceRenderer, FenceRendererMap } from '@bendyline/squisq/fence';
|
|
17
17
|
export { A as AudioActions, a as AudioController, b as AudioState } from './AudioController-DwMsPe38.js';
|
|
@@ -172,7 +172,7 @@ interface DashboardViewProps {
|
|
|
172
172
|
onRenderAPIReady?: (api: SquisqRenderAPI | null) => void;
|
|
173
173
|
className?: string;
|
|
174
174
|
}
|
|
175
|
-
declare function DashboardView({ doc, theme, viewport, layout, showTitle, style, documentTitle, basePath, animationsEnabled, muted, renderMode, onRenderAPIReady, className, }: DashboardViewProps):
|
|
175
|
+
declare function DashboardView({ doc, theme, viewport, layout, showTitle, style, documentTitle, basePath, animationsEnabled, muted, renderMode, onRenderAPIReady, className, }: DashboardViewProps): react.JSX.Element;
|
|
176
176
|
|
|
177
177
|
type AnimatedImageStatus = 'playing' | 'paused' | 'ended';
|
|
178
178
|
interface AnimatedImagePlayback {
|
|
@@ -203,7 +203,7 @@ interface AnimatedImageControlsProps {
|
|
|
203
203
|
* positioned box the image fills. */
|
|
204
204
|
imageRef: RefObject<HTMLImageElement | null>;
|
|
205
205
|
}
|
|
206
|
-
declare function AnimatedImageControls({ playback, imageRef }: AnimatedImageControlsProps):
|
|
206
|
+
declare function AnimatedImageControls({ playback, imageRef }: AnimatedImageControlsProps): react.JSX.Element | null;
|
|
207
207
|
|
|
208
208
|
interface DocPlayerAppearanceOverrides {
|
|
209
209
|
theme?: Theme;
|
package/dist/index.js
CHANGED
|
@@ -15,17 +15,17 @@ import {
|
|
|
15
15
|
formatTime,
|
|
16
16
|
resolveDocPlayerAppearance,
|
|
17
17
|
useMediaClipDurations
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y4YCIMES.js";
|
|
19
19
|
import {
|
|
20
20
|
PaginatedDocView
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JEEBHC5W.js";
|
|
22
22
|
import {
|
|
23
23
|
CanvasSection,
|
|
24
24
|
LinearDocView,
|
|
25
25
|
PageSectionView,
|
|
26
26
|
PageViewContext,
|
|
27
27
|
usePageView
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-4HJBKCSY.js";
|
|
29
29
|
import {
|
|
30
30
|
useModalDialog
|
|
31
31
|
} from "./chunk-65POMKHR.js";
|
|
@@ -34,11 +34,11 @@ import {
|
|
|
34
34
|
useDocPlayback,
|
|
35
35
|
useMediaSchedule,
|
|
36
36
|
useViewportOrientation
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7J4YN7EK.js";
|
|
38
38
|
import {
|
|
39
39
|
JsonView,
|
|
40
40
|
createJsonFormFenceRenderer
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XQSZ55EQ.js";
|
|
42
42
|
import {
|
|
43
43
|
useAutoSurface
|
|
44
44
|
} from "./chunk-TT6ENR6T.js";
|
|
@@ -51,10 +51,10 @@ import {
|
|
|
51
51
|
VideoEmbedFrame,
|
|
52
52
|
useAnimatedImage,
|
|
53
53
|
useFenceRenderers
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-T7NVETOH.js";
|
|
55
55
|
import {
|
|
56
56
|
BlockRenderer
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-LCBV2SE4.js";
|
|
58
58
|
import {
|
|
59
59
|
ImageLayer,
|
|
60
60
|
MapLayer,
|
|
@@ -67,17 +67,17 @@ import {
|
|
|
67
67
|
VideoLayer,
|
|
68
68
|
getAnimationStyle,
|
|
69
69
|
getTransitionClass
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-DI7CKFRY.js";
|
|
71
71
|
import {
|
|
72
72
|
MermaidDiagram
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-Z7OW6RGR.js";
|
|
74
74
|
import {
|
|
75
75
|
MediaContext,
|
|
76
76
|
ResourcePolicyContext,
|
|
77
77
|
useMediaProvider,
|
|
78
78
|
useMediaUrl,
|
|
79
79
|
useResourcePolicy
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-HCKL2AFN.js";
|
|
81
81
|
export {
|
|
82
82
|
AnimatedImageControls,
|
|
83
83
|
BlockRenderer,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { SquisqAnnotatedSchema } from '@bendyline/squisq/jsonForm';
|
|
3
3
|
import { Theme, SurfaceScheme } from '@bendyline/squisq/schemas';
|
|
4
4
|
import { FenceRenderContext, FenceRenderer } from '@bendyline/squisq/fence';
|
|
@@ -17,7 +17,7 @@ interface JsonViewProps {
|
|
|
17
17
|
/** Optional CSS class for the outer container. */
|
|
18
18
|
className?: string;
|
|
19
19
|
}
|
|
20
|
-
declare function JsonView(props: JsonViewProps):
|
|
20
|
+
declare function JsonView(props: JsonViewProps): react.JSX.Element;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Built-in fence renderer: a fence's JSON / YAML-subset body rendered
|
package/dist/json-view/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JsonView,
|
|
3
3
|
createJsonFormFenceRenderer
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-XQSZ55EQ.js";
|
|
5
5
|
import "../chunk-TT6ENR6T.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-T7NVETOH.js";
|
|
7
|
+
import "../chunk-Z7OW6RGR.js";
|
|
8
|
+
import "../chunk-HCKL2AFN.js";
|
|
9
9
|
export {
|
|
10
10
|
JsonView,
|
|
11
11
|
createJsonFormFenceRenderer
|
package/dist/layers/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { ImageLayer as ImageLayer$1, TextLayer as TextLayer$1, ShapeLayer as ShapeLayer$1, PathLayer as PathLayer$1, VideoLayer as VideoLayer$1, TreeLayer as TreeLayer$1, MapLayer as MapLayer$1, MermaidLayer as MermaidLayer$1, Theme } from '@bendyline/squisq/schemas';
|
|
3
|
-
export { T as TableLayer, a as TableLayerContentRenderer, b as TableLayerContentRendererProps } from '../TableLayer-
|
|
4
|
-
import 'react';
|
|
3
|
+
export { T as TableLayer, a as TableLayerContentRenderer, b as TableLayerContentRendererProps } from '../TableLayer-CA18rzIJ.js';
|
|
5
4
|
|
|
6
5
|
interface ImageLayerProps {
|
|
7
6
|
layer: ImageLayer$1;
|
|
@@ -17,7 +16,7 @@ interface ImageLayerProps {
|
|
|
17
16
|
/** Whether authored and responsive image motion should run. */
|
|
18
17
|
animationsEnabled?: boolean;
|
|
19
18
|
}
|
|
20
|
-
declare function ImageLayer({ layer, basePath, viewport, blockTime, animationsEnabled, }: ImageLayerProps):
|
|
19
|
+
declare function ImageLayer({ layer, basePath, viewport, blockTime, animationsEnabled, }: ImageLayerProps): react.JSX.Element;
|
|
21
20
|
|
|
22
21
|
interface TextLayerProps {
|
|
23
22
|
layer: TextLayer$1;
|
|
@@ -35,7 +34,7 @@ interface TextLayerProps {
|
|
|
35
34
|
* Dispatch between the plain SVG-text renderer and the rich HTML renderer
|
|
36
35
|
* based on whether the layer carries `content.html`.
|
|
37
36
|
*/
|
|
38
|
-
declare function TextLayer(props: TextLayerProps):
|
|
37
|
+
declare function TextLayer(props: TextLayerProps): react.JSX.Element;
|
|
39
38
|
|
|
40
39
|
interface ShapeLayerProps {
|
|
41
40
|
layer: ShapeLayer$1;
|
|
@@ -47,7 +46,7 @@ interface ShapeLayerProps {
|
|
|
47
46
|
/** Current time relative to block start */
|
|
48
47
|
blockTime: number;
|
|
49
48
|
}
|
|
50
|
-
declare function ShapeLayer({ layer, viewport, blockTime }: ShapeLayerProps):
|
|
49
|
+
declare function ShapeLayer({ layer, viewport, blockTime }: ShapeLayerProps): react.JSX.Element;
|
|
51
50
|
|
|
52
51
|
interface PathLayerProps {
|
|
53
52
|
layer: PathLayer$1;
|
|
@@ -59,7 +58,7 @@ interface PathLayerProps {
|
|
|
59
58
|
/** Current time relative to block start. */
|
|
60
59
|
blockTime: number;
|
|
61
60
|
}
|
|
62
|
-
declare function PathLayer({ layer, viewport, blockTime }: PathLayerProps):
|
|
61
|
+
declare function PathLayer({ layer, viewport, blockTime }: PathLayerProps): react.JSX.Element;
|
|
63
62
|
|
|
64
63
|
interface VideoLayerProps {
|
|
65
64
|
layer: VideoLayer$1;
|
|
@@ -77,7 +76,7 @@ interface VideoLayerProps {
|
|
|
77
76
|
/** Silence the video's own audio track. */
|
|
78
77
|
muted?: boolean;
|
|
79
78
|
}
|
|
80
|
-
declare function VideoLayer({ layer, basePath, viewport, blockTime, isPlaying, muted, }: VideoLayerProps):
|
|
79
|
+
declare function VideoLayer({ layer, basePath, viewport, blockTime, isPlaying, muted, }: VideoLayerProps): react.JSX.Element;
|
|
81
80
|
|
|
82
81
|
interface TreeLayerProps {
|
|
83
82
|
layer: TreeLayer$1;
|
|
@@ -87,7 +86,7 @@ interface TreeLayerProps {
|
|
|
87
86
|
};
|
|
88
87
|
blockTime: number;
|
|
89
88
|
}
|
|
90
|
-
declare function TreeLayer({ layer, viewport, blockTime }: TreeLayerProps):
|
|
89
|
+
declare function TreeLayer({ layer, viewport, blockTime }: TreeLayerProps): react.JSX.Element;
|
|
91
90
|
|
|
92
91
|
interface MapLayerProps {
|
|
93
92
|
layer: MapLayer$1;
|
|
@@ -101,7 +100,7 @@ interface MapLayerProps {
|
|
|
101
100
|
/** Current time relative to block start (for animation timing) */
|
|
102
101
|
blockTime: number;
|
|
103
102
|
}
|
|
104
|
-
declare function MapLayer({ layer, basePath, viewport, blockTime }: MapLayerProps):
|
|
103
|
+
declare function MapLayer({ layer, basePath, viewport, blockTime }: MapLayerProps): react.JSX.Element;
|
|
105
104
|
|
|
106
105
|
interface MermaidLayerProps {
|
|
107
106
|
layer: MermaidLayer$1;
|
|
@@ -113,6 +112,6 @@ interface MermaidLayerProps {
|
|
|
113
112
|
theme?: Theme;
|
|
114
113
|
}
|
|
115
114
|
/** Mermaid diagram hosted in HTML inside the slide SVG. */
|
|
116
|
-
declare function MermaidLayer({ layer, viewport, blockTime, theme }: MermaidLayerProps):
|
|
115
|
+
declare function MermaidLayer({ layer, viewport, blockTime, theme }: MermaidLayerProps): react.JSX.Element;
|
|
117
116
|
|
|
118
117
|
export { ImageLayer, MapLayer, MermaidLayer, PathLayer, ShapeLayer, TextLayer, TreeLayer, VideoLayer };
|
package/dist/layers/index.js
CHANGED
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
TextLayer,
|
|
9
9
|
TreeLayer,
|
|
10
10
|
VideoLayer
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-DI7CKFRY.js";
|
|
12
|
+
import "../chunk-Z7OW6RGR.js";
|
|
13
|
+
import "../chunk-HCKL2AFN.js";
|
|
14
14
|
export {
|
|
15
15
|
ImageLayer,
|
|
16
16
|
MapLayer,
|
package/dist/markdown/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export { a as CodeBlockCopyContext, C as CodeBlockCopyHandler, M as MarkdownRenderer, b as MarkdownRendererProps } from '../MarkdownRenderer-
|
|
2
|
-
import * as
|
|
1
|
+
export { a as CodeBlockCopyContext, C as CodeBlockCopyHandler, M as MarkdownRenderer, b as MarkdownRendererProps } from '../MarkdownRenderer-C63CQ9Ca.js';
|
|
2
|
+
import * as react from 'react';
|
|
3
3
|
import { Theme } from '@bendyline/squisq/schemas';
|
|
4
4
|
import { VideoEmbed } from '@bendyline/squisq/markdown';
|
|
5
|
-
import * as react from 'react';
|
|
6
5
|
import { FenceRendererMap } from '@bendyline/squisq/fence';
|
|
7
6
|
export { FenceRenderContext, FenceRenderer, FenceRendererMap } from '@bendyline/squisq/fence';
|
|
8
7
|
|
|
@@ -14,7 +13,7 @@ interface MermaidDiagramProps {
|
|
|
14
13
|
theme?: Theme;
|
|
15
14
|
}
|
|
16
15
|
/** Read-only Mermaid rendering for page bodies and slide layers. */
|
|
17
|
-
declare function MermaidDiagram({ source, className, ariaLabel, theme, }: MermaidDiagramProps):
|
|
16
|
+
declare function MermaidDiagram({ source, className, ariaLabel, theme, }: MermaidDiagramProps): react.JSX.Element;
|
|
18
17
|
|
|
19
18
|
interface VideoEmbedFrameProps {
|
|
20
19
|
/** The recognized video (`parseVideoEmbedUrl` / `findBlockVideoEmbed`). */
|
|
@@ -34,7 +33,7 @@ interface VideoEmbedFrameProps {
|
|
|
34
33
|
/** Extra className on the root element. */
|
|
35
34
|
className?: string;
|
|
36
35
|
}
|
|
37
|
-
declare function VideoEmbedFrame({ embed, title, showCaption, inline, className, }: VideoEmbedFrameProps):
|
|
36
|
+
declare function VideoEmbedFrame({ embed, title, showCaption, inline, className, }: VideoEmbedFrameProps): react.JSX.Element;
|
|
38
37
|
|
|
39
38
|
declare const FenceRendererContext: react.Context<FenceRendererMap | null>;
|
|
40
39
|
/** The ambient registry, or null when no provider wraps this subtree. */
|
package/dist/markdown/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
MarkdownRenderer,
|
|
4
4
|
VideoEmbedFrame,
|
|
5
5
|
useFenceRenderers
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-T7NVETOH.js";
|
|
7
7
|
import {
|
|
8
8
|
MermaidDiagram
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-Z7OW6RGR.js";
|
|
10
|
+
import "../chunk-HCKL2AFN.js";
|
|
11
11
|
export {
|
|
12
12
|
FenceRendererContext,
|
|
13
13
|
MarkdownRenderer,
|