@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
@@ -34,15 +34,23 @@ export interface LabelPickerListProps {
34
34
  onToggle: (id: string) => void;
35
35
  /** Create a label named `name`; omit to hide "Create ..." (the picker only toggles). */
36
36
  onCreate?: (name: string) => void;
37
+ /**
38
+ * Further ways to create from the typed name, each its own row under "Create ..." (e.g. one per
39
+ * kind of tag). Enter still runs `onCreate`.
40
+ */
41
+ moreCreates?: {
42
+ label: (name: string) => string;
43
+ onCreate: (name: string) => void;
44
+ }[];
37
45
  /** Opens the label editor; omit to hide the per-option edit button. */
38
46
  onEditLabels?: () => void;
39
47
  labels?: Partial<LabelMultiSelectLabels>;
40
48
  }
41
49
  /**
42
- * Searchable list of labels with check boxes: type to filter, Enter (or the "Create ..." row)
43
- * creates a label that does not exist yet. Used by the grid cell and the document form field.
50
+ * Searchable list of labels with check boxes: type to filter, Enter (or the "Create ..." row, shown
51
+ * whenever the typed name is not a label yet, below any labels that partly match it) creates it. Used by the grid cell and the document form field.
44
52
  */
45
- export declare function LabelPickerList({ options, appliedIds, mixedIds, onToggle, onCreate, onEditLabels, labels, }: LabelPickerListProps): import("react").JSX.Element;
53
+ export declare function LabelPickerList({ options, appliedIds, mixedIds, onToggle, onCreate, moreCreates, onEditLabels, labels, }: LabelPickerListProps): import("react").JSX.Element;
46
54
  /**
47
55
  * Labels column cell: applied labels as bordered chips; click (or Enter) opens a popover to
48
56
  * toggle labels or type a new name and press Enter to create it. Empty cells show a pencil on
@@ -6,10 +6,11 @@ var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
6
6
  var chunk4DVEGXZQ_cjs = require('../chunk-4DVEGXZQ.cjs');
7
7
  var chunkZPERNIMP_cjs = require('../chunk-ZPERNIMP.cjs');
8
8
  var chunk3AFWGEDJ_cjs = require('../chunk-3AFWGEDJ.cjs');
9
- var chunkVFUWWH52_cjs = require('../chunk-VFUWWH52.cjs');
9
+ var chunkDVUZTGVL_cjs = require('../chunk-DVUZTGVL.cjs');
10
10
  var chunkDETZZBG2_cjs = require('../chunk-DETZZBG2.cjs');
11
+ var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
11
12
  var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
12
- var chunk2CFW2ELM_cjs = require('../chunk-2CFW2ELM.cjs');
13
+ var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
13
14
  var chunkOB5F4577_cjs = require('../chunk-OB5F4577.cjs');
14
15
  require('../chunk-PPCATBOY.cjs');
15
16
  require('../chunk-C54XEN5T.cjs');
@@ -53,7 +54,7 @@ function StatusPill({
53
54
  const hasLabel = label !== void 0 && label !== null && label !== "";
54
55
  const classes = ui.cn(
55
56
  pill({ shape: hasLabel ? "label" : "icon", interactive: !!onClick }),
56
- chunkVFUWWH52_cjs.TONE_SURFACE[tone],
57
+ chunk32HW2Q33_cjs.TONE_SURFACE[tone],
57
58
  progress && "h-auto min-h-6 flex-col gap-0 px-2 py-1",
58
59
  className
59
60
  );
@@ -142,7 +143,7 @@ var DEFAULT_FILES_SEARCH_LABELS = {
142
143
  };
143
144
  function FilesSearchInput(props) {
144
145
  return /* @__PURE__ */ jsxRuntime.jsx(
145
- chunk2CFW2ELM_cjs.FilterInput,
146
+ chunk2EI7NCUA_cjs.FilterInput,
146
147
  {
147
148
  value: props.value,
148
149
  onChange: props.onChange,
@@ -3838,6 +3839,7 @@ function LabelPickerList({
3838
3839
  mixedIds,
3839
3840
  onToggle,
3840
3841
  onCreate,
3842
+ moreCreates,
3841
3843
  onEditLabels,
3842
3844
  labels
3843
3845
  }) {
@@ -3865,16 +3867,7 @@ function LabelPickerList({
3865
3867
  }
3866
3868
  ),
3867
3869
  /* @__PURE__ */ jsxRuntime.jsxs(ui.CommandList, { children: [
3868
- /* @__PURE__ */ jsxRuntime.jsx(ui.CommandEmpty, { children: trimmed && onCreate ? /* @__PURE__ */ jsxRuntime.jsx(
3869
- "button",
3870
- {
3871
- type: "button",
3872
- onClick: create,
3873
- onPointerDown: (e) => e.preventDefault(),
3874
- className: "w-full cursor-pointer rounded px-2 py-1.5 text-left text-sm text-primary hover:bg-accent pointer-coarse:min-h-11",
3875
- children: l.create(trimmed)
3876
- }
3877
- ) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: l.noLabels }) }),
3870
+ !(trimmed && onCreate) && /* @__PURE__ */ jsxRuntime.jsx(ui.CommandEmpty, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: l.noLabels }) }),
3878
3871
  /* @__PURE__ */ jsxRuntime.jsx(ui.CommandGroup, { children: options.map((o) => {
3879
3872
  const isApplied = appliedIds.has(o.id);
3880
3873
  const isMixed = mixedIds?.has(o.id);
@@ -3922,7 +3915,21 @@ function LabelPickerList({
3922
3915
  o.id
3923
3916
  );
3924
3917
  }) })
3925
- ] })
3918
+ ] }),
3919
+ trimmed && onCreate && !matchesExisting && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t border-border p-1", "data-slot": "label-picker-create", children: [{ label: l.create, onCreate }, ...moreCreates ?? []].map((c, i) => /* @__PURE__ */ jsxRuntime.jsx(
3920
+ "button",
3921
+ {
3922
+ type: "button",
3923
+ onClick: () => {
3924
+ c.onCreate(trimmed);
3925
+ setSearch("");
3926
+ },
3927
+ onPointerDown: (e) => e.preventDefault(),
3928
+ className: "w-full cursor-pointer rounded px-2 py-1.5 text-left text-sm text-primary hover:bg-accent pointer-coarse:min-h-11",
3929
+ children: c.label(trimmed)
3930
+ },
3931
+ i
3932
+ )) })
3926
3933
  ] });
3927
3934
  }
3928
3935
  var LabelMultiSelectView = react.memo(function LabelMultiSelectView2({
@@ -4983,7 +4990,7 @@ function BulkTagEditorDialog({
4983
4990
  }
4984
4991
  ),
4985
4992
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-yellow-text", children: labels.selectForGeneration }),
4986
- generation.selectedCount > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkVFUWWH52_cjs.ToneBadge, { tone: "warning", children: labels.selected(generation.selectedCount) })
4993
+ generation.selectedCount > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkDVUZTGVL_cjs.ToneBadge, { tone: "warning", children: labels.selected(generation.selectedCount) })
4987
4994
  ] }),
4988
4995
  /* @__PURE__ */ jsxRuntime.jsxs(
4989
4996
  ui.Button,