@burdenoff/microfe-assethandler 2026.1103.1 → 2026.1103.2
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":"AdminRoot.d.ts","sourceRoot":"","sources":["../../../src/assethandler/admin/AdminRoot.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AdminRoot.d.ts","sourceRoot":"","sources":["../../../src/assethandler/admin/AdminRoot.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAC;AAKnD,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGnE,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAgCrD,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAIxC,CAAC"}
|
|
@@ -1,42 +1,41 @@
|
|
|
1
1
|
import { AdminContext as e } from "./AdminContext.js";
|
|
2
2
|
import { AdminPage as t } from "./AdminPage.js";
|
|
3
3
|
import { useMemo as n } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
4
|
+
import { ApolloClient as r, HttpLink as i, InMemoryCache as a } from "@apollo/client";
|
|
5
|
+
import { ApolloProvider as o } from "@apollo/client/react";
|
|
6
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
8
7
|
//#region src/assethandler/admin/AdminRoot.tsx
|
|
9
|
-
var
|
|
10
|
-
let { apiGatewayUrl:
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
client: n(() => new
|
|
13
|
-
link: new
|
|
14
|
-
uri:
|
|
8
|
+
var c = ({ children: t, ...c }) => {
|
|
9
|
+
let { apiGatewayUrl: l, authToken: u, workspaceToken: d, workspaceId: f, tenantId: p } = c;
|
|
10
|
+
return /* @__PURE__ */ s(o, {
|
|
11
|
+
client: n(() => new r({
|
|
12
|
+
link: new i({
|
|
13
|
+
uri: l ? `${l}/workspaces/graphql` : "/workspaces/graphql",
|
|
15
14
|
headers: {
|
|
16
|
-
...
|
|
17
|
-
...
|
|
18
|
-
...
|
|
19
|
-
...
|
|
15
|
+
...u ? { Authorization: `Bearer ${u}` } : {},
|
|
16
|
+
...d ? { "X-Workspace-Authorization": `Bearer ${d}` } : {},
|
|
17
|
+
...f ? { "x-workspace-id": f } : {},
|
|
18
|
+
...p ? { "x-tenant-id": p } : {}
|
|
20
19
|
}
|
|
21
20
|
}),
|
|
22
|
-
cache: new
|
|
21
|
+
cache: new a()
|
|
23
22
|
}), [
|
|
23
|
+
l,
|
|
24
24
|
u,
|
|
25
25
|
d,
|
|
26
26
|
f,
|
|
27
|
-
p
|
|
28
|
-
m
|
|
27
|
+
p
|
|
29
28
|
]),
|
|
30
|
-
children: /* @__PURE__ */
|
|
31
|
-
value:
|
|
29
|
+
children: /* @__PURE__ */ s(e.Provider, {
|
|
30
|
+
value: c,
|
|
32
31
|
children: t
|
|
33
|
-
})
|
|
32
|
+
})
|
|
34
33
|
});
|
|
35
|
-
},
|
|
34
|
+
}, l = (e) => /* @__PURE__ */ s(c, {
|
|
36
35
|
...e,
|
|
37
|
-
children: /* @__PURE__ */
|
|
36
|
+
children: /* @__PURE__ */ s(t, {})
|
|
38
37
|
});
|
|
39
38
|
//#endregion
|
|
40
|
-
export {
|
|
39
|
+
export { l as AdminRoot };
|
|
41
40
|
|
|
42
41
|
//# sourceMappingURL=AdminRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminRoot.js","names":[],"sources":["../../../src/assethandler/admin/AdminRoot.tsx"],"sourcesContent":["/**\n * AssetHandler Admin Root\n *\n * Host-contract entry point for the AssetHandler admin surface inside\n * `admin-app` at `/admin/assethandler` (BOFF-3362).\n *\n * Deliberately does NOT reuse `AssetHandlerProvider`: that provider hydrates\n * the whole product store (thirteen bootstrap queries) which an operations\n * console never needs. This provider only builds the workspace-gateway Apollo\n * client and exposes the host context to the admin page.\n */\nimport type { FC, PropsWithChildren } from 'react';\nimport { useMemo } from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"AdminRoot.js","names":[],"sources":["../../../src/assethandler/admin/AdminRoot.tsx"],"sourcesContent":["/**\n * AssetHandler Admin Root\n *\n * Host-contract entry point for the AssetHandler admin surface inside\n * `admin-app` at `/admin/assethandler` (BOFF-3362).\n *\n * Deliberately does NOT reuse `AssetHandlerProvider`: that provider hydrates\n * the whole product store (thirteen bootstrap queries) which an operations\n * console never needs. This provider only builds the workspace-gateway Apollo\n * client and exposes the host context to the admin page.\n */\nimport type { FC, PropsWithChildren } from 'react';\nimport { useMemo } from 'react';\nimport { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client';\nimport { ApolloProvider } from '@apollo/client/react';\n\nimport { AdminContext, type AdminRootProps } from './AdminContext';\nimport { AdminPage } from './AdminPage';\n\nexport type { AdminRootProps } from './AdminContext';\n\nconst AdminProvider: FC<PropsWithChildren<AdminRootProps>> = ({ children, ...props }) => {\n const { apiGatewayUrl, authToken, workspaceToken, workspaceId, tenantId } = props;\n\n const client = useMemo(\n () =>\n new ApolloClient({\n link: new HttpLink({\n uri: apiGatewayUrl ? `${apiGatewayUrl}/workspaces/graphql` : '/workspaces/graphql',\n headers: {\n ...(authToken ? { Authorization: `Bearer ${authToken}` } : {}),\n ...(workspaceToken ? { 'X-Workspace-Authorization': `Bearer ${workspaceToken}` } : {}),\n ...(workspaceId ? { 'x-workspace-id': workspaceId } : {}),\n ...(tenantId ? { 'x-tenant-id': tenantId } : {}),\n },\n }),\n cache: new InMemoryCache(),\n }),\n [apiGatewayUrl, authToken, workspaceToken, workspaceId, tenantId]\n );\n\n // No router here on purpose: admin-app already renders this inside its own\n // <Router>, and nesting another one throws. The page needs no routing —\n // navigation to other admin surfaces goes through the host's `navigate` prop.\n return (\n <ApolloProvider client={client}>\n <AdminContext.Provider value={props}>{children}</AdminContext.Provider>\n </ApolloProvider>\n );\n};\n\nexport const AdminRoot: FC<AdminRootProps> = (props) => (\n <AdminProvider {...props}>\n <AdminPage />\n </AdminProvider>\n);\n"],"mappings":";;;;;;;AAqBA,IAAM,KAAwD,EAAE,aAAU,GAAG,QAAY;CACvF,IAAM,EAAE,kBAAe,cAAW,mBAAgB,gBAAa,gBAAa;CAsB5E,OACE,kBAAC,GAAD;EAAwB,QArBX,QAEX,IAAI,EAAa;GACf,MAAM,IAAI,EAAS;IACjB,KAAK,IAAgB,GAAG,EAAc,uBAAuB;IAC7D,SAAS;KACP,GAAI,IAAY,EAAE,eAAe,UAAU,IAAY,IAAI,CAAC;KAC5D,GAAI,IAAiB,EAAE,6BAA6B,UAAU,IAAiB,IAAI,CAAC;KACpF,GAAI,IAAc,EAAE,kBAAkB,EAAY,IAAI,CAAC;KACvD,GAAI,IAAW,EAAE,eAAe,EAAS,IAAI,CAAC;IAChD;GACF,CAAC;GACD,OAAO,IAAI,EAAc;EAC3B,CAAC,GACH;GAAC;GAAe;GAAW;GAAgB;GAAa;EAAQ,CAOxC;YACtB,kBAAC,EAAa,UAAd;GAAuB,OAAO;GAAQ;EAAgC,CAAA;CACxD,CAAA;AAEpB,GAEa,KAAiC,MAC5C,kBAAC,GAAD;CAAe,GAAI;WACjB,kBAAC,GAAD,CAAY,CAAA;AACC,CAAA"}
|