motionary 10.4.0 → 10.6.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/CHANGELOG.md +30 -0
- package/README.md +97 -0
- package/dist/chunks/{anim-image-blQgPFFS.cjs → anim-image-DECLkPH4.cjs} +2 -2
- package/dist/chunks/{anim-image-blQgPFFS.cjs.map → anim-image-DECLkPH4.cjs.map} +1 -1
- package/dist/chunks/{anim-image-DDdb9q3X.js → anim-image-DNghy017.js} +2 -2
- package/dist/chunks/{anim-image-DDdb9q3X.js.map → anim-image-DNghy017.js.map} +1 -1
- package/dist/chunks/{keyframes-tC3I7anQ.cjs → keyframes-CbUZjD_5.cjs} +2 -2
- package/dist/chunks/{keyframes-tC3I7anQ.cjs.map → keyframes-CbUZjD_5.cjs.map} +1 -1
- package/dist/chunks/{keyframes-B5PWe5bU.js → keyframes-F6vp6tZZ.js} +2 -2
- package/dist/chunks/{keyframes-B5PWe5bU.js.map → keyframes-F6vp6tZZ.js.map} +1 -1
- package/dist/chunks/{registry-CT-TT_bx.js → registry-D8LAoXI-.js} +2 -2
- package/dist/chunks/{registry-CT-TT_bx.js.map → registry-D8LAoXI-.js.map} +1 -1
- package/dist/chunks/{registry-tzwKkldE.cjs → registry-dr1CPTk1.cjs} +2 -2
- package/dist/chunks/{registry-tzwKkldE.cjs.map → registry-dr1CPTk1.cjs.map} +1 -1
- package/dist/chunks/{ticker-Un0bvTWR.cjs → ticker-DaAlEyOd.cjs} +2 -2
- package/dist/chunks/{ticker-Un0bvTWR.cjs.map → ticker-DaAlEyOd.cjs.map} +1 -1
- package/dist/chunks/{ticker-C8lSGml9.js → ticker-Do9bGsaV.js} +2 -2
- package/dist/chunks/{ticker-C8lSGml9.js.map → ticker-Do9bGsaV.js.map} +1 -1
- package/dist/chunks/{tween-BcejKpsx.js → tween-BzCGq_Ba.js} +2 -2
- package/dist/chunks/{tween-BcejKpsx.js.map → tween-BzCGq_Ba.js.map} +1 -1
- package/dist/chunks/{tween-CwLLC3Ko.cjs → tween-CmkdSyaC.cjs} +2 -2
- package/dist/chunks/{tween-CwLLC3Ko.cjs.map → tween-CmkdSyaC.cjs.map} +1 -1
- package/dist/components/lite.cjs +179 -0
- package/dist/components/lite.cjs.map +1 -1
- package/dist/components/lite.js +176 -1
- package/dist/components/lite.js.map +1 -1
- package/dist/components/tokens.cjs +179 -0
- package/dist/components/tokens.cjs.map +1 -1
- package/dist/components/tokens.d.cts +36 -1
- package/dist/components/tokens.d.ts +36 -1
- package/dist/components/tokens.js +176 -1
- package/dist/components/tokens.js.map +1 -1
- package/dist/components/widgets.cjs +1138 -213
- package/dist/components/widgets.cjs.map +1 -1
- package/dist/components/widgets.d.cts +401 -2
- package/dist/components/widgets.d.ts +401 -2
- package/dist/components/widgets.js +1124 -214
- package/dist/components/widgets.js.map +1 -1
- package/dist/components.cjs +4 -0
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +36 -1
- package/dist/components.d.ts +36 -1
- package/dist/components.js +1 -1
- package/dist/components.umd.js +2 -2
- package/dist/components.umd.js.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/llms-full.txt +273 -1
- package/dist/llms.txt +14 -2
- package/dist/manifest.json +736 -1
- package/dist/runtime/format-apng.cjs +4 -4
- package/dist/runtime/format-apng.js +4 -4
- package/dist/runtime/format-css.cjs +4 -4
- package/dist/runtime/format-css.js +4 -4
- package/dist/runtime/format-gif.cjs +4 -4
- package/dist/runtime/format-gif.js +4 -4
- package/dist/runtime/format-gltf.cjs +207 -0
- package/dist/runtime/format-gltf.cjs.map +1 -0
- package/dist/runtime/format-gltf.d.cts +251 -0
- package/dist/runtime/format-gltf.d.ts +251 -0
- package/dist/runtime/format-gltf.iife.js +2 -0
- package/dist/runtime/format-gltf.iife.js.map +1 -0
- package/dist/runtime/format-gltf.js +200 -0
- package/dist/runtime/format-gltf.js.map +1 -0
- package/dist/runtime/format-motion.cjs +4 -4
- package/dist/runtime/format-motion.js +4 -4
- package/dist/runtime/format-obj.cjs +181 -0
- package/dist/runtime/format-obj.cjs.map +1 -0
- package/dist/runtime/format-obj.d.cts +176 -0
- package/dist/runtime/format-obj.d.ts +176 -0
- package/dist/runtime/format-obj.iife.js +2 -0
- package/dist/runtime/format-obj.iife.js.map +1 -0
- package/dist/runtime/format-obj.js +174 -0
- package/dist/runtime/format-obj.js.map +1 -0
- package/dist/runtime/format-sprite.cjs +3 -3
- package/dist/runtime/format-sprite.js +3 -3
- package/dist/runtime/format-svg.cjs +3 -3
- package/dist/runtime/format-svg.js +3 -3
- package/dist/runtime/format-webp.cjs +4 -4
- package/dist/runtime/format-webp.js +4 -4
- package/dist/runtime/gl.cjs +763 -0
- package/dist/runtime/gl.cjs.map +1 -0
- package/dist/runtime/gl.d.cts +260 -0
- package/dist/runtime/gl.d.ts +260 -0
- package/dist/runtime/gl.iife.js +2 -0
- package/dist/runtime/gl.iife.js.map +1 -0
- package/dist/runtime/gl.js +739 -0
- package/dist/runtime/gl.js.map +1 -0
- package/dist/runtime/scroll.cjs +2 -2
- package/dist/runtime/scroll.js +2 -2
- package/dist/runtime/smooth.cjs +1 -1
- package/dist/runtime/smooth.js +1 -1
- package/dist/runtime/text.cjs +1 -1
- package/dist/runtime/text.js +1 -1
- package/dist/runtime/vector.cjs +704 -0
- package/dist/runtime/vector.cjs.map +1 -0
- package/dist/runtime/vector.d.cts +306 -0
- package/dist/runtime/vector.d.ts +306 -0
- package/dist/runtime/vector.iife.js +2 -0
- package/dist/runtime/vector.iife.js.map +1 -0
- package/dist/runtime/vector.js +692 -0
- package/dist/runtime/vector.js.map +1 -0
- package/dist/runtime.cjs +3 -3
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.iife.js +1 -1
- package/dist/runtime.iife.js.map +1 -1
- package/dist/runtime.js +5 -5
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/docs/ROADMAP.md +2 -2
- package/docs/components/README.md +11 -1
- package/docs/components/usa-gl-scene.md +66 -0
- package/docs/components/usa-gpu-particles.md +32 -0
- package/docs/components/usa-lottie-player.md +60 -0
- package/docs/components/usa-rive.md +57 -0
- package/docs/components/usa-shader-backdrop.md +36 -0
- package/docs/components/usa-three-scene.md +20 -0
- package/docs/components/usa-token-editor.md +32 -0
- package/docs/components.md +120 -0
- package/docs/runtime/format-gltf.md +63 -0
- package/docs/runtime/format-obj.md +59 -0
- package/docs/runtime/gl.md +62 -0
- package/docs/runtime/rive.md +55 -0
- package/docs/runtime/vector.md +67 -0
- package/package.json +47 -3
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# motionary/runtime/gl — WebGL2 scene renderer
|
|
2
|
+
|
|
3
|
+
> Generated from `showcase/catalog/prereqs.js` by `scripts/gen-runtime-docs.mjs` — edit the data, not this page.
|
|
4
|
+
|
|
5
|
+
A small WebGL2 renderer with its own API: scene graph, camera, lights, box / plane / sphere / torus, PBR-style materials, shader materials, image and video textures, orbit controls — not a Three.js clone.
|
|
6
|
+
|
|
7
|
+
Part of Motionary's own zero-dependency runtime. Size budget: **9.0 KB gzip** (enforced in CI).
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
1. **Install:** `npm i motionary`
|
|
12
|
+
2. **Import path:** `motionary/runtime/gl`
|
|
13
|
+
3. **CDN:**
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
17
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.iife.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
ESM from a CDN: `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.js`
|
|
21
|
+
|
|
22
|
+
4. **Import order & registration:** Register the core first, then the module: use(gl) also registers the core. CDN: load runtime.iife.js, then runtime/gl.iife.js (it registers itself).
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import { use } from 'motionary/runtime';
|
|
26
|
+
import { gl } from 'motionary/runtime/gl';
|
|
27
|
+
use(gl);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
import { use } from 'motionary/runtime';
|
|
34
|
+
import { gl, createRenderer, Scene, Camera, GlNode, torus, standardMaterial } from 'motionary/runtime/gl';
|
|
35
|
+
use(gl);
|
|
36
|
+
const r = createRenderer(canvas);
|
|
37
|
+
const scene = new Scene();
|
|
38
|
+
scene.add(new GlNode('donut', { geometry: torus(), material: standardMaterial({ color: [0.5, 0.55, 1, 1] }) }));
|
|
39
|
+
r.resize(); r.render(scene, new Camera({ position: [0, 0.5, 3] }));
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Exports
|
|
43
|
+
|
|
44
|
+
`gl` · `createRenderer` · `Scene` · `Camera` · `GlNode` · `box` · `plane` · `sphere` · `torus` · `standardMaterial` · `unlitMaterial` · `shaderMaterial` · `texture` · `orbitControls` · `frameNode` · `bounds` · `scrubVideo` · `mat4` · `quatFromEuler` · `quatSlerp`
|
|
45
|
+
|
|
46
|
+
## Compatibility
|
|
47
|
+
|
|
48
|
+
| Feature | Supported | Notes |
|
|
49
|
+
|---|---|---|
|
|
50
|
+
| scene graph: nodes, TRS / matrix, hierarchy, bounds, frameNode() | ✅ yes | |
|
|
51
|
+
| perspective camera, orbit controls (drag / wheel / pinch / arrow keys) | ✅ yes | auto-rotate off under reduced motion |
|
|
52
|
+
| ambient + up to 4 directional / point lights | ✅ yes | |
|
|
53
|
+
| standard material (metallic-roughness approximation), unlit, shader | ✅ yes | sRGB in/out, Reinhard tone mapping |
|
|
54
|
+
| image / canvas / ImageBitmap / raw RGBA textures, mipmaps (power of two) | ✅ yes | |
|
|
55
|
+
| video textures (MP4 / WebM), scroll-scrubbed video (scrubVideo) | ✅ yes | requestVideoFrameCallback; codecs depend on the browser |
|
|
56
|
+
| shadows, normal / occlusion / metallic-roughness maps, IBL | ✕ no | planned work beyond 11.0 |
|
|
57
|
+
| WebGL1 / no WebGL2 | ✕ no | createRenderer() throws a clear error |
|
|
58
|
+
| SSR / workers | ◐ partial | math / geometry / scene graph are pure; rendering needs WebGL2 (OffscreenCanvas works) |
|
|
59
|
+
|
|
60
|
+
## Components that need it
|
|
61
|
+
|
|
62
|
+
- `<usa-gl-scene>` — 3D scene (glTF / OBJ)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# @rive-app/canvas — Official Rive runtime
|
|
2
|
+
|
|
3
|
+
> Generated from `showcase/catalog/prereqs.js` by `scripts/gen-runtime-docs.mjs` — edit the data, not this page.
|
|
4
|
+
|
|
5
|
+
The official MIT-licensed Rive runtime, used by <usa-rive> to play .riv files (artboards, animations, state machines with inputs). Optional peer dependency: lazy-loaded on first use, never bundled into Motionary.
|
|
6
|
+
|
|
7
|
+
**Official third-party runtime** (optional peer dependency, lazy-loaded). Why not our own: .riv is Rive’s proprietary binary format with a state-machine runtime; the official runtime is the only faithful player, so Motionary does not reimplement it.
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
1. **Install:** `npm i @rive-app/canvas`
|
|
12
|
+
2. **Import path:** `@rive-app/canvas`
|
|
13
|
+
3. **CDN:**
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<script src="https://unpkg.com/@rive-app/canvas@2.44.1/rive.js"></script>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
ESM from a CDN: `https://cdn.jsdelivr.net/npm/@rive-app/canvas@2.44.1/+esm`
|
|
20
|
+
|
|
21
|
+
4. **Import order & registration:** Install the official runtime next to motionary, then hand <usa-rive> a lazy loader with provideRiveRuntime(() => import('@rive-app/canvas')) before the element mounts — your bundler splits the runtime into its own chunk, fetched only when the first <usa-rive> appears. Without a bundler: load the official rive.js from a CDN before the component bundles (window.rive), use an import map, or set runtime-src on the element. Missing → a clear message in place + usa:runtime-missing.
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import { provideRiveRuntime } from 'motionary/components/widgets';
|
|
25
|
+
provideRiveRuntime(() => import('@rive-app/canvas')); // lazy: fetched when the first <usa-rive> mounts
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Example
|
|
29
|
+
|
|
30
|
+
```js
|
|
31
|
+
// npm i @rive-app/canvas
|
|
32
|
+
import { defineRive } from 'motionary/components/widgets';
|
|
33
|
+
defineRive();
|
|
34
|
+
// <usa-rive src="/anim/icon.riv" state-machine="State Machine 1" autoplay></usa-rive>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Exports
|
|
38
|
+
|
|
39
|
+
`provideRiveRuntime` · `loadRiveRuntime` · `RIVE_PEER` · `RIVE_CDN`
|
|
40
|
+
|
|
41
|
+
## Compatibility
|
|
42
|
+
|
|
43
|
+
| Feature | Supported | Notes |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| .riv files: artboards, linear animations | ✅ yes | played by the official runtime |
|
|
46
|
+
| state machines + inputs (boolean, number, trigger) | ✅ yes | el.input(name) |
|
|
47
|
+
| fit: contain, cover, fill, fitWidth, fitHeight, none | ✅ yes | |
|
|
48
|
+
| lazy loading, clear error when the runtime is missing | ✅ yes | usa:runtime-missing |
|
|
49
|
+
| reduced motion | ✅ yes | no autoplay (first frame) |
|
|
50
|
+
| WebGL2 renderer (@rive-app/webgl2) | ◐ partial | pass its URL as runtime-src or provideRiveRuntime(() => import('@rive-app/webgl2')) |
|
|
51
|
+
| SSR | ✅ yes | nothing loads until the element mounts in a browser |
|
|
52
|
+
|
|
53
|
+
## Components that need it
|
|
54
|
+
|
|
55
|
+
- `<usa-rive>` — Rive player (official runtime)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# motionary/runtime/vector — Lottie + dotLottie player
|
|
2
|
+
|
|
3
|
+
> Generated from `showcase/catalog/prereqs.js` by `scripts/gen-runtime-docs.mjs` — edit the data, not this page.
|
|
4
|
+
|
|
5
|
+
Plays Lottie (bodymovin JSON) and dotLottie (.lottie) files on Canvas 2D with Motionary’s own renderer (no lottie-web code): shapes, gradients, trim paths, masks, track mattes, precomps, images; a runtime timeline you can seek, reverse and scrub.
|
|
6
|
+
|
|
7
|
+
Part of Motionary's own zero-dependency runtime. Size budget: **12.0 KB gzip** (enforced in CI).
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
1. **Install:** `npm i motionary`
|
|
12
|
+
2. **Import path:** `motionary/runtime/vector`
|
|
13
|
+
3. **CDN:**
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
17
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/vector.iife.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
ESM from a CDN: `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/vector.js`
|
|
21
|
+
|
|
22
|
+
4. **Import order & registration:** Register the core first, then the module: use(vector) also registers the core. CDN: load runtime.iife.js, then runtime/vector.iife.js (it registers itself).
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import { use } from 'motionary/runtime';
|
|
26
|
+
import { vector } from 'motionary/runtime/vector';
|
|
27
|
+
use(vector);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
import { use } from 'motionary/runtime';
|
|
34
|
+
import { vector, loadLottie, lottiePlayer } from 'motionary/runtime/vector';
|
|
35
|
+
use(vector);
|
|
36
|
+
const { animation } = await loadLottie('/anim/hero.lottie');
|
|
37
|
+
const player = lottiePlayer(canvas, animation, { loop: true });
|
|
38
|
+
player.play();
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Exports
|
|
42
|
+
|
|
43
|
+
`vector` · `loadLottie` · `parseDotLottie` · `unzipEntries` · `lottiePlayer` · `renderLottieFrame` · `inspectLottie` · `propValue` · `transformAt` · `trimContours` · `loadLottieImages`
|
|
44
|
+
|
|
45
|
+
## Compatibility
|
|
46
|
+
|
|
47
|
+
| Feature | Supported | Notes |
|
|
48
|
+
|---|---|---|
|
|
49
|
+
| shape, solid, null, image and precomp layers; parenting; in / out points | ✅ yes | precomp time stretch + time remap |
|
|
50
|
+
| transforms: anchor, position (split X / Y, spatial bezier), scale, rotation, skew, opacity | ✅ yes | |
|
|
51
|
+
| paths, rectangles (rounded), ellipses, stars / polygons, groups | ✅ yes | |
|
|
52
|
+
| fills (non-zero / even-odd), strokes (caps, joins, dashes) | ✅ yes | |
|
|
53
|
+
| linear + radial gradient fills / strokes | ✅ yes | highlight length / angle ignored |
|
|
54
|
+
| trim paths (individually / simultaneously) | ✅ yes | |
|
|
55
|
+
| masks: add, subtract, intersect, inverted, opacity | ✅ yes | |
|
|
56
|
+
| track mattes: alpha, alpha inverted | ✅ yes | luma mattes approximated by alpha |
|
|
57
|
+
| keyframes: per-dimension bezier easing, hold keyframes, v4 + v5 files | ✅ yes | |
|
|
58
|
+
| dotLottie (.lottie): stored + deflate entries, manifest v1 / v2, several animations, embedded images | ✅ yes | deflate needs the native DecompressionStream |
|
|
59
|
+
| markers → named segments | ✅ yes | |
|
|
60
|
+
| text layers, expressions | ✕ no | planned for 10.8 (subset) |
|
|
61
|
+
| 3D layers, layer effects, merge paths, repeaters | ✕ no | listed by inspectLottie() / el.unsupported |
|
|
62
|
+
| dotLottie themes / state machines | ✕ no | planned for 10.9 (subset) |
|
|
63
|
+
| SSR / workers | ◐ partial | parsing + unzip are pure; rendering needs a 2D canvas (OffscreenCanvas works) |
|
|
64
|
+
|
|
65
|
+
## Components that need it
|
|
66
|
+
|
|
67
|
+
- `<usa-lottie-player>` — Lottie player (JSON + dotLottie)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motionary",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.0",
|
|
4
4
|
"description": "Motionary (formerly use-scroll-animate): dependency-free scroll animations + 94 animated Web Components — 214 scroll-reveal presets, card/click/button morphs, physics, page transitions, generative & sound-reactive backgrounds, cursor/gesture effects, themes, micro-interactions, <usa-player>, WebGL. React, Vue, Svelte, Solid, Angular or plain HTML.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -1318,6 +1318,46 @@
|
|
|
1318
1318
|
"default": "./dist/runtime/format-webp.cjs"
|
|
1319
1319
|
}
|
|
1320
1320
|
},
|
|
1321
|
+
"./runtime/gl": {
|
|
1322
|
+
"import": {
|
|
1323
|
+
"types": "./dist/runtime/gl.d.ts",
|
|
1324
|
+
"default": "./dist/runtime/gl.js"
|
|
1325
|
+
},
|
|
1326
|
+
"require": {
|
|
1327
|
+
"types": "./dist/runtime/gl.d.cts",
|
|
1328
|
+
"default": "./dist/runtime/gl.cjs"
|
|
1329
|
+
}
|
|
1330
|
+
},
|
|
1331
|
+
"./runtime/format-gltf": {
|
|
1332
|
+
"import": {
|
|
1333
|
+
"types": "./dist/runtime/format-gltf.d.ts",
|
|
1334
|
+
"default": "./dist/runtime/format-gltf.js"
|
|
1335
|
+
},
|
|
1336
|
+
"require": {
|
|
1337
|
+
"types": "./dist/runtime/format-gltf.d.cts",
|
|
1338
|
+
"default": "./dist/runtime/format-gltf.cjs"
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
"./runtime/format-obj": {
|
|
1342
|
+
"import": {
|
|
1343
|
+
"types": "./dist/runtime/format-obj.d.ts",
|
|
1344
|
+
"default": "./dist/runtime/format-obj.js"
|
|
1345
|
+
},
|
|
1346
|
+
"require": {
|
|
1347
|
+
"types": "./dist/runtime/format-obj.d.cts",
|
|
1348
|
+
"default": "./dist/runtime/format-obj.cjs"
|
|
1349
|
+
}
|
|
1350
|
+
},
|
|
1351
|
+
"./runtime/vector": {
|
|
1352
|
+
"import": {
|
|
1353
|
+
"types": "./dist/runtime/vector.d.ts",
|
|
1354
|
+
"default": "./dist/runtime/vector.js"
|
|
1355
|
+
},
|
|
1356
|
+
"require": {
|
|
1357
|
+
"types": "./dist/runtime/vector.d.cts",
|
|
1358
|
+
"default": "./dist/runtime/vector.cjs"
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1321
1361
|
"./manifest.json": "./dist/manifest.json",
|
|
1322
1362
|
"./manifest.schema.json": "./dist/manifest.schema.json",
|
|
1323
1363
|
"./components.css": "./dist/components.css",
|
|
@@ -1361,7 +1401,7 @@
|
|
|
1361
1401
|
"./dist/presets-extended.umd.js"
|
|
1362
1402
|
],
|
|
1363
1403
|
"scripts": {
|
|
1364
|
-
"build": "npm run clean && node --max-old-space-size=
|
|
1404
|
+
"build": "npm run clean && PART=code node --max-old-space-size=5120 ./node_modules/rollup/dist/bin/rollup -c rollup.config.mjs && PART=dts SLICE=0/3 node --max-old-space-size=4096 ./node_modules/rollup/dist/bin/rollup -c rollup.config.mjs && PART=dts SLICE=1/3 node --max-old-space-size=4096 ./node_modules/rollup/dist/bin/rollup -c rollup.config.mjs && PART=dts SLICE=2/3 node --max-old-space-size=4096 ./node_modules/rollup/dist/bin/rollup -c rollup.config.mjs && node scripts/gen-manifest.mjs",
|
|
1365
1405
|
"dev": "rollup -c rollup.config.mjs -w",
|
|
1366
1406
|
"typecheck": "tsc --noEmit -p .",
|
|
1367
1407
|
"test": "vitest run",
|
|
@@ -1439,7 +1479,8 @@
|
|
|
1439
1479
|
},
|
|
1440
1480
|
"peerDependencies": {
|
|
1441
1481
|
"solid-js": ">=1.6.0",
|
|
1442
|
-
"svelte": ">=3.0.0"
|
|
1482
|
+
"svelte": ">=3.0.0",
|
|
1483
|
+
"@rive-app/canvas": ">=2.20.0"
|
|
1443
1484
|
},
|
|
1444
1485
|
"peerDependenciesMeta": {
|
|
1445
1486
|
"solid-js": {
|
|
@@ -1447,6 +1488,9 @@
|
|
|
1447
1488
|
},
|
|
1448
1489
|
"svelte": {
|
|
1449
1490
|
"optional": true
|
|
1491
|
+
},
|
|
1492
|
+
"@rive-app/canvas": {
|
|
1493
|
+
"optional": true
|
|
1450
1494
|
}
|
|
1451
1495
|
},
|
|
1452
1496
|
"engines": {
|