@burdenoff/microfe-product 2026.1117.1 → 2026.1122.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.
@@ -1,248 +1,252 @@
1
- import { useTr as e } from "../../../shared/hooks/useTr.js";
2
- import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
3
- import { useContentPage as n, useDeleteContentPage as r } from "../hooks/useContentPages.js";
4
- import { ContentPageStatusBadge as i } from "../components/ContentPageStatusBadge.js";
5
- import { LoadingState as a } from "../../../shared/components/feedback/LoadingState.js";
6
- import { ErrorState as o } from "../../../shared/components/feedback/ErrorState.js";
7
- import { TagList as s } from "../../../shared/components/TagList.js";
8
- import { AuditHistoryTab as c } from "../../../shared/components/AuditHistoryTab.js";
9
- import { nativeConfirm as l, nativeImpact as u, nativeNotify as d } from "../../../../utils/nativeBridge.js";
10
- import { useConfirmDialog as f } from "../../../shared/hooks/useConfirmDialog.js";
11
- import { ArrowLeft as p, Edit as m, FileText as h, Globe as g, Package as _, Trash2 as v } from "lucide-react";
12
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
13
- import { useParams as S } from "react-router";
14
- import { Markdown as C } from "@burdenoff/fe-libs/shared/components";
15
- import { CTAOverflowMenu as w, EmphasisPanel as T, GradientText as E, NextSteps as D, PagePurpose as O } from "@burdenoff/fe-libs/ui";
1
+ import e from "../../../../node_modules/dompurify/dist/purify.es.js";
2
+ import { useTr as t } from "../../../shared/hooks/useTr.js";
3
+ import { useProductConsole as n } from "../../../providers/ProductConsoleProvider.js";
4
+ import { useContentPage as r, useDeleteContentPage as i } from "../hooks/useContentPages.js";
5
+ import { ContentPageStatusBadge as a } from "../components/ContentPageStatusBadge.js";
6
+ import { LoadingState as o } from "../../../shared/components/feedback/LoadingState.js";
7
+ import { ErrorState as s } from "../../../shared/components/feedback/ErrorState.js";
8
+ import { TagList as c } from "../../../shared/components/TagList.js";
9
+ import { AuditHistoryTab as l } from "../../../shared/components/AuditHistoryTab.js";
10
+ import { nativeConfirm as u, nativeImpact as d, nativeNotify as f } from "../../../../utils/nativeBridge.js";
11
+ import { useConfirmDialog as p } from "../../../shared/hooks/useConfirmDialog.js";
12
+ import { ArrowLeft as m, Edit as h, FileText as g, Globe as _, Package as v, Trash2 as y } from "lucide-react";
13
+ import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
14
+ import { useParams as C } from "react-router";
15
+ import { Markdown as w } from "@burdenoff/fe-libs/shared/components";
16
+ import { CTAOverflowMenu as T, EmphasisPanel as E, GradientText as D, NextSteps as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
16
17
  // src/product-management/modules/content-pages/pages/ContentPageDetailPage.tsx
17
- function k() {
18
- let { id: k } = S(), { navigate: A, basePath: j = "/products" } = t(), M = `${j}/content-pages`, { contentPage: N, loading: P, error: F } = n(k), { deleteContentPage: I, loading: L } = r(), R = e(), { confirm: z, ConfirmDialog: B } = f(), V = async () => {
19
- u("medium");
20
- let e = R("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), t = await l({
18
+ function A() {
19
+ let { id: A } = C(), { navigate: j, basePath: M = "/products" } = n(), N = `${M}/content-pages`, { contentPage: P, loading: F, error: I } = r(A), { deleteContentPage: L, loading: R } = i(), z = t(), { confirm: B, ConfirmDialog: V } = p(), H = async () => {
20
+ d("medium");
21
+ let e = z("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), t = await u({
21
22
  title: "Delete content page",
22
23
  message: e,
23
24
  okButtonTitle: "Delete",
24
25
  cancelButtonTitle: "Cancel"
25
26
  });
26
- if (t === null ? await z({
27
+ if (t === null ? await B({
27
28
  title: "Delete content page",
28
29
  message: e,
29
30
  okButtonTitle: "Delete",
30
31
  cancelButtonTitle: "Cancel",
31
32
  destructive: !0
32
33
  }) : t) try {
33
- await I(k), d("success"), A(M);
34
+ await L(A), f("success"), j(N);
34
35
  } catch (e) {
35
- d("error"), console.error("Failed to delete content page:", e);
36
+ f("error"), console.error("Failed to delete content page:", e);
36
37
  }
37
38
  };
38
- if (P) return /* @__PURE__ */ b("div", {
39
+ if (F) return /* @__PURE__ */ x("div", {
39
40
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
40
- children: /* @__PURE__ */ b(a, { message: R("contentPages.loadingContentPage", "Loading content page...") })
41
+ children: /* @__PURE__ */ x(o, { message: z("contentPages.loadingContentPage", "Loading content page...") })
41
42
  });
42
- if (F || !N) return /* @__PURE__ */ b("div", {
43
+ if (I || !P) return /* @__PURE__ */ x("div", {
43
44
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
44
- children: /* @__PURE__ */ b(o, {
45
- message: F?.message || R("contentPages.contentPageNotFound", "Content page not found"),
45
+ children: /* @__PURE__ */ x(s, {
46
+ message: I?.message || z("contentPages.contentPageNotFound", "Content page not found"),
46
47
  action: {
47
- label: R("contentPages.backToContentPages", "Back to Content Pages"),
48
- onClick: () => A(M)
48
+ label: z("contentPages.backToContentPages", "Back to Content Pages"),
49
+ onClick: () => j(N)
49
50
  }
50
51
  })
51
52
  });
52
- let H = (e) => e ? new Date(e).toLocaleDateString("en-US", {
53
+ let U = (e) => e ? new Date(e).toLocaleDateString("en-US", {
53
54
  year: "numeric",
54
55
  month: "long",
55
56
  day: "numeric",
56
57
  hour: "2-digit",
57
58
  minute: "2-digit"
58
- }) : "—", U = N.seoTitle || N.seoDescription || N.seoKeywords;
59
- return /* @__PURE__ */ x("div", {
59
+ }) : "—", W = P.seoTitle || P.seoDescription || P.seoKeywords;
60
+ return /* @__PURE__ */ S("div", {
60
61
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
61
62
  children: [
62
- /* @__PURE__ */ x("div", {
63
+ /* @__PURE__ */ S("div", {
63
64
  className: "mb-6",
64
- children: [/* @__PURE__ */ x("button", {
65
+ children: [/* @__PURE__ */ S("button", {
65
66
  type: "button",
66
- onClick: () => A(M),
67
+ onClick: () => j(N),
67
68
  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 ",
68
- children: [/* @__PURE__ */ b(p, { size: 20 }), /* @__PURE__ */ b("span", {
69
+ children: [/* @__PURE__ */ x(m, { size: 20 }), /* @__PURE__ */ x("span", {
69
70
  className: "text-sm font-medium",
70
- children: R("contentPages.backToContentPages", "Back to Content Pages")
71
+ children: z("contentPages.backToContentPages", "Back to Content Pages")
71
72
  })]
72
- }), /* @__PURE__ */ x("div", {
73
+ }), /* @__PURE__ */ S("div", {
73
74
  className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",
74
- children: [/* @__PURE__ */ x("div", {
75
+ children: [/* @__PURE__ */ S("div", {
75
76
  className: "flex items-center gap-4",
76
- children: [/* @__PURE__ */ b("div", {
77
+ children: [/* @__PURE__ */ x("div", {
77
78
  className: "size-16 rounded-card bg-[var(--color-status-info-subtle)] flex items-center justify-center",
78
- children: /* @__PURE__ */ b(h, {
79
+ children: /* @__PURE__ */ x(g, {
79
80
  size: 32,
80
81
  className: "text-[var(--color-status-info)]"
81
82
  })
82
- }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
83
+ }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("div", {
83
84
  className: "flex flex-wrap items-center gap-3 mb-2",
84
- children: [/* @__PURE__ */ b("h1", {
85
+ children: [/* @__PURE__ */ x("h1", {
85
86
  className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
86
- children: /* @__PURE__ */ b(E, { children: N.title })
87
- }), /* @__PURE__ */ b(i, { isPublished: N.isPublished })]
88
- }), /* @__PURE__ */ x("p", {
87
+ children: /* @__PURE__ */ x(D, { children: P.title })
88
+ }), /* @__PURE__ */ x(a, { isPublished: P.isPublished })]
89
+ }), /* @__PURE__ */ S("p", {
89
90
  className: "text-text-secondary font-mono",
90
- children: ["/", N.slug]
91
+ children: ["/", P.slug]
91
92
  })] })]
92
- }), /* @__PURE__ */ b(w, {
93
+ }), /* @__PURE__ */ x(T, {
93
94
  primary: {
94
- label: R("contentPages.editPage", "Edit Page"),
95
- onSelect: () => A(`${M}/${k}/edit`),
96
- icon: /* @__PURE__ */ b(m, { className: "size-4" })
95
+ label: z("contentPages.editPage", "Edit Page"),
96
+ onSelect: () => j(`${N}/${A}/edit`),
97
+ icon: /* @__PURE__ */ x(h, { className: "size-4" })
97
98
  },
98
99
  actions: [{
99
- label: R("contentPages.delete", "Delete"),
100
+ label: z("contentPages.delete", "Delete"),
100
101
  onSelect: () => {
101
- V();
102
+ H();
102
103
  },
103
104
  intent: "destructive",
104
- disabled: L,
105
- icon: /* @__PURE__ */ b(v, { className: "size-4" })
105
+ disabled: R,
106
+ icon: /* @__PURE__ */ x(y, { className: "size-4" })
106
107
  }]
107
108
  })]
108
109
  })]
109
110
  }),
110
- /* @__PURE__ */ b(O, {
111
+ /* @__PURE__ */ x(k, {
111
112
  className: "mb-6",
112
- children: R("contentPages.detailPurpose", `Preview exactly how "${N.title}" renders for users, check its metadata, SEO, and product association, and review the audit history. Edit it to change the content or its published state — only published pages are visible to end users.`)
113
+ children: z("contentPages.detailPurpose", `Preview exactly how "${P.title}" renders for users, check its metadata, SEO, and product association, and review the audit history. Edit it to change the content or its published state — only published pages are visible to end users.`)
113
114
  }),
114
- /* @__PURE__ */ b(D, {
115
+ /* @__PURE__ */ x(O, {
115
116
  storageKey: "product-content-page-detail",
116
117
  className: "mb-6",
117
118
  steps: [
118
119
  {
119
120
  id: "edit",
120
- label: R("contentPages.steps.edit", "Edit this page"),
121
- description: R("contentPages.steps.editDesc", "Update the content, SEO, or publish status. A new version is recorded on each save."),
122
- onClick: () => A(`${M}/${k}/edit`)
121
+ label: z("contentPages.steps.edit", "Edit this page"),
122
+ description: z("contentPages.steps.editDesc", "Update the content, SEO, or publish status. A new version is recorded on each save."),
123
+ onClick: () => j(`${N}/${A}/edit`)
123
124
  },
124
125
  {
125
126
  id: "review-seo",
126
- label: R("contentPages.steps.seo", "Check SEO & metadata"),
127
- description: R("contentPages.steps.seoDesc", "Make sure the slug, title, and SEO fields are right before this page goes public.")
127
+ label: z("contentPages.steps.seo", "Check SEO & metadata"),
128
+ description: z("contentPages.steps.seoDesc", "Make sure the slug, title, and SEO fields are right before this page goes public.")
128
129
  },
129
130
  {
130
131
  id: "back",
131
- label: R("contentPages.steps.back", "Back to all content pages"),
132
- description: R("contentPages.steps.backDesc", "Return to the list to manage the rest of your content."),
133
- onClick: () => A(M)
132
+ label: z("contentPages.steps.back", "Back to all content pages"),
133
+ description: z("contentPages.steps.backDesc", "Return to the list to manage the rest of your content."),
134
+ onClick: () => j(N)
134
135
  }
135
136
  ]
136
137
  }),
137
- /* @__PURE__ */ x("div", {
138
+ /* @__PURE__ */ S("div", {
138
139
  className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
139
140
  children: [
140
- /* @__PURE__ */ x(T, {
141
+ /* @__PURE__ */ S(E, {
141
142
  className: "lg:col-span-2",
142
- children: [/* @__PURE__ */ b("h2", {
143
+ children: [/* @__PURE__ */ x("h2", {
143
144
  className: "text-lg font-semibold text-text-primary mb-4",
144
- children: R("contentPages.contentPreview", "Content Preview")
145
- }), /* @__PURE__ */ b("div", {
145
+ children: z("contentPages.contentPreview", "Content Preview")
146
+ }), /* @__PURE__ */ x("div", {
146
147
  className: "prose prose-sm max-w-none text-text-secondary leading-relaxed",
147
- children: N.contentFormat === "markdown" ? /* @__PURE__ */ b(C, { children: N.content }) : /* @__PURE__ */ b("div", { dangerouslySetInnerHTML: { __html: N.content } })
148
+ children: P.contentFormat === "markdown" ? /* @__PURE__ */ x(w, { children: P.content }) : P.contentFormat.toLowerCase() === "html" ? /* @__PURE__ */ x("div", { dangerouslySetInnerHTML: { __html: e.sanitize(P.content) } }) : /* @__PURE__ */ x("div", {
149
+ className: "whitespace-pre-wrap",
150
+ children: P.content
151
+ })
148
152
  })]
149
153
  }),
150
- /* @__PURE__ */ x("div", {
154
+ /* @__PURE__ */ S("div", {
151
155
  className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
152
- children: [/* @__PURE__ */ b("h2", {
156
+ children: [/* @__PURE__ */ x("h2", {
153
157
  className: "text-lg font-semibold text-text-primary mb-4",
154
- children: R("contentPages.metadata", "Metadata")
155
- }), /* @__PURE__ */ x("dl", {
158
+ children: z("contentPages.metadata", "Metadata")
159
+ }), /* @__PURE__ */ S("dl", {
156
160
  className: "space-y-3",
157
161
  children: [
158
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
162
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
159
163
  className: "text-sm font-medium text-text-secondary",
160
- children: R("contentPages.slug", "Slug")
161
- }), /* @__PURE__ */ b("dd", {
164
+ children: z("contentPages.slug", "Slug")
165
+ }), /* @__PURE__ */ x("dd", {
162
166
  className: "text-sm text-text-primary mt-1 font-mono",
163
- children: N.slug
167
+ children: P.slug
164
168
  })] }),
165
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
169
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
166
170
  className: "text-sm font-medium text-text-secondary",
167
- children: R("contentPages.version", "Version")
168
- }), /* @__PURE__ */ x("dd", {
171
+ children: z("contentPages.version", "Version")
172
+ }), /* @__PURE__ */ S("dd", {
169
173
  className: "text-sm text-text-primary mt-1 font-mono",
170
- children: ["v", N.version]
174
+ children: ["v", P.version]
171
175
  })] }),
172
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
176
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
173
177
  className: "text-sm font-medium text-text-secondary",
174
- children: R("contentPages.contentFormat", "Content Format")
175
- }), /* @__PURE__ */ b("dd", {
178
+ children: z("contentPages.contentFormat", "Content Format")
179
+ }), /* @__PURE__ */ x("dd", {
176
180
  className: "text-sm text-text-primary mt-1 capitalize",
177
- children: N.contentFormat
181
+ children: P.contentFormat
178
182
  })] }),
179
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
183
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
180
184
  className: "text-sm font-medium text-text-secondary",
181
- children: R("contentPages.sortOrder", "Sort Order")
182
- }), /* @__PURE__ */ b("dd", {
185
+ children: z("contentPages.sortOrder", "Sort Order")
186
+ }), /* @__PURE__ */ x("dd", {
183
187
  className: "text-sm text-text-primary mt-1 font-mono",
184
- children: N.sortOrder
188
+ children: P.sortOrder
185
189
  })] }),
186
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
190
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
187
191
  className: "text-sm font-medium text-text-secondary",
188
- children: R("contentPages.created", "Created")
189
- }), /* @__PURE__ */ b("dd", {
192
+ children: z("contentPages.created", "Created")
193
+ }), /* @__PURE__ */ x("dd", {
190
194
  className: "text-sm text-text-primary mt-1",
191
- children: H(N.createdAt)
195
+ children: U(P.createdAt)
192
196
  })] }),
193
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
197
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
194
198
  className: "text-sm font-medium text-text-secondary",
195
- children: R("contentPages.lastUpdated", "Last Updated")
196
- }), /* @__PURE__ */ b("dd", {
199
+ children: z("contentPages.lastUpdated", "Last Updated")
200
+ }), /* @__PURE__ */ x("dd", {
197
201
  className: "text-sm text-text-primary mt-1",
198
- children: H(N.updatedAt)
202
+ children: U(P.updatedAt)
199
203
  })] }),
200
- N.lastUpdated && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
204
+ P.lastUpdated && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
201
205
  className: "text-sm font-medium text-text-secondary",
202
- children: R("contentPages.contentLastUpdated", "Content Last Updated")
203
- }), /* @__PURE__ */ b("dd", {
206
+ children: z("contentPages.contentLastUpdated", "Content Last Updated")
207
+ }), /* @__PURE__ */ x("dd", {
204
208
  className: "text-sm text-text-primary mt-1",
205
- children: H(N.lastUpdated)
209
+ children: U(P.lastUpdated)
206
210
  })] })
207
211
  ]
208
212
  })]
209
213
  }),
210
- U && /* @__PURE__ */ x("div", {
214
+ W && /* @__PURE__ */ S("div", {
211
215
  className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
212
- children: [/* @__PURE__ */ x("div", {
216
+ children: [/* @__PURE__ */ S("div", {
213
217
  className: "flex items-center gap-2 mb-4",
214
- children: [/* @__PURE__ */ b(g, {
218
+ children: [/* @__PURE__ */ x(_, {
215
219
  size: 20,
216
220
  className: "text-text-secondary"
217
- }), /* @__PURE__ */ b("h2", {
221
+ }), /* @__PURE__ */ x("h2", {
218
222
  className: "text-lg font-semibold text-text-primary",
219
- children: R("contentPages.seoInformation", "SEO Information")
223
+ children: z("contentPages.seoInformation", "SEO Information")
220
224
  })]
221
- }), /* @__PURE__ */ x("dl", {
225
+ }), /* @__PURE__ */ S("dl", {
222
226
  className: "space-y-3",
223
227
  children: [
224
- N.seoTitle && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
228
+ P.seoTitle && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
225
229
  className: "text-sm font-medium text-text-secondary",
226
- children: R("contentPages.seoTitle", "SEO Title")
227
- }), /* @__PURE__ */ b("dd", {
230
+ children: z("contentPages.seoTitle", "SEO Title")
231
+ }), /* @__PURE__ */ x("dd", {
228
232
  className: "text-sm text-text-primary mt-1",
229
- children: N.seoTitle
233
+ children: P.seoTitle
230
234
  })] }),
231
- N.seoDescription && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
235
+ P.seoDescription && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
232
236
  className: "text-sm font-medium text-text-secondary",
233
- children: R("contentPages.seoDescription", "SEO Description")
234
- }), /* @__PURE__ */ b("dd", {
237
+ children: z("contentPages.seoDescription", "SEO Description")
238
+ }), /* @__PURE__ */ x("dd", {
235
239
  className: "text-sm text-text-primary mt-1",
236
- children: N.seoDescription
240
+ children: P.seoDescription
237
241
  })] }),
238
- N.seoKeywords && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
242
+ P.seoKeywords && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
239
243
  className: "text-sm font-medium text-text-secondary",
240
- children: R("contentPages.seoKeywords", "SEO Keywords")
241
- }), /* @__PURE__ */ b("dd", {
244
+ children: z("contentPages.seoKeywords", "SEO Keywords")
245
+ }), /* @__PURE__ */ x("dd", {
242
246
  className: "text-sm text-text-primary mt-1",
243
- children: /* @__PURE__ */ b("div", {
247
+ children: /* @__PURE__ */ x("div", {
244
248
  className: "flex flex-wrap gap-1.5 mt-1",
245
- children: N.seoKeywords.split(",").map((e) => /* @__PURE__ */ b("span", {
249
+ children: P.seoKeywords.split(",").map((e) => /* @__PURE__ */ x("span", {
246
250
  className: "\n inline-flex px-2 py-0.5\n bg-bg-sunken\n text-text-secondary\n rounded-md text-xs font-medium\n ",
247
251
  children: e.trim()
248
252
  }, e.trim()))
@@ -251,63 +255,63 @@ function k() {
251
255
  ]
252
256
  })]
253
257
  }),
254
- N.productId && /* @__PURE__ */ x("div", {
258
+ P.productId && /* @__PURE__ */ S("div", {
255
259
  className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
256
- children: [/* @__PURE__ */ x("div", {
260
+ children: [/* @__PURE__ */ S("div", {
257
261
  className: "flex items-center gap-2 mb-4",
258
- children: [/* @__PURE__ */ b(_, {
262
+ children: [/* @__PURE__ */ x(v, {
259
263
  size: 20,
260
264
  className: "text-text-secondary"
261
- }), /* @__PURE__ */ b("h2", {
265
+ }), /* @__PURE__ */ x("h2", {
262
266
  className: "text-lg font-semibold text-text-primary",
263
- children: R("contentPages.productAssociation", "Product Association")
267
+ children: z("contentPages.productAssociation", "Product Association")
264
268
  })]
265
- }), /* @__PURE__ */ x("dl", {
269
+ }), /* @__PURE__ */ S("dl", {
266
270
  className: "space-y-3",
267
- children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
271
+ children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
268
272
  className: "text-sm font-medium text-text-secondary",
269
- children: R("contentPages.productId", "Product ID")
270
- }), /* @__PURE__ */ b("dd", {
273
+ children: z("contentPages.productId", "Product ID")
274
+ }), /* @__PURE__ */ x("dd", {
271
275
  className: "text-sm text-text-primary mt-1 font-mono",
272
- children: N.productId
273
- })] }), N.product && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
276
+ children: P.productId
277
+ })] }), P.product && /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
274
278
  className: "text-sm font-medium text-text-secondary",
275
- children: R("contentPages.productName", "Product Name")
276
- }), /* @__PURE__ */ b("dd", {
279
+ children: z("contentPages.productName", "Product Name")
280
+ }), /* @__PURE__ */ x("dd", {
277
281
  className: "text-sm text-text-primary mt-1",
278
- children: N.product.name
279
- })] }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
282
+ children: P.product.name
283
+ })] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("dt", {
280
284
  className: "text-sm font-medium text-text-secondary",
281
- children: R("contentPages.productSlug", "Product Slug")
282
- }), /* @__PURE__ */ x("dd", {
285
+ children: z("contentPages.productSlug", "Product Slug")
286
+ }), /* @__PURE__ */ S("dd", {
283
287
  className: "text-sm text-text-primary mt-1 font-mono",
284
- children: ["/", N.product.slug]
288
+ children: ["/", P.product.slug]
285
289
  })] })] })]
286
290
  })]
287
291
  }),
288
- N.tags && N.tags.length > 0 && /* @__PURE__ */ x("div", {
292
+ P.tags && P.tags.length > 0 && /* @__PURE__ */ S("div", {
289
293
  className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1",
290
- children: [/* @__PURE__ */ b("h2", {
294
+ children: [/* @__PURE__ */ x("h2", {
291
295
  className: "text-lg font-semibold text-text-primary mb-4",
292
- children: R("contentPages.tags", "Tags")
293
- }), /* @__PURE__ */ b(s, { tags: N.tags })]
296
+ children: z("contentPages.tags", "Tags")
297
+ }), /* @__PURE__ */ x(c, { tags: P.tags })]
294
298
  }),
295
- /* @__PURE__ */ x("div", {
299
+ /* @__PURE__ */ S("div", {
296
300
  className: "lg:col-span-2 bg-bg-surface border border-border-seam rounded-card shadow-elevation-1",
297
- children: [/* @__PURE__ */ b("h2", {
301
+ children: [/* @__PURE__ */ x("h2", {
298
302
  className: "text-lg font-semibold text-text-primary p-6 pb-0",
299
- children: R("contentPages.activityHistory", "Activity History")
300
- }), /* @__PURE__ */ b(c, {
301
- resourceId: N.id,
303
+ children: z("contentPages.activityHistory", "Activity History")
304
+ }), /* @__PURE__ */ x(l, {
305
+ resourceId: P.id,
302
306
  resourceType: "ProductContentPage"
303
307
  })]
304
308
  })
305
309
  ]
306
310
  }),
307
- B
311
+ V
308
312
  ]
309
313
  });
310
314
  }
311
- export { k as ContentPageDetailPage };
315
+ export { A as ContentPageDetailPage };
312
316
 
313
317
  //# sourceMappingURL=ContentPageDetailPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentPageDetailPage.js","names":["_Fragment","ContentPageDetailPage","useParams","useProductConsole","contentPagesBasePath","basePath","useContentPage","id","deleteLoading","useDeleteContentPage","tr","useTr","useConfirmDialog","handleDelete","message","native","nativeConfirm","confirm","deleteContentPage","nativeNotify","navigate","error","loading","LoadingState","contentPage","ErrorState","formatDate","dateString","hasSeo","ArrowLeft","FileText","GradientText","ContentPageStatusBadge","CTAOverflowMenu","Edit","Trash2","PagePurpose","NextSteps","EmphasisPanel","Markdown","Globe","keyword","Package","Fragment","TagList","AuditHistoryTab","ConfirmDialog"],"sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageDetailPage.tsx"],"sourcesContent":["import { useParams } from 'react-router';\nimport { ArrowLeft, Edit, Trash2, FileText, Globe, Package } from 'lucide-react';\nimport { Markdown } from '@burdenoff/fe-libs/shared/components';\nimport {\n CTAOverflowMenu,\n EmphasisPanel,\n GradientText,\n NextSteps,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useContentPage, useDeleteContentPage } from '../hooks/useContentPages';\nimport { ContentPageStatusBadge } from '../components/ContentPageStatusBadge';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport { TagList } from '../../../shared/components/TagList';\nimport { AuditHistoryTab } from '../../../shared/components/AuditHistoryTab';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../../../utils/nativeBridge';\nimport { useConfirmDialog } from '../../../shared/hooks/useConfirmDialog';\n\n/**\n * Content Page Detail Page\n * Shows comprehensive content page information\n */\nexport function ContentPageDetailPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const contentPagesBasePath = `${basePath}/content-pages`;\n const { contentPage, loading, error } = useContentPage(id!);\n const { deleteContentPage, loading: deleteLoading } = useDeleteContentPage();\n const tr = useTr();\n const { confirm, ConfirmDialog } = useConfirmDialog();\n\n const handleDelete = async () => {\n void nativeImpact('medium');\n const message = tr(\n 'contentPages.confirmDelete',\n 'Are you sure you want to delete this content page?'\n );\n const native = await nativeConfirm({\n title: 'Delete content page',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n });\n const ok =\n native === null\n ? await confirm({\n title: 'Delete content page',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n destructive: true,\n })\n : native;\n if (!ok) return;\n\n try {\n await deleteContentPage(id!);\n void nativeNotify('success');\n navigate(contentPagesBasePath);\n } catch (error) {\n void nativeNotify('error');\n console.error('Failed to delete content page:', error);\n }\n };\n\n if (loading) {\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 (error || !contentPage) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={\n error?.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 const formatDate = (dateString: string | null) => {\n if (!dateString) return '—';\n return new Date(dateString).toLocaleDateString('en-US', {\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n });\n };\n\n const hasSeo = contentPage.seoTitle || contentPage.seoDescription || contentPage.seoKeywords;\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200\">\n {/* Page Header */}\n <div className=\"mb-6\">\n <button\n type=\"button\"\n onClick={() => navigate(contentPagesBasePath)}\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.backToContentPages', 'Back to Content Pages')}\n </span>\n </button>\n\n <div className=\"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4\">\n <div className=\"flex items-center gap-4\">\n <div className=\"size-16 rounded-card bg-[var(--color-status-info-subtle)] flex items-center justify-center\">\n <FileText size={32} className=\"text-[var(--color-status-info)]\" />\n </div>\n\n <div>\n <div className=\"flex flex-wrap items-center gap-3 mb-2\">\n <h1 className=\"text-2xl md:text-3xl font-semibold tracking-tight text-text-primary\">\n <GradientText>{contentPage.title}</GradientText>\n </h1>\n <ContentPageStatusBadge isPublished={contentPage.isPublished} />\n </div>\n <p className=\"text-text-secondary font-mono\">/{contentPage.slug}</p>\n </div>\n </div>\n\n <CTAOverflowMenu\n primary={{\n label: tr('contentPages.editPage', 'Edit Page'),\n onSelect: () => navigate(`${contentPagesBasePath}/${id}/edit`),\n icon: <Edit className=\"size-4\" />,\n }}\n actions={[\n {\n label: tr('contentPages.delete', 'Delete'),\n onSelect: () => {\n void handleDelete();\n },\n intent: 'destructive',\n disabled: deleteLoading,\n icon: <Trash2 className=\"size-4\" />,\n },\n ]}\n />\n </div>\n </div>\n\n <PagePurpose className=\"mb-6\">\n {tr(\n 'contentPages.detailPurpose',\n `Preview exactly how \"${contentPage.title}\" renders for users, check its metadata, SEO, and product association, and review the audit history. Edit it to change the content or its published state — only published pages are visible to end users.`\n )}\n </PagePurpose>\n\n <NextSteps\n storageKey=\"product-content-page-detail\"\n className=\"mb-6\"\n steps={[\n {\n id: 'edit',\n label: tr('contentPages.steps.edit', 'Edit this page'),\n description: tr(\n 'contentPages.steps.editDesc',\n 'Update the content, SEO, or publish status. A new version is recorded on each save.'\n ),\n onClick: () => navigate(`${contentPagesBasePath}/${id}/edit`),\n },\n {\n id: 'review-seo',\n label: tr('contentPages.steps.seo', 'Check SEO & metadata'),\n description: tr(\n 'contentPages.steps.seoDesc',\n 'Make sure the slug, title, and SEO fields are right before this page goes public.'\n ),\n },\n {\n id: 'back',\n label: tr('contentPages.steps.back', 'Back to all content pages'),\n description: tr(\n 'contentPages.steps.backDesc',\n 'Return to the list to manage the rest of your content.'\n ),\n onClick: () => navigate(contentPagesBasePath),\n },\n ]}\n />\n\n {/* Content */}\n <div className=\"grid grid-cols-1 lg:grid-cols-2 gap-6\">\n {/* Content Preview — the page's emphasis zone */}\n <EmphasisPanel className=\"lg:col-span-2\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('contentPages.contentPreview', 'Content Preview')}\n </h2>\n <div className=\"prose prose-sm max-w-none text-text-secondary leading-relaxed\">\n {contentPage.contentFormat === 'markdown' ? (\n <Markdown>{contentPage.content}</Markdown>\n ) : (\n <div dangerouslySetInnerHTML={{ __html: contentPage.content }} />\n )}\n </div>\n </EmphasisPanel>\n\n {/* Metadata */}\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('contentPages.metadata', 'Metadata')}\n </h2>\n <dl className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.slug', 'Slug')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">{contentPage.slug}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.version', 'Version')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">v{contentPage.version}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.contentFormat', 'Content Format')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 capitalize\">\n {contentPage.contentFormat}\n </dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.sortOrder', 'Sort Order')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">{contentPage.sortOrder}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.created', 'Created')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n {formatDate(contentPage.createdAt)}\n </dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.lastUpdated', 'Last Updated')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n {formatDate(contentPage.updatedAt)}\n </dd>\n </div>\n {contentPage.lastUpdated && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.contentLastUpdated', 'Content Last Updated')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n {formatDate(contentPage.lastUpdated)}\n </dd>\n </div>\n )}\n </dl>\n </div>\n\n {/* SEO Information */}\n {hasSeo && (\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]\">\n <div className=\"flex items-center gap-2 mb-4\">\n <Globe size={20} className=\"text-text-secondary\" />\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {tr('contentPages.seoInformation', 'SEO Information')}\n </h2>\n </div>\n <dl className=\"space-y-3\">\n {contentPage.seoTitle && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.seoTitle', 'SEO Title')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{contentPage.seoTitle}</dd>\n </div>\n )}\n {contentPage.seoDescription && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.seoDescription', 'SEO Description')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{contentPage.seoDescription}</dd>\n </div>\n )}\n {contentPage.seoKeywords && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.seoKeywords', 'SEO Keywords')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n <div className=\"flex flex-wrap gap-1.5 mt-1\">\n {contentPage.seoKeywords.split(',').map((keyword) => (\n <span\n key={keyword.trim()}\n className=\"\n inline-flex px-2 py-0.5\n bg-bg-sunken\n text-text-secondary\n rounded-md text-xs font-medium\n \"\n >\n {keyword.trim()}\n </span>\n ))}\n </div>\n </dd>\n </div>\n )}\n </dl>\n </div>\n )}\n\n {/* Product Association */}\n {contentPage.productId && (\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]\">\n <div className=\"flex items-center gap-2 mb-4\">\n <Package size={20} className=\"text-text-secondary\" />\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {tr('contentPages.productAssociation', 'Product Association')}\n </h2>\n </div>\n <dl className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.productId', 'Product ID')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">\n {contentPage.productId}\n </dd>\n </div>\n {contentPage.product && (\n <>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.productName', 'Product Name')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{contentPage.product.name}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.productSlug', 'Product Slug')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">\n /{contentPage.product.slug}\n </dd>\n </div>\n </>\n )}\n </dl>\n </div>\n )}\n\n {/* Tags */}\n {contentPage.tags && contentPage.tags.length > 0 && (\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('contentPages.tags', 'Tags')}\n </h2>\n <TagList tags={contentPage.tags} />\n </div>\n )}\n\n {/* Activity History */}\n <div className=\"lg:col-span-2 bg-bg-surface border border-border-seam rounded-card shadow-elevation-1\">\n <h2 className=\"text-lg font-semibold text-text-primary p-6 pb-0\">\n {tr('contentPages.activityHistory', 'Activity History')}\n </h2>\n <AuditHistoryTab resourceId={contentPage.id} resourceType=\"ProductContentPage\" />\n </div>\n </div>\n {ConfirmDialog}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAyBA,SAAgBC,IAAwB;CACtC,IAAM,EAAE,UAAOC,EAA0B,GACnC,EAAE,aAAU,cAAW,gBAAgBC,EAAkB,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version":3,"file":"ContentPageDetailPage.js","names":["DOMPurify","_Fragment","purify_default","ContentPageDetailPage","useParams","useProductConsole","contentPagesBasePath","basePath","useContentPage","id","deleteLoading","useDeleteContentPage","tr","useTr","useConfirmDialog","handleDelete","message","native","nativeConfirm","confirm","deleteContentPage","nativeNotify","navigate","error","loading","LoadingState","contentPage","ErrorState","formatDate","dateString","hasSeo","ArrowLeft","FileText","GradientText","ContentPageStatusBadge","CTAOverflowMenu","Edit","Trash2","PagePurpose","NextSteps","EmphasisPanel","Markdown","Globe","keyword","Package","Fragment","TagList","AuditHistoryTab","ConfirmDialog"],"sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageDetailPage.tsx"],"sourcesContent":["import { useParams } from 'react-router';\nimport DOMPurify from 'dompurify';\nimport { ArrowLeft, Edit, Trash2, FileText, Globe, Package } from 'lucide-react';\nimport { Markdown } from '@burdenoff/fe-libs/shared/components';\nimport {\n CTAOverflowMenu,\n EmphasisPanel,\n GradientText,\n NextSteps,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useContentPage, useDeleteContentPage } from '../hooks/useContentPages';\nimport { ContentPageStatusBadge } from '../components/ContentPageStatusBadge';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport { TagList } from '../../../shared/components/TagList';\nimport { AuditHistoryTab } from '../../../shared/components/AuditHistoryTab';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../../../utils/nativeBridge';\nimport { useConfirmDialog } from '../../../shared/hooks/useConfirmDialog';\n\n/**\n * Content Page Detail Page\n * Shows comprehensive content page information\n */\nexport function ContentPageDetailPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const contentPagesBasePath = `${basePath}/content-pages`;\n const { contentPage, loading, error } = useContentPage(id!);\n const { deleteContentPage, loading: deleteLoading } = useDeleteContentPage();\n const tr = useTr();\n const { confirm, ConfirmDialog } = useConfirmDialog();\n\n const handleDelete = async () => {\n void nativeImpact('medium');\n const message = tr(\n 'contentPages.confirmDelete',\n 'Are you sure you want to delete this content page?'\n );\n const native = await nativeConfirm({\n title: 'Delete content page',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n });\n const ok =\n native === null\n ? await confirm({\n title: 'Delete content page',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n destructive: true,\n })\n : native;\n if (!ok) return;\n\n try {\n await deleteContentPage(id!);\n void nativeNotify('success');\n navigate(contentPagesBasePath);\n } catch (error) {\n void nativeNotify('error');\n console.error('Failed to delete content page:', error);\n }\n };\n\n if (loading) {\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 (error || !contentPage) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={\n error?.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 const formatDate = (dateString: string | null) => {\n if (!dateString) return '—';\n return new Date(dateString).toLocaleDateString('en-US', {\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n });\n };\n\n const hasSeo = contentPage.seoTitle || contentPage.seoDescription || contentPage.seoKeywords;\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200\">\n {/* Page Header */}\n <div className=\"mb-6\">\n <button\n type=\"button\"\n onClick={() => navigate(contentPagesBasePath)}\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.backToContentPages', 'Back to Content Pages')}\n </span>\n </button>\n\n <div className=\"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4\">\n <div className=\"flex items-center gap-4\">\n <div className=\"size-16 rounded-card bg-[var(--color-status-info-subtle)] flex items-center justify-center\">\n <FileText size={32} className=\"text-[var(--color-status-info)]\" />\n </div>\n\n <div>\n <div className=\"flex flex-wrap items-center gap-3 mb-2\">\n <h1 className=\"text-2xl md:text-3xl font-semibold tracking-tight text-text-primary\">\n <GradientText>{contentPage.title}</GradientText>\n </h1>\n <ContentPageStatusBadge isPublished={contentPage.isPublished} />\n </div>\n <p className=\"text-text-secondary font-mono\">/{contentPage.slug}</p>\n </div>\n </div>\n\n <CTAOverflowMenu\n primary={{\n label: tr('contentPages.editPage', 'Edit Page'),\n onSelect: () => navigate(`${contentPagesBasePath}/${id}/edit`),\n icon: <Edit className=\"size-4\" />,\n }}\n actions={[\n {\n label: tr('contentPages.delete', 'Delete'),\n onSelect: () => {\n void handleDelete();\n },\n intent: 'destructive',\n disabled: deleteLoading,\n icon: <Trash2 className=\"size-4\" />,\n },\n ]}\n />\n </div>\n </div>\n\n <PagePurpose className=\"mb-6\">\n {tr(\n 'contentPages.detailPurpose',\n `Preview exactly how \"${contentPage.title}\" renders for users, check its metadata, SEO, and product association, and review the audit history. Edit it to change the content or its published state — only published pages are visible to end users.`\n )}\n </PagePurpose>\n\n <NextSteps\n storageKey=\"product-content-page-detail\"\n className=\"mb-6\"\n steps={[\n {\n id: 'edit',\n label: tr('contentPages.steps.edit', 'Edit this page'),\n description: tr(\n 'contentPages.steps.editDesc',\n 'Update the content, SEO, or publish status. A new version is recorded on each save.'\n ),\n onClick: () => navigate(`${contentPagesBasePath}/${id}/edit`),\n },\n {\n id: 'review-seo',\n label: tr('contentPages.steps.seo', 'Check SEO & metadata'),\n description: tr(\n 'contentPages.steps.seoDesc',\n 'Make sure the slug, title, and SEO fields are right before this page goes public.'\n ),\n },\n {\n id: 'back',\n label: tr('contentPages.steps.back', 'Back to all content pages'),\n description: tr(\n 'contentPages.steps.backDesc',\n 'Return to the list to manage the rest of your content.'\n ),\n onClick: () => navigate(contentPagesBasePath),\n },\n ]}\n />\n\n {/* Content */}\n <div className=\"grid grid-cols-1 lg:grid-cols-2 gap-6\">\n {/* Content Preview — the page's emphasis zone */}\n <EmphasisPanel className=\"lg:col-span-2\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('contentPages.contentPreview', 'Content Preview')}\n </h2>\n <div className=\"prose prose-sm max-w-none text-text-secondary leading-relaxed\">\n {contentPage.contentFormat === 'markdown' ? (\n <Markdown>{contentPage.content}</Markdown>\n ) : contentPage.contentFormat.toLowerCase() === 'html' ? (\n <div dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(contentPage.content) }} />\n ) : (\n <div className=\"whitespace-pre-wrap\">{contentPage.content}</div>\n )}\n </div>\n </EmphasisPanel>\n\n {/* Metadata */}\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('contentPages.metadata', 'Metadata')}\n </h2>\n <dl className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.slug', 'Slug')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">{contentPage.slug}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.version', 'Version')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">v{contentPage.version}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.contentFormat', 'Content Format')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 capitalize\">\n {contentPage.contentFormat}\n </dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.sortOrder', 'Sort Order')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">{contentPage.sortOrder}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.created', 'Created')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n {formatDate(contentPage.createdAt)}\n </dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.lastUpdated', 'Last Updated')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n {formatDate(contentPage.updatedAt)}\n </dd>\n </div>\n {contentPage.lastUpdated && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.contentLastUpdated', 'Content Last Updated')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n {formatDate(contentPage.lastUpdated)}\n </dd>\n </div>\n )}\n </dl>\n </div>\n\n {/* SEO Information */}\n {hasSeo && (\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]\">\n <div className=\"flex items-center gap-2 mb-4\">\n <Globe size={20} className=\"text-text-secondary\" />\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {tr('contentPages.seoInformation', 'SEO Information')}\n </h2>\n </div>\n <dl className=\"space-y-3\">\n {contentPage.seoTitle && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.seoTitle', 'SEO Title')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{contentPage.seoTitle}</dd>\n </div>\n )}\n {contentPage.seoDescription && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.seoDescription', 'SEO Description')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{contentPage.seoDescription}</dd>\n </div>\n )}\n {contentPage.seoKeywords && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.seoKeywords', 'SEO Keywords')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">\n <div className=\"flex flex-wrap gap-1.5 mt-1\">\n {contentPage.seoKeywords.split(',').map((keyword) => (\n <span\n key={keyword.trim()}\n className=\"\n inline-flex px-2 py-0.5\n bg-bg-sunken\n text-text-secondary\n rounded-md text-xs font-medium\n \"\n >\n {keyword.trim()}\n </span>\n ))}\n </div>\n </dd>\n </div>\n )}\n </dl>\n </div>\n )}\n\n {/* Product Association */}\n {contentPage.productId && (\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]\">\n <div className=\"flex items-center gap-2 mb-4\">\n <Package size={20} className=\"text-text-secondary\" />\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {tr('contentPages.productAssociation', 'Product Association')}\n </h2>\n </div>\n <dl className=\"space-y-3\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.productId', 'Product ID')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">\n {contentPage.productId}\n </dd>\n </div>\n {contentPage.product && (\n <>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.productName', 'Product Name')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1\">{contentPage.product.name}</dd>\n </div>\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('contentPages.productSlug', 'Product Slug')}\n </dt>\n <dd className=\"text-sm text-text-primary mt-1 font-mono\">\n /{contentPage.product.slug}\n </dd>\n </div>\n </>\n )}\n </dl>\n </div>\n )}\n\n {/* Tags */}\n {contentPage.tags && contentPage.tags.length > 0 && (\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('contentPages.tags', 'Tags')}\n </h2>\n <TagList tags={contentPage.tags} />\n </div>\n )}\n\n {/* Activity History */}\n <div className=\"lg:col-span-2 bg-bg-surface border border-border-seam rounded-card shadow-elevation-1\">\n <h2 className=\"text-lg font-semibold text-text-primary p-6 pb-0\">\n {tr('contentPages.activityHistory', 'Activity History')}\n </h2>\n <AuditHistoryTab resourceId={contentPage.id} resourceType=\"ProductContentPage\" />\n </div>\n </div>\n {ConfirmDialog}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AA0BA,SAAgBG,IAAwB;CACtC,IAAM,EAAE,UAAOC,EAA0B,GACnC,EAAE,aAAU,cAAW,gBAAgBC,EAAkB,GACzDC,IAAuB,GAAGC,EAAS,iBACnC,EAAE,gBAAa,YAAS,aAAUC,EAAeC,CAAG,GACpD,EAAE,sBAAmB,SAASC,MAAkBC,EAAqB,GACrEC,IAAKC,EAAM,GACX,EAAE,YAAS,qBAAkBC,EAAiB,GAE9CC,IAAe,YAAY;EAC/B,EAAkB,QAAQ;EAC1B,IAAMC,IAAUJ,EACd,8BACA,oDACF,GACMK,IAAS,MAAMC,EAAc;GACjC,OAAO;GACP;GACA,eAAe;GACf,mBAAmB;EACrB,CAAC;EAWD,IATED,MAAW,OACP,MAAME,EAAQ;GACZ,OAAO;GACP;GACA,eAAe;GACf,mBAAmB;GACnB,aAAa;EACf,CAAC,IACDF,GAGN,IAAI;GAGF,AAFA,MAAMG,EAAkBX,CAAG,GAC3BY,EAAkB,SAAS,GAC3BC,EAAShB,CAAoB;EAC/B,SAASiB,GAAO;GAEd,AADAF,EAAkB,OAAO,GACzB,QAAQ,MAAM,kCAAkCE,CAAK;EACvD;CACF;CAEA,IAAIC,GACF,OACE,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAACC,GAAD,EAAc,SAASb,EAAG,mCAAmC,yBAAyB,EAAI,CAAA;CACvF,CAAA;CAIT,IAAIW,KAAS,CAACG,GACZ,OACE,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAACC,GA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;OACD,CAAA,CAAA,EAAA,CAAA,CACL,EAAA,CAAA,CAEF;MACD,CAAA,CAAA;;KAINA,EAAY,QAAQA,EAAY,KAAK,SAAS,KAC7C,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,MAAD;OAAI,WAAU;OACX,UAAAd,EAAG,qBAAqB,MAAM;MAC7B,CAAA,GACJ,kBAACkC,GAAD,EAAS,MAAMpB,EAAY,KAAO,CAAA,CAC/B;;KAIP,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,MAAD;OAAI,WAAU;OACX,UAAAd,EAAG,gCAAgC,kBAAkB;MACpD,CAAA,GACJ,kBAACmC,GAAD;OAAiB,YAAYrB,EAAY;OAAI,cAAa;MAAsB,CAAA,CAC7E;;IACF;;GACJsB;EACE;;AAET"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-product",
3
- "version": "2026.1117.1",
3
+ "version": "2026.1122.1",
4
4
  "description": "Product management microfrontend for Burdenoff products",
5
5
  "type": "module",
6
6
  "files": [