@burdenoff/microfe-product 2026.624.3 → 2026.626.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.
- package/dist/product/pages/ContentPageViewPage.js +41 -36
- package/dist/product/pages/ContentPageViewPage.js.map +1 -1
- package/dist/product/pages/ProductCatalogPage.js +63 -50
- package/dist/product/pages/ProductCatalogPage.js.map +1 -1
- package/dist/product/pages/ProductViewPage.js +220 -178
- package/dist/product/pages/ProductViewPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +7 -7
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +28 -26
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +119 -90
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +33 -31
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +171 -161
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +1 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +26 -24
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +152 -125
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +36 -34
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +144 -136
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +4 -4
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +28 -26
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +111 -84
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +33 -31
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +85 -75
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.js +8 -8
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductPlans.js +136 -147
- package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductCreatePage.js +28 -26
- package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +170 -140
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductEditPage.js +32 -30
- package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductsListPage.js +219 -202
- package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +3 -3
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +28 -23
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +228 -209
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +31 -26
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +209 -198
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
- package/dist/product-management/shared/components/AuditHistoryTab.js +19 -17
- package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
- package/dist/product-management/shared/components/feedback/EmptyState.js +2 -20
- package/package.json +2 -2
- package/dist/product-management/shared/components/feedback/EmptyState.js.map +0 -1
|
@@ -8,27 +8,28 @@ import { useState as s } from "react";
|
|
|
8
8
|
import { ArrowLeft as c } from "lucide-react";
|
|
9
9
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
10
|
import { useParams as d } from "react-router-dom";
|
|
11
|
+
import { EmphasisPanel as f, PagePurpose as p } from "@burdenoff/fe-libs/ui";
|
|
11
12
|
//#region src/product-management/modules/content-pages/pages/ContentPageEditPage.tsx
|
|
12
|
-
function
|
|
13
|
-
let { id:
|
|
14
|
-
if (
|
|
15
|
-
|
|
13
|
+
function m() {
|
|
14
|
+
let { id: m } = d(), { navigate: h, basePath: g = "/products" } = t(), _ = `${g}/content-pages`, { contentPage: v, loading: y, error: b } = i(m), { updateContentPage: x, loading: S } = a(), [C, w] = s(null), T = e(), E = async (e) => {
|
|
15
|
+
if (m) try {
|
|
16
|
+
w(null), await x(m, e), h(`${_}/${m}`);
|
|
16
17
|
} catch (e) {
|
|
17
|
-
|
|
18
|
+
w(e instanceof Error ? e.message : "Failed to update content page"), console.error("Failed to update content page:", e);
|
|
18
19
|
}
|
|
19
|
-
},
|
|
20
|
-
|
|
20
|
+
}, D = () => {
|
|
21
|
+
h(`${_}/${m}`);
|
|
21
22
|
};
|
|
22
|
-
return
|
|
23
|
+
return y ? /* @__PURE__ */ l("div", {
|
|
23
24
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
24
|
-
children: /* @__PURE__ */ l(n, { message:
|
|
25
|
-
}) :
|
|
25
|
+
children: /* @__PURE__ */ l(n, { message: T("contentPages.loadingContentPage", "Loading content page...") })
|
|
26
|
+
}) : b || !v ? /* @__PURE__ */ l("div", {
|
|
26
27
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
27
28
|
children: /* @__PURE__ */ l(r, {
|
|
28
|
-
message:
|
|
29
|
+
message: b?.message || T("contentPages.contentPageNotFound", "Content page not found"),
|
|
29
30
|
action: {
|
|
30
|
-
label:
|
|
31
|
-
onClick: () =>
|
|
31
|
+
label: T("contentPages.backToContentPages", "Back to Content Pages"),
|
|
32
|
+
onClick: () => h(_)
|
|
32
33
|
}
|
|
33
34
|
})
|
|
34
35
|
}) : /* @__PURE__ */ u("div", {
|
|
@@ -39,50 +40,51 @@ function f() {
|
|
|
39
40
|
children: [
|
|
40
41
|
/* @__PURE__ */ u("button", {
|
|
41
42
|
type: "button",
|
|
42
|
-
onClick:
|
|
43
|
+
onClick: D,
|
|
43
44
|
className: "\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n ",
|
|
44
45
|
children: [/* @__PURE__ */ l(c, { size: 20 }), /* @__PURE__ */ u("span", {
|
|
45
46
|
className: "text-sm font-medium",
|
|
46
47
|
children: [
|
|
47
|
-
|
|
48
|
+
T("contentPages.backTo", "Back to"),
|
|
48
49
|
" ",
|
|
49
|
-
|
|
50
|
+
v.title
|
|
50
51
|
]
|
|
51
52
|
})]
|
|
52
53
|
}),
|
|
53
54
|
/* @__PURE__ */ l("h1", {
|
|
54
|
-
className: "text-3xl font-
|
|
55
|
-
children:
|
|
55
|
+
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary mb-2",
|
|
56
|
+
children: T("contentPages.editContentPage", "Edit Content Page")
|
|
56
57
|
}),
|
|
57
58
|
/* @__PURE__ */ l("p", {
|
|
58
59
|
className: "text-text-secondary",
|
|
59
|
-
children:
|
|
60
|
+
children: T("contentPages.editContentPageSubtitle", "Update content page information")
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ l(p, {
|
|
63
|
+
className: "mt-3 max-w-2xl",
|
|
64
|
+
children: T("contentPages.editPurpose", "Update this page — rewrite the content, refine the SEO, or flip its published state. Each save records a new version, so you can change copy safely and only publish when it is ready for users.")
|
|
60
65
|
})
|
|
61
66
|
]
|
|
62
67
|
}),
|
|
63
|
-
|
|
68
|
+
C && /* @__PURE__ */ l("div", {
|
|
64
69
|
className: "mb-6 p-4 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg",
|
|
65
70
|
children: /* @__PURE__ */ l("p", {
|
|
66
71
|
className: "text-sm text-[var(--color-status-error)]",
|
|
67
|
-
children:
|
|
72
|
+
children: C
|
|
68
73
|
})
|
|
69
74
|
}),
|
|
70
75
|
/* @__PURE__ */ l("div", {
|
|
71
76
|
className: "max-w-2xl",
|
|
72
|
-
children: /* @__PURE__ */ l(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
loading: b
|
|
79
|
-
})
|
|
80
|
-
})
|
|
77
|
+
children: /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(o, {
|
|
78
|
+
contentPage: v,
|
|
79
|
+
onSubmit: E,
|
|
80
|
+
onCancel: D,
|
|
81
|
+
loading: S
|
|
82
|
+
}) })
|
|
81
83
|
})
|
|
82
84
|
]
|
|
83
85
|
});
|
|
84
86
|
}
|
|
85
87
|
//#endregion
|
|
86
|
-
export {
|
|
88
|
+
export { m as ContentPageEditPage };
|
|
87
89
|
|
|
88
90
|
//# sourceMappingURL=ContentPageEditPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPageEditPage.js","names":[],"sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageEditPage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport { ArrowLeft } from 'lucide-react';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useContentPage, useUpdateContentPage } from '../hooks/useContentPages';\nimport { ContentPageForm } from '../components/ContentPageForm';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport type { UpdateContentPageInput } from '../types';\n\nexport function ContentPageEditPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const contentPagesBasePath = `${basePath}/content-pages`;\n const { contentPage, loading: fetchLoading, error: fetchError } = useContentPage(id!);\n const { updateContentPage, loading: updateLoading } = useUpdateContentPage();\n const [error, setError] = useState<string | null>(null);\n const tr = useTr();\n\n const handleSubmit = async (data: UpdateContentPageInput) => {\n if (!id) return;\n\n try {\n setError(null);\n await updateContentPage(id, data);\n navigate(`${contentPagesBasePath}/${id}`);\n } catch (err) {\n const message = err instanceof Error ? err.message : 'Failed to update content page';\n setError(message);\n console.error('Failed to update content page:', err);\n }\n };\n\n const handleCancel = () => {\n navigate(`${contentPagesBasePath}/${id}`);\n };\n\n if (fetchLoading) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('contentPages.loadingContentPage', 'Loading content page...')} />\n </div>\n );\n }\n\n if (fetchError || !contentPage) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={\n fetchError?.message || tr('contentPages.contentPageNotFound', 'Content page not found')\n }\n action={{\n label: tr('contentPages.backToContentPages', 'Back to Content Pages'),\n onClick: () => navigate(contentPagesBasePath),\n }}\n />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200\">\n <div className=\"mb-6\">\n <button\n type=\"button\"\n onClick={handleCancel}\n className=\"\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n \"\n >\n <ArrowLeft size={20} />\n <span className=\"text-sm font-medium\">\n {tr('contentPages.backTo', 'Back to')} {contentPage.title}\n </span>\n </button>\n\n <h1 className=\"text-3xl font-
|
|
1
|
+
{"version":3,"file":"ContentPageEditPage.js","names":[],"sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageEditPage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport { ArrowLeft } from 'lucide-react';\nimport { EmphasisPanel, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useContentPage, useUpdateContentPage } from '../hooks/useContentPages';\nimport { ContentPageForm } from '../components/ContentPageForm';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport type { UpdateContentPageInput } from '../types';\n\nexport function ContentPageEditPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const contentPagesBasePath = `${basePath}/content-pages`;\n const { contentPage, loading: fetchLoading, error: fetchError } = useContentPage(id!);\n const { updateContentPage, loading: updateLoading } = useUpdateContentPage();\n const [error, setError] = useState<string | null>(null);\n const tr = useTr();\n\n const handleSubmit = async (data: UpdateContentPageInput) => {\n if (!id) return;\n\n try {\n setError(null);\n await updateContentPage(id, data);\n navigate(`${contentPagesBasePath}/${id}`);\n } catch (err) {\n const message = err instanceof Error ? err.message : 'Failed to update content page';\n setError(message);\n console.error('Failed to update content page:', err);\n }\n };\n\n const handleCancel = () => {\n navigate(`${contentPagesBasePath}/${id}`);\n };\n\n if (fetchLoading) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('contentPages.loadingContentPage', 'Loading content page...')} />\n </div>\n );\n }\n\n if (fetchError || !contentPage) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={\n fetchError?.message || tr('contentPages.contentPageNotFound', 'Content page not found')\n }\n action={{\n label: tr('contentPages.backToContentPages', 'Back to Content Pages'),\n onClick: () => navigate(contentPagesBasePath),\n }}\n />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200\">\n <div className=\"mb-6\">\n <button\n type=\"button\"\n onClick={handleCancel}\n className=\"\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n \"\n >\n <ArrowLeft size={20} />\n <span className=\"text-sm font-medium\">\n {tr('contentPages.backTo', 'Back to')} {contentPage.title}\n </span>\n </button>\n\n <h1 className=\"text-2xl md:text-3xl font-semibold tracking-tight text-text-primary mb-2\">\n {tr('contentPages.editContentPage', 'Edit Content Page')}\n </h1>\n <p className=\"text-text-secondary\">\n {tr('contentPages.editContentPageSubtitle', 'Update content page information')}\n </p>\n\n <PagePurpose className=\"mt-3 max-w-2xl\">\n {tr(\n 'contentPages.editPurpose',\n 'Update this page — rewrite the content, refine the SEO, or flip its published state. Each save records a new version, so you can change copy safely and only publish when it is ready for users.'\n )}\n </PagePurpose>\n </div>\n\n {error && (\n <div className=\"mb-6 p-4 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg\">\n <p className=\"text-sm text-[var(--color-status-error)]\">{error}</p>\n </div>\n )}\n\n <div className=\"max-w-2xl\">\n <EmphasisPanel>\n <ContentPageForm\n contentPage={contentPage}\n onSubmit={handleSubmit}\n onCancel={handleCancel}\n loading={updateLoading}\n />\n </EmphasisPanel>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAYA,SAAgB,IAAsB;CACpC,IAAM,EAAE,UAAO,GAA2B,EACpC,EAAE,aAAU,cAAW,gBAAgB,GAAmB,EAC1D,IAAuB,GAAG,EAAS,iBACnC,EAAE,gBAAa,SAAS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