@threlte/theatre 3.0.5 → 3.0.7
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/sheet/Sheet.svelte
CHANGED
|
@@ -4,9 +4,9 @@ import { globalSheets } from '../consts';
|
|
|
4
4
|
// parent context
|
|
5
5
|
export const project = getContext('theatre-project');
|
|
6
6
|
const projectName = project.address.projectId;
|
|
7
|
-
let { name = 'default', instance = undefined, children } = $props();
|
|
7
|
+
let { name = 'default', sheet = $bindable(), instance = undefined, children } = $props();
|
|
8
8
|
// bindings
|
|
9
|
-
|
|
9
|
+
sheet = globalSheets.get(`${projectName}-${name}-${instance}`) ?? project.sheet(name, instance);
|
|
10
10
|
// register instance logic
|
|
11
11
|
globalSheets.set(`${projectName}-${name}-${instance}`, sheet);
|
|
12
12
|
// init sequence store
|
|
@@ -4,12 +4,12 @@ import { SequenceController } from '../sequence/SequenceController';
|
|
|
4
4
|
declare const Sheet: import("svelte").Component<{
|
|
5
5
|
name?: string;
|
|
6
6
|
instance?: string | undefined;
|
|
7
|
+
sheet?: ISheet;
|
|
7
8
|
children?: Snippet<[{
|
|
8
9
|
sheet: ISheet;
|
|
9
10
|
}]>;
|
|
10
11
|
}, {
|
|
11
12
|
project: IProject;
|
|
12
|
-
sheet: ISheet;
|
|
13
13
|
sequence: SequenceController;
|
|
14
|
-
}, "">;
|
|
14
|
+
}, "sheet">;
|
|
15
15
|
export default Sheet;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ISheetObject, UnknownShorthandCompoundProps } from '@theatre/core';
|
|
2
|
-
import {
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
3
|
import type Declare from './declare/Declare.svelte';
|
|
4
4
|
import type Sync from './sync/Sync.svelte';
|
|
5
5
|
import type Transform from './transform/Transform.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threlte/theatre",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Threlte Components for Theatre, an animation library with a professional motion design toolset",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"typescript": "^5.6.3",
|
|
31
31
|
"typescript-eslint": "^8.32.0",
|
|
32
32
|
"vite": "^5.2.8",
|
|
33
|
-
"@threlte/core": "8.1.
|
|
34
|
-
"@threlte/extras": "9.4.
|
|
33
|
+
"@threlte/core": "8.1.4",
|
|
34
|
+
"@threlte/extras": "9.4.4"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@theatre/core": ">=0.6",
|