@pisapp/ssr-render 7.0.0-dev.20261110-141337 → 7.0.0-dev.20261116-173244
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/README.md +3 -2
- package/package.json +4 -4
- package/server.mjs +1 -1
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ carries a `HEALTHCHECK` against `GET /health`. The core version is reported as
|
|
|
66
66
|
"payload": { "detail": { "...": "your /v2/Products/Detail response" }, "translations": [] },
|
|
67
67
|
"baseUrl": "https://your-gateway/PisWebApi",
|
|
68
68
|
|
|
69
|
-
"
|
|
69
|
+
"accent": "abb",
|
|
70
70
|
"structuredData": true,
|
|
71
71
|
"layout": { "headerHtml": "...", "footerHtml": "...", "headExtra": "..." },
|
|
72
72
|
"mode": "fragment",
|
|
@@ -103,7 +103,8 @@ Pick ONE data flow:
|
|
|
103
103
|
`text/html; charset=utf-8` (or JSON with `Accept: application/json` /
|
|
104
104
|
`"format": "json"` - the raw render result: `html`, `head`, `cssImports`,
|
|
105
105
|
`embeddedPayload`, `found`). The fragment contains, in order: your layout
|
|
106
|
-
chrome, theme stylesheet links (theme
|
|
106
|
+
chrome, theme stylesheet links (`theme-cux2.css`, the `accent` token sheet when it is not
|
|
107
|
+
`abb`, then `pis.css`),
|
|
107
108
|
optional schema.org JSON-LD, the
|
|
108
109
|
SSR-Embedded Initial Data payloads, the server-rendered markup, and in
|
|
109
110
|
`fragment` mode the version-pinned `pis-csp.js` plus the one-shot bootstrap.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisapp/ssr-render",
|
|
3
|
-
"version": "7.0.0-dev.
|
|
3
|
+
"version": "7.0.0-dev.20261116-173244",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"author": "ABB Asea Brown Boveri Ltd",
|
|
6
6
|
"description": "Self-contained PIS details-view render service (plan/25, decisions.md D10): serves fully server-rendered product details HTML fragments to any backend (.NET, PHP, ...) through @pisapp/core/server - composition or consumer-template mode, caller payloads or service-side fetches, opt-in token exposure for live lazy loads, one-file Node or docker/podman deployment.",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"THIRD-PARTY-NOTICES.txt"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@pisapp/core": "7.0.0-dev.
|
|
27
|
+
"@pisapp/core": "7.0.0-dev.20261116-173244"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"vitest": "^4.1.11"
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"node": ">=22"
|
|
37
37
|
},
|
|
38
38
|
"pisRelease": {
|
|
39
|
-
"version": "7.0.0-dev.
|
|
39
|
+
"version": "7.0.0-dev.20261116-173244",
|
|
40
40
|
"channel": "dev",
|
|
41
|
-
"commit": "
|
|
41
|
+
"commit": "37f490e160cc9ab23d3eea4b9b04008578ea739a"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"start": "node bin/pis-ssr-render.mjs",
|
package/server.mjs
CHANGED
|
@@ -401,7 +401,7 @@ export function createRenderService(config = {}) {
|
|
|
401
401
|
composition: Array.isArray(body.composition) ? body.composition : undefined,
|
|
402
402
|
template,
|
|
403
403
|
payload,
|
|
404
|
-
|
|
404
|
+
accent: typeof body.accent === 'string' ? body.accent : undefined,
|
|
405
405
|
structuredData: body.structuredData === true,
|
|
406
406
|
fetch: {
|
|
407
407
|
headers:
|