@gooddata/sdk-ui-geo 11.13.0-alpha.1 → 11.13.0-alpha.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 (712) hide show
  1. package/esm/core/geoChart/GeoChartInner.d.ts +1 -1
  2. package/esm/core/geoChart/GeoChartInner.d.ts.map +1 -1
  3. package/esm/core/geoChart/GeoChartInner.js +4 -2
  4. package/esm/core/geoChart/GeoChartInner.js.map +1 -1
  5. package/esm/core/geoChart/GeoChartLegendRenderer.d.ts +1 -1
  6. package/esm/core/geoChart/GeoChartLegendRenderer.d.ts.map +1 -1
  7. package/esm/core/geoChart/GeoChartLegendRenderer.js +3 -3
  8. package/esm/core/geoChart/GeoChartLegendRenderer.js.map +1 -1
  9. package/esm/core/geoChart/GeoChartOptionsWrapper.d.ts.map +1 -1
  10. package/esm/core/geoChart/GeoChartOptionsWrapper.js +38 -25
  11. package/esm/core/geoChart/GeoChartOptionsWrapper.js.map +1 -1
  12. package/esm/core/geoChart/GeoChartRenderer.d.ts +1 -2
  13. package/esm/core/geoChart/GeoChartRenderer.d.ts.map +1 -1
  14. package/esm/core/geoChart/GeoChartRenderer.js +1 -2
  15. package/esm/core/geoChart/GeoChartRenderer.js.map +1 -1
  16. package/esm/core/geoChart/GeoValidatorHOC.d.ts.map +1 -1
  17. package/esm/core/geoChart/GeoValidatorHOC.js +15 -8
  18. package/esm/core/geoChart/GeoValidatorHOC.js.map +1 -1
  19. package/esm/core/geoChart/legends/PushpinCategoryLegend.d.ts +1 -1
  20. package/esm/core/geoChart/legends/PushpinCategoryLegend.d.ts.map +1 -1
  21. package/esm/core/geoChart/legends/PushpinCategoryLegend.js +1 -1
  22. package/esm/core/geoChart/legends/PushpinCategoryLegend.js.map +1 -1
  23. package/esm/core/geoChart/legends/PushpinSizeLegend.d.ts +1 -1
  24. package/esm/core/geoChart/legends/PushpinSizeLegend.d.ts.map +1 -1
  25. package/esm/core/geoChart/legends/PushpinSizeLegend.js +1 -1
  26. package/esm/core/geoChart/legends/PushpinSizeLegend.js.map +1 -1
  27. package/esm/next/GeoAreaChart.d.ts +4 -26
  28. package/esm/next/GeoAreaChart.d.ts.map +1 -1
  29. package/esm/next/GeoAreaChart.js +16 -57
  30. package/esm/next/GeoAreaChart.js.map +1 -1
  31. package/esm/next/GeoChartNext.d.ts +19 -0
  32. package/esm/next/GeoChartNext.d.ts.map +1 -0
  33. package/esm/next/GeoChartNext.js +34 -0
  34. package/esm/next/GeoChartNext.js.map +1 -0
  35. package/esm/next/GeoPushpinChartNext.d.ts +5 -6
  36. package/esm/next/GeoPushpinChartNext.d.ts.map +1 -1
  37. package/esm/next/GeoPushpinChartNext.js +19 -35
  38. package/esm/next/GeoPushpinChartNext.js.map +1 -1
  39. package/esm/next/components/GeoChartNextDataLoader.d.ts +12 -0
  40. package/esm/next/components/GeoChartNextDataLoader.d.ts.map +1 -0
  41. package/esm/next/components/GeoChartNextDataLoader.js +42 -0
  42. package/esm/next/components/GeoChartNextDataLoader.js.map +1 -0
  43. package/esm/next/components/GeoChartNextProviders.d.ts +13 -0
  44. package/esm/next/components/GeoChartNextProviders.d.ts.map +1 -0
  45. package/esm/next/components/GeoChartNextProviders.js +15 -0
  46. package/esm/next/components/GeoChartNextProviders.js.map +1 -0
  47. package/esm/next/components/GeoErrorComponent.d.ts +13 -0
  48. package/esm/next/components/GeoErrorComponent.d.ts.map +1 -0
  49. package/esm/next/components/{ErrorComponent.js → GeoErrorComponent.js} +4 -4
  50. package/esm/next/components/GeoErrorComponent.js.map +1 -0
  51. package/esm/next/components/GeoLoadingComponent.d.ts +5 -0
  52. package/esm/next/components/GeoLoadingComponent.d.ts.map +1 -0
  53. package/esm/next/components/{LoadingComponent.js → GeoLoadingComponent.js} +4 -4
  54. package/esm/next/components/GeoLoadingComponent.js.map +1 -0
  55. package/esm/next/components/RenderGeoChartNext.d.ts +18 -0
  56. package/esm/next/components/RenderGeoChartNext.d.ts.map +1 -0
  57. package/esm/next/components/RenderGeoChartNext.js +51 -0
  58. package/esm/next/components/RenderGeoChartNext.js.map +1 -0
  59. package/esm/next/components/legends/Legend.d.ts +5 -4
  60. package/esm/next/components/legends/Legend.d.ts.map +1 -1
  61. package/esm/next/components/legends/Legend.js.map +1 -1
  62. package/esm/next/components/legends/LegendBody.js +1 -1
  63. package/esm/next/components/legends/LegendBody.js.map +1 -1
  64. package/esm/next/components/legends/legendPropsAdapter.d.ts.map +1 -1
  65. package/esm/next/components/legends/legendPropsAdapter.js.map +1 -1
  66. package/esm/next/components/legends/types.d.ts +5 -4
  67. package/esm/next/components/legends/types.d.ts.map +1 -1
  68. package/esm/next/constants/defaults.d.ts +60 -0
  69. package/esm/next/constants/defaults.d.ts.map +1 -0
  70. package/esm/next/constants/defaults.js +53 -0
  71. package/esm/next/constants/defaults.js.map +1 -0
  72. package/esm/next/constants/{internal.d.ts → emptyDefaults.d.ts} +1 -9
  73. package/esm/next/constants/emptyDefaults.d.ts.map +1 -0
  74. package/esm/next/constants/{internal.js → emptyDefaults.js} +1 -9
  75. package/esm/next/constants/emptyDefaults.js.map +1 -0
  76. package/esm/next/context/GeoChartNextContext.d.ts +30 -0
  77. package/esm/next/context/GeoChartNextContext.d.ts.map +1 -0
  78. package/esm/next/context/GeoChartNextContext.js +44 -0
  79. package/esm/next/context/GeoChartNextContext.js.map +1 -0
  80. package/esm/next/context/GeoDataContext.d.ts +6 -51
  81. package/esm/next/context/GeoDataContext.d.ts.map +1 -1
  82. package/esm/next/context/GeoDataContext.js +12 -25
  83. package/esm/next/context/GeoDataContext.js.map +1 -1
  84. package/esm/next/context/GeoLayersContext.d.ts +111 -0
  85. package/esm/next/context/GeoLayersContext.d.ts.map +1 -0
  86. package/esm/next/context/GeoLayersContext.js +67 -0
  87. package/esm/next/context/GeoLayersContext.js.map +1 -0
  88. package/esm/next/context/GeoLegendContext.d.ts +23 -33
  89. package/esm/next/context/GeoLegendContext.d.ts.map +1 -1
  90. package/esm/next/context/GeoLegendContext.js +34 -31
  91. package/esm/next/context/GeoLegendContext.js.map +1 -1
  92. package/esm/next/context/InitialExecutionContext.d.ts +1 -1
  93. package/esm/next/context/InitialExecutionContext.d.ts.map +1 -1
  94. package/esm/next/context/MapRuntimeContext.d.ts +15 -0
  95. package/esm/next/context/MapRuntimeContext.d.ts.map +1 -0
  96. package/esm/next/context/MapRuntimeContext.js +15 -0
  97. package/esm/next/context/MapRuntimeContext.js.map +1 -0
  98. package/esm/next/context/createGeoContext.d.ts +36 -0
  99. package/esm/next/context/createGeoContext.d.ts.map +1 -0
  100. package/esm/next/context/createGeoContext.js +45 -0
  101. package/esm/next/context/createGeoContext.js.map +1 -0
  102. package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.d.ts +24 -0
  103. package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.d.ts.map +1 -0
  104. package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.js +64 -0
  105. package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.js.map +1 -0
  106. package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.d.ts +33 -0
  107. package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.d.ts.map +1 -0
  108. package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.js +36 -0
  109. package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.js.map +1 -0
  110. package/esm/next/hooks/layers/useGeoAdapterContext.d.ts +12 -0
  111. package/esm/next/hooks/layers/useGeoAdapterContext.d.ts.map +1 -0
  112. package/esm/next/hooks/layers/useGeoAdapterContext.js +34 -0
  113. package/esm/next/hooks/layers/useGeoAdapterContext.js.map +1 -0
  114. package/esm/next/hooks/layers/useLayerTooltips.d.ts +48 -0
  115. package/esm/next/hooks/layers/useLayerTooltips.d.ts.map +1 -0
  116. package/esm/next/hooks/layers/useLayerTooltips.js +105 -0
  117. package/esm/next/hooks/layers/useLayerTooltips.js.map +1 -0
  118. package/esm/next/hooks/layers/useLayersData.d.ts +45 -0
  119. package/esm/next/hooks/layers/useLayersData.d.ts.map +1 -0
  120. package/esm/next/hooks/layers/useLayersData.js +69 -0
  121. package/esm/next/hooks/layers/useLayersData.js.map +1 -0
  122. package/esm/next/hooks/layers/useLayersExecutions.d.ts +27 -0
  123. package/esm/next/hooks/layers/useLayersExecutions.d.ts.map +1 -0
  124. package/esm/next/hooks/layers/useLayersExecutions.js +15 -0
  125. package/esm/next/hooks/layers/useLayersExecutions.js.map +1 -0
  126. package/esm/next/hooks/layers/useLayersPrepare.d.ts +83 -0
  127. package/esm/next/hooks/layers/useLayersPrepare.d.ts.map +1 -0
  128. package/esm/next/hooks/layers/useLayersPrepare.js +84 -0
  129. package/esm/next/hooks/layers/useLayersPrepare.js.map +1 -0
  130. package/esm/next/hooks/layers/useSyncLayersToMap.d.ts +23 -0
  131. package/esm/next/hooks/layers/useSyncLayersToMap.d.ts.map +1 -0
  132. package/esm/next/hooks/layers/useSyncLayersToMap.js +70 -0
  133. package/esm/next/hooks/layers/useSyncLayersToMap.js.map +1 -0
  134. package/esm/next/hooks/legend/useLegendConfig.d.ts +2 -2
  135. package/esm/next/hooks/legend/useLegendConfig.d.ts.map +1 -1
  136. package/esm/next/hooks/legend/useLegendConfig.js.map +1 -1
  137. package/esm/next/hooks/legend/useLegendDetails.d.ts +3 -3
  138. package/esm/next/hooks/legend/useLegendDetails.d.ts.map +1 -1
  139. package/esm/next/hooks/legend/useLegendDetails.js.map +1 -1
  140. package/esm/next/hooks/legend/useLegendItemClick.d.ts +2 -2
  141. package/esm/next/hooks/legend/useLegendItemClick.d.ts.map +1 -1
  142. package/esm/next/hooks/legend/useLegendItemClick.js.map +1 -1
  143. package/esm/next/hooks/legend/useLegendItemsWithState.d.ts +2 -2
  144. package/esm/next/hooks/legend/useLegendItemsWithState.d.ts.map +1 -1
  145. package/esm/next/hooks/legend/useLegendItemsWithState.js +0 -3
  146. package/esm/next/hooks/legend/useLegendItemsWithState.js.map +1 -1
  147. package/esm/next/hooks/legend/useLegendRenderState.d.ts +44 -0
  148. package/esm/next/hooks/legend/useLegendRenderState.d.ts.map +1 -0
  149. package/esm/next/hooks/legend/useLegendRenderState.js +43 -0
  150. package/esm/next/hooks/legend/useLegendRenderState.js.map +1 -0
  151. package/esm/next/hooks/legend/useSelectedSegments.d.ts +2 -2
  152. package/esm/next/hooks/legend/useSelectedSegments.d.ts.map +1 -1
  153. package/esm/next/hooks/legend/useSelectedSegments.js +0 -3
  154. package/esm/next/hooks/legend/useSelectedSegments.js.map +1 -1
  155. package/esm/next/hooks/map/useAfterRender.d.ts +4 -3
  156. package/esm/next/hooks/map/useAfterRender.d.ts.map +1 -1
  157. package/esm/next/hooks/map/useAfterRender.js +3 -16
  158. package/esm/next/hooks/map/useAfterRender.js.map +1 -1
  159. package/esm/next/hooks/map/useMapCallbacks.d.ts +3 -3
  160. package/esm/next/hooks/map/useMapCallbacks.d.ts.map +1 -1
  161. package/esm/next/hooks/map/useMapCallbacks.js.map +1 -1
  162. package/esm/next/hooks/map/useMapInitialization.d.ts +7 -8
  163. package/esm/next/hooks/map/useMapInitialization.d.ts.map +1 -1
  164. package/esm/next/hooks/map/useMapInitialization.js +20 -23
  165. package/esm/next/hooks/map/useMapInitialization.js.map +1 -1
  166. package/esm/next/hooks/map/useMapResize.d.ts +3 -3
  167. package/esm/next/hooks/map/useMapResize.d.ts.map +1 -1
  168. package/esm/next/hooks/map/useMapResize.js +3 -7
  169. package/esm/next/hooks/map/useMapResize.js.map +1 -1
  170. package/esm/next/hooks/props/useResolvedGeoChartNextProps.d.ts +21 -0
  171. package/esm/next/hooks/props/useResolvedGeoChartNextProps.d.ts.map +1 -0
  172. package/esm/next/hooks/props/useResolvedGeoChartNextProps.js +39 -0
  173. package/esm/next/hooks/props/useResolvedGeoChartNextProps.js.map +1 -0
  174. package/esm/next/hooks/pushData/useGeoPushData.d.ts +28 -0
  175. package/esm/next/hooks/pushData/useGeoPushData.d.ts.map +1 -0
  176. package/esm/next/hooks/{shared → pushData}/useGeoPushData.js +1 -1
  177. package/esm/next/hooks/pushData/useGeoPushData.js.map +1 -0
  178. package/esm/next/hooks/utils/useCallbackOnChange.d.ts +24 -0
  179. package/esm/next/hooks/utils/useCallbackOnChange.d.ts.map +1 -0
  180. package/esm/next/hooks/utils/useCallbackOnChange.js +37 -0
  181. package/esm/next/hooks/utils/useCallbackOnChange.js.map +1 -0
  182. package/esm/next/index.d.ts +28 -8
  183. package/esm/next/index.d.ts.map +1 -1
  184. package/esm/next/index.js +13 -2
  185. package/esm/next/index.js.map +1 -1
  186. package/esm/next/layers/area/adapter.d.ts +4 -0
  187. package/esm/next/layers/area/adapter.d.ts.map +1 -0
  188. package/esm/next/layers/area/adapter.js +160 -0
  189. package/esm/next/layers/area/adapter.js.map +1 -0
  190. package/esm/next/{hooks/shared/geoCollectionBoundingBox.d.ts → layers/area/boundingBox.d.ts} +4 -2
  191. package/esm/next/layers/area/boundingBox.d.ts.map +1 -0
  192. package/esm/next/{hooks/shared/geoCollectionBoundingBox.js → layers/area/boundingBox.js} +23 -16
  193. package/esm/next/layers/area/boundingBox.js.map +1 -0
  194. package/esm/next/{features/coloring/areaColorStrategy.d.ts → layers/area/coloring/colorStrategy.d.ts} +2 -2
  195. package/esm/next/layers/area/coloring/colorStrategy.d.ts.map +1 -0
  196. package/esm/next/{features/coloring/areaColorStrategy.js → layers/area/coloring/colorStrategy.js} +2 -2
  197. package/esm/next/layers/area/coloring/colorStrategy.js.map +1 -0
  198. package/esm/next/{features/coloring/areaPalette.d.ts → layers/area/coloring/palette.d.ts} +1 -1
  199. package/esm/next/layers/area/coloring/palette.d.ts.map +1 -0
  200. package/esm/next/{features/coloring/areaPalette.js → layers/area/coloring/palette.js} +7 -7
  201. package/esm/next/layers/area/coloring/palette.js.map +1 -0
  202. package/esm/next/layers/area/config/defaults.d.ts +8 -0
  203. package/esm/next/layers/area/config/defaults.d.ts.map +1 -0
  204. package/esm/next/layers/area/config/defaults.js +19 -0
  205. package/esm/next/layers/area/config/defaults.js.map +1 -0
  206. package/esm/next/layers/area/constants.d.ts +14 -0
  207. package/esm/next/layers/area/constants.d.ts.map +1 -0
  208. package/esm/next/layers/area/constants.js +15 -0
  209. package/esm/next/layers/area/constants.js.map +1 -0
  210. package/esm/next/layers/area/data/transformation.d.ts +41 -0
  211. package/esm/next/layers/area/data/transformation.d.ts.map +1 -0
  212. package/esm/next/{features/data/areaTransformation.js → layers/area/data/transformation.js} +104 -55
  213. package/esm/next/layers/area/data/transformation.js.map +1 -0
  214. package/esm/next/layers/area/layerFactory.d.ts +20 -0
  215. package/esm/next/layers/area/layerFactory.d.ts.map +1 -0
  216. package/esm/next/layers/area/layerFactory.js +26 -0
  217. package/esm/next/layers/area/layerFactory.js.map +1 -0
  218. package/esm/next/{providers/maplibre/maplibreDataLayersArea.d.ts → layers/area/layers.d.ts} +7 -7
  219. package/esm/next/layers/area/layers.d.ts.map +1 -0
  220. package/esm/next/{providers/maplibre/maplibreDataLayersArea.js → layers/area/layers.js} +10 -16
  221. package/esm/next/layers/area/layers.js.map +1 -0
  222. package/esm/next/layers/area/operations.d.ts +33 -0
  223. package/esm/next/layers/area/operations.d.ts.map +1 -0
  224. package/esm/next/layers/area/operations.js +55 -0
  225. package/esm/next/layers/area/operations.js.map +1 -0
  226. package/esm/next/layers/area/source.d.ts +36 -0
  227. package/esm/next/layers/area/source.d.ts.map +1 -0
  228. package/esm/next/{providers/maplibre/maplibreDataSourceArea.js → layers/area/source.js} +21 -80
  229. package/esm/next/layers/area/source.js.map +1 -0
  230. package/esm/next/layers/area/tooltip/tooltipManagement.d.ts +19 -0
  231. package/esm/next/layers/area/tooltip/tooltipManagement.d.ts.map +1 -0
  232. package/esm/next/layers/area/tooltip/tooltipManagement.js +127 -0
  233. package/esm/next/layers/area/tooltip/tooltipManagement.js.map +1 -0
  234. package/esm/next/layers/common/computeLegend.d.ts +34 -0
  235. package/esm/next/layers/common/computeLegend.d.ts.map +1 -0
  236. package/esm/next/layers/common/computeLegend.js +43 -0
  237. package/esm/next/layers/common/computeLegend.js.map +1 -0
  238. package/esm/next/layers/common/dimensions.d.ts +15 -0
  239. package/esm/next/layers/common/dimensions.d.ts.map +1 -0
  240. package/esm/next/layers/common/dimensions.js +24 -0
  241. package/esm/next/layers/common/dimensions.js.map +1 -0
  242. package/esm/next/layers/common/layerOps.d.ts +4 -0
  243. package/esm/next/layers/common/layerOps.d.ts.map +1 -0
  244. package/esm/next/layers/common/layerOps.js +21 -0
  245. package/esm/next/layers/common/layerOps.js.map +1 -0
  246. package/esm/next/layers/common/mapFacade.d.ts +116 -0
  247. package/esm/next/layers/common/mapFacade.d.ts.map +1 -0
  248. package/esm/next/layers/common/mapFacade.js +128 -0
  249. package/esm/next/layers/common/mapFacade.js.map +1 -0
  250. package/esm/next/layers/execution/buildLayerExecution.d.ts +15 -0
  251. package/esm/next/layers/execution/buildLayerExecution.d.ts.map +1 -0
  252. package/esm/next/layers/execution/buildLayerExecution.js +28 -0
  253. package/esm/next/layers/execution/buildLayerExecution.js.map +1 -0
  254. package/esm/next/layers/execution/layerContext.d.ts +33 -0
  255. package/esm/next/layers/execution/layerContext.d.ts.map +1 -0
  256. package/esm/next/layers/execution/layerContext.js +39 -0
  257. package/esm/next/layers/execution/layerContext.js.map +1 -0
  258. package/esm/next/layers/pushpin/adapter.d.ts +4 -0
  259. package/esm/next/layers/pushpin/adapter.d.ts.map +1 -0
  260. package/esm/next/layers/pushpin/adapter.js +122 -0
  261. package/esm/next/layers/pushpin/adapter.js.map +1 -0
  262. package/esm/next/layers/pushpin/clustering/clustering.d.ts +8 -0
  263. package/esm/next/layers/pushpin/clustering/clustering.d.ts.map +1 -0
  264. package/esm/next/layers/pushpin/clustering/clustering.js +11 -0
  265. package/esm/next/layers/pushpin/clustering/clustering.js.map +1 -0
  266. package/esm/next/{features → layers/pushpin}/coloring/colorStrategy.d.ts +2 -2
  267. package/esm/next/layers/pushpin/coloring/colorStrategy.d.ts.map +1 -0
  268. package/esm/next/{features → layers/pushpin}/coloring/colorStrategy.js +4 -4
  269. package/esm/next/layers/pushpin/coloring/colorStrategy.js.map +1 -0
  270. package/esm/next/{features → layers/pushpin}/coloring/palette.d.ts +2 -2
  271. package/esm/next/layers/pushpin/coloring/palette.d.ts.map +1 -0
  272. package/esm/next/{features → layers/pushpin}/coloring/palette.js +8 -5
  273. package/esm/next/layers/pushpin/coloring/palette.js.map +1 -0
  274. package/esm/next/layers/pushpin/config/defaults.d.ts +12 -0
  275. package/esm/next/layers/pushpin/config/defaults.d.ts.map +1 -0
  276. package/esm/next/layers/pushpin/config/defaults.js +19 -0
  277. package/esm/next/layers/pushpin/config/defaults.js.map +1 -0
  278. package/esm/next/{constants/geoChart.d.ts → layers/pushpin/constants.d.ts} +1 -9
  279. package/esm/next/layers/pushpin/constants.d.ts.map +1 -0
  280. package/esm/next/{constants/geoChart.js → layers/pushpin/constants.js} +1 -9
  281. package/esm/next/layers/pushpin/constants.js.map +1 -0
  282. package/esm/next/{features/data/pushpinTransformation.d.ts → layers/pushpin/data/transformation.d.ts} +5 -5
  283. package/esm/next/layers/pushpin/data/transformation.d.ts.map +1 -0
  284. package/esm/next/{features/data/pushpinTransformation.js → layers/pushpin/data/transformation.js} +146 -56
  285. package/esm/next/layers/pushpin/data/transformation.js.map +1 -0
  286. package/esm/next/layers/pushpin/layerFactory.d.ts +20 -0
  287. package/esm/next/layers/pushpin/layerFactory.d.ts.map +1 -0
  288. package/esm/next/layers/pushpin/layerFactory.js +26 -0
  289. package/esm/next/layers/pushpin/layerFactory.js.map +1 -0
  290. package/esm/next/{providers/maplibre/maplibreDataLayers.d.ts → layers/pushpin/layers.d.ts} +12 -8
  291. package/esm/next/layers/pushpin/layers.d.ts.map +1 -0
  292. package/esm/next/{providers/maplibre/maplibreDataLayers.js → layers/pushpin/layers.js} +39 -35
  293. package/esm/next/layers/pushpin/layers.js.map +1 -0
  294. package/esm/next/layers/pushpin/operations.d.ts +37 -0
  295. package/esm/next/layers/pushpin/operations.d.ts.map +1 -0
  296. package/esm/next/layers/pushpin/operations.js +74 -0
  297. package/esm/next/layers/pushpin/operations.js.map +1 -0
  298. package/esm/next/layers/pushpin/size/calculations.d.ts.map +1 -0
  299. package/esm/next/layers/pushpin/size/calculations.js.map +1 -0
  300. package/esm/next/layers/pushpin/source.d.ts +32 -0
  301. package/esm/next/layers/pushpin/source.d.ts.map +1 -0
  302. package/esm/next/layers/pushpin/source.js +126 -0
  303. package/esm/next/layers/pushpin/source.js.map +1 -0
  304. package/esm/next/{providers/maplibre/maplibreTooltip.d.ts → layers/pushpin/tooltip/tooltipManagement.d.ts} +13 -23
  305. package/esm/next/layers/pushpin/tooltip/tooltipManagement.d.ts.map +1 -0
  306. package/esm/next/layers/pushpin/tooltip/tooltipManagement.js +208 -0
  307. package/esm/next/layers/pushpin/tooltip/tooltipManagement.js.map +1 -0
  308. package/esm/next/layers/registry/adapterRegistry.d.ts +31 -0
  309. package/esm/next/layers/registry/adapterRegistry.d.ts.map +1 -0
  310. package/esm/next/layers/registry/adapterRegistry.js +48 -0
  311. package/esm/next/layers/registry/adapterRegistry.js.map +1 -0
  312. package/esm/next/layers/registry/adapterTypes.d.ts +295 -0
  313. package/esm/next/layers/registry/adapterTypes.d.ts.map +1 -0
  314. package/esm/next/{types/areaInternal.js → layers/registry/adapterTypes.js} +1 -1
  315. package/esm/next/layers/registry/adapterTypes.js.map +1 -0
  316. package/esm/next/layers/registry/output.d.ts +9 -0
  317. package/esm/next/layers/registry/output.d.ts.map +1 -0
  318. package/esm/next/layers/registry/output.js +22 -0
  319. package/esm/next/layers/registry/output.js.map +1 -0
  320. package/esm/next/map/MapController.d.ts +25 -0
  321. package/esm/next/map/MapController.d.ts.map +1 -0
  322. package/esm/next/map/MapController.js +39 -0
  323. package/esm/next/map/MapController.js.map +1 -0
  324. package/esm/next/{providers/maplibre/maplibreConfig.d.ts → map/runtime/mapConfig.d.ts} +5 -4
  325. package/esm/next/map/runtime/mapConfig.d.ts.map +1 -0
  326. package/esm/next/{providers/maplibre/maplibreConfig.js → map/runtime/mapConfig.js} +5 -4
  327. package/esm/next/map/runtime/mapConfig.js.map +1 -0
  328. package/esm/next/{features/map/initializeMap.d.ts → map/runtime/mapInitialization.d.ts} +3 -3
  329. package/esm/next/map/runtime/mapInitialization.d.ts.map +1 -0
  330. package/esm/next/{features/map/initializeMap.js → map/runtime/mapInitialization.js} +14 -9
  331. package/esm/next/map/runtime/mapInitialization.js.map +1 -0
  332. package/esm/next/{features/data/transformationCommon.d.ts → map/style/dataTransformation.d.ts} +1 -8
  333. package/esm/next/map/style/dataTransformation.d.ts.map +1 -0
  334. package/esm/next/{features/data/transformationCommon.js → map/style/dataTransformation.js} +1 -21
  335. package/esm/next/map/style/dataTransformation.js.map +1 -0
  336. package/esm/next/map/style/sharedDefaults.d.ts +12 -0
  337. package/esm/next/map/style/sharedDefaults.d.ts.map +1 -0
  338. package/esm/next/map/style/sharedDefaults.js +25 -0
  339. package/esm/next/map/style/sharedDefaults.js.map +1 -0
  340. package/esm/next/map/style/sharedLayers.d.ts +8 -0
  341. package/esm/next/map/style/sharedLayers.d.ts.map +1 -0
  342. package/esm/next/map/style/sharedLayers.js +18 -0
  343. package/esm/next/map/style/sharedLayers.js.map +1 -0
  344. package/esm/next/map/style/styleConfig.d.ts +3 -0
  345. package/esm/next/map/style/styleConfig.d.ts.map +1 -0
  346. package/esm/next/{providers/maplibre/style.js → map/style/styleConfig.js} +1 -1
  347. package/esm/next/map/style/styleConfig.js.map +1 -0
  348. package/esm/next/{features/tooltip/formatting.d.ts → map/style/tooltipFormatting.d.ts} +1 -1
  349. package/esm/next/map/style/tooltipFormatting.d.ts.map +1 -0
  350. package/esm/next/{features/tooltip/formatting.js → map/style/tooltipFormatting.js} +1 -1
  351. package/esm/next/map/style/tooltipFormatting.js.map +1 -0
  352. package/esm/next/map/styleReconciliation/planBuilder.d.ts +105 -0
  353. package/esm/next/map/styleReconciliation/planBuilder.d.ts.map +1 -0
  354. package/esm/next/map/styleReconciliation/planBuilder.js +83 -0
  355. package/esm/next/map/styleReconciliation/planBuilder.js.map +1 -0
  356. package/esm/next/map/styleReconciliation/reconcileStyle.d.ts +92 -0
  357. package/esm/next/map/styleReconciliation/reconcileStyle.d.ts.map +1 -0
  358. package/esm/next/map/styleReconciliation/reconcileStyle.js +121 -0
  359. package/esm/next/map/styleReconciliation/reconcileStyle.js.map +1 -0
  360. package/esm/next/map/styleReconciliation/types.d.ts +138 -0
  361. package/esm/next/map/styleReconciliation/types.d.ts.map +1 -0
  362. package/esm/next/{types/shared.js → map/styleReconciliation/types.js} +1 -1
  363. package/esm/next/map/styleReconciliation/types.js.map +1 -0
  364. package/esm/next/map/viewport/viewportCalculation.d.ts +33 -0
  365. package/esm/next/map/viewport/viewportCalculation.d.ts.map +1 -0
  366. package/esm/next/map/viewport/viewportCalculation.js +94 -0
  367. package/esm/next/map/viewport/viewportCalculation.js.map +1 -0
  368. package/esm/next/{providers/maplibre/maplibreViewport.d.ts → map/viewport/viewportPresets.d.ts} +4 -4
  369. package/esm/next/map/viewport/viewportPresets.d.ts.map +1 -0
  370. package/esm/next/{providers/maplibre/maplibreViewport.js → map/viewport/viewportPresets.js} +9 -13
  371. package/esm/next/map/viewport/viewportPresets.js.map +1 -0
  372. package/esm/next/map/viewport.d.ts +8 -0
  373. package/esm/next/map/viewport.d.ts.map +1 -0
  374. package/esm/next/map/viewport.js +44 -0
  375. package/esm/next/map/viewport.js.map +1 -0
  376. package/esm/next/pushData/PushDataSync.d.ts +12 -0
  377. package/esm/next/pushData/PushDataSync.d.ts.map +1 -0
  378. package/esm/next/pushData/PushDataSync.js +16 -0
  379. package/esm/next/pushData/PushDataSync.js.map +1 -0
  380. package/esm/next/types/common/callbacks.d.ts +14 -0
  381. package/esm/next/types/common/callbacks.d.ts.map +1 -0
  382. package/esm/next/types/{areaPublic.js → common/callbacks.js} +1 -1
  383. package/esm/next/types/common/callbacks.js.map +1 -0
  384. package/esm/next/types/common/coordinates.d.ts +31 -0
  385. package/esm/next/types/common/coordinates.d.ts.map +1 -0
  386. package/esm/next/types/{areaConfig.js → common/coordinates.js} +1 -1
  387. package/esm/next/types/common/coordinates.js.map +1 -0
  388. package/esm/next/types/common/legends.d.ts +56 -0
  389. package/esm/next/types/common/legends.d.ts.map +1 -0
  390. package/esm/next/types/common/legends.js +3 -0
  391. package/esm/next/types/common/legends.js.map +1 -0
  392. package/esm/next/types/config/areaChart.d.ts +37 -0
  393. package/esm/next/types/config/areaChart.d.ts.map +1 -0
  394. package/esm/next/types/config/areaChart.js +3 -0
  395. package/esm/next/types/config/areaChart.js.map +1 -0
  396. package/esm/next/types/config/areas.d.ts +23 -0
  397. package/esm/next/types/config/areas.d.ts.map +1 -0
  398. package/esm/next/types/{config.js → config/areas.js} +1 -1
  399. package/esm/next/types/config/areas.js.map +1 -0
  400. package/esm/next/types/config/legend.d.ts +26 -0
  401. package/esm/next/types/config/legend.d.ts.map +1 -0
  402. package/esm/next/types/config/legend.js +3 -0
  403. package/esm/next/types/config/legend.js.map +1 -0
  404. package/esm/next/types/config/points.d.ts +44 -0
  405. package/esm/next/types/config/points.d.ts.map +1 -0
  406. package/esm/next/types/config/points.js +23 -0
  407. package/esm/next/types/config/points.js.map +1 -0
  408. package/esm/next/types/config/pushpinChart.d.ts +37 -0
  409. package/esm/next/types/config/pushpinChart.d.ts.map +1 -0
  410. package/esm/next/types/config/pushpinChart.js +3 -0
  411. package/esm/next/types/config/pushpinChart.js.map +1 -0
  412. package/esm/next/types/config/unified.d.ts +93 -0
  413. package/esm/next/types/config/unified.d.ts.map +1 -0
  414. package/esm/next/types/config/unified.js +3 -0
  415. package/esm/next/types/config/unified.js.map +1 -0
  416. package/esm/next/types/config/viewport.d.ts +38 -0
  417. package/esm/next/types/config/viewport.d.ts.map +1 -0
  418. package/esm/next/types/config/viewport.js +25 -0
  419. package/esm/next/types/config/viewport.js.map +1 -0
  420. package/esm/next/types/geoData/area.d.ts +32 -0
  421. package/esm/next/types/geoData/area.d.ts.map +1 -0
  422. package/esm/next/types/geoData/area.js +3 -0
  423. package/esm/next/types/geoData/area.js.map +1 -0
  424. package/esm/next/types/geoData/common.d.ts +72 -0
  425. package/esm/next/types/geoData/common.d.ts.map +1 -0
  426. package/esm/next/types/geoData/common.js +3 -0
  427. package/esm/next/types/geoData/common.js.map +1 -0
  428. package/esm/next/types/geoData/pushpin.d.ts +51 -0
  429. package/esm/next/types/geoData/pushpin.d.ts.map +1 -0
  430. package/esm/next/types/geoData/pushpin.js +3 -0
  431. package/esm/next/types/geoData/pushpin.js.map +1 -0
  432. package/esm/next/types/geoData/typeGuards.d.ts +21 -0
  433. package/esm/next/types/geoData/typeGuards.d.ts.map +1 -0
  434. package/esm/next/types/geoData/typeGuards.js +24 -0
  435. package/esm/next/types/geoData/typeGuards.js.map +1 -0
  436. package/esm/next/types/layers/index.d.ts +207 -0
  437. package/esm/next/types/layers/index.d.ts.map +1 -0
  438. package/esm/next/types/layers/index.js +31 -0
  439. package/esm/next/types/layers/index.js.map +1 -0
  440. package/esm/next/types/{mapProvider.d.ts → map/provider.d.ts} +5 -51
  441. package/esm/next/types/map/provider.d.ts.map +1 -0
  442. package/esm/next/types/map/provider.js +3 -0
  443. package/esm/next/types/map/provider.js.map +1 -0
  444. package/esm/next/types/props/areaChart/internal.d.ts +43 -0
  445. package/esm/next/types/props/areaChart/internal.d.ts.map +1 -0
  446. package/esm/next/types/props/areaChart/internal.js.map +1 -0
  447. package/esm/next/types/props/areaChart/public.d.ts +73 -0
  448. package/esm/next/types/props/areaChart/public.d.ts.map +1 -0
  449. package/esm/next/types/props/areaChart/public.js +3 -0
  450. package/esm/next/types/props/areaChart/public.js.map +1 -0
  451. package/esm/next/types/props/geoChartNext/internal.d.ts +92 -0
  452. package/esm/next/types/props/geoChartNext/internal.d.ts.map +1 -0
  453. package/esm/next/types/props/geoChartNext/internal.js +3 -0
  454. package/esm/next/types/props/geoChartNext/internal.js.map +1 -0
  455. package/esm/next/types/props/geoChartNext/public.d.ts +50 -0
  456. package/esm/next/types/props/geoChartNext/public.d.ts.map +1 -0
  457. package/esm/next/types/props/geoChartNext/public.js +3 -0
  458. package/esm/next/types/props/geoChartNext/public.js.map +1 -0
  459. package/esm/next/types/props/pushpinChart/internal.d.ts +43 -0
  460. package/esm/next/types/props/pushpinChart/internal.d.ts.map +1 -0
  461. package/esm/next/types/props/pushpinChart/internal.js +3 -0
  462. package/esm/next/types/props/pushpinChart/internal.js.map +1 -0
  463. package/esm/next/types/props/pushpinChart/public.d.ts +81 -0
  464. package/esm/next/types/props/pushpinChart/public.d.ts.map +1 -0
  465. package/esm/next/types/props/pushpinChart/public.js +3 -0
  466. package/esm/next/types/props/pushpinChart/public.js.map +1 -0
  467. package/esm/next/utils/dataValidation.d.ts +85 -0
  468. package/esm/next/utils/dataValidation.d.ts.map +1 -0
  469. package/esm/next/utils/dataValidation.js +82 -0
  470. package/esm/next/utils/dataValidation.js.map +1 -0
  471. package/esm/next/utils/fingerprint.d.ts +39 -0
  472. package/esm/next/utils/fingerprint.d.ts.map +1 -0
  473. package/esm/next/utils/fingerprint.js +44 -0
  474. package/esm/next/utils/fingerprint.js.map +1 -0
  475. package/esm/next/utils/geoCollection.d.ts +0 -7
  476. package/esm/next/utils/geoCollection.d.ts.map +1 -1
  477. package/esm/next/utils/geoCollection.js +15 -61
  478. package/esm/next/utils/geoCollection.js.map +1 -1
  479. package/esm/next/utils/geoHeaders.d.ts +12 -0
  480. package/esm/next/utils/geoHeaders.d.ts.map +1 -0
  481. package/esm/next/utils/geoHeaders.js +12 -0
  482. package/esm/next/utils/geoHeaders.js.map +1 -0
  483. package/esm/next/utils/guards.d.ts +18 -0
  484. package/esm/next/utils/guards.d.ts.map +1 -0
  485. package/esm/next/utils/guards.js +41 -0
  486. package/esm/next/utils/guards.js.map +1 -0
  487. package/esm/next/utils/layerConversion.d.ts +38 -0
  488. package/esm/next/utils/layerConversion.d.ts.map +1 -0
  489. package/esm/next/utils/layerConversion.js +244 -0
  490. package/esm/next/utils/layerConversion.js.map +1 -0
  491. package/package.json +9 -9
  492. package/styles/css/main.css +18 -0
  493. package/styles/css/main.css.map +1 -1
  494. package/styles/scss/geo-chart-next.scss +24 -0
  495. package/styles/scss/main.scss +1 -0
  496. package/esm/next/RenderGeoAreaChart.d.ts +0 -15
  497. package/esm/next/RenderGeoAreaChart.d.ts.map +0 -1
  498. package/esm/next/RenderGeoAreaChart.js +0 -104
  499. package/esm/next/RenderGeoAreaChart.js.map +0 -1
  500. package/esm/next/RenderGeoPushpinChart.d.ts +0 -15
  501. package/esm/next/RenderGeoPushpinChart.d.ts.map +0 -1
  502. package/esm/next/RenderGeoPushpinChart.js +0 -111
  503. package/esm/next/RenderGeoPushpinChart.js.map +0 -1
  504. package/esm/next/components/ErrorComponent.d.ts +0 -13
  505. package/esm/next/components/ErrorComponent.d.ts.map +0 -1
  506. package/esm/next/components/ErrorComponent.js.map +0 -1
  507. package/esm/next/components/LoadingComponent.d.ts +0 -5
  508. package/esm/next/components/LoadingComponent.d.ts.map +0 -1
  509. package/esm/next/components/LoadingComponent.js.map +0 -1
  510. package/esm/next/constants/geoChart.d.ts.map +0 -1
  511. package/esm/next/constants/geoChart.js.map +0 -1
  512. package/esm/next/constants/internal.d.ts.map +0 -1
  513. package/esm/next/constants/internal.js.map +0 -1
  514. package/esm/next/context/GeoAreaCollectionContext.d.ts +0 -24
  515. package/esm/next/context/GeoAreaCollectionContext.d.ts.map +0 -1
  516. package/esm/next/context/GeoAreaCollectionContext.js +0 -39
  517. package/esm/next/context/GeoAreaCollectionContext.js.map +0 -1
  518. package/esm/next/context/GeoAreaDataContext.d.ts +0 -69
  519. package/esm/next/context/GeoAreaDataContext.d.ts.map +0 -1
  520. package/esm/next/context/GeoAreaDataContext.js +0 -87
  521. package/esm/next/context/GeoAreaDataContext.js.map +0 -1
  522. package/esm/next/context/GeoAreaPropsContext.d.ts +0 -47
  523. package/esm/next/context/GeoAreaPropsContext.d.ts.map +0 -1
  524. package/esm/next/context/GeoAreaPropsContext.js +0 -84
  525. package/esm/next/context/GeoAreaPropsContext.js.map +0 -1
  526. package/esm/next/context/GeoPushpinDataContext.d.ts +0 -14
  527. package/esm/next/context/GeoPushpinDataContext.d.ts.map +0 -1
  528. package/esm/next/context/GeoPushpinDataContext.js +0 -51
  529. package/esm/next/context/GeoPushpinDataContext.js.map +0 -1
  530. package/esm/next/context/GeoPushpinPropsContext.d.ts +0 -47
  531. package/esm/next/context/GeoPushpinPropsContext.d.ts.map +0 -1
  532. package/esm/next/context/GeoPushpinPropsContext.js +0 -81
  533. package/esm/next/context/GeoPushpinPropsContext.js.map +0 -1
  534. package/esm/next/context/MapInstanceContext.d.ts +0 -42
  535. package/esm/next/context/MapInstanceContext.d.ts.map +0 -1
  536. package/esm/next/context/MapInstanceContext.js +0 -62
  537. package/esm/next/context/MapInstanceContext.js.map +0 -1
  538. package/esm/next/features/clustering/clustering.d.ts +0 -23
  539. package/esm/next/features/clustering/clustering.d.ts.map +0 -1
  540. package/esm/next/features/clustering/clustering.js +0 -26
  541. package/esm/next/features/clustering/clustering.js.map +0 -1
  542. package/esm/next/features/coloring/areaColorStrategy.d.ts.map +0 -1
  543. package/esm/next/features/coloring/areaColorStrategy.js.map +0 -1
  544. package/esm/next/features/coloring/areaPalette.d.ts.map +0 -1
  545. package/esm/next/features/coloring/areaPalette.js.map +0 -1
  546. package/esm/next/features/coloring/colorStrategy.d.ts.map +0 -1
  547. package/esm/next/features/coloring/colorStrategy.js.map +0 -1
  548. package/esm/next/features/coloring/palette.d.ts.map +0 -1
  549. package/esm/next/features/coloring/palette.js.map +0 -1
  550. package/esm/next/features/data/areaTransformation.d.ts +0 -60
  551. package/esm/next/features/data/areaTransformation.d.ts.map +0 -1
  552. package/esm/next/features/data/areaTransformation.js.map +0 -1
  553. package/esm/next/features/data/dataSourceManagement.d.ts +0 -20
  554. package/esm/next/features/data/dataSourceManagement.d.ts.map +0 -1
  555. package/esm/next/features/data/dataSourceManagement.js +0 -30
  556. package/esm/next/features/data/dataSourceManagement.js.map +0 -1
  557. package/esm/next/features/data/pushpinTransformation.d.ts.map +0 -1
  558. package/esm/next/features/data/pushpinTransformation.js.map +0 -1
  559. package/esm/next/features/data/transformationCommon.d.ts.map +0 -1
  560. package/esm/next/features/data/transformationCommon.js.map +0 -1
  561. package/esm/next/features/map/areaLayerManagement.d.ts +0 -51
  562. package/esm/next/features/map/areaLayerManagement.d.ts.map +0 -1
  563. package/esm/next/features/map/areaLayerManagement.js +0 -81
  564. package/esm/next/features/map/areaLayerManagement.js.map +0 -1
  565. package/esm/next/features/map/initializeMap.d.ts.map +0 -1
  566. package/esm/next/features/map/initializeMap.js.map +0 -1
  567. package/esm/next/features/map/layerManagement.d.ts +0 -51
  568. package/esm/next/features/map/layerManagement.d.ts.map +0 -1
  569. package/esm/next/features/map/layerManagement.js +0 -95
  570. package/esm/next/features/map/layerManagement.js.map +0 -1
  571. package/esm/next/features/map/viewportManagement.d.ts +0 -89
  572. package/esm/next/features/map/viewportManagement.d.ts.map +0 -1
  573. package/esm/next/features/map/viewportManagement.js +0 -223
  574. package/esm/next/features/map/viewportManagement.js.map +0 -1
  575. package/esm/next/features/size/calculations.d.ts.map +0 -1
  576. package/esm/next/features/size/calculations.js.map +0 -1
  577. package/esm/next/features/tooltip/formatting.d.ts.map +0 -1
  578. package/esm/next/features/tooltip/formatting.js.map +0 -1
  579. package/esm/next/features/tooltip/tooltipManagement.d.ts +0 -47
  580. package/esm/next/features/tooltip/tooltipManagement.d.ts.map +0 -1
  581. package/esm/next/features/tooltip/tooltipManagement.js +0 -77
  582. package/esm/next/features/tooltip/tooltipManagement.js.map +0 -1
  583. package/esm/next/helpers/areaAttributeResolver.d.ts +0 -10
  584. package/esm/next/helpers/areaAttributeResolver.d.ts.map +0 -1
  585. package/esm/next/helpers/areaAttributeResolver.js +0 -26
  586. package/esm/next/helpers/areaAttributeResolver.js.map +0 -1
  587. package/esm/next/hooks/init/useInitExecution.d.ts +0 -32
  588. package/esm/next/hooks/init/useInitExecution.d.ts.map +0 -1
  589. package/esm/next/hooks/init/useInitExecution.js +0 -107
  590. package/esm/next/hooks/init/useInitExecution.js.map +0 -1
  591. package/esm/next/hooks/init/useInitExecutionResult.d.ts +0 -17
  592. package/esm/next/hooks/init/useInitExecutionResult.d.ts.map +0 -1
  593. package/esm/next/hooks/init/useInitExecutionResult.js +0 -51
  594. package/esm/next/hooks/init/useInitExecutionResult.js.map +0 -1
  595. package/esm/next/hooks/legend/useAreaLegendItems.d.ts +0 -27
  596. package/esm/next/hooks/legend/useAreaLegendItems.d.ts.map +0 -1
  597. package/esm/next/hooks/legend/useAreaLegendItems.js +0 -33
  598. package/esm/next/hooks/legend/useAreaLegendItems.js.map +0 -1
  599. package/esm/next/hooks/legend/useLegendProps.d.ts +0 -53
  600. package/esm/next/hooks/legend/useLegendProps.d.ts.map +0 -1
  601. package/esm/next/hooks/legend/useLegendProps.js +0 -38
  602. package/esm/next/hooks/legend/useLegendProps.js.map +0 -1
  603. package/esm/next/hooks/legend/usePushpinLegendItems.d.ts +0 -27
  604. package/esm/next/hooks/legend/usePushpinLegendItems.d.ts.map +0 -1
  605. package/esm/next/hooks/legend/usePushpinLegendItems.js +0 -33
  606. package/esm/next/hooks/legend/usePushpinLegendItems.js.map +0 -1
  607. package/esm/next/hooks/map/useAreaMapDataSync.d.ts +0 -9
  608. package/esm/next/hooks/map/useAreaMapDataSync.d.ts.map +0 -1
  609. package/esm/next/hooks/map/useAreaMapDataSync.js +0 -71
  610. package/esm/next/hooks/map/useAreaMapDataSync.js.map +0 -1
  611. package/esm/next/hooks/map/useMapDataSync.d.ts +0 -44
  612. package/esm/next/hooks/map/useMapDataSync.d.ts.map +0 -1
  613. package/esm/next/hooks/map/useMapDataSync.js +0 -87
  614. package/esm/next/hooks/map/useMapDataSync.js.map +0 -1
  615. package/esm/next/hooks/map/useTooltipHandlers.d.ts +0 -22
  616. package/esm/next/hooks/map/useTooltipHandlers.d.ts.map +0 -1
  617. package/esm/next/hooks/map/useTooltipHandlers.js +0 -28
  618. package/esm/next/hooks/map/useTooltipHandlers.js.map +0 -1
  619. package/esm/next/hooks/shared/geoCollectionBoundingBox.d.ts.map +0 -1
  620. package/esm/next/hooks/shared/geoCollectionBoundingBox.js.map +0 -1
  621. package/esm/next/hooks/shared/useAreaCollectionFeatures.d.ts +0 -43
  622. package/esm/next/hooks/shared/useAreaCollectionFeatures.d.ts.map +0 -1
  623. package/esm/next/hooks/shared/useAreaCollectionFeatures.js +0 -213
  624. package/esm/next/hooks/shared/useAreaCollectionFeatures.js.map +0 -1
  625. package/esm/next/hooks/shared/useAreaDataTransformation.d.ts +0 -21
  626. package/esm/next/hooks/shared/useAreaDataTransformation.d.ts.map +0 -1
  627. package/esm/next/hooks/shared/useAreaDataTransformation.js +0 -25
  628. package/esm/next/hooks/shared/useAreaDataTransformation.js.map +0 -1
  629. package/esm/next/hooks/shared/useAreaPushData.d.ts +0 -11
  630. package/esm/next/hooks/shared/useAreaPushData.d.ts.map +0 -1
  631. package/esm/next/hooks/shared/useAreaPushData.js +0 -20
  632. package/esm/next/hooks/shared/useAreaPushData.js.map +0 -1
  633. package/esm/next/hooks/shared/useGeoDataTransformation.d.ts +0 -9
  634. package/esm/next/hooks/shared/useGeoDataTransformation.d.ts.map +0 -1
  635. package/esm/next/hooks/shared/useGeoDataTransformation.js +0 -20
  636. package/esm/next/hooks/shared/useGeoDataTransformation.js.map +0 -1
  637. package/esm/next/hooks/shared/useGeoPushData.d.ts +0 -20
  638. package/esm/next/hooks/shared/useGeoPushData.d.ts.map +0 -1
  639. package/esm/next/hooks/shared/useGeoPushData.js.map +0 -1
  640. package/esm/next/hooks/shared/usePushData.d.ts +0 -8
  641. package/esm/next/hooks/shared/usePushData.d.ts.map +0 -1
  642. package/esm/next/hooks/shared/usePushData.js +0 -15
  643. package/esm/next/hooks/shared/usePushData.js.map +0 -1
  644. package/esm/next/hooks/shared/usePushpinDataTransformation.d.ts +0 -23
  645. package/esm/next/hooks/shared/usePushpinDataTransformation.d.ts.map +0 -1
  646. package/esm/next/hooks/shared/usePushpinDataTransformation.js +0 -27
  647. package/esm/next/hooks/shared/usePushpinDataTransformation.js.map +0 -1
  648. package/esm/next/hooks/shared/useResolvedAreaProps.d.ts +0 -16
  649. package/esm/next/hooks/shared/useResolvedAreaProps.d.ts.map +0 -1
  650. package/esm/next/hooks/shared/useResolvedAreaProps.js +0 -36
  651. package/esm/next/hooks/shared/useResolvedAreaProps.js.map +0 -1
  652. package/esm/next/hooks/shared/useResolvedPlaceholderValues.d.ts +0 -8
  653. package/esm/next/hooks/shared/useResolvedPlaceholderValues.d.ts.map +0 -1
  654. package/esm/next/hooks/shared/useResolvedPlaceholderValues.js +0 -11
  655. package/esm/next/hooks/shared/useResolvedPlaceholderValues.js.map +0 -1
  656. package/esm/next/hooks/shared/useResolvedProps.d.ts +0 -16
  657. package/esm/next/hooks/shared/useResolvedProps.d.ts.map +0 -1
  658. package/esm/next/hooks/shared/useResolvedProps.js +0 -40
  659. package/esm/next/hooks/shared/useResolvedProps.js.map +0 -1
  660. package/esm/next/hooks/shared/useSegmentLegendItems.d.ts +0 -17
  661. package/esm/next/hooks/shared/useSegmentLegendItems.d.ts.map +0 -1
  662. package/esm/next/hooks/shared/useSegmentLegendItems.js +0 -33
  663. package/esm/next/hooks/shared/useSegmentLegendItems.js.map +0 -1
  664. package/esm/next/providers/maplibre/maplibreConfig.d.ts.map +0 -1
  665. package/esm/next/providers/maplibre/maplibreConfig.js.map +0 -1
  666. package/esm/next/providers/maplibre/maplibreDataLayers.d.ts.map +0 -1
  667. package/esm/next/providers/maplibre/maplibreDataLayers.js.map +0 -1
  668. package/esm/next/providers/maplibre/maplibreDataLayersArea.d.ts.map +0 -1
  669. package/esm/next/providers/maplibre/maplibreDataLayersArea.js.map +0 -1
  670. package/esm/next/providers/maplibre/maplibreDataSource.d.ts +0 -28
  671. package/esm/next/providers/maplibre/maplibreDataSource.d.ts.map +0 -1
  672. package/esm/next/providers/maplibre/maplibreDataSource.js +0 -117
  673. package/esm/next/providers/maplibre/maplibreDataSource.js.map +0 -1
  674. package/esm/next/providers/maplibre/maplibreDataSourceArea.d.ts +0 -34
  675. package/esm/next/providers/maplibre/maplibreDataSourceArea.d.ts.map +0 -1
  676. package/esm/next/providers/maplibre/maplibreDataSourceArea.js.map +0 -1
  677. package/esm/next/providers/maplibre/maplibreTooltip.d.ts.map +0 -1
  678. package/esm/next/providers/maplibre/maplibreTooltip.js +0 -174
  679. package/esm/next/providers/maplibre/maplibreTooltip.js.map +0 -1
  680. package/esm/next/providers/maplibre/maplibreViewport.d.ts.map +0 -1
  681. package/esm/next/providers/maplibre/maplibreViewport.js.map +0 -1
  682. package/esm/next/providers/maplibre/style.d.ts +0 -3
  683. package/esm/next/providers/maplibre/style.d.ts.map +0 -1
  684. package/esm/next/providers/maplibre/style.js.map +0 -1
  685. package/esm/next/types/areaConfig.d.ts +0 -68
  686. package/esm/next/types/areaConfig.d.ts.map +0 -1
  687. package/esm/next/types/areaConfig.js.map +0 -1
  688. package/esm/next/types/areaInternal.d.ts +0 -13
  689. package/esm/next/types/areaInternal.d.ts.map +0 -1
  690. package/esm/next/types/areaInternal.js.map +0 -1
  691. package/esm/next/types/areaPublic.d.ts +0 -68
  692. package/esm/next/types/areaPublic.d.ts.map +0 -1
  693. package/esm/next/types/areaPublic.js.map +0 -1
  694. package/esm/next/types/config.d.ts +0 -89
  695. package/esm/next/types/config.d.ts.map +0 -1
  696. package/esm/next/types/config.js.map +0 -1
  697. package/esm/next/types/internal.d.ts +0 -17
  698. package/esm/next/types/internal.d.ts.map +0 -1
  699. package/esm/next/types/internal.js.map +0 -1
  700. package/esm/next/types/mapProvider.d.ts.map +0 -1
  701. package/esm/next/types/mapProvider.js +0 -3
  702. package/esm/next/types/mapProvider.js.map +0 -1
  703. package/esm/next/types/public.d.ts +0 -84
  704. package/esm/next/types/public.d.ts.map +0 -1
  705. package/esm/next/types/public.js +0 -15
  706. package/esm/next/types/public.js.map +0 -1
  707. package/esm/next/types/shared.d.ts +0 -245
  708. package/esm/next/types/shared.d.ts.map +0 -1
  709. package/esm/next/types/shared.js.map +0 -1
  710. /package/esm/next/{features → layers/pushpin}/size/calculations.d.ts +0 -0
  711. /package/esm/next/{features → layers/pushpin}/size/calculations.js +0 -0
  712. /package/esm/next/types/{internal.js → props/areaChart/internal.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { IPushpinCategoryLegendItem } from "@gooddata/sdk-ui-vis-commons";
1
+ import { IGeoLegendItem } from "../../types/common/legends.js";
2
2
  /**
3
3
  * Hook to handle legend item click interactions.
4
4
  *
@@ -12,5 +12,5 @@ import { IPushpinCategoryLegendItem } from "@gooddata/sdk-ui-vis-commons";
12
12
  *
13
13
  * @alpha
14
14
  */
15
- export declare function useLegendItemClick(allUris: string[]): (item: IPushpinCategoryLegendItem) => void;
15
+ export declare function useLegendItemClick(allUris: string[]): (item: IGeoLegendItem) => void;
16
16
  //# sourceMappingURL=useLegendItemClick.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLegendItemClick.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemClick.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAI1E;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAShG"}
1
+ {"version":3,"file":"useLegendItemClick.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemClick.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CASpF"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLegendItemClick.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemClick.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAIpC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAiB;IAChD,MAAM,EAAE,gBAAgB,EAAE,GAAG,YAAY,EAAE,CAAC;IAE5C,OAAO,WAAW,CACd,CAAC,IAAgC,EAAE,EAAE;QACjC,gBAAgB,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC,EACD,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAC9B,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"useLegendItemClick.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemClick.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGjE;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAiB;IAChD,MAAM,EAAE,gBAAgB,EAAE,GAAG,YAAY,EAAE,CAAC;IAE5C,OAAO,WAAW,CACd,CAAC,IAAoB,EAAE,EAAE;QACrB,gBAAgB,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC,EACD,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAC9B,CAAC;AACN,CAAC"}
@@ -1,4 +1,4 @@
1
- import { IPushpinCategoryLegendItem } from "@gooddata/sdk-ui-vis-commons";
1
+ import { IGeoLegendItem } from "../../types/common/legends.js";
2
2
  /**
3
3
  * Hook to merge legend items with their visibility state from context.
4
4
  *
@@ -18,5 +18,5 @@ import { IPushpinCategoryLegendItem } from "@gooddata/sdk-ui-vis-commons";
18
18
  *
19
19
  * @alpha
20
20
  */
21
- export declare function useLegendItemsWithState(baseLegendItems: IPushpinCategoryLegendItem[]): IPushpinCategoryLegendItem[];
21
+ export declare function useLegendItemsWithState(baseLegendItems: IGeoLegendItem[]): IGeoLegendItem[];
22
22
  //# sourceMappingURL=useLegendItemsWithState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLegendItemsWithState.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemsWithState.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAI1E;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,uBAAuB,CACnC,eAAe,EAAE,0BAA0B,EAAE,GAC9C,0BAA0B,EAAE,CA8B9B"}
1
+ {"version":3,"file":"useLegendItemsWithState.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemsWithState.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,uBAAuB,CAAC,eAAe,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CA2B3F"}
@@ -26,21 +26,18 @@ export function useLegendItemsWithState(baseLegendItems) {
26
26
  if (!baseLegendItems.length) {
27
27
  return [];
28
28
  }
29
- // No explicit state recorded means everything stays visible (initial state).
30
29
  if (enabledLegendItems === null) {
31
30
  return baseLegendItems.map((item) => ({
32
31
  ...item,
33
32
  isVisible: true,
34
33
  }));
35
34
  }
36
- // Explicitly tracking an empty list means all items are disabled (legacy behavior).
37
35
  if (enabledLegendItems.length === 0) {
38
36
  return baseLegendItems.map((item) => ({
39
37
  ...item,
40
38
  isVisible: false,
41
39
  }));
42
40
  }
43
- // Otherwise, item is visible if it's in the enabled list
44
41
  return baseLegendItems.map((item) => ({
45
42
  ...item,
46
43
  isVisible: enabledLegendItems.includes(item.uri),
@@ -1 +1 @@
1
- {"version":3,"file":"useLegendItemsWithState.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemsWithState.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,uBAAuB,CACnC,eAA6C;IAE7C,MAAM,EAAE,kBAAkB,EAAE,GAAG,YAAY,EAAE,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;YAC1B,OAAO,EAAE,CAAC;QACd,CAAC;QAED,6EAA6E;QAC7E,IAAI,kBAAkB,KAAK,IAAI,EAAE,CAAC;YAC9B,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAClC,GAAG,IAAI;gBACP,SAAS,EAAE,IAAI;aAClB,CAAC,CAAC,CAAC;QACR,CAAC;QAED,oFAAoF;QACpF,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAClC,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAClC,GAAG,IAAI;gBACP,SAAS,EAAE,KAAK;aACnB,CAAC,CAAC,CAAC;QACR,CAAC;QAED,yDAAyD;QACzD,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAClC,GAAG,IAAI;YACP,SAAS,EAAE,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;SACnD,CAAC,CAAC,CAAC;IACR,CAAC,EAAE,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAC9C,CAAC"}
1
+ {"version":3,"file":"useLegendItemsWithState.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemsWithState.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGjE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,uBAAuB,CAAC,eAAiC;IACrE,MAAM,EAAE,kBAAkB,EAAE,GAAG,YAAY,EAAE,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;YAC1B,OAAO,EAAE,CAAC;QACd,CAAC;QAED,IAAI,kBAAkB,KAAK,IAAI,EAAE,CAAC;YAC9B,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAClC,GAAG,IAAI;gBACP,SAAS,EAAE,IAAI;aAClB,CAAC,CAAC,CAAC;QACR,CAAC;QAED,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAClC,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAClC,GAAG,IAAI;gBACP,SAAS,EAAE,KAAK;aACnB,CAAC,CAAC,CAAC;QACR,CAAC;QAED,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAClC,GAAG,IAAI;YACP,SAAS,EAAE,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;SACnD,CAAC,CAAC,CAAC;IACR,CAAC,EAAE,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAC9C,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { ContentRect } from "react-measure";
2
+ import { IColorStrategy, PositionType } from "@gooddata/sdk-ui-vis-commons";
3
+ import { type IGeoLayerData } from "../../context/GeoLayersContext.js";
4
+ import { IGeoLegendItem } from "../../types/common/legends.js";
5
+ import { IGeoChartNextConfig } from "../../types/config/unified.js";
6
+ import { IGeoCommonData } from "../../types/geoData/common.js";
7
+ /**
8
+ * Result of useLegendRenderState hook
9
+ *
10
+ * @internal
11
+ */
12
+ export interface ILegendRenderState {
13
+ /** Primary layer data for legend */
14
+ primaryLayer: IGeoLayerData | null;
15
+ /** Geo data from primary layer */
16
+ geoData: IGeoCommonData | null;
17
+ /** Color strategy from primary layer */
18
+ colorStrategy: IColorStrategy | null;
19
+ /** Legend items with visibility state */
20
+ legendItems: IGeoLegendItem[];
21
+ /** Selected segment items for filtering */
22
+ selectedSegmentItems: string[];
23
+ /** Computed legend position */
24
+ position: PositionType;
25
+ /** Whether legend should render before map */
26
+ isLegendRenderedFirst: boolean;
27
+ /** Whether layout is row-based (left/right position) */
28
+ isRow: boolean;
29
+ }
30
+ /**
31
+ * Hook that consolidates legend-related state and computations.
32
+ *
33
+ * @remarks
34
+ * Extracts and combines multiple legend-related hooks into a single result object,
35
+ * reducing boilerplate in the render component and improving readability.
36
+ *
37
+ * @param config - Chart configuration
38
+ * @param chartContainerRect - Container dimensions for responsive behavior
39
+ * @returns Consolidated legend render state
40
+ *
41
+ * @internal
42
+ */
43
+ export declare function useLegendRenderState(config: IGeoChartNextConfig | undefined, chartContainerRect: ContentRect | null): ILegendRenderState;
44
+ //# sourceMappingURL=useLegendRenderState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLegendRenderState.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendRenderState.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAM5E,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B,oCAAoC;IACpC,YAAY,EAAE,aAAa,GAAG,IAAI,CAAC;IACnC,kCAAkC;IAClC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC/B,wCAAwC;IACxC,aAAa,EAAE,cAAc,GAAG,IAAI,CAAC;IACrC,yCAAyC;IACzC,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,2CAA2C;IAC3C,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,+BAA+B;IAC/B,QAAQ,EAAE,YAAY,CAAC;IACvB,8CAA8C;IAC9C,qBAAqB,EAAE,OAAO,CAAC;IAC/B,wDAAwD;IACxD,KAAK,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAChC,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,kBAAkB,EAAE,WAAW,GAAG,IAAI,GACvC,kBAAkB,CA0BpB"}
@@ -0,0 +1,43 @@
1
+ // (C) 2025 GoodData Corporation
2
+ import { useLegendConfig } from "./useLegendConfig.js";
3
+ import { useLegendDetails } from "./useLegendDetails.js";
4
+ import { useLegendItemsWithState } from "./useLegendItemsWithState.js";
5
+ import { useSelectedSegments } from "./useSelectedSegments.js";
6
+ import { useGeoLayers } from "../../context/GeoLayersContext.js";
7
+ /**
8
+ * Hook that consolidates legend-related state and computations.
9
+ *
10
+ * @remarks
11
+ * Extracts and combines multiple legend-related hooks into a single result object,
12
+ * reducing boilerplate in the render component and improving readability.
13
+ *
14
+ * @param config - Chart configuration
15
+ * @param chartContainerRect - Container dimensions for responsive behavior
16
+ * @returns Consolidated legend render state
17
+ *
18
+ * @internal
19
+ */
20
+ export function useLegendRenderState(config, chartContainerRect) {
21
+ const { primaryLayer } = useGeoLayers();
22
+ const geoData = primaryLayer?.geoData ?? null;
23
+ const colorStrategy = primaryLayer?.colorStrategy ?? null;
24
+ const baseLegendItems = primaryLayer?.baseLegendItems ?? [];
25
+ const legendItems = useLegendItemsWithState(baseLegendItems);
26
+ const selectedSegmentItems = useSelectedSegments(legendItems);
27
+ const legendConfig = useLegendConfig(config);
28
+ const legendDetails = useLegendDetails(config, geoData, chartContainerRect ?? undefined);
29
+ const position = legendDetails?.position ?? legendConfig.position;
30
+ const isLegendRenderedFirst = position === "top" || position === "left";
31
+ const isRow = position === "left" || position === "right";
32
+ return {
33
+ primaryLayer,
34
+ geoData,
35
+ colorStrategy,
36
+ legendItems,
37
+ selectedSegmentItems,
38
+ position,
39
+ isLegendRenderedFirst,
40
+ isRow,
41
+ };
42
+ }
43
+ //# sourceMappingURL=useLegendRenderState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLegendRenderState.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendRenderState.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAMhC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAsB,YAAY,EAAE,MAAM,mCAAmC,CAAC;AA6BrF;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,oBAAoB,CAChC,MAAuC,EACvC,kBAAsC;IAEtC,MAAM,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAAC;IAExC,MAAM,OAAO,GAAG,YAAY,EAAE,OAAO,IAAI,IAAI,CAAC;IAC9C,MAAM,aAAa,GAAG,YAAY,EAAE,aAAa,IAAI,IAAI,CAAC;IAC1D,MAAM,eAAe,GAAG,YAAY,EAAE,eAAe,IAAI,EAAE,CAAC;IAE5D,MAAM,WAAW,GAAG,uBAAuB,CAAC,eAAe,CAAC,CAAC;IAC7D,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAC9D,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IAC7C,MAAM,aAAa,GAAG,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,kBAAkB,IAAI,SAAS,CAAC,CAAC;IACzF,MAAM,QAAQ,GAAG,aAAa,EAAE,QAAQ,IAAI,YAAY,CAAC,QAAQ,CAAC;IAElE,MAAM,qBAAqB,GAAG,QAAQ,KAAK,KAAK,IAAI,QAAQ,KAAK,MAAM,CAAC;IACxE,MAAM,KAAK,GAAG,QAAQ,KAAK,MAAM,IAAI,QAAQ,KAAK,OAAO,CAAC;IAE1D,OAAO;QACH,YAAY;QACZ,OAAO;QACP,aAAa;QACb,WAAW;QACX,oBAAoB;QACpB,QAAQ;QACR,qBAAqB;QACrB,KAAK;KACR,CAAC;AACN,CAAC"}
@@ -1,4 +1,4 @@
1
- import { IPushpinCategoryLegendItem } from "@gooddata/sdk-ui-vis-commons";
1
+ import { IGeoLegendItem } from "../../types/common/legends.js";
2
2
  /**
3
3
  * Hook to compute selected segment URIs from enabled legend items.
4
4
  *
@@ -13,5 +13,5 @@ import { IPushpinCategoryLegendItem } from "@gooddata/sdk-ui-vis-commons";
13
13
  *
14
14
  * @alpha
15
15
  */
16
- export declare function useSelectedSegments(categoryItems: IPushpinCategoryLegendItem[]): string[];
16
+ export declare function useSelectedSegments(categoryItems: IGeoLegendItem[]): string[];
17
17
  //# sourceMappingURL=useSelectedSegments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSelectedSegments.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useSelectedSegments.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAI1E;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,0BAA0B,EAAE,GAAG,MAAM,EAAE,CAqBzF"}
1
+ {"version":3,"file":"useSelectedSegments.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useSelectedSegments.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,cAAc,EAAE,GAAG,MAAM,EAAE,CAkB7E"}
@@ -21,15 +21,12 @@ export function useSelectedSegments(categoryItems) {
21
21
  if (!categoryItems.length) {
22
22
  return [];
23
23
  }
24
- // All items enabled (initial state)
25
24
  if (enabledLegendItems === null) {
26
25
  return [];
27
26
  }
28
- // User explicitly disabled every item -> keep the map unfiltered
29
27
  if (enabledLegendItems.length === 0) {
30
28
  return [];
31
29
  }
32
- // Filter to only enabled items
33
30
  return categoryItems.filter((item) => enabledLegendItems.includes(item.uri)).map((item) => item.uri);
34
31
  }, [categoryItems, enabledLegendItems]);
35
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useSelectedSegments.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useSelectedSegments.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,mBAAmB,CAAC,aAA2C;IAC3E,MAAM,EAAE,kBAAkB,EAAE,GAAG,YAAY,EAAE,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;YACxB,OAAO,EAAE,CAAC;QACd,CAAC;QAED,oCAAoC;QACpC,IAAI,kBAAkB,KAAK,IAAI,EAAE,CAAC;YAC9B,OAAO,EAAE,CAAC;QACd,CAAC;QAED,iEAAiE;QACjE,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAClC,OAAO,EAAE,CAAC;QACd,CAAC;QAED,+BAA+B;QAC/B,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACzG,CAAC,EAAE,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAC5C,CAAC"}
1
+ {"version":3,"file":"useSelectedSegments.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useSelectedSegments.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGjE;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,mBAAmB,CAAC,aAA+B;IAC/D,MAAM,EAAE,kBAAkB,EAAE,GAAG,YAAY,EAAE,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;YACxB,OAAO,EAAE,CAAC;QACd,CAAC;QAED,IAAI,kBAAkB,KAAK,IAAI,EAAE,CAAC;YAC9B,OAAO,EAAE,CAAC;QACd,CAAC;QAED,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAClC,OAAO,EAAE,CAAC;QACd,CAAC;QAED,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACzG,CAAC,EAAE,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAC5C,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { Map as MapLibreMap } from "maplibre-gl";
1
+ import type { IMapFacade } from "../../layers/common/mapFacade.js";
2
+ import type { ILayerExecutionRecord } from "../../types/props/geoChartNext/internal.js";
2
3
  /**
3
4
  * Calls afterRender callback when map finishes rendering
4
5
  *
@@ -11,9 +12,9 @@ import type { Map as MapLibreMap } from "maplibre-gl";
11
12
  *
12
13
  * @param map - MapLibre map instance
13
14
  * @param afterRender - Callback to call when rendering is complete
14
- * @param resetSignal - Value that indicates the map should re-signal completion (e.g., execution object)
15
+ * @param resetSignal - Layer executions that indicate the map should re-signal completion
15
16
  *
16
17
  * @internal
17
18
  */
18
- export declare function useAfterRender(map: MapLibreMap | null, afterRender?: () => void, resetSignal?: unknown): void;
19
+ export declare function useAfterRender(map: IMapFacade | null, afterRender?: () => void, resetSignal?: ILayerExecutionRecord[]): void;
19
20
  //# sourceMappingURL=useAfterRender.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAfterRender.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useAfterRender.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,IAAI,WAAW,EAAE,MAAM,aAAa,CAAC;AA2CtD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC1B,GAAG,EAAE,WAAW,GAAG,IAAI,EACvB,WAAW,CAAC,EAAE,MAAM,IAAI,EACxB,WAAW,CAAC,EAAE,OAAO,GACtB,IAAI,CAkDN"}
1
+ {"version":3,"file":"useAfterRender.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useAfterRender.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAqCxF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC1B,GAAG,EAAE,UAAU,GAAG,IAAI,EACtB,WAAW,CAAC,EAAE,MAAM,IAAI,EACxB,WAAW,CAAC,EAAE,qBAAqB,EAAE,GACtC,IAAI,CAsCN"}
@@ -13,11 +13,7 @@ import { useEffect, useRef } from "react";
13
13
  * @internal
14
14
  */
15
15
  function isMapFullyIdle(map) {
16
- // Check if tiles are loaded (if method exists)
17
- const tilesLoaded = typeof map.areTilesLoaded === "function"
18
- ? map.areTilesLoaded()
19
- : true;
20
- return map.loaded() && tilesLoaded;
16
+ return map.loaded() && map.areTilesLoaded();
21
17
  }
22
18
  /**
23
19
  * Schedule callback to run asynchronously
@@ -50,44 +46,35 @@ function scheduleAsync(callback) {
50
46
  *
51
47
  * @param map - MapLibre map instance
52
48
  * @param afterRender - Callback to call when rendering is complete
53
- * @param resetSignal - Value that indicates the map should re-signal completion (e.g., execution object)
49
+ * @param resetSignal - Layer executions that indicate the map should re-signal completion
54
50
  *
55
51
  * @internal
56
52
  */
57
53
  export function useAfterRender(map, afterRender, resetSignal) {
58
54
  const hasCalledRef = useRef(false);
59
55
  const lastResetSignalRef = useRef(resetSignal);
60
- // Reset the "called" flag when resetSignal changes
61
56
  useEffect(() => {
62
57
  if (resetSignal !== lastResetSignalRef.current) {
63
58
  hasCalledRef.current = false;
64
59
  lastResetSignalRef.current = resetSignal;
65
60
  }
66
61
  }, [resetSignal]);
67
- // Set up idle listener and invoke callbacks
68
62
  useEffect(() => {
69
- // Guard: skip if no map, already called, or no callbacks
70
63
  if (!map || hasCalledRef.current || !afterRender) {
71
64
  return;
72
65
  }
73
66
  const invokeCallbacks = () => {
74
- // Double-check we haven't called yet (race condition guard)
75
67
  if (hasCalledRef.current) {
76
68
  return;
77
69
  }
78
70
  hasCalledRef.current = true;
79
- // Invoke callbacks
80
- if (afterRender) {
81
- afterRender();
82
- }
71
+ afterRender?.();
83
72
  };
84
73
  const handleIdle = () => {
85
74
  map.off("idle", handleIdle);
86
75
  invokeCallbacks();
87
76
  };
88
- // Register idle listener
89
77
  map.on("idle", handleIdle);
90
- // If already idle, trigger immediately (async to avoid sync effects)
91
78
  if (isMapFullyIdle(map)) {
92
79
  scheduleAsync(handleIdle);
93
80
  }
@@ -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AAG,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAChC,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;AACxC,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { Map as MapLibreMap } from "maplibre-gl";
2
- import { CenterPositionChangedCallback, ZoomChangedCallback } from "../../types/shared.js";
1
+ import type { IMapFacade } from "../../layers/common/mapFacade.js";
2
+ import { CenterPositionChangedCallback, ZoomChangedCallback } from "../../types/common/callbacks.js";
3
3
  /**
4
4
  * Set up map interaction callbacks
5
5
  *
@@ -13,7 +13,7 @@ import { CenterPositionChangedCallback, ZoomChangedCallback } from "../../types/
13
13
  *
14
14
  * @internal
15
15
  */
16
- export declare function useMapCallbacks(map: MapLibreMap | null, callbacks: {
16
+ export declare function useMapCallbacks(map: IMapFacade | null, callbacks: {
17
17
  onCenterPositionChanged?: CenterPositionChangedCallback;
18
18
  onZoomChanged?: ZoomChangedCallback;
19
19
  }): void;
@@ -1 +1 @@
1
- {"version":3,"file":"useMapCallbacks.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapCallbacks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,IAAI,WAAW,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE3F;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAC3B,GAAG,EAAE,WAAW,GAAG,IAAI,EACvB,SAAS,EAAE;IACP,uBAAuB,CAAC,EAAE,6BAA6B,CAAC;IACxD,aAAa,CAAC,EAAE,mBAAmB,CAAC;CACvC,GACF,IAAI,CAgCN"}
1
+ {"version":3,"file":"useMapCallbacks.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapCallbacks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,k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AAC;YAClC,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACtC,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,GAAG,EAAE,uBAAuB,EAAE,aAAa,CAAC,CAAC,CAAC;AACtD,CAAC"}
@@ -1,8 +1,7 @@
1
1
  import { RefObject } from "react";
2
- import type { Map as MapLibreMap, Popup } from "maplibre-gl";
3
- import { IntlShape } from "react-intl";
4
- import { IGeoPushpinChartNextConfig } from "../../types/config.js";
5
- import { IMapViewport } from "../../types/mapProvider.js";
2
+ import { IMapFacade, IPopupFacade } from "../../layers/common/mapFacade.js";
3
+ import { IGeoChartNextConfig } from "../../types/config/unified.js";
4
+ import { IMapViewport } from "../../types/map/provider.js";
6
5
  /**
7
6
  * Hook return value
8
7
  *
@@ -10,13 +9,13 @@ import { IMapViewport } from "../../types/mapProvider.js";
10
9
  */
11
10
  export interface IUseMapInitializationResult {
12
11
  /**
13
- * MapLibre map instance (null until initialized)
12
+ * Map facade instance (null until initialized)
14
13
  */
15
- map: MapLibreMap | null;
14
+ map: IMapFacade | null;
16
15
  /**
17
16
  * Tooltip popup instance (null until initialized)
18
17
  */
19
- tooltip: Popup | null;
18
+ tooltip: IPopupFacade | null;
20
19
  /**
21
20
  * Whether map is ready for use
22
21
  */
@@ -52,5 +51,5 @@ export interface IUseMapInitializationResult {
52
51
  *
53
52
  * @internal
54
53
  */
55
- export declare function useMapInitialization(containerRef: RefObject<HTMLDivElement | null>, intl: IntlShape, config?: IGeoPushpinChartNextConfig, initialViewport?: Partial<IMapViewport> | null): IUseMapInitializationResult;
54
+ export declare function useMapInitialization(containerRef: RefObject<HTMLDivElement | null>, config?: IGeoChartNextConfig, initialViewport?: Partial<IMapViewport> | null): IUseMapInitializationResult;
56
55
  //# sourceMappingURL=useMapInitialization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMapInitialization.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapInitialization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,GAAG,IAAI,WAAW,EAAE,KAAK,EAAsB,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,GAAG,EAAE,WAAW,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,OAAO,EAAE,KAAK,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACvB;AAmBD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,oBAAoB,CAChC,YAAY,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EAC9C,IAAI,EAAE,SAAS,EACf,MAAM,CAAC,EAAE,0BAA0B,EACnC,eAAe,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,GAC/C,2BAA2B,CA0F7B"}
1
+ {"version":3,"file":"useMapInitialization.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapInitialization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAC;AAIxE,OAAO,EACH,UAAU,EACV,YAAY,EAKf,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAG3D;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,GAAG,EAAE,UAAU,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACvB;AAmBD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,oBAAoB,CAChC,YAAY,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EAC9C,MAAM,CAAC,EAAE,mBAAmB,EAC5B,eAAe,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,GAC/C,2BAA2B,CAqF7B"}
@@ -1,6 +1,8 @@
1
1
  // (C) 2025 GoodData Corporation
2
2
  import { useEffect, useMemo, useRef, useState } from "react";
3
- import { initializeMapLibreMap } from "../../features/map/initializeMap.js";
3
+ import { useIntl } from "react-intl";
4
+ import { createMapFacade, createPopupFacade, } from "../../layers/common/mapFacade.js";
5
+ import { initializeMapLibreMap } from "../../map/runtime/mapInitialization.js";
4
6
  import { generateMapLibreLocale } from "../../utils/mapLocale.js";
5
7
  /**
6
8
  * Cleanup map resources
@@ -44,48 +46,45 @@ function cleanupMapResources(map, tooltip) {
44
46
  *
45
47
  * @internal
46
48
  */
47
- export function useMapInitialization(containerRef, intl, config, initialViewport) {
49
+ export function useMapInitialization(containerRef, config, initialViewport) {
50
+ const intl = useIntl();
48
51
  const [map, setMap] = useState(null);
49
52
  const [tooltip, setTooltip] = useState(null);
50
53
  const [isMapReady, setIsMapReady] = useState(false);
51
54
  const [error, setError] = useState(null);
52
- // Refs for instance tracking and cleanup
53
55
  const mapInstanceRef = useRef(null);
54
56
  const tooltipInstanceRef = useRef(null);
55
- // Capture initial viewport config (prevents re-centering when config changes)
56
- // Prioritize initialViewport from data, then fall back to config
57
- const initialCenterRef = useRef(initialViewport?.center ?? config?.center);
58
- const initialZoomRef = useRef(initialViewport?.zoom ?? config?.zoom);
59
- const initialBoundsRef = useRef(initialViewport?.bounds);
60
- // Update initial refs if map hasn't been created yet
57
+ const initialViewportRef = useRef({
58
+ center: initialViewport?.center ?? config?.center,
59
+ zoom: initialViewport?.zoom ?? config?.zoom,
60
+ bounds: initialViewport?.bounds,
61
+ });
61
62
  useEffect(() => {
62
63
  if (!mapInstanceRef.current) {
63
- initialCenterRef.current = initialViewport?.center ?? config?.center;
64
- initialZoomRef.current = initialViewport?.zoom ?? config?.zoom;
65
- initialBoundsRef.current = initialViewport?.bounds;
64
+ initialViewportRef.current = {
65
+ center: initialViewport?.center ?? config?.center,
66
+ zoom: initialViewport?.zoom ?? config?.zoom,
67
+ bounds: initialViewport?.bounds,
68
+ };
66
69
  }
67
70
  }, [config?.center, config?.zoom, initialViewport]);
68
- // Generate locale for cooperative gestures
69
71
  const cooperativeGestures = config?.cooperativeGestures ?? true;
70
72
  const locale = useMemo(() => {
71
73
  return cooperativeGestures ? generateMapLibreLocale(intl) : undefined;
72
74
  }, [cooperativeGestures, intl]);
73
75
  const isExportMode = config?.isExportMode ?? false;
74
76
  const isViewportFrozen = Boolean(config?.viewport?.frozen);
75
- // Create and manage map instance
76
77
  useEffect(() => {
77
78
  const container = containerRef.current;
78
79
  if (!container) {
79
80
  return;
80
81
  }
81
82
  let isMounted = true;
82
- // Initialize map with captured initial viewport
83
- // Use bounds if available (calculated from data), otherwise use center/zoom
84
83
  initializeMapLibreMap({
85
84
  container,
86
- bounds: initialBoundsRef.current,
87
- center: initialCenterRef.current,
88
- zoom: initialZoomRef.current,
85
+ bounds: initialViewportRef.current.bounds,
86
+ center: initialViewportRef.current.center,
87
+ zoom: initialViewportRef.current.zoom,
89
88
  cooperativeGestures,
90
89
  interactive: !isViewportFrozen,
91
90
  preserveDrawingBuffer: isExportMode,
@@ -93,15 +92,13 @@ export function useMapInitialization(containerRef, intl, config, initialViewport
93
92
  }, locale)
94
93
  .then((result) => {
95
94
  if (isMounted) {
96
- // Store in refs and state
97
95
  mapInstanceRef.current = result.map;
98
96
  tooltipInstanceRef.current = result.tooltip;
99
- setMap(result.map);
100
- setTooltip(result.tooltip);
97
+ setMap(createMapFacade(result.map));
98
+ setTooltip(createPopupFacade(result.tooltip));
101
99
  setIsMapReady(true);
102
100
  }
103
101
  else {
104
- // Component unmounted during initialization - clean up
105
102
  cleanupMapResources(result.map, result.tooltip);
106
103
  }
107
104
  })
@@ -1 +1 @@
1
- {"version":3,"file":"useMapInitialization.js","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapInitialization.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAa,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAKxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAG5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AA6BlE;;;;;;;;;;;GAWG;AACH,SAAS,mBAAmB,CAAC,GAAuB,EAAE,OAAqB;IACvE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,GAAG,EAAE,MAAM,EAAE,CAAC;AAClB,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,oBAAoB,CAChC,YAA8C,EAC9C,IAAe,EACf,MAAmC,EACnC,eAA8C;IAE9C,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAqB,IAAI,CAAC,CAAC;IACzD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IAC3D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IAEvD,yCAAyC;IACzC,MAAM,cAAc,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAC;IACxD,MAAM,kBAAkB,GAAG,MAAM,CAAe,IAAI,CAAC,CAAC;IAEtD,8EAA8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;QAEP,OAAO,GAAG,EAAE;YACR,SAAS,GAAG,KAAK,CAAC;YAClB,aAAa,CAAC,KAAK,CAAC,CAAC;YAErB,qBAAqB;YACrB,mBAAmB,CAAC,cAAc,CAAC,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;YACxE,cAAc,CAAC,OAAO,GAAG,IAAI,CAAC;YAC9B,kBAAkB,CAAC,OAAO,GAAG,IAAI,CAAC;QACtC,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;IAElG,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;AAC/C,CAAC"}
@@ -1,6 +1,6 @@
1
- import type { Map as MapLibreMap } from "maplibre-gl";
2
1
  import { ContentRect } from "react-measure";
3
- import { IMapViewport } from "../../types/mapProvider.js";
2
+ import type { IMapFacade } from "../../layers/common/mapFacade.js";
3
+ import { IMapViewport } from "../../types/map/provider.js";
4
4
  /**
5
5
  * Handle map resize when container dimensions change
6
6
  *
@@ -20,5 +20,5 @@ import { IMapViewport } from "../../types/mapProvider.js";
20
20
  *
21
21
  * @internal
22
22
  */
23
- export declare function useMapResize(map: MapLibreMap | null, isMapReady: boolean, chartContainerRect: ContentRect | null, viewport: Partial<IMapViewport> | null): void;
23
+ export declare function useMapResize(map: IMapFacade | null, isMapReady: boolean, chartContainerRect: ContentRect | null, viewport: Partial<IMapViewport> | null): void;
24
24
  //# sourceMappingURL=useMapResize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMapResize.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapResize.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,IAAI,WAAW,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CACxB,GAAG,EAAE,WAAW,GAAG,IAAI,EACvB,UAAU,EAAE,OAAO,EACnB,kBAAkB,EAAE,WAAW,GAAG,IAAI,EACtC,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,GACvC,IAAI,CAuBN"}
1
+ {"version":3,"file":"useMapResize.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapResize.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CACxB,GAAG,EAAE,UAAU,GAAG,IAAI,EACtB,UAAU,EAAE,OAAO,EACnB,kBAAkB,EAAE,WAAW,GAAG,IAAI,EACtC,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,GACvC,IAAI,CAmBN"}
@@ -1,6 +1,6 @@
1
1
  // (C) 2025 GoodData Corporation
2
2
  import { useEffect, useRef } from "react";
3
- import { applyViewport } from "../../features/map/viewportManagement.js";
3
+ import { applyViewport } from "../../map/viewport/viewportCalculation.js";
4
4
  /**
5
5
  * Handle map resize when container dimensions change
6
6
  *
@@ -21,22 +21,18 @@ import { applyViewport } from "../../features/map/viewportManagement.js";
21
21
  * @internal
22
22
  */
23
23
  export function useMapResize(map, isMapReady, chartContainerRect, viewport) {
24
- // Track previous dimensions to detect actual changes
25
24
  const prevContainerRect = useRef(null);
26
25
  useEffect(() => {
27
26
  if (!map || !isMapReady || !chartContainerRect?.client || !viewport) {
28
27
  return;
29
28
  }
30
- // Check if dimensions actually changed (not just the object reference)
31
29
  const prev = prevContainerRect.current?.client;
32
30
  const curr = chartContainerRect.client;
33
- const hasResized = !prev || prev.width !== curr.width || prev.height !== curr.height;
31
+ const { width, height } = curr;
32
+ const hasResized = !prev || prev.width !== width || prev.height !== height;
34
33
  if (hasResized) {
35
34
  prevContainerRect.current = chartContainerRect;
36
- // Tell map to recalculate its canvas size to fit the new container dimensions
37
35
  map.resize();
38
- // Reapply viewport so fitBounds can recalculate based on new container size
39
- // Use applyViewport directly (not applyViewportSafely) since map is already loaded
40
36
  applyViewport(map, viewport, false);
41
37
  }
42
38
  }, [map, isMapReady, chartContainerRect, viewport]);
@@ -1 +1 @@
1
- {"version":3,"file":"useMapResize.js","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapResize.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGzE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,YAAY,CACxB,GAAuB,EACvB,UAAmB,EACnB,kBAAsC,EACtC,QAAsC;IAEtC,qDAAqD;IACrD,MAAM,iBAAiB,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAC;IAE3D,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,CAAC,GAAG,IAAI,CAAC,UAAU,IAAI,CAAC,kBAAkB,EAAE,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClE,OAAO;QACX,CAAC;QAED,uEAAuE;QACvE,MAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC;QAC/C,MAAM,IAAI,GAAG,kBAAkB,CAAC,MAAM,CAAC;QACvC,MAAM,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,CAAC;QAErF,IAAI,UAAU,EAAE,CAAC;YACb,iB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,CAAC;YACb,aAAa,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QACxC,CAAC;IACL,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,kBAAkB,EAAE,QAAQ,CAAC,CAAC,CAAC;AACxD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { IGeoChartNextConfig } from "../../types/config/unified.js";
2
+ import { IGeoChartNextResolvedProps } from "../../types/props/geoChartNext/internal.js";
3
+ import { IGeoChartNextProps } from "../../types/props/geoChartNext/public.js";
4
+ /**
5
+ * Resolves placeholders, applies defaults, and derives chart type for GeoChartNext.
6
+ *
7
+ * Pipeline: public props → placeholder resolution → defaults → resolved type → executions upstream.
8
+ *
9
+ * @param props - GeoChartNext props potentially containing placeholders
10
+ * @returns Resolved props with placeholders replaced, defaults applied, and chart type derived
11
+ *
12
+ * @internal
13
+ */
14
+ export declare function useResolvedGeoChartNextProps(props: IGeoChartNextProps): IGeoChartNextResolvedProps;
15
+ /**
16
+ * Applies shared + layer-specific config defaults.
17
+ *
18
+ * @internal
19
+ */
20
+ export declare function applyGeoChartNextConfigDefaults(config: IGeoChartNextConfig | undefined): IGeoChartNextConfig;
21
+ //# sourceMappingURL=useResolvedGeoChartNextProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResolvedGeoChartNextProps.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/props/useResolvedGeoChartNextProps.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAE9E;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,kBAAkB,GAAG,0BAA0B,CAiBlG;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC3C,MAAM,EAAE,mBAAmB,GAAG,SAAS,GACxC,mBAAmB,CAErB"}