react-native-maplibre-gl-js 1.0.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 (137) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +146 -0
  3. package/lib/module/communication/messages.types.js +4 -0
  4. package/lib/module/communication/messages.types.js.map +1 -0
  5. package/lib/module/communication/messages.utils.js +27 -0
  6. package/lib/module/communication/messages.utils.js.map +1 -0
  7. package/lib/module/index.js +14 -0
  8. package/lib/module/index.js.map +1 -0
  9. package/lib/module/package.json +1 -0
  10. package/lib/module/react-native/components/Map/Map.js +11 -0
  11. package/lib/module/react-native/components/Map/Map.js.map +1 -0
  12. package/lib/module/react-native/components/Map/Map.types.js +4 -0
  13. package/lib/module/react-native/components/Map/Map.types.js.map +1 -0
  14. package/lib/module/react-native/components/MapProvider/MapProvider.hooks.js +18 -0
  15. package/lib/module/react-native/components/MapProvider/MapProvider.hooks.js.map +1 -0
  16. package/lib/module/react-native/components/MapProvider/MapProvider.js +118 -0
  17. package/lib/module/react-native/components/MapProvider/MapProvider.js.map +1 -0
  18. package/lib/module/react-native/components/MapProvider/MapProvider.types.js +4 -0
  19. package/lib/module/react-native/components/MapProvider/MapProvider.types.js.map +1 -0
  20. package/lib/module/react-native/components/Marker/Marker.js +11 -0
  21. package/lib/module/react-native/components/Marker/Marker.js.map +1 -0
  22. package/lib/module/react-native/components/Marker/Marker.types.js +4 -0
  23. package/lib/module/react-native/components/Marker/Marker.types.js.map +1 -0
  24. package/lib/module/react-native/components/Popup/Popup.js +12 -0
  25. package/lib/module/react-native/components/Popup/Popup.js.map +1 -0
  26. package/lib/module/react-native/components/Popup/Popup.types.js +4 -0
  27. package/lib/module/react-native/components/Popup/Popup.types.js.map +1 -0
  28. package/lib/module/react-native/components-factory/createWebObjectAsComponent.js +23 -0
  29. package/lib/module/react-native/components-factory/createWebObjectAsComponent.js.map +1 -0
  30. package/lib/module/react-native/components-factory/createWebObjectAsComponent.types.js +4 -0
  31. package/lib/module/react-native/components-factory/createWebObjectAsComponent.types.js.map +1 -0
  32. package/lib/module/react-native/components-factory/hooks/useWebObjectMethodsProxy.js +54 -0
  33. package/lib/module/react-native/components-factory/hooks/useWebObjectMethodsProxy.js.map +1 -0
  34. package/lib/module/react-native/components-factory/hooks/useWebObjectMountOnLaunch.js +68 -0
  35. package/lib/module/react-native/components-factory/hooks/useWebObjectMountOnLaunch.js.map +1 -0
  36. package/lib/module/react-native/components-factory/hooks/useWebObjectOptionsUpdater.js +20 -0
  37. package/lib/module/react-native/components-factory/hooks/useWebObjectOptionsUpdater.js.map +1 -0
  38. package/lib/module/react-native/hooks/atoms/useMapAtoms.js +198 -0
  39. package/lib/module/react-native/hooks/atoms/useMapAtoms.js.map +1 -0
  40. package/lib/module/react-native/hooks/atoms/useMapAtoms.utils.js +18 -0
  41. package/lib/module/react-native/hooks/atoms/useMapAtoms.utils.js.map +1 -0
  42. package/lib/module/react-native/logger/rn-logger.js +42 -0
  43. package/lib/module/react-native/logger/rn-logger.js.map +1 -0
  44. package/lib/module/typedoc.js +4 -0
  45. package/lib/module/typedoc.js.map +1 -0
  46. package/lib/module/web/bridge/ReactNativeBridge.js +38 -0
  47. package/lib/module/web/bridge/ReactNativeBridge.js.map +1 -0
  48. package/lib/module/web/generated/index.html +18 -0
  49. package/lib/module/web/generated/index.js +21 -0
  50. package/lib/module/web/generated/index.js.map +1 -0
  51. package/lib/module/web/generated/webview_static_html.js +23529 -0
  52. package/lib/module/web/generated/webview_static_html.js.map +1 -0
  53. package/lib/module/web/logger/web-logger.js +35 -0
  54. package/lib/module/web/logger/web-logger.js.map +1 -0
  55. package/lib/module/web/maplibre-gl-js/MapController.js +264 -0
  56. package/lib/module/web/maplibre-gl-js/MapController.js.map +1 -0
  57. package/lib/typescript/package.json +1 -0
  58. package/lib/typescript/src/communication/messages.types.d.ts +105 -0
  59. package/lib/typescript/src/communication/messages.types.d.ts.map +1 -0
  60. package/lib/typescript/src/communication/messages.utils.d.ts +6 -0
  61. package/lib/typescript/src/communication/messages.utils.d.ts.map +1 -0
  62. package/lib/typescript/src/index.d.ts +19 -0
  63. package/lib/typescript/src/index.d.ts.map +1 -0
  64. package/lib/typescript/src/react-native/components/Map/Map.d.ts +9 -0
  65. package/lib/typescript/src/react-native/components/Map/Map.d.ts.map +1 -0
  66. package/lib/typescript/src/react-native/components/Map/Map.types.d.ts +70 -0
  67. package/lib/typescript/src/react-native/components/Map/Map.types.d.ts.map +1 -0
  68. package/lib/typescript/src/react-native/components/MapProvider/MapProvider.d.ts +9 -0
  69. package/lib/typescript/src/react-native/components/MapProvider/MapProvider.d.ts.map +1 -0
  70. package/lib/typescript/src/react-native/components/MapProvider/MapProvider.hooks.d.ts +12 -0
  71. package/lib/typescript/src/react-native/components/MapProvider/MapProvider.hooks.d.ts.map +1 -0
  72. package/lib/typescript/src/react-native/components/MapProvider/MapProvider.types.d.ts +12 -0
  73. package/lib/typescript/src/react-native/components/MapProvider/MapProvider.types.d.ts.map +1 -0
  74. package/lib/typescript/src/react-native/components/Marker/Marker.d.ts +9 -0
  75. package/lib/typescript/src/react-native/components/Marker/Marker.d.ts.map +1 -0
  76. package/lib/typescript/src/react-native/components/Marker/Marker.types.d.ts +31 -0
  77. package/lib/typescript/src/react-native/components/Marker/Marker.types.d.ts.map +1 -0
  78. package/lib/typescript/src/react-native/components/Popup/Popup.d.ts +9 -0
  79. package/lib/typescript/src/react-native/components/Popup/Popup.d.ts.map +1 -0
  80. package/lib/typescript/src/react-native/components/Popup/Popup.types.d.ts +25 -0
  81. package/lib/typescript/src/react-native/components/Popup/Popup.types.d.ts.map +1 -0
  82. package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.d.ts +5 -0
  83. package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.d.ts.map +1 -0
  84. package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.types.d.ts +129 -0
  85. package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.types.d.ts.map +1 -0
  86. package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMethodsProxy.d.ts +12 -0
  87. package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMethodsProxy.d.ts.map +1 -0
  88. package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountOnLaunch.d.ts +12 -0
  89. package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountOnLaunch.d.ts.map +1 -0
  90. package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectOptionsUpdater.d.ts +5 -0
  91. package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectOptionsUpdater.d.ts.map +1 -0
  92. package/lib/typescript/src/react-native/hooks/atoms/useMapAtoms.d.ts +40 -0
  93. package/lib/typescript/src/react-native/hooks/atoms/useMapAtoms.d.ts.map +1 -0
  94. package/lib/typescript/src/react-native/hooks/atoms/useMapAtoms.utils.d.ts +9 -0
  95. package/lib/typescript/src/react-native/hooks/atoms/useMapAtoms.utils.d.ts.map +1 -0
  96. package/lib/typescript/src/react-native/logger/rn-logger.d.ts +12 -0
  97. package/lib/typescript/src/react-native/logger/rn-logger.d.ts.map +1 -0
  98. package/lib/typescript/src/typedoc.d.ts +8 -0
  99. package/lib/typescript/src/typedoc.d.ts.map +1 -0
  100. package/lib/typescript/src/web/bridge/ReactNativeBridge.d.ts +14 -0
  101. package/lib/typescript/src/web/bridge/ReactNativeBridge.d.ts.map +1 -0
  102. package/lib/typescript/src/web/generated/index.d.ts +2 -0
  103. package/lib/typescript/src/web/generated/index.d.ts.map +1 -0
  104. package/lib/typescript/src/web/generated/webview_static_html.d.ts +2 -0
  105. package/lib/typescript/src/web/generated/webview_static_html.d.ts.map +1 -0
  106. package/lib/typescript/src/web/logger/web-logger.d.ts +11 -0
  107. package/lib/typescript/src/web/logger/web-logger.d.ts.map +1 -0
  108. package/lib/typescript/src/web/maplibre-gl-js/MapController.d.ts +15 -0
  109. package/lib/typescript/src/web/maplibre-gl-js/MapController.d.ts.map +1 -0
  110. package/package.json +196 -0
  111. package/src/communication/messages.types.ts +121 -0
  112. package/src/communication/messages.utils.ts +58 -0
  113. package/src/index.ts +31 -0
  114. package/src/react-native/components/Map/Map.tsx +14 -0
  115. package/src/react-native/components/Map/Map.types.ts +149 -0
  116. package/src/react-native/components/MapProvider/MapProvider.hooks.ts +13 -0
  117. package/src/react-native/components/MapProvider/MapProvider.tsx +139 -0
  118. package/src/react-native/components/MapProvider/MapProvider.types.ts +12 -0
  119. package/src/react-native/components/Marker/Marker.tsx +14 -0
  120. package/src/react-native/components/Marker/Marker.types.ts +56 -0
  121. package/src/react-native/components/Popup/Popup.tsx +14 -0
  122. package/src/react-native/components/Popup/Popup.types.ts +43 -0
  123. package/src/react-native/components-factory/createWebObjectAsComponent.ts +33 -0
  124. package/src/react-native/components-factory/createWebObjectAsComponent.types.ts +176 -0
  125. package/src/react-native/components-factory/hooks/useWebObjectMethodsProxy.ts +61 -0
  126. package/src/react-native/components-factory/hooks/useWebObjectMountOnLaunch.ts +79 -0
  127. package/src/react-native/components-factory/hooks/useWebObjectOptionsUpdater.ts +29 -0
  128. package/src/react-native/hooks/atoms/useMapAtoms.ts +261 -0
  129. package/src/react-native/hooks/atoms/useMapAtoms.utils.ts +15 -0
  130. package/src/react-native/logger/rn-logger.ts +51 -0
  131. package/src/typedoc.ts +35 -0
  132. package/src/web/bridge/ReactNativeBridge.ts +44 -0
  133. package/src/web/generated/index.html +18 -0
  134. package/src/web/generated/index.ts +17 -0
  135. package/src/web/generated/webview_static_html.ts +23528 -0
  136. package/src/web/logger/web-logger.ts +36 -0
  137. package/src/web/maplibre-gl-js/MapController.ts +322 -0
@@ -0,0 +1,105 @@
1
+ import type { Map as MapLibreMap, Marker as MapLibreMarker, Popup as MapLibrePopup } from 'maplibre-gl';
2
+ import type { WebObjectOptionsInferred, WebObjectListeners } from 'react-native-maplibre-gl-js/react-native/components-factory/createWebObjectAsComponent.types';
3
+ /**
4
+ * The web objects that are supported by this library.
5
+ * A string version to be used as an identifier on the RN side (cannot use
6
+ * MapLibre classes directly).
7
+ * Must correspond to `WebObjectClass`.
8
+ */
9
+ export type WebObjectType = 'map' | 'marker' | 'popup';
10
+ /**
11
+ * The web objects that are supported by this library.
12
+ * A class version to be used on the web side.
13
+ * Must correspond to `WebObjectType`.
14
+ */
15
+ export type WebObjectClass = MapLibreMap | MapLibreMarker | MapLibrePopup;
16
+ /**
17
+ * UID of a web object in the web world.
18
+ */
19
+ export type WebObjectId = string;
20
+ /**
21
+ * UID of a request for a web object method to be executed.
22
+ */
23
+ export type WebObjectMethodCallRequestId = string;
24
+ export type MessageFromRNToWeb =
25
+ /**
26
+ * TODO Messages about a MapLibre object.
27
+ */
28
+ {
29
+ type: 'webObjectMount';
30
+ payload: {
31
+ objectId: WebObjectId;
32
+ objectType: WebObjectType;
33
+ options: WebObjectOptionsInferred<any>;
34
+ listeners: WebObjectListeners;
35
+ };
36
+ } | {
37
+ type: 'webObjectUnmount';
38
+ payload: {
39
+ objectId: WebObjectId;
40
+ };
41
+ } | {
42
+ type: 'webObjectMethodCall';
43
+ payload: {
44
+ requestId: WebObjectMethodCallRequestId;
45
+ objectId: WebObjectId;
46
+ method: string;
47
+ args: any[];
48
+ };
49
+ } | {
50
+ type: 'webObjectOptionsUpdate';
51
+ payload: {
52
+ objectId: WebObjectId;
53
+ options: WebObjectOptionsInferred<any>;
54
+ };
55
+ };
56
+ export type MessageFromWebToRN =
57
+ /**
58
+ * Anything that should be logged in the React Native world.
59
+ */
60
+ {
61
+ type: 'console';
62
+ payload: {
63
+ level: 'debug' | 'info' | 'error';
64
+ args: [string, ...any[]];
65
+ };
66
+ }
67
+ /**
68
+ * Notify the React Native world that the web one is ready.
69
+ */
70
+ | {
71
+ type: 'ready';
72
+ }
73
+ /**
74
+ * Event issued by a web object, eligible to be listened to from the RN world.
75
+ */
76
+ | {
77
+ type: 'webObjectListenerEvent';
78
+ payload: {
79
+ objectId: WebObjectId;
80
+ eventName: keyof WebObjectListeners;
81
+ event?: any;
82
+ };
83
+ }
84
+ /**
85
+ * Response to a call to a method of a web object.
86
+ */
87
+ | {
88
+ type: 'webObjectMethodResponse';
89
+ payload: {
90
+ requestId: WebObjectMethodCallRequestId;
91
+ result: any;
92
+ };
93
+ };
94
+ /**
95
+ * To replace HTMLElement instances that cannot be created in React Native.
96
+ */
97
+ export type HTMLElementDescriptor = {
98
+ tagName?: string;
99
+ className?: string;
100
+ attributes?: Record<string, string>;
101
+ style?: Record<string, string>;
102
+ dataset?: Record<string, string>;
103
+ innerHTML?: string;
104
+ };
105
+ //# sourceMappingURL=messages.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.types.d.ts","sourceRoot":"","sources":["../../../../src/communication/messages.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,GAAG,IAAI,WAAW,EAClB,MAAM,IAAI,cAAc,EACxB,KAAK,IAAI,aAAa,EACvB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EACV,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,8FAA8F,CAAA;AAErG;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEtD;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,cAAc,GAAG,aAAa,CAAA;AAEzE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAA;AAEhC;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,MAAM,CAAA;AAEjD,MAAM,MAAM,kBAAkB;AAC5B;;GAEG;AACD;IACE,IAAI,EAAE,gBAAgB,CAAA;IACtB,OAAO,EAAE;QACP,QAAQ,EAAE,WAAW,CAAA;QACrB,UAAU,EAAE,aAAa,CAAA;QACzB,OAAO,EAAE,wBAAwB,CAAC,GAAG,CAAC,CAAA;QACtC,SAAS,EAAE,kBAAkB,CAAA;KAC9B,CAAA;CACF,GACD;IACE,IAAI,EAAE,kBAAkB,CAAA;IACxB,OAAO,EAAE;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AAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { WebObjectListenerOnHTMLElement, WebObjectListenerOnMapLayer, WebObjectListenerOnObject, WebObjectListenerOnRN } from 'react-native-maplibre-gl-js/react-native/components-factory/createWebObjectAsComponent.types';
2
+ export declare const isWebObjectListenerOnRN: (listener?: WebObjectListenerOnRN<any> | WebObjectListenerOnObject<any> | WebObjectListenerOnHTMLElement<any> | WebObjectListenerOnMapLayer<any>) => boolean;
3
+ export declare const isWebObjectListenerOnObject: (listener?: WebObjectListenerOnRN<any> | WebObjectListenerOnObject<any> | WebObjectListenerOnHTMLElement<any> | WebObjectListenerOnMapLayer<any>) => boolean;
4
+ export declare const isWebObjectListenerOnMapLayer: (listener?: WebObjectListenerOnRN<any> | WebObjectListenerOnObject<any> | WebObjectListenerOnHTMLElement<any> | WebObjectListenerOnMapLayer<any>) => boolean;
5
+ export declare const isWebObjectListenerOnHTMLElement: (listener?: WebObjectListenerOnRN<any> | WebObjectListenerOnObject<any> | WebObjectListenerOnHTMLElement<any> | WebObjectListenerOnMapLayer<any>) => boolean;
6
+ //# sourceMappingURL=messages.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.utils.d.ts","sourceRoot":"","sources":["../../../../src/communication/messages.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,8FAA8F,CAAA;AAErG,eAAO,MAAM,uBAAuB,GAClC,WACI,qBAAqB,CAAC,GAAG,CAAC,GAC1B,yBAAyB,CAAC,GAAG,CAAC,GAC9B,8BAA8B,CAAC,GAAG,CAAC,GACnC,2BAA2B,CAAC,GAAG,CAAC,KACnC,OAKF,CAAA;AAED,eAAO,MAAM,2BAA2B,GACtC,WACI,qBAAqB,CAAC,GAAG,CAAC,GAC1B,yBAAyB,CAAC,GAAG,CAAC,GAC9B,8BAA8B,CAAC,GAAG,CAAC,GACnC,2BAA2B,CAAC,GAAG,CAAC,KACnC,OAKF,CAAA;AAED,eAAO,MAAM,6BAA6B,GACxC,WACI,qBAAqB,CAAC,GAAG,CAAC,GAC1B,yBAAyB,CAAC,GAAG,CAAC,GAC9B,8BAA8B,CAAC,GAAG,CAAC,GACnC,2BAA2B,CAAC,GAAG,CAAC,KACnC,OAKF,CAAA;AAED,eAAO,MAAM,gCAAgC,GAC3C,WACI,qBAAqB,CAAC,GAAG,CAAC,GAC1B,yBAAyB,CAAC,GAAG,CAAC,GAC9B,8BAA8B,CAAC,GAAG,CAAC,GACnC,2BAA2B,CAAC,GAAG,CAAC,KACnC,OAKF,CAAA"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Public API of react-native-maplibre-gl-js.
3
+ * @module Public API
4
+ * @packageDocumentation
5
+ */
6
+ import type { MapProviderProps } from 'react-native-maplibre-gl-js/react-native/components/MapProvider/MapProvider.types';
7
+ import type { MapRef, MapProps } from 'react-native-maplibre-gl-js/react-native/components/Map/Map.types';
8
+ import type { MarkerRef, MarkerProps } from 'react-native-maplibre-gl-js/react-native/components/Marker/Marker.types';
9
+ import type { PopupRef, PopupProps } from 'react-native-maplibre-gl-js/react-native/components/Popup/Popup.types';
10
+ export type { MapProviderProps };
11
+ export type { MapRef, MapProps };
12
+ export type { MarkerRef, MarkerProps };
13
+ export type { PopupRef, PopupProps };
14
+ import MapProvider from 'react-native-maplibre-gl-js/react-native/components/MapProvider/MapProvider';
15
+ import Map from 'react-native-maplibre-gl-js/react-native/components/Map/Map';
16
+ import Marker from 'react-native-maplibre-gl-js/react-native/components/Marker/Marker';
17
+ import Popup from 'react-native-maplibre-gl-js/react-native/components/Popup/Popup';
18
+ export { MapProvider, Map, Marker, Popup };
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mFAAmF,CAAA;AACzH,OAAO,KAAK,EACV,MAAM,EACN,QAAQ,EACT,MAAM,mEAAmE,CAAA;AAC1E,OAAO,KAAK,EACV,SAAS,EACT,WAAW,EACZ,MAAM,yEAAyE,CAAA;AAChF,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EACX,MAAM,uEAAuE,CAAA;AAE9E,YAAY,EAAE,gBAAgB,EAAE,CAAA;AAChC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AAChC,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,CAAA;AACtC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAA;AAEpC,OAAO,WAAW,MAAM,6EAA6E,CAAA;AACrG,OAAO,GAAG,MAAM,6DAA6D,CAAA;AAC7E,OAAO,MAAM,MAAM,mEAAmE,CAAA;AACtF,OAAO,KAAK,MAAM,iEAAiE,CAAA;AAEnF,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { MapRef, MapProps } from 'react-native-maplibre-gl-js/react-native/components/Map/Map.types';
2
+ /**
3
+ * MapLibre Map view.
4
+ * @see {@link https://maplibre.org/maplibre-gl-js/docs/API/classes/Map/ MapLibre GL JS docs}
5
+ * @group Components
6
+ */
7
+ declare const Map: import("../../components-factory/createWebObjectAsComponent.types").WebObjectComponent<MapRef, MapProps>;
8
+ export default Map;
9
+ //# sourceMappingURL=Map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/Map/Map.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,QAAQ,EACT,MAAM,mEAAmE,CAAA;AAE1E;;;;GAIG;AACH,QAAA,MAAM,GAAG,0GAAsD,CAAA;AAE/D,eAAe,GAAG,CAAA"}
@@ -0,0 +1,70 @@
1
+ import { type Map as MapLibreMap, type MapContextEvent, type MapLayerMouseEvent, type MapLayerTouchEvent, type MapLibreEvent, type MapLibreZoomEvent, type MapOptions as MapLibreMapOptions, MapTouchEvent, MapWheelEvent, ErrorEvent, type MapDataEvent, type MapStyleDataEvent, type MapSourceDataEvent, type MapStyleImageMissingEvent } from 'maplibre-gl';
2
+ import type { WebObjectMethodsInferred, WebObjectOptionsInferred, WebObjectListenerOnMapLayer, WebObjectListenerOnObject, WebObjectListenerOnRN, WebObjectProps, WebObjectRef } from 'react-native-maplibre-gl-js/react-native/components-factory/createWebObjectAsComponent.types';
3
+ /**
4
+ * A Map component ref.
5
+ * @group Types
6
+ */
7
+ export type MapRef = WebObjectRef<MapMethods>;
8
+ /**
9
+ * A Map component props.
10
+ * @group Types
11
+ */
12
+ export type MapProps = WebObjectProps<MapOptions, MapListeners>;
13
+ type MapMethods = WebObjectMethodsInferred<MapLibreMap>;
14
+ type MapOptions = WebObjectOptionsInferred<MapLibreMapOptions, {}, 'container'>;
15
+ type MapListeners = {
16
+ mount: WebObjectListenerOnRN<void>;
17
+ unmount: WebObjectListenerOnRN<void>;
18
+ mousedown: WebObjectListenerOnObject<MapLayerMouseEvent> | WebObjectListenerOnMapLayer<MapLayerMouseEvent>;
19
+ mouseup: WebObjectListenerOnObject<MapLayerMouseEvent> | WebObjectListenerOnMapLayer<MapLayerMouseEvent>;
20
+ mouseover: WebObjectListenerOnObject<MapLayerMouseEvent> | WebObjectListenerOnMapLayer<MapLayerMouseEvent>;
21
+ mouseout: WebObjectListenerOnObject<MapLayerMouseEvent> | WebObjectListenerOnMapLayer<MapLayerMouseEvent>;
22
+ mousemove: WebObjectListenerOnObject<MapLayerMouseEvent> | WebObjectListenerOnMapLayer<MapLayerMouseEvent>;
23
+ mouseenter: WebObjectListenerOnMapLayer<MapLayerMouseEvent>;
24
+ mouseleave: WebObjectListenerOnMapLayer<MapLayerMouseEvent>;
25
+ click: WebObjectListenerOnObject<MapLayerMouseEvent> | WebObjectListenerOnMapLayer<MapLayerMouseEvent>;
26
+ dblclick: WebObjectListenerOnObject<MapLayerMouseEvent> | WebObjectListenerOnMapLayer<MapLayerMouseEvent>;
27
+ contextmenu: WebObjectListenerOnObject<MapLayerMouseEvent> | WebObjectListenerOnMapLayer<MapLayerMouseEvent>;
28
+ touchstart: WebObjectListenerOnObject<MapLayerTouchEvent> | WebObjectListenerOnMapLayer<MapLayerTouchEvent>;
29
+ touchend: WebObjectListenerOnObject<MapLayerTouchEvent> | WebObjectListenerOnMapLayer<MapLayerTouchEvent>;
30
+ touchcancel: WebObjectListenerOnObject<MapLayerTouchEvent> | WebObjectListenerOnMapLayer<MapLayerTouchEvent>;
31
+ wheel: WebObjectListenerOnObject<MapWheelEvent>;
32
+ resize: WebObjectListenerOnObject<MapLibreEvent>;
33
+ remove: WebObjectListenerOnObject<MapLibreEvent>;
34
+ touchmove: WebObjectListenerOnObject<MapTouchEvent>;
35
+ movestart: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | WheelEvent | undefined>>;
36
+ move: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | WheelEvent | undefined>>;
37
+ moveend: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | WheelEvent | undefined>>;
38
+ dragstart: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | undefined>>;
39
+ drag: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | undefined>>;
40
+ dragend: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | undefined>>;
41
+ zoomstart: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | WheelEvent | undefined>>;
42
+ zoom: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | WheelEvent | undefined>>;
43
+ zoomend: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | WheelEvent | undefined>>;
44
+ rotatestart: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | undefined>>;
45
+ rotate: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | undefined>>;
46
+ rotateend: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | undefined>>;
47
+ pitchstart: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | undefined>>;
48
+ pitch: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | undefined>>;
49
+ pitchend: WebObjectListenerOnObject<MapLibreEvent<MouseEvent | TouchEvent | undefined>>;
50
+ boxzoomstart: WebObjectListenerOnObject<MapLibreZoomEvent>;
51
+ boxzoomend: WebObjectListenerOnObject<MapLibreZoomEvent>;
52
+ boxzoomcancel: WebObjectListenerOnObject<MapLibreZoomEvent>;
53
+ webglcontextlost: WebObjectListenerOnObject<MapContextEvent>;
54
+ webglcontextrestored: WebObjectListenerOnObject<MapContextEvent>;
55
+ load: WebObjectListenerOnObject<MapLibreEvent>;
56
+ render: WebObjectListenerOnObject<MapLibreEvent>;
57
+ idle: WebObjectListenerOnObject<MapLibreEvent>;
58
+ error: WebObjectListenerOnObject<ErrorEvent>;
59
+ data: WebObjectListenerOnObject<MapDataEvent>;
60
+ styledata: WebObjectListenerOnObject<MapStyleDataEvent>;
61
+ sourcedata: WebObjectListenerOnObject<MapSourceDataEvent>;
62
+ dataloading: WebObjectListenerOnObject<MapDataEvent>;
63
+ styledataloading: WebObjectListenerOnObject<MapStyleDataEvent>;
64
+ sourcedataloading: WebObjectListenerOnObject<MapSourceDataEvent>;
65
+ styleimagemissing: WebObjectListenerOnObject<MapStyleImageMissingEvent>;
66
+ dataabort: WebObjectListenerOnObject<MapDataEvent>;
67
+ sourcedataabort: WebObjectListenerOnObject<MapSourceDataEvent>;
68
+ };
69
+ export {};
70
+ //# sourceMappingURL=Map.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Map.types.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/Map/Map.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAAG,IAAI,WAAW,EACvB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,UAAU,IAAI,kBAAkB,EACrC,aAAa,EACb,aAAa,EACb,UAAU,EACV,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC/B,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACb,MAAM,8FAA8F,CAAA;AAErG;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,YAAY,CAAC,UAAU,CAAC,CAAA;AAE7C;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,UAAU,EAAE,YAAY,CAAC,CAAA;AAE/D,KAAK,UAAU,GAAG,wBAAwB,CAAC,WAAW,CAAC,CAAA;AACvD,KAAK,UAAU,GAAG,wBAAwB,CAAC,kBAAkB,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AAC/E,KAAK,YAAY,GAAG;IAElB,KAAK,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAA;IAClC,OAAO,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAA;IAGpC,SAAS,EACL,yBAAyB,CAAC,kBAAkB,CAAC,GAC7C,2BAA2B,CAAC,kBAAkB,CAAC,CAAA;IACnD,OAAO,EACH,yBAAyB,CAAC,kBAAkB,CAAC,GAC7C,2BAA2B,CAAC,kBAAkB,CAAC,CAAA;IACnD,SAAS,EACL,yBAAyB,CAAC,kBAAkB,CAAC,GAC7C,2BAA2B,CAAC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,GAAG,SAAS,CAAC,CACnD,CAAA;IACD,YAAY,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,CAAA;IAC1D,UAAU,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,CAAA;IACxD,aAAa,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,CAAA;IAC3D,gBAAgB,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAA;IAC5D,oBAAoB,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAA;IAChE,IAAI,EAAE,yBAAyB,CAAC,aAAa,CAAC,CAAA;IAC9C,MAAM,EAAE,yBAAyB,CAAC,aAAa,CAAC,CAAA;IAChD,IAAI,EAAE,yBAAyB,CAAC,aAAa,CAAC,CAAA;IAC9C,KAAK,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAA;IAC5C,IAAI,EAAE,yBAAyB,CAAC,YAAY,CAAC,CAAA;IAC7C,SAAS,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,CAAA;IACvD,UAAU,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,CAAA;IACzD,WAAW,EAAE,yBAAyB,CAAC,YAAY,CAAC,CAAA;IACpD,gBAAgB,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,CAAA;IAC9D,iBAAiB,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,CAAA;IAChE,iBAAiB,EAAE,yBAAyB,CAAC,yBAAyB,CAAC,CAAA;IACvE,SAAS,EAAE,yBAAyB,CAAC,YAAY,CAAC,CAAA;IAClD,eAAe,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,CAAA;CAC/D,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { MapProviderProps } from 'react-native-maplibre-gl-js/react-native/components/MapProvider/MapProvider.types';
2
+ /**
3
+ * Provide the main
4
+ * @param props -
5
+ * @group Components
6
+ */
7
+ declare const MapProvider: ({ children }: MapProviderProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default MapProvider;
9
+ //# sourceMappingURL=MapProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/MapProvider/MapProvider.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mFAAmF,CAAA;AAEzH;;;;GAIG;AACH,QAAA,MAAM,WAAW,GAAI,cAAc,gBAAgB,4CA6GlD,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,12 @@
1
+ export declare const useStyles: () => Readonly<{
2
+ container: {
3
+ width: string;
4
+ height: string;
5
+ overflow: "hidden";
6
+ };
7
+ webview: {
8
+ flex: number;
9
+ backgroundColor: string;
10
+ };
11
+ }>;
12
+ //# sourceMappingURL=MapProvider.hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapProvider.hooks.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/MapProvider/MapProvider.hooks.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;;;;EASrB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * TODO
4
+ * @group Types
5
+ */
6
+ export type MapProviderProps = {
7
+ /**
8
+ * The map elements (e.g., Map) as direct children.
9
+ */
10
+ children?: ReactNode;
11
+ };
12
+ //# sourceMappingURL=MapProvider.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapProvider.types.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/MapProvider/MapProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { MarkerProps, MarkerRef } from 'react-native-maplibre-gl-js/react-native/components/Marker/Marker.types';
2
+ /**
3
+ * MapLibre Marker view.
4
+ * @see {@link https://maplibre.org/maplibre-gl-js/docs/API/classes/Marker/ MapLibre GL JS docs}
5
+ * @group Components
6
+ */
7
+ declare const Marker: import("../../components-factory/createWebObjectAsComponent.types").WebObjectComponent<MarkerRef, MarkerProps>;
8
+ export default Marker;
9
+ //# sourceMappingURL=Marker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Marker.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/Marker/Marker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACV,MAAM,yEAAyE,CAAA;AAEhF;;;;GAIG;AACH,QAAA,MAAM,MAAM,gHAA+D,CAAA;AAE3E,eAAe,MAAM,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { type Event, type Marker as MapLibreMarker, type MarkerOptions as MapLibreMarkerOptions } from 'maplibre-gl';
2
+ import type { HTMLElementDescriptor } from 'react-native-maplibre-gl-js/communication/messages.types';
3
+ import type { WebObjectMethodsInferred, WebObjectOptionsInferred, WebObjectListenerOnHTMLElement, WebObjectListenerOnObject, WebObjectListenerOnRN, WebObjectProps, WebObjectRef } from 'react-native-maplibre-gl-js/react-native/components-factory/createWebObjectAsComponent.types';
4
+ /**
5
+ * TODO
6
+ * @group Types
7
+ */
8
+ export type MarkerRef = WebObjectRef<MarkerMethods>;
9
+ /**
10
+ * TODO
11
+ * @group Types
12
+ */
13
+ export type MarkerProps = WebObjectProps<MarkerOptions, MarkerListeners>;
14
+ type MarkerMethods = WebObjectMethodsInferred<MapLibreMarker, {
15
+ addTo: () => Promise<void>;
16
+ setEventedParent: (parentId: string) => Promise<void>;
17
+ setPopup: (popupId: string) => Promise<void>;
18
+ }>;
19
+ type MarkerOptions = WebObjectOptionsInferred<MapLibreMarkerOptions, {
20
+ element?: HTMLElementDescriptor;
21
+ }>;
22
+ type MarkerListeners = {
23
+ mount: WebObjectListenerOnRN<void>;
24
+ unmount: WebObjectListenerOnRN<void>;
25
+ dragstart: WebObjectListenerOnObject<Event>;
26
+ drag: WebObjectListenerOnObject<Event>;
27
+ dragend: WebObjectListenerOnObject<Event>;
28
+ click: WebObjectListenerOnHTMLElement<MouseEvent>;
29
+ };
30
+ export {};
31
+ //# sourceMappingURL=Marker.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Marker.types.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/Marker/Marker.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,KAAK,EACV,KAAK,MAAM,IAAI,cAAc,EAC7B,KAAK,aAAa,IAAI,qBAAqB,EAC5C,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAA;AACrG,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,yBAAyB,EACzB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACb,MAAM,8FAA8F,CAAA;AAErG;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;AAEnD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,aAAa,EAAE,eAAe,CAAC,CAAA;AAExE,KAAK,aAAa,GAAG,wBAAwB,CAC3C,cAAc,EACd;IACE,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1B,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACrD,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC7C,CACF,CAAA;AAED,KAAK,aAAa,GAAG,wBAAwB,CAC3C,qBAAqB,EACrB;IACE,OAAO,CAAC,EAAE,qBAAqB,CAAA;CAChC,CACF,CAAA;AAED,KAAK,eAAe,GAAG;IAErB,KAAK,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAA;IAClC,OAAO,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAA;IAGpC,SAAS,EAAE,yBAAyB,CAAC,KAAK,CAAC,CAAA;IAC3C,IAAI,EAAE,yBAAyB,CAAC,KAAK,CAAC,CAAA;IACtC,OAAO,EAAE,yBAAyB,CAAC,KAAK,CAAC,CAAA;IAEzC,KAAK,EAAE,8BAA8B,CAAC,UAAU,CAAC,CAAA;CAClD,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { PopupProps, PopupRef } from 'react-native-maplibre-gl-js/react-native/components/Popup/Popup.types';
2
+ /**
3
+ * MapLibre Popup view.
4
+ * @see {@link https://maplibre.org/maplibre-gl-js/docs/API/classes/Popup/ MapLibre GL JS docs}
5
+ * @group Components
6
+ */
7
+ declare const Popup: import("../../components-factory/createWebObjectAsComponent.types").WebObjectComponent<PopupRef, PopupProps>;
8
+ export default Popup;
9
+ //# sourceMappingURL=Popup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACT,MAAM,uEAAuE,CAAA;AAG9E;;;;GAIG;AACH,QAAA,MAAM,KAAK,8GAA4D,CAAA;AAEvE,eAAe,KAAK,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { type Event, type Popup as MapLibrePopup, type PopupOptions as MapLibrePopupOptions } from 'maplibre-gl';
2
+ import type { WebObjectMethodsInferred, WebObjectOptionsInferred, WebObjectListenerOnObject, WebObjectListenerOnRN, WebObjectProps, WebObjectRef } from 'react-native-maplibre-gl-js/react-native/components-factory/createWebObjectAsComponent.types';
3
+ /**
4
+ * TODO
5
+ * @group Types
6
+ */
7
+ export type PopupRef = WebObjectRef<PopupMethods>;
8
+ /**
9
+ * TODO
10
+ * @group Types
11
+ */
12
+ export type PopupProps = WebObjectProps<PopUpOptions, PopupListeners>;
13
+ type PopupMethods = WebObjectMethodsInferred<MapLibrePopup, {
14
+ addTo: () => Promise<void>;
15
+ setEventedParent: (parentId: string) => Promise<void>;
16
+ }>;
17
+ type PopUpOptions = WebObjectOptionsInferred<MapLibrePopupOptions>;
18
+ type PopupListeners = {
19
+ mount: WebObjectListenerOnRN<void>;
20
+ unmount: WebObjectListenerOnRN<void>;
21
+ open: WebObjectListenerOnObject<Event>;
22
+ close: WebObjectListenerOnObject<Event>;
23
+ };
24
+ export {};
25
+ //# sourceMappingURL=Popup.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popup.types.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components/Popup/Popup.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,KAAK,EACV,KAAK,KAAK,IAAI,aAAa,EAC3B,KAAK,YAAY,IAAI,oBAAoB,EAC1C,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACb,MAAM,8FAA8F,CAAA;AAErG;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,YAAY,CAAC,YAAY,CAAC,CAAA;AAEjD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,YAAY,EAAE,cAAc,CAAC,CAAA;AAErE,KAAK,YAAY,GAAG,wBAAwB,CAC1C,aAAa,EACb;IACE,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1B,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACtD,CACF,CAAA;AACD,KAAK,YAAY,GAAG,wBAAwB,CAAC,oBAAoB,CAAC,CAAA;AAClE,KAAK,cAAc,GAAG;IAEpB,KAAK,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAA;IAClC,OAAO,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAA;IAGpC,IAAI,EAAE,yBAAyB,CAAC,KAAK,CAAC,CAAA;IACtC,KAAK,EAAE,yBAAyB,CAAC,KAAK,CAAC,CAAA;CACxC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { WebObjectType } from 'react-native-maplibre-gl-js/communication/messages.types';
2
+ import type { WebObjectProps, WebObjectComponent, WebObjectRef } from 'react-native-maplibre-gl-js/react-native/components-factory/createWebObjectAsComponent.types';
3
+ declare const createWebObjectAsComponent: <Ref extends WebObjectRef<any>, Props extends WebObjectProps<any, any>>(objectType: WebObjectType) => WebObjectComponent<Ref, Props>;
4
+ export default createWebObjectAsComponent;
5
+ //# sourceMappingURL=createWebObjectAsComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createWebObjectAsComponent.d.ts","sourceRoot":"","sources":["../../../../../src/react-native/components-factory/createWebObjectAsComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0DAA0D,CAAA;AAC7F,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,YAAY,EACb,MAAM,8FAA8F,CAAA;AAIrG,QAAA,MAAM,0BAA0B,GAC9B,GAAG,SAAS,YAAY,CAAC,GAAG,CAAC,EAC7B,KAAK,SAAS,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,EAEtC,YAAY,aAAa,KACxB,kBAAkB,CAAC,GAAG,EAAE,KAAK,CAe/B,CAAA;AAED,eAAe,0BAA0B,CAAA"}
@@ -0,0 +1,129 @@
1
+ import { type ForwardRefExoticComponent, type PropsWithoutRef, type RefAttributes } from 'react';
2
+ /**
3
+ * React Native component that corresponds and perform actions with a web object
4
+ * in the web world.
5
+ * @group Types
6
+ */
7
+ export type WebObjectComponent<Ref extends WebObjectRef<any>, Props extends WebObjectProps<any, any>> = ForwardRefExoticComponent<PropsWithoutRef<Props> & RefAttributes<Ref>>;
8
+ /**
9
+ * React Native ref of a component (corresponds to the web object methods in the
10
+ * web world).
11
+ * @group Types
12
+ */
13
+ export type WebObjectRef<Methods extends WebObjectMethodsInferred<object>> = Omit<Methods, 0>;
14
+ /**
15
+ * React Native props of a component (used to instantiate the web object in the
16
+ * web world).
17
+ * @group Types
18
+ */
19
+ export type WebObjectProps<Options extends WebObjectOptionsInferred<any>, Listeners extends WebObjectListeners> = {
20
+ /**
21
+ * The MapLibreGL JS options used to mount the web object.
22
+ */
23
+ options?: Partial<Options>;
24
+ /**
25
+ * The listeners to be set on the web object events.
26
+ */
27
+ listeners?: Partial<Listeners>;
28
+ };
29
+ /**
30
+ * Listeners that can be set by a component on the corresponding web object
31
+ * events.
32
+ * Event can be emitted by the web object itself, its HTML element, or be
33
+ * specific to a map layer (if the object is the map).
34
+ * By default, the mount/unmount events are available (they are custom, added
35
+ * on top of the MapLibre GL JS events).
36
+ *
37
+ * Note: sadly, listeners cannot be inferred as Methods and Options, therefore,
38
+ * when adding a new listener, one must ensure that the listeners correspond to
39
+ * the real web object events.
40
+ * @group Types
41
+ */
42
+ export type WebObjectListeners = WebObjectListenersDefault & WebObjectListenersWeb;
43
+ /**
44
+ * Custom events introduced by this library, executed once the web object is
45
+ * (un)mounted to the map.
46
+ * @group Types
47
+ */
48
+ export type WebObjectListenersDefault = {
49
+ mount?: WebObjectListenerOnRN<void>;
50
+ unmount?: WebObjectListenerOnRN<void>;
51
+ };
52
+ /**
53
+ * MapLibre GL JS events as defined in the official documentation of the object.
54
+ * @group Types
55
+ */
56
+ export type WebObjectListenersWeb = {
57
+ [eventName: string]: WebObjectListenerOnRN<void> | WebObjectListenerOnObject<any> | WebObjectListenerOnMapLayer<any> | WebObjectListenerOnHTMLElement<any>;
58
+ };
59
+ export type Listener<Event> = (event: Event) => void;
60
+ /**
61
+ * A listener on an event introduced by the React Native usage.
62
+ * @group Types
63
+ */
64
+ export type WebObjectListenerOnRN<Event> = {
65
+ rnListener: Listener<Event>;
66
+ };
67
+ /**
68
+ * A listener to be set on an event emitted by the web object.
69
+ * @group Types
70
+ */
71
+ export type WebObjectListenerOnObject<Event> = {
72
+ objectListener: Listener<Event>;
73
+ };
74
+ /**
75
+ * A listener to be set on an event emitted by the web object, but specific to
76
+ * a map layer.
77
+ * @group Types
78
+ */
79
+ export type WebObjectListenerOnMapLayer<Event> = {
80
+ layerListener: Listener<Event>;
81
+ layerId: string;
82
+ };
83
+ /**
84
+ * A listener to be set on an event emitted by the HTMLElement associated with
85
+ * the web object.
86
+ * @group Types
87
+ */
88
+ export type WebObjectListenerOnHTMLElement<Event> = {
89
+ elementListener: Listener<Event>;
90
+ };
91
+ /**
92
+ * Options that are used to instantiate a web object.
93
+ * Filter out those options that cannot be set from the RN world and replace
94
+ * them with the given replacements (e.g., HTMLElement that cannot be
95
+ * instantiated in RN is replaced by HTMLElementDescriptor). Also, remove the
96
+ * ones that should not be specified and used.
97
+ * @group Types
98
+ */
99
+ export type WebObjectOptionsInferred<WebObjectOptions, ReplacedOptions extends Partial<Record<keyof WebObjectOptions, any>> = {}, RemovedOptions extends Partial<keyof WebObjectOptions> = never> = Omit<Omit<WebObjectOptions, keyof ReplacedOptions> & ReplacedOptions, RemovedOptions>;
100
+ /**
101
+ * Methods that are used to call web object methods from the RN world.
102
+ * Filter out those methods that cannot be used from the RN world and replace
103
+ * them with the given replacements (e.g., Marker.setPopup cannot be used
104
+ * because we cannot instantiate a web Popup object in RN, therefore, we
105
+ * override it to allow the usage of a React Native Popup object).
106
+ * The goal of this type is to provide all the web methods of the object
107
+ * within the RN world as a 1:1 mapping.
108
+ * All methods are transformed into async ones that return a Promise of the
109
+ * original return type.
110
+ * To be used with the associated proxy to make the call to the methods
111
+ * effective.
112
+ * @group Types
113
+ */
114
+ export type WebObjectMethodsInferred<WebObject, ReplacedMethods extends {
115
+ [K in keyof OnlyMethods<WebObject>]?: (...args: any[]) => any;
116
+ } = {}> = Merge<AllMethodsToAsyncMethods<Merge<OnlyMethods<WebObject>, ReplacedMethods>>, {
117
+ getId: () => string;
118
+ }>;
119
+ type OnlyMethods<T> = {
120
+ [K in keyof T as T[K] extends (...args: any[]) => any ? K : never]: T[K];
121
+ };
122
+ type AllMethodsToAsyncMethods<T> = {
123
+ [K in keyof T]: T[K] extends (...args: infer A) => infer R ? (...args: A) => Promise<R> : never;
124
+ };
125
+ type Merge<M, N> = {
126
+ [K in keyof M | keyof N]: K extends keyof N ? N[K] : K extends keyof M ? M[K] : never;
127
+ };
128
+ export {};
129
+ //# sourceMappingURL=createWebObjectAsComponent.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createWebObjectAsComponent.types.d.ts","sourceRoot":"","sources":["../../../../../src/react-native/components-factory/createWebObjectAsComponent.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,OAAO,CAAA;AAEd;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAC5B,GAAG,SAAS,YAAY,CAAC,GAAG,CAAC,EAC7B,KAAK,SAAS,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,IACpC,yBAAyB,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAA;AAE1E;;;;GAIG;AACH,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,wBAAwB,CAAC,MAAM,CAAC,IACvE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;AAElB;;;;GAIG;AACH,MAAM,MAAM,cAAc,CACxB,OAAO,SAAS,wBAAwB,CAAC,GAAG,CAAC,EAC7C,SAAS,SAAS,kBAAkB,IAClC;IACF;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAA;CAC/B,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,kBAAkB,GAAG,yBAAyB,GACxD,qBAAqB,CAAA;AAEvB;;;;GAIG;AACH,MAAM,MAAM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AC,GAAG,eAAe,EAC/D,cAAc,CACf,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,wBAAwB,CAClC,SAAS,EACT,eAAe,SAAS;KACrB,CAAC,IAAI,MAAM,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG;CAC9D,GAAG,EAAE,IACJ,KAAK,CACP,wBAAwB,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,eAAe,CAAC,CAAC,EACxE;IAAE,KAAK,EAAE,MAAM,MAAM,CAAA;CAAE,CACxB,CAAA;AAED,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;CACzE,CAAA;AAED,KAAK,wBAAwB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,GACtD,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GAC1B,KAAK;CACV,CAAA;AAED,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC,IAAI;KAChB,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC,GACJ,CAAC,SAAS,MAAM,CAAC,GACf,CAAC,CAAC,CAAC,CAAC,GACJ,KAAK;CACZ,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { type ForwardedRef } from 'react';
2
+ import type { WebObjectRef } from 'react-native-maplibre-gl-js/react-native/components-factory/createWebObjectAsComponent.types';
3
+ /**
4
+ * Create a proxy to call the methods of the corresponding web world object,
5
+ * then expose it as the given `ref`.
6
+ * @param ref - A React ref object that will be updated to point to the web
7
+ * methods proxy.
8
+ * @param objectId - The ID of the web object that owns the method.
9
+ */
10
+ export declare const useWebObjectMethodsProxy: <Ref extends WebObjectRef<any>>(ref: ForwardedRef<Ref>, objectId: string) => void;
11
+ export default useWebObjectMethodsProxy;
12
+ //# sourceMappingURL=useWebObjectMethodsProxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWebObjectMethodsProxy.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components-factory/hooks/useWebObjectMethodsProxy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAIlB,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8FAA8F,CAAA;AAEhI;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GAAI,GAAG,SAAS,YAAY,CAAC,GAAG,CAAC,EACpE,KAAK,YAAY,CAAC,GAAG,CAAC,EACtB,UAAU,MAAM,SAwCjB,CAAA;AAED,eAAe,wBAAwB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { type PropsWithoutRef } from 'react';
2
+ import type { WebObjectType } from 'react-native-maplibre-gl-js/communication/messages.types';
3
+ import type { WebObjectProps } from 'react-native-maplibre-gl-js/react-native/components-factory/createWebObjectAsComponent.types';
4
+ /**
5
+ * Mount the web object once the React Native one is mounted.
6
+ * @param props - The RN object props.
7
+ * @param objectId - The ID of the web object that owns the method.
8
+ * @param objectType - The type of the associated web object.
9
+ */
10
+ declare const useWebObjectMountOnLaunch: <Props extends WebObjectProps<any, any>>(props: PropsWithoutRef<Props>, objectId: string, objectType: WebObjectType) => void;
11
+ export default useWebObjectMountOnLaunch;
12
+ //# sourceMappingURL=useWebObjectMountOnLaunch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWebObjectMountOnLaunch.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components-factory/hooks/useWebObjectMountOnLaunch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAkC,MAAM,OAAO,CAAA;AAE5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0DAA0D,CAAA;AAC7F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8FAA8F,CAAA;AAElI;;;;;GAKG;AACH,QAAA,MAAM,yBAAyB,GAAI,KAAK,SAAS,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,EACvE,OAAO,eAAe,CAAC,KAAK,CAAC,EAC7B,UAAU,MAAM,EAChB,YAAY,aAAa,SA8D1B,CAAA;AAED,eAAe,yBAAyB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { WebObjectType } from 'react-native-maplibre-gl-js/communication/messages.types';
2
+ import type { WebObjectOptionsInferred, WebObjectProps, WebObjectListeners } from 'react-native-maplibre-gl-js/react-native/components-factory/createWebObjectAsComponent.types';
3
+ export declare const useWebObjectOptionsUpdater: <Options extends WebObjectOptionsInferred<WebObjectType>, Listeners extends WebObjectListeners>(props: WebObjectProps<Options, Listeners>, id: string, dispatchMessage: (msg: any) => void) => void;
4
+ export default useWebObjectOptionsUpdater;
5
+ //# sourceMappingURL=useWebObjectOptionsUpdater.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWebObjectOptionsUpdater.d.ts","sourceRoot":"","sources":["../../../../../../src/react-native/components-factory/hooks/useWebObjectOptionsUpdater.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0DAA0D,CAAA;AAC7F,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,kBAAkB,EACnB,MAAM,8FAA8F,CAAA;AAErG,eAAO,MAAM,0BAA0B,GACrC,OAAO,SAAS,wBAAwB,CAAC,aAAa,CAAC,EACvD,SAAS,SAAS,kBAAkB,EAEpC,OAAO,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,EACzC,IAAI,MAAM,EACV,iBAAiB,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,SAYpC,CAAA;AAED,eAAe,0BAA0B,CAAA"}