@nifrajs/web-solid 3.3.0 → 3.5.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/dist/content.d.ts CHANGED
@@ -7,10 +7,11 @@
7
7
  * Security: injects raw HTML, so `html` MUST be trusted (your own Markdown/content, rendered at
8
8
  * build/server time) - never pass user-supplied HTML without sanitizing it first.
9
9
  */
10
+ import type { TrustedHtml } from "@nifrajs/web";
10
11
  import { type JSX } from "solid-js";
11
12
  export interface ContentProps {
12
13
  /** Trusted, pre-rendered HTML (e.g. `entry.html`). */
13
- readonly html: string;
14
+ readonly html: TrustedHtml;
14
15
  /** Wrapper element (default `"div"`). */
15
16
  readonly as?: string;
16
17
  /** DOM passthrough (`class`, `style`, `id`, `data-*`, handlers). */
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAmB,KAAK,GAAG,EAA0B,MAAM,UAAU,CAAA;AAG5E,MAAM,WAAW,YAAY;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,oEAAoE;IACpE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAChC;AAED,uFAAuF;AACvF,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CAOxD"}
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAmB,KAAK,GAAG,EAA0B,MAAM,UAAU,CAAA;AAG5E,MAAM,WAAW,YAAY;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;IAC1B,yCAAyC;IACzC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,oEAAoE;IACpE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAChC;AAED,uFAAuF;AACvF,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CAOxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"content.js","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,eAAe,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAWtC,uFAAuF;AACvF,MAAM,UAAU,OAAO,CAAC,KAAmB;IACzC,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA;IAClD,4FAA4F;IAC5F,OAAO,eAAe,CACpB,OAAO,EACP,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,IAAI,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAClF,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"content.js","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,eAAe,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAWtC,uFAAuF;AACvF,MAAM,UAAU,OAAO,CAAC,KAAmB;IACzC,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA;IAClD,4FAA4F;IAC5F,OAAO,eAAe,CACpB,OAAO,EACP,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,IAAI,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAClF,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nifrajs/web-solid",
3
- "version": "3.3.0",
3
+ "version": "3.5.0",
4
4
  "description": "Solid render adapter for @nifrajs/web - SSR + hydration + the Solid Babel build plugin.",
5
5
  "keywords": [
6
6
  "bun",
@@ -99,10 +99,10 @@
99
99
  "dependencies": {
100
100
  "@babel/core": "^7.26.0",
101
101
  "@babel/preset-typescript": "^7.26.0",
102
- "@nifrajs/core": "3.3.0",
103
- "@nifrajs/i18n": "3.3.0",
104
- "@nifrajs/image": "3.3.0",
105
- "@nifrajs/web": "3.3.0",
102
+ "@nifrajs/core": "3.5.0",
103
+ "@nifrajs/i18n": "3.5.0",
104
+ "@nifrajs/image": "3.5.0",
105
+ "@nifrajs/web": "3.5.0",
106
106
  "babel-preset-solid": "^1.9.3",
107
107
  "solid-refresh": "^0.7.8"
108
108
  },
package/src/content.ts CHANGED
@@ -7,12 +7,14 @@
7
7
  * Security: injects raw HTML, so `html` MUST be trusted (your own Markdown/content, rendered at
8
8
  * build/server time) - never pass user-supplied HTML without sanitizing it first.
9
9
  */
10
+
11
+ import type { TrustedHtml } from "@nifrajs/web"
10
12
  import { createComponent, type JSX, mergeProps, splitProps } from "solid-js"
11
13
  import { Dynamic } from "solid-js/web"
12
14
 
13
15
  export interface ContentProps {
14
16
  /** Trusted, pre-rendered HTML (e.g. `entry.html`). */
15
- readonly html: string
17
+ readonly html: TrustedHtml
16
18
  /** Wrapper element (default `"div"`). */
17
19
  readonly as?: string
18
20
  /** DOM passthrough (`class`, `style`, `id`, `data-*`, handlers). */