@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,10 @@
1
+ import type { GetAdminActionsResponse, SupportedAdminLanguage } from '@endora-commerce/contracts';
2
+ /**
3
+ * Fetch the operator-visible action list for the requested language.
4
+ *
5
+ * Mirrors feature 019's bare-fetch helper — no React Query / SWR
6
+ * wrapper at this layer; the AdminActionsProvider owns caching and
7
+ * lifecycle invalidation.
8
+ */
9
+ export declare function getAdminActions(language: SupportedAdminLanguage): Promise<GetAdminActionsResponse>;
10
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/lib/admin-actions/api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAElG;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,sBAAsB,GAC/B,OAAO,CAAC,uBAAuB,CAAC,CAKlC"}
@@ -0,0 +1,13 @@
1
+ import { apiClient } from '../api-client.js';
2
+ /**
3
+ * Fetch the operator-visible action list for the requested language.
4
+ *
5
+ * Mirrors feature 019's bare-fetch helper — no React Query / SWR
6
+ * wrapper at this layer; the AdminActionsProvider owns caching and
7
+ * lifecycle invalidation.
8
+ */
9
+ export async function getAdminActions(language) {
10
+ const res = await apiClient.get(`/api/v1/admin/admin-actions?language=${encodeURIComponent(language)}`);
11
+ return res.data;
12
+ }
13
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/lib/admin-actions/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,QAAgC;IAEhC,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,GAAG,CAC7B,wCAAwC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CACvE,CAAC;IACF,OAAO,GAAG,CAAC,IAAI,CAAC;AAClB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (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 { resolveIcon } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=icon-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-map.d.ts","sourceRoot":"","sources":["../../../src/lib/admin-actions/icon-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (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 { resolveIcon } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=icon-map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-map.js","sourceRoot":"","sources":["../../../src/lib/admin-actions/icon-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { AdminActionView } from '@endora-commerce/contracts';
2
+ /**
3
+ * Read the operator-visible action list from the registry context, with
4
+ * an optional client-side substring filter.
5
+ *
6
+ * The list is already permission-filtered, language-resolved, and
7
+ * sorted by (weight, label) by the server. Client-side we only:
8
+ * - apply the user's typed query against label / description /
9
+ * keywords (diacritic-insensitive, case-insensitive substring).
10
+ * - return the same list verbatim when the query is empty.
11
+ */
12
+ export declare function useAdminActions(query?: string): {
13
+ actions: AdminActionView[];
14
+ isLoading: boolean;
15
+ error: Error | null;
16
+ };
17
+ //# sourceMappingURL=useAdminActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAdminActions.d.ts","sourceRoot":"","sources":["../../../src/lib/admin-actions/useAdminActions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAIlE;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG;IAC/C,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB,CAeA"}
@@ -0,0 +1,34 @@
1
+ import { useMemo } from 'react';
2
+ import { useAdminActionsContext } from './AdminActionsProvider.js';
3
+ import { normalize } from '../text-normalization.js';
4
+ /**
5
+ * Read the operator-visible action list from the registry context, with
6
+ * an optional client-side substring filter.
7
+ *
8
+ * The list is already permission-filtered, language-resolved, and
9
+ * sorted by (weight, label) by the server. Client-side we only:
10
+ * - apply the user's typed query against label / description /
11
+ * keywords (diacritic-insensitive, case-insensitive substring).
12
+ * - return the same list verbatim when the query is empty.
13
+ */
14
+ export function useAdminActions(query) {
15
+ const ctx = useAdminActionsContext();
16
+ const filtered = useMemo(() => {
17
+ if (!query || query.trim().length === 0)
18
+ return ctx.actions;
19
+ const needle = normalize(query);
20
+ return ctx.actions.filter((a) => {
21
+ if (normalize(a.label).includes(needle))
22
+ return true;
23
+ if (a.description && normalize(a.description).includes(needle))
24
+ return true;
25
+ for (const kw of a.keywords) {
26
+ if (normalize(kw).includes(needle))
27
+ return true;
28
+ }
29
+ return false;
30
+ });
31
+ }, [ctx.actions, query]);
32
+ return { actions: filtered, isLoading: ctx.isLoading, error: ctx.error };
33
+ }
34
+ //# sourceMappingURL=useAdminActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAdminActions.js","sourceRoot":"","sources":["../../../src/lib/admin-actions/useAdminActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,KAAc;IAK5C,MAAM,GAAG,GAAG,sBAAsB,EAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,OAAO,CAAoB,GAAG,EAAE;QAC/C,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,GAAG,CAAC,OAAO,CAAC;QAC5D,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;QAChC,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;YAC9B,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAAE,OAAO,IAAI,CAAC;YACrD,IAAI,CAAC,CAAC,WAAW,IAAI,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAAE,OAAO,IAAI,CAAC;YAC5E,KAAK,MAAM,EAAE,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;gBAC5B,IAAI,SAAS,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;oBAAE,OAAO,IAAI,CAAC;YAClD,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IACzB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,CAAC,SAAS,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC;AAC3E,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (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 { ApiError, apiClient, onUnauthorized } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=api-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../src/lib/api-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (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 { ApiError, apiClient, onUnauthorized } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=api-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-client.js","sourceRoot":"","sources":["../../src/lib/api-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (feature 091, P3).
4
+ *
5
+ * `useAuth` is what a screen calls to gate a control the signed-in operator may not use.
6
+ * Phase 1b left it here, so a module package could not name it and sixteen packaged
7
+ * modules rendered every control live to a read-only operator — who filled the form in
8
+ * and got a 403 on save. P3 publishes it; the screen-side repairs are each owner's.
9
+ *
10
+ * **The forwarding is the identity, not a copy.** These names are the package's own
11
+ * bindings; `admin/test/kit/admin-kit-identity.test.ts` asserts reference equality across
12
+ * the seam, because a second React context passes every structural comparison and still
13
+ * breaks at runtime — `useAuth` throws when its context is `null`, so a duplicate is a
14
+ * blank screen rather than a subtle wrong answer.
15
+ */
16
+ export { AuthProvider, useAuth } from '@endora-commerce/admin-kit/lib';
17
+ export type { AdminMe, AuthProviderProps } from '@endora-commerce/admin-kit/lib';
18
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/lib/auth.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACvE,YAAY,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (feature 091, P3).
4
+ *
5
+ * `useAuth` is what a screen calls to gate a control the signed-in operator may not use.
6
+ * Phase 1b left it here, so a module package could not name it and sixteen packaged
7
+ * modules rendered every control live to a read-only operator — who filled the form in
8
+ * and got a 403 on save. P3 publishes it; the screen-side repairs are each owner's.
9
+ *
10
+ * **The forwarding is the identity, not a copy.** These names are the package's own
11
+ * bindings; `admin/test/kit/admin-kit-identity.test.ts` asserts reference equality across
12
+ * the seam, because a second React context passes every structural comparison and still
13
+ * breaks at runtime — `useAuth` throws when its context is `null`, so a duplicate is a
14
+ * blank screen rather than a subtle wrong answer.
15
+ */
16
+ export { AuthProvider, useAuth } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/lib/auth.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { FederatedProvider } from './resolve.js';
2
+ export declare function fetchMfaPresence(): Promise<boolean>;
3
+ export declare function fetchAdminFederatedProviders(): Promise<readonly FederatedProvider[]>;
4
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/lib/federated-sign-in/api.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAsBtD,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CASzD;AAED,wBAAsB,4BAA4B,IAAI,OAAO,CAC3D,SAAS,iBAAiB,EAAE,CAC7B,CASA"}
@@ -0,0 +1,38 @@
1
+ import { apiClient } from '../api-client.js';
2
+ /**
3
+ * The two pre-auth reads behind the federated block — issue #193.
4
+ *
5
+ * Both are **public** endpoints, and they have to be: this runs on the login
6
+ * screen, where there is no session to authenticate with. That is also why
7
+ * presence comes from the storefront projection rather than
8
+ * `/api/v1/admin/module-presence` — the admin one requires an admin session,
9
+ * and `LoginPage` renders outside `<ModulePresenceProvider>` anyway. Presence
10
+ * is not surface-scoped (a module is present platform-wide or not at all), so
11
+ * the two endpoints answer the same question about `mfa`.
12
+ *
13
+ * Both fail **closed**: absent, off, unreachable and not-yet-deployed all
14
+ * answer "no federated route". The password form is unaffected either way, so
15
+ * the closed answer costs an admin nothing they cannot already do — while the
16
+ * open answer costs them a button whose click returns them here with an error.
17
+ */
18
+ /** The module id this screen asks about. Not a list — one edge, named once. */
19
+ const MFA_MODULE_ID = 'mfa';
20
+ export async function fetchMfaPresence() {
21
+ try {
22
+ const res = await apiClient.get('/api/v1/storefront/module-presence');
23
+ return res.modules.some((m) => m.id === MFA_MODULE_ID && m.present);
24
+ }
25
+ catch {
26
+ return false;
27
+ }
28
+ }
29
+ export async function fetchAdminFederatedProviders() {
30
+ try {
31
+ const res = await apiClient.get('/api/v1/auth/admin/oauth/providers');
32
+ return res.providers;
33
+ }
34
+ catch {
35
+ return [];
36
+ }
37
+ }
38
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/lib/federated-sign-in/api.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C;;;;;;;;;;;;;;;GAeG;AAEH,+EAA+E;AAC/E,MAAM,aAAa,GAAG,KAAK,CAAC;AAE5B,MAAM,CAAC,KAAK,UAAU,gBAAgB;IACpC,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,GAAG,CAC7B,oCAAoC,CACrC,CAAC;QACF,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,aAAa,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;IACtE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,4BAA4B;IAGhD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,GAAG,CAC7B,oCAAoC,CACrC,CAAC;QACF,OAAO,GAAG,CAAC,SAAS,CAAC;IACvB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { resolveFederatedSignIn, type FederatedProvider, type FederatedSignInInput, type FederatedSignInState, type FederatedSignInStatus, } from './resolve.js';
2
+ export { fetchAdminFederatedProviders, fetchMfaPresence } from './api.js';
3
+ export { useFederatedSignIn } from './useFederatedSignIn.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/federated-sign-in/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { resolveFederatedSignIn, } from './resolve.js';
2
+ export { fetchAdminFederatedProviders, fetchMfaPresence } from './api.js';
3
+ export { useFederatedSignIn } from './useFederatedSignIn.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/federated-sign-in/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,GAKvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,47 @@
1
+ import type { MfaSocialProvider } from '@endora-commerce/contracts';
2
+ /**
3
+ * Which federated sign-in buttons the pre-auth admin screen may render —
4
+ * issue #193.
5
+ *
6
+ * Two independent inputs, and both can be unresolved on a screen that has to
7
+ * paint immediately:
8
+ *
9
+ * - **presence** — is `mfa` effectively present (platform availability AND
10
+ * operator activation)? Read from the server's projection, never a
11
+ * hard-coded module list (Constitution XVII item 5);
12
+ * - **options** — which providers are configured *and* enabled for the admin
13
+ * surface? Answered by the `mfa`-owned availability endpoint, which lists
14
+ * only the providers that can complete a sign-in.
15
+ *
16
+ * Three-valued rather than a plain array, because "not known yet" and "there
17
+ * are none" have to render differently, and neither may render a button that
18
+ * later disappears out from under a cursor.
19
+ *
20
+ * Pure, and in its own module so it is testable without mounting the screen.
21
+ */
22
+ export type FederatedProvider = MfaSocialProvider;
23
+ export type FederatedSignInStatus = 'unknown' | 'none' | 'ready';
24
+ export interface FederatedSignInState {
25
+ status: FederatedSignInStatus;
26
+ /** Empty unless `status === 'ready'`. Order is the server's, preserved. */
27
+ providers: readonly FederatedProvider[];
28
+ }
29
+ export interface FederatedSignInInput {
30
+ /** `undefined` while the presence projection has not landed. */
31
+ modulePresent: boolean | undefined;
32
+ /** `undefined` while the availability read has not landed. */
33
+ availableProviders: readonly FederatedProvider[] | undefined;
34
+ }
35
+ /**
36
+ * `mfa` absent short-circuits to `none` **without waiting for the options
37
+ * read**: `mfa` owns that endpoint, so waiting on it only delays a decision
38
+ * presence has already made.
39
+ *
40
+ * Unresolved fails **closed** here, unlike `ModulePresenceProvider`'s
41
+ * degrade-open. The trade-off is not the same one: an admin with no presence
42
+ * projection would otherwise face an empty sidebar and no way to diagnose it,
43
+ * whereas an admin with no federated projection still has the password form —
44
+ * which is the route every admin account is guaranteed to have.
45
+ */
46
+ export declare function resolveFederatedSignIn(input: FederatedSignInInput): FederatedSignInState;
47
+ //# sourceMappingURL=resolve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../src/lib/federated-sign-in/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAElD,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEjE,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,2EAA2E;IAC3E,SAAS,EAAE,SAAS,iBAAiB,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,oBAAoB;IACnC,gEAAgE;IAChE,aAAa,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,8DAA8D;IAC9D,kBAAkB,EAAE,SAAS,iBAAiB,EAAE,GAAG,SAAS,CAAC;CAC9D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,oBAAoB,GAC1B,oBAAoB,CAQtB"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * `mfa` absent short-circuits to `none` **without waiting for the options
3
+ * read**: `mfa` owns that endpoint, so waiting on it only delays a decision
4
+ * presence has already made.
5
+ *
6
+ * Unresolved fails **closed** here, unlike `ModulePresenceProvider`'s
7
+ * degrade-open. The trade-off is not the same one: an admin with no presence
8
+ * projection would otherwise face an empty sidebar and no way to diagnose it,
9
+ * whereas an admin with no federated projection still has the password form —
10
+ * which is the route every admin account is guaranteed to have.
11
+ */
12
+ export function resolveFederatedSignIn(input) {
13
+ if (input.modulePresent === false)
14
+ return { status: 'none', providers: [] };
15
+ if (input.modulePresent === undefined)
16
+ return { status: 'unknown', providers: [] };
17
+ if (input.availableProviders === undefined) {
18
+ return { status: 'unknown', providers: [] };
19
+ }
20
+ if (input.availableProviders.length === 0)
21
+ return { status: 'none', providers: [] };
22
+ return { status: 'ready', providers: input.availableProviders };
23
+ }
24
+ //# sourceMappingURL=resolve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../../src/lib/federated-sign-in/resolve.ts"],"names":[],"mappings":"AAuCA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,sBAAsB,CACpC,KAA2B;IAE3B,IAAI,KAAK,CAAC,aAAa,KAAK,KAAK;QAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC5E,IAAI,KAAK,CAAC,aAAa,KAAK,SAAS;QAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IACnF,IAAI,KAAK,CAAC,kBAAkB,KAAK,SAAS,EAAE,CAAC;QAC3C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC9C,CAAC;IACD,IAAI,KAAK,CAAC,kBAAkB,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IACpF,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,kBAAkB,EAAE,CAAC;AAClE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type FederatedSignInState } from './resolve.js';
2
+ /**
3
+ * Resolves the federated block for the pre-auth admin screen — issue #193.
4
+ *
5
+ * Both reads are fired **in parallel** on mount, so the gap is one round-trip
6
+ * rather than two. Presence still short-circuits the answer in
7
+ * `resolveFederatedSignIn`, so an absent `mfa` decides `none` the moment the
8
+ * presence response lands, whatever the options read is doing.
9
+ *
10
+ * The state starts `unknown` in both slots, which renders nothing. It never
11
+ * renders a provisional button, because the failure mode this fixes is exactly
12
+ * a button that appears and then leaves under a cursor.
13
+ */
14
+ export declare function useFederatedSignIn(): FederatedSignInState;
15
+ //# sourceMappingURL=useFederatedSignIn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFederatedSignIn.d.ts","sourceRoot":"","sources":["../../../src/lib/federated-sign-in/useFederatedSignIn.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAEtB;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,IAAI,oBAAoB,CAuBzD"}
@@ -0,0 +1,37 @@
1
+ import { useEffect, useState } from 'react';
2
+ import { fetchAdminFederatedProviders, fetchMfaPresence } from './api.js';
3
+ import { resolveFederatedSignIn, } from './resolve.js';
4
+ /**
5
+ * Resolves the federated block for the pre-auth admin screen — issue #193.
6
+ *
7
+ * Both reads are fired **in parallel** on mount, so the gap is one round-trip
8
+ * rather than two. Presence still short-circuits the answer in
9
+ * `resolveFederatedSignIn`, so an absent `mfa` decides `none` the moment the
10
+ * presence response lands, whatever the options read is doing.
11
+ *
12
+ * The state starts `unknown` in both slots, which renders nothing. It never
13
+ * renders a provisional button, because the failure mode this fixes is exactly
14
+ * a button that appears and then leaves under a cursor.
15
+ */
16
+ export function useFederatedSignIn() {
17
+ const [modulePresent, setModulePresent] = useState(undefined);
18
+ const [providers, setProviders] = useState(undefined);
19
+ useEffect(() => {
20
+ let cancelled = false;
21
+ void (async () => {
22
+ const [present, available] = await Promise.all([
23
+ fetchMfaPresence(),
24
+ fetchAdminFederatedProviders(),
25
+ ]);
26
+ if (cancelled)
27
+ return;
28
+ setModulePresent(present);
29
+ setProviders(available);
30
+ })();
31
+ return () => {
32
+ cancelled = true;
33
+ };
34
+ }, []);
35
+ return resolveFederatedSignIn({ modulePresent, availableProviders: providers });
36
+ }
37
+ //# sourceMappingURL=useFederatedSignIn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFederatedSignIn.js","sourceRoot":"","sources":["../../../src/lib/federated-sign-in/useFederatedSignIn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EACL,sBAAsB,GAGvB,MAAM,cAAc,CAAC;AAEtB;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,kBAAkB;IAChC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAsB,SAAS,CAAC,CAAC;IACnF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CACxC,SAAS,CACV,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,KAAK,CAAC,KAAK,IAAI,EAAE;YACf,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;gBAC7C,gBAAgB,EAAE;gBAClB,4BAA4B,EAAE;aAC/B,CAAC,CAAC;YACH,IAAI,SAAS;gBAAE,OAAO;YACtB,gBAAgB,CAAC,OAAO,CAAC,CAAC;YAC1B,YAAY,CAAC,SAAS,CAAC,CAAC;QAC1B,CAAC,CAAC,EAAE,CAAC;QACL,OAAO,GAAG,EAAE;YACV,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,sBAAsB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC,CAAC;AAClF,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (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 { formatDateTime } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/lib/format.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (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 { formatDateTime } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=format.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.js","sourceRoot":"","sources":["../../src/lib/format.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Re-export shim — this directory's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (feature 091, P3).
4
+ *
5
+ * The effective enabled-set as the server computed it (feature 073, FR-031). Constitution
6
+ * XVII makes every admin surface ask it, packaged surfaces included, so it is the kit's;
7
+ * `useSurfaceVisibility` reads it and moved in the same merge request.
8
+ *
9
+ * A **directory** shim: every consumer names `@/lib/module-presence` or
10
+ * `../lib/module-presence/index.js`, and both arrive here. Nothing named
11
+ * `ModulePresenceProvider.js` or `api.js` directly, so those two files moved without a
12
+ * shim of their own.
13
+ *
14
+ * **The forwarding is the identity, not a copy** —
15
+ * `admin/test/kit/admin-kit-identity.test.ts` asserts it by reference.
16
+ */
17
+ export { getModulePresence, ModulePresenceProvider, setModuleActivation, useModulePresence } from '@endora-commerce/admin-kit/lib';
18
+ export type { ModulePresenceContextValue, ModulePresenceProviderProps } from '@endora-commerce/admin-kit/lib';
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/module-presence/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnI,YAAY,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Re-export shim — this directory's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (feature 091, P3).
4
+ *
5
+ * The effective enabled-set as the server computed it (feature 073, FR-031). Constitution
6
+ * XVII makes every admin surface ask it, packaged surfaces included, so it is the kit's;
7
+ * `useSurfaceVisibility` reads it and moved in the same merge request.
8
+ *
9
+ * A **directory** shim: every consumer names `@/lib/module-presence` or
10
+ * `../lib/module-presence/index.js`, and both arrive here. Nothing named
11
+ * `ModulePresenceProvider.js` or `api.js` directly, so those two files moved without a
12
+ * shim of their own.
13
+ *
14
+ * **The forwarding is the identity, not a copy** —
15
+ * `admin/test/kit/admin-kit-identity.test.ts` asserts it by reference.
16
+ */
17
+ export { getModulePresence, ModulePresenceProvider, setModuleActivation, useModulePresence } from '@endora-commerce/admin-kit/lib';
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/module-presence/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC"}