@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,279 +0,0 @@
1
- // src/integrations/provider-logo.tsx
2
- import * as React from "react";
3
- import { jsx } from "react/jsx-runtime";
4
- function normalizeProviderId(id) {
5
- return id.toLowerCase().replace(/[_\s]+/g, "-").replace(/-(business|oauth|api|app|mail|sms|pack|connector|v\d+)$/g, "");
6
- }
7
- var PROVIDER_LOGO_SLUGS = {
8
- gmail: "gmail",
9
- googlemail: "gmail",
10
- google: "google",
11
- "google-drive": "googledrive",
12
- "google-calendar": "googlecalendar",
13
- "google-sheets": "googlesheets",
14
- "google-docs": "googledocs",
15
- "google-meet": "googlemeet",
16
- "google-forms": "googleforms",
17
- "google-ads": "googleads",
18
- "google-analytics": "googleanalytics",
19
- outlook: "microsoftoutlook",
20
- "outlook-mail": "microsoftoutlook",
21
- "microsoft-outlook": "microsoftoutlook",
22
- "microsoft-calendar": "microsoftoutlook",
23
- "microsoft-teams": "microsoftteams",
24
- teams: "microsoftteams",
25
- "microsoft-excel": "microsoftexcel",
26
- excel: "microsoftexcel",
27
- onedrive: "microsoftonedrive",
28
- sharepoint: "microsoftsharepoint",
29
- twitter: "x",
30
- x: "x",
31
- meta: "meta",
32
- "stripe-pack": "stripe",
33
- "twilio-sms": "twilio",
34
- webhook: "webhooks",
35
- webhooks: "webhooks",
36
- hubspot: "hubspot",
37
- salesforce: "salesforce",
38
- pipedrive: "pipedrive",
39
- zoho: "zoho",
40
- quickbooks: "quickbooks",
41
- intercom: "intercom",
42
- zendesk: "zendesk",
43
- freshdesk: "freshdesk",
44
- monday: "mondaydotcom",
45
- "monday-com": "mondaydotcom",
46
- clickup: "clickup",
47
- basecamp: "basecamp",
48
- todoist: "todoist",
49
- calendly: "calendly",
50
- typeform: "typeform",
51
- surveymonkey: "surveymonkey",
52
- klaviyo: "klaviyo",
53
- sendinblue: "brevo",
54
- brevo: "brevo",
55
- "constant-contact": "constantcontact",
56
- "active-campaign": "activecampaign",
57
- activecampaign: "activecampaign",
58
- "google-chat": "googlechat",
59
- whatsapp: "whatsapp",
60
- telegram: "telegram",
61
- bigquery: "googlebigquery",
62
- snowflake: "snowflake",
63
- postgres: "postgresql",
64
- postgresql: "postgresql",
65
- mysql: "mysql",
66
- mongodb: "mongodb",
67
- redis: "redis",
68
- supabase: "supabase",
69
- firebase: "firebase",
70
- "aws-s3": "amazons3",
71
- s3: "amazons3",
72
- woocommerce: "woocommerce",
73
- bigcommerce: "bigcommerce",
74
- squarespace: "squarespace",
75
- wix: "wix",
76
- webflow: "webflow",
77
- wordpress: "wordpress",
78
- contentful: "contentful",
79
- sanity: "sanity",
80
- figma: "figma",
81
- miro: "miro",
82
- confluence: "confluence",
83
- bitbucket: "bitbucket",
84
- pagerduty: "pagerduty",
85
- datadog: "datadog",
86
- sentry: "sentry",
87
- segment: "segment",
88
- amplitude: "amplitude",
89
- mixpanel: "mixpanel",
90
- posthog: "posthog",
91
- facebook: "facebook",
92
- instagram: "instagram",
93
- tiktok: "tiktok",
94
- youtube: "youtube",
95
- reddit: "reddit",
96
- pinterest: "pinterest",
97
- buffer: "buffer",
98
- hootsuite: "hootsuite"
99
- };
100
- var ACTIVEPIECES_CDN = "https://cdn.activepieces.com/pieces";
101
- var PROVIDER_LOGO_URLS = {
102
- // Catalog logo whose filename/extension differs from the provider id.
103
- "cal-com": `${ACTIVEPIECES_CDN}/cal.com.png`,
104
- "customer-io": `${ACTIVEPIECES_CDN}/customerio.png`,
105
- anthropic: `${ACTIVEPIECES_CDN}/claude.png`,
106
- telegram: `${ACTIVEPIECES_CDN}/telegram_bot.png`,
107
- "twilio-sms": `${ACTIVEPIECES_CDN}/twilio.png`,
108
- "amazon-sqs": `${ACTIVEPIECES_CDN}/aws-sqs.png`,
109
- frame: `${ACTIVEPIECES_CDN}/frameio.png`,
110
- "jira-cloud": `${ACTIVEPIECES_CDN}/jira.png`,
111
- "jira-data-center": `${ACTIVEPIECES_CDN}/jira.png`,
112
- stripe: `${ACTIVEPIECES_CDN}/stripe.png`,
113
- "stripe-pack": `${ACTIVEPIECES_CDN}/stripe.png`,
114
- gemini: `${ACTIVEPIECES_CDN}/google-gemini.png`,
115
- "google-gemini": `${ACTIVEPIECES_CDN}/google-gemini.png`,
116
- bluesky: `${ACTIVEPIECES_CDN}/bluesky.png`,
117
- emailit: `${ACTIVEPIECES_CDN}/emailit.svg`,
118
- cloutly: `${ACTIVEPIECES_CDN}/cloutly.svg`,
119
- gistly: `${ACTIVEPIECES_CDN}/gistly.svg`,
120
- jotform: `${ACTIVEPIECES_CDN}/jotform.svg`,
121
- supadata: `${ACTIVEPIECES_CDN}/supadata.svg`,
122
- "hugging-face": `${ACTIVEPIECES_CDN}/huggingface.svg`,
123
- huggingface: `${ACTIVEPIECES_CDN}/huggingface.svg`,
124
- heygen: `${ACTIVEPIECES_CDN}/heygen.jpg`,
125
- instasent: `${ACTIVEPIECES_CDN}/instasent.jpg`,
126
- "chainalysis-api": `${ACTIVEPIECES_CDN}/chainalysis-api.jpg`,
127
- scrapegraphai: `${ACTIVEPIECES_CDN}/scrapegraphai.jpg`,
128
- localai: `${ACTIVEPIECES_CDN}/localai.jpeg`,
129
- talkable: "https://www.talkable.com/wp-content/uploads/2021/12/talkable-favicon.svg",
130
- // Sub-connector or variant reusing its parent connector's catalog logo.
131
- "facebook-leads": `${ACTIVEPIECES_CDN}/facebook.png`,
132
- "facebook-pages": `${ACTIVEPIECES_CDN}/facebook.png`,
133
- "whatsapp-business": `${ACTIVEPIECES_CDN}/whatsapp.png`,
134
- onedrive: `${ACTIVEPIECES_CDN}/oneDrive.png`,
135
- "microsoft-onedrive": `${ACTIVEPIECES_CDN}/oneDrive.png`,
136
- "outlook-mail": `${ACTIVEPIECES_CDN}/microsoft-outlook.png`,
137
- "microsoft-calendar": `${ACTIVEPIECES_CDN}/microsoft-outlook.png`,
138
- "microsoft-outlook-calendar": `${ACTIVEPIECES_CDN}/microsoft-outlook.png`,
139
- sharepoint: `${ACTIVEPIECES_CDN}/microsoft-sharepoint.png`,
140
- "notion-database": `${ACTIVEPIECES_CDN}/notion.png`,
141
- "slack-inbound": `${ACTIVEPIECES_CDN}/slack.png`,
142
- helpscout: `${ACTIVEPIECES_CDN}/help-scout.png`,
143
- figjam: `${ACTIVEPIECES_CDN}/figma.png`,
144
- webhook: `${ACTIVEPIECES_CDN}/new-core/webhooks.svg`,
145
- // Absent from the catalog CDN — served from a public icon source.
146
- make: "https://cdn.simpleicons.org/make",
147
- n8n: "https://cdn.simpleicons.org/n8n",
148
- zapier: "https://cdn.simpleicons.org/zapier",
149
- auth0: "https://cdn.simpleicons.org/auth0",
150
- basecamp: "https://cdn.simpleicons.org/basecamp",
151
- ebay: "https://cdn.simpleicons.org/ebay",
152
- gusto: "https://cdn.simpleicons.org/gusto",
153
- miro: "https://cdn.simpleicons.org/miro",
154
- sanity: "https://cdn.simpleicons.org/sanity",
155
- sentry: "https://cdn.simpleicons.org/sentry",
156
- opsgenie: "https://cdn.simpleicons.org/opsgenie",
157
- phony: "https://www.google.com/s2/favicons?sz=64&domain_url=https://ph0ny.com",
158
- docuseal: "https://www.google.com/s2/favicons?sz=64&domain_url=https://docuseal.com",
159
- braze: "https://www.google.com/s2/favicons?sz=64&domain_url=https://braze.com",
160
- pipedream: "https://www.google.com/s2/favicons?sz=64&domain_url=https://pipedream.com",
161
- weaviate: "https://www.google.com/s2/favicons?sz=64&domain_url=https://weaviate.io",
162
- "adobe-creative-cloud": "https://www.google.com/s2/favicons?sz=64&domain_url=https://adobe.com",
163
- clio: "https://www.google.com/s2/favicons?sz=64&domain_url=https://clio.com",
164
- marketo: "https://www.google.com/s2/favicons?sz=64&domain_url=https://marketo.com",
165
- rippling: "https://www.google.com/s2/favicons?sz=64&domain_url=https://rippling.com",
166
- "microsoft-graph": "https://www.google.com/s2/favicons?sz=64&domain_url=https://graph.microsoft.com"
167
- };
168
- var PROVIDER_VECTOR_LOGOS = {
169
- slack: "slack",
170
- salesforce: "salesforce",
171
- microsoftoutlook: "microsoft-outlook",
172
- outlook: "microsoft-outlook",
173
- microsoftteams: "microsoft-teams",
174
- teams: "microsoft-teams",
175
- microsoftexcel: "microsoft-excel",
176
- excel: "microsoft-excel",
177
- microsoftonedrive: "microsoft-onedrive",
178
- onedrive: "microsoft-onedrive",
179
- microsoftsharepoint: "microsoft-sharepoint",
180
- sharepoint: "microsoft-sharepoint",
181
- twilio: "twilio",
182
- linkedin: "linkedin"
183
- };
184
- function providerLogoCandidates(opts) {
185
- const out = [];
186
- if (opts.iconUrl) out.push(opts.iconUrl);
187
- const raw = opts.id.toLowerCase();
188
- const norm = normalizeProviderId(raw);
189
- const curated = PROVIDER_LOGO_SLUGS[raw] ?? PROVIDER_LOGO_SLUGS[norm];
190
- const vectorName = PROVIDER_VECTOR_LOGOS[raw] ?? PROVIDER_VECTOR_LOGOS[norm] ?? (curated ? PROVIDER_VECTOR_LOGOS[curated] : void 0);
191
- if (vectorName) out.push(`https://svgl.app/library/${vectorName}.svg`);
192
- const pinned = PROVIDER_LOGO_URLS[raw] ?? PROVIDER_LOGO_URLS[norm];
193
- if (pinned) out.push(pinned);
194
- if (raw) out.push(`${ACTIVEPIECES_CDN}/${encodeURIComponent(raw)}.png`);
195
- const slugs = /* @__PURE__ */ new Set();
196
- if (curated) slugs.add(curated);
197
- slugs.add(norm.replace(/-/g, ""));
198
- slugs.add(raw.replace(/[-_\s]/g, ""));
199
- for (const slug of slugs) {
200
- if (slug) out.push(`https://cdn.simpleicons.org/${slug}`);
201
- }
202
- return out;
203
- }
204
- function monogramColor(seed) {
205
- const palette = [
206
- "#6366f1",
207
- "#8b5cf6",
208
- "#ec4899",
209
- "#f43f5e",
210
- "#f97316",
211
- "#eab308",
212
- "#22c55e",
213
- "#14b8a6",
214
- "#0ea5e9",
215
- "#3b82f6"
216
- ];
217
- let hash = 0;
218
- for (let i = 0; i < seed.length; i += 1) {
219
- hash = hash * 31 + seed.charCodeAt(i) >>> 0;
220
- }
221
- return palette[hash % palette.length];
222
- }
223
- function ProviderIcon({
224
- id,
225
- iconUrl,
226
- displayName,
227
- size = 24,
228
- className
229
- }) {
230
- const candidates = React.useMemo(
231
- () => providerLogoCandidates({ id, iconUrl }),
232
- [id, iconUrl]
233
- );
234
- const [index, setIndex] = React.useState(0);
235
- const candidateKey = `${id} ${iconUrl ?? ""}`;
236
- const [seenKey, setSeenKey] = React.useState(candidateKey);
237
- if (candidateKey !== seenKey) {
238
- setSeenKey(candidateKey);
239
- setIndex(0);
240
- }
241
- const label = (displayName ?? id).trim();
242
- const initial = label.charAt(0).toUpperCase() || "?";
243
- const src = candidates[index];
244
- if (!src) {
245
- return /* @__PURE__ */ jsx(
246
- "span",
247
- {
248
- className: `flex shrink-0 items-center justify-center font-semibold text-white ${className ?? ""}`,
249
- style: {
250
- width: size,
251
- height: size,
252
- backgroundColor: monogramColor(id),
253
- fontSize: Math.round(size * 0.42)
254
- },
255
- "aria-hidden": true,
256
- children: initial
257
- }
258
- );
259
- }
260
- return /* @__PURE__ */ jsx(
261
- "img",
262
- {
263
- src,
264
- alt: "",
265
- width: size,
266
- height: size,
267
- loading: "lazy",
268
- className: `shrink-0 object-contain ${className ?? ""}`,
269
- style: { width: size, height: size },
270
- onError: () => setIndex((i) => i + 1)
271
- }
272
- );
273
- }
274
-
275
- export {
276
- normalizeProviderId,
277
- providerLogoCandidates,
278
- ProviderIcon
279
- };