@nifrajs/web-svelte 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.svelte +1 -0
- package/dist/Content.svelte.d.ts +2 -1
- package/package.json +5 -5
- package/src/Content.svelte +1 -0
- package/src/Content.svelte.d.ts +2 -1
package/dist/Content.svelte
CHANGED
|
@@ -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
|
|
package/dist/Content.svelte.d.ts
CHANGED
|
@@ -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:
|
|
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.
|
|
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.
|
|
104
|
-
"@nifrajs/i18n": "3.
|
|
105
|
-
"@nifrajs/image": "3.
|
|
106
|
-
"@nifrajs/web": "3.
|
|
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",
|
package/src/Content.svelte
CHANGED
|
@@ -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
|
|
package/src/Content.svelte.d.ts
CHANGED
|
@@ -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:
|
|
10
|
+
html: TrustedHtml
|
|
10
11
|
/** Wrapper element (default `"div"`). */
|
|
11
12
|
as?: string
|
|
12
13
|
/** DOM passthrough (`class`, `style`, `id`, `data-*`, …). */
|