@triniwiz/nativescript-masonkit 1.0.0-alpha.14 → 1.0.0-alpha.15
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/common.d.ts +6 -1
- package/common.js +59 -22
- package/common.js.map +1 -1
- package/helpers.d.ts +4 -4
- package/helpers.js +1 -0
- package/helpers.js.map +1 -1
- package/index.ios.js +2 -2
- package/package.json +1 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/Info.plist +5 -5
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +38 -2
- 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 +2459 -672
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +65 -1
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +65 -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 +1979 -1932
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +76 -4
- 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 +2459 -672
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +65 -1
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +65 -1
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +2459 -672
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +65 -1
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +65 -1
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +22 -22
- 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 +1979 -1932
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +1929 -1883
- package/style.d.ts +16 -16
- package/style.js +40 -20
- package/style.js.map +1 -1
|
@@ -52,6 +52,7 @@ public struct Line<T> {
|
|
|
52
52
|
@objc public func clear()
|
|
53
53
|
@objc public func createView() -> Mason.MasonUIView
|
|
54
54
|
@objc public func createTextView() -> Mason.MasonText
|
|
55
|
+
@objc public func createTextView(type: Mason.MasonTextType) -> Mason.MasonText
|
|
55
56
|
@objc public func createNode() -> Mason.MasonNode
|
|
56
57
|
public func createNode(measure: @escaping Mason.MasonNode.MeasureFunc) -> Mason.MasonNode
|
|
57
58
|
@objc public func printTree(_ node: Mason.MasonNode)
|
|
@@ -193,6 +194,29 @@ extension UIKit.UIColor {
|
|
|
193
194
|
public static func colorFromRGBA(_ rgba: Swift.UInt32) -> UIKit.UIColor
|
|
194
195
|
public func toUInt32() -> Swift.UInt32
|
|
195
196
|
}
|
|
197
|
+
@objc(MasonTextType) public enum MasonTextType : Swift.Int, Swift.RawRepresentable, Swift.CustomStringConvertible {
|
|
198
|
+
case None
|
|
199
|
+
case P
|
|
200
|
+
case Span
|
|
201
|
+
case Code
|
|
202
|
+
case H1
|
|
203
|
+
case H2
|
|
204
|
+
case H3
|
|
205
|
+
case H4
|
|
206
|
+
case H5
|
|
207
|
+
case H6
|
|
208
|
+
case Li
|
|
209
|
+
case Blockquote
|
|
210
|
+
case B
|
|
211
|
+
public typealias RawValue = Swift.Int32
|
|
212
|
+
public var rawValue: Mason.MasonTextType.RawValue {
|
|
213
|
+
get
|
|
214
|
+
}
|
|
215
|
+
public init?(rawValue: Mason.MasonTextType.RawValue)
|
|
216
|
+
public var description: Swift.String {
|
|
217
|
+
get
|
|
218
|
+
}
|
|
219
|
+
}
|
|
196
220
|
@_hasMissingDesignatedInitializers @objc(MasonText) @objcMembers @_Concurrency.MainActor @preconcurrency public class MasonText : UIKit.UIView, Mason.MasonView {
|
|
197
221
|
@objc @_Concurrency.MainActor @preconcurrency public var owner: Mason.MasonText? {
|
|
198
222
|
get
|
|
@@ -201,6 +225,8 @@ extension UIKit.UIColor {
|
|
|
201
225
|
@objc @_Concurrency.MainActor @preconcurrency public var textValues: Foundation.Data {
|
|
202
226
|
get
|
|
203
227
|
}
|
|
228
|
+
@objc @_Concurrency.MainActor @preconcurrency final public let type: Mason.MasonTextType
|
|
229
|
+
@objc @_Concurrency.MainActor @preconcurrency public init(mason: Mason.NSCMason, type textType: Mason.MasonTextType)
|
|
204
230
|
@objc @_Concurrency.MainActor @preconcurrency public init(mason: Mason.NSCMason)
|
|
205
231
|
@objc @_Concurrency.MainActor @preconcurrency public init(node masonNode: Mason.MasonNode)
|
|
206
232
|
@objc @_Concurrency.MainActor @preconcurrency public var uiView: UIKit.UIView {
|
|
@@ -254,6 +280,10 @@ extension UIKit.UIColor {
|
|
|
254
280
|
@objc get
|
|
255
281
|
@objc set
|
|
256
282
|
}
|
|
283
|
+
@objc @_Concurrency.MainActor @preconcurrency public var whiteSpace: Mason.WhiteSpace {
|
|
284
|
+
@objc get
|
|
285
|
+
@objc set
|
|
286
|
+
}
|
|
257
287
|
@objc @_Concurrency.MainActor @preconcurrency public var textWrap: Mason.TextWrap {
|
|
258
288
|
@objc get
|
|
259
289
|
@objc set
|
|
@@ -1068,8 +1098,8 @@ public enum GridPlacement : Swift.Codable {
|
|
|
1068
1098
|
}
|
|
1069
1099
|
}
|
|
1070
1100
|
@objc(TextWrap) public enum TextWrap : Swift.Int, Swift.RawRepresentable, Swift.CustomStringConvertible {
|
|
1071
|
-
case NoWrap
|
|
1072
1101
|
case Wrap
|
|
1102
|
+
case NoWrap
|
|
1073
1103
|
case Balance
|
|
1074
1104
|
public typealias RawValue = Swift.Int32
|
|
1075
1105
|
public var rawValue: Mason.TextWrap.RawValue {
|
|
@@ -1080,6 +1110,34 @@ public enum GridPlacement : Swift.Codable {
|
|
|
1080
1110
|
get
|
|
1081
1111
|
}
|
|
1082
1112
|
}
|
|
1113
|
+
@objc(WhiteSpace) public enum WhiteSpace : Swift.Int, Swift.RawRepresentable, Swift.CustomStringConvertible {
|
|
1114
|
+
case Normal
|
|
1115
|
+
case Pre
|
|
1116
|
+
case PreWrap
|
|
1117
|
+
case PreLine
|
|
1118
|
+
public typealias RawValue = Swift.Int32
|
|
1119
|
+
public var rawValue: Mason.WhiteSpace.RawValue {
|
|
1120
|
+
get
|
|
1121
|
+
}
|
|
1122
|
+
public init?(rawValue: Mason.WhiteSpace.RawValue)
|
|
1123
|
+
public var description: Swift.String {
|
|
1124
|
+
get
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
@objc(MasonLineHeight) public enum LineHeight : Swift.Int, Swift.RawRepresentable, Swift.CustomStringConvertible {
|
|
1128
|
+
case Normal
|
|
1129
|
+
case Pre
|
|
1130
|
+
case PreWrap
|
|
1131
|
+
case PreLine
|
|
1132
|
+
public typealias RawValue = Swift.Int32
|
|
1133
|
+
public var rawValue: Mason.LineHeight.RawValue {
|
|
1134
|
+
get
|
|
1135
|
+
}
|
|
1136
|
+
public init?(rawValue: Mason.LineHeight.RawValue)
|
|
1137
|
+
public var description: Swift.String {
|
|
1138
|
+
get
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1083
1141
|
public protocol MasonView {
|
|
1084
1142
|
var style: Mason.MasonStyle { get }
|
|
1085
1143
|
var node: Mason.MasonNode { get }
|
|
@@ -1337,6 +1395,8 @@ public protocol MasonView {
|
|
|
1337
1395
|
@objc @_Concurrency.MainActor @preconcurrency public func getColumnGap() -> Mason.MasonLengthPercentageCompat
|
|
1338
1396
|
@objc deinit
|
|
1339
1397
|
}
|
|
1398
|
+
extension Mason.MasonTextType : Swift.Equatable {}
|
|
1399
|
+
extension Mason.MasonTextType : Swift.Hashable {}
|
|
1340
1400
|
extension Mason.MasonDimensionCompatType : Swift.Equatable {}
|
|
1341
1401
|
extension Mason.MasonDimensionCompatType : Swift.Hashable {}
|
|
1342
1402
|
extension Mason.MasonLengthPercentageAutoCompatType : Swift.Equatable {}
|
|
@@ -1383,3 +1443,7 @@ extension Mason.FontStyle : Swift.Equatable {}
|
|
|
1383
1443
|
extension Mason.FontStyle : Swift.Hashable {}
|
|
1384
1444
|
extension Mason.TextWrap : Swift.Equatable {}
|
|
1385
1445
|
extension Mason.TextWrap : Swift.Hashable {}
|
|
1446
|
+
extension Mason.WhiteSpace : Swift.Equatable {}
|
|
1447
|
+
extension Mason.WhiteSpace : Swift.Hashable {}
|
|
1448
|
+
extension Mason.LineHeight : Swift.Equatable {}
|
|
1449
|
+
extension Mason.LineHeight : Swift.Hashable {}
|
|
@@ -52,6 +52,7 @@ public struct Line<T> {
|
|
|
52
52
|
@objc public func clear()
|
|
53
53
|
@objc public func createView() -> Mason.MasonUIView
|
|
54
54
|
@objc public func createTextView() -> Mason.MasonText
|
|
55
|
+
@objc public func createTextView(type: Mason.MasonTextType) -> Mason.MasonText
|
|
55
56
|
@objc public func createNode() -> Mason.MasonNode
|
|
56
57
|
public func createNode(measure: @escaping Mason.MasonNode.MeasureFunc) -> Mason.MasonNode
|
|
57
58
|
@objc public func printTree(_ node: Mason.MasonNode)
|
|
@@ -193,6 +194,29 @@ extension UIKit.UIColor {
|
|
|
193
194
|
public static func colorFromRGBA(_ rgba: Swift.UInt32) -> UIKit.UIColor
|
|
194
195
|
public func toUInt32() -> Swift.UInt32
|
|
195
196
|
}
|
|
197
|
+
@objc(MasonTextType) public enum MasonTextType : Swift.Int, Swift.RawRepresentable, Swift.CustomStringConvertible {
|
|
198
|
+
case None
|
|
199
|
+
case P
|
|
200
|
+
case Span
|
|
201
|
+
case Code
|
|
202
|
+
case H1
|
|
203
|
+
case H2
|
|
204
|
+
case H3
|
|
205
|
+
case H4
|
|
206
|
+
case H5
|
|
207
|
+
case H6
|
|
208
|
+
case Li
|
|
209
|
+
case Blockquote
|
|
210
|
+
case B
|
|
211
|
+
public typealias RawValue = Swift.Int32
|
|
212
|
+
public var rawValue: Mason.MasonTextType.RawValue {
|
|
213
|
+
get
|
|
214
|
+
}
|
|
215
|
+
public init?(rawValue: Mason.MasonTextType.RawValue)
|
|
216
|
+
public var description: Swift.String {
|
|
217
|
+
get
|
|
218
|
+
}
|
|
219
|
+
}
|
|
196
220
|
@_hasMissingDesignatedInitializers @objc(MasonText) @objcMembers @_Concurrency.MainActor @preconcurrency public class MasonText : UIKit.UIView, Mason.MasonView {
|
|
197
221
|
@objc @_Concurrency.MainActor @preconcurrency public var owner: Mason.MasonText? {
|
|
198
222
|
get
|
|
@@ -201,6 +225,8 @@ extension UIKit.UIColor {
|
|
|
201
225
|
@objc @_Concurrency.MainActor @preconcurrency public var textValues: Foundation.Data {
|
|
202
226
|
get
|
|
203
227
|
}
|
|
228
|
+
@objc @_Concurrency.MainActor @preconcurrency final public let type: Mason.MasonTextType
|
|
229
|
+
@objc @_Concurrency.MainActor @preconcurrency public init(mason: Mason.NSCMason, type textType: Mason.MasonTextType)
|
|
204
230
|
@objc @_Concurrency.MainActor @preconcurrency public init(mason: Mason.NSCMason)
|
|
205
231
|
@objc @_Concurrency.MainActor @preconcurrency public init(node masonNode: Mason.MasonNode)
|
|
206
232
|
@objc @_Concurrency.MainActor @preconcurrency public var uiView: UIKit.UIView {
|
|
@@ -254,6 +280,10 @@ extension UIKit.UIColor {
|
|
|
254
280
|
@objc get
|
|
255
281
|
@objc set
|
|
256
282
|
}
|
|
283
|
+
@objc @_Concurrency.MainActor @preconcurrency public var whiteSpace: Mason.WhiteSpace {
|
|
284
|
+
@objc get
|
|
285
|
+
@objc set
|
|
286
|
+
}
|
|
257
287
|
@objc @_Concurrency.MainActor @preconcurrency public var textWrap: Mason.TextWrap {
|
|
258
288
|
@objc get
|
|
259
289
|
@objc set
|
|
@@ -1068,8 +1098,8 @@ public enum GridPlacement : Swift.Codable {
|
|
|
1068
1098
|
}
|
|
1069
1099
|
}
|
|
1070
1100
|
@objc(TextWrap) public enum TextWrap : Swift.Int, Swift.RawRepresentable, Swift.CustomStringConvertible {
|
|
1071
|
-
case NoWrap
|
|
1072
1101
|
case Wrap
|
|
1102
|
+
case NoWrap
|
|
1073
1103
|
case Balance
|
|
1074
1104
|
public typealias RawValue = Swift.Int32
|
|
1075
1105
|
public var rawValue: Mason.TextWrap.RawValue {
|
|
@@ -1080,6 +1110,34 @@ public enum GridPlacement : Swift.Codable {
|
|
|
1080
1110
|
get
|
|
1081
1111
|
}
|
|
1082
1112
|
}
|
|
1113
|
+
@objc(WhiteSpace) public enum WhiteSpace : Swift.Int, Swift.RawRepresentable, Swift.CustomStringConvertible {
|
|
1114
|
+
case Normal
|
|
1115
|
+
case Pre
|
|
1116
|
+
case PreWrap
|
|
1117
|
+
case PreLine
|
|
1118
|
+
public typealias RawValue = Swift.Int32
|
|
1119
|
+
public var rawValue: Mason.WhiteSpace.RawValue {
|
|
1120
|
+
get
|
|
1121
|
+
}
|
|
1122
|
+
public init?(rawValue: Mason.WhiteSpace.RawValue)
|
|
1123
|
+
public var description: Swift.String {
|
|
1124
|
+
get
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
@objc(MasonLineHeight) public enum LineHeight : Swift.Int, Swift.RawRepresentable, Swift.CustomStringConvertible {
|
|
1128
|
+
case Normal
|
|
1129
|
+
case Pre
|
|
1130
|
+
case PreWrap
|
|
1131
|
+
case PreLine
|
|
1132
|
+
public typealias RawValue = Swift.Int32
|
|
1133
|
+
public var rawValue: Mason.LineHeight.RawValue {
|
|
1134
|
+
get
|
|
1135
|
+
}
|
|
1136
|
+
public init?(rawValue: Mason.LineHeight.RawValue)
|
|
1137
|
+
public var description: Swift.String {
|
|
1138
|
+
get
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1083
1141
|
public protocol MasonView {
|
|
1084
1142
|
var style: Mason.MasonStyle { get }
|
|
1085
1143
|
var node: Mason.MasonNode { get }
|
|
@@ -1337,6 +1395,8 @@ public protocol MasonView {
|
|
|
1337
1395
|
@objc @_Concurrency.MainActor @preconcurrency public func getColumnGap() -> Mason.MasonLengthPercentageCompat
|
|
1338
1396
|
@objc deinit
|
|
1339
1397
|
}
|
|
1398
|
+
extension Mason.MasonTextType : Swift.Equatable {}
|
|
1399
|
+
extension Mason.MasonTextType : Swift.Hashable {}
|
|
1340
1400
|
extension Mason.MasonDimensionCompatType : Swift.Equatable {}
|
|
1341
1401
|
extension Mason.MasonDimensionCompatType : Swift.Hashable {}
|
|
1342
1402
|
extension Mason.MasonLengthPercentageAutoCompatType : Swift.Equatable {}
|
|
@@ -1383,3 +1443,7 @@ extension Mason.FontStyle : Swift.Equatable {}
|
|
|
1383
1443
|
extension Mason.FontStyle : Swift.Hashable {}
|
|
1384
1444
|
extension Mason.TextWrap : Swift.Equatable {}
|
|
1385
1445
|
extension Mason.TextWrap : Swift.Hashable {}
|
|
1446
|
+
extension Mason.WhiteSpace : Swift.Equatable {}
|
|
1447
|
+
extension Mason.WhiteSpace : Swift.Hashable {}
|
|
1448
|
+
extension Mason.LineHeight : Swift.Equatable {}
|
|
1449
|
+
extension Mason.LineHeight : Swift.Hashable {}
|