@tangle-network/sandbox-ui 0.102.0 → 0.103.1

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 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
- /** Limits applied when staging files onto a composer. */
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,17 @@ 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. It adds send-failure recovery, seeds, control
293
+ * placement, floating elevation, and the circular icon send via
294
+ * `sendVariant="icon"`. Plan a port, not a rename: 14 of the 28 props here
295
+ * have no same-named counterpart there, among them `contextItems`, `mention`,
296
+ * `trailing`, `maxHeight`, `minRows`, and `autoFocus`. The control model also
297
+ * differs — this component requires `value` and `onChange` and calls
298
+ * `onSubmit` with no arguments, while `ChatComposer` can own its draft and
299
+ * gives the message to a refusable `onSend`. This slot-shell is frozen and
300
+ * will be removed at sandbox-ui's next breaking release.
301
+ *
246
302
  * The canonical agent chat input: one rounded surface holding an auto-growing
247
303
  * textarea and a bottom row that runs left → right — attach buttons, the
248
304
  * control strip (supplied via the required `controls` prop), trailing slot,
@@ -266,6 +322,11 @@ declare function AgentComposer({ value, onChange, onSubmit, placeholder, disable
266
322
  * silently drifting apart. Kept in its own module (no TipTap import) so
267
323
  * importing it never pulls the lazily-loaded editor chunk into a consumer's
268
324
  * bundle.
325
+ *
326
+ * @deprecated Mention-pill contract of the legacy AgentComposer mention
327
+ * feature. Use ChatComposer from `@tangle-network/agent-app/web-react` — the
328
+ * canonical composer. AgentComposer is frozen and will be removed at
329
+ * sandbox-ui's next breaking release.
269
330
  */
270
331
  declare const MENTION_PILL_CLASS: string;
271
332
 
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";
@@ -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 HeadingRole, type HeadingVariant, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, SectionTitle, type SectionTitleProps };
73
+ export { Heading, type HeadingProps, type HeadingVariant, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, SectionTitle, type SectionTitleProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox-ui",
3
- "version": "0.102.0",
3
+ "version": "0.103.1",
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.48.0",
121
+ "@tangle-network/agent-interface": ">=0.36.0 <0.54.0",
122
122
  "@tangle-network/brand": "^1.5.0",
123
123
  "@tangle-network/ui": "^11.5.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.47.0",
193
+ "@tangle-network/agent-interface": "0.53.0",
194
194
  "@tangle-network/brand": "^1.5.0",
195
195
  "@tangle-network/ui": "^11.5.0",
196
196
  "@tanstack/react-query": "^5.101.4",