@arbidocs/react 0.4.78 → 0.4.79
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/annotations/index.d.cts +2 -2
- package/dist/annotations/index.d.ts +2 -2
- package/dist/artifacts/index.cjs +1 -1
- package/dist/artifacts/index.js +1 -1
- package/dist/document-tools/index.cjs +1 -1
- package/dist/document-tools/index.d.cts +1 -1
- package/dist/document-tools/index.d.ts +1 -1
- package/dist/document-tools/index.js +1 -1
- package/dist/index.cjs +54 -54
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -6
- package/dist/ui/index.cjs +9 -9
- package/dist/ui/index.js +1 -1
- package/package.json +3 -3
- package/dist/{ProductionDialog-BRrZ5Lj5.d.cts → store-BEXGdE1y.d.cts} +33 -33
- package/dist/{ProductionDialog-DUC9BXWS.d.ts → store-CoLuVSxI.d.ts} +33 -33
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as Annotation, e as RedactionStatus, d as CommentReply, b as AnnotationLayer, N as NormRect } from '../model-DIwXRuGC.cjs';
|
|
2
2
|
export { a as AnnotationKind, c as AnnotationLayerError, B as BoxAnnotation, C as CommentAnnotation, H as HighlightAnnotation, L as LAYER_SCHEMA_VERSION, R as RedactionAnnotation, S as StampAnnotation, f as annotationRects, g as clampRect, h as emptyLayer, i as isEffectiveRedaction, p as parseAnnotation, j as parseLayer } from '../model-DIwXRuGC.cjs';
|
|
3
|
-
import { A as AnnotationStore } from '../
|
|
4
|
-
export { a as AnnotationStoreOfflineError, P as ProductionChoices, b as ProductionCorner, c as ProductionDialog, d as ProductionDialogProps, e as ProductionDocument, f as createLocalStorageStore, g as createMemoryStore, m as moveItem, q as qrCornerFor } from '../
|
|
3
|
+
import { A as AnnotationStore } from '../store-BEXGdE1y.cjs';
|
|
4
|
+
export { a as AnnotationStoreOfflineError, P as ProductionChoices, b as ProductionCorner, c as ProductionDialog, d as ProductionDialogProps, e as ProductionDocument, f as createLocalStorageStore, g as createMemoryStore, m as moveItem, q as qrCornerFor } from '../store-BEXGdE1y.cjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as Annotation, e as RedactionStatus, d as CommentReply, b as AnnotationLayer, N as NormRect } from '../model-DIwXRuGC.js';
|
|
2
2
|
export { a as AnnotationKind, c as AnnotationLayerError, B as BoxAnnotation, C as CommentAnnotation, H as HighlightAnnotation, L as LAYER_SCHEMA_VERSION, R as RedactionAnnotation, S as StampAnnotation, f as annotationRects, g as clampRect, h as emptyLayer, i as isEffectiveRedaction, p as parseAnnotation, j as parseLayer } from '../model-DIwXRuGC.js';
|
|
3
|
-
import { A as AnnotationStore } from '../
|
|
4
|
-
export { a as AnnotationStoreOfflineError, P as ProductionChoices, b as ProductionCorner, c as ProductionDialog, d as ProductionDialogProps, e as ProductionDocument, f as createLocalStorageStore, g as createMemoryStore, m as moveItem, q as qrCornerFor } from '../
|
|
3
|
+
import { A as AnnotationStore } from '../store-CoLuVSxI.js';
|
|
4
|
+
export { a as AnnotationStoreOfflineError, P as ProductionChoices, b as ProductionCorner, c as ProductionDialog, d as ProductionDialogProps, e as ProductionDocument, f as createLocalStorageStore, g as createMemoryStore, m as moveItem, q as qrCornerFor } from '../store-CoLuVSxI.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
|
package/dist/artifacts/index.cjs
CHANGED
|
@@ -5,10 +5,10 @@ var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
|
|
|
5
5
|
var chunkT4IJHRRD_cjs = require('../chunk-T4IJHRRD.cjs');
|
|
6
6
|
var chunk5DCRIWCA_cjs = require('../chunk-5DCRIWCA.cjs');
|
|
7
7
|
var chunkVOFNX4P6_cjs = require('../chunk-VOFNX4P6.cjs');
|
|
8
|
-
var chunkIIT7DMQL_cjs = require('../chunk-IIT7DMQL.cjs');
|
|
9
8
|
var chunk5SZ2J2WT_cjs = require('../chunk-5SZ2J2WT.cjs');
|
|
10
9
|
require('../chunk-Z3LLUO32.cjs');
|
|
11
10
|
require('../chunk-S6A6FSG7.cjs');
|
|
11
|
+
var chunkIIT7DMQL_cjs = require('../chunk-IIT7DMQL.cjs');
|
|
12
12
|
var react = require('react');
|
|
13
13
|
var reactQuery = require('@tanstack/react-query');
|
|
14
14
|
var jsxRuntime = require('react/jsx-runtime');
|
package/dist/artifacts/index.js
CHANGED
|
@@ -7,10 +7,10 @@ import { cleanDraftWithReport } from '../chunk-G6FHNURH.js';
|
|
|
7
7
|
export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from '../chunk-G6FHNURH.js';
|
|
8
8
|
import { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
9
9
|
export { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
10
|
-
import { useArbi } from '../chunk-WBYNKFUO.js';
|
|
11
10
|
import { MarkdownRenderer } from '../chunk-YXSXGTYQ.js';
|
|
12
11
|
import '../chunk-QRCMKEE6.js';
|
|
13
12
|
import '../chunk-SN5YV6FF.js';
|
|
13
|
+
import { useArbi } from '../chunk-WBYNKFUO.js';
|
|
14
14
|
import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
15
15
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -5,11 +5,11 @@ require('../chunk-5DCRIWCA.cjs');
|
|
|
5
5
|
require('../chunk-VOFNX4P6.cjs');
|
|
6
6
|
var chunkL2PXZWJM_cjs = require('../chunk-L2PXZWJM.cjs');
|
|
7
7
|
var chunkSSOPIPEX_cjs = require('../chunk-SSOPIPEX.cjs');
|
|
8
|
-
var chunkIIT7DMQL_cjs = require('../chunk-IIT7DMQL.cjs');
|
|
9
8
|
require('../chunk-Z3LLUO32.cjs');
|
|
10
9
|
require('../chunk-WYZJLZ67.cjs');
|
|
11
10
|
require('../chunk-HJDR5HEO.cjs');
|
|
12
11
|
require('../chunk-S6A6FSG7.cjs');
|
|
12
|
+
var chunkIIT7DMQL_cjs = require('../chunk-IIT7DMQL.cjs');
|
|
13
13
|
var react = require('react');
|
|
14
14
|
var jsxRuntime = require('react/jsx-runtime');
|
|
15
15
|
var reactQuery = require('@tanstack/react-query');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { ArbiClient, operations, components } from '@arbidocs/client';
|
|
4
|
-
import { P as ProductionChoices, A as AnnotationStore } from '../
|
|
4
|
+
import { P as ProductionChoices, A as AnnotationStore } from '../store-BEXGdE1y.cjs';
|
|
5
5
|
import { a as BundleFile, b as BundleIndexEntry } from '../bundle-BnCSbHy2.cjs';
|
|
6
6
|
import { A as Annotation, b as AnnotationLayer } from '../model-DIwXRuGC.cjs';
|
|
7
7
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { ArbiClient, operations, components } from '@arbidocs/client';
|
|
4
|
-
import { P as ProductionChoices, A as AnnotationStore } from '../
|
|
4
|
+
import { P as ProductionChoices, A as AnnotationStore } from '../store-CoLuVSxI.js';
|
|
5
5
|
import { a as BundleFile, b as BundleIndexEntry } from '../bundle-BnCSbHy2.js';
|
|
6
6
|
import { A as Annotation, b as AnnotationLayer } from '../model-DIwXRuGC.js';
|
|
7
7
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
@@ -3,11 +3,11 @@ import '../chunk-G6FHNURH.js';
|
|
|
3
3
|
import '../chunk-WUTL62MC.js';
|
|
4
4
|
import { mergeLayers, AnnotationStoreOfflineError } from '../chunk-IHTBAY57.js';
|
|
5
5
|
import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-COWZGCL5.js';
|
|
6
|
-
import { useDeploymentDomain } from '../chunk-WBYNKFUO.js';
|
|
7
6
|
import '../chunk-QRCMKEE6.js';
|
|
8
7
|
import '../chunk-YNNAJJ5Z.js';
|
|
9
8
|
import '../chunk-47CCGUWR.js';
|
|
10
9
|
import '../chunk-SN5YV6FF.js';
|
|
10
|
+
import { useDeploymentDomain } from '../chunk-WBYNKFUO.js';
|
|
11
11
|
import { createContext, useMemo, useContext, useState, useCallback, useEffect, useSyncExternalStore } from 'react';
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
import { onlineManager, useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
package/dist/index.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkPXHRLAOX_cjs = require('./chunk-PXHRLAOX.cjs');
|
|
4
|
-
var chunkF7KQVVD2_cjs = require('./chunk-F7KQVVD2.cjs');
|
|
5
4
|
var chunk5DCRIWCA_cjs = require('./chunk-5DCRIWCA.cjs');
|
|
6
|
-
var
|
|
7
|
-
var chunkIIT7DMQL_cjs = require('./chunk-IIT7DMQL.cjs');
|
|
5
|
+
var chunkF7KQVVD2_cjs = require('./chunk-F7KQVVD2.cjs');
|
|
8
6
|
var chunkQJRP2LLQ_cjs = require('./chunk-QJRP2LLQ.cjs');
|
|
9
7
|
var chunk5SZ2J2WT_cjs = require('./chunk-5SZ2J2WT.cjs');
|
|
10
|
-
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
11
8
|
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
12
9
|
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
10
|
+
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
13
11
|
var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
|
|
14
12
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
13
|
+
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
14
|
+
var chunkIIT7DMQL_cjs = require('./chunk-IIT7DMQL.cjs');
|
|
15
15
|
var React = require('react');
|
|
16
16
|
var reactQuery = require('@tanstack/react-query');
|
|
17
17
|
var browser = require('@arbidocs/sdk/browser');
|
|
@@ -6624,42 +6624,6 @@ Object.defineProperty(exports, "useWorkspaces", {
|
|
|
6624
6624
|
enumerable: true,
|
|
6625
6625
|
get: function () { return chunkPXHRLAOX_cjs.useWorkspaces; }
|
|
6626
6626
|
});
|
|
6627
|
-
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
6628
|
-
enumerable: true,
|
|
6629
|
-
get: function () { return chunkF7KQVVD2_cjs.DEFAULT_NOTIFY_TONE; }
|
|
6630
|
-
});
|
|
6631
|
-
Object.defineProperty(exports, "NotificationBell", {
|
|
6632
|
-
enumerable: true,
|
|
6633
|
-
get: function () { return chunkF7KQVVD2_cjs.NotificationBell; }
|
|
6634
|
-
});
|
|
6635
|
-
Object.defineProperty(exports, "Toaster", {
|
|
6636
|
-
enumerable: true,
|
|
6637
|
-
get: function () { return chunkF7KQVVD2_cjs.Toaster; }
|
|
6638
|
-
});
|
|
6639
|
-
Object.defineProperty(exports, "formatRelativeTime", {
|
|
6640
|
-
enumerable: true,
|
|
6641
|
-
get: function () { return chunkF7KQVVD2_cjs.formatRelativeTime; }
|
|
6642
|
-
});
|
|
6643
|
-
Object.defineProperty(exports, "notify", {
|
|
6644
|
-
enumerable: true,
|
|
6645
|
-
get: function () { return chunkF7KQVVD2_cjs.notify; }
|
|
6646
|
-
});
|
|
6647
|
-
Object.defineProperty(exports, "seedNotifications", {
|
|
6648
|
-
enumerable: true,
|
|
6649
|
-
get: function () { return chunkF7KQVVD2_cjs.seedNotifications; }
|
|
6650
|
-
});
|
|
6651
|
-
Object.defineProperty(exports, "selectUnread", {
|
|
6652
|
-
enumerable: true,
|
|
6653
|
-
get: function () { return chunkF7KQVVD2_cjs.selectUnread; }
|
|
6654
|
-
});
|
|
6655
|
-
Object.defineProperty(exports, "toast", {
|
|
6656
|
-
enumerable: true,
|
|
6657
|
-
get: function () { return chunkF7KQVVD2_cjs.toast; }
|
|
6658
|
-
});
|
|
6659
|
-
Object.defineProperty(exports, "useNotify", {
|
|
6660
|
-
enumerable: true,
|
|
6661
|
-
get: function () { return chunkF7KQVVD2_cjs.useNotify; }
|
|
6662
|
-
});
|
|
6663
6627
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
6664
6628
|
enumerable: true,
|
|
6665
6629
|
get: function () { return chunk5DCRIWCA_cjs.cleanDraftMarkdown; }
|
|
@@ -6692,17 +6656,41 @@ Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
|
6692
6656
|
enumerable: true,
|
|
6693
6657
|
get: function () { return chunk5DCRIWCA_cjs.unwrapCitationLinks; }
|
|
6694
6658
|
});
|
|
6695
|
-
Object.defineProperty(exports, "
|
|
6659
|
+
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
6696
6660
|
enumerable: true,
|
|
6697
|
-
get: function () { return
|
|
6661
|
+
get: function () { return chunkF7KQVVD2_cjs.DEFAULT_NOTIFY_TONE; }
|
|
6698
6662
|
});
|
|
6699
|
-
Object.defineProperty(exports, "
|
|
6663
|
+
Object.defineProperty(exports, "NotificationBell", {
|
|
6700
6664
|
enumerable: true,
|
|
6701
|
-
get: function () { return
|
|
6665
|
+
get: function () { return chunkF7KQVVD2_cjs.NotificationBell; }
|
|
6702
6666
|
});
|
|
6703
|
-
Object.defineProperty(exports, "
|
|
6667
|
+
Object.defineProperty(exports, "Toaster", {
|
|
6704
6668
|
enumerable: true,
|
|
6705
|
-
get: function () { return
|
|
6669
|
+
get: function () { return chunkF7KQVVD2_cjs.Toaster; }
|
|
6670
|
+
});
|
|
6671
|
+
Object.defineProperty(exports, "formatRelativeTime", {
|
|
6672
|
+
enumerable: true,
|
|
6673
|
+
get: function () { return chunkF7KQVVD2_cjs.formatRelativeTime; }
|
|
6674
|
+
});
|
|
6675
|
+
Object.defineProperty(exports, "notify", {
|
|
6676
|
+
enumerable: true,
|
|
6677
|
+
get: function () { return chunkF7KQVVD2_cjs.notify; }
|
|
6678
|
+
});
|
|
6679
|
+
Object.defineProperty(exports, "seedNotifications", {
|
|
6680
|
+
enumerable: true,
|
|
6681
|
+
get: function () { return chunkF7KQVVD2_cjs.seedNotifications; }
|
|
6682
|
+
});
|
|
6683
|
+
Object.defineProperty(exports, "selectUnread", {
|
|
6684
|
+
enumerable: true,
|
|
6685
|
+
get: function () { return chunkF7KQVVD2_cjs.selectUnread; }
|
|
6686
|
+
});
|
|
6687
|
+
Object.defineProperty(exports, "toast", {
|
|
6688
|
+
enumerable: true,
|
|
6689
|
+
get: function () { return chunkF7KQVVD2_cjs.toast; }
|
|
6690
|
+
});
|
|
6691
|
+
Object.defineProperty(exports, "useNotify", {
|
|
6692
|
+
enumerable: true,
|
|
6693
|
+
get: function () { return chunkF7KQVVD2_cjs.useNotify; }
|
|
6706
6694
|
});
|
|
6707
6695
|
Object.defineProperty(exports, "AgentBadge", {
|
|
6708
6696
|
enumerable: true,
|
|
@@ -7236,14 +7224,6 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
|
|
|
7236
7224
|
enumerable: true,
|
|
7237
7225
|
get: function () { return chunk5SZ2J2WT_cjs.splitMarkdownBlocks; }
|
|
7238
7226
|
});
|
|
7239
|
-
Object.defineProperty(exports, "ScrollArea", {
|
|
7240
|
-
enumerable: true,
|
|
7241
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
7242
|
-
});
|
|
7243
|
-
Object.defineProperty(exports, "ScrollBar", {
|
|
7244
|
-
enumerable: true,
|
|
7245
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
7246
|
-
});
|
|
7247
7227
|
Object.defineProperty(exports, "closeOpenEmphasis", {
|
|
7248
7228
|
enumerable: true,
|
|
7249
7229
|
get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
|
|
@@ -7304,6 +7284,14 @@ Object.defineProperty(exports, "buttonVariants", {
|
|
|
7304
7284
|
enumerable: true,
|
|
7305
7285
|
get: function () { return chunkWYZJLZ67_cjs.buttonVariants; }
|
|
7306
7286
|
});
|
|
7287
|
+
Object.defineProperty(exports, "ScrollArea", {
|
|
7288
|
+
enumerable: true,
|
|
7289
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
7290
|
+
});
|
|
7291
|
+
Object.defineProperty(exports, "ScrollBar", {
|
|
7292
|
+
enumerable: true,
|
|
7293
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
7294
|
+
});
|
|
7307
7295
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
7308
7296
|
enumerable: true,
|
|
7309
7297
|
get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
|
|
@@ -7376,6 +7364,18 @@ Object.defineProperty(exports, "cn", {
|
|
|
7376
7364
|
enumerable: true,
|
|
7377
7365
|
get: function () { return chunkS6A6FSG7_cjs.cn; }
|
|
7378
7366
|
});
|
|
7367
|
+
Object.defineProperty(exports, "ArbiProvider", {
|
|
7368
|
+
enumerable: true,
|
|
7369
|
+
get: function () { return chunkIIT7DMQL_cjs.ArbiProvider; }
|
|
7370
|
+
});
|
|
7371
|
+
Object.defineProperty(exports, "useArbi", {
|
|
7372
|
+
enumerable: true,
|
|
7373
|
+
get: function () { return chunkIIT7DMQL_cjs.useArbi; }
|
|
7374
|
+
});
|
|
7375
|
+
Object.defineProperty(exports, "useDeploymentDomain", {
|
|
7376
|
+
enumerable: true,
|
|
7377
|
+
get: function () { return chunkIIT7DMQL_cjs.useDeploymentDomain; }
|
|
7378
|
+
});
|
|
7379
7379
|
Object.defineProperty(exports, "Arbi", {
|
|
7380
7380
|
enumerable: true,
|
|
7381
7381
|
get: function () { return browser.Arbi; }
|
package/dist/index.d.cts
CHANGED
|
@@ -1081,7 +1081,7 @@ declare function useTags(workspaceId: string | undefined, options?: {
|
|
|
1081
1081
|
fields?: {
|
|
1082
1082
|
id: string;
|
|
1083
1083
|
name: string;
|
|
1084
|
-
type: "text" | "number" | "date" | "checkbox" | "select" | "person";
|
|
1084
|
+
type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup";
|
|
1085
1085
|
options?: string[] | null | undefined;
|
|
1086
1086
|
tag_ext_id: string;
|
|
1087
1087
|
}[] | undefined;
|
|
@@ -1307,7 +1307,7 @@ declare function useProjects(options?: {
|
|
|
1307
1307
|
field_schema?: {
|
|
1308
1308
|
key: string;
|
|
1309
1309
|
label?: string | null | undefined;
|
|
1310
|
-
type: "text" | "number" | "date" | "checkbox" | "select" | "person";
|
|
1310
|
+
type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup";
|
|
1311
1311
|
options?: string[] | null | undefined;
|
|
1312
1312
|
}[] | null | undefined;
|
|
1313
1313
|
plan_interval?: ("month" | "year") | null | undefined;
|
|
@@ -2647,7 +2647,7 @@ declare function useFilteredProjects(filters: {
|
|
|
2647
2647
|
field_schema?: {
|
|
2648
2648
|
key: string;
|
|
2649
2649
|
label?: string | null | undefined;
|
|
2650
|
-
type: "text" | "number" | "date" | "checkbox" | "select" | "person";
|
|
2650
|
+
type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup";
|
|
2651
2651
|
options?: string[] | null | undefined;
|
|
2652
2652
|
}[] | null | undefined;
|
|
2653
2653
|
plan_interval?: ("month" | "year") | null | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1081,7 +1081,7 @@ declare function useTags(workspaceId: string | undefined, options?: {
|
|
|
1081
1081
|
fields?: {
|
|
1082
1082
|
id: string;
|
|
1083
1083
|
name: string;
|
|
1084
|
-
type: "text" | "number" | "date" | "checkbox" | "select" | "person";
|
|
1084
|
+
type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup";
|
|
1085
1085
|
options?: string[] | null | undefined;
|
|
1086
1086
|
tag_ext_id: string;
|
|
1087
1087
|
}[] | undefined;
|
|
@@ -1307,7 +1307,7 @@ declare function useProjects(options?: {
|
|
|
1307
1307
|
field_schema?: {
|
|
1308
1308
|
key: string;
|
|
1309
1309
|
label?: string | null | undefined;
|
|
1310
|
-
type: "text" | "number" | "date" | "checkbox" | "select" | "person";
|
|
1310
|
+
type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup";
|
|
1311
1311
|
options?: string[] | null | undefined;
|
|
1312
1312
|
}[] | null | undefined;
|
|
1313
1313
|
plan_interval?: ("month" | "year") | null | undefined;
|
|
@@ -2647,7 +2647,7 @@ declare function useFilteredProjects(filters: {
|
|
|
2647
2647
|
field_schema?: {
|
|
2648
2648
|
key: string;
|
|
2649
2649
|
label?: string | null | undefined;
|
|
2650
|
-
type: "text" | "number" | "date" | "checkbox" | "select" | "person";
|
|
2650
|
+
type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup";
|
|
2651
2651
|
options?: string[] | null | undefined;
|
|
2652
2652
|
}[] | null | undefined;
|
|
2653
2653
|
plan_interval?: ("month" | "year") | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { arbiQueryKeys, useDocuments, useConversations, useAssistantQuery, useConversationThreads, useWorkspaces, useParsedDocument, useTags, useActivity, useThumbnails } from './chunk-2JPBOZIH.js';
|
|
2
2
|
export { DEFAULT_USD_PER_CREDIT, arbiQueryKeys, creditsToUsd, formatCredits, isUsageMetered, useActivity, useAgents, useAssistantQuery, useConfigs, useConversationThreads, useConversations, useDeleteAgents, useDocuments, useFacts, useHealth, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSessions, useTags, useThumbnails, useUserUsageToday, useWorkspaceUsers, useWorkspaces } from './chunk-2JPBOZIH.js';
|
|
3
|
+
export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from './chunk-G6FHNURH.js';
|
|
3
4
|
import { formatRelativeTime } from './chunk-ECOSGMTW.js';
|
|
4
5
|
export { DEFAULT_NOTIFY_TONE, NotificationBell, Toaster, formatRelativeTime, notify, seedNotifications, selectUnread, toast, useNotify } from './chunk-ECOSGMTW.js';
|
|
5
|
-
export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from './chunk-G6FHNURH.js';
|
|
6
|
-
import { AudioViewer, ImageViewer, VideoViewer } from './chunk-HDCRPPBW.js';
|
|
7
|
-
import { useArbi } from './chunk-WBYNKFUO.js';
|
|
8
|
-
export { ArbiProvider, useArbi, useDeploymentDomain } from './chunk-WBYNKFUO.js';
|
|
9
6
|
import { returnFocusToMark, MarkMenu, AiMarkdown, Card, Badge, TagEntity, Input, FILE_TYPE_COLORS, getEntityIcon, UserEntity, getEntityColorStyles, AgentBadge, Textarea, Label, Slider, DocumentEntity, DocumentCard, useAudioRecorder, MicWaveformIndicator, IconToggle, classifyMediaError, formatElapsed, PassageCard } from './chunk-MHCN7OST.js';
|
|
10
7
|
export { AgentBadge, AiMarkdown, ArbiBotHeadIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, IconToggle, ImgIcon, InlineMicButton, Input, Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, StatusPill, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, Textarea, ThreadVisibilityIcon, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TxtIcon, UserEntity, UserMenu, VISIBILITY_ICONS, VerifiedBadge, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, badgeVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, formatElapsed, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, toggleVariants, useAudioRecorder } from './chunk-MHCN7OST.js';
|
|
11
8
|
import { MarkdownRenderer } from './chunk-YXSXGTYQ.js';
|
|
12
9
|
export { MarkdownRenderer, MarkdownStreamingContext, markdownBaseComponents, splitMarkdownBlocks } from './chunk-YXSXGTYQ.js';
|
|
13
|
-
import { ScrollArea } from './chunk-W4H6XAIU.js';
|
|
14
|
-
export { ScrollArea, ScrollBar } from './chunk-W4H6XAIU.js';
|
|
15
10
|
import { normalizeCitationMarkup } from './chunk-QRCMKEE6.js';
|
|
16
11
|
export { closeOpenEmphasis, normalizeCitationMarkup, trimOpenCitation } from './chunk-QRCMKEE6.js';
|
|
17
12
|
import { Button, Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from './chunk-YNNAJJ5Z.js';
|
|
18
13
|
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from './chunk-YNNAJJ5Z.js';
|
|
14
|
+
import { ScrollArea } from './chunk-W4H6XAIU.js';
|
|
15
|
+
export { ScrollArea, ScrollBar } from './chunk-W4H6XAIU.js';
|
|
19
16
|
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from './chunk-47CCGUWR.js';
|
|
20
17
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, PortalContainerProvider, usePortalContainer } from './chunk-47CCGUWR.js';
|
|
21
18
|
import { cn } from './chunk-SN5YV6FF.js';
|
|
22
19
|
export { cn } from './chunk-SN5YV6FF.js';
|
|
20
|
+
import { AudioViewer, ImageViewer, VideoViewer } from './chunk-HDCRPPBW.js';
|
|
21
|
+
import { useArbi } from './chunk-WBYNKFUO.js';
|
|
22
|
+
export { ArbiProvider, useArbi, useDeploymentDomain } from './chunk-WBYNKFUO.js';
|
|
23
23
|
import React, { memo, useState, createContext, useMemo, useCallback, useEffect, useRef, useLayoutEffect, useContext, useId, Fragment as Fragment$1 } from 'react';
|
|
24
24
|
import { useQueryClient, useMutation, useQuery } from '@tanstack/react-query';
|
|
25
25
|
import { resolveCitations, summarizeCitations, formatFileSize, connectWithReconnect, dm, identityErrorCode } from '@arbidocs/sdk/browser';
|
package/dist/ui/index.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkQJRP2LLQ_cjs = require('../chunk-QJRP2LLQ.cjs');
|
|
4
4
|
var chunk5SZ2J2WT_cjs = require('../chunk-5SZ2J2WT.cjs');
|
|
5
|
-
var chunkHUZB36QU_cjs = require('../chunk-HUZB36QU.cjs');
|
|
6
5
|
var chunkZ3LLUO32_cjs = require('../chunk-Z3LLUO32.cjs');
|
|
7
6
|
var chunkWYZJLZ67_cjs = require('../chunk-WYZJLZ67.cjs');
|
|
7
|
+
var chunkHUZB36QU_cjs = require('../chunk-HUZB36QU.cjs');
|
|
8
8
|
var chunkHJDR5HEO_cjs = require('../chunk-HJDR5HEO.cjs');
|
|
9
9
|
var chunkS6A6FSG7_cjs = require('../chunk-S6A6FSG7.cjs');
|
|
10
10
|
|
|
@@ -474,14 +474,6 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
|
|
|
474
474
|
enumerable: true,
|
|
475
475
|
get: function () { return chunk5SZ2J2WT_cjs.splitMarkdownBlocks; }
|
|
476
476
|
});
|
|
477
|
-
Object.defineProperty(exports, "ScrollArea", {
|
|
478
|
-
enumerable: true,
|
|
479
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
480
|
-
});
|
|
481
|
-
Object.defineProperty(exports, "ScrollBar", {
|
|
482
|
-
enumerable: true,
|
|
483
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
484
|
-
});
|
|
485
477
|
Object.defineProperty(exports, "closeOpenEmphasis", {
|
|
486
478
|
enumerable: true,
|
|
487
479
|
get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
|
|
@@ -538,6 +530,14 @@ Object.defineProperty(exports, "buttonVariants", {
|
|
|
538
530
|
enumerable: true,
|
|
539
531
|
get: function () { return chunkWYZJLZ67_cjs.buttonVariants; }
|
|
540
532
|
});
|
|
533
|
+
Object.defineProperty(exports, "ScrollArea", {
|
|
534
|
+
enumerable: true,
|
|
535
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
536
|
+
});
|
|
537
|
+
Object.defineProperty(exports, "ScrollBar", {
|
|
538
|
+
enumerable: true,
|
|
539
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
540
|
+
});
|
|
541
541
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
542
542
|
enumerable: true,
|
|
543
543
|
get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
|
package/dist/ui/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { AgentBadge, AiMarkdown, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DictateProvider, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EntityIcon, EntityPill, HoverCard, HoverCardContent, HoverCardTrigger, IconToggle, Input, Label, MarkMenu, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, StatusPill, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, Textarea, ThreadVisibilityIcon, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserEntity, UserMenu, VISIBILITY_ICONS, VerifiedBadge, VisibilityIcon, VisibilityToggle, badgeVariants, cardVariants, configureEntityRegistry, configureRagLabels, configureStatusRegistry, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, toggleVariants } from '../chunk-MHCN7OST.js';
|
|
2
2
|
export { MarkdownRenderer, MarkdownStreamingContext, markdownBaseComponents, splitMarkdownBlocks } from '../chunk-YXSXGTYQ.js';
|
|
3
|
-
export { ScrollArea, ScrollBar } from '../chunk-W4H6XAIU.js';
|
|
4
3
|
export { closeOpenEmphasis, trimOpenCitation } from '../chunk-QRCMKEE6.js';
|
|
5
4
|
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from '../chunk-YNNAJJ5Z.js';
|
|
5
|
+
export { ScrollArea, ScrollBar } from '../chunk-W4H6XAIU.js';
|
|
6
6
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, PortalContainerProvider, usePortalContainer } from '../chunk-47CCGUWR.js';
|
|
7
7
|
export { cn } from '../chunk-SN5YV6FF.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/react",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.79",
|
|
4
4
|
"description": "React hooks and provider for the ARBI SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"build-storybook": "storybook build"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@arbidocs/client": "0.4.
|
|
97
|
-
"@arbidocs/sdk": "0.4.
|
|
96
|
+
"@arbidocs/client": "0.4.79",
|
|
97
|
+
"@arbidocs/sdk": "0.4.79",
|
|
98
98
|
"@didit-protocol/sdk-web": "0.4.0",
|
|
99
99
|
"@radix-ui/react-avatar": "^1.2.0",
|
|
100
100
|
"@radix-ui/react-checkbox": "^1.3.5",
|
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
import { b as AnnotationLayer } from './model-DIwXRuGC.cjs';
|
|
2
1
|
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Where a layer is kept. The layer is data about a document, not part of it, so the host decides
|
|
6
|
-
* (backend API, IndexedDB, a file). This package ships an in-memory store and a localStorage
|
|
7
|
-
* store; both validate on load because stored JSON is untrusted. A store shared by several
|
|
8
|
-
* writers (ARBI's server-side markup) also implements the optional members: it may merge on save,
|
|
9
|
-
* pull others' changes, and say whether this user may write at all.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
interface AnnotationStore {
|
|
13
|
-
/** The saved layer, or an empty one for a document that has none yet. */
|
|
14
|
-
load(documentId: string): Promise<AnnotationLayer>;
|
|
15
|
-
/**
|
|
16
|
-
* Write a layer. A store with other writers may resolve to what it actually saved — this layer
|
|
17
|
-
* merged with theirs (see `mergeLayers`); the caller then rebases its newer edits onto it.
|
|
18
|
-
*/
|
|
19
|
-
save(layer: AnnotationLayer): Promise<AnnotationLayer | void>;
|
|
20
|
-
/** Others' changes since the last load or save, or null when there are none. */
|
|
21
|
-
pull?(documentId: string): Promise<AnnotationLayer | null>;
|
|
22
|
-
/** Whether this user may change the layer; false makes it view-only. Known after `load`. */
|
|
23
|
-
canEdit?(documentId: string): boolean;
|
|
24
|
-
}
|
|
25
|
-
/** Thrown by a store whose backend cannot be reached: the layer is kept and saved when back. */
|
|
26
|
-
declare class AnnotationStoreOfflineError extends Error {
|
|
27
|
-
constructor(message?: string);
|
|
28
|
-
}
|
|
29
|
-
declare function createMemoryStore(now?: () => string): AnnotationStore;
|
|
30
|
-
/**
|
|
31
|
-
* Per-browser store. Storage can be absent, full or blocked (private windows), so every access is
|
|
32
|
-
* guarded. A saved layer that no longer validates is ignored rather than crashing the viewer.
|
|
33
|
-
*/
|
|
34
|
-
declare function createLocalStorageStore(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, now?: () => string): AnnotationStore;
|
|
2
|
+
import { b as AnnotationLayer } from './model-DIwXRuGC.cjs';
|
|
35
3
|
|
|
36
4
|
/**
|
|
37
5
|
* Asks how to number and package a set of documents as a production. It only collects choices; the
|
|
@@ -81,4 +49,36 @@ declare function qrCornerFor(corner: ProductionCorner): ProductionCorner;
|
|
|
81
49
|
declare function moveItem<T>(items: readonly T[], from: number, to: number): T[];
|
|
82
50
|
declare function ProductionDialog({ open, onOpenChange, documents, leftOut, onConfirm, busy, progress, error, }: ProductionDialogProps): React.JSX.Element;
|
|
83
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Where a layer is kept. The layer is data about a document, not part of it, so the host decides
|
|
54
|
+
* (backend API, IndexedDB, a file). This package ships an in-memory store and a localStorage
|
|
55
|
+
* store; both validate on load because stored JSON is untrusted. A store shared by several
|
|
56
|
+
* writers (ARBI's server-side markup) also implements the optional members: it may merge on save,
|
|
57
|
+
* pull others' changes, and say whether this user may write at all.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
interface AnnotationStore {
|
|
61
|
+
/** The saved layer, or an empty one for a document that has none yet. */
|
|
62
|
+
load(documentId: string): Promise<AnnotationLayer>;
|
|
63
|
+
/**
|
|
64
|
+
* Write a layer. A store with other writers may resolve to what it actually saved — this layer
|
|
65
|
+
* merged with theirs (see `mergeLayers`); the caller then rebases its newer edits onto it.
|
|
66
|
+
*/
|
|
67
|
+
save(layer: AnnotationLayer): Promise<AnnotationLayer | void>;
|
|
68
|
+
/** Others' changes since the last load or save, or null when there are none. */
|
|
69
|
+
pull?(documentId: string): Promise<AnnotationLayer | null>;
|
|
70
|
+
/** Whether this user may change the layer; false makes it view-only. Known after `load`. */
|
|
71
|
+
canEdit?(documentId: string): boolean;
|
|
72
|
+
}
|
|
73
|
+
/** Thrown by a store whose backend cannot be reached: the layer is kept and saved when back. */
|
|
74
|
+
declare class AnnotationStoreOfflineError extends Error {
|
|
75
|
+
constructor(message?: string);
|
|
76
|
+
}
|
|
77
|
+
declare function createMemoryStore(now?: () => string): AnnotationStore;
|
|
78
|
+
/**
|
|
79
|
+
* Per-browser store. Storage can be absent, full or blocked (private windows), so every access is
|
|
80
|
+
* guarded. A saved layer that no longer validates is ignored rather than crashing the viewer.
|
|
81
|
+
*/
|
|
82
|
+
declare function createLocalStorageStore(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, now?: () => string): AnnotationStore;
|
|
83
|
+
|
|
84
84
|
export { type AnnotationStore as A, type ProductionChoices as P, AnnotationStoreOfflineError as a, type ProductionCorner as b, ProductionDialog as c, type ProductionDialogProps as d, type ProductionDocument as e, createLocalStorageStore as f, createMemoryStore as g, moveItem as m, qrCornerFor as q };
|
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
import { b as AnnotationLayer } from './model-DIwXRuGC.js';
|
|
2
1
|
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Where a layer is kept. The layer is data about a document, not part of it, so the host decides
|
|
6
|
-
* (backend API, IndexedDB, a file). This package ships an in-memory store and a localStorage
|
|
7
|
-
* store; both validate on load because stored JSON is untrusted. A store shared by several
|
|
8
|
-
* writers (ARBI's server-side markup) also implements the optional members: it may merge on save,
|
|
9
|
-
* pull others' changes, and say whether this user may write at all.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
interface AnnotationStore {
|
|
13
|
-
/** The saved layer, or an empty one for a document that has none yet. */
|
|
14
|
-
load(documentId: string): Promise<AnnotationLayer>;
|
|
15
|
-
/**
|
|
16
|
-
* Write a layer. A store with other writers may resolve to what it actually saved — this layer
|
|
17
|
-
* merged with theirs (see `mergeLayers`); the caller then rebases its newer edits onto it.
|
|
18
|
-
*/
|
|
19
|
-
save(layer: AnnotationLayer): Promise<AnnotationLayer | void>;
|
|
20
|
-
/** Others' changes since the last load or save, or null when there are none. */
|
|
21
|
-
pull?(documentId: string): Promise<AnnotationLayer | null>;
|
|
22
|
-
/** Whether this user may change the layer; false makes it view-only. Known after `load`. */
|
|
23
|
-
canEdit?(documentId: string): boolean;
|
|
24
|
-
}
|
|
25
|
-
/** Thrown by a store whose backend cannot be reached: the layer is kept and saved when back. */
|
|
26
|
-
declare class AnnotationStoreOfflineError extends Error {
|
|
27
|
-
constructor(message?: string);
|
|
28
|
-
}
|
|
29
|
-
declare function createMemoryStore(now?: () => string): AnnotationStore;
|
|
30
|
-
/**
|
|
31
|
-
* Per-browser store. Storage can be absent, full or blocked (private windows), so every access is
|
|
32
|
-
* guarded. A saved layer that no longer validates is ignored rather than crashing the viewer.
|
|
33
|
-
*/
|
|
34
|
-
declare function createLocalStorageStore(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, now?: () => string): AnnotationStore;
|
|
2
|
+
import { b as AnnotationLayer } from './model-DIwXRuGC.js';
|
|
35
3
|
|
|
36
4
|
/**
|
|
37
5
|
* Asks how to number and package a set of documents as a production. It only collects choices; the
|
|
@@ -81,4 +49,36 @@ declare function qrCornerFor(corner: ProductionCorner): ProductionCorner;
|
|
|
81
49
|
declare function moveItem<T>(items: readonly T[], from: number, to: number): T[];
|
|
82
50
|
declare function ProductionDialog({ open, onOpenChange, documents, leftOut, onConfirm, busy, progress, error, }: ProductionDialogProps): React.JSX.Element;
|
|
83
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Where a layer is kept. The layer is data about a document, not part of it, so the host decides
|
|
54
|
+
* (backend API, IndexedDB, a file). This package ships an in-memory store and a localStorage
|
|
55
|
+
* store; both validate on load because stored JSON is untrusted. A store shared by several
|
|
56
|
+
* writers (ARBI's server-side markup) also implements the optional members: it may merge on save,
|
|
57
|
+
* pull others' changes, and say whether this user may write at all.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
interface AnnotationStore {
|
|
61
|
+
/** The saved layer, or an empty one for a document that has none yet. */
|
|
62
|
+
load(documentId: string): Promise<AnnotationLayer>;
|
|
63
|
+
/**
|
|
64
|
+
* Write a layer. A store with other writers may resolve to what it actually saved — this layer
|
|
65
|
+
* merged with theirs (see `mergeLayers`); the caller then rebases its newer edits onto it.
|
|
66
|
+
*/
|
|
67
|
+
save(layer: AnnotationLayer): Promise<AnnotationLayer | void>;
|
|
68
|
+
/** Others' changes since the last load or save, or null when there are none. */
|
|
69
|
+
pull?(documentId: string): Promise<AnnotationLayer | null>;
|
|
70
|
+
/** Whether this user may change the layer; false makes it view-only. Known after `load`. */
|
|
71
|
+
canEdit?(documentId: string): boolean;
|
|
72
|
+
}
|
|
73
|
+
/** Thrown by a store whose backend cannot be reached: the layer is kept and saved when back. */
|
|
74
|
+
declare class AnnotationStoreOfflineError extends Error {
|
|
75
|
+
constructor(message?: string);
|
|
76
|
+
}
|
|
77
|
+
declare function createMemoryStore(now?: () => string): AnnotationStore;
|
|
78
|
+
/**
|
|
79
|
+
* Per-browser store. Storage can be absent, full or blocked (private windows), so every access is
|
|
80
|
+
* guarded. A saved layer that no longer validates is ignored rather than crashing the viewer.
|
|
81
|
+
*/
|
|
82
|
+
declare function createLocalStorageStore(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, now?: () => string): AnnotationStore;
|
|
83
|
+
|
|
84
84
|
export { type AnnotationStore as A, type ProductionChoices as P, AnnotationStoreOfflineError as a, type ProductionCorner as b, ProductionDialog as c, type ProductionDialogProps as d, type ProductionDocument as e, createLocalStorageStore as f, createMemoryStore as g, moveItem as m, qrCornerFor as q };
|