@bendyline/squisq-react 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MarkdownRenderer-CerBKw-c.d.ts → MarkdownRenderer-CC9dOc6b.d.ts} +10 -1
- package/dist/{chunk-GWD62KLD.js → chunk-DYAFB3AH.js} +6 -3
- package/dist/{chunk-TMCLQNLM.js → chunk-ESI3P77P.js} +56 -5
- package/dist/{chunk-YKBVTYU4.js → chunk-NJRSGSFW.js} +68 -2
- package/dist/{chunk-U6P7HBUY.js → chunk-U3HRSQ45.js} +44 -13
- package/dist/index.d.ts +5 -4
- package/dist/index.js +12 -6
- package/dist/json-view/index.d.ts +58 -1
- package/dist/json-view/index.js +6 -4
- package/dist/markdown/index.d.ts +9 -2
- package/dist/markdown/index.js +7 -3
- package/dist/page/index.d.ts +23 -4
- package/dist/page/index.js +2 -2
- package/dist/player/index.d.ts +9 -2
- package/dist/player/index.js +3 -3
- package/dist/squisq-player.full.global.js +419 -419
- package/dist/squisq-player.global.js +56 -56
- package/dist/standalone-source.js +1 -1
- package/dist/styles/index.css +30 -0
- package/package.json +2 -2
package/dist/page/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Doc, ViewportConfig, Theme, SurfaceScheme, ThemePageStyle } from '@bendyline/squisq/schemas';
|
|
3
3
|
import { PageTransformHints, PageSectionMaterialization, PageSection, MaterializeBlockLayersOptions } from '@bendyline/squisq/doc';
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { HtmlPolicy } from '@bendyline/squisq/markdown';
|
|
5
|
+
import { FenceRendererMap } from '@bendyline/squisq/fence';
|
|
6
|
+
import { C as CodeBlockCopyHandler } from '../MarkdownRenderer-CC9dOc6b.js';
|
|
7
|
+
export { a as CodeBlockCopyContext } from '../MarkdownRenderer-CC9dOc6b.js';
|
|
6
8
|
import * as react from 'react';
|
|
7
|
-
import '@bendyline/squisq/markdown';
|
|
8
9
|
|
|
9
10
|
interface LinearDocViewProps {
|
|
10
11
|
/**
|
|
@@ -70,6 +71,18 @@ interface LinearDocViewProps {
|
|
|
70
71
|
showCodeCopyButton?: boolean;
|
|
71
72
|
/** Optional host clipboard adapter; otherwise the browser Clipboard API is used. */
|
|
72
73
|
onCopyCode?: CodeBlockCopyHandler;
|
|
74
|
+
/**
|
|
75
|
+
* Host fence-renderer registry (`@bendyline/squisq/fence`). Claimed
|
|
76
|
+
* fence languages render through the host's widgets in every markdown
|
|
77
|
+
* section — including rich content preserved inside typed template
|
|
78
|
+
* sections (the claimed languages are threaded into the page
|
|
79
|
+
* materializer so those fences survive slot extraction).
|
|
80
|
+
*/
|
|
81
|
+
fenceRenderers?: FenceRendererMap;
|
|
82
|
+
/** Raw-HTML policy for markdown sections (default: `sanitize`). */
|
|
83
|
+
htmlPolicy?: HtmlPolicy;
|
|
84
|
+
/** Extra link URL schemes allowed in markdown sections. */
|
|
85
|
+
linkSchemes?: readonly string[];
|
|
73
86
|
}
|
|
74
87
|
type ImageDisplayMode = 'inline' | 'thumbnail';
|
|
75
88
|
/**
|
|
@@ -80,7 +93,7 @@ type ImageDisplayMode = 'inline' | 'thumbnail';
|
|
|
80
93
|
* <LinearDocView doc={doc} basePath="/media/" />
|
|
81
94
|
* ```
|
|
82
95
|
*/
|
|
83
|
-
declare function LinearDocView({ doc, markdown, basePath, viewport, className, theme, surface, animationsEnabled, thinMargins, imageDisplayMode, globalKeyboardShortcuts, showCover, transformPage, showCodeCopyButton, onCopyCode, }: LinearDocViewProps): react_jsx_runtime.JSX.Element;
|
|
96
|
+
declare function LinearDocView({ doc, markdown, basePath, viewport, className, theme, surface, animationsEnabled, thinMargins, imageDisplayMode, globalKeyboardShortcuts, showCover, transformPage, showCodeCopyButton, onCopyCode, fenceRenderers, htmlPolicy, linkSchemes, }: LinearDocViewProps): react_jsx_runtime.JSX.Element;
|
|
84
97
|
|
|
85
98
|
interface PageSectionViewProps {
|
|
86
99
|
entry: PageSectionMaterialization;
|
|
@@ -107,6 +120,12 @@ interface PageViewContextValue {
|
|
|
107
120
|
imageDisplayMode: ImageDisplayMode;
|
|
108
121
|
showCodeCopyButton: boolean;
|
|
109
122
|
onCopyCode?: CodeBlockCopyHandler;
|
|
123
|
+
/** Host fence-renderer registry — see `MarkdownRendererProps.fenceRenderers`. */
|
|
124
|
+
fenceRenderers?: FenceRendererMap;
|
|
125
|
+
/** Raw-HTML policy for section markdown; defaults to MarkdownRenderer's `sanitize`. */
|
|
126
|
+
htmlPolicy?: HtmlPolicy;
|
|
127
|
+
/** Extra link URL schemes for section markdown. */
|
|
128
|
+
linkSchemes?: readonly string[];
|
|
110
129
|
}
|
|
111
130
|
declare const PageViewContext: react.Context<PageViewContextValue>;
|
|
112
131
|
declare function usePageView(): PageViewContextValue;
|
package/dist/page/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
PageSectionView,
|
|
5
5
|
PageViewContext,
|
|
6
6
|
usePageView
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-U3HRSQ45.js";
|
|
8
8
|
import "../chunk-UJEHDVQO.js";
|
|
9
9
|
import "../chunk-TT6ENR6T.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-ESI3P77P.js";
|
|
11
11
|
import "../chunk-WLUZTUNZ.js";
|
|
12
12
|
import "../chunk-LR3AIGDD.js";
|
|
13
13
|
export {
|
package/dist/player/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Block, VideoPresentation as VideoPresentation$1, VideoPipSize, VideoPipShape, VideoPipPosition, Doc, Theme, SurfaceScheme, Transition, CaptionTrack, ViewportConfig as ViewportConfig$1, ScheduledClip } from '@bendyline/squisq/schemas';
|
|
3
3
|
import { ViewportConfig, CoverSlideTemplate, CoverSlidePlayback } from '@bendyline/squisq/doc';
|
|
4
|
+
import { FenceRendererMap } from '@bendyline/squisq/fence';
|
|
4
5
|
import { a as AudioController } from '../AudioController-DwMsPe38.js';
|
|
5
|
-
import { C as CodeBlockCopyHandler } from '../MarkdownRenderer-
|
|
6
|
-
export { a as CodeBlockCopyContext } from '../MarkdownRenderer-
|
|
6
|
+
import { C as CodeBlockCopyHandler } from '../MarkdownRenderer-CC9dOc6b.js';
|
|
7
|
+
export { a as CodeBlockCopyContext } from '../MarkdownRenderer-CC9dOc6b.js';
|
|
7
8
|
import { CSSProperties } from 'react';
|
|
8
9
|
import '@bendyline/squisq/markdown';
|
|
9
10
|
|
|
@@ -250,6 +251,12 @@ interface DocPlayerProps {
|
|
|
250
251
|
showCodeCopyButton?: boolean;
|
|
251
252
|
/** Optional host clipboard adapter; otherwise the browser Clipboard API is used. */
|
|
252
253
|
onCopyCode?: CodeBlockCopyHandler;
|
|
254
|
+
/**
|
|
255
|
+
* Host fence-renderer registry (`@bendyline/squisq/fence`), applied in
|
|
256
|
+
* linear mode's markdown sections. Video/slideshow modes render blocks
|
|
257
|
+
* as SVG layers and do not consult it.
|
|
258
|
+
*/
|
|
259
|
+
fenceRenderers?: FenceRendererMap;
|
|
253
260
|
}
|
|
254
261
|
|
|
255
262
|
/**
|
package/dist/player/index.js
CHANGED
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
MediaClipLayer,
|
|
11
11
|
SocialCaptionOverlay,
|
|
12
12
|
formatTime
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-DYAFB3AH.js";
|
|
14
14
|
import {
|
|
15
15
|
BlockRenderer
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-U3HRSQ45.js";
|
|
17
17
|
import "../chunk-UJEHDVQO.js";
|
|
18
18
|
import "../chunk-MVJQL2W2.js";
|
|
19
19
|
import "../chunk-TT6ENR6T.js";
|
|
20
20
|
import {
|
|
21
21
|
InlineAudioPlayer,
|
|
22
22
|
InlineVideoPlayer
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-ESI3P77P.js";
|
|
24
24
|
import "../chunk-WLUZTUNZ.js";
|
|
25
25
|
import "../chunk-LR3AIGDD.js";
|
|
26
26
|
export {
|