@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.
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 -139
  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,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
- 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
- description?: string;
31
- iconUrl?: string;
32
- connectors?: IntegrationConnector[];
33
- /**
34
- * True when the platform can currently receive this provider's events.
35
- * Absent means the platform predates inbound-readiness discovery.
36
- */
37
- 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;
38
40
  }
39
41
  interface IntegrationHealth {
40
- connectionId: string;
41
- status: "ok" | "degraded" | "failing" | "unknown" | (string & {});
42
- checkedAt?: string;
43
- message?: string;
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
- catalog: IntegrationProvider[];
49
- connections: IntegrationConnection[];
50
- healthByConnectionId?: Record<string, IntegrationHealth>;
51
- isLoading?: boolean;
52
- error?: Error | null;
53
- /**
54
- * Invoked when the user clicks an unconnected provider tile. The consumer
55
- * should call its data hook's `connect(...)` action.
56
- */
57
- onConnect: (input: {
58
- providerId: string;
59
- connectorId: string;
60
- }) => void | Promise<void>;
61
- /**
62
- * Invoked when the user confirms disconnecting a live connection from the
63
- * disconnect control on a connected tile. May return a promise; the
64
- * confirmation dialog shows a loading state until it settles and surfaces a
65
- * thrown error inline.
66
- */
67
- onDisconnect: (connectionId: string) => void | Promise<void>;
68
- /**
69
- * Resolver for a connected app's management page URL. When it returns a URL,
70
- * the connected tile's body and the overflow menu's "Manage" item become a
71
- * real link opened in a new tab (so cmd/middle-click and "open in new tab"
72
- * work). Return undefined to omit Manage for a given connection. Preferred
73
- * over `onManage` — only fall back to the callback when the URL must be minted
74
- * imperatively on click (e.g. a one-time token).
75
- */
76
- getManageHref?: (connection: IntegrationConnection) => string | undefined;
77
- /**
78
- * Imperative fallback for opening a connected app's management page, used only
79
- * when `getManageHref` is not supplied (or returns undefined). The consumer is
80
- * responsible for opening the page (e.g. `window.open(...)`).
81
- */
82
- onManage?: (input: {
83
- connectionId: string;
84
- providerId: string;
85
- }) => void | Promise<void>;
86
- /** Empty-state message when the catalog hasn't loaded any providers. */
87
- emptyCatalogLabel?: string;
88
- /**
89
- * Provider ids surfaced first (in this order) before the rest are sorted
90
- * alphabetically. Matching is normalized (case / separators ignored).
91
- * Defaults to a curated list of common GTM/work providers.
92
- */
93
- featuredIds?: string[];
94
- /** Initial sort mode. Defaults to "featured". */
95
- defaultSort?: IntegrationSort;
96
- /**
97
- * Tiles the loading skeleton draws. A skeleton exists to reserve the space
98
- * the real content will take, so pass the catalog size you expect when the
99
- * consumer knows it; the default fills two rows at the widest breakpoint.
100
- */
101
- skeletonCount?: number;
102
- 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;
103
106
  }
104
- declare function IntegrationsPanel({ catalog, connections, healthByConnectionId, isLoading, error, onConnect, onDisconnect, getManageHref, onManage, emptyCatalogLabel, featuredIds, defaultSort, skeletonCount, className, }: IntegrationsPanelProps): React.JSX.Element;
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
- /** Base URL where the consumer mounted the integrations endpoints. */
124
- apiBaseUrl: string;
125
- /** Custom fetch (tests / non-browser runtimes). */
126
- fetchImpl?: typeof fetch;
127
- /** Whether the initial load happens automatically on mount. */
128
- 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;
129
133
  }
130
134
  interface UseIntegrationsResult {
131
- catalog: IntegrationProvider[];
132
- connections: IntegrationConnection[];
133
- healthByConnectionId: Record<string, IntegrationHealth>;
134
- isLoading: boolean;
135
- error: Error | null;
136
- refresh: () => Promise<void>;
137
- /** Kick off OAuth — navigates the window on success. */
138
- connect: (input: ConnectInput) => Promise<void>;
139
- /** Revoke a connection by id; refreshes the connections list. */
140
- 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>;
141
145
  }
142
146
  interface ConnectInput {
143
- providerId: string;
144
- connectorId: string;
145
- /**
146
- * URL the platform redirects the user back to after OAuth. Must be
147
- * allow-listed on the platform.
148
- */
149
- returnUrl: string;
150
- 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[];
151
155
  }
152
- declare function useIntegrations({ apiBaseUrl, fetchImpl, autoLoad, }: UseIntegrationsOptions): UseIntegrationsResult;
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
- id: string;
176
- iconUrl?: string | null;
168
+ export declare function providerLogoCandidates(opts: {
169
+ id: string;
170
+ iconUrl?: string | null;
177
171
  }): string[];
178
172
  interface ProviderIconProps {
179
- /** Provider/connector slug, e.g. "github". */
180
- id: string;
181
- /** Explicit icon URL, tried before the derived simpleicons slugs. */
182
- iconUrl?: string | null;
183
- /** Name for the monogram fallback initial; defaults to the id. */
184
- displayName?: string;
185
- /** Square edge length in px. Default 24. */
186
- size?: number;
187
- 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;
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, }: ProviderIconProps): React.JSX.Element;
196
-
197
- 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 };