@uipath/apollo-react 4.55.0 → 4.55.1
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/material/components/ap-chat/components/message/markdown/citation.cjs +1 -2
- package/dist/material/components/ap-chat/components/message/markdown/citation.d.ts.map +1 -1
- package/dist/material/components/ap-chat/components/message/markdown/citation.js +1 -2
- package/dist/material/components/ap-chat/components/message/sources/chat-sources.cjs +3 -3
- package/dist/material/components/ap-chat/components/message/sources/chat-sources.d.ts.map +1 -1
- package/dist/material/components/ap-chat/components/message/sources/chat-sources.js +3 -3
- package/package.json +1 -1
|
@@ -104,11 +104,10 @@ const clearHighlightRange = (state)=>{
|
|
|
104
104
|
};
|
|
105
105
|
const Citation = /*#__PURE__*/ external_react_default().memo(({ id, title, url, page_number, download_url, messageId })=>{
|
|
106
106
|
const { _ } = (0, react_namespaceObject.useLingui)();
|
|
107
|
-
const pageNumber = page_number;
|
|
108
107
|
const pageText = page_number ? ` (${_({
|
|
109
108
|
id: 'autopilot-chat.message.page-number',
|
|
110
109
|
values: {
|
|
111
|
-
|
|
110
|
+
page_number: page_number
|
|
112
111
|
}
|
|
113
112
|
})})` : '';
|
|
114
113
|
const chatService = (0, chat_service_provider_cjs_namespaceObject.useChatService)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation.d.ts","sourceRoot":"","sources":["../../../../../../../src/material/components/ap-chat/components/message/markdown/citation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAsC1B,UAAU,aAAa;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB;AAiFD,eAAO,MAAM,QAAQ,uFACwC,aAAa,
|
|
1
|
+
{"version":3,"file":"citation.d.ts","sourceRoot":"","sources":["../../../../../../../src/material/components/ap-chat/components/message/markdown/citation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAsC1B,UAAU,aAAa;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB;AAiFD,eAAO,MAAM,QAAQ,uFACwC,aAAa,6CAyKzE,CAAC"}
|
|
@@ -65,11 +65,10 @@ const clearHighlightRange = (state)=>{
|
|
|
65
65
|
};
|
|
66
66
|
const Citation = /*#__PURE__*/ react.memo(({ id, title, url, page_number, download_url, messageId })=>{
|
|
67
67
|
const { _ } = useLingui();
|
|
68
|
-
const pageNumber = page_number;
|
|
69
68
|
const pageText = page_number ? ` (${_({
|
|
70
69
|
id: 'autopilot-chat.message.page-number',
|
|
71
70
|
values: {
|
|
72
|
-
|
|
71
|
+
page_number: page_number
|
|
73
72
|
}
|
|
74
73
|
})})` : '';
|
|
75
74
|
const chatService = useChatService();
|
|
@@ -259,11 +259,11 @@ function AutopilotChatSourcesComponent({ groupId, message }) {
|
|
|
259
259
|
children: sources.map((source, index)=>{
|
|
260
260
|
const isUrl = 'url' in source;
|
|
261
261
|
const isPdf = 'download_url' in source;
|
|
262
|
-
const
|
|
263
|
-
const pageText =
|
|
262
|
+
const page_number = isPdf ? source.page_number : void 0;
|
|
263
|
+
const pageText = page_number ? ` (${_({
|
|
264
264
|
id: 'autopilot-chat.message.page-number',
|
|
265
265
|
values: {
|
|
266
|
-
|
|
266
|
+
page_number: page_number
|
|
267
267
|
}
|
|
268
268
|
})})` : '';
|
|
269
269
|
const text = `[${source.id}] ${source.title}${pageText}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-sources.d.ts","sourceRoot":"","sources":["../../../../../../../src/material/components/ap-chat/components/message/sources/chat-sources.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAMhE,OAAO,EAEL,KAAK,oBAAoB,EAI1B,MAAM,kBAAkB,CAAC;AAG1B,UAAU,yBAAyB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,oBAAoB,CAAC;CAC/B;AA+HD,iBAAS,6BAA6B,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"chat-sources.d.ts","sourceRoot":"","sources":["../../../../../../../src/material/components/ap-chat/components/message/sources/chat-sources.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAMhE,OAAO,EAEL,KAAK,oBAAoB,EAI1B,MAAM,kBAAkB,CAAC;AAG1B,UAAU,yBAAyB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,oBAAoB,CAAC;CAC/B;AA+HD,iBAAS,6BAA6B,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,yBAAyB,kDAiLrF;AAED,eAAO,MAAM,oBAAoB,iEAA4C,CAAC"}
|
|
@@ -220,11 +220,11 @@ function AutopilotChatSourcesComponent({ groupId, message }) {
|
|
|
220
220
|
children: sources.map((source, index)=>{
|
|
221
221
|
const isUrl = 'url' in source;
|
|
222
222
|
const isPdf = 'download_url' in source;
|
|
223
|
-
const
|
|
224
|
-
const pageText =
|
|
223
|
+
const page_number = isPdf ? source.page_number : void 0;
|
|
224
|
+
const pageText = page_number ? ` (${_({
|
|
225
225
|
id: 'autopilot-chat.message.page-number',
|
|
226
226
|
values: {
|
|
227
|
-
|
|
227
|
+
page_number: page_number
|
|
228
228
|
}
|
|
229
229
|
})})` : '';
|
|
230
230
|
const text = `[${source.id}] ${source.title}${pageText}`;
|