@tangle-network/sandbox-ui 0.102.0 → 0.103.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/chat.d.ts +61 -5
- package/dist/pages.js +1 -1
- package/dist/primitives.d.ts +1 -3
- package/package.json +1 -1
package/dist/chat.d.ts
CHANGED
|
@@ -57,7 +57,14 @@ declare const DEFAULT_REASONING_LEVEL_OPTIONS: ReadonlyArray<ReasoningLevelOptio
|
|
|
57
57
|
declare const HARNESS_REASONING_OPTIONS: Partial<Record<HarnessType, ReadonlyArray<ReasoningLevelOption>>>;
|
|
58
58
|
declare function ReasoningLevelPicker({ value, onChange, disabled, className, triggerClassName, options, available, side, avoidCollisions, }: ReasoningLevelPickerProps): React.JSX.Element;
|
|
59
59
|
|
|
60
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* Limits applied when staging files onto a composer.
|
|
62
|
+
*
|
|
63
|
+
* @deprecated Composer-only helper of the legacy AgentComposer. Use
|
|
64
|
+
* ChatComposer from `@tangle-network/agent-app/web-react` — the canonical
|
|
65
|
+
* composer. AgentComposer is frozen and will be removed at sandbox-ui's next
|
|
66
|
+
* breaking release.
|
|
67
|
+
*/
|
|
61
68
|
interface ComposerFileValidationConfig {
|
|
62
69
|
/** Reject any single file larger than this. */
|
|
63
70
|
maxSizeBytes?: number;
|
|
@@ -72,7 +79,12 @@ interface ComposerFileValidationConfig {
|
|
|
72
79
|
*/
|
|
73
80
|
accept?: string;
|
|
74
81
|
}
|
|
75
|
-
/** A file that failed validation, paired with a human-readable reason.
|
|
82
|
+
/** A file that failed validation, paired with a human-readable reason.
|
|
83
|
+
*
|
|
84
|
+
* @deprecated Composer-only helper of the legacy AgentComposer. Use
|
|
85
|
+
* ChatComposer from `@tangle-network/agent-app/web-react` — the canonical
|
|
86
|
+
* composer. AgentComposer is frozen and will be removed at sandbox-ui's next
|
|
87
|
+
* breaking release. */
|
|
76
88
|
interface ComposerFileRejection {
|
|
77
89
|
file: File;
|
|
78
90
|
reason: string;
|
|
@@ -81,6 +93,11 @@ interface ComposerFileRejection {
|
|
|
81
93
|
* Checks a single file against a comma-separated `accept` list using the same
|
|
82
94
|
* grammar as the native `<input accept>` attribute. An undefined or empty
|
|
83
95
|
* `accept` accepts everything.
|
|
96
|
+
*
|
|
97
|
+
* @deprecated Composer-only helper of the legacy AgentComposer. Use
|
|
98
|
+
* ChatComposer from `@tangle-network/agent-app/web-react` — the canonical
|
|
99
|
+
* composer. AgentComposer is frozen and will be removed at sandbox-ui's next
|
|
100
|
+
* breaking release.
|
|
84
101
|
*/
|
|
85
102
|
declare function isAcceptedType(file: File, accept?: string): boolean;
|
|
86
103
|
/**
|
|
@@ -89,6 +106,11 @@ declare function isAcceptedType(file: File, accept?: string): boolean;
|
|
|
89
106
|
* `currentCount` + `maxCount`. Each rejection carries a reason naming the
|
|
90
107
|
* file and the limit it broke. Pure data in, pure data out — no throwing,
|
|
91
108
|
* no console noise, so callers decide how to surface rejections.
|
|
109
|
+
*
|
|
110
|
+
* @deprecated Composer-only helper of the legacy AgentComposer. Use
|
|
111
|
+
* ChatComposer from `@tangle-network/agent-app/web-react` — the canonical
|
|
112
|
+
* composer. AgentComposer is frozen and will be removed at sandbox-ui's next
|
|
113
|
+
* breaking release.
|
|
92
114
|
*/
|
|
93
115
|
declare function validateComposerFiles(files: File[] | FileList, config: ComposerFileValidationConfig): {
|
|
94
116
|
accepted: File[];
|
|
@@ -96,7 +118,11 @@ declare function validateComposerFiles(files: File[] | FileList, config: Compose
|
|
|
96
118
|
};
|
|
97
119
|
|
|
98
120
|
/** A selectable item in the `@`-mention popover. Generic — file semantics live
|
|
99
|
-
* in the consuming app, not here.
|
|
121
|
+
* in the consuming app, not here.
|
|
122
|
+
*
|
|
123
|
+
* @deprecated Part of the legacy AgentComposer API. Use ChatComposer from
|
|
124
|
+
* `@tangle-network/agent-app/web-react` — the canonical composer. AgentComposer
|
|
125
|
+
* is frozen and will be removed at sandbox-ui's next breaking release. */
|
|
100
126
|
interface MentionItem {
|
|
101
127
|
id: string;
|
|
102
128
|
label: string;
|
|
@@ -107,6 +133,10 @@ interface MentionItem {
|
|
|
107
133
|
* Opt-in `@`-mention support. Present ⇒ the composer swaps its textarea for a
|
|
108
134
|
* TipTap rich input that renders mentions as atomic pills; absent ⇒ exactly
|
|
109
135
|
* today's plain-textarea behavior. Data-agnostic: the app supplies items.
|
|
136
|
+
*
|
|
137
|
+
* @deprecated Part of the legacy AgentComposer API. Use ChatComposer from
|
|
138
|
+
* `@tangle-network/agent-app/web-react` — the canonical composer. AgentComposer
|
|
139
|
+
* is frozen and will be removed at sandbox-ui's next breaking release.
|
|
110
140
|
*/
|
|
111
141
|
interface AgentComposerMention {
|
|
112
142
|
/** The character that opens the popover. Default "@". */
|
|
@@ -127,7 +157,11 @@ interface AgentComposerMention {
|
|
|
127
157
|
*/
|
|
128
158
|
popoverClassName?: string;
|
|
129
159
|
}
|
|
130
|
-
/** A staged attachment shown as a chip above the input.
|
|
160
|
+
/** A staged attachment shown as a chip above the input.
|
|
161
|
+
*
|
|
162
|
+
* @deprecated Part of the legacy AgentComposer API. Use ChatComposer from
|
|
163
|
+
* `@tangle-network/agent-app/web-react` — the canonical composer. AgentComposer
|
|
164
|
+
* is frozen and will be removed at sandbox-ui's next breaking release. */
|
|
131
165
|
interface ComposerFile {
|
|
132
166
|
id: string;
|
|
133
167
|
name: string;
|
|
@@ -145,7 +179,11 @@ interface ComposerFile {
|
|
|
145
179
|
/** Shown on the chip when `status === "error"`. */
|
|
146
180
|
errorMessage?: string;
|
|
147
181
|
}
|
|
148
|
-
/** Context the agent will see alongside the next message.
|
|
182
|
+
/** Context the agent will see alongside the next message.
|
|
183
|
+
*
|
|
184
|
+
* @deprecated Part of the legacy AgentComposer API. Use ChatComposer from
|
|
185
|
+
* `@tangle-network/agent-app/web-react` — the canonical composer. AgentComposer
|
|
186
|
+
* is frozen and will be removed at sandbox-ui's next breaking release. */
|
|
149
187
|
interface ComposerContextItem {
|
|
150
188
|
id: string;
|
|
151
189
|
label: string;
|
|
@@ -153,6 +191,13 @@ interface ComposerContextItem {
|
|
|
153
191
|
/** Omit to render a non-removable chip. */
|
|
154
192
|
onRemove?: () => void;
|
|
155
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Props of the legacy {@link AgentComposer}.
|
|
196
|
+
*
|
|
197
|
+
* @deprecated Part of the legacy AgentComposer API. Use ChatComposer from
|
|
198
|
+
* `@tangle-network/agent-app/web-react` — the canonical composer. AgentComposer
|
|
199
|
+
* is frozen and will be removed at sandbox-ui's next breaking release.
|
|
200
|
+
*/
|
|
156
201
|
interface AgentComposerProps {
|
|
157
202
|
/** Composer text (controlled). */
|
|
158
203
|
value: string;
|
|
@@ -243,6 +288,12 @@ interface AgentComposerProps {
|
|
|
243
288
|
autoFocus?: boolean;
|
|
244
289
|
}
|
|
245
290
|
/**
|
|
291
|
+
* @deprecated Use `ChatComposer` from `@tangle-network/agent-app/web-react` —
|
|
292
|
+
* the canonical composer (superset: attachments lifecycle, send-failure
|
|
293
|
+
* recovery, seeds, quiet/labeled controls, floating elevation, and the
|
|
294
|
+
* circular icon send via `sendVariant="icon"`). This slot-shell is frozen and
|
|
295
|
+
* will be removed at sandbox-ui's next breaking release.
|
|
296
|
+
*
|
|
246
297
|
* The canonical agent chat input: one rounded surface holding an auto-growing
|
|
247
298
|
* textarea and a bottom row that runs left → right — attach buttons, the
|
|
248
299
|
* control strip (supplied via the required `controls` prop), trailing slot,
|
|
@@ -266,6 +317,11 @@ declare function AgentComposer({ value, onChange, onSubmit, placeholder, disable
|
|
|
266
317
|
* silently drifting apart. Kept in its own module (no TipTap import) so
|
|
267
318
|
* importing it never pulls the lazily-loaded editor chunk into a consumer's
|
|
268
319
|
* bundle.
|
|
320
|
+
*
|
|
321
|
+
* @deprecated Mention-pill contract of the legacy AgentComposer mention
|
|
322
|
+
* feature. Use ChatComposer from `@tangle-network/agent-app/web-react` — the
|
|
323
|
+
* canonical composer. AgentComposer is frozen and will be removed at
|
|
324
|
+
* sandbox-ui's next breaking release.
|
|
269
325
|
*/
|
|
270
326
|
declare const MENTION_PILL_CLASS: string;
|
|
271
327
|
|
package/dist/pages.js
CHANGED
|
@@ -1687,7 +1687,7 @@ function ProvisioningWizard({
|
|
|
1687
1687
|
] });
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
-
// src/pages/pricing-page.tsx
|
|
1690
|
+
// src/pages/standalone-pricing-page.tsx
|
|
1691
1691
|
import * as React4 from "react";
|
|
1692
1692
|
import { Skeleton as Skeleton2, SkeletonCard as SkeletonCard2 } from "@tangle-network/ui/primitives";
|
|
1693
1693
|
import { ChevronDown } from "lucide-react";
|
package/dist/primitives.d.ts
CHANGED
|
@@ -20,8 +20,6 @@ import { HTMLAttributes, ElementType, ReactNode } from 'react';
|
|
|
20
20
|
* <h1> for accessibility and SEO.
|
|
21
21
|
*/
|
|
22
22
|
type HeadingVariant = "display" | "hero" | "page" | "section" | "subsection" | "eyebrow";
|
|
23
|
-
/** @deprecated Renamed to {@link HeadingVariant}; kept as an alias. */
|
|
24
|
-
type HeadingRole = HeadingVariant;
|
|
25
23
|
interface HeadingProps extends Omit<HTMLAttributes<HTMLElement>, "role"> {
|
|
26
24
|
/** Type role from the design system (size + weight + tracking + leading). */
|
|
27
25
|
role: HeadingVariant;
|
|
@@ -72,4 +70,4 @@ interface PageShellProps {
|
|
|
72
70
|
*/
|
|
73
71
|
declare function PageShell({ children, className }: PageShellProps): React.JSX.Element;
|
|
74
72
|
|
|
75
|
-
export { Heading, type HeadingProps, type
|
|
73
|
+
export { Heading, type HeadingProps, type HeadingVariant, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, SectionTitle, type SectionTitleProps };
|
package/package.json
CHANGED