@nifrajs/web-svelte 3.2.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.
@@ -7,6 +7,7 @@
7
7
  build/server time) - never pass user-supplied HTML without sanitizing it first. Plain-JS script.
8
8
  -->
9
9
  <script>
10
+ /** @type {{ html: import('@nifrajs/web').TrustedHtml, as?: string, [key: string]: unknown }} */
10
11
  let { html, as = "div", ...rest } = $props()
11
12
  </script>
12
13
 
@@ -1,3 +1,4 @@
1
+ import type { TrustedHtml } from "@nifrajs/web"
1
2
  import type { Component } from "svelte"
2
3
 
3
4
  /**
@@ -6,7 +7,7 @@ import type { Component } from "svelte"
6
7
  */
7
8
  export interface ContentProps {
8
9
  /** Trusted, pre-rendered HTML (e.g. `entry.html`). */
9
- html: string
10
+ html: TrustedHtml
10
11
  /** Wrapper element (default `"div"`). */
11
12
  as?: string
12
13
  /** DOM passthrough (`class`, `style`, `id`, `data-*`, …). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nifrajs/web-svelte",
3
- "version": "3.2.0",
3
+ "version": "3.5.0",
4
4
  "description": "Svelte 5 render adapter for @nifrajs/web - SSR + hydration + the .svelte compiler Bun-plugin.",
5
5
  "keywords": [
6
6
  "bun",
@@ -100,10 +100,10 @@
100
100
  "access": "public"
101
101
  },
102
102
  "dependencies": {
103
- "@nifrajs/core": "3.2.0",
104
- "@nifrajs/i18n": "3.2.0",
105
- "@nifrajs/image": "3.2.0",
106
- "@nifrajs/web": "3.2.0"
103
+ "@nifrajs/core": "3.5.0",
104
+ "@nifrajs/i18n": "3.5.0",
105
+ "@nifrajs/image": "3.5.0",
106
+ "@nifrajs/web": "3.5.0"
107
107
  },
108
108
  "peerDependencies": {
109
109
  "mdsvex": "^0.12",
@@ -7,6 +7,7 @@
7
7
  build/server time) - never pass user-supplied HTML without sanitizing it first. Plain-JS script.
8
8
  -->
9
9
  <script>
10
+ /** @type {{ html: import('@nifrajs/web').TrustedHtml, as?: string, [key: string]: unknown }} */
10
11
  let { html, as = "div", ...rest } = $props()
11
12
  </script>
12
13
 
@@ -1,3 +1,4 @@
1
+ import type { TrustedHtml } from "@nifrajs/web"
1
2
  import type { Component } from "svelte"
2
3
 
3
4
  /**
@@ -6,7 +7,7 @@ import type { Component } from "svelte"
6
7
  */
7
8
  export interface ContentProps {
8
9
  /** Trusted, pre-rendered HTML (e.g. `entry.html`). */
9
- html: string
10
+ html: TrustedHtml
10
11
  /** Wrapper element (default `"div"`). */
11
12
  as?: string
12
13
  /** DOM passthrough (`class`, `style`, `id`, `data-*`, …). */