reifyui 0.11.1 → 0.13.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/README.md +31 -2
- package/dist/chart.js +2 -0
- package/dist/chart.js.map +1 -1
- package/dist/chunk-EL2DHWOH.js +1710 -0
- package/dist/chunk-EL2DHWOH.js.map +1 -0
- package/dist/chunk-J633KV57.js +41 -0
- package/dist/chunk-J633KV57.js.map +1 -0
- package/dist/chunk-J7SECRIG.js +295 -0
- package/dist/chunk-J7SECRIG.js.map +1 -0
- package/dist/chunk-PIRPLH2Z.js +231 -0
- package/dist/chunk-PIRPLH2Z.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-UKG4Z6QK.js +130 -0
- package/dist/chunk-UKG4Z6QK.js.map +1 -0
- package/dist/chunk-ZYWE47EO.js +19 -0
- package/dist/chunk-ZYWE47EO.js.map +1 -0
- package/dist/collab.cjs +169 -0
- package/dist/collab.cjs.map +1 -0
- package/dist/collab.d.ts +30 -0
- package/dist/collab.js +18 -0
- package/dist/collab.js.map +1 -0
- package/dist/graph.cjs +2244 -0
- package/dist/graph.cjs.map +1 -0
- package/dist/graph.d.ts +41 -0
- package/dist/graph.js +1870 -0
- package/dist/graph.js.map +1 -0
- package/dist/harness.js +1 -0
- package/dist/harness.js.map +1 -1
- package/dist/index.cjs +2044 -867
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +20 -2
- package/dist/index.js +892 -1686
- package/dist/index.js.map +1 -1
- package/dist/sheet-doc.cjs +235 -0
- package/dist/sheet-doc.cjs.map +1 -0
- package/dist/sheet-doc.d.ts +16 -0
- package/dist/sheet-doc.js +20 -0
- package/dist/sheet-doc.js.map +1 -0
- package/dist/sheet.cjs +2322 -0
- package/dist/sheet.cjs.map +1 -0
- package/dist/sheet.d.ts +23 -0
- package/dist/sheet.js +237 -0
- package/dist/sheet.js.map +1 -0
- package/dist/slides.js +2 -0
- package/dist/slides.js.map +1 -1
- package/package.json +35 -3
- package/src/auth/client.js +4 -2
- package/src/collab/colors.js +18 -0
- package/src/collab/index.d.ts +30 -0
- package/src/collab/index.js +8 -0
- package/src/collab/keepAlive.js +34 -0
- package/src/collab/useLiveDoc.js +76 -0
- package/src/components/CascadeMenu.jsx +216 -0
- package/src/components/ChatMessages.jsx +30 -9
- package/src/components/Chip.jsx +37 -10
- package/src/components/Composer.jsx +80 -2
- package/src/components/resizable.jsx +82 -12
- package/src/graph/ConnectPane.jsx +634 -0
- package/src/graph/ConnectToolDetail.jsx +565 -0
- package/src/graph/LogsPane.jsx +328 -0
- package/src/graph/Skeleton.jsx +13 -0
- package/src/graph/draft.js +108 -0
- package/src/graph/format.js +37 -0
- package/src/graph/index.d.ts +41 -0
- package/src/graph/index.js +14 -0
- package/src/graph/useGraphCollab.js +299 -0
- package/src/graph/vgraph.js +215 -0
- package/src/index.d.ts +20 -2
- package/src/index.js +6 -1
- package/src/mention/MentionInput.jsx +420 -0
- package/src/mention/mentionModel.js +177 -0
- package/src/sheet/RunStrip.jsx +57 -0
- package/src/sheet/SheetGrid.jsx +444 -353
- package/src/sheet/doc.d.ts +16 -0
- package/src/sheet/index.d.ts +23 -0
- package/src/sheet/index.js +10 -0
- package/src/sheet/sheetDoc.js +203 -0
- package/src/sheet/useSheetCollab.js +102 -0
- package/src/sheet/useSheetRun.js +80 -0
- package/styles/chat.css +47 -5
- package/styles/chip.css +36 -0
- package/styles/graph.css +395 -0
- package/styles/mention.css +79 -0
- package/styles/sheet.css +156 -112
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// authored by hand rather than inferred. Components accept the props documented in
|
|
5
5
|
// the README; where a prop set is open-ended (render slots, passthrough) the type is
|
|
6
6
|
// intentionally permissive rather than falsely precise.
|
|
7
|
-
import type { ComponentType, ReactNode } from 'react';
|
|
7
|
+
import type { ComponentType, ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
|
|
8
8
|
|
|
9
9
|
// ── streaming ──────────────────────────────────────────────────────────────
|
|
10
10
|
export interface SSEEvent { type: string; [k: string]: unknown; }
|
|
@@ -167,6 +167,9 @@ export const AssistantTurn: ComponentType<Record<string, unknown>>;
|
|
|
167
167
|
export const DEFAULT_STATUS_LABELS: Record<string, string>;
|
|
168
168
|
|
|
169
169
|
export interface ComposerProps {
|
|
170
|
+
/** files dropped on the composer, or on dropTargetRef's element */
|
|
171
|
+
onFiles?: (files: FileList) => void;
|
|
172
|
+
dropTargetRef?: { current: HTMLElement | null };
|
|
170
173
|
value: string;
|
|
171
174
|
onChange: (value: string) => void;
|
|
172
175
|
onSend: () => void;
|
|
@@ -183,8 +186,14 @@ export interface ComposerProps {
|
|
|
183
186
|
/** The accessible name. Give one whenever the placeholder animates — it is otherwise the only
|
|
184
187
|
* name the field has, and it changes every few seconds. */
|
|
185
188
|
inputAriaLabel?: string;
|
|
189
|
+
/** Single-line layout: accessories, textarea and send share ONE row (the classic chat
|
|
190
|
+
* input); buttons stick to the bottom edge as the textarea grows. */
|
|
191
|
+
inline?: boolean;
|
|
186
192
|
/** Node rendered ABOVE the textarea, e.g. a row of staged attachments. */
|
|
187
193
|
attachments?: ReactNode;
|
|
194
|
+
/** Node rendered INSIDE the card, under the action row — one seamless surface, for the row
|
|
195
|
+
* that belongs to the message being composed (route chips, a template picker). */
|
|
196
|
+
tray?: ReactNode;
|
|
188
197
|
accessoriesLeft?: ReactNode;
|
|
189
198
|
accessoriesRight?: ReactNode;
|
|
190
199
|
/** Replaces the default send button entirely. */
|
|
@@ -348,9 +357,18 @@ export interface ChipProps {
|
|
|
348
357
|
onRemove?: () => void;
|
|
349
358
|
/** Required with onRemove: "✕" alone does not say which of five chips it removes. */
|
|
350
359
|
removeLabel?: string;
|
|
360
|
+
/** The dashed "open slot" look for a choice not yet made. Defaults to clickable-and-unselected;
|
|
361
|
+
* pass slot={false} for a chip that is clickable AND already set. */
|
|
362
|
+
slot?: boolean;
|
|
363
|
+
/** A compact control the chip carries between the label and the ✕ (the caller's control —
|
|
364
|
+
* never wrapped in the chip's own press target). */
|
|
365
|
+
trailing?: ReactNode;
|
|
351
366
|
className?: string;
|
|
367
|
+
/** Everything else lands on the press target (aria-expanded, aria-haspopup, data-*). */
|
|
368
|
+
[k: string]: unknown;
|
|
352
369
|
}
|
|
353
|
-
|
|
370
|
+
/** ref lands on the OUTERMOST element — the box a Popover or CascadeMenu anchors against. */
|
|
371
|
+
export const Chip: ForwardRefExoticComponent<ChipProps & RefAttributes<HTMLElement>>;
|
|
354
372
|
|
|
355
373
|
export interface SearchFieldProps {
|
|
356
374
|
value: string;
|