@uipath/apollo-react 4.31.1 → 4.32.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/canvas/components/LoopNode/IterationNavigator.cjs +29 -13
- package/dist/canvas/components/LoopNode/IterationNavigator.d.ts.map +1 -1
- package/dist/canvas/components/LoopNode/IterationNavigator.js +27 -11
- package/dist/canvas/components/LoopNode/LoopNode.cjs +39 -18
- package/dist/canvas/components/LoopNode/LoopNode.d.ts.map +1 -1
- package/dist/canvas/components/LoopNode/LoopNode.js +37 -16
- package/dist/canvas/components/StageNode/StageNodeHeader.cjs +6 -2
- package/dist/canvas/components/StageNode/StageNodeHeader.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageNodeHeader.js +6 -2
- package/dist/canvas/components/StageNode/TaskContent.cjs +8 -6
- package/dist/canvas/components/StageNode/TaskContent.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/TaskContent.js +8 -6
- package/dist/canvas/components/StageNode/useExecutionStatusLabel.cjs +89 -0
- package/dist/canvas/components/StageNode/useExecutionStatusLabel.d.ts +3 -0
- package/dist/canvas/components/StageNode/useExecutionStatusLabel.d.ts.map +1 -0
- package/dist/canvas/components/StageNode/useExecutionStatusLabel.js +55 -0
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.cjs +17 -5
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.d.ts.map +1 -1
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.js +15 -3
- package/dist/canvas/locales/en.cjs +1 -1
- package/dist/canvas/locales/en.d.ts.map +1 -1
- package/dist/canvas/locales/en.js +1 -1
- package/dist/canvas/styles/tailwind.canvas.css +1 -1
- package/dist/i18n/useSafeLingui.cjs +12 -1
- package/dist/i18n/useSafeLingui.d.ts.map +1 -1
- package/dist/i18n/useSafeLingui.js +12 -1
- package/package.json +3 -3
|
@@ -26,9 +26,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
useSafeLingui: ()=>useSafeLingui
|
|
28
28
|
});
|
|
29
|
+
const core_namespaceObject = require("@lingui/core");
|
|
29
30
|
const react_namespaceObject = require("@lingui/react");
|
|
30
31
|
const external_react_namespaceObject = require("react");
|
|
31
|
-
const
|
|
32
|
+
const fallbackI18n = (0, core_namespaceObject.setupI18n)({
|
|
33
|
+
locale: 'en',
|
|
34
|
+
messages: {
|
|
35
|
+
en: {}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const fallbackTranslate = (arg)=>{
|
|
39
|
+
if ('string' == typeof arg) return arg;
|
|
40
|
+
if (!arg.message) return arg.id;
|
|
41
|
+
return fallbackI18n._(arg);
|
|
42
|
+
};
|
|
32
43
|
function useSafeLingui() {
|
|
33
44
|
const ctx = (0, external_react_namespaceObject.useContext)(react_namespaceObject.LinguiContext);
|
|
34
45
|
return (0, external_react_namespaceObject.useMemo)(()=>({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSafeLingui.d.ts","sourceRoot":"","sources":["../../src/i18n/useSafeLingui.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSafeLingui.d.ts","sourceRoot":"","sources":["../../src/i18n/useSafeLingui.ts"],"names":[],"mappings":"AAIA,KAAK,UAAU,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC;AACrF,KAAK,SAAS,GAAG;IACf,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAAC;IACjC,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACtB,CAAC;AAyBF,wBAAgB,aAAa,IAAI;IAAE,CAAC,EAAE,SAAS,CAAA;CAAE,CAGhD"}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
import { setupI18n } from "@lingui/core";
|
|
1
2
|
import { LinguiContext } from "@lingui/react";
|
|
2
3
|
import { useContext, useMemo } from "react";
|
|
3
|
-
const
|
|
4
|
+
const fallbackI18n = setupI18n({
|
|
5
|
+
locale: 'en',
|
|
6
|
+
messages: {
|
|
7
|
+
en: {}
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
const fallbackTranslate = (arg)=>{
|
|
11
|
+
if ('string' == typeof arg) return arg;
|
|
12
|
+
if (!arg.message) return arg.id;
|
|
13
|
+
return fallbackI18n._(arg);
|
|
14
|
+
};
|
|
4
15
|
function useSafeLingui() {
|
|
5
16
|
const ctx = useContext(LinguiContext);
|
|
6
17
|
return useMemo(()=>({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.32.1",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -205,8 +205,8 @@
|
|
|
205
205
|
"use-sync-external-store": "^1.2.0",
|
|
206
206
|
"zod": "^4.3.5",
|
|
207
207
|
"zustand": "^5.0.9",
|
|
208
|
-
"@uipath/apollo-
|
|
209
|
-
"@uipath/apollo-
|
|
208
|
+
"@uipath/apollo-core": "5.9.1",
|
|
209
|
+
"@uipath/apollo-wind": "2.17.0"
|
|
210
210
|
},
|
|
211
211
|
"devDependencies": {
|
|
212
212
|
"@lingui/cli": "^5.6.1",
|