@triniwiz/nativescript-masonkit 1.0.0-alpha.15 → 1.0.0-alpha.17

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.
Files changed (40) hide show
  1. package/common.d.ts +19 -14
  2. package/common.js +111 -17
  3. package/common.js.map +1 -1
  4. package/helpers.js +0 -1
  5. package/helpers.js.map +1 -1
  6. package/index.android.d.ts +17 -1
  7. package/index.android.js +49 -4
  8. package/index.android.js.map +1 -1
  9. package/index.d.ts +2 -0
  10. package/index.ios.d.ts +17 -1
  11. package/index.ios.js +48 -4
  12. package/index.ios.js.map +1 -1
  13. package/package.json +1 -1
  14. package/platforms/android/masonkit-release.aar +0 -0
  15. package/platforms/ios/Mason.xcframework/Info.plist +5 -5
  16. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +98 -5
  17. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  18. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  19. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +6463 -2294
  20. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +141 -11
  21. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +141 -11
  22. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  23. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2362 -1979
  24. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +196 -10
  25. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  26. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  27. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  28. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +6463 -2294
  29. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +141 -11
  30. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +141 -11
  31. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +6463 -2294
  32. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +141 -11
  33. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +141 -11
  34. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +22 -22
  35. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  36. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2362 -1979
  37. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +2299 -1929
  38. package/web.d.ts +55 -0
  39. package/web.js +189 -0
  40. package/web.js.map +1 -0
@@ -281,6 +281,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
281
281
  #pragma clang diagnostic ignored "-Watimport-in-framework-header"
282
282
  #endif
283
283
  @import CoreFoundation;
284
+ @import CoreGraphics;
284
285
  @import Foundation;
285
286
  @import ObjectiveC;
286
287
  @import UIKit;
@@ -751,9 +752,9 @@ SWIFT_CLASS_NAMED("MasonStyle")
751
752
  @end
752
753
 
753
754
  enum MasonTextType : NSInteger;
755
+ @class NSCFontFace;
754
756
  @class NSCoder;
755
757
  @class NSMutableAttributedString;
756
- @class UIFont;
757
758
  enum TextTransform : NSInteger;
758
759
  @class UIColor;
759
760
  enum WhiteSpace : NSInteger;
@@ -765,6 +766,7 @@ SWIFT_CLASS_NAMED("MasonText")
765
766
  @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
766
767
  @property (nonatomic, readonly, copy) NSData * _Nonnull textValues;
767
768
  @property (nonatomic, readonly) enum MasonTextType type;
769
+ @property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
768
770
  - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
769
771
  - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
770
772
  - (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)masonNode OBJC_DESIGNATED_INITIALIZER;
@@ -776,7 +778,6 @@ SWIFT_CLASS_NAMED("MasonText")
776
778
  - (void)configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonNode * _Nonnull))block;
777
779
  - (void)updateText:(NSString * _Nullable)value;
778
780
  @property (nonatomic, strong) NSMutableAttributedString * _Nonnull txtToRender;
779
- @property (nonatomic, readonly, strong) UIFont * _Nonnull font;
780
781
  - (void)invalidateStyle:(int64_t)state;
781
782
  @property (nonatomic) enum TextTransform textTransform;
782
783
  @property (nonatomic) CGFloat fontSize;
@@ -838,10 +839,8 @@ SWIFT_CLASS_NAMED("MasonUIView")
838
839
  + (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
839
840
  + (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
840
841
  + (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
841
- @property (nonatomic, readonly) int64_t masonPtr;
842
- @property (nonatomic, readonly) int64_t masonNodePtr;
843
- @property (nonatomic, readonly, copy) NSString * _Nonnull masonPtrs;
844
842
  @property (nonatomic, strong) MasonStyle * _Nonnull style;
843
+ - (void)requestLayout;
845
844
  - (void)addView:(UIView * _Nonnull)view;
846
845
  - (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
847
846
  - (void)syncStyle:(NSString * _Nonnull)state;
@@ -1011,6 +1010,99 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing *
1011
1010
  @end
1012
1011
 
1013
1012
 
1013
+ SWIFT_CLASS_NAMED("NSCFontDescriptors")
1014
+ @interface NSCFontDescriptors : NSObject
1015
+ - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
1016
+ - (void)update:(NSString * _Nonnull)value;
1017
+ - (void)setFontWeight:(NSString * _Nonnull)value;
1018
+ - (void)setFontStyle:(NSString * _Nonnull)value;
1019
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1020
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1021
+ @end
1022
+
1023
+ typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
1024
+ NSCFontDisplayAuto = 0,
1025
+ NSCFontDisplayBlock = 1,
1026
+ NSCFontDisplayFallback = 2,
1027
+ NSCFontDisplayOptional = 3,
1028
+ NSCFontDisplaySwap = 4,
1029
+ };
1030
+
1031
+ enum NSCFontFaceStatus : NSInteger;
1032
+ enum NSCFontWeight : NSInteger;
1033
+
1034
+ SWIFT_CLASS_NAMED("NSCFontFace")
1035
+ @interface NSCFontFace : NSObject
1036
+ @property (nonatomic, readonly) CGFontRef _Nullable font;
1037
+ @property (nonatomic, readonly, strong) NSData * _Nullable fontData;
1038
+ - (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
1039
+ + (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
1040
+ + (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
1041
+ - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
1042
+ - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
1043
+ - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
1044
+ - (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
1045
+ - (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
1046
+ @property (nonatomic) enum NSCFontFaceStatus status;
1047
+ @property (nonatomic) enum NSCFontDisplay display;
1048
+ - (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
1049
+ @property (nonatomic, copy) NSString * _Nonnull style;
1050
+ - (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
1051
+ @property (nonatomic) enum NSCFontWeight weight;
1052
+ - (void)setFontWeightWithValue:(NSString * _Nonnull)value;
1053
+ @property (nonatomic, readonly, copy) NSString * _Nonnull family;
1054
+ @property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
1055
+ @property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
1056
+ - (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
1057
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1058
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1059
+ @end
1060
+
1061
+ enum NSCFontFaceSetStatus : NSInteger;
1062
+ @class NSEnumerator;
1063
+
1064
+ SWIFT_CLASS_NAMED("NSCFontFaceSet")
1065
+ @interface NSCFontFaceSet : NSObject
1066
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
1067
+ + (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
1068
+ @property (nonatomic) enum NSCFontFaceSetStatus status;
1069
+ @property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
1070
+ - (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
1071
+ - (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
1072
+ - (void)add:(NSCFontFace * _Nonnull)font;
1073
+ - (void)clear;
1074
+ - (void)delete:(NSCFontFace * _Nonnull)font;
1075
+ - (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
1076
+ - (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
1077
+ @property (nonatomic, readonly) NSInteger size;
1078
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1079
+ @end
1080
+
1081
+ typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
1082
+ NSCFontFaceSetStatusLoading = 0,
1083
+ NSCFontFaceSetStatusLoaded = 1,
1084
+ };
1085
+
1086
+ typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
1087
+ NSCFontFaceStatusUnloaded = 0,
1088
+ NSCFontFaceStatusLoading = 1,
1089
+ NSCFontFaceStatusLoaded = 2,
1090
+ NSCFontFaceStatusError = 3,
1091
+ };
1092
+
1093
+ typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
1094
+ NSCFontWeightThin = 0,
1095
+ NSCFontWeightExtraLight = 1,
1096
+ NSCFontWeightLight = 2,
1097
+ NSCFontWeightNormal = 3,
1098
+ NSCFontWeightMedium = 4,
1099
+ NSCFontWeightSemiBold = 5,
1100
+ NSCFontWeightBold = 6,
1101
+ NSCFontWeightExtraBold = 7,
1102
+ NSCFontWeightBlack = 8,
1103
+ };
1104
+
1105
+
1014
1106
  SWIFT_CLASS_NAMED("NSCMason")
1015
1107
  @interface NSCMason : NSObject
1016
1108
  @property (nonatomic, readonly) void * _Nullable nativePtr;
@@ -1073,6 +1165,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, WhiteSpace, "WhiteSpace", open) {
1073
1165
  WhiteSpacePre = 1,
1074
1166
  WhiteSpacePreWrap = 2,
1075
1167
  WhiteSpacePreLine = 3,
1168
+ WhiteSpaceNowrap = 4,
1076
1169
  };
1077
1170
 
1078
1171
  #endif