@selvajs/ui 2.0.10 → 3.0.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.
@@ -1,6 +1,6 @@
1
- // External-input transit storage.
1
+ // Client-supplied input transit storage.
2
2
  //
3
- // When an input has source.kind === 'external', a producer route writes the produced
3
+ // When an input has source.kind === 'client', a producer route writes the produced
4
4
  // value here, and the solver route reads it back. Scoped per (scopeKey, inputId) so
5
5
  // values for one solver/input don't bleed into another. The scope key is whatever
6
6
  // uniquely identifies the solver context — sessionId in plugin-ui/preview,
@@ -59,7 +59,7 @@ export function getExternalInputs(schema) {
59
59
  if (item.type !== 'input')
60
60
  continue;
61
61
  const source = item.source;
62
- if (source?.kind !== 'external')
62
+ if (source?.kind !== 'client')
63
63
  continue;
64
64
  result.push({
65
65
  paramId: item.paramId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selvajs/ui",
3
- "version": "2.0.10",
3
+ "version": "3.0.0",
4
4
  "description": "Shared UI components and utilities for Selva applications",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -59,7 +59,7 @@
59
59
  "svelte": "^5",
60
60
  "tailwind-variants": "^3.2.2",
61
61
  "three": "^0.184.0",
62
- "@selvajs/schemas": "2.0.10"
62
+ "@selvajs/schemas": "3.0.0"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "three": {
@@ -84,8 +84,8 @@
84
84
  "bits-ui": "^2.18.0",
85
85
  "svelte": "5.55.5",
86
86
  "tailwind-variants": "^3.2.2",
87
- "@selvajs/config": "0.0.0",
88
- "@selvajs/schemas": "2.0.10"
87
+ "@selvajs/schemas": "3.0.0",
88
+ "@selvajs/config": "0.0.0"
89
89
  },
90
90
  "scripts": {
91
91
  "dev": "vite dev",
@@ -1,6 +1,6 @@
1
- // External-input transit storage.
1
+ // Client-supplied input transit storage.
2
2
  //
3
- // When an input has source.kind === 'external', a producer route writes the produced
3
+ // When an input has source.kind === 'client', a producer route writes the produced
4
4
  // value here, and the solver route reads it back. Scoped per (scopeKey, inputId) so
5
5
  // values for one solver/input don't bleed into another. The scope key is whatever
6
6
  // uniquely identifies the solver context — sessionId in plugin-ui/preview,
@@ -70,7 +70,7 @@ export function getExternalInputs(schema: UISchema): ExternalInput[] {
70
70
  for (const item of walkLayoutItems(schema)) {
71
71
  if (item.type !== 'input') continue;
72
72
  const source = (item as { source?: InputSource }).source;
73
- if (source?.kind !== 'external') continue;
73
+ if (source?.kind !== 'client') continue;
74
74
  result.push({
75
75
  paramId: item.paramId,
76
76
  displayName: item.displayName ?? item.paramId