@burdenoff/microfe-product 2026.520.2 → 2026.521.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-management/ProductManagementRoutes.d.ts.map +1 -1
- package/dist/product-management/ProductManagementRoutes.js +72 -73
- package/dist/product-management/ProductManagementRoutes.js.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +4 -4
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +183 -119
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +4 -4
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +4 -4
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +9 -9
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +4 -4
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +6 -6
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +4 -4
- package/dist/product-management/modules/products/components/ProductForm.js +6 -6
- package/dist/product-management/modules/products/pages/ProductsListPage.d.ts.map +1 -1
- package/dist/product-management/modules/products/pages/ProductsListPage.js +152 -139
- package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +6 -6
- package/package.json +1 -1
- package/dist/product/pages/ProductsLandingPage.d.ts +0 -10
- package/dist/product/pages/ProductsLandingPage.d.ts.map +0 -1
- package/dist/product/pages/ProductsLandingPage.js +0 -66
- package/dist/product/pages/ProductsLandingPage.js.map +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ProductsLandingPage
|
|
3
|
-
*
|
|
4
|
-
* Tabbed landing page for the Product microfrontend. Renders the existing
|
|
5
|
-
* sub-pages (products, create, shortcuts, content pages, feature flags)
|
|
6
|
-
* inside a Tabs container. The active tab is reflected in the `?tab=` URL
|
|
7
|
-
* search param.
|
|
8
|
-
*/
|
|
9
|
-
export declare function ProductsLandingPage(): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=ProductsLandingPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsLandingPage.d.ts","sourceRoot":"","sources":["../../../src/product/pages/ProductsLandingPage.tsx"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,4CAwDlC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { ProductsListPage as e } from "../../product-management/modules/products/pages/ProductsListPage.js";
|
|
2
|
-
import { ProductCreatePage as t } from "../../product-management/modules/products/pages/ProductCreatePage.js";
|
|
3
|
-
import { ShortcutsListPage as n } from "../../product-management/modules/shortcuts/pages/ShortcutsListPage.js";
|
|
4
|
-
import { ContentPagesListPage as r } from "../../product-management/modules/content-pages/pages/ContentPagesListPage.js";
|
|
5
|
-
import { FeatureFlagsListPage as i } from "../../product-management/modules/feature-flags/pages/FeatureFlagsListPage.js";
|
|
6
|
-
import { useMemo as a } from "react";
|
|
7
|
-
import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
8
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
-
import { useSearchParams as l } from "react-router-dom";
|
|
10
|
-
import { Tabs as u } from "@burdenoff/fe-libs/chrome";
|
|
11
|
-
//#region src/product/pages/ProductsLandingPage.tsx
|
|
12
|
-
function d() {
|
|
13
|
-
let [d, f] = l(), { t: p } = o(), m = (e, t) => {
|
|
14
|
-
let n = p(e);
|
|
15
|
-
return n === e ? t : n;
|
|
16
|
-
}, h = a(() => [
|
|
17
|
-
{
|
|
18
|
-
id: "all",
|
|
19
|
-
label: m("productLanding.tabs.all", "All Products")
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
id: "new",
|
|
23
|
-
label: m("productLanding.tabs.new", "Create Product")
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: "shortcuts",
|
|
27
|
-
label: m("productLanding.tabs.shortcuts", "Shortcuts")
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: "content-pages",
|
|
31
|
-
label: m("productLanding.tabs.contentPages", "Content Pages")
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: "feature-flags",
|
|
35
|
-
label: m("productLanding.tabs.featureFlags", "Feature Flags")
|
|
36
|
-
}
|
|
37
|
-
], [p]), g = d.get("tab") ?? h[0].id;
|
|
38
|
-
return /* @__PURE__ */ c("div", {
|
|
39
|
-
className: "flex flex-col h-full",
|
|
40
|
-
children: [/* @__PURE__ */ s("div", {
|
|
41
|
-
className: "border-b border-border-subtle px-4 pt-3",
|
|
42
|
-
children: /* @__PURE__ */ s(u, {
|
|
43
|
-
items: h,
|
|
44
|
-
activeTabId: g,
|
|
45
|
-
onTabChange: (e) => {
|
|
46
|
-
let t = new URLSearchParams(d);
|
|
47
|
-
e === h[0].id ? t.delete("tab") : t.set("tab", e), f(t, { replace: !0 });
|
|
48
|
-
},
|
|
49
|
-
variant: "underline"
|
|
50
|
-
})
|
|
51
|
-
}), /* @__PURE__ */ c("div", {
|
|
52
|
-
className: "flex-1 min-h-0 overflow-auto",
|
|
53
|
-
children: [
|
|
54
|
-
g === "all" && /* @__PURE__ */ s(e, {}),
|
|
55
|
-
g === "new" && /* @__PURE__ */ s(t, {}),
|
|
56
|
-
g === "shortcuts" && /* @__PURE__ */ s(n, {}),
|
|
57
|
-
g === "content-pages" && /* @__PURE__ */ s(r, {}),
|
|
58
|
-
g === "feature-flags" && /* @__PURE__ */ s(i, {})
|
|
59
|
-
]
|
|
60
|
-
})]
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
export { d as ProductsLandingPage };
|
|
65
|
-
|
|
66
|
-
//# sourceMappingURL=ProductsLandingPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsLandingPage.js","names":[],"sources":["../../../src/product/pages/ProductsLandingPage.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport { useSearchParams } from 'react-router-dom';\nimport { Tabs, type TabItem } from '@burdenoff/fe-libs/chrome';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\nimport { ProductsListPage } from '../../product-management/modules/products/pages/ProductsListPage';\nimport { ProductCreatePage } from '../../product-management/modules/products/pages/ProductCreatePage';\nimport { ShortcutsListPage } from '../../product-management/modules/shortcuts/pages/ShortcutsListPage';\nimport { ContentPagesListPage } from '../../product-management/modules/content-pages/pages/ContentPagesListPage';\nimport { FeatureFlagsListPage } from '../../product-management/modules/feature-flags/pages/FeatureFlagsListPage';\n\n/**\n * ProductsLandingPage\n *\n * Tabbed landing page for the Product microfrontend. Renders the existing\n * sub-pages (products, create, shortcuts, content pages, feature flags)\n * inside a Tabs container. The active tab is reflected in the `?tab=` URL\n * search param.\n */\nexport function ProductsLandingPage() {\n const [params, setParams] = useSearchParams();\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 const tabs: TabItem[] = useMemo(\n () => [\n { id: 'all', label: tr('productLanding.tabs.all', 'All Products') },\n { id: 'new', label: tr('productLanding.tabs.new', 'Create Product') },\n { id: 'shortcuts', label: tr('productLanding.tabs.shortcuts', 'Shortcuts') },\n {\n id: 'content-pages',\n label: tr('productLanding.tabs.contentPages', 'Content Pages'),\n },\n {\n id: 'feature-flags',\n label: tr('productLanding.tabs.featureFlags', 'Feature Flags'),\n },\n ],\n [t]\n );\n\n const activeId = params.get('tab') ?? tabs[0].id;\n\n const handleTabChange = (id: string) => {\n const next = new URLSearchParams(params);\n if (id === tabs[0].id) {\n next.delete('tab');\n } else {\n next.set('tab', id);\n }\n setParams(next, { replace: true });\n };\n\n return (\n <div className=\"flex flex-col h-full\">\n <div className=\"border-b border-border-subtle px-4 pt-3\">\n <Tabs\n items={tabs}\n activeTabId={activeId}\n onTabChange={handleTabChange}\n variant=\"underline\"\n />\n </div>\n <div className=\"flex-1 min-h-0 overflow-auto\">\n {activeId === 'all' && <ProductsListPage />}\n {activeId === 'new' && <ProductCreatePage />}\n {activeId === 'shortcuts' && <ShortcutsListPage />}\n {activeId === 'content-pages' && <ContentPagesListPage />}\n {activeId === 'feature-flags' && <FeatureFlagsListPage />}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;AAmBA,SAAgB,IAAsB;CACpC,IAAM,CAAC,GAAQ,KAAa,GAAiB,EACvC,EAAE,SAAM,GAAS,EACjB,KAAM,GAAa,MAAqB;EAC5C,IAAM,IAAa,EAAE,EAAI;AACzB,SAAO,MAAe,IAAM,IAAW;IAGnC,IAAkB,QAChB;EACJ;GAAE,IAAI;GAAO,OAAO,EAAG,2BAA2B,eAAe;GAAE;EACnE;GAAE,IAAI;GAAO,OAAO,EAAG,2BAA2B,iBAAiB;GAAE;EACrE;GAAE,IAAI;GAAa,OAAO,EAAG,iCAAiC,YAAY;GAAE;EAC5E;GACE,IAAI;GACJ,OAAO,EAAG,oCAAoC,gBAAgB;GAC/D;EACD;GACE,IAAI;GACJ,OAAO,EAAG,oCAAoC,gBAAgB;GAC/D;EACF,EACD,CAAC,EAAE,CACJ,EAEK,IAAW,EAAO,IAAI,MAAM,IAAI,EAAK,GAAG;AAY9C,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,OAAD;GAAK,WAAU;aACb,kBAAC,GAAD;IACE,OAAO;IACP,aAAa;IACb,cAhBiB,MAAe;KACtC,IAAM,IAAO,IAAI,gBAAgB,EAAO;AAMxC,KALI,MAAO,EAAK,GAAG,KACjB,EAAK,OAAO,MAAM,GAElB,EAAK,IAAI,OAAO,EAAG,EAErB,EAAU,GAAM,EAAE,SAAS,IAAM,CAAC;;IAU5B,SAAQ;IACR,CAAA;GACE,CAAA,EACN,kBAAC,OAAD;GAAK,WAAU;aAAf;IACG,MAAa,SAAS,kBAAC,GAAD,EAAoB,CAAA;IAC1C,MAAa,SAAS,kBAAC,GAAD,EAAqB,CAAA;IAC3C,MAAa,eAAe,kBAAC,GAAD,EAAqB,CAAA;IACjD,MAAa,mBAAmB,kBAAC,GAAD,EAAwB,CAAA;IACxD,MAAa,mBAAmB,kBAAC,GAAD,EAAwB,CAAA;IACrD;KACF"}
|