@burdenoff/microfe-export 2026.1107.1 → 2026.1108.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 (211) 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 +9 -6
  4. package/dist/export/ExportRoot.js.map +1 -1
  5. package/dist/export/ExportRoutes.d.ts +1 -2
  6. package/dist/export/ExportRoutes.js +1 -2
  7. package/dist/export/ExportRoutes.js.map +1 -1
  8. package/dist/export/components/ExportProgressBar.d.ts +1 -2
  9. package/dist/export/components/ExportProgressBar.js +1 -2
  10. package/dist/export/components/ExportProgressBar.js.map +1 -1
  11. package/dist/export/components/ExportStatusBadge.d.ts +1 -3
  12. package/dist/export/components/ExportStatusBadge.js +7 -8
  13. package/dist/export/components/ExportStatusBadge.js.map +1 -1
  14. package/dist/export/components/PageLayout.d.ts +3 -5
  15. package/dist/export/components/PageLayout.js +1 -2
  16. package/dist/export/components/PageLayout.js.map +1 -1
  17. package/dist/export/constants/enums.d.ts +0 -2
  18. package/dist/export/constants/enums.js +1 -2
  19. package/dist/export/constants/enums.js.map +1 -1
  20. package/dist/export/constants/index.d.ts +0 -1
  21. package/dist/export/hooks/useExportQueries.d.ts +16 -33
  22. package/dist/export/hooks/useExportQueries.js +223 -225
  23. package/dist/export/hooks/useExportQueries.js.map +1 -1
  24. package/dist/export/hooks/useTr.d.ts +0 -2
  25. package/dist/export/hooks/useTr.js +1 -2
  26. package/dist/export/hooks/useTr.js.map +1 -1
  27. package/dist/export/index.d.ts +0 -1
  28. package/dist/export/index.js +5 -4
  29. package/dist/export/pages/CreateExportPage.d.ts +1 -2
  30. package/dist/export/pages/CreateExportPage.js +228 -229
  31. package/dist/export/pages/CreateExportPage.js.map +1 -1
  32. package/dist/export/pages/ExportDashboardPage.d.ts +1 -2
  33. package/dist/export/pages/ExportDashboardPage.js +17 -18
  34. package/dist/export/pages/ExportDashboardPage.js.map +1 -1
  35. package/dist/export/pages/ExportDetailPage.d.ts +1 -2
  36. package/dist/export/pages/ExportDetailPage.js +39 -40
  37. package/dist/export/pages/ExportDetailPage.js.map +1 -1
  38. package/dist/export/pages/ExportHistoryPage.d.ts +1 -2
  39. package/dist/export/pages/ExportHistoryPage.js +21 -20
  40. package/dist/export/pages/ExportHistoryPage.js.map +1 -1
  41. package/dist/export/pages/ExportLandingPage.d.ts +1 -2
  42. package/dist/export/pages/ExportLandingPage.js +1 -2
  43. package/dist/export/pages/ExportLandingPage.js.map +1 -1
  44. package/dist/export/pages/ExportTemplatesPage.d.ts +1 -2
  45. package/dist/export/pages/ExportTemplatesPage.js +25 -30
  46. package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
  47. package/dist/export/pages/TemplateDetailPage.d.ts +1 -2
  48. package/dist/export/pages/TemplateDetailPage.js +11 -12
  49. package/dist/export/pages/TemplateDetailPage.js.map +1 -1
  50. package/dist/export/providers/ExportProvider.d.ts +0 -2
  51. package/dist/export/providers/ExportProvider.js +12 -16
  52. package/dist/export/providers/ExportProvider.js.map +1 -1
  53. package/dist/export/store/exportStore.d.ts +0 -2
  54. package/dist/export/store/exportStore.js +1 -2
  55. package/dist/export/store/exportStore.js.map +1 -1
  56. package/dist/export/types/index.d.ts +0 -1
  57. package/dist/export/utils/cn.d.ts +0 -2
  58. package/dist/export/utils/cn.js +2 -3
  59. package/dist/export/utils/cn.js.map +1 -1
  60. package/dist/export/utils/disabledModules.d.ts +0 -1
  61. package/dist/export/utils/disabledModules.js +3 -4
  62. package/dist/export/utils/disabledModules.js.map +1 -1
  63. package/dist/export/utils/events.d.ts +0 -2
  64. package/dist/export/utils/events.js +1 -2
  65. package/dist/export/utils/events.js.map +1 -1
  66. package/dist/export/utils/exportAuthority.d.ts +1 -6
  67. package/dist/export/utils/exportAuthority.js +5 -30
  68. package/dist/export/utils/exportAuthority.js.map +1 -1
  69. package/dist/export/utils/i18n.d.ts +0 -2
  70. package/dist/export/utils/i18n.js +1 -2
  71. package/dist/export/utils/i18n.js.map +1 -1
  72. package/dist/generated/global-operations.d.ts +4 -2
  73. package/dist/generated/global-types.d.ts +2 -22
  74. package/dist/generated/wspace-operations.d.ts +226 -181
  75. package/dist/generated/wspace-operations.js +1 -2
  76. package/dist/generated/wspace-operations.js.map +1 -1
  77. package/dist/generated/wspace-types.d.ts +4 -24
  78. package/dist/generated/wspace-types.js +1 -2
  79. package/dist/generated/wspace-types.js.map +1 -1
  80. package/dist/index.d.ts +0 -1
  81. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
  82. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
  83. package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
  84. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
  85. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +7 -8
  86. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -1
  87. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +15 -16
  88. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -1
  89. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +5 -6
  90. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -1
  91. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -1
  92. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
  93. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +4 -5
  94. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -1
  95. package/dist/node_modules/@apollo/client/utilities/internal/caches.js +1 -2
  96. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
  97. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +1 -2
  98. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -1
  99. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +2 -3
  100. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -1
  101. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +1 -2
  102. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
  103. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +1 -2
  104. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -1
  105. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +1 -2
  106. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -1
  107. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +1 -2
  108. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -1
  109. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +1 -2
  110. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -1
  111. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +1 -2
  112. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -1
  113. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +1 -2
  114. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -1
  115. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +1 -2
  116. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -1
  117. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +1 -2
  118. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -1
  119. package/dist/node_modules/@apollo/client/utilities/invariant/index.js +2 -3
  120. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -1
  121. package/dist/node_modules/@apollo/client/version.js +2 -3
  122. package/dist/node_modules/@apollo/client/version.js.map +1 -1
  123. package/dist/node_modules/@wry/caches/lib/weak.js +1 -2
  124. package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -1
  125. package/dist/node_modules/@wry/trie/lib/index.js +2 -3
  126. package/dist/node_modules/@wry/trie/lib/index.js.map +1 -1
  127. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  128. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  129. package/dist/node_modules/graphql-ws/dist/client.js +76 -69
  130. package/dist/node_modules/graphql-ws/dist/client.js.map +1 -1
  131. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +2 -3
  132. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -1
  133. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +2 -3
  134. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -1
  135. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +41 -42
  136. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -1
  137. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +14 -15
  138. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -1
  139. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +21 -18
  140. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
  141. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +1 -2
  142. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -1
  143. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +1 -2
  144. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -1
  145. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +2 -3
  146. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -1
  147. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +1 -2
  148. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -1
  149. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +1 -2
  150. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -1
  151. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +1 -2
  152. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -1
  153. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +1 -2
  154. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -1
  155. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +1 -2
  156. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -1
  157. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +1 -2
  158. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -1
  159. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +1 -2
  160. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -1
  161. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +1 -2
  162. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -1
  163. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +1 -2
  164. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -1
  165. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +1 -2
  166. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -1
  167. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
  168. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  169. package/dist/node_modules/{rxjs/node_modules/tslib → tslib}/tslib.es6.js +1 -2
  170. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  171. package/dist/test/happydom.d.ts +1 -0
  172. package/dist/translations/en.d.ts +0 -1
  173. package/dist/translations/en.js +1 -2
  174. package/dist/translations/en.js.map +1 -1
  175. package/dist/utils/nativeBridge.d.ts +0 -1
  176. package/dist/utils/nativeBridge.js +1 -2
  177. package/package.json +62 -46
  178. package/dist/dev/main.d.ts.map +0 -1
  179. package/dist/export/ExportRoot.d.ts.map +0 -1
  180. package/dist/export/ExportRoutes.d.ts.map +0 -1
  181. package/dist/export/components/ExportProgressBar.d.ts.map +0 -1
  182. package/dist/export/components/ExportStatusBadge.d.ts.map +0 -1
  183. package/dist/export/components/PageLayout.d.ts.map +0 -1
  184. package/dist/export/constants/enums.d.ts.map +0 -1
  185. package/dist/export/constants/index.d.ts.map +0 -1
  186. package/dist/export/hooks/useExportQueries.d.ts.map +0 -1
  187. package/dist/export/hooks/useTr.d.ts.map +0 -1
  188. package/dist/export/index.d.ts.map +0 -1
  189. package/dist/export/pages/CreateExportPage.d.ts.map +0 -1
  190. package/dist/export/pages/ExportDashboardPage.d.ts.map +0 -1
  191. package/dist/export/pages/ExportDetailPage.d.ts.map +0 -1
  192. package/dist/export/pages/ExportHistoryPage.d.ts.map +0 -1
  193. package/dist/export/pages/ExportLandingPage.d.ts.map +0 -1
  194. package/dist/export/pages/ExportTemplatesPage.d.ts.map +0 -1
  195. package/dist/export/pages/TemplateDetailPage.d.ts.map +0 -1
  196. package/dist/export/providers/ExportProvider.d.ts.map +0 -1
  197. package/dist/export/store/exportStore.d.ts.map +0 -1
  198. package/dist/export/types/index.d.ts.map +0 -1
  199. package/dist/export/utils/cn.d.ts.map +0 -1
  200. package/dist/export/utils/disabledModules.d.ts.map +0 -1
  201. package/dist/export/utils/events.d.ts.map +0 -1
  202. package/dist/export/utils/exportAuthority.d.ts.map +0 -1
  203. package/dist/export/utils/i18n.d.ts.map +0 -1
  204. package/dist/generated/global-operations.d.ts.map +0 -1
  205. package/dist/generated/global-types.d.ts.map +0 -1
  206. package/dist/generated/wspace-operations.d.ts.map +0 -1
  207. package/dist/generated/wspace-types.d.ts.map +0 -1
  208. package/dist/index.d.ts.map +0 -1
  209. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +0 -1
  210. package/dist/translations/en.d.ts.map +0 -1
  211. 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
@@ -6,11 +6,12 @@ import { Clock as i, Download as a, FileBox as o, Plus as s } from "lucide-react
6
6
  import { FeatureFlagProvider as c } from "@burdenoff/fe-libs/shared/feature-flags";
7
7
  import { PermissionProvider as l } from "@burdenoff/fe-libs/shared/providers/shell";
8
8
  import { jsx as u } from "react/jsx-runtime";
9
- //#region src/export/ExportRoot.tsx
9
+ // src/export/ExportRoot.tsx
10
10
  var d = (d) => {
11
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
12
  return r(() => {
13
- if (f) return f({
13
+ if (!f) return;
14
+ let e = {
14
15
  id: "export",
15
16
  label: g("export.nav.root", "Export"),
16
17
  path: m,
@@ -47,19 +48,22 @@ var d = (d) => {
47
48
  order: 40
48
49
  }
49
50
  ]
50
- });
51
+ };
52
+ return f(e);
51
53
  }, [
52
54
  f,
53
55
  m,
54
56
  g
55
57
  ]), r(() => {
56
- if (p) return p([{
58
+ if (!p) return;
59
+ let e = [{
57
60
  id: "export-status",
58
61
  label: g("export.nav.footerStatus", "Export Ready"),
59
62
  type: "status",
60
63
  order: 10,
61
64
  section: "left"
62
- }]);
65
+ }];
66
+ return p(e);
63
67
  }, [p, g]), /* @__PURE__ */ u(c, {
64
68
  workspaceId: h ?? null,
65
69
  gateway: "global",
@@ -74,7 +78,6 @@ var d = (d) => {
74
78
  })
75
79
  });
76
80
  };
77
- //#endregion
78
81
  export { d as ExportRoot };
79
82
 
80
83
  //# 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,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tr","useTr","joinPath","base","path","useEffect","registerNavItems","exportNavItem","basePath","Download","FileBox","Plus","Clock","registerFooterItems","footerItems","FeatureFlagProvider","workspaceId","PermissionProvider","ExportProvider","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\";\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,IAAaA,KAAmC,MAAU;CACxD,IAAM,EACJ,qBACA,wBACA,cAAW,KACX,mBACEC,GACEC,IAAKC,EAAM,GAGXC,KAAY,GAAc,OACZC,EAAK,SAAS,GAAG,IAAIA,EAAK,MAAM,GAAG,EAAE,IAAIA,MACzCC,EA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AASD,KAAe;GAAM,SAAQ;GACxD,UAAA,kBAACE,GAAD;IAAgB,GAAInB;IAClB,UAAA,kBAACoB,GAAD,CAAe,CAAA;GACD,CAAA;EACE,CAAA;CACD,CAAA;AAEzB"}
@@ -10,5 +10,4 @@
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
+ export declare function ExportRoutes(): import('react').JSX.Element;
@@ -5,7 +5,7 @@ import { AlertTriangle as a, Loader2 as o, RefreshCw as s } from "lucide-react";
5
5
  import { FeatureGate as c } from "@burdenoff/fe-libs/shared/feature-flags";
6
6
  import { Navigate as l, Route as u, Routes as d } from "react-router";
7
7
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
8
- //#region src/export/ExportRoutes.tsx
8
+ // src/export/ExportRoutes.tsx
9
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
10
  function y() {
11
11
  return /* @__PURE__ */ f("div", {
@@ -143,7 +143,6 @@ function C() {
143
143
  })
144
144
  }) });
145
145
  }
146
- //#endregion
147
146
  export { C as ExportRoutes };
148
147
 
149
148
  //# 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>\n );\n}\n"],"mappings":";;;;;;;;AAgBA,IAAM,IAAmB,QACvB,OAAO,+BAA4B,MAAM,OAAO,EAC9C,SAAS,EAAE,kBACZ,EAAE,CACJ,EACK,IAAoB,QACxB,OAAO,gCAA6B,MAAM,OAAO,EAC/C,SAAS,EAAE,mBACZ,EAAE,CACJ,EACK,IAAmB,QACvB,OAAO,+BAA4B,MAAM,OAAO,EAC9C,SAAS,EAAE,kBACZ,EAAE,CACJ,EACK,IAAsB,QAC1B,OAAO,kCAA+B,MAAM,OAAO,EACjD,SAAS,EAAE,qBACZ,EAAE,CACJ,EACK,IAAqB,QACzB,OAAO,iCAA8B,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
1
+ {"version":3,"file":"ExportRoutes.js","names":["CreateExportPage","lazy","m","ExportHistoryPage","ExportDetailPage","ExportTemplatesPage","TemplateDetailPage","PageLoader","Loader2","LazyErrorFallback","tr","useTr","AlertTriangle","error","onRetry","RefreshCw","LazyErrorBoundary","Component","props","errorInfo","ExportDisabledFallback","ExportRoutes","FeatureGate","Suspense","Routes","Route","ExportLandingPage","Navigate"],"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 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 */\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 </Laz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,kBAACC,GAAD,CAAoB,CAAA;IAAI,CAAA;IAG9C,kBAACD,GAAD;KAAO,MAAK;KAAM,SAAS,kBAACzB,GAAD,CAAmB,CAAA;IAAI,CAAA;IAGlD,kBAACyB,GAAD;KAAO,MAAK;KAAU,SAAS,kBAACtB,GAAD,CAAoB,CAAA;IAAI,CAAA;IAGvD,kBAACsB,GAAD;KAAO,MAAK;KAAS,SAAS,kBAACrB,GAAD,CAAmB,CAAA;IAAI,CAAA;IAGrD,kBAACqB,GAAD;KAAO,MAAK;KAAY,SAAS,kBAACpB,GAAD,CAAsB,CAAA;IAAI,CAAA;IAC3D,kBAACoB,GAAD;KACE,MAAK;KACL,SAAS,kBAACnB,GAAD,CAAqB,CAAA;IAC/B,CAAA;IAGD,kBAACmB,GAAD;KAAO,MAAK;KAAI,SAAS,kBAACE,GAAD;MAAU,IAAG;MAAG,SAAA;KAAS,CAAA;IAAI,CAAA;GAChD,EAAA,CAAA;EACA,CAAA;CACC,CAAA,EACI,CAAA;AAEvB"}
@@ -7,6 +7,5 @@ interface ExportProgressBarProps {
7
7
  /**
8
8
  * ExportProgressBar - Shows export progress percentage
9
9
  */
10
- export declare function ExportProgressBar({ progress, className, showLabel, size, }: ExportProgressBarProps): import("react").JSX.Element;
10
+ export declare function ExportProgressBar({ progress, className, showLabel, size, }: ExportProgressBarProps): import('react').JSX.Element;
11
11
  export {};
12
- //# sourceMappingURL=ExportProgressBar.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { useTr as e } from "../hooks/useTr.js";
2
2
  import { cn as t } from "../utils/cn.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
- //#region src/export/components/ExportProgressBar.tsx
4
+ // src/export/components/ExportProgressBar.tsx
5
5
  var i = {
6
6
  sm: "h-1.5",
7
7
  md: "h-2.5",
@@ -29,7 +29,6 @@ function a({ progress: a, className: o, showLabel: s = !0, size: c = "md" }) {
29
29
  })]
30
30
  });
31
31
  }
32
- //#endregion
33
32
  export { a as ExportProgressBar };
34
33
 
35
34
  //# sourceMappingURL=ExportProgressBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExportProgressBar.js","names":[],"sources":["../../../src/export/components/ExportProgressBar.tsx"],"sourcesContent":["import { useTr } from \"../hooks/useTr\";\nimport { cn } from \"../utils/cn\";\n\ninterface ExportProgressBarProps {\n progress: number;\n className?: string;\n showLabel?: boolean;\n size?: \"sm\" | \"md\" | \"lg\";\n}\n\nconst sizeClasses = {\n sm: \"h-1.5\",\n md: \"h-2.5\",\n lg: \"h-4\",\n};\n\n/**\n * ExportProgressBar - Shows export progress percentage\n */\nexport function ExportProgressBar({\n progress,\n className,\n showLabel = true,\n size = \"md\",\n}: ExportProgressBarProps) {\n const tr = useTr();\n const clampedProgress = Math.min(100, Math.max(0, progress));\n\n return (\n <div className={cn(\"w-full\", className)}>\n {showLabel && (\n <div className=\"flex items-center justify-between mb-1\">\n <span className=\"text-xs font-medium text-text-secondary\">\n {tr(\"export.progress.label\", \"Progress\")}\n </span>\n <span className=\"text-xs font-semibold text-text-primary\">\n {Math.round(clampedProgress)}%\n </span>\n </div>\n )}\n <div\n className={cn(\n \"w-full bg-bg-sunken rounded-full overflow-hidden\",\n sizeClasses[size],\n )}\n >\n <div\n className={cn(\n \"h-full rounded-full transition-all duration-500 ease-out\",\n clampedProgress === 100\n ? \"bg-status-success-bg\"\n : \"bg-action-primary-bg bg-gradient-to-r from-primary to-primary/80\",\n )}\n style={{ width: `${clampedProgress}%` }}\n />\n </div>\n </div>\n );\n}\n"],"mappings":";;;;AAUA,IAAM,IAAc;CAClB,IAAI;CACJ,IAAI;CACJ,IAAI;CACL;AAKD,SAAgB,EAAkB,EAChC,aACA,cACA,eAAY,IACZ,UAAO,QACkB;CACzB,IAAM,IAAK,GAAO,EACZ,IAAkB,KAAK,IAAI,KAAK,KAAK,IAAI,GAAG,EAAS,CAAC;AAE5D,QACE,kBAAC,OAAD;EAAK,WAAW,EAAG,UAAU,EAAU;YAAvC,CACG,KACC,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,QAAD;IAAM,WAAU;cACb,EAAG,yBAAyB,WAAW;IACnC,CAAA,EACP,kBAAC,QAAD;IAAM,WAAU;cAAhB,CACG,KAAK,MAAM,EAAgB,EAAC,IACxB;MACH;MAER,kBAAC,OAAD;GACE,WAAW,EACT,oDACA,EAAY,GACb;aAED,kBAAC,OAAD;IACE,WAAW,EACT,4DACA,MAAoB,MAChB,yBACA,mEACL;IACD,OAAO,EAAE,OAAO,GAAG,EAAgB,IAAI;IACvC,CAAA;GACE,CAAA,CACF"}
1
+ {"version":3,"file":"ExportProgressBar.js","names":["sizeClasses","ExportProgressBar","tr","useTr","clampedProgress","progress","cn","className","showLabel","size"],"sources":["../../../src/export/components/ExportProgressBar.tsx"],"sourcesContent":["import { useTr } from \"../hooks/useTr\";\nimport { cn } from \"../utils/cn\";\n\ninterface ExportProgressBarProps {\n progress: number;\n className?: string;\n showLabel?: boolean;\n size?: \"sm\" | \"md\" | \"lg\";\n}\n\nconst sizeClasses = {\n sm: \"h-1.5\",\n md: \"h-2.5\",\n lg: \"h-4\",\n};\n\n/**\n * ExportProgressBar - Shows export progress percentage\n */\nexport function ExportProgressBar({\n progress,\n className,\n showLabel = true,\n size = \"md\",\n}: ExportProgressBarProps) {\n const tr = useTr();\n const clampedProgress = Math.min(100, Math.max(0, progress));\n\n return (\n <div className={cn(\"w-full\", className)}>\n {showLabel && (\n <div className=\"flex items-center justify-between mb-1\">\n <span className=\"text-xs font-medium text-text-secondary\">\n {tr(\"export.progress.label\", \"Progress\")}\n </span>\n <span className=\"text-xs font-semibold text-text-primary\">\n {Math.round(clampedProgress)}%\n </span>\n </div>\n )}\n <div\n className={cn(\n \"w-full bg-bg-sunken rounded-full overflow-hidden\",\n sizeClasses[size],\n )}\n >\n <div\n className={cn(\n \"h-full rounded-full transition-all duration-500 ease-out\",\n clampedProgress === 100\n ? \"bg-status-success-bg\"\n : \"bg-action-primary-bg bg-gradient-to-r from-primary to-primary/80\",\n )}\n style={{ width: `${clampedProgress}%` }}\n />\n </div>\n </div>\n );\n}\n"],"mappings":";;;;AAUA,IAAMA,IAAc;CAClB,IAAI;CACJ,IAAI;CACJ,IAAI;AACN;AAKA,SAAgBC,EAAkB,EAChC,aACA,cACA,eAAY,IACZ,UAAO,QACkB;CACzB,IAAMC,IAAKC,EAAM,GACXC,IAAkB,KAAK,IAAI,KAAK,KAAK,IAAI,GAAGC,CAAQ,CAAC;CAE3D,OACE,kBAAC,OAAD;EAAK,WAAWC,EAAG,UAAUC,CAAS;EAAtC,UAAA,CACGC,KACC,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,kBAAC,QAAD;IAAM,WAAU;IACb,UAAAN,EAAG,yBAAyB,UAAU;GACnC,CAAA,GACN,kBAAC,QAAD;IAAM,WAAU;IAAhB,UAAA,CACG,KAAK,MAAME,CAAe,GAAE,GACzB;GACH,CAAA,CAAA;EAEP,CAAA,GAAA,kBAAC,OAAD;GACE,WAAWE,EACT,oDACAN,EAAYS,EACd;GAEA,UAAA,kBAAC,OAAD;IACE,WAAWH,EACT,4DACAF,MAAoB,MAChB,yBACA,kEACN;IACA,OAAO,EAAE,OAAO,GAAGA,EAAgB,GAAG;GACvC,CAAA;EACE,CAAA,CACF;;AAET"}
@@ -1,5 +1,4 @@
1
1
  import { ExportJobStatus } from '../types';
2
-
3
2
  interface ExportStatusBadgeProps {
4
3
  status: ExportJobStatus;
5
4
  className?: string;
@@ -7,6 +6,5 @@ interface ExportStatusBadgeProps {
7
6
  /**
8
7
  * ExportStatusBadge - Renders a colored badge for export job status
9
8
  */
10
- export declare function ExportStatusBadge({ status, className, }: ExportStatusBadgeProps): import("react").JSX.Element;
9
+ export declare function ExportStatusBadge({ status, className, }: ExportStatusBadgeProps): import('react').JSX.Element;
11
10
  export {};
12
- //# sourceMappingURL=ExportStatusBadge.d.ts.map
@@ -1,8 +1,8 @@
1
- import { useTr as e } from "../hooks/useTr.js";
2
- import { cn as t } from "../utils/cn.js";
3
- import { getStatusDisplayName as n } from "../constants/enums.js";
1
+ import { cn as e } from "../utils/cn.js";
2
+ import { getStatusDisplayName as t } from "../constants/enums.js";
3
+ import { useTr as n } from "../hooks/useTr.js";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/export/components/ExportStatusBadge.tsx
5
+ // src/export/components/ExportStatusBadge.tsx
6
6
  var a = {
7
7
  CREATED: "bg-status-info-bg-subtle text-status-info-text",
8
8
  QUEUED: "bg-status-warning-bg-subtle text-status-warning-text",
@@ -14,7 +14,7 @@ var a = {
14
14
  DELETED: "bg-bg-sunken text-text-tertiary"
15
15
  };
16
16
  function o({ status: o, className: s }) {
17
- let c = e(), l = {
17
+ let c = n(), l = {
18
18
  CREATED: c("export.shared.status.created", "Created"),
19
19
  QUEUED: c("export.shared.status.queued", "Queued"),
20
20
  RUNNING: c("export.shared.status.running", "Running"),
@@ -23,16 +23,15 @@ function o({ status: o, className: s }) {
23
23
  CANCELLED: c("export.shared.status.cancelled", "Cancelled"),
24
24
  EXPIRED: c("export.shared.status.expired", "Expired"),
25
25
  DELETED: c("export.shared.status.deleted", "Deleted")
26
- }[o] ?? n(o);
26
+ }[o] ?? t(o);
27
27
  return /* @__PURE__ */ i("span", {
28
- className: t("inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium", a[o], s),
28
+ className: e("inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium", a[o], s),
29
29
  children: [o === "RUNNING" && /* @__PURE__ */ i("span", {
30
30
  className: "relative flex size-2",
31
31
  children: [/* @__PURE__ */ r("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-accent-blue opacity-75" }), /* @__PURE__ */ r("span", { className: "relative inline-flex rounded-full size-2 bg-accent-blue" })]
32
32
  }), l]
33
33
  });
34
34
  }
35
- //#endregion
36
35
  export { o as ExportStatusBadge };
37
36
 
38
37
  //# sourceMappingURL=ExportStatusBadge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExportStatusBadge.js","names":[],"sources":["../../../src/export/components/ExportStatusBadge.tsx"],"sourcesContent":["import { cn } from \"../utils/cn\";\nimport { getStatusDisplayName } from \"../constants/enums\";\nimport { useTr } from \"../hooks/useTr\";\nimport type { ExportJobStatus } from \"../types\";\n\ninterface ExportStatusBadgeProps {\n status: ExportJobStatus;\n className?: string;\n}\n\nconst statusStyles: Record<ExportJobStatus, string> = {\n CREATED: \"bg-status-info-bg-subtle text-status-info-text\",\n QUEUED: \"bg-status-warning-bg-subtle text-status-warning-text\",\n RUNNING:\n \"bg-status-info-bg-subtle text-status-info-text motion-safe:animate-vc-glow-pulse\",\n COMPLETED: \"bg-status-success-bg-subtle text-status-success-text\",\n FAILED: \"bg-status-error-bg-subtle text-status-error-text\",\n CANCELLED: \"bg-bg-sunken text-text-secondary\",\n EXPIRED: \"bg-accent-orange-subtle text-accent-orange\",\n DELETED: \"bg-bg-sunken text-text-tertiary\",\n};\n\n/**\n * ExportStatusBadge - Renders a colored badge for export job status\n */\nexport function ExportStatusBadge({\n status,\n className,\n}: ExportStatusBadgeProps) {\n const tr = useTr();\n\n const statusLabel =\n {\n CREATED: tr(\"export.shared.status.created\", \"Created\"),\n QUEUED: tr(\"export.shared.status.queued\", \"Queued\"),\n RUNNING: tr(\"export.shared.status.running\", \"Running\"),\n COMPLETED: tr(\"export.shared.status.completed\", \"Completed\"),\n FAILED: tr(\"export.shared.status.failed\", \"Failed\"),\n CANCELLED: tr(\"export.shared.status.cancelled\", \"Cancelled\"),\n EXPIRED: tr(\"export.shared.status.expired\", \"Expired\"),\n DELETED: tr(\"export.shared.status.deleted\", \"Deleted\"),\n }[status] ?? getStatusDisplayName(status);\n\n return (\n <span\n className={cn(\n \"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium\",\n statusStyles[status],\n className,\n )}\n >\n {status === \"RUNNING\" && (\n <span className=\"relative flex size-2\">\n <span className=\"animate-ping absolute inline-flex h-full w-full rounded-full bg-accent-blue opacity-75\" />\n <span className=\"relative inline-flex rounded-full size-2 bg-accent-blue\" />\n </span>\n )}\n {statusLabel}\n </span>\n );\n}\n"],"mappings":";;;;;AAUA,IAAM,IAAgD;CACpD,SAAS;CACT,QAAQ;CACR,SACE;CACF,WAAW;CACX,QAAQ;CACR,WAAW;CACX,SAAS;CACT,SAAS;CACV;AAKD,SAAgB,EAAkB,EAChC,WACA,gBACyB;CACzB,IAAM,IAAK,GAAO,EAEZ,IACJ;EACE,SAAS,EAAG,gCAAgC,UAAU;EACtD,QAAQ,EAAG,+BAA+B,SAAS;EACnD,SAAS,EAAG,gCAAgC,UAAU;EACtD,WAAW,EAAG,kCAAkC,YAAY;EAC5D,QAAQ,EAAG,+BAA+B,SAAS;EACnD,WAAW,EAAG,kCAAkC,YAAY;EAC5D,SAAS,EAAG,gCAAgC,UAAU;EACtD,SAAS,EAAG,gCAAgC,UAAU;EACvD,CAAC,MAAW,EAAqB,EAAO;AAE3C,QACE,kBAAC,QAAD;EACE,WAAW,EACT,mFACA,EAAa,IACb,EACD;YALH,CAOG,MAAW,aACV,kBAAC,QAAD;GAAM,WAAU;aAAhB,CACE,kBAAC,QAAD,EAAM,WAAU,0FAA2F,CAAA,EAC3G,kBAAC,QAAD,EAAM,WAAU,2DAA4D,CAAA,CACvE;MAER,EACI"}
1
+ {"version":3,"file":"ExportStatusBadge.js","names":["statusStyles","ExportStatusBadge","tr","useTr","statusLabel","status","getStatusDisplayName","cn","className"],"sources":["../../../src/export/components/ExportStatusBadge.tsx"],"sourcesContent":["import { cn } from \"../utils/cn\";\nimport { getStatusDisplayName } from \"../constants/enums\";\nimport { useTr } from \"../hooks/useTr\";\nimport type { ExportJobStatus } from \"../types\";\n\ninterface ExportStatusBadgeProps {\n status: ExportJobStatus;\n className?: string;\n}\n\nconst statusStyles: Record<ExportJobStatus, string> = {\n CREATED: \"bg-status-info-bg-subtle text-status-info-text\",\n QUEUED: \"bg-status-warning-bg-subtle text-status-warning-text\",\n RUNNING:\n \"bg-status-info-bg-subtle text-status-info-text motion-safe:animate-vc-glow-pulse\",\n COMPLETED: \"bg-status-success-bg-subtle text-status-success-text\",\n FAILED: \"bg-status-error-bg-subtle text-status-error-text\",\n CANCELLED: \"bg-bg-sunken text-text-secondary\",\n EXPIRED: \"bg-accent-orange-subtle text-accent-orange\",\n DELETED: \"bg-bg-sunken text-text-tertiary\",\n};\n\n/**\n * ExportStatusBadge - Renders a colored badge for export job status\n */\nexport function ExportStatusBadge({\n status,\n className,\n}: ExportStatusBadgeProps) {\n const tr = useTr();\n\n const statusLabel =\n {\n CREATED: tr(\"export.shared.status.created\", \"Created\"),\n QUEUED: tr(\"export.shared.status.queued\", \"Queued\"),\n RUNNING: tr(\"export.shared.status.running\", \"Running\"),\n COMPLETED: tr(\"export.shared.status.completed\", \"Completed\"),\n FAILED: tr(\"export.shared.status.failed\", \"Failed\"),\n CANCELLED: tr(\"export.shared.status.cancelled\", \"Cancelled\"),\n EXPIRED: tr(\"export.shared.status.expired\", \"Expired\"),\n DELETED: tr(\"export.shared.status.deleted\", \"Deleted\"),\n }[status] ?? getStatusDisplayName(status);\n\n return (\n <span\n className={cn(\n \"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium\",\n statusStyles[status],\n className,\n )}\n >\n {status === \"RUNNING\" && (\n <span className=\"relative flex size-2\">\n <span className=\"animate-ping absolute inline-flex h-full w-full rounded-full bg-accent-blue opacity-75\" />\n <span className=\"relative inline-flex rounded-full size-2 bg-accent-blue\" />\n </span>\n )}\n {statusLabel}\n </span>\n );\n}\n"],"mappings":";;;;;AAUA,IAAMA,IAAgD;CACpD,SAAS;CACT,QAAQ;CACR,SACE;CACF,WAAW;CACX,QAAQ;CACR,WAAW;CACX,SAAS;CACT,SAAS;AACX;AAKA,SAAgBC,EAAkB,EAChC,WACA,gBACyB;CACzB,IAAMC,IAAKC,EAAM,GAEXC,IACJ;EACE,SAASF,EAAG,gCAAgC,SAAS;EACrD,QAAQA,EAAG,+BAA+B,QAAQ;EAClD,SAASA,EAAG,gCAAgC,SAAS;EACrD,WAAWA,EAAG,kCAAkC,WAAW;EAC3D,QAAQA,EAAG,+BAA+B,QAAQ;EAClD,WAAWA,EAAG,kCAAkC,WAAW;EAC3D,SAASA,EAAG,gCAAgC,SAAS;EACrD,SAASA,EAAG,gCAAgC,SAAS;CACvD,EAAEG,MAAWC,EAAqBD,CAAM;CAE1C,OACE,kBAAC,QAAD;EACE,WAAWE,EACT,mFACAP,EAAaK,IACbG,CACF;EALF,UAAA,CAOGH,MAAW,aACV,kBAAC,QAAD;GAAM,WAAU;GAAhB,UAAA,CACE,kBAAC,QAAD,EAAM,WAAU,yFAA0F,CAAA,GAC1G,kBAAC,QAAD,EAAM,WAAU,0DAA2D,CAAA,CACvE;EAEP,CAAA,GAAAD,CACG;;AAEV"}
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  interface PageLayoutProps {
4
3
  children: ReactNode;
5
4
  /** Page title */
@@ -30,7 +29,7 @@ interface PageLayoutProps {
30
29
  * - Animated entrance
31
30
  * - Consistent header styling
32
31
  */
33
- export declare function PageLayout({ children, title, subtitle, icon, headerActions, headerContent, maxWidth, showHeader, className, contentClassName, }: PageLayoutProps): import("react").JSX.Element;
32
+ export declare function PageLayout({ children, title, subtitle, icon, headerActions, headerContent, maxWidth, showHeader, className, contentClassName, }: PageLayoutProps): import('react').JSX.Element;
34
33
  /**
35
34
  * PageSection - A section within a page with consistent spacing
36
35
  */
@@ -40,7 +39,7 @@ export declare function PageSection({ children, title, description, actions, cla
40
39
  description?: string;
41
40
  actions?: ReactNode;
42
41
  className?: string;
43
- } & React.HTMLAttributes<HTMLElement>): import("react").JSX.Element;
42
+ } & React.HTMLAttributes<HTMLElement>): import('react').JSX.Element;
44
43
  /**
45
44
  * Local wrapper around the canonical `EmptyState` from `@burdenoff/fe-libs/ui`.
46
45
  * Keeps the existing microfe-export call sites stable while routing all
@@ -52,6 +51,5 @@ export declare function EmptyState({ icon, title, description, action, className
52
51
  description?: string;
53
52
  action?: ReactNode;
54
53
  className?: string;
55
- }): import("react").JSX.Element;
54
+ }): import('react').JSX.Element;
56
55
  export {};
57
- //# sourceMappingURL=PageLayout.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import "@burdenoff/fe-libs/ui";
4
- //#region src/export/components/PageLayout.tsx
4
+ // src/export/components/PageLayout.tsx
5
5
  var r = {
6
6
  sm: "max-w-screen-sm",
7
7
  md: "max-w-screen-md",
@@ -69,7 +69,6 @@ function a({ children: r, title: i, description: a, actions: o, className: s, ..
69
69
  }), r]
70
70
  });
71
71
  }
72
- //#endregion
73
72
  export { i as PageLayout, a as PageSection };
74
73
 
75
74
  //# sourceMappingURL=PageLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/export/components/PageLayout.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { EmptyState as CanonicalEmptyState } from \"@burdenoff/fe-libs/ui\";\nimport { cn } from \"../utils/cn\";\n\ninterface PageLayoutProps {\n children: ReactNode;\n /** Page title */\n title?: string;\n /** Page subtitle/description */\n subtitle?: string;\n /** Icon component to display next to title */\n icon?: ReactNode;\n /** Actions to display in header (buttons, etc.) */\n headerActions?: ReactNode;\n /** Additional header content below title */\n headerContent?: ReactNode;\n /** Maximum width of content: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full' */\n maxWidth?: \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\" | \"full\";\n /** Whether to show the header section */\n showHeader?: boolean;\n /** Additional CSS classes for the container */\n className?: string;\n /** Additional CSS classes for the content area */\n contentClassName?: string;\n}\n\nconst maxWidthClasses = {\n sm: \"max-w-screen-sm\", // 640px\n md: \"max-w-screen-md\", // 768px\n lg: \"max-w-screen-lg\", // 1024px\n xl: \"max-w-screen-xl\", // 1280px\n \"2xl\": \"max-w-screen-2xl\", // 1536px\n \"3xl\": \"max-w-[1600px]\",\n full: \"max-w-full\",\n};\n\n/**\n * PageLayout - A consistent page wrapper with responsive design\n *\n * Features:\n * - Proper max-width constraints\n * - Responsive padding\n * - Animated entrance\n * - Consistent header styling\n */\nexport function PageLayout({\n children,\n title,\n subtitle,\n icon,\n headerActions,\n headerContent,\n maxWidth = \"xl\",\n showHeader = true,\n className,\n contentClassName,\n}: PageLayoutProps) {\n return (\n <div\n className={cn(\n // Base styles - full width container with padding\n \"min-h-full w-full\",\n // Responsive horizontal padding\n \"px-4 sm:px-6 lg:px-8 xl:px-12\",\n // Responsive vertical padding\n \"py-6 sm:py-8 lg:py-10\",\n // Entrance animation\n \"animate-in fade-in-0 slide-in-from-bottom-4 duration-500\",\n className,\n )}\n >\n {/* Max-width constrained content container */}\n <div\n className={cn(\n \"mx-auto w-full\",\n maxWidthClasses[maxWidth],\n contentClassName,\n )}\n >\n {/* Page Header */}\n {showHeader && (title || headerActions) && (\n <header className=\"mb-6 sm:mb-8\">\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\">\n {/* Title Section */}\n <div className=\"space-y-1\">\n {(title || icon) && (\n <div className=\"flex items-center gap-3\">\n {icon && (\n <div className=\"flex-shrink-0 p-2.5 rounded-xl bg-action-primary-bg/10 text-primary\">\n {icon}\n </div>\n )}\n {title && (\n <h1 className=\"text-2xl sm:text-3xl font-bold tracking-tight text-text-primary\">\n {title}\n </h1>\n )}\n </div>\n )}\n {subtitle && (\n <p className=\"text-sm sm:text-base text-text-secondary max-w-2xl\">\n {subtitle}\n </p>\n )}\n </div>\n\n {/* Header Actions */}\n {headerActions && (\n <div className=\"flex items-center gap-2 flex-shrink-0\">\n {headerActions}\n </div>\n )}\n </div>\n\n {/* Additional Header Content */}\n {headerContent && <div className=\"mt-4\">{headerContent}</div>}\n </header>\n )}\n\n {/* Page content — must not use a <main> landmark here because the\n host shell (AppShellLayout) already renders one; nesting <main>\n elements is invalid HTML and an a11y violation. */}\n <div className=\"space-y-6\">{children}</div>\n </div>\n </div>\n );\n}\n\n/**\n * PageSection - A section within a page with consistent spacing\n */\nexport function PageSection({\n children,\n title,\n description,\n actions,\n className,\n ...rest\n}: {\n children: ReactNode;\n title?: string;\n description?: string;\n actions?: ReactNode;\n className?: string;\n} & React.HTMLAttributes<HTMLElement>) {\n return (\n <section className={cn(\"space-y-4\", className)} {...rest}>\n {(title || actions) && (\n <div className=\"flex items-center justify-between\">\n <div>\n {title && (\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {title}\n </h2>\n )}\n {description && (\n <p className=\"text-sm text-text-secondary\">{description}</p>\n )}\n </div>\n {actions && <div className=\"flex items-center gap-2\">{actions}</div>}\n </div>\n )}\n {children}\n </section>\n );\n}\n\n/**\n * Local wrapper around the canonical `EmptyState` from `@burdenoff/fe-libs/ui`.\n * Keeps the existing microfe-export call sites stable while routing all\n * empty-state rendering through the shared primitive.\n */\nexport function EmptyState({\n icon,\n title,\n description,\n action,\n className,\n}: {\n icon?: ReactNode;\n title: string;\n description?: string;\n action?: ReactNode;\n className?: string;\n}) {\n return (\n <div className={className}>\n <CanonicalEmptyState\n icon={icon}\n title={title}\n description={description}\n action={action}\n />\n </div>\n );\n}\n"],"mappings":";;;;AA0BA,IAAM,IAAkB;CACtB,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,MAAM;CACP;AAWD,SAAgB,EAAW,EACzB,aACA,UACA,aACA,SACA,kBACA,kBACA,cAAW,MACX,gBAAa,IACb,cACA,uBACkB;AAClB,QACE,kBAAC,OAAD;EACE,WAAW,EAET,qBAEA,iCAEA,yBAEA,4DACA,EACD;YAGD,kBAAC,OAAD;GACE,WAAW,EACT,kBACA,EAAgB,IAChB,EACD;aALH,CAQG,MAAe,KAAS,MACvB,kBAAC,UAAD;IAAQ,WAAU;cAAlB,CACE,kBAAC,OAAD;KAAK,WAAU;eAAf,CAEE,kBAAC,OAAD;MAAK,WAAU;gBAAf,EACI,KAAS,MACT,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACG,KACC,kBAAC,OAAD;QAAK,WAAU;kBACZ;QACG,CAAA,EAEP,KACC,kBAAC,MAAD;QAAI,WAAU;kBACX;QACE,CAAA,CAEH;UAEP,KACC,kBAAC,KAAD;OAAG,WAAU;iBACV;OACC,CAAA,CAEF;SAGL,KACC,kBAAC,OAAD;MAAK,WAAU;gBACZ;MACG,CAAA,CAEJ;QAGL,KAAiB,kBAAC,OAAD;KAAK,WAAU;eAAQ;KAAoB,CAAA,CACtD;OAMX,kBAAC,OAAD;IAAK,WAAU;IAAa;IAAe,CAAA,CACvC;;EACF,CAAA;;AAOV,SAAgB,EAAY,EAC1B,aACA,UACA,gBACA,YACA,cACA,GAAG,KAOkC;AACrC,QACE,kBAAC,WAAD;EAAS,WAAW,EAAG,aAAa,EAAU;EAAE,GAAI;YAApD,EACI,KAAS,MACT,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAAD,EAAA,UAAA,CACG,KACC,kBAAC,MAAD;IAAI,WAAU;cACX;IACE,CAAA,EAEN,KACC,kBAAC,KAAD;IAAG,WAAU;cAA+B;IAAgB,CAAA,CAE1D,EAAA,CAAA,EACL,KAAW,kBAAC,OAAD;IAAK,WAAU;cAA2B;IAAc,CAAA,CAChE;MAEP,EACO"}
1
+ {"version":3,"file":"PageLayout.js","names":["maxWidthClasses","PageLayout","cn","className","maxWidth","contentClassName","showHeader","title","headerActions","icon","subtitle","headerContent","PageSection","rest","actions","description","children"],"sources":["../../../src/export/components/PageLayout.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { EmptyState as CanonicalEmptyState } from \"@burdenoff/fe-libs/ui\";\nimport { cn } from \"../utils/cn\";\n\ninterface PageLayoutProps {\n children: ReactNode;\n /** Page title */\n title?: string;\n /** Page subtitle/description */\n subtitle?: string;\n /** Icon component to display next to title */\n icon?: ReactNode;\n /** Actions to display in header (buttons, etc.) */\n headerActions?: ReactNode;\n /** Additional header content below title */\n headerContent?: ReactNode;\n /** Maximum width of content: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full' */\n maxWidth?: \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\" | \"full\";\n /** Whether to show the header section */\n showHeader?: boolean;\n /** Additional CSS classes for the container */\n className?: string;\n /** Additional CSS classes for the content area */\n contentClassName?: string;\n}\n\nconst maxWidthClasses = {\n sm: \"max-w-screen-sm\", // 640px\n md: \"max-w-screen-md\", // 768px\n lg: \"max-w-screen-lg\", // 1024px\n xl: \"max-w-screen-xl\", // 1280px\n \"2xl\": \"max-w-screen-2xl\", // 1536px\n \"3xl\": \"max-w-[1600px]\",\n full: \"max-w-full\",\n};\n\n/**\n * PageLayout - A consistent page wrapper with responsive design\n *\n * Features:\n * - Proper max-width constraints\n * - Responsive padding\n * - Animated entrance\n * - Consistent header styling\n */\nexport function PageLayout({\n children,\n title,\n subtitle,\n icon,\n headerActions,\n headerContent,\n maxWidth = \"xl\",\n showHeader = true,\n className,\n contentClassName,\n}: PageLayoutProps) {\n return (\n <div\n className={cn(\n // Base styles - full width container with padding\n \"min-h-full w-full\",\n // Responsive horizontal padding\n \"px-4 sm:px-6 lg:px-8 xl:px-12\",\n // Responsive vertical padding\n \"py-6 sm:py-8 lg:py-10\",\n // Entrance animation\n \"animate-in fade-in-0 slide-in-from-bottom-4 duration-500\",\n className,\n )}\n >\n {/* Max-width constrained content container */}\n <div\n className={cn(\n \"mx-auto w-full\",\n maxWidthClasses[maxWidth],\n contentClassName,\n )}\n >\n {/* Page Header */}\n {showHeader && (title || headerActions) && (\n <header className=\"mb-6 sm:mb-8\">\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\">\n {/* Title Section */}\n <div className=\"space-y-1\">\n {(title || icon) && (\n <div className=\"flex items-center gap-3\">\n {icon && (\n <div className=\"flex-shrink-0 p-2.5 rounded-xl bg-action-primary-bg/10 text-primary\">\n {icon}\n </div>\n )}\n {title && (\n <h1 className=\"text-2xl sm:text-3xl font-bold tracking-tight text-text-primary\">\n {title}\n </h1>\n )}\n </div>\n )}\n {subtitle && (\n <p className=\"text-sm sm:text-base text-text-secondary max-w-2xl\">\n {subtitle}\n </p>\n )}\n </div>\n\n {/* Header Actions */}\n {headerActions && (\n <div className=\"flex items-center gap-2 flex-shrink-0\">\n {headerActions}\n </div>\n )}\n </div>\n\n {/* Additional Header Content */}\n {headerContent && <div className=\"mt-4\">{headerContent}</div>}\n </header>\n )}\n\n {/* Page content — must not use a <main> landmark here because the\n host shell (AppShellLayout) already renders one; nesting <main>\n elements is invalid HTML and an a11y violation. */}\n <div className=\"space-y-6\">{children}</div>\n </div>\n </div>\n );\n}\n\n/**\n * PageSection - A section within a page with consistent spacing\n */\nexport function PageSection({\n children,\n title,\n description,\n actions,\n className,\n ...rest\n}: {\n children: ReactNode;\n title?: string;\n description?: string;\n actions?: ReactNode;\n className?: string;\n} & React.HTMLAttributes<HTMLElement>) {\n return (\n <section className={cn(\"space-y-4\", className)} {...rest}>\n {(title || actions) && (\n <div className=\"flex items-center justify-between\">\n <div>\n {title && (\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {title}\n </h2>\n )}\n {description && (\n <p className=\"text-sm text-text-secondary\">{description}</p>\n )}\n </div>\n {actions && <div className=\"flex items-center gap-2\">{actions}</div>}\n </div>\n )}\n {children}\n </section>\n );\n}\n\n/**\n * Local wrapper around the canonical `EmptyState` from `@burdenoff/fe-libs/ui`.\n * Keeps the existing microfe-export call sites stable while routing all\n * empty-state rendering through the shared primitive.\n */\nexport function EmptyState({\n icon,\n title,\n description,\n action,\n className,\n}: {\n icon?: ReactNode;\n title: string;\n description?: string;\n action?: ReactNode;\n className?: string;\n}) {\n return (\n <div className={className}>\n <CanonicalEmptyState\n icon={icon}\n title={title}\n description={description}\n action={action}\n />\n </div>\n );\n}\n"],"mappings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BAAC,OAAD,EAAA,UAAA,CACGP,KACC,kBAAC,MAAD;IAAI,WAAU;IACX,UAAAA;GACC,CAAA,GAELQ,KACC,kBAAC,KAAD;IAAG,WAAU;IAA+B,UAAAA;GAAe,CAAA,CAE1D,EAAA,CAAA,GACJD,KAAW,kBAAC,OAAD;IAAK,WAAU;IAA2B,UAAAA;GAAa,CAAA,CAChE;EAEN,CAAA,GAAAE,CACM;;AAEb"}
@@ -1,5 +1,4 @@
1
1
  import { ExportJobStatus } from '../types';
2
-
3
2
  /**
4
3
  * Helper: Get status display name
5
4
  */
@@ -16,4 +15,3 @@ export declare const getArchiveFormatDisplayName: (format: string) => string;
16
15
  * Helper: Get all export statuses as array
17
16
  */
18
17
  export declare const getAllStatuses: () => ExportJobStatus[];
19
- //# sourceMappingURL=enums.d.ts.map
@@ -1,4 +1,4 @@
1
- //#region src/export/constants/enums.ts
1
+ // src/export/constants/enums.ts
2
2
  var e = (e) => ({
3
3
  CREATED: "Created",
4
4
  QUEUED: "Queued",
@@ -21,7 +21,6 @@ var e = (e) => ({
21
21
  "EXPIRED",
22
22
  "DELETED"
23
23
  ];
24
- //#endregion
25
24
  export { r as getAllStatuses, n as getArchiveFormatDisplayName, t as getFormatDisplayName, e as getStatusDisplayName };
26
25
 
27
26
  //# sourceMappingURL=enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","names":[],"sources":["../../../src/export/constants/enums.ts"],"sourcesContent":["/**\n * GraphQL Enum Display Helpers\n *\n * Display-name helpers for export job and format enums.\n * Enum value sets are sourced from the canonical type definitions in `../types`.\n */\n\nimport type { ExportJobStatus } from \"../types\";\n\n/**\n * Helper: Get status display name\n */\nexport const getStatusDisplayName = (status: string): string => {\n const names: Record<string, string> = {\n CREATED: \"Created\",\n QUEUED: \"Queued\",\n RUNNING: \"Running\",\n COMPLETED: \"Completed\",\n FAILED: \"Failed\",\n CANCELLED: \"Cancelled\",\n EXPIRED: \"Expired\",\n DELETED: \"Deleted\",\n };\n return names[status] || status;\n};\n\n/**\n * Helper: Get format display name\n */\nexport const getFormatDisplayName = (format: string): string => {\n const names: Record<string, string> = {\n CSV: \"CSV\",\n JSON: \"JSON\",\n };\n return names[format] || format;\n};\n\n/**\n * Helper: Get archive format display name\n */\nexport const getArchiveFormatDisplayName = (format: string): string => {\n const names: Record<string, string> = {\n ZIP: \"ZIP\",\n };\n return names[format] || format;\n};\n\n/**\n * Helper: Get all export statuses as array\n */\nexport const getAllStatuses = (): ExportJobStatus[] => [\n \"CREATED\",\n \"QUEUED\",\n \"RUNNING\",\n \"COMPLETED\",\n \"FAILED\",\n \"CANCELLED\",\n \"EXPIRED\",\n \"DELETED\",\n];\n"],"mappings":";AAYA,IAAa,KAAwB,OACG;CACpC,SAAS;CACT,QAAQ;CACR,SAAS;CACT,WAAW;CACX,QAAQ;CACR,WAAW;CACX,SAAS;CACT,SAAS;CACV,EACY,MAAW,GAMb,KAAwB,OACG;CACpC,KAAK;CACL,MAAM;CACP,EACY,MAAW,GAMb,KAA+B,OACJ,EACpC,KAAK,OACN,EACY,MAAW,GAMb,UAA0C;CACrD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
1
+ {"version":3,"file":"enums.js","names":["getStatusDisplayName","status","getFormatDisplayName","format","getArchiveFormatDisplayName","getAllStatuses"],"sources":["../../../src/export/constants/enums.ts"],"sourcesContent":["/**\n * GraphQL Enum Display Helpers\n *\n * Display-name helpers for export job and format enums.\n * Enum value sets are sourced from the canonical type definitions in `../types`.\n */\n\nimport type { ExportJobStatus } from \"../types\";\n\n/**\n * Helper: Get status display name\n */\nexport const getStatusDisplayName = (status: string): string => {\n const names: Record<string, string> = {\n CREATED: \"Created\",\n QUEUED: \"Queued\",\n RUNNING: \"Running\",\n COMPLETED: \"Completed\",\n FAILED: \"Failed\",\n CANCELLED: \"Cancelled\",\n EXPIRED: \"Expired\",\n DELETED: \"Deleted\",\n };\n return names[status] || status;\n};\n\n/**\n * Helper: Get format display name\n */\nexport const getFormatDisplayName = (format: string): string => {\n const names: Record<string, string> = {\n CSV: \"CSV\",\n JSON: \"JSON\",\n };\n return names[format] || format;\n};\n\n/**\n * Helper: Get archive format display name\n */\nexport const getArchiveFormatDisplayName = (format: string): string => {\n const names: Record<string, string> = {\n ZIP: \"ZIP\",\n };\n return names[format] || format;\n};\n\n/**\n * Helper: Get all export statuses as array\n */\nexport const getAllStatuses = (): ExportJobStatus[] => [\n \"CREATED\",\n \"QUEUED\",\n \"RUNNING\",\n \"COMPLETED\",\n \"FAILED\",\n \"CANCELLED\",\n \"EXPIRED\",\n \"DELETED\",\n];\n"],"mappings":";AAYA,IAAaA,KAAwB,OAW5B;CATL,SAAS;CACT,QAAQ;CACR,SAAS;CACT,WAAW;CACX,QAAQ;CACR,WAAW;CACX,SAAS;CACT,SAAS;AAEJ,EAAA,CAAMC,MAAWA,GAMbC,KAAwB,OAK5B;CAHL,KAAK;CACL,MAAM;AAED,EAAA,CAAMC,MAAWA,GAMbC,KAA+B,OAInC,EAFL,KAAK,MAEA,EAAA,CAAMD,MAAWA,GAMbE,UAA0C;CACrD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
@@ -4,4 +4,3 @@
4
4
  * Centralized exports for all constants used in the export module
5
5
  */
6
6
  export * from './enums';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,6 @@
1
1
  import { GetAvailableExportEntitiesQuery, GetExportJobQuery, ListExportJobsQuery, ListExportTemplatesQuery } from '../../generated/wspace-operations';
2
2
  import { ExportJobStatus as GqlExportJobStatus, ExportJobFilterInput as GqlExportJobFilterInput, ExportPaginationInput as GqlExportPaginationInput } from '../../generated/wspace-types';
3
3
  import { ExportFormat, ExportJob, ExportJobStatus, ExportScope, ExportTemplate, ExportAvailableEntity, ExportFilter, PageInfo } from '../types';
4
-
5
4
  /**
6
5
  * Input for creating an export job
7
6
  */
@@ -55,14 +54,11 @@ export declare function useExportJobs(filter?: Partial<ExportFilter>, pagination
55
54
  pageInfo: PageInfo | null;
56
55
  isLoading: boolean;
57
56
  error: import('@apollo/client').ErrorLike | null;
58
- refetch: (variables?: Partial<import('../../generated/wspace-types').Exact<{
59
- filter?: import('../../generated/wspace-types').InputMaybe<GqlExportJobFilterInput>;
60
- pagination?: import('../../generated/wspace-types').InputMaybe<GqlExportPaginationInput>;
57
+ refetch: import('@apollo/client/react/internal').RefetchFunction<ListExportJobsQuery, {
58
+ filter?: GqlExportJobFilterInput | null | undefined;
59
+ pagination?: GqlExportPaginationInput | null | undefined;
61
60
  context: import('../../generated/wspace-types').ContextInput;
62
- }>> | undefined) => Promise<{
63
- data: ListExportJobsQuery | undefined;
64
- error?: import('@apollo/client').ErrorLike;
65
- }>;
61
+ }, undefined>;
66
62
  };
67
63
  /**
68
64
  * Hook to fetch a single export job by ID.
@@ -71,13 +67,10 @@ export declare function useExportJob(jobId: string | undefined): {
71
67
  data: ExportJob | null;
72
68
  isLoading: boolean;
73
69
  error: import('@apollo/client').ErrorLike | null;
74
- refetch: (variables?: Partial<import('../../generated/wspace-types').Exact<{
75
- context?: import('../../generated/wspace-types').InputMaybe<import('../../generated/wspace-types').ContextInput>;
76
- id: import('../../generated/wspace-types').Scalars["ID"]["input"];
77
- }>> | undefined) => Promise<{
78
- data: GetExportJobQuery | undefined;
79
- error?: import('@apollo/client').ErrorLike;
80
- }>;
70
+ refetch: import('@apollo/client/react/internal').RefetchFunction<GetExportJobQuery, {
71
+ context?: import('../../generated/wspace-types').ContextInput | null | undefined;
72
+ id: string | number;
73
+ }, undefined>;
81
74
  };
82
75
  /**
83
76
  * Hook to subscribe to live progress updates for an export job.
@@ -97,13 +90,10 @@ export declare function useAvailableEntities(overrideWorkspaceId?: string): {
97
90
  loadMore: () => Promise<void>;
98
91
  error: import('@apollo/client').ErrorLike | null;
99
92
  isLoading: boolean;
100
- refetch: (variables?: Partial<import('../../generated/wspace-types').Exact<{
93
+ refetch: import('@apollo/client/react/internal').RefetchFunction<GetAvailableExportEntitiesQuery, {
101
94
  context: import('../../generated/wspace-types').ContextInput;
102
- pagination?: import('../../generated/wspace-types').InputMaybe<GqlExportPaginationInput>;
103
- }>> | undefined) => Promise<{
104
- data: GetAvailableExportEntitiesQuery | undefined;
105
- error?: import('@apollo/client').ErrorLike;
106
- }>;
95
+ pagination?: GqlExportPaginationInput | null | undefined;
96
+ }, undefined>;
107
97
  };
108
98
  /**
109
99
  * Hook to fetch all export templates for the current workspace
@@ -115,13 +105,10 @@ export declare function useExportTemplates(overrideWorkspaceId?: string): {
115
105
  loadMore: () => Promise<void>;
116
106
  isLoading: boolean;
117
107
  error: import('@apollo/client').ErrorLike | null;
118
- refetch: (variables?: Partial<import('../../generated/wspace-types').Exact<{
108
+ refetch: import('@apollo/client/react/internal').RefetchFunction<ListExportTemplatesQuery, {
119
109
  context: import('../../generated/wspace-types').ContextInput;
120
- pagination?: import('../../generated/wspace-types').InputMaybe<GqlExportPaginationInput>;
121
- }>> | undefined) => Promise<{
122
- data: ListExportTemplatesQuery | undefined;
123
- error?: import('@apollo/client').ErrorLike;
124
- }>;
110
+ pagination?: GqlExportPaginationInput | null | undefined;
111
+ }, undefined>;
125
112
  };
126
113
  /**
127
114
  * Hook to fetch a single export template by ID
@@ -134,7 +121,7 @@ export declare function useExportTemplate(templateId: string | undefined): {
134
121
  /**
135
122
  * Hook to create a new export job
136
123
  */
137
- export declare function useCreateExportJob(scope?: ExportScope): {
124
+ export declare function useCreateExportJob(): {
138
125
  createJob: (input: CreateExportJobInput) => Promise<ExportJob>;
139
126
  mutate: (input: CreateExportJobInput) => Promise<ExportJob>;
140
127
  mutateAsync: (input: CreateExportJobInput) => Promise<ExportJob>;
@@ -147,19 +134,16 @@ export declare function useCreateExportJob(scope?: ExportScope): {
147
134
  */
148
135
  export declare function useCancelExportJob(): {
149
136
  cancelJob: (id: string) => Promise<{
150
- __typename?: "ExportJob";
151
137
  id: string;
152
138
  status: GqlExportJobStatus;
153
139
  updatedAt: string;
154
140
  }>;
155
141
  mutate: (id: string) => Promise<{
156
- __typename?: "ExportJob";
157
142
  id: string;
158
143
  status: GqlExportJobStatus;
159
144
  updatedAt: string;
160
145
  }>;
161
146
  mutateAsync: (id: string) => Promise<{
162
- __typename?: "ExportJob";
163
147
  id: string;
164
148
  status: GqlExportJobStatus;
165
149
  updatedAt: string;
@@ -182,7 +166,7 @@ export declare function useDeleteExportJob(): {
182
166
  /**
183
167
  * Hook to retry a failed export job
184
168
  */
185
- export declare function useRetryExportJob(scope?: ExportScope): {
169
+ export declare function useRetryExportJob(): {
186
170
  retryJob: (id: string) => Promise<ExportJob>;
187
171
  loading: boolean;
188
172
  isPending: boolean;
@@ -208,4 +192,3 @@ export declare function useDeleteExportTemplate(): {
208
192
  };
209
193
  /** Organization scope is independent of workspace grants; this is a UX hint only. */
210
194
  export declare function useOrganizationExportPermission(organizationId: string | undefined): boolean;
211
- //# sourceMappingURL=useExportQueries.d.ts.map