@tai42/studio-sdk 11.0.0 → 12.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.
- package/README.md +8 -5
- package/dist/components/components.css +24 -1
- package/dist/components/dialog.d.ts +14 -2
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/dialog.js +25 -2
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/explorer-view.d.ts.map +1 -1
- package/dist/components/explorer-view.js +2 -2
- package/dist/components/explorer-view.js.map +1 -1
- package/dist/components/tokens.css +18 -6
- package/dist/hooks/useApi.d.ts +4 -0
- package/dist/hooks/useApi.d.ts.map +1 -1
- package/dist/plugin/types.d.ts +5 -5
- package/package.json +2 -2
- package/src/components/components.css +24 -1
- package/src/components/dialog.tsx +36 -1
- package/src/components/explorer-view.tsx +9 -2
- package/src/components/tokens.css +18 -6
- package/src/plugin/types.ts +5 -5
package/README.md
CHANGED
|
@@ -196,16 +196,19 @@ icons; the `-fill` members are for fills and charts and carry `on-fill` ink.
|
|
|
196
196
|
| `--tai-color-syntax-number` | `var(--tai-color-accent)` | _(same)_ |
|
|
197
197
|
| `--tai-color-syntax-bool` | `var(--tai-color-warn-text)` | _(same)_ |
|
|
198
198
|
|
|
199
|
-
**Legacy slots.** The names a plugin already styles against
|
|
200
|
-
members of the contract above that keep
|
|
199
|
+
**Legacy slots.** The names a plugin already styles against. `primary`,
|
|
200
|
+
`success` and `warning` re-point at the members of the contract above that keep
|
|
201
|
+
them legible; `danger` is its own destructive emphasis — a deep red that runs
|
|
202
|
+
darker than the brand accent in both themes so a destructive control is never
|
|
203
|
+
mistaken for the primary one, with a white label and a hover a shade deeper.
|
|
201
204
|
|
|
202
205
|
| Token | Light | Dark |
|
|
203
206
|
| ---------------------------- | ---------------------------- | --------- |
|
|
204
207
|
| `--tai-color-primary` | `var(--tai-color-accent)` | _(same)_ |
|
|
205
208
|
| `--tai-color-primary-text` | `var(--tai-color-on-accent)` | _(same)_ |
|
|
206
|
-
| `--tai-color-danger` | `
|
|
207
|
-
| `--tai-color-danger-text` | `#ffffff` | `#
|
|
208
|
-
| `--tai-color-danger-hover` | `#7f1d1d` | `#
|
|
209
|
+
| `--tai-color-danger` | `#991b1b` | `#dc2626` |
|
|
210
|
+
| `--tai-color-danger-text` | `#ffffff` | `#ffffff` |
|
|
211
|
+
| `--tai-color-danger-hover` | `#7f1d1d` | `#b91c1c` |
|
|
209
212
|
| `--tai-color-danger-surface` | `var(--tai-color-err-tint)` | _(same)_ |
|
|
210
213
|
| `--tai-color-success` | `var(--tai-color-ok-text)` | _(same)_ |
|
|
211
214
|
| `--tai-color-warning` | `var(--tai-color-warn-text)` | _(same)_ |
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
/* The HOST-APPLIED provenance mark on plugin-contributed nav (the shell renders
|
|
988
988
|
it; a plugin cannot suppress or restyle it). A small muted glyph that links to
|
|
989
989
|
the plugin's marketplace row and brightens on hover/focus. It sits beside a nav
|
|
990
|
-
row
|
|
990
|
+
row — per-entry, whether the row sits in a core section or the shared Plugins section. */
|
|
991
991
|
.tai-plugin-badge {
|
|
992
992
|
display: inline-flex;
|
|
993
993
|
align-items: center;
|
|
@@ -2090,6 +2090,29 @@
|
|
|
2090
2090
|
flex-wrap: wrap;
|
|
2091
2091
|
}
|
|
2092
2092
|
|
|
2093
|
+
/* A search field whose magnifier sits INSIDE the input on its leading edge,
|
|
2094
|
+
rather than as a detached glyph beside it. The wrapper is not a flex row —
|
|
2095
|
+
the input is its only in-flow child — so it stays out of the horizontal-strip
|
|
2096
|
+
contract; the icon is taken out of flow and centred over the input's reserved
|
|
2097
|
+
leading padding, and made click-through so a press still lands in the field. */
|
|
2098
|
+
.tai-search-field {
|
|
2099
|
+
position: relative;
|
|
2100
|
+
display: inline-block;
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
.tai-search-field > .tai-icon {
|
|
2104
|
+
position: absolute;
|
|
2105
|
+
inset-inline-start: var(--tai-space-3);
|
|
2106
|
+
top: 50%;
|
|
2107
|
+
transform: translateY(-50%);
|
|
2108
|
+
color: var(--tai-color-text-muted);
|
|
2109
|
+
pointer-events: none;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
.tai-search-field > .tai-input {
|
|
2113
|
+
padding-inline-start: calc(var(--tai-space-3) + 1.5rem);
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2093
2116
|
/* A first-class folder entry (row cell or card): the folder affordance beside
|
|
2094
2117
|
its optional actions, the actions pushed to the trailing edge. */
|
|
2095
2118
|
.tai-explorer-folder {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
2
2
|
export interface DialogProps {
|
|
3
3
|
readonly title: string;
|
|
4
4
|
readonly description?: string;
|
|
@@ -34,6 +34,18 @@ export interface DialogProps {
|
|
|
34
34
|
* accessible name never depends on the visible chrome.
|
|
35
35
|
*/
|
|
36
36
|
readonly chromeless?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* When `false`, the light-dismiss gestures are disabled: Escape and a pointer
|
|
39
|
+
* press outside the panel no longer close it, so the only way out is an explicit
|
|
40
|
+
* action the `children` render (a Done/Cancel button calling `onOpenChange`).
|
|
41
|
+
* The focus trap, the scrim and every other Radix behaviour are unchanged. This
|
|
42
|
+
* is a generic mechanism — it knows nothing of what the dialog holds — for the
|
|
43
|
+
* one-time-reveal case where an accidental dismiss would lose content the server
|
|
44
|
+
* cannot reproduce. Defaults to `true`, the ordinary dismissable modal. This
|
|
45
|
+
* design-system panel renders no built-in close (X) affordance, so there is none
|
|
46
|
+
* to hide here; explicit close stays entirely with the caller's own buttons.
|
|
47
|
+
*/
|
|
48
|
+
readonly dismissable?: boolean;
|
|
37
49
|
}
|
|
38
|
-
export declare function Dialog({ title, description, children, trigger, open, defaultOpen, onOpenChange, fullscreen, contentClassName, chromeless, }: DialogProps): import("react").JSX.Element;
|
|
50
|
+
export declare function Dialog({ title, description, children, trigger, open, defaultOpen, onOpenChange, fullscreen, contentClassName, chromeless, dismissable, }: DialogProps): import("react").JSX.Element;
|
|
39
51
|
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAU,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlE,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAC9B;;;;;;;;OAQG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,WAAW,EACX,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,UAAkB,EAClB,gBAAgB,EAChB,UAAkB,EAClB,WAAkB,GACnB,EAAE,WAAW,+BAwEb"}
|
|
@@ -12,9 +12,10 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
12
12
|
* (see the props) reshape the panel without giving up any Radix behaviour.
|
|
13
13
|
*/
|
|
14
14
|
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
15
|
+
import { useRef } from 'react';
|
|
15
16
|
import { assertSlotElement } from '../element-slot';
|
|
16
17
|
import { useModalFocusReturn } from './modal-focus';
|
|
17
|
-
export function Dialog({ title, description, children, trigger, open, defaultOpen, onOpenChange, fullscreen = false, contentClassName, chromeless = false, }) {
|
|
18
|
+
export function Dialog({ title, description, children, trigger, open, defaultOpen, onOpenChange, fullscreen = false, contentClassName, chromeless = false, dismissable = true, }) {
|
|
18
19
|
const focusReturn = useModalFocusReturn(trigger !== undefined);
|
|
19
20
|
if (trigger !== undefined)
|
|
20
21
|
assertSlotElement(trigger, 'Dialog `trigger`');
|
|
@@ -23,6 +24,28 @@ export function Dialog({ title, description, children, trigger, open, defaultOpe
|
|
|
23
24
|
contentClasses.push('tai-dialog-fullscreen');
|
|
24
25
|
if (contentClassName !== undefined)
|
|
25
26
|
contentClasses.push(contentClassName);
|
|
26
|
-
|
|
27
|
+
// Blocking a dismiss is `preventDefault` on the two gestures Radix fires for
|
|
28
|
+
// one — Escape and a pointer press outside the panel — so the trap and scrim
|
|
29
|
+
// stay in place and only an explicit action can call `onOpenChange`.
|
|
30
|
+
//
|
|
31
|
+
// The handlers are STABLE (created once) and read `dismissable` through a live
|
|
32
|
+
// ref, deliberately: Radix's dismissable layer latches the handler it was given
|
|
33
|
+
// and keeps calling that first closure, so a dialog that mounts dismissable and
|
|
34
|
+
// later turns undismissable (the shown-once reveal) would go on honouring the
|
|
35
|
+
// stale `dismissable` if the value were read from the render closure. The ref,
|
|
36
|
+
// rewritten every render, is what a fresh gesture always sees.
|
|
37
|
+
const dismissableRef = useRef(dismissable);
|
|
38
|
+
dismissableRef.current = dismissable;
|
|
39
|
+
const dismissGuards = useRef({
|
|
40
|
+
onEscapeKeyDown: (event) => {
|
|
41
|
+
if (!dismissableRef.current)
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
},
|
|
44
|
+
onPointerDownOutside: (event) => {
|
|
45
|
+
if (!dismissableRef.current)
|
|
46
|
+
event.preventDefault();
|
|
47
|
+
},
|
|
48
|
+
}).current;
|
|
49
|
+
return (_jsxs(RadixDialog.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [trigger !== undefined ? _jsx(RadixDialog.Trigger, { asChild: true, children: trigger }) : null, _jsxs(RadixDialog.Portal, { children: [_jsx(RadixDialog.Overlay, { className: "tai-overlay" }), _jsxs(RadixDialog.Content, { className: contentClasses.join(' '), ...focusReturn, ...dismissGuards, ...(description === undefined ? { 'aria-describedby': undefined } : {}), children: [_jsx(RadixDialog.Title, { className: chromeless ? 'tai-visually-hidden' : 'tai-dialog-title', children: title }), chromeless ? (_jsxs(_Fragment, { children: [description !== undefined ? (_jsx(RadixDialog.Description, { className: "tai-visually-hidden", children: description })) : null, children] })) : (_jsxs("div", { className: "tai-stack", children: [description !== undefined ? (_jsx(RadixDialog.Description, { className: "tai-muted", children: description })) : null, children] }))] })] })] }));
|
|
27
50
|
}
|
|
28
51
|
//# sourceMappingURL=dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAqC,MAAM,OAAO,CAAC;AAElE,OAAO,EAAE,iBAAiB,EA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mBAAmB,EACnB,WAAW,GACZ,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,SAAS,CAqQlC"}
|
|
@@ -207,7 +207,7 @@ export function ExplorerView({ items, getItemKey, getFolderId, folders, currentF
|
|
|
207
207
|
setPage(effectivePage);
|
|
208
208
|
const pageStart = (effectivePage - 1) * pageSize;
|
|
209
209
|
const pageEntries = entries.slice(pageStart, pageStart + pageSize);
|
|
210
|
-
const footer = entries.length > 0 ? (_jsxs("nav", { className: "tai-explorer-pagination", "aria-label": `${label} pagination`, children: [_jsx("span", { className: "tai-muted", children: `${String(pageStart + 1)}–${String(Math.min(pageStart + pageSize, entries.length))} of ${String(entries.length)}` }), _jsxs("div", { className: "tai-row", children: [_jsx(Select, { "aria-label": "Items per page", value: String(pageSize), onValueChange: (value) => {
|
|
210
|
+
const footer = entries.length > 0 ? (_jsxs("nav", { className: "tai-explorer-pagination", "aria-label": `${label} pagination`, children: [_jsx("span", { className: "tai-muted", children: `${String(pageStart + 1)}–${String(Math.min(pageStart + pageSize, entries.length))} of ${String(entries.length)} entries` }), _jsxs("div", { className: "tai-row", children: [_jsx(Select, { "aria-label": "Items per page", value: String(pageSize), onValueChange: (value) => {
|
|
211
211
|
setPageSize(Number(value));
|
|
212
212
|
}, options: PAGE_SIZES.map((size) => ({
|
|
213
213
|
value: String(size),
|
|
@@ -240,7 +240,7 @@ export function ExplorerView({ items, getItemKey, getFolderId, folders, currentF
|
|
|
240
240
|
// Every surface label is a regular English plural (Tools/Templates/Resources/
|
|
241
241
|
// Flows), so a count of one drops the trailing "s".
|
|
242
242
|
const countLabel = items.length === 1 ? label.toLowerCase().replace(/s$/, '') : label.toLowerCase();
|
|
243
|
-
return (_jsxs("div", { className: "tai-explorer", children: [_jsxs("div", { className: "tai-explorer-controls", children: [_jsxs("div", { className: "tai-row", children: [search !== undefined ? (_jsxs("span", { className: "tai-
|
|
243
|
+
return (_jsxs("div", { className: "tai-explorer", children: [_jsxs("div", { className: "tai-explorer-controls", children: [_jsxs("div", { className: "tai-row", children: [search !== undefined ? (_jsxs("span", { className: "tai-search-field", children: [_jsx(SearchIcon, {}), _jsx(TextInput, { value: search.value, "aria-label": search.label, placeholder: search.placeholder, onChange: (event) => {
|
|
244
244
|
search.onChange(event.target.value);
|
|
245
245
|
} })] })) : null, _jsx("span", { className: "tai-muted", children: `${String(items.length)} ${countLabel}` })] }), _jsx(ViewToggle, { value: viewMode, onValueChange: setViewMode, "aria-label": `${label} view` })] }), _jsx(FolderBreadcrumb, { folders: folders, currentFolderId: currentFolderId, onNavigate: onNavigate, rootLabel: rootLabel }), tags !== undefined && selectedSet !== undefined && vocabulary.length > 0 ? (_jsx(TagFilterRow, { vocabulary: vocabulary, selectedSet: selectedSet, onToggle: toggleTag, filterLabel: tags.filterLabel, maxVisibleTags: tags.maxVisibleTags })) : null, body] }));
|
|
246
246
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explorer-view.js","sourceRoot":"","sources":["../../src/components/explorer-view.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAe,MAAM,cAAc,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,eAAe,EAAwB,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE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UAAU,KAAG,EACd,KAAC,SAAS,IACR,KAAK,EAAE,MAAM,CAAC,KAAK,gBACP,MAAM,CAAC,KAAK,EACxB,WAAW,EAAE,MAAM,CAAC,WAAW,EAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;4CAClB,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;wCACtC,CAAC,GACD,IACG,CACR,CAAC,CAAC,CAAC,IAAI,EACR,eAAM,SAAS,EAAC,WAAW,YAAE,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,UAAU,EAAE,GAAQ,IACxE,EACN,KAAC,UAAU,IAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,gBAAc,GAAG,KAAK,OAAO,GAAI,IACpF,EAEN,KAAC,gBAAgB,IACf,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,GACpB,EAED,IAAI,KAAK,SAAS,IAAI,WAAW,KAAK,SAAS,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC1E,KAAC,YAAY,IACX,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,SAAS,EACnB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,cAAc,EAAE,IAAI,CAAC,cAAc,GACnC,CACH,CAAC,CAAC,CAAC,IAAI,EAEP,IAAI,IACD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -197,16 +197,26 @@
|
|
|
197
197
|
--tai-color-syntax-bool: var(--tai-color-warn-text);
|
|
198
198
|
|
|
199
199
|
/* -- Legacy token slots -------------------------------------------------
|
|
200
|
-
The names a plugin already styles against
|
|
201
|
-
the contract above that keep them legible.
|
|
202
|
-
|
|
200
|
+
The names a plugin already styles against. `primary`/`success`/`warning`
|
|
201
|
+
re-point at the members of the contract above that keep them legible.
|
|
202
|
+
|
|
203
|
+
`danger` is the one destructive EMPHASIS, and it runs deeper than the
|
|
204
|
+
accent on purpose: a destructive fill sharing the crimson brand ramp reads
|
|
205
|
+
as the primary action, so this is its own deep red — clearly darker and
|
|
206
|
+
less pink than the accent in BOTH themes, unlike the light-fill dark-ink
|
|
207
|
+
convention the accent follows. Its label is white in both themes and its
|
|
208
|
+
hover a shade deeper still, so a destructive button is instantly told apart
|
|
209
|
+
from a primary one. `danger-text` is that white label on the danger FILL;
|
|
210
|
+
`danger-surface` is the faint error-tint ground the label sits over
|
|
211
|
+
elsewhere. */
|
|
203
212
|
--tai-color-primary: var(--tai-color-accent);
|
|
204
213
|
--tai-color-primary-text: var(--tai-color-on-accent);
|
|
205
|
-
--tai-color-danger:
|
|
214
|
+
--tai-color-danger: #991b1b;
|
|
215
|
+
--tai-dark-color-danger: #dc2626;
|
|
206
216
|
--tai-color-danger-text: #ffffff;
|
|
207
|
-
--tai-dark-color-danger-text: #
|
|
217
|
+
--tai-dark-color-danger-text: #ffffff;
|
|
208
218
|
--tai-color-danger-hover: #7f1d1d;
|
|
209
|
-
--tai-dark-color-danger-hover: #
|
|
219
|
+
--tai-dark-color-danger-hover: #b91c1c;
|
|
210
220
|
--tai-color-danger-surface: var(--tai-color-err-tint);
|
|
211
221
|
--tai-color-success: var(--tai-color-ok-text);
|
|
212
222
|
--tai-color-warning: var(--tai-color-warn-text);
|
|
@@ -325,6 +335,7 @@
|
|
|
325
335
|
--tai-color-scrim: var(--tai-dark-color-scrim);
|
|
326
336
|
--tai-color-prose-link: var(--tai-dark-color-prose-link);
|
|
327
337
|
--tai-color-prose-link-hover: var(--tai-dark-color-prose-link-hover);
|
|
338
|
+
--tai-color-danger: var(--tai-dark-color-danger);
|
|
328
339
|
--tai-color-danger-text: var(--tai-dark-color-danger-text);
|
|
329
340
|
--tai-color-danger-hover: var(--tai-dark-color-danger-hover);
|
|
330
341
|
--tai-shadow-lift-color: var(--tai-dark-shadow-lift-color);
|
|
@@ -371,6 +382,7 @@
|
|
|
371
382
|
--tai-color-scrim: var(--tai-dark-color-scrim);
|
|
372
383
|
--tai-color-prose-link: var(--tai-dark-color-prose-link);
|
|
373
384
|
--tai-color-prose-link-hover: var(--tai-dark-color-prose-link-hover);
|
|
385
|
+
--tai-color-danger: var(--tai-dark-color-danger);
|
|
374
386
|
--tai-color-danger-text: var(--tai-dark-color-danger-text);
|
|
375
387
|
--tai-color-danger-hover: var(--tai-dark-color-danger-hover);
|
|
376
388
|
--tai-shadow-lift-color: var(--tai-dark-shadow-lift-color);
|
package/dist/hooks/useApi.d.ts
CHANGED
|
@@ -1108,6 +1108,10 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1108
1108
|
interaction_id: string;
|
|
1109
1109
|
status: string;
|
|
1110
1110
|
}>;
|
|
1111
|
+
readonly cancelInteraction: (interactionId: string) => Promise<{
|
|
1112
|
+
interaction_id: string;
|
|
1113
|
+
status: string;
|
|
1114
|
+
}>;
|
|
1111
1115
|
readonly listChannels: (signal?: AbortSignal) => Promise<{
|
|
1112
1116
|
channels: string[];
|
|
1113
1117
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useApi.d.ts","sourceRoot":"","sources":["../../src/hooks/useApi.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,eAAO,MAAM,WAAW;;+BAW83d,CAAC;iDAAsF,CAAC;;;;;uCAAuM,CAAC;;;;;4EAAgO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;wFAAw+B,CAAC;;;+CAA2G,CAAC;;;;;mBAA2L,CAAC;cAAoC,CAAC;aAAwB,CAAC;;oDAAkF,CAAC;;;;;mBAA2L,CAAC;;kCAAkE,CAAC;;;;;;iCAAwK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAAw8B,CAAC;;;;;;;;;;;;;;;;sDAA+hB,CAAC;;;;;;;;;;;;;;;;qEAA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DAA+xB,CAAC;;;aAA8H,CAAC;sCAAuE,CAAC,4DAAgC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;mBAAqvB,CAAC;;;;;;2EAAsM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAq1B,CAAC;;;;;;;;4BAA+T,CAAC;;;;;;;;;;;;cAA2U,CAAC;gBAAiE,CAAC;eAA4C,CAAC;;+CAAqF,CAAC;0CAA+E,CAAC;qDAA0F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;gHAA21B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAAg0F,CAAC;;;;;;;;;;;;+BAAkW,CAAC;oCAAuE,CAAC;;;;;;wCAAgoB,CAAC;SAXtumF,CAAC;AAE/C,wBAAgB,MAAM,IAAI,SAAS,CAMlC;AAED,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/plugin/types.d.ts
CHANGED
|
@@ -134,10 +134,10 @@ export interface RegisteredPage extends PageContribution {
|
|
|
134
134
|
/**
|
|
135
135
|
* The sidebar section a nav entry renders in. A named core section groups the
|
|
136
136
|
* entry there, after that section's core rows. An absent field or any value that
|
|
137
|
-
* is not a live core section renders the entry
|
|
138
|
-
*
|
|
137
|
+
* is not a live core section renders the entry in the shared "Plugins" section that
|
|
138
|
+
* follows the core sections (alongside every other undeclared plugin entry),
|
|
139
139
|
* placed after the core sections. The shell tolerates an unknown value at runtime
|
|
140
|
-
* (a bundle newer than this host), falling back to that
|
|
140
|
+
* (a bundle newer than this host), falling back to that shared section, so the
|
|
141
141
|
* field is a placement hint, never a hard contract.
|
|
142
142
|
*/
|
|
143
143
|
export type NavEntrySection = 'Capabilities' | 'Connections' | 'Triggers' | 'Activity' | 'Administration';
|
|
@@ -151,13 +151,13 @@ export interface NavEntryContribution {
|
|
|
151
151
|
readonly title: string;
|
|
152
152
|
/**
|
|
153
153
|
* Optional target sidebar section (see {@link NavEntrySection}); absent ⇒ the
|
|
154
|
-
*
|
|
154
|
+
* shared "Plugins" section. Additive — an older bundle omits it and stays
|
|
155
155
|
* on the same plugin API version.
|
|
156
156
|
*/
|
|
157
157
|
readonly section?: NavEntrySection;
|
|
158
158
|
/**
|
|
159
159
|
* Optional sort weight WITHIN the entry's section (whether a core section or the
|
|
160
|
-
*
|
|
160
|
+
* shared "Plugins" one): entries render in ascending `order`, and every
|
|
161
161
|
* entry that omits it sorts AFTER the ordered ones, in registration order. Two
|
|
162
162
|
* entries with the same `order` keep registration order (a stable sort). Additive —
|
|
163
163
|
* an older bundle omits it and stays on the same plugin API version.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tai42/studio-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
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>",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@radix-ui/react-select": "^2.3.2",
|
|
96
96
|
"@radix-ui/react-tabs": "^1.1.16",
|
|
97
97
|
"@radix-ui/react-tooltip": "^1.2.11",
|
|
98
|
-
"@tai42/api-client": "
|
|
98
|
+
"@tai42/api-client": "12.0.0"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"build": "tsc -b tsconfig.build.json && node scripts/copy-assets.mjs",
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
/* The HOST-APPLIED provenance mark on plugin-contributed nav (the shell renders
|
|
988
988
|
it; a plugin cannot suppress or restyle it). A small muted glyph that links to
|
|
989
989
|
the plugin's marketplace row and brightens on hover/focus. It sits beside a nav
|
|
990
|
-
row
|
|
990
|
+
row — per-entry, whether the row sits in a core section or the shared Plugins section. */
|
|
991
991
|
.tai-plugin-badge {
|
|
992
992
|
display: inline-flex;
|
|
993
993
|
align-items: center;
|
|
@@ -2090,6 +2090,29 @@
|
|
|
2090
2090
|
flex-wrap: wrap;
|
|
2091
2091
|
}
|
|
2092
2092
|
|
|
2093
|
+
/* A search field whose magnifier sits INSIDE the input on its leading edge,
|
|
2094
|
+
rather than as a detached glyph beside it. The wrapper is not a flex row —
|
|
2095
|
+
the input is its only in-flow child — so it stays out of the horizontal-strip
|
|
2096
|
+
contract; the icon is taken out of flow and centred over the input's reserved
|
|
2097
|
+
leading padding, and made click-through so a press still lands in the field. */
|
|
2098
|
+
.tai-search-field {
|
|
2099
|
+
position: relative;
|
|
2100
|
+
display: inline-block;
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
.tai-search-field > .tai-icon {
|
|
2104
|
+
position: absolute;
|
|
2105
|
+
inset-inline-start: var(--tai-space-3);
|
|
2106
|
+
top: 50%;
|
|
2107
|
+
transform: translateY(-50%);
|
|
2108
|
+
color: var(--tai-color-text-muted);
|
|
2109
|
+
pointer-events: none;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
.tai-search-field > .tai-input {
|
|
2113
|
+
padding-inline-start: calc(var(--tai-space-3) + 1.5rem);
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2093
2116
|
/* A first-class folder entry (row cell or card): the folder affordance beside
|
|
2094
2117
|
its optional actions, the actions pushed to the trailing edge. */
|
|
2095
2118
|
.tai-explorer-folder {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* (see the props) reshape the panel without giving up any Radix behaviour.
|
|
12
12
|
*/
|
|
13
13
|
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
14
|
-
import type
|
|
14
|
+
import { useRef, type ReactElement, type ReactNode } from 'react';
|
|
15
15
|
|
|
16
16
|
import { assertSlotElement } from '../element-slot';
|
|
17
17
|
import { useModalFocusReturn } from './modal-focus';
|
|
@@ -51,6 +51,18 @@ export interface DialogProps {
|
|
|
51
51
|
* accessible name never depends on the visible chrome.
|
|
52
52
|
*/
|
|
53
53
|
readonly chromeless?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* When `false`, the light-dismiss gestures are disabled: Escape and a pointer
|
|
56
|
+
* press outside the panel no longer close it, so the only way out is an explicit
|
|
57
|
+
* action the `children` render (a Done/Cancel button calling `onOpenChange`).
|
|
58
|
+
* The focus trap, the scrim and every other Radix behaviour are unchanged. This
|
|
59
|
+
* is a generic mechanism — it knows nothing of what the dialog holds — for the
|
|
60
|
+
* one-time-reveal case where an accidental dismiss would lose content the server
|
|
61
|
+
* cannot reproduce. Defaults to `true`, the ordinary dismissable modal. This
|
|
62
|
+
* design-system panel renders no built-in close (X) affordance, so there is none
|
|
63
|
+
* to hide here; explicit close stays entirely with the caller's own buttons.
|
|
64
|
+
*/
|
|
65
|
+
readonly dismissable?: boolean;
|
|
54
66
|
}
|
|
55
67
|
|
|
56
68
|
export function Dialog({
|
|
@@ -64,6 +76,7 @@ export function Dialog({
|
|
|
64
76
|
fullscreen = false,
|
|
65
77
|
contentClassName,
|
|
66
78
|
chromeless = false,
|
|
79
|
+
dismissable = true,
|
|
67
80
|
}: DialogProps) {
|
|
68
81
|
const focusReturn = useModalFocusReturn(trigger !== undefined);
|
|
69
82
|
if (trigger !== undefined) assertSlotElement(trigger, 'Dialog `trigger`');
|
|
@@ -72,6 +85,27 @@ export function Dialog({
|
|
|
72
85
|
if (fullscreen) contentClasses.push('tai-dialog-fullscreen');
|
|
73
86
|
if (contentClassName !== undefined) contentClasses.push(contentClassName);
|
|
74
87
|
|
|
88
|
+
// Blocking a dismiss is `preventDefault` on the two gestures Radix fires for
|
|
89
|
+
// one — Escape and a pointer press outside the panel — so the trap and scrim
|
|
90
|
+
// stay in place and only an explicit action can call `onOpenChange`.
|
|
91
|
+
//
|
|
92
|
+
// The handlers are STABLE (created once) and read `dismissable` through a live
|
|
93
|
+
// ref, deliberately: Radix's dismissable layer latches the handler it was given
|
|
94
|
+
// and keeps calling that first closure, so a dialog that mounts dismissable and
|
|
95
|
+
// later turns undismissable (the shown-once reveal) would go on honouring the
|
|
96
|
+
// stale `dismissable` if the value were read from the render closure. The ref,
|
|
97
|
+
// rewritten every render, is what a fresh gesture always sees.
|
|
98
|
+
const dismissableRef = useRef(dismissable);
|
|
99
|
+
dismissableRef.current = dismissable;
|
|
100
|
+
const dismissGuards = useRef({
|
|
101
|
+
onEscapeKeyDown: (event: KeyboardEvent) => {
|
|
102
|
+
if (!dismissableRef.current) event.preventDefault();
|
|
103
|
+
},
|
|
104
|
+
onPointerDownOutside: (event: Event) => {
|
|
105
|
+
if (!dismissableRef.current) event.preventDefault();
|
|
106
|
+
},
|
|
107
|
+
}).current;
|
|
108
|
+
|
|
75
109
|
return (
|
|
76
110
|
<RadixDialog.Root open={open} defaultOpen={defaultOpen} onOpenChange={onOpenChange}>
|
|
77
111
|
{trigger !== undefined ? <RadixDialog.Trigger asChild>{trigger}</RadixDialog.Trigger> : null}
|
|
@@ -84,6 +118,7 @@ export function Dialog({
|
|
|
84
118
|
<RadixDialog.Content
|
|
85
119
|
className={contentClasses.join(' ')}
|
|
86
120
|
{...focusReturn}
|
|
121
|
+
{...dismissGuards}
|
|
87
122
|
{...(description === undefined ? { 'aria-describedby': undefined } : {})}
|
|
88
123
|
>
|
|
89
124
|
{/* The title always names the dialog; `chromeless` only hides it, moving
|
|
@@ -409,7 +409,11 @@ export function ExplorerView<T>({
|
|
|
409
409
|
const footer =
|
|
410
410
|
entries.length > 0 ? (
|
|
411
411
|
<nav className="tai-explorer-pagination" aria-label={`${label} pagination`}>
|
|
412
|
-
|
|
412
|
+
{/* The pager counts ENTRIES — subfolders plus filtered items in the
|
|
413
|
+
current directory — which is a different unit from the header's total
|
|
414
|
+
item count across every folder. Naming the unit keeps the two honest:
|
|
415
|
+
"1–4 of 4 entries" here versus "7 templates" above. */}
|
|
416
|
+
<span className="tai-muted">{`${String(pageStart + 1)}–${String(Math.min(pageStart + pageSize, entries.length))} of ${String(entries.length)} entries`}</span>
|
|
413
417
|
<div className="tai-row">
|
|
414
418
|
<Select
|
|
415
419
|
aria-label="Items per page"
|
|
@@ -542,7 +546,10 @@ export function ExplorerView<T>({
|
|
|
542
546
|
<div className="tai-explorer-controls">
|
|
543
547
|
<div className="tai-row">
|
|
544
548
|
{search !== undefined ? (
|
|
545
|
-
|
|
549
|
+
// The magnifier is a leading icon INSIDE the input, not a detached
|
|
550
|
+
// glyph beside it: the wrapper positions the icon over the input's
|
|
551
|
+
// reserved leading padding.
|
|
552
|
+
<span className="tai-search-field">
|
|
546
553
|
<SearchIcon />
|
|
547
554
|
<TextInput
|
|
548
555
|
value={search.value}
|
|
@@ -197,16 +197,26 @@
|
|
|
197
197
|
--tai-color-syntax-bool: var(--tai-color-warn-text);
|
|
198
198
|
|
|
199
199
|
/* -- Legacy token slots -------------------------------------------------
|
|
200
|
-
The names a plugin already styles against
|
|
201
|
-
the contract above that keep them legible.
|
|
202
|
-
|
|
200
|
+
The names a plugin already styles against. `primary`/`success`/`warning`
|
|
201
|
+
re-point at the members of the contract above that keep them legible.
|
|
202
|
+
|
|
203
|
+
`danger` is the one destructive EMPHASIS, and it runs deeper than the
|
|
204
|
+
accent on purpose: a destructive fill sharing the crimson brand ramp reads
|
|
205
|
+
as the primary action, so this is its own deep red — clearly darker and
|
|
206
|
+
less pink than the accent in BOTH themes, unlike the light-fill dark-ink
|
|
207
|
+
convention the accent follows. Its label is white in both themes and its
|
|
208
|
+
hover a shade deeper still, so a destructive button is instantly told apart
|
|
209
|
+
from a primary one. `danger-text` is that white label on the danger FILL;
|
|
210
|
+
`danger-surface` is the faint error-tint ground the label sits over
|
|
211
|
+
elsewhere. */
|
|
203
212
|
--tai-color-primary: var(--tai-color-accent);
|
|
204
213
|
--tai-color-primary-text: var(--tai-color-on-accent);
|
|
205
|
-
--tai-color-danger:
|
|
214
|
+
--tai-color-danger: #991b1b;
|
|
215
|
+
--tai-dark-color-danger: #dc2626;
|
|
206
216
|
--tai-color-danger-text: #ffffff;
|
|
207
|
-
--tai-dark-color-danger-text: #
|
|
217
|
+
--tai-dark-color-danger-text: #ffffff;
|
|
208
218
|
--tai-color-danger-hover: #7f1d1d;
|
|
209
|
-
--tai-dark-color-danger-hover: #
|
|
219
|
+
--tai-dark-color-danger-hover: #b91c1c;
|
|
210
220
|
--tai-color-danger-surface: var(--tai-color-err-tint);
|
|
211
221
|
--tai-color-success: var(--tai-color-ok-text);
|
|
212
222
|
--tai-color-warning: var(--tai-color-warn-text);
|
|
@@ -325,6 +335,7 @@
|
|
|
325
335
|
--tai-color-scrim: var(--tai-dark-color-scrim);
|
|
326
336
|
--tai-color-prose-link: var(--tai-dark-color-prose-link);
|
|
327
337
|
--tai-color-prose-link-hover: var(--tai-dark-color-prose-link-hover);
|
|
338
|
+
--tai-color-danger: var(--tai-dark-color-danger);
|
|
328
339
|
--tai-color-danger-text: var(--tai-dark-color-danger-text);
|
|
329
340
|
--tai-color-danger-hover: var(--tai-dark-color-danger-hover);
|
|
330
341
|
--tai-shadow-lift-color: var(--tai-dark-shadow-lift-color);
|
|
@@ -371,6 +382,7 @@
|
|
|
371
382
|
--tai-color-scrim: var(--tai-dark-color-scrim);
|
|
372
383
|
--tai-color-prose-link: var(--tai-dark-color-prose-link);
|
|
373
384
|
--tai-color-prose-link-hover: var(--tai-dark-color-prose-link-hover);
|
|
385
|
+
--tai-color-danger: var(--tai-dark-color-danger);
|
|
374
386
|
--tai-color-danger-text: var(--tai-dark-color-danger-text);
|
|
375
387
|
--tai-color-danger-hover: var(--tai-dark-color-danger-hover);
|
|
376
388
|
--tai-shadow-lift-color: var(--tai-dark-shadow-lift-color);
|
package/src/plugin/types.ts
CHANGED
|
@@ -143,10 +143,10 @@ export interface RegisteredPage extends PageContribution {
|
|
|
143
143
|
/**
|
|
144
144
|
* The sidebar section a nav entry renders in. A named core section groups the
|
|
145
145
|
* entry there, after that section's core rows. An absent field or any value that
|
|
146
|
-
* is not a live core section renders the entry
|
|
147
|
-
*
|
|
146
|
+
* is not a live core section renders the entry in the shared "Plugins" section that
|
|
147
|
+
* follows the core sections (alongside every other undeclared plugin entry),
|
|
148
148
|
* placed after the core sections. The shell tolerates an unknown value at runtime
|
|
149
|
-
* (a bundle newer than this host), falling back to that
|
|
149
|
+
* (a bundle newer than this host), falling back to that shared section, so the
|
|
150
150
|
* field is a placement hint, never a hard contract.
|
|
151
151
|
*/
|
|
152
152
|
export type NavEntrySection =
|
|
@@ -162,13 +162,13 @@ export interface NavEntryContribution {
|
|
|
162
162
|
readonly title: string;
|
|
163
163
|
/**
|
|
164
164
|
* Optional target sidebar section (see {@link NavEntrySection}); absent ⇒ the
|
|
165
|
-
*
|
|
165
|
+
* shared "Plugins" section. Additive — an older bundle omits it and stays
|
|
166
166
|
* on the same plugin API version.
|
|
167
167
|
*/
|
|
168
168
|
readonly section?: NavEntrySection;
|
|
169
169
|
/**
|
|
170
170
|
* Optional sort weight WITHIN the entry's section (whether a core section or the
|
|
171
|
-
*
|
|
171
|
+
* shared "Plugins" one): entries render in ascending `order`, and every
|
|
172
172
|
* entry that omits it sorts AFTER the ordered ones, in registration order. Two
|
|
173
173
|
* entries with the same `order` keep registration order (a stable sort). Additive —
|
|
174
174
|
* an older bundle omits it and stays on the same plugin API version.
|