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.
Files changed (85) hide show
  1. package/README.md +31 -2
  2. package/dist/chart.js +2 -0
  3. package/dist/chart.js.map +1 -1
  4. package/dist/chunk-EL2DHWOH.js +1710 -0
  5. package/dist/chunk-EL2DHWOH.js.map +1 -0
  6. package/dist/chunk-J633KV57.js +41 -0
  7. package/dist/chunk-J633KV57.js.map +1 -0
  8. package/dist/chunk-J7SECRIG.js +295 -0
  9. package/dist/chunk-J7SECRIG.js.map +1 -0
  10. package/dist/chunk-PIRPLH2Z.js +231 -0
  11. package/dist/chunk-PIRPLH2Z.js.map +1 -0
  12. package/dist/chunk-PZ5AY32C.js +10 -0
  13. package/dist/chunk-PZ5AY32C.js.map +1 -0
  14. package/dist/chunk-UKG4Z6QK.js +130 -0
  15. package/dist/chunk-UKG4Z6QK.js.map +1 -0
  16. package/dist/chunk-ZYWE47EO.js +19 -0
  17. package/dist/chunk-ZYWE47EO.js.map +1 -0
  18. package/dist/collab.cjs +169 -0
  19. package/dist/collab.cjs.map +1 -0
  20. package/dist/collab.d.ts +30 -0
  21. package/dist/collab.js +18 -0
  22. package/dist/collab.js.map +1 -0
  23. package/dist/graph.cjs +2244 -0
  24. package/dist/graph.cjs.map +1 -0
  25. package/dist/graph.d.ts +41 -0
  26. package/dist/graph.js +1870 -0
  27. package/dist/graph.js.map +1 -0
  28. package/dist/harness.js +1 -0
  29. package/dist/harness.js.map +1 -1
  30. package/dist/index.cjs +2044 -867
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.ts +20 -2
  33. package/dist/index.js +892 -1686
  34. package/dist/index.js.map +1 -1
  35. package/dist/sheet-doc.cjs +235 -0
  36. package/dist/sheet-doc.cjs.map +1 -0
  37. package/dist/sheet-doc.d.ts +16 -0
  38. package/dist/sheet-doc.js +20 -0
  39. package/dist/sheet-doc.js.map +1 -0
  40. package/dist/sheet.cjs +2322 -0
  41. package/dist/sheet.cjs.map +1 -0
  42. package/dist/sheet.d.ts +23 -0
  43. package/dist/sheet.js +237 -0
  44. package/dist/sheet.js.map +1 -0
  45. package/dist/slides.js +2 -0
  46. package/dist/slides.js.map +1 -1
  47. package/package.json +35 -3
  48. package/src/auth/client.js +4 -2
  49. package/src/collab/colors.js +18 -0
  50. package/src/collab/index.d.ts +30 -0
  51. package/src/collab/index.js +8 -0
  52. package/src/collab/keepAlive.js +34 -0
  53. package/src/collab/useLiveDoc.js +76 -0
  54. package/src/components/CascadeMenu.jsx +216 -0
  55. package/src/components/ChatMessages.jsx +30 -9
  56. package/src/components/Chip.jsx +37 -10
  57. package/src/components/Composer.jsx +80 -2
  58. package/src/components/resizable.jsx +82 -12
  59. package/src/graph/ConnectPane.jsx +634 -0
  60. package/src/graph/ConnectToolDetail.jsx +565 -0
  61. package/src/graph/LogsPane.jsx +328 -0
  62. package/src/graph/Skeleton.jsx +13 -0
  63. package/src/graph/draft.js +108 -0
  64. package/src/graph/format.js +37 -0
  65. package/src/graph/index.d.ts +41 -0
  66. package/src/graph/index.js +14 -0
  67. package/src/graph/useGraphCollab.js +299 -0
  68. package/src/graph/vgraph.js +215 -0
  69. package/src/index.d.ts +20 -2
  70. package/src/index.js +6 -1
  71. package/src/mention/MentionInput.jsx +420 -0
  72. package/src/mention/mentionModel.js +177 -0
  73. package/src/sheet/RunStrip.jsx +57 -0
  74. package/src/sheet/SheetGrid.jsx +444 -353
  75. package/src/sheet/doc.d.ts +16 -0
  76. package/src/sheet/index.d.ts +23 -0
  77. package/src/sheet/index.js +10 -0
  78. package/src/sheet/sheetDoc.js +203 -0
  79. package/src/sheet/useSheetCollab.js +102 -0
  80. package/src/sheet/useSheetRun.js +80 -0
  81. package/styles/chat.css +47 -5
  82. package/styles/chip.css +36 -0
  83. package/styles/graph.css +395 -0
  84. package/styles/mention.css +79 -0
  85. 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
- export const Chip: ComponentType<ChipProps>;
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;