@appkit/dek-lib 0.18.0 → 0.20.0
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/icon-192x192.png +0 -0
- package/dist/icon-256x256.png +0 -0
- package/dist/icon-384x384.png +0 -0
- package/dist/icon-512x512.png +0 -0
- package/dist/index.es.js +15149 -14857
- package/dist/index.umd.js +15151 -14859
- package/dist/lib/data.d.ts +1 -0
- package/dist/manifest.webmanifest +32 -0
- package/dist/plugins/sample/boards/SampleBoard.d.ts +4 -0
- package/dist/plugins/sample/components/CenteredText.d.ts +6 -0
- package/dist/plugins/sample/components/JsonView.d.ts +6 -0
- package/dist/plugins/sample/components/ToggleButton.d.ts +5 -0
- package/dist/plugins/sample/plugin.d.ts +11 -0
- package/dist/plugins/sample/screens/SampleScreen/SampleScreen.d.ts +4 -0
- package/package.json +4 -3
package/dist/lib/data.d.ts
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme_color": "#f69435",
|
|
3
|
+
"background_color": "#000000",
|
|
4
|
+
"display": "fullscreen",
|
|
5
|
+
"scope": "/",
|
|
6
|
+
"start_url": "/",
|
|
7
|
+
"name": "Dek (dev)",
|
|
8
|
+
"short_name": "Dekd",
|
|
9
|
+
"description": "Customizable dashboard",
|
|
10
|
+
"icons": [
|
|
11
|
+
{
|
|
12
|
+
"src": "/icon-192x192.png",
|
|
13
|
+
"sizes": "192x192",
|
|
14
|
+
"type": "image/png"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"src": "/icon-256x256.png",
|
|
18
|
+
"sizes": "256x256",
|
|
19
|
+
"type": "image/png"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"src": "/icon-384x384.png",
|
|
23
|
+
"sizes": "384x384",
|
|
24
|
+
"type": "image/png"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"src": "/icon-512x512.png",
|
|
28
|
+
"sizes": "512x512",
|
|
29
|
+
"type": "image/png"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DekPluginElementProps } from '@appkit/dek-plugin';
|
|
2
|
+
import { CardButtonProps } from '@appkit/dek-ui';
|
|
3
|
+
type Props = DekPluginElementProps & CardButtonProps;
|
|
4
|
+
declare const ToggleButton: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default ToggleButton;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DekApi, DekPlugin, DekPluginBoardItem, DekPluginComponentItem, DekPluginConfig, DekPluginScreenItem, DekRegistry } from '@appkit/dek-plugin';
|
|
2
|
+
declare class Plugin implements DekPlugin {
|
|
3
|
+
readonly config: DekPluginConfig;
|
|
4
|
+
constructor(config: DekPluginConfig, registry: DekRegistry);
|
|
5
|
+
load(api: DekApi): Promise<void>;
|
|
6
|
+
unload(): Promise<void>;
|
|
7
|
+
get screens(): DekPluginScreenItem[];
|
|
8
|
+
get components(): DekPluginComponentItem[];
|
|
9
|
+
get boards(): DekPluginBoardItem[];
|
|
10
|
+
}
|
|
11
|
+
export default Plugin;
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appkit/dek-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.20.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"dev": "vite --port 5173 --host",
|
|
7
8
|
"build": "tsc && vite build",
|
|
8
9
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
9
10
|
"codegen": "graphql-codegen",
|
|
@@ -21,9 +22,9 @@
|
|
|
21
22
|
"lodash": "^4.17.21",
|
|
22
23
|
"moment": "^2.29.4",
|
|
23
24
|
"npm": "^10.2.5",
|
|
24
|
-
"react": "^
|
|
25
|
+
"react": "^18.2.0",
|
|
25
26
|
"react-ace": "^10.1.0",
|
|
26
|
-
"react-dom": "^
|
|
27
|
+
"react-dom": "^18.2.0",
|
|
27
28
|
"react-icons": "^4.11.0",
|
|
28
29
|
"react-jsx-parser": "^1.29.0",
|
|
29
30
|
"react-transition-group": "^4.4.5",
|