andoncloud-widget-preview 1.1.9 → 1.2.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/index.css +1 -72
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -4160
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +3 -1
- package/dist/version.d.ts +1 -1
- package/package.json +21 -13
package/dist/types.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseWidgetData, BaseWidgetSettings, WidgetProps } from 'andoncloud-dashboard-toolkit';
|
|
3
3
|
export interface WidgetPreviewProps {
|
|
4
|
+
baseUrl: string;
|
|
5
|
+
apiUrl: string;
|
|
4
6
|
widgetName: string;
|
|
5
7
|
widgetDisplayName: (lang: 'en' | 'pl') => string;
|
|
6
8
|
widgetWidth?: number;
|
|
7
9
|
widgetHeight?: number;
|
|
8
10
|
Widget: React.FC<WidgetProps<BaseWidgetData, BaseWidgetSettings>>;
|
|
9
11
|
}
|
|
10
|
-
export interface DashboardProps extends WidgetPreviewProps {
|
|
12
|
+
export interface DashboardProps extends Omit<WidgetPreviewProps, 'baseUrl'> {
|
|
11
13
|
lang: 'en' | 'pl';
|
|
12
14
|
editMode?: boolean;
|
|
13
15
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LIBRARY_VERSION = "1.1
|
|
1
|
+
export declare const LIBRARY_VERSION = "1.2.1";
|
package/package.json
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "andoncloud-widget-preview",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "AndonCloud widget preview",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
8
8
|
"source": "src/index.tsx",
|
|
9
|
+
"exports": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
9
14
|
"engines": {
|
|
10
15
|
"node": ">=14"
|
|
11
16
|
},
|
|
@@ -17,7 +22,9 @@
|
|
|
17
22
|
"lint": "eslint --ext .ts,.tsx --quiet --fix .",
|
|
18
23
|
"lint:ci": "eslint --ext .ts,.tsx --quiet .",
|
|
19
24
|
"i18n:extract": "i18next src/components/**/*.tsx [-oc]",
|
|
20
|
-
"prepare": "run-s build"
|
|
25
|
+
"prepare": "run-s build",
|
|
26
|
+
"update": "ncu -u && npm install --ignore-scripts && cd sandbox && ncu -u && npm install",
|
|
27
|
+
"version:bump": "npm version --no-git-tag-version patch"
|
|
21
28
|
},
|
|
22
29
|
"peerDependencies": {
|
|
23
30
|
"react": "^18.0.0"
|
|
@@ -25,33 +32,34 @@
|
|
|
25
32
|
"devDependencies": {
|
|
26
33
|
"@emotion/react": "^11.10.5",
|
|
27
34
|
"@emotion/styled": "^11.10.5",
|
|
28
|
-
"@types/node": "^18.
|
|
29
|
-
"@types/react": "^18.0.
|
|
35
|
+
"@types/node": "^18.13.0",
|
|
36
|
+
"@types/react": "^18.0.27",
|
|
30
37
|
"@types/react-dom": "^18.0.10",
|
|
31
38
|
"@types/react-grid-layout": "^1.3.2",
|
|
32
|
-
"andoncloud-library-scripts": "^1.0.
|
|
33
|
-
"eslint": "^8.
|
|
39
|
+
"andoncloud-library-scripts": "^1.0.7",
|
|
40
|
+
"eslint": "^8.33.0",
|
|
34
41
|
"eslint-config-andoncloud": "^1.0.0",
|
|
35
|
-
"i18next-parser": "^7.
|
|
42
|
+
"i18next-parser": "^7.6.0",
|
|
36
43
|
"npm-run-all": "^4.1.5",
|
|
44
|
+
"postcss": "^8.4.21",
|
|
37
45
|
"react": "^18.2.0",
|
|
38
46
|
"react-dom": "^18.2.0",
|
|
39
|
-
"react-router-dom": "^6.
|
|
47
|
+
"react-router-dom": "^6.8.1",
|
|
40
48
|
"react-scripts": "^5.0.1",
|
|
41
|
-
"typescript": "^4.9.
|
|
49
|
+
"typescript": "^4.9.5"
|
|
42
50
|
},
|
|
43
51
|
"files": [
|
|
44
52
|
"dist"
|
|
45
53
|
],
|
|
46
54
|
"dependencies": {
|
|
47
55
|
"@mui/icons-material": "^5.11.0",
|
|
48
|
-
"@mui/lab": "^5.0.0-alpha.
|
|
49
|
-
"@mui/material": "^5.11.
|
|
56
|
+
"@mui/lab": "^5.0.0-alpha.119",
|
|
57
|
+
"@mui/material": "^5.11.8",
|
|
50
58
|
"andoncloud-dashboard-toolkit": "^1.2.6",
|
|
51
|
-
"andoncloud-sdk": "^1.4.
|
|
59
|
+
"andoncloud-sdk": "^1.4.36",
|
|
52
60
|
"graphql-request": "^5.1.0",
|
|
53
61
|
"i18next": "^22.4.9",
|
|
54
|
-
"react-i18next": "^12.1.
|
|
62
|
+
"react-i18next": "^12.1.5",
|
|
55
63
|
"react-resizable": "^3.0.4",
|
|
56
64
|
"uuid-by-string": "^4.0.0"
|
|
57
65
|
}
|