@tai42/studio-sdk 19.1.0 → 19.1.1
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.
|
@@ -23,7 +23,7 @@ export function StringField({ heading, description, error, format, media, expres
|
|
|
23
23
|
// upload. Not reachable together with the completion provider path: an
|
|
24
24
|
// expression is authored, not completed from server suggestions.
|
|
25
25
|
//
|
|
26
|
-
// With no door injected the annotation
|
|
26
|
+
// With no door injected the annotation has no effect: the field falls through to the
|
|
27
27
|
// ordinary paths below, exactly as a malformed annotation does, so a form
|
|
28
28
|
// renders the same bytes either way.
|
|
29
29
|
if (expression !== undefined && expressionField !== undefined) {
|
|
@@ -99,8 +99,8 @@ function ExpressionField({ component: Door, heading, description, error, express
|
|
|
99
99
|
/**
|
|
100
100
|
* The resting shell shown while a lazily-injected door resolves. It mirrors the
|
|
101
101
|
* live door's footprint — the same label/description/error chrome wrapping a
|
|
102
|
-
* multiline control seeded with the current value — but the control is
|
|
103
|
-
* (read-only, `aria-busy`) because there is nothing to edit yet. Matching the
|
|
102
|
+
* multiline control seeded with the current value — but the control is
|
|
103
|
+
* non-interactive (read-only, `aria-busy`) because there is nothing to edit yet. Matching the
|
|
104
104
|
* footprint is what keeps the Suspense swap from shifting layout or flashing.
|
|
105
105
|
*/
|
|
106
106
|
function ExpressionFieldSkeleton({ heading, description, error, value, }) {
|
|
@@ -149,12 +149,18 @@ function expressionVariable(variable) {
|
|
|
149
149
|
...(variable.hasSample ? { sample: variable.sample } : {}),
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
+
// The native control per JSON-Schema `format`. `date` and `time` post the exact
|
|
153
|
+
// wire shapes their formats expect (`YYYY-MM-DD`; `HH:mm` or `HH:mm:ss`), so they
|
|
154
|
+
// render natively. `date-time` is deliberately absent: the browser's
|
|
155
|
+
// `datetime-local` control posts `YYYY-MM-DDTHH:mm` with NO zone offset, which is
|
|
156
|
+
// not an RFC 3339 timestamp, so a `date-time` field falls through to a text box
|
|
157
|
+
// where the full offset-bearing value can be typed. Any format not listed here is
|
|
158
|
+
// a plain text box.
|
|
152
159
|
const FORMAT_INPUT_TYPES = {
|
|
153
160
|
email: 'email',
|
|
154
161
|
uri: 'url',
|
|
155
162
|
'uri-reference': 'url',
|
|
156
163
|
date: 'date',
|
|
157
|
-
'date-time': 'datetime-local',
|
|
158
164
|
time: 'time',
|
|
159
165
|
};
|
|
160
166
|
function stringInputType(format) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-field.js","sourceRoot":"","sources":["../../src/schema-form/string-field.tsx"],"names":[],"mappings":";AAqBA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,UAAU,WAAW,CAAC,EAC1B,OAAO,EACP,WAAW,EACX,KAAK,EACL,MAAM,EACN,KAAK,EACL,UAAU,EACV,OAAO,EACP,KAAK,EACL,QAAQ,EACR,QAAQ,GAYT;IACC,MAAM,kBAAkB,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAC;IACjE,MAAM,eAAe,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAC;IAC3D,MAAM,OAAO,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,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F;AAClF,SAAS,kBAAkB,CACzB,QAAgE;IAEhE,OAAO;QACL,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,6EAA6E;QAC7E,gDAAgD;QAChD,IAAI,EAAE,EAAE;QACR,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3D,CAAC;AACJ,CAAC;AAED,gFAAgF;AAChF,kFAAkF;AAClF,qEAAqE;AACrE,kFAAkF;AAClF,gFAAgF;AAChF,kFAAkF;AAClF,oBAAoB;AACpB,MAAM,kBAAkB,GAA2B;IACjD,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,eAAe,EAAE,KAAK;IACtB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACb,CAAC;AAEF,SAAS,eAAe,CAAC,MAA0B;IACjD,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC;IACxC,OAAO,kBAAkB,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC;AAC9C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tai42/studio-sdk",
|
|
3
|
-
"version": "19.1.
|
|
3
|
+
"version": "19.1.1",
|
|
4
4
|
"description": "The Studio plugin contract, shared UI components, and hooks that every feature builds on.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "tai42 <oss@tai42.ai>",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@radix-ui/react-select": "^2.3.2",
|
|
97
97
|
"@radix-ui/react-tabs": "^1.1.21",
|
|
98
98
|
"@radix-ui/react-tooltip": "^1.2.16",
|
|
99
|
-
"@tai42/api-client": "19.1.
|
|
99
|
+
"@tai42/api-client": "19.1.1"
|
|
100
100
|
},
|
|
101
101
|
"scripts": {
|
|
102
102
|
"build": "tsc -b tsconfig.build.json && node scripts/copy-assets.mjs",
|
|
@@ -71,7 +71,7 @@ export function StringField({
|
|
|
71
71
|
// upload. Not reachable together with the completion provider path: an
|
|
72
72
|
// expression is authored, not completed from server suggestions.
|
|
73
73
|
//
|
|
74
|
-
// With no door injected the annotation
|
|
74
|
+
// With no door injected the annotation has no effect: the field falls through to the
|
|
75
75
|
// ordinary paths below, exactly as a malformed annotation does, so a form
|
|
76
76
|
// renders the same bytes either way.
|
|
77
77
|
if (expression !== undefined && expressionField !== undefined) {
|
|
@@ -262,8 +262,8 @@ function ExpressionField({
|
|
|
262
262
|
/**
|
|
263
263
|
* The resting shell shown while a lazily-injected door resolves. It mirrors the
|
|
264
264
|
* live door's footprint — the same label/description/error chrome wrapping a
|
|
265
|
-
* multiline control seeded with the current value — but the control is
|
|
266
|
-
* (read-only, `aria-busy`) because there is nothing to edit yet. Matching the
|
|
265
|
+
* multiline control seeded with the current value — but the control is
|
|
266
|
+
* non-interactive (read-only, `aria-busy`) because there is nothing to edit yet. Matching the
|
|
267
267
|
* footprint is what keeps the Suspense swap from shifting layout or flashing.
|
|
268
268
|
*/
|
|
269
269
|
function ExpressionFieldSkeleton({
|
|
@@ -334,12 +334,18 @@ function expressionVariable(
|
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
+
// The native control per JSON-Schema `format`. `date` and `time` post the exact
|
|
338
|
+
// wire shapes their formats expect (`YYYY-MM-DD`; `HH:mm` or `HH:mm:ss`), so they
|
|
339
|
+
// render natively. `date-time` is deliberately absent: the browser's
|
|
340
|
+
// `datetime-local` control posts `YYYY-MM-DDTHH:mm` with NO zone offset, which is
|
|
341
|
+
// not an RFC 3339 timestamp, so a `date-time` field falls through to a text box
|
|
342
|
+
// where the full offset-bearing value can be typed. Any format not listed here is
|
|
343
|
+
// a plain text box.
|
|
337
344
|
const FORMAT_INPUT_TYPES: Record<string, string> = {
|
|
338
345
|
email: 'email',
|
|
339
346
|
uri: 'url',
|
|
340
347
|
'uri-reference': 'url',
|
|
341
348
|
date: 'date',
|
|
342
|
-
'date-time': 'datetime-local',
|
|
343
349
|
time: 'time',
|
|
344
350
|
};
|
|
345
351
|
|