@burdenoff/microfe-export 2026.1107.2 → 2026.1113.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/dist/dev/main.d.ts +0 -2
  2. package/dist/export/ExportRoot.d.ts +0 -2
  3. package/dist/export/ExportRoot.js +50 -42
  4. package/dist/export/ExportRoot.js.map +1 -1
  5. package/dist/export/ExportRoutes.d.ts +8 -2
  6. package/dist/export/ExportRoutes.js +71 -53
  7. package/dist/export/ExportRoutes.js.map +1 -1
  8. package/dist/export/components/ConfirmDestructiveDialog.d.ts +21 -0
  9. package/dist/export/components/ConfirmDestructiveDialog.js +37 -0
  10. package/dist/export/components/ConfirmDestructiveDialog.js.map +1 -0
  11. package/dist/export/components/DownloadSections.d.ts +10 -0
  12. package/dist/export/components/DownloadSections.js +161 -0
  13. package/dist/export/components/DownloadSections.js.map +1 -0
  14. package/dist/export/components/DownloadStatus.d.ts +13 -0
  15. package/dist/export/components/DownloadStatus.js +36 -0
  16. package/dist/export/components/DownloadStatus.js.map +1 -0
  17. package/dist/export/components/DownloadsTabs.d.ts +5 -0
  18. package/dist/export/components/DownloadsTabs.js +25 -0
  19. package/dist/export/components/DownloadsTabs.js.map +1 -0
  20. package/dist/export/components/ExportProgressBar.d.ts +1 -2
  21. package/dist/export/components/ExportProgressBar.js +1 -2
  22. package/dist/export/components/ExportProgressBar.js.map +1 -1
  23. package/dist/export/components/ExportStatusBadge.d.ts +1 -3
  24. package/dist/export/components/ExportStatusBadge.js +7 -8
  25. package/dist/export/components/ExportStatusBadge.js.map +1 -1
  26. package/dist/export/components/PageLayout.d.ts +3 -5
  27. package/dist/export/components/PageLayout.js +1 -2
  28. package/dist/export/components/PageLayout.js.map +1 -1
  29. package/dist/export/constants/enums.d.ts +0 -2
  30. package/dist/export/constants/enums.js +1 -2
  31. package/dist/export/constants/enums.js.map +1 -1
  32. package/dist/export/constants/index.d.ts +0 -1
  33. package/dist/export/hooks/useEntityLabel.d.ts +7 -0
  34. package/dist/export/hooks/useEntityLabel.js +16 -0
  35. package/dist/export/hooks/useEntityLabel.js.map +1 -0
  36. package/dist/export/hooks/useExportQueries.d.ts +17 -32
  37. package/dist/export/hooks/useExportQueries.js +144 -145
  38. package/dist/export/hooks/useExportQueries.js.map +1 -1
  39. package/dist/export/hooks/useTr.d.ts +0 -2
  40. package/dist/export/hooks/useTr.js +1 -2
  41. package/dist/export/hooks/useTr.js.map +1 -1
  42. package/dist/export/index.d.ts +0 -1
  43. package/dist/export/index.js +5 -4
  44. package/dist/export/navigation-v2/NavigationV2.d.ts +7 -0
  45. package/dist/export/navigation-v2/NavigationV2.js +16 -0
  46. package/dist/export/navigation-v2/NavigationV2.js.map +1 -0
  47. package/dist/export/pages/CreateExportPage.d.ts +1 -2
  48. package/dist/export/pages/CreateExportPage.js +126 -125
  49. package/dist/export/pages/CreateExportPage.js.map +1 -1
  50. package/dist/export/pages/ExportDashboardPage.d.ts +1 -2
  51. package/dist/export/pages/ExportDashboardPage.js +17 -18
  52. package/dist/export/pages/ExportDashboardPage.js.map +1 -1
  53. package/dist/export/pages/ExportDetailPage.d.ts +1 -2
  54. package/dist/export/pages/ExportDetailPage.js +133 -127
  55. package/dist/export/pages/ExportDetailPage.js.map +1 -1
  56. package/dist/export/pages/ExportHistoryPage.d.ts +1 -2
  57. package/dist/export/pages/ExportHistoryPage.js +74 -69
  58. package/dist/export/pages/ExportHistoryPage.js.map +1 -1
  59. package/dist/export/pages/ExportLandingPage.d.ts +1 -2
  60. package/dist/export/pages/ExportLandingPage.js +1 -2
  61. package/dist/export/pages/ExportLandingPage.js.map +1 -1
  62. package/dist/export/pages/ExportTemplatesPage.d.ts +1 -2
  63. package/dist/export/pages/ExportTemplatesPage.js +219 -192
  64. package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
  65. package/dist/export/pages/TemplateDetailPage.d.ts +1 -2
  66. package/dist/export/pages/TemplateDetailPage.js +146 -125
  67. package/dist/export/pages/TemplateDetailPage.js.map +1 -1
  68. package/dist/export/pages/v2/DownloadDetailPage.d.ts +8 -0
  69. package/dist/export/pages/v2/DownloadDetailPage.js +176 -0
  70. package/dist/export/pages/v2/DownloadDetailPage.js.map +1 -0
  71. package/dist/export/pages/v2/DownloadsPage.d.ts +10 -0
  72. package/dist/export/pages/v2/DownloadsPage.js +401 -0
  73. package/dist/export/pages/v2/DownloadsPage.js.map +1 -0
  74. package/dist/export/pages/v2/NewDownloadPage.d.ts +8 -0
  75. package/dist/export/pages/v2/NewDownloadPage.js +440 -0
  76. package/dist/export/pages/v2/NewDownloadPage.js.map +1 -0
  77. package/dist/export/providers/ExportProvider.d.ts +0 -2
  78. package/dist/export/providers/ExportProvider.js +12 -16
  79. package/dist/export/providers/ExportProvider.js.map +1 -1
  80. package/dist/export/store/exportStore.d.ts +0 -2
  81. package/dist/export/store/exportStore.js +1 -2
  82. package/dist/export/store/exportStore.js.map +1 -1
  83. package/dist/export/types/index.d.ts +7 -1
  84. package/dist/export/utils/billing.d.ts +6 -0
  85. package/dist/export/utils/billing.js +7 -0
  86. package/dist/export/utils/billing.js.map +1 -0
  87. package/dist/export/utils/cn.d.ts +0 -2
  88. package/dist/export/utils/cn.js +2 -3
  89. package/dist/export/utils/cn.js.map +1 -1
  90. package/dist/export/utils/disabledModules.d.ts +0 -1
  91. package/dist/export/utils/disabledModules.js +3 -4
  92. package/dist/export/utils/disabledModules.js.map +1 -1
  93. package/dist/export/utils/downloadStatus.d.ts +15 -0
  94. package/dist/export/utils/downloadStatus.js +48 -0
  95. package/dist/export/utils/downloadStatus.js.map +1 -0
  96. package/dist/export/utils/entityLabels.d.ts +47 -0
  97. package/dist/export/utils/entityLabels.js +150 -0
  98. package/dist/export/utils/entityLabels.js.map +1 -0
  99. package/dist/export/utils/events.d.ts +0 -2
  100. package/dist/export/utils/events.js +1 -2
  101. package/dist/export/utils/events.js.map +1 -1
  102. package/dist/export/utils/exportAuthority.d.ts +0 -2
  103. package/dist/export/utils/exportAuthority.js +1 -2
  104. package/dist/export/utils/exportAuthority.js.map +1 -1
  105. package/dist/export/utils/formatBytes.d.ts +2 -0
  106. package/dist/export/utils/formatBytes.js +15 -0
  107. package/dist/export/utils/formatBytes.js.map +1 -0
  108. package/dist/export/utils/i18n.d.ts +0 -2
  109. package/dist/export/utils/i18n.js +1 -2
  110. package/dist/export/utils/i18n.js.map +1 -1
  111. package/dist/export/utils/newDownloadForm.d.ts +32 -0
  112. package/dist/export/utils/newDownloadForm.js +42 -0
  113. package/dist/export/utils/newDownloadForm.js.map +1 -0
  114. package/dist/export/utils/paths.d.ts +2 -0
  115. package/dist/export/utils/paths.js +7 -0
  116. package/dist/export/utils/paths.js.map +1 -0
  117. package/dist/generated/global-operations.d.ts +4 -2
  118. package/dist/generated/global-types.d.ts +2 -22
  119. package/dist/generated/wspace-operations.d.ts +226 -181
  120. package/dist/generated/wspace-operations.js +1 -2
  121. package/dist/generated/wspace-operations.js.map +1 -1
  122. package/dist/generated/wspace-types.d.ts +4 -24
  123. package/dist/generated/wspace-types.js +1 -2
  124. package/dist/generated/wspace-types.js.map +1 -1
  125. package/dist/index.d.ts +0 -1
  126. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
  127. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
  128. package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
  129. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
  130. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +7 -8
  131. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -1
  132. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +15 -16
  133. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -1
  134. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +5 -6
  135. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -1
  136. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -1
  137. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
  138. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +4 -5
  139. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -1
  140. package/dist/node_modules/@apollo/client/utilities/internal/caches.js +1 -2
  141. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
  142. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +1 -2
  143. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -1
  144. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +2 -3
  145. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -1
  146. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +1 -2
  147. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
  148. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +1 -2
  149. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -1
  150. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +1 -2
  151. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -1
  152. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +1 -2
  153. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -1
  154. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +1 -2
  155. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -1
  156. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +1 -2
  157. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -1
  158. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +1 -2
  159. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -1
  160. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +1 -2
  161. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -1
  162. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +1 -2
  163. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -1
  164. package/dist/node_modules/@apollo/client/utilities/invariant/index.js +2 -3
  165. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -1
  166. package/dist/node_modules/@apollo/client/version.js +2 -3
  167. package/dist/node_modules/@apollo/client/version.js.map +1 -1
  168. package/dist/node_modules/@wry/caches/lib/weak.js +1 -2
  169. package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -1
  170. package/dist/node_modules/@wry/trie/lib/index.js +2 -3
  171. package/dist/node_modules/@wry/trie/lib/index.js.map +1 -1
  172. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  173. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  174. package/dist/node_modules/graphql-ws/dist/client.js +76 -69
  175. package/dist/node_modules/graphql-ws/dist/client.js.map +1 -1
  176. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +2 -3
  177. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -1
  178. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +2 -3
  179. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -1
  180. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +41 -42
  181. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -1
  182. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +14 -15
  183. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -1
  184. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +21 -18
  185. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
  186. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +1 -2
  187. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -1
  188. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +1 -2
  189. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -1
  190. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +2 -3
  191. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -1
  192. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +1 -2
  193. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -1
  194. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +1 -2
  195. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -1
  196. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +1 -2
  197. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -1
  198. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +1 -2
  199. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -1
  200. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +1 -2
  201. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -1
  202. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +1 -2
  203. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -1
  204. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +1 -2
  205. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -1
  206. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +1 -2
  207. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -1
  208. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +1 -2
  209. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -1
  210. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +1 -2
  211. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -1
  212. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
  213. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  214. package/dist/node_modules/{rxjs/node_modules/tslib → tslib}/tslib.es6.js +1 -2
  215. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  216. package/dist/test/happydom.d.ts +1 -0
  217. package/dist/translations/en.d.ts +0 -1
  218. package/dist/translations/en.js +1 -2
  219. package/dist/translations/en.js.map +1 -1
  220. package/dist/utils/nativeBridge.d.ts +0 -1
  221. package/dist/utils/nativeBridge.js +1 -2
  222. package/package.json +63 -47
  223. package/dist/dev/main.d.ts.map +0 -1
  224. package/dist/export/ExportRoot.d.ts.map +0 -1
  225. package/dist/export/ExportRoutes.d.ts.map +0 -1
  226. package/dist/export/components/ExportProgressBar.d.ts.map +0 -1
  227. package/dist/export/components/ExportStatusBadge.d.ts.map +0 -1
  228. package/dist/export/components/PageLayout.d.ts.map +0 -1
  229. package/dist/export/constants/enums.d.ts.map +0 -1
  230. package/dist/export/constants/index.d.ts.map +0 -1
  231. package/dist/export/hooks/useExportQueries.d.ts.map +0 -1
  232. package/dist/export/hooks/useTr.d.ts.map +0 -1
  233. package/dist/export/index.d.ts.map +0 -1
  234. package/dist/export/pages/CreateExportPage.d.ts.map +0 -1
  235. package/dist/export/pages/ExportDashboardPage.d.ts.map +0 -1
  236. package/dist/export/pages/ExportDetailPage.d.ts.map +0 -1
  237. package/dist/export/pages/ExportHistoryPage.d.ts.map +0 -1
  238. package/dist/export/pages/ExportLandingPage.d.ts.map +0 -1
  239. package/dist/export/pages/ExportTemplatesPage.d.ts.map +0 -1
  240. package/dist/export/pages/TemplateDetailPage.d.ts.map +0 -1
  241. package/dist/export/providers/ExportProvider.d.ts.map +0 -1
  242. package/dist/export/store/exportStore.d.ts.map +0 -1
  243. package/dist/export/types/index.d.ts.map +0 -1
  244. package/dist/export/utils/cn.d.ts.map +0 -1
  245. package/dist/export/utils/disabledModules.d.ts.map +0 -1
  246. package/dist/export/utils/events.d.ts.map +0 -1
  247. package/dist/export/utils/exportAuthority.d.ts.map +0 -1
  248. package/dist/export/utils/i18n.d.ts.map +0 -1
  249. package/dist/generated/global-operations.d.ts.map +0 -1
  250. package/dist/generated/global-types.d.ts.map +0 -1
  251. package/dist/generated/wspace-operations.d.ts.map +0 -1
  252. package/dist/generated/wspace-types.d.ts.map +0 -1
  253. package/dist/index.d.ts.map +0 -1
  254. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +0 -1
  255. package/dist/translations/en.d.ts.map +0 -1
  256. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=main.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { ExportRootProps } from './types';
3
-
4
3
  /**
5
4
  * Root component for the Export microfrontend.
6
5
  *
@@ -28,4 +27,3 @@ import { ExportRootProps } from './types';
28
27
  * ```
29
28
  */
30
29
  export declare const ExportRoot: FC<ExportRootProps>;
31
- //# sourceMappingURL=ExportRoot.d.ts.map
@@ -1,80 +1,88 @@
1
1
  import { ExportProvider as e } from "./providers/ExportProvider.js";
2
2
  import { useTr as t } from "./hooks/useTr.js";
3
3
  import { ExportRoutes as n } from "./ExportRoutes.js";
4
- import { useEffect as r } from "react";
5
- import { Clock as i, Download as a, FileBox as o, Plus as s } from "lucide-react";
6
- import { FeatureFlagProvider as c } from "@burdenoff/fe-libs/shared/feature-flags";
7
- import { PermissionProvider as l } from "@burdenoff/fe-libs/shared/providers/shell";
8
- import { jsx as u } from "react/jsx-runtime";
9
- //#region src/export/ExportRoot.tsx
10
- var d = (d) => {
11
- let { registerNavItems: f, registerFooterItems: p, basePath: m = "/", workspaceId: h } = d, g = t(), _ = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
12
- return r(() => {
13
- if (f) return f({
4
+ import { NavigationV2Provider as r } from "./navigation-v2/NavigationV2.js";
5
+ import { useEffect as i } from "react";
6
+ import { Clock as a, Download as o, FileBox as s, Plus as c } from "lucide-react";
7
+ import { FeatureFlagProvider as l } from "@burdenoff/fe-libs/shared/feature-flags";
8
+ import { PermissionProvider as u } from "@burdenoff/fe-libs/shared/providers/shell";
9
+ import { jsx as d } from "react/jsx-runtime";
10
+ // src/export/ExportRoot.tsx
11
+ var f = (f) => {
12
+ let { registerNavItems: p, registerFooterItems: m, basePath: h = "/", workspaceId: g, navigationV2: _ = !1 } = f, v = t(), y = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
13
+ return i(() => {
14
+ if (!p || _) return;
15
+ let e = {
14
16
  id: "export",
15
- label: g("export.nav.root", "Export"),
16
- path: m,
17
- icon: /* @__PURE__ */ u(a, { size: 20 }),
17
+ label: v("export.nav.root", "Export"),
18
+ path: h,
19
+ icon: /* @__PURE__ */ d(o, { size: 20 }),
18
20
  order: 75,
19
21
  group: "workspace",
20
22
  children: [
21
23
  {
22
24
  id: "export-dashboard",
23
- label: g("export.nav.dashboard", "Dashboard"),
24
- path: m,
25
- icon: /* @__PURE__ */ u(o, { size: 16 }),
25
+ label: v("export.nav.dashboard", "Dashboard"),
26
+ path: h,
27
+ icon: /* @__PURE__ */ d(s, { size: 16 }),
26
28
  order: 10
27
29
  },
28
30
  {
29
31
  id: "export-new",
30
- label: g("export.nav.newExport", "New Export"),
31
- path: _(m, "new"),
32
- icon: /* @__PURE__ */ u(s, { size: 16 }),
32
+ label: v("export.nav.newExport", "New Export"),
33
+ path: y(h, "new"),
34
+ icon: /* @__PURE__ */ d(c, { size: 16 }),
33
35
  order: 20
34
36
  },
35
37
  {
36
38
  id: "export-history",
37
- label: g("export.nav.history", "History"),
38
- path: _(m, "history"),
39
- icon: /* @__PURE__ */ u(i, { size: 16 }),
39
+ label: v("export.nav.history", "History"),
40
+ path: y(h, "history"),
41
+ icon: /* @__PURE__ */ d(a, { size: 16 }),
40
42
  order: 30
41
43
  },
42
44
  {
43
45
  id: "export-templates",
44
- label: g("export.nav.templates", "Templates"),
45
- path: _(m, "templates"),
46
- icon: /* @__PURE__ */ u(o, { size: 16 }),
46
+ label: v("export.nav.templates", "Templates"),
47
+ path: y(h, "templates"),
48
+ icon: /* @__PURE__ */ d(s, { size: 16 }),
47
49
  order: 40
48
50
  }
49
51
  ]
50
- });
52
+ };
53
+ return p(e);
51
54
  }, [
52
- f,
53
- m,
54
- g
55
- ]), r(() => {
56
- if (p) return p([{
55
+ p,
56
+ h,
57
+ v,
58
+ _
59
+ ]), i(() => {
60
+ if (!m) return;
61
+ let e = [{
57
62
  id: "export-status",
58
- label: g("export.nav.footerStatus", "Export Ready"),
63
+ label: v("export.nav.footerStatus", "Export Ready"),
59
64
  type: "status",
60
65
  order: 10,
61
66
  section: "left"
62
- }]);
63
- }, [p, g]), /* @__PURE__ */ u(c, {
64
- workspaceId: h ?? null,
67
+ }];
68
+ return m(e);
69
+ }, [m, v]), /* @__PURE__ */ d(l, {
70
+ workspaceId: g ?? null,
65
71
  gateway: "global",
66
72
  defaultEnabled: !0,
67
- children: /* @__PURE__ */ u(l, {
68
- scopeId: h ?? null,
73
+ children: /* @__PURE__ */ d(u, {
74
+ scopeId: g ?? null,
69
75
  gateway: "workspace",
70
- children: /* @__PURE__ */ u(e, {
71
- ...d,
72
- children: /* @__PURE__ */ u(n, {})
76
+ children: /* @__PURE__ */ d(e, {
77
+ ...f,
78
+ children: /* @__PURE__ */ d(r, {
79
+ enabled: _,
80
+ children: /* @__PURE__ */ d(n, {})
81
+ })
73
82
  })
74
83
  })
75
84
  });
76
85
  };
77
- //#endregion
78
- export { d as ExportRoot };
86
+ export { f as ExportRoot };
79
87
 
80
88
  //# sourceMappingURL=ExportRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExportRoot.js","names":[],"sources":["../../src/export/ExportRoot.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport { useEffect } from \"react\";\nimport { Download, Plus, Clock, FileBox } from \"lucide-react\";\nimport { FeatureFlagProvider } from \"@burdenoff/fe-libs/shared/feature-flags\";\nimport { PermissionProvider } from \"@burdenoff/fe-libs/shared/providers/shell\";\nimport { ExportProvider } from \"./providers/ExportProvider\";\nimport { useTr } from \"./hooks/useTr\";\nimport type { NavItem, ExportRootProps } from \"./types\";\nimport { ExportRoutes } from \"./ExportRoutes\";\n\n/**\n * Root component for the Export microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { ExportRoot, type ExportRootProps } from '@burdenoff/micro-fe/export';\n *\n * function App() {\n * const props: ExportRootProps = {\n * basePath: '/export',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },\n * workspaceId: 'ws-123',\n * apiGatewayUrl: 'https://api.example.com',\n * authToken: 'token',\n * registerNavItems: (items) => { return () => {}; },\n * };\n *\n * return <ExportRoot {...props} />;\n * }\n * ```\n */\nexport const ExportRoot: FC<ExportRootProps> = (props) => {\n const {\n registerNavItems,\n registerFooterItems,\n basePath = \"/\",\n workspaceId,\n } = props;\n const tr = useTr();\n\n // Helper to join paths correctly, avoiding double slashes\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith(\"/\") ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith(\"/\") ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with the shell\n useEffect(() => {\n if (!registerNavItems) return;\n\n // Create a parent \"Export\" item with children for dropdown behavior\n const exportNavItem: NavItem = {\n id: \"export\",\n label: tr(\"export.nav.root\", \"Export\"),\n path: basePath,\n icon: <Download size={20} />,\n order: 75,\n group: \"workspace\",\n children: [\n {\n id: \"export-dashboard\",\n label: tr(\"export.nav.dashboard\", \"Dashboard\"),\n path: basePath,\n icon: <FileBox size={16} />,\n order: 10,\n },\n {\n id: \"export-new\",\n label: tr(\"export.nav.newExport\", \"New Export\"),\n path: joinPath(basePath, \"new\"),\n icon: <Plus size={16} />,\n order: 20,\n },\n {\n id: \"export-history\",\n label: tr(\"export.nav.history\", \"History\"),\n path: joinPath(basePath, \"history\"),\n icon: <Clock size={16} />,\n order: 30,\n },\n {\n id: \"export-templates\",\n label: tr(\"export.nav.templates\", \"Templates\"),\n path: joinPath(basePath, \"templates\"),\n icon: <FileBox size={16} />,\n order: 40,\n },\n ],\n };\n\n // Register and get cleanup function\n const cleanup = registerNavItems(exportNavItem);\n\n // Return cleanup function to unregister on unmount\n return cleanup;\n }, [registerNavItems, basePath, tr]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: \"export-status\",\n label: tr(\"export.nav.footerStatus\", \"Export Ready\"),\n type: \"status\" as const,\n order: 10,\n section: \"left\" as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, tr]);\n\n return (\n <FeatureFlagProvider\n workspaceId={workspaceId ?? null}\n gateway=\"global\"\n defaultEnabled={true}\n >\n <PermissionProvider scopeId={workspaceId ?? null} gateway=\"workspace\">\n <ExportProvider {...props}>\n <ExportRoutes />\n </ExportProvider>\n </PermissionProvider>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;AAoCA,IAAa,KAAmC,MAAU;CACxD,IAAM,EACJ,qBACA,wBACA,cAAW,KACX,mBACE,GACE,IAAK,GAAO,EAGZ,KAAY,GAAc,OACZ,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI;AAyEtD,QApEA,QAAgB;AACT,QA8CL,QAHgB,EAxCe;GAC7B,IAAI;GACJ,OAAO,EAAG,mBAAmB,SAAS;GACtC,MAAM;GACN,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;GAC5B,OAAO;GACP,OAAO;GACP,UAAU;IACR;KACE,IAAI;KACJ,OAAO,EAAG,wBAAwB,YAAY;KAC9C,MAAM;KACN,MAAM,kBAAC,GAAD,EAAS,MAAM,IAAM,CAAA;KAC3B,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,wBAAwB,aAAa;KAC/C,MAAM,EAAS,GAAU,MAAM;KAC/B,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;KACxB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,sBAAsB,UAAU;KAC1C,MAAM,EAAS,GAAU,UAAU;KACnC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,wBAAwB,YAAY;KAC9C,MAAM,EAAS,GAAU,YAAY;KACrC,MAAM,kBAAC,GAAD,EAAS,MAAM,IAAM,CAAA;KAC3B,OAAO;KACR;IACF;GACF,CAG8C;IAI9C;EAAC;EAAkB;EAAU;EAAG,CAAC,EAGpC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO,EAAG,2BAA2B,eAAe;GACpD,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,GAAqB,EAAG,CAAC,EAG3B,kBAAC,GAAD;EACE,aAAa,KAAe;EAC5B,SAAQ;EACR,gBAAgB;YAEhB,kBAAC,GAAD;GAAoB,SAAS,KAAe;GAAM,SAAQ;aACxD,kBAAC,GAAD;IAAgB,GAAI;cAClB,kBAAC,GAAD,EAAgB,CAAA;IACD,CAAA;GACE,CAAA;EACD,CAAA"}
1
+ {"version":3,"file":"ExportRoot.js","names":["ExportRoot","props","tr","useTr","joinPath","base","path","useEffect","registerNavItems","navigationV2","exportNavItem","basePath","Download","FileBox","Plus","Clock","registerFooterItems","footerItems","FeatureFlagProvider","workspaceId","PermissionProvider","ExportProvider","NavigationV2Provider","ExportRoutes"],"sources":["../../src/export/ExportRoot.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport { useEffect } from \"react\";\nimport { Download, Plus, Clock, FileBox } from \"lucide-react\";\nimport { FeatureFlagProvider } from \"@burdenoff/fe-libs/shared/feature-flags\";\nimport { PermissionProvider } from \"@burdenoff/fe-libs/shared/providers/shell\";\nimport { ExportProvider } from \"./providers/ExportProvider\";\nimport { useTr } from \"./hooks/useTr\";\nimport type { NavItem, ExportRootProps } from \"./types\";\nimport { ExportRoutes } from \"./ExportRoutes\";\nimport { NavigationV2Provider } from \"./navigation-v2/NavigationV2\";\n\n/**\n * Root component for the Export microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { ExportRoot, type ExportRootProps } from '@burdenoff/micro-fe/export';\n *\n * function App() {\n * const props: ExportRootProps = {\n * basePath: '/export',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },\n * workspaceId: 'ws-123',\n * apiGatewayUrl: 'https://api.example.com',\n * authToken: 'token',\n * registerNavItems: (items) => { return () => {}; },\n * };\n *\n * return <ExportRoot {...props} />;\n * }\n * ```\n */\nexport const ExportRoot: FC<ExportRootProps> = (props) => {\n const {\n registerNavItems,\n registerFooterItems,\n basePath = \"/\",\n workspaceId,\n navigationV2 = false,\n } = props;\n const tr = useTr();\n\n // Helper to join paths correctly, avoiding double slashes\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith(\"/\") ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith(\"/\") ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with the shell\n useEffect(() => {\n // Navigation v2: the host shell places \"Download your data\" (Workspace ›\n // More), so the module adds no sidebar item of its own.\n if (!registerNavItems || navigationV2) return;\n\n // Create a parent \"Export\" item with children for dropdown behavior\n const exportNavItem: NavItem = {\n id: \"export\",\n label: tr(\"export.nav.root\", \"Export\"),\n path: basePath,\n icon: <Download size={20} />,\n order: 75,\n group: \"workspace\",\n children: [\n {\n id: \"export-dashboard\",\n label: tr(\"export.nav.dashboard\", \"Dashboard\"),\n path: basePath,\n icon: <FileBox size={16} />,\n order: 10,\n },\n {\n id: \"export-new\",\n label: tr(\"export.nav.newExport\", \"New Export\"),\n path: joinPath(basePath, \"new\"),\n icon: <Plus size={16} />,\n order: 20,\n },\n {\n id: \"export-history\",\n label: tr(\"export.nav.history\", \"History\"),\n path: joinPath(basePath, \"history\"),\n icon: <Clock size={16} />,\n order: 30,\n },\n {\n id: \"export-templates\",\n label: tr(\"export.nav.templates\", \"Templates\"),\n path: joinPath(basePath, \"templates\"),\n icon: <FileBox size={16} />,\n order: 40,\n },\n ],\n };\n\n // Register and get cleanup function\n const cleanup = registerNavItems(exportNavItem);\n\n // Return cleanup function to unregister on unmount\n return cleanup;\n }, [registerNavItems, basePath, tr, navigationV2]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: \"export-status\",\n label: tr(\"export.nav.footerStatus\", \"Export Ready\"),\n type: \"status\" as const,\n order: 10,\n section: \"left\" as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, tr]);\n\n return (\n <FeatureFlagProvider\n workspaceId={workspaceId ?? null}\n gateway=\"global\"\n defaultEnabled={true}\n >\n <PermissionProvider scopeId={workspaceId ?? null} gateway=\"workspace\">\n <ExportProvider {...props}>\n <NavigationV2Provider enabled={navigationV2}>\n <ExportRoutes />\n </NavigationV2Provider>\n </ExportProvider>\n </PermissionProvider>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AAqCA,IAAaA,KAAmC,MAAU;CACxD,IAAM,EACJ,qBACA,wBACA,cAAW,KACX,gBACA,kBAAe,OACbC,GACEC,IAAKC,EAAM,GAGXC,KAAY,GAAc,OACZC,EAAK,SAAS,GAAG,IAAIA,EAAK,MAAM,GAAG,EAAE,IAAIA,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,kBAACC,GAAD;GAAoB,SAASD,KAAe;GAAM,SAAQ;GACxD,UAAA,kBAACE,GAAD;IAAgB,GAAIpB;IAClB,UAAA,kBAACqB,GAAD;KAAsB,SAASb;KAC7B,UAAA,kBAACc,GAAD,CAAe,CAAA;IACK,CAAA;GACR,CAAA;EACE,CAAA;CACD,CAAA;AAEzB"}
@@ -10,5 +10,11 @@
10
10
  * - /templates → Export templates list
11
11
  * - /templates/:templateId → Template detail page
12
12
  */
13
- export declare function ExportRoutes(): import("react").JSX.Element;
14
- //# sourceMappingURL=ExportRoutes.d.ts.map
13
+ /**
14
+ * Navigation v2 landing (BOFF-11870): the old tab bar is gone, and every old
15
+ * `?tab=` value opens its page. `dashboard` and `history` are the one list;
16
+ * `templates` and the hidden `new` redirect, keeping the rest of the query
17
+ * (`?templateId=`, `?status=`).
18
+ */
19
+ export declare function V2Landing(): import('react').JSX.Element;
20
+ export declare function ExportRoutes(): import('react').JSX.Element;
@@ -1,47 +1,49 @@
1
1
  import { useTr as e } from "./hooks/useTr.js";
2
- import { ExportLandingPage as t } from "./pages/ExportLandingPage.js";
3
- import { Component as n, Suspense as r, lazy as i } from "react";
4
- import { AlertTriangle as a, Loader2 as o, RefreshCw as s } from "lucide-react";
5
- import { FeatureGate as c } from "@burdenoff/fe-libs/shared/feature-flags";
6
- import { Navigate as l, Route as u, Routes as d } from "react-router";
7
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
8
- //#region src/export/ExportRoutes.tsx
9
- var m = i(() => import("./pages/CreateExportPage.js").then((e) => ({ default: e.CreateExportPage }))), h = i(() => import("./pages/ExportHistoryPage.js").then((e) => ({ default: e.ExportHistoryPage }))), g = i(() => import("./pages/ExportDetailPage.js").then((e) => ({ default: e.ExportDetailPage }))), _ = i(() => import("./pages/ExportTemplatesPage.js").then((e) => ({ default: e.ExportTemplatesPage }))), v = i(() => import("./pages/TemplateDetailPage.js").then((e) => ({ default: e.TemplateDetailPage })));
10
- function y() {
11
- return /* @__PURE__ */ f("div", {
2
+ import { useExport as t } from "./providers/ExportProvider.js";
3
+ import { useNavigationV2 as n } from "./navigation-v2/NavigationV2.js";
4
+ import { ExportLandingPage as r } from "./pages/ExportLandingPage.js";
5
+ import { Component as i, Suspense as a, lazy as o } from "react";
6
+ import { AlertTriangle as s, Loader2 as c, RefreshCw as l } from "lucide-react";
7
+ import { FeatureGate as u } from "@burdenoff/fe-libs/shared/feature-flags";
8
+ import { Navigate as d, Route as f, Routes as p, useSearchParams as m } from "react-router";
9
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
10
+ // src/export/ExportRoutes.tsx
11
+ var _ = o(() => import("./pages/CreateExportPage.js").then((e) => ({ default: e.CreateExportPage }))), v = o(() => import("./pages/ExportHistoryPage.js").then((e) => ({ default: e.ExportHistoryPage }))), y = o(() => import("./pages/ExportDetailPage.js").then((e) => ({ default: e.ExportDetailPage }))), b = o(() => import("./pages/ExportTemplatesPage.js").then((e) => ({ default: e.ExportTemplatesPage }))), x = o(() => import("./pages/v2/DownloadsPage.js").then((e) => ({ default: e.DownloadsPage }))), S = o(() => import("./pages/v2/NewDownloadPage.js").then((e) => ({ default: e.NewDownloadPage }))), C = o(() => import("./pages/v2/DownloadDetailPage.js").then((e) => ({ default: e.DownloadDetailPage }))), w = o(() => import("./pages/TemplateDetailPage.js").then((e) => ({ default: e.TemplateDetailPage })));
12
+ function T() {
13
+ return /* @__PURE__ */ h("div", {
12
14
  className: "flex items-center justify-center min-h-[400px]",
13
- children: /* @__PURE__ */ f(o, { className: "size-8 animate-spin text-primary" })
15
+ children: /* @__PURE__ */ h(c, { className: "size-8 animate-spin text-primary" })
14
16
  });
15
17
  }
16
- function b({ error: t, onRetry: n }) {
18
+ function E({ error: t, onRetry: n }) {
17
19
  let r = e();
18
- return /* @__PURE__ */ p("div", {
20
+ return /* @__PURE__ */ g("div", {
19
21
  className: "flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6",
20
22
  children: [
21
- /* @__PURE__ */ f("div", {
23
+ /* @__PURE__ */ h("div", {
22
24
  className: "p-3 rounded-full bg-status-error-bg/10",
23
- children: /* @__PURE__ */ f(a, { className: "size-8 text-status-error-text" })
25
+ children: /* @__PURE__ */ h(s, { className: "size-8 text-status-error-text" })
24
26
  }),
25
- /* @__PURE__ */ p("div", {
27
+ /* @__PURE__ */ g("div", {
26
28
  className: "space-y-2",
27
- children: [/* @__PURE__ */ f("h3", {
29
+ children: [/* @__PURE__ */ h("h3", {
28
30
  className: "text-lg font-semibold text-text-primary",
29
31
  children: r("export.routes.error.title", "Failed to load page")
30
- }), /* @__PURE__ */ f("p", {
32
+ }), /* @__PURE__ */ h("p", {
31
33
  className: "text-sm text-text-secondary max-w-md",
32
34
  children: t?.message || r("export.routes.error.description", "The page chunk could not be loaded. This may be due to a network issue.")
33
35
  })]
34
36
  }),
35
- /* @__PURE__ */ p("button", {
37
+ /* @__PURE__ */ g("button", {
36
38
  type: "button",
37
39
  onClick: n,
38
40
  className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
39
- children: [/* @__PURE__ */ f(s, { className: "size-4" }), r("export.routes.error.retry", "Try Again")]
41
+ children: [/* @__PURE__ */ h(l, { className: "size-4" }), r("export.routes.error.retry", "Try Again")]
40
42
  })
41
43
  ]
42
44
  });
43
45
  }
44
- var x = class extends n {
46
+ var D = class extends i {
45
47
  constructor(e) {
46
48
  super(e), this.state = {
47
49
  hasError: !1,
@@ -64,78 +66,95 @@ var x = class extends n {
64
66
  });
65
67
  };
66
68
  render() {
67
- return this.state.hasError ? /* @__PURE__ */ f(b, {
69
+ return this.state.hasError ? /* @__PURE__ */ h(E, {
68
70
  error: this.state.error,
69
71
  onRetry: this.handleRetry
70
72
  }) : this.props.children;
71
73
  }
72
74
  };
73
- function S() {
75
+ function O() {
74
76
  let t = e();
75
- return /* @__PURE__ */ p("div", {
77
+ return /* @__PURE__ */ g("div", {
76
78
  className: "flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6",
77
- children: [/* @__PURE__ */ f("div", {
79
+ children: [/* @__PURE__ */ h("div", {
78
80
  className: "p-3 rounded-full bg-bg-sunken",
79
- children: /* @__PURE__ */ f("svg", {
81
+ children: /* @__PURE__ */ h("svg", {
80
82
  className: "size-8 text-text-secondary",
81
83
  fill: "none",
82
84
  viewBox: "0 0 24 24",
83
85
  stroke: "currentColor",
84
86
  strokeWidth: 1.5,
85
- children: /* @__PURE__ */ f("path", {
87
+ children: /* @__PURE__ */ h("path", {
86
88
  strokeLinecap: "round",
87
89
  strokeLinejoin: "round",
88
90
  d: "M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"
89
91
  })
90
92
  })
91
- }), /* @__PURE__ */ p("div", {
93
+ }), /* @__PURE__ */ g("div", {
92
94
  className: "space-y-2",
93
- children: [/* @__PURE__ */ f("h3", {
95
+ children: [/* @__PURE__ */ h("h3", {
94
96
  className: "text-lg font-semibold text-text-primary",
95
97
  children: t("export.routes.disabled.title", "Data Export Unavailable")
96
- }), /* @__PURE__ */ f("p", {
98
+ }), /* @__PURE__ */ h("p", {
97
99
  className: "text-sm text-text-secondary max-w-md",
98
100
  children: t("export.routes.disabled.description", "The Data Export feature is currently disabled for this workspace. Contact your administrator to enable it.")
99
101
  })]
100
102
  })]
101
103
  });
102
104
  }
103
- function C() {
104
- return /* @__PURE__ */ f(x, { children: /* @__PURE__ */ f(c, {
105
+ function k() {
106
+ let [e] = m(), t = e.get("tab");
107
+ if (t === "templates" || t === "new") {
108
+ let n = new URLSearchParams(e);
109
+ n.delete("tab");
110
+ let r = n.toString();
111
+ return /* @__PURE__ */ h(d, {
112
+ to: {
113
+ pathname: t,
114
+ search: r ? `?${r}` : ""
115
+ },
116
+ replace: !0
117
+ });
118
+ }
119
+ return /* @__PURE__ */ h(x, {});
120
+ }
121
+ function A() {
122
+ let e = n(), { basePath: i = "/" } = t();
123
+ return /* @__PURE__ */ h(D, { children: /* @__PURE__ */ h(u, {
105
124
  flag: "workspaces.export",
106
125
  defaultValue: !0,
107
- fallback: /* @__PURE__ */ f(S, {}),
108
- children: /* @__PURE__ */ f(r, {
109
- fallback: /* @__PURE__ */ f(y, {}),
110
- children: /* @__PURE__ */ p(d, { children: [
111
- /* @__PURE__ */ f(u, {
126
+ fallback: /* @__PURE__ */ h(O, {}),
127
+ children: /* @__PURE__ */ h(a, {
128
+ fallback: /* @__PURE__ */ h(T, {}),
129
+ children: /* @__PURE__ */ g(p, { children: [
130
+ /* @__PURE__ */ h(f, {
112
131
  index: !0,
113
- element: /* @__PURE__ */ f(t, {})
132
+ element: h(e ? k : r, {})
114
133
  }),
115
- /* @__PURE__ */ f(u, {
134
+ /* @__PURE__ */ h(f, {
116
135
  path: "new",
117
- element: /* @__PURE__ */ f(m, {})
136
+ element: h(e ? S : _, {})
118
137
  }),
119
- /* @__PURE__ */ f(u, {
138
+ /* @__PURE__ */ h(f, {
120
139
  path: "history",
121
- element: /* @__PURE__ */ f(h, {})
140
+ element: h(e ? x : v, {})
122
141
  }),
123
- /* @__PURE__ */ f(u, {
142
+ /* @__PURE__ */ h(f, {
124
143
  path: ":jobId",
125
- element: /* @__PURE__ */ f(g, {})
144
+ element: h(e ? C : y, {})
126
145
  }),
127
- /* @__PURE__ */ f(u, {
146
+ /* @__PURE__ */ h(f, {
128
147
  path: "templates",
129
- element: /* @__PURE__ */ f(_, {})
148
+ element: /* @__PURE__ */ h(b, {})
130
149
  }),
131
- /* @__PURE__ */ f(u, {
150
+ /* @__PURE__ */ h(f, {
132
151
  path: "templates/:templateId",
133
- element: /* @__PURE__ */ f(v, {})
152
+ element: /* @__PURE__ */ h(w, {})
134
153
  }),
135
- /* @__PURE__ */ f(u, {
154
+ /* @__PURE__ */ h(f, {
136
155
  path: "*",
137
- element: /* @__PURE__ */ f(l, {
138
- to: "",
156
+ element: /* @__PURE__ */ h(d, {
157
+ to: i,
139
158
  replace: !0
140
159
  })
141
160
  })
@@ -143,7 +162,6 @@ function C() {
143
162
  })
144
163
  }) });
145
164
  }
146
- //#endregion
147
- export { C as ExportRoutes };
165
+ export { A as ExportRoutes, k as V2Landing };
148
166
 
149
167
  //# sourceMappingURL=ExportRoutes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExportRoutes.js","names":[],"sources":["../../src/export/ExportRoutes.tsx"],"sourcesContent":["import {\n lazy,\n Suspense,\n Component,\n type ReactNode,\n type ErrorInfo,\n} from \"react\";\nimport { Navigate, Route, Routes } from \"react-router\";\nimport { Loader2, AlertTriangle, RefreshCw } from \"lucide-react\";\nimport { FeatureGate } from \"@burdenoff/fe-libs/shared/feature-flags\";\nimport { useTr } from \"./hooks/useTr\";\n\n// Eager loaded - primary landing page\nimport { ExportLandingPage } from \"./pages/ExportLandingPage\";\n\n// Lazy loaded pages\nconst CreateExportPage = lazy(() =>\n import(\"./pages/CreateExportPage\").then((m) => ({\n default: m.CreateExportPage,\n })),\n);\nconst ExportHistoryPage = lazy(() =>\n import(\"./pages/ExportHistoryPage\").then((m) => ({\n default: m.ExportHistoryPage,\n })),\n);\nconst ExportDetailPage = lazy(() =>\n import(\"./pages/ExportDetailPage\").then((m) => ({\n default: m.ExportDetailPage,\n })),\n);\nconst ExportTemplatesPage = lazy(() =>\n import(\"./pages/ExportTemplatesPage\").then((m) => ({\n default: m.ExportTemplatesPage,\n })),\n);\nconst TemplateDetailPage = lazy(() =>\n import(\"./pages/TemplateDetailPage\").then((m) => ({\n default: m.TemplateDetailPage,\n })),\n);\n\n/**\n * Loading fallback for lazy-loaded pages\n */\nfunction PageLoader() {\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Loader2 className=\"size-8 animate-spin text-primary\" />\n </div>\n );\n}\n\n/**\n * Translated error UI rendered by LazyErrorBoundary.\n * Extracted as a function component so it can use the `useTr` hook.\n */\nfunction LazyErrorFallback({\n error,\n onRetry,\n}: {\n error: Error | null;\n onRetry: () => void;\n}) {\n const tr = useTr();\n return (\n <div className=\"flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6\">\n <div className=\"p-3 rounded-full bg-status-error-bg/10\">\n <AlertTriangle className=\"size-8 text-status-error-text\" />\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-text-primary\">\n {tr(\"export.routes.error.title\", \"Failed to load page\")}\n </h3>\n <p className=\"text-sm text-text-secondary max-w-md\">\n {error?.message ||\n tr(\n \"export.routes.error.description\",\n \"The page chunk could not be loaded. This may be due to a network issue.\",\n )}\n </p>\n </div>\n <button\n type=\"button\"\n onClick={onRetry}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <RefreshCw className=\"size-4\" />\n {tr(\"export.routes.error.retry\", \"Try Again\")}\n </button>\n </div>\n );\n}\n\n/**\n * Error boundary for lazy-loaded page chunks.\n * Catches chunk-load failures and renders a retry UI instead of an infinite spinner.\n */\nclass LazyErrorBoundary extends Component<\n { children: ReactNode },\n { hasError: boolean; error: Error | null }\n> {\n constructor(props: { children: ReactNode }) {\n super(props);\n this.state = { hasError: false, error: null };\n }\n\n static getDerivedStateFromError(error: Error) {\n return { hasError: true, error };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n console.error(\"[Export] Lazy page load failed:\", error, errorInfo);\n }\n\n handleRetry = () => {\n this.setState({ hasError: false, error: null });\n };\n\n render() {\n if (this.state.hasError) {\n return (\n <LazyErrorFallback\n error={this.state.error}\n onRetry={this.handleRetry}\n />\n );\n }\n\n return this.props.children;\n }\n}\n\n/**\n * Fallback shown when the Export feature flag is OFF.\n */\nfunction ExportDisabledFallback() {\n const tr = useTr();\n return (\n <div className=\"flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6\">\n <div className=\"p-3 rounded-full bg-bg-sunken\">\n <svg\n className=\"size-8 text-text-secondary\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n strokeWidth={1.5}\n >\n <path\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3\"\n />\n </svg>\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-text-primary\">\n {tr(\"export.routes.disabled.title\", \"Data Export Unavailable\")}\n </h3>\n <p className=\"text-sm text-text-secondary max-w-md\">\n {tr(\n \"export.routes.disabled.description\",\n \"The Data Export feature is currently disabled for this workspace. Contact your administrator to enable it.\",\n )}\n </p>\n </div>\n </div>\n );\n}\n\n/**\n * Internal router for the Export microfrontend.\n * This component handles routing within the microfrontend using React Router v7.\n *\n * Routes (relative to basePath, e.g., /export):\n * - / → Export dashboard page\n * - /new → Create new export job\n * - /history → Export history list\n * - /:jobId → Export job detail page\n * - /templates → Export templates list\n * - /templates/:templateId → Template detail page\n */\nexport function ExportRoutes() {\n return (\n <LazyErrorBoundary>\n <FeatureGate\n flag=\"workspaces.export\"\n defaultValue={true}\n fallback={<ExportDisabledFallback />}\n >\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Tabbed landing - default route (eager loaded) */}\n <Route index element={<ExportLandingPage />} />\n\n {/* Create new export (lazy loaded) */}\n <Route path=\"new\" element={<CreateExportPage />} />\n\n {/* Export history (lazy loaded) */}\n <Route path=\"history\" element={<ExportHistoryPage />} />\n\n {/* Export job detail (lazy loaded) */}\n <Route path=\":jobId\" element={<ExportDetailPage />} />\n\n {/* Templates (lazy loaded) */}\n <Route path=\"templates\" element={<ExportTemplatesPage />} />\n <Route\n path=\"templates/:templateId\"\n element={<TemplateDetailPage />}\n />\n\n {/* Catch-all route - redirect to dashboard */}\n <Route path=\"*\" element={<Navigate to=\"\" replace />} />\n </Routes>\n </Suspense>\n </FeatureGate>\n </LazyErrorBoundary>\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D,kBAAC,GAAD;KAAO,MAAK;KAAS,SAAS,kBAAC,GAAD,EAAoB,CAAA;KAAI,CAAA;IAGtD,kBAAC,GAAD;KAAO,MAAK;KAAY,SAAS,kBAAC,GAAD,EAAuB,CAAA;KAAI,CAAA;IAC5D,kBAAC,GAAD;KACE,MAAK;KACL,SAAS,kBAAC,GAAD,EAAsB,CAAA;KAC/B,CAAA;IAGF,kBAAC,GAAD;KAAO,MAAK;KAAI,SAAS,kBAAC,GAAD;MAAU,IAAG;MAAG,SAAA;MAAU,CAAA;KAAI,CAAA;IAChD,EAAA,CAAA;GACA,CAAA;EACC,CAAA,EACI,CAAA"}
1
+ {"version":3,"file":"ExportRoutes.js","names":["CreateExportPage","lazy","m","ExportHistoryPage","ExportDetailPage","ExportTemplatesPage","DownloadsPage","NewDownloadPage","DownloadDetailPage","TemplateDetailPage","PageLoader","Loader2","LazyErrorFallback","tr","useTr","AlertTriangle","error","onRetry","RefreshCw","LazyErrorBoundary","Component","props","errorInfo","ExportDisabledFallback","V2Landing","params","useSearchParams","tab","rest","search","Navigate","ExportRoutes","navigationV2","useNavigationV2","useExport","FeatureGate","Suspense","Routes","Route","jsx","ExportLandingPage","basePath"],"sources":["../../src/export/ExportRoutes.tsx"],"sourcesContent":["import {\n lazy,\n Suspense,\n Component,\n type ReactNode,\n type ErrorInfo,\n} from \"react\";\nimport { Navigate, Route, Routes, useSearchParams } from \"react-router\";\nimport { Loader2, AlertTriangle, RefreshCw } from \"lucide-react\";\nimport { FeatureGate } from \"@burdenoff/fe-libs/shared/feature-flags\";\nimport { useTr } from \"./hooks/useTr\";\nimport { useExport } from \"./providers/ExportProvider\";\nimport { useNavigationV2 } from \"./navigation-v2/NavigationV2\";\n\n// Eager loaded - primary landing page\nimport { ExportLandingPage } from \"./pages/ExportLandingPage\";\n\n// Lazy loaded pages\nconst CreateExportPage = lazy(() =>\n import(\"./pages/CreateExportPage\").then((m) => ({\n default: m.CreateExportPage,\n })),\n);\nconst ExportHistoryPage = lazy(() =>\n import(\"./pages/ExportHistoryPage\").then((m) => ({\n default: m.ExportHistoryPage,\n })),\n);\nconst ExportDetailPage = lazy(() =>\n import(\"./pages/ExportDetailPage\").then((m) => ({\n default: m.ExportDetailPage,\n })),\n);\nconst ExportTemplatesPage = lazy(() =>\n import(\"./pages/ExportTemplatesPage\").then((m) => ({\n default: m.ExportTemplatesPage,\n })),\n);\nconst DownloadsPage = lazy(() =>\n import(\"./pages/v2/DownloadsPage\").then((m) => ({\n default: m.DownloadsPage,\n })),\n);\nconst NewDownloadPage = lazy(() =>\n import(\"./pages/v2/NewDownloadPage\").then((m) => ({\n default: m.NewDownloadPage,\n })),\n);\nconst DownloadDetailPage = lazy(() =>\n import(\"./pages/v2/DownloadDetailPage\").then((m) => ({\n default: m.DownloadDetailPage,\n })),\n);\nconst TemplateDetailPage = lazy(() =>\n import(\"./pages/TemplateDetailPage\").then((m) => ({\n default: m.TemplateDetailPage,\n })),\n);\n\n/**\n * Loading fallback for lazy-loaded pages\n */\nfunction PageLoader() {\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Loader2 className=\"size-8 animate-spin text-primary\" />\n </div>\n );\n}\n\n/**\n * Translated error UI rendered by LazyErrorBoundary.\n * Extracted as a function component so it can use the `useTr` hook.\n */\nfunction LazyErrorFallback({\n error,\n onRetry,\n}: {\n error: Error | null;\n onRetry: () => void;\n}) {\n const tr = useTr();\n return (\n <div className=\"flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6\">\n <div className=\"p-3 rounded-full bg-status-error-bg/10\">\n <AlertTriangle className=\"size-8 text-status-error-text\" />\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-text-primary\">\n {tr(\"export.routes.error.title\", \"Failed to load page\")}\n </h3>\n <p className=\"text-sm text-text-secondary max-w-md\">\n {error?.message ||\n tr(\n \"export.routes.error.description\",\n \"The page chunk could not be loaded. This may be due to a network issue.\",\n )}\n </p>\n </div>\n <button\n type=\"button\"\n onClick={onRetry}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <RefreshCw className=\"size-4\" />\n {tr(\"export.routes.error.retry\", \"Try Again\")}\n </button>\n </div>\n );\n}\n\n/**\n * Error boundary for lazy-loaded page chunks.\n * Catches chunk-load failures and renders a retry UI instead of an infinite spinner.\n */\nclass LazyErrorBoundary extends Component<\n { children: ReactNode },\n { hasError: boolean; error: Error | null }\n> {\n constructor(props: { children: ReactNode }) {\n super(props);\n this.state = { hasError: false, error: null };\n }\n\n static getDerivedStateFromError(error: Error) {\n return { hasError: true, error };\n }\n\n override componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n console.error(\"[Export] Lazy page load failed:\", error, errorInfo);\n }\n\n handleRetry = () => {\n this.setState({ hasError: false, error: null });\n };\n\n override render() {\n if (this.state.hasError) {\n return (\n <LazyErrorFallback\n error={this.state.error}\n onRetry={this.handleRetry}\n />\n );\n }\n\n return this.props.children;\n }\n}\n\n/**\n * Fallback shown when the Export feature flag is OFF.\n */\nfunction ExportDisabledFallback() {\n const tr = useTr();\n return (\n <div className=\"flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6\">\n <div className=\"p-3 rounded-full bg-bg-sunken\">\n <svg\n className=\"size-8 text-text-secondary\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n strokeWidth={1.5}\n >\n <path\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3\"\n />\n </svg>\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-text-primary\">\n {tr(\"export.routes.disabled.title\", \"Data Export Unavailable\")}\n </h3>\n <p className=\"text-sm text-text-secondary max-w-md\">\n {tr(\n \"export.routes.disabled.description\",\n \"The Data Export feature is currently disabled for this workspace. Contact your administrator to enable it.\",\n )}\n </p>\n </div>\n </div>\n );\n}\n\n/**\n * Internal router for the Export microfrontend.\n * This component handles routing within the microfrontend using React Router v7.\n *\n * Routes (relative to basePath, e.g., /export):\n * - / → Export dashboard page\n * - /new → Create new export job\n * - /history → Export history list\n * - /:jobId → Export job detail page\n * - /templates → Export templates list\n * - /templates/:templateId → Template detail page\n */\n/**\n * Navigation v2 landing (BOFF-11870): the old tab bar is gone, and every old\n * `?tab=` value opens its page. `dashboard` and `history` are the one list;\n * `templates` and the hidden `new` redirect, keeping the rest of the query\n * (`?templateId=`, `?status=`).\n */\nexport function V2Landing() {\n const [params] = useSearchParams();\n const tab = params.get(\"tab\");\n if (tab === \"templates\" || tab === \"new\") {\n const rest = new URLSearchParams(params);\n rest.delete(\"tab\");\n const search = rest.toString();\n return (\n <Navigate\n to={{ pathname: tab, search: search ? `?${search}` : \"\" }}\n replace\n />\n );\n }\n return <DownloadsPage />;\n}\n\nexport function ExportRoutes() {\n const navigationV2 = useNavigationV2();\n const { basePath = \"/\" } = useExport();\n return (\n <LazyErrorBoundary>\n <FeatureGate\n flag=\"workspaces.export\"\n defaultValue={true}\n fallback={<ExportDisabledFallback />}\n >\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Tabbed landing - default route (eager loaded). Navigation v2:\n one \"Download your data\" list, old ?tab= values still work. */}\n <Route\n index\n element={navigationV2 ? <V2Landing /> : <ExportLandingPage />}\n />\n\n {/* Create new export (lazy loaded) */}\n <Route\n path=\"new\"\n element={\n navigationV2 ? <NewDownloadPage /> : <CreateExportPage />\n }\n />\n\n {/* Export history (lazy loaded); the same list in Navigation v2 */}\n <Route\n path=\"history\"\n element={navigationV2 ? <DownloadsPage /> : <ExportHistoryPage />}\n />\n\n {/* Export job detail (lazy loaded) */}\n <Route\n path=\":jobId\"\n element={\n navigationV2 ? <DownloadDetailPage /> : <ExportDetailPage />\n }\n />\n\n {/* Templates (lazy loaded) */}\n <Route path=\"templates\" element={<ExportTemplatesPage />} />\n <Route\n path=\"templates/:templateId\"\n element={<TemplateDetailPage />}\n />\n\n {/* Catch-all route - redirect to the landing page. An empty \"to\"\n resolves to the unmatched URL itself inside a splat route, so\n the module's own base path is used. */}\n <Route path=\"*\" element={<Navigate to={basePath} replace />} />\n </Routes>\n </Suspense>\n </FeatureGate>\n </LazyErrorBoundary>\n );\n}\n"],"mappings":";;;;;;;;;;AAkBA,IAAMA,IAAmBC,QACvB,OAAO,8BAA2B,CAAC,MAAM,OAAO,EAC9C,SAASC,EAAE,iBACb,EAAE,CACJ,GACMC,IAAoBF,QACxB,OAAO,+BAA4B,CAAC,MAAM,OAAO,EAC/C,SAASC,EAAE,kBACb,EAAE,CACJ,GACME,IAAmBH,QACvB,OAAO,8BAA2B,CAAC,MAAM,OAAO,EAC9C,SAASC,EAAE,iBACb,EAAE,CACJ,GACMG,IAAsBJ,QAC1B,OAAO,iCAA8B,CAAC,MAAM,OAAO,EACjD,SAASC,EAAE,oBACb,EAAE,CACJ,GACMI,IAAgBL,QACpB,OAAO,8BAA2B,CAAC,MAAM,OAAO,EAC9C,SAASC,EAAE,cACb,EAAE,CACJ,GACMK,IAAkBN,QACtB,OAAO,gCAA6B,CAAC,MAAM,OAAO,EAChD,SAASC,EAAE,gBACb,EAAE,CACJ,GACMM,IAAqBP,QACzB,OAAO,mCAAgC,CAAC,MAAM,OAAO,EACnD,SAASC,EAAE,mBACb,EAAE,CACJ,GACMO,IAAqBR,QACzB,OAAO,gCAA6B,CAAC,MAAM,OAAO,EAChD,SAASC,EAAE,mBACb,EAAE,CACJ;AAKA,SAASQ,IAAa;CACpB,OACE,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAACC,GAAD,EAAS,WAAU,mCAAoC,CAAA;CACpD,CAAA;AAET;AAMA,SAASC,EAAkB,EACzB,UACA,cAIC;CACD,IAAMC,IAAKC,EAAM;CACjB,OACE,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACE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,GAAD;KACE,MAAK;KACL,SACiBC,EAAfP,IAAgBxB,IAAyBJ,GAA1B,CAAqB,CAAuB;IAE9D,CAAA;IAGD,kBAACkC,GAAD;KAAO,MAAK;KAAY,SAAS,kBAACjC,GAAD,CAAsB,CAAA;IAAI,CAAA;IAC3D,kBAACiC,GAAD;KACE,MAAK;KACL,SAAS,kBAAC7B,GAAD,CAAqB,CAAA;IAC/B,CAAA;IAKD,kBAAC6B,GAAD;KAAO,MAAK;KAAI,SAAS,kBAACR,GAAD;MAAU,IAAIW;MAAU,SAAA;KAAS,CAAA;IAAI,CAAA;GACxD,EAAA,CAAA;EACA,CAAA;CACC,CAAA,EACI,CAAA;AAEvB"}
@@ -0,0 +1,21 @@
1
+ export interface ConfirmDestructiveDialogProps {
2
+ open: boolean;
3
+ /** Names the item: "Delete “Weekly backup”?" */
4
+ title: string;
5
+ /** Says what happens to it. */
6
+ description: string;
7
+ confirmLabel: string;
8
+ keepLabel: string;
9
+ busy?: boolean;
10
+ /** Shown when the last attempt failed; the dialog stays open to retry. */
11
+ error?: string | null;
12
+ onConfirm: () => void;
13
+ onOpenChange: (open: boolean) => void;
14
+ }
15
+ /**
16
+ * Navigation v2 confirm for cancel/delete (BOFF-11870): fe-libs'
17
+ * `ResponsiveDialog` (focus trap, Escape, a bottom sheet on phones) in place
18
+ * of the module's hand-rolled overlays. A failure is shown in the dialog
19
+ * instead of closing it silently.
20
+ */
21
+ export declare function ConfirmDestructiveDialog({ open, title, description, confirmLabel, keepLabel, busy, error, onConfirm, onOpenChange, }: ConfirmDestructiveDialogProps): import('react').JSX.Element;
@@ -0,0 +1,37 @@
1
+ import { Loader2 as e } from "lucide-react";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { Button as r, ResponsiveDialog as i, ResponsiveDialogContent as a, ResponsiveDialogDescription as o, ResponsiveDialogFooter as s, ResponsiveDialogHeader as c, ResponsiveDialogTitle as l } from "@burdenoff/fe-libs/ui";
4
+ // src/export/components/ConfirmDestructiveDialog.tsx
5
+ function u({ open: u, title: d, description: f, confirmLabel: p, keepLabel: m, busy: h = !1, error: g, onConfirm: _, onOpenChange: v }) {
6
+ return /* @__PURE__ */ t(i, {
7
+ open: u,
8
+ onOpenChange: v,
9
+ children: /* @__PURE__ */ n(a, { children: [
10
+ /* @__PURE__ */ n(c, { children: [/* @__PURE__ */ t(l, { children: d }), /* @__PURE__ */ t(o, { children: f })] }),
11
+ g ? /* @__PURE__ */ t("p", {
12
+ role: "alert",
13
+ className: "rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
14
+ children: g
15
+ }) : null,
16
+ /* @__PURE__ */ n(s, { children: [/* @__PURE__ */ t(r, {
17
+ type: "button",
18
+ variant: "outline",
19
+ onClick: () => v(!1),
20
+ children: m
21
+ }), /* @__PURE__ */ n(r, {
22
+ type: "button",
23
+ variant: "destructive",
24
+ disabled: h,
25
+ onClick: _,
26
+ children: [h ? /* @__PURE__ */ t(e, {
27
+ size: 16,
28
+ className: "animate-spin",
29
+ "aria-hidden": "true"
30
+ }) : null, p]
31
+ })] })
32
+ ] })
33
+ });
34
+ }
35
+ export { u as ConfirmDestructiveDialog };
36
+
37
+ //# sourceMappingURL=ConfirmDestructiveDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmDestructiveDialog.js","names":["ConfirmDestructiveDialog","ResponsiveDialog","ResponsiveDialogContent","ResponsiveDialogHeader","ResponsiveDialogTitle","title","ResponsiveDialogDescription","description","error","ResponsiveDialogFooter","Button","onOpenChange","keepLabel","busy","onConfirm","Loader2","confirmLabel"],"sources":["../../../src/export/components/ConfirmDestructiveDialog.tsx"],"sourcesContent":["import { Loader2 } from \"lucide-react\";\nimport {\n Button,\n ResponsiveDialog,\n ResponsiveDialogContent,\n ResponsiveDialogDescription,\n ResponsiveDialogFooter,\n ResponsiveDialogHeader,\n ResponsiveDialogTitle,\n} from \"@burdenoff/fe-libs/ui\";\n\nexport interface ConfirmDestructiveDialogProps {\n open: boolean;\n /** Names the item: \"Delete “Weekly backup”?\" */\n title: string;\n /** Says what happens to it. */\n description: string;\n confirmLabel: string;\n keepLabel: string;\n busy?: boolean;\n /** Shown when the last attempt failed; the dialog stays open to retry. */\n error?: string | null;\n onConfirm: () => void;\n onOpenChange: (open: boolean) => void;\n}\n\n/**\n * Navigation v2 confirm for cancel/delete (BOFF-11870): fe-libs'\n * `ResponsiveDialog` (focus trap, Escape, a bottom sheet on phones) in place\n * of the module's hand-rolled overlays. A failure is shown in the dialog\n * instead of closing it silently.\n */\nexport function ConfirmDestructiveDialog({\n open,\n title,\n description,\n confirmLabel,\n keepLabel,\n busy = false,\n error,\n onConfirm,\n onOpenChange,\n}: ConfirmDestructiveDialogProps) {\n return (\n <ResponsiveDialog open={open} onOpenChange={onOpenChange}>\n <ResponsiveDialogContent>\n <ResponsiveDialogHeader>\n <ResponsiveDialogTitle>{title}</ResponsiveDialogTitle>\n <ResponsiveDialogDescription>\n {description}\n </ResponsiveDialogDescription>\n </ResponsiveDialogHeader>\n {error ? (\n <p\n role=\"alert\"\n className=\"rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text\"\n >\n {error}\n </p>\n ) : null}\n <ResponsiveDialogFooter>\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => onOpenChange(false)}\n >\n {keepLabel}\n </Button>\n <Button\n type=\"button\"\n variant=\"destructive\"\n disabled={busy}\n onClick={onConfirm}\n >\n {busy ? (\n <Loader2 size={16} className=\"animate-spin\" aria-hidden=\"true\" />\n ) : null}\n {confirmLabel}\n </Button>\n </ResponsiveDialogFooter>\n </ResponsiveDialogContent>\n </ResponsiveDialog>\n );\n}\n"],"mappings":";;;;AAgCA,SAAgBA,EAAyB,EACvC,SACA,UACA,gBACA,iBACA,cACA,UAAO,IACP,UACA,cACA,mBACgC;CAChC,OACE,kBAACC,GAAD;EAAwB;EAAoB;EAC1C,UAAA,kBAACC,GAAD,EAAA,UAAA;GACE,kBAACC,GAAD,EAAA,UAAA,CACE,kBAACC,GAAD,EAAA,UAAwBC,EAA6B,CAAA,GACrD,kBAACC,GAAD,EAAA,UACGC,EAC0B,CAAA,CACP,EAAA,CAAA;GACvBC,IACC,kBAAC,KAAD;IACE,MAAK;IACL,WAAU;IAET,UAAAA;GACA,CAAA,IACD;GACJ,kBAACC,GAAD,EAAA,UAAA,CACE,kBAACC,GAAD;IACE,MAAK;IACL,SAAQ;IACR,eAAeC,EAAa,EAAK;IAEhC,UAAAC;GACK,CAAA,GACR,kBAACF,GAAD;IACE,MAAK;IACL,SAAQ;IACR,UAAUG;IACV,SAASC;IAJX,UAAA,CAMGD,IACC,kBAACE,GAAD;KAAS,MAAM;KAAI,WAAU;KAAe,eAAY;IAAQ,CAAA,IAC9D,MACHC,CACK;GACc,CAAA,CAAA,EAAA,CAAA;EACD,EAAA,CAAA;CACT,CAAA;AAEtB"}
@@ -0,0 +1,10 @@
1
+ import { ExportJob } from '../types';
2
+ /**
3
+ * The body of a download's page in Navigation v2 (BOFF-11870): progress while
4
+ * it prepares, the failure or expiry note, the size and date cards, the files
5
+ * and the "complete, files not ready yet" state.
6
+ */
7
+ export declare function DownloadSections({ job, label, }: {
8
+ job: ExportJob;
9
+ label: (entityType: string) => string;
10
+ }): import('react').JSX.Element;