@danxbot/ui 20.23.1 → 20.23.3

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.
@@ -8,6 +8,15 @@ import { type DesignFrameAppearance } from "./protocol";
8
8
  * data:/blob: media. It may not fetch, submit, set a base, or load anything by URL.
9
9
  */
10
10
  export declare const DESIGN_FRAME_CSP = "default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; media-src data: blob:; connect-src 'none'; form-action 'none'; base-uri 'none'";
11
+ /**
12
+ * DX-4693: the framed document declares the colour-scheme of the theme it mirrors. The host
13
+ * `<iframe>` element takes its colour-scheme from the host page; a framed document that declares
14
+ * none is `normal` (light), and under that mismatch Chromium paints an opaque backdrop that can
15
+ * hide the design entirely (reproduced in Electron's Chromium and real Chrome). The declaration is
16
+ * keyed on the `data-theme` attribute, so the frame follows a live flip: `designFrameClient`
17
+ * writes that attribute with every appearance the host posts.
18
+ */
19
+ export declare const DESIGN_FRAME_COLOR_SCHEME_CSS: string;
11
20
  /**
12
21
  * The policy is inserted by PARSING, never by string or regex surgery: text
13
22
  * placed after the first literal `<head>` is defeated by a decoy earlier in the
@@ -21,6 +30,7 @@ export declare const DESIGN_FRAME_CSP = "default-src 'none'; script-src 'unsafe-
21
30
  * document is never rendered unprotected.
22
31
  *
23
32
  * The host's `appearance` is stamped on the framed `<html>` here, so the frame
24
- * paints in the right theme from its first frame.
33
+ * paints in the right theme from its first frame, with the matching color-scheme
34
+ * declared right behind the policy (DX-4693).
25
35
  */
26
36
  export declare function prepareDesignDocument(html: unknown, appearance: DesignFrameAppearance): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "20.23.1",
3
+ "version": "20.23.3",
4
4
  "type": "module",
5
5
  "description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
6
6
  "license": "MIT",