@arbidocs/react 0.4.39 → 0.4.41
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/index.cjs +45 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkUFXRLZJG_cjs = require('./chunk-UFXRLZJG.cjs');
|
|
4
|
+
var chunkZ4M7JB4L_cjs = require('./chunk-Z4M7JB4L.cjs');
|
|
4
5
|
var chunkXKXN2EDC_cjs = require('./chunk-XKXN2EDC.cjs');
|
|
5
6
|
var chunkV4XELT62_cjs = require('./chunk-V4XELT62.cjs');
|
|
6
|
-
var chunkZ4M7JB4L_cjs = require('./chunk-Z4M7JB4L.cjs');
|
|
7
7
|
var chunkOBNTJEEO_cjs = require('./chunk-OBNTJEEO.cjs');
|
|
8
8
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
9
9
|
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
@@ -2973,7 +2973,8 @@ var CitationRendererComponent = ({
|
|
|
2973
2973
|
useCitationState,
|
|
2974
2974
|
onCloseCitation,
|
|
2975
2975
|
onDismissCitation,
|
|
2976
|
-
notify: notify2
|
|
2976
|
+
notify: notify2,
|
|
2977
|
+
docTitles
|
|
2977
2978
|
}) => {
|
|
2978
2979
|
const chunkMap = React.useMemo(() => {
|
|
2979
2980
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -2982,14 +2983,18 @@ var CitationRendererComponent = ({
|
|
|
2982
2983
|
if (docChunks && Array.isArray(docChunks)) {
|
|
2983
2984
|
docChunks.forEach((chunk) => {
|
|
2984
2985
|
if (chunk.metadata && chunk.metadata.chunk_ext_id) {
|
|
2985
|
-
|
|
2986
|
+
const displayTitle = chunk.metadata.doc_ext_id ? docTitles?.get(chunk.metadata.doc_ext_id) : void 0;
|
|
2987
|
+
map.set(
|
|
2988
|
+
chunk.metadata.chunk_ext_id,
|
|
2989
|
+
displayTitle ? { ...chunk, metadata: { ...chunk.metadata, doc_title: displayTitle } } : chunk
|
|
2990
|
+
);
|
|
2986
2991
|
}
|
|
2987
2992
|
});
|
|
2988
2993
|
}
|
|
2989
2994
|
});
|
|
2990
2995
|
}
|
|
2991
2996
|
return map;
|
|
2992
|
-
}, [citationData]);
|
|
2997
|
+
}, [citationData, docTitles]);
|
|
2993
2998
|
const getChunkDetails = React.useCallback(
|
|
2994
2999
|
(chunkIds) => [...new Set(chunkIds)].map((id) => chunkMap.get(id)).filter((c) => c !== void 0),
|
|
2995
3000
|
[chunkMap]
|
|
@@ -6114,6 +6119,42 @@ Object.defineProperty(exports, "useWorkspaces", {
|
|
|
6114
6119
|
enumerable: true,
|
|
6115
6120
|
get: function () { return chunkUFXRLZJG_cjs.useWorkspaces; }
|
|
6116
6121
|
});
|
|
6122
|
+
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
6123
|
+
enumerable: true,
|
|
6124
|
+
get: function () { return chunkZ4M7JB4L_cjs.DEFAULT_NOTIFY_TONE; }
|
|
6125
|
+
});
|
|
6126
|
+
Object.defineProperty(exports, "NotificationBell", {
|
|
6127
|
+
enumerable: true,
|
|
6128
|
+
get: function () { return chunkZ4M7JB4L_cjs.NotificationBell; }
|
|
6129
|
+
});
|
|
6130
|
+
Object.defineProperty(exports, "Toaster", {
|
|
6131
|
+
enumerable: true,
|
|
6132
|
+
get: function () { return chunkZ4M7JB4L_cjs.Toaster; }
|
|
6133
|
+
});
|
|
6134
|
+
Object.defineProperty(exports, "formatRelativeTime", {
|
|
6135
|
+
enumerable: true,
|
|
6136
|
+
get: function () { return chunkZ4M7JB4L_cjs.formatRelativeTime; }
|
|
6137
|
+
});
|
|
6138
|
+
Object.defineProperty(exports, "notify", {
|
|
6139
|
+
enumerable: true,
|
|
6140
|
+
get: function () { return chunkZ4M7JB4L_cjs.notify; }
|
|
6141
|
+
});
|
|
6142
|
+
Object.defineProperty(exports, "seedNotifications", {
|
|
6143
|
+
enumerable: true,
|
|
6144
|
+
get: function () { return chunkZ4M7JB4L_cjs.seedNotifications; }
|
|
6145
|
+
});
|
|
6146
|
+
Object.defineProperty(exports, "selectUnread", {
|
|
6147
|
+
enumerable: true,
|
|
6148
|
+
get: function () { return chunkZ4M7JB4L_cjs.selectUnread; }
|
|
6149
|
+
});
|
|
6150
|
+
Object.defineProperty(exports, "toast", {
|
|
6151
|
+
enumerable: true,
|
|
6152
|
+
get: function () { return chunkZ4M7JB4L_cjs.toast; }
|
|
6153
|
+
});
|
|
6154
|
+
Object.defineProperty(exports, "useNotify", {
|
|
6155
|
+
enumerable: true,
|
|
6156
|
+
get: function () { return chunkZ4M7JB4L_cjs.useNotify; }
|
|
6157
|
+
});
|
|
6117
6158
|
Object.defineProperty(exports, "AgentBadge", {
|
|
6118
6159
|
enumerable: true,
|
|
6119
6160
|
get: function () { return chunkXKXN2EDC_cjs.AgentBadge; }
|
|
@@ -6698,42 +6739,6 @@ Object.defineProperty(exports, "trimOpenCitation", {
|
|
|
6698
6739
|
enumerable: true,
|
|
6699
6740
|
get: function () { return chunkV4XELT62_cjs.trimOpenCitation; }
|
|
6700
6741
|
});
|
|
6701
|
-
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
6702
|
-
enumerable: true,
|
|
6703
|
-
get: function () { return chunkZ4M7JB4L_cjs.DEFAULT_NOTIFY_TONE; }
|
|
6704
|
-
});
|
|
6705
|
-
Object.defineProperty(exports, "NotificationBell", {
|
|
6706
|
-
enumerable: true,
|
|
6707
|
-
get: function () { return chunkZ4M7JB4L_cjs.NotificationBell; }
|
|
6708
|
-
});
|
|
6709
|
-
Object.defineProperty(exports, "Toaster", {
|
|
6710
|
-
enumerable: true,
|
|
6711
|
-
get: function () { return chunkZ4M7JB4L_cjs.Toaster; }
|
|
6712
|
-
});
|
|
6713
|
-
Object.defineProperty(exports, "formatRelativeTime", {
|
|
6714
|
-
enumerable: true,
|
|
6715
|
-
get: function () { return chunkZ4M7JB4L_cjs.formatRelativeTime; }
|
|
6716
|
-
});
|
|
6717
|
-
Object.defineProperty(exports, "notify", {
|
|
6718
|
-
enumerable: true,
|
|
6719
|
-
get: function () { return chunkZ4M7JB4L_cjs.notify; }
|
|
6720
|
-
});
|
|
6721
|
-
Object.defineProperty(exports, "seedNotifications", {
|
|
6722
|
-
enumerable: true,
|
|
6723
|
-
get: function () { return chunkZ4M7JB4L_cjs.seedNotifications; }
|
|
6724
|
-
});
|
|
6725
|
-
Object.defineProperty(exports, "selectUnread", {
|
|
6726
|
-
enumerable: true,
|
|
6727
|
-
get: function () { return chunkZ4M7JB4L_cjs.selectUnread; }
|
|
6728
|
-
});
|
|
6729
|
-
Object.defineProperty(exports, "toast", {
|
|
6730
|
-
enumerable: true,
|
|
6731
|
-
get: function () { return chunkZ4M7JB4L_cjs.toast; }
|
|
6732
|
-
});
|
|
6733
|
-
Object.defineProperty(exports, "useNotify", {
|
|
6734
|
-
enumerable: true,
|
|
6735
|
-
get: function () { return chunkZ4M7JB4L_cjs.useNotify; }
|
|
6736
|
-
});
|
|
6737
6742
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
6738
6743
|
enumerable: true,
|
|
6739
6744
|
get: function () { return chunkOBNTJEEO_cjs.DropdownMenu; }
|