@arbidocs/blocks 0.4.86 → 0.4.88

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 (99) hide show
  1. package/dist/activity/NotificationRelevanceControls.d.ts +47 -0
  2. package/dist/activity/WorkspaceActivityList.d.ts +34 -0
  3. package/dist/activity/index.d.ts +3 -0
  4. package/dist/activity/workspace-activity.d.ts +46 -0
  5. package/dist/agents/index.cjs +290 -286
  6. package/dist/agents/index.js +5 -5
  7. package/dist/agents/tasks/TaskActivityTimeline.d.ts +5 -0
  8. package/dist/agents/tasks/index.d.ts +1 -1
  9. package/dist/{chunk-2EI7NCUA.cjs → chunk-2CFW2ELM.cjs} +8 -2
  10. package/dist/chunk-2CFW2ELM.cjs.map +1 -0
  11. package/dist/{chunk-7YUFMNFW.cjs → chunk-2ZDFVRGV.cjs} +5 -13
  12. package/dist/chunk-2ZDFVRGV.cjs.map +1 -0
  13. package/dist/{chunk-RZUMQM7W.cjs → chunk-5XZU64E2.cjs} +190 -2
  14. package/dist/chunk-5XZU64E2.cjs.map +1 -0
  15. package/dist/{chunk-R26OHONI.js → chunk-6S5FLMWG.js} +83 -72
  16. package/dist/chunk-6S5FLMWG.js.map +1 -0
  17. package/dist/chunk-6XS5IJ5R.cjs +43 -0
  18. package/dist/chunk-6XS5IJ5R.cjs.map +1 -0
  19. package/dist/chunk-BX62HJZU.js +41 -0
  20. package/dist/chunk-BX62HJZU.js.map +1 -0
  21. package/dist/{chunk-IHYVK6F7.cjs → chunk-FNEL2BYV.cjs} +49 -235
  22. package/dist/chunk-FNEL2BYV.cjs.map +1 -0
  23. package/dist/{chunk-AFSOUS5X.cjs → chunk-N26CXGXC.cjs} +83 -72
  24. package/dist/chunk-N26CXGXC.cjs.map +1 -0
  25. package/dist/{chunk-X23U6QEJ.js → chunk-NXWKMKZY.js} +581 -217
  26. package/dist/chunk-NXWKMKZY.js.map +1 -0
  27. package/dist/{chunk-WRSBM6QN.cjs → chunk-UCAYNE44.cjs} +587 -214
  28. package/dist/chunk-UCAYNE44.cjs.map +1 -0
  29. package/dist/{chunk-A24C6BNA.js → chunk-UDLMLU6T.js} +3 -3
  30. package/dist/{chunk-A24C6BNA.js.map → chunk-UDLMLU6T.js.map} +1 -1
  31. package/dist/{chunk-S2NFD4QV.js → chunk-UZV27QLC.js} +8 -192
  32. package/dist/chunk-UZV27QLC.js.map +1 -0
  33. package/dist/{chunk-OPA2Y6YZ.js → chunk-W2R7YVFM.js} +5 -13
  34. package/dist/chunk-W2R7YVFM.js.map +1 -0
  35. package/dist/{chunk-TZR36PPP.cjs → chunk-YFPIJUV3.cjs} +5 -5
  36. package/dist/{chunk-TZR36PPP.cjs.map → chunk-YFPIJUV3.cjs.map} +1 -1
  37. package/dist/{chunk-KHY4PYU7.js → chunk-YX466FWL.js} +189 -4
  38. package/dist/chunk-YX466FWL.js.map +1 -0
  39. package/dist/{chunk-YU2KUMGE.js → chunk-ZX2VPMBJ.js} +8 -2
  40. package/dist/chunk-ZX2VPMBJ.js.map +1 -0
  41. package/dist/connect/docx.cjs +6 -6
  42. package/dist/connect/docx.js +4 -4
  43. package/dist/connect/index.cjs +118 -26
  44. package/dist/connect/index.cjs.map +1 -1
  45. package/dist/connect/index.d.ts +2 -0
  46. package/dist/connect/index.js +98 -9
  47. package/dist/connect/index.js.map +1 -1
  48. package/dist/connection/ConnectedNotificationRelevance.d.ts +16 -0
  49. package/dist/connection/ConnectedWorkspaceActivity.d.ts +11 -0
  50. package/dist/docx/NativeDocxEditor.d.ts +4 -2
  51. package/dist/docx/StreamedWordArtifact.d.ts +9 -6
  52. package/dist/docx/index.cjs +15 -15
  53. package/dist/docx/index.js +3 -3
  54. package/dist/facts/index.cjs +6 -6
  55. package/dist/facts/index.js +3 -3
  56. package/dist/files/index.cjs +3 -22
  57. package/dist/files/index.cjs.map +1 -1
  58. package/dist/files/index.js +3 -21
  59. package/dist/files/index.js.map +1 -1
  60. package/dist/files/views/TagFormParts.d.ts +0 -8
  61. package/dist/files/views/index.d.ts +1 -1
  62. package/dist/home/index.cjs +1 -1
  63. package/dist/home/index.js +1 -1
  64. package/dist/index.cjs +563 -431
  65. package/dist/index.cjs.map +1 -1
  66. package/dist/index.d.ts +1 -0
  67. package/dist/index.js +113 -22
  68. package/dist/index.js.map +1 -1
  69. package/dist/settings/index.cjs +3 -3
  70. package/dist/settings/index.js +1 -1
  71. package/dist/shell/FilterInput.d.ts +3 -1
  72. package/dist/shell/index.cjs +5 -5
  73. package/dist/shell/index.js +2 -2
  74. package/dist/studio/index.cjs +1 -1
  75. package/dist/studio/index.js +1 -1
  76. package/dist/tags/TagDetail.d.ts +14 -2
  77. package/dist/tags/TagTable.d.ts +20 -11
  78. package/dist/tags/TagsNav.d.ts +28 -4
  79. package/dist/tags/index.d.ts +1 -1
  80. package/dist/tags/tagTableModel.d.ts +10 -2
  81. package/dist/workflow-canvas/index.cjs +48 -48
  82. package/dist/workflow-canvas/index.js +5 -5
  83. package/package.json +4 -4
  84. package/dist/chunk-2EI7NCUA.cjs.map +0 -1
  85. package/dist/chunk-7YUFMNFW.cjs.map +0 -1
  86. package/dist/chunk-AFSOUS5X.cjs.map +0 -1
  87. package/dist/chunk-AINNADMT.cjs +0 -62
  88. package/dist/chunk-AINNADMT.cjs.map +0 -1
  89. package/dist/chunk-FT5FFXSJ.js +0 -60
  90. package/dist/chunk-FT5FFXSJ.js.map +0 -1
  91. package/dist/chunk-IHYVK6F7.cjs.map +0 -1
  92. package/dist/chunk-KHY4PYU7.js.map +0 -1
  93. package/dist/chunk-OPA2Y6YZ.js.map +0 -1
  94. package/dist/chunk-R26OHONI.js.map +0 -1
  95. package/dist/chunk-RZUMQM7W.cjs.map +0 -1
  96. package/dist/chunk-S2NFD4QV.js.map +0 -1
  97. package/dist/chunk-WRSBM6QN.cjs.map +0 -1
  98. package/dist/chunk-X23U6QEJ.js.map +0 -1
  99. package/dist/chunk-YU2KUMGE.js.map +0 -1
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Follow and mute controls. A workspace member is pushed only what concerns them; following a
3
+ * workspace or a thread opts in to everything from it, and muting a workspace silences it,
4
+ * mentions included. Presentational: the host owns the settings and the save.
5
+ */
6
+ /** `default` (what names or involves you), `following` (everything) or `muted` (nothing). */
7
+ export type NotificationLevel = 'default' | 'following' | 'muted';
8
+ export interface WorkspaceNotificationMenuLabels {
9
+ trigger: string;
10
+ heading: string;
11
+ default: string;
12
+ defaultHint: string;
13
+ following: string;
14
+ followingHint: string;
15
+ muted: string;
16
+ mutedHint: string;
17
+ activity: string;
18
+ }
19
+ export declare const DEFAULT_WORKSPACE_NOTIFICATION_MENU_LABELS: WorkspaceNotificationMenuLabels;
20
+ export interface WorkspaceNotificationMenuProps {
21
+ level: NotificationLevel;
22
+ onLevelChange: (level: NotificationLevel) => void;
23
+ disabled?: boolean;
24
+ /** Adds an item that opens the workspace's activity feed. */
25
+ onOpenActivity?: () => void;
26
+ labels?: Partial<WorkspaceNotificationMenuLabels>;
27
+ className?: string;
28
+ testId?: string;
29
+ }
30
+ /** A bell button whose menu sets how much of a workspace reaches the user. */
31
+ export declare function WorkspaceNotificationMenu({ level, onLevelChange, disabled, onOpenActivity, labels, className, testId, }: WorkspaceNotificationMenuProps): import("react").JSX.Element;
32
+ export interface ThreadFollowLabels {
33
+ follow: string;
34
+ unfollow: string;
35
+ }
36
+ export declare const DEFAULT_THREAD_FOLLOW_LABELS: ThreadFollowLabels;
37
+ export interface ThreadFollowProps {
38
+ following: boolean;
39
+ onFollowingChange: (following: boolean) => void;
40
+ disabled?: boolean;
41
+ labels?: Partial<ThreadFollowLabels>;
42
+ testId?: string;
43
+ }
44
+ /** "Follow thread" / "Unfollow thread" as an item of a thread's options menu. */
45
+ export declare function ThreadFollowMenuItem({ following, onFollowingChange, disabled, labels, testId, }: ThreadFollowProps): import("react").JSX.Element;
46
+ /** The same switch as a bell button, for a thread header without a menu. */
47
+ export declare function ThreadFollowButton({ following, onFollowingChange, disabled, labels, testId, }: ThreadFollowProps): import("react").JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { type WorkspaceActivityItem, type WorkspaceActivityTarget } from './workspace-activity';
2
+ export interface WorkspaceActivityListLabels {
3
+ empty: string;
4
+ loading: string;
5
+ error: string;
6
+ loadMore: string;
7
+ loadingMore: string;
8
+ retry: string;
9
+ /** Who did it when the entry names no one. */
10
+ system: string;
11
+ }
12
+ export declare const DEFAULT_WORKSPACE_ACTIVITY_LABELS: WorkspaceActivityListLabels;
13
+ export interface WorkspaceActivityListProps {
14
+ /** Entries, newest first (every page loaded so far). */
15
+ items: readonly WorkspaceActivityItem[];
16
+ isLoading?: boolean;
17
+ isError?: boolean;
18
+ /** Another page exists. */
19
+ hasMore?: boolean;
20
+ isLoadingMore?: boolean;
21
+ onLoadMore?: () => void;
22
+ onRetry?: () => void;
23
+ /** Open what an entry is about: its thread, document version or run. */
24
+ onOpen?: (target: WorkspaceActivityTarget, item: WorkspaceActivityItem) => void;
25
+ /** A person's or agent's display name by id. */
26
+ nameOf?: (id: string) => string | undefined;
27
+ /** "2 hours ago"; default the local date and time. */
28
+ formatTime?: (iso: string) => string;
29
+ labels?: Partial<WorkspaceActivityListLabels>;
30
+ className?: string;
31
+ testId?: string;
32
+ }
33
+ /** A workspace's activity, newest first, one line per entry; a line opens what it is about. */
34
+ export declare function WorkspaceActivityList({ items, isLoading, isError, hasMore, isLoadingMore, onLoadMore, onRetry, onOpen, nameOf, formatTime, labels, className, testId, }: WorkspaceActivityListProps): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { workspaceActivityHeadline, workspaceActivityTarget, type WorkspaceActivityItem, type WorkspaceActivitySource, type WorkspaceActivityTarget, } from './workspace-activity';
2
+ export { WorkspaceActivityList, DEFAULT_WORKSPACE_ACTIVITY_LABELS, type WorkspaceActivityListProps, type WorkspaceActivityListLabels, } from './WorkspaceActivityList';
3
+ export { WorkspaceNotificationMenu, ThreadFollowMenuItem, ThreadFollowButton, DEFAULT_WORKSPACE_NOTIFICATION_MENU_LABELS, DEFAULT_THREAD_FOLLOW_LABELS, type NotificationLevel, type WorkspaceNotificationMenuProps, type WorkspaceNotificationMenuLabels, type ThreadFollowProps, type ThreadFollowLabels, } from './NotificationRelevanceControls';
@@ -0,0 +1,46 @@
1
+ /**
2
+ * The workspace activity feed's entries, as `GET /v1/workspace/{id}/activity` returns them, and what
3
+ * each one says and opens. Everything a person is not pushed (uploads, other people's threads, runs)
4
+ * can still be found here.
5
+ */
6
+ /** Where an entry comes from. */
7
+ export type WorkspaceActivitySource = 'thread' | 'message' | 'document' | 'workflow';
8
+ /** One entry of the feed (the shape of the API's `WorkspaceActivityEntry`). */
9
+ export interface WorkspaceActivityItem {
10
+ external_id: string;
11
+ source: WorkspaceActivitySource;
12
+ /** A thread event kind, `message_posted`, `document_uploaded` / `_version` / `_signed`, `workflow_run`. */
13
+ kind: string;
14
+ actor_ext_id?: string | null;
15
+ conversation_ext_id?: string | null;
16
+ /** Decrypted when the session has the workspace open, else null. */
17
+ conversation_title?: string | null;
18
+ message_ext_id?: string | null;
19
+ document_ext_id?: string | null;
20
+ document_name?: string | null;
21
+ version?: number | null;
22
+ workflow_ext_id?: string | null;
23
+ workflow_name?: string | null;
24
+ /** A workflow run's status. */
25
+ status?: string | null;
26
+ detail?: Record<string, unknown> | null;
27
+ created_at: string;
28
+ }
29
+ /** What clicking an entry opens. */
30
+ export type WorkspaceActivityTarget = {
31
+ kind: 'thread';
32
+ conversationId: string;
33
+ messageId?: string;
34
+ } | {
35
+ kind: 'document';
36
+ documentId: string;
37
+ version?: number;
38
+ } | {
39
+ kind: 'workflow';
40
+ workflowId: string;
41
+ conversationId?: string;
42
+ };
43
+ /** The thread, document version or run an entry opens; null when it names nothing openable. */
44
+ export declare function workspaceActivityTarget(item: WorkspaceActivityItem): WorkspaceActivityTarget | null;
45
+ /** What happened, without who did it: "Uploaded “Lease.pdf”", "Marked done in “Smith v Jones”". */
46
+ export declare function workspaceActivityHeadline(item: WorkspaceActivityItem): string;