@akylas/nativescript 8.2.3 → 8.3.0-alpha.2

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 (187) hide show
  1. package/accessibility/index.ios.js +1 -1
  2. package/accessibility/index.ios.js.map +1 -1
  3. package/application/application-common.js.map +1 -1
  4. package/application/index.android.js.map +1 -1
  5. package/application/index.ios.d.ts +2 -0
  6. package/application/index.ios.js +7 -1
  7. package/application/index.ios.js.map +1 -1
  8. package/cli-hooks/before-checkForChanges.js +21 -16
  9. package/color/color-common.js +15 -9
  10. package/color/color-common.js.map +1 -1
  11. package/connectivity/index.android.js +11 -10
  12. package/connectivity/index.android.js.map +1 -1
  13. package/core-types/index.d.ts +1 -0
  14. package/core-types/index.js.map +1 -1
  15. package/css/LICENSE +9 -0
  16. package/css/Readme.md +278 -0
  17. package/css-value/LICENSE +9 -0
  18. package/css-value/Readme.md +45 -0
  19. package/css-value/UPGRADING.md +26 -0
  20. package/fetch/LICENSE +20 -0
  21. package/fetch/README.md +1 -0
  22. package/image-source/index.android.js +4 -7
  23. package/image-source/index.android.js.map +1 -1
  24. package/image-source/index.ios.js +3 -9
  25. package/image-source/index.ios.js.map +1 -1
  26. package/index.d.ts +8 -2
  27. package/index.js +13 -2
  28. package/index.js.map +1 -1
  29. package/jest.config.d.ts +5 -0
  30. package/jest.config.js.map +1 -0
  31. package/js-libs/easysax/LICENSE +20 -0
  32. package/js-libs/easysax/README.md +46 -0
  33. package/js-libs/esprima/LICENSE.BSD +19 -0
  34. package/js-libs/esprima/README.md +24 -0
  35. package/js-libs/polymer-expressions/LICENSE +27 -0
  36. package/js-libs/polymer-expressions/README.md +0 -0
  37. package/package.json +5 -13
  38. package/platforms/README.md +1 -0
  39. package/platforms/android/widgets-release.aar +0 -0
  40. package/platforms/ios/TNSWidgets.xcframework/Info.plist +17 -0
  41. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  42. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  43. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  44. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  45. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  46. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  47. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  48. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +24 -0
  49. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  50. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  51. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +6 -0
  52. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  53. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  54. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +52 -0
  55. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  56. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +24 -0
  57. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +25 -0
  58. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +16 -0
  59. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +29 -0
  60. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +24 -0
  61. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +26 -0
  62. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +17 -0
  63. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +6 -0
  64. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +17 -0
  65. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +18 -0
  66. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +52 -0
  67. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  68. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  69. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  70. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  71. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  72. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  73. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +1 -1
  74. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  75. package/ui/animation/animation-common.d.ts +7 -4
  76. package/ui/animation/animation-common.js +55 -117
  77. package/ui/animation/animation-common.js.map +1 -1
  78. package/ui/animation/animation-interfaces.d.ts +3 -2
  79. package/ui/animation/index.android.d.ts +15 -14
  80. package/ui/animation/index.android.js +94 -20
  81. package/ui/animation/index.android.js.map +1 -1
  82. package/ui/animation/index.ios.d.ts +33 -16
  83. package/ui/animation/index.ios.js +256 -202
  84. package/ui/animation/index.ios.js.map +1 -1
  85. package/ui/animation/keyframe-animation.d.ts +0 -1
  86. package/ui/animation/keyframe-animation.js +51 -51
  87. package/ui/animation/keyframe-animation.js.map +1 -1
  88. package/ui/button/index.ios.js +1 -1
  89. package/ui/button/index.ios.js.map +1 -1
  90. package/ui/core/properties/index.d.ts +37 -6
  91. package/ui/core/properties/index.js +434 -643
  92. package/ui/core/properties/index.js.map +1 -1
  93. package/ui/core/view/index.d.ts +5 -0
  94. package/ui/core/view/index.ios.d.ts +4 -2
  95. package/ui/core/view/index.ios.js +33 -10
  96. package/ui/core/view/index.ios.js.map +1 -1
  97. package/ui/core/view/view-common.d.ts +1 -0
  98. package/ui/core/view/view-common.js +6 -3
  99. package/ui/core/view/view-common.js.map +1 -1
  100. package/ui/core/view/view-helper/index.ios.d.ts +2 -0
  101. package/ui/core/view/view-helper/index.ios.js +13 -4
  102. package/ui/core/view/view-helper/index.ios.js.map +1 -1
  103. package/ui/core/view-base/index.js +4 -5
  104. package/ui/core/view-base/index.js.map +1 -1
  105. package/ui/editable-text-base/editable-text-base-common.js +2 -1
  106. package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
  107. package/ui/frame/frame-common.d.ts +1 -1
  108. package/ui/frame/frame-common.js +17 -17
  109. package/ui/frame/frame-common.js.map +1 -1
  110. package/ui/frame/index.android.js +6 -2
  111. package/ui/frame/index.android.js.map +1 -1
  112. package/ui/frame/index.ios.js +2 -0
  113. package/ui/frame/index.ios.js.map +1 -1
  114. package/ui/html-view/html-view-common.js +2 -1
  115. package/ui/html-view/html-view-common.js.map +1 -1
  116. package/ui/image/image-common.js +2 -2
  117. package/ui/image/image-common.js.map +1 -1
  118. package/ui/label/index.ios.js +2 -2
  119. package/ui/label/index.ios.js.map +1 -1
  120. package/ui/layouts/root-layout/root-layout-common.js +6 -4
  121. package/ui/layouts/root-layout/root-layout-common.js.map +1 -1
  122. package/ui/list-view/list-view-common.js +2 -2
  123. package/ui/list-view/list-view-common.js.map +1 -1
  124. package/ui/page/index.ios.d.ts +1 -0
  125. package/ui/page/index.ios.js +5 -0
  126. package/ui/page/index.ios.js.map +1 -1
  127. package/ui/page/page-common.js +2 -1
  128. package/ui/page/page-common.js.map +1 -1
  129. package/ui/proxy-view-container/index.d.ts +2 -0
  130. package/ui/proxy-view-container/index.js +28 -0
  131. package/ui/proxy-view-container/index.js.map +1 -1
  132. package/ui/search-bar/search-bar-common.js +3 -2
  133. package/ui/search-bar/search-bar-common.js.map +1 -1
  134. package/ui/segmented-bar/segmented-bar-common.js +2 -1
  135. package/ui/segmented-bar/segmented-bar-common.js.map +1 -1
  136. package/ui/styling/css-animation-parser.js +3 -2
  137. package/ui/styling/css-animation-parser.js.map +1 -1
  138. package/ui/styling/font.ios.js +23 -2
  139. package/ui/styling/font.ios.js.map +1 -1
  140. package/ui/styling/style/index.d.ts +3 -1
  141. package/ui/styling/style/index.js +6 -0
  142. package/ui/styling/style/index.js.map +1 -1
  143. package/ui/styling/style-properties.d.ts +1 -0
  144. package/ui/styling/style-properties.js +57 -69
  145. package/ui/styling/style-properties.js.map +1 -1
  146. package/ui/styling/style-scope.js +4 -10
  147. package/ui/styling/style-scope.js.map +1 -1
  148. package/ui/switch/index.android.js +8 -6
  149. package/ui/switch/index.android.js.map +1 -1
  150. package/ui/switch/switch-common.js +2 -1
  151. package/ui/switch/switch-common.js.map +1 -1
  152. package/ui/tab-view/index.ios.d.ts +1 -0
  153. package/ui/tab-view/index.ios.js +54 -24
  154. package/ui/tab-view/index.ios.js.map +1 -1
  155. package/ui/tab-view/tab-view-common.js +5 -4
  156. package/ui/tab-view/tab-view-common.js.map +1 -1
  157. package/ui/text-base/index.android.js +1 -1
  158. package/ui/text-base/index.android.js.map +1 -1
  159. package/ui/text-base/index.d.ts +5 -0
  160. package/ui/text-base/index.ios.js +4 -3
  161. package/ui/text-base/index.ios.js.map +1 -1
  162. package/ui/text-base/text-base-common.d.ts +3 -3
  163. package/ui/text-base/text-base-common.js +1 -1
  164. package/ui/text-base/text-base-common.js.map +1 -1
  165. package/ui/web-view/index.android.js +4 -2
  166. package/ui/web-view/index.android.js.map +1 -1
  167. package/utils/index.android.d.ts +1 -1
  168. package/utils/index.android.js +1 -1
  169. package/utils/index.android.js.map +1 -1
  170. package/utils/index.ios.d.ts +1 -1
  171. package/utils/index.ios.js +1 -1
  172. package/utils/index.ios.js.map +1 -1
  173. package/utils/mainthread-helper.ios.d.ts +1 -1
  174. package/utils/mainthread-helper.ios.js +7 -9
  175. package/utils/mainthread-helper.ios.js.map +1 -1
  176. package/utils/native-helper.android.d.ts +2 -0
  177. package/utils/native-helper.android.js +127 -0
  178. package/utils/native-helper.android.js.map +1 -1
  179. package/utils/native-helper.d.ts +22 -0
  180. package/utils/native-helper.ios.d.ts +3 -0
  181. package/utils/native-helper.ios.js +90 -0
  182. package/utils/native-helper.ios.js.map +1 -1
  183. package/utils/types.d.ts +2 -0
  184. package/utils/types.js +6 -0
  185. package/utils/types.js.map +1 -1
  186. package/platforms/android/core.aar +0 -0
  187. package/platforms/android/nativescript.aar +0 -0
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/core/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,mEAAmE;AACnE,OAAO,WAAW,CAAC;AAEnB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGnE,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,cAAc,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,WAAW,EAAE,oBAAoB,EAAE,WAAW,EAAE,OAAO,IAAI,UAAU,EAAE,GAAG,IAAI,MAAM,EAAE,gBAAgB,EAAE,8BAA8B,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACrlB,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,WAAW;IACX,cAAc;IACd,kBAAkB;IAClB,mBAAmB;IACnB,YAAY;IACZ,WAAW;IACX,SAAS;IACT,cAAc;IACd,uBAAuB;IACvB,4BAA4B;IAC5B,uBAAuB;IACvB,qBAAqB;IACrB,iBAAiB;IAEjB,YAAY;IACZ,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E;IACF,eAAe;IACf,WAAW;IACX,aAAa;IACb,SAAS;IACT,oBAAoB;IACpB,mBAAmB;IACnB,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,oBAAoB;IACpB,cAAc;IACd,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,mBAAmB;IACnB,aAAa;IACb,kBAAkB;IAElB,aAAa;IACb,QAAQ;IACR,OAAO;IACP,YAAY;IAEZ,MAAM;IACN,OAAO,EAAE,YAAY;IACrB,qFAAqF;IACrF,EAAE,EAAE,YAAY;IAChB,GAAG,EAAE,QAAQ;IACb,aAAa;IACb,eAAe;IACf,iBAAiB;IACjB,aAAa;IACb,UAAU;IACV,WAAW;IACX,aAAa;IACb,YAAY;IACZ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,cAAc;IACd,YAAY;IACZ,SAAS;IACT,SAAS;IACT,UAAU;IACV,iBAAiB;IACjB,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;IACV,cAAc;IACd,gBAAgB;CAChB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ preset: string;
3
+ displayName: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.config.js","sourceRoot":"","sources":["../../../packages/core/jest.config.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,eAAe;IACd,MAAM,EAAE,sBAAsB;IAC9B,WAAW,EAAE,MAAM;CACnB,CAAC"}
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+ Copyright (c) 2012 Vopilovskii Constantine <flash.vkv@gmail.com>
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ this software and associated documentation files (the "Software"), to deal in
6
+ the Software without restriction, including without limitation the rights to
7
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
8
+ of the Software, and to permit persons to whom the Software is furnished to do
9
+ so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
@@ -0,0 +1,46 @@
1
+ EASYSAX - pure javascript sax-style parser for xml
2
+ ==================================================
3
+ Простой и быстрый SAX парсер XML файлов.
4
+ Реализован по принципу парсить только то что нужно и как можно быстрее.
5
+ Парсер не потоковый, и не расчитан на гиганские файлы. Весь XML должен быть в памяти.
6
+ Встроенный уникальный механизм работы с пространсвами имен.
7
+
8
+
9
+ Парсер был написан для RSS ридера http://zzreader.com
10
+ На конец 2012 года остается самым быстрым SAX парсером под NODE.JS
11
+
12
+
13
+
14
+ BENCHMARK
15
+ ---------------------------------------------------
16
+
17
+ **benchmark/test.js, parse file #1**
18
+ ```
19
+ sax-js: 12671ms
20
+ libxmljs: 11311ms
21
+ expat: 6118ms
22
+ expat buffer: 5278ms
23
+ easysax : 1739ms // namespace--on, attr()--on , entity_decode--on
24
+ easysax: 1035ms // namespace--off, attr()--on , entity_decode--on
25
+ easysax: 740ms // namespace--off, attr()--off , entity_decode--off
26
+ ```
27
+
28
+
29
+ **benchmark/test.js, parse file #2 (много атрибутов)**
30
+ ```
31
+ sax-js: 84060ms
32
+ libxmljs: 48919ms
33
+ expat: 39444ms
34
+ expat buffer: 35375ms
35
+ easysax: 14655ms // namespace--on, attr()--on , entity_decode--on
36
+ easysax: 9874ms // namespace--off, attr()--on , entity_decode--on
37
+ easysax: 3531ms // namespace--off, attr()--off , entity_decode--on
38
+ easysax: 2954ms // namespace--off, attr()--off , entity_decode--off
39
+ ```
40
+
41
+
42
+ **demo/example.js, parse file #2**
43
+ ```
44
+ 1,000 pages for: 13335ms - attr()--all
45
+ 1,000 pages for: 7300ms - attr()--on_request
46
+ ```
@@ -0,0 +1,19 @@
1
+ Redistribution and use in source and binary forms, with or without
2
+ modification, are permitted provided that the following conditions are met:
3
+
4
+ * Redistributions of source code must retain the above copyright
5
+ notice, this list of conditions and the following disclaimer.
6
+ * Redistributions in binary form must reproduce the above copyright
7
+ notice, this list of conditions and the following disclaimer in the
8
+ documentation and/or other materials provided with the distribution.
9
+
10
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
11
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
12
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
13
+ ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
14
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
15
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
16
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
17
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
18
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
19
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,24 @@
1
+ **Esprima** ([esprima.org](http://esprima.org), BSD license) is a high performance,
2
+ standard-compliant [ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm)
3
+ parser written in ECMAScript (also popularly known as
4
+ [JavaScript](http://en.wikipedia.org/wiki/JavaScript).
5
+ Esprima is created and maintained by [Ariya Hidayat](http://twitter.com/ariyahidayat),
6
+ with the help of [many contributors](https://github.com/ariya/esprima/contributors).
7
+
8
+ ### Features
9
+
10
+ - Full support for ECMAScript 5.1 ([ECMA-262](http://www.ecma-international.org/publications/standards/Ecma-262.htm))
11
+ - Sensible [syntax tree format](http://esprima.org/doc/index.html#ast) compatible with Mozilla
12
+ [Parser AST](https://web.archive.org/web/20201119095346/https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Parser_API)
13
+ - Optional tracking of syntax node location (index-based and line-column)
14
+ - Heavily tested (> 700 [unit tests](http://esprima.org/test/) with [full code coverage](http://esprima.org/test/coverage.html))
15
+ - [Partial support](http://esprima.org/doc/es6.html) for ECMAScript 6
16
+
17
+ Esprima serves as a **building block** for some JavaScript
18
+ language tools, from [code instrumentation](http://esprima.org/demo/functiontrace.html)
19
+ to [editor autocompletion](http://esprima.org/demo/autocomplete.html).
20
+
21
+ Esprima runs on many popular web browsers, as well as other ECMAScript platforms such as
22
+ [Rhino](https://github.com/mozilla/rhino), [Nashorn](http://openjdk.java.net/projects/nashorn/), and [Node.js](https://npmjs.org/package/esprima).
23
+
24
+ For more information, check the web site [esprima.org](http://esprima.org).
@@ -0,0 +1,27 @@
1
+ // Copyright (c) 2014 The Polymer Authors. All rights reserved.
2
+ //
3
+ // Redistribution and use in source and binary forms, with or without
4
+ // modification, are permitted provided that the following conditions are
5
+ // met:
6
+ //
7
+ // * Redistributions of source code must retain the above copyright
8
+ // notice, this list of conditions and the following disclaimer.
9
+ // * Redistributions in binary form must reproduce the above
10
+ // copyright notice, this list of conditions and the following disclaimer
11
+ // in the documentation and/or other materials provided with the
12
+ // distribution.
13
+ // * Neither the name of Google Inc. nor the names of its
14
+ // contributors may be used to endorse or promote products derived from
15
+ // this software without specific prior written permission.
16
+ //
17
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
+ // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
+ // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20
+ // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21
+ // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22
+ // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23
+ // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+ // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akylas/nativescript",
3
- "version": "8.2.3",
3
+ "version": "8.3.0-alpha.2",
4
4
  "description": "A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.",
5
5
  "main": "index",
6
6
  "types": "index.d.ts",
@@ -9,14 +9,6 @@
9
9
  "./globals/index.js",
10
10
  "./globals"
11
11
  ],
12
- "files": [
13
- "**/*.d.ts",
14
- "**/*.js",
15
- "**/*.map",
16
- "**/platforms/ios/**",
17
- "**/platforms/android/**",
18
- "**/package.json"
19
- ],
20
12
  "keywords": [
21
13
  "NativeScript",
22
14
  "JavaScript",
@@ -30,7 +22,7 @@
30
22
  "url": "https://github.com/NativeScript/NativeScript"
31
23
  },
32
24
  "author": {
33
- "name": "NativeScript",
25
+ "name": "@akylas/nativescript",
34
26
  "email": "oss@nativescript.org"
35
27
  },
36
28
  "bugs": {
@@ -46,7 +38,7 @@
46
38
  "acorn": "^8.7.0",
47
39
  "css-tree": "^1.1.2",
48
40
  "reduce-css-calc": "^2.1.7",
49
- "tslib": "2.1.0"
41
+ "tslib": "2.1.0"
50
42
  },
51
43
  "nativescript": {
52
44
  "platforms": {
@@ -55,11 +47,11 @@
55
47
  },
56
48
  "hooks": [
57
49
  {
58
- "name": "nativescript-core",
50
+ "name": "@akylas/nativescript",
59
51
  "type": "before-checkForChanges",
60
52
  "script": "cli-hooks/before-checkForChanges.js",
61
53
  "inject": true
62
54
  }
63
55
  ]
64
56
  }
65
- }
57
+ }
@@ -0,0 +1 @@
1
+ ## Platform specific native code
@@ -21,6 +21,23 @@
21
21
  <key>SupportedPlatformVariant</key>
22
22
  <string>simulator</string>
23
23
  </dict>
24
+ <dict>
25
+ <key>DebugSymbolsPath</key>
26
+ <string>dSYMs</string>
27
+ <key>LibraryIdentifier</key>
28
+ <string>ios-arm64_x86_64-maccatalyst</string>
29
+ <key>LibraryPath</key>
30
+ <string>TNSWidgets.framework</string>
31
+ <key>SupportedArchitectures</key>
32
+ <array>
33
+ <string>arm64</string>
34
+ <string>x86_64</string>
35
+ </array>
36
+ <key>SupportedPlatform</key>
37
+ <string>ios</string>
38
+ <key>SupportedPlatformVariant</key>
39
+ <string>maccatalyst</string>
40
+ </dict>
24
41
  <dict>
25
42
  <key>DebugSymbolsPath</key>
26
43
  <string>dSYMs</string>
@@ -0,0 +1,24 @@
1
+ //
2
+ // NSData+Async.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Peter Staev on 7.08.19.
6
+ // Copyright © 2019 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface NSData (Async)
14
+
15
+ + (void)dataWithContentsOfFile:(nonnull NSString*)path
16
+ completion:(void (^) (NSData*))callback;
17
+
18
+ - (void)writeToFile:(nonnull NSString*) path
19
+ atomically:(BOOL)atomically
20
+ completion:(void (^) (void))callback;
21
+
22
+ @end
23
+
24
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,25 @@
1
+ //
2
+ // NSString+Async.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Peter Staev on 5.08.19.
6
+ // Copyright © 2019 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface NSString (Async)
14
+
15
+ + (void)stringWithContentsOfFile:(nonnull NSString*)path
16
+ encoding:(NSStringEncoding)enc
17
+ completion:(void (^) (NSString*, NSError*))callback;
18
+
19
+ - (void)writeToFile:(nonnull NSString*) path
20
+ atomically:(BOOL)atomically
21
+ encoding:(NSStringEncoding)enc
22
+ completion:(void (^) (NSError*))callback;
23
+ @end
24
+
25
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,16 @@
1
+ //
2
+ // TNSLabel.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Hristo Hristov on 6/9/16.
6
+ // Copyright © 2016 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ @interface TNSLabel : UILabel
12
+
13
+ @property(nonatomic) UIEdgeInsets padding;
14
+ @property(nonatomic) UIEdgeInsets borderThickness;
15
+
16
+ @end
@@ -0,0 +1,29 @@
1
+ //
2
+ // TNSProcess.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Panayot Cankov on 15/05/2017.
6
+ // Copyright © 2017 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #ifndef TNSProcess_h
10
+ #define TNSProcess_h
11
+
12
+ #import <Foundation/Foundation.h>
13
+
14
+ /**
15
+ * Get the milliseconds since the process started.
16
+ */
17
+ double __tns_uptime(void);
18
+
19
+ /**
20
+ * Provides access to NSLog. The runtime implementation of console.log is filtered in release.
21
+ * We rarely need to log in release but in cases such as when logging app startup times in release,
22
+ * this will be convenient shortcut to NSLog, NSLog is not exposed.
23
+ *
24
+ * Please note the {N} CLI may be filtering app output, prefixing the message with "CONSOLE LOG"
25
+ * will make the logs visible in "tns run ios --release" builds.
26
+ */
27
+ void __nslog(NSString* message);
28
+
29
+ #endif /* TNSProcess_h */
@@ -0,0 +1,24 @@
1
+ //
2
+ // TNSWidgets.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Panayot Cankov on 4/27/16.
6
+ // Copyright © 2016 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ //! Project version number for TNSWidgets.
12
+ FOUNDATION_EXPORT double TNSWidgetsVersionNumber;
13
+
14
+ //! Project version string for TNSWidgets.
15
+ FOUNDATION_EXPORT const unsigned char TNSWidgetsVersionString[];
16
+
17
+ // In this header, you should import all the public headers of your framework using statements like #import <TNSWidgets/PublicHeader.h>
18
+
19
+ #import "UIImage+TNSBlocks.h"
20
+ #import "UIView+PassThroughParent.h"
21
+ #import "TNSLabel.h"
22
+ #import "TNSProcess.h"
23
+ #import "NSString+Async.h"
24
+ #import "NSData+Async.h"
@@ -0,0 +1,26 @@
1
+ //
2
+ // UIImage+UIImage_Async.h
3
+ // TKImageAsync
4
+ //
5
+ // Created by Panayot Cankov on 4/18/16.
6
+ // Copyright © 2016 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ @interface UIImage (TNSBlocks)
10
+
11
+ /**
12
+ * Similar to imageNamed: however it runs on a separate queue so the UI thread is not blocked.
13
+ * It also draws the UIImage in a small thumb to force decoding potentially avoiding UI hicckups when displayed.
14
+ */
15
+ + (void) tns_safeDecodeImageNamed: (NSString*) name completion: (void (^) (UIImage*))callback;
16
+
17
+ /**
18
+ * Same as imageNamed, however calls to this method are sinchronized to be thread safe in iOS8 along with calls to tns_safeImageNamed and tns_safeDecodeImageNamed:completion:
19
+ * imageNamed is thread safe in iOS 9 and later so in later versions this methods simply fallbacks to imageNamed:
20
+ */
21
+ + (UIImage*) tns_safeImageNamed: (NSString*) name;
22
+
23
+ + (void) tns_decodeImageWithData: (NSData*) data completion: (void (^) (UIImage*))callback;
24
+ + (void) tns_decodeImageWidthContentsOfFile: (NSString*) file completion: (void (^) (UIImage*))callback;
25
+
26
+ @end
@@ -0,0 +1,17 @@
1
+ //
2
+ // UIView+PassThroughParent.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Manol Donev on 21.08.18.
6
+ // Copyright © 2018 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+
12
+ @interface UIView (PassThroughParent)
13
+
14
+ - (BOOL) passThroughParent;
15
+ - (void) setPassThroughParent:(BOOL) passThroughParent;
16
+
17
+ @end
@@ -0,0 +1,6 @@
1
+ framework module TNSWidgets {
2
+ umbrella header "TNSWidgets.h"
3
+
4
+ export *
5
+ module * { export * }
6
+ }
@@ -0,0 +1,17 @@
1
+ //
2
+ // NSObject+Swizzling.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Manol Donev on 21.08.18.
6
+ // Copyright © 2018 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import <objc/runtime.h>
11
+
12
+
13
+ @interface NSObject (Swizzling)
14
+
15
+ + (void)swizzleInstanceMethodWithOriginalSelector:(SEL)originalSelector fromClass:(Class)classContainigOriginalSel withSwizzlingSelector:(SEL)swizzlingSelector;
16
+
17
+ @end
@@ -0,0 +1,18 @@
1
+ //
2
+ // UIView+PropertyBag.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Manol Donev on 21.08.18.
6
+ // Copyright © 2018 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import <UIKit/UIKit.h>
11
+
12
+
13
+ @interface UIView (PropertyBag)
14
+
15
+ - (id) propertyValueForKey:(NSString*) key;
16
+ - (void) setPropertyValue:(id) value forKey:(NSString*) key;
17
+
18
+ @end
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>BuildMachineOSBuild</key>
6
+ <string>21E258</string>
7
+ <key>CFBundleDevelopmentRegion</key>
8
+ <string>en</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>TNSWidgets</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>org.nativescript.TNSWidgets</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>TNSWidgets</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>FMWK</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>1.0</string>
21
+ <key>CFBundleSignature</key>
22
+ <string>????</string>
23
+ <key>CFBundleSupportedPlatforms</key>
24
+ <array>
25
+ <string>MacOSX</string>
26
+ </array>
27
+ <key>CFBundleVersion</key>
28
+ <string>1</string>
29
+ <key>DTCompiler</key>
30
+ <string>com.apple.compilers.llvm.clang.1_0</string>
31
+ <key>DTPlatformBuild</key>
32
+ <string>13F17a</string>
33
+ <key>DTPlatformName</key>
34
+ <string>macosx</string>
35
+ <key>DTPlatformVersion</key>
36
+ <string>12.3</string>
37
+ <key>DTSDKBuild</key>
38
+ <string>21E226</string>
39
+ <key>DTSDKName</key>
40
+ <string>macosx12.3</string>
41
+ <key>DTXcode</key>
42
+ <string>1340</string>
43
+ <key>DTXcodeBuild</key>
44
+ <string>13F17a</string>
45
+ <key>LSMinimumSystemVersion</key>
46
+ <string>10.15</string>
47
+ <key>UIDeviceFamily</key>
48
+ <array>
49
+ <integer>2</integer>
50
+ </array>
51
+ </dict>
52
+ </plist>
@@ -0,0 +1,24 @@
1
+ //
2
+ // NSData+Async.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Peter Staev on 7.08.19.
6
+ // Copyright © 2019 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface NSData (Async)
14
+
15
+ + (void)dataWithContentsOfFile:(nonnull NSString*)path
16
+ completion:(void (^) (NSData*))callback;
17
+
18
+ - (void)writeToFile:(nonnull NSString*) path
19
+ atomically:(BOOL)atomically
20
+ completion:(void (^) (void))callback;
21
+
22
+ @end
23
+
24
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,25 @@
1
+ //
2
+ // NSString+Async.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Peter Staev on 5.08.19.
6
+ // Copyright © 2019 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface NSString (Async)
14
+
15
+ + (void)stringWithContentsOfFile:(nonnull NSString*)path
16
+ encoding:(NSStringEncoding)enc
17
+ completion:(void (^) (NSString*, NSError*))callback;
18
+
19
+ - (void)writeToFile:(nonnull NSString*) path
20
+ atomically:(BOOL)atomically
21
+ encoding:(NSStringEncoding)enc
22
+ completion:(void (^) (NSError*))callback;
23
+ @end
24
+
25
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,16 @@
1
+ //
2
+ // TNSLabel.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Hristo Hristov on 6/9/16.
6
+ // Copyright © 2016 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ @interface TNSLabel : UILabel
12
+
13
+ @property(nonatomic) UIEdgeInsets padding;
14
+ @property(nonatomic) UIEdgeInsets borderThickness;
15
+
16
+ @end
@@ -0,0 +1,29 @@
1
+ //
2
+ // TNSProcess.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Panayot Cankov on 15/05/2017.
6
+ // Copyright © 2017 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #ifndef TNSProcess_h
10
+ #define TNSProcess_h
11
+
12
+ #import <Foundation/Foundation.h>
13
+
14
+ /**
15
+ * Get the milliseconds since the process started.
16
+ */
17
+ double __tns_uptime(void);
18
+
19
+ /**
20
+ * Provides access to NSLog. The runtime implementation of console.log is filtered in release.
21
+ * We rarely need to log in release but in cases such as when logging app startup times in release,
22
+ * this will be convenient shortcut to NSLog, NSLog is not exposed.
23
+ *
24
+ * Please note the {N} CLI may be filtering app output, prefixing the message with "CONSOLE LOG"
25
+ * will make the logs visible in "tns run ios --release" builds.
26
+ */
27
+ void __nslog(NSString* message);
28
+
29
+ #endif /* TNSProcess_h */