@sequenza/workbench 1.0.3 → 1.0.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/app/index.html CHANGED
@@ -5,8 +5,8 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>local</title>
8
- <script type="module" crossorigin src="/assets/index-h68uMvSO.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-BbK7hGuP.css">
8
+ <script type="module" crossorigin src="/assets/index-b-fcoZFF.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-D4zKdPfC.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/dist/index.d.ts CHANGED
@@ -25,7 +25,14 @@ export declare function buildEditorState(patch: Patch, uniforms: Record<string,
25
25
 
26
26
  export { Connection }
27
27
 
28
- export declare const CustomHandle: FC<HandleProps>;
28
+ export declare const CustomHandle: FC<CustomHandleProps>;
29
+
30
+ declare interface CustomHandleProps extends HandleProps {
31
+ count?: {
32
+ total: number;
33
+ index: number;
34
+ };
35
+ }
29
36
 
30
37
  export declare const Dialog: FC<DialogProps>;
31
38
 
@@ -51,7 +58,7 @@ declare interface EditorContextType {
51
58
  setOpenExportNodeId: (id: string | null) => void;
52
59
  openPreviewNodeId: string | null;
53
60
  setOpenPreviewNodeId: (id: string | null) => void;
54
- handleUpdateUniforms: (shaderId: string, newUniforms: Uniforms_2) => void;
61
+ handleUpdateUniforms: (shaderId: string, uniformUpdateCallback: (current: Uniforms_2) => Uniforms_2) => void;
55
62
  handleUpdateNode: (nodeId: string, data: (snapshot: ShaderNodeData) => ShaderNodeData) => void;
56
63
  handleInsertShader: (shader: Shader_2, edgeId: string) => void;
57
64
  }
@@ -137,8 +144,8 @@ export declare const UniformForm: FC<UniformFormProps>;
137
144
 
138
145
  declare interface UniformFormProps {
139
146
  shader: Shader_2;
140
- initialUniforms?: Uniforms_2;
141
- handleUpdateUniform: (uniforms: Uniforms_2) => void;
147
+ savedUniforms: Uniforms_2;
148
+ handleUpdateUniform: (fieldName: string, value: any) => void;
142
149
  }
143
150
 
144
151
  export { Uniforms }