@threlte/theatre 3.0.0-next.2 → 3.0.0-next.4
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/project/Project.svelte.d.ts +3 -4
- package/dist/sequence/Sequence.svelte.d.ts +2 -4
- package/dist/sheet/Sheet.svelte.d.ts +2 -4
- package/dist/sheetObject/SheetObject.svelte +1 -1
- package/dist/sheetObject/declare/Declare.svelte +1 -1
- package/dist/studio/InnerStudio.svelte.d.ts +1 -3
- package/dist/studio/Studio.svelte.d.ts +1 -3
- package/dist/theatre/Theatre.svelte.d.ts +1 -3
- package/package.json +28 -8
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { type Snippet } from 'svelte';
|
|
2
3
|
import type { IProject, IProjectConfig } from '@theatre/core';
|
|
3
4
|
declare const __propDef: {
|
|
4
5
|
props: {
|
|
@@ -6,11 +7,9 @@ declare const __propDef: {
|
|
|
6
7
|
config?: IProjectConfig | undefined;
|
|
7
8
|
project?: IProject | undefined;
|
|
8
9
|
isReady?: boolean | undefined;
|
|
9
|
-
children?:
|
|
10
|
+
children?: Snippet<[{
|
|
10
11
|
project: IProject;
|
|
11
|
-
}
|
|
12
|
-
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
|
13
|
-
}) | undefined;
|
|
12
|
+
}]> | undefined;
|
|
14
13
|
};
|
|
15
14
|
events: {
|
|
16
15
|
[evt: string]: CustomEvent<any>;
|
|
@@ -25,7 +25,7 @@ declare const __propDef: {
|
|
|
25
25
|
rafDriver?: IRafDriver | undefined;
|
|
26
26
|
} | undefined) => Promise<boolean>) | undefined;
|
|
27
27
|
pause?: (() => void) | undefined;
|
|
28
|
-
children?: (
|
|
28
|
+
children?: import("svelte").Snippet<[{
|
|
29
29
|
sequence: import("./SequenceController").SequenceController;
|
|
30
30
|
position: number;
|
|
31
31
|
playing: boolean;
|
|
@@ -37,9 +37,7 @@ declare const __propDef: {
|
|
|
37
37
|
rafDriver?: IRafDriver | undefined;
|
|
38
38
|
} | undefined) => Promise<boolean>;
|
|
39
39
|
pause: () => void;
|
|
40
|
-
}
|
|
41
|
-
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
|
42
|
-
}) | undefined;
|
|
40
|
+
}]> | undefined;
|
|
43
41
|
};
|
|
44
42
|
events: {
|
|
45
43
|
[evt: string]: CustomEvent<any>;
|
|
@@ -8,11 +8,9 @@ declare const __propDef: {
|
|
|
8
8
|
instance?: string | undefined;
|
|
9
9
|
sheet?: import("@theatre/core").ISheet | undefined;
|
|
10
10
|
sequence?: SequenceController | undefined;
|
|
11
|
-
children?: (
|
|
11
|
+
children?: import("svelte").Snippet<[{
|
|
12
12
|
sheet: import("@theatre/core").ISheet;
|
|
13
|
-
}
|
|
14
|
-
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
|
15
|
-
}) | undefined;
|
|
13
|
+
}]> | undefined;
|
|
16
14
|
};
|
|
17
15
|
events: {
|
|
18
16
|
[evt: string]: CustomEvent<any>;
|
|
@@ -3,7 +3,7 @@ import { onDestroy } from 'svelte';
|
|
|
3
3
|
import { useSheet } from '../useSheet';
|
|
4
4
|
let { props, children } = $props();
|
|
5
5
|
const { sheetObject, addProps, removeProps } = useSheet();
|
|
6
|
-
let values = $sheetObject?.value;
|
|
6
|
+
let values = $state($sheetObject?.value);
|
|
7
7
|
addProps(props);
|
|
8
8
|
onDestroy(() => {
|
|
9
9
|
removeProps(Object.keys(props));
|
|
@@ -2,9 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
hide: boolean;
|
|
5
|
-
children?:
|
|
6
|
-
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
|
7
|
-
}) | undefined;
|
|
5
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
8
6
|
};
|
|
9
7
|
events: {
|
|
10
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -3,9 +3,7 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
enabled?: boolean | undefined;
|
|
5
5
|
hide?: boolean | undefined;
|
|
6
|
-
children?:
|
|
7
|
-
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
|
8
|
-
}) | undefined;
|
|
6
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
9
7
|
};
|
|
10
8
|
events: {
|
|
11
9
|
[evt: string]: CustomEvent<any>;
|
|
@@ -7,9 +7,7 @@ declare const __propDef: {
|
|
|
7
7
|
hide?: boolean | undefined;
|
|
8
8
|
} | undefined;
|
|
9
9
|
config?: IProjectConfig | undefined;
|
|
10
|
-
children?:
|
|
11
|
-
_: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\"";
|
|
12
|
-
}) | undefined;
|
|
10
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
13
11
|
};
|
|
14
12
|
events: {
|
|
15
13
|
[evt: string]: CustomEvent<any>;
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threlte/theatre",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.4",
|
|
4
4
|
"author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"description": "Threlte Components for Theatre, an animation library with a professional motion design toolset",
|
|
6
7
|
"devDependencies": {
|
|
7
8
|
"@sveltejs/adapter-auto": "^3.2.0",
|
|
8
9
|
"@sveltejs/kit": "^2.5.5",
|
|
9
10
|
"@sveltejs/package": "^2.3.1",
|
|
10
11
|
"@sveltejs/vite-plugin-svelte": "^3.1.0",
|
|
11
12
|
"@types/node": "^20.12.7",
|
|
12
|
-
"@types/three": "^0.
|
|
13
|
+
"@types/three": "^0.166.0",
|
|
13
14
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
14
15
|
"@typescript-eslint/parser": "^7.6.0",
|
|
15
16
|
"@yushijinhun/three-minifier-rollup": "^0.4.0",
|
|
@@ -20,17 +21,17 @@
|
|
|
20
21
|
"prettier-plugin-svelte": "^3.2.2",
|
|
21
22
|
"publint": "^0.2.7",
|
|
22
23
|
"rimraf": "^5.0.5",
|
|
23
|
-
"svelte": "^5.0.0-next.
|
|
24
|
+
"svelte": "^5.0.0-next.181",
|
|
24
25
|
"svelte-check": "^3.6.9",
|
|
25
26
|
"svelte-preprocess": "^5.1.3",
|
|
26
27
|
"svelte2tsx": "^0.7.6",
|
|
27
|
-
"three": "^0.
|
|
28
|
+
"three": "^0.166.1",
|
|
28
29
|
"tslib": "^2.6.2",
|
|
29
30
|
"type-fest": "^4.15.0",
|
|
30
31
|
"typescript": "^5.4.5",
|
|
31
32
|
"vite": "^5.2.8",
|
|
32
|
-
"@threlte/core": "8.0.0-next.
|
|
33
|
-
"@threlte/extras": "9.0.0-next.
|
|
33
|
+
"@threlte/core": "8.0.0-next.12",
|
|
34
|
+
"@threlte/extras": "9.0.0-next.17"
|
|
34
35
|
},
|
|
35
36
|
"peerDependencies": {
|
|
36
37
|
"svelte": ">=4",
|
|
@@ -41,6 +42,25 @@
|
|
|
41
42
|
"@theatre/studio": ">=0.6"
|
|
42
43
|
},
|
|
43
44
|
"type": "module",
|
|
45
|
+
"keywords": [
|
|
46
|
+
"theatre",
|
|
47
|
+
"threlte",
|
|
48
|
+
"svelte",
|
|
49
|
+
"three",
|
|
50
|
+
"three.js",
|
|
51
|
+
"3d",
|
|
52
|
+
"animation",
|
|
53
|
+
"motion"
|
|
54
|
+
],
|
|
55
|
+
"homepage": "https://threlte.xyz",
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "https://github.com/threlte/threlte.git",
|
|
59
|
+
"directory": "packages/theatre"
|
|
60
|
+
},
|
|
61
|
+
"bugs": {
|
|
62
|
+
"url": "https://github.com/threlte/threlte/issues"
|
|
63
|
+
},
|
|
44
64
|
"exports": {
|
|
45
65
|
".": {
|
|
46
66
|
"types": "./dist/index.d.ts",
|
|
@@ -57,8 +77,8 @@
|
|
|
57
77
|
"package": "svelte-kit sync && svelte-package && node ./scripts/cleanupPackage.js && publint",
|
|
58
78
|
"check": "svelte-check --tsconfig ./tsconfig.json",
|
|
59
79
|
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
|
60
|
-
"lint": "prettier --check
|
|
61
|
-
"format": "prettier --write
|
|
80
|
+
"lint": "prettier --check .",
|
|
81
|
+
"format": "prettier --write .",
|
|
62
82
|
"cleanup": "rimraf node_modules .svelte-kit dist"
|
|
63
83
|
}
|
|
64
84
|
}
|