@nextjscms/plugin-google-analytics 2.1.29 → 2.1.31
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/define.d.ts +11 -0
- package/dist/define.d.ts.map +1 -0
- package/dist/define.js +13 -0
- package/dist/index.d.ts +2 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -13
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +3 -2
- package/package.json +2 -2
package/dist/define.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const googleAnalyticsPlugin: {
|
|
2
|
+
readonly package: "@nextjscms/plugin-google-analytics";
|
|
3
|
+
readonly title: "Google Analytics";
|
|
4
|
+
readonly routes: readonly [{
|
|
5
|
+
readonly path: "/google-analytics";
|
|
6
|
+
readonly title: "Google Analytics";
|
|
7
|
+
readonly icon: "chart-line";
|
|
8
|
+
readonly prefetch: "googleAnalytics.test";
|
|
9
|
+
}];
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=define.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;CAWhC,CAAA"}
|
package/dist/define.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { definePlugin } from 'nextjs-cms/plugins/define';
|
|
2
|
+
export const googleAnalyticsPlugin = definePlugin({
|
|
3
|
+
package: '@nextjscms/plugin-google-analytics',
|
|
4
|
+
title: 'Google Analytics',
|
|
5
|
+
routes: [
|
|
6
|
+
{
|
|
7
|
+
path: '/google-analytics',
|
|
8
|
+
title: 'Google Analytics',
|
|
9
|
+
icon: 'chart-line',
|
|
10
|
+
prefetch: 'googleAnalytics.test',
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly title: "Google Analytics";
|
|
4
|
-
readonly routes: readonly [{
|
|
5
|
-
readonly path: "/google-analytics";
|
|
6
|
-
readonly title: "Google Analytics";
|
|
7
|
-
readonly icon: "chart-line";
|
|
8
|
-
readonly prefetch: "googleAnalytics.test";
|
|
9
|
-
}];
|
|
10
|
-
};
|
|
1
|
+
import { googleAnalyticsPlugin } from './define.js';
|
|
2
|
+
export { googleAnalyticsPlugin };
|
|
11
3
|
export declare function createPlugin(): Promise<{
|
|
12
4
|
router: import("@trpc/server").TRPCBuiltRouter<{
|
|
13
5
|
ctx: {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAEnD,OAAO,EAAE,qBAAqB,EAAE,CAAA;AAEhC,wBAAsB,YAAY;;;;;;;;;;;;;;;oBAQ4zD,CAAC;qBAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;GAD13D"}
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
package: '@nextjscms/plugin-google-analytics',
|
|
4
|
-
title: 'Google Analytics',
|
|
5
|
-
routes: [
|
|
6
|
-
{
|
|
7
|
-
path: '/google-analytics',
|
|
8
|
-
title: 'Google Analytics',
|
|
9
|
-
icon: 'chart-line',
|
|
10
|
-
prefetch: 'googleAnalytics.test',
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
});
|
|
1
|
+
import { googleAnalyticsPlugin } from './define.js';
|
|
2
|
+
export { googleAnalyticsPlugin };
|
|
14
3
|
export async function createPlugin() {
|
|
15
4
|
const { googleAnalyticsRouter } = await import('./router.js');
|
|
16
5
|
return {
|
package/dist/router.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;gBAKstD,CAAC;iBAA2B,CAAC;;;;;;;;;;;;GADnxD,CAAA"}
|
package/dist/router.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { pluginProcedure, router } from 'nextjs-cms/api/plugin';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { derivePluginName } from 'nextjs-cms/plugins/derive';
|
|
3
|
+
import { googleAnalyticsPlugin } from './define.js';
|
|
4
|
+
const PLUGIN_NAME = derivePluginName(googleAnalyticsPlugin.package);
|
|
4
5
|
export const googleAnalyticsRouter = router({
|
|
5
6
|
test: pluginProcedure(PLUGIN_NAME).query(async ({ ctx }) => {
|
|
6
7
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextjscms/plugin-google-analytics",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "19.2.3",
|
|
27
27
|
"react-dom": "19.2.3",
|
|
28
|
-
"nextjs-cms": "0.9.
|
|
28
|
+
"nextjs-cms": "0.9.31"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/react": "^19.2.7",
|