@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.
@@ -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>
@@ -0,0 +1,4 @@
1
+ import { type OpinlyPixelConfig } from "@opinly/shared/pixel";
2
+ declare const OpinlyPixel: import("svelte").Component<OpinlyPixelConfig, {}, "">;
3
+ type OpinlyPixel = ReturnType<typeof OpinlyPixel>;
4
+ export default OpinlyPixel;
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
@@ -1 +1,3 @@
1
1
  export { default as OpinlySeo } from "./OpinlySeo.svelte";
2
+ export { default as OpinlyPixel } from "./OpinlyPixel.svelte";
3
+ export { getOpinlyPixel } from "@opinly/shared/pixel";
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.2.0",
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.2.0"
17
+ "@opinly/shared": "1.3.0"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "svelte": "^4.0.0 || ^5.0.0"