@arbidocs/blocks 0.4.154 → 0.4.156
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/{ConnectedNativeDocxComparison-OLWRQSRS.js → ConnectedNativeDocxComparison-2PLOOXSH.js} +7 -7
- package/dist/{ConnectedNativeDocxComparison-OLWRQSRS.js.map → ConnectedNativeDocxComparison-2PLOOXSH.js.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-YORMOPPN.cjs → ConnectedNativeDocxComparison-S25BPUH5.cjs} +8 -8
- package/dist/{ConnectedNativeDocxComparison-YORMOPPN.cjs.map → ConnectedNativeDocxComparison-S25BPUH5.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-34EBIIFS.js → ConnectedNativeDocxEditor-JJAGMHZC.js} +5 -5
- package/dist/{ConnectedNativeDocxEditor-34EBIIFS.js.map → ConnectedNativeDocxEditor-JJAGMHZC.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-EHTWGGX3.cjs → ConnectedNativeDocxEditor-YA4HWLY4.cjs} +7 -7
- package/dist/{ConnectedNativeDocxEditor-EHTWGGX3.cjs.map → ConnectedNativeDocxEditor-YA4HWLY4.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-5DK6QGYN.cjs → ConnectedStreamedWordArtifact-EXYZAU4Y.cjs} +8 -8
- package/dist/ConnectedStreamedWordArtifact-EXYZAU4Y.cjs.map +1 -0
- package/dist/{ConnectedStreamedWordArtifact-GLIDLSAS.js → ConnectedStreamedWordArtifact-YAAXY5KY.js} +7 -7
- package/dist/{ConnectedStreamedWordArtifact-GLIDLSAS.js.map → ConnectedStreamedWordArtifact-YAAXY5KY.js.map} +1 -1
- package/dist/{NativeDocxEditor-XT5ZLFGU.js → NativeDocxEditor-JBQMH3MP.js} +3 -3
- package/dist/{NativeDocxEditor-XT5ZLFGU.js.map → NativeDocxEditor-JBQMH3MP.js.map} +1 -1
- package/dist/{NativeDocxEditor-5VBNM5I7.cjs → NativeDocxEditor-M3I776GD.cjs} +7 -7
- package/dist/{NativeDocxEditor-5VBNM5I7.cjs.map → NativeDocxEditor-M3I776GD.cjs.map} +1 -1
- package/dist/agents/index.cjs +238 -238
- package/dist/agents/index.js +4 -4
- package/dist/chat/index.cjs +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/{chunk-MF5KQ4PS.js → chunk-2CWM2CFZ.js} +4 -4
- package/dist/{chunk-MF5KQ4PS.js.map → chunk-2CWM2CFZ.js.map} +1 -1
- package/dist/{chunk-QKR5LWDO.js → chunk-6HG56GCT.js} +4 -4
- package/dist/{chunk-QKR5LWDO.js.map → chunk-6HG56GCT.js.map} +1 -1
- package/dist/chunk-6HMCF4AJ.js +1720 -0
- package/dist/chunk-6HMCF4AJ.js.map +1 -0
- package/dist/{chunk-KHXEIEXN.js → chunk-7IRSCMNK.js} +3 -3
- package/dist/{chunk-KHXEIEXN.js.map → chunk-7IRSCMNK.js.map} +1 -1
- package/dist/{chunk-TZOQKV64.js → chunk-EWCJXUBP.js} +3 -3
- package/dist/{chunk-TZOQKV64.js.map → chunk-EWCJXUBP.js.map} +1 -1
- package/dist/{chunk-CU6LDQ57.js → chunk-F3EZDBDJ.js} +4 -4
- package/dist/{chunk-CU6LDQ57.js.map → chunk-F3EZDBDJ.js.map} +1 -1
- package/dist/{chunk-YF3QUHKN.cjs → chunk-FEGXFABZ.cjs} +3 -3
- package/dist/{chunk-YF3QUHKN.cjs.map → chunk-FEGXFABZ.cjs.map} +1 -1
- package/dist/{chunk-GC2FSPSQ.cjs → chunk-HDJRSCRE.cjs} +6 -6
- package/dist/{chunk-GC2FSPSQ.cjs.map → chunk-HDJRSCRE.cjs.map} +1 -1
- package/dist/{chunk-CQCNU5KT.cjs → chunk-IJEISII2.cjs} +6 -6
- package/dist/{chunk-CQCNU5KT.cjs.map → chunk-IJEISII2.cjs.map} +1 -1
- package/dist/{chunk-NPR5BGFF.cjs → chunk-JSQEAPTC.cjs} +26 -14
- package/dist/chunk-JSQEAPTC.cjs.map +1 -0
- package/dist/{chunk-BDA3RHYD.cjs → chunk-MUDEL7UL.cjs} +25 -884
- package/dist/chunk-MUDEL7UL.cjs.map +1 -0
- package/dist/{chunk-6QAAIDQQ.cjs → chunk-O3FB62T5.cjs} +47 -47
- package/dist/{chunk-6QAAIDQQ.cjs.map → chunk-O3FB62T5.cjs.map} +1 -1
- package/dist/{chunk-265GOG4W.js → chunk-ONTUMV74.js} +26 -14
- package/dist/chunk-ONTUMV74.js.map +1 -0
- package/dist/chunk-OTU5KGQ6.cjs +18 -0
- package/dist/{chunk-HUATKA3M.cjs.map → chunk-OTU5KGQ6.cjs.map} +1 -1
- package/dist/{chunk-GO3BN76C.js → chunk-PGOSIJ2I.js} +3 -3
- package/dist/{chunk-GO3BN76C.js.map → chunk-PGOSIJ2I.js.map} +1 -1
- package/dist/chunk-S74QMZVZ.cjs +18 -0
- package/dist/{chunk-C3SMTA3C.cjs.map → chunk-S74QMZVZ.cjs.map} +1 -1
- package/dist/{chunk-KUT2Y7JF.cjs → chunk-TQIY2SVY.cjs} +5 -5
- package/dist/{chunk-KUT2Y7JF.cjs.map → chunk-TQIY2SVY.cjs.map} +1 -1
- package/dist/{chunk-MNG7N6M2.js → chunk-UKCCV63X.js} +4 -4
- package/dist/{chunk-MNG7N6M2.js.map → chunk-UKCCV63X.js.map} +1 -1
- package/dist/{chunk-B3FMUFAW.cjs → chunk-UKT3WH5Z.cjs} +3 -3
- package/dist/{chunk-B3FMUFAW.cjs.map → chunk-UKT3WH5Z.cjs.map} +1 -1
- package/dist/{chunk-P6RIBIVN.js → chunk-UPMADXDU.js} +3 -3
- package/dist/{chunk-P6RIBIVN.js.map → chunk-UPMADXDU.js.map} +1 -1
- package/dist/{chunk-757OYF6G.cjs → chunk-VY4UFXTM.cjs} +4 -4
- package/dist/{chunk-757OYF6G.cjs.map → chunk-VY4UFXTM.cjs.map} +1 -1
- package/dist/{chunk-RE7NULEY.js → chunk-W7CWGURO.js} +28 -873
- package/dist/chunk-W7CWGURO.js.map +1 -0
- package/dist/chunk-WV4TD2HZ.cjs +1785 -0
- package/dist/chunk-WV4TD2HZ.cjs.map +1 -0
- package/dist/{chunk-WU34CHU5.js → chunk-YMQDDUKW.js} +3 -3
- package/dist/{chunk-WU34CHU5.js.map → chunk-YMQDDUKW.js.map} +1 -1
- package/dist/connect/docx.cjs +11 -11
- package/dist/connect/docx.js +7 -7
- package/dist/connect/index.cjs +1313 -151
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -0
- package/dist/connect/index.js +1175 -27
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +48 -52
- package/dist/connect/viewer.cjs.map +1 -1
- package/dist/connect/viewer.js +10 -14
- package/dist/connect/viewer.js.map +1 -1
- package/dist/connection/files/DocumentSyncGlyph.d.ts +28 -0
- package/dist/connection/files/explorer/ConnectedFilesExplorer.d.ts +56 -0
- package/dist/connection/files/explorer/FileTiles.d.ts +87 -0
- package/dist/connection/files/index.d.ts +5 -0
- package/dist/connection/files/store.d.ts +27 -0
- package/dist/connection/files/support.d.ts +38 -0
- package/dist/document-tools/index.cjs +1 -1
- package/dist/document-tools/index.js +1 -1
- package/dist/docx/index.cjs +47 -47
- package/dist/docx/index.js +3 -3
- package/dist/facts/index.cjs +54 -54
- package/dist/facts/index.js +4 -4
- package/dist/files/DocStatusIcon.d.ts +5 -4
- package/dist/files/FailedStageIcon.d.ts +26 -0
- package/dist/files/folders/FolderProviderIcon.d.ts +29 -0
- package/dist/files/folders/folderPaths.d.ts +86 -0
- package/dist/files/folders/index.d.ts +2 -0
- package/dist/files/index.cjs +326 -238
- package/dist/files/index.d.ts +5 -0
- package/dist/files/index.js +2 -2
- package/dist/files/permissions.d.ts +28 -0
- package/dist/files/recently-deleted.d.ts +7 -0
- package/dist/files/visibility.d.ts +31 -0
- package/dist/index.cjs +371 -371
- package/dist/index.js +10 -10
- package/dist/studio/index.cjs +1 -1
- package/dist/studio/index.js +1 -1
- package/dist/workflow-canvas/index.cjs +16 -16
- package/dist/workflow-canvas/index.js +4 -4
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs +96 -29
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.d.cts +1 -1
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.d.ts +1 -1
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.js +98 -31
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/index.cjs +96 -29
- package/node_modules/@arbidocs/coedit/dist/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/index.d.cts +1 -1
- package/node_modules/@arbidocs/coedit/dist/index.d.ts +1 -1
- package/node_modules/@arbidocs/coedit/dist/index.js +98 -31
- package/node_modules/@arbidocs/coedit/dist/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.cjs +98 -33
- package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.cts +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.ts +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.js +99 -34
- package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/{session-Cf9iu1Vt.d.cts → session-WGvWs6yO.d.cts} +22 -4
- package/node_modules/@arbidocs/coedit/dist/{session-Cf9iu1Vt.d.ts → session-WGvWs6yO.d.ts} +22 -4
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +6 -5
- package/dist/ConnectedStreamedWordArtifact-5DK6QGYN.cjs.map +0 -1
- package/dist/chunk-265GOG4W.js.map +0 -1
- package/dist/chunk-BDA3RHYD.cjs.map +0 -1
- package/dist/chunk-C3SMTA3C.cjs +0 -18
- package/dist/chunk-HUATKA3M.cjs +0 -18
- package/dist/chunk-JGOST4IL.js +0 -648
- package/dist/chunk-JGOST4IL.js.map +0 -1
- package/dist/chunk-NPR5BGFF.cjs.map +0 -1
- package/dist/chunk-RE7NULEY.js.map +0 -1
- package/dist/chunk-YAEXSCUW.cjs +0 -677
- package/dist/chunk-YAEXSCUW.cjs.map +0 -1
package/dist/facts/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-2WLXQGWC.cjs');
|
|
4
|
+
var chunkUKT3WH5Z_cjs = require('../chunk-UKT3WH5Z.cjs');
|
|
6
5
|
var chunk5FYU7ZIU_cjs = require('../chunk-5FYU7ZIU.cjs');
|
|
6
|
+
require('../chunk-2WLXQGWC.cjs');
|
|
7
7
|
var chunk4RPBUMHB_cjs = require('../chunk-4RPBUMHB.cjs');
|
|
8
8
|
require('../chunk-VPPX5XUF.cjs');
|
|
9
9
|
var chunkRC25WMVB_cjs = require('../chunk-RC25WMVB.cjs');
|
|
10
10
|
require('../chunk-V4ISCZJ7.cjs');
|
|
11
11
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
12
12
|
var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
|
|
13
|
-
require('../chunk-BIXHB4LV.cjs');
|
|
14
13
|
require('../chunk-7RGLTF76.cjs');
|
|
15
14
|
require('../chunk-FX3K6LNZ.cjs');
|
|
16
15
|
require('../chunk-PPCATBOY.cjs');
|
|
17
16
|
var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
|
|
17
|
+
require('../chunk-BIXHB4LV.cjs');
|
|
18
18
|
require('../chunk-CNHUJRQ4.cjs');
|
|
19
19
|
require('../chunk-ULWRNGGE.cjs');
|
|
20
20
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
@@ -75,13 +75,13 @@ function FactsTable({
|
|
|
75
75
|
gridProps,
|
|
76
76
|
testId = "facts-table"
|
|
77
77
|
}) {
|
|
78
|
-
const l = { ...
|
|
78
|
+
const l = { ...chunkUKT3WH5Z_cjs.DEFAULT_FACT_COLUMN_LABELS, ...columnLabels };
|
|
79
79
|
const columnDefs = react.useMemo(
|
|
80
|
-
() =>
|
|
80
|
+
() => chunkUKT3WH5Z_cjs.createFactColumns({
|
|
81
81
|
isInChat,
|
|
82
82
|
onToggleInChat,
|
|
83
83
|
renderHeader: (params) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[12.5px] font-medium", children: params.displayName }),
|
|
84
|
-
renderRowActions: (fact) => onEdit && onDelete ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
84
|
+
renderRowActions: (fact) => onEdit && onDelete ? /* @__PURE__ */ jsxRuntime.jsx(chunkUKT3WH5Z_cjs.FactRowActions, { onEdit: () => onEdit(fact), onDelete: () => onDelete(fact) }) : null,
|
|
85
85
|
renderLabels: (fact) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex flex-wrap items-center gap-1", children: (fact.tags ?? []).map((tag) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
86
86
|
"span",
|
|
87
87
|
{
|
|
@@ -411,195 +411,195 @@ function FactSearchResult({
|
|
|
411
411
|
|
|
412
412
|
Object.defineProperty(exports, "DEFAULT_FACTS_BULK_BAR_LABELS", {
|
|
413
413
|
enumerable: true,
|
|
414
|
-
get: function () { return
|
|
414
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACTS_BULK_BAR_LABELS; }
|
|
415
415
|
});
|
|
416
416
|
Object.defineProperty(exports, "DEFAULT_FACTS_EMPTY_STATE_LABELS", {
|
|
417
417
|
enumerable: true,
|
|
418
|
-
get: function () { return
|
|
418
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACTS_EMPTY_STATE_LABELS; }
|
|
419
419
|
});
|
|
420
420
|
Object.defineProperty(exports, "DEFAULT_FACTS_FIELDS_BUTTON_LABELS", {
|
|
421
421
|
enumerable: true,
|
|
422
|
-
get: function () { return
|
|
422
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACTS_FIELDS_BUTTON_LABELS; }
|
|
423
423
|
});
|
|
424
424
|
Object.defineProperty(exports, "DEFAULT_FACTS_TOOLBAR_LABELS", {
|
|
425
425
|
enumerable: true,
|
|
426
|
-
get: function () { return
|
|
426
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACTS_TOOLBAR_LABELS; }
|
|
427
427
|
});
|
|
428
428
|
Object.defineProperty(exports, "DEFAULT_FACTS_VIEW_TOGGLE_LABELS", {
|
|
429
429
|
enumerable: true,
|
|
430
|
-
get: function () { return
|
|
430
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACTS_VIEW_TOGGLE_LABELS; }
|
|
431
431
|
});
|
|
432
432
|
Object.defineProperty(exports, "DEFAULT_FACT_COLUMN_LABELS", {
|
|
433
433
|
enumerable: true,
|
|
434
|
-
get: function () { return
|
|
434
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACT_COLUMN_LABELS; }
|
|
435
435
|
});
|
|
436
436
|
Object.defineProperty(exports, "DEFAULT_FACT_COLUMN_ORDER", {
|
|
437
437
|
enumerable: true,
|
|
438
|
-
get: function () { return
|
|
438
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACT_COLUMN_ORDER; }
|
|
439
439
|
});
|
|
440
440
|
Object.defineProperty(exports, "DEFAULT_FACT_COMPOSER_LABELS", {
|
|
441
441
|
enumerable: true,
|
|
442
|
-
get: function () { return
|
|
442
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACT_COMPOSER_LABELS; }
|
|
443
443
|
});
|
|
444
444
|
Object.defineProperty(exports, "DEFAULT_FACT_DATE_INPUT_LABELS", {
|
|
445
445
|
enumerable: true,
|
|
446
|
-
get: function () { return
|
|
446
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACT_DATE_INPUT_LABELS; }
|
|
447
447
|
});
|
|
448
448
|
Object.defineProperty(exports, "DEFAULT_FACT_LABELS_CELL_LABELS", {
|
|
449
449
|
enumerable: true,
|
|
450
|
-
get: function () { return
|
|
450
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACT_LABELS_CELL_LABELS; }
|
|
451
451
|
});
|
|
452
452
|
Object.defineProperty(exports, "DEFAULT_FACT_ROW_ACTIONS_LABELS", {
|
|
453
453
|
enumerable: true,
|
|
454
|
-
get: function () { return
|
|
454
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACT_ROW_ACTIONS_LABELS; }
|
|
455
455
|
});
|
|
456
456
|
Object.defineProperty(exports, "DEFAULT_FACT_SOURCES_ROW_LABELS", {
|
|
457
457
|
enumerable: true,
|
|
458
|
-
get: function () { return
|
|
458
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACT_SOURCES_ROW_LABELS; }
|
|
459
459
|
});
|
|
460
460
|
Object.defineProperty(exports, "DEFAULT_FACT_SOURCE_GROUP_LABELS", {
|
|
461
461
|
enumerable: true,
|
|
462
|
-
get: function () { return
|
|
462
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACT_SOURCE_GROUP_LABELS; }
|
|
463
463
|
});
|
|
464
464
|
Object.defineProperty(exports, "DEFAULT_FACT_TIMELINE_LABELS", {
|
|
465
465
|
enumerable: true,
|
|
466
|
-
get: function () { return
|
|
466
|
+
get: function () { return chunkUKT3WH5Z_cjs.DEFAULT_FACT_TIMELINE_LABELS; }
|
|
467
467
|
});
|
|
468
468
|
Object.defineProperty(exports, "EMPTY_FACT_DATE_FIELDS", {
|
|
469
469
|
enumerable: true,
|
|
470
|
-
get: function () { return
|
|
470
|
+
get: function () { return chunkUKT3WH5Z_cjs.EMPTY_FACT_DATE_FIELDS; }
|
|
471
471
|
});
|
|
472
472
|
Object.defineProperty(exports, "FactComposer", {
|
|
473
473
|
enumerable: true,
|
|
474
|
-
get: function () { return
|
|
474
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactComposer; }
|
|
475
475
|
});
|
|
476
476
|
Object.defineProperty(exports, "FactDateInput", {
|
|
477
477
|
enumerable: true,
|
|
478
|
-
get: function () { return
|
|
478
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactDateInput; }
|
|
479
479
|
});
|
|
480
480
|
Object.defineProperty(exports, "FactFieldRow", {
|
|
481
481
|
enumerable: true,
|
|
482
|
-
get: function () { return
|
|
482
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactFieldRow; }
|
|
483
483
|
});
|
|
484
484
|
Object.defineProperty(exports, "FactLabelsCell", {
|
|
485
485
|
enumerable: true,
|
|
486
|
-
get: function () { return
|
|
486
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactLabelsCell; }
|
|
487
487
|
});
|
|
488
488
|
Object.defineProperty(exports, "FactRowActions", {
|
|
489
489
|
enumerable: true,
|
|
490
|
-
get: function () { return
|
|
490
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactRowActions; }
|
|
491
491
|
});
|
|
492
492
|
Object.defineProperty(exports, "FactSourceGroup", {
|
|
493
493
|
enumerable: true,
|
|
494
|
-
get: function () { return
|
|
494
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactSourceGroup; }
|
|
495
495
|
});
|
|
496
496
|
Object.defineProperty(exports, "FactSourcesRow", {
|
|
497
497
|
enumerable: true,
|
|
498
|
-
get: function () { return
|
|
498
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactSourcesRow; }
|
|
499
499
|
});
|
|
500
500
|
Object.defineProperty(exports, "FactsBulkBar", {
|
|
501
501
|
enumerable: true,
|
|
502
|
-
get: function () { return
|
|
502
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactsBulkBar; }
|
|
503
503
|
});
|
|
504
504
|
Object.defineProperty(exports, "FactsCalendar", {
|
|
505
505
|
enumerable: true,
|
|
506
|
-
get: function () { return
|
|
506
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactsCalendar; }
|
|
507
507
|
});
|
|
508
508
|
Object.defineProperty(exports, "FactsEmptyState", {
|
|
509
509
|
enumerable: true,
|
|
510
|
-
get: function () { return
|
|
510
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactsEmptyState; }
|
|
511
511
|
});
|
|
512
512
|
Object.defineProperty(exports, "FactsFieldsButton", {
|
|
513
513
|
enumerable: true,
|
|
514
|
-
get: function () { return
|
|
514
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactsFieldsButton; }
|
|
515
515
|
});
|
|
516
516
|
Object.defineProperty(exports, "FactsGanttPane", {
|
|
517
517
|
enumerable: true,
|
|
518
|
-
get: function () { return
|
|
518
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactsGanttPane; }
|
|
519
519
|
});
|
|
520
520
|
Object.defineProperty(exports, "FactsLoadError", {
|
|
521
521
|
enumerable: true,
|
|
522
|
-
get: function () { return
|
|
522
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactsLoadError; }
|
|
523
523
|
});
|
|
524
524
|
Object.defineProperty(exports, "FactsLoading", {
|
|
525
525
|
enumerable: true,
|
|
526
|
-
get: function () { return
|
|
526
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactsLoading; }
|
|
527
527
|
});
|
|
528
528
|
Object.defineProperty(exports, "FactsToolbar", {
|
|
529
529
|
enumerable: true,
|
|
530
|
-
get: function () { return
|
|
530
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactsToolbar; }
|
|
531
531
|
});
|
|
532
532
|
Object.defineProperty(exports, "FactsViewToggle", {
|
|
533
533
|
enumerable: true,
|
|
534
|
-
get: function () { return
|
|
534
|
+
get: function () { return chunkUKT3WH5Z_cjs.FactsViewToggle; }
|
|
535
535
|
});
|
|
536
536
|
Object.defineProperty(exports, "ISO_DATE_FILTER_PARAMS", {
|
|
537
537
|
enumerable: true,
|
|
538
|
-
get: function () { return
|
|
538
|
+
get: function () { return chunkUKT3WH5Z_cjs.ISO_DATE_FILTER_PARAMS; }
|
|
539
539
|
});
|
|
540
540
|
Object.defineProperty(exports, "buildFactCitations", {
|
|
541
541
|
enumerable: true,
|
|
542
|
-
get: function () { return
|
|
542
|
+
get: function () { return chunkUKT3WH5Z_cjs.buildFactCitations; }
|
|
543
543
|
});
|
|
544
544
|
Object.defineProperty(exports, "chunkIdsOf", {
|
|
545
545
|
enumerable: true,
|
|
546
|
-
get: function () { return
|
|
546
|
+
get: function () { return chunkUKT3WH5Z_cjs.chunkIdsOf; }
|
|
547
547
|
});
|
|
548
548
|
Object.defineProperty(exports, "citedVersionRef", {
|
|
549
549
|
enumerable: true,
|
|
550
|
-
get: function () { return
|
|
550
|
+
get: function () { return chunkUKT3WH5Z_cjs.citedVersionRef; }
|
|
551
551
|
});
|
|
552
552
|
Object.defineProperty(exports, "createFactColumns", {
|
|
553
553
|
enumerable: true,
|
|
554
|
-
get: function () { return
|
|
554
|
+
get: function () { return chunkUKT3WH5Z_cjs.createFactColumns; }
|
|
555
555
|
});
|
|
556
556
|
Object.defineProperty(exports, "docIdsOf", {
|
|
557
557
|
enumerable: true,
|
|
558
|
-
get: function () { return
|
|
558
|
+
get: function () { return chunkUKT3WH5Z_cjs.docIdsOf; }
|
|
559
559
|
});
|
|
560
560
|
Object.defineProperty(exports, "enableFactTableColumnResize", {
|
|
561
561
|
enumerable: true,
|
|
562
|
-
get: function () { return
|
|
562
|
+
get: function () { return chunkUKT3WH5Z_cjs.enableFactTableColumnResize; }
|
|
563
563
|
});
|
|
564
564
|
Object.defineProperty(exports, "factDateFieldsToSpan", {
|
|
565
565
|
enumerable: true,
|
|
566
|
-
get: function () { return
|
|
566
|
+
get: function () { return chunkUKT3WH5Z_cjs.factDateFieldsToSpan; }
|
|
567
567
|
});
|
|
568
568
|
Object.defineProperty(exports, "factDateSpanToFields", {
|
|
569
569
|
enumerable: true,
|
|
570
|
-
get: function () { return
|
|
570
|
+
get: function () { return chunkUKT3WH5Z_cjs.factDateSpanToFields; }
|
|
571
571
|
});
|
|
572
572
|
Object.defineProperty(exports, "hasChunk", {
|
|
573
573
|
enumerable: true,
|
|
574
|
-
get: function () { return
|
|
574
|
+
get: function () { return chunkUKT3WH5Z_cjs.hasChunk; }
|
|
575
575
|
});
|
|
576
576
|
Object.defineProperty(exports, "isWholeDoc", {
|
|
577
577
|
enumerable: true,
|
|
578
|
-
get: function () { return
|
|
578
|
+
get: function () { return chunkUKT3WH5Z_cjs.isWholeDoc; }
|
|
579
579
|
});
|
|
580
580
|
Object.defineProperty(exports, "sourceDocCount", {
|
|
581
581
|
enumerable: true,
|
|
582
|
-
get: function () { return
|
|
582
|
+
get: function () { return chunkUKT3WH5Z_cjs.sourceDocCount; }
|
|
583
583
|
});
|
|
584
584
|
Object.defineProperty(exports, "toFactCitations", {
|
|
585
585
|
enumerable: true,
|
|
586
|
-
get: function () { return
|
|
586
|
+
get: function () { return chunkUKT3WH5Z_cjs.toFactCitations; }
|
|
587
587
|
});
|
|
588
588
|
Object.defineProperty(exports, "withChunk", {
|
|
589
589
|
enumerable: true,
|
|
590
|
-
get: function () { return
|
|
590
|
+
get: function () { return chunkUKT3WH5Z_cjs.withChunk; }
|
|
591
591
|
});
|
|
592
592
|
Object.defineProperty(exports, "withDoc", {
|
|
593
593
|
enumerable: true,
|
|
594
|
-
get: function () { return
|
|
594
|
+
get: function () { return chunkUKT3WH5Z_cjs.withDoc; }
|
|
595
595
|
});
|
|
596
596
|
Object.defineProperty(exports, "withoutChunk", {
|
|
597
597
|
enumerable: true,
|
|
598
|
-
get: function () { return
|
|
598
|
+
get: function () { return chunkUKT3WH5Z_cjs.withoutChunk; }
|
|
599
599
|
});
|
|
600
600
|
Object.defineProperty(exports, "withoutDoc", {
|
|
601
601
|
enumerable: true,
|
|
602
|
-
get: function () { return
|
|
602
|
+
get: function () { return chunkUKT3WH5Z_cjs.withoutDoc; }
|
|
603
603
|
});
|
|
604
604
|
Object.defineProperty(exports, "DEFAULT_FACT_PASSAGES_LABELS", {
|
|
605
605
|
enumerable: true,
|
package/dist/facts/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { DEFAULT_FACT_COLUMN_LABELS, createFactColumns, FactRowActions } from '../chunk-
|
|
3
|
-
export { DEFAULT_FACTS_BULK_BAR_LABELS, DEFAULT_FACTS_EMPTY_STATE_LABELS, DEFAULT_FACTS_FIELDS_BUTTON_LABELS, DEFAULT_FACTS_TOOLBAR_LABELS, DEFAULT_FACTS_VIEW_TOGGLE_LABELS, DEFAULT_FACT_COLUMN_LABELS, DEFAULT_FACT_COLUMN_ORDER, DEFAULT_FACT_COMPOSER_LABELS, DEFAULT_FACT_DATE_INPUT_LABELS, DEFAULT_FACT_LABELS_CELL_LABELS, DEFAULT_FACT_ROW_ACTIONS_LABELS, DEFAULT_FACT_SOURCES_ROW_LABELS, DEFAULT_FACT_SOURCE_GROUP_LABELS, DEFAULT_FACT_TIMELINE_LABELS, EMPTY_FACT_DATE_FIELDS, FactComposer, FactDateInput, FactFieldRow, FactLabelsCell, FactRowActions, FactSourceGroup, FactSourcesRow, FactsBulkBar, FactsCalendar, FactsEmptyState, FactsFieldsButton, FactsGanttPane, FactsLoadError, FactsLoading, FactsToolbar, FactsViewToggle, ISO_DATE_FILTER_PARAMS, buildFactCitations, chunkIdsOf, citedVersionRef, createFactColumns, docIdsOf, enableFactTableColumnResize, factDateFieldsToSpan, factDateSpanToFields, hasChunk, isWholeDoc, sourceDocCount, toFactCitations, withChunk, withDoc, withoutChunk, withoutDoc } from '../chunk-
|
|
4
|
-
import '../chunk-JJA6GQKH.js';
|
|
2
|
+
import { DEFAULT_FACT_COLUMN_LABELS, createFactColumns, FactRowActions } from '../chunk-YMQDDUKW.js';
|
|
3
|
+
export { DEFAULT_FACTS_BULK_BAR_LABELS, DEFAULT_FACTS_EMPTY_STATE_LABELS, DEFAULT_FACTS_FIELDS_BUTTON_LABELS, DEFAULT_FACTS_TOOLBAR_LABELS, DEFAULT_FACTS_VIEW_TOGGLE_LABELS, DEFAULT_FACT_COLUMN_LABELS, DEFAULT_FACT_COLUMN_ORDER, DEFAULT_FACT_COMPOSER_LABELS, DEFAULT_FACT_DATE_INPUT_LABELS, DEFAULT_FACT_LABELS_CELL_LABELS, DEFAULT_FACT_ROW_ACTIONS_LABELS, DEFAULT_FACT_SOURCES_ROW_LABELS, DEFAULT_FACT_SOURCE_GROUP_LABELS, DEFAULT_FACT_TIMELINE_LABELS, EMPTY_FACT_DATE_FIELDS, FactComposer, FactDateInput, FactFieldRow, FactLabelsCell, FactRowActions, FactSourceGroup, FactSourcesRow, FactsBulkBar, FactsCalendar, FactsEmptyState, FactsFieldsButton, FactsGanttPane, FactsLoadError, FactsLoading, FactsToolbar, FactsViewToggle, ISO_DATE_FILTER_PARAMS, buildFactCitations, chunkIdsOf, citedVersionRef, createFactColumns, docIdsOf, enableFactTableColumnResize, factDateFieldsToSpan, factDateSpanToFields, hasChunk, isWholeDoc, sourceDocCount, toFactCitations, withChunk, withDoc, withoutChunk, withoutDoc } from '../chunk-YMQDDUKW.js';
|
|
5
4
|
export { DEFAULT_FACT_PASSAGES_LABELS, FactPassageItem, FactSourcesPanel, renderPreviewInline, toPreviewLine } from '../chunk-HFZ45FD3.js';
|
|
5
|
+
import '../chunk-JJA6GQKH.js';
|
|
6
6
|
import { SearchHit } from '../chunk-DEPF5LQI.js';
|
|
7
7
|
import '../chunk-4EZVCGRL.js';
|
|
8
8
|
export { decodeWhitespaceEntities } from '../chunk-AF6RDAJF.js';
|
|
9
9
|
import '../chunk-NUNKSZKU.js';
|
|
10
10
|
export { DEFAULT_FILTER_INPUT_LABELS as DEFAULT_FACTS_FILTER_INPUT_LABELS, DEFAULT_FILTER_FIELDS as FACTS_SEARCH_FIELD_OPTIONS, FilterInput as FactsFilterInput } from '../chunk-YU2KUMGE.js';
|
|
11
11
|
import { GridView } from '../chunk-N5YEF3LC.js';
|
|
12
|
-
import '../chunk-GTCC2VAR.js';
|
|
13
12
|
import '../chunk-4WWM3GQ5.js';
|
|
14
13
|
import '../chunk-SLSBJRWW.js';
|
|
15
14
|
import '../chunk-NPLYHR2E.js';
|
|
16
15
|
import { testIdOr } from '../chunk-7F6CBP3Z.js';
|
|
16
|
+
import '../chunk-GTCC2VAR.js';
|
|
17
17
|
import '../chunk-F57LNUSZ.js';
|
|
18
18
|
import '../chunk-TX2ZICS7.js';
|
|
19
19
|
import { initials } from '../chunk-OXF2IFXG.js';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
1
|
export interface DocStatusIconProps {
|
|
3
2
|
/** Document processing status (case-insensitive); unknown / empty renders nothing. */
|
|
4
3
|
status?: string | null;
|
|
5
4
|
/** Activating the glyph (click, Enter, Space) e.g. opens the status details. */
|
|
6
5
|
onClick?: () => void;
|
|
7
|
-
/**
|
|
8
|
-
|
|
6
|
+
/** Where a failed document's processing stopped (the failed glyph differs per stage). */
|
|
7
|
+
failedStage?: string | null;
|
|
8
|
+
/** Why it failed, added to the failed glyph's title. */
|
|
9
|
+
errorMessage?: string | null;
|
|
9
10
|
className?: string;
|
|
10
11
|
}
|
|
11
12
|
/** Compact status glyph of a document row (ready, empty, low content, indexing, queued, failed). */
|
|
12
|
-
export declare function DocStatusIcon({ status, onClick,
|
|
13
|
+
export declare function DocStatusIcon({ status, onClick, failedStage, errorMessage, className, }: DocStatusIconProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stage-aware failure icon.
|
|
3
|
+
*
|
|
4
|
+
* All variants share the red color and "alert" weight so the cell still
|
|
5
|
+
* reads as "failure" at a glance, but the glyph differs per pipeline
|
|
6
|
+
* stage so users can tell *where* it died without opening details.
|
|
7
|
+
*
|
|
8
|
+
* Backend taxonomy (mirrors src/models/document.py FAILABLE_STAGES):
|
|
9
|
+
* parsing — parser service: extraction / OCR / marker-subchunk
|
|
10
|
+
* indexing — Qdrant chunk + vector writes
|
|
11
|
+
* encrypting — SecretBox wrap of chunks/metadata
|
|
12
|
+
* analysing — doctagllm metadata extraction
|
|
13
|
+
* queued — failed before processing started
|
|
14
|
+
* unknown — current code couldn't classify (defensive fallback)
|
|
15
|
+
* null — legacy failure predating the failed_stage column;
|
|
16
|
+
* rendered as "Failed (stage unknown)"
|
|
17
|
+
*/
|
|
18
|
+
export type FailedStage = 'parsing' | 'indexing' | 'encrypting' | 'analysing' | 'queued' | 'unknown';
|
|
19
|
+
interface FailedStageIconProps {
|
|
20
|
+
stage: string | null | undefined;
|
|
21
|
+
errorMessage?: string | null;
|
|
22
|
+
className?: string;
|
|
23
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const FailedStageIcon: import("react").NamedExoticComponent<FailedStageIconProps>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* folderProviderIcon
|
|
3
|
+
*
|
|
4
|
+
* Maps a folder path to the brand mark of the connector that imported it, so
|
|
5
|
+
* connector-created folders (e.g. "Outlook (jane@arbi.city)") show their
|
|
6
|
+
* source at a glance. Only the ROOT segment is matched — nested subfolders
|
|
7
|
+
* keep the generic folder icon. Returns null when the root isn't a known
|
|
8
|
+
* provider (including the legacy bare "Email" root), letting call sites fall
|
|
9
|
+
* back to their existing folder glyph.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Provider brand mark for a folder path's root segment, or null when the
|
|
13
|
+
* folder isn't a connector import (call sites render their usual icon).
|
|
14
|
+
*/
|
|
15
|
+
export declare function FolderProviderIcon({ folderPath, className, }: {
|
|
16
|
+
folderPath: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
}): import("react").JSX.Element | null;
|
|
19
|
+
/** True when the folder path's root segment belongs to a known connector. */
|
|
20
|
+
export declare function hasFolderProviderIcon(folderPath: string): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Display text for a single folder path segment. Provider roots drop the
|
|
23
|
+
* provider name — the brand mark already says it — leaving just the account:
|
|
24
|
+
* "Outlook (jane@arbi.city)" → "jane@arbi.city"
|
|
25
|
+
* "Outlook" (legacy bare root) → "" (the logo stands alone)
|
|
26
|
+
* Non-provider segments are returned unchanged. Stored paths are untouched;
|
|
27
|
+
* this is display-only.
|
|
28
|
+
*/
|
|
29
|
+
export declare function formatFolderSegment(segment: string): string;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure helpers that turn the flat document list into a navigable folder tree.
|
|
3
|
+
*
|
|
4
|
+
* Folders are not a backend entity — each document carries a slash-separated
|
|
5
|
+
* `folder` path string (e.g. `"Reports/Q1"`, or `null`/`""` for the root).
|
|
6
|
+
* These helpers derive, for a given path, the immediate sub-folders (with
|
|
7
|
+
* descendant counts) and the files that live directly in that folder. Kept
|
|
8
|
+
* pure and side-effect-free so the navigation logic is unit-testable.
|
|
9
|
+
*/
|
|
10
|
+
/** The fields of a document the folder view reads. */
|
|
11
|
+
export interface FolderDocument {
|
|
12
|
+
external_id: string;
|
|
13
|
+
file_name?: string | null;
|
|
14
|
+
file_type?: string | null;
|
|
15
|
+
file_size?: number | null;
|
|
16
|
+
folder?: string | null;
|
|
17
|
+
parent_ext_id?: string | null;
|
|
18
|
+
created_at?: string | null;
|
|
19
|
+
doc_metadata?: {
|
|
20
|
+
title?: string | null;
|
|
21
|
+
} | null;
|
|
22
|
+
}
|
|
23
|
+
export interface ExplorerFolder {
|
|
24
|
+
kind: 'folder';
|
|
25
|
+
/** The folder's own name (last path segment). */
|
|
26
|
+
name: string;
|
|
27
|
+
/** Full path segments from the root, including this folder. */
|
|
28
|
+
path: string[];
|
|
29
|
+
/** Number of documents anywhere beneath this folder. */
|
|
30
|
+
count: number;
|
|
31
|
+
}
|
|
32
|
+
export interface ExplorerFile<D extends FolderDocument = FolderDocument> {
|
|
33
|
+
kind: 'file';
|
|
34
|
+
doc: D;
|
|
35
|
+
}
|
|
36
|
+
export type ExplorerEntry<D extends FolderDocument = FolderDocument> = ExplorerFolder | ExplorerFile<D>;
|
|
37
|
+
export type ExplorerSort = 'name' | 'date' | 'size';
|
|
38
|
+
/**
|
|
39
|
+
* Display name for a document in the explorer, with its real file extension —
|
|
40
|
+
* the familiar "Report.pdf" form. Many documents store an AI-generated display
|
|
41
|
+
* title that drops the extension, so we re-attach it from the stored
|
|
42
|
+
* `file_name` or, failing that, the MIME `file_type`.
|
|
43
|
+
*/
|
|
44
|
+
export declare function getExplorerDisplayName(doc: FolderDocument): string;
|
|
45
|
+
/** Split a `Doc.folder` value into trimmed, non-empty path segments. */
|
|
46
|
+
export declare function parseFolderSegments(folder?: string | null): string[];
|
|
47
|
+
/** Join path segments back into a canonical `Doc.folder` string (or null at root). */
|
|
48
|
+
export declare function joinFolderPath(segments: string[]): string | null;
|
|
49
|
+
/**
|
|
50
|
+
* A document is shown in the explorer unless it belongs to an email family:
|
|
51
|
+
* attachments and archived messages (`parent_ext_id` set) live "inside" their
|
|
52
|
+
* email / archive and would otherwise clutter the folder view. Versions are not
|
|
53
|
+
* children — the list holds each document's current version only.
|
|
54
|
+
*/
|
|
55
|
+
export declare function isExplorerDocument(doc: FolderDocument): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Every explorer document that lives anywhere beneath `path` (directly in the
|
|
58
|
+
* folder or in a sub-folder). Used to expand a folder into the documents a
|
|
59
|
+
* folder-level action (select / move / download / delete / rename) applies to —
|
|
60
|
+
* "act on a folder" means "act on everything in it".
|
|
61
|
+
*/
|
|
62
|
+
export declare function collectFolderDocs<D extends FolderDocument>(documents: D[], path: string[]): D[];
|
|
63
|
+
/**
|
|
64
|
+
* Documents in the order the gallery shows them for a sort choice (and its
|
|
65
|
+
* direction toggle). Review mode steps through this same order.
|
|
66
|
+
*/
|
|
67
|
+
export declare function sortExplorerFiles<D extends FolderDocument>(docs: D[], sort: ExplorerSort, reversed?: boolean): D[];
|
|
68
|
+
/**
|
|
69
|
+
* Build the folders and files that live directly under `currentPath`.
|
|
70
|
+
*
|
|
71
|
+
* - Files: documents whose folder path exactly equals `currentPath`.
|
|
72
|
+
* - Folders: the distinct next path segment of any document nested deeper than
|
|
73
|
+
* `currentPath`, with `count` = number of documents beneath it.
|
|
74
|
+
*
|
|
75
|
+
* Folders are always sorted by name; files by the requested sort.
|
|
76
|
+
*/
|
|
77
|
+
export declare function buildExplorerEntries<D extends FolderDocument>(documents: D[], currentPath: string[], sort?: ExplorerSort, pendingFolders?: string[]): {
|
|
78
|
+
folders: ExplorerFolder[];
|
|
79
|
+
files: D[];
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Flat, cross-folder search over every top-level document by title / file name.
|
|
83
|
+
* Used when the explorer search box is non-empty (mirrors real file explorers,
|
|
84
|
+
* which flatten results and ignore the current folder while searching).
|
|
85
|
+
*/
|
|
86
|
+
export declare function searchExplorerDocuments<D extends FolderDocument>(documents: D[], query: string, sort?: ExplorerSort): D[];
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { getExplorerDisplayName, parseFolderSegments, joinFolderPath, isExplorerDocument, collectFolderDocs, sortExplorerFiles, buildExplorerEntries, searchExplorerDocuments, type FolderDocument, type ExplorerFolder, type ExplorerFile, type ExplorerEntry, type ExplorerSort, } from './folderPaths';
|
|
2
|
+
export { FolderProviderIcon, hasFolderProviderIcon, formatFolderSegment, } from './FolderProviderIcon';
|