@tangle-network/sandbox-ui 0.16.3 → 0.18.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.
- package/dist/auth.d.ts +29 -0
- package/dist/auth.js +3 -1
- package/dist/chat.d.ts +111 -0
- package/dist/chat.js +12 -3
- package/dist/chunk-CNVE6KOM.js +417 -0
- package/dist/chunk-IOB2PW5Z.js +55 -0
- package/dist/chunk-N5RYCDLD.js +1187 -0
- package/dist/dashboard.d.ts +1 -1
- package/dist/dashboard.js +1 -1
- package/dist/globals.css +44 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +54 -44
- package/dist/integrations.d.ts +114 -0
- package/dist/integrations.js +245 -0
- package/dist/openui.d.ts +0 -2
- package/dist/pages.d.ts +1 -1
- package/dist/pages.js +1 -1
- package/dist/styles.css +44 -0
- package/dist/{template-card-Dufxl4hV.d.ts → template-card-gf-InrfN.d.ts} +12 -0
- package/package.json +6 -1
- package/dist/chunk-27X3DWMO.js +0 -815
- package/dist/chunk-NJNME4J4.js +0 -14
- package/dist/chunk-QPAJR74X.js +0 -20
package/dist/openui.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export { OpenUIAction, OpenUIActionsNode, OpenUIArtifactRenderer, OpenUIArtifactRendererProps, OpenUIBadgeNode, OpenUICardNode, OpenUICodeNode, OpenUIComponentNode, OpenUIGridNode, OpenUIHeadingNode, OpenUIKeyValueNode, OpenUIMarkdownNode, OpenUIPrimitive, OpenUISeparatorNode, OpenUIStackNode, OpenUIStatNode, OpenUITableNode, OpenUITextNode } from '@tangle-network/ui/openui';
|
|
2
|
-
import '@tangle-network/ui/chat';
|
|
3
2
|
import '@tangle-network/ui/run';
|
|
4
3
|
import '@tangle-network/ui/files';
|
|
5
|
-
import '@tangle-network/ui/auth';
|
|
6
4
|
import '@tangle-network/ui/utils';
|
|
7
5
|
import '@tangle-network/ui/editor';
|
|
8
6
|
import '@tangle-network/ui/markdown';
|
package/dist/pages.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { c as BillingSubscription, B as BillingBalance, d as BillingUsage, m as UsageDataPoint, i as PricingTier, M as ModelInfo, j as TemplateCardData } from './template-card-
|
|
2
|
+
import { c as BillingSubscription, B as BillingBalance, d as BillingUsage, m as UsageDataPoint, i as PricingTier, M as ModelInfo, j as TemplateCardData } from './template-card-gf-InrfN.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
5
5
|
type ProductVariant$1 = "sandbox";
|
package/dist/pages.js
CHANGED
package/dist/styles.css
CHANGED
|
@@ -390,6 +390,9 @@
|
|
|
390
390
|
max-width: 96rem;
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
+
.mx-1 {
|
|
394
|
+
margin-inline: calc(var(--spacing) * 1);
|
|
395
|
+
}
|
|
393
396
|
.mx-2 {
|
|
394
397
|
margin-inline: calc(var(--spacing) * 2);
|
|
395
398
|
}
|
|
@@ -588,6 +591,9 @@
|
|
|
588
591
|
.h-\[3px\] {
|
|
589
592
|
height: 3px;
|
|
590
593
|
}
|
|
594
|
+
.h-\[72\%\] {
|
|
595
|
+
height: 72%;
|
|
596
|
+
}
|
|
591
597
|
.h-\[500px\] {
|
|
592
598
|
height: 500px;
|
|
593
599
|
}
|
|
@@ -624,6 +630,9 @@
|
|
|
624
630
|
.min-h-\[2px\] {
|
|
625
631
|
min-height: 2px;
|
|
626
632
|
}
|
|
633
|
+
.min-h-\[44px\] {
|
|
634
|
+
min-height: 44px;
|
|
635
|
+
}
|
|
627
636
|
.min-h-\[72px\] {
|
|
628
637
|
min-height: 72px;
|
|
629
638
|
}
|
|
@@ -708,6 +717,9 @@
|
|
|
708
717
|
.w-48 {
|
|
709
718
|
width: calc(var(--spacing) * 48);
|
|
710
719
|
}
|
|
720
|
+
.w-64 {
|
|
721
|
+
width: calc(var(--spacing) * 64);
|
|
722
|
+
}
|
|
711
723
|
.w-72 {
|
|
712
724
|
width: calc(var(--spacing) * 72);
|
|
713
725
|
}
|
|
@@ -717,6 +729,9 @@
|
|
|
717
729
|
.w-\[3px\] {
|
|
718
730
|
width: 3px;
|
|
719
731
|
}
|
|
732
|
+
.w-\[72\%\] {
|
|
733
|
+
width: 72%;
|
|
734
|
+
}
|
|
720
735
|
.w-\[260px\] {
|
|
721
736
|
width: 260px;
|
|
722
737
|
}
|
|
@@ -789,6 +804,9 @@
|
|
|
789
804
|
.max-w-\[460px\] {
|
|
790
805
|
max-width: 460px;
|
|
791
806
|
}
|
|
807
|
+
.max-w-\[480px\] {
|
|
808
|
+
max-width: 480px;
|
|
809
|
+
}
|
|
792
810
|
.max-w-md {
|
|
793
811
|
max-width: var(--container-md);
|
|
794
812
|
}
|
|
@@ -819,6 +837,9 @@
|
|
|
819
837
|
.min-w-\[320px\] {
|
|
820
838
|
min-width: 320px;
|
|
821
839
|
}
|
|
840
|
+
.min-w-\[360px\] {
|
|
841
|
+
min-width: 360px;
|
|
842
|
+
}
|
|
822
843
|
.flex-1 {
|
|
823
844
|
flex: 1;
|
|
824
845
|
}
|
|
@@ -1020,6 +1041,13 @@
|
|
|
1020
1041
|
.gap-px {
|
|
1021
1042
|
gap: 1px;
|
|
1022
1043
|
}
|
|
1044
|
+
.space-y-0 {
|
|
1045
|
+
:where(& > :not(:last-child)) {
|
|
1046
|
+
--tw-space-y-reverse: 0;
|
|
1047
|
+
margin-block-start: calc(calc(var(--spacing) * 0) * var(--tw-space-y-reverse));
|
|
1048
|
+
margin-block-end: calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-y-reverse)));
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1023
1051
|
.space-y-0\.5 {
|
|
1024
1052
|
:where(& > :not(:last-child)) {
|
|
1025
1053
|
--tw-space-y-reverse: 0;
|
|
@@ -1486,6 +1514,9 @@
|
|
|
1486
1514
|
--tw-gradient-to: transparent;
|
|
1487
1515
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
1488
1516
|
}
|
|
1517
|
+
.object-contain {
|
|
1518
|
+
object-fit: contain;
|
|
1519
|
+
}
|
|
1489
1520
|
.p-0 {
|
|
1490
1521
|
padding: calc(var(--spacing) * 0);
|
|
1491
1522
|
}
|
|
@@ -1576,6 +1607,9 @@
|
|
|
1576
1607
|
.py-5 {
|
|
1577
1608
|
padding-block: calc(var(--spacing) * 5);
|
|
1578
1609
|
}
|
|
1610
|
+
.py-6 {
|
|
1611
|
+
padding-block: calc(var(--spacing) * 6);
|
|
1612
|
+
}
|
|
1579
1613
|
.py-8 {
|
|
1580
1614
|
padding-block: calc(var(--spacing) * 8);
|
|
1581
1615
|
}
|
|
@@ -1995,6 +2029,10 @@
|
|
|
1995
2029
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1996
2030
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1997
2031
|
}
|
|
2032
|
+
.shadow-xl {
|
|
2033
|
+
--tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
2034
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2035
|
+
}
|
|
1998
2036
|
.ring {
|
|
1999
2037
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2000
2038
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -2138,6 +2176,12 @@
|
|
|
2138
2176
|
outline-style: none;
|
|
2139
2177
|
}
|
|
2140
2178
|
}
|
|
2179
|
+
.placeholder\:font-normal {
|
|
2180
|
+
&::placeholder {
|
|
2181
|
+
--tw-font-weight: var(--font-weight-normal);
|
|
2182
|
+
font-weight: var(--font-weight-normal);
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2141
2185
|
.after\:absolute {
|
|
2142
2186
|
&::after {
|
|
2143
2187
|
content: var(--tw-content);
|
|
@@ -30,7 +30,19 @@ interface ModelInfo {
|
|
|
30
30
|
input_modalities?: string[];
|
|
31
31
|
output_modalities?: string[];
|
|
32
32
|
};
|
|
33
|
+
/** Hosting company or router that serves the request. Defaults to `_provider` / `provider`. */
|
|
34
|
+
hostProvider?: string;
|
|
35
|
+
/** Lab/company that authored the model. Inferred from model id/name when omitted. */
|
|
36
|
+
modelLab?: string;
|
|
37
|
+
/** Optional explicit logo keys when provider/lab ids are not stable. */
|
|
38
|
+
logos?: {
|
|
39
|
+
host?: ModelBrandKey;
|
|
40
|
+
lab?: ModelBrandKey;
|
|
41
|
+
hostUrl?: string;
|
|
42
|
+
labUrl?: string;
|
|
43
|
+
};
|
|
33
44
|
}
|
|
45
|
+
type ModelBrandKey = "ai21" | "alibaba" | "anthropic" | "azure" | "bedrock" | "cartesia" | "cerebras" | "cohere" | "deepseek" | "elevenlabs" | "fal" | "fireworks" | "google" | "groq" | "kuaishou" | "luma" | "meta" | "mistral" | "moonshot" | "openai" | "openrouter" | "perplexity" | "pika" | "replicate" | "runway" | "stability" | "tangle" | "tcloud" | "together" | "vertex" | "xai" | "zai" | "unknown";
|
|
34
46
|
type ModelPickerVariant = "field" | "pill";
|
|
35
47
|
interface ModelPickerProps {
|
|
36
48
|
/** Canonical model id (provider-prefixed, e.g. "openai/gpt-5.4"). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
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",
|
|
@@ -62,6 +62,10 @@
|
|
|
62
62
|
"import": "./dist/auth.js",
|
|
63
63
|
"types": "./dist/auth.d.ts"
|
|
64
64
|
},
|
|
65
|
+
"./integrations": {
|
|
66
|
+
"import": "./dist/integrations.js",
|
|
67
|
+
"types": "./dist/integrations.d.ts"
|
|
68
|
+
},
|
|
65
69
|
"./pages": {
|
|
66
70
|
"import": "./dist/pages.js",
|
|
67
71
|
"types": "./dist/pages.d.ts"
|
|
@@ -132,6 +136,7 @@
|
|
|
132
136
|
}
|
|
133
137
|
},
|
|
134
138
|
"dependencies": {
|
|
139
|
+
"@lobehub/icons-static-svg": "^1.90.0",
|
|
135
140
|
"@radix-ui/react-dropdown-menu": "^2.1.0",
|
|
136
141
|
"@radix-ui/react-select": "^2.1.0",
|
|
137
142
|
"lucide-react": "^0.469.0",
|