@nextjscms/plugin-cpanel-dashboard 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.
@@ -0,0 +1,12 @@
1
+ export declare const PLUGIN_TITLE = "cPanel Dashboard";
2
+ export declare const cpanelDashboardPlugin: {
3
+ readonly package: "@nextjscms/plugin-cpanel-dashboard";
4
+ readonly title: "cPanel Dashboard";
5
+ readonly routes: readonly [{
6
+ readonly path: "/cpanel-dashboard";
7
+ readonly title: "cPanel Dashboard";
8
+ readonly icon: "home";
9
+ readonly prefetch: "cpanelDashboard.getData";
10
+ }];
11
+ };
12
+ //# 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,YAAY,qBAAqB,CAAA;AAE9C,eAAO,MAAM,qBAAqB;;;;;;;;;CAWhC,CAAA"}
package/dist/define.js ADDED
@@ -0,0 +1,14 @@
1
+ import { definePlugin } from 'nextjs-cms/plugins/define';
2
+ export const PLUGIN_TITLE = 'cPanel Dashboard';
3
+ export const cpanelDashboardPlugin = definePlugin({
4
+ package: '@nextjscms/plugin-cpanel-dashboard',
5
+ title: PLUGIN_TITLE,
6
+ routes: [
7
+ {
8
+ path: '/cpanel-dashboard',
9
+ title: PLUGIN_TITLE,
10
+ icon: 'home',
11
+ prefetch: 'cpanelDashboard.getData',
12
+ },
13
+ ],
14
+ });
package/dist/index.d.ts CHANGED
@@ -1,14 +1,5 @@
1
- export declare const PLUGIN_TITLE = "cPanel Dashboard";
2
- export declare const cpanelDashboardPlugin: {
3
- readonly package: "@nextjscms/plugin-cpanel-dashboard";
4
- readonly title: "cPanel Dashboard";
5
- readonly routes: readonly [{
6
- readonly path: "/cpanel-dashboard";
7
- readonly title: "cPanel Dashboard";
8
- readonly icon: "home";
9
- readonly prefetch: "cpanelDashboard.getData";
10
- }];
11
- };
1
+ import { cpanelDashboardPlugin, PLUGIN_TITLE } from './define.js';
2
+ export { cpanelDashboardPlugin, PLUGIN_TITLE };
12
3
  export declare function createPlugin(): Promise<{
13
4
  router: import("@trpc/server").TRPCBuiltRouter<{
14
5
  ctx: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,qBAAqB,CAAA;AAE9C,eAAO,MAAM,qBAAqB;;;;;;;;;CAWhC,CAAA;AAEF,wBAAsB,YAAY;;;;;;;;;;;;;;;oBAQo/C,CAAC;qBAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GADljD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAEjE,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,CAAA;AAE9C,wBAAsB,YAAY;;;;;;;;;;;;;;;oBAQgyD,CAAC;qBAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAD91D"}
package/dist/index.js CHANGED
@@ -1,17 +1,5 @@
1
- import { definePlugin } from 'nextjs-cms/plugins/define';
2
- export const PLUGIN_TITLE = 'cPanel Dashboard';
3
- export const cpanelDashboardPlugin = definePlugin({
4
- package: '@nextjscms/plugin-cpanel-dashboard',
5
- title: PLUGIN_TITLE,
6
- routes: [
7
- {
8
- path: '/cpanel-dashboard',
9
- title: PLUGIN_TITLE,
10
- icon: 'home',
11
- prefetch: 'cpanelDashboard.getData',
12
- },
13
- ],
14
- });
1
+ import { cpanelDashboardPlugin, PLUGIN_TITLE } from './define.js';
2
+ export { cpanelDashboardPlugin, PLUGIN_TITLE };
15
3
  export async function createPlugin() {
16
4
  const { cpanelDashboardRouter } = await import('./router.js');
17
5
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAuDA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;gBAWU,CAAC;iBAEpC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8ER,CAAA"}
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;gBAUb,CAAC;iBACV,CAAJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFN,CAAA"}
package/dist/router.js CHANGED
@@ -3,8 +3,9 @@ import { execSync } from 'child_process';
3
3
  import getString from 'nextjs-cms/translations';
4
4
  import { CpanelAPI } from 'nextjs-cms/utils';
5
5
  import { pluginProcedure, router } from 'nextjs-cms/api/plugin';
6
- import { extractPluginName } from 'nextjs-cms/plugins/derive';
7
- const PLUGIN_NAME = extractPluginName(import.meta.url);
6
+ import { derivePluginName } from 'nextjs-cms/plugins/derive';
7
+ import { cpanelDashboardPlugin } from './define.js';
8
+ const PLUGIN_NAME = derivePluginName(cpanelDashboardPlugin.package);
8
9
  const getNodeVersion = () => {
9
10
  try {
10
11
  const version = execSync('node -v', { encoding: 'utf-8' }).trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextjscms/plugin-cpanel-dashboard",
3
- "version": "2.1.29",
3
+ "version": "2.1.31",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "lucide-react": "^0.563.0",
28
28
  "react": "19.2.3",
29
29
  "react-dom": "19.2.3",
30
- "nextjs-cms": "0.9.29"
30
+ "nextjs-cms": "0.9.31"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/react": "^19.2.7",