@cmdless/ui-sdk 0.0.0 → 0.0.5

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.
@@ -0,0 +1,30 @@
1
+ export declare const ShowTypes: readonly ['url', 'file'];
2
+ export type ShowType = typeof ShowTypes[number];
3
+ export declare const MessageBoxTypes: readonly ['none', 'info', 'error', 'question', 'warning'];
4
+ export type MessageBoxType = typeof MessageBoxTypes[number];
5
+ export type AdaptiveCard = {
6
+ type: 'AdaptiveCard';
7
+ [key: string]: unknown;
8
+ };
9
+ export type CardEvent = {
10
+ action: {
11
+ type: string;
12
+ id?: string;
13
+ title?: string;
14
+ verb?: string;
15
+ data?: unknown;
16
+ [key: string]: unknown;
17
+ };
18
+ inputs: Record<string, unknown>;
19
+ };
20
+ export type CardView = {
21
+ card: AdaptiveCard;
22
+ hostConfig?: object;
23
+ };
24
+ export type FormView = {
25
+ schema: object;
26
+ uiSchema?: object;
27
+ formData?: unknown;
28
+ submitText?: string;
29
+ };
30
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,YAAI,KAAK,EAAE,MAAM,CAAU,CAAC;AAClD,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;AAGhD,eAAO,MAAM,eAAe,YAAI,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,CAAU,CAAC;AACzF,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AAI5D,MAAM,MAAM,YAAY,GAAG;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAM5E,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAC;QAAA,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAC5G,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC,CAAC;AAKF,MAAM,MAAM,QAAQ,GAAG;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAInE,MAAM,MAAM,QAAQ,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,5 @@
1
+ // what a window shows: a URL, or a file
2
+ export const ShowTypes = ['url', 'file'];
3
+ // the kinds of message box a dialog can be
4
+ export const MessageBoxTypes = ['none', 'info', 'error', 'question', 'warning'];
5
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,MAAM,CAAU,CAAC;AAGlD,2CAA2C;AAC3C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,CAAU,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,47 @@
1
1
  {
2
2
  "name": "@cmdless/ui-sdk",
3
- "version": "0.0.0",
4
- "description": "OIDC trusted publishing setup package for @cmdless/ui-sdk",
5
- "keywords": [
6
- "oidc",
7
- "trusted-publishing",
8
- "setup"
9
- ]
3
+ "description": "Build cross platform desktop apps built on Electron.",
4
+ "version": "0.0.5",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "author": {
8
+ "name": "Fluttershy",
9
+ "url": "https://github.com/Fluttershy"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/cmdless/electron.git"
14
+ },
15
+ "exports": {
16
+ "./node": {
17
+ "types": "./dist/node/index.d.ts",
18
+ "import": "./dist/node/index.js"
19
+ },
20
+ "./browser": {
21
+ "types": "./dist/browser/index.d.ts",
22
+ "import": "./dist/browser/index.js"
23
+ },
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.js"
27
+ }
28
+ },
29
+ "files": [
30
+ "dist/",
31
+ "LICENSE",
32
+ "README.md"
33
+ ],
34
+ "scripts": {
35
+ "prebuild": "rimraf dist node_modules/.tmp",
36
+ "build": "tsc -b",
37
+ "test": "node ../../scripts/run-tests.mjs"
38
+ },
39
+ "dependencies": {
40
+ "@cmdless/core": "^0.0.1",
41
+ "@cmdless/rpc-sdk": "^0.0.4",
42
+ "ws": "8.21.3"
43
+ },
44
+ "devDependencies": {
45
+ "@types/ws": "8.5.13"
46
+ }
10
47
  }