@arbidocs/blocks 0.4.141 → 0.4.142

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 (55) hide show
  1. package/dist/agents/index.cjs +261 -260
  2. package/dist/agents/index.js +4 -3
  3. package/dist/chunk-AHDJXIUB.cjs +25 -0
  4. package/dist/chunk-AHDJXIUB.cjs.map +1 -0
  5. package/dist/{chunk-2UUNSHDI.cjs → chunk-DPGFEMVT.cjs} +9 -24
  6. package/dist/chunk-DPGFEMVT.cjs.map +1 -0
  7. package/dist/{chunk-3ZYOASAX.js → chunk-FXG7TFAG.js} +3 -3
  8. package/dist/{chunk-3ZYOASAX.js.map → chunk-FXG7TFAG.js.map} +1 -1
  9. package/dist/{chunk-OAQEUTNJ.cjs → chunk-GBS6QVGS.cjs} +5 -5
  10. package/dist/{chunk-OAQEUTNJ.cjs.map → chunk-GBS6QVGS.cjs.map} +1 -1
  11. package/dist/{chunk-CQ4MFKFC.cjs → chunk-HIJUXAWS.cjs} +31 -30
  12. package/dist/chunk-HIJUXAWS.cjs.map +1 -0
  13. package/dist/{chunk-O6W6RW3B.js → chunk-I7WG3JRD.js} +206 -53
  14. package/dist/chunk-I7WG3JRD.js.map +1 -0
  15. package/dist/{chunk-YWY2KIX2.js → chunk-N5X37J3D.js} +5 -4
  16. package/dist/chunk-N5X37J3D.js.map +1 -0
  17. package/dist/{chunk-YFF3GTJQ.js → chunk-PROK33G6.js} +6 -20
  18. package/dist/chunk-PROK33G6.js.map +1 -0
  19. package/dist/chunk-RLWIUUQ5.js +23 -0
  20. package/dist/chunk-RLWIUUQ5.js.map +1 -0
  21. package/dist/{chunk-GFRQG36Y.cjs → chunk-YFY3TQ6Q.cjs} +208 -52
  22. package/dist/chunk-YFY3TQ6Q.cjs.map +1 -0
  23. package/dist/connect/index.cjs +56 -55
  24. package/dist/connect/index.cjs.map +1 -1
  25. package/dist/connect/index.js +5 -4
  26. package/dist/connect/index.js.map +1 -1
  27. package/dist/facts/index.cjs +1 -1
  28. package/dist/facts/index.js +1 -1
  29. package/dist/index.cjs +358 -345
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.js +7 -6
  32. package/dist/index.js.map +1 -1
  33. package/dist/lib/sidebar-mode.d.ts +1 -3
  34. package/dist/lib/use-close-on-escape.d.ts +6 -0
  35. package/dist/settings/index.cjs +1 -1
  36. package/dist/settings/index.js +1 -1
  37. package/dist/shell/ShellSidebar.d.ts +37 -0
  38. package/dist/shell/Sidebar.d.ts +6 -6
  39. package/dist/shell/index.cjs +61 -48
  40. package/dist/shell/index.d.ts +4 -1
  41. package/dist/shell/index.js +3 -2
  42. package/dist/shell/types.d.ts +18 -0
  43. package/dist/shell/use-sidebar-controller.d.ts +59 -0
  44. package/dist/workflow-canvas/index.cjs +17 -16
  45. package/dist/workflow-canvas/index.cjs.map +1 -1
  46. package/dist/workflow-canvas/index.js +4 -3
  47. package/dist/workflow-canvas/index.js.map +1 -1
  48. package/node_modules/@arbidocs/coedit/package.json +1 -1
  49. package/package.json +4 -4
  50. package/dist/chunk-2UUNSHDI.cjs.map +0 -1
  51. package/dist/chunk-CQ4MFKFC.cjs.map +0 -1
  52. package/dist/chunk-GFRQG36Y.cjs.map +0 -1
  53. package/dist/chunk-O6W6RW3B.js.map +0 -1
  54. package/dist/chunk-YFF3GTJQ.js.map +0 -1
  55. package/dist/chunk-YWY2KIX2.js.map +0 -1
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  import { FoldSection, QuickActionDialogHeader, AddFilesFirst, StartTiles, ScopePicker } from './chunk-3RJN2VTL.js';
3
+ import { useControllableState } from './chunk-RLWIUUQ5.js';
3
4
  import { DocumentPicker, TriStateFilterMenu } from './chunk-CKCBBYTA.js';
4
5
  import { EmptyState } from './chunk-P6GHJSLR.js';
5
6
  import { UploadDropzone } from './chunk-EVUEIBNU.js';
@@ -7,13 +8,13 @@ import { ActionLink } from './chunk-444XKG46.js';
7
8
  import { SelectionBar, SelectionBarAction } from './chunk-NUNKSZKU.js';
8
9
  import { FilterInput } from './chunk-YU2KUMGE.js';
9
10
  import { GridView } from './chunk-N5YEF3LC.js';
11
+ import { TabHeader } from './chunk-4WWM3GQ5.js';
10
12
  import { defaultInputs, validateInputs, workflowSteps, canAssign, fieldToFrontmatter, workflowFromFrontmatter, nextAction, validateStep, assigneeName, runFieldsOf, failedUpstream, stepPhase, useElementSize, sendBackTargets, formatDate, shownValue, stepKindOf, stepLevels, waitingDocuments, stepDependencies, reviewInstructions, splitDocRef, isPersonStep, mergeSkillWorkflows, eventWaitingDocuments, waitingForDocumentsText, StepBadgeMark, StepChip, buildLaunch, STEP_KIND_ICONS, DEFAULT_STEP_KIND_LABELS, composeStepPrompt, isRunFinished, runFields, isWorkflowScope } from './chunk-Y5KTM3V5.js';
11
13
  import { TONE_DOT, TONE_SURFACE, TONE_SOLID_BORDER, TONE_BORDER } from './chunk-AUS3KBHJ.js';
12
- import { TabHeader } from './chunk-4WWM3GQ5.js';
13
14
  import { testIdOr, prefixedTestId } from './chunk-7F6CBP3Z.js';
14
15
  import { useBlocksEnvironment } from './chunk-YNIBUKV5.js';
15
16
  import { initials } from './chunk-OXF2IFXG.js';
16
- import { useState, useRef, useCallback, useId, useMemo, useEffect } from 'react';
17
+ import { useState, useId, useMemo, useEffect, useRef, useCallback } from 'react';
17
18
  import { Globe, Terminal, Telescope, ListChecks, FileText, ImageIcon, Brain, Wand2, Loader2, Play, FolderPlus, X, UserRound, CornerUpLeft, ShieldCheck, MessageSquare, Check, Hourglass, Clock, PenLine, ExternalLink, Mail, Table2, CheckCircle2, ArrowLeft, ArrowRight, RotateCw, GitBranch, AlertTriangle, Bot, Sparkles, Copy, Pencil, Lock, Download, Trash2, MoreHorizontal, History, Workflow, Eye, LayoutGrid, List, ChevronLeft, ChevronRight, Link2, Bell, MousePointerClick, ArrowUpRight, BellRing, Flag, RotateCcw, Disc, Phone, UserRoundCog, MessageSquareReply, Square, KeyRound } from 'lucide-react';
18
19
  import { cn, Label, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Dialog, DialogContent, Button, getEntityColor, Popover, PopoverTrigger, PopoverContent, Textarea, Card, DialogHeader, DialogTitle, DialogDescription, Input, Tooltip, TooltipTrigger, TooltipContent, UserEntity, getEntityColorStyles, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, badgeVariants, VisibilityToggle, Switch } from '@arbidocs/react/ui';
19
20
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -328,21 +329,6 @@ function SchemaForm({
328
329
  )
329
330
  ] });
330
331
  }
331
- function useControllableState(value, defaultValue, onChange) {
332
- const [inner, setInner] = useState(defaultValue);
333
- const isControlled = value !== void 0;
334
- const current = isControlled ? value : inner;
335
- const onChangeRef = useRef(onChange);
336
- onChangeRef.current = onChange;
337
- const set = useCallback(
338
- (next) => {
339
- if (!isControlled) setInner(next);
340
- onChangeRef.current?.(next);
341
- },
342
- [isControlled]
343
- );
344
- return [current, set];
345
- }
346
332
  var DEFAULT_AGENT_SELECT_LABELS = {
347
333
  label: "Run as",
348
334
  myAssistant: "My assistant"
@@ -5482,6 +5468,6 @@ function TaskRunsDialog({
5482
5468
  ) });
5483
5469
  }
5484
5470
 
5485
- export { ActionStepBody, AgentAvatarField, AgentConnectInstructions, AgentCreator, AgentSelect, AgentTypeSelector, ApprovalEvidence, AssigneeLine, CapabilityGrid, CapabilityTile, DEFAULT_AGENT_AVATAR_FIELD_LABELS, DEFAULT_AGENT_CAPABILITIES, DEFAULT_AGENT_CREATOR_LABELS, DEFAULT_AGENT_SELECT_LABELS, DEFAULT_AGENT_TEMPLATES, DEFAULT_AGENT_TYPES, DEFAULT_AGENT_TYPE_SELECTOR_LABELS, DEFAULT_SCHEMA_FORM_LABELS, DEFAULT_SKILL_EDIT_FORM_LABELS, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, DEFAULT_STEP_BAR_LABELS, DEFAULT_TASK_ACTIVITY_LABELS, DEFAULT_TASK_RUNS_DIALOG_LABELS, DEFAULT_TASK_TRIGGER_CHIP_LABELS, DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, DEFAULT_WORKFLOW_DOCUMENTS_FIELD_LABELS, DEFAULT_WORKFLOW_LIST_LABELS, DEFAULT_WORKFLOW_RUNNER_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, PersonPill, SKILL_FIELD_TYPE_LABELS, SKILL_MAIN_FILENAME, SKILL_SOURCE_LABELS, SKILL_TYPES, SKILL_TYPE_LABELS, STEP_LABEL, STEP_LABEL_CURRENT, STEP_LABEL_MAX, SchemaForm, SendBackControl, SkillActionButton, SkillDetail, SkillDetailSection, SkillEditForm, SkillFilterChips, SkillGenerateForm, SkillGlobalBadge, SkillLibraryDetail, SkillTile, SkillTypeBadge, SkillViewToggle, StepBarFrame, TaskActivityDialog, TaskActivityTimeline, TaskRunsDialog, TaskTriggerChip, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowRunner, WorkflowStepBar, WorkflowsTable, activateOnKey, activeStepId, agentConfigSectionToValues, agentCreatorToConfigSection, buildLibrarySkills, buildWorkflowScopeSource, buildZipSkillImport, composePersona, createWorkflowColumns, deriveAgentName, documentScopeLabels, filterLibrarySkills, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, hasTrigger, importMarkdownSkill, importSkillFile, importSkillFromUrl, isIncompleteSignal, isMainSkillFile, isSkillRow, isValidAgentName, layoutFromPlanSteps, matchWorkflowScope, parseSkillFrontmatter, readSkillArchive, serializeSkill, skillSlug, stepWindow, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskActivityHeadline, toPlanAssignee, toPlanDocumentRef, toPlanSteps, useControllableState, useWorkflowView, workflowFromSkillMarkdown, workflowStatus, workflowToSkillMarkdown, workflowTriggerType };
5486
- //# sourceMappingURL=chunk-YFF3GTJQ.js.map
5487
- //# sourceMappingURL=chunk-YFF3GTJQ.js.map
5471
+ export { ActionStepBody, AgentAvatarField, AgentConnectInstructions, AgentCreator, AgentSelect, AgentTypeSelector, ApprovalEvidence, AssigneeLine, CapabilityGrid, CapabilityTile, DEFAULT_AGENT_AVATAR_FIELD_LABELS, DEFAULT_AGENT_CAPABILITIES, DEFAULT_AGENT_CREATOR_LABELS, DEFAULT_AGENT_SELECT_LABELS, DEFAULT_AGENT_TEMPLATES, DEFAULT_AGENT_TYPES, DEFAULT_AGENT_TYPE_SELECTOR_LABELS, DEFAULT_SCHEMA_FORM_LABELS, DEFAULT_SKILL_EDIT_FORM_LABELS, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, DEFAULT_STEP_BAR_LABELS, DEFAULT_TASK_ACTIVITY_LABELS, DEFAULT_TASK_RUNS_DIALOG_LABELS, DEFAULT_TASK_TRIGGER_CHIP_LABELS, DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, DEFAULT_WORKFLOW_DOCUMENTS_FIELD_LABELS, DEFAULT_WORKFLOW_LIST_LABELS, DEFAULT_WORKFLOW_RUNNER_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, PersonPill, SKILL_FIELD_TYPE_LABELS, SKILL_MAIN_FILENAME, SKILL_SOURCE_LABELS, SKILL_TYPES, SKILL_TYPE_LABELS, STEP_LABEL, STEP_LABEL_CURRENT, STEP_LABEL_MAX, SchemaForm, SendBackControl, SkillActionButton, SkillDetail, SkillDetailSection, SkillEditForm, SkillFilterChips, SkillGenerateForm, SkillGlobalBadge, SkillLibraryDetail, SkillTile, SkillTypeBadge, SkillViewToggle, StepBarFrame, TaskActivityDialog, TaskActivityTimeline, TaskRunsDialog, TaskTriggerChip, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowRunner, WorkflowStepBar, WorkflowsTable, activateOnKey, activeStepId, agentConfigSectionToValues, agentCreatorToConfigSection, buildLibrarySkills, buildWorkflowScopeSource, buildZipSkillImport, composePersona, createWorkflowColumns, deriveAgentName, documentScopeLabels, filterLibrarySkills, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, hasTrigger, importMarkdownSkill, importSkillFile, importSkillFromUrl, isIncompleteSignal, isMainSkillFile, isSkillRow, isValidAgentName, layoutFromPlanSteps, matchWorkflowScope, parseSkillFrontmatter, readSkillArchive, serializeSkill, skillSlug, stepWindow, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskActivityHeadline, toPlanAssignee, toPlanDocumentRef, toPlanSteps, useWorkflowView, workflowFromSkillMarkdown, workflowStatus, workflowToSkillMarkdown, workflowTriggerType };
5472
+ //# sourceMappingURL=chunk-PROK33G6.js.map
5473
+ //# sourceMappingURL=chunk-PROK33G6.js.map