codenotch-react 1.0.19 → 1.0.21
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/auml/Auml.d.ts.map +1 -1
- package/dist/auml/Auml.js +10 -2
- package/package.json +3 -5
package/dist/auml/Auml.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Auml.d.ts","sourceRoot":"","sources":["../../src/auml/Auml.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Auml.d.ts","sourceRoot":"","sources":["../../src/auml/Auml.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,IAAK,SAAQ,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC;IAGjD,MAAM;CAkCT"}
|
package/dist/auml/Auml.js
CHANGED
|
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Auml = void 0;
|
|
7
|
-
const echino_ui_framework_1 = require("@echino/echino.ui.framework");
|
|
8
7
|
const react_1 = __importDefault(require("react"));
|
|
9
8
|
const __1 = require("..");
|
|
10
9
|
class Auml extends react_1.default.Component {
|
|
@@ -14,7 +13,16 @@ class Auml extends react_1.default.Component {
|
|
|
14
13
|
if (`${this.props.auml ?? ''}`.trim() === '') {
|
|
15
14
|
return null;
|
|
16
15
|
}
|
|
17
|
-
|
|
16
|
+
// Try to load SpaRender only when the component is rendered
|
|
17
|
+
let SpaRender;
|
|
18
|
+
try {
|
|
19
|
+
SpaRender = require('@echino/echino.ui.framework').SpaRender;
|
|
20
|
+
}
|
|
21
|
+
catch (e) {
|
|
22
|
+
// Package not available, return an informational message
|
|
23
|
+
return react_1.default.createElement("div", { style: { background: '#343434', color: '#fbb040', fontSize: 12, padding: 20, borderRadius: 5 } }, "Package '@echino/echino.ui.framework' not available");
|
|
24
|
+
}
|
|
25
|
+
return react_1.default.createElement(SpaRender, { appDescription: this.props.auml, languages: codenotchEnvironment.languages ?? [], serviceName: codenotchEnvironment.serviceName ?? 'DEV', tenant: {
|
|
18
26
|
name: codenotchEnvironment.tenantName ?? 'DEV',
|
|
19
27
|
clusterUrl: codenotchEnvironment.clusterUrl ?? undefined,
|
|
20
28
|
displayName: codenotchEnvironment.tenantDisplayName ?? undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codenotch-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "Codenotch SA",
|
|
@@ -13,14 +13,12 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
"dist/**/*"
|
|
15
15
|
],
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"@echino/echino.ui.framework": "1.1.41"
|
|
18
|
-
},
|
|
19
16
|
"devDependencies": {
|
|
17
|
+
"@types/node": "^25.3.2",
|
|
20
18
|
"@types/react": "^16.14.69",
|
|
21
19
|
"typescript": "^5.9.3"
|
|
22
20
|
},
|
|
23
21
|
"peerDependencies": {
|
|
24
22
|
"react": ">=16.0.0"
|
|
25
23
|
}
|
|
26
|
-
}
|
|
24
|
+
}
|