@opinly/sveltekit 1.2.0 → 1.3.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/OpinlyPixel.svelte +10 -0
- package/dist/OpinlyPixel.svelte.d.ts +4 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onMount } from "svelte";
|
|
3
|
+
import { loadOpinlyPixel, type OpinlyPixelConfig } from "@opinly/shared/pixel";
|
|
4
|
+
|
|
5
|
+
let { writeKey, host }: OpinlyPixelConfig = $props();
|
|
6
|
+
|
|
7
|
+
onMount(() => {
|
|
8
|
+
loadOpinlyPixel({ writeKey, host });
|
|
9
|
+
});
|
|
10
|
+
</script>
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export { default as OpinlySeo } from "./OpinlySeo.svelte";
|
|
2
|
+
export { default as OpinlyPixel } from "./OpinlyPixel.svelte";
|
|
3
|
+
export { getOpinlyPixel } from "@opinly/shared/pixel";
|
|
2
4
|
export type { OpinlyConfig, SeoResolved, OpinlyMeta } from "@opinly/shared";
|
|
5
|
+
export type { Opinly, OpinlyPixelConfig } from "@opinly/shared/pixel";
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opinly/sveltekit",
|
|
3
3
|
"description": "SvelteKit SEO for Opinly content — <OpinlySeo> renders <svelte:head>.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"svelte": "./dist/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@opinly/shared": "1.
|
|
17
|
+
"@opinly/shared": "1.3.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"svelte": "^4.0.0 || ^5.0.0"
|