@burdenoff/microfe-product 2026.626.2 → 2026.720.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/product/pages/ContentPageViewPage.js +42 -43
- package/dist/product/pages/ContentPageViewPage.js.map +1 -1
- package/dist/product/pages/ProductViewPage.js +88 -87
- package/dist/product/pages/ProductViewPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +341 -473
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +8 -10
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +201 -168
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.js +1 -0
- package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +37 -34
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +183 -138
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +250 -252
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +72 -72
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.js +490 -492
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
- package/dist/product-management/modules/products/hooks/useProducts.js +20 -7
- package/dist/product-management/modules/products/hooks/useProducts.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +130 -129
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +195 -203
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +88 -87
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
- package/dist/shared/components/MarkdownEditor.js +161 -0
- package/dist/shared/components/MarkdownEditor.js.map +1 -0
- package/dist/shared/components/index.js +1 -0
- package/package.json +2 -2
- package/dist/node_modules/dompurify/dist/purify.es.js +0 -555
- package/dist/node_modules/dompurify/dist/purify.es.js.map +0 -1
- package/dist/shared/utils/renderMarkdown.js +0 -8
- package/dist/shared/utils/renderMarkdown.js.map +0 -1
|
@@ -3,78 +3,77 @@ import { ErrorState as t } from "../../product-management/shared/components/feed
|
|
|
3
3
|
import { useProductUser as n } from "../providers/ProductUserProvider.js";
|
|
4
4
|
import "../../shared/components/index.js";
|
|
5
5
|
import { formatDate as r } from "../../shared/utils/formatDate.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { EmphasisPanel as p, GradientText as m, PagePurpose as h } from "@burdenoff/fe-libs/ui";
|
|
6
|
+
import { usePublicContentPage as i } from "../hooks/usePublicContentPage.js";
|
|
7
|
+
import { ArrowLeft as a, FileText as o } from "lucide-react";
|
|
8
|
+
import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
9
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
+
import { useParams as u } from "react-router-dom";
|
|
11
|
+
import { Markdown as d } from "@burdenoff/fe-libs/shared/components";
|
|
12
|
+
import { EmphasisPanel as f, GradientText as p, PagePurpose as m } from "@burdenoff/fe-libs/ui";
|
|
14
13
|
//#region src/product/pages/ContentPageViewPage.tsx
|
|
15
|
-
function
|
|
16
|
-
let { slug:
|
|
17
|
-
let n =
|
|
14
|
+
function h() {
|
|
15
|
+
let { slug: h } = u(), { navigate: g, basePath: _ = "/products" } = n(), { contentPage: v, loading: y, error: b } = i(h ?? ""), { t: x } = s(), S = (e, t) => {
|
|
16
|
+
let n = x(e);
|
|
18
17
|
return n === e ? t : n;
|
|
19
18
|
};
|
|
20
|
-
return
|
|
19
|
+
return y && !v ? /* @__PURE__ */ c("div", {
|
|
21
20
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
22
|
-
children: /* @__PURE__ */
|
|
23
|
-
}) :
|
|
21
|
+
children: /* @__PURE__ */ c(e, { message: S("contentPageView.loading", "Loading content...") })
|
|
22
|
+
}) : b || !v ? /* @__PURE__ */ c("div", {
|
|
24
23
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
25
|
-
children: /* @__PURE__ */
|
|
26
|
-
message:
|
|
24
|
+
children: /* @__PURE__ */ c(t, {
|
|
25
|
+
message: b?.message || S("contentPageView.notFound", "Content page not found"),
|
|
27
26
|
action: {
|
|
28
|
-
label:
|
|
29
|
-
onClick: () => _
|
|
27
|
+
label: S("contentPageView.backToProducts", "Back to Products"),
|
|
28
|
+
onClick: () => g(_)
|
|
30
29
|
}
|
|
31
30
|
})
|
|
32
|
-
}) : /* @__PURE__ */
|
|
31
|
+
}) : /* @__PURE__ */ l("div", {
|
|
33
32
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
|
|
34
|
-
children: [/* @__PURE__ */
|
|
33
|
+
children: [/* @__PURE__ */ l("button", {
|
|
35
34
|
type: "button",
|
|
36
|
-
onClick: () => _
|
|
35
|
+
onClick: () => g(_),
|
|
37
36
|
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 ",
|
|
38
|
-
children: [/* @__PURE__ */
|
|
37
|
+
children: [/* @__PURE__ */ c(a, { size: 20 }), /* @__PURE__ */ c("span", {
|
|
39
38
|
className: "text-sm font-medium",
|
|
40
|
-
children:
|
|
39
|
+
children: S("contentPageView.backToProducts", "Back to Products")
|
|
41
40
|
})]
|
|
42
|
-
}), /* @__PURE__ */
|
|
41
|
+
}), /* @__PURE__ */ l("div", {
|
|
43
42
|
className: "max-w-4xl",
|
|
44
43
|
children: [
|
|
45
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ l("div", {
|
|
46
45
|
className: "flex items-center gap-3 mb-6",
|
|
47
|
-
children: [/* @__PURE__ */
|
|
46
|
+
children: [/* @__PURE__ */ c(o, {
|
|
48
47
|
size: 24,
|
|
49
48
|
className: "text-text-secondary"
|
|
50
|
-
}), /* @__PURE__ */
|
|
49
|
+
}), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h1", {
|
|
51
50
|
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
52
|
-
children: /* @__PURE__ */
|
|
53
|
-
}),
|
|
51
|
+
children: /* @__PURE__ */ c(p, { children: v.title })
|
|
52
|
+
}), v.product && /* @__PURE__ */ c("p", {
|
|
54
53
|
className: "text-sm text-text-tertiary mt-1",
|
|
55
|
-
children:
|
|
54
|
+
children: v.product.name
|
|
56
55
|
})] })]
|
|
57
56
|
}),
|
|
58
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ c(m, {
|
|
59
58
|
className: "mb-6",
|
|
60
|
-
children:
|
|
59
|
+
children: S("contentPageView.purpose", "This is published product content — a guide, policy, or announcement for this product. Read it through, then head back to the catalog to explore more.")
|
|
61
60
|
}),
|
|
62
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ l(f, { children: [/* @__PURE__ */ c("div", {
|
|
63
62
|
className: "prose prose-sm max-w-none text-text-primary",
|
|
64
|
-
children:
|
|
63
|
+
children: v.contentFormat === "html" ? /* @__PURE__ */ c("div", { dangerouslySetInnerHTML: { __html: v.content } }) : v.contentFormat === "markdown" ? /* @__PURE__ */ c(d, { children: v.content }) : /* @__PURE__ */ c("div", {
|
|
65
64
|
className: "whitespace-pre-wrap",
|
|
66
|
-
children:
|
|
65
|
+
children: v.content
|
|
67
66
|
})
|
|
68
|
-
}), /* @__PURE__ */
|
|
67
|
+
}), /* @__PURE__ */ l("div", {
|
|
69
68
|
className: "mt-6 pt-4 border-t border-border-seam flex items-center justify-between text-xs text-text-tertiary",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
71
|
-
|
|
69
|
+
children: [/* @__PURE__ */ l("span", { children: [
|
|
70
|
+
S("contentPageView.version", "Version"),
|
|
72
71
|
" ",
|
|
73
|
-
|
|
74
|
-
] }), /* @__PURE__ */
|
|
75
|
-
|
|
72
|
+
v.version
|
|
73
|
+
] }), /* @__PURE__ */ l("span", { children: [
|
|
74
|
+
S("contentPageView.lastUpdated", "Last updated:"),
|
|
76
75
|
" ",
|
|
77
|
-
r(
|
|
76
|
+
r(v.lastUpdated || v.updatedAt)
|
|
78
77
|
] })]
|
|
79
78
|
})] })
|
|
80
79
|
]
|
|
@@ -82,6 +81,6 @@ function g() {
|
|
|
82
81
|
});
|
|
83
82
|
}
|
|
84
83
|
//#endregion
|
|
85
|
-
export {
|
|
84
|
+
export { h as ContentPageViewPage };
|
|
86
85
|
|
|
87
86
|
//# sourceMappingURL=ContentPageViewPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPageViewPage.js","names":[],"sources":["../../../src/product/pages/ContentPageViewPage.tsx"],"sourcesContent":["import { useParams } from 'react-router-dom';\nimport { ArrowLeft, FileText } from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { EmphasisPanel, GradientText, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport
|
|
1
|
+
{"version":3,"file":"ContentPageViewPage.js","names":[],"sources":["../../../src/product/pages/ContentPageViewPage.tsx"],"sourcesContent":["import { useParams } from 'react-router-dom';\nimport { ArrowLeft, FileText } from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { Markdown } from '@burdenoff/fe-libs/shared/components';\nimport { EmphasisPanel, GradientText, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useProductUser } from '../providers/ProductUserProvider';\nimport { usePublicContentPage } from '../hooks/usePublicContentPage';\nimport { LoadingState, ErrorState } from '../../shared/components';\nimport { formatDate } from '../../shared/utils';\n\nexport function ContentPageViewPage() {\n const { slug } = useParams<{ slug: string }>();\n const { navigate, basePath = '/products' } = useProductUser();\n const { contentPage, loading, error } = usePublicContentPage(slug ?? '');\n const { t } = useI18n();\n const tr = (key: string, fallback: string) => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n\n if (loading && !contentPage) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('contentPageView.loading', 'Loading content...')} />\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={error?.message || tr('contentPageView.notFound', 'Content page not found')}\n action={{\n label: tr('contentPageView.backToProducts', 'Back to Products'),\n onClick: () => navigate(basePath),\n }}\n />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200\">\n <button\n type=\"button\"\n onClick={() => navigate(basePath)}\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('contentPageView.backToProducts', 'Back to Products')}\n </span>\n </button>\n\n <div className=\"max-w-4xl\">\n <div className=\"flex items-center gap-3 mb-6\">\n <FileText size={24} className=\"text-text-secondary\" />\n <div>\n <h1 className=\"text-2xl md:text-3xl font-semibold tracking-tight text-text-primary\">\n <GradientText>{contentPage.title}</GradientText>\n </h1>\n {contentPage.product && (\n <p className=\"text-sm text-text-tertiary mt-1\">{contentPage.product.name}</p>\n )}\n </div>\n </div>\n\n <PagePurpose className=\"mb-6\">\n {tr(\n 'contentPageView.purpose',\n 'This is published product content — a guide, policy, or announcement for this product. Read it through, then head back to the catalog to explore more.'\n )}\n </PagePurpose>\n\n <EmphasisPanel>\n <div className=\"prose prose-sm max-w-none text-text-primary\">\n {contentPage.contentFormat === 'html' ? (\n <div dangerouslySetInnerHTML={{ __html: contentPage.content }} />\n ) : contentPage.contentFormat === 'markdown' ? (\n <Markdown>{contentPage.content}</Markdown>\n ) : (\n <div className=\"whitespace-pre-wrap\">{contentPage.content}</div>\n )}\n </div>\n\n <div className=\"mt-6 pt-4 border-t border-border-seam flex items-center justify-between text-xs text-text-tertiary\">\n <span>\n {tr('contentPageView.version', 'Version')} {contentPage.version}\n </span>\n <span>\n {tr('contentPageView.lastUpdated', 'Last updated:')}{' '}\n {formatDate(contentPage.lastUpdated || contentPage.updatedAt)}\n </span>\n </div>\n </EmphasisPanel>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAUA,SAAgB,IAAsB;CACpC,IAAM,EAAE,YAAS,GAA6B,EACxC,EAAE,aAAU,cAAW,gBAAgB,GAAgB,EACvD,EAAE,gBAAa,YAAS,aAAU,EAAqB,KAAQ,GAAG,EAClE,EAAE,SAAM,GAAS,EACjB,KAAM,GAAa,MAAqB;EAC5C,IAAM,IAAa,EAAE,EAAI;AACzB,SAAO,MAAe,IAAM,IAAW;;AAyBzC,QAtBI,KAAW,CAAC,IAEZ,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAc,SAAS,EAAG,2BAA2B,qBAAqB,EAAI,CAAA;EAC1E,CAAA,GAIN,KAAS,CAAC,IAEV,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD;GACE,SAAS,GAAO,WAAW,EAAG,4BAA4B,yBAAyB;GACnF,QAAQ;IACN,OAAO,EAAG,kCAAkC,mBAAmB;IAC/D,eAAe,EAAS,EAAS;IAClC;GACD,CAAA;EACE,CAAA,GAKR,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,UAAD;GACE,MAAK;GACL,eAAe,EAAS,EAAS;GACjC,WAAU;aAHZ,CAUE,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA,EACvB,kBAAC,QAAD;IAAM,WAAU;cACb,EAAG,kCAAkC,mBAAmB;IACpD,CAAA,CACA;MAET,kBAAC,OAAD;GAAK,WAAU;aAAf;IACE,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,GAAD;MAAU,MAAM;MAAI,WAAU;MAAwB,CAAA,EACtD,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;MAAI,WAAU;gBACZ,kBAAC,GAAD,EAAA,UAAe,EAAY,OAAqB,CAAA;MAC7C,CAAA,EACJ,EAAY,WACX,kBAAC,KAAD;MAAG,WAAU;gBAAmC,EAAY,QAAQ;MAAS,CAAA,CAE3E,EAAA,CAAA,CACF;;IAEN,kBAAC,GAAD;KAAa,WAAU;eACpB,EACC,2BACA,yJACD;KACW,CAAA;IAEd,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,OAAD;KAAK,WAAU;eACZ,EAAY,kBAAkB,SAC7B,kBAAC,OAAD,EAAK,yBAAyB,EAAE,QAAQ,EAAY,SAAS,EAAI,CAAA,GAC/D,EAAY,kBAAkB,aAChC,kBAAC,GAAD,EAAA,UAAW,EAAY,SAAmB,CAAA,GAE1C,kBAAC,OAAD;MAAK,WAAU;gBAAuB,EAAY;MAAc,CAAA;KAE9D,CAAA,EAEN,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,QAAD,EAAA,UAAA;MACG,EAAG,2BAA2B,UAAU;MAAC;MAAE,EAAY;MACnD,EAAA,CAAA,EACP,kBAAC,QAAD,EAAA,UAAA;MACG,EAAG,+BAA+B,gBAAgB;MAAE;MACpD,EAAW,EAAY,eAAe,EAAY,UAAU;MACxD,EAAA,CAAA,CACH;OACQ,EAAA,CAAA;IACZ;KACF"}
|
|
@@ -10,9 +10,10 @@ import { ArrowLeft as s, ExternalLink as c, Mail as l, Package as u, Share2 as d
|
|
|
10
10
|
import { useI18n as f } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
11
11
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
12
12
|
import { useParams as h } from "react-router-dom";
|
|
13
|
-
import {
|
|
13
|
+
import { Markdown as g } from "@burdenoff/fe-libs/shared/components";
|
|
14
|
+
import { AuroraBackground as _, EmphasisPanel as v, NextSteps as y, PagePurpose as b } from "@burdenoff/fe-libs/ui";
|
|
14
15
|
//#region src/product/pages/ProductViewPage.tsx
|
|
15
|
-
function
|
|
16
|
+
function x({ url: e, className: t }) {
|
|
16
17
|
return i(e) ? /* @__PURE__ */ m("a", {
|
|
17
18
|
href: e,
|
|
18
19
|
target: "_blank",
|
|
@@ -24,26 +25,26 @@ function b({ url: e, className: t }) {
|
|
|
24
25
|
children: e
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
-
let { slug:
|
|
29
|
-
let n =
|
|
28
|
+
function S() {
|
|
29
|
+
let { slug: S } = h(), { navigate: C, basePath: w = "/products" } = r(), { product: T, loading: E, error: D } = o(S ?? ""), { t: O } = f(), k = (e, t) => {
|
|
30
|
+
let n = O(e);
|
|
30
31
|
return n === e ? t : n;
|
|
31
32
|
};
|
|
32
|
-
if (
|
|
33
|
+
if (E && !T) return /* @__PURE__ */ p("div", {
|
|
33
34
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
34
|
-
children: /* @__PURE__ */ p(e, { message:
|
|
35
|
+
children: /* @__PURE__ */ p(e, { message: k("productView.loading", "Loading product details...") })
|
|
35
36
|
});
|
|
36
|
-
if (
|
|
37
|
+
if (D || !T) return /* @__PURE__ */ p("div", {
|
|
37
38
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
38
39
|
children: /* @__PURE__ */ p(t, {
|
|
39
|
-
message:
|
|
40
|
+
message: D?.message || k("productView.notFound", "Product not found"),
|
|
40
41
|
action: {
|
|
41
|
-
label:
|
|
42
|
-
onClick: () =>
|
|
42
|
+
label: k("productView.backToProducts", "Back to Products"),
|
|
43
|
+
onClick: () => C(w)
|
|
43
44
|
}
|
|
44
45
|
})
|
|
45
46
|
});
|
|
46
|
-
let
|
|
47
|
+
let A = T.contactEmail || T.supportEmail, j = T.appStoreUrl || T.playStoreUrl, M = T.socialLinks && Object.keys(T.socialLinks).length > 0;
|
|
47
48
|
return /* @__PURE__ */ m("div", {
|
|
48
49
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
|
|
49
50
|
children: [
|
|
@@ -51,19 +52,19 @@ function x() {
|
|
|
51
52
|
className: "mb-6",
|
|
52
53
|
children: [/* @__PURE__ */ m("button", {
|
|
53
54
|
type: "button",
|
|
54
|
-
onClick: () =>
|
|
55
|
+
onClick: () => C(w),
|
|
55
56
|
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 ",
|
|
56
57
|
children: [/* @__PURE__ */ p(s, { size: 20 }), /* @__PURE__ */ p("span", {
|
|
57
58
|
className: "text-sm font-medium",
|
|
58
|
-
children:
|
|
59
|
+
children: k("productView.backToProducts", "Back to Products")
|
|
59
60
|
})]
|
|
60
|
-
}), /* @__PURE__ */ m(
|
|
61
|
+
}), /* @__PURE__ */ m(v, {
|
|
61
62
|
className: "relative overflow-hidden flex items-center gap-4",
|
|
62
63
|
children: [
|
|
63
|
-
/* @__PURE__ */ p(
|
|
64
|
-
|
|
65
|
-
src:
|
|
66
|
-
alt:
|
|
64
|
+
/* @__PURE__ */ p(_, { intensity: "subtle" }),
|
|
65
|
+
T.logoUrl ? /* @__PURE__ */ p("img", {
|
|
66
|
+
src: T.logoUrl,
|
|
67
|
+
alt: T.name,
|
|
67
68
|
className: "size-16 rounded-card object-cover border border-border-seam"
|
|
68
69
|
}) : /* @__PURE__ */ p("div", {
|
|
69
70
|
className: "size-16 rounded-card bg-[var(--color-status-warning-subtle)] flex items-center justify-center",
|
|
@@ -76,166 +77,166 @@ function x() {
|
|
|
76
77
|
className: "flex items-center gap-3 mb-2",
|
|
77
78
|
children: [/* @__PURE__ */ p("h1", {
|
|
78
79
|
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
79
|
-
children:
|
|
80
|
-
}), /* @__PURE__ */ p(n, { status:
|
|
81
|
-
}),
|
|
82
|
-
url:
|
|
80
|
+
children: T.name
|
|
81
|
+
}), /* @__PURE__ */ p(n, { status: T.status })]
|
|
82
|
+
}), T.website && /* @__PURE__ */ p(x, {
|
|
83
|
+
url: T.website,
|
|
83
84
|
className: "inline-flex items-center gap-1.5 text-sm text-[var(--color-text-link)] hover:underline"
|
|
84
85
|
})] })
|
|
85
86
|
]
|
|
86
87
|
})]
|
|
87
88
|
}),
|
|
88
|
-
/* @__PURE__ */ p(
|
|
89
|
+
/* @__PURE__ */ p(b, {
|
|
89
90
|
className: "mb-6",
|
|
90
|
-
children:
|
|
91
|
+
children: k("productView.purpose", `Everything you need to start using ${T.name} in one place — launch the app, read the docs, grab download links, and find the right people to contact for help.`)
|
|
91
92
|
}),
|
|
92
|
-
/* @__PURE__ */ p(
|
|
93
|
+
/* @__PURE__ */ p(y, {
|
|
93
94
|
storageKey: "product-product-view",
|
|
94
95
|
className: "mb-6",
|
|
95
96
|
steps: [
|
|
96
|
-
...
|
|
97
|
+
...T.appUrl && i(T.appUrl) ? [{
|
|
97
98
|
id: "open-app",
|
|
98
|
-
label:
|
|
99
|
-
description:
|
|
100
|
-
href:
|
|
99
|
+
label: k("productView.steps.openApp", "Open the app"),
|
|
100
|
+
description: k("productView.steps.openAppDesc", "Jump straight into the product and start using it."),
|
|
101
|
+
href: T.appUrl
|
|
101
102
|
}] : [],
|
|
102
|
-
...
|
|
103
|
+
...T.docsUrl && i(T.docsUrl) ? [{
|
|
103
104
|
id: "read-docs",
|
|
104
|
-
label:
|
|
105
|
-
description:
|
|
106
|
-
href:
|
|
105
|
+
label: k("productView.steps.readDocs", "Read the documentation"),
|
|
106
|
+
description: k("productView.steps.readDocsDesc", "Learn how it works and what it can do."),
|
|
107
|
+
href: T.docsUrl
|
|
107
108
|
}] : [],
|
|
108
|
-
...
|
|
109
|
+
...T.contactEmail || T.supportEmail ? [{
|
|
109
110
|
id: "get-help",
|
|
110
|
-
label:
|
|
111
|
-
description:
|
|
112
|
-
href: `mailto:${
|
|
111
|
+
label: k("productView.steps.getHelp", "Get in touch"),
|
|
112
|
+
description: k("productView.steps.getHelpDesc", "Reach out to the team with questions or for support."),
|
|
113
|
+
href: `mailto:${T.supportEmail || T.contactEmail}`
|
|
113
114
|
}] : [],
|
|
114
115
|
{
|
|
115
116
|
id: "back-to-catalog",
|
|
116
|
-
label:
|
|
117
|
-
description:
|
|
118
|
-
onClick: () =>
|
|
117
|
+
label: k("productView.steps.browseMore", "Browse more products"),
|
|
118
|
+
description: k("productView.steps.browseMoreDesc", "Return to the catalog to discover other platform products."),
|
|
119
|
+
onClick: () => C(w)
|
|
119
120
|
}
|
|
120
121
|
]
|
|
121
122
|
}),
|
|
122
123
|
/* @__PURE__ */ m("div", {
|
|
123
124
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
124
125
|
children: [
|
|
125
|
-
|
|
126
|
+
T.description && /* @__PURE__ */ m("div", {
|
|
126
127
|
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
128
|
children: [/* @__PURE__ */ p("h2", {
|
|
128
129
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
129
|
-
children:
|
|
130
|
-
}), /* @__PURE__ */ p("
|
|
130
|
+
children: k("productView.about", "About")
|
|
131
|
+
}), /* @__PURE__ */ p("div", {
|
|
131
132
|
className: "text-sm text-text-secondary leading-relaxed",
|
|
132
|
-
children:
|
|
133
|
+
children: /* @__PURE__ */ p(g, { children: T.description })
|
|
133
134
|
})]
|
|
134
135
|
}),
|
|
135
|
-
(
|
|
136
|
+
(T.appUrl || T.docsUrl || T.githubUrl || T.statusPageUrl) && /* @__PURE__ */ m("div", {
|
|
136
137
|
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)]",
|
|
137
138
|
children: [/* @__PURE__ */ m("h2", {
|
|
138
139
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
139
|
-
children: [/* @__PURE__ */ p(c, { size: 18 }),
|
|
140
|
+
children: [/* @__PURE__ */ p(c, { size: 18 }), k("productView.links", "Links")]
|
|
140
141
|
}), /* @__PURE__ */ m("dl", {
|
|
141
142
|
className: "space-y-3",
|
|
142
143
|
children: [
|
|
143
|
-
|
|
144
|
+
T.appUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
144
145
|
className: "text-sm font-medium text-text-secondary",
|
|
145
|
-
children:
|
|
146
|
+
children: k("productView.app", "App")
|
|
146
147
|
}), /* @__PURE__ */ p("dd", {
|
|
147
148
|
className: "text-sm mt-1",
|
|
148
|
-
children: /* @__PURE__ */ p(
|
|
149
|
+
children: /* @__PURE__ */ p(x, { url: T.appUrl })
|
|
149
150
|
})] }),
|
|
150
|
-
|
|
151
|
+
T.docsUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
151
152
|
className: "text-sm font-medium text-text-secondary",
|
|
152
|
-
children:
|
|
153
|
+
children: k("productView.documentation", "Documentation")
|
|
153
154
|
}), /* @__PURE__ */ p("dd", {
|
|
154
155
|
className: "text-sm mt-1",
|
|
155
|
-
children: /* @__PURE__ */ p(
|
|
156
|
+
children: /* @__PURE__ */ p(x, { url: T.docsUrl })
|
|
156
157
|
})] }),
|
|
157
|
-
|
|
158
|
+
T.githubUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
158
159
|
className: "text-sm font-medium text-text-secondary",
|
|
159
|
-
children:
|
|
160
|
+
children: k("productView.github", "GitHub")
|
|
160
161
|
}), /* @__PURE__ */ p("dd", {
|
|
161
162
|
className: "text-sm mt-1",
|
|
162
|
-
children: /* @__PURE__ */ p(
|
|
163
|
+
children: /* @__PURE__ */ p(x, { url: T.githubUrl })
|
|
163
164
|
})] }),
|
|
164
|
-
|
|
165
|
+
T.statusPageUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
165
166
|
className: "text-sm font-medium text-text-secondary",
|
|
166
|
-
children:
|
|
167
|
+
children: k("productView.statusPage", "Status Page")
|
|
167
168
|
}), /* @__PURE__ */ p("dd", {
|
|
168
169
|
className: "text-sm mt-1",
|
|
169
|
-
children: /* @__PURE__ */ p(
|
|
170
|
+
children: /* @__PURE__ */ p(x, { url: T.statusPageUrl })
|
|
170
171
|
})] })
|
|
171
172
|
]
|
|
172
173
|
})]
|
|
173
174
|
}),
|
|
174
|
-
|
|
175
|
+
A && /* @__PURE__ */ m("div", {
|
|
175
176
|
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)]",
|
|
176
177
|
children: [/* @__PURE__ */ p("h2", {
|
|
177
178
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
178
|
-
children:
|
|
179
|
+
children: k("productView.contact", "Contact")
|
|
179
180
|
}), /* @__PURE__ */ m("dl", {
|
|
180
181
|
className: "space-y-3",
|
|
181
|
-
children: [
|
|
182
|
+
children: [T.contactEmail && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("dt", {
|
|
182
183
|
className: "text-sm font-medium text-text-secondary flex items-center gap-1.5",
|
|
183
|
-
children: [/* @__PURE__ */ p(l, { size: 14 }),
|
|
184
|
+
children: [/* @__PURE__ */ p(l, { size: 14 }), k("productView.contactEmail", "Contact Email")]
|
|
184
185
|
}), /* @__PURE__ */ p("dd", {
|
|
185
186
|
className: "text-sm mt-1",
|
|
186
187
|
children: /* @__PURE__ */ p("a", {
|
|
187
|
-
href: `mailto:${
|
|
188
|
+
href: `mailto:${T.contactEmail}`,
|
|
188
189
|
className: "text-[var(--color-text-link)] hover:underline",
|
|
189
|
-
children:
|
|
190
|
+
children: T.contactEmail
|
|
190
191
|
})
|
|
191
|
-
})] }),
|
|
192
|
+
})] }), T.supportEmail && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("dt", {
|
|
192
193
|
className: "text-sm font-medium text-text-secondary flex items-center gap-1.5",
|
|
193
|
-
children: [/* @__PURE__ */ p(l, { size: 14 }),
|
|
194
|
+
children: [/* @__PURE__ */ p(l, { size: 14 }), k("productView.supportEmail", "Support Email")]
|
|
194
195
|
}), /* @__PURE__ */ p("dd", {
|
|
195
196
|
className: "text-sm mt-1",
|
|
196
197
|
children: /* @__PURE__ */ p("a", {
|
|
197
|
-
href: `mailto:${
|
|
198
|
+
href: `mailto:${T.supportEmail}`,
|
|
198
199
|
className: "text-[var(--color-text-link)] hover:underline",
|
|
199
|
-
children:
|
|
200
|
+
children: T.supportEmail
|
|
200
201
|
})
|
|
201
202
|
})] })]
|
|
202
203
|
})]
|
|
203
204
|
}),
|
|
204
|
-
|
|
205
|
+
j && /* @__PURE__ */ m("div", {
|
|
205
206
|
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)]",
|
|
206
207
|
children: [/* @__PURE__ */ m("h2", {
|
|
207
208
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
208
|
-
children: [/* @__PURE__ */ p(c, { size: 18 }),
|
|
209
|
+
children: [/* @__PURE__ */ p(c, { size: 18 }), k("productView.download", "Download")]
|
|
209
210
|
}), /* @__PURE__ */ m("dl", {
|
|
210
211
|
className: "space-y-3",
|
|
211
|
-
children: [
|
|
212
|
+
children: [T.appStoreUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
212
213
|
className: "text-sm font-medium text-text-secondary",
|
|
213
|
-
children:
|
|
214
|
+
children: k("productView.appleAppStore", "Apple App Store")
|
|
214
215
|
}), /* @__PURE__ */ p("dd", {
|
|
215
216
|
className: "text-sm mt-1",
|
|
216
|
-
children: /* @__PURE__ */ p(
|
|
217
|
-
})] }),
|
|
217
|
+
children: /* @__PURE__ */ p(x, { url: T.appStoreUrl })
|
|
218
|
+
})] }), T.playStoreUrl && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
218
219
|
className: "text-sm font-medium text-text-secondary",
|
|
219
|
-
children:
|
|
220
|
+
children: k("productView.googlePlayStore", "Google Play Store")
|
|
220
221
|
}), /* @__PURE__ */ p("dd", {
|
|
221
222
|
className: "text-sm mt-1",
|
|
222
|
-
children: /* @__PURE__ */ p(
|
|
223
|
+
children: /* @__PURE__ */ p(x, { url: T.playStoreUrl })
|
|
223
224
|
})] })]
|
|
224
225
|
})]
|
|
225
226
|
}),
|
|
226
|
-
|
|
227
|
+
M && /* @__PURE__ */ m("div", {
|
|
227
228
|
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)]",
|
|
228
229
|
children: [/* @__PURE__ */ m("h2", {
|
|
229
230
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
230
|
-
children: [/* @__PURE__ */ p(d, { size: 18 }),
|
|
231
|
+
children: [/* @__PURE__ */ p(d, { size: 18 }), k("productView.socialMedia", "Social Media")]
|
|
231
232
|
}), /* @__PURE__ */ p("dl", {
|
|
232
233
|
className: "space-y-3",
|
|
233
|
-
children: Object.entries(
|
|
234
|
+
children: Object.entries(T.socialLinks).map(([e, t]) => /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
234
235
|
className: "text-sm font-medium text-text-secondary capitalize",
|
|
235
236
|
children: e
|
|
236
237
|
}), /* @__PURE__ */ p("dd", {
|
|
237
238
|
className: "text-sm mt-1",
|
|
238
|
-
children: /* @__PURE__ */ p(
|
|
239
|
+
children: /* @__PURE__ */ p(x, { url: typeof t == "string" ? t : String(t) })
|
|
239
240
|
})] }, e))
|
|
240
241
|
})]
|
|
241
242
|
}),
|
|
@@ -243,21 +244,21 @@ function x() {
|
|
|
243
244
|
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)]",
|
|
244
245
|
children: [/* @__PURE__ */ p("h2", {
|
|
245
246
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
246
|
-
children:
|
|
247
|
+
children: k("productView.details", "Details")
|
|
247
248
|
}), /* @__PURE__ */ m("dl", {
|
|
248
249
|
className: "space-y-3",
|
|
249
250
|
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
250
251
|
className: "text-sm font-medium text-text-secondary",
|
|
251
|
-
children:
|
|
252
|
+
children: k("productView.added", "Added")
|
|
252
253
|
}), /* @__PURE__ */ p("dd", {
|
|
253
254
|
className: "text-sm text-text-primary mt-1",
|
|
254
|
-
children: a(
|
|
255
|
+
children: a(T.createdAt)
|
|
255
256
|
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("dt", {
|
|
256
257
|
className: "text-sm font-medium text-text-secondary",
|
|
257
|
-
children:
|
|
258
|
+
children: k("productView.lastUpdated", "Last Updated")
|
|
258
259
|
}), /* @__PURE__ */ p("dd", {
|
|
259
260
|
className: "text-sm text-text-primary mt-1",
|
|
260
|
-
children: a(
|
|
261
|
+
children: a(T.updatedAt)
|
|
261
262
|
})] })]
|
|
262
263
|
})]
|
|
263
264
|
})
|
|
@@ -267,6 +268,6 @@ function x() {
|
|
|
267
268
|
});
|
|
268
269
|
}
|
|
269
270
|
//#endregion
|
|
270
|
-
export {
|
|
271
|
+
export { S as ProductViewPage };
|
|
271
272
|
|
|
272
273
|
//# sourceMappingURL=ProductViewPage.js.map
|