@serimo/player 0.1.0 → 0.3.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/README.md +56 -9
- package/dist/composition-player.d.ts.map +1 -1
- package/dist/composition-timing.d.ts +2 -0
- package/dist/composition-timing.d.ts.map +1 -0
- package/dist/image-asset-types.d.ts +24 -0
- package/dist/image-asset-types.d.ts.map +1 -0
- package/dist/image-asset.d.ts +13 -0
- package/dist/image-asset.d.ts.map +1 -0
- package/dist/image-resources.d.ts +7 -0
- package/dist/image-resources.d.ts.map +1 -0
- package/dist/image-sequence.d.ts +3 -0
- package/dist/image-sequence.d.ts.map +1 -0
- package/dist/image-svg-animation.d.ts +5 -0
- package/dist/image-svg-animation.d.ts.map +1 -0
- package/dist/image-svg.d.ts +10 -0
- package/dist/image-svg.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +932 -90
- package/dist/player-audio.d.ts +12 -0
- package/dist/player-audio.d.ts.map +1 -0
- package/dist/player-session.d.ts +15 -3
- package/dist/player-session.d.ts.map +1 -1
- package/dist/renderer-bridge.d.ts.map +1 -1
- package/dist/styles.css +273 -261
- package/package.json +24 -24
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ React runtime for mounting frame-based Serimo compositions, seeking Core timelin
|
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
|
-
The
|
|
15
|
+
The bootstrap release `@serimo/player@0.1.0` is available on npm. This README follows the current checkout, including changes awaiting the next release; local tarballs provide that checkout's API. See the [npm release runbook](../../docs/guides/npm-releases.md). From the [repository root](../../README.md), use Node.js `>=22.16.0` and npm `>=11.21.1`:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
npm install
|
|
@@ -25,7 +25,7 @@ Build from the root so workspace dependencies such as `@serimo/core` are built b
|
|
|
25
25
|
npx playwright install chromium
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
Pack Player with `npm pack --workspace=@serimo/player --ignore-scripts --pack-destination <existing-absolute-directory>` after building, using an existing directory outside the checkout. Install `serimo-player-0.
|
|
28
|
+
Pack Player with `npm pack --workspace=@serimo/player --ignore-scripts --pack-destination <existing-absolute-directory>` after building, using an existing directory outside the checkout. Install `serimo-player-0.2.0.tgz` alongside the matching Core archive and React. Player has external peers `@serimo/core@0.2.0` and `react@19.3.1`. The browser host supplies `react-dom@19.3.1`, and Core requires `gsap@3.15.0`. The build compiles the required UI JavaScript and styles into the Player archive. [CLI preview setup](../cli/README.md#preview-a-source-composition) · [Migration guide for older projects](../cli/README.md#migrate-private-runtime-consumers)
|
|
29
29
|
|
|
30
30
|
## Usage
|
|
31
31
|
|
|
@@ -99,7 +99,7 @@ To embed a composition **without** a browser global, render `CompositionPlayer`
|
|
|
99
99
|
|
|
100
100
|
## API Reference
|
|
101
101
|
|
|
102
|
-
Player exports
|
|
102
|
+
Player exports React components and their supporting types from the `@serimo/player` entry point. `@serimo/player/styles.css` is a separate precompiled CSS export; the JS entry does not import it automatically. Existing hosts may retain their shared stylesheet setup. Examples below reuse `composition` and `components` from [Usage](#usage).
|
|
103
103
|
|
|
104
104
|
### `@serimo/player`
|
|
105
105
|
|
|
@@ -149,6 +149,41 @@ function RenderScene() {
|
|
|
149
149
|
|
|
150
150
|
While mounted, exposes `window.__serimoRenderer` with the `PlayerHandle` methods below. Only **one** bridge may own a page; mounting another throws, and unmount removes the global. The bridge follows the active Player instance. It is an internal Renderer contract, **not** a published browser SDK.
|
|
151
151
|
|
|
152
|
+
#### `ImageAsset`
|
|
153
|
+
|
|
154
|
+
Renders a prepared image inside a composition adapter and registers its timeline with Core. Acquire the descriptor with the [CLI portable-image workflow](../cli/README.md#freeze-portable-images); raw remote URLs are not accepted as this component's input.
|
|
155
|
+
|
|
156
|
+
```tsx
|
|
157
|
+
import { ImageAsset, type PlayerComponent } from "@serimo/player"
|
|
158
|
+
import heroArt from "serimo:images/hero-art"
|
|
159
|
+
|
|
160
|
+
const imageComponent: PlayerComponent = ({ clip, registry }) => (
|
|
161
|
+
<ImageAsset
|
|
162
|
+
asset={heroArt}
|
|
163
|
+
clipId={clip.id}
|
|
164
|
+
registry={registry}
|
|
165
|
+
alt='Hero illustration'
|
|
166
|
+
style={{ width: 320, height: 180 }}
|
|
167
|
+
/>
|
|
168
|
+
)
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
The CLI import requires the wildcard TypeScript declaration in its recipe. Other trusted hosts must supply equivalent validated `FrozenImageAsset` descriptors and same-origin prepared resources; Player does not download originals or run the freeze pipeline.
|
|
172
|
+
|
|
173
|
+
| Prop | Type | Description |
|
|
174
|
+
| -------------------- | ------------------------------------------------------------- | ----------------------------------------------------------------------- |
|
|
175
|
+
| `asset` | `FrozenImageAsset` | Required prepared static raster, raster sequence or validated SVG tree. |
|
|
176
|
+
| `clipId` | `string` | Required ID of the composition clip. |
|
|
177
|
+
| `registry` | `Pick<ReturnType<typeof createTimelineRegistry>, "register">` | Required registry supplied to the adapter. |
|
|
178
|
+
| `alt` | `string` | Required accessible description; use `""` for decoration. |
|
|
179
|
+
| `className`, `style` | `string`, `CSSProperties` | Optional presentation on the image root. |
|
|
180
|
+
|
|
181
|
+
Exported types are `ImageAssetProps`, `FrozenImageAsset`, `FrozenImageFrame` and `FrozenSvgNode`. Descriptors have `schemaVersion: 1`, intrinsic `width`/`height`, `kind: "static" | "sequence" | "svg"`, total `plays` and a `frames` array. Each raster frame has `src`, byte length and optional rational `timing: { numerator, denominator }` in seconds. SVG descriptors contain an inert `tree` and prepared-data byte estimate. Treat descriptors as immutable preparation results; changing one remounts its resources.
|
|
182
|
+
|
|
183
|
+
Readiness waits for all image resources before registering the clip. Same-origin prepared PNGs are byte/dimension checked and decoded once per shared URL, with reference-counted leases in the document. Decode is sequential; stale work cannot register or revive an unmounted clip, and final release closes bitmaps. Each raster instance owns its canvas; SVG instances own isolated roots, IDs and paused SMIL/CSS effects. Cleanup unregisters the timeline and releases reservations/resources.
|
|
184
|
+
|
|
185
|
+
Animation uses clip-local composition time and the composition FPS, including reverse and random seek. Source raster frame durations remain exact rational values, with exclusive frame ends; finite plays hold the final raster frame and infinite plays repeat. SVG time-based SMIL and supported CSS keyframes are sampled synchronously, without a wall-clock playback loop. Pause therefore holds the same state during preview and capture. The [CLI recipe](../cli/README.md#freeze-portable-images) specifies supported formats, the safe SVG subset and strict input limits. Player enforces descriptor boundaries and a separate 512 MiB per-document managed-data budget for prepared bytes, decoded surfaces, canvas/tree data and CSS effects. This is not a native process RSS cap or a guarantee of identical pixels across environments.
|
|
186
|
+
|
|
152
187
|
#### `PlayerComponent`
|
|
153
188
|
|
|
154
189
|
Adapter function that maps a validated clip to a locally imported React element with a registered Core timeline.
|
|
@@ -199,11 +234,13 @@ async function seekToStart(handle: PlayerHandle) {
|
|
|
199
234
|
}
|
|
200
235
|
```
|
|
201
236
|
|
|
202
|
-
| Parameter / member
|
|
203
|
-
|
|
|
204
|
-
| `whenReady()`
|
|
205
|
-
| `seek(frame)`
|
|
206
|
-
| `getComposition()`
|
|
237
|
+
| Parameter / member | Type | Description |
|
|
238
|
+
| :------------------- | :---------------------------------------------- | :--------------------------------------------------------------------------------------------------- |
|
|
239
|
+
| `whenReady()` | `() => Promise<void>` | Resolves after all clip timelines register, optional prepared PCM decodes, and frame 0 is applied. |
|
|
240
|
+
| `seek(frame)` | `(number) => Promise<void>` | **Required** `frame` is a safe integer from `0` through `durationInFrames - 1`; waits for readiness. |
|
|
241
|
+
| `getComposition()` | `() => object` | Returns validated metadata and a detached optional `audio` declaration. |
|
|
242
|
+
| `audio?.play(frame)` | `(number) => Promise<{ originTimeMs: number }>` | Activates and schedules continuous audio from a valid composition frame. |
|
|
243
|
+
| `audio?.pause()` | `() => void` | Immediately stops scheduled audio and cancels pending activation. |
|
|
207
244
|
|
|
208
245
|
Pass an optional `ref` to `CompositionPlayer` to obtain this handle, or access the same methods through the internal Renderer bridge. Readiness rejects if the initial seek fails, the Player unmounts, or timeline registration exceeds **10 seconds**. A handle from a cleaned-up session cannot seek again.
|
|
209
246
|
|
|
@@ -211,6 +248,16 @@ Synchronous composition and adapter errors occur during React render and may be
|
|
|
211
248
|
|
|
212
249
|
Exported types also include `CompositionPlayerProps` (the props accepted by `CompositionPlayer`) and `PlayerHandle`.
|
|
213
250
|
|
|
251
|
+
### Prepared audio and host playback
|
|
252
|
+
|
|
253
|
+
Composition `audio` accepts an existing track object or a nonempty array of tracks. Each `src` passed directly to Player must already resolve to PCM16 WAV at 48 kHz, mono or stereo, within 256 MiB and long enough for its declared track. The unique prepared PCM sources together must fit within 512 MiB. The [CLI host](../cli/README.md#mix-music-and-voiceover) acquires local/public HTTPS media and normalizes it with FFmpeg before mounting. Other hosts must provide equivalent preparation; Player does not include FFmpeg or decode arbitrary compressed sources directly.
|
|
254
|
+
|
|
255
|
+
Readiness fetches and decodes all unique PCM sources without resuming the AudioContext or starting a source. Duplicate source URLs decode once, but every track's duration is checked, including volume zero. A failure rejects the whole session. One AudioContext schedules all sources against one output epoch, with per-track volume and a constant master gain from Core. Mono is duplicated to left/right when another source is stereo. `getComposition()` returns a detached object or array matching the declaration; use `getAudioTracks` from Core or `Array.isArray` before reading track fields.
|
|
256
|
+
|
|
257
|
+
After readiness, invoke `audio.play(frame)` directly in the user's click/keyboard handler, before any asynchronous wait that could consume activation. Playback rejects when activation or an output timestamp cannot be obtained. The returned epoch is an **absolute browser performance timestamp**: a parent subtracts its own `performance.timeOrigin` to start its single integer-frame scheduler. Pause before a manual seek, then play from the chosen frame. Visual `seek()` ticks do not restart sources. Pause, errors and disposal stop every scheduled source; stale activation and its timeout cannot stop or revive a newer generation.
|
|
258
|
+
|
|
259
|
+
Player supplies audio controls; the host owns playback scheduling and terminal behavior. The CLI holds frame N−1 until N/FPS for audio compositions, then pauses, and never seeks frame N. Replacement, failure and unmount fence old handles and dispose audio resources. Silent handles retain their existing three methods without an `audio` member. See the [integration guide](../../docs/guides/composition-player-renderer.md#voiceover-preparation-playback-dan-ekspor) for measured timing and limitations.
|
|
260
|
+
|
|
214
261
|
## Tests and limitations
|
|
215
262
|
|
|
216
263
|
From the repository root, after building dependencies:
|
|
@@ -224,7 +271,7 @@ npm run format:check
|
|
|
224
271
|
|
|
225
272
|
Tests cover invalid inputs, clip layering and frame boundaries, future clips, readiness timeouts, cleanup/remount, React Strict Mode, mapping changes, and browser bridge behavior. The Chromium integration captures `TitleScale` and `TextReveal` through Renderer, compares sequential versus random-seek PNG output, and rejects invalid props or failed asset requests. Pixel-identical output across different browsers, fonts, or operating systems is **not** guaranteed.
|
|
226
273
|
|
|
227
|
-
The [CLI](../cli/README.md#preview-a-source-composition) provides a local source host and playback controls using this runtime.
|
|
274
|
+
The [CLI](../cli/README.md#preview-a-source-composition) provides a local source host and playback controls using this runtime. Player does not load network components. See the [Composition → Player → Renderer guide](../../docs/guides/composition-player-renderer.md) for package boundaries and capture behavior.
|
|
228
275
|
|
|
229
276
|
## Related
|
|
230
277
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composition-player.d.ts","sourceRoot":"","sources":["../src/composition-player.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAuB,MAAM,0BAA0B,CAAA;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,GAAG,EAMT,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"composition-player.d.ts","sourceRoot":"","sources":["../src/composition-player.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAuB,MAAM,0BAA0B,CAAA;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,GAAG,EAMT,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,qBAAqB,CAAA;AAG5E,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,UAAU,CAAA;IAChB,QAAQ,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAA;IACnD,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,sBAAsB,KAAK,YAAY,CAAA;AAE/E,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;IAC3C,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAA;CACxB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,UAAU,EACV,GAAG,EACJ,EAAE,sBAAsB,+BA4GxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composition-timing.d.ts","sourceRoot":"","sources":["../src/composition-timing.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,wCAAqC,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface FrozenImageFrame {
|
|
2
|
+
src: string;
|
|
3
|
+
bytes: number;
|
|
4
|
+
timing?: {
|
|
5
|
+
numerator: number;
|
|
6
|
+
denominator: number;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface FrozenSvgNode {
|
|
10
|
+
tag: string;
|
|
11
|
+
attributes: Readonly<Record<string, string>>;
|
|
12
|
+
children: readonly (FrozenSvgNode | string)[];
|
|
13
|
+
}
|
|
14
|
+
export interface FrozenImageAsset {
|
|
15
|
+
schemaVersion: 1;
|
|
16
|
+
kind: 'static' | 'sequence' | 'svg';
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
plays: number | 'infinite';
|
|
20
|
+
frames: readonly FrozenImageFrame[];
|
|
21
|
+
tree?: FrozenSvgNode;
|
|
22
|
+
bytes?: number;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=image-asset-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-asset-types.d.ts","sourceRoot":"","sources":["../src/image-asset-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;CACpD;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAC5C,QAAQ,EAAE,SAAS,CAAC,aAAa,GAAG,MAAM,CAAC,EAAE,CAAA;CAC9C;AAED,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,CAAC,CAAA;IAChB,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,KAAK,CAAA;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,GAAG,UAAU,CAAA;IAC1B,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACnC,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { createTimelineRegistry } from '@serimo/core/timeline-registry';
|
|
2
|
+
import { type CSSProperties } from 'react';
|
|
3
|
+
import type { FrozenImageAsset } from './image-asset-types.js';
|
|
4
|
+
export interface ImageAssetProps {
|
|
5
|
+
asset: FrozenImageAsset;
|
|
6
|
+
clipId: string;
|
|
7
|
+
registry: Pick<ReturnType<typeof createTimelineRegistry>, 'register'>;
|
|
8
|
+
alt: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
export declare function ImageAsset(props: ImageAssetProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=image-asset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-asset.d.ts","sourceRoot":"","sources":["../src/image-asset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AAC5E,OAAO,EACL,KAAK,aAAa,EAKnB,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAK9D,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,gBAAgB,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,EAAE,UAAU,CAAC,CAAA;IACrE,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,+BAoBhD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FrozenImageFrame } from './image-asset-types.js';
|
|
2
|
+
export declare function reserveImageData(bytes: number, document?: Document): () => void;
|
|
3
|
+
export declare function acquireImageFrame(frame: FrozenImageFrame, width: number, height: number, document?: Document): {
|
|
4
|
+
ready: Promise<ImageBitmap>;
|
|
5
|
+
release(): void;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=image-resources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-resources.d.ts","sourceRoot":"","sources":["../src/image-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAiC9D,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,QAAQ,GAAE,QAA8B,GACvC,MAAM,IAAI,CAgBZ;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,gBAAgB,EACvB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,QAAQ,GAAE,QAA8B,GACvC;IAAE,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAAC,OAAO,IAAI,IAAI,CAAA;CAAE,CA0KlD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-sequence.d.ts","sourceRoot":"","sources":["../src/image-sequence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAO9D,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,gBAAgB,EAAE,EACnC,KAAK,EAAE,MAAM,GAAG,UAAU,EAC1B,GAAG,EAAE,MAAM,GACV,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAoDhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-svg-animation.d.ts","sourceRoot":"","sources":["../src/image-svg-animation.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,aAAa;IAuDpD,IAAI,UAAU,MAAM;IA8BpB,OAAO;EAIV"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FrozenSvgNode } from './image-asset-types.js';
|
|
2
|
+
import type { ImageAssetProps } from './image-asset.js';
|
|
3
|
+
export declare function inspectSvgTree(tree: FrozenSvgNode, bytes: number, width: number, height: number): {
|
|
4
|
+
styles: string[];
|
|
5
|
+
ids: Map<string, FrozenSvgNode>;
|
|
6
|
+
nodes: number;
|
|
7
|
+
masks: number;
|
|
8
|
+
};
|
|
9
|
+
export declare function SvgImageAsset({ asset, clipId, registry, alt, className, style }: ImageAssetProps): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=image-svg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-svg.d.ts","sourceRoot":"","sources":["../src/image-svg.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAuCvD,wBAAgB,cAAc,CAC5B,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM;;;;;EA6If;AA+ED,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,MAAM,EACN,QAAQ,EACR,GAAG,EACH,SAAS,EACT,KAAK,EACN,EAAE,eAAe,+BA0HjB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,7 @@ export { CompositionPlayer } from './composition-player.js';
|
|
|
2
2
|
export type { CompositionPlayerProps, PlayerComponent, PlayerComponentOptions } from './composition-player.js';
|
|
3
3
|
export type { PlayerHandle } from './player-session.js';
|
|
4
4
|
export { CompositionPlayerBridge } from './renderer-bridge.js';
|
|
5
|
+
export { ImageAsset } from './image-asset.js';
|
|
6
|
+
export type { ImageAssetProps } from './image-asset.js';
|
|
7
|
+
export type { FrozenImageAsset, FrozenImageFrame, FrozenSvgNode } from './image-asset-types.js';
|
|
5
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,YAAY,EACV,sBAAsB,EACtB,eAAe,EACf,sBAAsB,EACvB,MAAM,yBAAyB,CAAA;AAChC,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,YAAY,EACV,sBAAsB,EACtB,eAAe,EACf,sBAAsB,EACvB,MAAM,yBAAyB,CAAA;AAChC,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvD,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACd,MAAM,wBAAwB,CAAA"}
|