@arbidocs/blocks 0.4.87 → 0.4.89
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.
- package/dist/agents/index.cjs +284 -284
- package/dist/agents/index.js +8 -8
- package/dist/chat/index.cjs +125 -125
- package/dist/chat/index.js +3 -3
- package/dist/{chunk-2EI7NCUA.cjs → chunk-2CFW2ELM.cjs} +8 -2
- package/dist/chunk-2CFW2ELM.cjs.map +1 -0
- package/dist/{chunk-2FBQSQDW.js → chunk-3D5MDCQ7.js} +299 -215
- package/dist/chunk-3D5MDCQ7.js.map +1 -0
- package/dist/{chunk-OR4CO743.cjs → chunk-5YXG342J.cjs} +3 -3
- package/dist/{chunk-OR4CO743.cjs.map → chunk-5YXG342J.cjs.map} +1 -1
- package/dist/{chunk-R26OHONI.js → chunk-6S5FLMWG.js} +83 -72
- package/dist/chunk-6S5FLMWG.js.map +1 -0
- package/dist/{chunk-X5K5PCRJ.cjs → chunk-CNI5QJ5B.cjs} +58 -58
- package/dist/{chunk-X5K5PCRJ.cjs.map → chunk-CNI5QJ5B.cjs.map} +1 -1
- package/dist/{chunk-P5ST47VY.js → chunk-DDF5GPIJ.js} +3 -3
- package/dist/{chunk-P5ST47VY.js.map → chunk-DDF5GPIJ.js.map} +1 -1
- package/dist/{chunk-PFA43QNX.js → chunk-EWSEQEPL.js} +3 -3
- package/dist/{chunk-PFA43QNX.js.map → chunk-EWSEQEPL.js.map} +1 -1
- package/dist/{chunk-YX466FWL.js → chunk-I44NX2ZB.js} +3 -3
- package/dist/{chunk-YX466FWL.js.map → chunk-I44NX2ZB.js.map} +1 -1
- package/dist/{chunk-LBE36YNZ.js → chunk-ICBAFX5B.js} +3 -3
- package/dist/{chunk-LBE36YNZ.js.map → chunk-ICBAFX5B.js.map} +1 -1
- package/dist/{chunk-C3DRLFU7.cjs → chunk-IF6VAYIA.cjs} +5 -5
- package/dist/{chunk-C3DRLFU7.cjs.map → chunk-IF6VAYIA.cjs.map} +1 -1
- package/dist/{chunk-5XZU64E2.cjs → chunk-MOJ5JQDN.cjs} +3 -3
- package/dist/{chunk-5XZU64E2.cjs.map → chunk-MOJ5JQDN.cjs.map} +1 -1
- package/dist/{chunk-O5NDG4EA.cjs → chunk-MP6FK43E.cjs} +3 -3
- package/dist/{chunk-O5NDG4EA.cjs.map → chunk-MP6FK43E.cjs.map} +1 -1
- package/dist/{chunk-AFSOUS5X.cjs → chunk-N26CXGXC.cjs} +83 -72
- package/dist/chunk-N26CXGXC.cjs.map +1 -0
- package/dist/{chunk-UJM7TG44.js → chunk-QLHW7JGN.js} +9 -9
- package/dist/{chunk-UJM7TG44.js.map → chunk-QLHW7JGN.js.map} +1 -1
- package/dist/{chunk-QOADH2YB.cjs → chunk-TF6YMDZL.cjs} +300 -216
- package/dist/chunk-TF6YMDZL.cjs.map +1 -0
- package/dist/{chunk-GFYGYME3.js → chunk-W7NZRZ54.js} +3 -3
- package/dist/{chunk-GFYGYME3.js.map → chunk-W7NZRZ54.js.map} +1 -1
- package/dist/{chunk-HUJLKDWX.cjs → chunk-XMBYDLZQ.cjs} +4 -4
- package/dist/{chunk-HUJLKDWX.cjs.map → chunk-XMBYDLZQ.cjs.map} +1 -1
- package/dist/{chunk-WDD255XQ.js → chunk-XQDM6T6C.js} +3 -3
- package/dist/{chunk-WDD255XQ.js.map → chunk-XQDM6T6C.js.map} +1 -1
- package/dist/{chunk-ZV3BKLFY.cjs → chunk-Z5VUZ6YD.cjs} +3 -3
- package/dist/{chunk-ZV3BKLFY.cjs.map → chunk-Z5VUZ6YD.cjs.map} +1 -1
- package/dist/{chunk-YU2KUMGE.js → chunk-ZX2VPMBJ.js} +8 -2
- package/dist/chunk-ZX2VPMBJ.js.map +1 -0
- package/dist/connect/index.cjs +116 -74
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +61 -19
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/WorkflowRunnerDialogs.d.ts +2 -0
- package/dist/facts/index.cjs +7 -7
- package/dist/facts/index.js +4 -4
- package/dist/files/index.cjs +4 -23
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.js +4 -22
- package/dist/files/index.js.map +1 -1
- package/dist/files/views/TagFormParts.d.ts +0 -8
- package/dist/files/views/index.d.ts +1 -1
- package/dist/home/index.cjs +17 -17
- package/dist/home/index.js +3 -3
- package/dist/index.cjs +636 -544
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +116 -25
- package/dist/index.js.map +1 -1
- package/dist/retrieval/index.cjs +1 -1
- package/dist/retrieval/index.js +1 -1
- package/dist/settings/index.cjs +38 -38
- package/dist/settings/index.js +3 -3
- package/dist/shell/FilterInput.d.ts +3 -1
- package/dist/shell/index.cjs +5 -5
- package/dist/shell/index.js +2 -2
- package/dist/studio/index.cjs +4 -4
- package/dist/studio/index.js +3 -3
- package/dist/tags/TagDetail.d.ts +14 -2
- package/dist/tags/TagTable.d.ts +20 -11
- package/dist/tags/TagsNav.d.ts +28 -4
- package/dist/tags/index.d.ts +1 -1
- package/dist/tags/tagTableModel.d.ts +10 -2
- package/dist/workflow-canvas/index.cjs +51 -51
- package/dist/workflow-canvas/index.js +8 -8
- package/dist/workspaces/index.cjs +2 -2
- package/dist/workspaces/index.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-2EI7NCUA.cjs.map +0 -1
- package/dist/chunk-2FBQSQDW.js.map +0 -1
- package/dist/chunk-AFSOUS5X.cjs.map +0 -1
- package/dist/chunk-QOADH2YB.cjs.map +0 -1
- package/dist/chunk-R26OHONI.js.map +0 -1
- package/dist/chunk-YU2KUMGE.js.map +0 -1
package/dist/shell/index.cjs
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkNYBIKDWI_cjs = require('../chunk-NYBIKDWI.cjs');
|
|
5
5
|
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunk2CFW2ELM_cjs = require('../chunk-2CFW2ELM.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');
|
|
10
10
|
require('../chunk-PPCATBOY.cjs');
|
|
11
|
+
require('../chunk-C54XEN5T.cjs');
|
|
11
12
|
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
12
13
|
require('../chunk-MHVNT4J3.cjs');
|
|
13
|
-
require('../chunk-C54XEN5T.cjs');
|
|
14
14
|
require('../chunk-DES3K4SD.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -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
|
|
204
|
+
get: function () { return chunk2CFW2ELM_cjs.DEFAULT_FILTER_FIELDS; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "DEFAULT_FILTER_INPUT_LABELS", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunk2CFW2ELM_cjs.DEFAULT_FILTER_INPUT_LABELS; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "FilterInput", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunk2CFW2ELM_cjs.FilterInput; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "DEFAULT_DOCK_WIDTH", {
|
|
215
215
|
enumerable: true,
|
package/dist/shell/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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-
|
|
4
|
+
export { DEFAULT_FILTER_FIELDS, DEFAULT_FILTER_INPUT_LABELS, FilterInput } from '../chunk-ZX2VPMBJ.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';
|
|
8
8
|
import '../chunk-NPLYHR2E.js';
|
|
9
|
+
import '../chunk-76JDDMSP.js';
|
|
9
10
|
export { BREAKPOINT_QUERIES, useIsNarrow, useIsPhone, useIsTouchScreen, useMediaQuery } from '../chunk-SLSBJRWW.js';
|
|
10
11
|
import '../chunk-7F6CBP3Z.js';
|
|
11
|
-
import '../chunk-76JDDMSP.js';
|
|
12
12
|
import '../chunk-VUNV25KB.js';
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
package/dist/studio/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkXMBYDLZQ_cjs = require('../chunk-XMBYDLZQ.cjs');
|
|
5
5
|
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
6
6
|
var chunk7QDX2CO4_cjs = require('../chunk-7QDX2CO4.cjs');
|
|
7
7
|
var chunkMJCCBMM5_cjs = require('../chunk-MJCCBMM5.cjs');
|
|
@@ -10,14 +10,14 @@ require('../chunk-VPPX5XUF.cjs');
|
|
|
10
10
|
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
11
11
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
12
12
|
require('../chunk-OB5F4577.cjs');
|
|
13
|
-
require('../chunk-
|
|
13
|
+
require('../chunk-MP6FK43E.cjs');
|
|
14
14
|
require('../chunk-VGOFFCMT.cjs');
|
|
15
15
|
require('../chunk-B4SRYJLM.cjs');
|
|
16
16
|
require('../chunk-7UTB4PHM.cjs');
|
|
17
17
|
require('../chunk-PPCATBOY.cjs');
|
|
18
|
-
require('../chunk-MHVNT4J3.cjs');
|
|
19
18
|
var chunkC54XEN5T_cjs = require('../chunk-C54XEN5T.cjs');
|
|
20
19
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
20
|
+
require('../chunk-MHVNT4J3.cjs');
|
|
21
21
|
require('../chunk-DES3K4SD.cjs');
|
|
22
22
|
var lucideReact = require('lucide-react');
|
|
23
23
|
var react$1 = require('@arbidocs/react');
|
|
@@ -883,7 +883,7 @@ function latestImageDocId(artifacts) {
|
|
|
883
883
|
return null;
|
|
884
884
|
}
|
|
885
885
|
function useImageGen() {
|
|
886
|
-
const task =
|
|
886
|
+
const task = chunkXMBYDLZQ_cjs.useConnectedAiTask();
|
|
887
887
|
const { run } = task;
|
|
888
888
|
const generate = react.useCallback(
|
|
889
889
|
async (prompt, referenceDocIds = []) => {
|
package/dist/studio/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useConnectedAiTask } from '../chunk-
|
|
2
|
+
import { useConnectedAiTask } from '../chunk-XQDM6T6C.js';
|
|
3
3
|
import { useConnection } from '../chunk-OYMWV45N.js';
|
|
4
4
|
import { PageHeader, MetricCard, DataTableBlock, StatGroup } from '../chunk-ZCF2JJFA.js';
|
|
5
5
|
import { assetRefId, applyStoredTheme, AssetResolverProvider, ThemeEditor, applyThemeVars, tid, SectionHeading, PricingTable, Tabs as Tabs$1, Accordion, Gallery, VideoEmbed, ContactForm, Banner, MediaText, TeamGrid, Steps, TestimonialGrid, Columns, Spacer, Container, Hero, FeatureGrid, Testimonial, CTABanner, LogoCloud, FAQ, RichTextBlock, BlockImage, AvatarBlock, Navbar, Footer, ListBlock, isAssetRef, asAssetRef } from '../chunk-DLBUFHLY.js';
|
|
@@ -9,14 +9,14 @@ import '../chunk-4EZVCGRL.js';
|
|
|
9
9
|
import { Callout } from '../chunk-UJE32SST.js';
|
|
10
10
|
import { EmptyState } from '../chunk-P6GHJSLR.js';
|
|
11
11
|
import '../chunk-S7PSMMRG.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-EWSEQEPL.js';
|
|
13
13
|
import '../chunk-KZJAG7T3.js';
|
|
14
14
|
import '../chunk-HOXKR26S.js';
|
|
15
15
|
import '../chunk-AA3PT6KR.js';
|
|
16
16
|
import '../chunk-NPLYHR2E.js';
|
|
17
|
-
import '../chunk-7F6CBP3Z.js';
|
|
18
17
|
import { useBlocksEnvironment } from '../chunk-76JDDMSP.js';
|
|
19
18
|
import { formatCount } from '../chunk-OXF2IFXG.js';
|
|
19
|
+
import '../chunk-7F6CBP3Z.js';
|
|
20
20
|
import '../chunk-VUNV25KB.js';
|
|
21
21
|
import { MessageSquare, Cpu, Code, Cloud, Layers, Target, Award, MapPin, Phone, Mail, Lock, Globe, Heart, Star, Rocket, Shield, Zap, Sparkles, Gavel, Scale, Bell, Activity, BarChart3, DollarSign, TrendingUp, Info, AlertCircle, CheckCircle, Clock, Calendar, Briefcase, Users, Folder, FileText, ArrowLeft, Palette, Loader2, RotateCcw, ChevronUp, ChevronDown, BrainCircuit, Bot, LayoutGrid, FileJson, Download, Crop, ImagePlus, Upload, Link2, Check, MessagesSquare } from 'lucide-react';
|
|
22
22
|
import { useArbi, useThumbnails, useConfigs, useAgents, useWorkspaceDocs, useAiTask, useDocuments, ImageCropModal, DEFAULT_ASPECT_OPTIONS, useConversations } from '@arbidocs/react';
|
package/dist/tags/TagDetail.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export interface TagDetailLabels {
|
|
|
15
15
|
showing: string;
|
|
16
16
|
noDocuments: string;
|
|
17
17
|
noFacts: string;
|
|
18
|
+
/** An annotation with no value on a document. */
|
|
19
|
+
noValue: string;
|
|
18
20
|
noThreads: string;
|
|
19
21
|
untitledThread: string;
|
|
20
22
|
/** When a thread was last active: `{date}`. */
|
|
@@ -25,11 +27,21 @@ export interface TagDetailLabels {
|
|
|
25
27
|
loading: string;
|
|
26
28
|
}
|
|
27
29
|
export declare const DEFAULT_TAG_DETAIL_LABELS: TagDetailLabels;
|
|
28
|
-
export interface TagDetailProps extends Pick<TagTableProps, 'onChangeValue' | 'onOpenDocument' | 'onOpenFact' | 'onOpenThread' | 'people'> {
|
|
30
|
+
export interface TagDetailProps extends Pick<TagTableProps, 'onChangeValue' | 'onOpenDocument' | 'onOpenFact' | 'onOpenThread' | 'people' | 'tags' | 'onOpenTag'> {
|
|
29
31
|
/** The tag with its values and links (documents, facts, threads). */
|
|
30
32
|
row: TagTableRow | undefined;
|
|
31
33
|
/** Its kind's fields in the workspace (none: no Fields section). */
|
|
32
34
|
fields?: TagTableField[];
|
|
35
|
+
/**
|
|
36
|
+
* What the tag's note on a document is, e.g. "Note" for an annotation or "Role" for a person.
|
|
37
|
+
* Given, each document row names it before the note.
|
|
38
|
+
*/
|
|
39
|
+
noteLabel?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The note is the point of the row (an annotation's value): shown prominently, and a document
|
|
42
|
+
* without one says so.
|
|
43
|
+
*/
|
|
44
|
+
noteIsValue?: boolean;
|
|
33
45
|
isLoading?: boolean;
|
|
34
46
|
labels?: Partial<TagDetailLabels>;
|
|
35
47
|
/** Labels of the field inputs (the empty choice). */
|
|
@@ -37,4 +49,4 @@ export interface TagDetailProps extends Pick<TagTableProps, 'onChangeValue' | 'o
|
|
|
37
49
|
className?: string;
|
|
38
50
|
testId?: string;
|
|
39
51
|
}
|
|
40
|
-
export declare function TagDetail({ row, fields, isLoading, people, onChangeValue, onOpenDocument, onOpenFact, onOpenThread, labels, fieldLabels, className, testId, }: TagDetailProps): import("react").JSX.Element;
|
|
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;
|
package/dist/tags/TagTable.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A table of tags (every issue, every person, a label's children): one row per tag, a column per
|
|
3
3
|
* field of their kind in the workspace, editable in place by type (text, number, date, checkbox,
|
|
4
|
-
* choice, person), and the
|
|
5
|
-
*
|
|
6
|
-
* the kind's fields, edited as one list), and
|
|
7
|
-
* in the workspace) or downloaded.
|
|
4
|
+
* choice, person, a link to other tags), and the items tagged with each row (its linked documents,
|
|
5
|
+
* facts and threads, with counts). A row with nothing tagged yet is a normal row with an empty
|
|
6
|
+
* cell. Rows and columns can be added (the columns are the kind's fields, edited as one list), and
|
|
7
|
+
* the table exported as a Word document snapshot (filed in the workspace) or downloaded.
|
|
8
8
|
* The data and every write come from the host (`ConnectedTagTable` binds them to ARBI).
|
|
9
9
|
*/
|
|
10
10
|
import { type ReactNode } from 'react';
|
|
@@ -27,10 +27,6 @@ export interface TagTableLabels {
|
|
|
27
27
|
untitledThread: string;
|
|
28
28
|
/** `{count}` more links than shown. */
|
|
29
29
|
more: string;
|
|
30
|
-
gap: string;
|
|
31
|
-
gapsOnly: string;
|
|
32
|
-
/** `{count}` rows without evidence. */
|
|
33
|
-
gapCount: string;
|
|
34
30
|
addRow: string;
|
|
35
31
|
addRowPlaceholder: string;
|
|
36
32
|
add: string;
|
|
@@ -67,7 +63,7 @@ export interface TagTableProps {
|
|
|
67
63
|
onOpenFact?: (factId: string) => void;
|
|
68
64
|
/** Open a linked thread (conversation). */
|
|
69
65
|
onOpenThread?: (conversationId: string) => void;
|
|
70
|
-
/** Open a row's tag (
|
|
66
|
+
/** Open a row's tag (everything tagged with it). */
|
|
71
67
|
onOpenRow?: (tagId: string) => void;
|
|
72
68
|
/** Export the table as it stands (filed as a document). Absent: no export button. */
|
|
73
69
|
onExport?: () => void | Promise<unknown>;
|
|
@@ -78,6 +74,17 @@ export interface TagTableProps {
|
|
|
78
74
|
value: string;
|
|
79
75
|
label: string;
|
|
80
76
|
}>;
|
|
77
|
+
/**
|
|
78
|
+
* The tags a link column (`type: 'tag'`) offers — each with its kind; a column offers those of
|
|
79
|
+
* the kinds in its `options` — and names its values by.
|
|
80
|
+
*/
|
|
81
|
+
tags?: ReadonlyArray<{
|
|
82
|
+
value: string;
|
|
83
|
+
label: string;
|
|
84
|
+
kind: string;
|
|
85
|
+
}>;
|
|
86
|
+
/** Open a linked tag (a link column's value). */
|
|
87
|
+
onOpenTag?: (tagId: string) => void;
|
|
81
88
|
/** Extra controls in the toolbar. */
|
|
82
89
|
actions?: ReactNode;
|
|
83
90
|
labels?: Partial<TagTableLabels>;
|
|
@@ -88,12 +95,14 @@ export interface TagTableProps {
|
|
|
88
95
|
* One editable field value of a tag, by its type: committed on blur or Enter (a checkbox and a
|
|
89
96
|
* choice at once). A table cell, and a field of a single tag's form (`TagDetail`).
|
|
90
97
|
*/
|
|
91
|
-
export declare function TagTableCell({ row, column, people, onChange, l, testId, }: {
|
|
98
|
+
export declare function TagTableCell({ row, column, people, tags, onOpenTag, onChange, l, testId, }: {
|
|
92
99
|
row: TagTableRow;
|
|
93
100
|
column: TagTableField;
|
|
94
101
|
people?: TagTableProps['people'];
|
|
102
|
+
tags?: TagTableProps['tags'];
|
|
103
|
+
onOpenTag?: TagTableProps['onOpenTag'];
|
|
95
104
|
onChange?: TagTableProps['onChangeValue'];
|
|
96
105
|
l: TagTableLabels;
|
|
97
106
|
testId: string;
|
|
98
107
|
}): import("react").JSX.Element;
|
|
99
|
-
export declare function TagTable({ table, isLoading, onChangeValue, onAddRow, onChangeColumns, onOpenDocument, onOpenFact, onOpenThread, onOpenRow, onExport, onDownload, people, actions, labels, className, testId, }: TagTableProps): import("react").JSX.Element;
|
|
108
|
+
export declare function TagTable({ table, isLoading, onChangeValue, onAddRow, onChangeColumns, onOpenDocument, onOpenFact, onOpenThread, onOpenRow, onExport, onDownload, people, tags, onOpenTag, actions, labels, className, testId, }: TagTableProps): import("react").JSX.Element;
|
package/dist/tags/TagsNav.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The side navigation of a Tags page: the workspace's tags grouped by kind (labels, annotations,
|
|
3
3
|
* issues, people, organisations, searches), each group with its count, each tag with how much
|
|
4
|
-
* carries it, and nested tags (
|
|
5
|
-
*
|
|
4
|
+
* carries it, and nested tags (sub-labels) under their parent. A group heading selects the whole
|
|
5
|
+
* kind; a tag selects that tag. One box finds and adds: typing filters the list, and a name that is
|
|
6
|
+
* not there yet is offered as a new tag ("Create …", or Enter). Data-free: the host passes the
|
|
7
|
+
* groups and creates.
|
|
6
8
|
*/
|
|
7
9
|
import { type ReactNode } from 'react';
|
|
8
10
|
export interface TagsNavItem {
|
|
@@ -12,8 +14,10 @@ export interface TagsNavItem {
|
|
|
12
14
|
count?: number;
|
|
13
15
|
/** A swatch colour (any CSS colour). */
|
|
14
16
|
color?: string;
|
|
15
|
-
/** Nested tags (e.g.
|
|
17
|
+
/** Nested tags (e.g. sub-labels). */
|
|
16
18
|
children?: TagsNavItem[];
|
|
19
|
+
/** Other text the filter matches (e.g. the tag's field values). */
|
|
20
|
+
keywords?: string;
|
|
17
21
|
}
|
|
18
22
|
export interface TagsNavGroup {
|
|
19
23
|
id: string;
|
|
@@ -31,14 +35,34 @@ export interface TagsNavLabels {
|
|
|
31
35
|
clearFilter: string;
|
|
32
36
|
empty: string;
|
|
33
37
|
noMatch: string;
|
|
38
|
+
/** Offer to add the typed name: `{name}`. */
|
|
39
|
+
create: string;
|
|
34
40
|
}
|
|
35
41
|
export declare const DEFAULT_TAGS_NAV_LABELS: TagsNavLabels;
|
|
36
42
|
export interface TagsNavProps {
|
|
37
43
|
groups: TagsNavGroup[];
|
|
38
44
|
selected: TagsNavSelection | null;
|
|
39
45
|
onSelect: (selection: TagsNavSelection) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Add a tag by the name typed in the box when no tag has that name (any case). Absent: the box
|
|
48
|
+
* only finds.
|
|
49
|
+
*/
|
|
50
|
+
onCreate?: (name: string) => void | Promise<unknown>;
|
|
51
|
+
/**
|
|
52
|
+
* The filter text, when the box lives elsewhere (e.g. the page header's filter): the list then
|
|
53
|
+
* renders no box of its own and filters by this; `onFilterChange` hears a create clearing it.
|
|
54
|
+
*/
|
|
55
|
+
filter?: string;
|
|
56
|
+
onFilterChange?: (text: string) => void;
|
|
57
|
+
/** Match items' `keywords` as well as their names. */
|
|
58
|
+
matchKeywords?: boolean;
|
|
40
59
|
labels?: Partial<TagsNavLabels>;
|
|
41
60
|
className?: string;
|
|
42
61
|
testId?: string;
|
|
43
62
|
}
|
|
44
|
-
|
|
63
|
+
/** The tag named `name` (any case) in these groups, with its group; nested ones included. */
|
|
64
|
+
export declare function findTagsNavItem(groups: TagsNavGroup[], name: string): {
|
|
65
|
+
groupId: string;
|
|
66
|
+
item: TagsNavItem;
|
|
67
|
+
} | undefined;
|
|
68
|
+
export declare function TagsNav({ groups, selected, onSelect, onCreate, filter: controlledFilter, onFilterChange, matchKeywords, labels, className, testId, }: TagsNavProps): import("react").JSX.Element;
|
package/dist/tags/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
export { TagTable, TagTableCell, DEFAULT_TAG_TABLE_LABELS, type TagTableProps, type TagTableLabels, } from './TagTable';
|
|
7
7
|
export { TagColumnsEditor, DEFAULT_TAG_COLUMNS_EDITOR_LABELS, type TagColumnsEditorProps, type TagColumnsEditorLabels, } from './TagColumnsEditor';
|
|
8
8
|
export { TagDetail, DEFAULT_TAG_DETAIL_LABELS, type TagDetailProps, type TagDetailLabels, } from './TagDetail';
|
|
9
|
-
export { TagsNav, DEFAULT_TAGS_NAV_LABELS, type TagsNavProps, type TagsNavLabels, type TagsNavGroup, type TagsNavItem, type TagsNavSelection, } from './TagsNav';
|
|
9
|
+
export { TagsNav, findTagsNavItem, DEFAULT_TAGS_NAV_LABELS, type TagsNavProps, type TagsNavLabels, type TagsNavGroup, type TagsNavItem, type TagsNavSelection, } from './TagsNav';
|
|
10
10
|
export { tagTableMarkdown, cellValue, cellText, parseCell, isGap, rowLinks, fieldWrites, type TagTableData, type TagTableRow, type TagTableLinks, type TagTableField, type TagTableFieldType, type TagTableFieldWrite, type TagTableMarkdownOptions, } from './tagTableModel';
|
|
11
11
|
export { tagTableDocx, tagTableDocumentXml, DEFAULT_TAG_TABLE_DOCX_LABELS, TAG_TABLE_DOCX_LANDSCAPE_AFTER, type TagTableDocxLabels, type TagTableDocxOptions, } from './tagTableDocx';
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
* row's value, the gaps, and the snapshot as a Markdown document.
|
|
6
6
|
*/
|
|
7
7
|
import type { components } from '@arbidocs/client';
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* A column: one of the kind's fields. A `'tag'` field links to tags (its `options` are the kinds it
|
|
10
|
+
* may point at; its value is a list of tag ids), e.g. a person's Organisation.
|
|
11
|
+
*/
|
|
9
12
|
export type TagTableField = components['schemas']['FieldDefinition'];
|
|
10
13
|
export type TagTableFieldType = TagTableField['type'];
|
|
11
14
|
/** A field as written back to the kind (`id` keeps it and its values). */
|
|
@@ -24,7 +27,12 @@ export declare const rowLinks: (row: TagTableRow) => TagTableLinks;
|
|
|
24
27
|
export declare const cellValue: (row: TagTableRow, column: TagTableField) => unknown;
|
|
25
28
|
/** A row with nothing behind it: no linked document, fact or thread. */
|
|
26
29
|
export declare const isGap: (row: TagTableRow) => boolean;
|
|
27
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* The tags a link field (`type: 'tag'`) points at: a list of tag ids (a single id is read as one;
|
|
32
|
+
* anything else is none).
|
|
33
|
+
*/
|
|
34
|
+
export declare function linkedTagIds(value: unknown): string[];
|
|
35
|
+
/** A value as text (a person or a linked tag by name, a checkbox as yes or no, blank as empty). */
|
|
28
36
|
export declare function cellText(value: unknown, column: Pick<TagTableField, 'type'>, nameOf?: (id: string) => string | undefined): string;
|
|
29
37
|
/** A typed input's text back as the value to store (`null` clears it). */
|
|
30
38
|
export declare function parseCell(text: string, type: TagTableFieldType): unknown;
|