@cellarnode/ui 0.1.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 (378) hide show
  1. package/dist/chat/chat-api.d.ts +14 -0
  2. package/dist/chat/chat-api.d.ts.map +1 -0
  3. package/dist/chat/chat-api.js +36 -0
  4. package/dist/chat/chat-api.js.map +1 -0
  5. package/dist/chat/chat-toggle-button.d.ts +8 -0
  6. package/dist/chat/chat-toggle-button.d.ts.map +1 -0
  7. package/dist/chat/chat-toggle-button.js +8 -0
  8. package/dist/chat/chat-toggle-button.js.map +1 -0
  9. package/dist/chat/chat-ws.d.ts +61 -0
  10. package/dist/chat/chat-ws.d.ts.map +1 -0
  11. package/dist/chat/chat-ws.js +217 -0
  12. package/dist/chat/chat-ws.js.map +1 -0
  13. package/dist/chat/communication-hub-widget.d.ts +21 -0
  14. package/dist/chat/communication-hub-widget.d.ts.map +1 -0
  15. package/dist/chat/communication-hub-widget.js +49 -0
  16. package/dist/chat/communication-hub-widget.js.map +1 -0
  17. package/dist/chat/communication-panel.d.ts +3 -0
  18. package/dist/chat/communication-panel.d.ts.map +1 -0
  19. package/dist/chat/communication-panel.js +34 -0
  20. package/dist/chat/communication-panel.js.map +1 -0
  21. package/dist/chat/index.d.ts +17 -0
  22. package/dist/chat/index.d.ts.map +1 -0
  23. package/dist/chat/index.js +11 -0
  24. package/dist/chat/index.js.map +1 -0
  25. package/dist/chat/messenger-layout.d.ts +25 -0
  26. package/dist/chat/messenger-layout.d.ts.map +1 -0
  27. package/dist/chat/messenger-layout.js +70 -0
  28. package/dist/chat/messenger-layout.js.map +1 -0
  29. package/dist/chat/negotiation-event-card.d.ts +9 -0
  30. package/dist/chat/negotiation-event-card.d.ts.map +1 -0
  31. package/dist/chat/negotiation-event-card.js +39 -0
  32. package/dist/chat/negotiation-event-card.js.map +1 -0
  33. package/dist/chat/timeline-utils.d.ts +7 -0
  34. package/dist/chat/timeline-utils.d.ts.map +1 -0
  35. package/dist/chat/timeline-utils.js +40 -0
  36. package/dist/chat/timeline-utils.js.map +1 -0
  37. package/dist/chat/types.d.ts +132 -0
  38. package/dist/chat/types.d.ts.map +1 -0
  39. package/dist/chat/types.js +3 -0
  40. package/dist/chat/types.js.map +1 -0
  41. package/dist/chat/unified-timeline.d.ts +13 -0
  42. package/dist/chat/unified-timeline.d.ts.map +1 -0
  43. package/dist/chat/unified-timeline.js +97 -0
  44. package/dist/chat/unified-timeline.js.map +1 -0
  45. package/dist/chat/use-chat.d.ts +10 -0
  46. package/dist/chat/use-chat.d.ts.map +1 -0
  47. package/dist/chat/use-chat.js +280 -0
  48. package/dist/chat/use-chat.js.map +1 -0
  49. package/dist/components/accordion.d.ts +8 -0
  50. package/dist/components/accordion.d.ts.map +1 -0
  51. package/dist/components/accordion.js +19 -0
  52. package/dist/components/accordion.js.map +1 -0
  53. package/dist/components/alert.d.ts +29 -0
  54. package/dist/components/alert.d.ts.map +1 -0
  55. package/dist/components/alert.js +31 -0
  56. package/dist/components/alert.js.map +1 -0
  57. package/dist/components/animated-list.d.ts +20 -0
  58. package/dist/components/animated-list.d.ts.map +1 -0
  59. package/dist/components/animated-list.js +50 -0
  60. package/dist/components/animated-list.js.map +1 -0
  61. package/dist/components/avatar.d.ts +19 -0
  62. package/dist/components/avatar.d.ts.map +1 -0
  63. package/dist/components/avatar.js +18 -0
  64. package/dist/components/avatar.js.map +1 -0
  65. package/dist/components/badge.d.ts +39 -0
  66. package/dist/components/badge.d.ts.map +1 -0
  67. package/dist/components/badge.js +35 -0
  68. package/dist/components/badge.js.map +1 -0
  69. package/dist/components/button.d.ts +64 -0
  70. package/dist/components/button.d.ts.map +1 -0
  71. package/dist/components/button.js +174 -0
  72. package/dist/components/button.js.map +1 -0
  73. package/dist/components/button.stories.d.ts +13 -0
  74. package/dist/components/button.stories.d.ts.map +1 -0
  75. package/dist/components/button.stories.js +48 -0
  76. package/dist/components/button.stories.js.map +1 -0
  77. package/dist/components/card.d.ts +9 -0
  78. package/dist/components/card.d.ts.map +1 -0
  79. package/dist/components/card.js +17 -0
  80. package/dist/components/card.js.map +1 -0
  81. package/dist/components/checkbox.d.ts +37 -0
  82. package/dist/components/checkbox.d.ts.map +1 -0
  83. package/dist/components/checkbox.js +84 -0
  84. package/dist/components/checkbox.js.map +1 -0
  85. package/dist/components/combobox.d.ts +20 -0
  86. package/dist/components/combobox.d.ts.map +1 -0
  87. package/dist/components/combobox.js +87 -0
  88. package/dist/components/combobox.js.map +1 -0
  89. package/dist/components/command.d.ts +12 -0
  90. package/dist/components/command.d.ts.map +1 -0
  91. package/dist/components/command.js +31 -0
  92. package/dist/components/command.js.map +1 -0
  93. package/dist/components/description-list.d.ts +4 -0
  94. package/dist/components/description-list.d.ts.map +1 -0
  95. package/dist/components/description-list.js +12 -0
  96. package/dist/components/description-list.js.map +1 -0
  97. package/dist/components/dialog.d.ts +30 -0
  98. package/dist/components/dialog.d.ts.map +1 -0
  99. package/dist/components/dialog.js +32 -0
  100. package/dist/components/dialog.js.map +1 -0
  101. package/dist/components/divider.d.ts +4 -0
  102. package/dist/components/divider.d.ts.map +1 -0
  103. package/dist/components/divider.js +6 -0
  104. package/dist/components/divider.js.map +1 -0
  105. package/dist/components/drawer.d.ts +23 -0
  106. package/dist/components/drawer.d.ts.map +1 -0
  107. package/dist/components/drawer.js +23 -0
  108. package/dist/components/drawer.js.map +1 -0
  109. package/dist/components/dropdown-menu.d.ts +26 -0
  110. package/dist/components/dropdown-menu.d.ts.map +1 -0
  111. package/dist/components/dropdown-menu.js +52 -0
  112. package/dist/components/dropdown-menu.js.map +1 -0
  113. package/dist/components/dropdown.d.ts +37 -0
  114. package/dist/components/dropdown.d.ts.map +1 -0
  115. package/dist/components/dropdown.js +79 -0
  116. package/dist/components/dropdown.js.map +1 -0
  117. package/dist/components/fieldset.d.ts +22 -0
  118. package/dist/components/fieldset.d.ts.map +1 -0
  119. package/dist/components/fieldset.js +25 -0
  120. package/dist/components/fieldset.js.map +1 -0
  121. package/dist/components/form.d.ts +25 -0
  122. package/dist/components/form.d.ts.map +1 -0
  123. package/dist/components/form.js +60 -0
  124. package/dist/components/form.js.map +1 -0
  125. package/dist/components/heading.d.ts +7 -0
  126. package/dist/components/heading.d.ts.map +1 -0
  127. package/dist/components/heading.js +11 -0
  128. package/dist/components/heading.js.map +1 -0
  129. package/dist/components/input.d.ts +11 -0
  130. package/dist/components/input.d.ts.map +1 -0
  131. package/dist/components/input.js +57 -0
  132. package/dist/components/input.js.map +1 -0
  133. package/dist/components/kanban-board.d.ts +78 -0
  134. package/dist/components/kanban-board.d.ts.map +1 -0
  135. package/dist/components/kanban-board.js +18 -0
  136. package/dist/components/kanban-board.js.map +1 -0
  137. package/dist/components/kanban-board.stories.d.ts +10 -0
  138. package/dist/components/kanban-board.stories.d.ts.map +1 -0
  139. package/dist/components/kanban-board.stories.js +125 -0
  140. package/dist/components/kanban-board.stories.js.map +1 -0
  141. package/dist/components/kanban-card.d.ts +8 -0
  142. package/dist/components/kanban-card.d.ts.map +1 -0
  143. package/dist/components/kanban-card.js +13 -0
  144. package/dist/components/kanban-card.js.map +1 -0
  145. package/dist/components/kanban-dnd-board.d.ts +8 -0
  146. package/dist/components/kanban-dnd-board.d.ts.map +1 -0
  147. package/dist/components/kanban-dnd-board.js +104 -0
  148. package/dist/components/kanban-dnd-board.js.map +1 -0
  149. package/dist/components/label.d.ts +5 -0
  150. package/dist/components/label.d.ts.map +1 -0
  151. package/dist/components/label.js +9 -0
  152. package/dist/components/label.js.map +1 -0
  153. package/dist/components/link.d.ts +12 -0
  154. package/dist/components/link.d.ts.map +1 -0
  155. package/dist/components/link.js +14 -0
  156. package/dist/components/link.js.map +1 -0
  157. package/dist/components/listbox.d.ts +16 -0
  158. package/dist/components/listbox.d.ts.map +1 -0
  159. package/dist/components/listbox.js +88 -0
  160. package/dist/components/listbox.js.map +1 -0
  161. package/dist/components/pagination.d.ts +18 -0
  162. package/dist/components/pagination.d.ts.map +1 -0
  163. package/dist/components/pagination.js +22 -0
  164. package/dist/components/pagination.js.map +1 -0
  165. package/dist/components/popover.d.ts +11 -0
  166. package/dist/components/popover.d.ts.map +1 -0
  167. package/dist/components/popover.js +27 -0
  168. package/dist/components/popover.js.map +1 -0
  169. package/dist/components/radio.d.ts +38 -0
  170. package/dist/components/radio.d.ts.map +1 -0
  171. package/dist/components/radio.js +87 -0
  172. package/dist/components/radio.js.map +1 -0
  173. package/dist/components/scroll-area.d.ts +6 -0
  174. package/dist/components/scroll-area.d.ts.map +1 -0
  175. package/dist/components/scroll-area.js +14 -0
  176. package/dist/components/scroll-area.js.map +1 -0
  177. package/dist/components/select.d.ts +6 -0
  178. package/dist/components/select.d.ts.map +1 -0
  179. package/dist/components/select.js +41 -0
  180. package/dist/components/select.js.map +1 -0
  181. package/dist/components/separator.d.ts +5 -0
  182. package/dist/components/separator.d.ts.map +1 -0
  183. package/dist/components/separator.js +9 -0
  184. package/dist/components/separator.js.map +1 -0
  185. package/dist/components/shadcn-badge.d.ts +10 -0
  186. package/dist/components/shadcn-badge.d.ts.map +1 -0
  187. package/dist/components/shadcn-badge.js +25 -0
  188. package/dist/components/shadcn-badge.js.map +1 -0
  189. package/dist/components/shadcn-button.d.ts +11 -0
  190. package/dist/components/shadcn-button.d.ts.map +1 -0
  191. package/dist/components/shadcn-button.js +36 -0
  192. package/dist/components/shadcn-button.js.map +1 -0
  193. package/dist/components/shadcn-dialog.d.ts +18 -0
  194. package/dist/components/shadcn-dialog.d.ts.map +1 -0
  195. package/dist/components/shadcn-dialog.js +37 -0
  196. package/dist/components/shadcn-dialog.js.map +1 -0
  197. package/dist/components/shadcn-input.d.ts +4 -0
  198. package/dist/components/shadcn-input.d.ts.map +1 -0
  199. package/dist/components/shadcn-input.js +7 -0
  200. package/dist/components/shadcn-input.js.map +1 -0
  201. package/dist/components/shadcn-select.d.ts +14 -0
  202. package/dist/components/shadcn-select.d.ts.map +1 -0
  203. package/dist/components/shadcn-select.js +32 -0
  204. package/dist/components/shadcn-select.js.map +1 -0
  205. package/dist/components/shadcn-textarea.d.ts +4 -0
  206. package/dist/components/shadcn-textarea.d.ts.map +1 -0
  207. package/dist/components/shadcn-textarea.js +7 -0
  208. package/dist/components/shadcn-textarea.js.map +1 -0
  209. package/dist/components/sheet.d.ts +26 -0
  210. package/dist/components/sheet.d.ts.map +1 -0
  211. package/dist/components/sheet.js +37 -0
  212. package/dist/components/sheet.js.map +1 -0
  213. package/dist/components/sidebar.d.ts +68 -0
  214. package/dist/components/sidebar.d.ts.map +1 -0
  215. package/dist/components/sidebar.js +208 -0
  216. package/dist/components/sidebar.js.map +1 -0
  217. package/dist/components/skeleton.d.ts +3 -0
  218. package/dist/components/skeleton.d.ts.map +1 -0
  219. package/dist/components/skeleton.js +7 -0
  220. package/dist/components/skeleton.js.map +1 -0
  221. package/dist/components/slider.d.ts +5 -0
  222. package/dist/components/slider.d.ts.map +1 -0
  223. package/dist/components/slider.js +8 -0
  224. package/dist/components/slider.js.map +1 -0
  225. package/dist/components/sonner.d.ts +11 -0
  226. package/dist/components/sonner.d.ts.map +1 -0
  227. package/dist/components/sonner.js +14 -0
  228. package/dist/components/sonner.js.map +1 -0
  229. package/dist/components/switch.d.ts +30 -0
  230. package/dist/components/switch.d.ts.map +1 -0
  231. package/dist/components/switch.js +68 -0
  232. package/dist/components/switch.js.map +1 -0
  233. package/dist/components/table.d.ts +17 -0
  234. package/dist/components/table.d.ts.map +1 -0
  235. package/dist/components/table.js +41 -0
  236. package/dist/components/table.js.map +1 -0
  237. package/dist/components/tabs.d.ts +12 -0
  238. package/dist/components/tabs.d.ts.map +1 -0
  239. package/dist/components/tabs.js +30 -0
  240. package/dist/components/tabs.js.map +1 -0
  241. package/dist/components/text.d.ts +6 -0
  242. package/dist/components/text.d.ts.map +1 -0
  243. package/dist/components/text.js +16 -0
  244. package/dist/components/text.js.map +1 -0
  245. package/dist/components/textarea.d.ts +8 -0
  246. package/dist/components/textarea.d.ts.map +1 -0
  247. package/dist/components/textarea.js +38 -0
  248. package/dist/components/textarea.js.map +1 -0
  249. package/dist/components/toast.d.ts +16 -0
  250. package/dist/components/toast.d.ts.map +1 -0
  251. package/dist/components/toast.js +34 -0
  252. package/dist/components/toast.js.map +1 -0
  253. package/dist/components/toaster.d.ts +2 -0
  254. package/dist/components/toaster.d.ts.map +1 -0
  255. package/dist/components/toaster.js +10 -0
  256. package/dist/components/toaster.js.map +1 -0
  257. package/dist/components/tooltip.d.ts +8 -0
  258. package/dist/components/tooltip.d.ts.map +1 -0
  259. package/dist/components/tooltip.js +11 -0
  260. package/dist/components/tooltip.js.map +1 -0
  261. package/dist/components/use-toast.d.ts +3 -0
  262. package/dist/components/use-toast.d.ts.map +1 -0
  263. package/dist/components/use-toast.js +3 -0
  264. package/dist/components/use-toast.js.map +1 -0
  265. package/dist/globe/data/country-geo.d.ts +15 -0
  266. package/dist/globe/data/country-geo.d.ts.map +1 -0
  267. package/dist/globe/data/country-geo.js +81 -0
  268. package/dist/globe/data/country-geo.js.map +1 -0
  269. package/dist/globe/electron-arc.d.ts +30 -0
  270. package/dist/globe/electron-arc.d.ts.map +1 -0
  271. package/dist/globe/electron-arc.js +119 -0
  272. package/dist/globe/electron-arc.js.map +1 -0
  273. package/dist/globe/globe-theme.d.ts +34 -0
  274. package/dist/globe/globe-theme.d.ts.map +1 -0
  275. package/dist/globe/globe-theme.js +118 -0
  276. package/dist/globe/globe-theme.js.map +1 -0
  277. package/dist/globe/globe-types.d.ts +42 -0
  278. package/dist/globe/globe-types.d.ts.map +1 -0
  279. package/dist/globe/globe-types.js +5 -0
  280. package/dist/globe/globe-types.js.map +1 -0
  281. package/dist/globe/globe-view.d.ts +27 -0
  282. package/dist/globe/globe-view.d.ts.map +1 -0
  283. package/dist/globe/globe-view.js +601 -0
  284. package/dist/globe/globe-view.js.map +1 -0
  285. package/dist/globe/globe-view.stories.d.ts +42 -0
  286. package/dist/globe/globe-view.stories.d.ts.map +1 -0
  287. package/dist/globe/globe-view.stories.js +319 -0
  288. package/dist/globe/globe-view.stories.js.map +1 -0
  289. package/dist/globe/index.d.ts +12 -0
  290. package/dist/globe/index.d.ts.map +1 -0
  291. package/dist/globe/index.js +7 -0
  292. package/dist/globe/index.js.map +1 -0
  293. package/dist/globe/map/country-code-map.d.ts +10 -0
  294. package/dist/globe/map/country-code-map.d.ts.map +1 -0
  295. package/dist/globe/map/country-code-map.js +15 -0
  296. package/dist/globe/map/country-code-map.js.map +1 -0
  297. package/dist/globe/map/map-geometry.d.ts +10 -0
  298. package/dist/globe/map/map-geometry.d.ts.map +1 -0
  299. package/dist/globe/map/map-geometry.js +57 -0
  300. package/dist/globe/map/map-geometry.js.map +1 -0
  301. package/dist/globe/map/map-materials.d.ts +8 -0
  302. package/dist/globe/map/map-materials.d.ts.map +1 -0
  303. package/dist/globe/map/map-materials.js +32 -0
  304. package/dist/globe/map/map-materials.js.map +1 -0
  305. package/dist/globe/map/map-projection.d.ts +11 -0
  306. package/dist/globe/map/map-projection.d.ts.map +1 -0
  307. package/dist/globe/map/map-projection.js +17 -0
  308. package/dist/globe/map/map-projection.js.map +1 -0
  309. package/dist/globe/scene-extras.d.ts +10 -0
  310. package/dist/globe/scene-extras.d.ts.map +1 -0
  311. package/dist/globe/scene-extras.js +69 -0
  312. package/dist/globe/scene-extras.js.map +1 -0
  313. package/dist/hooks/use-kanban-dnd.d.ts +23 -0
  314. package/dist/hooks/use-kanban-dnd.d.ts.map +1 -0
  315. package/dist/hooks/use-kanban-dnd.js +22 -0
  316. package/dist/hooks/use-kanban-dnd.js.map +1 -0
  317. package/dist/hooks/use-mobile.d.ts +2 -0
  318. package/dist/hooks/use-mobile.d.ts.map +1 -0
  319. package/dist/hooks/use-mobile.js +16 -0
  320. package/dist/hooks/use-mobile.js.map +1 -0
  321. package/dist/hooks/use-toast.d.ts +45 -0
  322. package/dist/hooks/use-toast.d.ts.map +1 -0
  323. package/dist/hooks/use-toast.js +125 -0
  324. package/dist/hooks/use-toast.js.map +1 -0
  325. package/dist/index.d.ts +58 -0
  326. package/dist/index.d.ts.map +1 -0
  327. package/dist/index.js +68 -0
  328. package/dist/index.js.map +1 -0
  329. package/dist/lib/currencies.d.ts +33 -0
  330. package/dist/lib/currencies.d.ts.map +1 -0
  331. package/dist/lib/currencies.js +13 -0
  332. package/dist/lib/currencies.js.map +1 -0
  333. package/dist/lib/kanban-transitions.d.ts +12 -0
  334. package/dist/lib/kanban-transitions.d.ts.map +1 -0
  335. package/dist/lib/kanban-transitions.js +13 -0
  336. package/dist/lib/kanban-transitions.js.map +1 -0
  337. package/dist/lib/semantic-tones.d.ts +4 -0
  338. package/dist/lib/semantic-tones.d.ts.map +1 -0
  339. package/dist/lib/semantic-tones.js +35 -0
  340. package/dist/lib/semantic-tones.js.map +1 -0
  341. package/dist/lib/utils.d.ts +3 -0
  342. package/dist/lib/utils.d.ts.map +1 -0
  343. package/dist/lib/utils.js +6 -0
  344. package/dist/lib/utils.js.map +1 -0
  345. package/dist/offer/attachments-folder.d.ts +13 -0
  346. package/dist/offer/attachments-folder.d.ts.map +1 -0
  347. package/dist/offer/attachments-folder.js +20 -0
  348. package/dist/offer/attachments-folder.js.map +1 -0
  349. package/dist/offer/confirm-action-dialog.d.ts +18 -0
  350. package/dist/offer/confirm-action-dialog.d.ts.map +1 -0
  351. package/dist/offer/confirm-action-dialog.js +57 -0
  352. package/dist/offer/confirm-action-dialog.js.map +1 -0
  353. package/dist/offer/index.d.ts +11 -0
  354. package/dist/offer/index.d.ts.map +1 -0
  355. package/dist/offer/index.js +6 -0
  356. package/dist/offer/index.js.map +1 -0
  357. package/dist/offer/inline-counter-form.d.ts +19 -0
  358. package/dist/offer/inline-counter-form.d.ts.map +1 -0
  359. package/dist/offer/inline-counter-form.js +59 -0
  360. package/dist/offer/inline-counter-form.js.map +1 -0
  361. package/dist/offer/negotiation-event-card.d.ts +9 -0
  362. package/dist/offer/negotiation-event-card.d.ts.map +1 -0
  363. package/dist/offer/negotiation-event-card.js +39 -0
  364. package/dist/offer/negotiation-event-card.js.map +1 -0
  365. package/dist/offer/offer-status-badge.d.ts +8 -0
  366. package/dist/offer/offer-status-badge.d.ts.map +1 -0
  367. package/dist/offer/offer-status-badge.js +35 -0
  368. package/dist/offer/offer-status-badge.js.map +1 -0
  369. package/dist/offer/types.d.ts +43 -0
  370. package/dist/offer/types.d.ts.map +1 -0
  371. package/dist/offer/types.js +2 -0
  372. package/dist/offer/types.js.map +1 -0
  373. package/dist/theme/index.d.ts +2 -0
  374. package/dist/theme/index.d.ts.map +1 -0
  375. package/dist/theme/index.js +2 -0
  376. package/dist/theme/index.js.map +1 -0
  377. package/package.json +166 -0
  378. package/src/theme/tokens.css +475 -0
@@ -0,0 +1,42 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { GlobeView } from "./globe-view";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof GlobeView;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ argTypes: {
11
+ preset: {
12
+ control: "select";
13
+ options: string[];
14
+ };
15
+ electronFrequency: {
16
+ control: {
17
+ type: "range";
18
+ min: number;
19
+ max: number;
20
+ step: number;
21
+ };
22
+ };
23
+ autoRotate: {
24
+ control: "boolean";
25
+ };
26
+ height: {
27
+ control: "text";
28
+ };
29
+ };
30
+ };
31
+ export default meta;
32
+ type Story = StoryObj<typeof meta>;
33
+ export declare const DarkTeal: Story;
34
+ export declare const LightAiry: Story;
35
+ export declare const WarmNeutral: Story;
36
+ export declare const WithOrganizations: Story;
37
+ export declare const DemandHeatmap: Story;
38
+ export declare const WithCountrySelection: Story;
39
+ export declare const WithPinnedArc: Story;
40
+ export declare const AllDataLayers: Story;
41
+ export declare const SlowFeed: Story;
42
+ //# sourceMappingURL=globe-view.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globe-view.stories.d.ts","sourceRoot":"","sources":["../../src/globe/globe-view.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AA8LzC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAMnC,eAAO,MAAM,QAAQ,EAAE,KAatB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAavB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAczB,CAAC;AAMF,eAAO,MAAM,iBAAiB,EAAE,KAc/B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAc3B,CAAC;AAMF,eAAO,MAAM,oBAAoB,EAAE,KAelC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAe3B,CAAC;AAMF,eAAO,MAAM,aAAa,EAAE,KAgB3B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAC"}
@@ -0,0 +1,319 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { GlobeView } from "./globe-view";
3
+ // ---------------------------------------------------------------------------
4
+ // Mock data — realistic beverage trade flows
5
+ // ---------------------------------------------------------------------------
6
+ const MOCK_ARCS = [
7
+ {
8
+ id: "za-sg",
9
+ originLat: -33.9,
10
+ originLng: 18.4,
11
+ destLat: 1.35,
12
+ destLng: 103.8,
13
+ value: 6,
14
+ category: "primary",
15
+ label: "ZA \u2192 SG \u00b7 Asia-Pacific Beverage Exchange",
16
+ metadata: { originCountryCode: "ZA", destCountryCode: "SG" },
17
+ },
18
+ {
19
+ id: "it-ar",
20
+ originLat: 41.9,
21
+ originLng: 12.5,
22
+ destLat: -34.6,
23
+ destLng: -58.4,
24
+ value: 5,
25
+ category: "primary",
26
+ label: "IT \u2192 AR \u00b7 South American Wine Salon",
27
+ metadata: { originCountryCode: "IT", destCountryCode: "AR" },
28
+ },
29
+ {
30
+ id: "fr-us",
31
+ originLat: 46.2,
32
+ originLng: 2.2,
33
+ destLat: 38.9,
34
+ destLng: -77.0,
35
+ value: 8,
36
+ category: "primary",
37
+ label: "FR \u2192 US \u00b7 North American Wine & Spirits",
38
+ metadata: { originCountryCode: "FR", destCountryCode: "US" },
39
+ },
40
+ {
41
+ id: "es-sg",
42
+ originLat: 40.4,
43
+ originLng: -3.7,
44
+ destLat: 1.35,
45
+ destLng: 103.8,
46
+ value: 4,
47
+ category: "primary",
48
+ label: "ES \u2192 SG \u00b7 Asia-Pacific Beverage Exchange",
49
+ metadata: { originCountryCode: "ES", destCountryCode: "SG" },
50
+ },
51
+ {
52
+ id: "pt-au",
53
+ originLat: 38.7,
54
+ originLng: -9.1,
55
+ destLat: -33.9,
56
+ destLng: 151.2,
57
+ value: 5,
58
+ category: "secondary",
59
+ label: "PT \u2192 AU \u00b7 Dan Murphy\u2019s",
60
+ metadata: { originCountryCode: "PT", destCountryCode: "AU" },
61
+ },
62
+ {
63
+ id: "nz-au",
64
+ originLat: -41.3,
65
+ originLng: 174.8,
66
+ destLat: -33.9,
67
+ destLng: 151.2,
68
+ value: 5,
69
+ category: "secondary",
70
+ label: "NZ \u2192 AU \u00b7 Dan Murphy\u2019s",
71
+ metadata: { originCountryCode: "NZ", destCountryCode: "AU" },
72
+ },
73
+ {
74
+ id: "de-jp",
75
+ originLat: 51.2,
76
+ originLng: 10.4,
77
+ destLat: 35.7,
78
+ destLng: 139.7,
79
+ value: 3,
80
+ category: "primary",
81
+ label: "DE \u2192 JP \u00b7 Tokyo Wine Fair",
82
+ metadata: { originCountryCode: "DE", destCountryCode: "JP" },
83
+ },
84
+ {
85
+ id: "cl-gb",
86
+ originLat: -33.4,
87
+ originLng: -70.7,
88
+ destLat: 51.5,
89
+ destLng: -0.1,
90
+ value: 7,
91
+ category: "primary",
92
+ label: "CL \u2192 GB \u00b7 London International Wine Fair",
93
+ metadata: { originCountryCode: "CL", destCountryCode: "GB" },
94
+ },
95
+ ];
96
+ const MOCK_POINTS = [
97
+ {
98
+ id: "sg",
99
+ lat: 1.35,
100
+ lng: 103.8,
101
+ value: 12,
102
+ label: "Singapore",
103
+ metadata: { countryCode: "SG", producerCount: 2, importerCount: 10 },
104
+ },
105
+ {
106
+ id: "au",
107
+ lat: -33.9,
108
+ lng: 151.2,
109
+ value: 8,
110
+ label: "Australia",
111
+ metadata: { countryCode: "AU", producerCount: 5, importerCount: 3 },
112
+ },
113
+ {
114
+ id: "us",
115
+ lat: 38.9,
116
+ lng: -77.0,
117
+ value: 15,
118
+ label: "United States",
119
+ metadata: { countryCode: "US", producerCount: 8, importerCount: 7 },
120
+ },
121
+ {
122
+ id: "gb",
123
+ lat: 51.5,
124
+ lng: -0.1,
125
+ value: 10,
126
+ label: "United Kingdom",
127
+ metadata: { countryCode: "GB", producerCount: 3, importerCount: 7 },
128
+ },
129
+ {
130
+ id: "jp",
131
+ lat: 35.7,
132
+ lng: 139.7,
133
+ value: 6,
134
+ label: "Japan",
135
+ metadata: { countryCode: "JP", producerCount: 1, importerCount: 5 },
136
+ },
137
+ ];
138
+ const MOCK_COUNTRY_DATA = [
139
+ {
140
+ countryCode: "SG",
141
+ value: 0.9,
142
+ label: "Singapore",
143
+ metadata: { opportunityCount: 47, openCount: 47, type: "demand" },
144
+ },
145
+ {
146
+ countryCode: "US",
147
+ value: 0.7,
148
+ label: "United States",
149
+ metadata: { opportunityCount: 35, openCount: 28, type: "demand" },
150
+ },
151
+ {
152
+ countryCode: "GB",
153
+ value: 0.6,
154
+ label: "United Kingdom",
155
+ metadata: { opportunityCount: 30, openCount: 22, type: "demand" },
156
+ },
157
+ {
158
+ countryCode: "AU",
159
+ value: 0.5,
160
+ label: "Australia",
161
+ metadata: { opportunityCount: 25, openCount: 20, type: "demand" },
162
+ },
163
+ {
164
+ countryCode: "JP",
165
+ value: 0.4,
166
+ label: "Japan",
167
+ metadata: { opportunityCount: 18, openCount: 15, type: "demand" },
168
+ },
169
+ {
170
+ countryCode: "AR",
171
+ value: 0.35,
172
+ label: "Argentina",
173
+ metadata: { opportunityCount: 15, openCount: 12, type: "demand" },
174
+ },
175
+ {
176
+ countryCode: "FI",
177
+ value: 0.8,
178
+ label: "Finland",
179
+ metadata: { opportunityCount: 42, openCount: 42, type: "demand" },
180
+ },
181
+ ];
182
+ // ---------------------------------------------------------------------------
183
+ // Meta
184
+ // ---------------------------------------------------------------------------
185
+ const meta = {
186
+ title: "Globe/GlobeView",
187
+ component: GlobeView,
188
+ tags: ["autodocs"],
189
+ parameters: {
190
+ layout: "fullscreen",
191
+ },
192
+ argTypes: {
193
+ preset: {
194
+ control: "select",
195
+ options: ["darkTeal", "lightAiry", "warmNeutral"],
196
+ },
197
+ electronFrequency: {
198
+ control: { type: "range", min: 500, max: 5000, step: 100 },
199
+ },
200
+ autoRotate: { control: "boolean" },
201
+ height: { control: "text" },
202
+ },
203
+ };
204
+ export default meta;
205
+ // ---------------------------------------------------------------------------
206
+ // Theme preset stories
207
+ // ---------------------------------------------------------------------------
208
+ export const DarkTeal = {
209
+ args: {
210
+ preset: "darkTeal",
211
+ arcs: MOCK_ARCS,
212
+ height: "600px",
213
+ },
214
+ decorators: [
215
+ (Story) => (_jsx("div", { style: { background: "#080e18", padding: 0 }, children: _jsx(Story, {}) })),
216
+ ],
217
+ };
218
+ export const LightAiry = {
219
+ args: {
220
+ preset: "lightAiry",
221
+ arcs: MOCK_ARCS,
222
+ height: "600px",
223
+ },
224
+ decorators: [
225
+ (Story) => (_jsx("div", { style: { background: "#f8fafc", padding: 0 }, children: _jsx(Story, {}) })),
226
+ ],
227
+ };
228
+ export const WarmNeutral = {
229
+ args: {
230
+ preset: "warmNeutral",
231
+ arcs: MOCK_ARCS,
232
+ countryData: MOCK_COUNTRY_DATA,
233
+ height: "600px",
234
+ },
235
+ decorators: [
236
+ (Story) => (_jsx("div", { style: { background: "#0f172a", padding: 0 }, children: _jsx(Story, {}) })),
237
+ ],
238
+ };
239
+ // ---------------------------------------------------------------------------
240
+ // Data layer stories
241
+ // ---------------------------------------------------------------------------
242
+ export const WithOrganizations = {
243
+ name: "Organizations Mode",
244
+ args: {
245
+ preset: "darkTeal",
246
+ points: MOCK_POINTS,
247
+ height: "600px",
248
+ },
249
+ decorators: [
250
+ (Story) => (_jsx("div", { style: { background: "#080e18" }, children: _jsx(Story, {}) })),
251
+ ],
252
+ };
253
+ export const DemandHeatmap = {
254
+ name: "Demand Heatmap",
255
+ args: {
256
+ preset: "darkTeal",
257
+ countryData: MOCK_COUNTRY_DATA,
258
+ height: "600px",
259
+ },
260
+ decorators: [
261
+ (Story) => (_jsx("div", { style: { background: "#080e18" }, children: _jsx(Story, {}) })),
262
+ ],
263
+ };
264
+ // ---------------------------------------------------------------------------
265
+ // Selection / interaction stories
266
+ // ---------------------------------------------------------------------------
267
+ export const WithCountrySelection = {
268
+ name: "Country Selected (SG)",
269
+ args: {
270
+ preset: "darkTeal",
271
+ arcs: MOCK_ARCS,
272
+ selectedCountryCode: "SG",
273
+ height: "600px",
274
+ },
275
+ decorators: [
276
+ (Story) => (_jsx("div", { style: { background: "#080e18" }, children: _jsx(Story, {}) })),
277
+ ],
278
+ };
279
+ export const WithPinnedArc = {
280
+ name: "Pinned Flow (FR \u2192 US)",
281
+ args: {
282
+ preset: "darkTeal",
283
+ arcs: MOCK_ARCS,
284
+ selectedArcId: "fr-us",
285
+ height: "600px",
286
+ },
287
+ decorators: [
288
+ (Story) => (_jsx("div", { style: { background: "#080e18" }, children: _jsx(Story, {}) })),
289
+ ],
290
+ };
291
+ // ---------------------------------------------------------------------------
292
+ // Combined / tuning stories
293
+ // ---------------------------------------------------------------------------
294
+ export const AllDataLayers = {
295
+ name: "All Layers Combined",
296
+ args: {
297
+ preset: "darkTeal",
298
+ arcs: MOCK_ARCS,
299
+ points: MOCK_POINTS,
300
+ countryData: MOCK_COUNTRY_DATA,
301
+ height: "600px",
302
+ },
303
+ decorators: [
304
+ (Story) => (_jsx("div", { style: { background: "#080e18" }, children: _jsx(Story, {}) })),
305
+ ],
306
+ };
307
+ export const SlowFeed = {
308
+ name: "Slow Feed (5s)",
309
+ args: {
310
+ preset: "darkTeal",
311
+ arcs: MOCK_ARCS,
312
+ electronFrequency: 5000,
313
+ height: "600px",
314
+ },
315
+ decorators: [
316
+ (Story) => (_jsx("div", { style: { background: "#080e18" }, children: _jsx(Story, {}) })),
317
+ ],
318
+ };
319
+ //# sourceMappingURL=globe-view.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globe-view.stories.js","sourceRoot":"","sources":["../../src/globe/globe-view.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,8EAA8E;AAC9E,6CAA6C;AAC7C,8EAA8E;AAE9E,MAAM,SAAS,GAAe;IAC5B;QACE,EAAE,EAAE,OAAO;QACX,SAAS,EAAE,CAAC,IAAI;QAChB,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,CAAC;QACR,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,oDAAoD;QAC3D,QAAQ,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE;KAC7D;IACD;QACE,EAAE,EAAE,OAAO;QACX,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,CAAC,IAAI;QACd,OAAO,EAAE,CAAC,IAAI;QACd,KAAK,EAAE,CAAC;QACR,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,+CAA+C;QACtD,QAAQ,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE;KAC7D;IACD;QACE,EAAE,EAAE,OAAO;QACX,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,GAAG;QACd,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,CAAC,IAAI;QACd,KAAK,EAAE,CAAC;QACR,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,mDAAmD;QAC1D,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YACnC,KAAC,KAAK,KAAG,GACL,CACP;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE,SAAS;QACf,iBAAiB,EAAE,IAAI;QACvB,MAAM,EAAE,OAAO;KAChB;IACD,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,CACT,cAAK,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,YACnC,KAAC,KAAK,KAAG,GACL,CACP;KACF;CACF,CAAC"}
@@ -0,0 +1,12 @@
1
+ export type { GlobeArc, GlobePoint, GlobeCountryDatum, GlobeHoverPayload, } from "./globe-types";
2
+ export type { GlobeTheme, GlobePresetName } from "./globe-theme";
3
+ export { GLOBE_PRESETS, DARK_TEAL, LIGHT_AIRY, WARM_NEUTRAL, resolveTheme } from "./globe-theme";
4
+ export type { CountryGeoEntry } from "./data/country-geo";
5
+ export { COUNTRY_GEO_LIST, COUNTRY_GEO_MAP, resolveCountryCode } from "./data/country-geo";
6
+ export { numericToAlpha2, alpha2ToNumeric } from "./map/country-code-map";
7
+ export type { InternalArcDatum } from "./electron-arc";
8
+ export { useElectronEmitter } from "./electron-arc";
9
+ export { GlobeView } from "./globe-view";
10
+ export type { GlobeViewProps } from "./globe-view";
11
+ export { addStarfield, addHalo, getVignetteStyle } from "./scene-extras";
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/globe/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEjG,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE1E,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { GLOBE_PRESETS, DARK_TEAL, LIGHT_AIRY, WARM_NEUTRAL, resolveTheme } from "./globe-theme";
2
+ export { COUNTRY_GEO_LIST, COUNTRY_GEO_MAP, resolveCountryCode } from "./data/country-geo";
3
+ export { numericToAlpha2, alpha2ToNumeric } from "./map/country-code-map";
4
+ export { useElectronEmitter } from "./electron-arc";
5
+ export { GlobeView } from "./globe-view";
6
+ export { addStarfield, addHalo, getVignetteStyle } from "./scene-extras";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/globe/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGjG,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Convert ISO 3166-1 alpha-2 code (e.g. "SE") to numeric code (e.g. "752").
3
+ */
4
+ export declare function alpha2ToNumeric(alpha2: string): string | undefined;
5
+ /**
6
+ * Convert ISO 3166-1 numeric code (e.g. "752") to alpha-2 code (e.g. "SE").
7
+ * The world-atlas TopoJSON uses numeric codes; our data layer uses alpha-2.
8
+ */
9
+ export declare function numericToAlpha2(numeric: string): string | undefined;
10
+ //# sourceMappingURL=country-code-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country-code-map.d.ts","sourceRoot":"","sources":["../../../src/globe/map/country-code-map.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAElE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEnE"}
@@ -0,0 +1,15 @@
1
+ import countries from "i18n-iso-countries";
2
+ /**
3
+ * Convert ISO 3166-1 alpha-2 code (e.g. "SE") to numeric code (e.g. "752").
4
+ */
5
+ export function alpha2ToNumeric(alpha2) {
6
+ return countries.alpha2ToNumeric(alpha2);
7
+ }
8
+ /**
9
+ * Convert ISO 3166-1 numeric code (e.g. "752") to alpha-2 code (e.g. "SE").
10
+ * The world-atlas TopoJSON uses numeric codes; our data layer uses alpha-2.
11
+ */
12
+ export function numericToAlpha2(numeric) {
13
+ return countries.numericToAlpha2(numeric);
14
+ }
15
+ //# sourceMappingURL=country-code-map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"country-code-map.js","sourceRoot":"","sources":["../../../src/globe/map/country-code-map.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,MAAc;IAC5C,OAAO,SAAS,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,OAAO,SAAS,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as THREE from "three";
2
+ export declare const MAP_WIDTH = 20;
3
+ export declare const MAP_HEIGHT = 10;
4
+ export interface CountryMesh {
5
+ mesh: THREE.Mesh;
6
+ alpha2Code: string | undefined;
7
+ numericCode: string;
8
+ }
9
+ export declare function createCountryMeshes(topoJsonUrl: string, baseMaterial: THREE.MeshBasicMaterial): Promise<Map<string, CountryMesh>>;
10
+ //# sourceMappingURL=map-geometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-geometry.d.ts","sourceRoot":"","sources":["../../../src/globe/map/map-geometry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,UAAU,KAAK,CAAC;AAE7B,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;IACjB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,KAAK,CAAC,iBAAiB,GACpC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAkCnC"}
@@ -0,0 +1,57 @@
1
+ import * as THREE from "three";
2
+ import { mergeGeometries } from "three/addons/utils/BufferGeometryUtils.js";
3
+ import * as topojson from "topojson-client";
4
+ import { geoToXY } from "./map-projection";
5
+ import { numericToAlpha2 } from "./country-code-map";
6
+ export const MAP_WIDTH = 20;
7
+ export const MAP_HEIGHT = 10;
8
+ export async function createCountryMeshes(topoJsonUrl, baseMaterial) {
9
+ const response = await fetch(topoJsonUrl);
10
+ const topoData = await response.json();
11
+ const countries = topojson.feature(topoData, topoData.objects.countries);
12
+ const meshMap = new Map();
13
+ for (const feature of countries.features) {
14
+ const numericCode = String(feature.id);
15
+ const alpha2Code = numericToAlpha2(numericCode);
16
+ const shapes = geoFeatureToShapes(feature);
17
+ if (shapes.length === 0)
18
+ continue;
19
+ const geometries = shapes.map((s) => new THREE.ShapeGeometry(s));
20
+ const merged = geometries.length === 1
21
+ ? geometries[0]
22
+ : mergeGeometries(geometries) ?? geometries[0];
23
+ const material = baseMaterial.clone();
24
+ const mesh = new THREE.Mesh(merged, material);
25
+ const entry = { mesh, alpha2Code, numericCode };
26
+ if (alpha2Code) {
27
+ meshMap.set(alpha2Code, entry);
28
+ }
29
+ }
30
+ return meshMap;
31
+ }
32
+ function geoFeatureToShapes(feature) {
33
+ const shapes = [];
34
+ const geometry = feature.geometry;
35
+ if (!geometry)
36
+ return shapes;
37
+ const polygons = geometry.type === "Polygon"
38
+ ? [geometry.coordinates]
39
+ : geometry.type === "MultiPolygon"
40
+ ? geometry.coordinates
41
+ : [];
42
+ for (const polygon of polygons) {
43
+ const outerRing = polygon[0];
44
+ if (!outerRing || outerRing.length < 3)
45
+ continue;
46
+ const shape = new THREE.Shape();
47
+ const [startX, startY] = geoToXY(outerRing[0], MAP_WIDTH, MAP_HEIGHT);
48
+ shape.moveTo(startX, startY);
49
+ for (let i = 1; i < outerRing.length; i++) {
50
+ const [x, y] = geoToXY(outerRing[i], MAP_WIDTH, MAP_HEIGHT);
51
+ shape.lineTo(x, y);
52
+ }
53
+ shapes.push(shape);
54
+ }
55
+ return shapes;
56
+ }
57
+ //# sourceMappingURL=map-geometry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-geometry.js","sourceRoot":"","sources":["../../../src/globe/map/map-geometry.ts"],"names":[],"mappings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C,CAAC;QAE7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC1C,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;YAC5D,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACrB,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as THREE from "three";
2
+ import type { GlobeTheme } from "../globe-theme";
3
+ /**
4
+ * Get heat map color for a normalized value (0 = low/blue, 1 = high/red).
5
+ */
6
+ export declare function getHeatColor(normalizedValue: number): THREE.Color;
7
+ export declare function createCountryBaseMaterial(theme: GlobeTheme): THREE.MeshBasicMaterial;
8
+ //# sourceMappingURL=map-materials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-materials.d.ts","sourceRoot":"","sources":["../../../src/globe/map/map-materials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD;;GAEG;AACH,wBAAgB,YAAY,CAAC,eAAe,EAAE,MAAM,GAAG,KAAK,CAAC,KAAK,CAgBjE;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,UAAU,GAChB,KAAK,CAAC,iBAAiB,CAOzB"}
@@ -0,0 +1,32 @@
1
+ import * as THREE from "three";
2
+ /**
3
+ * Get heat map color for a normalized value (0 = low/blue, 1 = high/red).
4
+ */
5
+ export function getHeatColor(normalizedValue) {
6
+ const color = new THREE.Color();
7
+ if (normalizedValue > 0.66) {
8
+ color.setHSL(0, 0.8, 0.5);
9
+ const target = new THREE.Color().setHSL(0.1, 0.9, 0.55);
10
+ color.lerp(target, (1 - normalizedValue) * 3);
11
+ }
12
+ else if (normalizedValue > 0.33) {
13
+ color.setHSL(0.1, 0.9, 0.55);
14
+ const target = new THREE.Color().setHSL(0.33, 0.7, 0.45);
15
+ color.lerp(target, (0.66 - normalizedValue) * 3);
16
+ }
17
+ else {
18
+ color.setHSL(0.33, 0.7, 0.45);
19
+ const target = new THREE.Color().setHSL(0.6, 0.6, 0.4);
20
+ color.lerp(target, (0.33 - normalizedValue) * 3);
21
+ }
22
+ return color;
23
+ }
24
+ export function createCountryBaseMaterial(theme) {
25
+ return new THREE.MeshBasicMaterial({
26
+ color: new THREE.Color(theme.surface),
27
+ side: THREE.DoubleSide,
28
+ transparent: true,
29
+ opacity: 0.9,
30
+ });
31
+ }
32
+ //# sourceMappingURL=map-materials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-materials.js","sourceRoot":"","sources":["../../../src/globe/map/map-materials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,eAAuB;IAClD,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;IAChC,IAAI,eAAe,GAAG,IAAI,EAAE,CAAC;QAC3B,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QAC1B,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QACxD,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;IAChD,CAAC;SAAM,IAAI,eAAe,GAAG,IAAI,EAAE,CAAC;QAClC,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QAC7B,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QACzD,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;IACnD,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QAC9B,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QACvD,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,KAAiB;IAEjB,OAAO,IAAI,KAAK,CAAC,iBAAiB,CAAC;QACjC,KAAK,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;QACrC,IAAI,EAAE,KAAK,CAAC,UAAU;QACtB,WAAW,EAAE,IAAI;QACjB,OAAO,EAAE,GAAG;KACb,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Convert latitude/longitude to x/y coordinates in Three.js space.
3
+ * Uses Equirectangular projection centered on (0,0).
4
+ */
5
+ export declare function latLngToXY(lat: number, lng: number, mapWidth: number, mapHeight: number): [number, number];
6
+ /**
7
+ * Convert GeoJSON coordinates [lng, lat] to Three.js x/y.
8
+ * GeoJSON uses [longitude, latitude] order.
9
+ */
10
+ export declare function geoToXY(coords: [number, number], mapWidth: number, mapHeight: number): [number, number];
11
+ //# sourceMappingURL=map-projection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-projection.d.ts","sourceRoot":"","sources":["../../../src/globe/map/map-projection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAChB,CAAC,MAAM,EAAE,MAAM,CAAC,CAIlB;AAED;;;GAGG;AACH,wBAAgB,OAAO,CACrB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EACxB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAChB,CAAC,MAAM,EAAE,MAAM,CAAC,CAElB"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Convert latitude/longitude to x/y coordinates in Three.js space.
3
+ * Uses Equirectangular projection centered on (0,0).
4
+ */
5
+ export function latLngToXY(lat, lng, mapWidth, mapHeight) {
6
+ const x = (lng / 180) * (mapWidth / 2);
7
+ const y = (lat / 90) * (mapHeight / 2);
8
+ return [x, y];
9
+ }
10
+ /**
11
+ * Convert GeoJSON coordinates [lng, lat] to Three.js x/y.
12
+ * GeoJSON uses [longitude, latitude] order.
13
+ */
14
+ export function geoToXY(coords, mapWidth, mapHeight) {
15
+ return latLngToXY(coords[1], coords[0], mapWidth, mapHeight);
16
+ }
17
+ //# sourceMappingURL=map-projection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-projection.js","sourceRoot":"","sources":["../../../src/globe/map/map-projection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,UAAU,CACxB,GAAW,EACX,GAAW,EACX,QAAgB,EAChB,SAAiB;IAEjB,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;IACvC,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IACvC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,OAAO,CACrB,MAAwB,EACxB,QAAgB,EAChB,SAAiB;IAEjB,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;AAC/D,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as THREE from "three";
2
+ import type { CSSProperties } from "react";
3
+ import type { GlobeTheme } from "./globe-theme";
4
+ /** Add a starfield of particles in a spherical shell behind the globe */
5
+ export declare function addStarfield(scene: THREE.Scene, theme: GlobeTheme): void;
6
+ /** Add a subtle Fresnel edge-glow halo — ONLY at the silhouette edge, not filling center */
7
+ export declare function addHalo(scene: THREE.Scene, radius: number, theme: GlobeTheme): void;
8
+ /** Create a CSS vignette overlay style (null if disabled) */
9
+ export declare function getVignetteStyle(theme: GlobeTheme): CSSProperties | null;
10
+ //# sourceMappingURL=scene-extras.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scene-extras.d.ts","sourceRoot":"","sources":["../../src/globe/scene-extras.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,yEAAyE;AACzE,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAuBxE;AAED,4FAA4F;AAC5F,wBAAgB,OAAO,CACrB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,UAAU,GAChB,IAAI,CAiCN;AAED,6DAA6D;AAC7D,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,aAAa,GAAG,IAAI,CAKxE"}