@arbidocs/blocks 0.4.89 → 0.4.91

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 (72) hide show
  1. package/dist/agents/index.cjs +283 -282
  2. package/dist/agents/index.js +7 -6
  3. package/dist/agents/workflows/types.d.ts +6 -0
  4. package/dist/{chunk-2CFW2ELM.cjs → chunk-2EI7NCUA.cjs} +2 -8
  5. package/dist/chunk-2EI7NCUA.cjs.map +1 -0
  6. package/dist/chunk-32HW2Q33.cjs +59 -0
  7. package/dist/chunk-32HW2Q33.cjs.map +1 -0
  8. package/dist/{chunk-MOJ5JQDN.cjs → chunk-3US5OIDQ.cjs} +69 -34
  9. package/dist/chunk-3US5OIDQ.cjs.map +1 -0
  10. package/dist/{chunk-DPLRHEJZ.js → chunk-5LXQPP2K.js} +4 -33
  11. package/dist/chunk-5LXQPP2K.js.map +1 -0
  12. package/dist/{chunk-QLHW7JGN.js → chunk-5NQIBJPP.js} +7 -7
  13. package/dist/{chunk-QLHW7JGN.js.map → chunk-5NQIBJPP.js.map} +1 -1
  14. package/dist/{chunk-3D5MDCQ7.js → chunk-5RQOVALO.js} +3 -3
  15. package/dist/{chunk-3D5MDCQ7.js.map → chunk-5RQOVALO.js.map} +1 -1
  16. package/dist/chunk-AUS3KBHJ.js +52 -0
  17. package/dist/chunk-AUS3KBHJ.js.map +1 -0
  18. package/dist/{chunk-CNI5QJ5B.cjs → chunk-DDYXFALG.cjs} +50 -50
  19. package/dist/{chunk-CNI5QJ5B.cjs.map → chunk-DDYXFALG.cjs.map} +1 -1
  20. package/dist/chunk-DVUZTGVL.cjs +52 -0
  21. package/dist/chunk-DVUZTGVL.cjs.map +1 -0
  22. package/dist/{chunk-TF6YMDZL.cjs → chunk-EHF63UYP.cjs} +5 -5
  23. package/dist/{chunk-TF6YMDZL.cjs.map → chunk-EHF63UYP.cjs.map} +1 -1
  24. package/dist/{chunk-I44NX2ZB.js → chunk-PGDL26TQ.js} +69 -34
  25. package/dist/chunk-PGDL26TQ.js.map +1 -0
  26. package/dist/{chunk-ZX2VPMBJ.js → chunk-YU2KUMGE.js} +2 -8
  27. package/dist/chunk-YU2KUMGE.js.map +1 -0
  28. package/dist/components/tones.d.ts +5 -0
  29. package/dist/connect/index.cjs +26 -25
  30. package/dist/connect/index.cjs.map +1 -1
  31. package/dist/connect/index.js +5 -4
  32. package/dist/connect/index.js.map +1 -1
  33. package/dist/facts/FactSourceGroup.d.ts +2 -1
  34. package/dist/facts/index.cjs +6 -6
  35. package/dist/facts/index.cjs.map +1 -1
  36. package/dist/facts/index.js +3 -3
  37. package/dist/facts/index.js.map +1 -1
  38. package/dist/files/cells/LabelMultiSelect.d.ts +11 -3
  39. package/dist/files/index.cjs +23 -16
  40. package/dist/files/index.cjs.map +1 -1
  41. package/dist/files/index.js +20 -13
  42. package/dist/files/index.js.map +1 -1
  43. package/dist/index.cjs +371 -358
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.js +54 -49
  47. package/dist/index.js.map +1 -1
  48. package/dist/settings/index.cjs +6 -5
  49. package/dist/settings/index.cjs.map +1 -1
  50. package/dist/settings/index.js +2 -1
  51. package/dist/settings/index.js.map +1 -1
  52. package/dist/shell/FilterInput.d.ts +1 -3
  53. package/dist/shell/index.cjs +4 -4
  54. package/dist/shell/index.js +1 -1
  55. package/dist/site/index.cjs +4 -3
  56. package/dist/site/index.js +2 -1
  57. package/dist/tags/TagDetail.d.ts +10 -1
  58. package/dist/workflow-canvas/FieldOptionsEditor.d.ts +25 -0
  59. package/dist/workflow-canvas/StepInspector.d.ts +6 -2
  60. package/dist/workflow-canvas/index.cjs +179 -50
  61. package/dist/workflow-canvas/index.cjs.map +1 -1
  62. package/dist/workflow-canvas/index.d.ts +1 -0
  63. package/dist/workflow-canvas/index.js +136 -9
  64. package/dist/workflow-canvas/index.js.map +1 -1
  65. package/package.json +4 -4
  66. package/dist/chunk-2CFW2ELM.cjs.map +0 -1
  67. package/dist/chunk-DPLRHEJZ.js.map +0 -1
  68. package/dist/chunk-I44NX2ZB.js.map +0 -1
  69. package/dist/chunk-MOJ5JQDN.cjs.map +0 -1
  70. package/dist/chunk-VFUWWH52.cjs +0 -83
  71. package/dist/chunk-VFUWWH52.cjs.map +0 -1
  72. package/dist/chunk-ZX2VPMBJ.js.map +0 -1
@@ -31,8 +31,6 @@ export interface FilterInputProps<Field extends string = FilterField> {
31
31
  hideFieldPicker?: boolean;
32
32
  ariaLabel?: string;
33
33
  onChange: (q: string) => void;
34
- /** Enter in the box (e.g. open the one match, or add what was typed). */
35
- onSubmit?: (q: string) => void;
36
34
  fields: Field[];
37
35
  onFieldsChange: (fields: Field[]) => void;
38
36
  /**
@@ -47,4 +45,4 @@ export interface FilterInputProps<Field extends string = FilterField> {
47
45
  labels?: Partial<FilterInputLabels<Field>>;
48
46
  testIds?: Partial<FilterInputTestIds<Field>>;
49
47
  }
50
- export declare function FilterInput<Field extends string = FilterField>({ fieldOptions, value, hideFieldPicker, ariaLabel, onChange, onSubmit, fields, onFieldsChange, filter, className, borderless, labels, testIds, }: FilterInputProps<Field>): import("react").JSX.Element;
48
+ export declare function FilterInput<Field extends string = FilterField>({ fieldOptions, value, hideFieldPicker, ariaLabel, onChange, fields, onFieldsChange, filter, className, borderless, labels, testIds, }: FilterInputProps<Field>): import("react").JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
  var chunkNYBIKDWI_cjs = require('../chunk-NYBIKDWI.cjs');
5
5
  var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
6
- var chunk2CFW2ELM_cjs = require('../chunk-2CFW2ELM.cjs');
6
+ var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
7
7
  require('../chunk-OB5F4577.cjs');
8
8
  var chunkXKSFJYOD_cjs = require('../chunk-XKSFJYOD.cjs');
9
9
  var chunkVGOFFCMT_cjs = require('../chunk-VGOFFCMT.cjs');
@@ -201,15 +201,15 @@ Object.defineProperty(exports, "TabHeader", {
201
201
  });
202
202
  Object.defineProperty(exports, "DEFAULT_FILTER_FIELDS", {
203
203
  enumerable: true,
204
- get: function () { return chunk2CFW2ELM_cjs.DEFAULT_FILTER_FIELDS; }
204
+ get: function () { return chunk2EI7NCUA_cjs.DEFAULT_FILTER_FIELDS; }
205
205
  });
206
206
  Object.defineProperty(exports, "DEFAULT_FILTER_INPUT_LABELS", {
207
207
  enumerable: true,
208
- get: function () { return chunk2CFW2ELM_cjs.DEFAULT_FILTER_INPUT_LABELS; }
208
+ get: function () { return chunk2EI7NCUA_cjs.DEFAULT_FILTER_INPUT_LABELS; }
209
209
  });
210
210
  Object.defineProperty(exports, "FilterInput", {
211
211
  enumerable: true,
212
- get: function () { return chunk2CFW2ELM_cjs.FilterInput; }
212
+ get: function () { return chunk2EI7NCUA_cjs.FilterInput; }
213
213
  });
214
214
  Object.defineProperty(exports, "DEFAULT_DOCK_WIDTH", {
215
215
  enumerable: true,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  export { ActionCluster, AskField, AskRow, AskTrigger, DEFAULT_ASK_FIELD_LABELS, DEFAULT_INSTALL_PROMPT_LABELS, DEFAULT_MOBILE_BARS_LABELS, DEFAULT_OFFLINE_PILL_LABELS, DEFAULT_REMOTE_CONTROL_PILL_LABELS, DEFAULT_SIDEBAR_LABELS, DEFAULT_TIP_CARD_LABELS, DEFAULT_WORKSPACE_KIND_LABELS, DEFAULT_WORKSPACE_SWITCHER_LABELS, INSTALL_PROMPT_DISMISSED_KEY, InfoBar, InstallPrompt, MobileAppBar, MobileTabBar, NotificationBell, OfflinePill, RemoteControlPill, STATUS_ROW_BASE_CLASS, STATUS_ROW_TONES, Sidebar, SidebarBadgeRow, SidebarRowAction, SidebarRowHoverContext, SplitLayout, StatusBadge, StatusRow, TipCard, UserMenu, WorkspaceIdentity, WorkspaceSwitcher, getInstallInstructions, initInstallPrompt, isIosDevice, promptAppInstall, resolveSidebarLayout, useInstallPrompt, useSidebarContext, useSidebarSettle, workspaceKindColor, workspaceKindMeta } from '../chunk-R3PDNQYT.js';
3
3
  export { DEFAULT_TAB_HEADER_LABELS, TabHeader } from '../chunk-4WWM3GQ5.js';
4
- export { DEFAULT_FILTER_FIELDS, DEFAULT_FILTER_INPUT_LABELS, FilterInput } from '../chunk-ZX2VPMBJ.js';
4
+ export { DEFAULT_FILTER_FIELDS, DEFAULT_FILTER_INPUT_LABELS, FilterInput } from '../chunk-YU2KUMGE.js';
5
5
  import '../chunk-S7PSMMRG.js';
6
6
  export { DEFAULT_DOCK_WIDTH, Toaster } from '../chunk-BV7FEMSI.js';
7
7
  export { DEFAULT_OVERLAY_ZONE_ID, DEFAULT_PAGE_CONTAINER_PADDING, DEFAULT_SIDEBAR_TOGGLE_BUTTON_LABELS, PageContainer, SHELL_BOTTOM_INSET_VAR, Shell, SidebarToggleButton, ToolButton, useDrawerBehavior, useOverlayZoneId, useShellBottomInset } from '../chunk-KZJAG7T3.js';
@@ -6,7 +6,8 @@ var chunkMJCCBMM5_cjs = require('../chunk-MJCCBMM5.cjs');
6
6
  var chunkELR74ME6_cjs = require('../chunk-ELR74ME6.cjs');
7
7
  var chunkVPPX5XUF_cjs = require('../chunk-VPPX5XUF.cjs');
8
8
  var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
9
- var chunkVFUWWH52_cjs = require('../chunk-VFUWWH52.cjs');
9
+ var chunkDVUZTGVL_cjs = require('../chunk-DVUZTGVL.cjs');
10
+ require('../chunk-32HW2Q33.cjs');
10
11
  var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
11
12
  require('../chunk-DES3K4SD.cjs');
12
13
 
@@ -290,11 +291,11 @@ Object.defineProperty(exports, "Callout", {
290
291
  });
291
292
  Object.defineProperty(exports, "Dot", {
292
293
  enumerable: true,
293
- get: function () { return chunkVFUWWH52_cjs.Dot; }
294
+ get: function () { return chunkDVUZTGVL_cjs.Dot; }
294
295
  });
295
296
  Object.defineProperty(exports, "ToneBadge", {
296
297
  enumerable: true,
297
- get: function () { return chunkVFUWWH52_cjs.ToneBadge; }
298
+ get: function () { return chunkDVUZTGVL_cjs.ToneBadge; }
298
299
  });
299
300
  Object.defineProperty(exports, "daysUntil", {
300
301
  enumerable: true,
@@ -4,7 +4,8 @@ export { Accordion, AvatarBlock, Banner, BlockImage, BlockLink, CTABanner, Colum
4
4
  export { Timeline } from '../chunk-OVEQERPO.js';
5
5
  export { TimelineCalendar, TimelineGantt, dayKey, formatSpan, monthLabel, parseIso, utcDay } from '../chunk-4EZVCGRL.js';
6
6
  export { Callout } from '../chunk-UJE32SST.js';
7
- export { Dot, ToneBadge } from '../chunk-DPLRHEJZ.js';
7
+ export { Dot, ToneBadge } from '../chunk-5LXQPP2K.js';
8
+ import '../chunk-AUS3KBHJ.js';
8
9
  export { daysUntil, fmtDate, fmtDateTime, formatCurrency, fromNow, hrs, initials, pct } from '../chunk-OXF2IFXG.js';
9
10
  import '../chunk-VUNV25KB.js';
10
11
  //# sourceMappingURL=index.js.map
@@ -4,6 +4,7 @@
4
4
  * tag has on each, and how many passages back it), the facts and the threads. The data is the tag
5
5
  * read with its links (`TagTableRow`) and its kind's fields; every write goes back through the host.
6
6
  */
7
+ import type { ReactNode } from 'react';
7
8
  import { type TagTableLabels, type TagTableProps } from './TagTable';
8
9
  import { type TagTableField, type TagTableRow } from './tagTableModel';
9
10
  export interface TagDetailLabels {
@@ -42,6 +43,14 @@ export interface TagDetailProps extends Pick<TagTableProps, 'onChangeValue' | 'o
42
43
  * without one says so.
43
44
  */
44
45
  noteIsValue?: boolean;
46
+ /**
47
+ * Render a document's cited passages in place of the plain "N passages" count (e.g. a popover
48
+ * listing them); `label` is that count's text. Called only for a document with passages.
49
+ */
50
+ renderPassages?: (doc: {
51
+ doc_ext_id: string;
52
+ citations_count: number;
53
+ }, label: string) => ReactNode;
45
54
  isLoading?: boolean;
46
55
  labels?: Partial<TagDetailLabels>;
47
56
  /** Labels of the field inputs (the empty choice). */
@@ -49,4 +58,4 @@ export interface TagDetailProps extends Pick<TagTableProps, 'onChangeValue' | 'o
49
58
  className?: string;
50
59
  testId?: string;
51
60
  }
52
- export declare function TagDetail({ row, fields, isLoading, people, tags, onOpenTag, onChangeValue, onOpenDocument, onOpenFact, onOpenThread, noteLabel, noteIsValue, labels, fieldLabels, className, testId, }: TagDetailProps): import("react").JSX.Element;
61
+ export declare function TagDetail({ row, fields, isLoading, people, tags, onOpenTag, onChangeValue, onOpenDocument, onOpenFact, onOpenThread, noteLabel, noteIsValue, renderPassages, labels, fieldLabels, className, testId, }: TagDetailProps): import("react").JSX.Element;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The choices of a `select` field in the builder: each option's label and tone. An option's value
3
+ * follows its label (`High risk` → `high_risk`) while the option is new; a saved one keeps its
4
+ * value when relabelled (`{value: high, label: "High — refer to COLP"}`), as signals test it.
5
+ */
6
+ import { type Tone } from '../components/tones';
7
+ import type { WorkflowFieldOption } from '../agents';
8
+ export interface FieldOptionsEditorLabels {
9
+ options: string;
10
+ addOption: string;
11
+ optionLabel: string;
12
+ optionTone: string;
13
+ /** The tone picker's "no tone" choice. */
14
+ noTone: string;
15
+ tones: Record<Tone, string>;
16
+ }
17
+ export declare const DEFAULT_FIELD_OPTIONS_EDITOR_LABELS: FieldOptionsEditorLabels;
18
+ /** A value from a label: lower case, `_` between words, unique among `taken`. */
19
+ export declare const optionValue: (label: string, taken: string[]) => string;
20
+ export declare function FieldOptionsEditor({ options, onChange, l, testId, }: {
21
+ options: WorkflowFieldOption[];
22
+ onChange: (options: WorkflowFieldOption[]) => void;
23
+ l: FieldOptionsEditorLabels;
24
+ testId: string;
25
+ }): import("react").JSX.Element;
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { type WorkflowDefinition, type WorkflowField } from '../agents';
6
6
  import { type SignalsEditorLabels } from './SignalsEditor';
7
+ import { type FieldOptionsEditorLabels } from './FieldOptionsEditor';
7
8
  import { type StepActionSettingsLabels, type StepInspectorOption } from './StepActionSettings';
8
9
  export type { StepInspectorOption } from './StepActionSettings';
9
10
  export interface StepInspectorLabels {
@@ -63,16 +64,19 @@ export interface StepInspectorProps {
63
64
  actionLabels?: Partial<StepActionSettingsLabels>;
64
65
  /** The "When done, signal…" editor's wording. */
65
66
  signalLabels?: Partial<SignalsEditorLabels>;
67
+ /** A select field's choices editor wording. */
68
+ optionLabels?: Partial<FieldOptionsEditorLabels>;
66
69
  testId?: string;
67
70
  }
68
- export declare function StepInspector({ workflow, stepId, onChange, onSelect, workflows, people, tags, documents, labels, actionLabels, signalLabels, testId, }: StepInspectorProps): import("react").JSX.Element;
71
+ export declare function StepInspector({ workflow, stepId, onChange, onSelect, workflows, people, tags, documents, labels, actionLabels, signalLabels, optionLabels, testId, }: StepInspectorProps): import("react").JSX.Element;
69
72
  /** The fields editor: a form's fields, a review's fields. */
70
- export declare function FormFields({ fields, taken, onChange, l, hint, testId, }: {
73
+ export declare function FormFields({ fields, taken, onChange, l, optionLabels, hint, testId, }: {
71
74
  fields: WorkflowField[];
72
75
  /** Codes used by other steps' fields: a field's code never collides with them. */
73
76
  taken: string[];
74
77
  onChange: (fields: WorkflowField[]) => void;
75
78
  l: Pick<StepInspectorLabels, 'fields' | 'fieldLabel' | 'fieldType' | 'required' | 'addField'>;
79
+ optionLabels?: FieldOptionsEditorLabels;
76
80
  hint?: string;
77
81
  testId: string;
78
82
  }): import("react").JSX.Element;