@tangle-network/sandbox-ui 0.99.0 → 0.99.2

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 CHANGED
@@ -16,7 +16,7 @@ React component library for [Tangle Sandbox](https://sandbox.tangle.tools) — a
16
16
  npm install @tangle-network/sandbox-ui
17
17
  ```
18
18
 
19
- **Required peers:** `react` and `react-dom` 18 or 19, `@tangle-network/agent-interface >=0.36.0 <0.44.0`, `@tangle-network/brand ^1.1.0`, and `@tangle-network/ui ^11.0.0`.
19
+ **Required peers:** `react` and `react-dom` 18 or 19, `@tangle-network/agent-interface >=0.36.0 <0.47.0`, `@tangle-network/brand ^1.1.0`, and `@tangle-network/ui ^11.0.0`.
20
20
  Optional peers are required only by the subpaths that use them; see [package.json](./package.json).
21
21
 
22
22
  ## Usage
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ProviderIcon
3
- } from "./chunk-GTJ5PSK5.js";
3
+ } from "./chunk-3LIXVEEE.js";
4
4
  import {
5
5
  ACTION_OUTPUT_ROWS,
6
6
  AGENT_BODY_ROWS,
@@ -274,5 +274,6 @@ function ProviderIcon({
274
274
 
275
275
  export {
276
276
  normalizeProviderId,
277
+ providerLogoCandidates,
277
278
  ProviderIcon
278
279
  };
@@ -151,4 +151,47 @@ interface ConnectInput {
151
151
  }
152
152
  declare function useIntegrations({ apiBaseUrl, fetchImpl, autoLoad, }: UseIntegrationsOptions): UseIntegrationsResult;
153
153
 
154
- export { type ConnectInput, type IntegrationConnection, type IntegrationConnector, type IntegrationHealth, type IntegrationProvider, type IntegrationSort, IntegrationsPanel, type IntegrationsPanelProps, type UseIntegrationsOptions, type UseIntegrationsResult, useIntegrations };
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
+
165
+ /**
166
+ * Ordered candidate logo URLs for a provider slug, most specific first. The
167
+ * renderer walks the chain on each `onError` until one loads, then falls back to
168
+ * the monogram tile.
169
+ *
170
+ * Order: explicit `iconUrl` → full-color vector mark for brands Simple Icons
171
+ * delisted (svgl.app) → a pinned override → the ActivePieces CDN by id (covers
172
+ * most of the hub catalog) → derived simpleicons slugs → monogram.
173
+ */
174
+ declare function providerLogoCandidates(opts: {
175
+ id: string;
176
+ iconUrl?: string | null;
177
+ }): string[];
178
+ 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;
188
+ }
189
+ /**
190
+ * A provider's brand mark: the resolved logo, walking a candidate chain on load
191
+ * error, and a deterministic monogram tile when no logo resolves. Rounding is
192
+ * left to the caller's `className` so the same component fits a large catalog
193
+ * tile and a small inline requirement row.
194
+ */
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 };
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  ProviderIcon,
3
- normalizeProviderId
4
- } from "./chunk-GTJ5PSK5.js";
3
+ normalizeProviderId,
4
+ providerLogoCandidates
5
+ } from "./chunk-3LIXVEEE.js";
5
6
  import "./chunk-CZ7CSFO4.js";
6
7
 
7
8
  // src/integrations/integrations-panel.tsx
@@ -682,5 +683,7 @@ function useIntegrations({
682
683
  }
683
684
  export {
684
685
  IntegrationsPanel,
686
+ ProviderIcon,
687
+ providerLogoCandidates,
685
688
  useIntegrations
686
689
  };
package/dist/workflows.js CHANGED
@@ -36,7 +36,7 @@ function retryImport(factory, retries = 2, delayMs = 350) {
36
36
  function lazyWorkflowGraph() {
37
37
  return lazy(
38
38
  () => retryImport(
39
- () => import("./WorkflowGraph-DB5F6ZSF.js").then((m) => ({ default: m.WorkflowGraph }))
39
+ () => import("./WorkflowGraph-3TQZHSUI.js").then((m) => ({ default: m.WorkflowGraph }))
40
40
  )
41
41
  );
42
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox-ui",
3
- "version": "0.99.0",
3
+ "version": "0.99.2",
4
4
  "description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -118,7 +118,7 @@
118
118
  "peerDependencies": {
119
119
  "@hocuspocus/provider": ">=2.15.0 <5.0.0",
120
120
  "@nanostores/react": ">=0.8.4 <2.0.0",
121
- "@tangle-network/agent-interface": ">=0.36.0 <0.44.0",
121
+ "@tangle-network/agent-interface": ">=0.36.0 <0.47.0",
122
122
  "@tangle-network/brand": "^1.1.0",
123
123
  "@tangle-network/ui": "^11.0.0",
124
124
  "@tanstack/react-query": "^5.0.0",
@@ -190,7 +190,7 @@
190
190
  "@storybook/react": "^10.5.4",
191
191
  "@storybook/react-vite": "^10.5.4",
192
192
  "@tailwindcss/postcss": "^4.3.3",
193
- "@tangle-network/agent-interface": "0.43.0",
193
+ "@tangle-network/agent-interface": "0.46.1",
194
194
  "@tangle-network/brand": "^1.1.0",
195
195
  "@tangle-network/ui": "^11.2.0",
196
196
  "@tanstack/react-query": "^5.101.4",