@burdenoff/microfe-product 2026.624.2 → 2026.625.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 (65) hide show
  1. package/dist/product/pages/ContentPageViewPage.js +25 -24
  2. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  3. package/dist/product/pages/ProductCatalogPage.js +69 -64
  4. package/dist/product/pages/ProductCatalogPage.js.map +1 -1
  5. package/dist/product/pages/ProductViewPage.js +91 -86
  6. package/dist/product/pages/ProductViewPage.js.map +1 -1
  7. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +7 -7
  8. package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
  9. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +2 -2
  10. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
  11. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +243 -230
  12. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  13. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +2 -2
  14. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
  15. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +293 -277
  16. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  17. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +1 -1
  18. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
  19. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +2 -2
  20. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
  21. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +158 -148
  22. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
  23. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +2 -2
  24. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
  25. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +98 -81
  26. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
  27. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +4 -4
  28. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
  29. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +2 -2
  30. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
  31. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +109 -99
  32. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  33. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +2 -2
  34. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
  35. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +252 -236
  36. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  37. package/dist/product-management/modules/products/components/ProductForm.js +8 -8
  38. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
  39. package/dist/product-management/modules/products/components/ProductPlans.js +4 -4
  40. package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
  41. package/dist/product-management/modules/products/pages/ProductCreatePage.js +2 -2
  42. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
  43. package/dist/product-management/modules/products/pages/ProductDetailPage.js +408 -395
  44. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  45. package/dist/product-management/modules/products/pages/ProductEditPage.js +2 -2
  46. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
  47. package/dist/product-management/modules/products/pages/ProductsListPage.js +301 -281
  48. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  49. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +3 -3
  50. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
  51. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +2 -2
  52. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
  53. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +221 -218
  54. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  55. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +2 -2
  56. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
  57. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +260 -241
  58. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  59. package/dist/product-management/shared/components/AuditHistoryTab.js +1 -1
  60. package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
  61. package/dist/product-management/shared/components/feedback/EmptyState.js +2 -20
  62. package/dist/product-management/shared/hooks/useConfirmDialog.js +44 -0
  63. package/dist/product-management/shared/hooks/useConfirmDialog.js.map +1 -0
  64. package/package.json +2 -2
  65. package/dist/product-management/shared/components/feedback/EmptyState.js.map +0 -1
@@ -3,274 +3,287 @@ import { useProductConsole as t } from "../../../providers/ProductConsoleProvide
3
3
  import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
4
4
  import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.js";
5
5
  import { nativeConfirm as i, nativeImpact as a, nativeNotify as o } from "../../../../utils/nativeBridge.js";
6
- import { useContentPage as s, useDeleteContentPage as c } from "../hooks/useContentPages.js";
7
- import { ContentPageStatusBadge as l } from "../components/ContentPageStatusBadge.js";
8
- import { TagList as u } from "../../../shared/components/TagList.js";
9
- import { AuditHistoryTab as d } from "../../../shared/components/AuditHistoryTab.js";
10
- import { ArrowLeft as f, Edit as p, FileText as m, Globe as h, Package as g, Trash2 as _ } from "lucide-react";
11
- import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
12
- import { useParams as x } from "react-router-dom";
6
+ import { useConfirmDialog as s } from "../../../shared/hooks/useConfirmDialog.js";
7
+ import { useContentPage as c, useDeleteContentPage as l } from "../hooks/useContentPages.js";
8
+ import { ContentPageStatusBadge as u } from "../components/ContentPageStatusBadge.js";
9
+ import { TagList as d } from "../../../shared/components/TagList.js";
10
+ import { AuditHistoryTab as f } from "../../../shared/components/AuditHistoryTab.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-dom";
14
+ import { CTAOverflowMenu as C, GradientText as w } from "@burdenoff/fe-libs/ui";
13
15
  //#region src/product-management/modules/content-pages/pages/ContentPageDetailPage.tsx
14
- function S(e) {
16
+ function T(e) {
15
17
  return e.replace(/^### (.+)$/gm, "<h3 class=\"text-lg font-semibold mt-4 mb-2\">$1</h3>").replace(/^## (.+)$/gm, "<h2 class=\"text-xl font-semibold mt-5 mb-2\">$1</h2>").replace(/^# (.+)$/gm, "<h1 class=\"text-2xl font-bold mt-6 mb-3\">$1</h1>").replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>").replace(/\*(.+?)\*/g, "<em>$1</em>").replace(/`(.+?)`/g, "<code class=\"px-1.5 py-0.5 bg-bg-sunken rounded text-sm font-mono\">$1</code>").replace(/```[\s\S]*?```/g, (e) => `<pre class="bg-bg-sunken rounded-lg p-4 overflow-x-auto my-3"><code class="text-sm font-mono">${e.replace(/```\w*\n?/, "").replace(/\n?```$/, "")}</code></pre>`).replace(/\[(.+?)\]\((.+?)\)/g, "<a href=\"$2\" class=\"text-[var(--color-status-info)] underline\">$1</a>").replace(/^- (.+)$/gm, "<li class=\"ml-4 list-disc\">$1</li>").replace(/\n\n/g, "</p><p class=\"mb-3\">").replace(/\n/g, "<br/>");
16
18
  }
17
- function C() {
18
- let { id: C } = x(), { navigate: w, basePath: T = "/products" } = t(), E = `${T}/content-pages`, { contentPage: D, loading: O, error: k } = s(C), { deleteContentPage: A, loading: j } = c(), M = e(), N = async () => {
19
+ function E() {
20
+ let { id: E } = S(), { navigate: D, basePath: O = "/products" } = t(), k = `${O}/content-pages`, { contentPage: A, loading: j, error: M } = c(E), { deleteContentPage: N, loading: P } = l(), F = e(), { confirm: I, ConfirmDialog: L } = s(), R = async () => {
19
21
  a("medium");
20
- let e = M("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), t = await i({
22
+ let e = F("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), t = await i({
21
23
  title: "Delete content page",
22
24
  message: e,
23
25
  okButtonTitle: "Delete",
24
26
  cancelButtonTitle: "Cancel"
25
27
  });
26
- if (t === null ? window.confirm(e) : t) try {
27
- await A(C), o("success"), w(E);
28
+ if (t === null ? await I({
29
+ title: "Delete content page",
30
+ message: e,
31
+ okButtonTitle: "Delete",
32
+ cancelButtonTitle: "Cancel",
33
+ destructive: !0
34
+ }) : t) try {
35
+ await N(E), o("success"), D(k);
28
36
  } catch (e) {
29
37
  o("error"), console.error("Failed to delete content page:", e);
30
38
  }
31
39
  };
32
- if (O) return /* @__PURE__ */ y("div", {
40
+ if (j) return /* @__PURE__ */ b("div", {
33
41
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
34
- children: /* @__PURE__ */ y(n, { message: M("contentPages.loadingContentPage", "Loading content page...") })
42
+ children: /* @__PURE__ */ b(n, { message: F("contentPages.loadingContentPage", "Loading content page...") })
35
43
  });
36
- if (k || !D) return /* @__PURE__ */ y("div", {
44
+ if (M || !A) return /* @__PURE__ */ b("div", {
37
45
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
38
- children: /* @__PURE__ */ y(r, {
39
- message: k?.message || M("contentPages.contentPageNotFound", "Content page not found"),
46
+ children: /* @__PURE__ */ b(r, {
47
+ message: M?.message || F("contentPages.contentPageNotFound", "Content page not found"),
40
48
  action: {
41
- label: M("contentPages.backToContentPages", "Back to Content Pages"),
42
- onClick: () => w(E)
49
+ label: F("contentPages.backToContentPages", "Back to Content Pages"),
50
+ onClick: () => D(k)
43
51
  }
44
52
  })
45
53
  });
46
- let P = (e) => e ? new Date(e).toLocaleDateString("en-US", {
54
+ let z = (e) => e ? new Date(e).toLocaleDateString("en-US", {
47
55
  year: "numeric",
48
56
  month: "long",
49
57
  day: "numeric",
50
58
  hour: "2-digit",
51
59
  minute: "2-digit"
52
- }) : "—", F = D.seoTitle || D.seoDescription || D.seoKeywords;
53
- return /* @__PURE__ */ b("div", {
60
+ }) : "—", B = A.seoTitle || A.seoDescription || A.seoKeywords;
61
+ return /* @__PURE__ */ x("div", {
54
62
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
55
- children: [/* @__PURE__ */ b("div", {
56
- className: "mb-6",
57
- children: [/* @__PURE__ */ b("button", {
58
- type: "button",
59
- onClick: () => w(E),
60
- 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 ",
61
- children: [/* @__PURE__ */ y(f, { size: 20 }), /* @__PURE__ */ y("span", {
62
- className: "text-sm font-medium",
63
- children: M("contentPages.backToContentPages", "Back to Content Pages")
64
- })]
65
- }), /* @__PURE__ */ b("div", {
66
- className: "flex items-start justify-between",
67
- children: [/* @__PURE__ */ b("div", {
68
- className: "flex items-center gap-4",
69
- children: [/* @__PURE__ */ y("div", {
70
- className: "size-16 rounded-lg bg-[var(--color-status-info-subtle)] flex items-center justify-center",
71
- children: /* @__PURE__ */ y(m, {
72
- size: 32,
73
- className: "text-[var(--color-status-info)]"
74
- })
75
- }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
76
- className: "flex items-center gap-3 mb-2",
77
- children: [/* @__PURE__ */ y("h1", {
78
- className: "text-3xl font-bold text-text-primary",
79
- children: D.title
80
- }), /* @__PURE__ */ y(l, { isPublished: D.isPublished })]
81
- }), /* @__PURE__ */ b("p", {
82
- className: "text-text-secondary",
83
- children: ["/", D.slug]
84
- })] })]
85
- }), /* @__PURE__ */ b("div", {
86
- className: "flex gap-2",
87
- children: [/* @__PURE__ */ b("button", {
88
- type: "button",
89
- onClick: () => w(`${E}/${C}/edit`),
90
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n font-medium\n ",
91
- children: [/* @__PURE__ */ y(p, { size: 16 }), "Edit Page"]
92
- }), /* @__PURE__ */ b("button", {
93
- type: "button",
94
- onClick: N,
95
- disabled: j,
96
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error-border)]\n rounded-lg\n hover:opacity-80\n transition-all duration-200\n font-medium\n disabled:opacity-50\n ",
97
- children: [/* @__PURE__ */ y(_, { size: 16 }), "Delete"]
63
+ children: [
64
+ /* @__PURE__ */ x("div", {
65
+ className: "mb-6",
66
+ children: [/* @__PURE__ */ x("button", {
67
+ type: "button",
68
+ onClick: () => D(k),
69
+ 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 ",
70
+ children: [/* @__PURE__ */ b(p, { size: 20 }), /* @__PURE__ */ b("span", {
71
+ className: "text-sm font-medium",
72
+ children: F("contentPages.backToContentPages", "Back to Content Pages")
98
73
  })]
99
- })]
100
- })]
101
- }), /* @__PURE__ */ b("div", {
102
- className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
103
- children: [
104
- /* @__PURE__ */ b("div", {
105
- className: "lg:col-span-2 bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
106
- children: [/* @__PURE__ */ y("h2", {
107
- className: "text-lg font-semibold text-text-primary mb-4",
108
- children: M("contentPages.contentPreview", "Content Preview")
109
- }), /* @__PURE__ */ y("div", {
110
- className: "prose prose-sm max-w-none text-text-secondary leading-relaxed",
111
- dangerouslySetInnerHTML: { __html: D.contentFormat === "markdown" ? S(D.content) : D.content }
74
+ }), /* @__PURE__ */ x("div", {
75
+ className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",
76
+ children: [/* @__PURE__ */ x("div", {
77
+ className: "flex items-center gap-4",
78
+ children: [/* @__PURE__ */ b("div", {
79
+ className: "size-16 rounded-card bg-[var(--color-status-info-subtle)] flex items-center justify-center",
80
+ children: /* @__PURE__ */ b(h, {
81
+ size: 32,
82
+ className: "text-[var(--color-status-info)]"
83
+ })
84
+ }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
85
+ className: "flex flex-wrap items-center gap-3 mb-2",
86
+ children: [/* @__PURE__ */ b("h1", {
87
+ className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
88
+ children: /* @__PURE__ */ b(w, { children: A.title })
89
+ }), /* @__PURE__ */ b(u, { isPublished: A.isPublished })]
90
+ }), /* @__PURE__ */ x("p", {
91
+ className: "text-text-secondary font-mono",
92
+ children: ["/", A.slug]
93
+ })] })]
94
+ }), /* @__PURE__ */ b(C, {
95
+ primary: {
96
+ label: F("contentPages.editPage", "Edit Page"),
97
+ onSelect: () => D(`${k}/${E}/edit`),
98
+ icon: /* @__PURE__ */ b(m, { className: "size-4" })
99
+ },
100
+ actions: [{
101
+ label: F("contentPages.delete", "Delete"),
102
+ onSelect: () => {
103
+ R();
104
+ },
105
+ intent: "destructive",
106
+ disabled: P,
107
+ icon: /* @__PURE__ */ b(v, { className: "size-4" })
108
+ }]
112
109
  })]
113
- }),
114
- /* @__PURE__ */ b("div", {
115
- className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
116
- children: [/* @__PURE__ */ y("h2", {
117
- className: "text-lg font-semibold text-text-primary mb-4",
118
- children: M("contentPages.metadata", "Metadata")
119
- }), /* @__PURE__ */ b("dl", {
120
- className: "space-y-3",
121
- children: [
122
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
123
- className: "text-sm font-medium text-text-secondary",
124
- children: M("contentPages.slug", "Slug")
125
- }), /* @__PURE__ */ y("dd", {
126
- className: "text-sm text-text-primary mt-1 font-mono",
127
- children: D.slug
128
- })] }),
129
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
110
+ })]
111
+ }),
112
+ /* @__PURE__ */ x("div", {
113
+ className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
114
+ children: [
115
+ /* @__PURE__ */ x("div", {
116
+ className: "lg:col-span-2 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)]",
117
+ children: [/* @__PURE__ */ b("h2", {
118
+ className: "text-lg font-semibold text-text-primary mb-4",
119
+ children: F("contentPages.contentPreview", "Content Preview")
120
+ }), /* @__PURE__ */ b("div", {
121
+ className: "prose prose-sm max-w-none text-text-secondary leading-relaxed",
122
+ dangerouslySetInnerHTML: { __html: A.contentFormat === "markdown" ? T(A.content) : A.content }
123
+ })]
124
+ }),
125
+ /* @__PURE__ */ x("div", {
126
+ 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)]",
127
+ children: [/* @__PURE__ */ b("h2", {
128
+ className: "text-lg font-semibold text-text-primary mb-4",
129
+ children: F("contentPages.metadata", "Metadata")
130
+ }), /* @__PURE__ */ x("dl", {
131
+ className: "space-y-3",
132
+ children: [
133
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
134
+ className: "text-sm font-medium text-text-secondary",
135
+ children: F("contentPages.slug", "Slug")
136
+ }), /* @__PURE__ */ b("dd", {
137
+ className: "text-sm text-text-primary mt-1 font-mono",
138
+ children: A.slug
139
+ })] }),
140
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
141
+ className: "text-sm font-medium text-text-secondary",
142
+ children: F("contentPages.version", "Version")
143
+ }), /* @__PURE__ */ x("dd", {
144
+ className: "text-sm text-text-primary mt-1 font-mono",
145
+ children: ["v", A.version]
146
+ })] }),
147
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
148
+ className: "text-sm font-medium text-text-secondary",
149
+ children: F("contentPages.contentFormat", "Content Format")
150
+ }), /* @__PURE__ */ b("dd", {
151
+ className: "text-sm text-text-primary mt-1 capitalize",
152
+ children: A.contentFormat
153
+ })] }),
154
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
155
+ className: "text-sm font-medium text-text-secondary",
156
+ children: F("contentPages.sortOrder", "Sort Order")
157
+ }), /* @__PURE__ */ b("dd", {
158
+ className: "text-sm text-text-primary mt-1 font-mono",
159
+ children: A.sortOrder
160
+ })] }),
161
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
162
+ className: "text-sm font-medium text-text-secondary",
163
+ children: F("contentPages.created", "Created")
164
+ }), /* @__PURE__ */ b("dd", {
165
+ className: "text-sm text-text-primary mt-1",
166
+ children: z(A.createdAt)
167
+ })] }),
168
+ /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
169
+ className: "text-sm font-medium text-text-secondary",
170
+ children: F("contentPages.lastUpdated", "Last Updated")
171
+ }), /* @__PURE__ */ b("dd", {
172
+ className: "text-sm text-text-primary mt-1",
173
+ children: z(A.updatedAt)
174
+ })] }),
175
+ A.lastUpdated && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
176
+ className: "text-sm font-medium text-text-secondary",
177
+ children: F("contentPages.contentLastUpdated", "Content Last Updated")
178
+ }), /* @__PURE__ */ b("dd", {
179
+ className: "text-sm text-text-primary mt-1",
180
+ children: z(A.lastUpdated)
181
+ })] })
182
+ ]
183
+ })]
184
+ }),
185
+ B && /* @__PURE__ */ x("div", {
186
+ 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)]",
187
+ children: [/* @__PURE__ */ x("div", {
188
+ className: "flex items-center gap-2 mb-4",
189
+ children: [/* @__PURE__ */ b(g, {
190
+ size: 20,
191
+ className: "text-text-secondary"
192
+ }), /* @__PURE__ */ b("h2", {
193
+ className: "text-lg font-semibold text-text-primary",
194
+ children: F("contentPages.seoInformation", "SEO Information")
195
+ })]
196
+ }), /* @__PURE__ */ x("dl", {
197
+ className: "space-y-3",
198
+ children: [
199
+ A.seoTitle && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
200
+ className: "text-sm font-medium text-text-secondary",
201
+ children: F("contentPages.seoTitle", "SEO Title")
202
+ }), /* @__PURE__ */ b("dd", {
203
+ className: "text-sm text-text-primary mt-1",
204
+ children: A.seoTitle
205
+ })] }),
206
+ A.seoDescription && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
207
+ className: "text-sm font-medium text-text-secondary",
208
+ children: F("contentPages.seoDescription", "SEO Description")
209
+ }), /* @__PURE__ */ b("dd", {
210
+ className: "text-sm text-text-primary mt-1",
211
+ children: A.seoDescription
212
+ })] }),
213
+ A.seoKeywords && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
214
+ className: "text-sm font-medium text-text-secondary",
215
+ children: F("contentPages.seoKeywords", "SEO Keywords")
216
+ }), /* @__PURE__ */ b("dd", {
217
+ className: "text-sm text-text-primary mt-1",
218
+ children: /* @__PURE__ */ b("div", {
219
+ className: "flex flex-wrap gap-1.5 mt-1",
220
+ children: A.seoKeywords.split(",").map((e) => /* @__PURE__ */ b("span", {
221
+ 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 ",
222
+ children: e.trim()
223
+ }, e.trim()))
224
+ })
225
+ })] })
226
+ ]
227
+ })]
228
+ }),
229
+ A.productId && /* @__PURE__ */ x("div", {
230
+ 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)]",
231
+ children: [/* @__PURE__ */ x("div", {
232
+ className: "flex items-center gap-2 mb-4",
233
+ children: [/* @__PURE__ */ b(_, {
234
+ size: 20,
235
+ className: "text-text-secondary"
236
+ }), /* @__PURE__ */ b("h2", {
237
+ className: "text-lg font-semibold text-text-primary",
238
+ children: F("contentPages.productAssociation", "Product Association")
239
+ })]
240
+ }), /* @__PURE__ */ x("dl", {
241
+ className: "space-y-3",
242
+ children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
130
243
  className: "text-sm font-medium text-text-secondary",
131
- children: M("contentPages.version", "Version")
244
+ children: F("contentPages.productId", "Product ID")
132
245
  }), /* @__PURE__ */ b("dd", {
133
246
  className: "text-sm text-text-primary mt-1 font-mono",
134
- children: ["v", D.version]
135
- })] }),
136
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
137
- className: "text-sm font-medium text-text-secondary",
138
- children: M("contentPages.contentFormat", "Content Format")
139
- }), /* @__PURE__ */ y("dd", {
140
- className: "text-sm text-text-primary mt-1 capitalize",
141
- children: D.contentFormat
142
- })] }),
143
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
247
+ children: A.productId
248
+ })] }), A.product && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
144
249
  className: "text-sm font-medium text-text-secondary",
145
- children: M("contentPages.sortOrder", "Sort Order")
146
- }), /* @__PURE__ */ y("dd", {
147
- className: "text-sm text-text-primary mt-1 font-mono",
148
- children: D.sortOrder
149
- })] }),
150
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
151
- className: "text-sm font-medium text-text-secondary",
152
- children: M("contentPages.created", "Created")
153
- }), /* @__PURE__ */ y("dd", {
154
- className: "text-sm text-text-primary mt-1",
155
- children: P(D.createdAt)
156
- })] }),
157
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
158
- className: "text-sm font-medium text-text-secondary",
159
- children: M("contentPages.lastUpdated", "Last Updated")
160
- }), /* @__PURE__ */ y("dd", {
250
+ children: F("contentPages.productName", "Product Name")
251
+ }), /* @__PURE__ */ b("dd", {
161
252
  className: "text-sm text-text-primary mt-1",
162
- children: P(D.updatedAt)
163
- })] }),
164
- D.lastUpdated && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
253
+ children: A.product.name
254
+ })] }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("dt", {
165
255
  className: "text-sm font-medium text-text-secondary",
166
- children: M("contentPages.contentLastUpdated", "Content Last Updated")
167
- }), /* @__PURE__ */ y("dd", {
168
- className: "text-sm text-text-primary mt-1",
169
- children: P(D.lastUpdated)
170
- })] })
171
- ]
172
- })]
173
- }),
174
- F && /* @__PURE__ */ b("div", {
175
- className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
176
- children: [/* @__PURE__ */ b("div", {
177
- className: "flex items-center gap-2 mb-4",
178
- children: [/* @__PURE__ */ y(h, {
179
- size: 20,
180
- className: "text-text-secondary"
181
- }), /* @__PURE__ */ y("h2", {
182
- className: "text-lg font-semibold text-text-primary",
183
- children: M("contentPages.seoInformation", "SEO Information")
256
+ children: F("contentPages.productSlug", "Product Slug")
257
+ }), /* @__PURE__ */ x("dd", {
258
+ className: "text-sm text-text-primary mt-1 font-mono",
259
+ children: ["/", A.product.slug]
260
+ })] })] })]
184
261
  })]
185
- }), /* @__PURE__ */ b("dl", {
186
- className: "space-y-3",
187
- children: [
188
- D.seoTitle && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
189
- className: "text-sm font-medium text-text-secondary",
190
- children: M("contentPages.seoTitle", "SEO Title")
191
- }), /* @__PURE__ */ y("dd", {
192
- className: "text-sm text-text-primary mt-1",
193
- children: D.seoTitle
194
- })] }),
195
- D.seoDescription && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
196
- className: "text-sm font-medium text-text-secondary",
197
- children: M("contentPages.seoDescription", "SEO Description")
198
- }), /* @__PURE__ */ y("dd", {
199
- className: "text-sm text-text-primary mt-1",
200
- children: D.seoDescription
201
- })] }),
202
- D.seoKeywords && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
203
- className: "text-sm font-medium text-text-secondary",
204
- children: M("contentPages.seoKeywords", "SEO Keywords")
205
- }), /* @__PURE__ */ y("dd", {
206
- className: "text-sm text-text-primary mt-1",
207
- children: /* @__PURE__ */ y("div", {
208
- className: "flex flex-wrap gap-1.5 mt-1",
209
- children: D.seoKeywords.split(",").map((e) => /* @__PURE__ */ y("span", {
210
- 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 ",
211
- children: e.trim()
212
- }, e.trim()))
213
- })
214
- })] })
215
- ]
216
- })]
217
- }),
218
- D.productId && /* @__PURE__ */ b("div", {
219
- className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
220
- children: [/* @__PURE__ */ b("div", {
221
- className: "flex items-center gap-2 mb-4",
222
- children: [/* @__PURE__ */ y(g, {
223
- size: 20,
224
- className: "text-text-secondary"
225
- }), /* @__PURE__ */ y("h2", {
226
- className: "text-lg font-semibold text-text-primary",
227
- children: M("contentPages.productAssociation", "Product Association")
262
+ }),
263
+ A.tags && A.tags.length > 0 && /* @__PURE__ */ x("div", {
264
+ className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1",
265
+ children: [/* @__PURE__ */ b("h2", {
266
+ className: "text-lg font-semibold text-text-primary mb-4",
267
+ children: F("contentPages.tags", "Tags")
268
+ }), /* @__PURE__ */ b(d, { tags: A.tags })]
269
+ }),
270
+ /* @__PURE__ */ x("div", {
271
+ className: "lg:col-span-2 bg-bg-surface border border-border-seam rounded-card shadow-elevation-1",
272
+ children: [/* @__PURE__ */ b("h2", {
273
+ className: "text-lg font-semibold text-text-primary p-6 pb-0",
274
+ children: F("contentPages.activityHistory", "Activity History")
275
+ }), /* @__PURE__ */ b(f, {
276
+ resourceId: A.id,
277
+ resourceType: "ProductContentPage"
228
278
  })]
229
- }), /* @__PURE__ */ b("dl", {
230
- className: "space-y-3",
231
- children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
232
- className: "text-sm font-medium text-text-secondary",
233
- children: M("contentPages.productId", "Product ID")
234
- }), /* @__PURE__ */ y("dd", {
235
- className: "text-sm text-text-primary mt-1 font-mono",
236
- children: D.productId
237
- })] }), D.product && /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
238
- className: "text-sm font-medium text-text-secondary",
239
- children: M("contentPages.productName", "Product Name")
240
- }), /* @__PURE__ */ y("dd", {
241
- className: "text-sm text-text-primary mt-1",
242
- children: D.product.name
243
- })] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
244
- className: "text-sm font-medium text-text-secondary",
245
- children: M("contentPages.productSlug", "Product Slug")
246
- }), /* @__PURE__ */ b("dd", {
247
- className: "text-sm text-text-primary mt-1 font-mono",
248
- children: ["/", D.product.slug]
249
- })] })] })]
250
- })]
251
- }),
252
- D.tags && D.tags.length > 0 && /* @__PURE__ */ b("div", {
253
- className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
254
- children: [/* @__PURE__ */ y("h2", {
255
- className: "text-lg font-semibold text-text-primary mb-4",
256
- children: M("contentPages.tags", "Tags")
257
- }), /* @__PURE__ */ y(u, { tags: D.tags })]
258
- }),
259
- /* @__PURE__ */ b("div", {
260
- className: "lg:col-span-2 bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)]",
261
- children: [/* @__PURE__ */ y("h2", {
262
- className: "text-lg font-semibold text-text-primary p-6 pb-0",
263
- children: M("contentPages.activityHistory", "Activity History")
264
- }), /* @__PURE__ */ y(d, {
265
- resourceId: D.id,
266
- resourceType: "ProductContentPage"
267
- })]
268
- })
269
- ]
270
- })]
279
+ })
280
+ ]
281
+ }),
282
+ L
283
+ ]
271
284
  });
272
285
  }
273
286
  //#endregion
274
- export { C as ContentPageDetailPage };
287
+ export { E as ContentPageDetailPage };
275
288
 
276
289
  //# sourceMappingURL=ContentPageDetailPage.js.map