@uipath/apollo-react 3.45.5 → 3.45.6
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/parsers/citation-parser.cjs +2 -1
- package/dist/material/components/ap-chat/components/message/markdown/parsers/citation-parser.d.ts.map +1 -1
- package/dist/material/components/ap-chat/components/message/markdown/parsers/citation-parser.js +2 -1
- package/package.json +2 -2
package/dist/material/components/ap-chat/components/message/markdown/parsers/citation-parser.cjs
CHANGED
|
@@ -114,7 +114,8 @@ function contentPartsToMarkdown(messageId, contentParts) {
|
|
|
114
114
|
messageId
|
|
115
115
|
}));
|
|
116
116
|
const encodedData = btoa(JSON.stringify(citationsData));
|
|
117
|
-
|
|
117
|
+
const endsWithUrl = /https?:\/\/\S+$/.test(text);
|
|
118
|
+
text = `[[cite-start:${encodedData}]]${text}${endsWithUrl ? ' ' : ''}[[cite-end]]`;
|
|
118
119
|
}
|
|
119
120
|
return text;
|
|
120
121
|
}).join('');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation-parser.d.ts","sourceRoot":"","sources":["../../../../../../../../src/material/components/ap-chat/components/message/markdown/parsers/citation-parser.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAK5E,wBAAgB,cAAc,KAIpB,MAAM,GAAG,UAmFlB;AAsCD,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"citation-parser.d.ts","sourceRoot":"","sources":["../../../../../../../../src/material/components/ap-chat/components/message/markdown/parsers/citation-parser.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAK5E,wBAAgB,cAAc,KAIpB,MAAM,GAAG,UAmFlB;AAsCD,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,MAAM,CA4B7F"}
|
package/dist/material/components/ap-chat/components/message/markdown/parsers/citation-parser.js
CHANGED
|
@@ -85,7 +85,8 @@ function contentPartsToMarkdown(messageId, contentParts) {
|
|
|
85
85
|
messageId
|
|
86
86
|
}));
|
|
87
87
|
const encodedData = btoa(JSON.stringify(citationsData));
|
|
88
|
-
|
|
88
|
+
const endsWithUrl = /https?:\/\/\S+$/.test(text);
|
|
89
|
+
text = `[[cite-start:${encodedData}]]${text}${endsWithUrl ? ' ' : ''}[[cite-end]]`;
|
|
89
90
|
}
|
|
90
91
|
return text;
|
|
91
92
|
}).join('');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "3.45.
|
|
3
|
+
"version": "3.45.6",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"use-sync-external-store": "^1.2.0",
|
|
201
201
|
"zod": "^4.3.5",
|
|
202
202
|
"zustand": "^5.0.9",
|
|
203
|
-
"@uipath/apollo-wind": "0.
|
|
203
|
+
"@uipath/apollo-wind": "0.11.0",
|
|
204
204
|
"@uipath/apollo-core": "5.7.0"
|
|
205
205
|
},
|
|
206
206
|
"devDependencies": {
|