@santoshpk/react-native-carplay 1.0.3

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 (269) hide show
  1. package/README.md +119 -0
  2. package/android/.idea/compiler.xml +6 -0
  3. package/android/.idea/gradle.xml +17 -0
  4. package/android/.idea/jarRepositories.xml +25 -0
  5. package/android/.idea/misc.xml +10 -0
  6. package/android/.idea/vcs.xml +6 -0
  7. package/android/build.gradle +63 -0
  8. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  9. package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  10. package/android/gradle.properties +20 -0
  11. package/android/gradlew +234 -0
  12. package/android/gradlew.bat +89 -0
  13. package/android/local.properties +8 -0
  14. package/android/src/main/AndroidManifest.xml +31 -0
  15. package/android/src/main/AndroidManifestNew.xml +31 -0
  16. package/android/src/main/java/org/birkir/carplay/CarPlayModule.kt +348 -0
  17. package/android/src/main/java/org/birkir/carplay/CarPlayPackage.kt +18 -0
  18. package/android/src/main/java/org/birkir/carplay/CarPlayService.kt +34 -0
  19. package/android/src/main/java/org/birkir/carplay/CarPlaySession.kt +114 -0
  20. package/android/src/main/java/org/birkir/carplay/parser/Ext.kt +11 -0
  21. package/android/src/main/java/org/birkir/carplay/parser/Parser.kt +18 -0
  22. package/android/src/main/java/org/birkir/carplay/parser/RCTGridTemplate.kt +28 -0
  23. package/android/src/main/java/org/birkir/carplay/parser/RCTListTemplate.kt +64 -0
  24. package/android/src/main/java/org/birkir/carplay/parser/RCTMapTemplate.kt +185 -0
  25. package/android/src/main/java/org/birkir/carplay/parser/RCTMessageTemplate.kt +36 -0
  26. package/android/src/main/java/org/birkir/carplay/parser/RCTPaneTemplate.kt +24 -0
  27. package/android/src/main/java/org/birkir/carplay/parser/RCTSearchTemplate.kt +41 -0
  28. package/android/src/main/java/org/birkir/carplay/parser/RCTTabTemplate.kt +52 -0
  29. package/android/src/main/java/org/birkir/carplay/parser/RCTTemplate.kt +434 -0
  30. package/android/src/main/java/org/birkir/carplay/parser/TemplateParser.kt +35 -0
  31. package/android/src/main/java/org/birkir/carplay/screens/CarScreen.kt +69 -0
  32. package/android/src/main/java/org/birkir/carplay/screens/CarScreenContext.kt +10 -0
  33. package/android/src/main/java/org/birkir/carplay/utils/EventEmitter.kt +174 -0
  34. package/android/src/main/java/org/birkir/carplay/utils/VirtualRenderer.kt +75 -0
  35. package/ios/RCTConvert+RNCarPlay.h +18 -0
  36. package/ios/RCTConvert+RNCarPlay.m +96 -0
  37. package/ios/RNCPStore.h +24 -0
  38. package/ios/RNCPStore.m +68 -0
  39. package/ios/RNCarPlay.h +29 -0
  40. package/ios/RNCarPlay.m +1839 -0
  41. package/ios/RNCarPlay.xcodeproj/project.pbxproj +300 -0
  42. package/lib/CarPlay.d.ts +196 -0
  43. package/lib/CarPlay.d.ts.map +1 -0
  44. package/lib/CarPlay.js +176 -0
  45. package/lib/CarPlay.js.map +1 -0
  46. package/lib/index.d.ts +44 -0
  47. package/lib/index.d.ts.map +1 -0
  48. package/lib/index.js +64 -0
  49. package/lib/index.js.map +1 -0
  50. package/lib/interfaces/Action.d.ts +13 -0
  51. package/lib/interfaces/Action.d.ts.map +1 -0
  52. package/lib/interfaces/Action.js +3 -0
  53. package/lib/interfaces/Action.js.map +1 -0
  54. package/lib/interfaces/AlertAction.d.ts +6 -0
  55. package/lib/interfaces/AlertAction.d.ts.map +1 -0
  56. package/lib/interfaces/AlertAction.js +3 -0
  57. package/lib/interfaces/AlertAction.js.map +1 -0
  58. package/lib/interfaces/BarButton.d.ts +39 -0
  59. package/lib/interfaces/BarButton.d.ts.map +1 -0
  60. package/lib/interfaces/BarButton.js +3 -0
  61. package/lib/interfaces/BarButton.js.map +1 -0
  62. package/lib/interfaces/CarColor.d.ts +2 -0
  63. package/lib/interfaces/CarColor.d.ts.map +1 -0
  64. package/lib/interfaces/CarColor.js +3 -0
  65. package/lib/interfaces/CarColor.js.map +1 -0
  66. package/lib/interfaces/GridButton.d.ts +24 -0
  67. package/lib/interfaces/GridButton.d.ts.map +1 -0
  68. package/lib/interfaces/GridButton.js +3 -0
  69. package/lib/interfaces/GridButton.js.map +1 -0
  70. package/lib/interfaces/Header.d.ts +15 -0
  71. package/lib/interfaces/Header.d.ts.map +1 -0
  72. package/lib/interfaces/Header.js +3 -0
  73. package/lib/interfaces/Header.js.map +1 -0
  74. package/lib/interfaces/ListItem.d.ts +61 -0
  75. package/lib/interfaces/ListItem.d.ts.map +1 -0
  76. package/lib/interfaces/ListItem.js +3 -0
  77. package/lib/interfaces/ListItem.js.map +1 -0
  78. package/lib/interfaces/ListItemUpdate.d.ts +15 -0
  79. package/lib/interfaces/ListItemUpdate.d.ts.map +1 -0
  80. package/lib/interfaces/ListItemUpdate.js +3 -0
  81. package/lib/interfaces/ListItemUpdate.js.map +1 -0
  82. package/lib/interfaces/ListSection.d.ts +21 -0
  83. package/lib/interfaces/ListSection.d.ts.map +1 -0
  84. package/lib/interfaces/ListSection.js +3 -0
  85. package/lib/interfaces/ListSection.js.map +1 -0
  86. package/lib/interfaces/Maneuver.d.ts +31 -0
  87. package/lib/interfaces/Maneuver.d.ts.map +1 -0
  88. package/lib/interfaces/Maneuver.js +3 -0
  89. package/lib/interfaces/Maneuver.js.map +1 -0
  90. package/lib/interfaces/MapButton.d.ts +27 -0
  91. package/lib/interfaces/MapButton.d.ts.map +1 -0
  92. package/lib/interfaces/MapButton.js +3 -0
  93. package/lib/interfaces/MapButton.js.map +1 -0
  94. package/lib/interfaces/NavigationAlert.d.ts +44 -0
  95. package/lib/interfaces/NavigationAlert.d.ts.map +1 -0
  96. package/lib/interfaces/NavigationAlert.js +10 -0
  97. package/lib/interfaces/NavigationAlert.js.map +1 -0
  98. package/lib/interfaces/NavigationInfo.d.ts +17 -0
  99. package/lib/interfaces/NavigationInfo.d.ts.map +1 -0
  100. package/lib/interfaces/NavigationInfo.js +3 -0
  101. package/lib/interfaces/NavigationInfo.js.map +1 -0
  102. package/lib/interfaces/NavigationStep.d.ts +17 -0
  103. package/lib/interfaces/NavigationStep.d.ts.map +1 -0
  104. package/lib/interfaces/NavigationStep.js +3 -0
  105. package/lib/interfaces/NavigationStep.js.map +1 -0
  106. package/lib/interfaces/Pane.d.ts +29 -0
  107. package/lib/interfaces/Pane.d.ts.map +1 -0
  108. package/lib/interfaces/Pane.js +3 -0
  109. package/lib/interfaces/Pane.js.map +1 -0
  110. package/lib/interfaces/PauseReason.d.ts +8 -0
  111. package/lib/interfaces/PauseReason.d.ts.map +1 -0
  112. package/lib/interfaces/PauseReason.js +12 -0
  113. package/lib/interfaces/PauseReason.js.map +1 -0
  114. package/lib/interfaces/Place.d.ts +11 -0
  115. package/lib/interfaces/Place.d.ts.map +1 -0
  116. package/lib/interfaces/Place.js +3 -0
  117. package/lib/interfaces/Place.js.map +1 -0
  118. package/lib/interfaces/TextConfiguration.d.ts +6 -0
  119. package/lib/interfaces/TextConfiguration.d.ts.map +1 -0
  120. package/lib/interfaces/TextConfiguration.js +3 -0
  121. package/lib/interfaces/TextConfiguration.js.map +1 -0
  122. package/lib/interfaces/TimeRemainingColor.d.ts +2 -0
  123. package/lib/interfaces/TimeRemainingColor.d.ts.map +1 -0
  124. package/lib/interfaces/TimeRemainingColor.js +3 -0
  125. package/lib/interfaces/TimeRemainingColor.js.map +1 -0
  126. package/lib/interfaces/TravelEstimates.d.ts +37 -0
  127. package/lib/interfaces/TravelEstimates.d.ts.map +1 -0
  128. package/lib/interfaces/TravelEstimates.js +3 -0
  129. package/lib/interfaces/TravelEstimates.js.map +1 -0
  130. package/lib/interfaces/VoiceControlState.d.ts +8 -0
  131. package/lib/interfaces/VoiceControlState.d.ts.map +1 -0
  132. package/lib/interfaces/VoiceControlState.js +3 -0
  133. package/lib/interfaces/VoiceControlState.js.map +1 -0
  134. package/lib/navigation/NavigationSession.d.ts +18 -0
  135. package/lib/navigation/NavigationSession.d.ts.map +1 -0
  136. package/lib/navigation/NavigationSession.js +51 -0
  137. package/lib/navigation/NavigationSession.js.map +1 -0
  138. package/lib/navigation/Trip.d.ts +22 -0
  139. package/lib/navigation/Trip.d.ts.map +1 -0
  140. package/lib/navigation/Trip.js +18 -0
  141. package/lib/navigation/Trip.js.map +1 -0
  142. package/lib/templates/ActionSheetTemplate.d.ts +18 -0
  143. package/lib/templates/ActionSheetTemplate.d.ts.map +1 -0
  144. package/lib/templates/ActionSheetTemplate.js +16 -0
  145. package/lib/templates/ActionSheetTemplate.js.map +1 -0
  146. package/lib/templates/AlertTemplate.d.ts +17 -0
  147. package/lib/templates/AlertTemplate.d.ts.map +1 -0
  148. package/lib/templates/AlertTemplate.js +16 -0
  149. package/lib/templates/AlertTemplate.js.map +1 -0
  150. package/lib/templates/ContactTemplate.d.ts +36 -0
  151. package/lib/templates/ContactTemplate.d.ts.map +1 -0
  152. package/lib/templates/ContactTemplate.js +16 -0
  153. package/lib/templates/ContactTemplate.js.map +1 -0
  154. package/lib/templates/GridTemplate.d.ts +38 -0
  155. package/lib/templates/GridTemplate.d.ts.map +1 -0
  156. package/lib/templates/GridTemplate.js +17 -0
  157. package/lib/templates/GridTemplate.js.map +1 -0
  158. package/lib/templates/InformationTemplate.d.ts +28 -0
  159. package/lib/templates/InformationTemplate.d.ts.map +1 -0
  160. package/lib/templates/InformationTemplate.js +28 -0
  161. package/lib/templates/InformationTemplate.js.map +1 -0
  162. package/lib/templates/ListTemplate.d.ts +112 -0
  163. package/lib/templates/ListTemplate.d.ts.map +1 -0
  164. package/lib/templates/ListTemplate.js +57 -0
  165. package/lib/templates/ListTemplate.js.map +1 -0
  166. package/lib/templates/MapTemplate.d.ts +171 -0
  167. package/lib/templates/MapTemplate.d.ts.map +1 -0
  168. package/lib/templates/MapTemplate.js +115 -0
  169. package/lib/templates/MapTemplate.js.map +1 -0
  170. package/lib/templates/NowPlayingTemplate.d.ts +31 -0
  171. package/lib/templates/NowPlayingTemplate.d.ts.map +1 -0
  172. package/lib/templates/NowPlayingTemplate.js +18 -0
  173. package/lib/templates/NowPlayingTemplate.js.map +1 -0
  174. package/lib/templates/PointOfInterestTemplate.d.ts +38 -0
  175. package/lib/templates/PointOfInterestTemplate.d.ts.map +1 -0
  176. package/lib/templates/PointOfInterestTemplate.js +18 -0
  177. package/lib/templates/PointOfInterestTemplate.js.map +1 -0
  178. package/lib/templates/SearchTemplate.d.ts +32 -0
  179. package/lib/templates/SearchTemplate.d.ts.map +1 -0
  180. package/lib/templates/SearchTemplate.js +41 -0
  181. package/lib/templates/SearchTemplate.js.map +1 -0
  182. package/lib/templates/TabBarTemplate.d.ts +27 -0
  183. package/lib/templates/TabBarTemplate.d.ts.map +1 -0
  184. package/lib/templates/TabBarTemplate.js +26 -0
  185. package/lib/templates/TabBarTemplate.js.map +1 -0
  186. package/lib/templates/Template.d.ts +83 -0
  187. package/lib/templates/Template.d.ts.map +1 -0
  188. package/lib/templates/Template.js +71 -0
  189. package/lib/templates/Template.js.map +1 -0
  190. package/lib/templates/VoiceControlTemplate.d.ts +18 -0
  191. package/lib/templates/VoiceControlTemplate.d.ts.map +1 -0
  192. package/lib/templates/VoiceControlTemplate.js +20 -0
  193. package/lib/templates/VoiceControlTemplate.js.map +1 -0
  194. package/lib/templates/android/AndroidNavigationBaseTemplate.d.ts +19 -0
  195. package/lib/templates/android/AndroidNavigationBaseTemplate.d.ts.map +1 -0
  196. package/lib/templates/android/AndroidNavigationBaseTemplate.js +29 -0
  197. package/lib/templates/android/AndroidNavigationBaseTemplate.js.map +1 -0
  198. package/lib/templates/android/MessageTemplate.d.ts +16 -0
  199. package/lib/templates/android/MessageTemplate.d.ts.map +1 -0
  200. package/lib/templates/android/MessageTemplate.js +11 -0
  201. package/lib/templates/android/MessageTemplate.js.map +1 -0
  202. package/lib/templates/android/NavigationTemplate.d.ts +44 -0
  203. package/lib/templates/android/NavigationTemplate.d.ts.map +1 -0
  204. package/lib/templates/android/NavigationTemplate.js +17 -0
  205. package/lib/templates/android/NavigationTemplate.js.map +1 -0
  206. package/lib/templates/android/PaneTemplate.d.ts +20 -0
  207. package/lib/templates/android/PaneTemplate.d.ts.map +1 -0
  208. package/lib/templates/android/PaneTemplate.js +17 -0
  209. package/lib/templates/android/PaneTemplate.js.map +1 -0
  210. package/lib/templates/android/PlaceListMapTemplate.d.ts +78 -0
  211. package/lib/templates/android/PlaceListMapTemplate.d.ts.map +1 -0
  212. package/lib/templates/android/PlaceListMapTemplate.js +25 -0
  213. package/lib/templates/android/PlaceListMapTemplate.js.map +1 -0
  214. package/lib/templates/android/PlaceListNavigationTemplate.d.ts +51 -0
  215. package/lib/templates/android/PlaceListNavigationTemplate.d.ts.map +1 -0
  216. package/lib/templates/android/PlaceListNavigationTemplate.js +20 -0
  217. package/lib/templates/android/PlaceListNavigationTemplate.js.map +1 -0
  218. package/lib/templates/android/RoutePreviewNavigationTemplate.d.ts +60 -0
  219. package/lib/templates/android/RoutePreviewNavigationTemplate.d.ts.map +1 -0
  220. package/lib/templates/android/RoutePreviewNavigationTemplate.js +23 -0
  221. package/lib/templates/android/RoutePreviewNavigationTemplate.js.map +1 -0
  222. package/lib/tsconfig.tsbuildinfo +1 -0
  223. package/package.json +49 -0
  224. package/react-native-carplay.podspec +21 -0
  225. package/src/CarPlay.ts +320 -0
  226. package/src/index.ts +50 -0
  227. package/src/interfaces/Action.ts +15 -0
  228. package/src/interfaces/AlertAction.ts +5 -0
  229. package/src/interfaces/BarButton.ts +41 -0
  230. package/src/interfaces/CarColor.ts +1 -0
  231. package/src/interfaces/GridButton.ts +25 -0
  232. package/src/interfaces/Header.ts +16 -0
  233. package/src/interfaces/ListItem.ts +61 -0
  234. package/src/interfaces/ListItemUpdate.ts +14 -0
  235. package/src/interfaces/ListSection.ts +21 -0
  236. package/src/interfaces/Maneuver.ts +30 -0
  237. package/src/interfaces/MapButton.ts +27 -0
  238. package/src/interfaces/NavigationAlert.ts +46 -0
  239. package/src/interfaces/NavigationInfo.ts +19 -0
  240. package/src/interfaces/NavigationStep.ts +17 -0
  241. package/src/interfaces/Pane.ts +29 -0
  242. package/src/interfaces/PauseReason.ts +7 -0
  243. package/src/interfaces/Place.ts +12 -0
  244. package/src/interfaces/TextConfiguration.ts +5 -0
  245. package/src/interfaces/TimeRemainingColor.ts +1 -0
  246. package/src/interfaces/TravelEstimates.ts +39 -0
  247. package/src/interfaces/VoiceControlState.ts +8 -0
  248. package/src/navigation/NavigationSession.ts +57 -0
  249. package/src/navigation/Trip.ts +36 -0
  250. package/src/templates/ActionSheetTemplate.ts +21 -0
  251. package/src/templates/AlertTemplate.ts +20 -0
  252. package/src/templates/ContactTemplate.ts +45 -0
  253. package/src/templates/GridTemplate.ts +45 -0
  254. package/src/templates/InformationTemplate.ts +42 -0
  255. package/src/templates/ListTemplate.ts +150 -0
  256. package/src/templates/MapTemplate.ts +231 -0
  257. package/src/templates/NowPlayingTemplate.ts +38 -0
  258. package/src/templates/PointOfInterestTemplate.ts +42 -0
  259. package/src/templates/SearchTemplate.ts +70 -0
  260. package/src/templates/TabBarTemplate.ts +56 -0
  261. package/src/templates/Template.ts +165 -0
  262. package/src/templates/VoiceControlTemplate.ts +25 -0
  263. package/src/templates/android/AndroidNavigationBaseTemplate.ts +46 -0
  264. package/src/templates/android/MessageTemplate.ts +19 -0
  265. package/src/templates/android/NavigationTemplate.ts +50 -0
  266. package/src/templates/android/PaneTemplate.ts +26 -0
  267. package/src/templates/android/PlaceListMapTemplate.ts +94 -0
  268. package/src/templates/android/PlaceListNavigationTemplate.ts +57 -0
  269. package/src/templates/android/RoutePreviewNavigationTemplate.ts +66 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarPlay.js","sourceRoot":"","sources":["../src/CarPlay.ts"],"names":[],"mappings":";;;AAAA,+CAA8G;AAiG9G,MAAM,EAAE,SAAS,EAAE,GAAG,4BAA+C,CAAC;AA6BtE;;GAEG;AACH,MAAa,gBAAgB;IAoB3B;QAnBA;;WAEG;QACI,WAAM,GAAG,SAAS,CAAC;QAE1B;;WAEG;QACI,cAAS,GAAG,KAAK,CAAC;QAGzB;;WAEG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
package/lib/index.d.ts ADDED
@@ -0,0 +1,44 @@
1
+ export * from './templates/Template';
2
+ export * from './templates/ActionSheetTemplate';
3
+ export * from './templates/AlertTemplate';
4
+ export * from './templates/ContactTemplate';
5
+ export * from './templates/GridTemplate';
6
+ export * from './templates/InformationTemplate';
7
+ export * from './templates/ListTemplate';
8
+ export * from './templates/MapTemplate';
9
+ export * from './templates/NowPlayingTemplate';
10
+ export * from './templates/PointOfInterestTemplate';
11
+ export * from './templates/SearchTemplate';
12
+ export * from './templates/TabBarTemplate';
13
+ export * from './templates/VoiceControlTemplate';
14
+ export * from './templates/android/MessageTemplate';
15
+ export * from './templates/android/NavigationTemplate';
16
+ export * from './templates/android/PaneTemplate';
17
+ export * from './templates/android/PlaceListMapTemplate';
18
+ export * from './templates/android/PlaceListNavigationTemplate';
19
+ export * from './templates/android/RoutePreviewNavigationTemplate';
20
+ export * from './CarPlay';
21
+ export * from './navigation/Trip';
22
+ export * from './navigation/NavigationSession';
23
+ export * from './interfaces/Action';
24
+ export * from './interfaces/AlertAction';
25
+ export * from './interfaces/BarButton';
26
+ export * from './interfaces/CarColor';
27
+ export * from './interfaces/GridButton';
28
+ export * from './interfaces/Header';
29
+ export * from './interfaces/ListItem';
30
+ export * from './interfaces/ListItemUpdate';
31
+ export * from './interfaces/ListSection';
32
+ export * from './interfaces/Maneuver';
33
+ export * from './interfaces/MapButton';
34
+ export * from './interfaces/NavigationAlert';
35
+ export * from './interfaces/NavigationInfo';
36
+ export * from './interfaces/NavigationStep';
37
+ export * from './interfaces/Pane';
38
+ export * from './interfaces/PauseReason';
39
+ export * from './interfaces/Place';
40
+ export * from './interfaces/TextConfiguration';
41
+ export * from './interfaces/TimeRemainingColor';
42
+ export * from './interfaces/TravelEstimates';
43
+ export * from './interfaces/VoiceControlState';
44
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AAGjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,oDAAoD,CAAC;AAGnE,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AAG/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC"}
package/lib/index.js ADDED
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Templates
18
+ __exportStar(require("./templates/Template"), exports);
19
+ __exportStar(require("./templates/ActionSheetTemplate"), exports);
20
+ __exportStar(require("./templates/AlertTemplate"), exports);
21
+ __exportStar(require("./templates/ContactTemplate"), exports);
22
+ __exportStar(require("./templates/GridTemplate"), exports);
23
+ __exportStar(require("./templates/InformationTemplate"), exports);
24
+ __exportStar(require("./templates/ListTemplate"), exports);
25
+ __exportStar(require("./templates/MapTemplate"), exports);
26
+ __exportStar(require("./templates/NowPlayingTemplate"), exports);
27
+ __exportStar(require("./templates/PointOfInterestTemplate"), exports);
28
+ __exportStar(require("./templates/SearchTemplate"), exports);
29
+ __exportStar(require("./templates/TabBarTemplate"), exports);
30
+ __exportStar(require("./templates/VoiceControlTemplate"), exports);
31
+ // Android-only Templates
32
+ __exportStar(require("./templates/android/MessageTemplate"), exports);
33
+ __exportStar(require("./templates/android/NavigationTemplate"), exports);
34
+ __exportStar(require("./templates/android/PaneTemplate"), exports);
35
+ __exportStar(require("./templates/android/PlaceListMapTemplate"), exports);
36
+ __exportStar(require("./templates/android/PlaceListNavigationTemplate"), exports);
37
+ __exportStar(require("./templates/android/RoutePreviewNavigationTemplate"), exports);
38
+ // Others
39
+ __exportStar(require("./CarPlay"), exports);
40
+ __exportStar(require("./navigation/Trip"), exports);
41
+ __exportStar(require("./navigation/NavigationSession"), exports);
42
+ // Types
43
+ __exportStar(require("./interfaces/Action"), exports);
44
+ __exportStar(require("./interfaces/AlertAction"), exports);
45
+ __exportStar(require("./interfaces/BarButton"), exports);
46
+ __exportStar(require("./interfaces/CarColor"), exports);
47
+ __exportStar(require("./interfaces/GridButton"), exports);
48
+ __exportStar(require("./interfaces/Header"), exports);
49
+ __exportStar(require("./interfaces/ListItem"), exports);
50
+ __exportStar(require("./interfaces/ListItemUpdate"), exports);
51
+ __exportStar(require("./interfaces/ListSection"), exports);
52
+ __exportStar(require("./interfaces/Maneuver"), exports);
53
+ __exportStar(require("./interfaces/MapButton"), exports);
54
+ __exportStar(require("./interfaces/NavigationAlert"), exports);
55
+ __exportStar(require("./interfaces/NavigationInfo"), exports);
56
+ __exportStar(require("./interfaces/NavigationStep"), exports);
57
+ __exportStar(require("./interfaces/Pane"), exports);
58
+ __exportStar(require("./interfaces/PauseReason"), exports);
59
+ __exportStar(require("./interfaces/Place"), exports);
60
+ __exportStar(require("./interfaces/TextConfiguration"), exports);
61
+ __exportStar(require("./interfaces/TimeRemainingColor"), exports);
62
+ __exportStar(require("./interfaces/TravelEstimates"), exports);
63
+ __exportStar(require("./interfaces/VoiceControlState"), exports);
64
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,YAAY;AACZ,uDAAqC;AACrC,kEAAgD;AAChD,4DAA0C;AAC1C,8DAA4C;AAC5C,2DAAyC;AACzC,kEAAgD;AAChD,2DAAyC;AACzC,0DAAwC;AACxC,iEAA+C;AAC/C,sEAAoD;AACpD,6DAA2C;AAC3C,6DAA2C;AAC3C,mEAAiD;AAEjD,yBAAyB;AACzB,sEAAoD;AACpD,yEAAuD;AACvD,mEAAiD;AACjD,2EAAyD;AACzD,kFAAgE;AAChE,qFAAmE;AAEnE,SAAS;AACT,4CAA0B;AAC1B,oDAAkC;AAClC,iEAA+C;AAE/C,QAAQ;AACR,sDAAoC;AACpC,2DAAyC;AACzC,yDAAuC;AACvC,wDAAsC;AACtC,0DAAwC;AACxC,sDAAoC;AACpC,wDAAsC;AACtC,8DAA4C;AAC5C,2DAAyC;AACzC,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,8DAA4C;AAC5C,8DAA4C;AAC5C,oDAAkC;AAClC,2DAAyC;AACzC,qDAAmC;AACnC,iEAA+C;AAC/C,kEAAgD;AAChD,+DAA6C;AAC7C,iEAA+C"}
@@ -0,0 +1,13 @@
1
+ import { ColorValue } from 'react-native';
2
+ export type ActionType = 'appIcon' | 'back' | 'pan' | 'custom';
3
+ export interface Action<T extends ActionType = ActionType> {
4
+ id?: string;
5
+ title?: string;
6
+ icon?: string;
7
+ backgroundColor?: ColorValue;
8
+ visibility?: 'default' | 'persistent' | 'primary';
9
+ enabled?: boolean;
10
+ type?: T;
11
+ }
12
+ export type HeaderAction = Action<'appIcon' | 'back'>;
13
+ //# sourceMappingURL=Action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../src/interfaces/Action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE/D,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,UAAU,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,SAAS,CAAC;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,CAAC,CAAC;CACV;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Action.js","sourceRoot":"","sources":["../../src/interfaces/Action.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface AlertAction {
2
+ id: string;
3
+ title: string;
4
+ style?: 'default' | 'cancel' | 'destructive';
5
+ }
6
+ //# sourceMappingURL=AlertAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertAction.d.ts","sourceRoot":"","sources":["../../src/interfaces/AlertAction.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;CAC9C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AlertAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertAction.js","sourceRoot":"","sources":["../../src/interfaces/AlertAction.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ import { ImageSourcePropType } from 'react-native';
2
+ interface BarButtonBase {
3
+ /**
4
+ * Button ID
5
+ */
6
+ id: string;
7
+ /**
8
+ * A Boolean value that enables and disables the bar button.
9
+ */
10
+ disabled?: boolean;
11
+ }
12
+ export interface BarButtonText extends BarButtonBase {
13
+ /**
14
+ * A text style bar button.
15
+ */
16
+ type: 'text';
17
+ /**
18
+ * The title displayed on the button.
19
+ */
20
+ title: string;
21
+ }
22
+ export interface BarButtonImage extends BarButtonBase {
23
+ /**
24
+ * An image style bar button.
25
+ */
26
+ type: 'image';
27
+ /**
28
+ * The image displayed on the button.
29
+ *
30
+ * If you provide an animated image, the button displays only the first image in the animation sequence.
31
+ */
32
+ image: ImageSourcePropType;
33
+ }
34
+ /**
35
+ * A button in a navigation bar.
36
+ */
37
+ export type BarButton = BarButtonImage | BarButtonText;
38
+ export {};
39
+ //# sourceMappingURL=BarButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BarButton.d.ts","sourceRoot":"","sources":["../../src/interfaces/BarButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,UAAU,aAAa;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;;;OAIG;IACH,KAAK,EAAE,mBAAmB,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BarButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BarButton.js","sourceRoot":"","sources":["../../src/interfaces/BarButton.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type CarColor = 'blue' | 'green' | 'primary' | 'red' | 'secondary' | 'yellow' | 'default';
2
+ //# sourceMappingURL=CarColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarColor.d.ts","sourceRoot":"","sources":["../../src/interfaces/CarColor.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CarColor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarColor.js","sourceRoot":"","sources":["../../src/interfaces/CarColor.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { ImageSourcePropType } from 'react-native';
2
+ /**
3
+ * A menu item button displayed on a grid template.
4
+ */
5
+ export interface GridButton {
6
+ /**
7
+ * Button ID
8
+ */
9
+ id: string;
10
+ /**
11
+ * An array of title variants for the button.
12
+ *
13
+ * When the system displays the button, it selects the title that best fits the available screen space, so arrange the titles from most to least preferred when creating a grid button. Also, localize each title for display to the user, and be sure to include at least one title in the array.
14
+ */
15
+ titleVariants: string[];
16
+ /**
17
+ * The image displayed on the button.
18
+ *
19
+ * When creating a grid button, don't provide an animated image. If you do, the button uses the first image in the animation sequence.
20
+ */
21
+ image: ImageSourcePropType;
22
+ disabled?: boolean;
23
+ }
24
+ //# sourceMappingURL=GridButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridButton.d.ts","sourceRoot":"","sources":["../../src/interfaces/GridButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB;;;;OAIG;IACH,KAAK,EAAE,mBAAmB,CAAC;IAE3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=GridButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridButton.js","sourceRoot":"","sources":["../../src/interfaces/GridButton.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { Action, HeaderAction } from './Action';
2
+ export interface Header {
3
+ title: string;
4
+ /**
5
+ * By default, a header will not have a start action.
6
+ * Requirements Only one of APP_ICON or BACK is supported as a start header Action.
7
+ */
8
+ startAction?: Action<'appIcon' | 'back'>;
9
+ /**
10
+ * By default, a template will not have end header actions.
11
+ * Requirements Up to 2 actions (which are APP_ICON, BACK or TYPE_CUSTOM with an icon) at the end of the header.
12
+ */
13
+ endActions?: [HeaderAction] | [HeaderAction, HeaderAction];
14
+ }
15
+ //# sourceMappingURL=Header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/interfaces/Header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,CAAC;IACzC;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;CAC5D"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../src/interfaces/Header.ts"],"names":[],"mappings":""}
@@ -0,0 +1,61 @@
1
+ import { ImageSourcePropType } from 'react-native';
2
+ import { Action } from './Action';
3
+ /**
4
+ * A list item that appears in a list template.
5
+ */
6
+ export interface ListItem {
7
+ /**
8
+ * References the item by id
9
+ */
10
+ id?: string;
11
+ /**
12
+ * The primary text displayed in the list item cell.
13
+ */
14
+ text: string;
15
+ /**
16
+ * Extra text displayed below the primary text in the list item cell.
17
+ */
18
+ detailText?: string;
19
+ /**
20
+ * Image from file system displayed on the leading edge of the list item cell.
21
+ */
22
+ image?: ImageSourcePropType;
23
+ /**
24
+ * Url for image displayed on the leading edge of the list item cell.
25
+ */
26
+ imgUrl?: null;
27
+ /**
28
+ * A Boolean value indicating whether the list item cell shows a disclosure indicator on the trailing edge of the list item cell.
29
+ * @namespace iOS
30
+ */
31
+ showsDisclosureIndicator?: boolean;
32
+ /**
33
+ * Is Playing flag.
34
+ * @namespace iOS
35
+ */
36
+ isPlaying?: boolean;
37
+ /**
38
+ * Sets the initial enabled state for Row.
39
+ * @default true
40
+ * @namespace Android
41
+ */
42
+ enabled?: boolean;
43
+ /**
44
+ * Shows an icon at the end of the row that indicates that the row is browsable.
45
+ * Browsable rows can be used, for example, to represent the parent row in a hierarchy of lists with child lists.
46
+ * If a row is browsable, then no Action or Toggle can be added to it.
47
+ * @namespace Android
48
+ */
49
+ browsable?: boolean;
50
+ /**
51
+ * If a row has a toggle set, then no Action or numeric decoration can be set.
52
+ * @namespace Android
53
+ */
54
+ toggle?: number;
55
+ /**
56
+ * Adds an additional action to the end of the row.
57
+ * @namespace Android
58
+ */
59
+ action?: Action<'custom'>;
60
+ }
61
+ //# sourceMappingURL=ListItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../src/interfaces/ListItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;CAC3B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ListItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../src/interfaces/ListItem.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { ListItem } from './ListItem';
2
+ /**
3
+ * A list item update payload.
4
+ */
5
+ export interface ListItemUpdate extends ListItem {
6
+ /**
7
+ * The section of item.
8
+ */
9
+ sectionIndex: number;
10
+ /**
11
+ * The index of item.
12
+ */
13
+ itemIndex: number;
14
+ }
15
+ //# sourceMappingURL=ListItemUpdate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemUpdate.d.ts","sourceRoot":"","sources":["../../src/interfaces/ListItemUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ListItemUpdate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemUpdate.js","sourceRoot":"","sources":["../../src/interfaces/ListItemUpdate.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import { ListItem } from './ListItem';
2
+ /**
3
+ * A section of list items that appear in a list template.
4
+ */
5
+ export interface ListSection {
6
+ /**
7
+ * The section header text.
8
+ */
9
+ header?: string;
10
+ /**
11
+ * The section index title.
12
+ *
13
+ * The system displays only the first character of the section index title.
14
+ */
15
+ sectionIndexTitle?: string;
16
+ /**
17
+ * The list of items for the section.
18
+ */
19
+ items: ListItem[];
20
+ }
21
+ //# sourceMappingURL=ListSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListSection.d.ts","sourceRoot":"","sources":["../../src/interfaces/ListSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ListSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListSection.js","sourceRoot":"","sources":["../../src/interfaces/ListSection.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import { TravelEstimates } from './TravelEstimates';
2
+ import { ColorValue, ImageSourcePropType, ProcessedColorValue } from 'react-native';
3
+ /**
4
+ * Navigation instructions and distance from the previous maneuver.
5
+ */
6
+ export interface Maneuver {
7
+ junctionImage?: ImageSourcePropType;
8
+ initialTravelEstimates?: TravelEstimates;
9
+ symbolImage?: ImageSourcePropType;
10
+ /**
11
+ * The size of the image in points. Please read the CarPlay App Programming Guide
12
+ * to get the recommended size.
13
+ */
14
+ symbolImageSize?: {
15
+ width: number;
16
+ height: number;
17
+ };
18
+ /**
19
+ * Allows the supplied symbol image to be tinted
20
+ * via a color, ie. 'red'. This functionality would usually
21
+ * be available via the `<Image>` tag but carplay requires
22
+ * an image asset to this tinting is done on the native side.
23
+ * If a string is supplied, it will be passed to `processColor`.
24
+ * You may also use `processColor` yourself.
25
+ */
26
+ tintSymbolImage?: null | number | ColorValue | ProcessedColorValue;
27
+ instructionVariants: string[];
28
+ dashboardInstructionVariants?: string[];
29
+ notificationInstructionVariants?: string[];
30
+ }
31
+ //# sourceMappingURL=Maneuver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Maneuver.d.ts","sourceRoot":"","sources":["../../src/interfaces/Maneuver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEpF;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,sBAAsB,CAAC,EAAE,eAAe,CAAC;IACzC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC;;;OAGG;IACH,eAAe,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACpD;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,UAAU,GAAG,mBAAmB,CAAC;IACnE,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAG9B,4BAA4B,CAAC,EAAE,MAAM,EAAE,CAAC;IACxC,+BAA+B,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Maneuver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Maneuver.js","sourceRoot":"","sources":["../../src/interfaces/Maneuver.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import { ImageSourcePropType } from 'react-native';
2
+ /**
3
+ * A button representing an action that a map template displays on the CarPlay screen.
4
+ */
5
+ export interface MapButton {
6
+ /**
7
+ * Button ID
8
+ */
9
+ id: string;
10
+ /**
11
+ * The image to display on the button.
12
+ */
13
+ image?: ImageSourcePropType;
14
+ /**
15
+ * The image to display when focus is on the button.
16
+ */
17
+ focusedImage?: ImageSourcePropType;
18
+ /**
19
+ * A Boolean value that enables and disables the map button.
20
+ */
21
+ disabled?: boolean;
22
+ /**
23
+ * A Boolean value that hides and shows the map button.
24
+ */
25
+ hidden?: boolean;
26
+ }
27
+ //# sourceMappingURL=MapButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapButton.d.ts","sourceRoot":"","sources":["../../src/interfaces/MapButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=MapButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapButton.js","sourceRoot":"","sources":["../../src/interfaces/MapButton.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
1
+ import { ImageSourcePropType } from 'react-native';
2
+ export declare enum NavigationAlertActionStyle {
3
+ Default = 0,
4
+ Cancel = 1,
5
+ Destructive = 2
6
+ }
7
+ export interface NavigationAlertAction {
8
+ /**
9
+ * The action button's title.
10
+ */
11
+ title: string;
12
+ /**
13
+ * The display style for the action button.
14
+ */
15
+ style?: NavigationAlertActionStyle;
16
+ }
17
+ /**
18
+ * An alert panel that displays map or navigation related information to the user.
19
+ */
20
+ export interface NavigationAlert {
21
+ lightImage?: ImageSourcePropType;
22
+ darkImage?: ImageSourcePropType;
23
+ /**
24
+ * An array of title strings.
25
+ */
26
+ titleVariants: string[];
27
+ /**
28
+ * An array of subtitle strings.
29
+ */
30
+ subtitleVariants?: string[];
31
+ /**
32
+ * The primary action, and button, for the navigation alert.
33
+ */
34
+ primaryAction: NavigationAlertAction;
35
+ /**
36
+ * An optional, secondary action (and button) for the navigation alert.
37
+ */
38
+ secondaryAction?: NavigationAlertAction;
39
+ /**
40
+ * The amount of time, in seconds, that the alert is visible.
41
+ */
42
+ duration: number;
43
+ }
44
+ //# sourceMappingURL=NavigationAlert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationAlert.d.ts","sourceRoot":"","sources":["../../src/interfaces/NavigationAlert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,oBAAY,0BAA0B;IACpC,OAAO,IAAI;IACX,MAAM,IAAI;IACV,WAAW,IAAI;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,0BAA0B,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC;;OAEG;IACH,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;OAEG;IACH,aAAa,EAAE,qBAAqB,CAAC;IACrC;;OAEG;IACH,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NavigationAlertActionStyle = void 0;
4
+ var NavigationAlertActionStyle;
5
+ (function (NavigationAlertActionStyle) {
6
+ NavigationAlertActionStyle[NavigationAlertActionStyle["Default"] = 0] = "Default";
7
+ NavigationAlertActionStyle[NavigationAlertActionStyle["Cancel"] = 1] = "Cancel";
8
+ NavigationAlertActionStyle[NavigationAlertActionStyle["Destructive"] = 2] = "Destructive";
9
+ })(NavigationAlertActionStyle || (exports.NavigationAlertActionStyle = NavigationAlertActionStyle = {}));
10
+ //# sourceMappingURL=NavigationAlert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationAlert.js","sourceRoot":"","sources":["../../src/interfaces/NavigationAlert.ts"],"names":[],"mappings":";;;AAEA,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,iFAAW,CAAA;IACX,+EAAU,CAAA;IACV,yFAAe,CAAA;AACjB,CAAC,EAJW,0BAA0B,0CAA1B,0BAA0B,QAIrC"}
@@ -0,0 +1,17 @@
1
+ import { ImageResolvedAssetSource } from 'react-native';
2
+ import { NavigationStep } from './NavigationStep';
3
+ export type NavigationRoutingInfo = {
4
+ type: 'routingInfo';
5
+ loading?: boolean;
6
+ junctionImage?: ImageResolvedAssetSource;
7
+ nextStep?: NavigationStep;
8
+ distance: number;
9
+ distanceUnits: number;
10
+ };
11
+ export type NavigationMessageInfo = {
12
+ type: 'messageInfo';
13
+ title: string;
14
+ icon?: ImageResolvedAssetSource;
15
+ };
16
+ export type NavigationInfo = NavigationRoutingInfo | NavigationMessageInfo;
17
+ //# sourceMappingURL=NavigationInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationInfo.d.ts","sourceRoot":"","sources":["../../src/interfaces/NavigationInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,wBAAwB,CAAC;IACzC,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,wBAAwB,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,qBAAqB,GAAG,qBAAqB,CAAC"}