@tangle-network/sandbox-ui 0.113.6 → 0.114.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/WorkflowGraph-B-NsdYz_.js +1961 -0
- package/dist/assets.d.ts +214 -206
- package/dist/assets.js +1057 -908
- package/dist/auth-CWe17Hly.js +37 -0
- package/dist/auth.d.ts +2 -30
- package/dist/auth.js +2 -15
- package/dist/chat-BOvFAe6p.js +903 -0
- package/dist/chat.d.ts +2 -230
- package/dist/chat.js +2 -34
- package/dist/connectors.d.ts +52 -49
- package/dist/connectors.js +595 -643
- package/dist/dashboard-CZ3VgNPR.js +4969 -0
- package/dist/dashboard.d.ts +4 -1297
- package/dist/dashboard.js +4 -152
- package/dist/editor.d.ts +2 -1
- package/dist/editor.js +2 -31
- package/dist/files.d.ts +2 -6
- package/dist/files.js +2 -33
- package/dist/globals.css +63 -3
- package/dist/hooks.d.ts +146 -148
- package/dist/hooks.js +222 -55
- package/dist/index-CKRaj1pM.d.ts +776 -0
- package/dist/index-CXX5IpH2.d.ts +2 -0
- package/dist/index-DPePq7c8.d.ts +1340 -0
- package/dist/index-DiyLLZuJ.d.ts +230 -0
- package/dist/index-DvmZLMT1.d.ts +30 -0
- package/dist/index-I8ZLVtHd.d.ts +330 -0
- package/dist/index-PRM636Ex.d.ts +86 -0
- package/dist/index.d.ts +21 -33
- package/dist/index.js +21 -701
- package/dist/info-panel-C9cqDzOL.js +594 -0
- package/dist/integrations.d.ts +133 -139
- package/dist/integrations.js +491 -673
- package/dist/markdown.d.ts +2 -1
- package/dist/markdown.js +2 -13
- package/dist/model-I-NIxeM-.js +1250 -0
- package/dist/model-brand-B9A4H9pJ.d.ts +98 -0
- package/dist/model-brand-hMyDTUqB.js +624 -0
- package/dist/motion-DkyBRJb9.js +37 -0
- package/dist/openui.d.ts +2 -1
- package/dist/openui.js +2 -7
- package/dist/pages.d.ts +307 -300
- package/dist/pages.js +4404 -4181
- package/dist/primitives-Dh1vG6J3.js +113 -0
- package/dist/primitives.d.ts +2 -74
- package/dist/primitives.js +2 -204
- package/dist/provider-logo-DjqmConF.js +311 -0
- package/dist/run.d.ts +2 -1
- package/dist/run.js +2 -23
- package/dist/sdk-hooks.d.ts +3 -4
- package/dist/sdk-hooks.js +3 -31
- package/dist/sidecar-DgH_vQ6m.d.ts +9 -0
- package/dist/stores.d.ts +14 -15
- package/dist/stores.js +13 -81
- package/dist/styles.css +63 -3
- package/dist/template-card-L-4gmjx2.d.ts +90 -0
- package/dist/terminal-CN9ZgHRt.js +197 -0
- package/dist/terminal.d.ts +60 -60
- package/dist/terminal.js +2 -10
- package/dist/tokens.css +51 -0
- package/dist/types.d.ts +4 -11
- package/dist/types.js +0 -1
- package/dist/use-pty-session-C8cE0adT.js +669 -0
- package/dist/use-sidecar-auth-CCTJcrq7.d.ts +145 -0
- package/dist/use-sidecar-auth-DkdcufOz.js +742 -0
- package/dist/utils-DzWbktWG.js +2 -0
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +2 -37
- package/dist/workbench-BCaCKl-J.js +8347 -0
- package/dist/workbench.d.ts +2 -310
- package/dist/workbench.js +2 -44
- package/dist/workflows.d.ts +341 -339
- package/dist/workflows.js +74 -109
- package/dist/workspace-B6AtI6ld.js +2510 -0
- package/dist/workspace.d.ts +2 -761
- package/dist/workspace.js +2 -51
- package/package.json +46 -40
- package/dist/WorkflowGraph-2QOORYIR.js +0 -1722
- package/dist/chunk-2BUPSB7O.js +0 -0
- package/dist/chunk-3KBNPQQF.js +0 -2697
- package/dist/chunk-3LIXVEEE.js +0 -279
- package/dist/chunk-72UF2H5H.js +0 -707
- package/dist/chunk-AI25G5MX.js +0 -944
- package/dist/chunk-ANSC5AFC.js +0 -314
- package/dist/chunk-AZ3AWMTM.js +0 -8
- package/dist/chunk-BGVEHENC.js +0 -10
- package/dist/chunk-CZ7CSFO4.js +0 -39
- package/dist/chunk-DYXXYGS4.js +0 -4700
- package/dist/chunk-EI44GEQ5.js +0 -6
- package/dist/chunk-IACRDXER.js +0 -219
- package/dist/chunk-IOB2PW5Z.js +0 -55
- package/dist/chunk-M4K7ZGR2.js +0 -24
- package/dist/chunk-MYZAW4RX.js +0 -665
- package/dist/chunk-OMUIPJQZ.js +0 -555
- package/dist/chunk-RQZRXKMR.js +0 -398
- package/dist/chunk-SOKKTB7W.js +0 -230
- package/dist/chunk-TADGS4Q7.js +0 -1010
- package/dist/chunk-UCQNOUN3.js +0 -7964
- package/dist/chunk-ULPLRBMF.js +0 -34
- package/dist/chunk-WID73FPH.js +0 -89
- package/dist/chunk-X3YXP7FG.js +0 -38
- package/dist/logo-DiAjq759.d.ts +0 -15
- package/dist/model-brand-BNnaUKKZ.d.ts +0 -99
- package/dist/ports-list-CDIvTNnX.d.ts +0 -17
- package/dist/sdk-hooks-Djkjq4cp.d.ts +0 -145
- package/dist/template-card-Bn-Bw5xC.d.ts +0 -87
package/dist/integrations.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
//#region src/integrations/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Shapes for the integrations primitives. Mirrors the platform's
|
|
5
5
|
* `/v1/integrations/*` response shape so consumers can pipe payloads
|
|
@@ -8,101 +8,105 @@ import * as React from 'react';
|
|
|
8
8
|
* leaf-level — no dependency on the server-side client.
|
|
9
9
|
*/
|
|
10
10
|
interface IntegrationConnection {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
id: string;
|
|
12
|
+
providerId: string;
|
|
13
|
+
connectorId?: string;
|
|
14
|
+
status: "connected" | "pending" | "revoked" | "expired" | (string & {});
|
|
15
|
+
grantedScopes?: string[];
|
|
16
|
+
accountDisplay?: string | null;
|
|
17
|
+
expiresAt?: string | null;
|
|
18
|
+
createdAt?: string;
|
|
19
|
+
updatedAt?: string;
|
|
20
20
|
}
|
|
21
21
|
interface IntegrationConnector {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
connectorId: string;
|
|
23
|
+
displayName?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
scopes?: string[];
|
|
26
26
|
}
|
|
27
27
|
interface IntegrationProvider {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
providerId: string;
|
|
29
|
+
displayName?: string;
|
|
30
|
+
/** The hub catalog's name for the provider ("GitHub", "Google Sheets"). */
|
|
31
|
+
title?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
iconUrl?: string;
|
|
34
|
+
connectors?: IntegrationConnector[];
|
|
35
|
+
/**
|
|
36
|
+
* True when the platform can currently receive this provider's events.
|
|
37
|
+
* Absent means the platform predates inbound-readiness discovery.
|
|
38
|
+
*/
|
|
39
|
+
eventIngressConfigured?: boolean;
|
|
38
40
|
}
|
|
39
41
|
interface IntegrationHealth {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
connectionId: string;
|
|
43
|
+
status: "ok" | "degraded" | "failing" | "unknown" | (string & {});
|
|
44
|
+
checkedAt?: string;
|
|
45
|
+
message?: string;
|
|
44
46
|
}
|
|
45
|
-
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/integrations/integrations-panel.d.ts
|
|
46
49
|
type IntegrationSort = "featured" | "alpha";
|
|
47
50
|
interface IntegrationsPanelProps {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
51
|
+
catalog: IntegrationProvider[];
|
|
52
|
+
connections: IntegrationConnection[];
|
|
53
|
+
healthByConnectionId?: Record<string, IntegrationHealth>;
|
|
54
|
+
isLoading?: boolean;
|
|
55
|
+
error?: Error | null;
|
|
56
|
+
/**
|
|
57
|
+
* Invoked when the user clicks an unconnected provider tile. The consumer
|
|
58
|
+
* should call its data hook's `connect(...)` action.
|
|
59
|
+
*/
|
|
60
|
+
onConnect: (input: {
|
|
61
|
+
providerId: string;
|
|
62
|
+
connectorId: string;
|
|
63
|
+
}) => void | Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Invoked when the user confirms disconnecting a live connection from the
|
|
66
|
+
* disconnect control on a connected tile. May return a promise; the
|
|
67
|
+
* confirmation dialog shows a loading state until it settles and surfaces a
|
|
68
|
+
* thrown error inline.
|
|
69
|
+
*/
|
|
70
|
+
onDisconnect: (connectionId: string) => void | Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Resolver for a connected app's management page URL. When it returns a URL,
|
|
73
|
+
* the connected tile's body and the overflow menu's "Manage" item become a
|
|
74
|
+
* real link opened in a new tab (so cmd/middle-click and "open in new tab"
|
|
75
|
+
* work). Return undefined to omit Manage for a given connection. Preferred
|
|
76
|
+
* over `onManage` — only fall back to the callback when the URL must be minted
|
|
77
|
+
* imperatively on click (e.g. a one-time token).
|
|
78
|
+
*/
|
|
79
|
+
getManageHref?: (connection: IntegrationConnection) => string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Imperative fallback for opening a connected app's management page, used only
|
|
82
|
+
* when `getManageHref` is not supplied (or returns undefined). The consumer is
|
|
83
|
+
* responsible for opening the page (e.g. `window.open(...)`).
|
|
84
|
+
*/
|
|
85
|
+
onManage?: (input: {
|
|
86
|
+
connectionId: string;
|
|
87
|
+
providerId: string;
|
|
88
|
+
}) => void | Promise<void>;
|
|
89
|
+
/** Empty-state message when the catalog hasn't loaded any providers. */
|
|
90
|
+
emptyCatalogLabel?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Provider ids surfaced first (in this order) before the rest are sorted
|
|
93
|
+
* alphabetically. Matching is normalized (case / separators ignored).
|
|
94
|
+
* Defaults to a curated list of common GTM/work providers.
|
|
95
|
+
*/
|
|
96
|
+
featuredIds?: string[];
|
|
97
|
+
/** Initial sort mode. Defaults to "featured". */
|
|
98
|
+
defaultSort?: IntegrationSort;
|
|
99
|
+
/**
|
|
100
|
+
* Tiles the loading skeleton draws. A skeleton exists to reserve the space
|
|
101
|
+
* the real content will take, so pass the catalog size you expect when the
|
|
102
|
+
* consumer knows it; the default fills two rows at the widest breakpoint.
|
|
103
|
+
*/
|
|
104
|
+
skeletonCount?: number;
|
|
105
|
+
className?: string;
|
|
103
106
|
}
|
|
104
|
-
declare function IntegrationsPanel({ catalog, connections, healthByConnectionId, isLoading, error, onConnect, onDisconnect, getManageHref, onManage, emptyCatalogLabel, featuredIds, defaultSort, skeletonCount, className
|
|
105
|
-
|
|
107
|
+
export declare function IntegrationsPanel({ catalog, connections, healthByConnectionId, isLoading, error, onConnect, onDisconnect, getManageHref, onManage, emptyCatalogLabel, featuredIds, defaultSort, skeletonCount, className }: IntegrationsPanelProps): React$1.JSX.Element;
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/integrations/use-integrations.d.ts
|
|
106
110
|
/**
|
|
107
111
|
* Endpoint contract expected on the consumer app's server (which
|
|
108
112
|
* wraps `PlatformHubClient` from `@tangle-network/agent-runtime/platform`):
|
|
@@ -120,48 +124,38 @@ declare function IntegrationsPanel({ catalog, connections, healthByConnectionId,
|
|
|
120
124
|
* → { connection: IntegrationConnection }
|
|
121
125
|
*/
|
|
122
126
|
interface UseIntegrationsOptions {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
/** Base URL where the consumer mounted the integrations endpoints. */
|
|
128
|
+
apiBaseUrl: string;
|
|
129
|
+
/** Custom fetch (tests / non-browser runtimes). */
|
|
130
|
+
fetchImpl?: typeof fetch;
|
|
131
|
+
/** Whether the initial load happens automatically on mount. */
|
|
132
|
+
autoLoad?: boolean;
|
|
129
133
|
}
|
|
130
134
|
interface UseIntegrationsResult {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
135
|
+
catalog: IntegrationProvider[];
|
|
136
|
+
connections: IntegrationConnection[];
|
|
137
|
+
healthByConnectionId: Record<string, IntegrationHealth>;
|
|
138
|
+
isLoading: boolean;
|
|
139
|
+
error: Error | null;
|
|
140
|
+
refresh: () => Promise<void>;
|
|
141
|
+
/** Kick off OAuth — navigates the window on success. */
|
|
142
|
+
connect: (input: ConnectInput) => Promise<void>;
|
|
143
|
+
/** Revoke a connection by id; refreshes the connections list. */
|
|
144
|
+
disconnect: (connectionId: string) => Promise<void>;
|
|
141
145
|
}
|
|
142
146
|
interface ConnectInput {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
providerId: string;
|
|
148
|
+
connectorId: string;
|
|
149
|
+
/**
|
|
150
|
+
* URL the platform redirects the user back to after OAuth. Must be
|
|
151
|
+
* allow-listed on the platform.
|
|
152
|
+
*/
|
|
153
|
+
returnUrl: string;
|
|
154
|
+
requestedScopes?: string[];
|
|
151
155
|
}
|
|
152
|
-
declare function useIntegrations({ apiBaseUrl, fetchImpl, autoLoad
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
* Provider branding: resolve a connector/provider slug to a logo and render it
|
|
156
|
-
* with graceful fallbacks. Shared by the integrations catalog tiles and the
|
|
157
|
-
* assistant's proposal card (its integration-requirement rows), so both surfaces
|
|
158
|
-
* show the same brand mark for a given provider from one source of truth.
|
|
159
|
-
*
|
|
160
|
-
* Dependency-light on purpose — only React — so it can be pulled into the
|
|
161
|
-
* always-loaded assistant entry without dragging the integrations panel's tree
|
|
162
|
-
* along with it.
|
|
163
|
-
*/
|
|
164
|
-
|
|
156
|
+
export declare function useIntegrations({ apiBaseUrl, fetchImpl, autoLoad }: UseIntegrationsOptions): UseIntegrationsResult;
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/integrations/provider-logo.d.ts
|
|
165
159
|
/**
|
|
166
160
|
* Ordered candidate logo URLs for a provider slug, most specific first. The
|
|
167
161
|
* renderer walks the chain on each `onError` until one loads, then falls back to
|
|
@@ -171,20 +165,20 @@ declare function useIntegrations({ apiBaseUrl, fetchImpl, autoLoad, }: UseIntegr
|
|
|
171
165
|
* delisted (svgl.app) → a pinned override → the ActivePieces CDN by id (covers
|
|
172
166
|
* most of the hub catalog) → derived simpleicons slugs → monogram.
|
|
173
167
|
*/
|
|
174
|
-
declare function providerLogoCandidates(opts: {
|
|
175
|
-
|
|
176
|
-
|
|
168
|
+
export declare function providerLogoCandidates(opts: {
|
|
169
|
+
id: string;
|
|
170
|
+
iconUrl?: string | null;
|
|
177
171
|
}): string[];
|
|
178
172
|
interface ProviderIconProps {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
173
|
+
/** Provider/connector slug, e.g. "github". */
|
|
174
|
+
id: string;
|
|
175
|
+
/** Explicit icon URL, tried before the derived simpleicons slugs. */
|
|
176
|
+
iconUrl?: string | null;
|
|
177
|
+
/** Name for the monogram fallback initial; defaults to the id. */
|
|
178
|
+
displayName?: string;
|
|
179
|
+
/** Square edge length in px. Default 24. */
|
|
180
|
+
size?: number;
|
|
181
|
+
className?: string;
|
|
188
182
|
}
|
|
189
183
|
/**
|
|
190
184
|
* A provider's brand mark: the resolved logo, walking a candidate chain on load
|
|
@@ -192,6 +186,6 @@ interface ProviderIconProps {
|
|
|
192
186
|
* left to the caller's `className` so the same component fits a large catalog
|
|
193
187
|
* tile and a small inline requirement row.
|
|
194
188
|
*/
|
|
195
|
-
declare function ProviderIcon({ id, iconUrl, displayName, size, className
|
|
196
|
-
|
|
197
|
-
export {
|
|
189
|
+
export declare function ProviderIcon({ id, iconUrl, displayName, size, className }: ProviderIconProps): React$1.JSX.Element;
|
|
190
|
+
//#endregion
|
|
191
|
+
export type { ConnectInput, IntegrationConnection, IntegrationConnector, IntegrationHealth, IntegrationProvider, IntegrationSort, IntegrationsPanelProps, ProviderIconProps, UseIntegrationsOptions, UseIntegrationsResult };
|