@pi-r/android 0.8.2 → 0.9.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,90 +1,91 @@
1
- import type { RequestData as IRequestData } from '@e-mc/types/lib/node';
2
-
3
- interface BoxRect<T = number> {
4
- top: T;
5
- right: T;
6
- bottom: T;
7
- left: T;
8
- }
9
-
10
- interface BoxRectDimension extends BoxRect, Dimension {
11
- numberOfLines?: number;
12
- overflow?: boolean;
13
- }
14
-
15
- export interface FinalizedElement {
16
- documentId: string;
17
- bounds: BoxRectDimension;
18
- css: PlainObject;
19
- outerWrapperIds?: string[];
20
- }
21
-
22
- export interface ConditionProperty {
23
- conditionText: string;
24
- }
25
-
26
- export interface CssConditionData extends ConditionProperty {
27
- name?: string;
28
- conditionText: string;
29
- }
30
-
31
- export interface DocumentOutput {
32
- targetAPI?: number | string;
33
- manifest?: ManifestData;
34
- namespace?: string;
35
- applicationId?: string;
36
- profileable?: boolean | ArrayOf<string>;
37
- dependencies?: string[];
38
- dependencyScopes?: boolean | 1 | ArrayOf<DependencyScopes | "snapshot" | "constraints">;
39
- directories?: ControllerSettingsDirectoryUI;
40
- elements?: FinalizedElement[];
41
- projectName?: string;
42
- mainParentDir?: string;
43
- mainSrcDir?: string;
44
- mainActivityFile?: string;
45
- javaVersion?: number | string;
46
- jvmToolchain?: number | string;
47
- versionCatalog?: boolean;
48
- versionName?: string;
49
- versionCode?: number;
50
- dataBinding?: boolean;
51
- commands?: ArrayOf<ArrayOf<string>>;
52
- extensionData?: PlainObject;
53
- }
54
-
55
- export interface RequestData extends IRequestData, DocumentOutput {}
56
-
57
- export interface ManifestData extends PlainObject {
58
- package?: string;
59
- application?: {
60
- supportsRtl?: boolean;
61
- label?: string;
62
- theme?: string;
63
- metaData?: { name?: string; resource?: string; value?: string }[];
64
- activity?: ObjectMap<{
65
- layout?: {
66
- defaultWidth?: string;
67
- defaultHeight?: string;
68
- minWidth?: string;
69
- minHeight?: string;
70
- gravity?: string;
71
- };
72
- }>;
73
- activityName?: string;
74
- fontProvider?: string;
75
- };
76
- }
77
-
78
- export interface ControllerSettingsDirectoryUI {
79
- layout: string;
80
- string: string;
81
- font: string;
82
- image: string;
83
- video: string;
84
- audio: string;
85
- main: string;
86
- animation: string;
87
- theme: string;
88
- }
89
-
1
+ import type { Dimension } from '@e-mc/types/lib/image';
2
+ import type { RequestData as IRequestData } from '@e-mc/types/lib/node';
3
+
4
+ interface BoxRect<T = number> {
5
+ top: T;
6
+ right: T;
7
+ bottom: T;
8
+ left: T;
9
+ }
10
+
11
+ interface BoxRectDimension extends BoxRect, Dimension {
12
+ numberOfLines?: number;
13
+ overflow?: boolean;
14
+ }
15
+
16
+ export interface FinalizedElement {
17
+ documentId: string;
18
+ bounds: BoxRectDimension;
19
+ css: PlainObject;
20
+ outerWrapperIds?: string[];
21
+ }
22
+
23
+ export interface ConditionProperty {
24
+ conditionText: string;
25
+ }
26
+
27
+ export interface CssConditionData extends ConditionProperty {
28
+ name?: string;
29
+ conditionText: string;
30
+ }
31
+
32
+ export interface DocumentOutput {
33
+ targetAPI?: number | string;
34
+ manifest?: ManifestData;
35
+ namespace?: string;
36
+ applicationId?: string;
37
+ profileable?: boolean | string | string[];
38
+ dependencies?: string[];
39
+ dependencyScopes?: boolean | 1 | ArrayOf<DependencyScopes | "snapshot" | "constraints">;
40
+ directories?: ControllerSettingsDirectoryUI;
41
+ elements?: FinalizedElement[];
42
+ projectName?: string;
43
+ mainParentDir?: string;
44
+ mainSrcDir?: string;
45
+ mainActivityFile?: string;
46
+ javaVersion?: number | string;
47
+ jvmToolchain?: number | string;
48
+ versionCatalog?: boolean;
49
+ versionName?: string;
50
+ versionCode?: number;
51
+ dataBinding?: boolean;
52
+ commands?: ArrayOf<string | string[]>;
53
+ extensionData?: PlainObject;
54
+ }
55
+
56
+ export interface RequestData extends IRequestData, DocumentOutput {}
57
+
58
+ export interface ManifestData extends PlainObject {
59
+ package?: string;
60
+ application?: {
61
+ supportsRtl?: boolean;
62
+ label?: string;
63
+ theme?: string;
64
+ metaData?: { name?: string; resource?: string; value?: string }[];
65
+ activity?: ObjectMap<{
66
+ layout?: {
67
+ defaultWidth?: string;
68
+ defaultHeight?: string;
69
+ minWidth?: string;
70
+ minHeight?: string;
71
+ gravity?: string;
72
+ };
73
+ }>;
74
+ activityName?: string;
75
+ fontProvider?: string;
76
+ };
77
+ }
78
+
79
+ export interface ControllerSettingsDirectoryUI {
80
+ layout: string;
81
+ string: string;
82
+ font: string;
83
+ image: string;
84
+ video: string;
85
+ audio: string;
86
+ main: string;
87
+ animation: string;
88
+ theme: string;
89
+ }
90
+
90
91
  export type DependencyScopes = "compile" | "provided" | "runtime" | "test";