@triniwiz/nativescript-masonkit 1.0.0-alpha.2 → 1.0.0-alpha.22
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/index.d.ts +167 -17
- package/package.json +4 -4
- package/platforms/android/include.gradle +22 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/Info.plist +9 -5
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +495 -313
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason.h +11 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +215 -818
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +30167 -19469
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +660 -310
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +660 -310
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/module.modulemap +1 -1
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2421 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +1053 -689
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason.h +11 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +215 -818
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +30167 -19469
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +660 -310
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +660 -310
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +30167 -19469
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +660 -310
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +660 -310
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/module.modulemap +1 -1
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +33 -97
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2421 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +2357 -0
- package/common.d.ts +0 -75
- package/common.js +0 -1556
- package/common.js.map +0 -1
- package/helpers.d.ts +0 -233
- package/helpers.js +0 -3382
- package/helpers.js.map +0 -1
- package/index.android.d.ts +0 -26
- package/index.android.js +0 -95
- package/index.android.js.map +0 -1
- package/index.ios.d.ts +0 -27
- package/index.ios.js +0 -136
- package/index.ios.js.map +0 -1
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/PrivateHeaders/mason_native.h +0 -676
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/PrivateHeaders/mason_native.h +0 -676
- package/platforms/ios/Podfile +0 -1
- package/platforms/ios/build.xcconfig +0 -2
- package/platforms/ios/src/JSIModule.h +0 -217
- package/platforms/ios/src/JSIModule.mm +0 -2788
- package/platforms/ios/src/include/mason_native.h +0 -945
- package/platforms/ios/src/module.modulemap +0 -4
package/index.d.ts
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { CoreTypes } from '@nativescript/core';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { TextBase, ViewBase } from './common';
|
|
4
|
+
import { LengthPercentage } from '@nativescript/core/css/parser';
|
|
4
5
|
|
|
5
|
-
export type Length = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit
|
|
6
|
+
export type Length = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit | `${number}px` | `${number}%` | `${number}dip`;
|
|
6
7
|
|
|
7
|
-
export type LengthAuto = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | 'auto'
|
|
8
|
+
export type LengthAuto = CoreTypes.dip | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit | 'auto' | `${number}px` | `${number}%` | `${number}dip`;
|
|
8
9
|
|
|
9
10
|
export type SizeLength = { width: LengthType; height: LengthType };
|
|
10
11
|
|
|
11
12
|
export type Position = 'absolute' | 'relative';
|
|
12
13
|
|
|
13
|
-
export type Display = 'none' | 'flex' | 'grid';
|
|
14
|
+
export type Display = 'none' | 'flex' | 'grid' | 'block' | 'inline' | 'inline-block' | 'inline-flex' | 'inline-grid';
|
|
15
|
+
|
|
16
|
+
export type BoxSizing = 'border-box' | 'content-box';
|
|
17
|
+
|
|
18
|
+
export type Overflow = 'visible' | 'hidden' | 'scroll';
|
|
14
19
|
|
|
15
20
|
export type FlexWrap = 'no-wrap' | 'wrap' | 'wrap-reverse';
|
|
16
21
|
|
|
@@ -32,28 +37,168 @@ export type JustifySelf = AlignSelf;
|
|
|
32
37
|
|
|
33
38
|
export type JustifyContent = AlignContent;
|
|
34
39
|
|
|
35
|
-
export type GridAutoFlow = 'row' | 'column' | 'row
|
|
36
|
-
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
export type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense' | 'dense';
|
|
41
|
+
|
|
42
|
+
export class View extends ViewBase {
|
|
43
|
+
boxSizing: BoxSizing;
|
|
44
|
+
display: Display;
|
|
45
|
+
position: Position;
|
|
46
|
+
flexDirection: FlexDirection;
|
|
47
|
+
flexWrap: FlexWrap;
|
|
48
|
+
flex: string | 'auto' | 'none' | number | 'initial';
|
|
49
|
+
flexFlow: string;
|
|
50
|
+
width: LengthAuto;
|
|
51
|
+
height: LengthAuto;
|
|
52
|
+
maxWidth: LengthAuto;
|
|
53
|
+
maxHeight: LengthAuto;
|
|
54
|
+
left: Length;
|
|
55
|
+
right: Length;
|
|
56
|
+
top: Length;
|
|
57
|
+
bottom: Length;
|
|
58
|
+
gridGap: Gap;
|
|
59
|
+
gap: Gap;
|
|
60
|
+
rowGap: Length;
|
|
61
|
+
columnGap: Length;
|
|
62
|
+
aspectRatio: number;
|
|
63
|
+
flexBasis: Length;
|
|
64
|
+
alignItems: AlignItems;
|
|
65
|
+
alignSelf: AlignSelf;
|
|
66
|
+
alignContent: AlignContent;
|
|
67
|
+
justifyItems: JustifyItems;
|
|
68
|
+
justifySelf: JustifySelf;
|
|
69
|
+
justifyContent: JustifyContent;
|
|
70
|
+
gridAutoRows: string;
|
|
71
|
+
gridAutoColumns: string;
|
|
72
|
+
gridAutoFlow: GridAutoFlow;
|
|
73
|
+
gridRowGap: Gap;
|
|
74
|
+
gridColumnGap: Gap;
|
|
75
|
+
gridArea: string;
|
|
76
|
+
gridColumn: string;
|
|
77
|
+
gridColumnStart: string;
|
|
78
|
+
gridColumnEnd: string;
|
|
79
|
+
gridRow: string;
|
|
80
|
+
gridRowStart: string;
|
|
81
|
+
gridRowEnd: string;
|
|
82
|
+
gridTemplateRows: string;
|
|
83
|
+
gridTemplateColumns: string;
|
|
84
|
+
overflow: Overflow;
|
|
85
|
+
overflowX: Overflow;
|
|
86
|
+
overflowY: Overflow;
|
|
87
|
+
scrollBarWidth: number | CoreTypes.LengthType;
|
|
88
|
+
}
|
|
42
89
|
|
|
43
|
-
export class
|
|
90
|
+
export class Text extends TextBase {
|
|
91
|
+
display: Display;
|
|
92
|
+
position: Position;
|
|
93
|
+
flexDirection: FlexDirection;
|
|
94
|
+
flexWrap: FlexWrap;
|
|
95
|
+
flex: string | 'auto' | 'none' | number | 'initial';
|
|
96
|
+
flexFlow: string;
|
|
97
|
+
width: LengthAuto;
|
|
98
|
+
height: LengthAuto;
|
|
99
|
+
maxWidth: LengthAuto;
|
|
100
|
+
maxHeight: LengthAuto;
|
|
101
|
+
left: Length;
|
|
102
|
+
right: Length;
|
|
103
|
+
top: Length;
|
|
104
|
+
bottom: Length;
|
|
105
|
+
gridGap: Gap;
|
|
106
|
+
gap: Gap;
|
|
107
|
+
rowGap: Length;
|
|
108
|
+
columnGap: Length;
|
|
109
|
+
aspectRatio: number;
|
|
110
|
+
flexBasis: Length;
|
|
111
|
+
alignItems: AlignItems;
|
|
112
|
+
alignSelf: AlignSelf;
|
|
113
|
+
alignContent: AlignContent;
|
|
114
|
+
justifyItems: JustifyItems;
|
|
115
|
+
justifySelf: JustifySelf;
|
|
116
|
+
justifyContent: JustifyContent;
|
|
117
|
+
gridAutoRows: string;
|
|
118
|
+
gridAutoColumns: string;
|
|
119
|
+
gridAutoFlow: GridAutoFlow;
|
|
120
|
+
gridRowGap: Gap;
|
|
121
|
+
gridColumnGap: Gap;
|
|
122
|
+
gridArea: string;
|
|
123
|
+
gridColumn: string;
|
|
124
|
+
gridColumnStart: string;
|
|
125
|
+
gridColumnEnd: string;
|
|
126
|
+
gridRow: string;
|
|
127
|
+
gridRowStart: string;
|
|
128
|
+
gridRowEnd: string;
|
|
129
|
+
gridTemplateRows: string;
|
|
130
|
+
gridTemplateColumns: string;
|
|
131
|
+
overflow: Overflow;
|
|
132
|
+
overflowX: Overflow;
|
|
133
|
+
overflowY: Overflow;
|
|
134
|
+
scrollBarWidth: number | CoreTypes.LengthType;
|
|
135
|
+
}
|
|
44
136
|
|
|
45
|
-
export class
|
|
137
|
+
export class Img extends ViewBase {
|
|
138
|
+
src: string;
|
|
139
|
+
display: Display;
|
|
140
|
+
position: Position;
|
|
141
|
+
flexDirection: FlexDirection;
|
|
142
|
+
flexWrap: FlexWrap;
|
|
143
|
+
flex: string | 'auto' | 'none' | number | 'initial';
|
|
144
|
+
flexFlow: string;
|
|
145
|
+
minWidth: LengthAuto;
|
|
146
|
+
minHeight: LengthAuto;
|
|
147
|
+
width: LengthAuto;
|
|
148
|
+
height: LengthAuto;
|
|
149
|
+
maxWidth: LengthAuto;
|
|
150
|
+
maxHeight: LengthAuto;
|
|
151
|
+
left: Length;
|
|
152
|
+
right: Length;
|
|
153
|
+
top: Length;
|
|
154
|
+
bottom: Length;
|
|
155
|
+
gridGap: Gap;
|
|
156
|
+
gap: Gap;
|
|
157
|
+
rowGap: Length;
|
|
158
|
+
columnGap: Length;
|
|
159
|
+
aspectRatio: number;
|
|
160
|
+
flexBasis: Length;
|
|
161
|
+
alignItems: AlignItems;
|
|
162
|
+
alignSelf: AlignSelf;
|
|
163
|
+
alignContent: AlignContent;
|
|
164
|
+
justifyItems: JustifyItems;
|
|
165
|
+
justifySelf: JustifySelf;
|
|
166
|
+
justifyContent: JustifyContent;
|
|
167
|
+
gridAutoRows: string;
|
|
168
|
+
gridAutoColumns: string;
|
|
169
|
+
gridAutoFlow: GridAutoFlow;
|
|
170
|
+
gridRowGap: Gap;
|
|
171
|
+
gridColumnGap: Gap;
|
|
172
|
+
gridArea: string;
|
|
173
|
+
gridColumn: string;
|
|
174
|
+
gridColumnStart: string;
|
|
175
|
+
gridColumnEnd: string;
|
|
176
|
+
gridRow: string;
|
|
177
|
+
gridRowStart: string;
|
|
178
|
+
gridRowEnd: string;
|
|
179
|
+
gridTemplateRows: string;
|
|
180
|
+
gridTemplateColumns: string;
|
|
181
|
+
overflow: Overflow;
|
|
182
|
+
overflowX: Overflow;
|
|
183
|
+
overflowY: Overflow;
|
|
184
|
+
scrollBarWidth: Length;
|
|
185
|
+
}
|
|
46
186
|
|
|
47
187
|
declare module '@nativescript/core/ui/styling/style' {
|
|
48
188
|
interface Style {
|
|
189
|
+
boxSizing: BoxSizing;
|
|
49
190
|
display: Display;
|
|
50
191
|
position: Position;
|
|
51
192
|
flexDirection: FlexDirection;
|
|
52
193
|
flexWrap: FlexWrap;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
194
|
+
flex: string | 'auto' | 'none' | number | 'initial';
|
|
195
|
+
flexFlow: string;
|
|
196
|
+
minWidth: LengthAuto;
|
|
197
|
+
minHeight: LengthAuto;
|
|
198
|
+
width: LengthAuto;
|
|
199
|
+
height: LengthAuto;
|
|
200
|
+
maxWidth: LengthAuto;
|
|
201
|
+
maxHeight: LengthAuto;
|
|
57
202
|
left: Length;
|
|
58
203
|
right: Length;
|
|
59
204
|
top: Length;
|
|
@@ -63,6 +208,7 @@ declare module '@nativescript/core/ui/styling/style' {
|
|
|
63
208
|
rowGap: Length;
|
|
64
209
|
columnGap: Length;
|
|
65
210
|
aspectRatio: number;
|
|
211
|
+
flexBasis: LengthPercentage | string | number;
|
|
66
212
|
alignItems: AlignItems;
|
|
67
213
|
alignSelf: AlignSelf;
|
|
68
214
|
alignContent: AlignContent;
|
|
@@ -83,5 +229,9 @@ declare module '@nativescript/core/ui/styling/style' {
|
|
|
83
229
|
gridRowEnd: string;
|
|
84
230
|
gridTemplateRows: string;
|
|
85
231
|
gridTemplateColumns: string;
|
|
232
|
+
overflow: Overflow;
|
|
233
|
+
overflowX: Overflow;
|
|
234
|
+
overflowY: Overflow;
|
|
235
|
+
scrollBarWidth: Length;
|
|
86
236
|
}
|
|
87
237
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@triniwiz/nativescript-masonkit",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.22",
|
|
4
4
|
"description": "Web Inspired Layout",
|
|
5
5
|
"main": "index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"nativescript": {
|
|
8
8
|
"platforms": {
|
|
9
|
-
"ios": "
|
|
10
|
-
"android": "
|
|
9
|
+
"ios": "8.0.0",
|
|
10
|
+
"android": "8.0.0"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
"readmeFilename": "README.md",
|
|
34
34
|
"bootstrapper": "@nativescript/plugin-seed",
|
|
35
35
|
"types": "./index.d.d.ts"
|
|
36
|
-
}
|
|
36
|
+
}
|
|
@@ -1 +1,22 @@
|
|
|
1
|
-
dependencies {
|
|
1
|
+
dependencies {
|
|
2
|
+
implementation 'com.google.code.gson:gson:2.10'
|
|
3
|
+
implementation 'com.github.bumptech.glide:glide:4.14.2'
|
|
4
|
+
annotationProcessor 'com.github.bumptech.glide:compiler:4.14.2'
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
android {
|
|
8
|
+
defaultConfig {
|
|
9
|
+
multiDexEnabled true
|
|
10
|
+
}
|
|
11
|
+
packagingOptions {
|
|
12
|
+
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
|
|
13
|
+
pickFirst 'lib/arm64-v8a/libc++_shared.so'
|
|
14
|
+
pickFirst 'lib/x86_64/libc++_shared.so'
|
|
15
|
+
pickFirst 'lib/x86/libc++_shared.so'
|
|
16
|
+
|
|
17
|
+
pickFirst 'lib/armeabi-v7a/libNativeScript.so'
|
|
18
|
+
pickFirst 'lib/arm64-v8a/libNativeScript.so'
|
|
19
|
+
pickFirst 'lib/x86_64/libNativeScript.so'
|
|
20
|
+
pickFirst 'lib/x86/libNativeScript.so'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
Binary file
|
|
@@ -5,35 +5,39 @@
|
|
|
5
5
|
<key>AvailableLibraries</key>
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
|
+
<key>BinaryPath</key>
|
|
9
|
+
<string>Mason.framework/Mason</string>
|
|
8
10
|
<key>DebugSymbolsPath</key>
|
|
9
11
|
<string>dSYMs</string>
|
|
10
12
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
13
|
+
<string>ios-arm64</string>
|
|
12
14
|
<key>LibraryPath</key>
|
|
13
15
|
<string>Mason.framework</string>
|
|
14
16
|
<key>SupportedArchitectures</key>
|
|
15
17
|
<array>
|
|
16
18
|
<string>arm64</string>
|
|
17
|
-
<string>x86_64</string>
|
|
18
19
|
</array>
|
|
19
20
|
<key>SupportedPlatform</key>
|
|
20
21
|
<string>ios</string>
|
|
21
|
-
<key>SupportedPlatformVariant</key>
|
|
22
|
-
<string>simulator</string>
|
|
23
22
|
</dict>
|
|
24
23
|
<dict>
|
|
24
|
+
<key>BinaryPath</key>
|
|
25
|
+
<string>Mason.framework/Mason</string>
|
|
25
26
|
<key>DebugSymbolsPath</key>
|
|
26
27
|
<string>dSYMs</string>
|
|
27
28
|
<key>LibraryIdentifier</key>
|
|
28
|
-
<string>ios-
|
|
29
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
29
30
|
<key>LibraryPath</key>
|
|
30
31
|
<string>Mason.framework</string>
|
|
31
32
|
<key>SupportedArchitectures</key>
|
|
32
33
|
<array>
|
|
33
34
|
<string>arm64</string>
|
|
35
|
+
<string>x86_64</string>
|
|
34
36
|
</array>
|
|
35
37
|
<key>SupportedPlatform</key>
|
|
36
38
|
<string>ios</string>
|
|
39
|
+
<key>SupportedPlatformVariant</key>
|
|
40
|
+
<string>simulator</string>
|
|
37
41
|
</dict>
|
|
38
42
|
</array>
|
|
39
43
|
<key>CFBundlePackageType</key>
|