@bonsae/nrg 0.17.0 → 0.18.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/README.md +2 -2
- package/package.json +1 -1
- package/server/resources/nrg-client.js +3393 -3307
- package/test/client/component/index.js +10 -0
- package/test/client/component/setup.js +10 -0
- package/test/client/e2e/index.js +4 -4
- package/test/client/unit/index.js +10 -0
- package/test/client/unit/setup.js +10 -0
- package/test/server/unit/index.js +16 -2
- package/types/client.d.ts +66 -0
- package/types/server.d.ts +7 -2
- package/types/shims/form/components/node-red-config-input.vue.d.ts +3 -1
- package/types/shims/form/components/node-red-editor-input.vue.d.ts +4 -1
- package/types/shims/form/components/node-red-json-schema-form.vue.d.ts +38 -10
- package/types/shims/form/components/node-red-select-input.vue.d.ts +3 -1
- package/types/shims/form/components/node-red-typed-input.vue.d.ts +28 -7
- package/types/test-server-unit.d.ts +7 -0
- package/vite/index.js +10 -6
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Build Node-RED nodes with Vue 3, TypeScript, JSON Schema validations, Vite and V
|
|
|
19
19
|
| --- | --- |
|
|
20
20
|
| `@bonsae/nrg` | Root entry — `defineRuntimeSettings` |
|
|
21
21
|
| `@bonsae/nrg/server` | Server node classes, schema utilities, validation (`IONode`, `ConfigNode`, `defineIONode`, `defineConfigNode`, `defineModule`, `SchemaType`, `defineSchema`, `Infer`) |
|
|
22
|
-
| `@bonsae/nrg/client` | Client-side registration (`registerTypes`, `defineNode`) |
|
|
22
|
+
| `@bonsae/nrg/client` | Client-side registration (`registerTypes`, `defineNode`, `useFormNode`, `Infer`) |
|
|
23
23
|
| `@bonsae/nrg/vite` | Vite plugin for building and developing Node-RED packages |
|
|
24
24
|
| `@bonsae/nrg/test/server/unit` | Server unit test helpers (`createNode`, `createRED`, `MockRED`) |
|
|
25
25
|
| `@bonsae/nrg/test/client/unit` | Client unit test config and mocks (`defaultConfig`, `createRED`, `createJQuery`) |
|
|
@@ -106,7 +106,7 @@ type Config = Infer<typeof ConfigsSchema>;
|
|
|
106
106
|
type Input = Infer<typeof InputSchema>;
|
|
107
107
|
type Output = Infer<typeof OutputSchema>;
|
|
108
108
|
|
|
109
|
-
export default class MyNode extends IONode<Config,
|
|
109
|
+
export default class MyNode extends IONode<Config, never, Input, Output> {
|
|
110
110
|
static readonly type = "my-node";
|
|
111
111
|
static readonly category = "function";
|
|
112
112
|
static readonly color: `#${string}` = "#ffffff";
|
package/package.json
CHANGED