@nekm/svelte-core 1.2.1 → 1.3.1
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/analytics/ahrefs.svelte +22 -0
- package/dist/analytics/ahrefs.svelte.d.ts +6 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +5 -3
- package/package.json +2 -2
- /package/dist/{google-analytics.d.ts → analytics/google-analytics.d.ts} +0 -0
- /package/dist/{google-analytics.js → analytics/google-analytics.js} +0 -0
- /package/dist/{google-analytics.svelte → analytics/google-analytics.svelte} +0 -0
- /package/dist/{google-analytics.svelte.d.ts → analytics/google-analytics.svelte.d.ts} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import {onMount} from "svelte";
|
|
3
|
+
import {browserImportScript} from "@nekm/core";
|
|
4
|
+
|
|
5
|
+
export interface AhrefsProps {
|
|
6
|
+
readonly key: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const { key }: AhrefsProps = $props();
|
|
10
|
+
|
|
11
|
+
const url = "https://analytics.ahrefs.com";
|
|
12
|
+
|
|
13
|
+
onMount(() => {
|
|
14
|
+
return browserImportScript(`${url}/analytics.js`, {
|
|
15
|
+
attributes: { "data-key": key },
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<svelte:head>
|
|
21
|
+
<link rel="dns-prefetch" href={url} />
|
|
22
|
+
</svelte:head>
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export * from "./google-analytics.js";
|
|
2
|
-
export { default as GoogleAnalytics } from "./google-analytics.svelte";
|
|
3
|
-
export * from "./google-analytics.svelte";
|
|
1
|
+
export * from "./analytics/google-analytics.js";
|
|
2
|
+
export { default as GoogleAnalytics } from "./analytics/google-analytics.svelte";
|
|
3
|
+
export * from "./analytics/google-analytics.svelte";
|
|
4
|
+
export { default as Ahrefs } from "./analytics/ahrefs.svelte";
|
|
5
|
+
export * from "./analytics/ahrefs.svelte";
|
|
4
6
|
export { default as Seo } from "./seo.svelte";
|
|
5
7
|
export * from "./seo.svelte";
|
|
6
8
|
export { default as DateTime } from "./date-time.svelte";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export * from "./google-analytics.js";
|
|
2
|
-
export { default as GoogleAnalytics } from "./google-analytics.svelte";
|
|
3
|
-
export * from "./google-analytics.svelte";
|
|
1
|
+
export * from "./analytics/google-analytics.js";
|
|
2
|
+
export { default as GoogleAnalytics } from "./analytics/google-analytics.svelte";
|
|
3
|
+
export * from "./analytics/google-analytics.svelte";
|
|
4
|
+
export { default as Ahrefs } from "./analytics/ahrefs.svelte";
|
|
5
|
+
export * from "./analytics/ahrefs.svelte";
|
|
4
6
|
export { default as Seo } from "./seo.svelte";
|
|
5
7
|
export * from "./seo.svelte";
|
|
6
8
|
export { default as DateTime } from "./date-time.svelte";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nekm/svelte-core",
|
|
3
3
|
"description": "Code I find myself re-writing over-and-over, Svelte edition.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
7
7
|
"build": "vite build && npm run prepack",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"svelte"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@nekm/core": "^1.0
|
|
45
|
+
"@nekm/core": "^1.1.0",
|
|
46
46
|
"@sveltejs/kit": "^2.22.4",
|
|
47
47
|
"svelte": "^5.35.5"
|
|
48
48
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|