@tangle-network/sandbox-ui 0.99.1 → 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/dist/integrations.d.ts
CHANGED
|
@@ -151,4 +151,47 @@ interface ConnectInput {
|
|
|
151
151
|
}
|
|
152
152
|
declare function useIntegrations({ apiBaseUrl, fetchImpl, autoLoad, }: UseIntegrationsOptions): UseIntegrationsResult;
|
|
153
153
|
|
|
154
|
-
|
|
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 };
|
package/dist/integrations.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProviderIcon,
|
|
3
|
-
normalizeProviderId
|
|
4
|
-
|
|
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-
|
|
39
|
+
() => import("./WorkflowGraph-3TQZHSUI.js").then((m) => ({ default: m.WorkflowGraph }))
|
|
40
40
|
)
|
|
41
41
|
);
|
|
42
42
|
}
|
package/package.json
CHANGED