@arbidocs/react 0.4.121 → 0.4.122
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 +2 -2
- package/dist/artifacts/index.js +2 -2
- package/dist/document-tools/index.cjs +4 -4
- package/dist/document-tools/index.d.cts +1 -1
- package/dist/document-tools/index.d.ts +1 -1
- package/dist/document-tools/index.js +4 -4
- package/dist/index.cjs +69 -69
- package/dist/index.js +8 -8
- package/dist/ui/index.cjs +18 -18
- package/dist/ui/index.js +2 -2
- package/package.json +3 -3
- package/dist/{store-BEXGdE1y.d.cts → ProductionDialog-BRrZ5Lj5.d.cts} +33 -33
- package/dist/{store-CoLuVSxI.d.ts → ProductionDialog-DUC9BXWS.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 '../ProductionDialog-BRrZ5Lj5.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 '../ProductionDialog-BRrZ5Lj5.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 '../ProductionDialog-DUC9BXWS.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 '../ProductionDialog-DUC9BXWS.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
|
package/dist/artifacts/index.cjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkAFGE55RQ_cjs = require('../chunk-AFGE55RQ.cjs');
|
|
4
4
|
var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
|
|
5
|
-
var chunkTBELZWGV_cjs = require('../chunk-TBELZWGV.cjs');
|
|
6
5
|
var chunkT4IJHRRD_cjs = require('../chunk-T4IJHRRD.cjs');
|
|
7
6
|
var chunk5DCRIWCA_cjs = require('../chunk-5DCRIWCA.cjs');
|
|
8
7
|
var chunkVOFNX4P6_cjs = require('../chunk-VOFNX4P6.cjs');
|
|
8
|
+
var chunkTBELZWGV_cjs = require('../chunk-TBELZWGV.cjs');
|
|
9
9
|
require('../chunk-Z3LLUO32.cjs');
|
|
10
|
-
var chunkXIDDXD5Y_cjs = require('../chunk-XIDDXD5Y.cjs');
|
|
11
10
|
require('../chunk-S6A6FSG7.cjs');
|
|
11
|
+
var chunkXIDDXD5Y_cjs = require('../chunk-XIDDXD5Y.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
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { arbiQueryKeys, useDocuments, useDocumentVersionList } from '../chunk-5WXNTCI3.js';
|
|
2
2
|
import { revertRedlineRegion, buildHybridRedlineWithRegions, buildHybridRedlineMarkdown } from '../chunk-74N436VK.js';
|
|
3
3
|
export { buildHybridRedlineMarkdown, buildHybridRedlineWithRegions, revertRedlineRegion } from '../chunk-74N436VK.js';
|
|
4
|
-
import { MarkdownRenderer } from '../chunk-EKRRORFO.js';
|
|
5
4
|
import { isDocumentId, parseVersionRef, flattenChunks, documentVersions, toArtifactVersions, findVersion, versionLabel } from '../chunk-HKUD2NZN.js';
|
|
6
5
|
export { documentVersions, findVersion, flattenChunks, isDocumentId, parseVersionRef, savedFromId, toArtifactVersions, versionLabel, versionRef } from '../chunk-HKUD2NZN.js';
|
|
7
6
|
import { cleanDraftWithReport } from '../chunk-G6FHNURH.js';
|
|
8
7
|
export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from '../chunk-G6FHNURH.js';
|
|
9
8
|
import { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
10
9
|
export { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
10
|
+
import { MarkdownRenderer } from '../chunk-EKRRORFO.js';
|
|
11
11
|
import '../chunk-QRCMKEE6.js';
|
|
12
|
-
import { useArbi } from '../chunk-BUFDJCDS.js';
|
|
13
12
|
import '../chunk-SN5YV6FF.js';
|
|
13
|
+
import { useArbi } from '../chunk-BUFDJCDS.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';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkL2PXZWJM_cjs = require('../chunk-L2PXZWJM.cjs');
|
|
4
|
+
var chunkSSOPIPEX_cjs = require('../chunk-SSOPIPEX.cjs');
|
|
3
5
|
var chunkT4IJHRRD_cjs = require('../chunk-T4IJHRRD.cjs');
|
|
4
6
|
require('../chunk-5DCRIWCA.cjs');
|
|
5
7
|
require('../chunk-VOFNX4P6.cjs');
|
|
6
|
-
require('../chunk-Z3LLUO32.cjs');
|
|
7
|
-
var chunkXIDDXD5Y_cjs = require('../chunk-XIDDXD5Y.cjs');
|
|
8
|
-
var chunkL2PXZWJM_cjs = require('../chunk-L2PXZWJM.cjs');
|
|
9
|
-
var chunkSSOPIPEX_cjs = require('../chunk-SSOPIPEX.cjs');
|
|
10
8
|
require('../chunk-WYZJLZ67.cjs');
|
|
9
|
+
require('../chunk-Z3LLUO32.cjs');
|
|
11
10
|
require('../chunk-HJDR5HEO.cjs');
|
|
12
11
|
require('../chunk-S6A6FSG7.cjs');
|
|
12
|
+
var chunkXIDDXD5Y_cjs = require('../chunk-XIDDXD5Y.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 '../ProductionDialog-BRrZ5Lj5.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 '../ProductionDialog-DUC9BXWS.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';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { mergeLayers, AnnotationStoreOfflineError } from '../chunk-IHTBAY57.js';
|
|
2
|
+
import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-COWZGCL5.js';
|
|
1
3
|
import { parseVersionRef } from '../chunk-HKUD2NZN.js';
|
|
2
4
|
import '../chunk-G6FHNURH.js';
|
|
3
5
|
import '../chunk-WUTL62MC.js';
|
|
4
|
-
import '../chunk-QRCMKEE6.js';
|
|
5
|
-
import { useDeploymentDomain } from '../chunk-BUFDJCDS.js';
|
|
6
|
-
import { mergeLayers, AnnotationStoreOfflineError } from '../chunk-IHTBAY57.js';
|
|
7
|
-
import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-COWZGCL5.js';
|
|
8
6
|
import '../chunk-YNNAJJ5Z.js';
|
|
7
|
+
import '../chunk-QRCMKEE6.js';
|
|
9
8
|
import '../chunk-47CCGUWR.js';
|
|
10
9
|
import '../chunk-SN5YV6FF.js';
|
|
10
|
+
import { useDeploymentDomain } from '../chunk-BUFDJCDS.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 chunkAFGE55RQ_cjs = require('./chunk-AFGE55RQ.cjs');
|
|
4
|
+
var chunk5DCRIWCA_cjs = require('./chunk-5DCRIWCA.cjs');
|
|
4
5
|
var chunkF7KQVVD2_cjs = require('./chunk-F7KQVVD2.cjs');
|
|
5
6
|
var chunkA4ONEV57_cjs = require('./chunk-A4ONEV57.cjs');
|
|
6
7
|
var chunkTBELZWGV_cjs = require('./chunk-TBELZWGV.cjs');
|
|
7
|
-
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
8
|
-
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
9
|
-
var chunk5DCRIWCA_cjs = require('./chunk-5DCRIWCA.cjs');
|
|
10
|
-
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
11
|
-
var chunkXIDDXD5Y_cjs = require('./chunk-XIDDXD5Y.cjs');
|
|
12
8
|
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
9
|
+
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.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 chunkXIDDXD5Y_cjs = require('./chunk-XIDDXD5Y.cjs');
|
|
15
15
|
var React = require('react');
|
|
16
16
|
var reactQuery = require('@tanstack/react-query');
|
|
17
17
|
var browser = require('@arbidocs/sdk/browser');
|
|
@@ -7183,6 +7183,38 @@ Object.defineProperty(exports, "useWorkspaces", {
|
|
|
7183
7183
|
enumerable: true,
|
|
7184
7184
|
get: function () { return chunkAFGE55RQ_cjs.useWorkspaces; }
|
|
7185
7185
|
});
|
|
7186
|
+
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
7187
|
+
enumerable: true,
|
|
7188
|
+
get: function () { return chunk5DCRIWCA_cjs.cleanDraftMarkdown; }
|
|
7189
|
+
});
|
|
7190
|
+
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
7191
|
+
enumerable: true,
|
|
7192
|
+
get: function () { return chunk5DCRIWCA_cjs.cleanDraftWithReport; }
|
|
7193
|
+
});
|
|
7194
|
+
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
7195
|
+
enumerable: true,
|
|
7196
|
+
get: function () { return chunk5DCRIWCA_cjs.promoteBoldTitle; }
|
|
7197
|
+
});
|
|
7198
|
+
Object.defineProperty(exports, "repairParsedStructure", {
|
|
7199
|
+
enumerable: true,
|
|
7200
|
+
get: function () { return chunk5DCRIWCA_cjs.repairParsedStructure; }
|
|
7201
|
+
});
|
|
7202
|
+
Object.defineProperty(exports, "repairParsedTitle", {
|
|
7203
|
+
enumerable: true,
|
|
7204
|
+
get: function () { return chunk5DCRIWCA_cjs.repairParsedTitle; }
|
|
7205
|
+
});
|
|
7206
|
+
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
7207
|
+
enumerable: true,
|
|
7208
|
+
get: function () { return chunk5DCRIWCA_cjs.stripAgentPreamble; }
|
|
7209
|
+
});
|
|
7210
|
+
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
7211
|
+
enumerable: true,
|
|
7212
|
+
get: function () { return chunk5DCRIWCA_cjs.unescapeMarkdown; }
|
|
7213
|
+
});
|
|
7214
|
+
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
7215
|
+
enumerable: true,
|
|
7216
|
+
get: function () { return chunk5DCRIWCA_cjs.unwrapCitationLinks; }
|
|
7217
|
+
});
|
|
7186
7218
|
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
7187
7219
|
enumerable: true,
|
|
7188
7220
|
get: function () { return chunkF7KQVVD2_cjs.DEFAULT_NOTIFY_TONE; }
|
|
@@ -7791,70 +7823,6 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
|
|
|
7791
7823
|
enumerable: true,
|
|
7792
7824
|
get: function () { return chunkTBELZWGV_cjs.splitMarkdownBlocks; }
|
|
7793
7825
|
});
|
|
7794
|
-
Object.defineProperty(exports, "ScrollArea", {
|
|
7795
|
-
enumerable: true,
|
|
7796
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
7797
|
-
});
|
|
7798
|
-
Object.defineProperty(exports, "ScrollBar", {
|
|
7799
|
-
enumerable: true,
|
|
7800
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
7801
|
-
});
|
|
7802
|
-
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
7803
|
-
enumerable: true,
|
|
7804
|
-
get: function () { return chunk5DCRIWCA_cjs.cleanDraftMarkdown; }
|
|
7805
|
-
});
|
|
7806
|
-
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
7807
|
-
enumerable: true,
|
|
7808
|
-
get: function () { return chunk5DCRIWCA_cjs.cleanDraftWithReport; }
|
|
7809
|
-
});
|
|
7810
|
-
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
7811
|
-
enumerable: true,
|
|
7812
|
-
get: function () { return chunk5DCRIWCA_cjs.promoteBoldTitle; }
|
|
7813
|
-
});
|
|
7814
|
-
Object.defineProperty(exports, "repairParsedStructure", {
|
|
7815
|
-
enumerable: true,
|
|
7816
|
-
get: function () { return chunk5DCRIWCA_cjs.repairParsedStructure; }
|
|
7817
|
-
});
|
|
7818
|
-
Object.defineProperty(exports, "repairParsedTitle", {
|
|
7819
|
-
enumerable: true,
|
|
7820
|
-
get: function () { return chunk5DCRIWCA_cjs.repairParsedTitle; }
|
|
7821
|
-
});
|
|
7822
|
-
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
7823
|
-
enumerable: true,
|
|
7824
|
-
get: function () { return chunk5DCRIWCA_cjs.stripAgentPreamble; }
|
|
7825
|
-
});
|
|
7826
|
-
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
7827
|
-
enumerable: true,
|
|
7828
|
-
get: function () { return chunk5DCRIWCA_cjs.unescapeMarkdown; }
|
|
7829
|
-
});
|
|
7830
|
-
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
7831
|
-
enumerable: true,
|
|
7832
|
-
get: function () { return chunk5DCRIWCA_cjs.unwrapCitationLinks; }
|
|
7833
|
-
});
|
|
7834
|
-
Object.defineProperty(exports, "closeOpenEmphasis", {
|
|
7835
|
-
enumerable: true,
|
|
7836
|
-
get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
|
|
7837
|
-
});
|
|
7838
|
-
Object.defineProperty(exports, "normalizeCitationMarkup", {
|
|
7839
|
-
enumerable: true,
|
|
7840
|
-
get: function () { return chunkZ3LLUO32_cjs.normalizeCitationMarkup; }
|
|
7841
|
-
});
|
|
7842
|
-
Object.defineProperty(exports, "trimOpenCitation", {
|
|
7843
|
-
enumerable: true,
|
|
7844
|
-
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
7845
|
-
});
|
|
7846
|
-
Object.defineProperty(exports, "ArbiProvider", {
|
|
7847
|
-
enumerable: true,
|
|
7848
|
-
get: function () { return chunkXIDDXD5Y_cjs.ArbiProvider; }
|
|
7849
|
-
});
|
|
7850
|
-
Object.defineProperty(exports, "useArbi", {
|
|
7851
|
-
enumerable: true,
|
|
7852
|
-
get: function () { return chunkXIDDXD5Y_cjs.useArbi; }
|
|
7853
|
-
});
|
|
7854
|
-
Object.defineProperty(exports, "useDeploymentDomain", {
|
|
7855
|
-
enumerable: true,
|
|
7856
|
-
get: function () { return chunkXIDDXD5Y_cjs.useDeploymentDomain; }
|
|
7857
|
-
});
|
|
7858
7826
|
Object.defineProperty(exports, "Button", {
|
|
7859
7827
|
enumerable: true,
|
|
7860
7828
|
get: function () { return chunkWYZJLZ67_cjs.Button; }
|
|
@@ -7903,6 +7871,26 @@ Object.defineProperty(exports, "buttonVariants", {
|
|
|
7903
7871
|
enumerable: true,
|
|
7904
7872
|
get: function () { return chunkWYZJLZ67_cjs.buttonVariants; }
|
|
7905
7873
|
});
|
|
7874
|
+
Object.defineProperty(exports, "closeOpenEmphasis", {
|
|
7875
|
+
enumerable: true,
|
|
7876
|
+
get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
|
|
7877
|
+
});
|
|
7878
|
+
Object.defineProperty(exports, "normalizeCitationMarkup", {
|
|
7879
|
+
enumerable: true,
|
|
7880
|
+
get: function () { return chunkZ3LLUO32_cjs.normalizeCitationMarkup; }
|
|
7881
|
+
});
|
|
7882
|
+
Object.defineProperty(exports, "trimOpenCitation", {
|
|
7883
|
+
enumerable: true,
|
|
7884
|
+
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
7885
|
+
});
|
|
7886
|
+
Object.defineProperty(exports, "ScrollArea", {
|
|
7887
|
+
enumerable: true,
|
|
7888
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
7889
|
+
});
|
|
7890
|
+
Object.defineProperty(exports, "ScrollBar", {
|
|
7891
|
+
enumerable: true,
|
|
7892
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
7893
|
+
});
|
|
7906
7894
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
7907
7895
|
enumerable: true,
|
|
7908
7896
|
get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
|
|
@@ -7975,6 +7963,18 @@ Object.defineProperty(exports, "cn", {
|
|
|
7975
7963
|
enumerable: true,
|
|
7976
7964
|
get: function () { return chunkS6A6FSG7_cjs.cn; }
|
|
7977
7965
|
});
|
|
7966
|
+
Object.defineProperty(exports, "ArbiProvider", {
|
|
7967
|
+
enumerable: true,
|
|
7968
|
+
get: function () { return chunkXIDDXD5Y_cjs.ArbiProvider; }
|
|
7969
|
+
});
|
|
7970
|
+
Object.defineProperty(exports, "useArbi", {
|
|
7971
|
+
enumerable: true,
|
|
7972
|
+
get: function () { return chunkXIDDXD5Y_cjs.useArbi; }
|
|
7973
|
+
});
|
|
7974
|
+
Object.defineProperty(exports, "useDeploymentDomain", {
|
|
7975
|
+
enumerable: true,
|
|
7976
|
+
get: function () { return chunkXIDDXD5Y_cjs.useDeploymentDomain; }
|
|
7977
|
+
});
|
|
7978
7978
|
Object.defineProperty(exports, "Arbi", {
|
|
7979
7979
|
enumerable: true,
|
|
7980
7980
|
get: function () { return browser.Arbi; }
|
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { arbiQueryKeys, useDocuments, useConversations, useAssistantQuery, useConversationThreads, useWorkspaces, useParsedDocument, useTags, useActivity, useThumbnails } from './chunk-5WXNTCI3.js';
|
|
2
2
|
export { PROJECT_CREATION_DENIED_REASON, arbiQueryKeys, isUsageMetered, useActivity, useAgents, useAssistantQuery, useCanCreateProjects, useConfigs, useConversationThreads, useConversations, useCurrentUser, useDeleteAgents, useDocuments, useFacts, useFirmPool, useHealth, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSessions, useTags, useThumbnails, useTopUpFirmPool, useUserUsageToday, useWorkspaceActivity, useWorkspaceUsers, useWorkspaces } from './chunk-5WXNTCI3.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
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-FLZ3OT2V.js';
|
|
6
7
|
export { AUDIO_MIME_PREFERENCE, AgentBadge, AiMarkdown, ArbiBotHeadIcon, ArbiIcon, 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, DEFAULT_SEGMENTER_CONFIG, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, INITIAL_SEGMENTER_STATE, 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, VIDEO_MIME_PREFERENCE, VISIBILITY_ICONS, VerifiedBadge, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, badgeVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, createChunkedRecorder, flushSegmenter, formatElapsed, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, levelFromRms, pickRecorderMimeType, stepSegmenter, toggleVariants, useAudioRecorder } from './chunk-FLZ3OT2V.js';
|
|
7
8
|
import { MarkdownRenderer } from './chunk-EKRRORFO.js';
|
|
8
9
|
export { MarkdownRenderer, MarkdownStreamingContext, markdownBaseComponents, splitMarkdownBlocks } from './chunk-EKRRORFO.js';
|
|
9
|
-
import { ScrollArea } from './chunk-W4H6XAIU.js';
|
|
10
|
-
export { ScrollArea, ScrollBar } from './chunk-W4H6XAIU.js';
|
|
11
|
-
import { AudioViewer, ImageViewer, VideoViewer } from './chunk-HDCRPPBW.js';
|
|
12
|
-
export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from './chunk-G6FHNURH.js';
|
|
13
|
-
import { normalizeCitationMarkup } from './chunk-QRCMKEE6.js';
|
|
14
|
-
export { closeOpenEmphasis, normalizeCitationMarkup, trimOpenCitation } from './chunk-QRCMKEE6.js';
|
|
15
|
-
import { useArbi, ArbiContext } from './chunk-BUFDJCDS.js';
|
|
16
|
-
export { ArbiProvider, useArbi, useDeploymentDomain } from './chunk-BUFDJCDS.js';
|
|
17
10
|
import { Button, Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from './chunk-YNNAJJ5Z.js';
|
|
18
11
|
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from './chunk-YNNAJJ5Z.js';
|
|
12
|
+
import { normalizeCitationMarkup } from './chunk-QRCMKEE6.js';
|
|
13
|
+
export { closeOpenEmphasis, normalizeCitationMarkup, trimOpenCitation } from './chunk-QRCMKEE6.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, ArbiContext } from './chunk-BUFDJCDS.js';
|
|
22
|
+
export { ArbiProvider, useArbi, useDeploymentDomain } from './chunk-BUFDJCDS.js';
|
|
23
23
|
import React, { memo, useState, createContext, useMemo, useCallback, useEffect, useRef, useLayoutEffect, useContext, useId, useSyncExternalStore, Fragment as Fragment$1 } from 'react';
|
|
24
24
|
import { useQueryClient, useMutation, useQuery, onlineManager } from '@tanstack/react-query';
|
|
25
25
|
import { resolveCitations, summarizeCitations, settings, formatFileSize, connectWithReconnect, chats, identityErrorCode } from '@arbidocs/sdk/browser';
|
package/dist/ui/index.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkA4ONEV57_cjs = require('../chunk-A4ONEV57.cjs');
|
|
4
4
|
var chunkTBELZWGV_cjs = require('../chunk-TBELZWGV.cjs');
|
|
5
|
-
var chunkHUZB36QU_cjs = require('../chunk-HUZB36QU.cjs');
|
|
6
|
-
var chunkZ3LLUO32_cjs = require('../chunk-Z3LLUO32.cjs');
|
|
7
5
|
var chunkWYZJLZ67_cjs = require('../chunk-WYZJLZ67.cjs');
|
|
6
|
+
var chunkZ3LLUO32_cjs = require('../chunk-Z3LLUO32.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
|
|
|
@@ -478,22 +478,6 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
|
|
|
478
478
|
enumerable: true,
|
|
479
479
|
get: function () { return chunkTBELZWGV_cjs.splitMarkdownBlocks; }
|
|
480
480
|
});
|
|
481
|
-
Object.defineProperty(exports, "ScrollArea", {
|
|
482
|
-
enumerable: true,
|
|
483
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
484
|
-
});
|
|
485
|
-
Object.defineProperty(exports, "ScrollBar", {
|
|
486
|
-
enumerable: true,
|
|
487
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
488
|
-
});
|
|
489
|
-
Object.defineProperty(exports, "closeOpenEmphasis", {
|
|
490
|
-
enumerable: true,
|
|
491
|
-
get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
|
|
492
|
-
});
|
|
493
|
-
Object.defineProperty(exports, "trimOpenCitation", {
|
|
494
|
-
enumerable: true,
|
|
495
|
-
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
496
|
-
});
|
|
497
481
|
Object.defineProperty(exports, "Button", {
|
|
498
482
|
enumerable: true,
|
|
499
483
|
get: function () { return chunkWYZJLZ67_cjs.Button; }
|
|
@@ -542,6 +526,22 @@ Object.defineProperty(exports, "buttonVariants", {
|
|
|
542
526
|
enumerable: true,
|
|
543
527
|
get: function () { return chunkWYZJLZ67_cjs.buttonVariants; }
|
|
544
528
|
});
|
|
529
|
+
Object.defineProperty(exports, "closeOpenEmphasis", {
|
|
530
|
+
enumerable: true,
|
|
531
|
+
get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
|
|
532
|
+
});
|
|
533
|
+
Object.defineProperty(exports, "trimOpenCitation", {
|
|
534
|
+
enumerable: true,
|
|
535
|
+
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
536
|
+
});
|
|
537
|
+
Object.defineProperty(exports, "ScrollArea", {
|
|
538
|
+
enumerable: true,
|
|
539
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
540
|
+
});
|
|
541
|
+
Object.defineProperty(exports, "ScrollBar", {
|
|
542
|
+
enumerable: true,
|
|
543
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
544
|
+
});
|
|
545
545
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
546
546
|
enumerable: true,
|
|
547
547
|
get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
|
package/dist/ui/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { AgentBadge, AiMarkdown, ArbiIcon, 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-FLZ3OT2V.js';
|
|
2
2
|
export { MarkdownRenderer, MarkdownStreamingContext, markdownBaseComponents, splitMarkdownBlocks } from '../chunk-EKRRORFO.js';
|
|
3
|
-
export { ScrollArea, ScrollBar } from '../chunk-W4H6XAIU.js';
|
|
4
|
-
export { closeOpenEmphasis, trimOpenCitation } from '../chunk-QRCMKEE6.js';
|
|
5
3
|
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from '../chunk-YNNAJJ5Z.js';
|
|
4
|
+
export { closeOpenEmphasis, trimOpenCitation } from '../chunk-QRCMKEE6.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.122",
|
|
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.122",
|
|
97
|
+
"@arbidocs/sdk": "0.4.122",
|
|
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,5 +1,37 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { b as AnnotationLayer } from './model-DIwXRuGC.cjs';
|
|
2
|
+
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;
|
|
3
35
|
|
|
4
36
|
/**
|
|
5
37
|
* Asks how to number and package a set of documents as a production. It only collects choices; the
|
|
@@ -49,36 +81,4 @@ declare function qrCornerFor(corner: ProductionCorner): ProductionCorner;
|
|
|
49
81
|
declare function moveItem<T>(items: readonly T[], from: number, to: number): T[];
|
|
50
82
|
declare function ProductionDialog({ open, onOpenChange, documents, leftOut, onConfirm, busy, progress, error, }: ProductionDialogProps): React.JSX.Element;
|
|
51
83
|
|
|
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,5 +1,37 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { b as AnnotationLayer } from './model-DIwXRuGC.js';
|
|
2
|
+
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;
|
|
3
35
|
|
|
4
36
|
/**
|
|
5
37
|
* Asks how to number and package a set of documents as a production. It only collects choices; the
|
|
@@ -49,36 +81,4 @@ declare function qrCornerFor(corner: ProductionCorner): ProductionCorner;
|
|
|
49
81
|
declare function moveItem<T>(items: readonly T[], from: number, to: number): T[];
|
|
50
82
|
declare function ProductionDialog({ open, onOpenChange, documents, leftOut, onConfirm, busy, progress, error, }: ProductionDialogProps): React.JSX.Element;
|
|
51
83
|
|
|
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 };
|