@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
|
@@ -467,6 +467,13 @@ SWIFT_CLASS_NAMED("LineGridPlacementCompat")
|
|
|
467
467
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
468
468
|
@end
|
|
469
469
|
|
|
470
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
|
|
471
|
+
MasonLineHeightNormal = 0,
|
|
472
|
+
MasonLineHeightPre = 1,
|
|
473
|
+
MasonLineHeightPreWrap = 2,
|
|
474
|
+
MasonLineHeightPreLine = 3,
|
|
475
|
+
};
|
|
476
|
+
|
|
470
477
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonBoxSizing, "MasonBoxSizing", open) {
|
|
471
478
|
MasonBoxSizingBorderBox = 0,
|
|
472
479
|
MasonBoxSizingContentBox = 1,
|
|
@@ -743,11 +750,13 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
743
750
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
744
751
|
@end
|
|
745
752
|
|
|
753
|
+
enum MasonTextType : NSInteger;
|
|
746
754
|
@class NSCoder;
|
|
747
755
|
@class NSMutableAttributedString;
|
|
748
756
|
@class UIFont;
|
|
749
757
|
enum TextTransform : NSInteger;
|
|
750
758
|
@class UIColor;
|
|
759
|
+
enum WhiteSpace : NSInteger;
|
|
751
760
|
enum TextWrap : NSInteger;
|
|
752
761
|
|
|
753
762
|
SWIFT_CLASS_NAMED("MasonText")
|
|
@@ -755,6 +764,8 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
755
764
|
@property (nonatomic, readonly, strong) MasonText * _Nullable owner;
|
|
756
765
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
757
766
|
@property (nonatomic, readonly, copy) NSData * _Nonnull textValues;
|
|
767
|
+
@property (nonatomic, readonly) enum MasonTextType type;
|
|
768
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
758
769
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
759
770
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)masonNode OBJC_DESIGNATED_INITIALIZER;
|
|
760
771
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
@@ -779,6 +790,7 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
779
790
|
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
780
791
|
@property (nonatomic) uint32_t decorationColor;
|
|
781
792
|
@property (nonatomic) enum DecorationLine decorationLine;
|
|
793
|
+
@property (nonatomic) enum WhiteSpace whiteSpace;
|
|
782
794
|
@property (nonatomic) enum TextWrap textWrap;
|
|
783
795
|
- (void)drawRect:(CGRect)rect;
|
|
784
796
|
- (void)addView:(UIView * _Nonnull)view :(NSInteger)index;
|
|
@@ -798,6 +810,22 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextAlign, "MasonTextAlign", open) {
|
|
|
798
810
|
MasonTextAlignEnd = 6,
|
|
799
811
|
};
|
|
800
812
|
|
|
813
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextType, "MasonTextType", open) {
|
|
814
|
+
MasonTextTypeNone = 0,
|
|
815
|
+
MasonTextTypeP = 1,
|
|
816
|
+
MasonTextTypeSpan = 2,
|
|
817
|
+
MasonTextTypeCode = 3,
|
|
818
|
+
MasonTextTypeH1 = 4,
|
|
819
|
+
MasonTextTypeH2 = 5,
|
|
820
|
+
MasonTextTypeH3 = 6,
|
|
821
|
+
MasonTextTypeH4 = 7,
|
|
822
|
+
MasonTextTypeH5 = 8,
|
|
823
|
+
MasonTextTypeH6 = 9,
|
|
824
|
+
MasonTextTypeLi = 10,
|
|
825
|
+
MasonTextTypeBlockquote = 11,
|
|
826
|
+
MasonTextTypeB = 12,
|
|
827
|
+
};
|
|
828
|
+
|
|
801
829
|
|
|
802
830
|
SWIFT_CLASS_NAMED("MasonUIView")
|
|
803
831
|
@interface MasonUIView : UIView
|
|
@@ -994,6 +1022,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
994
1022
|
- (void)clear;
|
|
995
1023
|
- (MasonUIView * _Nonnull)createView SWIFT_WARN_UNUSED_RESULT;
|
|
996
1024
|
- (MasonText * _Nonnull)createTextView SWIFT_WARN_UNUSED_RESULT;
|
|
1025
|
+
- (MasonText * _Nonnull)createTextViewWithType:(enum MasonTextType)type SWIFT_WARN_UNUSED_RESULT;
|
|
997
1026
|
- (MasonNode * _Nonnull)createNode SWIFT_WARN_UNUSED_RESULT;
|
|
998
1027
|
- (void)printTree:(MasonNode * _Nonnull)node;
|
|
999
1028
|
- (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -1022,8 +1051,8 @@ typedef SWIFT_ENUM_NAMED(NSInteger, TextTransform, "TextTransform", open) {
|
|
|
1022
1051
|
};
|
|
1023
1052
|
|
|
1024
1053
|
typedef SWIFT_ENUM_NAMED(NSInteger, TextWrap, "TextWrap", open) {
|
|
1025
|
-
|
|
1026
|
-
|
|
1054
|
+
TextWrapWrap = 0,
|
|
1055
|
+
TextWrapNoWrap = 1,
|
|
1027
1056
|
TextWrapBalance = 2,
|
|
1028
1057
|
};
|
|
1029
1058
|
|
|
@@ -1039,6 +1068,13 @@ SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
|
1039
1068
|
@end
|
|
1040
1069
|
|
|
1041
1070
|
|
|
1071
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, WhiteSpace, "WhiteSpace", open) {
|
|
1072
|
+
WhiteSpaceNormal = 0,
|
|
1073
|
+
WhiteSpacePre = 1,
|
|
1074
|
+
WhiteSpacePreWrap = 2,
|
|
1075
|
+
WhiteSpacePreLine = 3,
|
|
1076
|
+
};
|
|
1077
|
+
|
|
1042
1078
|
#endif
|
|
1043
1079
|
#if __has_attribute(external_source_symbol)
|
|
1044
1080
|
# pragma clang attribute pop
|
|
@@ -1516,6 +1552,13 @@ SWIFT_CLASS_NAMED("LineGridPlacementCompat")
|
|
|
1516
1552
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1517
1553
|
@end
|
|
1518
1554
|
|
|
1555
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
|
|
1556
|
+
MasonLineHeightNormal = 0,
|
|
1557
|
+
MasonLineHeightPre = 1,
|
|
1558
|
+
MasonLineHeightPreWrap = 2,
|
|
1559
|
+
MasonLineHeightPreLine = 3,
|
|
1560
|
+
};
|
|
1561
|
+
|
|
1519
1562
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonBoxSizing, "MasonBoxSizing", open) {
|
|
1520
1563
|
MasonBoxSizingBorderBox = 0,
|
|
1521
1564
|
MasonBoxSizingContentBox = 1,
|
|
@@ -1792,11 +1835,13 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
1792
1835
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1793
1836
|
@end
|
|
1794
1837
|
|
|
1838
|
+
enum MasonTextType : NSInteger;
|
|
1795
1839
|
@class NSCoder;
|
|
1796
1840
|
@class NSMutableAttributedString;
|
|
1797
1841
|
@class UIFont;
|
|
1798
1842
|
enum TextTransform : NSInteger;
|
|
1799
1843
|
@class UIColor;
|
|
1844
|
+
enum WhiteSpace : NSInteger;
|
|
1800
1845
|
enum TextWrap : NSInteger;
|
|
1801
1846
|
|
|
1802
1847
|
SWIFT_CLASS_NAMED("MasonText")
|
|
@@ -1804,6 +1849,8 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
1804
1849
|
@property (nonatomic, readonly, strong) MasonText * _Nullable owner;
|
|
1805
1850
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1806
1851
|
@property (nonatomic, readonly, copy) NSData * _Nonnull textValues;
|
|
1852
|
+
@property (nonatomic, readonly) enum MasonTextType type;
|
|
1853
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
1807
1854
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
1808
1855
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)masonNode OBJC_DESIGNATED_INITIALIZER;
|
|
1809
1856
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
@@ -1828,6 +1875,7 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
1828
1875
|
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
1829
1876
|
@property (nonatomic) uint32_t decorationColor;
|
|
1830
1877
|
@property (nonatomic) enum DecorationLine decorationLine;
|
|
1878
|
+
@property (nonatomic) enum WhiteSpace whiteSpace;
|
|
1831
1879
|
@property (nonatomic) enum TextWrap textWrap;
|
|
1832
1880
|
- (void)drawRect:(CGRect)rect;
|
|
1833
1881
|
- (void)addView:(UIView * _Nonnull)view :(NSInteger)index;
|
|
@@ -1847,6 +1895,22 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextAlign, "MasonTextAlign", open) {
|
|
|
1847
1895
|
MasonTextAlignEnd = 6,
|
|
1848
1896
|
};
|
|
1849
1897
|
|
|
1898
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextType, "MasonTextType", open) {
|
|
1899
|
+
MasonTextTypeNone = 0,
|
|
1900
|
+
MasonTextTypeP = 1,
|
|
1901
|
+
MasonTextTypeSpan = 2,
|
|
1902
|
+
MasonTextTypeCode = 3,
|
|
1903
|
+
MasonTextTypeH1 = 4,
|
|
1904
|
+
MasonTextTypeH2 = 5,
|
|
1905
|
+
MasonTextTypeH3 = 6,
|
|
1906
|
+
MasonTextTypeH4 = 7,
|
|
1907
|
+
MasonTextTypeH5 = 8,
|
|
1908
|
+
MasonTextTypeH6 = 9,
|
|
1909
|
+
MasonTextTypeLi = 10,
|
|
1910
|
+
MasonTextTypeBlockquote = 11,
|
|
1911
|
+
MasonTextTypeB = 12,
|
|
1912
|
+
};
|
|
1913
|
+
|
|
1850
1914
|
|
|
1851
1915
|
SWIFT_CLASS_NAMED("MasonUIView")
|
|
1852
1916
|
@interface MasonUIView : UIView
|
|
@@ -2043,6 +2107,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
2043
2107
|
- (void)clear;
|
|
2044
2108
|
- (MasonUIView * _Nonnull)createView SWIFT_WARN_UNUSED_RESULT;
|
|
2045
2109
|
- (MasonText * _Nonnull)createTextView SWIFT_WARN_UNUSED_RESULT;
|
|
2110
|
+
- (MasonText * _Nonnull)createTextViewWithType:(enum MasonTextType)type SWIFT_WARN_UNUSED_RESULT;
|
|
2046
2111
|
- (MasonNode * _Nonnull)createNode SWIFT_WARN_UNUSED_RESULT;
|
|
2047
2112
|
- (void)printTree:(MasonNode * _Nonnull)node;
|
|
2048
2113
|
- (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -2071,8 +2136,8 @@ typedef SWIFT_ENUM_NAMED(NSInteger, TextTransform, "TextTransform", open) {
|
|
|
2071
2136
|
};
|
|
2072
2137
|
|
|
2073
2138
|
typedef SWIFT_ENUM_NAMED(NSInteger, TextWrap, "TextWrap", open) {
|
|
2074
|
-
|
|
2075
|
-
|
|
2139
|
+
TextWrapWrap = 0,
|
|
2140
|
+
TextWrapNoWrap = 1,
|
|
2076
2141
|
TextWrapBalance = 2,
|
|
2077
2142
|
};
|
|
2078
2143
|
|
|
@@ -2088,6 +2153,13 @@ SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
|
2088
2153
|
@end
|
|
2089
2154
|
|
|
2090
2155
|
|
|
2156
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, WhiteSpace, "WhiteSpace", open) {
|
|
2157
|
+
WhiteSpaceNormal = 0,
|
|
2158
|
+
WhiteSpacePre = 1,
|
|
2159
|
+
WhiteSpacePreWrap = 2,
|
|
2160
|
+
WhiteSpacePreLine = 3,
|
|
2161
|
+
};
|
|
2162
|
+
|
|
2091
2163
|
#endif
|
|
2092
2164
|
#if __has_attribute(external_source_symbol)
|
|
2093
2165
|
# pragma clang attribute pop
|
|
Binary file
|
|
Binary file
|