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