rspress-plugin-google-analytics 0.2.0 → 1.0.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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { useLocation } from 'rspress/runtime';
3
+ import { useLocation } from '@rspress/core/runtime';
4
4
 
5
5
  export default () => {
6
6
  const location = useLocation();
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type MaybeArray } from 'rspress-plugin-devkit';
2
- import type { RspressPlugin } from '@rspress/shared';
2
+ import type { RspressPlugin } from '@rspress/core';
3
3
  interface RspressPluginSiteMapOptions {
4
4
  id: MaybeArray<string>;
5
5
  anonymizeIP?: boolean;
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "rspress-plugin-google-analytics",
3
- "version": "0.2.0",
3
+ "version": "1.0.0",
4
4
  "description": "rspress plugin for google analytics",
5
+ "type": "module",
5
6
  "files": [
6
7
  "dist",
7
8
  "components"
@@ -28,8 +29,7 @@
28
29
  "access": "public"
29
30
  },
30
31
  "dependencies": {
31
- "@rspress/shared": "^1.17.1",
32
- "rspress-plugin-devkit": "^0.2.0"
32
+ "rspress-plugin-devkit": "^1.0.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "^20.12.5",
@@ -37,7 +37,7 @@
37
37
  "typescript": "^5.4.4"
38
38
  },
39
39
  "peerDependencies": {
40
- "rspress": "*"
40
+ "@rspress/core": "^2.0.0-rc.4 || ^2.0.0"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsc --declarationMap false",