@jag-k/scriptable-jsx 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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;
@@ -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
+ }
@@ -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.1",
5
+ "version": "1.1.2",
6
6
  "author": {
7
7
  "email": "jag.konon@gmail.com",
8
8
  "name": "Jag_k",
@@ -42,7 +42,7 @@
42
42
  ],
43
43
  "devDependencies": {
44
44
  "@rollup/plugin-typescript": "^8.3.4",
45
- "rollup": "^2.67.3",
45
+ "rollup": "^2.78.0",
46
46
  "tslib": "^2.4.0"
47
47
  },
48
48
  "types": "./dist/index.d.ts",