@jag-k/scriptable-jsx 1.1.1 → 1.1.3
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/alert.d.ts +10 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +1 -1
- package/dist/widget.d.ts +27 -0
- package/package.json +3 -3
package/dist/alert.d.ts
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="@types/scriptable-ios" />
|
2
|
+
export declare function alertCreateElement(element: unknown, props: Record<string, any>, ...children: any[]): Alert | {
|
3
|
+
type: "text-field";
|
4
|
+
props: Record<string, any>;
|
5
|
+
children?: undefined;
|
6
|
+
} | {
|
7
|
+
type: "action";
|
8
|
+
props: Record<string, any>;
|
9
|
+
children: any[];
|
10
|
+
} | undefined;
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
/// <reference types="@types/scriptable-ios" />
|
2
|
+
export declare class ScriptableJSX {
|
3
|
+
static createElement(element: unknown, props: Record<string, any>, ...children: any[]): Alert | {
|
4
|
+
type: "text-field";
|
5
|
+
props: Record<string, any>;
|
6
|
+
children?: undefined;
|
7
|
+
} | {
|
8
|
+
type: "action";
|
9
|
+
props: Record<string, any>;
|
10
|
+
children: any[];
|
11
|
+
} | ListWidget | {
|
12
|
+
type: "text";
|
13
|
+
props: Record<string, any>;
|
14
|
+
text: string;
|
15
|
+
children?: undefined;
|
16
|
+
} | {
|
17
|
+
type: "stack";
|
18
|
+
props: Record<string, any>;
|
19
|
+
children: any[];
|
20
|
+
text?: undefined;
|
21
|
+
} | {
|
22
|
+
type: "spacer";
|
23
|
+
props: Record<string, any>;
|
24
|
+
text?: undefined;
|
25
|
+
children?: undefined;
|
26
|
+
} | {
|
27
|
+
type: "image";
|
28
|
+
props: Record<string, any>;
|
29
|
+
text?: undefined;
|
30
|
+
children?: undefined;
|
31
|
+
} | {
|
32
|
+
type: "date";
|
33
|
+
props: Record<string, any>;
|
34
|
+
text?: undefined;
|
35
|
+
children?: undefined;
|
36
|
+
} | undefined;
|
37
|
+
}
|
package/dist/index.js
CHANGED
package/dist/widget.d.ts
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
/// <reference types="@types/scriptable-ios" />
|
2
|
+
export declare function widgetCreateElement(element: unknown, props: Record<string, any>, ...children: any[]): ListWidget | {
|
3
|
+
type: "text";
|
4
|
+
props: Record<string, any>;
|
5
|
+
text: string;
|
6
|
+
children?: undefined;
|
7
|
+
} | {
|
8
|
+
type: "stack";
|
9
|
+
props: Record<string, any>;
|
10
|
+
children: any[];
|
11
|
+
text?: undefined;
|
12
|
+
} | {
|
13
|
+
type: "spacer";
|
14
|
+
props: Record<string, any>;
|
15
|
+
text?: undefined;
|
16
|
+
children?: undefined;
|
17
|
+
} | {
|
18
|
+
type: "image";
|
19
|
+
props: Record<string, any>;
|
20
|
+
text?: undefined;
|
21
|
+
children?: undefined;
|
22
|
+
} | {
|
23
|
+
type: "date";
|
24
|
+
props: Record<string, any>;
|
25
|
+
text?: undefined;
|
26
|
+
children?: undefined;
|
27
|
+
} | undefined;
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@jag-k/scriptable-jsx",
|
3
3
|
"description": "Create a Scriptable bundle from JSX",
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
5
|
-
"version": "1.1.
|
5
|
+
"version": "1.1.3",
|
6
6
|
"author": {
|
7
7
|
"email": "jag.konon@gmail.com",
|
8
8
|
"name": "Jag_k",
|
@@ -42,11 +42,11 @@
|
|
42
42
|
],
|
43
43
|
"devDependencies": {
|
44
44
|
"@rollup/plugin-typescript": "^8.3.4",
|
45
|
-
"rollup": "^2.
|
45
|
+
"rollup": "^2.78.0",
|
46
46
|
"tslib": "^2.4.0"
|
47
47
|
},
|
48
48
|
"types": "./dist/index.d.ts",
|
49
49
|
"dependencies": {
|
50
|
-
"@types/scriptable-ios": "^1.
|
50
|
+
"@types/scriptable-ios": "^1.7.0"
|
51
51
|
}
|
52
52
|
}
|