@tai42/studio-sdk 6.2.0 → 7.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.
Files changed (69) hide show
  1. package/dist/components/field.d.ts +14 -1
  2. package/dist/components/field.d.ts.map +1 -1
  3. package/dist/components/field.js +5 -2
  4. package/dist/components/field.js.map +1 -1
  5. package/dist/expression/ExpressionField.d.ts +140 -0
  6. package/dist/expression/ExpressionField.d.ts.map +1 -0
  7. package/dist/expression/ExpressionField.js +88 -0
  8. package/dist/expression/ExpressionField.js.map +1 -0
  9. package/dist/expression/context.d.ts +50 -0
  10. package/dist/expression/context.d.ts.map +1 -0
  11. package/dist/expression/context.js +53 -0
  12. package/dist/expression/context.js.map +1 -0
  13. package/dist/expression/types.d.ts +157 -0
  14. package/dist/expression/types.d.ts.map +1 -0
  15. package/dist/expression/types.js +11 -0
  16. package/dist/expression/types.js.map +1 -0
  17. package/dist/hooks/useApi.d.ts +8 -0
  18. package/dist/hooks/useApi.d.ts.map +1 -1
  19. package/dist/index.d.ts +6 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +4 -0
  22. package/dist/index.js.map +1 -1
  23. package/dist/plugin/registry.d.ts.map +1 -1
  24. package/dist/plugin/registry.js +39 -1
  25. package/dist/plugin/registry.js.map +1 -1
  26. package/dist/plugin/types.d.ts +31 -0
  27. package/dist/plugin/types.d.ts.map +1 -1
  28. package/dist/schema-editor/SchemaEditor.d.ts.map +1 -1
  29. package/dist/schema-editor/SchemaEditor.js +8 -4
  30. package/dist/schema-editor/SchemaEditor.js.map +1 -1
  31. package/dist/schema-form/classify.d.ts +5 -3
  32. package/dist/schema-form/classify.d.ts.map +1 -1
  33. package/dist/schema-form/classify.js +42 -16
  34. package/dist/schema-form/classify.js.map +1 -1
  35. package/dist/schema-form/default-value.d.ts.map +1 -1
  36. package/dist/schema-form/default-value.js +4 -1
  37. package/dist/schema-form/default-value.js.map +1 -1
  38. package/dist/schema-form/field-node.d.ts.map +1 -1
  39. package/dist/schema-form/field-node.js +3 -3
  40. package/dist/schema-form/field-node.js.map +1 -1
  41. package/dist/schema-form/json-field.d.ts +14 -0
  42. package/dist/schema-form/json-field.d.ts.map +1 -0
  43. package/dist/schema-form/json-field.js +104 -0
  44. package/dist/schema-form/json-field.js.map +1 -0
  45. package/dist/schema-form/types.d.ts +2 -2
  46. package/dist/schema-form/types.js +2 -2
  47. package/dist/schema-form/validate.d.ts.map +1 -1
  48. package/dist/schema-form/validate.js +11 -4
  49. package/dist/schema-form/validate.js.map +1 -1
  50. package/package.json +2 -2
  51. package/src/components/field.tsx +20 -2
  52. package/src/expression/ExpressionField.tsx +330 -0
  53. package/src/expression/context.tsx +83 -0
  54. package/src/expression/types.ts +164 -0
  55. package/src/index.ts +22 -0
  56. package/src/plugin/registry.ts +50 -1
  57. package/src/plugin/types.ts +32 -0
  58. package/src/schema-editor/SchemaEditor.tsx +8 -4
  59. package/src/schema-form/classify.ts +103 -18
  60. package/src/schema-form/default-value.ts +4 -1
  61. package/src/schema-form/field-node.tsx +7 -4
  62. package/src/schema-form/json-field.tsx +143 -0
  63. package/src/schema-form/types.ts +2 -2
  64. package/src/schema-form/validate.ts +10 -4
  65. package/dist/schema-form/unsupported-notice.d.ts +0 -18
  66. package/dist/schema-form/unsupported-notice.d.ts.map +0 -1
  67. package/dist/schema-form/unsupported-notice.js +0 -8
  68. package/dist/schema-form/unsupported-notice.js.map +0 -1
  69. package/src/schema-form/unsupported-notice.tsx +0 -39
@@ -1,39 +0,0 @@
1
- /**
2
- * The notice rendered for a schema node the form cannot turn into an input: a
3
- * warning badge — a mark beside its label, so the meaning never rests on the
4
- * tint alone — followed by the reason, shown inside a labelled field.
5
- *
6
- * The three parts each say ONE thing once. The `Field` prints the heading, the
7
- * `Badge` prints the state, and the hint prints the REASON alone — repeating
8
- * either of the first two there would name the field twice and the state twice,
9
- * in a developer-log register on a surface a user reads.
10
- */
11
- import type { ReactNode } from 'react';
12
-
13
- import { Badge } from '../components/badge';
14
- import { Field } from '../components/field';
15
- import { AlertTriangleIcon } from '../components/icons';
16
-
17
- export function UnsupportedNotice({
18
- heading,
19
- reason,
20
- description,
21
- error,
22
- }: {
23
- heading: string;
24
- reason: string;
25
- description: string | undefined;
26
- error: string | undefined;
27
- }): ReactNode {
28
- return (
29
- <Field label={heading} description={description} error={error} group>
30
- <div role="alert" className="tai-row">
31
- <Badge variant="warning">
32
- <AlertTriangleIcon />
33
- Unsupported
34
- </Badge>
35
- <span className="tai-field-hint">{reason}</span>
36
- </div>
37
- </Field>
38
- );
39
- }