@endora-commerce/admin-shell 0.0.0-stage → 0.100.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (428) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +49 -2
  3. package/dist/AdminRoot.d.ts +45 -0
  4. package/dist/AdminRoot.d.ts.map +1 -0
  5. package/dist/AdminRoot.js +39 -0
  6. package/dist/AdminRoot.js.map +1 -0
  7. package/dist/App.d.ts +42 -0
  8. package/dist/App.d.ts.map +1 -0
  9. package/dist/App.js +94 -0
  10. package/dist/App.js.map +1 -0
  11. package/dist/components/AppShell.d.ts +5 -0
  12. package/dist/components/AppShell.d.ts.map +1 -0
  13. package/dist/components/AppShell.js +1259 -0
  14. package/dist/components/AppShell.js.map +1 -0
  15. package/dist/components/BrandLogo.d.ts +21 -0
  16. package/dist/components/BrandLogo.d.ts.map +1 -0
  17. package/dist/components/BrandLogo.js +21 -0
  18. package/dist/components/BrandLogo.js.map +1 -0
  19. package/dist/components/FederatedSignIn.d.ts +42 -0
  20. package/dist/components/FederatedSignIn.d.ts.map +1 -0
  21. package/dist/components/FederatedSignIn.js +56 -0
  22. package/dist/components/FederatedSignIn.js.map +1 -0
  23. package/dist/components/FileDropzone.d.ts +17 -0
  24. package/dist/components/FileDropzone.d.ts.map +1 -0
  25. package/dist/components/FileDropzone.js +17 -0
  26. package/dist/components/FileDropzone.js.map +1 -0
  27. package/dist/components/IdleLogout.d.ts +2 -0
  28. package/dist/components/IdleLogout.d.ts.map +1 -0
  29. package/dist/components/IdleLogout.js +90 -0
  30. package/dist/components/IdleLogout.js.map +1 -0
  31. package/dist/components/ImpersonationBanner.d.ts +13 -0
  32. package/dist/components/ImpersonationBanner.d.ts.map +1 -0
  33. package/dist/components/ImpersonationBanner.js +10 -0
  34. package/dist/components/ImpersonationBanner.js.map +1 -0
  35. package/dist/components/LanguagePicker.d.ts +3 -0
  36. package/dist/components/LanguagePicker.d.ts.map +1 -0
  37. package/dist/components/LanguagePicker.js +127 -0
  38. package/dist/components/LanguagePicker.js.map +1 -0
  39. package/dist/components/LoginPage.d.ts +11 -0
  40. package/dist/components/LoginPage.d.ts.map +1 -0
  41. package/dist/components/LoginPage.js +44 -0
  42. package/dist/components/LoginPage.js.map +1 -0
  43. package/dist/components/PaginationFooter.d.ts +18 -0
  44. package/dist/components/PaginationFooter.d.ts.map +1 -0
  45. package/dist/components/PaginationFooter.js +17 -0
  46. package/dist/components/PaginationFooter.js.map +1 -0
  47. package/dist/components/ResponsiveTable.d.ts +18 -0
  48. package/dist/components/ResponsiveTable.d.ts.map +1 -0
  49. package/dist/components/ResponsiveTable.js +17 -0
  50. package/dist/components/ResponsiveTable.js.map +1 -0
  51. package/dist/components/RowActionMenu.d.ts +18 -0
  52. package/dist/components/RowActionMenu.d.ts.map +1 -0
  53. package/dist/components/RowActionMenu.js +17 -0
  54. package/dist/components/RowActionMenu.js.map +1 -0
  55. package/dist/components/SpeechToTextButton.d.ts +14 -0
  56. package/dist/components/SpeechToTextButton.d.ts.map +1 -0
  57. package/dist/components/SpeechToTextButton.js +19 -0
  58. package/dist/components/SpeechToTextButton.js.map +1 -0
  59. package/dist/components/StickyFormActions.d.ts +18 -0
  60. package/dist/components/StickyFormActions.d.ts.map +1 -0
  61. package/dist/components/StickyFormActions.js +17 -0
  62. package/dist/components/StickyFormActions.js.map +1 -0
  63. package/dist/components/TouchReorderButtons.d.ts +18 -0
  64. package/dist/components/TouchReorderButtons.d.ts.map +1 -0
  65. package/dist/components/TouchReorderButtons.js +17 -0
  66. package/dist/components/TouchReorderButtons.js.map +1 -0
  67. package/dist/components/admin-user-picker/AdminUserPicker.d.ts +18 -0
  68. package/dist/components/admin-user-picker/AdminUserPicker.d.ts.map +1 -0
  69. package/dist/components/admin-user-picker/AdminUserPicker.js +17 -0
  70. package/dist/components/admin-user-picker/AdminUserPicker.js.map +1 -0
  71. package/dist/components/asset-picker/AssetFieldPicker.d.ts +21 -0
  72. package/dist/components/asset-picker/AssetFieldPicker.d.ts.map +1 -0
  73. package/dist/components/asset-picker/AssetFieldPicker.js +20 -0
  74. package/dist/components/asset-picker/AssetFieldPicker.js.map +1 -0
  75. package/dist/components/category-picker/CategorySelect.d.ts +18 -0
  76. package/dist/components/category-picker/CategorySelect.d.ts.map +1 -0
  77. package/dist/components/category-picker/CategorySelect.js +17 -0
  78. package/dist/components/category-picker/CategorySelect.js.map +1 -0
  79. package/dist/components/category-tree-picker/CategoryTreePicker.d.ts +18 -0
  80. package/dist/components/category-tree-picker/CategoryTreePicker.d.ts.map +1 -0
  81. package/dist/components/category-tree-picker/CategoryTreePicker.js +17 -0
  82. package/dist/components/category-tree-picker/CategoryTreePicker.js.map +1 -0
  83. package/dist/components/category-tree-picker/category-tree-utils.d.ts +18 -0
  84. package/dist/components/category-tree-picker/category-tree-utils.d.ts.map +1 -0
  85. package/dist/components/category-tree-picker/category-tree-utils.js +17 -0
  86. package/dist/components/category-tree-picker/category-tree-utils.js.map +1 -0
  87. package/dist/components/category-tree-picker/index.d.ts +18 -0
  88. package/dist/components/category-tree-picker/index.d.ts.map +1 -0
  89. package/dist/components/category-tree-picker/index.js +17 -0
  90. package/dist/components/category-tree-picker/index.js.map +1 -0
  91. package/dist/components/charts/echart.d.ts +18 -0
  92. package/dist/components/charts/echart.d.ts.map +1 -0
  93. package/dist/components/charts/echart.js +17 -0
  94. package/dist/components/charts/echart.js.map +1 -0
  95. package/dist/components/cms-picker/CmsBlockPicker.d.ts +19 -0
  96. package/dist/components/cms-picker/CmsBlockPicker.d.ts.map +1 -0
  97. package/dist/components/cms-picker/CmsBlockPicker.js +18 -0
  98. package/dist/components/cms-picker/CmsBlockPicker.js.map +1 -0
  99. package/dist/components/cms-picker/CmsPagePicker.d.ts +19 -0
  100. package/dist/components/cms-picker/CmsPagePicker.d.ts.map +1 -0
  101. package/dist/components/cms-picker/CmsPagePicker.js +18 -0
  102. package/dist/components/cms-picker/CmsPagePicker.js.map +1 -0
  103. package/dist/components/country-select/index.d.ts +18 -0
  104. package/dist/components/country-select/index.d.ts.map +1 -0
  105. package/dist/components/country-select/index.js +17 -0
  106. package/dist/components/country-select/index.js.map +1 -0
  107. package/dist/components/customer-group-picker/CustomerGroupPicker.d.ts +18 -0
  108. package/dist/components/customer-group-picker/CustomerGroupPicker.d.ts.map +1 -0
  109. package/dist/components/customer-group-picker/CustomerGroupPicker.js +17 -0
  110. package/dist/components/customer-group-picker/CustomerGroupPicker.js.map +1 -0
  111. package/dist/components/customer-picker/CustomerPicker.d.ts +18 -0
  112. package/dist/components/customer-picker/CustomerPicker.d.ts.map +1 -0
  113. package/dist/components/customer-picker/CustomerPicker.js +17 -0
  114. package/dist/components/customer-picker/CustomerPicker.js.map +1 -0
  115. package/dist/components/hooks/useFocusTrap.d.ts +17 -0
  116. package/dist/components/hooks/useFocusTrap.d.ts.map +1 -0
  117. package/dist/components/hooks/useFocusTrap.js +17 -0
  118. package/dist/components/hooks/useFocusTrap.js.map +1 -0
  119. package/dist/components/hooks/useSpeechToText.d.ts +15 -0
  120. package/dist/components/hooks/useSpeechToText.d.ts.map +1 -0
  121. package/dist/components/hooks/useSpeechToText.js +63 -0
  122. package/dist/components/hooks/useSpeechToText.js.map +1 -0
  123. package/dist/components/hooks/useViewportTier.d.ts +18 -0
  124. package/dist/components/hooks/useViewportTier.d.ts.map +1 -0
  125. package/dist/components/hooks/useViewportTier.js +17 -0
  126. package/dist/components/hooks/useViewportTier.js.map +1 -0
  127. package/dist/components/notifications/NotificationBell.d.ts +13 -0
  128. package/dist/components/notifications/NotificationBell.d.ts.map +1 -0
  129. package/dist/components/notifications/NotificationBell.js +154 -0
  130. package/dist/components/notifications/NotificationBell.js.map +1 -0
  131. package/dist/components/notifications/index.d.ts +3 -0
  132. package/dist/components/notifications/index.d.ts.map +1 -0
  133. package/dist/components/notifications/index.js +3 -0
  134. package/dist/components/notifications/index.js.map +1 -0
  135. package/dist/components/notifications/useAdminNotifications.d.ts +41 -0
  136. package/dist/components/notifications/useAdminNotifications.d.ts.map +1 -0
  137. package/dist/components/notifications/useAdminNotifications.js +86 -0
  138. package/dist/components/notifications/useAdminNotifications.js.map +1 -0
  139. package/dist/components/organization-picker/OrganizationPicker.d.ts +19 -0
  140. package/dist/components/organization-picker/OrganizationPicker.d.ts.map +1 -0
  141. package/dist/components/organization-picker/OrganizationPicker.js +18 -0
  142. package/dist/components/organization-picker/OrganizationPicker.js.map +1 -0
  143. package/dist/components/organization-picker/OrganizationPickerMulti.d.ts +19 -0
  144. package/dist/components/organization-picker/OrganizationPickerMulti.d.ts.map +1 -0
  145. package/dist/components/organization-picker/OrganizationPickerMulti.js +18 -0
  146. package/dist/components/organization-picker/OrganizationPickerMulti.js.map +1 -0
  147. package/dist/components/organization-picker/OrganizationStatusBadge.d.ts +19 -0
  148. package/dist/components/organization-picker/OrganizationStatusBadge.d.ts.map +1 -0
  149. package/dist/components/organization-picker/OrganizationStatusBadge.js +18 -0
  150. package/dist/components/organization-picker/OrganizationStatusBadge.js.map +1 -0
  151. package/dist/components/organization-picker/index.d.ts +19 -0
  152. package/dist/components/organization-picker/index.d.ts.map +1 -0
  153. package/dist/components/organization-picker/index.js +18 -0
  154. package/dist/components/organization-picker/index.js.map +1 -0
  155. package/dist/components/organization-picker/useOrganizationsQuery.d.ts +19 -0
  156. package/dist/components/organization-picker/useOrganizationsQuery.d.ts.map +1 -0
  157. package/dist/components/organization-picker/useOrganizationsQuery.js +18 -0
  158. package/dist/components/organization-picker/useOrganizationsQuery.js.map +1 -0
  159. package/dist/components/payment-method-availability/MethodAvailabilityCell.d.ts +17 -0
  160. package/dist/components/payment-method-availability/MethodAvailabilityCell.d.ts.map +1 -0
  161. package/dist/components/payment-method-availability/MethodAvailabilityCell.js +17 -0
  162. package/dist/components/payment-method-availability/MethodAvailabilityCell.js.map +1 -0
  163. package/dist/components/prompt-actions/PromptModePanel.d.ts +24 -0
  164. package/dist/components/prompt-actions/PromptModePanel.d.ts.map +1 -0
  165. package/dist/components/prompt-actions/PromptModePanel.js +115 -0
  166. package/dist/components/prompt-actions/PromptModePanel.js.map +1 -0
  167. package/dist/components/prompt-actions/PromptPlanPreview.d.ts +20 -0
  168. package/dist/components/prompt-actions/PromptPlanPreview.d.ts.map +1 -0
  169. package/dist/components/prompt-actions/PromptPlanPreview.js +12 -0
  170. package/dist/components/prompt-actions/PromptPlanPreview.js.map +1 -0
  171. package/dist/components/reorder/ReorderAnnouncer.d.ts +18 -0
  172. package/dist/components/reorder/ReorderAnnouncer.d.ts.map +1 -0
  173. package/dist/components/reorder/ReorderAnnouncer.js +17 -0
  174. package/dist/components/reorder/ReorderAnnouncer.js.map +1 -0
  175. package/dist/components/reorder/useReorderList.d.ts +18 -0
  176. package/dist/components/reorder/useReorderList.d.ts.map +1 -0
  177. package/dist/components/reorder/useReorderList.js +17 -0
  178. package/dist/components/reorder/useReorderList.js.map +1 -0
  179. package/dist/components/rule-builder/RuleBuilder.d.ts +18 -0
  180. package/dist/components/rule-builder/RuleBuilder.d.ts.map +1 -0
  181. package/dist/components/rule-builder/RuleBuilder.js +17 -0
  182. package/dist/components/rule-builder/RuleBuilder.js.map +1 -0
  183. package/dist/components/sales-channel-picker/SalesChannelPicker.d.ts +19 -0
  184. package/dist/components/sales-channel-picker/SalesChannelPicker.d.ts.map +1 -0
  185. package/dist/components/sales-channel-picker/SalesChannelPicker.js +18 -0
  186. package/dist/components/sales-channel-picker/SalesChannelPicker.js.map +1 -0
  187. package/dist/components/scope-notice/ScopeNotice.d.ts +18 -0
  188. package/dist/components/scope-notice/ScopeNotice.d.ts.map +1 -0
  189. package/dist/components/scope-notice/ScopeNotice.js +17 -0
  190. package/dist/components/scope-notice/ScopeNotice.js.map +1 -0
  191. package/dist/components/ui/alert.d.ts +18 -0
  192. package/dist/components/ui/alert.d.ts.map +1 -0
  193. package/dist/components/ui/alert.js +17 -0
  194. package/dist/components/ui/alert.js.map +1 -0
  195. package/dist/components/ui/badge.d.ts +18 -0
  196. package/dist/components/ui/badge.d.ts.map +1 -0
  197. package/dist/components/ui/badge.js +17 -0
  198. package/dist/components/ui/badge.js.map +1 -0
  199. package/dist/components/ui/button.d.ts +18 -0
  200. package/dist/components/ui/button.d.ts.map +1 -0
  201. package/dist/components/ui/button.js +17 -0
  202. package/dist/components/ui/button.js.map +1 -0
  203. package/dist/components/ui/card.d.ts +17 -0
  204. package/dist/components/ui/card.d.ts.map +1 -0
  205. package/dist/components/ui/card.js +17 -0
  206. package/dist/components/ui/card.js.map +1 -0
  207. package/dist/components/ui/checkbox.d.ts +17 -0
  208. package/dist/components/ui/checkbox.d.ts.map +1 -0
  209. package/dist/components/ui/checkbox.js +17 -0
  210. package/dist/components/ui/checkbox.js.map +1 -0
  211. package/dist/components/ui/collapsible.d.ts +5 -0
  212. package/dist/components/ui/collapsible.d.ts.map +1 -0
  213. package/dist/components/ui/collapsible.js +5 -0
  214. package/dist/components/ui/collapsible.js.map +1 -0
  215. package/dist/components/ui/color-picker.d.ts +17 -0
  216. package/dist/components/ui/color-picker.d.ts.map +1 -0
  217. package/dist/components/ui/color-picker.js +17 -0
  218. package/dist/components/ui/color-picker.js.map +1 -0
  219. package/dist/components/ui/combobox.d.ts +18 -0
  220. package/dist/components/ui/combobox.d.ts.map +1 -0
  221. package/dist/components/ui/combobox.js +17 -0
  222. package/dist/components/ui/combobox.js.map +1 -0
  223. package/dist/components/ui/input.d.ts +17 -0
  224. package/dist/components/ui/input.d.ts.map +1 -0
  225. package/dist/components/ui/input.js +17 -0
  226. package/dist/components/ui/input.js.map +1 -0
  227. package/dist/components/ui/label.d.ts +17 -0
  228. package/dist/components/ui/label.d.ts.map +1 -0
  229. package/dist/components/ui/label.js +17 -0
  230. package/dist/components/ui/label.js.map +1 -0
  231. package/dist/components/ui/multi-select.d.ts +18 -0
  232. package/dist/components/ui/multi-select.d.ts.map +1 -0
  233. package/dist/components/ui/multi-select.js +17 -0
  234. package/dist/components/ui/multi-select.js.map +1 -0
  235. package/dist/components/ui/page-header.d.ts +18 -0
  236. package/dist/components/ui/page-header.d.ts.map +1 -0
  237. package/dist/components/ui/page-header.js +17 -0
  238. package/dist/components/ui/page-header.js.map +1 -0
  239. package/dist/components/ui/route-tabs.d.ts +18 -0
  240. package/dist/components/ui/route-tabs.d.ts.map +1 -0
  241. package/dist/components/ui/route-tabs.js +17 -0
  242. package/dist/components/ui/route-tabs.js.map +1 -0
  243. package/dist/components/ui/save-button-group.d.ts +18 -0
  244. package/dist/components/ui/save-button-group.d.ts.map +1 -0
  245. package/dist/components/ui/save-button-group.js +17 -0
  246. package/dist/components/ui/save-button-group.js.map +1 -0
  247. package/dist/components/ui/select.d.ts +17 -0
  248. package/dist/components/ui/select.d.ts.map +1 -0
  249. package/dist/components/ui/select.js +17 -0
  250. package/dist/components/ui/select.js.map +1 -0
  251. package/dist/components/ui/separator.d.ts +17 -0
  252. package/dist/components/ui/separator.d.ts.map +1 -0
  253. package/dist/components/ui/separator.js +17 -0
  254. package/dist/components/ui/separator.js.map +1 -0
  255. package/dist/components/ui/table.d.ts +17 -0
  256. package/dist/components/ui/table.d.ts.map +1 -0
  257. package/dist/components/ui/table.js +17 -0
  258. package/dist/components/ui/table.js.map +1 -0
  259. package/dist/components/ui/textarea.d.ts +17 -0
  260. package/dist/components/ui/textarea.d.ts.map +1 -0
  261. package/dist/components/ui/textarea.js +17 -0
  262. package/dist/components/ui/textarea.js.map +1 -0
  263. package/dist/i18n/TranslationProvider.d.ts +18 -0
  264. package/dist/i18n/TranslationProvider.d.ts.map +1 -0
  265. package/dist/i18n/TranslationProvider.js +17 -0
  266. package/dist/i18n/TranslationProvider.js.map +1 -0
  267. package/dist/i18n/app-language-context.d.ts +18 -0
  268. package/dist/i18n/app-language-context.d.ts.map +1 -0
  269. package/dist/i18n/app-language-context.js +17 -0
  270. package/dist/i18n/app-language-context.js.map +1 -0
  271. package/dist/i18n/interpolate.d.ts +17 -0
  272. package/dist/i18n/interpolate.d.ts.map +1 -0
  273. package/dist/i18n/interpolate.js +17 -0
  274. package/dist/i18n/interpolate.js.map +1 -0
  275. package/dist/i18n/language-storage.d.ts +17 -0
  276. package/dist/i18n/language-storage.d.ts.map +1 -0
  277. package/dist/i18n/language-storage.js +17 -0
  278. package/dist/i18n/language-storage.js.map +1 -0
  279. package/dist/i18n/preauth-login-copy.d.ts +36 -0
  280. package/dist/i18n/preauth-login-copy.d.ts.map +1 -0
  281. package/dist/i18n/preauth-login-copy.js +36 -0
  282. package/dist/i18n/preauth-login-copy.js.map +1 -0
  283. package/dist/i18n/resolver.d.ts +18 -0
  284. package/dist/i18n/resolver.d.ts.map +1 -0
  285. package/dist/i18n/resolver.js +17 -0
  286. package/dist/i18n/resolver.js.map +1 -0
  287. package/dist/i18n/types.d.ts +17 -0
  288. package/dist/i18n/types.d.ts.map +1 -0
  289. package/dist/i18n/types.js +2 -0
  290. package/dist/i18n/types.js.map +1 -0
  291. package/dist/i18n/useTranslation.d.ts +17 -0
  292. package/dist/i18n/useTranslation.d.ts.map +1 -0
  293. package/dist/i18n/useTranslation.js +17 -0
  294. package/dist/i18n/useTranslation.js.map +1 -0
  295. package/dist/index.d.ts +55 -0
  296. package/dist/index.d.ts.map +1 -0
  297. package/dist/index.js +51 -0
  298. package/dist/index.js.map +1 -0
  299. package/dist/lib/admin-actions/AdminActionsProvider.d.ts +29 -0
  300. package/dist/lib/admin-actions/AdminActionsProvider.d.ts.map +1 -0
  301. package/dist/lib/admin-actions/AdminActionsProvider.js +51 -0
  302. package/dist/lib/admin-actions/AdminActionsProvider.js.map +1 -0
  303. package/dist/lib/admin-actions/api.d.ts +10 -0
  304. package/dist/lib/admin-actions/api.d.ts.map +1 -0
  305. package/dist/lib/admin-actions/api.js +13 -0
  306. package/dist/lib/admin-actions/api.js.map +1 -0
  307. package/dist/lib/admin-actions/icon-map.d.ts +17 -0
  308. package/dist/lib/admin-actions/icon-map.d.ts.map +1 -0
  309. package/dist/lib/admin-actions/icon-map.js +17 -0
  310. package/dist/lib/admin-actions/icon-map.js.map +1 -0
  311. package/dist/lib/admin-actions/useAdminActions.d.ts +17 -0
  312. package/dist/lib/admin-actions/useAdminActions.d.ts.map +1 -0
  313. package/dist/lib/admin-actions/useAdminActions.js +34 -0
  314. package/dist/lib/admin-actions/useAdminActions.js.map +1 -0
  315. package/dist/lib/api-client.d.ts +17 -0
  316. package/dist/lib/api-client.d.ts.map +1 -0
  317. package/dist/lib/api-client.js +17 -0
  318. package/dist/lib/api-client.js.map +1 -0
  319. package/dist/lib/auth.d.ts +18 -0
  320. package/dist/lib/auth.d.ts.map +1 -0
  321. package/dist/lib/auth.js +17 -0
  322. package/dist/lib/auth.js.map +1 -0
  323. package/dist/lib/federated-sign-in/api.d.ts +4 -0
  324. package/dist/lib/federated-sign-in/api.d.ts.map +1 -0
  325. package/dist/lib/federated-sign-in/api.js +38 -0
  326. package/dist/lib/federated-sign-in/api.js.map +1 -0
  327. package/dist/lib/federated-sign-in/index.d.ts +4 -0
  328. package/dist/lib/federated-sign-in/index.d.ts.map +1 -0
  329. package/dist/lib/federated-sign-in/index.js +4 -0
  330. package/dist/lib/federated-sign-in/index.js.map +1 -0
  331. package/dist/lib/federated-sign-in/resolve.d.ts +47 -0
  332. package/dist/lib/federated-sign-in/resolve.d.ts.map +1 -0
  333. package/dist/lib/federated-sign-in/resolve.js +24 -0
  334. package/dist/lib/federated-sign-in/resolve.js.map +1 -0
  335. package/dist/lib/federated-sign-in/useFederatedSignIn.d.ts +15 -0
  336. package/dist/lib/federated-sign-in/useFederatedSignIn.d.ts.map +1 -0
  337. package/dist/lib/federated-sign-in/useFederatedSignIn.js +37 -0
  338. package/dist/lib/federated-sign-in/useFederatedSignIn.js.map +1 -0
  339. package/dist/lib/format.d.ts +17 -0
  340. package/dist/lib/format.d.ts.map +1 -0
  341. package/dist/lib/format.js +17 -0
  342. package/dist/lib/format.js.map +1 -0
  343. package/dist/lib/module-presence/index.d.ts +19 -0
  344. package/dist/lib/module-presence/index.d.ts.map +1 -0
  345. package/dist/lib/module-presence/index.js +18 -0
  346. package/dist/lib/module-presence/index.js.map +1 -0
  347. package/dist/lib/module-registry/index.d.ts +84 -0
  348. package/dist/lib/module-registry/index.d.ts.map +1 -0
  349. package/dist/lib/module-registry/index.js +104 -0
  350. package/dist/lib/module-registry/index.js.map +1 -0
  351. package/dist/lib/money.d.ts +17 -0
  352. package/dist/lib/money.d.ts.map +1 -0
  353. package/dist/lib/money.js +17 -0
  354. package/dist/lib/money.js.map +1 -0
  355. package/dist/lib/prompt-actions/api.d.ts +10 -0
  356. package/dist/lib/prompt-actions/api.d.ts.map +1 -0
  357. package/dist/lib/prompt-actions/api.js +41 -0
  358. package/dist/lib/prompt-actions/api.js.map +1 -0
  359. package/dist/lib/prompt-actions/usePromptRequest.d.ts +26 -0
  360. package/dist/lib/prompt-actions/usePromptRequest.d.ts.map +1 -0
  361. package/dist/lib/prompt-actions/usePromptRequest.js +113 -0
  362. package/dist/lib/prompt-actions/usePromptRequest.js.map +1 -0
  363. package/dist/lib/surface-visibility.d.ts +15 -0
  364. package/dist/lib/surface-visibility.d.ts.map +1 -0
  365. package/dist/lib/surface-visibility.js +14 -0
  366. package/dist/lib/surface-visibility.js.map +1 -0
  367. package/dist/lib/text-normalization.d.ts +17 -0
  368. package/dist/lib/text-normalization.d.ts.map +1 -0
  369. package/dist/lib/text-normalization.js +17 -0
  370. package/dist/lib/text-normalization.js.map +1 -0
  371. package/dist/lib/use-page-size-preference.d.ts +16 -0
  372. package/dist/lib/use-page-size-preference.d.ts.map +1 -0
  373. package/dist/lib/use-page-size-preference.js +15 -0
  374. package/dist/lib/use-page-size-preference.js.map +1 -0
  375. package/dist/lib/use-unsaved-changes-prompt.d.ts +17 -0
  376. package/dist/lib/use-unsaved-changes-prompt.d.ts.map +1 -0
  377. package/dist/lib/use-unsaved-changes-prompt.js +17 -0
  378. package/dist/lib/use-unsaved-changes-prompt.js.map +1 -0
  379. package/dist/lib/utils.d.ts +17 -0
  380. package/dist/lib/utils.d.ts.map +1 -0
  381. package/dist/lib/utils.js +17 -0
  382. package/dist/lib/utils.js.map +1 -0
  383. package/dist/lib/uuid.d.ts +17 -0
  384. package/dist/lib/uuid.d.ts.map +1 -0
  385. package/dist/lib/uuid.js +17 -0
  386. package/dist/lib/uuid.js.map +1 -0
  387. package/dist/modules/home/HomePage.d.ts +3 -0
  388. package/dist/modules/home/HomePage.d.ts.map +1 -0
  389. package/dist/modules/home/HomePage.js +137 -0
  390. package/dist/modules/home/HomePage.js.map +1 -0
  391. package/dist/modules/home/RecentActivityCard.d.ts +3 -0
  392. package/dist/modules/home/RecentActivityCard.d.ts.map +1 -0
  393. package/dist/modules/home/RecentActivityCard.js +94 -0
  394. package/dist/modules/home/RecentActivityCard.js.map +1 -0
  395. package/dist/modules/home/activity-render.d.ts +69 -0
  396. package/dist/modules/home/activity-render.d.ts.map +1 -0
  397. package/dist/modules/home/activity-render.js +53 -0
  398. package/dist/modules/home/activity-render.js.map +1 -0
  399. package/dist/modules/home/useRecentActivity.d.ts +41 -0
  400. package/dist/modules/home/useRecentActivity.d.ts.map +1 -0
  401. package/dist/modules/home/useRecentActivity.js +57 -0
  402. package/dist/modules/home/useRecentActivity.js.map +1 -0
  403. package/dist/modules/platform/ModuleActivationControl.d.ts +28 -0
  404. package/dist/modules/platform/ModuleActivationControl.d.ts.map +1 -0
  405. package/dist/modules/platform/ModuleActivationControl.js +88 -0
  406. package/dist/modules/platform/ModuleActivationControl.js.map +1 -0
  407. package/dist/modules/platform/ModulesPage.d.ts +76 -0
  408. package/dist/modules/platform/ModulesPage.d.ts.map +1 -0
  409. package/dist/modules/platform/ModulesPage.js +175 -0
  410. package/dist/modules/platform/ModulesPage.js.map +1 -0
  411. package/dist/modules/platform/RecentActivityVisibilityControl.d.ts +38 -0
  412. package/dist/modules/platform/RecentActivityVisibilityControl.d.ts.map +1 -0
  413. package/dist/modules/platform/RecentActivityVisibilityControl.js +26 -0
  414. package/dist/modules/platform/RecentActivityVisibilityControl.js.map +1 -0
  415. package/dist/modules/platform/api.d.ts +27 -0
  416. package/dist/modules/platform/api.d.ts.map +1 -0
  417. package/dist/modules/platform/api.js +33 -0
  418. package/dist/modules/platform/api.js.map +1 -0
  419. package/dist/modules/profile/ProfilePage.d.ts +11 -0
  420. package/dist/modules/profile/ProfilePage.d.ts.map +1 -0
  421. package/dist/modules/profile/ProfilePage.js +140 -0
  422. package/dist/modules/profile/ProfilePage.js.map +1 -0
  423. package/dist/registerSw.d.ts +7 -0
  424. package/dist/registerSw.d.ts.map +1 -0
  425. package/dist/registerSw.js +20 -0
  426. package/dist/registerSw.js.map +1 -0
  427. package/package.json +74 -3
  428. package/tailwind.css +14 -0
@@ -0,0 +1,154 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useRef, useState } from 'react';
3
+ import { useNavigate } from 'react-router-dom';
4
+ import { Bell, CheckCheck } from 'lucide-react';
5
+ import { useTranslation } from '../../i18n/useTranslation.js';
6
+ import { useAdminNotifications } from './useAdminNotifications.js';
7
+ /**
8
+ * Admin notification bell — toolbar button in the top-nav.
9
+ *
10
+ * Polls the feed every 30 s via `useAdminNotifications`. Shows an unread
11
+ * badge ("3", "9+", or none) and a dropdown listing the 25 most-recent
12
+ * entries (unread-first via the server-side ordering). Clicking a row
13
+ * marks it read and navigates to `linkPath` if present. "Mark all read"
14
+ * acts on the visible-to-this-admin set (broadcasts insert a per-admin
15
+ * read cursor; per-admin entries flip `read_at` directly).
16
+ */
17
+ export function NotificationBell() {
18
+ const t = useTranslation('core');
19
+ const navigate = useNavigate();
20
+ const { items, unreadCount, refresh, markRead, markAllRead } = useAdminNotifications();
21
+ const [open, setOpen] = useState(false);
22
+ const dropdownRef = useRef(null);
23
+ const buttonRef = useRef(null);
24
+ // Close on outside click.
25
+ useEffect(() => {
26
+ if (!open)
27
+ return;
28
+ const onClickOutside = (e) => {
29
+ const target = e.target;
30
+ if (target &&
31
+ dropdownRef.current &&
32
+ !dropdownRef.current.contains(target) &&
33
+ buttonRef.current &&
34
+ !buttonRef.current.contains(target)) {
35
+ setOpen(false);
36
+ }
37
+ };
38
+ document.addEventListener('mousedown', onClickOutside);
39
+ return () => document.removeEventListener('mousedown', onClickOutside);
40
+ }, [open]);
41
+ // Close on Escape.
42
+ useEffect(() => {
43
+ if (!open)
44
+ return;
45
+ const onKey = (e) => {
46
+ if (e.key === 'Escape')
47
+ setOpen(false);
48
+ };
49
+ document.addEventListener('keydown', onKey);
50
+ return () => document.removeEventListener('keydown', onKey);
51
+ }, [open]);
52
+ const handleClick = (entry) => {
53
+ void markRead(entry.id);
54
+ if (entry.linkPath)
55
+ navigate(entry.linkPath);
56
+ setOpen(false);
57
+ };
58
+ const badge = formatUnreadBadge(unreadCount);
59
+ return (_jsxs("div", { style: { position: 'relative' }, children: [_jsxs("button", { ref: buttonRef, type: "button", className: "b2b-topbar__icon-btn", title: t('appShell.topbar.notifications'), "aria-label": t('appShell.topbar.notifications'), "aria-haspopup": "menu", "aria-expanded": open, onClick: () => {
60
+ if (!open)
61
+ void refresh();
62
+ setOpen((v) => !v);
63
+ }, children: [_jsx(Bell, { size: 16 }), badge ? _jsx("span", { style: BADGE_STYLE, children: badge }) : null] }), open ? (_jsxs("div", { ref: dropdownRef, style: DROPDOWN_STYLE, role: "menu", children: [_jsxs("div", { style: DROPDOWN_HEADER_STYLE, children: [_jsx("strong", { children: t('appShell.notifications.title') }), unreadCount > 0 ? (_jsxs("button", { type: "button", style: MARK_ALL_BTN, onClick: () => void markAllRead(), title: t('appShell.notifications.markAllRead'), children: [_jsx(CheckCheck, { size: 14 }), t('appShell.notifications.markAllRead')] })) : null] }), _jsx("div", { style: { maxHeight: 360, overflowY: 'auto' }, children: items.length === 0 ? (_jsx("div", { style: EMPTY_STYLE, children: t('appShell.notifications.empty') })) : (items.map((it) => (_jsxs("button", { type: "button", role: "menuitem", style: { ...ROW_STYLE, ...(it.isRead ? ROW_READ_STYLE : ROW_UNREAD_STYLE) }, onClick: () => handleClick(it), children: [_jsxs("div", { style: { display: 'flex', justifyContent: 'space-between', gap: 8 }, children: [_jsx("span", { style: { fontWeight: it.isRead ? 400 : 600, flex: 1 }, children: it.title }), _jsx("time", { style: { fontSize: 11, color: 'var(--text-muted, #888)' }, dateTime: it.createdAt, children: formatRelative(it.createdAt) })] }), it.body ? (_jsx("div", { style: { fontSize: 12, color: 'var(--text-muted, #888)', marginTop: 2 }, children: it.body })) : null] }, it.id)))) })] })) : null] }));
64
+ }
65
+ function formatUnreadBadge(n) {
66
+ if (n <= 0)
67
+ return null;
68
+ if (n > 9)
69
+ return '9+';
70
+ return String(n);
71
+ }
72
+ function formatRelative(iso) {
73
+ const then = new Date(iso).getTime();
74
+ const now = Date.now();
75
+ const diffMin = Math.round((now - then) / 60_000);
76
+ if (diffMin < 1)
77
+ return 'just now';
78
+ if (diffMin < 60)
79
+ return `${diffMin}m`;
80
+ const diffHr = Math.round(diffMin / 60);
81
+ if (diffHr < 24)
82
+ return `${diffHr}h`;
83
+ const diffDay = Math.round(diffHr / 24);
84
+ return `${diffDay}d`;
85
+ }
86
+ const BADGE_STYLE = {
87
+ position: 'absolute',
88
+ top: 2,
89
+ right: 2,
90
+ background: '#dc2626',
91
+ color: '#fff',
92
+ borderRadius: 999,
93
+ fontSize: 10,
94
+ lineHeight: 1,
95
+ padding: '2px 5px',
96
+ fontWeight: 600,
97
+ minWidth: 16,
98
+ textAlign: 'center',
99
+ };
100
+ const DROPDOWN_STYLE = {
101
+ position: 'absolute',
102
+ right: 0,
103
+ top: 'calc(100% + 6px)',
104
+ width: 340,
105
+ maxWidth: 'calc(100vw - 24px)',
106
+ background: 'var(--bg-surface, #fff)',
107
+ border: '1px solid var(--border-color, #e5e7eb)',
108
+ borderRadius: 8,
109
+ boxShadow: '0 10px 30px rgba(0, 0, 0, 0.15)',
110
+ zIndex: 100,
111
+ overflow: 'hidden',
112
+ };
113
+ const DROPDOWN_HEADER_STYLE = {
114
+ display: 'flex',
115
+ justifyContent: 'space-between',
116
+ alignItems: 'center',
117
+ padding: '10px 14px',
118
+ borderBottom: '1px solid var(--border-color, #e5e7eb)',
119
+ background: 'var(--bg-muted, #fafafa)',
120
+ };
121
+ const MARK_ALL_BTN = {
122
+ display: 'inline-flex',
123
+ alignItems: 'center',
124
+ gap: 4,
125
+ fontSize: 12,
126
+ color: 'var(--text-muted, #555)',
127
+ background: 'none',
128
+ border: 'none',
129
+ cursor: 'pointer',
130
+ };
131
+ const ROW_STYLE = {
132
+ display: 'block',
133
+ width: '100%',
134
+ textAlign: 'left',
135
+ padding: '10px 14px',
136
+ borderBottom: '1px solid var(--border-color, #e5e7eb)',
137
+ background: 'none',
138
+ cursor: 'pointer',
139
+ };
140
+ const ROW_UNREAD_STYLE = {
141
+ borderLeft: '3px solid #2563eb',
142
+ paddingLeft: 11,
143
+ };
144
+ const ROW_READ_STYLE = {
145
+ borderLeft: '3px solid transparent',
146
+ paddingLeft: 11,
147
+ };
148
+ const EMPTY_STYLE = {
149
+ padding: '24px 14px',
150
+ textAlign: 'center',
151
+ color: 'var(--text-muted, #888)',
152
+ fontSize: 13,
153
+ };
154
+ //# sourceMappingURL=NotificationBell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationBell.js","sourceRoot":"","sources":["../../../src/components/notifications/NotificationBell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAyC,MAAM,OAAO,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAA8B,MAAM,4BAA4B,CAAC;AAE/F;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB;IAC9B,MAAM,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IACjC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MA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C;AAEF,MAAM,gBAAgB,GAAkB;IACtC,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,cAAc,GAAkB;IACpC,UAAU,EAAE,uBAAuB;IACnC,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,WAAW,GAAkB;IACjC,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,QAAQ;IACnB,KAAK,EAAE,yBAAyB;IAChC,QAAQ,EAAE,EAAE;CACb,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { NotificationBell } from './NotificationBell.js';
2
+ export { useAdminNotifications, type AdminNotificationItem, type AdminNotificationFeed, type UseAdminNotificationsResult, } from './useAdminNotifications.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,GACjC,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { NotificationBell } from './NotificationBell.js';
2
+ export { useAdminNotifications, } from './useAdminNotifications.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,qBAAqB,GAItB,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,41 @@
1
+ export interface AdminNotificationItem {
2
+ id: string;
3
+ audience: 'all_admins' | 'admin_user';
4
+ kind: string;
5
+ subjectType: string | null;
6
+ subjectId: string | null;
7
+ title: string;
8
+ body: string | null;
9
+ linkPath: string | null;
10
+ createdAt: string;
11
+ isRead: boolean;
12
+ }
13
+ export interface AdminNotificationFeed {
14
+ items: AdminNotificationItem[];
15
+ nextCursor: string | null;
16
+ unreadCount: number;
17
+ }
18
+ export interface UseAdminNotificationsResult {
19
+ items: AdminNotificationItem[];
20
+ unreadCount: number;
21
+ loading: boolean;
22
+ error: string | null;
23
+ refresh: () => Promise<void>;
24
+ markRead: (id: string) => Promise<void>;
25
+ markAllRead: () => Promise<void>;
26
+ }
27
+ /**
28
+ * Drives the admin bell. Polls `GET /api/v1/admin/notifications` every
29
+ * `pollMs` (default 30s) so newly-emitted notifications show up promptly
30
+ * without WebSockets. Tracks an AbortController to drop in-flight requests
31
+ * on unmount.
32
+ *
33
+ * The feed returns the unread-first slice (limit 25 by default); the
34
+ * server already does the per-admin isRead resolution.
35
+ */
36
+ export declare function useAdminNotifications(options?: {
37
+ pollMs?: number;
38
+ limit?: number;
39
+ unreadOnly?: boolean;
40
+ }): UseAdminNotificationsResult;
41
+ //# sourceMappingURL=useAdminNotifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAdminNotifications.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/useAdminNotifications.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,YAAY,GAAG,YAAY,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAClC;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,2BAA2B,CA2E9B"}
@@ -0,0 +1,86 @@
1
+ import { useCallback, useEffect, useRef, useState } from 'react';
2
+ import { apiClient } from '../../lib/api-client.js';
3
+ /**
4
+ * Drives the admin bell. Polls `GET /api/v1/admin/notifications` every
5
+ * `pollMs` (default 30s) so newly-emitted notifications show up promptly
6
+ * without WebSockets. Tracks an AbortController to drop in-flight requests
7
+ * on unmount.
8
+ *
9
+ * The feed returns the unread-first slice (limit 25 by default); the
10
+ * server already does the per-admin isRead resolution.
11
+ */
12
+ export function useAdminNotifications(options) {
13
+ const pollMs = options?.pollMs ?? 30_000;
14
+ const limit = options?.limit ?? 25;
15
+ const unreadOnly = options?.unreadOnly ?? false;
16
+ const [items, setItems] = useState([]);
17
+ const [unreadCount, setUnreadCount] = useState(0);
18
+ const [loading, setLoading] = useState(false);
19
+ const [error, setError] = useState(null);
20
+ const abortRef = useRef(null);
21
+ const timerRef = useRef(null);
22
+ const refresh = useCallback(async () => {
23
+ if (abortRef.current)
24
+ abortRef.current.abort();
25
+ const controller = new AbortController();
26
+ abortRef.current = controller;
27
+ setLoading(true);
28
+ setError(null);
29
+ try {
30
+ const qs = new URLSearchParams();
31
+ qs.set('limit', String(limit));
32
+ if (unreadOnly)
33
+ qs.set('unread', 'true');
34
+ const page = await apiClient.get(`/api/v1/admin/notifications?${qs.toString()}`, { signal: controller.signal });
35
+ if (controller.signal.aborted)
36
+ return;
37
+ setItems(page.items);
38
+ setUnreadCount(page.unreadCount);
39
+ }
40
+ catch (err) {
41
+ if (controller.signal.aborted)
42
+ return;
43
+ setError(err instanceof Error ? err.message : 'Failed to load notifications.');
44
+ }
45
+ finally {
46
+ if (!controller.signal.aborted)
47
+ setLoading(false);
48
+ }
49
+ }, [limit, unreadOnly]);
50
+ const markRead = useCallback(async (id) => {
51
+ try {
52
+ await apiClient.post(`/api/v1/admin/notifications/${id}/read`, {});
53
+ await refresh();
54
+ }
55
+ catch (err) {
56
+ setError(err instanceof Error ? err.message : 'Failed to mark notification read.');
57
+ }
58
+ }, [refresh]);
59
+ const markAllRead = useCallback(async () => {
60
+ try {
61
+ await apiClient.post('/api/v1/admin/notifications/mark-all-read', {});
62
+ await refresh();
63
+ }
64
+ catch (err) {
65
+ setError(err instanceof Error ? err.message : 'Failed to mark notifications read.');
66
+ }
67
+ }, [refresh]);
68
+ // Initial load + polling loop.
69
+ useEffect(() => {
70
+ void refresh();
71
+ const tick = () => {
72
+ timerRef.current = setTimeout(() => {
73
+ void refresh().finally(() => tick());
74
+ }, pollMs);
75
+ };
76
+ tick();
77
+ return () => {
78
+ if (timerRef.current)
79
+ clearTimeout(timerRef.current);
80
+ if (abortRef.current)
81
+ abortRef.current.abort();
82
+ };
83
+ }, [refresh, pollMs]);
84
+ return { items, unreadCount, loading, error, refresh, markRead, markAllRead };
85
+ }
86
+ //# sourceMappingURL=useAdminNotifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAdminNotifications.js","sourceRoot":"","sources":["../../../src/components/notifications/useAdminNotifications.ts"],"names":[],"mappings":"AAAA,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,WAAW,CAAC,KAAK,IAAmB,EAAE;QACxD,IAAI,CAAC;YACH,MAAM,SAAS,CAAC,IAAI,CAAC,2CAA2C,EAAE,EAAE,CAAC,CAAC;YACtE,MAAM,OAAO,EAAE,CAAC;QAClB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,QAAQ,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC;QACtF,CAAC;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,+BAA+B;IAC/B,SAAS,CAAC,GAAG,EAAE;QACb,KAAK,OAAO,EAAE,CAAC;QACf,MAAM,IAAI,GAAG,GAAS,EAAE;YACtB,QAAQ,CAAC,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;gBACjC,KAAK,OAAO,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;YACvC,CAAC,EAAE,MAAM,CAAC,CAAC;QACb,CAAC,CAAC;QACF,IAAI,EAAE,CAAC;QACP,OAAO,GAAS,EAAE;YAChB,IAAI,QAAQ,CAAC,OAAO;gBAAE,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YACrD,IAAI,QAAQ,CAAC,OAAO;gBAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACjD,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IAEtB,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AAChF,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/components` (feature 091, P2).
4
+ *
5
+ * The picker stayed in `admin/src` through Phase 1b because it fetched from
6
+ * another module's admin API client, which publishing would have put in the kit
7
+ * (`admin-kit-surface.md` R6). P2 takes the client exit instead — the component
8
+ * builds its own request from the published `apiClient` and the owner's
9
+ * contract types — so it holds no module knowledge and is published like the
10
+ * rest of the design system.
11
+ *
12
+ * **The forwarding is the identity, not a copy.** These names are the package's
13
+ * own bindings; `admin/test/kit/admin-kit-identity.test.ts` asserts reference
14
+ * equality across the seam, because a second React context or a second class
15
+ * passes every structural comparison and still breaks at runtime.
16
+ */
17
+ export { OrganizationPicker } from '@endora-commerce/admin-kit/components';
18
+ export type { OrganizationPickerProps } from '@endora-commerce/admin-kit/components';
19
+ //# sourceMappingURL=OrganizationPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrganizationPicker.d.ts","sourceRoot":"","sources":["../../../src/components/organization-picker/OrganizationPicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,YAAY,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/components` (feature 091, P2).
4
+ *
5
+ * The picker stayed in `admin/src` through Phase 1b because it fetched from
6
+ * another module's admin API client, which publishing would have put in the kit
7
+ * (`admin-kit-surface.md` R6). P2 takes the client exit instead — the component
8
+ * builds its own request from the published `apiClient` and the owner's
9
+ * contract types — so it holds no module knowledge and is published like the
10
+ * rest of the design system.
11
+ *
12
+ * **The forwarding is the identity, not a copy.** These names are the package's
13
+ * own bindings; `admin/test/kit/admin-kit-identity.test.ts` asserts reference
14
+ * equality across the seam, because a second React context or a second class
15
+ * passes every structural comparison and still breaks at runtime.
16
+ */
17
+ export { OrganizationPicker } from '@endora-commerce/admin-kit/components';
18
+ //# sourceMappingURL=OrganizationPicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrganizationPicker.js","sourceRoot":"","sources":["../../../src/components/organization-picker/OrganizationPicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/components` (feature 091, P2).
4
+ *
5
+ * The picker stayed in `admin/src` through Phase 1b because it fetched from
6
+ * another module's admin API client, which publishing would have put in the kit
7
+ * (`admin-kit-surface.md` R6). P2 takes the client exit instead — the component
8
+ * builds its own request from the published `apiClient` and the owner's
9
+ * contract types — so it holds no module knowledge and is published like the
10
+ * rest of the design system.
11
+ *
12
+ * **The forwarding is the identity, not a copy.** These names are the package's
13
+ * own bindings; `admin/test/kit/admin-kit-identity.test.ts` asserts reference
14
+ * equality across the seam, because a second React context or a second class
15
+ * passes every structural comparison and still breaks at runtime.
16
+ */
17
+ export { OrganizationPickerMulti } from '@endora-commerce/admin-kit/components';
18
+ export type { OrganizationPickerMultiProps } from '@endora-commerce/admin-kit/components';
19
+ //# sourceMappingURL=OrganizationPickerMulti.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrganizationPickerMulti.d.ts","sourceRoot":"","sources":["../../../src/components/organization-picker/OrganizationPickerMulti.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,YAAY,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/components` (feature 091, P2).
4
+ *
5
+ * The picker stayed in `admin/src` through Phase 1b because it fetched from
6
+ * another module's admin API client, which publishing would have put in the kit
7
+ * (`admin-kit-surface.md` R6). P2 takes the client exit instead — the component
8
+ * builds its own request from the published `apiClient` and the owner's
9
+ * contract types — so it holds no module knowledge and is published like the
10
+ * rest of the design system.
11
+ *
12
+ * **The forwarding is the identity, not a copy.** These names are the package's
13
+ * own bindings; `admin/test/kit/admin-kit-identity.test.ts` asserts reference
14
+ * equality across the seam, because a second React context or a second class
15
+ * passes every structural comparison and still breaks at runtime.
16
+ */
17
+ export { OrganizationPickerMulti } from '@endora-commerce/admin-kit/components';
18
+ //# sourceMappingURL=OrganizationPickerMulti.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrganizationPickerMulti.js","sourceRoot":"","sources":["../../../src/components/organization-picker/OrganizationPickerMulti.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/components` (feature 091, P2).
4
+ *
5
+ * The picker stayed in `admin/src` through Phase 1b because it fetched from
6
+ * another module's admin API client, which publishing would have put in the kit
7
+ * (`admin-kit-surface.md` R6). P2 takes the client exit instead — the component
8
+ * builds its own request from the published `apiClient` and the owner's
9
+ * contract types — so it holds no module knowledge and is published like the
10
+ * rest of the design system.
11
+ *
12
+ * **The forwarding is the identity, not a copy.** These names are the package's
13
+ * own bindings; `admin/test/kit/admin-kit-identity.test.ts` asserts reference
14
+ * equality across the seam, because a second React context or a second class
15
+ * passes every structural comparison and still breaks at runtime.
16
+ */
17
+ export { OrganizationStatusBadge } from '@endora-commerce/admin-kit/components';
18
+ export type { OrganizationStatusBadgeProps } from '@endora-commerce/admin-kit/components';
19
+ //# sourceMappingURL=OrganizationStatusBadge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrganizationStatusBadge.d.ts","sourceRoot":"","sources":["../../../src/components/organization-picker/OrganizationStatusBadge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,YAAY,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/components` (feature 091, P2).
4
+ *
5
+ * The picker stayed in `admin/src` through Phase 1b because it fetched from
6
+ * another module's admin API client, which publishing would have put in the kit
7
+ * (`admin-kit-surface.md` R6). P2 takes the client exit instead — the component
8
+ * builds its own request from the published `apiClient` and the owner's
9
+ * contract types — so it holds no module knowledge and is published like the
10
+ * rest of the design system.
11
+ *
12
+ * **The forwarding is the identity, not a copy.** These names are the package's
13
+ * own bindings; `admin/test/kit/admin-kit-identity.test.ts` asserts reference
14
+ * equality across the seam, because a second React context or a second class
15
+ * passes every structural comparison and still breaks at runtime.
16
+ */
17
+ export { OrganizationStatusBadge } from '@endora-commerce/admin-kit/components';
18
+ //# sourceMappingURL=OrganizationStatusBadge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrganizationStatusBadge.js","sourceRoot":"","sources":["../../../src/components/organization-picker/OrganizationStatusBadge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/components` (feature 091, P2).
4
+ *
5
+ * The picker stayed in `admin/src` through Phase 1b because it fetched from
6
+ * another module's admin API client, which publishing would have put in the kit
7
+ * (`admin-kit-surface.md` R6). P2 takes the client exit instead — the component
8
+ * builds its own request from the published `apiClient` and the owner's
9
+ * contract types — so it holds no module knowledge and is published like the
10
+ * rest of the design system.
11
+ *
12
+ * **The forwarding is the identity, not a copy.** These names are the package's
13
+ * own bindings; `admin/test/kit/admin-kit-identity.test.ts` asserts reference
14
+ * equality across the seam, because a second React context or a second class
15
+ * passes every structural comparison and still breaks at runtime.
16
+ */
17
+ export { OrganizationPicker, OrganizationPickerMulti, OrganizationStatusBadge, useOrganizationsQuery, } from '@endora-commerce/admin-kit/components';
18
+ export type { OrganizationPickerProps, OrganizationPickerMultiProps, OrganizationStatusBadgeProps, UseOrganizationsQueryOptions, UseOrganizationsQueryResult, } from '@endora-commerce/admin-kit/components';
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/organization-picker/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EACV,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/components` (feature 091, P2).
4
+ *
5
+ * The picker stayed in `admin/src` through Phase 1b because it fetched from
6
+ * another module's admin API client, which publishing would have put in the kit
7
+ * (`admin-kit-surface.md` R6). P2 takes the client exit instead — the component
8
+ * builds its own request from the published `apiClient` and the owner's
9
+ * contract types — so it holds no module knowledge and is published like the
10
+ * rest of the design system.
11
+ *
12
+ * **The forwarding is the identity, not a copy.** These names are the package's
13
+ * own bindings; `admin/test/kit/admin-kit-identity.test.ts` asserts reference
14
+ * equality across the seam, because a second React context or a second class
15
+ * passes every structural comparison and still breaks at runtime.
16
+ */
17
+ export { OrganizationPicker, OrganizationPickerMulti, OrganizationStatusBadge, useOrganizationsQuery, } from '@endora-commerce/admin-kit/components';
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/organization-picker/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/components` (feature 091, P2).
4
+ *
5
+ * The picker stayed in `admin/src` through Phase 1b because it fetched from
6
+ * another module's admin API client, which publishing would have put in the kit
7
+ * (`admin-kit-surface.md` R6). P2 takes the client exit instead — the component
8
+ * builds its own request from the published `apiClient` and the owner's
9
+ * contract types — so it holds no module knowledge and is published like the
10
+ * rest of the design system.
11
+ *
12
+ * **The forwarding is the identity, not a copy.** These names are the package's
13
+ * own bindings; `admin/test/kit/admin-kit-identity.test.ts` asserts reference
14
+ * equality across the seam, because a second React context or a second class
15
+ * passes every structural comparison and still breaks at runtime.
16
+ */
17
+ export { useOrganizationsQuery } from '@endora-commerce/admin-kit/components';
18
+ export type { UseOrganizationsQueryOptions, UseOrganizationsQueryResult, } from '@endora-commerce/admin-kit/components';
19
+ //# sourceMappingURL=useOrganizationsQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOrganizationsQuery.d.ts","sourceRoot":"","sources":["../../../src/components/organization-picker/useOrganizationsQuery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,YAAY,EACV,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/components` (feature 091, P2).
4
+ *
5
+ * The picker stayed in `admin/src` through Phase 1b because it fetched from
6
+ * another module's admin API client, which publishing would have put in the kit
7
+ * (`admin-kit-surface.md` R6). P2 takes the client exit instead — the component
8
+ * builds its own request from the published `apiClient` and the owner's
9
+ * contract types — so it holds no module knowledge and is published like the
10
+ * rest of the design system.
11
+ *
12
+ * **The forwarding is the identity, not a copy.** These names are the package's
13
+ * own bindings; `admin/test/kit/admin-kit-identity.test.ts` asserts reference
14
+ * equality across the seam, because a second React context or a second class
15
+ * passes every structural comparison and still breaks at runtime.
16
+ */
17
+ export { useOrganizationsQuery } from '@endora-commerce/admin-kit/components';
18
+ //# sourceMappingURL=useOrganizationsQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOrganizationsQuery.js","sourceRoot":"","sources":["../../../src/components/organization-picker/useOrganizationsQuery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/components` (feature 091, Phase 1b).
4
+ *
5
+ * The design system moved into the package so that a module package's `./admin` layer
6
+ * can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
7
+ * `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
8
+ * this application arrives here and is forwarded, so nothing outside had to be rewritten
9
+ * — the shape feature 080 used for the platform relocation.
10
+ *
11
+ * **The forwarding is the identity, not a copy.** These names are the package's own
12
+ * bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
13
+ * the seam, because a second React context or a second `z.enum` passes every structural
14
+ * comparison and still breaks at runtime.
15
+ */
16
+ export { MethodAvailabilityCaption, MethodAvailabilityCell, MethodNotOfferedNotice } from '@endora-commerce/admin-kit/components';
17
+ //# sourceMappingURL=MethodAvailabilityCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MethodAvailabilityCell.d.ts","sourceRoot":"","sources":["../../../src/components/payment-method-availability/MethodAvailabilityCell.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/components` (feature 091, Phase 1b).
4
+ *
5
+ * The design system moved into the package so that a module package's `./admin` layer
6
+ * can reach it by a bare specifier through an `exports` map (FR-008): `@/` is a Vite and
7
+ * `tsc` alias that an installed package cannot resolve. Every existing `@/…` specifier in
8
+ * this application arrives here and is forwarded, so nothing outside had to be rewritten
9
+ * — the shape feature 080 used for the platform relocation.
10
+ *
11
+ * **The forwarding is the identity, not a copy.** These names are the package's own
12
+ * bindings; `admin/test/kit/admin-kit-shims.test.ts` asserts reference equality across
13
+ * the seam, because a second React context or a second `z.enum` passes every structural
14
+ * comparison and still breaks at runtime.
15
+ */
16
+ export { MethodAvailabilityCaption, MethodAvailabilityCell, MethodNotOfferedNotice } from '@endora-commerce/admin-kit/components';
17
+ //# sourceMappingURL=MethodAvailabilityCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MethodAvailabilityCell.js","sourceRoot":"","sources":["../../../src/components/payment-method-availability/MethodAvailabilityCell.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC"}