@burdenoff/microfe-product 2026.512.2 → 2026.513.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductManagementRoot.d.ts","sourceRoot":"","sources":["../../src/product-management/ProductManagementRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductManagementRoot.d.ts","sourceRoot":"","sources":["../../src/product-management/ProductManagementRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAOhC,OAAO,KAAK,EAAW,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAGnE,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CA2EhE,CAAC"}
|
|
@@ -5,55 +5,60 @@ import { useEffect as r } from "react";
|
|
|
5
5
|
import { FileText as i, Flag as a, Package as o } from "lucide-react";
|
|
6
6
|
import { jsx as s } from "react/jsx-runtime";
|
|
7
7
|
import { FeatureFlagProvider as c } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
8
|
+
import { PermissionProvider as l } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
8
9
|
//#region src/product-management/ProductManagementRoot.tsx
|
|
9
|
-
var
|
|
10
|
-
let { registerNavItems:
|
|
10
|
+
var u = (u) => {
|
|
11
|
+
let { registerNavItems: d, registerFooterItems: f, basePath: p = "/globalconsole", tenantId: m } = u, h = e(), g = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
|
|
11
12
|
return r(() => {
|
|
12
|
-
if (
|
|
13
|
+
if (d) return d([
|
|
13
14
|
{
|
|
14
15
|
id: "globalconsole-products",
|
|
15
|
-
label:
|
|
16
|
-
path:
|
|
16
|
+
label: h("products.navProducts", "Products"),
|
|
17
|
+
path: g(p, "/products"),
|
|
17
18
|
icon: /* @__PURE__ */ s(o, { size: 20 }),
|
|
18
19
|
order: 50,
|
|
19
20
|
group: "globalconsole"
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
23
|
id: "globalconsole-content-pages",
|
|
23
|
-
label:
|
|
24
|
-
path:
|
|
24
|
+
label: h("contentPages.navContentPages", "Content Pages"),
|
|
25
|
+
path: g(p, "/products/content-pages"),
|
|
25
26
|
icon: /* @__PURE__ */ s(i, { size: 20 }),
|
|
26
27
|
order: 55,
|
|
27
28
|
group: "globalconsole"
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
31
|
id: "globalconsole-feature-flags",
|
|
31
|
-
label:
|
|
32
|
-
path:
|
|
32
|
+
label: h("featureFlags.navFeatureFlags", "Feature Flags"),
|
|
33
|
+
path: g(p, "/products/feature-flags"),
|
|
33
34
|
icon: /* @__PURE__ */ s(a, { size: 20 }),
|
|
34
35
|
order: 60,
|
|
35
36
|
group: "globalconsole"
|
|
36
37
|
}
|
|
37
38
|
]);
|
|
38
|
-
}, [
|
|
39
|
-
if (
|
|
39
|
+
}, [d, p]), r(() => {
|
|
40
|
+
if (f) return f([{
|
|
40
41
|
id: "product-management-version",
|
|
41
|
-
label:
|
|
42
|
+
label: h("products.footerVersion", "Product Management v0.1.0"),
|
|
42
43
|
type: "status",
|
|
43
44
|
order: 50,
|
|
44
45
|
section: "left"
|
|
45
46
|
}]);
|
|
46
|
-
}, [
|
|
47
|
+
}, [f]), /* @__PURE__ */ s(c, {
|
|
47
48
|
workspaceId: null,
|
|
48
49
|
gateway: "global",
|
|
49
50
|
defaultEnabled: !0,
|
|
50
|
-
children: /* @__PURE__ */ s(
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
children: /* @__PURE__ */ s(l, {
|
|
52
|
+
scopeId: m ?? null,
|
|
53
|
+
gateway: "global",
|
|
54
|
+
children: /* @__PURE__ */ s(t, {
|
|
55
|
+
...u,
|
|
56
|
+
children: /* @__PURE__ */ s(n, {})
|
|
57
|
+
})
|
|
53
58
|
})
|
|
54
59
|
});
|
|
55
60
|
};
|
|
56
61
|
//#endregion
|
|
57
|
-
export {
|
|
62
|
+
export { u as ProductManagementRoot };
|
|
58
63
|
|
|
59
64
|
//# sourceMappingURL=ProductManagementRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductManagementRoot.js","names":[],"sources":["../../src/product-management/ProductManagementRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { Flag, Package, FileText } from 'lucide-react';\nimport { useTr } from './shared/hooks/useTr';\nimport { ProductConsoleProvider } from './providers/ProductConsoleProvider';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport type { NavItem, ProductManagementRootProps } from './types';\nimport { ProductManagementRoutes } from './ProductManagementRoutes';\n\nexport const ProductManagementRoot: FC<ProductManagementRootProps> = (props) => {\n const {
|
|
1
|
+
{"version":3,"file":"ProductManagementRoot.js","names":[],"sources":["../../src/product-management/ProductManagementRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { Flag, Package, FileText } from 'lucide-react';\nimport { useTr } from './shared/hooks/useTr';\nimport { ProductConsoleProvider } from './providers/ProductConsoleProvider';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { PermissionProvider } from '@burdenoff/fe-libs/shared/providers/shell';\nimport type { NavItem, ProductManagementRootProps } from './types';\nimport { ProductManagementRoutes } from './ProductManagementRoutes';\n\nexport const ProductManagementRoot: FC<ProductManagementRootProps> = (props) => {\n const {\n registerNavItems,\n registerFooterItems,\n basePath = '/globalconsole',\n tenantId,\n } = props;\n const tr = useTr();\n\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'globalconsole-products',\n label: tr('products.navProducts', 'Products'),\n path: joinPath(basePath, '/products'),\n icon: <Package size={20} />,\n order: 50,\n group: 'globalconsole',\n },\n {\n id: 'globalconsole-content-pages',\n label: tr('contentPages.navContentPages', 'Content Pages'),\n path: joinPath(basePath, '/products/content-pages'),\n icon: <FileText size={20} />,\n order: 55,\n group: 'globalconsole',\n },\n {\n id: 'globalconsole-feature-flags',\n label: tr('featureFlags.navFeatureFlags', 'Feature Flags'),\n path: joinPath(basePath, '/products/feature-flags'),\n icon: <Flag size={20} />,\n order: 60,\n group: 'globalconsole',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath]);\n\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'product-management-version',\n label: tr('products.footerVersion', 'Product Management v0.1.0'),\n type: 'status' as const,\n order: 50,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems]);\n\n return (\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <PermissionProvider scopeId={tenantId ?? null} gateway=\"global\">\n <ProductConsoleProvider {...props}>\n <ProductManagementRoutes />\n </ProductConsoleProvider>\n </PermissionProvider>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;AAUA,IAAa,KAAyD,MAAU;CAC9E,IAAM,EACJ,qBACA,wBACA,cAAW,kBACX,gBACE,GACE,IAAK,GAAO,EAEZ,KAAY,GAAc,OACZ,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI;AAuDtD,QAnDA,QAAgB;AACT,QA8BL,QADgB,EAAiB;GA1B/B;IACE,IAAI;IACJ,OAAO,EAAG,wBAAwB,WAAW;IAC7C,MAAM,EAAS,GAAU,YAAY;IACrC,MAAM,kBAAC,GAAD,EAAS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