@burdenoff/microfe-devportal 2026.1108.1 → 2026.1109.1

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 (1408) hide show
  1. package/dist/__tests__/utils/renderWithProviders.d.ts +0 -2
  2. package/dist/_virtual/_rolldown/runtime.js +4 -5
  3. package/dist/dev/main.d.ts +0 -1
  4. package/dist/devportal/AdminDevportalRoot.d.ts +0 -2
  5. package/dist/devportal/AdminDevportalRoot.js +9 -6
  6. package/dist/devportal/AdminDevportalRoot.js.map +1 -1
  7. package/dist/devportal/AdminDevportalRoutes.d.ts +1 -2
  8. package/dist/devportal/AdminDevportalRoutes.js +1 -2
  9. package/dist/devportal/AdminDevportalRoutes.js.map +1 -1
  10. package/dist/devportal/DevportalRoot.d.ts +0 -2
  11. package/dist/devportal/DevportalRoot.js +75 -65
  12. package/dist/devportal/DevportalRoot.js.map +1 -1
  13. package/dist/devportal/DevportalRoutes.d.ts +1 -2
  14. package/dist/devportal/DevportalRoutes.js +149 -143
  15. package/dist/devportal/DevportalRoutes.js.map +1 -1
  16. package/dist/devportal/components/AppCard.d.ts +0 -2
  17. package/dist/devportal/components/AppCard.js +21 -22
  18. package/dist/devportal/components/AppCard.js.map +1 -1
  19. package/dist/devportal/components/ConfirmDialog.d.ts +0 -2
  20. package/dist/devportal/components/ConfirmDialog.js +9 -10
  21. package/dist/devportal/components/ConfirmDialog.js.map +1 -1
  22. package/dist/devportal/components/DataTable.d.ts +1 -3
  23. package/dist/devportal/components/DataTable.js +20 -21
  24. package/dist/devportal/components/DataTable.js.map +1 -1
  25. package/dist/devportal/components/EmptyState.d.ts +0 -2
  26. package/dist/devportal/components/EmptyState.js +1 -2
  27. package/dist/devportal/components/EmptyState.js.map +1 -1
  28. package/dist/devportal/components/FeatureFlaggedRoute.d.ts +0 -2
  29. package/dist/devportal/components/FeatureFlaggedRoute.js +1 -2
  30. package/dist/devportal/components/FeatureFlaggedRoute.js.map +1 -1
  31. package/dist/devportal/components/FormField.d.ts +0 -2
  32. package/dist/devportal/components/FormField.js +23 -24
  33. package/dist/devportal/components/FormField.js.map +1 -1
  34. package/dist/devportal/components/GrantDelegationModal.d.ts +0 -2
  35. package/dist/devportal/components/GrantDelegationModal.js +1 -2
  36. package/dist/devportal/components/GrantDelegationModal.js.map +1 -1
  37. package/dist/devportal/components/ImageUploadField.d.ts +0 -2
  38. package/dist/devportal/components/ImageUploadField.js +1 -2
  39. package/dist/devportal/components/ImageUploadField.js.map +1 -1
  40. package/dist/devportal/components/LoadingState.d.ts +0 -2
  41. package/dist/devportal/components/LoadingState.js +6 -7
  42. package/dist/devportal/components/LoadingState.js.map +1 -1
  43. package/dist/devportal/components/ManifestViewer.d.ts +0 -2
  44. package/dist/devportal/components/ManifestViewer.js +1 -2
  45. package/dist/devportal/components/ManifestViewer.js.map +1 -1
  46. package/dist/devportal/components/MarkdownEditor.d.ts +0 -2
  47. package/dist/devportal/components/MarkdownEditor.js +1 -2
  48. package/dist/devportal/components/MarkdownEditor.js.map +1 -1
  49. package/dist/devportal/components/MultiSelectCombobox.d.ts +1 -2
  50. package/dist/devportal/components/MultiSelectCombobox.js +1 -2
  51. package/dist/devportal/components/MultiSelectCombobox.js.map +1 -1
  52. package/dist/devportal/components/NodeSmokePanel.d.ts +0 -2
  53. package/dist/devportal/components/NodeSmokePanel.js +17 -18
  54. package/dist/devportal/components/NodeSmokePanel.js.map +1 -1
  55. package/dist/devportal/components/OnboardingChecklist.d.ts +0 -2
  56. package/dist/devportal/components/OnboardingChecklist.js +15 -16
  57. package/dist/devportal/components/OnboardingChecklist.js.map +1 -1
  58. package/dist/devportal/components/PackageValidationPanel.d.ts +0 -2
  59. package/dist/devportal/components/PackageValidationPanel.js +12 -13
  60. package/dist/devportal/components/PackageValidationPanel.js.map +1 -1
  61. package/dist/devportal/components/PageLayout.d.ts +0 -2
  62. package/dist/devportal/components/PageLayout.js +16 -17
  63. package/dist/devportal/components/PageLayout.js.map +1 -1
  64. package/dist/devportal/components/PermissionGuard.d.ts +0 -2
  65. package/dist/devportal/components/PermissionGuard.js +5 -6
  66. package/dist/devportal/components/PermissionGuard.js.map +1 -1
  67. package/dist/devportal/components/RegisterPickupLocationModal.d.ts +0 -2
  68. package/dist/devportal/components/RegisterPickupLocationModal.js +13 -14
  69. package/dist/devportal/components/RegisterPickupLocationModal.js.map +1 -1
  70. package/dist/devportal/components/ReportOrderIssueModal.d.ts +0 -2
  71. package/dist/devportal/components/ReportOrderIssueModal.js +1 -2
  72. package/dist/devportal/components/ReportOrderIssueModal.js.map +1 -1
  73. package/dist/devportal/components/SecretDisplay.d.ts +0 -2
  74. package/dist/devportal/components/SecretDisplay.js +8 -9
  75. package/dist/devportal/components/SecretDisplay.js.map +1 -1
  76. package/dist/devportal/components/SectionNav.d.ts +0 -2
  77. package/dist/devportal/components/SectionNav.js +11 -12
  78. package/dist/devportal/components/SectionNav.js.map +1 -1
  79. package/dist/devportal/components/SelectionCheckbox.d.ts +1 -2
  80. package/dist/devportal/components/SelectionCheckbox.js +1 -2
  81. package/dist/devportal/components/SelectionCheckbox.js.map +1 -1
  82. package/dist/devportal/components/StatCard.d.ts +0 -2
  83. package/dist/devportal/components/StatCard.js +1 -2
  84. package/dist/devportal/components/StatCard.js.map +1 -1
  85. package/dist/devportal/components/StatusBadge.d.ts +0 -2
  86. package/dist/devportal/components/StatusBadge.js +18 -19
  87. package/dist/devportal/components/StatusBadge.js.map +1 -1
  88. package/dist/devportal/components/TelemetryErrorBoundary.d.ts +0 -2
  89. package/dist/devportal/components/TelemetryErrorBoundary.js +1 -2
  90. package/dist/devportal/components/TelemetryErrorBoundary.js.map +1 -1
  91. package/dist/devportal/components/index.d.ts +0 -1
  92. package/dist/devportal/components/index.js +22 -21
  93. package/dist/devportal/constants/appCategories.d.ts +0 -1
  94. package/dist/devportal/constants/appCategories.js +1 -2
  95. package/dist/devportal/constants/appCategories.js.map +1 -1
  96. package/dist/devportal/constants/developerLinks.d.ts +0 -1
  97. package/dist/devportal/constants/developerLinks.js +23 -23
  98. package/dist/devportal/constants/developerLinks.js.map +1 -1
  99. package/dist/devportal/constants/permissions.d.ts +0 -1
  100. package/dist/devportal/constants/permissions.js +1 -2
  101. package/dist/devportal/constants/permissions.js.map +1 -1
  102. package/dist/devportal/events/index.d.ts +0 -1
  103. package/dist/devportal/events/index.js +1 -2
  104. package/dist/devportal/events/index.js.map +1 -1
  105. package/dist/devportal/hooks/DevPortalProvider.d.ts +1 -3
  106. package/dist/devportal/hooks/DevPortalProvider.js +2 -3
  107. package/dist/devportal/hooks/DevPortalProvider.js.map +1 -1
  108. package/dist/devportal/hooks/index.d.ts +0 -1
  109. package/dist/devportal/hooks/index.js +6 -5
  110. package/dist/devportal/hooks/useCarrierPickupLocations.d.ts +0 -1
  111. package/dist/devportal/hooks/useCarrierPickupLocations.js +1 -2
  112. package/dist/devportal/hooks/useCarrierPickupLocations.js.map +1 -1
  113. package/dist/devportal/hooks/useGraphQL.d.ts +0 -2
  114. package/dist/devportal/hooks/useGraphQL.js +42 -53
  115. package/dist/devportal/hooks/useGraphQL.js.map +1 -1
  116. package/dist/devportal/hooks/useIsSellerSection.d.ts +0 -1
  117. package/dist/devportal/hooks/useIsSellerSection.js +1 -2
  118. package/dist/devportal/hooks/useIsSellerSection.js.map +1 -1
  119. package/dist/devportal/hooks/useOrganizationPickupAddresses.d.ts +0 -1
  120. package/dist/devportal/hooks/useOrganizationPickupAddresses.js +3 -8
  121. package/dist/devportal/hooks/useOrganizationPickupAddresses.js.map +1 -1
  122. package/dist/devportal/hooks/usePackageUpload.d.ts +0 -1
  123. package/dist/devportal/hooks/usePackageUpload.js +4 -4
  124. package/dist/devportal/hooks/usePackageUpload.js.map +1 -1
  125. package/dist/devportal/hooks/usePermission.d.ts +0 -2
  126. package/dist/devportal/hooks/usePermission.js +2 -3
  127. package/dist/devportal/hooks/usePermission.js.map +1 -1
  128. package/dist/devportal/hooks/useProducts.d.ts +0 -1
  129. package/dist/devportal/hooks/useProducts.js +1 -2
  130. package/dist/devportal/hooks/useProducts.js.map +1 -1
  131. package/dist/devportal/hooks/useSellerOrganization.d.ts +0 -1
  132. package/dist/devportal/hooks/useSellerOrganization.js +1 -2
  133. package/dist/devportal/hooks/useSellerOrganization.js.map +1 -1
  134. package/dist/devportal/index.d.ts +0 -1
  135. package/dist/devportal/index.js +13 -12
  136. package/dist/devportal/pages/AdminOrganizationVerificationPage.d.ts +0 -2
  137. package/dist/devportal/pages/AdminOrganizationVerificationPage.js +13 -13
  138. package/dist/devportal/pages/AdminOrganizationVerificationPage.js.map +1 -1
  139. package/dist/devportal/pages/AdminReviewPage.d.ts +0 -2
  140. package/dist/devportal/pages/AdminReviewPage.js +134 -135
  141. package/dist/devportal/pages/AdminReviewPage.js.map +1 -1
  142. package/dist/devportal/pages/AnalyticsDashboardPage.d.ts +0 -2
  143. package/dist/devportal/pages/AnalyticsDashboardPage.js +66 -67
  144. package/dist/devportal/pages/AnalyticsDashboardPage.js.map +1 -1
  145. package/dist/devportal/pages/ApiKeysPage.d.ts +0 -2
  146. package/dist/devportal/pages/ApiKeysPage.js +127 -128
  147. package/dist/devportal/pages/ApiKeysPage.js.map +1 -1
  148. package/dist/devportal/pages/AppLogsPage.d.ts +0 -2
  149. package/dist/devportal/pages/AppLogsPage.js +18 -19
  150. package/dist/devportal/pages/AppLogsPage.js.map +1 -1
  151. package/dist/devportal/pages/ApplicationDetailPage.d.ts +0 -2
  152. package/dist/devportal/pages/ApplicationDetailPage.js +779 -778
  153. package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
  154. package/dist/devportal/pages/ApplicationVersionsPage.d.ts +0 -2
  155. package/dist/devportal/pages/ApplicationVersionsPage.js +482 -483
  156. package/dist/devportal/pages/ApplicationVersionsPage.js.map +1 -1
  157. package/dist/devportal/pages/ApplicationsPage.d.ts +0 -2
  158. package/dist/devportal/pages/ApplicationsPage.js +35 -36
  159. package/dist/devportal/pages/ApplicationsPage.js.map +1 -1
  160. package/dist/devportal/pages/CreateApiKeyPage.d.ts +0 -2
  161. package/dist/devportal/pages/CreateApiKeyPage.js +39 -39
  162. package/dist/devportal/pages/CreateApiKeyPage.js.map +1 -1
  163. package/dist/devportal/pages/CreateApplicationPage.d.ts +0 -2
  164. package/dist/devportal/pages/CreateApplicationPage.js +136 -137
  165. package/dist/devportal/pages/CreateApplicationPage.js.map +1 -1
  166. package/dist/devportal/pages/CreateOAuthClientPage.d.ts +0 -2
  167. package/dist/devportal/pages/CreateOAuthClientPage.js +25 -24
  168. package/dist/devportal/pages/CreateOAuthClientPage.js.map +1 -1
  169. package/dist/devportal/pages/CreateOrganizationPage.d.ts +0 -2
  170. package/dist/devportal/pages/CreateOrganizationPage.js +32 -39
  171. package/dist/devportal/pages/CreateOrganizationPage.js.map +1 -1
  172. package/dist/devportal/pages/CreatePhysicalItemPage.d.ts +0 -2
  173. package/dist/devportal/pages/CreatePhysicalItemPage.js +102 -103
  174. package/dist/devportal/pages/CreatePhysicalItemPage.js.map +1 -1
  175. package/dist/devportal/pages/CreateWebhookPage.d.ts +0 -2
  176. package/dist/devportal/pages/CreateWebhookPage.js +31 -32
  177. package/dist/devportal/pages/CreateWebhookPage.js.map +1 -1
  178. package/dist/devportal/pages/DashboardPage.d.ts +0 -2
  179. package/dist/devportal/pages/DashboardPage.js +21 -22
  180. package/dist/devportal/pages/DashboardPage.js.map +1 -1
  181. package/dist/devportal/pages/DelegationsPage.d.ts +0 -2
  182. package/dist/devportal/pages/DelegationsPage.js +83 -84
  183. package/dist/devportal/pages/DelegationsPage.js.map +1 -1
  184. package/dist/devportal/pages/DocumentationPage.d.ts +0 -2
  185. package/dist/devportal/pages/DocumentationPage.js +1 -2
  186. package/dist/devportal/pages/DocumentationPage.js.map +1 -1
  187. package/dist/devportal/pages/EditApplicationPage.d.ts +0 -2
  188. package/dist/devportal/pages/EditApplicationPage.js +69 -70
  189. package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
  190. package/dist/devportal/pages/EditPhysicalItemPage.d.ts +0 -2
  191. package/dist/devportal/pages/EditPhysicalItemPage.js +334 -335
  192. package/dist/devportal/pages/EditPhysicalItemPage.js.map +1 -1
  193. package/dist/devportal/pages/InvitationDecisionPage.d.ts +0 -2
  194. package/dist/devportal/pages/InvitationDecisionPage.js +16 -17
  195. package/dist/devportal/pages/InvitationDecisionPage.js.map +1 -1
  196. package/dist/devportal/pages/ListingPreviewPage.d.ts +0 -2
  197. package/dist/devportal/pages/ListingPreviewPage.js +14 -15
  198. package/dist/devportal/pages/ListingPreviewPage.js.map +1 -1
  199. package/dist/devportal/pages/NodeLifecyclePage.d.ts +0 -2
  200. package/dist/devportal/pages/NodeLifecyclePage.js +216 -221
  201. package/dist/devportal/pages/NodeLifecyclePage.js.map +1 -1
  202. package/dist/devportal/pages/OAuthCallbackPage.d.ts +0 -2
  203. package/dist/devportal/pages/OAuthCallbackPage.js +4 -5
  204. package/dist/devportal/pages/OAuthCallbackPage.js.map +1 -1
  205. package/dist/devportal/pages/OAuthClientDetailPage.d.ts +0 -2
  206. package/dist/devportal/pages/OAuthClientDetailPage.js +17 -16
  207. package/dist/devportal/pages/OAuthClientDetailPage.js.map +1 -1
  208. package/dist/devportal/pages/OAuthClientsPage.d.ts +0 -2
  209. package/dist/devportal/pages/OAuthClientsPage.js +18 -19
  210. package/dist/devportal/pages/OAuthClientsPage.js.map +1 -1
  211. package/dist/devportal/pages/OrganizationDetailPage.d.ts +0 -2
  212. package/dist/devportal/pages/OrganizationDetailPage.js +444 -450
  213. package/dist/devportal/pages/OrganizationDetailPage.js.map +1 -1
  214. package/dist/devportal/pages/OrganizationMembersPage.d.ts +0 -2
  215. package/dist/devportal/pages/OrganizationMembersPage.js +240 -241
  216. package/dist/devportal/pages/OrganizationMembersPage.js.map +1 -1
  217. package/dist/devportal/pages/OrganizationsPage.d.ts +0 -2
  218. package/dist/devportal/pages/OrganizationsPage.js +34 -35
  219. package/dist/devportal/pages/OrganizationsPage.js.map +1 -1
  220. package/dist/devportal/pages/PublishPage.d.ts +0 -2
  221. package/dist/devportal/pages/PublishPage.js +90 -91
  222. package/dist/devportal/pages/PublishPage.js.map +1 -1
  223. package/dist/devportal/pages/PublisherPayoutsPage.d.ts +0 -2
  224. package/dist/devportal/pages/PublisherPayoutsPage.js +251 -258
  225. package/dist/devportal/pages/PublisherPayoutsPage.js.map +1 -1
  226. package/dist/devportal/pages/PublisherProfilePage.d.ts +0 -2
  227. package/dist/devportal/pages/PublisherProfilePage.js +26 -27
  228. package/dist/devportal/pages/PublisherProfilePage.js.map +1 -1
  229. package/dist/devportal/pages/ResourcesPage.d.ts +0 -2
  230. package/dist/devportal/pages/ResourcesPage.js +17 -18
  231. package/dist/devportal/pages/ResourcesPage.js.map +1 -1
  232. package/dist/devportal/pages/RevenueDashboardPage.d.ts +0 -2
  233. package/dist/devportal/pages/RevenueDashboardPage.js +308 -308
  234. package/dist/devportal/pages/RevenueDashboardPage.js.map +1 -1
  235. package/dist/devportal/pages/RevenueRedirectPage.d.ts +0 -2
  236. package/dist/devportal/pages/SellerDashboardPage.d.ts +0 -2
  237. package/dist/devportal/pages/SellerDashboardPage.js +14 -15
  238. package/dist/devportal/pages/SellerDashboardPage.js.map +1 -1
  239. package/dist/devportal/pages/SellerItemsPage.d.ts +0 -2
  240. package/dist/devportal/pages/SellerItemsPage.js +8 -9
  241. package/dist/devportal/pages/SellerItemsPage.js.map +1 -1
  242. package/dist/devportal/pages/SellerOrdersPage.d.ts +0 -2
  243. package/dist/devportal/pages/SellerOrdersPage.js +10 -14
  244. package/dist/devportal/pages/SellerOrdersPage.js.map +1 -1
  245. package/dist/devportal/pages/SettingsPage.d.ts +0 -2
  246. package/dist/devportal/pages/SettingsPage.js +20 -21
  247. package/dist/devportal/pages/SettingsPage.js.map +1 -1
  248. package/dist/devportal/pages/SetupPage.d.ts +0 -2
  249. package/dist/devportal/pages/SetupPage.js +276 -277
  250. package/dist/devportal/pages/SetupPage.js.map +1 -1
  251. package/dist/devportal/pages/StoreSubmissionPage.d.ts +0 -2
  252. package/dist/devportal/pages/StoreSubmissionPage.js +4 -5
  253. package/dist/devportal/pages/StoreSubmissionPage.js.map +1 -1
  254. package/dist/devportal/pages/TimeCampusAppletsPage.d.ts +2 -0
  255. package/dist/devportal/pages/TimeCampusAppletsPage.js +490 -0
  256. package/dist/devportal/pages/TimeCampusAppletsPage.js.map +1 -0
  257. package/dist/devportal/pages/WebhookDetailPage.d.ts +0 -2
  258. package/dist/devportal/pages/WebhookDetailPage.js +62 -67
  259. package/dist/devportal/pages/WebhookDetailPage.js.map +1 -1
  260. package/dist/devportal/pages/WebhooksPage.d.ts +0 -2
  261. package/dist/devportal/pages/WebhooksPage.js +130 -131
  262. package/dist/devportal/pages/WebhooksPage.js.map +1 -1
  263. package/dist/devportal/providers/DevportalProvider.d.ts +0 -2
  264. package/dist/devportal/providers/DevportalProvider.js +2 -3
  265. package/dist/devportal/providers/DevportalProvider.js.map +1 -1
  266. package/dist/devportal/store/devportalStore.d.ts +0 -2
  267. package/dist/devportal/store/devportalStore.js +1 -2
  268. package/dist/devportal/store/devportalStore.js.map +1 -1
  269. package/dist/devportal/types/index.d.ts +0 -2
  270. package/dist/devportal/types/index.js +1 -2
  271. package/dist/devportal/types/index.js.map +1 -1
  272. package/dist/devportal/utils/cn.d.ts +0 -2
  273. package/dist/devportal/utils/cn.js +2 -3
  274. package/dist/devportal/utils/cn.js.map +1 -1
  275. package/dist/devportal/utils/constants.d.ts +0 -1
  276. package/dist/devportal/utils/constants.js +6 -3
  277. package/dist/devportal/utils/constants.js.map +1 -1
  278. package/dist/devportal/utils/currency.d.ts +0 -1
  279. package/dist/devportal/utils/currency.js +1 -2
  280. package/dist/devportal/utils/currency.js.map +1 -1
  281. package/dist/devportal/utils/developerOnboarding.d.ts +0 -1
  282. package/dist/devportal/utils/developerOnboarding.js +4 -5
  283. package/dist/devportal/utils/developerOnboarding.js.map +1 -1
  284. package/dist/devportal/utils/graphqlEndpoint.d.ts +0 -1
  285. package/dist/devportal/utils/graphqlEndpoint.js +1 -2
  286. package/dist/devportal/utils/graphqlEndpoint.js.map +1 -1
  287. package/dist/devportal/utils/i18n.d.ts +0 -1
  288. package/dist/devportal/utils/i18n.js +1 -2
  289. package/dist/devportal/utils/i18n.js.map +1 -1
  290. package/dist/devportal/utils/nodeLifecycle.d.ts +0 -2
  291. package/dist/devportal/utils/nodeLifecycle.js +6 -7
  292. package/dist/devportal/utils/nodeLifecycle.js.map +1 -1
  293. package/dist/devportal/utils/publisherPayouts.d.ts +0 -1
  294. package/dist/devportal/utils/publisherPayouts.js +14 -15
  295. package/dist/devportal/utils/publisherPayouts.js.map +1 -1
  296. package/dist/devportal/utils/recaptcha.d.ts +0 -1
  297. package/dist/devportal/utils/recaptcha.js +1 -2
  298. package/dist/devportal/utils/recaptcha.js.map +1 -1
  299. package/dist/devportal/utils/submitForReview.d.ts +0 -1
  300. package/dist/devportal/utils/submitForReview.js +15 -14
  301. package/dist/devportal/utils/submitForReview.js.map +1 -1
  302. package/dist/devportal/utils/timecampusApplets.d.ts +98 -0
  303. package/dist/devportal/utils/timecampusApplets.js +130 -0
  304. package/dist/devportal/utils/timecampusApplets.js.map +1 -0
  305. package/dist/devportal/utils/uploadErrors.d.ts +0 -1
  306. package/dist/devportal/utils/uploadErrors.js +30 -30
  307. package/dist/devportal/utils/uploadErrors.js.map +1 -1
  308. package/dist/generated/global-operations.d.ts +2399 -2423
  309. package/dist/generated/global-operations.js +6 -5
  310. package/dist/generated/global-operations.js.map +1 -1
  311. package/dist/generated/global-types.d.ts +3881 -660
  312. package/dist/generated/global-types.js +1 -2
  313. package/dist/generated/global-types.js.map +1 -1
  314. package/dist/generated/wspace-operations.d.ts +707 -8
  315. package/dist/generated/wspace-operations.js +204 -6
  316. package/dist/generated/wspace-operations.js.map +1 -1
  317. package/dist/generated/wspace-types.d.ts +166630 -35166
  318. package/dist/index.d.ts +0 -1
  319. package/dist/index.js +1 -1
  320. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
  321. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
  322. package/dist/node_modules/@apollo/client/errors/ServerError.js +1 -2
  323. package/dist/node_modules/@apollo/client/errors/ServerError.js.map +1 -1
  324. package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
  325. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
  326. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +7 -8
  327. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -1
  328. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +16 -17
  329. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -1
  330. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +5 -6
  331. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -1
  332. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -1
  333. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
  334. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +4 -5
  335. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -1
  336. package/dist/node_modules/@apollo/client/utilities/internal/caches.js +1 -2
  337. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
  338. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +1 -2
  339. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -1
  340. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +2 -3
  341. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -1
  342. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +1 -2
  343. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
  344. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +1 -2
  345. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -1
  346. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +1 -2
  347. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -1
  348. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +1 -2
  349. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -1
  350. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +1 -2
  351. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -1
  352. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +1 -2
  353. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -1
  354. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +1 -2
  355. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -1
  356. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +1 -2
  357. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -1
  358. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +1 -2
  359. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -1
  360. package/dist/node_modules/@apollo/client/utilities/invariant/index.js +2 -3
  361. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -1
  362. package/dist/node_modules/@apollo/client/version.js +2 -3
  363. package/dist/node_modules/@apollo/client/version.js.map +1 -1
  364. package/dist/node_modules/@wry/caches/lib/weak.js +1 -2
  365. package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -1
  366. package/dist/node_modules/@wry/trie/lib/index.js +2 -3
  367. package/dist/node_modules/@wry/trie/lib/index.js.map +1 -1
  368. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  369. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  370. package/dist/node_modules/d3-array/dist/d3-array.js +204 -0
  371. package/dist/node_modules/d3-array/dist/d3-array.js.map +1 -0
  372. package/dist/node_modules/d3-color/dist/d3-color.js +388 -0
  373. package/dist/node_modules/d3-color/dist/d3-color.js.map +1 -0
  374. package/dist/node_modules/d3-format/dist/d3-format.js +186 -0
  375. package/dist/node_modules/d3-format/dist/d3-format.js.map +1 -0
  376. package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js +185 -0
  377. package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js.map +1 -0
  378. package/dist/node_modules/d3-path/{src/path.js → dist/d3-path.js} +39 -14
  379. package/dist/node_modules/d3-path/dist/d3-path.js.map +1 -0
  380. package/dist/node_modules/d3-scale/dist/d3-scale.js +622 -0
  381. package/dist/node_modules/d3-scale/dist/d3-scale.js.map +1 -0
  382. package/dist/node_modules/d3-shape/dist/d3-shape.js +901 -0
  383. package/dist/node_modules/d3-shape/dist/d3-shape.js.map +1 -0
  384. package/dist/node_modules/d3-time/dist/d3-time.js +241 -0
  385. package/dist/node_modules/d3-time/dist/d3-time.js.map +1 -0
  386. package/dist/node_modules/d3-time-format/{src/locale.js → dist/d3-time-format.js} +229 -174
  387. package/dist/node_modules/d3-time-format/dist/d3-time-format.js.map +1 -0
  388. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +1 -2
  389. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -1
  390. package/dist/node_modules/date-fns/_lib/defaultOptions.js +1 -2
  391. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -1
  392. package/dist/node_modules/date-fns/_lib/format/formatters.js +29 -22
  393. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -1
  394. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +3 -4
  395. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -1
  396. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +2 -5
  397. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -1
  398. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +2 -3
  399. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -1
  400. package/dist/node_modules/date-fns/_lib/protectedTokens.js +1 -2
  401. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -1
  402. package/dist/node_modules/date-fns/constants.js +5 -5
  403. package/dist/node_modules/date-fns/constants.js.map +1 -1
  404. package/dist/node_modules/date-fns/constructFrom.js +2 -3
  405. package/dist/node_modules/date-fns/constructFrom.js.map +1 -1
  406. package/dist/node_modules/date-fns/differenceInCalendarDays.js +2 -3
  407. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -1
  408. package/dist/node_modules/date-fns/format.js +15 -16
  409. package/dist/node_modules/date-fns/format.js.map +1 -1
  410. package/dist/node_modules/date-fns/getDayOfYear.js +7 -8
  411. package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -1
  412. package/dist/node_modules/date-fns/getISOWeek.js +8 -9
  413. package/dist/node_modules/date-fns/getISOWeek.js.map +1 -1
  414. package/dist/node_modules/date-fns/getISOWeekYear.js +8 -9
  415. package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -1
  416. package/dist/node_modules/date-fns/getWeek.js +8 -9
  417. package/dist/node_modules/date-fns/getWeek.js.map +1 -1
  418. package/dist/node_modules/date-fns/getWeekYear.js +9 -10
  419. package/dist/node_modules/date-fns/getWeekYear.js.map +1 -1
  420. package/dist/node_modules/date-fns/isDate.js +2 -3
  421. package/dist/node_modules/date-fns/isDate.js.map +1 -1
  422. package/dist/node_modules/date-fns/isValid.js +6 -7
  423. package/dist/node_modules/date-fns/isValid.js.map +1 -1
  424. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +1 -2
  425. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -1
  426. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +1 -2
  427. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -1
  428. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +1 -2
  429. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -1
  430. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +1 -2
  431. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -1
  432. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +1 -2
  433. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -1
  434. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -1
  435. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -1
  436. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +1 -2
  437. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -1
  438. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -1
  439. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -1
  440. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -1
  441. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -1
  442. package/dist/node_modules/date-fns/locale/en-US.js +2 -3
  443. package/dist/node_modules/date-fns/locale/en-US.js.map +1 -1
  444. package/dist/node_modules/date-fns/startOfDay.js +2 -3
  445. package/dist/node_modules/date-fns/startOfDay.js.map +1 -1
  446. package/dist/node_modules/date-fns/startOfISOWeek.js +2 -3
  447. package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -1
  448. package/dist/node_modules/date-fns/startOfISOWeekYear.js +5 -6
  449. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -1
  450. package/dist/node_modules/date-fns/startOfWeek.js +2 -3
  451. package/dist/node_modules/date-fns/startOfWeek.js.map +1 -1
  452. package/dist/node_modules/date-fns/startOfWeekYear.js +6 -7
  453. package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -1
  454. package/dist/node_modules/date-fns/startOfYear.js +3 -4
  455. package/dist/node_modules/date-fns/startOfYear.js.map +1 -1
  456. package/dist/node_modules/date-fns/toDate.js +2 -3
  457. package/dist/node_modules/date-fns/toDate.js.map +1 -1
  458. package/dist/node_modules/decimal.js-light/decimal.js +33 -30
  459. package/dist/node_modules/decimal.js-light/decimal.js.map +1 -1
  460. package/dist/node_modules/eventemitter3/index.js +2 -3
  461. package/dist/node_modules/eventemitter3/index.js.map +1 -1
  462. package/dist/node_modules/fast-equals/dist/es/index.js +109 -79
  463. package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
  464. package/dist/node_modules/graphql-ws/dist/client.js +76 -69
  465. package/dist/node_modules/graphql-ws/dist/client.js.map +1 -1
  466. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +2 -3
  467. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -1
  468. package/dist/node_modules/lodash/_DataView.js +4 -5
  469. package/dist/node_modules/lodash/_DataView.js.map +1 -1
  470. package/dist/node_modules/lodash/_Hash.js +1 -2
  471. package/dist/node_modules/lodash/_Hash.js.map +1 -1
  472. package/dist/node_modules/lodash/_ListCache.js +1 -2
  473. package/dist/node_modules/lodash/_ListCache.js.map +1 -1
  474. package/dist/node_modules/lodash/_Map.js +4 -5
  475. package/dist/node_modules/lodash/_Map.js.map +1 -1
  476. package/dist/node_modules/lodash/_MapCache.js +1 -2
  477. package/dist/node_modules/lodash/_MapCache.js.map +1 -1
  478. package/dist/node_modules/lodash/_Promise.js +4 -5
  479. package/dist/node_modules/lodash/_Promise.js.map +1 -1
  480. package/dist/node_modules/lodash/_Set.js +4 -5
  481. package/dist/node_modules/lodash/_Set.js.map +1 -1
  482. package/dist/node_modules/lodash/_SetCache.js +1 -2
  483. package/dist/node_modules/lodash/_SetCache.js.map +1 -1
  484. package/dist/node_modules/lodash/_Stack.js +3 -3
  485. package/dist/node_modules/lodash/_Stack.js.map +1 -1
  486. package/dist/node_modules/lodash/_Symbol.js +1 -2
  487. package/dist/node_modules/lodash/_Symbol.js.map +1 -1
  488. package/dist/node_modules/lodash/_Uint8Array.js +1 -2
  489. package/dist/node_modules/lodash/_Uint8Array.js.map +1 -1
  490. package/dist/node_modules/lodash/_WeakMap.js +4 -5
  491. package/dist/node_modules/lodash/_WeakMap.js.map +1 -1
  492. package/dist/node_modules/lodash/_apply.js +1 -2
  493. package/dist/node_modules/lodash/_apply.js.map +1 -1
  494. package/dist/node_modules/lodash/_arrayEvery.js +1 -2
  495. package/dist/node_modules/lodash/_arrayEvery.js.map +1 -1
  496. package/dist/node_modules/lodash/_arrayFilter.js +1 -2
  497. package/dist/node_modules/lodash/_arrayFilter.js.map +1 -1
  498. package/dist/node_modules/lodash/_arrayIncludes.js +1 -2
  499. package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -1
  500. package/dist/node_modules/lodash/_arrayIncludesWith.js +1 -2
  501. package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -1
  502. package/dist/node_modules/lodash/_arrayLikeKeys.js +5 -6
  503. package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -1
  504. package/dist/node_modules/lodash/_arrayMap.js +1 -2
  505. package/dist/node_modules/lodash/_arrayMap.js.map +1 -1
  506. package/dist/node_modules/lodash/_arrayPush.js +1 -2
  507. package/dist/node_modules/lodash/_arrayPush.js.map +1 -1
  508. package/dist/node_modules/lodash/_arraySome.js +1 -2
  509. package/dist/node_modules/lodash/_arraySome.js.map +1 -1
  510. package/dist/node_modules/lodash/_asciiToArray.js +1 -2
  511. package/dist/node_modules/lodash/_asciiToArray.js.map +1 -1
  512. package/dist/node_modules/lodash/_assocIndexOf.js +1 -2
  513. package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -1
  514. package/dist/node_modules/lodash/_baseAssignValue.js +1 -2
  515. package/dist/node_modules/lodash/_baseAssignValue.js.map +1 -1
  516. package/dist/node_modules/lodash/_baseEach.js +1 -2
  517. package/dist/node_modules/lodash/_baseEach.js.map +1 -1
  518. package/dist/node_modules/lodash/_baseEvery.js +1 -2
  519. package/dist/node_modules/lodash/_baseEvery.js.map +1 -1
  520. package/dist/node_modules/lodash/_baseExtremum.js +1 -2
  521. package/dist/node_modules/lodash/_baseExtremum.js.map +1 -1
  522. package/dist/node_modules/lodash/_baseFindIndex.js +1 -2
  523. package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -1
  524. package/dist/node_modules/lodash/_baseFlatten.js +1 -2
  525. package/dist/node_modules/lodash/_baseFlatten.js.map +1 -1
  526. package/dist/node_modules/lodash/_baseFor.js +1 -2
  527. package/dist/node_modules/lodash/_baseFor.js.map +1 -1
  528. package/dist/node_modules/lodash/_baseForOwn.js +4 -5
  529. package/dist/node_modules/lodash/_baseForOwn.js.map +1 -1
  530. package/dist/node_modules/lodash/_baseGet.js +1 -2
  531. package/dist/node_modules/lodash/_baseGet.js.map +1 -1
  532. package/dist/node_modules/lodash/_baseGetAllKeys.js +4 -5
  533. package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -1
  534. package/dist/node_modules/lodash/_baseGetTag.js +1 -2
  535. package/dist/node_modules/lodash/_baseGetTag.js.map +1 -1
  536. package/dist/node_modules/lodash/_baseGt.js +1 -2
  537. package/dist/node_modules/lodash/_baseGt.js.map +1 -1
  538. package/dist/node_modules/lodash/_baseHasIn.js +1 -2
  539. package/dist/node_modules/lodash/_baseHasIn.js.map +1 -1
  540. package/dist/node_modules/lodash/_baseIndexOf.js +1 -2
  541. package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -1
  542. package/dist/node_modules/lodash/_baseIsArguments.js +1 -2
  543. package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -1
  544. package/dist/node_modules/lodash/_baseIsEqual.js +4 -5
  545. package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -1
  546. package/dist/node_modules/lodash/_baseIsEqualDeep.js +10 -11
  547. package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -1
  548. package/dist/node_modules/lodash/_baseIsMatch.js +1 -2
  549. package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -1
  550. package/dist/node_modules/lodash/_baseIsNaN.js +1 -2
  551. package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -1
  552. package/dist/node_modules/lodash/_baseIsNative.js +5 -6
  553. package/dist/node_modules/lodash/_baseIsNative.js.map +1 -1
  554. package/dist/node_modules/lodash/_baseIsTypedArray.js +4 -5
  555. package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -1
  556. package/dist/node_modules/lodash/_baseIteratee.js +6 -7
  557. package/dist/node_modules/lodash/_baseIteratee.js.map +1 -1
  558. package/dist/node_modules/lodash/_baseKeys.js +1 -2
  559. package/dist/node_modules/lodash/_baseKeys.js.map +1 -1
  560. package/dist/node_modules/lodash/_baseLt.js +1 -2
  561. package/dist/node_modules/lodash/_baseLt.js.map +1 -1
  562. package/dist/node_modules/lodash/_baseMap.js +4 -5
  563. package/dist/node_modules/lodash/_baseMap.js.map +1 -1
  564. package/dist/node_modules/lodash/_baseMatches.js +1 -2
  565. package/dist/node_modules/lodash/_baseMatches.js.map +1 -1
  566. package/dist/node_modules/lodash/_baseMatchesProperty.js +7 -8
  567. package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -1
  568. package/dist/node_modules/lodash/_baseOrderBy.js +11 -12
  569. package/dist/node_modules/lodash/_baseOrderBy.js.map +1 -1
  570. package/dist/node_modules/lodash/_baseProperty.js +1 -2
  571. package/dist/node_modules/lodash/_baseProperty.js.map +1 -1
  572. package/dist/node_modules/lodash/_basePropertyDeep.js +1 -2
  573. package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -1
  574. package/dist/node_modules/lodash/_baseRange.js +1 -2
  575. package/dist/node_modules/lodash/_baseRange.js.map +1 -1
  576. package/dist/node_modules/lodash/_baseRest.js +1 -2
  577. package/dist/node_modules/lodash/_baseRest.js.map +1 -1
  578. package/dist/node_modules/lodash/_baseSetToString.js +5 -6
  579. package/dist/node_modules/lodash/_baseSetToString.js.map +1 -1
  580. package/dist/node_modules/lodash/_baseSlice.js +1 -2
  581. package/dist/node_modules/lodash/_baseSlice.js.map +1 -1
  582. package/dist/node_modules/lodash/_baseSome.js +1 -2
  583. package/dist/node_modules/lodash/_baseSome.js.map +1 -1
  584. package/dist/node_modules/lodash/_baseSortBy.js +1 -2
  585. package/dist/node_modules/lodash/_baseSortBy.js.map +1 -1
  586. package/dist/node_modules/lodash/_baseTimes.js +1 -2
  587. package/dist/node_modules/lodash/_baseTimes.js.map +1 -1
  588. package/dist/node_modules/lodash/_baseToString.js +6 -7
  589. package/dist/node_modules/lodash/_baseToString.js.map +1 -1
  590. package/dist/node_modules/lodash/_baseTrim.js +1 -2
  591. package/dist/node_modules/lodash/_baseTrim.js.map +1 -1
  592. package/dist/node_modules/lodash/_baseUnary.js +1 -2
  593. package/dist/node_modules/lodash/_baseUnary.js.map +1 -1
  594. package/dist/node_modules/lodash/_baseUniq.js +7 -8
  595. package/dist/node_modules/lodash/_baseUniq.js.map +1 -1
  596. package/dist/node_modules/lodash/_cacheHas.js +1 -2
  597. package/dist/node_modules/lodash/_cacheHas.js.map +1 -1
  598. package/dist/node_modules/lodash/_castPath.js +1 -2
  599. package/dist/node_modules/lodash/_castPath.js.map +1 -1
  600. package/dist/node_modules/lodash/_castSlice.js +1 -2
  601. package/dist/node_modules/lodash/_castSlice.js.map +1 -1
  602. package/dist/node_modules/lodash/_compareAscending.js +1 -2
  603. package/dist/node_modules/lodash/_compareAscending.js.map +1 -1
  604. package/dist/node_modules/lodash/_compareMultiple.js +1 -2
  605. package/dist/node_modules/lodash/_compareMultiple.js.map +1 -1
  606. package/dist/node_modules/lodash/_coreJsData.js +1 -2
  607. package/dist/node_modules/lodash/_coreJsData.js.map +1 -1
  608. package/dist/node_modules/lodash/_createBaseEach.js +1 -2
  609. package/dist/node_modules/lodash/_createBaseEach.js.map +1 -1
  610. package/dist/node_modules/lodash/_createBaseFor.js +1 -2
  611. package/dist/node_modules/lodash/_createBaseFor.js.map +1 -1
  612. package/dist/node_modules/lodash/_createCaseFirst.js +6 -7
  613. package/dist/node_modules/lodash/_createCaseFirst.js.map +1 -1
  614. package/dist/node_modules/lodash/_createFind.js +5 -6
  615. package/dist/node_modules/lodash/_createFind.js.map +1 -1
  616. package/dist/node_modules/lodash/_createRange.js +4 -5
  617. package/dist/node_modules/lodash/_createRange.js.map +1 -1
  618. package/dist/node_modules/lodash/_createSet.js +6 -7
  619. package/dist/node_modules/lodash/_createSet.js.map +1 -1
  620. package/dist/node_modules/lodash/_defineProperty.js +1 -2
  621. package/dist/node_modules/lodash/_defineProperty.js.map +1 -1
  622. package/dist/node_modules/lodash/_equalArrays.js +1 -2
  623. package/dist/node_modules/lodash/_equalArrays.js.map +1 -1
  624. package/dist/node_modules/lodash/_equalByTag.js +5 -6
  625. package/dist/node_modules/lodash/_equalByTag.js.map +1 -1
  626. package/dist/node_modules/lodash/_equalObjects.js +1 -2
  627. package/dist/node_modules/lodash/_equalObjects.js.map +1 -1
  628. package/dist/node_modules/lodash/_freeGlobal.js +1 -2
  629. package/dist/node_modules/lodash/_freeGlobal.js.map +1 -1
  630. package/dist/node_modules/lodash/_getAllKeys.js +1 -2
  631. package/dist/node_modules/lodash/_getAllKeys.js.map +1 -1
  632. package/dist/node_modules/lodash/_getMapData.js +1 -2
  633. package/dist/node_modules/lodash/_getMapData.js.map +1 -1
  634. package/dist/node_modules/lodash/_getMatchData.js +4 -5
  635. package/dist/node_modules/lodash/_getMatchData.js.map +1 -1
  636. package/dist/node_modules/lodash/_getNative.js +1 -2
  637. package/dist/node_modules/lodash/_getNative.js.map +1 -1
  638. package/dist/node_modules/lodash/_getPrototype.js +1 -2
  639. package/dist/node_modules/lodash/_getPrototype.js.map +1 -1
  640. package/dist/node_modules/lodash/_getRawTag.js +1 -2
  641. package/dist/node_modules/lodash/_getRawTag.js.map +1 -1
  642. package/dist/node_modules/lodash/_getSymbols.js +1 -2
  643. package/dist/node_modules/lodash/_getSymbols.js.map +1 -1
  644. package/dist/node_modules/lodash/_getTag.js +9 -10
  645. package/dist/node_modules/lodash/_getTag.js.map +1 -1
  646. package/dist/node_modules/lodash/_getValue.js +1 -2
  647. package/dist/node_modules/lodash/_getValue.js.map +1 -1
  648. package/dist/node_modules/lodash/_hasPath.js +8 -9
  649. package/dist/node_modules/lodash/_hasPath.js.map +1 -1
  650. package/dist/node_modules/lodash/_hasUnicode.js +1 -2
  651. package/dist/node_modules/lodash/_hasUnicode.js.map +1 -1
  652. package/dist/node_modules/lodash/_hashClear.js +1 -2
  653. package/dist/node_modules/lodash/_hashClear.js.map +1 -1
  654. package/dist/node_modules/lodash/_hashDelete.js +1 -2
  655. package/dist/node_modules/lodash/_hashDelete.js.map +1 -1
  656. package/dist/node_modules/lodash/_hashGet.js +1 -2
  657. package/dist/node_modules/lodash/_hashGet.js.map +1 -1
  658. package/dist/node_modules/lodash/_hashHas.js +1 -2
  659. package/dist/node_modules/lodash/_hashHas.js.map +1 -1
  660. package/dist/node_modules/lodash/_hashSet.js +1 -2
  661. package/dist/node_modules/lodash/_hashSet.js.map +1 -1
  662. package/dist/node_modules/lodash/_isFlattenable.js +5 -6
  663. package/dist/node_modules/lodash/_isFlattenable.js.map +1 -1
  664. package/dist/node_modules/lodash/_isIndex.js +6 -7
  665. package/dist/node_modules/lodash/_isIndex.js.map +1 -1
  666. package/dist/node_modules/lodash/_isIterateeCall.js +5 -6
  667. package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -1
  668. package/dist/node_modules/lodash/_isKey.js +1 -2
  669. package/dist/node_modules/lodash/_isKey.js.map +1 -1
  670. package/dist/node_modules/lodash/_isKeyable.js +1 -2
  671. package/dist/node_modules/lodash/_isKeyable.js.map +1 -1
  672. package/dist/node_modules/lodash/_isMasked.js +1 -2
  673. package/dist/node_modules/lodash/_isMasked.js.map +1 -1
  674. package/dist/node_modules/lodash/_isPrototype.js +1 -2
  675. package/dist/node_modules/lodash/_isPrototype.js.map +1 -1
  676. package/dist/node_modules/lodash/_isStrictComparable.js +1 -2
  677. package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -1
  678. package/dist/node_modules/lodash/_listCacheClear.js +1 -2
  679. package/dist/node_modules/lodash/_listCacheClear.js.map +1 -1
  680. package/dist/node_modules/lodash/_listCacheDelete.js +1 -2
  681. package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -1
  682. package/dist/node_modules/lodash/_listCacheGet.js +1 -2
  683. package/dist/node_modules/lodash/_listCacheGet.js.map +1 -1
  684. package/dist/node_modules/lodash/_listCacheHas.js +1 -2
  685. package/dist/node_modules/lodash/_listCacheHas.js.map +1 -1
  686. package/dist/node_modules/lodash/_listCacheSet.js +1 -2
  687. package/dist/node_modules/lodash/_listCacheSet.js.map +1 -1
  688. package/dist/node_modules/lodash/_mapCacheClear.js +1 -2
  689. package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -1
  690. package/dist/node_modules/lodash/_mapCacheDelete.js +1 -2
  691. package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -1
  692. package/dist/node_modules/lodash/_mapCacheGet.js +1 -2
  693. package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -1
  694. package/dist/node_modules/lodash/_mapCacheHas.js +1 -2
  695. package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -1
  696. package/dist/node_modules/lodash/_mapCacheSet.js +1 -2
  697. package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -1
  698. package/dist/node_modules/lodash/_mapToArray.js +1 -2
  699. package/dist/node_modules/lodash/_mapToArray.js.map +1 -1
  700. package/dist/node_modules/lodash/_matchesStrictComparable.js +2 -3
  701. package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -1
  702. package/dist/node_modules/lodash/_memoizeCapped.js +1 -2
  703. package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -1
  704. package/dist/node_modules/lodash/_nativeCreate.js +1 -2
  705. package/dist/node_modules/lodash/_nativeCreate.js.map +1 -1
  706. package/dist/node_modules/lodash/_nativeKeys.js +1 -2
  707. package/dist/node_modules/lodash/_nativeKeys.js.map +1 -1
  708. package/dist/node_modules/lodash/_nodeUtil.js +1 -2
  709. package/dist/node_modules/lodash/_nodeUtil.js.map +1 -1
  710. package/dist/node_modules/lodash/_objectToString.js +1 -2
  711. package/dist/node_modules/lodash/_objectToString.js.map +1 -1
  712. package/dist/node_modules/lodash/_overArg.js +1 -2
  713. package/dist/node_modules/lodash/_overArg.js.map +1 -1
  714. package/dist/node_modules/lodash/_overRest.js +1 -2
  715. package/dist/node_modules/lodash/_overRest.js.map +1 -1
  716. package/dist/node_modules/lodash/_root.js +1 -2
  717. package/dist/node_modules/lodash/_root.js.map +1 -1
  718. package/dist/node_modules/lodash/_setCacheAdd.js +4 -6
  719. package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -1
  720. package/dist/node_modules/lodash/_setCacheHas.js +1 -2
  721. package/dist/node_modules/lodash/_setCacheHas.js.map +1 -1
  722. package/dist/node_modules/lodash/_setToArray.js +1 -2
  723. package/dist/node_modules/lodash/_setToArray.js.map +1 -1
  724. package/dist/node_modules/lodash/_setToString.js +1 -2
  725. package/dist/node_modules/lodash/_setToString.js.map +1 -1
  726. package/dist/node_modules/lodash/_shortOut.js +8 -9
  727. package/dist/node_modules/lodash/_shortOut.js.map +1 -1
  728. package/dist/node_modules/lodash/_stackClear.js +1 -2
  729. package/dist/node_modules/lodash/_stackClear.js.map +1 -1
  730. package/dist/node_modules/lodash/_stackDelete.js +1 -2
  731. package/dist/node_modules/lodash/_stackDelete.js.map +1 -1
  732. package/dist/node_modules/lodash/_stackGet.js +1 -2
  733. package/dist/node_modules/lodash/_stackGet.js.map +1 -1
  734. package/dist/node_modules/lodash/_stackHas.js +1 -2
  735. package/dist/node_modules/lodash/_stackHas.js.map +1 -1
  736. package/dist/node_modules/lodash/_stackSet.js +1 -2
  737. package/dist/node_modules/lodash/_stackSet.js.map +1 -1
  738. package/dist/node_modules/lodash/_strictIndexOf.js +1 -2
  739. package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -1
  740. package/dist/node_modules/lodash/_stringToArray.js +4 -5
  741. package/dist/node_modules/lodash/_stringToArray.js.map +1 -1
  742. package/dist/node_modules/lodash/_stringToPath.js +1 -2
  743. package/dist/node_modules/lodash/_stringToPath.js.map +1 -1
  744. package/dist/node_modules/lodash/_toKey.js +2 -3
  745. package/dist/node_modules/lodash/_toKey.js.map +1 -1
  746. package/dist/node_modules/lodash/_toSource.js +1 -2
  747. package/dist/node_modules/lodash/_toSource.js.map +1 -1
  748. package/dist/node_modules/lodash/_trimmedEndIndex.js +1 -2
  749. package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -1
  750. package/dist/node_modules/lodash/_unicodeToArray.js +1 -2
  751. package/dist/node_modules/lodash/_unicodeToArray.js.map +1 -1
  752. package/dist/node_modules/lodash/constant.js +1 -2
  753. package/dist/node_modules/lodash/constant.js.map +1 -1
  754. package/dist/node_modules/lodash/debounce.js +1 -2
  755. package/dist/node_modules/lodash/debounce.js.map +1 -1
  756. package/dist/node_modules/lodash/eq.js +1 -2
  757. package/dist/node_modules/lodash/eq.js.map +1 -1
  758. package/dist/node_modules/lodash/every.js +7 -8
  759. package/dist/node_modules/lodash/every.js.map +1 -1
  760. package/dist/node_modules/lodash/find.js +1 -2
  761. package/dist/node_modules/lodash/find.js.map +1 -1
  762. package/dist/node_modules/lodash/findIndex.js +4 -5
  763. package/dist/node_modules/lodash/findIndex.js.map +1 -1
  764. package/dist/node_modules/lodash/flatMap.js +1 -2
  765. package/dist/node_modules/lodash/flatMap.js.map +1 -1
  766. package/dist/node_modules/lodash/get.js +1 -2
  767. package/dist/node_modules/lodash/get.js.map +1 -1
  768. package/dist/node_modules/lodash/hasIn.js +1 -2
  769. package/dist/node_modules/lodash/hasIn.js.map +1 -1
  770. package/dist/node_modules/lodash/identity.js +1 -2
  771. package/dist/node_modules/lodash/identity.js.map +1 -1
  772. package/dist/node_modules/lodash/isArguments.js +4 -5
  773. package/dist/node_modules/lodash/isArguments.js.map +1 -1
  774. package/dist/node_modules/lodash/isArray.js +1 -2
  775. package/dist/node_modules/lodash/isArray.js.map +1 -1
  776. package/dist/node_modules/lodash/isArrayLike.js +1 -2
  777. package/dist/node_modules/lodash/isArrayLike.js.map +1 -1
  778. package/dist/node_modules/lodash/isBoolean.js +1 -2
  779. package/dist/node_modules/lodash/isBoolean.js.map +1 -1
  780. package/dist/node_modules/lodash/isBuffer.js +1 -2
  781. package/dist/node_modules/lodash/isBuffer.js.map +1 -1
  782. package/dist/node_modules/lodash/isEqual.js +1 -2
  783. package/dist/node_modules/lodash/isEqual.js.map +1 -1
  784. package/dist/node_modules/lodash/isFunction.js +1 -2
  785. package/dist/node_modules/lodash/isFunction.js.map +1 -1
  786. package/dist/node_modules/lodash/isLength.js +4 -6
  787. package/dist/node_modules/lodash/isLength.js.map +1 -1
  788. package/dist/node_modules/lodash/isNaN.js +1 -2
  789. package/dist/node_modules/lodash/isNaN.js.map +1 -1
  790. package/dist/node_modules/lodash/isNil.js +1 -2
  791. package/dist/node_modules/lodash/isNil.js.map +1 -1
  792. package/dist/node_modules/lodash/isNumber.js +1 -2
  793. package/dist/node_modules/lodash/isNumber.js.map +1 -1
  794. package/dist/node_modules/lodash/isObject.js +1 -2
  795. package/dist/node_modules/lodash/isObject.js.map +1 -1
  796. package/dist/node_modules/lodash/isObjectLike.js +1 -2
  797. package/dist/node_modules/lodash/isObjectLike.js.map +1 -1
  798. package/dist/node_modules/lodash/isPlainObject.js +4 -5
  799. package/dist/node_modules/lodash/isPlainObject.js.map +1 -1
  800. package/dist/node_modules/lodash/isString.js +4 -5
  801. package/dist/node_modules/lodash/isString.js.map +1 -1
  802. package/dist/node_modules/lodash/isSymbol.js +1 -2
  803. package/dist/node_modules/lodash/isSymbol.js.map +1 -1
  804. package/dist/node_modules/lodash/isTypedArray.js +1 -2
  805. package/dist/node_modules/lodash/isTypedArray.js.map +1 -1
  806. package/dist/node_modules/lodash/keys.js +1 -2
  807. package/dist/node_modules/lodash/keys.js.map +1 -1
  808. package/dist/node_modules/lodash/last.js +1 -2
  809. package/dist/node_modules/lodash/last.js.map +1 -1
  810. package/dist/node_modules/lodash/map.js +6 -7
  811. package/dist/node_modules/lodash/map.js.map +1 -1
  812. package/dist/node_modules/lodash/mapValues.js +4 -5
  813. package/dist/node_modules/lodash/mapValues.js.map +1 -1
  814. package/dist/node_modules/lodash/max.js +5 -6
  815. package/dist/node_modules/lodash/max.js.map +1 -1
  816. package/dist/node_modules/lodash/memoize.js +1 -2
  817. package/dist/node_modules/lodash/memoize.js.map +1 -1
  818. package/dist/node_modules/lodash/min.js +5 -6
  819. package/dist/node_modules/lodash/min.js.map +1 -1
  820. package/dist/node_modules/lodash/noop.js +1 -2
  821. package/dist/node_modules/lodash/noop.js.map +1 -1
  822. package/dist/node_modules/lodash/now.js +1 -2
  823. package/dist/node_modules/lodash/now.js.map +1 -1
  824. package/dist/node_modules/lodash/property.js +6 -7
  825. package/dist/node_modules/lodash/property.js.map +1 -1
  826. package/dist/node_modules/lodash/range.js +1 -2
  827. package/dist/node_modules/lodash/range.js.map +1 -1
  828. package/dist/node_modules/lodash/some.js +7 -8
  829. package/dist/node_modules/lodash/some.js.map +1 -1
  830. package/dist/node_modules/lodash/sortBy.js +1 -2
  831. package/dist/node_modules/lodash/sortBy.js.map +1 -1
  832. package/dist/node_modules/lodash/stubArray.js +1 -2
  833. package/dist/node_modules/lodash/stubArray.js.map +1 -1
  834. package/dist/node_modules/lodash/stubFalse.js +1 -2
  835. package/dist/node_modules/lodash/stubFalse.js.map +1 -1
  836. package/dist/node_modules/lodash/throttle.js +4 -5
  837. package/dist/node_modules/lodash/throttle.js.map +1 -1
  838. package/dist/node_modules/lodash/toFinite.js +2 -3
  839. package/dist/node_modules/lodash/toFinite.js.map +1 -1
  840. package/dist/node_modules/lodash/toInteger.js +1 -2
  841. package/dist/node_modules/lodash/toInteger.js.map +1 -1
  842. package/dist/node_modules/lodash/toNumber.js +4 -5
  843. package/dist/node_modules/lodash/toNumber.js.map +1 -1
  844. package/dist/node_modules/lodash/toString.js +1 -2
  845. package/dist/node_modules/lodash/toString.js.map +1 -1
  846. package/dist/node_modules/lodash/uniqBy.js +1 -2
  847. package/dist/node_modules/lodash/uniqBy.js.map +1 -1
  848. package/dist/node_modules/lodash/upperFirst.js +1 -2
  849. package/dist/node_modules/lodash/upperFirst.js.map +1 -1
  850. package/dist/node_modules/object-assign/index.js +1 -2
  851. package/dist/node_modules/object-assign/index.js.map +1 -1
  852. package/dist/node_modules/prop-types/checkPropTypes.js +1 -2
  853. package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -1
  854. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -2
  855. package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -1
  856. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +3 -3
  857. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
  858. package/dist/node_modules/prop-types/index.js +1 -2
  859. package/dist/node_modules/prop-types/index.js.map +1 -1
  860. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -2
  861. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -1
  862. package/dist/node_modules/prop-types/lib/has.js +1 -2
  863. package/dist/node_modules/prop-types/lib/has.js.map +1 -1
  864. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -2
  865. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  866. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -2
  867. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  868. package/dist/node_modules/prop-types/node_modules/react-is/index.js +2 -3
  869. package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -1
  870. package/dist/node_modules/react-is/cjs/react-is.development.js +31 -32
  871. package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  872. package/dist/node_modules/react-is/cjs/react-is.production.min.js +1 -2
  873. package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  874. package/dist/node_modules/react-is/index.js +2 -3
  875. package/dist/node_modules/react-is/index.js.map +1 -1
  876. package/dist/node_modules/react-smooth/es6/Animate.js +33 -41
  877. package/dist/node_modules/react-smooth/es6/Animate.js.map +1 -1
  878. package/dist/node_modules/react-smooth/es6/AnimateManager.js +2 -5
  879. package/dist/node_modules/react-smooth/es6/AnimateManager.js.map +1 -1
  880. package/dist/node_modules/react-smooth/es6/configUpdate.js +1 -2
  881. package/dist/node_modules/react-smooth/es6/configUpdate.js.map +1 -1
  882. package/dist/node_modules/react-smooth/es6/easing.js +1 -2
  883. package/dist/node_modules/react-smooth/es6/easing.js.map +1 -1
  884. package/dist/node_modules/react-smooth/es6/index.js +1 -2
  885. package/dist/node_modules/react-smooth/es6/index.js.map +1 -1
  886. package/dist/node_modules/react-smooth/es6/setRafTimeout.js +1 -2
  887. package/dist/node_modules/react-smooth/es6/setRafTimeout.js.map +1 -1
  888. package/dist/node_modules/react-smooth/es6/util.js +17 -16
  889. package/dist/node_modules/react-smooth/es6/util.js.map +1 -1
  890. package/dist/node_modules/recharts/es6/cartesian/Bar.js +103 -104
  891. package/dist/node_modules/recharts/es6/cartesian/Bar.js.map +1 -1
  892. package/dist/node_modules/recharts/es6/cartesian/Brush.js +35 -36
  893. package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +1 -1
  894. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +60 -67
  895. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js.map +1 -1
  896. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +45 -46
  897. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js.map +1 -1
  898. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +20 -21
  899. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js.map +1 -1
  900. package/dist/node_modules/recharts/es6/cartesian/Line.js +79 -80
  901. package/dist/node_modules/recharts/es6/cartesian/Line.js.map +1 -1
  902. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +29 -30
  903. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js.map +1 -1
  904. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +23 -24
  905. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js.map +1 -1
  906. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +31 -32
  907. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js.map +1 -1
  908. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +10 -11
  909. package/dist/node_modules/recharts/es6/cartesian/XAxis.js.map +1 -1
  910. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +10 -11
  911. package/dist/node_modules/recharts/es6/cartesian/YAxis.js.map +1 -1
  912. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +5 -6
  913. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js.map +1 -1
  914. package/dist/node_modules/recharts/es6/cartesian/getTicks.js +7 -8
  915. package/dist/node_modules/recharts/es6/cartesian/getTicks.js.map +1 -1
  916. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +2 -5
  917. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js.map +1 -1
  918. package/dist/node_modules/recharts/es6/chart/BarChart.js +7 -8
  919. package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -1
  920. package/dist/node_modules/recharts/es6/chart/LineChart.js +5 -6
  921. package/dist/node_modules/recharts/es6/chart/LineChart.js.map +1 -1
  922. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +534 -533
  923. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js.map +1 -1
  924. package/dist/node_modules/recharts/es6/component/Cell.js +1 -2
  925. package/dist/node_modules/recharts/es6/component/Cell.js.map +1 -1
  926. package/dist/node_modules/recharts/es6/component/Cursor.js +17 -18
  927. package/dist/node_modules/recharts/es6/component/Cursor.js.map +1 -1
  928. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +35 -36
  929. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js.map +1 -1
  930. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +16 -17
  931. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js.map +1 -1
  932. package/dist/node_modules/recharts/es6/component/Label.js +85 -86
  933. package/dist/node_modules/recharts/es6/component/Label.js.map +1 -1
  934. package/dist/node_modules/recharts/es6/component/LabelList.js +20 -21
  935. package/dist/node_modules/recharts/es6/component/LabelList.js.map +1 -1
  936. package/dist/node_modules/recharts/es6/component/Legend.js +26 -23
  937. package/dist/node_modules/recharts/es6/component/Legend.js.map +1 -1
  938. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +16 -17
  939. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js.map +1 -1
  940. package/dist/node_modules/recharts/es6/component/Text.js +18 -21
  941. package/dist/node_modules/recharts/es6/component/Text.js.map +1 -1
  942. package/dist/node_modules/recharts/es6/component/Tooltip.js +16 -17
  943. package/dist/node_modules/recharts/es6/component/Tooltip.js.map +1 -1
  944. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +3 -4
  945. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js.map +1 -1
  946. package/dist/node_modules/recharts/es6/container/Layer.js +5 -6
  947. package/dist/node_modules/recharts/es6/container/Layer.js.map +1 -1
  948. package/dist/node_modules/recharts/es6/container/Surface.js +5 -6
  949. package/dist/node_modules/recharts/es6/container/Surface.js.map +1 -1
  950. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +21 -21
  951. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js.map +1 -1
  952. package/dist/node_modules/recharts/es6/shape/Cross.js +4 -5
  953. package/dist/node_modules/recharts/es6/shape/Cross.js.map +1 -1
  954. package/dist/node_modules/recharts/es6/shape/Curve.js +38 -49
  955. package/dist/node_modules/recharts/es6/shape/Curve.js.map +1 -1
  956. package/dist/node_modules/recharts/es6/shape/Dot.js +3 -4
  957. package/dist/node_modules/recharts/es6/shape/Dot.js.map +1 -1
  958. package/dist/node_modules/recharts/es6/shape/Rectangle.js +8 -9
  959. package/dist/node_modules/recharts/es6/shape/Rectangle.js.map +1 -1
  960. package/dist/node_modules/recharts/es6/shape/Sector.js +33 -34
  961. package/dist/node_modules/recharts/es6/shape/Sector.js.map +1 -1
  962. package/dist/node_modules/recharts/es6/shape/Symbols.js +26 -34
  963. package/dist/node_modules/recharts/es6/shape/Symbols.js.map +1 -1
  964. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +8 -9
  965. package/dist/node_modules/recharts/es6/shape/Trapezoid.js.map +1 -1
  966. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +24 -25
  967. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js.map +1 -1
  968. package/dist/node_modules/recharts/es6/util/BarUtils.js +10 -11
  969. package/dist/node_modules/recharts/es6/util/BarUtils.js.map +1 -1
  970. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +33 -34
  971. package/dist/node_modules/recharts/es6/util/CartesianUtils.js.map +1 -1
  972. package/dist/node_modules/recharts/es6/util/ChartUtils.js +231 -236
  973. package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +1 -1
  974. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +1 -2
  975. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js.map +1 -1
  976. package/dist/node_modules/recharts/es6/util/DOMUtils.js +1 -2
  977. package/dist/node_modules/recharts/es6/util/DOMUtils.js.map +1 -1
  978. package/dist/node_modules/recharts/es6/util/DataUtils.js +7 -8
  979. package/dist/node_modules/recharts/es6/util/DataUtils.js.map +1 -1
  980. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +20 -21
  981. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js.map +1 -1
  982. package/dist/node_modules/recharts/es6/util/Events.js +0 -1
  983. package/dist/node_modules/recharts/es6/util/Events.js.map +1 -1
  984. package/dist/node_modules/recharts/es6/util/Global.js +0 -1
  985. package/dist/node_modules/recharts/es6/util/Global.js.map +1 -1
  986. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +1 -2
  987. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js.map +1 -1
  988. package/dist/node_modules/recharts/es6/util/LogUtils.js +9 -8
  989. package/dist/node_modules/recharts/es6/util/LogUtils.js.map +1 -1
  990. package/dist/node_modules/recharts/es6/util/PolarUtils.js +4 -5
  991. package/dist/node_modules/recharts/es6/util/PolarUtils.js.map +1 -1
  992. package/dist/node_modules/recharts/es6/util/ReactUtils.js +11 -12
  993. package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +1 -1
  994. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +5 -6
  995. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js.map +1 -1
  996. package/dist/node_modules/recharts/es6/util/ShallowEqual.js +1 -2
  997. package/dist/node_modules/recharts/es6/util/ShallowEqual.js.map +1 -1
  998. package/dist/node_modules/recharts/es6/util/TickUtils.js +4 -4
  999. package/dist/node_modules/recharts/es6/util/TickUtils.js.map +1 -1
  1000. package/dist/node_modules/recharts/es6/util/calculateViewBox.js +0 -1
  1001. package/dist/node_modules/recharts/es6/util/calculateViewBox.js.map +1 -1
  1002. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +7 -6
  1003. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js.map +1 -1
  1004. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +1 -2
  1005. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js.map +1 -1
  1006. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +1 -2
  1007. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js.map +1 -1
  1008. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +1 -2
  1009. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js.map +1 -1
  1010. package/dist/node_modules/recharts/es6/util/getLegendProps.js +9 -10
  1011. package/dist/node_modules/recharts/es6/util/getLegendProps.js.map +1 -1
  1012. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +1 -2
  1013. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js.map +1 -1
  1014. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +4 -5
  1015. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js.map +1 -1
  1016. package/dist/node_modules/recharts/es6/util/tooltip/translate.js +3 -4
  1017. package/dist/node_modules/recharts/es6/util/tooltip/translate.js.map +1 -1
  1018. package/dist/node_modules/recharts/es6/util/types.js +2 -3
  1019. package/dist/node_modules/recharts/es6/util/types.js.map +1 -1
  1020. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +2 -3
  1021. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js.map +1 -1
  1022. package/dist/node_modules/recharts-scale/es6/index.js +1 -1
  1023. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +1 -2
  1024. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js.map +1 -1
  1025. package/dist/node_modules/recharts-scale/es6/util/utils.js +3 -4
  1026. package/dist/node_modules/recharts-scale/es6/util/utils.js.map +1 -1
  1027. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +2 -3
  1028. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -1
  1029. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +41 -42
  1030. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -1
  1031. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +14 -15
  1032. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -1
  1033. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +21 -18
  1034. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
  1035. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +1 -2
  1036. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -1
  1037. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +1 -2
  1038. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -1
  1039. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +2 -3
  1040. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -1
  1041. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +1 -2
  1042. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -1
  1043. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +1 -2
  1044. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -1
  1045. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +1 -2
  1046. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -1
  1047. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +1 -2
  1048. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -1
  1049. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +1 -2
  1050. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -1
  1051. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +1 -2
  1052. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -1
  1053. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +1 -2
  1054. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -1
  1055. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +1 -2
  1056. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -1
  1057. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +1 -2
  1058. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -1
  1059. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +1 -2
  1060. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -1
  1061. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
  1062. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  1063. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +2 -3
  1064. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -1
  1065. package/dist/node_modules/{rxjs/node_modules/tslib → tslib}/tslib.es6.js +1 -2
  1066. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  1067. package/dist/node_modules/victory-vendor/es/d3-scale.js +28 -45
  1068. package/dist/node_modules/victory-vendor/es/d3-scale.js.map +1 -1
  1069. package/dist/test/happydom.d.ts +1 -0
  1070. package/dist/translations/en.d.ts +46 -1
  1071. package/dist/translations/en.js +48 -3
  1072. package/dist/translations/en.js.map +1 -1
  1073. package/dist/utils/nativeBridge.d.ts +0 -1
  1074. package/dist/utils/nativeBridge.js +1 -2
  1075. package/package.json +76 -60
  1076. package/dist/__tests__/setup.d.ts +0 -2
  1077. package/dist/__tests__/setup.d.ts.map +0 -1
  1078. package/dist/__tests__/utils/renderWithProviders.d.ts.map +0 -1
  1079. package/dist/dev/main.d.ts.map +0 -1
  1080. package/dist/devportal/AdminDevportalRoot.d.ts.map +0 -1
  1081. package/dist/devportal/AdminDevportalRoutes.d.ts.map +0 -1
  1082. package/dist/devportal/DevportalRoot.d.ts.map +0 -1
  1083. package/dist/devportal/DevportalRoutes.d.ts.map +0 -1
  1084. package/dist/devportal/components/AppCard.d.ts.map +0 -1
  1085. package/dist/devportal/components/ConfirmDialog.d.ts.map +0 -1
  1086. package/dist/devportal/components/DataTable.d.ts.map +0 -1
  1087. package/dist/devportal/components/EmptyState.d.ts.map +0 -1
  1088. package/dist/devportal/components/FeatureFlaggedRoute.d.ts.map +0 -1
  1089. package/dist/devportal/components/FormField.d.ts.map +0 -1
  1090. package/dist/devportal/components/GrantDelegationModal.d.ts.map +0 -1
  1091. package/dist/devportal/components/ImageUploadField.d.ts.map +0 -1
  1092. package/dist/devportal/components/LoadingState.d.ts.map +0 -1
  1093. package/dist/devportal/components/ManifestViewer.d.ts.map +0 -1
  1094. package/dist/devportal/components/MarkdownEditor.d.ts.map +0 -1
  1095. package/dist/devportal/components/MultiSelectCombobox.d.ts.map +0 -1
  1096. package/dist/devportal/components/NodeSmokePanel.d.ts.map +0 -1
  1097. package/dist/devportal/components/OnboardingChecklist.d.ts.map +0 -1
  1098. package/dist/devportal/components/PackageValidationPanel.d.ts.map +0 -1
  1099. package/dist/devportal/components/PageLayout.d.ts.map +0 -1
  1100. package/dist/devportal/components/PermissionGuard.d.ts.map +0 -1
  1101. package/dist/devportal/components/RegisterPickupLocationModal.d.ts.map +0 -1
  1102. package/dist/devportal/components/ReportOrderIssueModal.d.ts.map +0 -1
  1103. package/dist/devportal/components/SecretDisplay.d.ts.map +0 -1
  1104. package/dist/devportal/components/SectionNav.d.ts.map +0 -1
  1105. package/dist/devportal/components/SelectionCheckbox.d.ts.map +0 -1
  1106. package/dist/devportal/components/StatCard.d.ts.map +0 -1
  1107. package/dist/devportal/components/StatusBadge.d.ts.map +0 -1
  1108. package/dist/devportal/components/TelemetryErrorBoundary.d.ts.map +0 -1
  1109. package/dist/devportal/components/index.d.ts.map +0 -1
  1110. package/dist/devportal/constants/appCategories.d.ts.map +0 -1
  1111. package/dist/devportal/constants/developerLinks.d.ts.map +0 -1
  1112. package/dist/devportal/constants/permissions.d.ts.map +0 -1
  1113. package/dist/devportal/events/index.d.ts.map +0 -1
  1114. package/dist/devportal/hooks/DevPortalProvider.d.ts.map +0 -1
  1115. package/dist/devportal/hooks/index.d.ts.map +0 -1
  1116. package/dist/devportal/hooks/useCarrierPickupLocations.d.ts.map +0 -1
  1117. package/dist/devportal/hooks/useGraphQL.d.ts.map +0 -1
  1118. package/dist/devportal/hooks/useIsSellerSection.d.ts.map +0 -1
  1119. package/dist/devportal/hooks/useOrganizationPickupAddresses.d.ts.map +0 -1
  1120. package/dist/devportal/hooks/usePackageUpload.d.ts.map +0 -1
  1121. package/dist/devportal/hooks/usePermission.d.ts.map +0 -1
  1122. package/dist/devportal/hooks/useProducts.d.ts.map +0 -1
  1123. package/dist/devportal/hooks/useSellerOrganization.d.ts.map +0 -1
  1124. package/dist/devportal/index.d.ts.map +0 -1
  1125. package/dist/devportal/pages/AdminOrganizationVerificationPage.d.ts.map +0 -1
  1126. package/dist/devportal/pages/AdminReviewPage.d.ts.map +0 -1
  1127. package/dist/devportal/pages/AnalyticsDashboardPage.d.ts.map +0 -1
  1128. package/dist/devportal/pages/ApiKeysPage.d.ts.map +0 -1
  1129. package/dist/devportal/pages/AppLogsPage.d.ts.map +0 -1
  1130. package/dist/devportal/pages/ApplicationDetailPage.d.ts.map +0 -1
  1131. package/dist/devportal/pages/ApplicationVersionsPage.d.ts.map +0 -1
  1132. package/dist/devportal/pages/ApplicationsPage.d.ts.map +0 -1
  1133. package/dist/devportal/pages/CreateApiKeyPage.d.ts.map +0 -1
  1134. package/dist/devportal/pages/CreateApplicationPage.d.ts.map +0 -1
  1135. package/dist/devportal/pages/CreateOAuthClientPage.d.ts.map +0 -1
  1136. package/dist/devportal/pages/CreateOrganizationPage.d.ts.map +0 -1
  1137. package/dist/devportal/pages/CreatePhysicalItemPage.d.ts.map +0 -1
  1138. package/dist/devportal/pages/CreateWebhookPage.d.ts.map +0 -1
  1139. package/dist/devportal/pages/DashboardPage.d.ts.map +0 -1
  1140. package/dist/devportal/pages/DelegationsPage.d.ts.map +0 -1
  1141. package/dist/devportal/pages/DocumentationPage.d.ts.map +0 -1
  1142. package/dist/devportal/pages/EditApplicationPage.d.ts.map +0 -1
  1143. package/dist/devportal/pages/EditPhysicalItemPage.d.ts.map +0 -1
  1144. package/dist/devportal/pages/InvitationDecisionPage.d.ts.map +0 -1
  1145. package/dist/devportal/pages/ListingPreviewPage.d.ts.map +0 -1
  1146. package/dist/devportal/pages/NodeLifecyclePage.d.ts.map +0 -1
  1147. package/dist/devportal/pages/OAuthCallbackPage.d.ts.map +0 -1
  1148. package/dist/devportal/pages/OAuthClientDetailPage.d.ts.map +0 -1
  1149. package/dist/devportal/pages/OAuthClientsPage.d.ts.map +0 -1
  1150. package/dist/devportal/pages/OrganizationDetailPage.d.ts.map +0 -1
  1151. package/dist/devportal/pages/OrganizationMembersPage.d.ts.map +0 -1
  1152. package/dist/devportal/pages/OrganizationsPage.d.ts.map +0 -1
  1153. package/dist/devportal/pages/PublishPage.d.ts.map +0 -1
  1154. package/dist/devportal/pages/PublisherPayoutsPage.d.ts.map +0 -1
  1155. package/dist/devportal/pages/PublisherProfilePage.d.ts.map +0 -1
  1156. package/dist/devportal/pages/ResourcesPage.d.ts.map +0 -1
  1157. package/dist/devportal/pages/RevenueDashboardPage.d.ts.map +0 -1
  1158. package/dist/devportal/pages/RevenueRedirectPage.d.ts.map +0 -1
  1159. package/dist/devportal/pages/SellerDashboardPage.d.ts.map +0 -1
  1160. package/dist/devportal/pages/SellerItemsPage.d.ts.map +0 -1
  1161. package/dist/devportal/pages/SellerOrdersPage.d.ts.map +0 -1
  1162. package/dist/devportal/pages/SettingsPage.d.ts.map +0 -1
  1163. package/dist/devportal/pages/SetupPage.d.ts.map +0 -1
  1164. package/dist/devportal/pages/StoreSubmissionPage.d.ts.map +0 -1
  1165. package/dist/devportal/pages/WebhookDetailPage.d.ts.map +0 -1
  1166. package/dist/devportal/pages/WebhooksPage.d.ts.map +0 -1
  1167. package/dist/devportal/providers/DevportalProvider.d.ts.map +0 -1
  1168. package/dist/devportal/store/devportalStore.d.ts.map +0 -1
  1169. package/dist/devportal/types/index.d.ts.map +0 -1
  1170. package/dist/devportal/utils/cn.d.ts.map +0 -1
  1171. package/dist/devportal/utils/constants.d.ts.map +0 -1
  1172. package/dist/devportal/utils/currency.d.ts.map +0 -1
  1173. package/dist/devportal/utils/developerOnboarding.d.ts.map +0 -1
  1174. package/dist/devportal/utils/graphqlEndpoint.d.ts.map +0 -1
  1175. package/dist/devportal/utils/i18n.d.ts.map +0 -1
  1176. package/dist/devportal/utils/nodeLifecycle.d.ts.map +0 -1
  1177. package/dist/devportal/utils/publisherPayouts.d.ts.map +0 -1
  1178. package/dist/devportal/utils/recaptcha.d.ts.map +0 -1
  1179. package/dist/devportal/utils/submitForReview.d.ts.map +0 -1
  1180. package/dist/devportal/utils/uploadErrors.d.ts.map +0 -1
  1181. package/dist/generated/global-operations.d.ts.map +0 -1
  1182. package/dist/generated/global-types.d.ts.map +0 -1
  1183. package/dist/generated/wspace-operations.d.ts.map +0 -1
  1184. package/dist/generated/wspace-types.d.ts.map +0 -1
  1185. package/dist/index.d.ts.map +0 -1
  1186. package/dist/node_modules/d3-array/src/ascending.js +0 -8
  1187. package/dist/node_modules/d3-array/src/ascending.js.map +0 -1
  1188. package/dist/node_modules/d3-array/src/bisect.js +0 -10
  1189. package/dist/node_modules/d3-array/src/bisect.js.map +0 -1
  1190. package/dist/node_modules/d3-array/src/bisector.js +0 -43
  1191. package/dist/node_modules/d3-array/src/bisector.js.map +0 -1
  1192. package/dist/node_modules/d3-array/src/descending.js +0 -8
  1193. package/dist/node_modules/d3-array/src/descending.js.map +0 -1
  1194. package/dist/node_modules/d3-array/src/max.js +0 -14
  1195. package/dist/node_modules/d3-array/src/max.js.map +0 -1
  1196. package/dist/node_modules/d3-array/src/min.js +0 -14
  1197. package/dist/node_modules/d3-array/src/min.js.map +0 -1
  1198. package/dist/node_modules/d3-array/src/number.js +0 -15
  1199. package/dist/node_modules/d3-array/src/number.js.map +0 -1
  1200. package/dist/node_modules/d3-array/src/quantile.js +0 -25
  1201. package/dist/node_modules/d3-array/src/quantile.js.map +0 -1
  1202. package/dist/node_modules/d3-array/src/quickselect.js +0 -26
  1203. package/dist/node_modules/d3-array/src/quickselect.js.map +0 -1
  1204. package/dist/node_modules/d3-array/src/range.js +0 -10
  1205. package/dist/node_modules/d3-array/src/range.js.map +0 -1
  1206. package/dist/node_modules/d3-array/src/sort.js +0 -17
  1207. package/dist/node_modules/d3-array/src/sort.js.map +0 -1
  1208. package/dist/node_modules/d3-array/src/ticks.js +0 -34
  1209. package/dist/node_modules/d3-array/src/ticks.js.map +0 -1
  1210. package/dist/node_modules/d3-color/src/color.js +0 -291
  1211. package/dist/node_modules/d3-color/src/color.js.map +0 -1
  1212. package/dist/node_modules/d3-color/src/define.js +0 -13
  1213. package/dist/node_modules/d3-color/src/define.js.map +0 -1
  1214. package/dist/node_modules/d3-format/src/defaultLocale.js +0 -15
  1215. package/dist/node_modules/d3-format/src/defaultLocale.js.map +0 -1
  1216. package/dist/node_modules/d3-format/src/exponent.js +0 -9
  1217. package/dist/node_modules/d3-format/src/exponent.js.map +0 -1
  1218. package/dist/node_modules/d3-format/src/formatDecimal.js +0 -13
  1219. package/dist/node_modules/d3-format/src/formatDecimal.js.map +0 -1
  1220. package/dist/node_modules/d3-format/src/formatGroup.js +0 -11
  1221. package/dist/node_modules/d3-format/src/formatGroup.js.map +0 -1
  1222. package/dist/node_modules/d3-format/src/formatNumerals.js +0 -12
  1223. package/dist/node_modules/d3-format/src/formatNumerals.js.map +0 -1
  1224. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -13
  1225. package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +0 -1
  1226. package/dist/node_modules/d3-format/src/formatRounded.js +0 -12
  1227. package/dist/node_modules/d3-format/src/formatRounded.js.map +0 -1
  1228. package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -29
  1229. package/dist/node_modules/d3-format/src/formatSpecifier.js.map +0 -1
  1230. package/dist/node_modules/d3-format/src/formatTrim.js +0 -20
  1231. package/dist/node_modules/d3-format/src/formatTrim.js.map +0 -1
  1232. package/dist/node_modules/d3-format/src/formatTypes.js +0 -23
  1233. package/dist/node_modules/d3-format/src/formatTypes.js.map +0 -1
  1234. package/dist/node_modules/d3-format/src/identity.js +0 -8
  1235. package/dist/node_modules/d3-format/src/identity.js.map +0 -1
  1236. package/dist/node_modules/d3-format/src/locale.js +0 -86
  1237. package/dist/node_modules/d3-format/src/locale.js.map +0 -1
  1238. package/dist/node_modules/d3-format/src/precisionFixed.js +0 -9
  1239. package/dist/node_modules/d3-format/src/precisionFixed.js.map +0 -1
  1240. package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -9
  1241. package/dist/node_modules/d3-format/src/precisionPrefix.js.map +0 -1
  1242. package/dist/node_modules/d3-format/src/precisionRound.js +0 -9
  1243. package/dist/node_modules/d3-format/src/precisionRound.js.map +0 -1
  1244. package/dist/node_modules/d3-interpolate/src/array.js +0 -15
  1245. package/dist/node_modules/d3-interpolate/src/array.js.map +0 -1
  1246. package/dist/node_modules/d3-interpolate/src/basis.js +0 -16
  1247. package/dist/node_modules/d3-interpolate/src/basis.js.map +0 -1
  1248. package/dist/node_modules/d3-interpolate/src/basisClosed.js +0 -13
  1249. package/dist/node_modules/d3-interpolate/src/basisClosed.js.map +0 -1
  1250. package/dist/node_modules/d3-interpolate/src/color.js +0 -25
  1251. package/dist/node_modules/d3-interpolate/src/color.js.map +0 -1
  1252. package/dist/node_modules/d3-interpolate/src/constant.js +0 -6
  1253. package/dist/node_modules/d3-interpolate/src/constant.js.map +0 -1
  1254. package/dist/node_modules/d3-interpolate/src/date.js +0 -11
  1255. package/dist/node_modules/d3-interpolate/src/date.js.map +0 -1
  1256. package/dist/node_modules/d3-interpolate/src/number.js +0 -10
  1257. package/dist/node_modules/d3-interpolate/src/number.js.map +0 -1
  1258. package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -16
  1259. package/dist/node_modules/d3-interpolate/src/numberArray.js.map +0 -1
  1260. package/dist/node_modules/d3-interpolate/src/object.js +0 -14
  1261. package/dist/node_modules/d3-interpolate/src/object.js.map +0 -1
  1262. package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -14
  1263. package/dist/node_modules/d3-interpolate/src/piecewise.js.map +0 -1
  1264. package/dist/node_modules/d3-interpolate/src/rgb.js +0 -19
  1265. package/dist/node_modules/d3-interpolate/src/rgb.js.map +0 -1
  1266. package/dist/node_modules/d3-interpolate/src/round.js +0 -10
  1267. package/dist/node_modules/d3-interpolate/src/round.js.map +0 -1
  1268. package/dist/node_modules/d3-interpolate/src/string.js +0 -28
  1269. package/dist/node_modules/d3-interpolate/src/string.js.map +0 -1
  1270. package/dist/node_modules/d3-interpolate/src/value.js +0 -18
  1271. package/dist/node_modules/d3-interpolate/src/value.js.map +0 -1
  1272. package/dist/node_modules/d3-path/src/path.js.map +0 -1
  1273. package/dist/node_modules/d3-scale/src/band.js +0 -52
  1274. package/dist/node_modules/d3-scale/src/band.js.map +0 -1
  1275. package/dist/node_modules/d3-scale/src/constant.js +0 -10
  1276. package/dist/node_modules/d3-scale/src/constant.js.map +0 -1
  1277. package/dist/node_modules/d3-scale/src/continuous.js +0 -73
  1278. package/dist/node_modules/d3-scale/src/continuous.js.map +0 -1
  1279. package/dist/node_modules/d3-scale/src/diverging.js +0 -82
  1280. package/dist/node_modules/d3-scale/src/diverging.js.map +0 -1
  1281. package/dist/node_modules/d3-scale/src/identity.js +0 -20
  1282. package/dist/node_modules/d3-scale/src/identity.js.map +0 -1
  1283. package/dist/node_modules/d3-scale/src/init.js +0 -29
  1284. package/dist/node_modules/d3-scale/src/init.js.map +0 -1
  1285. package/dist/node_modules/d3-scale/src/linear.js +0 -36
  1286. package/dist/node_modules/d3-scale/src/linear.js.map +0 -1
  1287. package/dist/node_modules/d3-scale/src/log.js +0 -77
  1288. package/dist/node_modules/d3-scale/src/log.js.map +0 -1
  1289. package/dist/node_modules/d3-scale/src/nice.js +0 -10
  1290. package/dist/node_modules/d3-scale/src/nice.js.map +0 -1
  1291. package/dist/node_modules/d3-scale/src/number.js +0 -8
  1292. package/dist/node_modules/d3-scale/src/number.js.map +0 -1
  1293. package/dist/node_modules/d3-scale/src/ordinal.js +0 -31
  1294. package/dist/node_modules/d3-scale/src/ordinal.js.map +0 -1
  1295. package/dist/node_modules/d3-scale/src/pow.js +0 -37
  1296. package/dist/node_modules/d3-scale/src/pow.js.map +0 -1
  1297. package/dist/node_modules/d3-scale/src/quantile.js +0 -37
  1298. package/dist/node_modules/d3-scale/src/quantile.js.map +0 -1
  1299. package/dist/node_modules/d3-scale/src/quantize.js +0 -33
  1300. package/dist/node_modules/d3-scale/src/quantize.js.map +0 -1
  1301. package/dist/node_modules/d3-scale/src/radial.js +0 -39
  1302. package/dist/node_modules/d3-scale/src/radial.js.map +0 -1
  1303. package/dist/node_modules/d3-scale/src/sequential.js +0 -67
  1304. package/dist/node_modules/d3-scale/src/sequential.js.map +0 -1
  1305. package/dist/node_modules/d3-scale/src/sequentialQuantile.js +0 -30
  1306. package/dist/node_modules/d3-scale/src/sequentialQuantile.js.map +0 -1
  1307. package/dist/node_modules/d3-scale/src/symlog.js +0 -30
  1308. package/dist/node_modules/d3-scale/src/symlog.js.map +0 -1
  1309. package/dist/node_modules/d3-scale/src/threshold.js +0 -25
  1310. package/dist/node_modules/d3-scale/src/threshold.js.map +0 -1
  1311. package/dist/node_modules/d3-scale/src/tickFormat.js +0 -31
  1312. package/dist/node_modules/d3-scale/src/tickFormat.js.map +0 -1
  1313. package/dist/node_modules/d3-scale/src/time.js +0 -47
  1314. package/dist/node_modules/d3-scale/src/time.js.map +0 -1
  1315. package/dist/node_modules/d3-scale/src/utcTime.js +0 -19
  1316. package/dist/node_modules/d3-scale/src/utcTime.js.map +0 -1
  1317. package/dist/node_modules/d3-shape/src/area.js +0 -55
  1318. package/dist/node_modules/d3-shape/src/area.js.map +0 -1
  1319. package/dist/node_modules/d3-shape/src/array.js +0 -8
  1320. package/dist/node_modules/d3-shape/src/array.js.map +0 -1
  1321. package/dist/node_modules/d3-shape/src/constant.js +0 -10
  1322. package/dist/node_modules/d3-shape/src/constant.js.map +0 -1
  1323. package/dist/node_modules/d3-shape/src/curve/basis.js +0 -49
  1324. package/dist/node_modules/d3-shape/src/curve/basis.js.map +0 -1
  1325. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -50
  1326. package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +0 -1
  1327. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -46
  1328. package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +0 -1
  1329. package/dist/node_modules/d3-shape/src/curve/bump.js +0 -40
  1330. package/dist/node_modules/d3-shape/src/curve/bump.js.map +0 -1
  1331. package/dist/node_modules/d3-shape/src/curve/linear.js +0 -36
  1332. package/dist/node_modules/d3-shape/src/curve/linear.js.map +0 -1
  1333. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -25
  1334. package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +0 -1
  1335. package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -94
  1336. package/dist/node_modules/d3-shape/src/curve/monotone.js.map +0 -1
  1337. package/dist/node_modules/d3-shape/src/curve/natural.js +0 -39
  1338. package/dist/node_modules/d3-shape/src/curve/natural.js.map +0 -1
  1339. package/dist/node_modules/d3-shape/src/curve/step.js +0 -47
  1340. package/dist/node_modules/d3-shape/src/curve/step.js.map +0 -1
  1341. package/dist/node_modules/d3-shape/src/line.js +0 -30
  1342. package/dist/node_modules/d3-shape/src/line.js.map +0 -1
  1343. package/dist/node_modules/d3-shape/src/math.js +0 -8
  1344. package/dist/node_modules/d3-shape/src/math.js.map +0 -1
  1345. package/dist/node_modules/d3-shape/src/noop.js +0 -6
  1346. package/dist/node_modules/d3-shape/src/noop.js.map +0 -1
  1347. package/dist/node_modules/d3-shape/src/offset/expand.js +0 -15
  1348. package/dist/node_modules/d3-shape/src/offset/expand.js.map +0 -1
  1349. package/dist/node_modules/d3-shape/src/offset/none.js +0 -8
  1350. package/dist/node_modules/d3-shape/src/offset/none.js.map +0 -1
  1351. package/dist/node_modules/d3-shape/src/offset/silhouette.js +0 -15
  1352. package/dist/node_modules/d3-shape/src/offset/silhouette.js.map +0 -1
  1353. package/dist/node_modules/d3-shape/src/offset/wiggle.js +0 -21
  1354. package/dist/node_modules/d3-shape/src/offset/wiggle.js.map +0 -1
  1355. package/dist/node_modules/d3-shape/src/order/none.js +0 -9
  1356. package/dist/node_modules/d3-shape/src/order/none.js.map +0 -1
  1357. package/dist/node_modules/d3-shape/src/path.js +0 -19
  1358. package/dist/node_modules/d3-shape/src/path.js.map +0 -1
  1359. package/dist/node_modules/d3-shape/src/point.js +0 -11
  1360. package/dist/node_modules/d3-shape/src/point.js.map +0 -1
  1361. package/dist/node_modules/d3-shape/src/stack.js +0 -34
  1362. package/dist/node_modules/d3-shape/src/stack.js.map +0 -1
  1363. package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -10
  1364. package/dist/node_modules/d3-shape/src/symbol/circle.js.map +0 -1
  1365. package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -10
  1366. package/dist/node_modules/d3-shape/src/symbol/cross.js.map +0 -1
  1367. package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -10
  1368. package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +0 -1
  1369. package/dist/node_modules/d3-shape/src/symbol/square.js +0 -10
  1370. package/dist/node_modules/d3-shape/src/symbol/square.js.map +0 -1
  1371. package/dist/node_modules/d3-shape/src/symbol/star.js +0 -15
  1372. package/dist/node_modules/d3-shape/src/symbol/star.js.map +0 -1
  1373. package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -10
  1374. package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +0 -1
  1375. package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -10
  1376. package/dist/node_modules/d3-shape/src/symbol/wye.js.map +0 -1
  1377. package/dist/node_modules/d3-shape/src/symbol.js +0 -23
  1378. package/dist/node_modules/d3-shape/src/symbol.js.map +0 -1
  1379. package/dist/node_modules/d3-time/src/day.js +0 -21
  1380. package/dist/node_modules/d3-time/src/day.js.map +0 -1
  1381. package/dist/node_modules/d3-time/src/duration.js +0 -6
  1382. package/dist/node_modules/d3-time/src/duration.js.map +0 -1
  1383. package/dist/node_modules/d3-time/src/hour.js +0 -19
  1384. package/dist/node_modules/d3-time/src/hour.js.map +0 -1
  1385. package/dist/node_modules/d3-time/src/interval.js +0 -28
  1386. package/dist/node_modules/d3-time/src/interval.js.map +0 -1
  1387. package/dist/node_modules/d3-time/src/millisecond.js +0 -14
  1388. package/dist/node_modules/d3-time/src/millisecond.js.map +0 -1
  1389. package/dist/node_modules/d3-time/src/minute.js +0 -19
  1390. package/dist/node_modules/d3-time/src/minute.js.map +0 -1
  1391. package/dist/node_modules/d3-time/src/month.js +0 -18
  1392. package/dist/node_modules/d3-time/src/month.js.map +0 -1
  1393. package/dist/node_modules/d3-time/src/second.js +0 -13
  1394. package/dist/node_modules/d3-time/src/second.js.map +0 -1
  1395. package/dist/node_modules/d3-time/src/ticks.js +0 -125
  1396. package/dist/node_modules/d3-time/src/ticks.js.map +0 -1
  1397. package/dist/node_modules/d3-time/src/week.js +0 -25
  1398. package/dist/node_modules/d3-time/src/week.js.map +0 -1
  1399. package/dist/node_modules/d3-time/src/year.js +0 -26
  1400. package/dist/node_modules/d3-time/src/year.js.map +0 -1
  1401. package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -62
  1402. package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +0 -1
  1403. package/dist/node_modules/d3-time-format/src/locale.js.map +0 -1
  1404. package/dist/node_modules/internmap/src/index.js +0 -40
  1405. package/dist/node_modules/internmap/src/index.js.map +0 -1
  1406. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +0 -1
  1407. package/dist/translations/en.d.ts.map +0 -1
  1408. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useGraphQL.js","names":[],"sources":["../../../src/devportal/hooks/useGraphQL.ts"],"sourcesContent":["/**\n * Apollo Client hooks and utilities for DevPortal\n *\n * This file provides the GraphQL client setup and custom hooks for the Developer Portal.\n * It wraps the generated Apollo hooks with additional functionality like error handling,\n * loading states, and authentication context.\n */\n\nimport {\n ApolloClient,\n InMemoryCache,\n createHttpLink,\n from,\n split,\n} from \"@apollo/client/core\";\nimport { CombinedGraphQLErrors, ServerError } from \"@apollo/client/errors\";\nimport { setContext } from \"@apollo/client/link/context\";\nimport { onError } from \"@apollo/client/link/error\";\nimport { GraphQLWsLink } from \"@apollo/client/link/subscriptions\";\nimport { getMainDefinition } from \"@apollo/client/utilities\";\nimport { createClient as createWsClient } from \"graphql-ws\";\nimport {\n isAuthNetworkError,\n redirectToLogin,\n} from \"@burdenoff/fe-libs/shared/utils\";\n\nfunction hasSessionAuthErrors(\n errors: ReadonlyArray<{\n message?: string;\n extensions?: Record<string, unknown>;\n }> = [],\n): boolean {\n return errors.some((error) => {\n const code =\n typeof error.extensions?.code === \"string\" ? error.extensions.code : \"\";\n const errorCode =\n typeof error.extensions?.errorCode === \"string\"\n ? error.extensions.errorCode\n : \"\";\n const message = (error.message ?? \"\").toLowerCase();\n\n return (\n code === \"UNAUTHENTICATED\" ||\n errorCode === \"TOKEN_EXPIRED\" ||\n message.includes(\"token_expired\") ||\n message.includes(\"token expired\") ||\n message.includes(\"session expired\") ||\n message.includes(\"unauthorized\") ||\n message.includes(\"unauthenticated\") ||\n message.includes(\"authentication required\") ||\n message.includes(\"workspace context missing\")\n );\n });\n}\n\n// Re-export all generated hooks for direct use\nexport * from \"../../generated/global-operations\";\n\n// Development mode check\nconst isDevelopment =\n typeof import.meta !== \"undefined\" && import.meta.env?.DEV === true;\n\n// Default GraphQL endpoints - can be overridden via environment.\n// In standalone dev mode we route through same-origin Vite proxies to avoid CORS.\nconst DEFAULT_GRAPHQL_ENDPOINT =\n (typeof import.meta !== \"undefined\" &&\n import.meta.env?.VITE_GRAPHQL_ENDPOINT) ||\n (isDevelopment ? \"/devportal-graphql\" : \"http://localhost:4015/graphql\");\n\nconst DEFAULT_AUTH_GRAPHQL_ENDPOINT =\n (typeof import.meta !== \"undefined\" &&\n import.meta.env?.VITE_AUTH_GRAPHQL_ENDPOINT) ||\n (isDevelopment ? \"/auth-graphql\" : \"http://localhost:4011/graphql\");\n\nconst AUTH_OPERATION_NAMES = new Set([\n \"CurrentUserApps\",\n \"GetAuthApp\",\n \"AppsActingAsCurrentUser\",\n \"CreateAuthApp\",\n \"UpdateAuthApp\",\n \"DeactivateApp\",\n \"RotateAppSecret\",\n \"AuthenticateApp\",\n \"GenerateAppToken\",\n \"GenerateAppAsUserToken\",\n \"ExchangeToken\",\n \"CurrentUserDelegations\",\n \"CurrentUserGrantedDelegations\",\n \"GrantDelegation\",\n \"RevokeDelegation\",\n \"MyApiKeys\",\n \"GenerateAPIKey\",\n \"RevokeAPIKeyAuth\",\n \"RotateAPIKeyAuth\",\n \"AuthenticateAPIKey\",\n]);\n\n// Development actor ID - simulates gateway-injected headers\n// In production, the gateway adds these after JWT verification\nconst DEV_ACTOR_ID =\n (typeof import.meta !== \"undefined\" && import.meta.env?.VITE_DEV_ACTOR_ID) ||\n \"dev-user-001\";\n\nconst DEV_ACTOR_TYPE =\n (typeof import.meta !== \"undefined\" &&\n import.meta.env?.VITE_DEV_ACTOR_TYPE) ||\n \"user\";\n\nfunction toWsUrl(httpUrl: string): string {\n return httpUrl.replace(/^https/, \"wss\").replace(/^http/, \"ws\");\n}\n\n// Create the HTTP links\nconst devportalHttpLink = createHttpLink({\n uri: DEFAULT_GRAPHQL_ENDPOINT,\n});\n\nconst authHttpLink = createHttpLink({\n uri: DEFAULT_AUTH_GRAPHQL_ENDPOINT,\n});\n\nconst httpLink = split(\n ({ operationName }) => {\n if (!operationName) {\n return false;\n }\n\n return AUTH_OPERATION_NAMES.has(operationName);\n },\n authHttpLink,\n devportalHttpLink,\n);\n\n// Auth link to add authentication headers\nconst authLink = setContext((_, { headers }) => {\n // Get auth token from storage or context\n const token =\n typeof window !== \"undefined\" ? localStorage.getItem(\"auth_token\") : null;\n\n // Build headers\n const authHeaders: Record<string, string> = {\n ...headers,\n };\n\n if (token) {\n authHeaders[\"authorization\"] = `Bearer ${token}`;\n }\n\n // In development mode, add actor headers to simulate gateway behavior\n // In production, the API Gateway adds these headers after JWT verification\n if (isDevelopment) {\n // Use actor ID from localStorage (set by dev tools) or fall back to env/default\n const actorId =\n (typeof window !== \"undefined\" && localStorage.getItem(\"dev_actor_id\")) ||\n DEV_ACTOR_ID;\n const actorType =\n (typeof window !== \"undefined\" &&\n localStorage.getItem(\"dev_actor_type\")) ||\n DEV_ACTOR_TYPE;\n\n authHeaders[\"x-actor-id\"] = actorId;\n authHeaders[\"x-actor-type\"] = actorType;\n }\n\n return { headers: authHeaders };\n});\n\nconst errorLink = onError(({ error }) => {\n if (!error) return;\n\n const graphQLErrors =\n \"errors\" in error && Array.isArray(error.errors) ? error.errors : [];\n\n if (hasSessionAuthErrors(graphQLErrors)) {\n redirectToLogin();\n return;\n }\n\n if (error instanceof Error && isAuthNetworkError(error)) {\n redirectToLogin();\n }\n});\n\nconst wsLink = new GraphQLWsLink(\n createWsClient({\n url: toWsUrl(DEFAULT_GRAPHQL_ENDPOINT),\n connectionParams: () => {\n // Grab the auth token from the auth link's context builder for WS handshake\n return { authorization: \"\" }; // token injected server-side from cookie/session\n },\n }),\n);\n\nconst splitLink = split(\n ({ query }) => {\n const definition = getMainDefinition(query);\n return (\n definition.kind === \"OperationDefinition\" &&\n definition.operation === \"subscription\"\n );\n },\n wsLink,\n from([errorLink, authLink, httpLink]),\n);\n\n// Create the Apollo Client instance\n// NOTE: defaultOptions.errorPolicy is intentionally omitted. Apollo Client v4\n// guards it behind a DeclareDefaultOptions module augmentation that does not\n// resolve reliably in CI's frozen install, so it is left at the v4 default\n// (\"none\"). Per-operation errorPolicy: \"all\" can be set on individual hooks\n// where partial-data-on-error handling is required.\nexport const apolloClient = new ApolloClient({\n link: splitLink,\n cache: new InMemoryCache({\n typePolicies: {\n Query: {\n fields: {\n // Pagination policies for connection types\n developerOrganizations: {\n keyArgs: [\"tier\", \"isVerified\", \"isCertified\", \"partnerTier\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) {\n return incoming;\n }\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n applications: {\n // organizationId is part of the key: one organization's app list\n // must never replace another's (or the unfiltered list) in the\n // cache (BOFF-10636).\n keyArgs: [\"status\", \"visibility\", \"developerId\", \"organizationId\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) {\n return incoming;\n }\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n developerOrgSales: {\n keyArgs: [\n \"organizationId\",\n \"applicationId\",\n \"status\",\n \"pricingModel\",\n \"isPaidOut\",\n ],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) {\n return incoming;\n }\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n developerOrgPayouts: {\n keyArgs: [\"organizationId\", \"status\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) {\n return incoming;\n }\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n developerOrgMembers: {\n keyArgs: [\"organizationId\", \"role\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) return incoming;\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n developerOrgInvitations: {\n keyArgs: [\"organizationId\", \"status\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) return incoming;\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n webhooks: {\n keyArgs: [\"applicationId\", \"status\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) return incoming;\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n webhookDeliveries: {\n keyArgs: [\"webhookId\", \"status\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) return incoming;\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n auditLogs: {\n keyArgs: [\"resource\", \"resourceId\", \"actorId\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) return incoming;\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n applicationVersions: {\n // TODO(phase1-backend): Switch to ApplicationVersionConnection cursor pagination\n // once backend ships connection type. See stability tracker.\n keyArgs: [\"applicationId\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) return incoming;\n if (Array.isArray(incoming) && Array.isArray(existing)) {\n return [...existing, ...incoming];\n }\n return incoming;\n },\n },\n },\n },\n WebhookDelivery: {\n keyFields: [\"id\"],\n },\n ApplicationVersion: {\n keyFields: [\"id\"],\n },\n DeveloperOrganization: {\n keyFields: [\"id\"],\n },\n Application: {\n keyFields: [\"id\"],\n },\n DeveloperOrgMember: {\n keyFields: [\"id\"],\n },\n DeveloperOrgInvitation: {\n keyFields: [\"id\"],\n },\n Webhook: {\n keyFields: [\"id\"],\n },\n ApiKey: {\n keyFields: [\"id\"],\n },\n OAuthClient: {\n keyFields: [\"id\"],\n },\n },\n }),\n defaultOptions: {\n watchQuery: {\n fetchPolicy: \"cache-and-network\",\n },\n query: {\n fetchPolicy: \"cache-first\",\n },\n },\n});\n\n/**\n * Error handling utilities\n */\nexport interface GraphQLErrorInfo {\n message: string;\n code?: string;\n path?: readonly (string | number)[];\n}\n\n// Type for Apollo errors (can be CombinedGraphQLErrors, ServerError, or Error)\nexport type ApolloErrorLike = Error & {\n graphQLErrors?: readonly {\n message: string;\n extensions?: { code?: string };\n path?: readonly (string | number)[];\n }[];\n networkError?: Error | null;\n};\n\nexport function parseGraphQLError(error: ApolloErrorLike): GraphQLErrorInfo[] {\n if (error instanceof CombinedGraphQLErrors) {\n return error.errors.map((err) => ({\n message: err.message,\n code: err.extensions?.code as string | undefined,\n path: err.path,\n }));\n }\n\n if (error.graphQLErrors && error.graphQLErrors.length > 0) {\n return error.graphQLErrors.map((err) => ({\n message: err.message,\n code: err.extensions?.code as string | undefined,\n path: err.path,\n }));\n }\n\n if (error instanceof ServerError || error.networkError) {\n return [\n {\n message: \"Network error. Please check your connection and try again.\",\n code: \"NETWORK_ERROR\",\n },\n ];\n }\n\n return [\n {\n message: error.message || \"An unexpected error occurred\",\n code: \"UNKNOWN_ERROR\",\n },\n ];\n}\n\n/**\n * Get a user-friendly error message from an Apollo error\n */\nexport function getErrorMessage(error: ApolloErrorLike): string {\n const errors = parseGraphQLError(error);\n return errors.map((e) => e.message).join(\", \");\n}\n\n/**\n * Check if an error is an authentication error\n */\nexport function isAuthError(error: ApolloErrorLike): boolean {\n const errors = parseGraphQLError(error);\n return errors.some(\n (e) => e.code === \"UNAUTHENTICATED\" || e.code === \"FORBIDDEN\",\n );\n}\n\n/**\n * Check if an error is a validation error\n */\nexport function isValidationError(error: ApolloErrorLike): boolean {\n const errors = parseGraphQLError(error);\n return errors.some(\n (e) => e.code === \"BAD_USER_INPUT\" || e.code === \"VALIDATION_ERROR\",\n );\n}\n\n/**\n * Clear Apollo cache (useful for logout)\n */\nexport async function clearApolloCache(): Promise<void> {\n await apolloClient.clearStore();\n}\n\n/**\n * Reset Apollo store and refetch queries\n */\nexport async function resetApolloStore(): Promise<void> {\n await apolloClient.resetStore();\n}\n"],"mappings":";;;;;;;;;;;AA0BA,SAAS,EACP,IAGK,EAAE,EACE;AACT,QAAO,EAAO,MAAM,MAAU;EAC5B,IAAM,IACJ,OAAO,EAAM,YAAY,QAAS,WAAW,EAAM,WAAW,OAAO,IACjE,IACJ,OAAO,EAAM,YAAY,aAAc,WACnC,EAAM,WAAW,YACjB,IACA,KAAW,EAAM,WAAW,IAAI,aAAa;AAEnD,SACE,MAAS,qBACT,MAAc,mBACd,EAAQ,SAAS,gBAAgB,IACjC,EAAQ,SAAS,gBAAgB,IACjC,EAAQ,SAAS,kBAAkB,IACnC,EAAQ,SAAS,eAAe,IAChC,EAAQ,SAAS,kBAAkB,IACnC,EAAQ,SAAS,0BAA0B,IAC3C,EAAQ,SAAS,4BAA4B;GAE/C;;AAOJ,IAAM,IACkC,IAIlC,IAGH,IAAgB,uB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AkC;AACtD,OAAM,EAAa,YAAY;;AAMjC,eAAsB,IAAkC;AACtD,OAAM,EAAa,YAAY"}
1
+ {"version":3,"file":"useGraphQL.js","names":["createWsClient","hasSessionAuthErrors","errors","code","error","errorCode","message","DEFAULT_GRAPHQL_ENDPOINT","DEFAULT_AUTH_GRAPHQL_ENDPOINT","AUTH_OPERATION_NAMES","toWsUrl","httpUrl","devportalHttpLink","createHttpLink","authHttpLink","httpLink","split","operationName","authLink","setContext","token","authHeaders","headers","\"authorization\"","errorLink","onError","isAuthNetworkError","redirectToLogin","wsLink","GraphQLWsLink","createClient","splitLink","definition","getMainDefinition","query","from","apolloClient","ApolloClient","InMemoryCache","args","incoming","existing","parseGraphQLError","CombinedGraphQLErrors","err","ServerError","getErrorMessage","isAuthError","isValidationError","clearApolloCache","resetApolloStore","AcceptInvitationDocument","AcceptMyPublisherDeveloperAgreementDocument","AddMyPublisherPayoutMethodDocument","AddPaymentMethodDocument","AppInstallationFieldsFragmentDoc","ApplicationFieldsFragmentDoc","ApplicationScopeFieldsFragmentDoc","ApplicationVersionFieldsFragmentDoc","ApproveApplicationDocument","ApproveApplicationVersionDocument","AuditLogFieldsFragmentDoc","AuthAppFieldsFragmentDoc","BillingAccountFieldsFragmentDoc","CancelInvitationDocument","CompleteAppOAuthDocument","CreateApplicationDocument","CreateApplicationVersionDocument","CreateAuthAppDocument","CreateBillingAccountDocument","CreateDeveloperProfileDocument","CreateOrganizationDocument","CreateSellerOrganizationDocument","CreateWebhookDocument","CurrentUserAppsDocument","CurrentUserDelegationsDocument","CurrentUserGrantedDelegationsDocument","DeactivateAppDocument","DeactivateApplicationDocument","DelegationFieldsFragmentDoc","DeleteApplicationDocument","DeleteOrganizationDocument","DeleteWebhookDocument","DeprecateApplicationVersionDocument","DeveloperProfileFieldsFragmentDoc","DevportalWebhookFieldsFragmentDoc","GenerateApiKeyDocument","GetAnalyticsDashboardOptionsDocument","GetApplicationAnalyticsDashboardDocument","GetApplicationAnalyticsDocument","GetApplicationAuditLogsDocument","GetApplicationDocument","GetApplicationForReviewDocument","GetApplicationVersionsDocument","GetApplicationsDocument","GetApplicationsWithPendingVersionsDocument","GetAuthAppDocument","GetBillingAccountsByOrgDocument","GetDeveloperOnboardingStatusDocument","GetDeveloperPortalSettingsOverviewDocument","GetDevportalDashboardBootstrapDocument","GetInvitationByTokenDocument","GetMyDeveloperProfileDocument","GetMyOrganizationsDocument","GetMyPublisherDocument","GetMyPublisherPayoutsDocument","GetOrgPhysicalItemsDocument","GetOrganizationDocument","GetOrganizationInvitationsDocument","GetOrganizationMembersDocument","GetOrganizationsDocument","GetPaymentMethodsDocument","GetRevenueDashboardDataDocument","GetRevenueSummaryDocument","GetWebhookDetailDocument","GetWebhookDocument","GetWebhooksDocument","GetWorkspaceInstallationDocument","GrantDelegationDocument","InstallApplicationDocument","InviteMemberDocument","LinkDevOrgBillingAccountDocument","ListProductsForSelectorDocument","MyApiKeysDocument","OrgInvitationFieldsFragmentDoc","OrgMemberFieldsFragmentDoc","OrganizationFieldsFragmentDoc","PaymentMethodFieldsFragmentDoc","PayoutFieldsFragmentDoc","PublishApplicationVersionDocument","PublishApplicationVersionToOrganizationDocument","PublisherPayoutMethodFieldsFragmentDoc","PublisherPayoutOnboardingFieldsFragmentDoc","ReactivateMemberDocument","RefreshMyPublisherPayoutOnboardingDocument","RejectApplicationDocument","RejectApplicationVersionDocument","RejectInvitationDocument","RemoveMemberDocument","RemoveMyPublisherPayoutMethodDocument","RequestPayoutDocument","ResendInvitationDocument","RevenueAnalyticsFieldsFragmentDoc","RevokeApiKeyAuthDocument","RevokeDelegationDocument","RotateApiKeyAuthDocument","RotateAppSecretDocument","RotateApplicationSigningSecretDocument","SaleFieldsFragmentDoc","ShareWorkflowDocument","StartMyPublisherPayoutOnboardingDocument","SubmitApplicationDocument","SubmitApplicationForReviewDocument","SuspendMemberDocument","TestWebhookDocument","TransferOwnershipDocument","UninstallApplicationDocument","UnshareWorkflowDocument","UpdateApplicationDocument","UpdateApplicationVersionDocument","UpdateAuthAppDocument","UpdateDeveloperProfileDocument","UpdateMemberRoleDocument","UpdateOrgLegalInfoDocument","UpdateOrgTaxInfoDocument","UpdateOrganizationDocument","UpdateWebhookDocument","WebhookDeliveryFieldsFragmentDoc","useAcceptInvitationMutation","useAcceptMyPublisherDeveloperAgreementMutation","useAddMyPublisherPayoutMethodMutation","useAddPaymentMethodMutation","useApproveApplicationMutation","useApproveApplicationVersionMutation","useCancelInvitationMutation","useCompleteAppOAuthMutation","useCreateApplicationMutation","useCreateApplicationVersionMutation","useCreateAuthAppMutation","useCreateBillingAccountMutation","useCreateDeveloperProfileMutation","useCreateOrganizationMutation","useCreateSellerOrganizationMutation","useCreateWebhookMutation","useCurrentUserAppsQuery","useCurrentUserDelegationsQuery","useCurrentUserGrantedDelegationsQuery","useDeactivateAppMutation","useDeactivateApplicationMutation","useDeleteApplicationMutation","useDeleteOrganizationMutation","useDeleteWebhookMutation","useDeprecateApplicationVersionMutation","useGenerateApiKeyMutation","useGetAnalyticsDashboardOptionsQuery","useGetApplicationAnalyticsDashboardQuery","useGetApplicationAnalyticsQuery","useGetApplicationAuditLogsQuery","useGetApplicationForReviewQuery","useGetApplicationQuery","useGetApplicationVersionsQuery","useGetApplicationsQuery","useGetApplicationsWithPendingVersionsQuery","useGetAuthAppQuery","useGetBillingAccountsByOrgQuery","useGetDeveloperOnboardingStatusQuery","useGetDeveloperPortalSettingsOverviewQuery","useGetDevportalDashboardBootstrapQuery","useGetInvitationByTokenQuery","useGetMyDeveloperProfileQuery","useGetMyOrganizationsQuery","useGetMyPublisherPayoutsQuery","useGetMyPublisherQuery","useGetOrgPhysicalItemsQuery","useGetOrganizationInvitationsQuery","useGetOrganizationMembersQuery","useGetOrganizationQuery","useGetOrganizationsQuery","useGetPaymentMethodsQuery","useGetRevenueDashboardDataQuery","useGetRevenueSummaryQuery","useGetWebhookDetailQuery","useGetWebhookQuery","useGetWebhooksQuery","useGetWorkspaceInstallationQuery","useGrantDelegationMutation","useInstallApplicationMutation","useInviteMemberMutation","useLinkDevOrgBillingAccountMutation","useListProductsForSelectorQuery","useMyApiKeysQuery","usePublishApplicationVersionMutation","usePublishApplicationVersionToOrganizationMutation","useReactivateMemberMutation","useRefreshMyPublisherPayoutOnboardingMutation","useRejectApplicationMutation","useRejectApplicationVersionMutation","useRejectInvitationMutation","useRemoveMemberMutation","useRemoveMyPublisherPayoutMethodMutation","useRequestPayoutMutation","useResendInvitationMutation","useRevokeApiKeyAuthMutation","useRevokeDelegationMutation","useRotateApiKeyAuthMutation","useRotateAppSecretMutation","useRotateApplicationSigningSecretMutation","useShareWorkflowMutation","useStartMyPublisherPayoutOnboardingMutation","useSubmitApplicationForReviewMutation","useSubmitApplicationMutation","useSuspendMemberMutation","useTestWebhookMutation","useTransferOwnershipMutation","useUninstallApplicationMutation","useUnshareWorkflowMutation","useUpdateApplicationMutation","useUpdateApplicationVersionMutation","useUpdateAuthAppMutation","useUpdateDeveloperProfileMutation","useUpdateMemberRoleMutation","useUpdateOrgLegalInfoMutation","useUpdateOrgTaxInfoMutation","useUpdateOrganizationMutation","useUpdateWebhookMutation"],"sources":["../../../src/devportal/hooks/useGraphQL.ts"],"sourcesContent":["/**\n * Apollo Client hooks and utilities for DevPortal\n *\n * This file provides the GraphQL client setup and custom hooks for the Developer Portal.\n * It wraps the generated Apollo hooks with additional functionality like error handling,\n * loading states, and authentication context.\n */\n\nimport {\n ApolloClient,\n InMemoryCache,\n createHttpLink,\n from,\n split,\n} from \"@apollo/client/core\";\nimport { CombinedGraphQLErrors, ServerError } from \"@apollo/client/errors\";\nimport { setContext } from \"@apollo/client/link/context\";\nimport { onError } from \"@apollo/client/link/error\";\nimport { GraphQLWsLink } from \"@apollo/client/link/subscriptions\";\nimport { getMainDefinition } from \"@apollo/client/utilities\";\nimport { createClient as createWsClient } from \"graphql-ws\";\nimport {\n isAuthNetworkError,\n redirectToLogin,\n} from \"@burdenoff/fe-libs/shared/utils\";\n\nfunction hasSessionAuthErrors(\n errors: ReadonlyArray<{\n message?: string;\n extensions?: Record<string, unknown>;\n }> = [],\n): boolean {\n return errors.some((error) => {\n const code =\n typeof error.extensions?.code === \"string\" ? error.extensions.code : \"\";\n const errorCode =\n typeof error.extensions?.errorCode === \"string\"\n ? error.extensions.errorCode\n : \"\";\n const message = (error.message ?? \"\").toLowerCase();\n\n return (\n code === \"UNAUTHENTICATED\" ||\n errorCode === \"TOKEN_EXPIRED\" ||\n message.includes(\"token_expired\") ||\n message.includes(\"token expired\") ||\n message.includes(\"session expired\") ||\n message.includes(\"unauthorized\") ||\n message.includes(\"unauthenticated\") ||\n message.includes(\"authentication required\") ||\n message.includes(\"workspace context missing\")\n );\n });\n}\n\n// Re-export all generated hooks for direct use\nexport * from \"../../generated/global-operations\";\n\n// Development mode check\nconst isDevelopment =\n typeof import.meta !== \"undefined\" && import.meta.env?.DEV === true;\n\n// Default GraphQL endpoints - can be overridden via environment.\n// In standalone dev mode we route through same-origin Vite proxies to avoid CORS.\nconst DEFAULT_GRAPHQL_ENDPOINT =\n (typeof import.meta !== \"undefined\" &&\n import.meta.env?.VITE_GRAPHQL_ENDPOINT) ||\n (isDevelopment ? \"/devportal-graphql\" : \"http://localhost:4015/graphql\");\n\nconst DEFAULT_AUTH_GRAPHQL_ENDPOINT =\n (typeof import.meta !== \"undefined\" &&\n import.meta.env?.VITE_AUTH_GRAPHQL_ENDPOINT) ||\n (isDevelopment ? \"/auth-graphql\" : \"http://localhost:4011/graphql\");\n\nconst AUTH_OPERATION_NAMES = new Set([\n \"CurrentUserApps\",\n \"GetAuthApp\",\n \"AppsActingAsCurrentUser\",\n \"CreateAuthApp\",\n \"UpdateAuthApp\",\n \"DeactivateApp\",\n \"RotateAppSecret\",\n \"AuthenticateApp\",\n \"GenerateAppToken\",\n \"GenerateAppAsUserToken\",\n \"ExchangeToken\",\n \"CurrentUserDelegations\",\n \"CurrentUserGrantedDelegations\",\n \"GrantDelegation\",\n \"RevokeDelegation\",\n \"MyApiKeys\",\n \"GenerateAPIKey\",\n \"RevokeAPIKeyAuth\",\n \"RotateAPIKeyAuth\",\n \"AuthenticateAPIKey\",\n]);\n\n// Development actor ID - simulates gateway-injected headers\n// In production, the gateway adds these after JWT verification\nconst DEV_ACTOR_ID =\n (typeof import.meta !== \"undefined\" && import.meta.env?.VITE_DEV_ACTOR_ID) ||\n \"dev-user-001\";\n\nconst DEV_ACTOR_TYPE =\n (typeof import.meta !== \"undefined\" &&\n import.meta.env?.VITE_DEV_ACTOR_TYPE) ||\n \"user\";\n\nfunction toWsUrl(httpUrl: string): string {\n return httpUrl.replace(/^https/, \"wss\").replace(/^http/, \"ws\");\n}\n\n// Create the HTTP links\nconst devportalHttpLink = createHttpLink({\n uri: DEFAULT_GRAPHQL_ENDPOINT,\n});\n\nconst authHttpLink = createHttpLink({\n uri: DEFAULT_AUTH_GRAPHQL_ENDPOINT,\n});\n\nconst httpLink = split(\n ({ operationName }) => {\n if (!operationName) {\n return false;\n }\n\n return AUTH_OPERATION_NAMES.has(operationName);\n },\n authHttpLink,\n devportalHttpLink,\n);\n\n// Auth link to add authentication headers\nconst authLink = setContext((_, { headers }) => {\n // Get auth token from storage or context\n const token =\n typeof window !== \"undefined\" ? localStorage.getItem(\"auth_token\") : null;\n\n // Build headers\n const authHeaders: Record<string, string> = {\n ...headers,\n };\n\n if (token) {\n authHeaders[\"authorization\"] = `Bearer ${token}`;\n }\n\n // In development mode, add actor headers to simulate gateway behavior\n // In production, the API Gateway adds these headers after JWT verification\n if (isDevelopment) {\n // Use actor ID from localStorage (set by dev tools) or fall back to env/default\n const actorId =\n (typeof window !== \"undefined\" && localStorage.getItem(\"dev_actor_id\")) ||\n DEV_ACTOR_ID;\n const actorType =\n (typeof window !== \"undefined\" &&\n localStorage.getItem(\"dev_actor_type\")) ||\n DEV_ACTOR_TYPE;\n\n authHeaders[\"x-actor-id\"] = actorId;\n authHeaders[\"x-actor-type\"] = actorType;\n }\n\n return { headers: authHeaders };\n});\n\nconst errorLink = onError(({ error }) => {\n if (!error) return;\n\n const graphQLErrors =\n \"errors\" in error && Array.isArray(error.errors) ? error.errors : [];\n\n if (hasSessionAuthErrors(graphQLErrors)) {\n redirectToLogin();\n return;\n }\n\n if (error instanceof Error && isAuthNetworkError(error)) {\n redirectToLogin();\n }\n});\n\nconst wsLink = new GraphQLWsLink(\n createWsClient({\n url: toWsUrl(DEFAULT_GRAPHQL_ENDPOINT),\n connectionParams: () => {\n // Grab the auth token from the auth link's context builder for WS handshake\n return { authorization: \"\" }; // token injected server-side from cookie/session\n },\n }),\n);\n\nconst splitLink = split(\n ({ query }) => {\n const definition = getMainDefinition(query);\n return (\n definition.kind === \"OperationDefinition\" &&\n definition.operation === \"subscription\"\n );\n },\n wsLink,\n from([errorLink, authLink, httpLink]),\n);\n\n// Create the Apollo Client instance\n// NOTE: defaultOptions.errorPolicy is intentionally omitted. Apollo Client v4\n// guards it behind a DeclareDefaultOptions module augmentation that does not\n// resolve reliably in CI's frozen install, so it is left at the v4 default\n// (\"none\"). Per-operation errorPolicy: \"all\" can be set on individual hooks\n// where partial-data-on-error handling is required.\nexport const apolloClient = new ApolloClient({\n link: splitLink,\n cache: new InMemoryCache({\n typePolicies: {\n Query: {\n fields: {\n // Pagination policies for connection types\n developerOrganizations: {\n keyArgs: [\"tier\", \"isVerified\", \"isCertified\", \"partnerTier\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) {\n return incoming;\n }\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n applications: {\n // organizationId is part of the key: one organization's app list\n // must never replace another's (or the unfiltered list) in the\n // cache (BOFF-10636).\n keyArgs: [\"status\", \"visibility\", \"developerId\", \"organizationId\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) {\n return incoming;\n }\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n developerOrgSales: {\n keyArgs: [\n \"organizationId\",\n \"applicationId\",\n \"status\",\n \"pricingModel\",\n \"isPaidOut\",\n ],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) {\n return incoming;\n }\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n developerOrgPayouts: {\n keyArgs: [\"organizationId\", \"status\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) {\n return incoming;\n }\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n developerOrgMembers: {\n keyArgs: [\"organizationId\", \"role\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) return incoming;\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n developerOrgInvitations: {\n keyArgs: [\"organizationId\", \"status\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) return incoming;\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n webhooks: {\n keyArgs: [\"applicationId\", \"status\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) return incoming;\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n webhookDeliveries: {\n keyArgs: [\"webhookId\", \"status\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) return incoming;\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n auditLogs: {\n keyArgs: [\"resource\", \"resourceId\", \"actorId\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) return incoming;\n return {\n ...incoming,\n edges: [...(existing?.edges || []), ...incoming.edges],\n };\n },\n },\n applicationVersions: {\n // TODO(phase1-backend): Switch to ApplicationVersionConnection cursor pagination\n // once backend ships connection type. See stability tracker.\n keyArgs: [\"applicationId\"],\n merge(existing, incoming, { args }) {\n if (!args?.offset || args.offset === 0) return incoming;\n if (Array.isArray(incoming) && Array.isArray(existing)) {\n return [...existing, ...incoming];\n }\n return incoming;\n },\n },\n },\n },\n WebhookDelivery: {\n keyFields: [\"id\"],\n },\n ApplicationVersion: {\n keyFields: [\"id\"],\n },\n DeveloperOrganization: {\n keyFields: [\"id\"],\n },\n Application: {\n keyFields: [\"id\"],\n },\n DeveloperOrgMember: {\n keyFields: [\"id\"],\n },\n DeveloperOrgInvitation: {\n keyFields: [\"id\"],\n },\n Webhook: {\n keyFields: [\"id\"],\n },\n ApiKey: {\n keyFields: [\"id\"],\n },\n OAuthClient: {\n keyFields: [\"id\"],\n },\n },\n }),\n defaultOptions: {\n watchQuery: {\n fetchPolicy: \"cache-and-network\",\n },\n query: {\n fetchPolicy: \"cache-first\",\n },\n },\n});\n\n/**\n * Error handling utilities\n */\nexport interface GraphQLErrorInfo {\n message: string;\n code?: string;\n path?: readonly (string | number)[];\n}\n\n// Type for Apollo errors (can be CombinedGraphQLErrors, ServerError, or Error)\nexport type ApolloErrorLike = Error & {\n graphQLErrors?: readonly {\n message: string;\n extensions?: { code?: string };\n path?: readonly (string | number)[];\n }[];\n networkError?: Error | null;\n};\n\nexport function parseGraphQLError(error: ApolloErrorLike): GraphQLErrorInfo[] {\n if (error instanceof CombinedGraphQLErrors) {\n return error.errors.map((err) => ({\n message: err.message,\n code: err.extensions?.code as string | undefined,\n path: err.path,\n }));\n }\n\n if (error.graphQLErrors && error.graphQLErrors.length > 0) {\n return error.graphQLErrors.map((err) => ({\n message: err.message,\n code: err.extensions?.code as string | undefined,\n path: err.path,\n }));\n }\n\n if (error instanceof ServerError || error.networkError) {\n return [\n {\n message: \"Network error. Please check your connection and try again.\",\n code: \"NETWORK_ERROR\",\n },\n ];\n }\n\n return [\n {\n message: error.message || \"An unexpected error occurred\",\n code: \"UNKNOWN_ERROR\",\n },\n ];\n}\n\n/**\n * Get a user-friendly error message from an Apollo error\n */\nexport function getErrorMessage(error: ApolloErrorLike): string {\n const errors = parseGraphQLError(error);\n return errors.map((e) => e.message).join(\", \");\n}\n\n/**\n * Check if an error is an authentication error\n */\nexport function isAuthError(error: ApolloErrorLike): boolean {\n const errors = parseGraphQLError(error);\n return errors.some(\n (e) => e.code === \"UNAUTHENTICATED\" || e.code === \"FORBIDDEN\",\n );\n}\n\n/**\n * Check if an error is a validation error\n */\nexport function isValidationError(error: ApolloErrorLike): boolean {\n const errors = parseGraphQLError(error);\n return errors.some(\n (e) => e.code === \"BAD_USER_INPUT\" || e.code === \"VALIDATION_ERROR\",\n );\n}\n\n/**\n * Clear Apollo cache (useful for logout)\n */\nexport async function clearApolloCache(): Promise<void> {\n await apolloClient.clearStore();\n}\n\n/**\n * Reset Apollo store and refetch queries\n */\nexport async function resetApolloStore(): Promise<void> {\n await apolloClient.resetStore();\n}\n"],"mappings":";;;;;;;;;;;AA0BA,SAASC,GACP,IAGK,CAAC,GACG;CACT,OAAOC,EAAO,MAAM,MAAU;EAC5B,IAAMC,IACJ,OAAOC,EAAM,YAAY,QAAS,WAAWA,EAAM,WAAW,OAAO,IACjEC,IACJ,OAAOD,EAAM,YAAY,aAAc,WACnCA,EAAM,WAAW,YACjB,IACAE,KAAWF,EAAM,WAAW,GAAA,CAAI,YAAY;EAElD,OACED,MAAS,qBACTE,MAAc,mBACdC,EAAQ,SAAS,eAAe,KAChCA,EAAQ,SAAS,eAAe,KAChCA,EAAQ,SAAS,iBAAiB,KAClCA,EAAQ,SAAS,cAAc,KAC/BA,EAAQ,SAAS,iBAAiB,KAClCA,EAAQ,SAAS,yBAAyB,KAC1CA,EAAQ,SAAS,2BAA2B;CAEhD,CAAC;AACH;AAMA,IAKMC,IAGoC,iCAEpCC,KAG+B,iCAE/BC,qBAAuB,IAAI,IAAI;CACnC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAaD,SAASC,GAAQ,GAAyB;CACxC,OAAOC,EAAQ,QAAQ,UAAU,KAAK,CAAC,CAAC,QAAQ,SAAS,IAAI;AAC/D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ACN,WAAW,CAAC,IAAI,EAClB;EACA,aAAa,EACX,WAAW,CAAC,IAAI,EAClB;CACF,EACF,CAAC;CACD,gBAAgB;EACd,YAAY,EACV,aAAa,oBACf;EACA,OAAO,EACL,aAAa,cACf;CACF;AACF,CAAC;AAqBD,SAAgBE,EAAkB,GAA4C;CA0B5E,OAzBItC,aAAiBuC,IACZvC,EAAM,OAAO,KAAK,OAAS;EAChC,SAASwC,EAAI;EACb,MAAMA,EAAI,YAAY;EACtB,MAAMA,EAAI;CACZ,EAAE,IAGAxC,EAAM,iBAAiBA,EAAM,cAAc,SAAS,IAC/CA,EAAM,cAAc,KAAK,OAAS;EACvC,SAASwC,EAAI;EACb,MAAMA,EAAI,YAAY;EACtB,MAAMA,EAAI;CACZ,EAAE,IAGAxC,aAAiByC,KAAezC,EAAM,eACjC,CACL;EACE,SAAS;EACT,MAAM;CACR,CACF,IAGK,CACL;EACE,SAASA,EAAM,WAAW;EAC1B,MAAM;CACR,CACF;AACF;AAKA,SAAgB0C,GAAgB,GAAgC;CAE9D,OADeJ,EAAkBtC,CAC1B,CAAA,CAAO,KAAK,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,IAAI;AAC/C;AAKA,SAAgB2C,GAAY,GAAiC;CAE3D,OADeL,EAAkBtC,CAC1B,CAAA,CAAO,MACX,MAAM,EAAE,SAAS,qBAAqB,EAAE,SAAS,WACpD;AACF;AAKA,SAAgB4C,GAAkB,GAAiC;CAEjE,OADeN,EAAkBtC,CAC1B,CAAA,CAAO,MACX,MAAM,EAAE,SAAS,oBAAoB,EAAE,SAAS,kBACnD;AACF;AAKA,eAAsB6C,KAAkC;CACtD,MAAMb,EAAa,WAAW;AAChC;AAKA,eAAsBc,KAAkC;CACtD,MAAMd,EAAa,WAAW;AAChC"}
@@ -10,4 +10,3 @@
10
10
  export declare function useIsSellerSection(): boolean;
11
11
  /** `/seller/organizations` when in the seller portal, `/organizations` otherwise. */
12
12
  export declare function orgSectionPath(isSeller: boolean, suffix?: string): string;
13
- //# sourceMappingURL=useIsSellerSection.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { useDevportal as e } from "../providers/DevportalProvider.js";
2
2
  import { useLocation as t } from "react-router";
3
- //#region src/devportal/hooks/useIsSellerSection.ts
3
+ // src/devportal/hooks/useIsSellerSection.ts
4
4
  function n() {
5
5
  let { pathname: n } = t(), { basePath: r } = e(), i = `${(r ?? "").replace(/\/$/, "")}/seller`;
6
6
  return n === i || n.startsWith(`${i}/`) || n === "/seller" || n.startsWith("/seller/");
@@ -9,7 +9,6 @@ function r(e, t = "") {
9
9
  let n = e ? "/seller/organizations" : "/organizations";
10
10
  return t ? `${n}${t.startsWith("/") ? "" : "/"}${t}` : n;
11
11
  }
12
- //#endregion
13
12
  export { r as orgSectionPath, n as useIsSellerSection };
14
13
 
15
14
  //# sourceMappingURL=useIsSellerSection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIsSellerSection.js","names":[],"sources":["../../../src/devportal/hooks/useIsSellerSection.ts"],"sourcesContent":["import { useLocation } from \"react-router\";\nimport { useDevportal } from \"../providers/DevportalProvider\";\n\n/**\n * True when the current route is under the seller portal\n * (/devportal/seller/**). The organization-level pages (Organizations list,\n * Organization Detail, Create Organization, Members, Revenue) are shared\n * between the regular devportal and the seller portal — this is the single\n * signal they use to decide whether to operate on PHYSICAL-kind orgs\n * (seller) or DIGITAL-kind orgs (everywhere else), so the flag/kind check\n * only has to be made in one place. See DeveloperOrgKind (BOFF-7285).\n */\nexport function useIsSellerSection(): boolean {\n const { pathname } = useLocation();\n const { basePath } = useDevportal();\n const base = (basePath ?? \"\").replace(/\\/$/, \"\");\n const prefixed = `${base}/seller`;\n return (\n pathname === prefixed ||\n pathname.startsWith(`${prefixed}/`) ||\n pathname === \"/seller\" ||\n pathname.startsWith(\"/seller/\")\n );\n}\n\n/** `/seller/organizations` when in the seller portal, `/organizations` otherwise. */\nexport function orgSectionPath(isSeller: boolean, suffix = \"\"): string {\n const base = isSeller ? \"/seller/organizations\" : \"/organizations\";\n return suffix ? `${base}${suffix.startsWith(\"/\") ? \"\" : \"/\"}${suffix}` : base;\n}\n"],"mappings":";;;AAYA,SAAgB,IAA8B;CAC5C,IAAM,EAAE,gBAAa,GAAa,EAC5B,EAAE,gBAAa,GAAc,EAE7B,IAAW,IADH,KAAY,IAAI,QAAQ,OAAO,GAAG,CACvB;AACzB,QACE,MAAa,KACb,EAAS,WAAW,GAAG,EAAS,GAAG,IACnC,MAAa,aACb,EAAS,WAAW,WAAW;;AAKnC,SAAgB,EAAe,GAAmB,IAAS,IAAY;CACrE,IAAM,IAAO,IAAW,0BAA0B;AAClD,QAAO,IAAS,GAAG,IAAO,EAAO,WAAW,IAAI,GAAG,KAAK,MAAM,MAAW"}
1
+ {"version":3,"file":"useIsSellerSection.js","names":["useIsSellerSection","useLocation","useDevportal","prefixed","basePath","pathname","orgSectionPath","base","isSeller","suffix"],"sources":["../../../src/devportal/hooks/useIsSellerSection.ts"],"sourcesContent":["import { useLocation } from \"react-router\";\nimport { useDevportal } from \"../providers/DevportalProvider\";\n\n/**\n * True when the current route is under the seller portal\n * (/devportal/seller/**). The organization-level pages (Organizations list,\n * Organization Detail, Create Organization, Members, Revenue) are shared\n * between the regular devportal and the seller portal — this is the single\n * signal they use to decide whether to operate on PHYSICAL-kind orgs\n * (seller) or DIGITAL-kind orgs (everywhere else), so the flag/kind check\n * only has to be made in one place. See DeveloperOrgKind (BOFF-7285).\n */\nexport function useIsSellerSection(): boolean {\n const { pathname } = useLocation();\n const { basePath } = useDevportal();\n const base = (basePath ?? \"\").replace(/\\/$/, \"\");\n const prefixed = `${base}/seller`;\n return (\n pathname === prefixed ||\n pathname.startsWith(`${prefixed}/`) ||\n pathname === \"/seller\" ||\n pathname.startsWith(\"/seller/\")\n );\n}\n\n/** `/seller/organizations` when in the seller portal, `/organizations` otherwise. */\nexport function orgSectionPath(isSeller: boolean, suffix = \"\"): string {\n const base = isSeller ? \"/seller/organizations\" : \"/organizations\";\n return suffix ? `${base}${suffix.startsWith(\"/\") ? \"\" : \"/\"}${suffix}` : base;\n}\n"],"mappings":";;;AAYA,SAAgBA,IAA8B;CAC5C,IAAM,EAAE,gBAAaC,EAAY,GAC3B,EAAE,gBAAaC,EAAa,GAE5BC,IAAW,IADHC,KAAY,GAAA,CAAI,QAAQ,OAAO,EACzB,EAAK;CACzB,OACEC,MAAaF,KACbE,EAAS,WAAW,GAAGF,EAAS,EAAE,KAClCE,MAAa,aACbA,EAAS,WAAW,UAAU;AAElC;AAGA,SAAgBC,EAAe,GAAmB,IAAS,IAAY;CACrE,IAAMC,IAAOC,IAAW,0BAA0B;CAClD,OAAOC,IAAS,GAAGF,IAAOE,EAAO,WAAW,GAAG,IAAI,KAAK,MAAMA,MAAWF;AAC3E"}
@@ -28,4 +28,3 @@ export interface UseOrganizationPickupAddressesResult {
28
28
  refetch: () => void;
29
29
  }
30
30
  export declare function useOrganizationPickupAddresses(organizationId: string | undefined): UseOrganizationPickupAddressesResult;
31
- //# sourceMappingURL=useOrganizationPickupAddresses.d.ts.map
@@ -1,14 +1,10 @@
1
1
  import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
2
2
  import { graphqlFetch as i } from "@burdenoff/fe-libs/shared/graphql";
3
- //#region src/devportal/hooks/useOrganizationPickupAddresses.ts
3
+ // src/devportal/hooks/useOrganizationPickupAddresses.ts
4
4
  var a = "\n query DevportalOrganizationPickupAddresses($id: ID!) {\n developerOrganization(id: $id) {\n id\n pickupAddresses {\n id\n carrier\n carrierLocationLabel\n name\n email\n phone\n address\n addressLine2\n city\n state\n country\n postalCode\n isDefault\n }\n }\n }\n";
5
5
  function o(o) {
6
6
  let [s, c] = r([]), [l, u] = r(!0), d = n(!1), f = e(() => {
7
- if (!o) {
8
- c([]), u(!1);
9
- return;
10
- }
11
- u(!0), i({
7
+ o ? (u(!0), i({
12
8
  gateway: "global",
13
9
  query: a,
14
10
  variables: { id: o }
@@ -18,7 +14,7 @@ function o(o) {
18
14
  d.current || c([]);
19
15
  }).finally(() => {
20
16
  d.current || u(!1);
21
- });
17
+ })) : (c([]), u(!1));
22
18
  }, [o]);
23
19
  return t(() => (d.current = !1, f(), () => {
24
20
  d.current = !0;
@@ -28,7 +24,6 @@ function o(o) {
28
24
  refetch: f
29
25
  };
30
26
  }
31
- //#endregion
32
27
  export { o as useOrganizationPickupAddresses };
33
28
 
34
29
  //# sourceMappingURL=useOrganizationPickupAddresses.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useOrganizationPickupAddresses.js","names":[],"sources":["../../../src/devportal/hooks/useOrganizationPickupAddresses.ts"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { graphqlFetch } from \"@burdenoff/fe-libs/shared/graphql\";\n\n/**\n * A real, carrier-registered pickup/warehouse address belonging to a\n * specific developer organization. An org can have several; exactly one\n * is `isDefault` — that's the one used for carrier rate quoting and\n * shipment booking (see global-devportal-svc's DeveloperOrgPickupAddress /\n * organizationPickupPostalCode).\n */\nexport interface OrganizationPickupAddress {\n id: string;\n carrier: string;\n carrierLocationLabel: string;\n name: string;\n email: string;\n phone: string;\n address: string;\n addressLine2: string | null;\n city: string;\n state: string;\n country: string;\n postalCode: string;\n isDefault: boolean;\n}\n\nconst ORGANIZATION_PICKUP_ADDRESSES_QUERY = `\n query DevportalOrganizationPickupAddresses($id: ID!) {\n developerOrganization(id: $id) {\n id\n pickupAddresses {\n id\n carrier\n carrierLocationLabel\n name\n email\n phone\n address\n addressLine2\n city\n state\n country\n postalCode\n isDefault\n }\n }\n }\n`;\n\nexport interface UseOrganizationPickupAddressesResult {\n addresses: OrganizationPickupAddress[];\n loading: boolean;\n /** Re-run the query — e.g. after registering, switching, or removing an\n * address, so the list reflects the change without a full page reload. */\n refetch: () => void;\n}\n\nexport function useOrganizationPickupAddresses(\n organizationId: string | undefined,\n): UseOrganizationPickupAddressesResult {\n const [addresses, setAddresses] = useState<OrganizationPickupAddress[]>([]);\n const [loading, setLoading] = useState(true);\n const cancelledRef = useRef(false);\n\n const load = useCallback(() => {\n if (!organizationId) {\n setAddresses([]);\n setLoading(false);\n return;\n }\n setLoading(true);\n graphqlFetch<{\n developerOrganization: {\n pickupAddresses: OrganizationPickupAddress[];\n } | null;\n }>({\n gateway: \"global\",\n query: ORGANIZATION_PICKUP_ADDRESSES_QUERY,\n variables: { id: organizationId },\n })\n .then((result) => {\n if (cancelledRef.current) return;\n setAddresses(result.data?.developerOrganization?.pickupAddresses ?? []);\n })\n .catch(() => {\n if (!cancelledRef.current) setAddresses([]);\n })\n .finally(() => {\n if (!cancelledRef.current) setLoading(false);\n });\n }, [organizationId]);\n\n useEffect(() => {\n cancelledRef.current = false;\n load();\n return () => {\n cancelledRef.current = true;\n };\n }, [load]);\n\n return { addresses, loading, refetch: load };\n}\n"],"mappings":";;;AA0BA,IAAM,IAAsC;AA+B5C,SAAgB,EACd,GACsC;CACtC,IAAM,CAAC,GAAW,KAAgB,EAAsC,EAAE,CAAC,EACrE,CAAC,GAAS,KAAc,EAAS,GAAK,EACtC,IAAe,EAAO,GAAM,EAE5B,IAAO,QAAkB;AAC7B,MAAI,CAAC,GAAgB;AAEnB,GADA,EAAa,EAAE,CAAC,EAChB,EAAW,GAAM;AACjB;;AAGF,EADA,EAAW,GAAK,EAChB,EAIG;GACD,SAAS;GACT,OAAO;GACP,WAAW,EAAE,IAAI,GAAgB;GAClC,CAAC,CACC,MAAM,MAAW;AACZ,KAAa,WACjB,EAAa,EAAO,MAAM,uBAAuB,mBAAmB,EAAE,CAAC;IACvE,CACD,YAAY;AACX,GAAK,EAAa,WAAS,EAAa,EAAE,CAAC;IAC3C,CACD,cAAc;AACb,GAAK,EAAa,WAAS,EAAW,GAAM;IAC5C;IACH,CAAC,EAAe,CAAC;AAUpB,QARA,SACE,EAAa,UAAU,IACvB,GAAM,QACO;AACX,IAAa,UAAU;KAExB,CAAC,EAAK,CAAC,EAEH;EAAE;EAAW;EAAS,SAAS;EAAM"}
1
+ {"version":3,"file":"useOrganizationPickupAddresses.js","names":["ORGANIZATION_PICKUP_ADDRESSES_QUERY","useOrganizationPickupAddresses","addresses","setAddresses","useState","loading","setLoading","cancelledRef","useRef","load","useCallback","organizationId","graphqlFetch","result","useEffect"],"sources":["../../../src/devportal/hooks/useOrganizationPickupAddresses.ts"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { graphqlFetch } from \"@burdenoff/fe-libs/shared/graphql\";\n\n/**\n * A real, carrier-registered pickup/warehouse address belonging to a\n * specific developer organization. An org can have several; exactly one\n * is `isDefault` — that's the one used for carrier rate quoting and\n * shipment booking (see global-devportal-svc's DeveloperOrgPickupAddress /\n * organizationPickupPostalCode).\n */\nexport interface OrganizationPickupAddress {\n id: string;\n carrier: string;\n carrierLocationLabel: string;\n name: string;\n email: string;\n phone: string;\n address: string;\n addressLine2: string | null;\n city: string;\n state: string;\n country: string;\n postalCode: string;\n isDefault: boolean;\n}\n\nconst ORGANIZATION_PICKUP_ADDRESSES_QUERY = `\n query DevportalOrganizationPickupAddresses($id: ID!) {\n developerOrganization(id: $id) {\n id\n pickupAddresses {\n id\n carrier\n carrierLocationLabel\n name\n email\n phone\n address\n addressLine2\n city\n state\n country\n postalCode\n isDefault\n }\n }\n }\n`;\n\nexport interface UseOrganizationPickupAddressesResult {\n addresses: OrganizationPickupAddress[];\n loading: boolean;\n /** Re-run the query — e.g. after registering, switching, or removing an\n * address, so the list reflects the change without a full page reload. */\n refetch: () => void;\n}\n\nexport function useOrganizationPickupAddresses(\n organizationId: string | undefined,\n): UseOrganizationPickupAddressesResult {\n const [addresses, setAddresses] = useState<OrganizationPickupAddress[]>([]);\n const [loading, setLoading] = useState(true);\n const cancelledRef = useRef(false);\n\n const load = useCallback(() => {\n if (!organizationId) {\n setAddresses([]);\n setLoading(false);\n return;\n }\n setLoading(true);\n graphqlFetch<{\n developerOrganization: {\n pickupAddresses: OrganizationPickupAddress[];\n } | null;\n }>({\n gateway: \"global\",\n query: ORGANIZATION_PICKUP_ADDRESSES_QUERY,\n variables: { id: organizationId },\n })\n .then((result) => {\n if (cancelledRef.current) return;\n setAddresses(result.data?.developerOrganization?.pickupAddresses ?? []);\n })\n .catch(() => {\n if (!cancelledRef.current) setAddresses([]);\n })\n .finally(() => {\n if (!cancelledRef.current) setLoading(false);\n });\n }, [organizationId]);\n\n useEffect(() => {\n cancelledRef.current = false;\n load();\n return () => {\n cancelledRef.current = true;\n };\n }, [load]);\n\n return { addresses, loading, refetch: load };\n}\n"],"mappings":";;;AA0BA,IAAMA,IAAsC;AA+B5C,SAAgBC,EACd,GACsC;CACtC,IAAM,CAACC,GAAWC,KAAgBC,EAAsC,CAAC,CAAC,GACpE,CAACC,GAASC,KAAcF,EAAS,EAAI,GACrCG,IAAeC,EAAO,EAAK,GAE3BC,IAAOC,QAAkB;EAC7B,AAAKC,KAKLL,EAAW,EAAI,GACfM,EAIG;GACD,SAAS;GACT,OAAOZ;GACP,WAAW,EAAE,IAAIW,EAAe;EAClC,CAAC,CAAC,CACC,MAAM,MAAW;GAChB,AAAIJ,EAAa,WACjBJ,EAAaU,EAAO,MAAM,uBAAuB,mBAAmB,CAAC,CAAC;EACxE,CAAC,CAAC,CACD,YAAY;GACX,AAAKN,EAAa,WAASJ,EAAa,CAAC,CAAC;EAC5C,CAAC,CAAC,CACD,cAAc;GACb,AAAKI,EAAa,WAASD,EAAW,EAAK;EAC7C,CAAC,MAvBDH,EAAa,CAAC,CAAC,GACfG,EAAW,EAAK;CAuBpB,GAAG,CAACK,CAAc,CAAC;CAUnB,OARAG,SACE,EAAa,UAAU,IACvBL,EAAK,SACQ;EACX,EAAa,UAAU;CACzB,IACC,CAACA,CAAI,CAAC,GAEF;EAAE;EAAW;EAAS,SAASA;CAAK;AAC7C"}
@@ -19,4 +19,3 @@ export declare function usePackageUpload(workspacesGatewayUrl: string | undefine
19
19
  upload: (file: File) => Promise<PackageUploadResult>;
20
20
  };
21
21
  export {};
22
- //# sourceMappingURL=usePackageUpload.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { graphQLErrorFrom as e, httpErrorFrom as t } from "../utils/uploadErrors.js";
2
2
  import { useCallback as n, useState as r } from "react";
3
- //#region src/devportal/hooks/usePackageUpload.ts
3
+ // src/devportal/hooks/usePackageUpload.ts
4
4
  async function i(e) {
5
5
  try {
6
6
  return await e.json();
@@ -109,10 +109,11 @@ function u(e, t, i, u, d = "/DevPortal/Packages") {
109
109
  error: null
110
110
  }), a;
111
111
  } catch (e) {
112
+ let t = e instanceof Error ? e.message : "Upload failed";
112
113
  throw p({
113
114
  uploading: !1,
114
115
  progress: 0,
115
- error: e instanceof Error ? e.message : "Upload failed"
116
+ error: t
116
117
  }), e;
117
118
  }
118
119
  }, [
@@ -124,7 +125,6 @@ function u(e, t, i, u, d = "/DevPortal/Packages") {
124
125
  ...f
125
126
  };
126
127
  }
127
- //#endregion
128
- export { u as usePackageUpload };
128
+ export { a as makeFetcher, u as usePackageUpload };
129
129
 
130
130
  //# sourceMappingURL=usePackageUpload.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePackageUpload.js","names":[],"sources":["../../../src/devportal/hooks/usePackageUpload.ts"],"sourcesContent":["/**\n * usePackageUpload — uploads a file to wspace-files-svc and returns a URL to\n * persist (ApplicationVersion.packageUrl, a physical item's image, an app\n * icon — this hook is generic despite its name; folderPath picks the\n * destination). Every upload here is visibility: PUBLIC (see\n * initiateUpload below), so the returned URL prefers the permanent CDN\n * publicUrl over the presigned downloadUrl (~1 hour TTL, wrong for anything\n * persisted and displayed later — see wspace-files-svc's FieldResolvers.ts\n * doc comment on `downloadUrl`). Falls back to downloadUrl when publicUrl\n * is null (the public-assets CDN infra isn't provisioned in every\n * environment yet), so this keeps working exactly as before until it is.\n *\n * Flow (mirrors uploadBlobToFiles in @burdenoff/fe-libs/storage):\n * 1. ensureFolderByPath(folderPath) → folderId\n * 2. initiateUpload → { sessionId, presignedUrl }\n * 3. PUT blob to presignedUrl (progress tracked via XHR)\n * 4. completeUpload → { file.publicUrl ?? file.downloadUrl }\n *\n * Uses raw fetch for GraphQL mutations so we can target the workspace gateway\n * without a second ApolloProvider.\n */\nimport { useCallback, useState } from \"react\";\nimport { graphQLErrorFrom, httpErrorFrom } from \"../utils/uploadErrors\";\n\nexport interface PackageUploadResult {\n fileId: string;\n /** The permanent publicUrl when available, else the presigned downloadUrl\n * (field name kept as `downloadUrl` so existing callers don't need to\n * change — see the module doc comment above). */\n downloadUrl: string;\n}\n\nexport interface PackageUploadState {\n uploading: boolean;\n progress: number;\n error: string | null;\n}\n\ntype GqlFetcher = (\n query: string,\n variables: Record<string, unknown>,\n) => Promise<Record<string, unknown>>;\n\n/** The parsed JSON body, or undefined when it is missing or not JSON. */\nasync function readJsonBody(res: Response): Promise<unknown> {\n try {\n return await res.json();\n } catch {\n return undefined;\n }\n}\n\nexport function makeFetcher(\n workspacesGatewayUrl: string,\n authToken: string | undefined,\n workspaceId: string | undefined,\n workspaceToken: string | undefined,\n): GqlFetcher {\n return async (query, variables) => {\n const headers: Record<string, string> = {\n \"Content-Type\": \"application/json\",\n };\n if (authToken) headers[\"Authorization\"] = `Bearer ${authToken}`;\n if (workspaceToken)\n headers[\"X-Workspace-Authorization\"] = `Bearer ${workspaceToken}`;\n if (workspaceId) headers[\"x-workspace-id\"] = workspaceId;\n\n const endpoint = workspacesGatewayUrl.endsWith(\"/graphql\")\n ? workspacesGatewayUrl\n : `${workspacesGatewayUrl}/workspaces/graphql`;\n\n const res = await fetch(endpoint, {\n method: \"POST\",\n headers,\n credentials: \"include\",\n body: JSON.stringify({ query, variables }),\n });\n // Read the body even on a non-2xx status: the gateway explains a quota\n // refusal (HTTP 429) in the GraphQL errors, and the status alone reads as\n // rate limiting (BOFF-10676).\n const body = await readJsonBody(res);\n if (!res.ok) {\n throw httpErrorFrom(res.status, res.statusText, body);\n }\n const inBand = graphQLErrorFrom(body);\n if (inBand) throw inBand;\n // Cast: `body` is untrusted JSON; only `data` is read, and its shape is checked below.\n const data = (body as { data?: unknown } | undefined)?.data;\n return typeof data === \"object\" && data !== null\n ? // A GraphQL `data` member is always an object keyed by root field.\n (data as Record<string, unknown>)\n : {};\n };\n}\n\nasync function ensureFolder(gql: GqlFetcher, path: string): Promise<string> {\n const data = await gql(\n `mutation DevPortal_EnsureFolder($path: String!) {\n ensureFolderByPath(path: $path) { id }\n }`,\n { path },\n );\n const id = (data.ensureFolderByPath as { id?: string } | undefined)?.id;\n if (!id) throw new Error(\"ensureFolderByPath returned no id\");\n return id;\n}\n\nasync function initiateUpload(\n gql: GqlFetcher,\n file: File,\n folderId: string,\n): Promise<{ sessionId: string; uploadUrl: string }> {\n const ext = file.name.includes(\".\")\n ? file.name.substring(file.name.lastIndexOf(\".\") + 1)\n : \"zip\";\n const data = await gql(\n `mutation DevPortal_InitiateUpload($input: InitiateUploadInput!) {\n initiateUpload(input: $input) {\n uploadUrl\n session { id }\n }\n }`,\n {\n input: {\n fileName: file.name,\n fileSize: String(file.size),\n mimeType: file.type || \"application/zip\",\n extension: ext,\n folderId,\n visibility: \"PUBLIC\",\n },\n },\n );\n const result = data.initiateUpload as\n | { uploadUrl?: string; session?: { id?: string } }\n | undefined;\n const sessionId = result?.session?.id;\n const uploadUrl = result?.uploadUrl;\n if (!sessionId || !uploadUrl) {\n throw new Error(\"initiateUpload did not return sessionId or uploadUrl\");\n }\n return { sessionId, uploadUrl };\n}\n\nasync function putToPresignedUrl(\n file: File,\n uploadUrl: string,\n onProgress: (pct: number) => void,\n): Promise<void> {\n await new Promise<void>((resolve, reject) => {\n const xhr = new XMLHttpRequest();\n xhr.upload.addEventListener(\"progress\", (evt) => {\n if (evt.lengthComputable) {\n onProgress(10 + Math.round((evt.loaded / evt.total) * 80));\n }\n });\n xhr.addEventListener(\"load\", () => {\n if (xhr.status >= 200 && xhr.status < 300) {\n resolve();\n } else {\n reject(new Error(`S3 PUT failed: ${xhr.status}`));\n }\n });\n xhr.addEventListener(\"error\", () =>\n reject(new Error(\"S3 PUT network error\")),\n );\n xhr.addEventListener(\"abort\", () => reject(new Error(\"S3 PUT aborted\")));\n xhr.open(\"PUT\", uploadUrl);\n xhr.setRequestHeader(\"Content-Type\", file.type || \"application/zip\");\n xhr.send(file);\n });\n}\n\nasync function completeUpload(\n gql: GqlFetcher,\n sessionId: string,\n folderId: string,\n fileSize: number,\n): Promise<PackageUploadResult> {\n const data = await gql(\n `mutation DevPortal_CompleteUpload($input: CompleteUploadInput!) {\n completeUpload(input: $input) {\n file { id downloadUrl publicUrl }\n }\n }`,\n {\n input: {\n sessionId,\n folderId,\n fileSize: String(fileSize),\n },\n },\n );\n const file = (\n data.completeUpload as\n | {\n file?: {\n id?: string;\n downloadUrl?: string;\n publicUrl?: string | null;\n };\n }\n | undefined\n )?.file;\n const url = file?.publicUrl || file?.downloadUrl;\n if (!file?.id || !url) {\n throw new Error(\"completeUpload did not return file id or a usable URL\");\n }\n return { fileId: file.id, downloadUrl: url };\n}\n\nexport function usePackageUpload(\n workspacesGatewayUrl: string | undefined,\n authToken: string | undefined,\n workspaceId: string | undefined,\n getWorkspaceToken: (() => Promise<string | null>) | undefined,\n folderPath = \"/DevPortal/Packages\",\n) {\n const [state, setState] = useState<PackageUploadState>({\n uploading: false,\n progress: 0,\n error: null,\n });\n\n const upload = useCallback(\n async (file: File): Promise<PackageUploadResult> => {\n if (!workspacesGatewayUrl) {\n throw new Error(\n \"workspacesGatewayUrl is not configured. Pass it as a prop to DevportalRoot.\",\n );\n }\n\n const freshToken = getWorkspaceToken\n ? await getWorkspaceToken()\n : undefined;\n const gql = makeFetcher(\n workspacesGatewayUrl,\n authToken,\n workspaceId,\n freshToken ?? undefined,\n );\n\n setState({ uploading: true, progress: 0, error: null });\n try {\n const folderId = await ensureFolder(gql, folderPath);\n setState((s) => ({ ...s, progress: 5 }));\n\n const { sessionId, uploadUrl } = await initiateUpload(\n gql,\n file,\n folderId,\n );\n setState((s) => ({ ...s, progress: 10 }));\n\n await putToPresignedUrl(file, uploadUrl, (pct) =>\n setState((s) => ({ ...s, progress: pct })),\n );\n setState((s) => ({ ...s, progress: 90 }));\n\n const result = await completeUpload(\n gql,\n sessionId,\n folderId,\n file.size,\n );\n setState({ uploading: false, progress: 100, error: null });\n return result;\n } catch (err) {\n const message = err instanceof Error ? err.message : \"Upload failed\";\n setState({ uploading: false, progress: 0, error: message });\n throw err;\n }\n },\n [workspacesGatewayUrl, authToken, workspaceId, getWorkspaceToken],\n );\n\n return { upload, ...state };\n}\n"],"mappings":";;;AA4CA,eAAe,EAAa,GAAiC;AAC3D,KAAI;AACF,SAAO,MAAM,EAAI,MAAM;SACjB;AACN;;;AAIJ,SAAgB,EACd,GACA,GACA,GACA,GACY;AACZ,QAAO,OAAO,GAAO,MAAc;EACjC,IAAM,IAAkC,EACtC,gBAAgB,oBACjB;AAID,EAHI,MAAW,EAAQ,gBAAmB,UAAU,MAChD,MACF,EAAQ,+BAA+B,UAAU,MAC/C,MAAa,EAAQ,oBAAoB;EAE7C,IAAM,IAAW,EAAqB,SAAS,WAAW,GACtD,IACA,GAAG,EAAqB,sBAEtB,IAAM,MAAM,MAAM,GAAU;GAChC,QAAQ;GACR;GACA,aAAa;GACb,MAAM,KAAK,UAAU;IAAE;IAAO;IAAW,CAAC;GAC3C,CAAC,EAII,IAAO,MAAM,EAAa,EAAI;AACpC,MAAI,CAAC,EAAI,GACP,OAAM,EAAc,EAAI,QAAQ,EAAI,YAAY,EAAK;EAEvD,IAAM,IAAS,EAAiB,EAAK;AACrC,MAAI,EAAQ,OAAM;EAElB,IAAM,IAAQ,GAAyC;AACvD,SAAO,OAAO,KAAS,YAAY,IAE9B,IACD,EAAE;;;AAIV,eAAe,EAAa,GAAiB,GAA+B;CAO1E,IAAM,KANO,MAAM,EACjB,4GAGA,EAAE,SAAM,CACT,EACgB,oBAAoD;AACrE,KAAI,CAAC,EAAI,OAAU,MAAM,oCAAoC;AAC7D,QAAO;;AAGT,eAAe,EACb,GACA,GACA,GACmD;CACnD,IAAM,IAAM,EAAK,KAAK,SAAS,IAAI,GAC/B,EAAK,KA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;EAAE,QAAQ,EAAK;EAAI,aAAa;EAAK;;AAG9C,SAAgB,EACd,GACA,GACA,GACA,GACA,IAAa,uBACb;CACA,IAAM,CAAC,GAAO,KAAY,EAA6B;EACrD,WAAW;EACX,UAAU;EACV,OAAO;EACR,CAAC;AAsDF,QAAO;EAAE,QApDM,EACb,OAAO,MAA6C;AAClD,OAAI,CAAC,EACH,OAAU,MACR,8EACD;GAMH,IAAM,IAAM,EACV,GACA,GACA,IANiB,IACf,MAAM,GAAmB,GACzB,KAAA,MAKY,KAAA,EACf;AAED,KAAS;IAAE,WAAW;IAAM,UAAU;IAAG,OAAO;IAAM,CAAC;AACvD,OAAI;IACF,IAAM,IAAW,MAAM,EAAa,GAAK,EAAW;AACpD,OAAU,OAAO;KAAE,GAAG;KAAG,UAAU;KAAG,EAAE;IAExC,IAAM,EAAE,cAAW,iBAAc,MAAM,EACrC,GACA,GACA,EACD;AAMD,IALA,GAAU,OAAO;KAAE,GAAG;KAAG,UAAU;KAAI,EAAE,EAEzC,MAAM,EAAkB,GAAM,IAAY,MACxC,GAAU,OAAO;KAAE,GAAG;KAAG,UAAU;KAAK,EAAE,CAC3C,EACD,GAAU,OAAO;KAAE,GAAG;KAAG,UAAU;KAAI,EAAE;IAEzC,IAAM,IAAS,MAAM,EACnB,GACA,GACA,GACA,EAAK,KACN;AAED,WADA,EAAS;KAAE,WAAW;KAAO,UAAU;KAAK,OAAO;KAAM,CAAC,EACnD;YACA,GAAK;AAGZ,UADA,EAAS;KAAE,WAAW;KAAO,UAAU;KAAG,OAD1B,aAAe,QAAQ,EAAI,UAAU;KACK,CAAC,EACrD;;KAGV;GAAC;GAAsB;GAAW;GAAa;GAAkB,CAClE;EAEgB,GAAG;EAAO"}
1
+ {"version":3,"file":"usePackageUpload.js","names":["readJsonBody","res","makeFetcher","headers","authToken","\"Authorization\"","workspaceToken","workspaceId","endpoint","workspacesGatewayUrl","body","httpErrorFrom","inBand","graphQLErrorFrom","data","ensureFolder","id","gql","initiateUpload","ext","file","result","sessionId","uploadUrl","putToPresignedUrl","xhr","evt","onProgress","resolve","reject","completeUpload","fileSize","url","usePackageUpload","state","setState","useState","useCallback","getWorkspaceToken","folderId","folderPath","s","pct","err","message"],"sources":["../../../src/devportal/hooks/usePackageUpload.ts"],"sourcesContent":["/**\n * usePackageUpload — uploads a file to wspace-files-svc and returns a URL to\n * persist (ApplicationVersion.packageUrl, a physical item's image, an app\n * icon — this hook is generic despite its name; folderPath picks the\n * destination). Every upload here is visibility: PUBLIC (see\n * initiateUpload below), so the returned URL prefers the permanent CDN\n * publicUrl over the presigned downloadUrl (~1 hour TTL, wrong for anything\n * persisted and displayed later — see wspace-files-svc's FieldResolvers.ts\n * doc comment on `downloadUrl`). Falls back to downloadUrl when publicUrl\n * is null (the public-assets CDN infra isn't provisioned in every\n * environment yet), so this keeps working exactly as before until it is.\n *\n * Flow (mirrors uploadBlobToFiles in @burdenoff/fe-libs/storage):\n * 1. ensureFolderByPath(folderPath) → folderId\n * 2. initiateUpload → { sessionId, presignedUrl }\n * 3. PUT blob to presignedUrl (progress tracked via XHR)\n * 4. completeUpload → { file.publicUrl ?? file.downloadUrl }\n *\n * Uses raw fetch for GraphQL mutations so we can target the workspace gateway\n * without a second ApolloProvider.\n */\nimport { useCallback, useState } from \"react\";\nimport { graphQLErrorFrom, httpErrorFrom } from \"../utils/uploadErrors\";\n\nexport interface PackageUploadResult {\n fileId: string;\n /** The permanent publicUrl when available, else the presigned downloadUrl\n * (field name kept as `downloadUrl` so existing callers don't need to\n * change — see the module doc comment above). */\n downloadUrl: string;\n}\n\nexport interface PackageUploadState {\n uploading: boolean;\n progress: number;\n error: string | null;\n}\n\ntype GqlFetcher = (\n query: string,\n variables: Record<string, unknown>,\n) => Promise<Record<string, unknown>>;\n\n/** The parsed JSON body, or undefined when it is missing or not JSON. */\nasync function readJsonBody(res: Response): Promise<unknown> {\n try {\n return await res.json();\n } catch {\n return undefined;\n }\n}\n\nexport function makeFetcher(\n workspacesGatewayUrl: string,\n authToken: string | undefined,\n workspaceId: string | undefined,\n workspaceToken: string | undefined,\n): GqlFetcher {\n return async (query, variables) => {\n const headers: Record<string, string> = {\n \"Content-Type\": \"application/json\",\n };\n if (authToken) headers[\"Authorization\"] = `Bearer ${authToken}`;\n if (workspaceToken)\n headers[\"X-Workspace-Authorization\"] = `Bearer ${workspaceToken}`;\n if (workspaceId) headers[\"x-workspace-id\"] = workspaceId;\n\n const endpoint = workspacesGatewayUrl.endsWith(\"/graphql\")\n ? workspacesGatewayUrl\n : `${workspacesGatewayUrl}/workspaces/graphql`;\n\n const res = await fetch(endpoint, {\n method: \"POST\",\n headers,\n credentials: \"include\",\n body: JSON.stringify({ query, variables }),\n });\n // Read the body even on a non-2xx status: the gateway explains a quota\n // refusal (HTTP 429) in the GraphQL errors, and the status alone reads as\n // rate limiting (BOFF-10676).\n const body = await readJsonBody(res);\n if (!res.ok) {\n throw httpErrorFrom(res.status, res.statusText, body);\n }\n const inBand = graphQLErrorFrom(body);\n if (inBand) throw inBand;\n // Cast: `body` is untrusted JSON; only `data` is read, and its shape is checked below.\n const data = (body as { data?: unknown } | undefined)?.data;\n return typeof data === \"object\" && data !== null\n ? // A GraphQL `data` member is always an object keyed by root field.\n (data as Record<string, unknown>)\n : {};\n };\n}\n\nasync function ensureFolder(gql: GqlFetcher, path: string): Promise<string> {\n const data = await gql(\n `mutation DevPortal_EnsureFolder($path: String!) {\n ensureFolderByPath(path: $path) { id }\n }`,\n { path },\n );\n const id = (data.ensureFolderByPath as { id?: string } | undefined)?.id;\n if (!id) throw new Error(\"ensureFolderByPath returned no id\");\n return id;\n}\n\nasync function initiateUpload(\n gql: GqlFetcher,\n file: File,\n folderId: string,\n): Promise<{ sessionId: string; uploadUrl: string }> {\n const ext = file.name.includes(\".\")\n ? file.name.substring(file.name.lastIndexOf(\".\") + 1)\n : \"zip\";\n const data = await gql(\n `mutation DevPortal_InitiateUpload($input: InitiateUploadInput!) {\n initiateUpload(input: $input) {\n uploadUrl\n session { id }\n }\n }`,\n {\n input: {\n fileName: file.name,\n fileSize: String(file.size),\n mimeType: file.type || \"application/zip\",\n extension: ext,\n folderId,\n visibility: \"PUBLIC\",\n },\n },\n );\n const result = data.initiateUpload as\n { uploadUrl?: string; session?: { id?: string } } | undefined;\n const sessionId = result?.session?.id;\n const uploadUrl = result?.uploadUrl;\n if (!sessionId || !uploadUrl) {\n throw new Error(\"initiateUpload did not return sessionId or uploadUrl\");\n }\n return { sessionId, uploadUrl };\n}\n\nasync function putToPresignedUrl(\n file: File,\n uploadUrl: string,\n onProgress: (pct: number) => void,\n): Promise<void> {\n await new Promise<void>((resolve, reject) => {\n const xhr = new XMLHttpRequest();\n xhr.upload.addEventListener(\"progress\", (evt) => {\n if (evt.lengthComputable) {\n onProgress(10 + Math.round((evt.loaded / evt.total) * 80));\n }\n });\n xhr.addEventListener(\"load\", () => {\n if (xhr.status >= 200 && xhr.status < 300) {\n resolve();\n } else {\n reject(new Error(`S3 PUT failed: ${xhr.status}`));\n }\n });\n xhr.addEventListener(\"error\", () =>\n reject(new Error(\"S3 PUT network error\")),\n );\n xhr.addEventListener(\"abort\", () => reject(new Error(\"S3 PUT aborted\")));\n xhr.open(\"PUT\", uploadUrl);\n xhr.setRequestHeader(\"Content-Type\", file.type || \"application/zip\");\n xhr.send(file);\n });\n}\n\nasync function completeUpload(\n gql: GqlFetcher,\n sessionId: string,\n folderId: string,\n fileSize: number,\n): Promise<PackageUploadResult> {\n const data = await gql(\n `mutation DevPortal_CompleteUpload($input: CompleteUploadInput!) {\n completeUpload(input: $input) {\n file { id downloadUrl publicUrl }\n }\n }`,\n {\n input: {\n sessionId,\n folderId,\n fileSize: String(fileSize),\n },\n },\n );\n const file = (\n data.completeUpload as\n | {\n file?: {\n id?: string;\n downloadUrl?: string;\n publicUrl?: string | null;\n };\n }\n | undefined\n )?.file;\n const url = file?.publicUrl || file?.downloadUrl;\n if (!file?.id || !url) {\n throw new Error(\"completeUpload did not return file id or a usable URL\");\n }\n return { fileId: file.id, downloadUrl: url };\n}\n\nexport function usePackageUpload(\n workspacesGatewayUrl: string | undefined,\n authToken: string | undefined,\n workspaceId: string | undefined,\n getWorkspaceToken: (() => Promise<string | null>) | undefined,\n folderPath = \"/DevPortal/Packages\",\n) {\n const [state, setState] = useState<PackageUploadState>({\n uploading: false,\n progress: 0,\n error: null,\n });\n\n const upload = useCallback(\n async (file: File): Promise<PackageUploadResult> => {\n if (!workspacesGatewayUrl) {\n throw new Error(\n \"workspacesGatewayUrl is not configured. Pass it as a prop to DevportalRoot.\",\n );\n }\n\n const freshToken = getWorkspaceToken\n ? await getWorkspaceToken()\n : undefined;\n const gql = makeFetcher(\n workspacesGatewayUrl,\n authToken,\n workspaceId,\n freshToken ?? undefined,\n );\n\n setState({ uploading: true, progress: 0, error: null });\n try {\n const folderId = await ensureFolder(gql, folderPath);\n setState((s) => ({ ...s, progress: 5 }));\n\n const { sessionId, uploadUrl } = await initiateUpload(\n gql,\n file,\n folderId,\n );\n setState((s) => ({ ...s, progress: 10 }));\n\n await putToPresignedUrl(file, uploadUrl, (pct) =>\n setState((s) => ({ ...s, progress: pct })),\n );\n setState((s) => ({ ...s, progress: 90 }));\n\n const result = await completeUpload(\n gql,\n sessionId,\n folderId,\n file.size,\n );\n setState({ uploading: false, progress: 100, error: null });\n return result;\n } catch (err) {\n const message = err instanceof Error ? err.message : \"Upload failed\";\n setState({ uploading: false, progress: 0, error: message });\n throw err;\n }\n },\n [workspacesGatewayUrl, authToken, workspaceId, getWorkspaceToken],\n );\n\n return { upload, ...state };\n}\n"],"mappings":";;;AA4CA,eAAeA,EAAa,GAAiC;CAC3D,IAAI;EACF,OAAO,MAAMC,EAAI,KAAK;CACxB,QAAQ;EACN;CACF;AACF;AAEA,SAAgBC,EACd,GACA,GACA,GACA,GACY;CACZ,OAAO,OAAO,GAAO,MAAc;EACjC,IAAMC,IAAkC,EACtC,gBAAgB,mBAClB;EAIA,AAHIC,MAAW,EAAQC,gBAAmB,UAAUD,MAChDE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AChB;GAEA,EAAS;IAAE,WAAW;IAAM,UAAU;IAAG,OAAO;GAAK,CAAC;GACtD,IAAI;IACF,IAAMC,IAAW,MAAMxB,EAAaE,GAAKuB,CAAU;IACnD,GAAU,OAAO;KAAE,GAAGC;KAAG,UAAU;IAAE,EAAE;IAEvC,IAAM,EAAE,cAAW,iBAAc,MAAMvB,EACrCD,GACAG,GACAmB,CACF;IAMA,AALAJ,GAAU,OAAO;KAAE,GAAGM;KAAG,UAAU;IAAG,EAAE,GAExC,MAAMjB,EAAkBJ,GAAMG,IAAY,MACxCY,GAAU,OAAO;KAAE,GAAGM;KAAG,UAAUC;IAAI,EAAE,CAC3C,GACAP,GAAU,OAAO;KAAE,GAAGM;KAAG,UAAU;IAAG,EAAE;IAExC,IAAMpB,IAAS,MAAMS,EACnBb,GACAK,GACAiB,GACAnB,EAAK,IACP;IAEA,OADAe,EAAS;KAAE,WAAW;KAAO,UAAU;KAAK,OAAO;IAAK,CAAC,GAClDd;GACT,SAASsB,GAAK;IACZ,IAAMC,IAAUD,aAAe,QAAQA,EAAI,UAAU;IAErD,MADAR,EAAS;KAAE,WAAW;KAAO,UAAU;KAAG,OAAOS;IAAQ,CAAC,GACpDD;GACR;EACF,GACA;GAAClC;GAAsBL;GAAWG;GAAa+B;EAAiB,CAGzD;EAAQ,GAAGJ;CAAM;AAC5B"}
@@ -1,5 +1,4 @@
1
1
  import { DevportalPermission } from '../constants/permissions';
2
-
3
2
  interface PermissionResult {
4
3
  /** True when the actor has the permission (or is RBAC admin / standalone). */
5
4
  allowed: boolean;
@@ -21,4 +20,3 @@ interface PermissionResult {
21
20
  */
22
21
  export declare const useDevportalPermission: (permission: DevportalPermission) => PermissionResult;
23
22
  export {};
24
- //# sourceMappingURL=usePermission.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { usePermissions as e } from "@burdenoff/fe-libs/shared/providers/shell";
2
- //#region src/devportal/hooks/usePermission.ts
2
+ // src/devportal/hooks/usePermission.ts
3
3
  var t = (t) => {
4
4
  try {
5
5
  let n = e(), r = n.isLoading, i = n.permissions?.permissions?.some((e) => e.resourceType === "rbac" && e.level === "ADMIN") ?? !1, a = t.split(":")[0], o = n.permissions?.permissions?.some((e) => e.resourceType === a && e.level === "ADMIN") ?? !1, s = n.hasPermission, c = n.permissions?.permissions?.some((e) => e.resourceType.startsWith("devportal-")) ?? !1, l = !r && !!n.permissions && !c;
6
6
  return {
7
- allowed: i || o || (s ? s(t) : !0) || l,
7
+ allowed: i || o || !s || s(t) || l,
8
8
  loading: r
9
9
  };
10
10
  } catch {
@@ -14,7 +14,6 @@ var t = (t) => {
14
14
  };
15
15
  }
16
16
  };
17
- //#endregion
18
17
  export { t as useDevportalPermission };
19
18
 
20
19
  //# sourceMappingURL=usePermission.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePermission.js","names":[],"sources":["../../../src/devportal/hooks/usePermission.ts"],"sourcesContent":["import { usePermissions } from \"@burdenoff/fe-libs/shared/providers/shell\";\nimport type { DevportalPermission } from \"../constants/permissions\";\n\ninterface PermissionResult {\n /** True when the actor has the permission (or is RBAC admin / standalone). */\n allowed: boolean;\n /** True while the permissions request is still in flight. */\n loading: boolean;\n}\n\n/**\n * Button-level permission gate for devportal mutations.\n *\n * Wraps the shell `usePermissions` hook with the same standalone /\n * admin-bypass semantics as `PermissionGuard`. Use to gate individual\n * mutation buttons (Create / Edit / Delete / Publish / Submit / Approve /\n * Reject / Generate) so disabled state is server-driven, not just\n * page-level.\n *\n * Standalone mode (no shell provider) -> `allowed: true` so dev mode\n * stays usable. The page-level `PermissionGuard` is the coarse-grained\n * gate; this hook is the fine-grained one.\n */\nexport const useDevportalPermission = (\n permission: DevportalPermission,\n): PermissionResult => {\n try {\n const ctx = usePermissions();\n const isLoading = ctx.isLoading;\n const isRbacAdmin =\n ctx.permissions?.permissions?.some(\n (entry) => entry.resourceType === \"rbac\" && entry.level === \"ADMIN\",\n ) ?? false;\n\n // Extract the resource type from the permission string (e.g. \"devportal-app:submit\" → \"devportal-app\")\n const resourceType = permission.split(\":\")[0];\n const hasResourceAdmin =\n ctx.permissions?.permissions?.some(\n (entry) =>\n entry.resourceType === resourceType && entry.level === \"ADMIN\",\n ) ?? false;\n\n const has = ctx.hasPermission as (p: DevportalPermission) => boolean;\n\n // If the user is authenticated but the permissions API returned nothing about devportal\n // resources at all, fall back to true — the backend enforces real auth.\n const hasAnyDevportalPermission =\n ctx.permissions?.permissions?.some((entry) =>\n entry.resourceType.startsWith(\"devportal-\"),\n ) ?? false;\n const isAuthenticated = !isLoading && !!ctx.permissions;\n const noDevportalInfoYet = isAuthenticated && !hasAnyDevportalPermission;\n\n return {\n allowed:\n isRbacAdmin ||\n hasResourceAdmin ||\n (has ? has(permission) : true) ||\n noDevportalInfoYet,\n loading: isLoading,\n };\n } catch {\n // Standalone / dev mode: no shell provider mounted.\n return { allowed: true, loading: false };\n }\n};\n"],"mappings":";;AAuBA,IAAa,KACX,MACqB;AACrB,KAAI;EACF,IAAM,IAAM,GAAgB,EACtB,IAAY,EAAI,WAChB,IACJ,EAAI,aAAa,aAAa,MAC3B,MAAU,EAAM,iBAAiB,UAAU,EAAM,UAAU,QAC7D,IAAI,IAGD,IAAe,EAAW,MAAM,IAAI,CAAC,IACrC,IACJ,EAAI,aAAa,aAAa,MAC3B,MACC,EAAM,iBAAiB,KAAgB,EAAM,UAAU,QAC1D,IAAI,IAED,IAAM,EAAI,eAIV,IACJ,EAAI,aAAa,aAAa,MAAM,MAClC,EAAM,aAAa,WAAW,aAAa,CAC5C,IAAI,IAED,IADkB,CAAC,KAAa,CAAC,CAAC,EAAI,eACE,CAAC;AAE/C,SAAO;GACL,SACE,KACA,MACC,IAAM,EAAI,EAAW,GAAG,OACzB;GACF,SAAS;GACV;SACK;AAEN,SAAO;GAAE,SAAS;GAAM,SAAS;GAAO"}
1
+ {"version":3,"file":"usePermission.js","names":["useDevportalPermission","ctx","usePermissions","isLoading","isRbacAdmin","entry","resourceType","permission","hasResourceAdmin","has","hasAnyDevportalPermission","noDevportalInfoYet"],"sources":["../../../src/devportal/hooks/usePermission.ts"],"sourcesContent":["import { usePermissions } from \"@burdenoff/fe-libs/shared/providers/shell\";\nimport type { DevportalPermission } from \"../constants/permissions\";\n\ninterface PermissionResult {\n /** True when the actor has the permission (or is RBAC admin / standalone). */\n allowed: boolean;\n /** True while the permissions request is still in flight. */\n loading: boolean;\n}\n\n/**\n * Button-level permission gate for devportal mutations.\n *\n * Wraps the shell `usePermissions` hook with the same standalone /\n * admin-bypass semantics as `PermissionGuard`. Use to gate individual\n * mutation buttons (Create / Edit / Delete / Publish / Submit / Approve /\n * Reject / Generate) so disabled state is server-driven, not just\n * page-level.\n *\n * Standalone mode (no shell provider) -> `allowed: true` so dev mode\n * stays usable. The page-level `PermissionGuard` is the coarse-grained\n * gate; this hook is the fine-grained one.\n */\nexport const useDevportalPermission = (\n permission: DevportalPermission,\n): PermissionResult => {\n try {\n const ctx = usePermissions();\n const isLoading = ctx.isLoading;\n const isRbacAdmin =\n ctx.permissions?.permissions?.some(\n (entry) => entry.resourceType === \"rbac\" && entry.level === \"ADMIN\",\n ) ?? false;\n\n // Extract the resource type from the permission string (e.g. \"devportal-app:submit\" → \"devportal-app\")\n const resourceType = permission.split(\":\")[0];\n const hasResourceAdmin =\n ctx.permissions?.permissions?.some(\n (entry) =>\n entry.resourceType === resourceType && entry.level === \"ADMIN\",\n ) ?? false;\n\n const has = ctx.hasPermission as (p: DevportalPermission) => boolean;\n\n // If the user is authenticated but the permissions API returned nothing about devportal\n // resources at all, fall back to true — the backend enforces real auth.\n const hasAnyDevportalPermission =\n ctx.permissions?.permissions?.some((entry) =>\n entry.resourceType.startsWith(\"devportal-\"),\n ) ?? false;\n const isAuthenticated = !isLoading && !!ctx.permissions;\n const noDevportalInfoYet = isAuthenticated && !hasAnyDevportalPermission;\n\n return {\n allowed:\n isRbacAdmin ||\n hasResourceAdmin ||\n (has ? has(permission) : true) ||\n noDevportalInfoYet,\n loading: isLoading,\n };\n } catch {\n // Standalone / dev mode: no shell provider mounted.\n return { allowed: true, loading: false };\n }\n};\n"],"mappings":";;AAuBA,IAAaA,KACX,MACqB;CACrB,IAAI;EACF,IAAMC,IAAMC,EAAe,GACrBC,IAAYF,EAAI,WAChBG,IACJH,EAAI,aAAa,aAAa,MAC3B,MAAUI,EAAM,iBAAiB,UAAUA,EAAM,UAAU,OAC9D,KAAK,IAGDC,IAAeC,EAAW,MAAM,GAAG,CAAC,CAAC,IACrCC,IACJP,EAAI,aAAa,aAAa,MAC3B,MACCI,EAAM,iBAAiBC,KAAgBD,EAAM,UAAU,OAC3D,KAAK,IAEDI,IAAMR,EAAI,eAIVS,IACJT,EAAI,aAAa,aAAa,MAAM,MAClCI,EAAM,aAAa,WAAW,YAAY,CAC5C,KAAK,IAEDM,IADkB,CAACR,KAAa,CAAC,CAACF,EAAI,eACE,CAACS;EAE/C,OAAO;GACL,SACEN,KACAI,KACC,MAAMC,EAAIF,CAAU,KACrBI;GACF,SAASR;EACX;CACF,QAAQ;EAEN,OAAO;GAAE,SAAS;GAAM,SAAS;EAAM;CACzC;AACF"}
@@ -15,4 +15,3 @@ interface UseProductsResult {
15
15
  }
16
16
  export declare function useProducts(): UseProductsResult;
17
17
  export {};
18
- //# sourceMappingURL=useProducts.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { useListProductsForSelectorQuery as e } from "../../generated/global-operations.js";
2
- //#region src/devportal/hooks/useProducts.ts
2
+ // src/devportal/hooks/useProducts.ts
3
3
  function t() {
4
4
  let { data: t, loading: n, error: r } = e({ fetchPolicy: "cache-and-network" });
5
5
  return {
@@ -8,7 +8,6 @@ function t() {
8
8
  error: r
9
9
  };
10
10
  }
11
- //#endregion
12
11
  export { t as useProducts };
13
12
 
14
13
  //# sourceMappingURL=useProducts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useProducts.js","names":[],"sources":["../../../src/devportal/hooks/useProducts.ts"],"sourcesContent":["/**\n * Shared hook for fetching the active platform products list — backs the\n * Compatible Products selector on the node/workflow create and edit forms,\n * so publishers pick from every real platform product instead of a\n * hardcoded handful that goes stale as new products launch.\n */\nimport { useListProductsForSelectorQuery } from \"../../generated/global-operations\";\n\nexport interface ProductOption {\n id: string;\n /**\n * The slug is what actually gets stored in StoreProduct.compatibleProducts\n * and what browseStore/homeGroupedProducts match against — never the\n * catalog row's `id`, which is a different UUID.\n */\n slug: string;\n name: string;\n}\n\ninterface UseProductsResult {\n products: ProductOption[];\n isLoading: boolean;\n error: Error | undefined;\n}\n\nexport function useProducts(): UseProductsResult {\n const { data, loading, error } = useListProductsForSelectorQuery({\n fetchPolicy: \"cache-and-network\",\n });\n\n return {\n products: data?.publicProducts.items ?? [],\n isLoading: loading,\n error: error as Error | undefined,\n };\n}\n"],"mappings":";;AAyBA,SAAgB,IAAiC;CAC/C,IAAM,EAAE,SAAM,YAAS,aAAU,EAAgC,EAC/D,aAAa,qBACd,CAAC;AAEF,QAAO;EACL,UAAU,GAAM,eAAe,SAAS,EAAE;EAC1C,WAAW;EACJ;EACR"}
1
+ {"version":3,"file":"useProducts.js","names":["useProducts","useListProductsForSelectorQuery","data","loading"],"sources":["../../../src/devportal/hooks/useProducts.ts"],"sourcesContent":["/**\n * Shared hook for fetching the active platform products list — backs the\n * Compatible Products selector on the node/workflow create and edit forms,\n * so publishers pick from every real platform product instead of a\n * hardcoded handful that goes stale as new products launch.\n */\nimport { useListProductsForSelectorQuery } from \"../../generated/global-operations\";\n\nexport interface ProductOption {\n id: string;\n /**\n * The slug is what actually gets stored in StoreProduct.compatibleProducts\n * and what browseStore/homeGroupedProducts match against — never the\n * catalog row's `id`, which is a different UUID.\n */\n slug: string;\n name: string;\n}\n\ninterface UseProductsResult {\n products: ProductOption[];\n isLoading: boolean;\n error: Error | undefined;\n}\n\nexport function useProducts(): UseProductsResult {\n const { data, loading, error } = useListProductsForSelectorQuery({\n fetchPolicy: \"cache-and-network\",\n });\n\n return {\n products: data?.publicProducts.items ?? [],\n isLoading: loading,\n error: error as Error | undefined,\n };\n}\n"],"mappings":";;AAyBA,SAAgBA,IAAiC;CAC/C,IAAM,EAAE,SAAM,YAAS,aAAUC,EAAgC,EAC/D,aAAa,oBACf,CAAC;CAED,OAAO;EACL,UAAUC,GAAM,eAAe,SAAS,CAAC;EACzC,WAAWC;EACJ;CACT;AACF"}
@@ -15,4 +15,3 @@ export interface UseSellerOrganizationResult {
15
15
  selectOrganization: (id: string) => void;
16
16
  }
17
17
  export declare function useSellerOrganization(): UseSellerOrganizationResult;
18
- //# sourceMappingURL=useSellerOrganization.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { useDevportal as e } from "../providers/DevportalProvider.js";
2
2
  import { resolveGlobalGraphqlEndpoint as t } from "../utils/graphqlEndpoint.js";
3
3
  import { useEffect as n, useRef as r, useState as i } from "react";
4
- //#region src/devportal/hooks/useSellerOrganization.ts
4
+ // src/devportal/hooks/useSellerOrganization.ts
5
5
  var a = "\n query SellerPhysicalOrganizations {\n myDeveloperOrganizations {\n id\n name\n slug\n kind\n contactEmail\n websiteUrl\n legalEntityName\n taxCountry\n }\n }\n", o = "\n mutation CreateSellerOrganizationForSellerPortal($input: CreateDeveloperOrganizationInput!) {\n createSellerOrganization(input: $input) {\n id\n name\n slug\n contactEmail\n websiteUrl\n legalEntityName\n taxCountry\n }\n }\n";
6
6
  function s() {
7
7
  let { apiGatewayUrl: s, authToken: c, activePhysicalOrgId: l, setActivePhysicalOrgId: u } = e(), [d, f] = i([]), [p, m] = i(!0), [h, g] = i(null), _ = r(!1), v = t(s);
@@ -53,7 +53,6 @@ function s() {
53
53
  selectOrganization: u
54
54
  };
55
55
  }
56
- //#endregion
57
56
  export { s as useSellerOrganization };
58
57
 
59
58
  //# sourceMappingURL=useSellerOrganization.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSellerOrganization.js","names":[],"sources":["../../../src/devportal/hooks/useSellerOrganization.ts"],"sourcesContent":["import { useEffect, useRef, useState } from \"react\";\nimport { useDevportal } from \"../providers/DevportalProvider\";\nimport { resolveGlobalGraphqlEndpoint } from \"../utils/graphqlEndpoint\";\n\n/**\n * Resolves the seller portal's current PHYSICAL-kind devportal org.\n *\n * Every seller-portal page (Dashboard, My Items, Orders, Create/Edit\n * Physical Item) must operate on the same PHYSICAL org, not independently\n * grab \"whichever org happens to be first\" — that let a multi-org seller's\n * physical listings silently attach to the wrong org. This hook is the\n * single source of truth: it prefers the persisted activePhysicalOrgId (if\n * still one of the caller's PHYSICAL orgs), falls back to the first PHYSICAL\n * org the actor belongs to, and — only if none exists yet — auto-provisions\n * one via createSellerOrganization (mirrors the previous auto-provision-on-\n * first-listing UX, now correctly scoped to PHYSICAL). See DeveloperOrgKind\n * (BOFF-7285).\n */\n\n// myDeveloperOrganizations (not developerOrganizations) — the latter is\n// admin-aware and returns every organization on the platform for a\n// SUPER_ADMIN actor, which would leak other sellers' orgs into this list.\n// See DeveloperOrgKind (BOFF-7285).\nconst PHYSICAL_ORGS_QUERY = `\n query SellerPhysicalOrganizations {\n myDeveloperOrganizations {\n id\n name\n slug\n kind\n contactEmail\n websiteUrl\n legalEntityName\n taxCountry\n }\n }\n`;\n\nconst CREATE_SELLER_ORGANIZATION_MUTATION = `\n mutation CreateSellerOrganizationForSellerPortal($input: CreateDeveloperOrganizationInput!) {\n createSellerOrganization(input: $input) {\n id\n name\n slug\n contactEmail\n websiteUrl\n legalEntityName\n taxCountry\n }\n }\n`;\n\nexport interface SellerOrganizationSummary {\n id: string;\n name: string;\n slug: string;\n contactEmail: string | null;\n websiteUrl: string | null;\n legalEntityName: string | null;\n taxCountry: string | null;\n}\n\nexport interface UseSellerOrganizationResult {\n organization: SellerOrganizationSummary | null;\n organizations: SellerOrganizationSummary[];\n loading: boolean;\n error: string | null;\n selectOrganization: (id: string) => void;\n}\n\nexport function useSellerOrganization(): UseSellerOrganizationResult {\n const {\n apiGatewayUrl,\n authToken,\n activePhysicalOrgId,\n setActivePhysicalOrgId,\n } = useDevportal();\n\n const [organizations, setOrganizations] = useState<\n SellerOrganizationSummary[]\n >([]);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState<string | null>(null);\n const hasAttemptedAutoCreate = useRef(false);\n\n const endpoint = resolveGlobalGraphqlEndpoint(apiGatewayUrl);\n\n useEffect(() => {\n let cancelled = false;\n\n async function gqlFetch<T>(\n query: string,\n variables?: Record<string, unknown>,\n ): Promise<T> {\n const res = await fetch(endpoint, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...(authToken ? { Authorization: `Bearer ${authToken}` } : {}),\n },\n credentials: \"include\",\n body: JSON.stringify({ query, variables }),\n });\n const json = (await res.json()) as {\n data?: T;\n errors?: { message: string }[];\n };\n if (json.errors?.length) {\n throw new Error(json.errors.map((e) => e.message).join(\"; \"));\n }\n return json.data as T;\n }\n\n async function run(): Promise<void> {\n setLoading(true);\n setError(null);\n try {\n const data = await gqlFetch<{\n myDeveloperOrganizations: (SellerOrganizationSummary & {\n kind: \"DIGITAL\" | \"PHYSICAL\";\n })[];\n }>(PHYSICAL_ORGS_QUERY);\n if (cancelled) return;\n\n let physicalOrgs: SellerOrganizationSummary[] =\n data.myDeveloperOrganizations.filter(\n (org) => org.kind === \"PHYSICAL\",\n );\n\n if (physicalOrgs.length === 0 && !hasAttemptedAutoCreate.current) {\n hasAttemptedAutoCreate.current = true;\n const created = await gqlFetch<{\n createSellerOrganization: SellerOrganizationSummary;\n }>(CREATE_SELLER_ORGANIZATION_MUTATION, {\n input: { name: \"My Store\" },\n });\n if (cancelled) return;\n physicalOrgs = [created.createSellerOrganization];\n }\n\n setOrganizations(physicalOrgs);\n\n const stillValid = physicalOrgs.some(\n (org) => org.id === activePhysicalOrgId,\n );\n if (!stillValid) {\n setActivePhysicalOrgId(physicalOrgs[0]?.id ?? null);\n }\n } catch (err) {\n if (!cancelled) {\n setError(err instanceof Error ? err.message : String(err));\n }\n } finally {\n if (!cancelled) setLoading(false);\n }\n }\n\n void run();\n return () => {\n cancelled = true;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps -- activePhysicalOrgId/setActivePhysicalOrgId intentionally excluded: they're read/written inside this effect, re-running on every write would loop.\n }, [endpoint, authToken]);\n\n const organization =\n organizations.find((org) => org.id === activePhysicalOrgId) ??\n organizations[0] ??\n null;\n\n return {\n organization,\n organizations,\n loading,\n error,\n selectOrganization: setActivePhysicalOrgId,\n };\n}\n"],"mappings":";;;;AAuBA,IAAM,IAAsB,sNAetB,IAAsC;AAgC5C,SAAgB,IAAqD;CACnE,IAAM,EACJ,kBACA,cACA,wBACA,8BACE,GAAc,EAEZ,CAAC,GAAe,KAAoB,EAExC,EAAE,CAAC,EACC,CAAC,GAAS,KAAc,EAAS,GAAK,EACtC,CAAC,GAAO,KAAY,EAAwB,KAAK,EACjD,IAAyB,EAAO,GAAM,EAEtC,IAAW,EAA6B,EAAc;AAoF5D,QAlFA,QAAgB;EACd,IAAI,IAAY;EAEhB,eAAe,EACb,GACA,GACY;GAUZ,IAAM,IAAQ,OATF,MAAM,MAAM,GAAU;IAChC,QAAQ;IACR,SAAS;KACP,gBAAgB;KAChB,GAAI,IAAY,EAAE,eAAe,UAAU,KAAa,GAAG,EAAE;KAC9D;IACD,aAAa;IACb,MAAM,KAAK,UAAU;KAAE;KAAO;KAAW,CAAC;IAC3C,CAAC,EACsB,MAAM;AAI9B,OAAI,EAAK,QAAQ,OACf,OAAU,MAAM,EAAK,OAAO,KAAK,MAAM,EAAE,QAAQ,CAAC,KAAK,KAAK,CAAC;AAE/D,UAAO,EAAK;;EAGd,eAAe,IAAqB;AAElC,GADA,EAAW,GAAK,EAChB,EAAS,KAAK;AACd,OAAI;IACF,IAAM,IAAO,MAAM,EAIhB,EAAoB;AACvB,QAAI,EAAW;IAEf,IAAI,IACF,EAAK,yBAAyB,QAC3B,MAAQ,EAAI,SAAS,WACvB;AAEH,QAAI,EAAa,WAAW,KAAK,CAAC,EAAuB,SAAS;AAChE,OAAuB,UAAU;KACjC,IAAM,IAAU,MAAM,EAEnB,GAAqC,EACtC,OAAO,EAAE,MAAM,YAAY,EAC5B,CAAC;AACF,SAAI,EAAW;AACf,SAAe,CAAC,EAAQ,yBAAyB;;AAQnD,IALA,EAAiB,EAAa,EAEX,EAAa,MAC7B,MAAQ,EAAI,OAAO,EACrB,IAEC,EAAuB,EAAa,IAAI,MAAM,KAAK;YAE9C,GAAK;AACZ,IAAK,KACH,EAAS,aAAe,QAAQ,EAAI,UAAU,OAAO,EAAI,CAAC;aAEpD;AACR,IAAK,KAAW,EAAW,GAAM;;;AAKrC,SADK,GAAK,QACG;AACX,OAAY;;IAGb,CAAC,GAAU,EAAU,CAAC,EAOlB;EACL,cALA,EAAc,MAAM,MAAQ,EAAI,OAAO,EAAoB,IAC3D,EAAc,MACd;EAIA;EACA;EACA;EACA,oBAAoB;EACrB"}
1
+ {"version":3,"file":"useSellerOrganization.js","names":["PHYSICAL_ORGS_QUERY","CREATE_SELLER_ORGANIZATION_MUTATION","useSellerOrganization","useDevportal","organizations","setOrganizations","useState","loading","setLoading","error","setError","hasAttemptedAutoCreate","useRef","endpoint","resolveGlobalGraphqlEndpoint","apiGatewayUrl","useEffect","cancelled","gqlFetch","json","authToken","run","data","physicalOrgs","org","created","activePhysicalOrgId","setActivePhysicalOrgId","err"],"sources":["../../../src/devportal/hooks/useSellerOrganization.ts"],"sourcesContent":["import { useEffect, useRef, useState } from \"react\";\nimport { useDevportal } from \"../providers/DevportalProvider\";\nimport { resolveGlobalGraphqlEndpoint } from \"../utils/graphqlEndpoint\";\n\n/**\n * Resolves the seller portal's current PHYSICAL-kind devportal org.\n *\n * Every seller-portal page (Dashboard, My Items, Orders, Create/Edit\n * Physical Item) must operate on the same PHYSICAL org, not independently\n * grab \"whichever org happens to be first\" — that let a multi-org seller's\n * physical listings silently attach to the wrong org. This hook is the\n * single source of truth: it prefers the persisted activePhysicalOrgId (if\n * still one of the caller's PHYSICAL orgs), falls back to the first PHYSICAL\n * org the actor belongs to, and — only if none exists yet — auto-provisions\n * one via createSellerOrganization (mirrors the previous auto-provision-on-\n * first-listing UX, now correctly scoped to PHYSICAL). See DeveloperOrgKind\n * (BOFF-7285).\n */\n\n// myDeveloperOrganizations (not developerOrganizations) — the latter is\n// admin-aware and returns every organization on the platform for a\n// SUPER_ADMIN actor, which would leak other sellers' orgs into this list.\n// See DeveloperOrgKind (BOFF-7285).\nconst PHYSICAL_ORGS_QUERY = `\n query SellerPhysicalOrganizations {\n myDeveloperOrganizations {\n id\n name\n slug\n kind\n contactEmail\n websiteUrl\n legalEntityName\n taxCountry\n }\n }\n`;\n\nconst CREATE_SELLER_ORGANIZATION_MUTATION = `\n mutation CreateSellerOrganizationForSellerPortal($input: CreateDeveloperOrganizationInput!) {\n createSellerOrganization(input: $input) {\n id\n name\n slug\n contactEmail\n websiteUrl\n legalEntityName\n taxCountry\n }\n }\n`;\n\nexport interface SellerOrganizationSummary {\n id: string;\n name: string;\n slug: string;\n contactEmail: string | null;\n websiteUrl: string | null;\n legalEntityName: string | null;\n taxCountry: string | null;\n}\n\nexport interface UseSellerOrganizationResult {\n organization: SellerOrganizationSummary | null;\n organizations: SellerOrganizationSummary[];\n loading: boolean;\n error: string | null;\n selectOrganization: (id: string) => void;\n}\n\nexport function useSellerOrganization(): UseSellerOrganizationResult {\n const {\n apiGatewayUrl,\n authToken,\n activePhysicalOrgId,\n setActivePhysicalOrgId,\n } = useDevportal();\n\n const [organizations, setOrganizations] = useState<\n SellerOrganizationSummary[]\n >([]);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState<string | null>(null);\n const hasAttemptedAutoCreate = useRef(false);\n\n const endpoint = resolveGlobalGraphqlEndpoint(apiGatewayUrl);\n\n useEffect(() => {\n let cancelled = false;\n\n async function gqlFetch<T>(\n query: string,\n variables?: Record<string, unknown>,\n ): Promise<T> {\n const res = await fetch(endpoint, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...(authToken ? { Authorization: `Bearer ${authToken}` } : {}),\n },\n credentials: \"include\",\n body: JSON.stringify({ query, variables }),\n });\n const json = (await res.json()) as {\n data?: T;\n errors?: { message: string }[];\n };\n if (json.errors?.length) {\n throw new Error(json.errors.map((e) => e.message).join(\"; \"));\n }\n return json.data as T;\n }\n\n async function run(): Promise<void> {\n setLoading(true);\n setError(null);\n try {\n const data = await gqlFetch<{\n myDeveloperOrganizations: (SellerOrganizationSummary & {\n kind: \"DIGITAL\" | \"PHYSICAL\";\n })[];\n }>(PHYSICAL_ORGS_QUERY);\n if (cancelled) return;\n\n let physicalOrgs: SellerOrganizationSummary[] =\n data.myDeveloperOrganizations.filter(\n (org) => org.kind === \"PHYSICAL\",\n );\n\n if (physicalOrgs.length === 0 && !hasAttemptedAutoCreate.current) {\n hasAttemptedAutoCreate.current = true;\n const created = await gqlFetch<{\n createSellerOrganization: SellerOrganizationSummary;\n }>(CREATE_SELLER_ORGANIZATION_MUTATION, {\n input: { name: \"My Store\" },\n });\n if (cancelled) return;\n physicalOrgs = [created.createSellerOrganization];\n }\n\n setOrganizations(physicalOrgs);\n\n const stillValid = physicalOrgs.some(\n (org) => org.id === activePhysicalOrgId,\n );\n if (!stillValid) {\n setActivePhysicalOrgId(physicalOrgs[0]?.id ?? null);\n }\n } catch (err) {\n if (!cancelled) {\n setError(err instanceof Error ? err.message : String(err));\n }\n } finally {\n if (!cancelled) setLoading(false);\n }\n }\n\n void run();\n return () => {\n cancelled = true;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps -- activePhysicalOrgId/setActivePhysicalOrgId intentionally excluded: they're read/written inside this effect, re-running on every write would loop.\n }, [endpoint, authToken]);\n\n const organization =\n organizations.find((org) => org.id === activePhysicalOrgId) ??\n organizations[0] ??\n null;\n\n return {\n organization,\n organizations,\n loading,\n error,\n selectOrganization: setActivePhysicalOrgId,\n };\n}\n"],"mappings":";;;;AAuBA,IAAMA,IAAsB,sNAetBC,IAAsC;AAgC5C,SAAgBC,IAAqD;CACnE,IAAM,EACJ,kBACA,cACA,wBACA,8BACEC,EAAa,GAEX,CAACC,GAAeC,KAAoBC,EA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AU;IACR,AAAKX,KAAWT,EAAW,EAAK;GAClC;EACF;EAGA,OADAa,EAAS,SACI;GACX,IAAY;EACd;CAEF,GAAG,CAACR,GAAUO,CAAS,CAAC,GAOjB;EACL,cALAhB,EAAc,MAAM,MAAQoB,EAAI,OAAOE,CAAmB,KAC1DtB,EAAc,MACd;EAIA;EACA;EACA;EACA,oBAAoBuB;CACtB;AACF"}
@@ -34,4 +34,3 @@ export { enTranslations } from '../translations/en';
34
34
  export { FeatureFlaggedRoute } from './components/FeatureFlaggedRoute';
35
35
  export { TelemetryErrorBoundary } from './components/TelemetryErrorBoundary';
36
36
  export { useGetMyOrganizationsQuery, useGetOrganizationsQuery, useGetOrganizationQuery, useCreateOrganizationMutation, useUpdateOrganizationMutation, useDeleteOrganizationMutation, useGetApplicationsQuery, useGetApplicationQuery, useCreateApplicationMutation, useUpdateApplicationMutation, useDeleteApplicationMutation, useGetWebhooksQuery, useGetWebhookQuery, useCreateWebhookMutation, useUpdateWebhookMutation, useDeleteWebhookMutation, useCurrentUserAppsQuery, useCurrentUserDelegationsQuery, useCurrentUserGrantedDelegationsQuery, useMyApiKeysQuery, useDeactivateAppMutation, useRotateAppSecretMutation, useGrantDelegationMutation, useRevokeDelegationMutation, useGenerateApiKeyMutation, useRevokeApiKeyAuthMutation, useRotateApiKeyAuthMutation, } from './hooks';
37
- //# sourceMappingURL=index.d.ts.map
@@ -1,13 +1,14 @@
1
- import "./providers/DevportalProvider.js";
2
- import "./components/FeatureFlaggedRoute.js";
3
- import "./events/index.js";
4
- import "./components/TelemetryErrorBoundary.js";
5
- import "../generated/global-operations.js";
6
- import "./hooks/useGraphQL.js";
7
- import "./hooks/DevPortalProvider.js";
1
+ import { DevportalRoot as e } from "./DevportalRoot.js";
2
+ import { AdminDevportalRoot as t } from "./AdminDevportalRoot.js";
3
+ import { useDevportal as n } from "./providers/DevportalProvider.js";
4
+ import { useDevportalStore as r } from "./store/devportalStore.js";
5
+ import { useCreateApplicationMutation as i, useCreateOrganizationMutation as a, useCreateWebhookMutation as o, useCurrentUserAppsQuery as s, useCurrentUserDelegationsQuery as c, useCurrentUserGrantedDelegationsQuery as l, useDeactivateAppMutation as u, useDeleteApplicationMutation as d, useDeleteOrganizationMutation as f, useDeleteWebhookMutation as p, useGenerateApiKeyMutation as m, useGetApplicationQuery as h, useGetApplicationsQuery as g, useGetMyOrganizationsQuery as _, useGetOrganizationQuery as v, useGetOrganizationsQuery as y, useGetWebhookQuery as b, useGetWebhooksQuery as x, useGrantDelegationMutation as S, useMyApiKeysQuery as C, useRevokeApiKeyAuthMutation as w, useRevokeDelegationMutation as T, useRotateApiKeyAuthMutation as E, useRotateAppSecretMutation as D, useUpdateApplicationMutation as O, useUpdateOrganizationMutation as k, useUpdateWebhookMutation as A } from "../generated/global-operations.js";
6
+ import { apolloClient as j, clearApolloCache as M, getErrorMessage as N, isAuthError as P, isValidationError as F, parseGraphQLError as I, resetApolloStore as L } from "./hooks/useGraphQL.js";
7
+ import { DevPortalProvider as R } from "./hooks/DevPortalProvider.js";
8
8
  import "./hooks/index.js";
9
- import "./DevportalRoot.js";
10
- import "./AdminDevportalRoot.js";
11
- import "./store/devportalStore.js";
12
- import "./types/index.js";
13
- import "../translations/en.js";
9
+ import { setDevportalEventBusBridge as z, useDevportalEventBus as B } from "./events/index.js";
10
+ import { FeatureFlaggedRoute as V } from "./components/FeatureFlaggedRoute.js";
11
+ import { TelemetryErrorBoundary as H } from "./components/TelemetryErrorBoundary.js";
12
+ import { AVAILABLE_SCOPES as U, WEBHOOK_EVENTS as W } from "./types/index.js";
13
+ import { enTranslations as G } from "../translations/en.js";
14
+ export { U as AVAILABLE_SCOPES, t as AdminDevportalRoot, R as DevPortalProvider, e as DevportalRoot, V as FeatureFlaggedRoute, H as TelemetryErrorBoundary, W as WEBHOOK_EVENTS, j as apolloClient, M as clearApolloCache, G as enTranslations, N as getErrorMessage, P as isAuthError, F as isValidationError, I as parseGraphQLError, L as resetApolloStore, z as setDevportalEventBusBridge, i as useCreateApplicationMutation, a as useCreateOrganizationMutation, o as useCreateWebhookMutation, s as useCurrentUserAppsQuery, c as useCurrentUserDelegationsQuery, l as useCurrentUserGrantedDelegationsQuery, u as useDeactivateAppMutation, d as useDeleteApplicationMutation, f as useDeleteOrganizationMutation, p as useDeleteWebhookMutation, n as useDevportal, B as useDevportalEventBus, r as useDevportalStore, m as useGenerateApiKeyMutation, h as useGetApplicationQuery, g as useGetApplicationsQuery, _ as useGetMyOrganizationsQuery, v as useGetOrganizationQuery, y as useGetOrganizationsQuery, b as useGetWebhookQuery, x as useGetWebhooksQuery, S as useGrantDelegationMutation, C as useMyApiKeysQuery, w as useRevokeApiKeyAuthMutation, T as useRevokeDelegationMutation, E as useRotateApiKeyAuthMutation, D as useRotateAppSecretMutation, O as useUpdateApplicationMutation, k as useUpdateOrganizationMutation, A as useUpdateWebhookMutation };
@@ -1,4 +1,2 @@
1
1
  import { FC } from 'react';
2
-
3
2
  export declare const AdminOrganizationVerificationPage: FC;
4
- //# sourceMappingURL=AdminOrganizationVerificationPage.d.ts.map