@burdenoff/microfe-product 2026.525.6 → 2026.529.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 (101) hide show
  1. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +211 -169
  2. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  3. package/dist/node_modules/zod/v4/classic/errors.js +1 -1
  4. package/dist/node_modules/zod/v4/classic/errors.js.map +1 -1
  5. package/dist/node_modules/zod/v4/classic/schemas.js +439 -176
  6. package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -1
  7. package/dist/node_modules/zod/v4/core/api.js +6 -6
  8. package/dist/node_modules/zod/v4/core/api.js.map +1 -1
  9. package/dist/node_modules/zod/v4/core/core.js +11 -8
  10. package/dist/node_modules/zod/v4/core/core.js.map +1 -1
  11. package/dist/node_modules/zod/v4/core/errors.js +12 -9
  12. package/dist/node_modules/zod/v4/core/errors.js.map +1 -1
  13. package/dist/node_modules/zod/v4/core/json-schema-processors.js +7 -5
  14. package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -1
  15. package/dist/node_modules/zod/v4/core/parse.js +28 -7
  16. package/dist/node_modules/zod/v4/core/parse.js.map +1 -1
  17. package/dist/node_modules/zod/v4/core/regexes.js +11 -11
  18. package/dist/node_modules/zod/v4/core/regexes.js.map +1 -1
  19. package/dist/node_modules/zod/v4/core/schemas.js +206 -142
  20. package/dist/node_modules/zod/v4/core/schemas.js.map +1 -1
  21. package/dist/node_modules/zod/v4/core/to-json-schema.js +7 -5
  22. package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -1
  23. package/dist/node_modules/zod/v4/core/util.js +70 -71
  24. package/dist/node_modules/zod/v4/core/util.js.map +1 -1
  25. package/dist/node_modules/zod/v4/core/versions.js +2 -2
  26. package/dist/node_modules/zod/v4/core/versions.js.map +1 -1
  27. package/dist/product/pages/ContentPageViewPage.js +1 -0
  28. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  29. package/dist/product/pages/ProductCatalogPage.js +4 -2
  30. package/dist/product/pages/ProductCatalogPage.js.map +1 -1
  31. package/dist/product/pages/ProductViewPage.js +3 -2
  32. package/dist/product/pages/ProductViewPage.js.map +1 -1
  33. package/dist/product/providers/ProductUserProvider.js +1 -1
  34. package/dist/product/providers/ProductUserProvider.js.map +1 -1
  35. package/dist/product-management/ProductManagementRoot.js +6 -2
  36. package/dist/product-management/ProductManagementRoot.js.map +1 -1
  37. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +1 -1
  38. package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
  39. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +1 -0
  40. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
  41. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +6 -3
  42. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  43. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +1 -0
  44. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
  45. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +8 -1
  46. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  47. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +1 -1
  48. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
  49. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +1 -0
  50. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
  51. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +3 -1
  52. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
  53. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +1 -1
  54. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
  55. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +8 -2
  56. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
  57. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +1 -0
  58. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
  59. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +3 -0
  60. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  61. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +1 -0
  62. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
  63. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +8 -1
  64. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  65. package/dist/product-management/modules/products/components/ProductForm.js +355 -350
  66. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
  67. package/dist/product-management/modules/products/components/ProductPlans.js +8 -1
  68. package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
  69. package/dist/product-management/modules/products/pages/ProductCreatePage.js +1 -0
  70. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
  71. package/dist/product-management/modules/products/pages/ProductDetailPage.js +6 -2
  72. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  73. package/dist/product-management/modules/products/pages/ProductEditPage.js +1 -0
  74. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
  75. package/dist/product-management/modules/products/pages/ProductsListPage.js +11 -4
  76. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  77. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +2 -2
  78. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
  79. package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js +1 -1
  80. package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js.map +1 -1
  81. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +1 -0
  82. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
  83. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +4 -0
  84. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  85. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +1 -0
  86. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
  87. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +9 -0
  88. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  89. package/dist/product-management/providers/ProductConsoleProvider.js +1 -1
  90. package/dist/product-management/providers/ProductConsoleProvider.js.map +1 -1
  91. package/dist/product-management/shared/components/AuditHistoryTab.js +1 -1
  92. package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
  93. package/dist/product-management/shared/components/feedback/EmptyState.js +12 -22
  94. package/dist/product-management/shared/components/feedback/EmptyState.js.map +1 -1
  95. package/dist/product-management/shared/components/feedback/ErrorState.js +2 -1
  96. package/dist/product-management/shared/components/feedback/ErrorState.js.map +1 -1
  97. package/dist/product-management/shared/components/input/SearchInput.js +1 -0
  98. package/dist/product-management/shared/components/input/SearchInput.js.map +1 -1
  99. package/dist/product-management/shared/utils/exportUtils.js.map +1 -1
  100. package/package.json +2 -2
  101. package/dist/product-management/shared/index.js +0 -5
@@ -1 +1 @@
1
- {"version":3,"file":"AuditHistoryTab.js","names":[],"sources":["../../../../src/product-management/shared/components/AuditHistoryTab.tsx"],"sourcesContent":["import { useQuery } from '@apollo/client/react';\nimport { Clock, User, AlertCircle } from 'lucide-react';\nimport {\n GetEntityActivityLogsDocument,\n type GetEntityActivityLogsQuery,\n} from '../../../generated/global-operations';\nimport { LoadingState } from './feedback/LoadingState';\n\ntype ActivityLog = NonNullable<GetEntityActivityLogsQuery['activityLogs']['nodes'][number]>;\n\ninterface AuditHistoryTabProps {\n resourceId: string;\n resourceType: string;\n}\n\nexport function AuditHistoryTab({ resourceId, resourceType }: AuditHistoryTabProps) {\n const { data, loading, error } = useQuery(GetEntityActivityLogsDocument, {\n variables: { resourceId, resourceType, limit: 50, offset: 0 },\n fetchPolicy: 'cache-and-network',\n });\n\n if (loading) return <LoadingState message=\"Loading activity history…\" />;\n\n if (error) {\n return (\n <div className=\"flex items-center gap-2 text-[var(--color-status-error)] p-4\">\n <AlertCircle size={16} />\n <span className=\"text-sm\">{error.message}</span>\n </div>\n );\n }\n\n const logs = data?.activityLogs?.nodes ?? [];\n\n if (logs.length === 0) {\n return <p className=\"text-sm text-text-secondary p-4\">No activity recorded yet.</p>;\n }\n\n const formatDate = (dateString: string) =>\n new Date(dateString).toLocaleString('en-US', {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n });\n\n return (\n <div className=\"divide-y divide-[var(--color-border-default)]\">\n {logs.map((log: ActivityLog) => (\n <div\n key={log.id}\n className=\"flex items-start gap-3 px-4 py-3 hover:bg-muted transition-colors\"\n >\n <div className=\"w-8 h-8 rounded-full bg-[var(--color-status-info-subtle)] flex items-center justify-center shrink-0\">\n <User size={14} className=\"text-[var(--color-status-info)]\" />\n </div>\n <div className=\"flex-1 min-w-0\">\n <p className=\"text-sm text-text-primary\">\n <span className=\"font-medium\">{log.actorId ?? 'system'}</span>{' '}\n <span className=\"text-text-secondary\">{log.description ?? log.action}</span>\n </p>\n {log.metadata &&\n typeof log.metadata === 'object' &&\n Object.keys(log.metadata as object).length > 0 && (\n <p className=\"text-xs text-text-tertiary font-mono mt-0.5 truncate\">\n {JSON.stringify(log.metadata)}\n </p>\n )}\n </div>\n <div className=\"flex items-center gap-1 text-xs text-text-tertiary shrink-0\">\n <Clock size={12} />\n <span>{formatDate(log.createdAt)}</span>\n </div>\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":";;;;;;AAeA,SAAgB,EAAgB,EAAE,eAAY,mBAAsC;CAClF,IAAM,EAAE,SAAM,YAAS,aAAU,EAAS,GAA+B;EACvE,WAAW;GAAE;GAAY;GAAc,OAAO;GAAI,QAAQ;GAAG;EAC7D,aAAa;EACd,CAAC;AAEF,KAAI,EAAS,QAAO,kBAAC,GAAD,EAAc,SAAQ,6BAA8B,CAAA;AAExE,KAAI,EACF,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,GAAD,EAAa,MAAM,IAAM,CAAA,EACzB,kBAAC,QAAD;GAAM,WAAU;aAAW,EAAM;GAAe,CAAA,CAC5C;;CAIV,IAAM,IAAO,GAAM,cAAc,SAAS,EAAE;AAE5C,KAAI,EAAK,WAAW,EAClB,QAAO,kBAAC,KAAD;EAAG,WAAU;YAAkC;EAA6B,CAAA;CAGrF,IAAM,KAAc,MAClB,IAAI,KAAK,EAAW,CAAC,eAAe,SAAS;EAC3C,MAAM;EACN,OAAO;EACP,KAAK;EACL,MAAM;EACN,QAAQ;EACT,CAAC;AAEJ,QACE,kBAAC,OAAD;EAAK,WAAU;YACZ,EAAK,KAAK,MACT,kBAAC,OAAD;GAEE,WAAU;aAFZ;IAIE,kBAAC,OAAD;KAAK,WAAU;eACb,kBAAC,GAAD;MAAM,MAAM;MAAI,WAAU;MAAoC,CAAA;KAC1D,CAAA;IACN,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,KAAD;MAAG,WAAU;gBAAb;OACE,kBAAC,QAAD;QAAM,WAAU;kBAAe,EAAI,WAAW;QAAgB,CAAA;OAAC;OAC/D,kBAAC,QAAD;QAAM,WAAU;kBAAuB,EAAI,eAAe,EAAI;QAAc,CAAA;OAC1E;SACH,EAAI,YACH,OAAO,EAAI,YAAa,YACxB,OAAO,KAAK,EAAI,SAAmB,CAAC,SAAS,KAC3C,kBAAC,KAAD;MAAG,WAAU;gBACV,KAAK,UAAU,EAAI,SAAS;MAC3B,CAAA,CAEJ;;IACN,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA,EACnB,kBAAC,QAAD,EAAA,UAAO,EAAW,EAAI,UAAU,EAAQ,CAAA,CACpC;;IACF;KAvBC,EAAI,GAuBL,CACN;EACE,CAAA"}
1
+ {"version":3,"file":"AuditHistoryTab.js","names":[],"sources":["../../../../src/product-management/shared/components/AuditHistoryTab.tsx"],"sourcesContent":["import { useQuery } from '@apollo/client/react';\nimport { Clock, User, AlertCircle } from 'lucide-react';\nimport {\n GetEntityActivityLogsDocument,\n type GetEntityActivityLogsQuery,\n} from '../../../generated/global-operations';\nimport { LoadingState } from './feedback/LoadingState';\n\ntype ActivityLog = NonNullable<GetEntityActivityLogsQuery['activityLogs']['nodes'][number]>;\n\ninterface AuditHistoryTabProps {\n resourceId: string;\n resourceType: string;\n}\n\nexport function AuditHistoryTab({ resourceId, resourceType }: AuditHistoryTabProps) {\n const { data, loading, error } = useQuery(GetEntityActivityLogsDocument, {\n variables: { resourceId, resourceType, limit: 50, offset: 0 },\n fetchPolicy: 'cache-and-network',\n });\n\n if (loading) return <LoadingState message=\"Loading activity history…\" />;\n\n if (error) {\n return (\n <div className=\"flex items-center gap-2 text-[var(--color-status-error)] p-4\">\n <AlertCircle size={16} />\n <span className=\"text-sm\">{error.message}</span>\n </div>\n );\n }\n\n const logs = data?.activityLogs?.nodes ?? [];\n\n if (logs.length === 0) {\n return <p className=\"text-sm text-text-secondary p-4\">No activity recorded yet.</p>;\n }\n\n const formatDate = (dateString: string) =>\n new Date(dateString).toLocaleString('en-US', {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n });\n\n return (\n <div className=\"divide-y divide-[var(--color-border-default)]\">\n {logs.map((log: ActivityLog) => (\n <div\n key={log.id}\n className=\"flex items-start gap-3 px-4 py-3 hover:bg-muted transition-colors\"\n >\n <div className=\"size-8 rounded-full bg-[var(--color-status-info-subtle)] flex items-center justify-center shrink-0\">\n <User size={14} className=\"text-[var(--color-status-info)]\" />\n </div>\n <div className=\"flex-1 min-w-0\">\n <p className=\"text-sm text-text-primary\">\n <span className=\"font-medium\">{log.actorId ?? 'system'}</span>{' '}\n <span className=\"text-text-secondary\">{log.description ?? log.action}</span>\n </p>\n {log.metadata &&\n typeof log.metadata === 'object' &&\n Object.keys(log.metadata as object).length > 0 && (\n <p className=\"text-xs text-text-tertiary font-mono mt-0.5 truncate\">\n {JSON.stringify(log.metadata)}\n </p>\n )}\n </div>\n <div className=\"flex items-center gap-1 text-xs text-text-tertiary shrink-0\">\n <Clock size={12} />\n <span>{formatDate(log.createdAt)}</span>\n </div>\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":";;;;;;AAeA,SAAgB,EAAgB,EAAE,eAAY,mBAAsC;CAClF,IAAM,EAAE,SAAM,YAAS,aAAU,EAAS,GAA+B;EACvE,WAAW;GAAE;GAAY;GAAc,OAAO;GAAI,QAAQ;GAAG;EAC7D,aAAa;EACd,CAAC;AAEF,KAAI,EAAS,QAAO,kBAAC,GAAD,EAAc,SAAQ,6BAA8B,CAAA;AAExE,KAAI,EACF,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,GAAD,EAAa,MAAM,IAAM,CAAA,EACzB,kBAAC,QAAD;GAAM,WAAU;aAAW,EAAM;GAAe,CAAA,CAC5C;;CAIV,IAAM,IAAO,GAAM,cAAc,SAAS,EAAE;AAE5C,KAAI,EAAK,WAAW,EAClB,QAAO,kBAAC,KAAD;EAAG,WAAU;YAAkC;EAA6B,CAAA;CAGrF,IAAM,KAAc,MAClB,IAAI,KAAK,EAAW,CAAC,eAAe,SAAS;EAC3C,MAAM;EACN,OAAO;EACP,KAAK;EACL,MAAM;EACN,QAAQ;EACT,CAAC;AAEJ,QACE,kBAAC,OAAD;EAAK,WAAU;YACZ,EAAK,KAAK,MACT,kBAAC,OAAD;GAEE,WAAU;aAFZ;IAIE,kBAAC,OAAD;KAAK,WAAU;eACb,kBAAC,GAAD;MAAM,MAAM;MAAI,WAAU;MAAoC,CAAA;KAC1D,CAAA;IACN,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,KAAD;MAAG,WAAU;gBAAb;OACE,kBAAC,QAAD;QAAM,WAAU;kBAAe,EAAI,WAAW;QAAgB,CAAA;OAAC;OAC/D,kBAAC,QAAD;QAAM,WAAU;kBAAuB,EAAI,eAAe,EAAI;QAAc,CAAA;OAC1E;SACH,EAAI,YACH,OAAO,EAAI,YAAa,YACxB,OAAO,KAAK,EAAI,SAAmB,CAAC,SAAS,KAC3C,kBAAC,KAAD;MAAG,WAAU;gBACV,KAAK,UAAU,EAAI,SAAS;MAC3B,CAAA,CAEJ;;IACN,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA,EACnB,kBAAC,QAAD,EAAA,UAAO,EAAW,EAAI,UAAU,EAAQ,CAAA,CACpC;;IACF;KAvBC,EAAI,GAuBL,CACN;EACE,CAAA"}
@@ -1,27 +1,17 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { EmptyState as t } from "@burdenoff/fe-libs/ui";
2
3
  //#region src/product-management/shared/components/feedback/EmptyState.tsx
3
4
  function n({ icon: n, title: r, description: i, action: a }) {
4
- return /* @__PURE__ */ t("div", {
5
- className: "flex flex-col items-center justify-center py-12 text-center animate-in fade-in duration-300",
6
- children: [
7
- /* @__PURE__ */ e("div", {
8
- className: "text-text-tertiary mb-4",
9
- children: n
10
- }),
11
- /* @__PURE__ */ e("h3", {
12
- className: "text-lg font-semibold text-text-primary mb-2",
13
- children: r
14
- }),
15
- /* @__PURE__ */ e("p", {
16
- className: "text-sm text-text-tertiary mb-6 max-w-md",
17
- children: i
18
- }),
19
- a && /* @__PURE__ */ e("button", {
20
- onClick: a.onClick,
21
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90 hover:scale-[1.02]\n transition-all duration-200\n font-medium\n ",
22
- children: a.label
23
- })
24
- ]
5
+ return /* @__PURE__ */ e(t, {
6
+ icon: n,
7
+ title: r,
8
+ description: i,
9
+ action: a ? /* @__PURE__ */ e("button", {
10
+ type: "button",
11
+ onClick: a.onClick,
12
+ className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90 hover:scale-[1.02]\n transition-all duration-200\n font-medium\n ",
13
+ children: a.label
14
+ }) : void 0
25
15
  });
26
16
  }
27
17
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.js","names":[],"sources":["../../../../../src/product-management/shared/components/feedback/EmptyState.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\ninterface EmptyStateProps {\n icon: ReactNode;\n title: string;\n description: string;\n action?: {\n label: string;\n onClick: () => void;\n };\n}\n\nexport function EmptyState({ icon, title, description, action }: EmptyStateProps) {\n return (\n <div className=\"flex flex-col items-center justify-center py-12 text-center animate-in fade-in duration-300\">\n <div className=\"text-text-tertiary mb-4\">{icon}</div>\n <h3 className=\"text-lg font-semibold text-text-primary mb-2\">{title}</h3>\n <p className=\"text-sm text-text-tertiary mb-6 max-w-md\">{description}</p>\n {action && (\n <button\n onClick={action.onClick}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90 hover:scale-[1.02]\n transition-all duration-200\n font-medium\n \"\n >\n {action.label}\n </button>\n )}\n </div>\n );\n}\n"],"mappings":";;AAYA,SAAgB,EAAW,EAAE,SAAM,UAAO,gBAAa,aAA2B;AAChF,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,OAAD;IAAK,WAAU;cAA2B;IAAW,CAAA;GACrD,kBAAC,MAAD;IAAI,WAAU;cAAgD;IAAW,CAAA;GACzE,kBAAC,KAAD;IAAG,WAAU;cAA4C;IAAgB,CAAA;GACxE,KACC,kBAAC,UAAD;IACE,SAAS,EAAO;IAChB,WAAU;cAUT,EAAO;IACD,CAAA;GAEP"}
1
+ {"version":3,"file":"EmptyState.js","names":[],"sources":["../../../../../src/product-management/shared/components/feedback/EmptyState.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { EmptyState as CanonicalEmptyState } from '@burdenoff/fe-libs/ui';\n\ninterface EmptyStateProps {\n icon: ReactNode;\n title: string;\n description: string;\n action?: {\n label: string;\n onClick: () => void;\n };\n}\n\n/**\n * Local wrapper around the canonical `EmptyState` from `@burdenoff/fe-libs/ui`.\n *\n * Maps the legacy microfe-product local shape (`action: { label, onClick }`)\n * onto the canonical shape (`action: ReactNode`). Keeps existing call sites\n * stable while routing all empty-state rendering through the shared primitive.\n */\nexport function EmptyState({ icon, title, description, action }: EmptyStateProps) {\n return (\n <CanonicalEmptyState\n icon={icon}\n title={title}\n description={description}\n action={\n action ? (\n <button\n type=\"button\"\n onClick={action.onClick}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90 hover:scale-[1.02]\n transition-all duration-200\n font-medium\n \"\n >\n {action.label}\n </button>\n ) : undefined\n }\n />\n );\n}\n"],"mappings":";;;AAoBA,SAAgB,EAAW,EAAE,SAAM,UAAO,gBAAa,aAA2B;AAChF,QACE,kBAAC,GAAD;EACQ;EACC;EACM;EACb,QACE,IACE,kBAAC,UAAD;GACE,MAAK;GACL,SAAS,EAAO;GAChB,WAAU;aAUT,EAAO;GACD,CAAA,GACP,KAAA;EAEN,CAAA"}
@@ -6,7 +6,7 @@ function r({ title: r = "Something went wrong", message: i, action: a }) {
6
6
  className: "flex flex-col items-center justify-center py-12 text-center animate-in fade-in duration-300",
7
7
  children: [
8
8
  /* @__PURE__ */ t("div", {
9
- className: "w-16 h-16 rounded-full bg-[var(--color-status-error-subtle)] flex items-center justify-center mb-4",
9
+ className: "size-16 rounded-full bg-[var(--color-status-error-subtle)] flex items-center justify-center mb-4",
10
10
  children: /* @__PURE__ */ t(e, {
11
11
  size: 32,
12
12
  className: "text-[var(--color-status-error)]"
@@ -21,6 +21,7 @@ function r({ title: r = "Something went wrong", message: i, action: a }) {
21
21
  children: i
22
22
  }),
23
23
  a && /* @__PURE__ */ t("button", {
24
+ type: "button",
24
25
  onClick: a.onClick,
25
26
  className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90 hover:scale-[1.02]\n transition-all duration-200\n font-medium\n ",
26
27
  children: a.label
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorState.js","names":[],"sources":["../../../../../src/product-management/shared/components/feedback/ErrorState.tsx"],"sourcesContent":["import { AlertCircle } from 'lucide-react';\n\ninterface ErrorStateProps {\n title?: string;\n message: string;\n action?: {\n label: string;\n onClick: () => void;\n };\n}\n\n/**\n * ErrorState — generic error display.\n *\n * The `title` prop is intentionally English-only by default. Translation\n * should happen at the call site (where the calling module's i18n\n * namespace is loaded), e.g. `<ErrorState title={tr('foo.error', 'Something went wrong')} ... />`.\n */\nexport function ErrorState({ title = 'Something went wrong', message, action }: ErrorStateProps) {\n return (\n <div className=\"flex flex-col items-center justify-center py-12 text-center animate-in fade-in duration-300\">\n <div className=\"w-16 h-16 rounded-full bg-[var(--color-status-error-subtle)] flex items-center justify-center mb-4\">\n <AlertCircle size={32} className=\"text-[var(--color-status-error)]\" />\n </div>\n <h3 className=\"text-lg font-semibold text-text-primary mb-2\">{title}</h3>\n <p className=\"text-sm text-text-tertiary mb-6 max-w-md\">{message}</p>\n {action && (\n <button\n onClick={action.onClick}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90 hover:scale-[1.02]\n transition-all duration-200\n font-medium\n \"\n >\n {action.label}\n </button>\n )}\n </div>\n );\n}\n"],"mappings":";;;AAkBA,SAAgB,EAAW,EAAE,WAAQ,wBAAwB,YAAS,aAA2B;AAC/F,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,GAAD;KAAa,MAAM;KAAI,WAAU;KAAqC,CAAA;IAClE,CAAA;GACN,kBAAC,MAAD;IAAI,WAAU;cAAgD;IAAW,CAAA;GACzE,kBAAC,KAAD;IAAG,WAAU;cAA4C;IAAY,CAAA;GACpE,KACC,kBAAC,UAAD;IACE,SAAS,EAAO;IAChB,WAAU;cAUT,EAAO;IACD,CAAA;GAEP"}
1
+ {"version":3,"file":"ErrorState.js","names":[],"sources":["../../../../../src/product-management/shared/components/feedback/ErrorState.tsx"],"sourcesContent":["import { AlertCircle } from 'lucide-react';\n\ninterface ErrorStateProps {\n title?: string;\n message: string;\n action?: {\n label: string;\n onClick: () => void;\n };\n}\n\n/**\n * ErrorState — generic error display.\n *\n * The `title` prop is intentionally English-only by default. Translation\n * should happen at the call site (where the calling module's i18n\n * namespace is loaded), e.g. `<ErrorState title={tr('foo.error', 'Something went wrong')} ... />`.\n */\nexport function ErrorState({ title = 'Something went wrong', message, action }: ErrorStateProps) {\n return (\n <div className=\"flex flex-col items-center justify-center py-12 text-center animate-in fade-in duration-300\">\n <div className=\"size-16 rounded-full bg-[var(--color-status-error-subtle)] flex items-center justify-center mb-4\">\n <AlertCircle size={32} className=\"text-[var(--color-status-error)]\" />\n </div>\n <h3 className=\"text-lg font-semibold text-text-primary mb-2\">{title}</h3>\n <p className=\"text-sm text-text-tertiary mb-6 max-w-md\">{message}</p>\n {action && (\n <button\n type=\"button\"\n onClick={action.onClick}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90 hover:scale-[1.02]\n transition-all duration-200\n font-medium\n \"\n >\n {action.label}\n </button>\n )}\n </div>\n );\n}\n"],"mappings":";;;AAkBA,SAAgB,EAAW,EAAE,WAAQ,wBAAwB,YAAS,aAA2B;AAC/F,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,GAAD;KAAa,MAAM;KAAI,WAAU;KAAqC,CAAA;IAClE,CAAA;GACN,kBAAC,MAAD;IAAI,WAAU;cAAgD;IAAW,CAAA;GACzE,kBAAC,KAAD;IAAG,WAAU;cAA4C;IAAY,CAAA;GACpE,KACC,kBAAC,UAAD;IACE,MAAK;IACL,SAAS,EAAO;IAChB,WAAU;cAUT,EAAO;IACD,CAAA;GAEP"}
@@ -17,6 +17,7 @@ function i({ value: i, onChange: a, placeholder: o = "Search...", clearAriaLabel
17
17
  className: "\n w-full pl-[3.25rem] pr-10 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n placeholder:text-text-tertiary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n "
18
18
  }),
19
19
  i && /* @__PURE__ */ n("button", {
20
+ type: "button",
20
21
  onClick: () => a(""),
21
22
  className: "\n absolute right-3 top-1/2 -translate-y-1/2\n p-1 rounded-md\n text-text-tertiary\n hover:text-text-primary\n hover:bg-muted\n transition-all duration-200\n ",
22
23
  "aria-label": s,
@@ -1 +1 @@
1
- {"version":3,"file":"SearchInput.js","names":[],"sources":["../../../../../src/product-management/shared/components/input/SearchInput.tsx"],"sourcesContent":["import { Search, X } from 'lucide-react';\n\ninterface SearchInputProps {\n value: string;\n onChange: (value: string) => void;\n placeholder?: string;\n clearAriaLabel?: string;\n className?: string;\n}\n\n/**\n * SearchInput — reusable search input with clear button.\n *\n * The `placeholder` and `clearAriaLabel` props are intentionally English-only\n * by default. Translation should happen at the call site (where the calling\n * module's i18n namespace is loaded), e.g.:\n * <SearchInput\n * placeholder={tr('foo.search', 'Search...')}\n * clearAriaLabel={tr('foo.clearSearch', 'Clear search')}\n * ...\n * />\n */\nexport function SearchInput({\n value,\n onChange,\n placeholder = 'Search...',\n clearAriaLabel = 'Clear search',\n className = '',\n}: SearchInputProps) {\n return (\n <div className={`relative ${className}`}>\n <Search size={18} className=\"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary\" />\n <input\n type=\"text\"\n value={value}\n onChange={(e) => onChange(e.target.value)}\n placeholder={placeholder}\n className=\"\n w-full pl-[3.25rem] pr-10 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n placeholder:text-text-tertiary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n \"\n />\n {value && (\n <button\n onClick={() => onChange('')}\n className=\"\n absolute right-3 top-1/2 -translate-y-1/2\n p-1 rounded-md\n text-text-tertiary\n hover:text-text-primary\n hover:bg-muted\n transition-all duration-200\n \"\n aria-label={clearAriaLabel}\n >\n <X size={16} />\n </button>\n )}\n </div>\n );\n}\n"],"mappings":";;;AAsBA,SAAgB,EAAY,EAC1B,UACA,aACA,iBAAc,aACd,oBAAiB,gBACjB,eAAY,MACO;AACnB,QACE,kBAAC,OAAD;EAAK,WAAW,YAAY;YAA5B;GACE,kBAAC,GAAD;IAAQ,MAAM;IAAI,WAAU;IAAgE,CAAA;GAC5F,kBAAC,SAAD;IACE,MAAK;IACE;IACP,WAAW,MAAM,EAAS,EAAE,OAAO,MAAM;IAC5B;IACb,WAAU;IAUV,CAAA;GACD,KACC,kBAAC,UAAD;IACE,eAAe,EAAS,GAAG;IAC3B,WAAU;IAQV,cAAY;cAEZ,kBAAC,GAAD,EAAG,MAAM,IAAM,CAAA;IACR,CAAA;GAEP"}
1
+ {"version":3,"file":"SearchInput.js","names":[],"sources":["../../../../../src/product-management/shared/components/input/SearchInput.tsx"],"sourcesContent":["import { Search, X } from 'lucide-react';\n\ninterface SearchInputProps {\n value: string;\n onChange: (value: string) => void;\n placeholder?: string;\n clearAriaLabel?: string;\n className?: string;\n}\n\n/**\n * SearchInput — reusable search input with clear button.\n *\n * The `placeholder` and `clearAriaLabel` props are intentionally English-only\n * by default. Translation should happen at the call site (where the calling\n * module's i18n namespace is loaded), e.g.:\n * <SearchInput\n * placeholder={tr('foo.search', 'Search...')}\n * clearAriaLabel={tr('foo.clearSearch', 'Clear search')}\n * ...\n * />\n */\nexport function SearchInput({\n value,\n onChange,\n placeholder = 'Search...',\n clearAriaLabel = 'Clear search',\n className = '',\n}: SearchInputProps) {\n return (\n <div className={`relative ${className}`}>\n <Search size={18} className=\"absolute left-3 top-1/2 -translate-y-1/2 text-text-tertiary\" />\n <input\n type=\"text\"\n value={value}\n onChange={(e) => onChange(e.target.value)}\n placeholder={placeholder}\n className=\"\n w-full pl-[3.25rem] pr-10 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n placeholder:text-text-tertiary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n \"\n />\n {value && (\n <button\n type=\"button\"\n onClick={() => onChange('')}\n className=\"\n absolute right-3 top-1/2 -translate-y-1/2\n p-1 rounded-md\n text-text-tertiary\n hover:text-text-primary\n hover:bg-muted\n transition-all duration-200\n \"\n aria-label={clearAriaLabel}\n >\n <X size={16} />\n </button>\n )}\n </div>\n );\n}\n"],"mappings":";;;AAsBA,SAAgB,EAAY,EAC1B,UACA,aACA,iBAAc,aACd,oBAAiB,gBACjB,eAAY,MACO;AACnB,QACE,kBAAC,OAAD;EAAK,WAAW,YAAY;YAA5B;GACE,kBAAC,GAAD;IAAQ,MAAM;IAAI,WAAU;IAAgE,CAAA;GAC5F,kBAAC,SAAD;IACE,MAAK;IACE;IACP,WAAW,MAAM,EAAS,EAAE,OAAO,MAAM;IAC5B;IACb,WAAU;IAUV,CAAA;GACD,KACC,kBAAC,UAAD;IACE,MAAK;IACL,eAAe,EAAS,GAAG;IAC3B,WAAU;IAQV,cAAY;cAEZ,kBAAC,GAAD,EAAG,MAAM,IAAM,CAAA;IACR,CAAA;GAEP"}
@@ -1 +1 @@
1
- {"version":3,"file":"exportUtils.js","names":[],"sources":["../../../../src/product-management/shared/utils/exportUtils.ts"],"sourcesContent":["type CsvRow = Record<string, unknown>;\n\nfunction toCsvValue(value: unknown): string {\n if (value === null || value === undefined) return '';\n if (Array.isArray(value)) return `\"${value.join(', ')}\"`;\n if (typeof value === 'object') return `\"${JSON.stringify(value).replace(/\"/g, '\"\"')}\"`;\n const str = String(value);\n if (str.includes(',') || str.includes('\"') || str.includes('\\n')) {\n return `\"${str.replace(/\"/g, '\"\"')}\"`;\n }\n return str;\n}\n\nexport function exportToCsv(filename: string, rows: CsvRow[]): void {\n if (rows.length === 0) return;\n const headers = Object.keys(rows[0]);\n const csvContent = [\n headers.join(','),\n ...rows.map((row) => headers.map((h) => toCsvValue(row[h])).join(',')),\n ].join('\\n');\n\n const blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });\n const url = URL.createObjectURL(blob);\n const link = document.createElement('a');\n link.href = url;\n link.download = `${filename}_${new Date().toISOString().slice(0, 10)}.csv`;\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n URL.revokeObjectURL(url);\n}\n\nexport function exportToJson(filename: string, data: unknown): void {\n const blob = new Blob([JSON.stringify(data, null, 2)], { type: 'application/json' });\n const url = URL.createObjectURL(blob);\n const link = document.createElement('a');\n link.href = url;\n link.download = `${filename}_${new Date().toISOString().slice(0, 10)}.json`;\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n URL.revokeObjectURL(url);\n}\n"],"mappings":";AAEA,SAAS,EAAW,GAAwB;AAC1C,KAAI,KAAU,KAA6B,QAAO;AAClD,KAAI,MAAM,QAAQ,EAAM,CAAE,QAAO,IAAI,EAAM,KAAK,KAAK,CAAC;AACtD,KAAI,OAAO,KAAU,SAAU,QAAO,IAAI,KAAK,UAAU,EAAM,CAAC,QAAQ,MAAM,OAAK,CAAC;CACpF,IAAM,IAAM,OAAO,EAAM;AAIzB,QAHI,EAAI,SAAS,IAAI,IAAI,EAAI,SAAS,KAAI,IAAI,EAAI,SAAS,KAAK,GACvD,IAAI,EAAI,QAAQ,MAAM,OAAK,CAAC,KAE9B;;AAGT,SAAgB,EAAY,GAAkB,GAAsB;AAClE,KAAI,EAAK,WAAW,EAAG;CACvB,IAAM,IAAU,OAAO,KAAK,EAAK,GAAG,EAC9B,IAAa,CACjB,EAAQ,KAAK,IAAI,EACjB,GAAG,EAAK,KAAK,MAAQ,EAAQ,KAAK,MAAM,EAAW,EAAI,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,CACvE,CAAC,KAAK,KAAK,EAEN,IAAO,IAAI,KAAK,CAAC,EAAW,EAAE,EAAE,MAAM,2BAA2B,CAAC,EAClE,IAAM,IAAI,gBAAgB,EAAK,EAC/B,IAAO,SAAS,cAAc,IAAI;AAMxC,CALA,EAAK,OAAO,GACZ,EAAK,WAAW,GAAG,EAAS,oBAAG,IAAI,MAAM,EAAC,aAAa,CAAC,MAAM,GAAG,GAAG,CAAC,OACrE,SAAS,KAAK,YAAY,EAAK,EAC/B,EAAK,OAAO,EACZ,SAAS,KAAK,YAAY,EAAK,EAC/B,IAAI,gBAAgB,EAAI"}
1
+ {"version":3,"file":"exportUtils.js","names":[],"sources":["../../../../src/product-management/shared/utils/exportUtils.ts"],"sourcesContent":["type CsvRow = Record<string, unknown>;\n\nfunction toCsvValue(value: unknown): string {\n if (value === null || value === undefined) return '';\n if (Array.isArray(value)) return `\"${value.join(', ')}\"`;\n if (typeof value === 'object') return `\"${JSON.stringify(value).replace(/\"/g, '\"\"')}\"`;\n const str = String(value);\n if (str.includes(',') || str.includes('\"') || str.includes('\\n')) {\n return `\"${str.replace(/\"/g, '\"\"')}\"`;\n }\n return str;\n}\n\nexport function exportToCsv(filename: string, rows: CsvRow[]): void {\n if (rows.length === 0) return;\n const headers = Object.keys(rows[0]);\n const csvContent = [\n headers.join(','),\n ...rows.map((row) => headers.map((h) => toCsvValue(row[h])).join(',')),\n ].join('\\n');\n\n const blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });\n const url = URL.createObjectURL(blob);\n const link = document.createElement('a');\n link.href = url;\n link.download = `${filename}_${new Date().toISOString().slice(0, 10)}.csv`;\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n URL.revokeObjectURL(url);\n}\n"],"mappings":";AAEA,SAAS,EAAW,GAAwB;AAC1C,KAAI,KAAU,KAA6B,QAAO;AAClD,KAAI,MAAM,QAAQ,EAAM,CAAE,QAAO,IAAI,EAAM,KAAK,KAAK,CAAC;AACtD,KAAI,OAAO,KAAU,SAAU,QAAO,IAAI,KAAK,UAAU,EAAM,CAAC,QAAQ,MAAM,OAAK,CAAC;CACpF,IAAM,IAAM,OAAO,EAAM;AAIzB,QAHI,EAAI,SAAS,IAAI,IAAI,EAAI,SAAS,KAAI,IAAI,EAAI,SAAS,KAAK,GACvD,IAAI,EAAI,QAAQ,MAAM,OAAK,CAAC,KAE9B;;AAGT,SAAgB,EAAY,GAAkB,GAAsB;AAClE,KAAI,EAAK,WAAW,EAAG;CACvB,IAAM,IAAU,OAAO,KAAK,EAAK,GAAG,EAC9B,IAAa,CACjB,EAAQ,KAAK,IAAI,EACjB,GAAG,EAAK,KAAK,MAAQ,EAAQ,KAAK,MAAM,EAAW,EAAI,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,CACvE,CAAC,KAAK,KAAK,EAEN,IAAO,IAAI,KAAK,CAAC,EAAW,EAAE,EAAE,MAAM,2BAA2B,CAAC,EAClE,IAAM,IAAI,gBAAgB,EAAK,EAC/B,IAAO,SAAS,cAAc,IAAI;AAMxC,CALA,EAAK,OAAO,GACZ,EAAK,WAAW,GAAG,EAAS,oBAAG,IAAI,MAAM,EAAC,aAAa,CAAC,MAAM,GAAG,GAAG,CAAC,OACrE,SAAS,KAAK,YAAY,EAAK,EAC/B,EAAK,OAAO,EACZ,SAAS,KAAK,YAAY,EAAK,EAC/B,IAAI,gBAAgB,EAAI"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-product",
3
- "version": "2026.525.6",
3
+ "version": "2026.529.1",
4
4
  "description": "Product management microfrontend for Burdenoff products",
5
5
  "type": "module",
6
6
  "files": [
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@apollo/client": "^3.12.0",
44
- "@burdenoff/fe-libs": "2026.518.7",
44
+ "@burdenoff/fe-libs": "2026.529.5",
45
45
  "@tanstack/react-query": "^5.90.16",
46
46
  "@xmldom/xmldom": "0.8.13",
47
47
  "ajv": "8.20.0",
@@ -1,5 +0,0 @@
1
- import "./hooks/useTr.js";
2
- import "./components/feedback/LoadingState.js";
3
- import "./components/feedback/ErrorState.js";
4
- import "./components/feedback/EmptyState.js";
5
- import "./utils/cn.js";