@cosmicdrift/kumiko-bundled-features 0.122.5 → 0.123.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-bundled-features",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.123.0",
|
|
4
4
|
"description": "Built-in features — tenant, user, auth, delivery. The stuff you'd rewrite anyway, already typed.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
"./step-dispatcher": "./src/step-dispatcher/index.ts"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@cosmicdrift/kumiko-dispatcher-live": "0.
|
|
100
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
101
|
-
"@cosmicdrift/kumiko-headless": "0.
|
|
102
|
-
"@cosmicdrift/kumiko-renderer": "0.
|
|
103
|
-
"@cosmicdrift/kumiko-renderer-web": "0.
|
|
99
|
+
"@cosmicdrift/kumiko-dispatcher-live": "0.123.0",
|
|
100
|
+
"@cosmicdrift/kumiko-framework": "0.123.0",
|
|
101
|
+
"@cosmicdrift/kumiko-headless": "0.123.0",
|
|
102
|
+
"@cosmicdrift/kumiko-renderer": "0.123.0",
|
|
103
|
+
"@cosmicdrift/kumiko-renderer-web": "0.123.0",
|
|
104
104
|
"@mollie/api-client": "^4.5.0",
|
|
105
105
|
"@node-rs/argon2": "^2.0.2",
|
|
106
106
|
"@types/nodemailer": "^8.0.0",
|
|
@@ -33,6 +33,7 @@ const TENANT_CLIP = `${TENANT_SCOPE}{overflow:hidden}`;
|
|
|
33
33
|
export function tenantStyleBlock(customCss: string): string {
|
|
34
34
|
const sanitized = sanitizeTenantCss(customCss, TENANT_SCOPE);
|
|
35
35
|
if (!sanitized) return "";
|
|
36
|
+
// html-ok: sanitizeTenantCss ist die Escaping-Boundary (Allowlist, strippt `<`).
|
|
36
37
|
return `\n<style data-tenant-css>${TENANT_CONTAINMENT}\n${TENANT_CLIP}\n${sanitized}</style>`;
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -52,7 +53,7 @@ export function wrapInLayout(opts: {
|
|
|
52
53
|
description?: string | null;
|
|
53
54
|
branding?: BrandingTokens;
|
|
54
55
|
}): string {
|
|
55
|
-
const
|
|
56
|
+
const themeStyleHtml = opts.branding ? brandingStyleBlock(opts.branding) : "";
|
|
56
57
|
const header = opts.branding ? brandingHeaderHtml(opts.branding) : "";
|
|
57
58
|
// Untrusted per-tenant CSS — scoped, allowlist-sanitized and host-contained
|
|
58
59
|
// at the render boundary by tenantStyleBlock (same helper a custom wrapLayout
|
|
@@ -88,7 +89,7 @@ export function wrapInLayout(opts: {
|
|
|
88
89
|
.brand-header a { display: flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; }
|
|
89
90
|
.brand-logo { height: 2rem; width: auto; }
|
|
90
91
|
.brand-title { font-weight: 600; font-size: 1.1rem; }
|
|
91
|
-
</style>${
|
|
92
|
+
</style>${themeStyleHtml}${tenantStyle}
|
|
92
93
|
</head>
|
|
93
94
|
<body>
|
|
94
95
|
${header}
|