@arbidocs/blocks 0.4.41 → 0.4.42

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 (41) hide show
  1. package/dist/agents/index.cjs +220 -220
  2. package/dist/agents/index.js +1 -1
  3. package/dist/agents/tasks/TaskStartDialog.d.ts +1 -1
  4. package/dist/agents/tasks/testGrid.d.ts +1 -0
  5. package/dist/{chunk-PH7YTYYH.js → chunk-2MJWWPHY.js} +13 -2
  6. package/dist/chunk-2MJWWPHY.js.map +1 -0
  7. package/dist/{chunk-JH25QIZW.js → chunk-7RZML5UY.js} +28 -28
  8. package/dist/chunk-7RZML5UY.js.map +1 -0
  9. package/dist/{chunk-PG2RWOGF.js → chunk-BON2MHPG.js} +17 -8
  10. package/dist/chunk-BON2MHPG.js.map +1 -0
  11. package/dist/{chunk-DIOTMJTC.cjs → chunk-GDEHQSFX.cjs} +17 -8
  12. package/dist/chunk-GDEHQSFX.cjs.map +1 -0
  13. package/dist/{chunk-2EAE5JP6.cjs → chunk-PF3ZLM3E.cjs} +3 -3
  14. package/dist/{chunk-2EAE5JP6.cjs.map → chunk-PF3ZLM3E.cjs.map} +1 -1
  15. package/dist/{chunk-LPXAWW62.cjs → chunk-QI6AIHWP.cjs} +13 -2
  16. package/dist/chunk-QI6AIHWP.cjs.map +1 -0
  17. package/dist/{chunk-WYVCXY7R.js → chunk-WI3YE5GG.js} +3 -3
  18. package/dist/{chunk-WYVCXY7R.js.map → chunk-WI3YE5GG.js.map} +1 -1
  19. package/dist/{chunk-NUF2WGGF.cjs → chunk-ZAGRDGYB.cjs} +27 -27
  20. package/dist/chunk-ZAGRDGYB.cjs.map +1 -0
  21. package/dist/connect/docx.cjs +4 -4
  22. package/dist/connect/docx.js +1 -1
  23. package/dist/docx/index.cjs +14 -14
  24. package/dist/docx/index.js +2 -2
  25. package/dist/index.cjs +416 -416
  26. package/dist/index.js +5 -5
  27. package/dist/retrieval/SearchPage.d.ts +4 -2
  28. package/dist/retrieval/index.cjs +36 -36
  29. package/dist/retrieval/index.js +1 -1
  30. package/dist/settings/index.cjs +1 -1
  31. package/dist/settings/index.js +1 -1
  32. package/dist/shell/index.cjs +45 -45
  33. package/dist/shell/index.js +1 -1
  34. package/package.json +4 -4
  35. package/src/docx/styles.css +5 -10
  36. package/dist/chunk-DIOTMJTC.cjs.map +0 -1
  37. package/dist/chunk-JH25QIZW.js.map +0 -1
  38. package/dist/chunk-LPXAWW62.cjs.map +0 -1
  39. package/dist/chunk-NUF2WGGF.cjs.map +0 -1
  40. package/dist/chunk-PG2RWOGF.js.map +0 -1
  41. package/dist/chunk-PH7YTYYH.js.map +0 -1
@@ -11,6 +11,7 @@ var chunk2EI7NCUA_cjs = require('./chunk-2EI7NCUA.cjs');
11
11
  var chunkOB5F4577_cjs = require('./chunk-OB5F4577.cjs');
12
12
  var chunk7RGLTF76_cjs = require('./chunk-7RGLTF76.cjs');
13
13
  var chunkV3L5DONY_cjs = require('./chunk-V3L5DONY.cjs');
14
+ var chunkFX3K6LNZ_cjs = require('./chunk-FX3K6LNZ.cjs');
14
15
  var chunkC54XEN5T_cjs = require('./chunk-C54XEN5T.cjs');
15
16
  var chunkKDG6FER6_cjs = require('./chunk-KDG6FER6.cjs');
16
17
  var chunk2ZTONLT5_cjs = require('./chunk-2ZTONLT5.cjs');
@@ -5147,6 +5148,7 @@ function ConversationListView(p) {
5147
5148
  const [query, setQuery] = react.useState("");
5148
5149
  const [selected, setSelected] = react.useState(/* @__PURE__ */ new Set());
5149
5150
  const q = `${query} ${p.filterText ?? ""}`.trim().toLowerCase();
5151
+ const isPhone = chunkFX3K6LNZ_cjs.useIsPhone();
5150
5152
  const rows = react.useMemo(
5151
5153
  () => filterConversationRows(p.conversations, q, p.labelText, p.doneFilter, p.visibilityFilters),
5152
5154
  [p.conversations, q, p.labelText, p.doneFilter, p.visibilityFilters]
@@ -5200,6 +5202,7 @@ function ConversationListView(p) {
5200
5202
  colId: liveProps.current.renderBy ? "by" : "owner",
5201
5203
  headerName: liveProps.current.renderBy ? "Last message by" : "Owner",
5202
5204
  width: 160,
5205
+ hide: isPhone,
5203
5206
  cellRenderer: ({ data }) => data && (liveProps.current.renderBy || liveProps.current.renderOwner)?.(data)
5204
5207
  }
5205
5208
  ] : [],
@@ -5207,6 +5210,7 @@ function ConversationListView(p) {
5207
5210
  colId: "status",
5208
5211
  headerName: "Status",
5209
5212
  width: 150,
5213
+ hide: isPhone,
5210
5214
  valueGetter: ({ data }) => data?.status,
5211
5215
  cellRenderer: ({ data }) => data && (liveProps.current.renderStatus ? liveProps.current.renderStatus(data) : /* @__PURE__ */ jsxRuntime.jsx(TaskStatusPill, { id: data.external_id, status: data.status }))
5212
5216
  },
@@ -5215,6 +5219,7 @@ function ConversationListView(p) {
5215
5219
  colId: "messages",
5216
5220
  headerName: "Messages",
5217
5221
  width: 110,
5222
+ hide: isPhone,
5218
5223
  valueFormatter: ({ value }) => value == null ? "\u2014" : String(value),
5219
5224
  cellClass: "text-muted-foreground"
5220
5225
  },
@@ -5223,6 +5228,7 @@ function ConversationListView(p) {
5223
5228
  colId: "visibility",
5224
5229
  headerName: "Visibility",
5225
5230
  width: 170,
5231
+ hide: isPhone,
5226
5232
  cellClass: "cell-hcenter",
5227
5233
  sortable: false,
5228
5234
  resizable: false,
@@ -5243,6 +5249,7 @@ function ConversationListView(p) {
5243
5249
  initialSort: "desc",
5244
5250
  headerName: "Activity",
5245
5251
  width: 160,
5252
+ hide: isPhone,
5246
5253
  valueGetter: ({ data }) => data?.last_message_updated_at || data?.updated_at || data?.created_at || "",
5247
5254
  valueFormatter: ({ value }) => value ? liveProps.current.formatDate(value) : "\u2014",
5248
5255
  cellClass: "text-muted-foreground"
@@ -5254,7 +5261,8 @@ function ConversationListView(p) {
5254
5261
  Boolean(p.renderOwner),
5255
5262
  Boolean(p.renderBy),
5256
5263
  Boolean(p.renderStatus),
5257
- Boolean(p.onToggleShared)
5264
+ Boolean(p.onToggleShared),
5265
+ isPhone
5258
5266
  ]
5259
5267
  );
5260
5268
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-0 flex-1 flex-col", "data-testid": "conversation-list-view", children: [
@@ -5310,7 +5318,7 @@ function ConversationListView(p) {
5310
5318
  loadingMessage: "Loading threads\u2026",
5311
5319
  emptyState: {
5312
5320
  title: q ? "No threads match" : "No conversations yet",
5313
- message: "Start a conversation with people, ARBI, or both."
5321
+ message: "Use New Task to ask ARBI, bring in people, or both."
5314
5322
  },
5315
5323
  selection: p.selectionActions ? {
5316
5324
  mode: "multiple",
@@ -5364,6 +5372,7 @@ function TaskStartDialog({
5364
5372
  textareaRef
5365
5373
  });
5366
5374
  const todo = choice === "todo";
5375
+ const promptHint = todo ? "What needs doing?" : "What should ARBI do?";
5367
5376
  const workflowId = choice === "prompt" || todo ? null : choice;
5368
5377
  const assigneeId = todo ? assignee : "";
5369
5378
  const sharedNow = shared || assigneeId !== "";
@@ -5404,7 +5413,7 @@ function TaskStartDialog({
5404
5413
  ),
5405
5414
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-0 flex-1 overflow-y-auto px-3 py-3", children: [
5406
5415
  !workflowId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5407
- /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "sr-only", htmlFor: "task-start-prompt", children: todo ? "What needs doing?" : "What should ARBI do?" }),
5416
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "sr-only", htmlFor: "task-start-prompt", children: promptHint }),
5408
5417
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
5409
5418
  /* @__PURE__ */ jsxRuntime.jsx(
5410
5419
  ui.Textarea,
@@ -5418,7 +5427,7 @@ function TaskStartDialog({
5418
5427
  ...mention.isOpen ? mention.nav.comboboxProps : {},
5419
5428
  ...mention.textareaProps,
5420
5429
  disabled: isPending,
5421
- placeholder: "What needs doing?",
5430
+ placeholder: promptHint,
5422
5431
  className: "min-h-44 resize-y shadow-none"
5423
5432
  }
5424
5433
  ),
@@ -5456,7 +5465,7 @@ function TaskStartDialog({
5456
5465
  ),
5457
5466
  /* @__PURE__ */ jsxRuntime.jsxs(ui.SelectContent, { children: [
5458
5467
  /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "prompt", children: "With ARBI" }),
5459
- /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "todo", children: "People only" }),
5468
+ /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "todo", children: "Send to a person" }),
5460
5469
  workflows.map((workflow) => /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: workflow.external_id, children: workflow.name }, workflow.external_id))
5461
5470
  ] })
5462
5471
  ]
@@ -5526,7 +5535,7 @@ function TaskStartDialog({
5526
5535
  } catch {
5527
5536
  }
5528
5537
  },
5529
- children: isPending ? "Starting\u2026" : "Start now"
5538
+ children: isPending ? "Starting\u2026" : todo ? assigneeId ? "Send for review" : "Create task" : "Start now"
5530
5539
  }
5531
5540
  )
5532
5541
  ] })
@@ -10869,5 +10878,5 @@ exports.workflowTriggerType = workflowTriggerType;
10869
10878
  exports.workflowWhen = workflowWhen;
10870
10879
  exports.workflowsAccepting = workflowsAccepting;
10871
10880
  exports.workflowsForHost = workflowsForHost;
10872
- //# sourceMappingURL=chunk-DIOTMJTC.cjs.map
10873
- //# sourceMappingURL=chunk-DIOTMJTC.cjs.map
10881
+ //# sourceMappingURL=chunk-GDEHQSFX.cjs.map
10882
+ //# sourceMappingURL=chunk-GDEHQSFX.cjs.map