andoncloud-widget-preview 1.2.0 → 1.2.2
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/components/Dashboard/index.d.ts +6 -6
- package/dist/components/Routing.d.ts +4 -4
- package/dist/components/WidgetPreview/index.d.ts +4 -4
- package/dist/i18n.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +171 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +15 -15
- package/dist/version.d.ts +1 -1
- package/package.json +24 -22
package/dist/types.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseWidgetData, BaseWidgetSettings, WidgetProps } from 'andoncloud-dashboard-toolkit';
|
|
3
|
-
export interface WidgetPreviewProps {
|
|
4
|
-
baseUrl: string;
|
|
5
|
-
apiUrl: string;
|
|
6
|
-
widgetName: string;
|
|
7
|
-
widgetDisplayName: (lang: 'en' | 'pl') => string;
|
|
8
|
-
widgetWidth?: number;
|
|
9
|
-
widgetHeight?: number;
|
|
10
|
-
Widget: React.FC<WidgetProps<BaseWidgetData, BaseWidgetSettings>>;
|
|
11
|
-
}
|
|
12
|
-
export interface DashboardProps extends Omit<WidgetPreviewProps, 'baseUrl'> {
|
|
13
|
-
lang: 'en' | 'pl';
|
|
14
|
-
editMode?: boolean;
|
|
15
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseWidgetData, BaseWidgetSettings, WidgetProps } from 'andoncloud-dashboard-toolkit';
|
|
3
|
+
export interface WidgetPreviewProps {
|
|
4
|
+
baseUrl: string;
|
|
5
|
+
apiUrl: string;
|
|
6
|
+
widgetName: string;
|
|
7
|
+
widgetDisplayName: (lang: 'en' | 'pl') => string;
|
|
8
|
+
widgetWidth?: number;
|
|
9
|
+
widgetHeight?: number;
|
|
10
|
+
Widget: React.FC<WidgetProps<BaseWidgetData, BaseWidgetSettings>>;
|
|
11
|
+
}
|
|
12
|
+
export interface DashboardProps extends Omit<WidgetPreviewProps, 'baseUrl'> {
|
|
13
|
+
lang: 'en' | 'pl';
|
|
14
|
+
editMode?: boolean;
|
|
15
|
+
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LIBRARY_VERSION = "1.2.
|
|
1
|
+
export declare const LIBRARY_VERSION = "1.2.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "andoncloud-widget-preview",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "AndonCloud widget preview",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,50 +15,52 @@
|
|
|
15
15
|
"node": ">=14"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "library-scripts build --external andoncloud-
|
|
19
|
-
"build:watch": "library-scripts build-watch --external andoncloud-
|
|
18
|
+
"build": "library-scripts build --external andoncloud-dashboard-toolkit,react-grid-layout",
|
|
19
|
+
"build:watch": "library-scripts build-watch --external andoncloud-dashboard-toolkit,react-grid-layout",
|
|
20
20
|
"start:sandbox": "cd sandbox && npm run start",
|
|
21
21
|
"start": "run-p build:watch start:sandbox",
|
|
22
22
|
"lint": "eslint --ext .ts,.tsx --quiet --fix .",
|
|
23
23
|
"lint:ci": "eslint --ext .ts,.tsx --quiet .",
|
|
24
24
|
"i18n:extract": "i18next src/components/**/*.tsx [-oc]",
|
|
25
25
|
"prepare": "run-s build",
|
|
26
|
+
"update": "ncu -u && npm install --ignore-scripts && cd sandbox && ncu -u && npm install",
|
|
26
27
|
"version:bump": "npm version --no-git-tag-version patch"
|
|
27
28
|
},
|
|
28
29
|
"peerDependencies": {
|
|
29
30
|
"react": "^18.0.0"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"@emotion/react": "^11.
|
|
33
|
-
"@emotion/styled": "^11.
|
|
34
|
-
"@types/node": "^
|
|
35
|
-
"@types/react": "^18.
|
|
36
|
-
"@types/react-dom": "^18.
|
|
33
|
+
"@emotion/react": "^11.11.0",
|
|
34
|
+
"@emotion/styled": "^11.11.0",
|
|
35
|
+
"@types/node": "^20.1.2",
|
|
36
|
+
"@types/react": "^18.2.6",
|
|
37
|
+
"@types/react-dom": "^18.2.4",
|
|
37
38
|
"@types/react-grid-layout": "^1.3.2",
|
|
38
|
-
"andoncloud-library-scripts": "^1.0.
|
|
39
|
-
"eslint": "^8.
|
|
39
|
+
"andoncloud-library-scripts": "^1.0.7",
|
|
40
|
+
"eslint": "^8.40.0",
|
|
40
41
|
"eslint-config-andoncloud": "^1.0.0",
|
|
41
|
-
"i18next-parser": "^
|
|
42
|
+
"i18next-parser": "^8.0.0",
|
|
42
43
|
"npm-run-all": "^4.1.5",
|
|
44
|
+
"postcss": "^8.4.23",
|
|
43
45
|
"react": "^18.2.0",
|
|
44
46
|
"react-dom": "^18.2.0",
|
|
45
|
-
"react-router-dom": "^6.
|
|
47
|
+
"react-router-dom": "^6.11.1",
|
|
46
48
|
"react-scripts": "^5.0.1",
|
|
47
|
-
"typescript": "^
|
|
49
|
+
"typescript": "^5.0.4"
|
|
48
50
|
},
|
|
49
51
|
"files": [
|
|
50
52
|
"dist"
|
|
51
53
|
],
|
|
52
54
|
"dependencies": {
|
|
53
|
-
"@mui/icons-material": "^5.11.
|
|
54
|
-
"@mui/lab": "^5.0.0-alpha.
|
|
55
|
-
"@mui/material": "^5.
|
|
56
|
-
"andoncloud-dashboard-toolkit": "^1.2.
|
|
57
|
-
"andoncloud-sdk": "^1.4.
|
|
58
|
-
"graphql-request": "^
|
|
59
|
-
"i18next": "^22.4.
|
|
60
|
-
"react-i18next": "^12.
|
|
61
|
-
"react-resizable": "^3.0.
|
|
55
|
+
"@mui/icons-material": "^5.11.16",
|
|
56
|
+
"@mui/lab": "^5.0.0-alpha.129",
|
|
57
|
+
"@mui/material": "^5.13.0",
|
|
58
|
+
"andoncloud-dashboard-toolkit": "^1.2.7",
|
|
59
|
+
"andoncloud-sdk": "^1.4.42",
|
|
60
|
+
"graphql-request": "^6.0.0",
|
|
61
|
+
"i18next": "^22.4.15",
|
|
62
|
+
"react-i18next": "^12.2.2",
|
|
63
|
+
"react-resizable": "^3.0.5",
|
|
62
64
|
"uuid-by-string": "^4.0.0"
|
|
63
65
|
}
|
|
64
66
|
}
|