@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,84 @@
1
+ /**
2
+ * The generated admin registry, flattened into what the two host surfaces
3
+ * render (feature 091, Phase 2).
4
+ *
5
+ * The generated registry is a list of module contribution sets; `App.tsx`
6
+ * needs routes and `AppShell.tsx` needs nav entries, each carrying the **owner**
7
+ * so the one visibility predicate can filter on it. Attribution is added here
8
+ * rather than declared by the module, for D-142's reason: the registry entry's
9
+ * key is the module id, so a declaration cannot claim to belong to a module
10
+ * other than the one that shipped it.
11
+ *
12
+ * **The registry itself is the application's and arrives as a value** (feature
13
+ * 110, T120). This file is `@endora-commerce/admin-shell`'s and the generated
14
+ * artefact is the admin project's — `admin/src/modules.generated.ts` here, an
15
+ * instance's own `src/modules.generated.ts` there — so the shell cannot import
16
+ * it and does not try. It is handed to `<App contributions={…}/>`, carried to
17
+ * `AppShell` by {@link AdminRegistryProvider}, and every function below takes it
18
+ * as an argument. That is the seam D-207 requires of the backend applied to the
19
+ * frontend: which modules exist is a fact about the instance, and the shell is
20
+ * the same file in every one of them.
21
+ *
22
+ * **Nothing here filters.** `isSurfaceVisible` decides presence and permission
23
+ * at render, because an operator's activation flip must take effect without a
24
+ * rebuild (Principle XVII item 5, and D-67/D-68's boot-hook case pointed at the
25
+ * frontend). The registry answers *"what could be here"*; the predicate answers
26
+ * *"what is here for this operator right now"*.
27
+ */
28
+ import { type ReactNode } from 'react';
29
+ import type { AdminContributions, AdminNavDeclaration, AdminRouteDeclaration } from '@endora-commerce/admin-kit/contributions';
30
+ /**
31
+ * One module's contribution set, keyed by the module id that shipped it.
32
+ *
33
+ * The generated artefact declares this shape too, and that is not a duplicate
34
+ * waiting to disagree: both spellings name the kit's `AdminContributions`, so
35
+ * TypeScript's structural identity makes them one type and a change to the
36
+ * kit's declaration reaches both in the same compile. It is **not** moved into
37
+ * the kit, which is where a nominal single home would go, because
38
+ * `admin-kit-surface.md` R6 refuses module knowledge there — the registry is
39
+ * exactly that, which is why it stays the application's (`App.tsx`'s own note
40
+ * on the provider seam).
41
+ */
42
+ export interface AdminRegistryEntry {
43
+ readonly moduleId: string;
44
+ readonly contributions: AdminContributions;
45
+ }
46
+ /** Raised when a shell surface reads the registry outside its provider. */
47
+ export declare class AdminRegistryUnavailableError extends Error {
48
+ readonly name = "AdminRegistryUnavailableError";
49
+ }
50
+ export interface AdminRegistryProviderProps {
51
+ readonly entries: readonly AdminRegistryEntry[];
52
+ readonly children: ReactNode;
53
+ }
54
+ /** Carries the application's generated registry into the shell's surfaces. */
55
+ export declare function AdminRegistryProvider({ entries, children, }: AdminRegistryProviderProps): ReactNode;
56
+ /** The registry the application handed in. Throws outside the provider. */
57
+ export declare function useAdminRegistry(): readonly AdminRegistryEntry[];
58
+ /** A declaration with the module that shipped it. */
59
+ export type OwnedBy<T> = T & {
60
+ readonly module: string;
61
+ };
62
+ /**
63
+ * Two modules declaring the same route `path`, refused at module scope.
64
+ *
65
+ * Not last-one-wins: `react-router` silently takes the first match, so the
66
+ * second module's screen would be unreachable with no error anywhere — the
67
+ * failure `specs/071-modular-packaging/decisions.md` D-23 calls the worst
68
+ * available, for the same reason. Raised while the module graph is being
69
+ * flattened, which is before the router is built and therefore before anything
70
+ * can render the wrong screen.
71
+ */
72
+ export declare class DuplicateAdminRouteError extends Error {
73
+ readonly name = "DuplicateAdminRouteError";
74
+ }
75
+ /** Every route the registry contributes, each carrying its owner. */
76
+ export declare function registryRoutes(entries: readonly AdminRegistryEntry[]): readonly OwnedBy<AdminRouteDeclaration>[];
77
+ /**
78
+ * Every nav entry the registry contributes for one section, ordered.
79
+ *
80
+ * `weight` first, then module id, so the order is a function of the
81
+ * declarations and never of the order the generator happened to walk in.
82
+ */
83
+ export declare function registryNavFor(section: string, entries: readonly AdminRegistryEntry[]): readonly OwnedBy<AdminNavDeclaration>[];
84
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/module-registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,aAAa,EAAE,kBAAkB,CAAC;CAC5C;AAED,2EAA2E;AAC3E,qBAAa,6BAA8B,SAAQ,KAAK;IACtD,SAAkB,IAAI,mCAAmC;CAC1D;AAWD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAChD,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B;AAED,8EAA8E;AAC9E,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,QAAQ,GACT,EAAE,0BAA0B,GAAG,SAAS,CAExC;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,IAAI,SAAS,kBAAkB,EAAE,CAWhE;AAED,qDAAqD;AACrD,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzD;;;;;;;;;GASG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,SAAkB,IAAI,8BAA8B;CACrD;AAED,qEAAqE;AACrE,wBAAgB,cAAc,CAC5B,OAAO,EAAE,SAAS,kBAAkB,EAAE,GACrC,SAAS,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAkB3C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,SAAS,kBAAkB,EAAE,GACrC,SAAS,OAAO,CAAC,mBAAmB,CAAC,EAAE,CAYzC"}
@@ -0,0 +1,104 @@
1
+ /**
2
+ * The generated admin registry, flattened into what the two host surfaces
3
+ * render (feature 091, Phase 2).
4
+ *
5
+ * The generated registry is a list of module contribution sets; `App.tsx`
6
+ * needs routes and `AppShell.tsx` needs nav entries, each carrying the **owner**
7
+ * so the one visibility predicate can filter on it. Attribution is added here
8
+ * rather than declared by the module, for D-142's reason: the registry entry's
9
+ * key is the module id, so a declaration cannot claim to belong to a module
10
+ * other than the one that shipped it.
11
+ *
12
+ * **The registry itself is the application's and arrives as a value** (feature
13
+ * 110, T120). This file is `@endora-commerce/admin-shell`'s and the generated
14
+ * artefact is the admin project's — `admin/src/modules.generated.ts` here, an
15
+ * instance's own `src/modules.generated.ts` there — so the shell cannot import
16
+ * it and does not try. It is handed to `<App contributions={…}/>`, carried to
17
+ * `AppShell` by {@link AdminRegistryProvider}, and every function below takes it
18
+ * as an argument. That is the seam D-207 requires of the backend applied to the
19
+ * frontend: which modules exist is a fact about the instance, and the shell is
20
+ * the same file in every one of them.
21
+ *
22
+ * **Nothing here filters.** `isSurfaceVisible` decides presence and permission
23
+ * at render, because an operator's activation flip must take effect without a
24
+ * rebuild (Principle XVII item 5, and D-67/D-68's boot-hook case pointed at the
25
+ * frontend). The registry answers *"what could be here"*; the predicate answers
26
+ * *"what is here for this operator right now"*.
27
+ */
28
+ import { createContext, createElement, useContext } from 'react';
29
+ /** Raised when a shell surface reads the registry outside its provider. */
30
+ export class AdminRegistryUnavailableError extends Error {
31
+ name = 'AdminRegistryUnavailableError';
32
+ }
33
+ /**
34
+ * `null` is *"no provider mounted"* and is distinct from *"mounted, and the
35
+ * instance installed no module"*, on `useAdminZone`'s reasoning one seam over:
36
+ * a shell surface reading the registry with no provider above it is a wiring
37
+ * defect, and answering it *"nobody contributed"* would make an empty sidebar
38
+ * indistinguishable from a broken mount.
39
+ */
40
+ const AdminRegistryContext = createContext(null);
41
+ /** Carries the application's generated registry into the shell's surfaces. */
42
+ export function AdminRegistryProvider({ entries, children, }) {
43
+ return createElement(AdminRegistryContext.Provider, { value: entries }, children);
44
+ }
45
+ /** The registry the application handed in. Throws outside the provider. */
46
+ export function useAdminRegistry() {
47
+ const entries = useContext(AdminRegistryContext);
48
+ if (entries === null) {
49
+ throw new AdminRegistryUnavailableError('the admin registry was read outside AdminRegistryProvider. The generated contribution ' +
50
+ 'registry is the admin project\'s and reaches the shell as `<App contributions={…}/>`; ' +
51
+ 'a surface reading it with no provider above it would render an empty sidebar that ' +
52
+ 'looks exactly like an instance with no modules installed.');
53
+ }
54
+ return entries;
55
+ }
56
+ /**
57
+ * Two modules declaring the same route `path`, refused at module scope.
58
+ *
59
+ * Not last-one-wins: `react-router` silently takes the first match, so the
60
+ * second module's screen would be unreachable with no error anywhere — the
61
+ * failure `specs/071-modular-packaging/decisions.md` D-23 calls the worst
62
+ * available, for the same reason. Raised while the module graph is being
63
+ * flattened, which is before the router is built and therefore before anything
64
+ * can render the wrong screen.
65
+ */
66
+ export class DuplicateAdminRouteError extends Error {
67
+ name = 'DuplicateAdminRouteError';
68
+ }
69
+ /** Every route the registry contributes, each carrying its owner. */
70
+ export function registryRoutes(entries) {
71
+ const byPath = new Map();
72
+ const routes = [];
73
+ for (const entry of entries) {
74
+ for (const route of entry.contributions.routes ?? []) {
75
+ const claimed = byPath.get(route.path);
76
+ if (claimed !== undefined) {
77
+ throw new DuplicateAdminRouteError(`'${claimed}' and '${entry.moduleId}' both declare the admin route ` +
78
+ `'${route.path}'. react-router takes the first match, so one of these screens ` +
79
+ `would be unreachable with no error anywhere — one route path has one owner.`);
80
+ }
81
+ byPath.set(route.path, entry.moduleId);
82
+ routes.push({ ...route, module: entry.moduleId });
83
+ }
84
+ }
85
+ return routes;
86
+ }
87
+ /**
88
+ * Every nav entry the registry contributes for one section, ordered.
89
+ *
90
+ * `weight` first, then module id, so the order is a function of the
91
+ * declarations and never of the order the generator happened to walk in.
92
+ */
93
+ export function registryNavFor(section, entries) {
94
+ const found = [];
95
+ for (const entry of entries) {
96
+ for (const item of entry.contributions.nav ?? []) {
97
+ if (item.section !== section)
98
+ continue;
99
+ found.push({ ...item, module: entry.moduleId });
100
+ }
101
+ }
102
+ return found.sort((left, right) => left.weight - right.weight || left.module.localeCompare(right.module));
103
+ }
104
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/module-registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AAwBjF,2EAA2E;AAC3E,MAAM,OAAO,6BAA8B,SAAQ,KAAK;IACpC,IAAI,GAAG,+BAA+B,CAAC;CAC1D;AAED;;;;;;GAMG;AACH,MAAM,oBAAoB,GAAG,aAAa,CAAuC,IAAI,CAAC,CAAC;AAOvF,8EAA8E;AAC9E,MAAM,UAAU,qBAAqB,CAAC,EACpC,OAAO,EACP,QAAQ,GACmB;IAC3B,OAAO,aAAa,CAAC,oBAAoB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,CAAC,CAAC;AACpF,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,gBAAgB;IAC9B,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACjD,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;Q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AC,aAAa,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC;YACjD,IAAI,IAAI,CAAC,OAAO,KAAK,OAAO;gBAAE,SAAS;YACvC,KAAK,CAAC,IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CACf,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACd,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,CACxE,CAAC;AACJ,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 { formatMoney, localeForCurrency } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=money.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"money.d.ts","sourceRoot":"","sources":["../../src/lib/money.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,WAAW,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, 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 { formatMoney, localeForCurrency } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=money.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"money.js","sourceRoot":"","sources":["../../src/lib/money.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ClarifyRequest, PromptActionRequestDto, PromptActionsCapability } from '@endora-commerce/contracts';
2
+ export declare function getPromptCapability(): Promise<PromptActionsCapability>;
3
+ export declare function submitPrompt(prompt: string): Promise<PromptActionRequestDto>;
4
+ export declare function clarifyPrompt(id: string, answer: ClarifyRequest): Promise<PromptActionRequestDto>;
5
+ export declare function confirmPrompt(id: string): Promise<PromptActionRequestDto>;
6
+ export declare function cancelPrompt(id: string): Promise<PromptActionRequestDto>;
7
+ export declare function getPromptRequest(id: string): Promise<PromptActionRequestDto>;
8
+ export declare function listUnseenPromptRequests(limit?: number): Promise<PromptActionRequestDto[]>;
9
+ export declare function markPromptRequestSeen(id: string): Promise<void>;
10
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/lib/prompt-actions/api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AAUpC,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAG5E;AAED,wBAAsB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAKlF;AAED,wBAAsB,aAAa,CACjC,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,sBAAsB,CAAC,CAMjC;AAED,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAK/E;AAED,wBAAsB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAK9E;AAED,wBAAsB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAKlF;AAED,wBAAsB,wBAAwB,CAC5C,KAAK,SAAI,GACR,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAKnC;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAErE"}
@@ -0,0 +1,41 @@
1
+ import { apiClient } from '../api-client.js';
2
+ /**
3
+ * Typed client for the prompt-actions endpoints (feature 043,
4
+ * contracts/prompt-actions-api.md). Bare-fetch helpers in the
5
+ * admin-actions style; `usePromptRequest` owns state and polling.
6
+ */
7
+ const BASE = '/api/v1/admin/prompt-actions';
8
+ export async function getPromptCapability() {
9
+ const res = await apiClient.get(`${BASE}/capability`);
10
+ return res.data;
11
+ }
12
+ export async function submitPrompt(prompt) {
13
+ const res = await apiClient.post(`${BASE}/requests`, {
14
+ prompt,
15
+ });
16
+ return res.data;
17
+ }
18
+ export async function clarifyPrompt(id, answer) {
19
+ const res = await apiClient.post(`${BASE}/requests/${encodeURIComponent(id)}/clarify`, answer);
20
+ return res.data;
21
+ }
22
+ export async function confirmPrompt(id) {
23
+ const res = await apiClient.post(`${BASE}/requests/${encodeURIComponent(id)}/confirm`);
24
+ return res.data;
25
+ }
26
+ export async function cancelPrompt(id) {
27
+ const res = await apiClient.post(`${BASE}/requests/${encodeURIComponent(id)}/cancel`);
28
+ return res.data;
29
+ }
30
+ export async function getPromptRequest(id) {
31
+ const res = await apiClient.get(`${BASE}/requests/${encodeURIComponent(id)}`);
32
+ return res.data;
33
+ }
34
+ export async function listUnseenPromptRequests(limit = 3) {
35
+ const res = await apiClient.get(`${BASE}/requests?unseen=true&limit=${limit}`);
36
+ return res.data;
37
+ }
38
+ export async function markPromptRequestSeen(id) {
39
+ await apiClient.post(`${BASE}/requests/${encodeURIComponent(id)}/seen`);
40
+ }
41
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/lib/prompt-actions/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAO7C;;;;GAIG;AAEH,MAAM,IAAI,GAAG,8BAA8B,CAAC;AAE5C,MAAM,CAAC,KAAK,UAAU,mBAAmB;IACvC,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,GAAG,CAAoC,GAAG,IAAI,aAAa,CAAC,CAAC;IACzF,OAAO,GAAG,CAAC,IAAI,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,MAAc;IAC/C,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,IAAI,CAAmC,GAAG,IAAI,WAAW,EAAE;QACrF,MAAM;KACP,CAAC,CAAC;IACH,OAAO,GAAG,CAAC,IAAI,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,EAAU,EACV,MAAsB;IAEtB,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,IAAI,CAC9B,GAAG,IAAI,aAAa,kBAAkB,CAAC,EAAE,CAAC,UAAU,EACpD,MAAM,CACP,CAAC;IACF,OAAO,GAAG,CAAC,IAAI,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,EAAU;IAC5C,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,IAAI,CAC9B,GAAG,IAAI,aAAa,kBAAkB,CAAC,EAAE,CAAC,UAAU,CACrD,CAAC;IACF,OAAO,GAAG,CAAC,IAAI,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,EAAU;IAC3C,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,IAAI,CAC9B,GAAG,IAAI,aAAa,kBAAkB,CAAC,EAAE,CAAC,SAAS,CACpD,CAAC;IACF,OAAO,GAAG,CAAC,IAAI,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EAAU;IAC/C,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,GAAG,CAC7B,GAAG,IAAI,aAAa,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAC7C,CAAC;IACF,OAAO,GAAG,CAAC,IAAI,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,KAAK,GAAG,CAAC;IAET,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,GAAG,CAC7B,GAAG,IAAI,+BAA+B,KAAK,EAAE,CAC9C,CAAC;IACF,OAAO,GAAG,CAAC,IAAI,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,EAAU;IACpD,MAAM,SAAS,CAAC,IAAI,CAAO,GAAG,IAAI,aAAa,kBAAkB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;AAChF,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { ClarifyRequest, PromptActionRequestDto } from '@endora-commerce/contracts';
2
+ /**
3
+ * State machine behind the palette prompt mode (feature 043, research §R9):
4
+ * submit → interpreting → (awaiting confirmation | clarification | terminal
5
+ * message) → confirm → executing (with polling for delegated bulk work) →
6
+ * result. Errors surface as non-technical, status-keyed messages the panel
7
+ * localizes (FR-017).
8
+ */
9
+ export type PromptPhase = 'idle' | 'interpreting' | 'awaiting_confirmation' | 'needs_clarification' | 'executing' | 'finished' | 'request_error';
10
+ export interface PromptRequestState {
11
+ phase: PromptPhase;
12
+ request: PromptActionRequestDto | null;
13
+ /** Error code from the API for request_error (e.g. PROMPT_PLAN_EXPIRED). */
14
+ errorCode: string | null;
15
+ }
16
+ export interface UsePromptRequest extends PromptRequestState {
17
+ submit: (prompt: string) => Promise<void>;
18
+ clarify: (answer: ClarifyRequest) => Promise<void>;
19
+ confirm: () => Promise<void>;
20
+ cancel: () => Promise<void>;
21
+ reset: () => void;
22
+ /** Load an existing request (FR-018 completion notice) into the panel. */
23
+ load: (request: PromptActionRequestDto) => void;
24
+ }
25
+ export declare function usePromptRequest(): UsePromptRequest;
26
+ //# sourceMappingURL=usePromptRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePromptRequest.d.ts","sourceRoot":"","sources":["../../../src/lib/prompt-actions/usePromptRequest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAUzF;;;;;;GAMG;AAEH,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,cAAc,GACd,uBAAuB,GACvB,qBAAqB,GACrB,WAAW,GACX,UAAU,GACV,eAAe,CAAC;AAEpB,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,sBAAsB,GAAG,IAAI,CAAC;IACvC,4EAA4E;IAC5E,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAiBD,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,0EAA0E;IAC1E,IAAI,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACjD;AAED,wBAAgB,gBAAgB,IAAI,gBAAgB,CA6GnD"}
@@ -0,0 +1,113 @@
1
+ import { useCallback, useEffect, useRef, useState } from 'react';
2
+ import { ApiError } from '../api-client.js';
3
+ import { cancelPrompt, clarifyPrompt, confirmPrompt, getPromptRequest, submitPrompt, } from './api.js';
4
+ const POLL_INTERVAL_MS = 1_500;
5
+ function phaseFor(request) {
6
+ switch (request.status) {
7
+ case 'awaiting_confirmation':
8
+ return 'awaiting_confirmation';
9
+ case 'needs_clarification':
10
+ return 'needs_clarification';
11
+ case 'executing':
12
+ return 'executing';
13
+ default:
14
+ return 'finished';
15
+ }
16
+ }
17
+ export function usePromptRequest() {
18
+ const [state, setState] = useState({
19
+ phase: 'idle',
20
+ request: null,
21
+ errorCode: null,
22
+ });
23
+ const pollRef = useRef(null);
24
+ const stopPolling = useCallback(() => {
25
+ if (pollRef.current) {
26
+ clearInterval(pollRef.current);
27
+ pollRef.current = null;
28
+ }
29
+ }, []);
30
+ useEffect(() => stopPolling, [stopPolling]);
31
+ const apply = useCallback((request) => {
32
+ setState({ phase: phaseFor(request), request, errorCode: null });
33
+ }, []);
34
+ const fail = useCallback((err) => {
35
+ const code = err instanceof ApiError ? (err.envelope.error.code ?? null) : null;
36
+ setState((prev) => ({ ...prev, phase: 'request_error', errorCode: code }));
37
+ }, []);
38
+ // Poll delegated bulk executions until the request settles (FR-018/US2).
39
+ useEffect(() => {
40
+ if (state.phase !== 'executing' || !state.request)
41
+ return;
42
+ const id = state.request.id;
43
+ pollRef.current = setInterval(() => {
44
+ void getPromptRequest(id)
45
+ .then((request) => {
46
+ if (request.status !== 'executing') {
47
+ stopPolling();
48
+ apply(request);
49
+ }
50
+ })
51
+ .catch(() => {
52
+ /* transient poll failure — keep trying until close/reset */
53
+ });
54
+ }, POLL_INTERVAL_MS);
55
+ return stopPolling;
56
+ }, [state.phase, state.request?.id]); // eslint-disable-line react-hooks/exhaustive-deps
57
+ const submit = useCallback(async (prompt) => {
58
+ setState({ phase: 'interpreting', request: null, errorCode: null });
59
+ try {
60
+ apply(await submitPrompt(prompt));
61
+ }
62
+ catch (err) {
63
+ fail(err);
64
+ }
65
+ }, [apply, fail]);
66
+ const clarify = useCallback(async (answer) => {
67
+ const id = state.request?.id;
68
+ if (!id)
69
+ return;
70
+ setState((prev) => ({ ...prev, phase: 'interpreting' }));
71
+ try {
72
+ apply(await clarifyPrompt(id, answer));
73
+ }
74
+ catch (err) {
75
+ fail(err);
76
+ }
77
+ }, [state.request?.id, apply, fail]);
78
+ const confirm = useCallback(async () => {
79
+ const id = state.request?.id;
80
+ if (!id)
81
+ return;
82
+ setState((prev) => ({ ...prev, phase: 'executing' }));
83
+ try {
84
+ apply(await confirmPrompt(id));
85
+ }
86
+ catch (err) {
87
+ fail(err);
88
+ }
89
+ }, [state.request?.id, apply, fail]);
90
+ const cancel = useCallback(async () => {
91
+ const id = state.request?.id;
92
+ if (!id) {
93
+ setState({ phase: 'idle', request: null, errorCode: null });
94
+ return;
95
+ }
96
+ try {
97
+ await cancelPrompt(id);
98
+ }
99
+ catch {
100
+ /* already terminal — treated as cancelled locally */
101
+ }
102
+ setState({ phase: 'idle', request: null, errorCode: null });
103
+ }, [state.request?.id]);
104
+ const reset = useCallback(() => {
105
+ stopPolling();
106
+ setState({ phase: 'idle', request: null, errorCode: null });
107
+ }, [stopPolling]);
108
+ const load = useCallback((request) => {
109
+ setState({ phase: phaseFor(request), request, errorCode: null });
110
+ }, []);
111
+ return { ...state, submit, clarify, confirm, cancel, reset, load };
112
+ }
113
+ //# sourceMappingURL=useProm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AAK,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACnE,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACrE,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (feature 091, P3).
4
+ *
5
+ * The one predicate for *"may this operator see this destination at all"* (issue #230).
6
+ * It moved with `useAuth` and `useModulePresence` because it reads both: any one of the
7
+ * cluster crossing into the package takes the other two with it, which is why P3 is one
8
+ * merge request and not four.
9
+ *
10
+ * **The forwarding is the identity, not a copy** —
11
+ * `admin/test/kit/admin-kit-identity.test.ts` asserts it by reference.
12
+ */
13
+ export { isSurfaceVisible, satisfiesPermission, useSurfaceVisibility } from '@endora-commerce/admin-kit/lib';
14
+ export type { GatedSurface, PermissionRequirement } from '@endora-commerce/admin-kit/lib';
15
+ //# sourceMappingURL=surface-visibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surface-visibility.d.ts","sourceRoot":"","sources":["../../src/lib/surface-visibility.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC7G,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (feature 091, P3).
4
+ *
5
+ * The one predicate for *"may this operator see this destination at all"* (issue #230).
6
+ * It moved with `useAuth` and `useModulePresence` because it reads both: any one of the
7
+ * cluster crossing into the package takes the other two with it, which is why P3 is one
8
+ * merge request and not four.
9
+ *
10
+ * **The forwarding is the identity, not a copy** —
11
+ * `admin/test/kit/admin-kit-identity.test.ts` asserts it by reference.
12
+ */
13
+ export { isSurfaceVisible, satisfiesPermission, useSurfaceVisibility } from '@endora-commerce/admin-kit/lib';
14
+ //# sourceMappingURL=surface-visibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surface-visibility.js","sourceRoot":"","sources":["../../src/lib/surface-visibility.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,oBAAoB,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 { normalize } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=text-normalization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-normalization.d.ts","sourceRoot":"","sources":["../../src/lib/text-normalization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,SAAS,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 { normalize } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=text-normalization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-normalization.js","sourceRoot":"","sources":["../../src/lib/text-normalization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (feature 091, P3).
4
+ *
5
+ * Phase 1b split `PAGE_SIZE_OPTIONS` into the kit and left the hook here, because the
6
+ * hook reads the signed-in admin's id to key its `localStorage` entry. That id comes from
7
+ * `useAuth`, which the kit publishes now, so the split has nothing left to separate.
8
+ * `PAGE_SIZE_OPTIONS` is forwarded from here too, because every existing caller names it
9
+ * at this path.
10
+ *
11
+ * **The forwarding is the identity, not a copy** —
12
+ * `admin/test/kit/admin-kit-identity.test.ts` asserts it by reference.
13
+ */
14
+ export { PAGE_SIZE_OPTIONS, usePageSizePreference } from '@endora-commerce/admin-kit/lib';
15
+ export type { PageSizeOption } from '@endora-commerce/admin-kit/lib';
16
+ //# sourceMappingURL=use-page-size-preference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-page-size-preference.d.ts","sourceRoot":"","sources":["../../src/lib/use-page-size-preference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC1F,YAAY,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Re-export shim — this file's implementation now lives in
3
+ * `@endora-commerce/admin-kit/lib` (feature 091, P3).
4
+ *
5
+ * Phase 1b split `PAGE_SIZE_OPTIONS` into the kit and left the hook here, because the
6
+ * hook reads the signed-in admin's id to key its `localStorage` entry. That id comes from
7
+ * `useAuth`, which the kit publishes now, so the split has nothing left to separate.
8
+ * `PAGE_SIZE_OPTIONS` is forwarded from here too, because every existing caller names it
9
+ * at this path.
10
+ *
11
+ * **The forwarding is the identity, not a copy** —
12
+ * `admin/test/kit/admin-kit-identity.test.ts` asserts it by reference.
13
+ */
14
+ export { PAGE_SIZE_OPTIONS, usePageSizePreference } from '@endora-commerce/admin-kit/lib';
15
+ //# sourceMappingURL=use-page-size-preference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-page-size-preference.js","sourceRoot":"","sources":["../../src/lib/use-page-size-preference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,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 { useUnsavedChangesPrompt } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=use-unsaved-changes-prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-unsaved-changes-prompt.d.ts","sourceRoot":"","sources":["../../src/lib/use-unsaved-changes-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,uBAAuB,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 { useUnsavedChangesPrompt } from '@endora-commerce/admin-kit/lib';
17
+ //# sourceMappingURL=use-unsaved-changes-prompt.js.map