@uipath/apollo-react 3.60.3 → 3.60.4

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.
@@ -54,15 +54,15 @@ const UiPathFullLight = /*#__PURE__*/ external_react_default().forwardRef(({ siz
54
54
  }),
55
55
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
56
56
  d: "M91.1326 55.0989H89.675C84.9685 55.0989 82.0451 58.0021 82.0451 62.6744V108.425C82.0451 113.097 84.9685 116 89.675 116H91.1326C95.8386 116 98.762 113.097 98.762 108.425V62.6744C98.762 58.0021 95.8386 55.0989 91.1326 55.0989Z",
57
- fill: "#FA4616"
57
+ fill: "#000000"
58
58
  }),
59
59
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
60
60
  d: "M111.321 26.7778C100.684 25.0967 92.2902 16.8376 90.5818 6.37143C90.5496 6.17388 90.2894 6.17388 90.2572 6.37143C88.5488 16.8376 80.1548 25.0967 69.5175 26.7778C69.3166 26.8094 69.3166 27.0656 69.5175 27.0973C80.1548 28.7781 88.5488 37.0375 90.2572 47.5037C90.2894 47.7012 90.5496 47.7012 90.5818 47.5037C92.2902 37.0375 100.684 28.7781 111.321 27.0973C111.522 27.0656 111.522 26.8095 111.321 26.7778ZM100.87 27.0174C95.5518 27.8578 91.3548 31.9875 90.5006 37.2206C90.4845 37.3194 90.3544 37.3194 90.3383 37.2206C89.4841 31.9875 85.2871 27.8578 79.9685 27.0174C79.868 27.0016 79.868 26.8735 79.9685 26.8577C85.2871 26.0171 89.4841 21.8876 90.3383 16.6545C90.3544 16.5557 90.4845 16.5557 90.5006 16.6545C91.3548 21.8876 95.5518 26.0171 100.87 26.8577C100.971 26.8735 100.971 27.0016 100.87 27.0174Z",
61
- fill: "#FA4616"
61
+ fill: "#000000"
62
62
  }),
63
63
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
64
64
  d: "M117.694 10.4371C112.376 11.2774 108.179 15.4071 107.324 20.6402C107.308 20.739 107.178 20.739 107.162 20.6402C106.308 15.4071 102.111 11.2774 96.7923 10.4371C96.6919 10.4212 96.6919 10.2931 96.7923 10.2773C102.111 9.43674 106.308 5.3072 107.162 0.0740898C107.178 -0.0246966 107.308 -0.0246966 107.324 0.0740898C108.179 5.3072 112.376 9.43672 117.694 10.2773C117.795 10.2931 117.795 10.4212 117.694 10.4371Z",
65
- fill: "#FA4616"
65
+ fill: "#000000"
66
66
  }),
67
67
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
68
68
  d: "M135.312 33.1428H119.087C114.445 33.1428 111.561 35.9674 111.561 40.5133V108.63C111.561 113.175 114.445 116 119.087 116H120.865C125.507 116 128.391 113.175 128.391 108.63V92.5057H135.423C163.58 92.5057 175.066 83.9066 175.066 62.8243C175.066 41.7419 163.548 33.1428 135.312 33.1428ZM158.014 62.6067C158.014 73.4525 152.762 77.1123 137.201 77.1123H128.391V48.2095H137.201C152.762 48.2095 158.014 51.842 158.014 62.6067Z",
@@ -15,15 +15,15 @@ const UiPathFullLight = /*#__PURE__*/ react.forwardRef(({ size, ...props }, ref)
15
15
  }),
16
16
  /*#__PURE__*/ jsx("path", {
17
17
  d: "M91.1326 55.0989H89.675C84.9685 55.0989 82.0451 58.0021 82.0451 62.6744V108.425C82.0451 113.097 84.9685 116 89.675 116H91.1326C95.8386 116 98.762 113.097 98.762 108.425V62.6744C98.762 58.0021 95.8386 55.0989 91.1326 55.0989Z",
18
- fill: "#FA4616"
18
+ fill: "#000000"
19
19
  }),
20
20
  /*#__PURE__*/ jsx("path", {
21
21
  d: "M111.321 26.7778C100.684 25.0967 92.2902 16.8376 90.5818 6.37143C90.5496 6.17388 90.2894 6.17388 90.2572 6.37143C88.5488 16.8376 80.1548 25.0967 69.5175 26.7778C69.3166 26.8094 69.3166 27.0656 69.5175 27.0973C80.1548 28.7781 88.5488 37.0375 90.2572 47.5037C90.2894 47.7012 90.5496 47.7012 90.5818 47.5037C92.2902 37.0375 100.684 28.7781 111.321 27.0973C111.522 27.0656 111.522 26.8095 111.321 26.7778ZM100.87 27.0174C95.5518 27.8578 91.3548 31.9875 90.5006 37.2206C90.4845 37.3194 90.3544 37.3194 90.3383 37.2206C89.4841 31.9875 85.2871 27.8578 79.9685 27.0174C79.868 27.0016 79.868 26.8735 79.9685 26.8577C85.2871 26.0171 89.4841 21.8876 90.3383 16.6545C90.3544 16.5557 90.4845 16.5557 90.5006 16.6545C91.3548 21.8876 95.5518 26.0171 100.87 26.8577C100.971 26.8735 100.971 27.0016 100.87 27.0174Z",
22
- fill: "#FA4616"
22
+ fill: "#000000"
23
23
  }),
24
24
  /*#__PURE__*/ jsx("path", {
25
25
  d: "M117.694 10.4371C112.376 11.2774 108.179 15.4071 107.324 20.6402C107.308 20.739 107.178 20.739 107.162 20.6402C106.308 15.4071 102.111 11.2774 96.7923 10.4371C96.6919 10.4212 96.6919 10.2931 96.7923 10.2773C102.111 9.43674 106.308 5.3072 107.162 0.0740898C107.178 -0.0246966 107.308 -0.0246966 107.324 0.0740898C108.179 5.3072 112.376 9.43672 117.694 10.2773C117.795 10.2931 117.795 10.4212 117.694 10.4371Z",
26
- fill: "#FA4616"
26
+ fill: "#000000"
27
27
  }),
28
28
  /*#__PURE__*/ jsx("path", {
29
29
  d: "M135.312 33.1428H119.087C114.445 33.1428 111.561 35.9674 111.561 40.5133V108.63C111.561 113.175 114.445 116 119.087 116H120.865C125.507 116 128.391 113.175 128.391 108.63V92.5057H135.423C163.58 92.5057 175.066 83.9066 175.066 62.8243C175.066 41.7419 163.548 33.1428 135.312 33.1428ZM158.014 62.6067C158.014 73.4525 152.762 77.1123 137.201 77.1123H128.391V48.2095H137.201C152.762 48.2095 158.014 51.842 158.014 62.6067Z",
@@ -47,7 +47,8 @@ function citationPlugin() {
47
47
  });
48
48
  const token = match[0];
49
49
  if (token.startsWith('[[cite-start:')) try {
50
- const decoded = atob(match[1]);
50
+ const raw = atob(match[1]);
51
+ const decoded = raw.startsWith('%5B') ? decodeURIComponent(raw) : raw;
51
52
  const citationsData = JSON.parse(decoded);
52
53
  citationStack.push({
53
54
  citationsData
@@ -113,7 +114,7 @@ function contentPartsToMarkdown(messageId, contentParts) {
113
114
  page_number: 'page_number' in citation ? citation.page_number : void 0,
114
115
  messageId
115
116
  }));
116
- const encodedData = btoa(JSON.stringify(citationsData));
117
+ const encodedData = btoa(encodeURIComponent(JSON.stringify(citationsData)));
117
118
  const endsWithUrl = /https?:\/\/\S+$/.test(text);
118
119
  text = `[[cite-start:${encodedData}]]${text}${endsWithUrl ? ' ' : ''}[[cite-end]]`;
119
120
  }
@@ -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,CA4B7F"}
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,UAuFlB;AAsCD,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,MAAM,CA4B7F"}
@@ -18,7 +18,8 @@ function citationPlugin() {
18
18
  });
19
19
  const token = match[0];
20
20
  if (token.startsWith('[[cite-start:')) try {
21
- const decoded = atob(match[1]);
21
+ const raw = atob(match[1]);
22
+ const decoded = raw.startsWith('%5B') ? decodeURIComponent(raw) : raw;
22
23
  const citationsData = JSON.parse(decoded);
23
24
  citationStack.push({
24
25
  citationsData
@@ -84,7 +85,7 @@ function contentPartsToMarkdown(messageId, contentParts) {
84
85
  page_number: 'page_number' in citation ? citation.page_number : void 0,
85
86
  messageId
86
87
  }));
87
- const encodedData = btoa(JSON.stringify(citationsData));
88
+ const encodedData = btoa(encodeURIComponent(JSON.stringify(citationsData)));
88
89
  const endsWithUrl = /https?:\/\/\S+$/.test(text);
89
90
  text = `[[cite-start:${encodedData}]]${text}${endsWithUrl ? ' ' : ''}[[cite-end]]`;
90
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "3.60.3",
3
+ "version": "3.60.4",
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-core": "5.8.0",
203
+ "@uipath/apollo-core": "5.8.1",
204
204
  "@uipath/apollo-wind": "1.4.0"
205
205
  },
206
206
  "devDependencies": {