@tai42/studio-sdk 1.4.0 → 1.5.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/dist/components/entity-card-grid.d.ts +1 -1
- package/dist/components/folder-nav.d.ts +1 -1
- package/dist/components/folder-nav.js +1 -1
- package/dist/components/overlay-details-fields.d.ts +1 -1
- package/dist/components/view-toggle.d.ts +1 -1
- package/dist/components/view-toggle.js +1 -1
- package/dist/hooks/useApi.d.ts +13 -9
- package/dist/hooks/useApi.d.ts.map +1 -1
- package/dist/tool-visibility.d.ts +2 -2
- package/package.json +2 -2
- package/src/components/entity-card-grid.tsx +1 -1
- package/src/components/folder-nav.tsx +1 -1
- package/src/components/overlay-details-fields.tsx +1 -1
- package/src/components/view-toggle.tsx +1 -1
- package/src/tool-visibility.ts +2 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* half of {@link ViewToggle}). It lays its children out on the design system's
|
|
4
4
|
* responsive `.tai-grid-cards` track (three columns, dropping to two then one down
|
|
5
5
|
* the responsive bands); each child is expected to be an interactive `Card`. Living
|
|
6
|
-
* in the SDK keeps the tools screen and
|
|
6
|
+
* in the SDK keeps the tools screen and the flows page on one identical grid.
|
|
7
7
|
*/
|
|
8
8
|
import type { ReactNode } from 'react';
|
|
9
9
|
export interface EntityCardGridProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Folder navigation primitives for the tool-organization tree — shared by the tools
|
|
3
|
-
* screen and
|
|
3
|
+
* screen and the flows page so both explore, breadcrumb, and re-file against
|
|
4
4
|
* one identical set of controls.
|
|
5
5
|
*
|
|
6
6
|
* The tree is passed FLAT (a {@link Folder} list keyed by `id`, each naming its
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* Folder navigation primitives for the tool-organization tree — shared by the tools
|
|
4
|
-
* screen and
|
|
4
|
+
* screen and the flows page so both explore, breadcrumb, and re-file against
|
|
5
5
|
* one identical set of controls.
|
|
6
6
|
*
|
|
7
7
|
* The tree is passed FLAT (a {@link Folder} list keyed by `id`, each naming its
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `OverlayDetailsFields` — the display-name + user-tags editor shared by EVERY
|
|
3
3
|
* tool_meta edit surface (the tools-screen edit dialog, the presets screen, and
|
|
4
|
-
*
|
|
4
|
+
* the flows page). One canonical control means the merge-patch write semantics
|
|
5
5
|
* exist exactly once.
|
|
6
6
|
*
|
|
7
7
|
* Controlled: the caller owns `value` (prefilled from the tool's overlay row) and
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* so the segment shows just its glyph while keeping a real accessible name. A single
|
|
7
7
|
* screen's choice persists across sessions in `localStorage`, keyed per SURFACE —
|
|
8
8
|
* the tools screen and the flows page each remember their own view — via
|
|
9
|
-
* {@link useViewMode}. The two live in the SDK so every entity screen (and
|
|
9
|
+
* {@link useViewMode}. The two live in the SDK so every entity screen (and the
|
|
10
10
|
* flows page) toggles identically; `EntityCardGrid` renders the card half.
|
|
11
11
|
*/
|
|
12
12
|
import { type ReactNode } from 'react';
|
|
@@ -7,7 +7,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
* so the segment shows just its glyph while keeping a real accessible name. A single
|
|
8
8
|
* screen's choice persists across sessions in `localStorage`, keyed per SURFACE —
|
|
9
9
|
* the tools screen and the flows page each remember their own view — via
|
|
10
|
-
* {@link useViewMode}. The two live in the SDK so every entity screen (and
|
|
10
|
+
* {@link useViewMode}. The two live in the SDK so every entity screen (and the
|
|
11
11
|
* flows page) toggles identically; `EntityCardGrid` renders the card half.
|
|
12
12
|
*/
|
|
13
13
|
import { useCallback, useState } from 'react';
|
package/dist/hooks/useApi.d.ts
CHANGED
|
@@ -1401,7 +1401,10 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1401
1401
|
format: "csv" | "json";
|
|
1402
1402
|
}, signal?: AbortSignal) => Promise<Blob>;
|
|
1403
1403
|
readonly searchMarketplace: (query?: import("@tai42/api-client").MarketplaceSearchQuery, signal?: AbortSignal) => Promise<{
|
|
1404
|
-
|
|
1404
|
+
total: number;
|
|
1405
|
+
page: number;
|
|
1406
|
+
page_size: number;
|
|
1407
|
+
listings: {
|
|
1405
1408
|
name: string;
|
|
1406
1409
|
description: string;
|
|
1407
1410
|
tags: string[];
|
|
@@ -1409,12 +1412,10 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1409
1412
|
icon_url: string | null;
|
|
1410
1413
|
categories: string[];
|
|
1411
1414
|
updated_at: string;
|
|
1412
|
-
|
|
1415
|
+
groups: {
|
|
1413
1416
|
name: string;
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
kind: string;
|
|
1417
|
-
};
|
|
1417
|
+
count: number;
|
|
1418
|
+
}[];
|
|
1418
1419
|
ref: string;
|
|
1419
1420
|
namespace: string;
|
|
1420
1421
|
package: string;
|
|
@@ -1422,11 +1423,13 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1422
1423
|
pricing: string;
|
|
1423
1424
|
latest_version: string | null;
|
|
1424
1425
|
downloads: number;
|
|
1426
|
+
kinds: {
|
|
1427
|
+
kind: string;
|
|
1428
|
+
count: number;
|
|
1429
|
+
names: string[];
|
|
1430
|
+
}[];
|
|
1425
1431
|
premium?: boolean | null | undefined;
|
|
1426
1432
|
}[];
|
|
1427
|
-
total: number;
|
|
1428
|
-
page: number;
|
|
1429
|
-
page_size: number;
|
|
1430
1433
|
}>;
|
|
1431
1434
|
readonly getMarketplacePlugin: (namespace: string, name: string, signal?: AbortSignal) => Promise<{
|
|
1432
1435
|
name: string;
|
|
@@ -1457,6 +1460,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1457
1460
|
description: string;
|
|
1458
1461
|
tags: string[];
|
|
1459
1462
|
kind: string;
|
|
1463
|
+
group: string | null;
|
|
1460
1464
|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AC;;;;;;;mCAA+L,CAAC;;;;;;;;uCAA6wB,CAAC;;;;;;;;;;;6CAAgsB,CAAC,kDAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;8BAA0vB,CAAC,+CAAmB,CAAC;;;;;;;;;;;;wBAA6Z,CAAC;yBAAoC,CAAC;;;;;kDAAyI,CAAC;;;;;;;;;;;;;;;;;;;iBAAsoB,CAAC;kBAA6B,CAAC;iBAA4B,CAAC;oBAA+B,CAAC;;aAAqC,CAAC;cAAyB,CAAC;gBAA2B,CAAC;;kDAAqE,CAAC;;;aAA8H,CAAC;sCAAuE,CAAC,4DAAgC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAszB,CAAC;;;2EAA8H,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAugC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAAmuG,CAAC;gBAA8C,CAAC;;+CAAoF,CAAC;0CAA+E,CAAC;qDAA0F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAAi7D,CAAC;;;;;;;;;;;;+BAAkW,CAAC;oCAAuE,CAAC;;;;;;wCAAga,CAAC;SAXzqmE,CAAC;AAE/C,wBAAgB,MAAM,IAAI,SAAS,CAMlC;AAED,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* EFFECTIVE hidden is the overlay's tri-state OVERRIDE of the plugin's own
|
|
6
6
|
* declaration: an overlay opinion (`true`/`false`) wins, else the plugin
|
|
7
7
|
* declaration stands. So an overlay `false` UNHIDES a plugin-hidden tool, `true`
|
|
8
|
-
* force-hides, and `null` (no overlay row is the same) DEFERS to the declaration
|
|
9
|
-
*
|
|
8
|
+
* force-hides, and `null` (no overlay row is the same) DEFERS to the declaration.
|
|
9
|
+
* The rule lives here ONCE so the list-exclusion and
|
|
10
10
|
* the picker-exclusion can never drift apart.
|
|
11
11
|
*/
|
|
12
12
|
import type { ToolMetaRecord, ToolTagEntry } from '@tai42/api-client';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tai42/studio-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.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>",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@radix-ui/react-select": "^2.3.2",
|
|
90
90
|
"@radix-ui/react-tabs": "^1.1.16",
|
|
91
91
|
"@radix-ui/react-tooltip": "^1.2.11",
|
|
92
|
-
"@tai42/api-client": "1.
|
|
92
|
+
"@tai42/api-client": "1.5.0"
|
|
93
93
|
},
|
|
94
94
|
"scripts": {
|
|
95
95
|
"build": "tsc -b tsconfig.build.json && node scripts/copy-assets.mjs",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* half of {@link ViewToggle}). It lays its children out on the design system's
|
|
4
4
|
* responsive `.tai-grid-cards` track (three columns, dropping to two then one down
|
|
5
5
|
* the responsive bands); each child is expected to be an interactive `Card`. Living
|
|
6
|
-
* in the SDK keeps the tools screen and
|
|
6
|
+
* in the SDK keeps the tools screen and the flows page on one identical grid.
|
|
7
7
|
*/
|
|
8
8
|
import type { ReactNode } from 'react';
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Folder navigation primitives for the tool-organization tree — shared by the tools
|
|
3
|
-
* screen and
|
|
3
|
+
* screen and the flows page so both explore, breadcrumb, and re-file against
|
|
4
4
|
* one identical set of controls.
|
|
5
5
|
*
|
|
6
6
|
* The tree is passed FLAT (a {@link Folder} list keyed by `id`, each naming its
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `OverlayDetailsFields` — the display-name + user-tags editor shared by EVERY
|
|
3
3
|
* tool_meta edit surface (the tools-screen edit dialog, the presets screen, and
|
|
4
|
-
*
|
|
4
|
+
* the flows page). One canonical control means the merge-patch write semantics
|
|
5
5
|
* exist exactly once.
|
|
6
6
|
*
|
|
7
7
|
* Controlled: the caller owns `value` (prefilled from the tool's overlay row) and
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* so the segment shows just its glyph while keeping a real accessible name. A single
|
|
7
7
|
* screen's choice persists across sessions in `localStorage`, keyed per SURFACE —
|
|
8
8
|
* the tools screen and the flows page each remember their own view — via
|
|
9
|
-
* {@link useViewMode}. The two live in the SDK so every entity screen (and
|
|
9
|
+
* {@link useViewMode}. The two live in the SDK so every entity screen (and the
|
|
10
10
|
* flows page) toggles identically; `EntityCardGrid` renders the card half.
|
|
11
11
|
*/
|
|
12
12
|
import { useCallback, useState, type ReactNode } from 'react';
|
package/src/tool-visibility.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* EFFECTIVE hidden is the overlay's tri-state OVERRIDE of the plugin's own
|
|
6
6
|
* declaration: an overlay opinion (`true`/`false`) wins, else the plugin
|
|
7
7
|
* declaration stands. So an overlay `false` UNHIDES a plugin-hidden tool, `true`
|
|
8
|
-
* force-hides, and `null` (no overlay row is the same) DEFERS to the declaration
|
|
9
|
-
*
|
|
8
|
+
* force-hides, and `null` (no overlay row is the same) DEFERS to the declaration.
|
|
9
|
+
* The rule lives here ONCE so the list-exclusion and
|
|
10
10
|
* the picker-exclusion can never drift apart.
|
|
11
11
|
*/
|
|
12
12
|
import type { ToolMetaRecord, ToolTagEntry } from '@tai42/api-client';
|