@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.
@@ -1,2 +1,3 @@
1
1
  import { DekPluginFactory } from '@appkit/dek-plugin';
2
2
  export declare function updateData(email: string, password: string, plugin?: DekPluginFactory): Promise<void>;
3
+ export declare function watchForDataChanges(email: string, password: string, cb: () => void): void;
@@ -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,4 @@
1
+ import { DekPluginElementProps } from '@appkit/dek-plugin';
2
+ type Props = DekPluginElementProps;
3
+ declare const SampleBoard: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
+ export default SampleBoard;
@@ -0,0 +1,6 @@
1
+ import { DekPluginElementProps } from '@appkit/dek-plugin';
2
+ type Props = DekPluginElementProps & {
3
+ text?: string;
4
+ };
5
+ declare const CenteredText: ({ text }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default CenteredText;
@@ -0,0 +1,6 @@
1
+ import { DekPluginElementProps } from '@appkit/dek-plugin';
2
+ type Props = DekPluginElementProps & {
3
+ json?: any;
4
+ };
5
+ declare const JsonView: ({ json }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default JsonView;
@@ -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;
@@ -0,0 +1,4 @@
1
+ import { DekPluginElementProps } from '@appkit/dek-plugin';
2
+ type Props = DekPluginElementProps;
3
+ declare const SampleScreen: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
+ export default SampleScreen;
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@appkit/dek-lib",
3
3
  "private": false,
4
- "version": "0.18.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": "^16.8.0 || 17.x || 18.x",
25
+ "react": "^18.2.0",
25
26
  "react-ace": "^10.1.0",
26
- "react-dom": "^16.8.0 || 17.x || 18.x",
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",