@nextjscms/plugin-cpanel-emails 2.1.29 → 2.1.30
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 cpanelEmailsPlugin: {
|
|
2
|
+
readonly package: "@nextjscms/plugin-cpanel-emails";
|
|
3
|
+
readonly title: "cPanel Emails";
|
|
4
|
+
readonly routes: readonly [{
|
|
5
|
+
readonly path: "/cpanel-emails";
|
|
6
|
+
readonly title: "cPanel Emails";
|
|
7
|
+
readonly icon: "mail";
|
|
8
|
+
readonly prefetch: "cpanelEmails.getEmails";
|
|
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,kBAAkB;;;;;;;;;CAW7B,CAAA"}
|
package/dist/define.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { definePlugin } from 'nextjs-cms/plugins/define';
|
|
2
|
+
export const cpanelEmailsPlugin = definePlugin({
|
|
3
|
+
package: '@nextjscms/plugin-cpanel-emails',
|
|
4
|
+
title: 'cPanel Emails',
|
|
5
|
+
routes: [
|
|
6
|
+
{
|
|
7
|
+
path: '/cpanel-emails',
|
|
8
|
+
title: 'cPanel Emails',
|
|
9
|
+
icon: 'mail',
|
|
10
|
+
prefetch: 'cpanelEmails.getEmails',
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly title: "cPanel Emails";
|
|
4
|
-
readonly routes: readonly [{
|
|
5
|
-
readonly path: "/cpanel-emails";
|
|
6
|
-
readonly title: "cPanel Emails";
|
|
7
|
-
readonly icon: "mail";
|
|
8
|
-
readonly prefetch: "cpanelEmails.getEmails";
|
|
9
|
-
}];
|
|
10
|
-
};
|
|
1
|
+
import { cpanelEmailsPlugin } from './define.js';
|
|
2
|
+
export { cpanelEmailsPlugin };
|
|
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,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAE7B,wBAAsB,YAAY;;;;;;;;;;;;;;;oBAQu1D,CAAC;qBAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GADr5D"}
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
package: '@nextjscms/plugin-cpanel-emails',
|
|
4
|
-
title: 'cPanel Emails',
|
|
5
|
-
routes: [
|
|
6
|
-
{
|
|
7
|
-
path: '/cpanel-emails',
|
|
8
|
-
title: 'cPanel Emails',
|
|
9
|
-
icon: 'mail',
|
|
10
|
-
prefetch: 'cpanelEmails.getEmails',
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
});
|
|
1
|
+
import { cpanelEmailsPlugin } from './define.js';
|
|
2
|
+
export { cpanelEmailsPlugin };
|
|
14
3
|
export async function createPlugin() {
|
|
15
4
|
const { cpanelEmailsRouter } = 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":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AASxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;gBAgDf,CAAd;iBAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0H5B,CAAA"}
|
package/dist/router.js
CHANGED
|
@@ -3,8 +3,9 @@ import * as z from 'zod';
|
|
|
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 {
|
|
7
|
-
|
|
6
|
+
import { derivePluginName } from 'nextjs-cms/plugins/derive';
|
|
7
|
+
import { cpanelEmailsPlugin } from './define.js';
|
|
8
|
+
const PLUGIN_NAME = derivePluginName(cpanelEmailsPlugin.package);
|
|
8
9
|
export const cpanelEmailsRouter = router({
|
|
9
10
|
getEmails: pluginProcedure(PLUGIN_NAME).query(async ({ ctx }) => {
|
|
10
11
|
if (!process.env.CPANEL_USER || !process.env.CPANEL_PASSWORD || !process.env.CPANEL_DOMAIN) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextjscms/plugin-cpanel-emails",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "19.2.3",
|
|
28
28
|
"react-dom": "19.2.3",
|
|
29
|
-
"nextjs-cms": "0.9.
|
|
29
|
+
"nextjs-cms": "0.9.30"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/react": "^19.2.7",
|