create-nextjs-cms 0.6.9 → 0.7.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/index.js CHANGED
@@ -54,7 +54,7 @@ async function createNextjsCms() {
54
54
  }
55
55
  else {
56
56
  logger.message(`${preferredPM} install`);
57
- logger.message(`${preferredPM} nextjs-cms-kit --dev setup`);
57
+ logger.message(`${preferredPM} nextjs-cms --dev setup`);
58
58
  logger.message(`${preferredPM} dev`);
59
59
  }
60
60
  console.log('\n');
@@ -5,7 +5,7 @@ import * as p from '@clack/prompts';
5
5
  const runCmsSetupCommand = async ({ preferredPM, projectDir, }) => {
6
6
  // For all package managers, use inherit for stdout/stderr to avoid hanging issues
7
7
  // The command will show its own output and the spinner will just indicate progress
8
- await execWithoutSpinner(preferredPM, ['nextjs-cms-kit', '--dev', 'setup'], {
8
+ await execWithoutSpinner(preferredPM, ['nextjs-cms', '--dev', 'setup'], {
9
9
  cwd: projectDir,
10
10
  stdout: 'inherit',
11
11
  stderr: 'inherit',
@@ -19,7 +19,7 @@ export const runCmsSetup = async ({ dir, preferredPM }) => {
19
19
  }
20
20
  catch (error) {
21
21
  logger.error('⚠️ CMS setup failed. You may need to run it manually:');
22
- logger.warn(`${preferredPM} nextjs-cms-kit --dev setup`);
22
+ logger.warn(`${preferredPM} nextjs-cms --dev setup`);
23
23
  logger.error(` Error: ${error instanceof Error ? error.message : 'Unknown error'}`);
24
24
  throw error;
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextjs-cms",
3
- "version": "0.6.9",
3
+ "version": "0.7.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,11 +1,11 @@
1
1
  import dynamic from 'next/dynamic'
2
2
 
3
- export const pluginNamesMap: Record<string, string> = {
4
- 'cpanel-dashboard': '@nextjs-cms-plugins/cpanel-dashboard/server',
5
- 'cpanel-emails': '@nextjs-cms-plugins/cpanel-emails/server',
6
- 'google-analytics': '@nextjs-cms-plugins/google-analytics/server',
7
- // A workaround to avoid importing error if no plugins are installed
8
- blank: 'nextjs-cms/plugins/blank-component',
3
+ export const pluginNamesMap: Record<string, string> = {
4
+ 'cpanel-dashboard': '@nextjscms/plugin-cpanel-dashboard/server',
5
+ 'cpanel-emails': '@nextjscms/plugin-cpanel-emails/server',
6
+ 'google-analytics': '@nextjscms/plugin-google-analytics/server',
7
+ // A workaround to avoid importing error if no plugins are installed
8
+ blank: 'nextjs-cms/plugins/blank-component',
9
9
  }
10
10
 
11
11
  export const getPluginServerComponent = async (registryName: string, componentName: string | undefined) => {
@@ -1,7 +1,4 @@
1
- import type { CMSConfig } from 'nextjs-cms/core/config'
2
- import en from 'nextjs-cms/translations/dictionaries/en'
3
- import ar from 'nextjs-cms/translations/dictionaries/ar'
4
- import process from 'process'
1
+ import type { CMSConfig } from 'nextjs-cms/core/config'
5
2
  import { resolve } from 'path'
6
3
 
7
4
  export const config: CMSConfig = {
@@ -44,9 +41,6 @@ export const config: CMSConfig = {
44
41
  columns: 'camelCase',
45
42
  },
46
43
  },
47
- },
48
- i18n: {
49
- supportedLanguages: { ar, en },
50
- fallbackLanguage: 'en',
44
+ },
51
45
  },
52
46
  }
@@ -19,6 +19,7 @@
19
19
  "@formkit/auto-animate": "^0.9.0",
20
20
  "@hookform/resolvers": "^5.2.2",
21
21
  "@next/env": "16.1.1",
22
+ "@nextjscms/translations": "workspace:*",
22
23
  "@radix-ui/react-accordion": "^1.2.3",
23
24
  "@radix-ui/react-alert-dialog": "^1.1.15",
24
25
  "@radix-ui/react-aspect-ratio": "^1.1.2",
@@ -65,7 +66,7 @@
65
66
  "nanoid": "^5.1.2",
66
67
  "next": "16.1.1",
67
68
  "next-themes": "^0.4.6",
68
- "nextjs-cms": "0.6.9",
69
+ "nextjs-cms": "0.7.1",
69
70
  "plaiceholder": "^3.0.0",
70
71
  "prettier-plugin-tailwindcss": "^0.7.2",
71
72
  "qrcode": "^1.5.4",
@@ -99,7 +100,6 @@
99
100
  "eslint-config-prettier": "^10.0.1",
100
101
  "eslint-plugin-prettier": "^5.2.3",
101
102
  "fs-extra": "^11.3.3",
102
- "nextjs-cms-kit": "0.6.9",
103
103
  "postcss": "^8.5.1",
104
104
  "prettier": "3.5.0",
105
105
  "raw-loader": "^4.0.2",