@javascriptcommon/react-native-carplay 2.3.11 → 2.4.1-beta.0

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 (134) hide show
  1. package/android/build.gradle +110 -0
  2. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  3. package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  4. package/android/gradle.properties +20 -0
  5. package/android/gradlew +234 -0
  6. package/android/gradlew.bat +89 -0
  7. package/android/src/main/AndroidManifest.xml +30 -0
  8. package/android/src/main/AndroidManifestNew.xml +30 -0
  9. package/android/src/main/java/org/birkir/carplay/CarPlayModule.kt +321 -0
  10. package/android/src/main/java/org/birkir/carplay/CarPlayPackage.kt +18 -0
  11. package/android/src/main/java/org/birkir/carplay/CarPlayService.kt +35 -0
  12. package/android/src/main/java/org/birkir/carplay/CarPlaySession.kt +126 -0
  13. package/android/src/main/java/org/birkir/carplay/parser/Ext.kt +11 -0
  14. package/android/src/main/java/org/birkir/carplay/parser/Parser.kt +18 -0
  15. package/android/src/main/java/org/birkir/carplay/parser/RCTGridTemplate.kt +28 -0
  16. package/android/src/main/java/org/birkir/carplay/parser/RCTListTemplate.kt +64 -0
  17. package/android/src/main/java/org/birkir/carplay/parser/RCTMapTemplate.kt +128 -0
  18. package/android/src/main/java/org/birkir/carplay/parser/RCTMessageTemplate.kt +28 -0
  19. package/android/src/main/java/org/birkir/carplay/parser/RCTPaneTemplate.kt +24 -0
  20. package/android/src/main/java/org/birkir/carplay/parser/RCTSearchTemplate.kt +41 -0
  21. package/android/src/main/java/org/birkir/carplay/parser/RCTTabTemplate.kt +157 -0
  22. package/android/src/main/java/org/birkir/carplay/parser/RCTTemplate.kt +419 -0
  23. package/android/src/main/java/org/birkir/carplay/parser/TemplateParser.kt +35 -0
  24. package/android/src/main/java/org/birkir/carplay/screens/CarScreen.kt +76 -0
  25. package/android/src/main/java/org/birkir/carplay/screens/CarScreenContext.kt +10 -0
  26. package/android/src/main/java/org/birkir/carplay/utils/EventEmitter.kt +167 -0
  27. package/android/src/main/java/org/birkir/carplay/utils/VirtualRenderer.kt +75 -0
  28. package/ios/RCTConvert+RNCarPlay.h +7 -8
  29. package/ios/RCTConvert+RNCarPlay.m +3 -2
  30. package/ios/RNCarPlay.h +11 -14
  31. package/ios/RNCarPlay.m +749 -945
  32. package/ios/RNCarPlayViewController.h +10 -0
  33. package/ios/RNCarPlayViewController.m +50 -0
  34. package/lib/CarPlay.d.ts +183 -0
  35. package/lib/CarPlay.d.ts.map +1 -0
  36. package/lib/index.d.ts +44 -0
  37. package/lib/index.d.ts.map +1 -0
  38. package/lib/interfaces/Action.d.ts +13 -0
  39. package/lib/interfaces/Action.d.ts.map +1 -0
  40. package/lib/interfaces/AlertAction.d.ts +6 -0
  41. package/lib/interfaces/AlertAction.d.ts.map +1 -0
  42. package/lib/interfaces/BarButton.d.ts +39 -0
  43. package/lib/interfaces/BarButton.d.ts.map +1 -0
  44. package/lib/interfaces/CarColor.d.ts +2 -0
  45. package/lib/interfaces/CarColor.d.ts.map +1 -0
  46. package/lib/interfaces/GridButton.d.ts +24 -0
  47. package/lib/interfaces/GridButton.d.ts.map +1 -0
  48. package/lib/interfaces/Header.d.ts +15 -0
  49. package/lib/interfaces/Header.d.ts.map +1 -0
  50. package/lib/interfaces/ListItem.d.ts +90 -0
  51. package/lib/interfaces/ListItem.d.ts.map +1 -0
  52. package/lib/interfaces/ListItemUpdate.d.ts +15 -0
  53. package/lib/interfaces/ListItemUpdate.d.ts.map +1 -0
  54. package/lib/interfaces/ListSection.d.ts +21 -0
  55. package/lib/interfaces/ListSection.d.ts.map +1 -0
  56. package/lib/interfaces/Maneuver.d.ts +31 -0
  57. package/lib/interfaces/Maneuver.d.ts.map +1 -0
  58. package/lib/interfaces/MapButton.d.ts +27 -0
  59. package/lib/interfaces/MapButton.d.ts.map +1 -0
  60. package/lib/interfaces/NavigationAlert.d.ts +44 -0
  61. package/lib/interfaces/NavigationAlert.d.ts.map +1 -0
  62. package/lib/interfaces/NavigationInfo.d.ts +17 -0
  63. package/lib/interfaces/NavigationInfo.d.ts.map +1 -0
  64. package/lib/interfaces/NavigationStep.d.ts +17 -0
  65. package/lib/interfaces/NavigationStep.d.ts.map +1 -0
  66. package/lib/interfaces/Pane.d.ts +29 -0
  67. package/lib/interfaces/Pane.d.ts.map +1 -0
  68. package/lib/interfaces/PauseReason.d.ts +8 -0
  69. package/lib/interfaces/PauseReason.d.ts.map +1 -0
  70. package/lib/interfaces/Place.d.ts +11 -0
  71. package/lib/interfaces/Place.d.ts.map +1 -0
  72. package/lib/interfaces/TextConfiguration.d.ts +6 -0
  73. package/lib/interfaces/TextConfiguration.d.ts.map +1 -0
  74. package/lib/interfaces/TimeRemainingColor.d.ts +2 -0
  75. package/lib/interfaces/TimeRemainingColor.d.ts.map +1 -0
  76. package/lib/interfaces/TravelEstimates.d.ts +37 -0
  77. package/lib/interfaces/TravelEstimates.d.ts.map +1 -0
  78. package/lib/interfaces/VoiceControlState.d.ts +8 -0
  79. package/lib/interfaces/VoiceControlState.d.ts.map +1 -0
  80. package/lib/navigation/NavigationSession.d.ts +18 -0
  81. package/lib/navigation/NavigationSession.d.ts.map +1 -0
  82. package/lib/navigation/Trip.d.ts +22 -0
  83. package/lib/navigation/Trip.d.ts.map +1 -0
  84. package/lib/templates/ActionSheetTemplate.d.ts +18 -0
  85. package/lib/templates/ActionSheetTemplate.d.ts.map +1 -0
  86. package/lib/templates/AlertTemplate.d.ts +17 -0
  87. package/lib/templates/AlertTemplate.d.ts.map +1 -0
  88. package/lib/templates/ContactTemplate.d.ts +36 -0
  89. package/lib/templates/ContactTemplate.d.ts.map +1 -0
  90. package/lib/templates/GridTemplate.d.ts +38 -0
  91. package/lib/templates/GridTemplate.d.ts.map +1 -0
  92. package/lib/templates/InformationTemplate.d.ts +28 -0
  93. package/lib/templates/InformationTemplate.d.ts.map +1 -0
  94. package/lib/templates/ListTemplate.d.ts +127 -0
  95. package/lib/templates/ListTemplate.d.ts.map +1 -0
  96. package/lib/templates/ListTemplate.js +24 -16
  97. package/lib/templates/MapTemplate.d.ts +171 -0
  98. package/lib/templates/MapTemplate.d.ts.map +1 -0
  99. package/lib/templates/NowPlayingTemplate.d.ts +31 -0
  100. package/lib/templates/NowPlayingTemplate.d.ts.map +1 -0
  101. package/lib/templates/PointOfInterestTemplate.d.ts +33 -0
  102. package/lib/templates/PointOfInterestTemplate.d.ts.map +1 -0
  103. package/lib/templates/SearchTemplate.d.ts +32 -0
  104. package/lib/templates/SearchTemplate.d.ts.map +1 -0
  105. package/lib/templates/SearchTemplate.js +2 -2
  106. package/lib/templates/TabBarTemplate.d.ts +27 -0
  107. package/lib/templates/TabBarTemplate.d.ts.map +1 -0
  108. package/lib/templates/Template.d.ts +82 -0
  109. package/lib/templates/Template.d.ts.map +1 -0
  110. package/lib/templates/VoiceControlTemplate.d.ts +18 -0
  111. package/lib/templates/VoiceControlTemplate.d.ts.map +1 -0
  112. package/lib/templates/android/AndroidNavigationBaseTemplate.d.ts +19 -0
  113. package/lib/templates/android/AndroidNavigationBaseTemplate.d.ts.map +1 -0
  114. package/lib/templates/android/MessageTemplate.d.ts +16 -0
  115. package/lib/templates/android/MessageTemplate.d.ts.map +1 -0
  116. package/lib/templates/android/NavigationTemplate.d.ts +44 -0
  117. package/lib/templates/android/NavigationTemplate.d.ts.map +1 -0
  118. package/lib/templates/android/PaneTemplate.d.ts +13 -0
  119. package/lib/templates/android/PaneTemplate.d.ts.map +1 -0
  120. package/lib/templates/android/PlaceListMapTemplate.d.ts +58 -0
  121. package/lib/templates/android/PlaceListMapTemplate.d.ts.map +1 -0
  122. package/lib/templates/android/PlaceListNavigationTemplate.d.ts +51 -0
  123. package/lib/templates/android/PlaceListNavigationTemplate.d.ts.map +1 -0
  124. package/lib/templates/android/RoutePreviewNavigationTemplate.d.ts +60 -0
  125. package/lib/templates/android/RoutePreviewNavigationTemplate.d.ts.map +1 -0
  126. package/package.json +3 -3
  127. package/react-native-carplay.podspec +3 -3
  128. package/src/CarPlay.ts +28 -16
  129. package/src/interfaces/ListItem.ts +14 -8
  130. package/src/interfaces/ListSection.ts +1 -1
  131. package/src/templates/ListTemplate.ts +64 -44
  132. package/src/templates/NowPlayingTemplate.ts +10 -3
  133. package/src/templates/SearchTemplate.ts +2 -2
  134. package/README.md +0 -633
@@ -0,0 +1,10 @@
1
+ //
2
+ // RNCarPlayViewController.h
3
+ // Created by Susan Thapa on 27/02/2024.
4
+ //
5
+ #import <UIKit/UIKit.h>
6
+ #import <React/RCTRootView.h>
7
+
8
+ @interface RNCarPlayViewController : UIViewController
9
+ - (instancetype)initWithRootView:(RCTRootView *)rootView;
10
+ @end
@@ -0,0 +1,50 @@
1
+ //
2
+ // RNCarPlayViewController.m
3
+ // react-native-carplay
4
+ //
5
+ // Created by Susan Thapa on 27/02/2024.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import "RNCarPlayViewController.h"
10
+ #import <React/RCTRootView.h>
11
+
12
+ @interface RNCarPlayViewController ()
13
+
14
+ @property (nonatomic, strong) RCTRootView *rootView;
15
+
16
+ @end
17
+
18
+ @implementation RNCarPlayViewController
19
+
20
+ - (instancetype)initWithRootView:(RCTRootView *)rootView {
21
+ self = [super init];
22
+ if (self) {
23
+ _rootView = rootView;
24
+ }
25
+ return self;
26
+ }
27
+
28
+ - (void)viewDidLoad {
29
+ [super viewDidLoad];
30
+ self.view.translatesAutoresizingMaskIntoConstraints = false;
31
+ if (self.rootView) {
32
+ self.rootView.translatesAutoresizingMaskIntoConstraints = false;
33
+ self.rootView.frame = self.view.bounds;
34
+ [self.view addSubview:self.rootView];
35
+
36
+ [NSLayoutConstraint activateConstraints:@[
37
+ [self.rootView.leadingAnchor constraintEqualToAnchor:self.view.leadingAnchor],
38
+ [self.rootView.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor],
39
+ [self.rootView.topAnchor constraintEqualToAnchor:self.view.topAnchor],
40
+ [self.rootView.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor],
41
+ ]];
42
+ }
43
+ }
44
+
45
+ - (void)viewWillLayoutSubviews {
46
+ [super viewWillLayoutSubviews];
47
+ self.rootView.frame = self.view.bounds;
48
+ }
49
+
50
+ @end
@@ -0,0 +1,183 @@
1
+ import { ImageSourcePropType, NativeEventEmitter, NativeModule } from 'react-native';
2
+ import { Action } from './interfaces/Action';
3
+ import { Maneuver } from './interfaces/Maneuver';
4
+ import { PauseReason } from './interfaces/PauseReason';
5
+ import { TextConfiguration } from './interfaces/TextConfiguration';
6
+ import { TimeRemainingColor } from './interfaces/TimeRemainingColor';
7
+ import { TravelEstimates } from './interfaces/TravelEstimates';
8
+ import { TripConfig } from './navigation/Trip';
9
+ import { ActionSheetTemplate } from './templates/ActionSheetTemplate';
10
+ import { AlertTemplate } from './templates/AlertTemplate';
11
+ import { ContactTemplate } from './templates/ContactTemplate';
12
+ import { GridTemplate } from './templates/GridTemplate';
13
+ import { InformationTemplate } from './templates/InformationTemplate';
14
+ import { ListTemplate } from './templates/ListTemplate';
15
+ import { MapTemplate } from './templates/MapTemplate';
16
+ import { NowPlayingTemplate } from './templates/NowPlayingTemplate';
17
+ import { PointOfInterestTemplate } from './templates/PointOfInterestTemplate';
18
+ import { SearchTemplate } from './templates/SearchTemplate';
19
+ import { TabBarTemplate } from './templates/TabBarTemplate';
20
+ import { VoiceControlTemplate } from './templates/VoiceControlTemplate';
21
+ import { MessageTemplate } from './templates/android/MessageTemplate';
22
+ import { NavigationTemplate } from './templates/android/NavigationTemplate';
23
+ import { PaneTemplate } from './templates/android/PaneTemplate';
24
+ import { PlaceListMapTemplate } from './templates/android/PlaceListMapTemplate';
25
+ import { PlaceListNavigationTemplate } from './templates/android/PlaceListNavigationTemplate';
26
+ import { RoutePreviewNavigationTemplate } from './templates/android/RoutePreviewNavigationTemplate';
27
+ export interface InternalCarPlay extends NativeModule {
28
+ checkForConnection(): void;
29
+ setRootTemplate(templateId: string, animated: boolean): void;
30
+ pushTemplate(templateId: string, animated: boolean): void;
31
+ popToTemplate(templateId: string, animated: boolean): void;
32
+ popToRootTemplate(animated: boolean): void;
33
+ popTemplate(animated: boolean): void;
34
+ presentTemplate(templateId: string, animated: boolean): void;
35
+ dismissTemplate(animated: boolean): void;
36
+ enableNowPlaying(enabled: boolean): void;
37
+ updateManeuversNavigationSession(id: string, x: Maneuver[]): void;
38
+ updateTravelEstimatesNavigationSession(id: string, index: number, estimates: TravelEstimates): void;
39
+ cancelNavigationSession(id: string): void;
40
+ finishNavigationSession(id: string): void;
41
+ pauseNavigationSession(id: string, reason: PauseReason, description?: string): void;
42
+ createTrip(id: string, config: TripConfig): void;
43
+ updateInformationTemplateItems(id: string, config: unknown): void;
44
+ updateInformationTemplateActions(id: string, config: unknown): void;
45
+ createTemplate(id: string, config: unknown, callback?: unknown): void;
46
+ updateTemplate(id: string, config: unknown): void;
47
+ invalidate(id: string): void;
48
+ startNavigationSession(id: string, tripId: string): Promise<{
49
+ tripId: string;
50
+ navigationSessionId: string;
51
+ }>;
52
+ updateTravelEstimatesForTrip(id: string, tripId: string, travelEstimates: TravelEstimates, timeRemainingColor: TimeRemainingColor): void;
53
+ updateMapTemplateConfig(id: string, config: unknown): void;
54
+ updateMapTemplateMapButtons(id: string, config: unknown): void;
55
+ hideTripPreviews(id: string): void;
56
+ showTripPreviews(id: string, previews: string[], config: TextConfiguration): void;
57
+ showRouteChoicesPreviewForTrip(id: string, tripId: string, config: TextConfiguration): void;
58
+ presentNavigationAlert(id: string, config: unknown, animated: boolean): void;
59
+ dismissNavigationAlert(id: string, animated: boolean): void;
60
+ showPanningInterface(id: string, animated: boolean): void;
61
+ dismissPanningInterface(id: string, animated: boolean): void;
62
+ getMaximumListSectionCount(id: string): Promise<number>;
63
+ getMaximumListItemCount(id: string): Promise<number>;
64
+ getMaximumListItemImageSize(id: string): Promise<ImageSize>;
65
+ getMaximumNumberOfGridImages(id: string): Promise<number>;
66
+ getMaximumListImageRowItemImageSize(id: string): Promise<ImageSize>;
67
+ reactToSelectedResult(status: boolean): void;
68
+ updateListTemplateSections(id: string, config: unknown): void;
69
+ updateListTemplateItem(id: string, config: unknown): void;
70
+ reactToUpdatedSearchText(id: string, items: unknown): void;
71
+ updateTabBarTemplates(id: string, config: unknown): void;
72
+ activateVoiceControlState(id: string, identifier: string): void;
73
+ reload(): void;
74
+ toast(message: string, duration: number): void;
75
+ alert(config: {
76
+ id: number;
77
+ title: string;
78
+ duration: number;
79
+ subtitle?: string;
80
+ icon?: ImageSourcePropType;
81
+ actions?: Action[];
82
+ }): void;
83
+ }
84
+ export type PushableTemplates = MapTemplate | SearchTemplate | GridTemplate | PointOfInterestTemplate | ListTemplate | MessageTemplate | PaneTemplate | InformationTemplate | ContactTemplate | NowPlayingTemplate | NavigationTemplate | PlaceListMapTemplate | PlaceListNavigationTemplate | RoutePreviewNavigationTemplate;
85
+ export type PresentableTemplates = AlertTemplate | ActionSheetTemplate | VoiceControlTemplate;
86
+ export type WindowInformation = {
87
+ width: number;
88
+ height: number;
89
+ scale: number;
90
+ };
91
+ export type ImageSize = {
92
+ width: number;
93
+ height: number;
94
+ };
95
+ export type OnConnectCallback = (window: WindowInformation) => void;
96
+ export type OnDisconnectCallback = () => void;
97
+ /**
98
+ * A controller that manages all user interface elements appearing on your map displayed on the CarPlay screen.
99
+ */
100
+ export declare class CarPlayInterface {
101
+ /**
102
+ * React Native bridge to the CarPlay interface
103
+ */
104
+ bridge: InternalCarPlay;
105
+ /**
106
+ * Boolean to denote if carplay is currently connected.
107
+ */
108
+ connected: boolean;
109
+ window: WindowInformation | undefined;
110
+ /**
111
+ * CarPlay Event Emitter
112
+ */
113
+ emitter: NativeEventEmitter;
114
+ private onConnectCallbacks;
115
+ private onDisconnectCallbacks;
116
+ constructor();
117
+ /**
118
+ * Fired when CarPlay is connected to the device.
119
+ */
120
+ registerOnConnect: (callback: OnConnectCallback) => void;
121
+ unregisterOnConnect: (callback: OnConnectCallback) => void;
122
+ /**
123
+ * Fired when CarPlay is disconnected from the device.
124
+ */
125
+ registerOnDisconnect: (callback: OnDisconnectCallback) => void;
126
+ unregisterOnDisconnect: (callback: OnDisconnectCallback) => void;
127
+ /**
128
+ * Sets the root template, starting a new stack for the template navigation hierarchy.
129
+ * @param rootTemplate The root template. Replaces the current rootTemplate, if one exists.
130
+ * @param animated Set TRUE to animate the presentation of the root template; ignored if there isn't a current rootTemplate.
131
+ */
132
+ setRootTemplate(rootTemplate: PushableTemplates | TabBarTemplate, animated?: boolean): void;
133
+ /**
134
+ * Pushes a template onto the navigation stack and updates the display.
135
+ * @param templateToPush The template to push onto the navigation stack.
136
+ * @param animated Set TRUE to animate the presentation of the template.
137
+ */
138
+ pushTemplate(templateToPush: PushableTemplates, animated?: boolean): void;
139
+ /**
140
+ * Pops templates until the specified template is at the top of the navigation stack.
141
+ * @param targetTemplate The template that you want at the top of the stack. The template must be on the navigation stack before calling this method.
142
+ * @param animated A Boolean value that indicates whether the system animates the display of transitioning templates.
143
+ */
144
+ popToTemplate(targetTemplate: PushableTemplates, animated?: boolean): void;
145
+ /**
146
+ * Pops all templates on the stack—except the root template—and updates the display.
147
+ * @param animated A Boolean value that indicates whether the system animates the display of transitioning templates.
148
+ */
149
+ popToRootTemplate(animated?: boolean): void;
150
+ /**
151
+ * Pops the top template from the navigation stack and updates the display.
152
+ * @param animated A Boolean value that indicates whether the system animates the display of transitioning templates.
153
+ */
154
+ popTemplate(animated?: boolean): void;
155
+ /**
156
+ * presents a presentable template, alert / action / voice
157
+ * @param templateToPresent The presentable template to present
158
+ * @param animated A Boolean value that indicates whether the system animates the display of transitioning templates.
159
+ */
160
+ presentTemplate(templateToPresent: PresentableTemplates, animated?: boolean): void;
161
+ /**
162
+ * Dismisses the current presented template
163
+ * * @param animated A Boolean value that indicates whether the system animates the display of transitioning templates.
164
+ */
165
+ dismissTemplate(animated?: boolean): void;
166
+ /**
167
+ * The current root template in the template navigation hierarchy.
168
+ * @todo Not implemented yet
169
+ */
170
+ get rootTemplate(): Promise<string>;
171
+ /**
172
+ * The top-most template in the navigation hierarchy stack.
173
+ * @todo Not implemented yet
174
+ */
175
+ get topTemplate(): Promise<string>;
176
+ /**
177
+ * Control now playing template state
178
+ * @param enable A Boolean value that indicates whether the system use now playing template.
179
+ */
180
+ enableNowPlaying(enable?: boolean): void;
181
+ }
182
+ export declare const CarPlay: CarPlayInterface;
183
+ //# sourceMappingURL=CarPlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarPlay.d.ts","sourceRoot":"","sources":["../src/CarPlay.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EAGb,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,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MAAM,oBAAoB,GAAG,MAAM,IAAI,CAAC;AAE9C;;GAEG;AACH,qBAAa,gBAAgB;IAC3B;;OAEG;IACI,MAAM,kBAAa;IAE1B;;OAEG;IACI,SAAS,UAAS;IAClB,MAAM,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAE7C;;OAEG;IACI,OAAO,qBAAqC;IAEnD,OAAO,CAAC,kBAAkB,CAAgC;IAC1D,OAAO,CAAC,qBAAqB,CAAmC;;IA+BhE;;OAEG;IACI,iBAAiB,aAAc,iBAAiB,UAErD;IAEK,mBAAmB,aAAc,iBAAiB,UAEvD;IAEF;;OAEG;IACI,oBAAoB,aAAc,oBAAoB,UAE3D;IAEK,sBAAsB,aAAc,oBAAoB,UAE7D;IAEF;;;;OAIG;IACI,eAAe,CAAC,YAAY,EAAE,iBAAiB,GAAG,cAAc,EAAE,QAAQ,UAAO;IAIxF;;;;OAIG;IACI,YAAY,CAAC,cAAc,EAAE,iBAAiB,EAAE,QAAQ,UAAO;IAItE;;;;OAIG;IACI,aAAa,CAAC,cAAc,EAAE,iBAAiB,EAAE,QAAQ,UAAO;IAIvE;;;OAGG;IACI,iBAAiB,CAAC,QAAQ,UAAO;IAIxC;;;OAGG;IACI,WAAW,CAAC,QAAQ,UAAO;IAIlC;;;;OAIG;IACI,eAAe,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,QAAQ,UAAO;IAI/E;;;OAGG;IACI,eAAe,CAAC,QAAQ,UAAO;IAItC;;;OAGG;IACH,IAAW,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAEzC;IAED;;;OAGG;IACH,IAAW,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAExC;IAED;;;OAGG;IACI,gBAAgB,CAAC,MAAM,UAAO;CAGtC;AAED,eAAO,MAAM,OAAO,kBAAyB,CAAC"}
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"}
@@ -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,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,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,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,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,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,90 @@
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
+ placeholderImage?: ImageSourcePropType;
23
+ /**
24
+ * Image from file system displayed on the leading edge of the list item cell.
25
+ */
26
+ image?: ImageSourcePropType;
27
+ /**
28
+ * A list of images shown in the ListRowImageItem
29
+ * @namespace iOS
30
+ */
31
+ placeholderImages?: ImageSourcePropType[];
32
+ /**
33
+ * A list of images shown in the ListRowImageItem
34
+ * @namespace iOS
35
+ */
36
+ images?: ImageSourcePropType[];
37
+ /**
38
+ * Url for image displayed on the leading edge of the list item cell.
39
+ */
40
+ imgUrl?: null;
41
+ /**
42
+ * Url for image displayed on the leading edge of the list item cell.
43
+ * @namespace iOS
44
+ */
45
+ imgUrls?: string[];
46
+ /**
47
+ * A Boolean value indicating whether the list item cell shows a disclosure indicator on the trailing edge of the list item cell.
48
+ * @namespace iOS
49
+ */
50
+ showsDisclosureIndicator?: boolean;
51
+ /**
52
+ * Is Playing flag.
53
+ * @namespace iOS
54
+ */
55
+ isPlaying?: boolean;
56
+ /**
57
+ ** Value between 0.0 and 1.0 for progress bar of the list item cell.
58
+ * @namespace iOS
59
+ */
60
+ playbackProgress?: number;
61
+ /**
62
+ * The image from file system displayed on the trailing edge of the list item cell.
63
+ * @namespace iOS
64
+ */
65
+ accessoryImage?: ImageSourcePropType;
66
+ /**
67
+ * Sets the initial enabled state for Row.
68
+ * @default true
69
+ * @namespace Android
70
+ */
71
+ enabled?: boolean;
72
+ /**
73
+ * Shows an icon at the end of the row that indicates that the row is browsable.
74
+ * Browsable rows can be used, for example, to represent the parent row in a hierarchy of lists with child lists.
75
+ * If a row is browsable, then no Action or Toggle can be added to it.
76
+ * @namespace Android
77
+ */
78
+ browsable?: boolean;
79
+ /**
80
+ * If a row has a toggle set, then no Action or numeric decoration can be set.
81
+ * @namespace Android
82
+ */
83
+ toggle?: number;
84
+ /**
85
+ * Adds an additional action to the end of the row.
86
+ * @namespace Android
87
+ */
88
+ action?: Action<'custom'>;
89
+ }
90
+ //# 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,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC1C;;;OAGG;IACH,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC;;;;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,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,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,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,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"}