@toriistudio/v0-playground 0.1.1 → 0.1.2
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/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +2 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -31,6 +31,9 @@ type ControlType = {
|
|
|
31
31
|
render?: () => React.ReactNode;
|
|
32
32
|
};
|
|
33
33
|
type ControlsSchema = Record<string, ControlType>;
|
|
34
|
+
declare const ControlsProvider: ({ children }: {
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
34
37
|
declare const useControls: <T extends ControlsSchema>(schema: T, options?: {
|
|
35
38
|
componentName?: string;
|
|
36
39
|
}) => { [K in keyof T]: T[K] extends {
|
|
@@ -52,4 +55,4 @@ declare const useUrlSyncedControls: <T extends ControlsSchema>(schema: T, option
|
|
|
52
55
|
jsx: () => string;
|
|
53
56
|
};
|
|
54
57
|
|
|
55
|
-
export { type ControlType, type ControlsSchema, Playground, useControls, useUrlSyncedControls };
|
|
58
|
+
export { type ControlType, ControlsProvider, type ControlsSchema, Playground, useControls, useUrlSyncedControls };
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ type ControlType = {
|
|
|
31
31
|
render?: () => React.ReactNode;
|
|
32
32
|
};
|
|
33
33
|
type ControlsSchema = Record<string, ControlType>;
|
|
34
|
+
declare const ControlsProvider: ({ children }: {
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
34
37
|
declare const useControls: <T extends ControlsSchema>(schema: T, options?: {
|
|
35
38
|
componentName?: string;
|
|
36
39
|
}) => { [K in keyof T]: T[K] extends {
|
|
@@ -52,4 +55,4 @@ declare const useUrlSyncedControls: <T extends ControlsSchema>(schema: T, option
|
|
|
52
55
|
jsx: () => string;
|
|
53
56
|
};
|
|
54
57
|
|
|
55
|
-
export { type ControlType, type ControlsSchema, Playground, useControls, useUrlSyncedControls };
|
|
58
|
+
export { type ControlType, ControlsProvider, type ControlsSchema, Playground, useControls, useUrlSyncedControls };
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
|
+
ControlsProvider: () => ControlsProvider,
|
|
33
34
|
Playground: () => Playground,
|
|
34
35
|
useControls: () => useControls,
|
|
35
36
|
useUrlSyncedControls: () => useUrlSyncedControls
|
|
@@ -676,6 +677,7 @@ function Playground({ children }) {
|
|
|
676
677
|
}
|
|
677
678
|
// Annotate the CommonJS export names for ESM import in node:
|
|
678
679
|
0 && (module.exports = {
|
|
680
|
+
ControlsProvider,
|
|
679
681
|
Playground,
|
|
680
682
|
useControls,
|
|
681
683
|
useUrlSyncedControls
|
package/dist/index.mjs
CHANGED