@nativescript/core 8.9.0-next-01-17-2025-12834437745 → 8.9.0-next-01-18-2025-12839190246
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/accessibility/accessibility-service.d.ts +10 -0
- package/accessibility/font-scale.d.ts +9 -0
- package/accessibility/index.d.ts +37 -0
- package/animation-frame/animation-native.d.ts +4 -0
- package/animation-frame/index.d.ts +17 -3
- package/application/application.d.ts +194 -0
- package/application/index.d.ts +2 -0
- package/application-settings/index.d.ts +70 -0
- package/cli-hooks/before-checkForChanges.js +60 -0
- package/cli-hooks/postinstall.js +2 -0
- package/cli-hooks/preuninstall.js +2 -0
- package/color/index.d.ts +206 -0
- package/connectivity/index.d.ts +52 -0
- package/css/css-tree-parser.js +21 -17
- package/css/lib/parse/index.js +602 -0
- package/css/package.json +36 -0
- package/css/reworkcss.d.ts +47 -0
- package/css/reworkcss.js +1 -0
- package/css-value/package.json +23 -0
- package/css-value/reworkcss-value.d.ts +8 -0
- package/css-value/reworkcss-value.js +113 -0
- package/debugger/css-agent.d.ts +59 -0
- package/debugger/devtools-elements.d.ts +23 -5
- package/debugger/dom-node.d.ts +23 -20
- package/fetch/index.js +539 -0
- package/file-system/file-system-access.d.ts +441 -0
- package/file-system/index.d.ts +370 -95
- package/fps-meter/fps-native.d.ts +24 -0
- package/fps-meter/index.d.ts +24 -7
- package/global-types.d.ts +393 -0
- package/globals/index.d.ts +4 -19
- package/http/http-request/index.d.ts +3 -0
- package/http/index.d.ts +149 -73
- package/image-asset/index.d.ts +17 -0
- package/image-source/index.d.ts +350 -0
- package/index.d.ts +24 -7
- package/js-libs/easysax/easysax.d.ts +8 -0
- package/js-libs/easysax/easysax.js +782 -0
- package/js-libs/easysax/package.json +35 -0
- package/matrix/index.d.ts +32 -5
- package/module-name-resolver/index.d.ts +21 -13
- package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
- package/package.json +1 -1
- package/platform/device/index.d.ts +70 -0
- package/platform/index.d.ts +26 -0
- package/platform/screen/index.d.ts +48 -0
- package/platforms/android/native-api-usage.json +32 -0
- package/platforms/android/res/values/ids.xml +4 -0
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/android/winter_tc-release.aar +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/Info.plist +102 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Resources/Info.plist +52 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Resources/Info.plist +52 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/_CodeSignature/CodeResources +146 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/_CodeSignature/CodeResources +146 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
- package/platforms/ios/TNSWidgets.xcframework/Info.plist +102 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
- package/platforms/ios/native-api-usage.json +41 -0
- package/platforms/ios/src/NativeScriptEmbedder.h +31 -0
- package/platforms/ios/src/NativeScriptEmbedder.m +43 -0
- package/platforms/ios/src/NativeScriptMainWindow.swift +196 -0
- package/platforms/ios/src/NativeScriptUtils.h +16 -0
- package/platforms/ios/src/NativeScriptUtils.m +137 -0
- package/platforms/ios/src/UIView+NativeScript.h +15 -0
- package/platforms/ios/src/UIView+NativeScript.m +148 -0
- package/platforms/ios/src/module.modulemap +14 -0
- package/platforms/ios/typings/objc!MaterialComponents.d.ts +808 -0
- package/platforms/ios/typings/objc!NativeScriptUtils.d.ts +18 -0
- package/profiling/index.d.ts +153 -26
- package/references.d.ts +10 -0
- package/text/formatted-string.d.ts +1 -1
- package/text/index.d.ts +36 -0
- package/text/span.d.ts +1 -1
- package/timer/index.d.ts +27 -0
- package/trace/index.d.ts +131 -105
- package/ui/action-bar/index.d.ts +304 -0
- package/ui/activity-indicator/index.d.ts +25 -0
- package/ui/animation/index.d.ts +139 -0
- package/ui/animation/keyframe-animation.d.ts +118 -67
- package/ui/builder/binding-builder.d.ts +15 -12
- package/ui/builder/index.d.ts +69 -27
- package/ui/button/index.d.ts +50 -0
- package/ui/content-view/index.d.ts +11 -21
- package/ui/core/control-state-change/index.d.ts +17 -0
- package/ui/core/view/index.d.ts +1216 -0
- package/ui/core/view/view-helper/index.d.ts +76 -0
- package/ui/core/weak-event-listener/index.d.ts +18 -2
- package/ui/date-picker/index.d.ts +95 -0
- package/ui/dialogs/index.d.ts +311 -0
- package/ui/editable-text-base/index.d.ts +142 -0
- package/ui/embedding/index.d.ts +10 -0
- package/ui/frame/fragment.d.ts +5 -0
- package/ui/frame/fragment.transitions.d.ts +43 -0
- package/ui/frame/index.d.ts +590 -0
- package/ui/frame/transition-definitions.android.d.ts +54 -0
- package/ui/gestures/index.d.ts +59 -0
- package/ui/html-view/index.d.ts +41 -0
- package/ui/image/index.d.ts +119 -0
- package/ui/image/symbol-effects.d.ts +13 -0
- package/ui/image-cache/index.d.ts +147 -0
- package/ui/label/index.d.ts +25 -0
- package/ui/layouts/absolute-layout/index.d.ts +42 -0
- package/ui/layouts/dock-layout/index.d.ts +39 -0
- package/ui/layouts/flexbox-layout/index.d.ts +98 -0
- package/ui/layouts/grid-layout/index.d.ts +201 -0
- package/ui/layouts/index.d.ts +1 -2
- package/ui/layouts/layout-base.d.ts +119 -0
- package/ui/layouts/root-layout/index.d.ts +48 -0
- package/ui/layouts/stack-layout/index.d.ts +22 -0
- package/ui/layouts/wrap-layout/index.d.ts +51 -0
- package/ui/list-picker/index.d.ts +43 -0
- package/ui/list-view/index.d.ts +232 -0
- package/ui/page/index.d.ts +241 -0
- package/ui/placeholder/index.d.ts +46 -8
- package/ui/progress/index.d.ts +50 -0
- package/ui/scroll-view/index.d.ts +99 -0
- package/ui/search-bar/index.d.ts +103 -0
- package/ui/segmented-bar/index.d.ts +122 -0
- package/ui/slider/index.d.ts +99 -0
- package/ui/styling/background.d.ts +95 -0
- package/ui/styling/converters.d.ts +2 -2
- package/ui/styling/font.d.ts +62 -0
- package/ui/styling/style-properties.d.ts +101 -81
- package/ui/styling/style-scope.d.ts +48 -79
- package/ui/switch/index.d.ts +46 -0
- package/ui/tab-view/index.d.ts +213 -0
- package/ui/text-base/formatted-string.d.ts +97 -36
- package/ui/text-base/index.d.ts +208 -0
- package/ui/text-base/span.d.ts +111 -36
- package/ui/text-field/index.d.ts +54 -0
- package/ui/text-view/index.d.ts +35 -0
- package/ui/time-picker/index.d.ts +107 -0
- package/ui/transition/fade-transition.d.ts +3 -0
- package/ui/transition/flip-transition.d.ts +5 -0
- package/ui/transition/index.d.ts +59 -0
- package/ui/transition/modal-transition.d.ts +2 -0
- package/ui/transition/page-transition.d.ts +4 -0
- package/ui/transition/shared-transition-helper.d.ts +14 -0
- package/ui/transition/slide-transition.d.ts +5 -0
- package/ui/utils.d.ts +44 -0
- package/ui/web-view/index.d.ts +142 -0
- package/utils/constants.d.ts +1 -0
- package/utils/debug.d.ts +61 -17
- package/utils/index.d.ts +183 -0
- package/utils/layout-helper/index.d.ts +82 -0
- package/utils/lazy.d.ts +5 -0
- package/utils/macrotask-scheduler.d.ts +5 -1
- package/utils/mainthread-helper.d.ts +16 -0
- package/utils/native-helper.d.ts +280 -0
- package/utils/types.d.ts +115 -23
- package/utils/typescript-utils.d.ts +6 -0
- package/xml/index.d.ts +105 -44
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
interface ModuleResolver {
|
|
2
|
+
/**
|
|
3
|
+
* A function used to resolve the exports for a module.
|
|
4
|
+
* @param uri The name of the module to be resolved.
|
|
5
|
+
*/
|
|
6
|
+
(uri: string): any;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* An extended JavaScript Error which will have the nativeException property initialized in case the error is caused by executing platform-specific code.
|
|
11
|
+
*/
|
|
12
|
+
declare interface NativeScriptError extends Error {
|
|
13
|
+
/**
|
|
14
|
+
* Represents the native error object.
|
|
15
|
+
*/
|
|
16
|
+
nativeException?: any;
|
|
17
|
+
/**
|
|
18
|
+
* The native stack trace.
|
|
19
|
+
*/
|
|
20
|
+
stackTrace?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Javascript portion of stack trace.
|
|
23
|
+
*/
|
|
24
|
+
stack?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
//Augment the NodeJS global type with our own extensions
|
|
28
|
+
declare module globalThis {
|
|
29
|
+
var NativeScriptHasInitGlobal: boolean;
|
|
30
|
+
var NativeScriptGlobals: {
|
|
31
|
+
/**
|
|
32
|
+
* Global framework event handling
|
|
33
|
+
*/
|
|
34
|
+
events: {
|
|
35
|
+
[Key in keyof import('data/observable').Observable]: import('data/observable').Observable[Key];
|
|
36
|
+
};
|
|
37
|
+
launched: boolean;
|
|
38
|
+
// used by various classes to setup callbacks to wire up global app event handling when the app instance is ready
|
|
39
|
+
appEventWiring: Array<any>;
|
|
40
|
+
// determines if the app instance is ready upon bootstrap
|
|
41
|
+
appInstanceReady: boolean;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Ability for classes to initialize app event handling early even before the app instance is ready during boot cycle avoiding boot race conditions
|
|
45
|
+
* @param callback wire up any global event handling inside the callback
|
|
46
|
+
*/
|
|
47
|
+
addEventWiring(callback: () => void): void;
|
|
48
|
+
};
|
|
49
|
+
// var android: any;
|
|
50
|
+
function require(id: string): any;
|
|
51
|
+
|
|
52
|
+
function moduleMerge(sourceExports: any, destExports: any): void;
|
|
53
|
+
|
|
54
|
+
function registerModule(name: string, loader: (name: string) => any): void;
|
|
55
|
+
/**
|
|
56
|
+
* Register all modules from a webpack context.
|
|
57
|
+
* The context is one created using the following webpack utility:
|
|
58
|
+
* https://webpack.js.org/guides/dependency-management/#requirecontext
|
|
59
|
+
*
|
|
60
|
+
* The extension map is optional, modules in the webpack context will have their original file extension (e.g. may be ".ts" or ".scss" etc.),
|
|
61
|
+
* while the built-in module builders in {N} will look for ".js", ".css" or ".xml" files. Adding a map such as:
|
|
62
|
+
* ```
|
|
63
|
+
* { ".ts": ".js" }
|
|
64
|
+
* ```
|
|
65
|
+
* Will resolve lookups for .js to the .ts file.
|
|
66
|
+
* By default scss and ts files are mapped.
|
|
67
|
+
*/
|
|
68
|
+
function registerWebpackModules(context: { keys(): string[]; (key: string): any }, extensionMap?: { [originalFileExtension: string]: string });
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The NativeScript XML builder, style-scope, application modules use various resources such as:
|
|
72
|
+
* app.css, page.xml files and modules during the application life-cycle.
|
|
73
|
+
* The moduleResolvers can be used to provide additional mechanisms to locate such resources.
|
|
74
|
+
* For example:
|
|
75
|
+
* ```
|
|
76
|
+
* global.moduleResolvers.unshift(uri => uri === "main-page" ? require("main-page") : null);
|
|
77
|
+
* ```
|
|
78
|
+
* More advanced scenarios will allow for specific bundlers to integrate their module resolving mechanisms.
|
|
79
|
+
* When adding resolvers at the start of the array, avoid throwing and return null instead so subsequent resolvers may try to resolve the resource.
|
|
80
|
+
* By default the only member of the array is global.require, as last resort - if it fails to find a module it will throw.
|
|
81
|
+
*/
|
|
82
|
+
var moduleResolvers: ModuleResolver[];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @param name Name of the module to be loaded
|
|
87
|
+
* @param loadForUI Is this UI module is being loaded for UI from @nativescript/core/ui/builder.
|
|
88
|
+
* Xml, css/scss and js/ts modules for pages and custom-components should load with loadForUI=true.
|
|
89
|
+
* Passing "true" will enable the HMR mechanics this module. Default value is false.
|
|
90
|
+
*/
|
|
91
|
+
function loadModule(name: string, loadForUI?: boolean): any;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Checks if the module has been registered with `registerModule` or in `registerWebpackModules`
|
|
95
|
+
* @param name Name of the module
|
|
96
|
+
*/
|
|
97
|
+
function moduleExists(name: string): boolean;
|
|
98
|
+
|
|
99
|
+
function getRegisteredModules(): string[];
|
|
100
|
+
|
|
101
|
+
function _unregisterModule(name: string): void;
|
|
102
|
+
|
|
103
|
+
function _isModuleLoadedForUI(moduleName: string): boolean;
|
|
104
|
+
|
|
105
|
+
var onGlobalLayoutListener: any;
|
|
106
|
+
function zonedCallback<T = Function>(callback: T): T;
|
|
107
|
+
var Reflect: any;
|
|
108
|
+
function Deprecated(target: Object, key?: string | symbol, descriptor?: any): any;
|
|
109
|
+
function Experimental(target: Object, key?: string | symbol, descriptor?: any): any;
|
|
110
|
+
|
|
111
|
+
var __native: any;
|
|
112
|
+
var __inspector: any;
|
|
113
|
+
var __extends: any;
|
|
114
|
+
var __onLiveSync: (context?: { type: string; path: string }) => void;
|
|
115
|
+
var __onLiveSyncCore: (context?: { type: string; path: string }) => void;
|
|
116
|
+
var __onUncaughtError: (error: NativeScriptError) => void;
|
|
117
|
+
var __onDiscardedError: (error: NativeScriptError) => void;
|
|
118
|
+
var __snapshot: boolean;
|
|
119
|
+
var TNS_WEBPACK: boolean;
|
|
120
|
+
var isIOS: boolean;
|
|
121
|
+
var isAndroid: boolean;
|
|
122
|
+
var isVisionOS: boolean;
|
|
123
|
+
var isDisplayedEventFired: boolean;
|
|
124
|
+
var autoLoadPolyfills: boolean;
|
|
125
|
+
var __requireOverride: (name: string, dir: string) => any;
|
|
126
|
+
|
|
127
|
+
// used to get the rootlayout instance to add/remove childviews
|
|
128
|
+
var rootLayout: any;
|
|
129
|
+
}
|
|
130
|
+
declare const __DEV__: boolean;
|
|
131
|
+
declare const __CSS_PARSER__: string;
|
|
132
|
+
declare const __NS_WEBPACK__: boolean;
|
|
133
|
+
declare const __UI_USE_EXTERNAL_RENDERER__: boolean;
|
|
134
|
+
declare const __UI_USE_XML_PARSER__: boolean;
|
|
135
|
+
declare const __ANDROID__: boolean;
|
|
136
|
+
declare const __IOS__: boolean;
|
|
137
|
+
declare const __VISIONOS__: boolean;
|
|
138
|
+
declare const __APPLE__: boolean;
|
|
139
|
+
|
|
140
|
+
declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): number;
|
|
141
|
+
declare function clearTimeout(timeoutId: number): void;
|
|
142
|
+
declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): number;
|
|
143
|
+
declare function clearInterval(intervalId: number): void;
|
|
144
|
+
|
|
145
|
+
declare type ModuleType = 'markup' | 'script' | 'style';
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Define a module context for Hot Module Replacement.
|
|
149
|
+
*/
|
|
150
|
+
interface ModuleContext {
|
|
151
|
+
/**
|
|
152
|
+
* The type of the module for replacement.
|
|
153
|
+
*/
|
|
154
|
+
type: ModuleType;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The path of the module for replacement.
|
|
158
|
+
*/
|
|
159
|
+
path: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
interface NodeModule {
|
|
163
|
+
exports: any;
|
|
164
|
+
id: string;
|
|
165
|
+
filename: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
declare enum RequestContext {
|
|
169
|
+
'audio',
|
|
170
|
+
'beacon',
|
|
171
|
+
'cspreport',
|
|
172
|
+
'download',
|
|
173
|
+
'embed',
|
|
174
|
+
'eventsource',
|
|
175
|
+
'favicon',
|
|
176
|
+
'fetch',
|
|
177
|
+
'font',
|
|
178
|
+
'form',
|
|
179
|
+
'frame',
|
|
180
|
+
'hyperlink',
|
|
181
|
+
'iframe',
|
|
182
|
+
'image',
|
|
183
|
+
'imageset',
|
|
184
|
+
'import',
|
|
185
|
+
'internal',
|
|
186
|
+
'location',
|
|
187
|
+
'manifest',
|
|
188
|
+
'object',
|
|
189
|
+
'ping',
|
|
190
|
+
'plugin',
|
|
191
|
+
'prefetch',
|
|
192
|
+
'script',
|
|
193
|
+
'serviceworker',
|
|
194
|
+
'sharedworker',
|
|
195
|
+
'subresource',
|
|
196
|
+
'style',
|
|
197
|
+
'track',
|
|
198
|
+
'video',
|
|
199
|
+
'worker',
|
|
200
|
+
'xmlhttprequest',
|
|
201
|
+
'xslt',
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// Extend the lib.dom.d.ts Body interface with `formData`
|
|
205
|
+
// interface Body {
|
|
206
|
+
// formData(): Promise<FormData>;
|
|
207
|
+
// }
|
|
208
|
+
|
|
209
|
+
declare type HeaderInit = Headers | Array<string>;
|
|
210
|
+
|
|
211
|
+
declare function fetch(url: string, init?: RequestInit): Promise<Response>;
|
|
212
|
+
|
|
213
|
+
// declare var console: Console;
|
|
214
|
+
declare var require: NodeRequire;
|
|
215
|
+
|
|
216
|
+
// Extend NodeRequire with the webpack's require context extension.
|
|
217
|
+
interface RequireContext {
|
|
218
|
+
keys(): string[];
|
|
219
|
+
(id: string): any;
|
|
220
|
+
<T>(id: string): T;
|
|
221
|
+
resolve(id: string): string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
interface WeakRef<T extends object> {
|
|
225
|
+
/**
|
|
226
|
+
* @deprecated Use deref instead with 8.5+
|
|
227
|
+
*/
|
|
228
|
+
get(): T;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @deprecated You no longer need to make this call and can be safely removed.
|
|
232
|
+
*/
|
|
233
|
+
clear(): void;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
declare var __dirname: string;
|
|
237
|
+
declare var __filename: string;
|
|
238
|
+
|
|
239
|
+
declare var module: NodeModule;
|
|
240
|
+
// Same as module.exports
|
|
241
|
+
declare var exports: any;
|
|
242
|
+
|
|
243
|
+
// Global functions
|
|
244
|
+
declare function Deprecated(target: Object, key?: string | symbol, value?: any): void;
|
|
245
|
+
declare function Experimental(target: Object, key?: string | symbol, value?: any): void;
|
|
246
|
+
|
|
247
|
+
declare interface NativeClassOptions {
|
|
248
|
+
nativeClassName?: string; // for @JavaProxy and
|
|
249
|
+
protocols?: any[];
|
|
250
|
+
interfaces?: any[];
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Decorates class that extends a native class(iOS or Android)
|
|
255
|
+
*/
|
|
256
|
+
declare function NativeClass<T extends { new (...args: any[]): {} }>(constructor: T);
|
|
257
|
+
declare function NativeClass<T extends { new (...args: any[]): {} }>(options?: NativeClassOptions);
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Decorates class that implements native Java interfaces.
|
|
261
|
+
* @param interfaces Implemented interfaces.
|
|
262
|
+
*/
|
|
263
|
+
declare function Interfaces(...interfaces): ClassDecorator;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Important: Not applicable to Objective-C classes (iOS platform)
|
|
267
|
+
* Decorates class that extends native Java class
|
|
268
|
+
* @param interfaces An array of fully-classified Java interface names that the class must implement.
|
|
269
|
+
*/
|
|
270
|
+
declare function Interfaces(interfaces: any[]): ClassDecorator;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Decorates class that extends native Java class
|
|
274
|
+
* @param nativeClassName The name of the newly generated class. Must be unique in the application.
|
|
275
|
+
*/
|
|
276
|
+
declare function JavaProxy(nativeClassName: string): ClassDecorator;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Important: Not applicable to Java classes (Android platform)
|
|
280
|
+
* Decorates a class that implements native Objective-C protocols.
|
|
281
|
+
* @param protocols An array of fully-classified Objective-C protocol names that the class must implement.
|
|
282
|
+
*/
|
|
283
|
+
declare function ObjCClass(...protocols: any[]): ClassDecorator;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Important: Not applicable to Java methods (Android platform)
|
|
287
|
+
* Decorates method that it is exposed in Objective-C.
|
|
288
|
+
* The JS name of the method will be used as the name of the native method
|
|
289
|
+
* and the return type will be set to `interop.types.void`
|
|
290
|
+
*/
|
|
291
|
+
declare function ObjCMethod(): MethodDecorator;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Important: Not applicable to Java methods (Android platform)
|
|
295
|
+
* Decorates method that it is exposed in Objective-C.
|
|
296
|
+
* @param name The name of the method to be exposed.
|
|
297
|
+
* The native return type will be set to `interop.types.void`.
|
|
298
|
+
*/
|
|
299
|
+
declare function ObjCMethod(name: string): MethodDecorator;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Important: Not applicable to Java methods (Android platform)
|
|
303
|
+
* Decorates a method to be exposed in Objective-C.
|
|
304
|
+
* The JS name of the method will be used for the name of the native method.
|
|
305
|
+
* @param returnType The native type of the result.
|
|
306
|
+
*/
|
|
307
|
+
declare function ObjCMethod(returnType: any): MethodDecorator;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Important: Not applicable to Java methods (Android platform)
|
|
311
|
+
* Decorates a method to be exposed in Objective-C.
|
|
312
|
+
* @param name The name of the method to be exposed. Can be different than the JS function name
|
|
313
|
+
* and can follow Objective-C colon syntax (for example `tableView:cellForRowAtIndexPath:`).
|
|
314
|
+
* @param returnType The native type of the result.
|
|
315
|
+
*/
|
|
316
|
+
declare function ObjCMethod(name: string, returnType: any): MethodDecorator;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Important: Not applicable to Java classes or methods (Android platform)
|
|
320
|
+
* This is a shorthand decorator that can be used to decorate either a method or a class
|
|
321
|
+
* to be exposed to Objective-C.
|
|
322
|
+
* @param params Parameters to send to the ObjCClass or ObjCMethod decorators.
|
|
323
|
+
*/
|
|
324
|
+
declare function ObjC(...params: any[]): ClassDecorator & MethodDecorator;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Important: Not applicable to Java method parameters (Android platform)
|
|
328
|
+
* Decorates a parameter in an Objective-C exposed method with its native type.
|
|
329
|
+
* @param type The native type for the parameter.
|
|
330
|
+
*/
|
|
331
|
+
declare function ObjCParam(type: any): ParameterDecorator;
|
|
332
|
+
|
|
333
|
+
declare function Log(data: any): void;
|
|
334
|
+
declare function log(data: any): void;
|
|
335
|
+
declare function fail(data: any): void;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Calls a function after a specified delay.
|
|
339
|
+
* @param callback The function to be called.
|
|
340
|
+
* @param milliseconds The time to wait before the function is called. Defaults to 0.
|
|
341
|
+
*/
|
|
342
|
+
// declare function setTimeout(callback: Function, milliseconds?: number): number;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Clears the delay set by a call to the setTimeout function.
|
|
346
|
+
* @param id The identifier returned by the previously called setTimeout() method.
|
|
347
|
+
*/
|
|
348
|
+
// declare function clearTimeout(id: number): void;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Calls a function repeatedly with a delay between each call.
|
|
352
|
+
* @param callback The function to be called.
|
|
353
|
+
* @param milliseconds The delay between each function call.
|
|
354
|
+
*/
|
|
355
|
+
// declare function setInterval(callback: Function, milliseconds?: number): number;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Clears repeated function which was set up by calling setInterval().
|
|
359
|
+
* @param id The identifier returned by the setInterval() method.
|
|
360
|
+
*/
|
|
361
|
+
// declare function clearInterval(id: number): void;
|
|
362
|
+
|
|
363
|
+
declare function zonedCallback<T = Function>(callback: T): T;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Create a Java long from a number
|
|
367
|
+
*/
|
|
368
|
+
declare function long(value: number): any;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Create a Java byte from a number
|
|
372
|
+
*/
|
|
373
|
+
declare function byte(value: number): any;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Create a Java short from a number
|
|
377
|
+
*/
|
|
378
|
+
declare function short(value: number): any;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Create a Java double from a number
|
|
382
|
+
*/
|
|
383
|
+
declare function double(value: number): any;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Create a Java float from a number
|
|
387
|
+
*/
|
|
388
|
+
declare function float(value: number): any;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Create a Java char from a string
|
|
392
|
+
*/
|
|
393
|
+
declare function char(value: string): any;
|
package/globals/index.d.ts
CHANGED
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
import { Observable } from '../data/observable';
|
|
2
|
-
/**
|
|
3
|
-
* Manages internal framework global state
|
|
4
|
-
*/
|
|
5
2
|
export declare class NativeScriptGlobalState {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
appEventWiring: Array<any>;
|
|
9
|
-
private _appInstanceReady;
|
|
10
|
-
private _setLaunched;
|
|
11
|
-
constructor();
|
|
12
|
-
get appInstanceReady(): boolean;
|
|
13
|
-
set appInstanceReady(value: boolean);
|
|
14
|
-
/**
|
|
15
|
-
* Ability for classes to initialize app event handling early even before the app instance is ready during boot cycle avoiding boot race conditions
|
|
16
|
-
* @param callback wire up any global event handling inside the callback
|
|
17
|
-
*/
|
|
18
|
-
addEventWiring(callback: () => void): void;
|
|
19
|
-
private _setLaunchedFn;
|
|
3
|
+
events: Observable;
|
|
4
|
+
launched: boolean;
|
|
20
5
|
}
|
|
21
|
-
export
|
|
22
|
-
export
|
|
6
|
+
export function installPolyfills(moduleName: string, exportNames: string[]): void;
|
|
7
|
+
export function initGlobal(): void;
|
package/http/index.d.ts
CHANGED
|
@@ -1,90 +1,166 @@
|
|
|
1
|
-
import { ImageSource } from '../image-source';
|
|
1
|
+
import { ImageSource } from '../image-source';
|
|
2
2
|
import { File } from '../file-system';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Downloads the content from the specified URL as a string.
|
|
6
|
+
* @param url The URL to request from.
|
|
7
|
+
*/
|
|
8
|
+
export function getString(url: string): Promise<string>;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Downloads the content from the specified URL as a string.
|
|
12
|
+
* @param options An object that specifies various request options.
|
|
13
|
+
*/
|
|
14
|
+
export function getString(options: HttpRequestOptions): Promise<string>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Downloads the content from the specified URL as a string and returns its JSON.parse representation.
|
|
18
|
+
* @param url The URL to request from.
|
|
19
|
+
*/
|
|
20
|
+
export function getJSON<T>(url: string): Promise<T>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Downloads the content from the specified URL as a string and returns its JSON.parse representation.
|
|
24
|
+
* @param options An object that specifies various request options.
|
|
25
|
+
*/
|
|
26
|
+
export function getJSON<T>(options: HttpRequestOptions): Promise<T>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Downloads the content from the specified URL and attempts to decode it as an image.
|
|
30
|
+
* @param url The URL to request from.
|
|
31
|
+
*/
|
|
32
|
+
export function getImage(url: string): Promise<ImageSource>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Downloads the content from the specified URL and attempts to decode it as an image.
|
|
36
|
+
* @param options An object that specifies various request options.
|
|
37
|
+
*/
|
|
38
|
+
export function getImage(options: HttpRequestOptions): Promise<ImageSource>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Downloads the content from the specified URL and attempts to save it as file.
|
|
42
|
+
* @param url The URL to request from.
|
|
43
|
+
* @param destinationFilePath Optional. The downloaded file path.
|
|
44
|
+
*/
|
|
45
|
+
export function getFile(url: string, destinationFilePath?: string): Promise<File>;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Downloads the content from the specified URL and attempts to save it as file.
|
|
49
|
+
* @param options An object that specifies various request options.
|
|
50
|
+
* @param destinationFilePath Optional. The downloaded file path.
|
|
51
|
+
*/
|
|
52
|
+
export function getFile(options: HttpRequestOptions, destinationFilePath?: string): Promise<File>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Downloads the content from the specified URL as binary and returns an ArrayBuffer.
|
|
56
|
+
* @param url The URL to request from.
|
|
57
|
+
*/
|
|
58
|
+
export function getBinary(url: string): Promise<ArrayBuffer>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Downloads the content from the specified URL as binary and returns an ArrayBuffer.
|
|
62
|
+
* @param options An object that specifies various request options.
|
|
63
|
+
*/
|
|
64
|
+
export function getBinary(options: HttpRequestOptions): Promise<ArrayBuffer>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Makes a generic http request using the provided options and returns a HttpResponse Object.
|
|
68
|
+
* @param options An object that specifies various request options.
|
|
69
|
+
*/
|
|
70
|
+
export function request(options: HttpRequestOptions): Promise<HttpResponse>;
|
|
71
|
+
|
|
4
72
|
/**
|
|
5
73
|
* Provides options for the http requests.
|
|
6
74
|
*/
|
|
7
75
|
export interface HttpRequestOptions {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
76
|
+
/**
|
|
77
|
+
* Gets or sets the request url.
|
|
78
|
+
*/
|
|
79
|
+
url: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Gets or sets the request method.
|
|
83
|
+
*/
|
|
84
|
+
method: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Gets or sets the request headers in JSON format.
|
|
88
|
+
*/
|
|
89
|
+
headers?: any;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Gets or sets the request body.
|
|
93
|
+
*/
|
|
94
|
+
content?: string | FormData | ArrayBuffer;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Gets or sets the request timeout in milliseconds.
|
|
98
|
+
*/
|
|
99
|
+
timeout?: number;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Gets or sets wether to *not* follow server's redirection responses.
|
|
103
|
+
*/
|
|
104
|
+
dontFollowRedirects?: boolean;
|
|
32
105
|
}
|
|
106
|
+
|
|
33
107
|
/**
|
|
34
108
|
* Encapsulates HTTP-response information from an HTTP-request.
|
|
35
109
|
*/
|
|
36
110
|
export interface HttpResponse {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
111
|
+
/**
|
|
112
|
+
* Gets the response status code.
|
|
113
|
+
*/
|
|
114
|
+
statusCode: number;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Gets the response headers.
|
|
118
|
+
*/
|
|
119
|
+
headers: Headers;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Gets the response content.
|
|
123
|
+
*/
|
|
124
|
+
content?: HttpContent;
|
|
49
125
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export
|
|
54
|
-
|
|
55
|
-
|
|
126
|
+
|
|
127
|
+
export type Headers = { [key: string]: string | string[] };
|
|
128
|
+
|
|
129
|
+
export enum HttpResponseEncoding {
|
|
130
|
+
UTF8,
|
|
131
|
+
GBK,
|
|
56
132
|
}
|
|
57
133
|
/**
|
|
58
134
|
* Encapsulates the content of an HttpResponse.
|
|
59
135
|
*/
|
|
60
136
|
export interface HttpContent {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
137
|
+
/**
|
|
138
|
+
* Gets the response body as raw data.
|
|
139
|
+
*/
|
|
140
|
+
raw: any;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Gets the response body as ArrayBuffer
|
|
144
|
+
*/
|
|
145
|
+
toArrayBuffer: () => ArrayBuffer;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Gets the response body as string.
|
|
149
|
+
*/
|
|
150
|
+
toString: (encoding?: HttpResponseEncoding) => string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Gets the response body as JSON object.
|
|
154
|
+
*/
|
|
155
|
+
toJSON: (encoding?: HttpResponseEncoding) => any;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Gets the response body as ImageSource.
|
|
159
|
+
*/
|
|
160
|
+
toImage: () => Promise<ImageSource>;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Gets the response body as file.
|
|
164
|
+
*/
|
|
165
|
+
toFile: (destinationFilePath?: string) => File;
|
|
85
166
|
}
|
|
86
|
-
export declare function getString(arg: any): Promise<string>;
|
|
87
|
-
export declare function getJSON<T>(arg: any): Promise<T>;
|
|
88
|
-
export declare function getImage(arg: any): Promise<ImageSource>;
|
|
89
|
-
export declare function getFile(arg: any, destinationFilePath?: string): Promise<any>;
|
|
90
|
-
export declare function getBinary(arg: any): Promise<ArrayBuffer>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Observable } from '../data/observable';
|
|
2
|
+
|
|
3
|
+
export class ImageAsset extends Observable {
|
|
4
|
+
constructor(asset: any);
|
|
5
|
+
getImageAsync(callback: (image: any, error: any) => void); //UIImage for iOS and android.graphics.Bitmap for Android
|
|
6
|
+
ios: any; //PHAsset
|
|
7
|
+
nativeImage: any; //UIImage for iOS and android.graphics.Bitmap for Android
|
|
8
|
+
android: any;
|
|
9
|
+
options: ImageAssetOptions;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ImageAssetOptions {
|
|
13
|
+
width?: number;
|
|
14
|
+
height?: number;
|
|
15
|
+
keepAspectRatio?: boolean;
|
|
16
|
+
autoScaleFactor?: boolean;
|
|
17
|
+
}
|