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