nextjs-cms 0.9.22 → 0.9.24

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.
Files changed (192) hide show
  1. package/README.md +65 -13
  2. package/dist/api/actions/files.d.ts +30 -0
  3. package/dist/api/actions/files.d.ts.map +1 -0
  4. package/dist/api/actions/files.js +234 -0
  5. package/dist/api/actions/index.d.ts +4 -0
  6. package/dist/api/actions/index.d.ts.map +1 -0
  7. package/dist/api/actions/index.js +3 -0
  8. package/dist/api/actions/pages.d.ts +297 -0
  9. package/dist/api/actions/pages.d.ts.map +1 -0
  10. package/dist/api/actions/pages.js +1215 -0
  11. package/dist/api/actions/privileges.d.ts +25 -0
  12. package/dist/api/actions/privileges.d.ts.map +1 -0
  13. package/dist/api/actions/privileges.js +98 -0
  14. package/dist/api/client/index.d.ts +4 -0
  15. package/dist/api/client/index.d.ts.map +1 -0
  16. package/dist/api/client/index.js +3 -0
  17. package/dist/api/client.d.ts +30 -0
  18. package/dist/api/client.d.ts.map +1 -0
  19. package/dist/api/client.js +82 -0
  20. package/dist/api/index.d.ts +1 -938
  21. package/dist/api/index.d.ts.map +1 -1
  22. package/dist/api/index.js +0 -13
  23. package/dist/api/plugin/index.d.ts +7 -0
  24. package/dist/api/plugin/index.d.ts.map +1 -0
  25. package/dist/api/plugin/index.js +5 -0
  26. package/dist/api/root.d.ts +18 -1844
  27. package/dist/api/root.d.ts.map +1 -1
  28. package/dist/api/root.js +18 -83
  29. package/dist/api/server/index.d.ts +8 -0
  30. package/dist/api/server/index.d.ts.map +1 -0
  31. package/dist/api/server/index.js +3 -0
  32. package/dist/api/server.d.ts +2748 -0
  33. package/dist/api/server.d.ts.map +1 -0
  34. package/dist/api/server.js +100 -0
  35. package/dist/api/trpc/client.d.ts +19 -3
  36. package/dist/api/trpc/client.d.ts.map +1 -1
  37. package/dist/api/trpc/client.js +55 -1
  38. package/dist/api/trpc/query-client.d.ts +3 -1
  39. package/dist/api/trpc/query-client.d.ts.map +1 -1
  40. package/dist/api/trpc/query-client.js +25 -20
  41. package/dist/api/trpc/root.d.ts +906 -0
  42. package/dist/api/trpc/root.d.ts.map +1 -0
  43. package/dist/api/trpc/root.js +47 -0
  44. package/dist/api/trpc/routers/accountSettings.d.ts +66 -0
  45. package/dist/api/trpc/routers/accountSettings.d.ts.map +1 -0
  46. package/dist/api/trpc/routers/accountSettings.js +200 -0
  47. package/dist/api/trpc/routers/admins.d.ts +112 -0
  48. package/dist/api/trpc/routers/admins.d.ts.map +1 -0
  49. package/dist/api/trpc/routers/admins.js +331 -0
  50. package/dist/api/trpc/routers/auth.d.ts +54 -0
  51. package/dist/api/trpc/routers/auth.d.ts.map +1 -0
  52. package/dist/api/trpc/routers/auth.js +50 -0
  53. package/dist/api/trpc/routers/categorySection.d.ts +105 -0
  54. package/dist/api/trpc/routers/categorySection.d.ts.map +1 -0
  55. package/dist/api/trpc/routers/categorySection.js +49 -0
  56. package/dist/api/trpc/routers/config.d.ts +48 -0
  57. package/dist/api/trpc/routers/config.d.ts.map +1 -0
  58. package/dist/api/trpc/routers/config.js +18 -0
  59. package/dist/api/trpc/routers/cpanel.d.ts +82 -0
  60. package/dist/api/trpc/routers/cpanel.d.ts.map +1 -0
  61. package/dist/api/trpc/routers/cpanel.js +216 -0
  62. package/dist/api/trpc/routers/fields.d.ts +35 -0
  63. package/dist/api/trpc/routers/fields.d.ts.map +1 -0
  64. package/dist/api/trpc/routers/fields.js +81 -0
  65. package/dist/api/trpc/routers/files.d.ts +34 -0
  66. package/dist/api/trpc/routers/files.d.ts.map +1 -0
  67. package/dist/api/trpc/routers/files.js +14 -0
  68. package/dist/api/trpc/routers/gallery.d.ts +35 -0
  69. package/dist/api/trpc/routers/gallery.d.ts.map +1 -0
  70. package/dist/api/trpc/routers/gallery.js +92 -0
  71. package/dist/api/trpc/routers/hasItemsSection.d.ts +194 -0
  72. package/dist/api/trpc/routers/hasItemsSection.d.ts.map +1 -0
  73. package/dist/api/trpc/routers/hasItemsSection.js +86 -0
  74. package/dist/api/trpc/routers/logs.d.ts +59 -0
  75. package/dist/api/trpc/routers/logs.d.ts.map +1 -0
  76. package/dist/api/trpc/routers/logs.js +79 -0
  77. package/dist/api/trpc/routers/navigation.d.ts +65 -0
  78. package/dist/api/trpc/routers/navigation.d.ts.map +1 -0
  79. package/dist/api/trpc/routers/navigation.js +11 -0
  80. package/dist/api/trpc/routers/simpleSection.d.ts +93 -0
  81. package/dist/api/trpc/routers/simpleSection.d.ts.map +1 -0
  82. package/dist/api/trpc/routers/simpleSection.js +54 -0
  83. package/dist/api/trpc/server.d.ts +2789 -5
  84. package/dist/api/trpc/server.d.ts.map +1 -1
  85. package/dist/api/trpc/server.js +91 -52
  86. package/dist/api/trpc/trpc.d.ts +111 -0
  87. package/dist/api/trpc/trpc.d.ts.map +1 -0
  88. package/dist/api/trpc/trpc.js +99 -0
  89. package/dist/api/trpc/utils/async-caller-proxy.d.ts +2 -0
  90. package/dist/api/trpc/utils/async-caller-proxy.d.ts.map +1 -0
  91. package/dist/api/trpc/utils/async-caller-proxy.js +38 -0
  92. package/dist/api/trpc/utils/refresh-token-link.d.ts +6 -0
  93. package/dist/api/trpc/utils/refresh-token-link.d.ts.map +1 -0
  94. package/dist/api/trpc/utils/refresh-token-link.js +81 -0
  95. package/dist/api/trpc/utils/router-types.d.ts +7 -0
  96. package/dist/api/trpc/utils/router-types.d.ts.map +1 -0
  97. package/dist/api/trpc/utils/router-types.js +0 -0
  98. package/dist/api/use-axios-private.d.ts +6 -0
  99. package/dist/api/use-axios-private.d.ts.map +1 -0
  100. package/dist/api/use-axios-private.js +57 -0
  101. package/dist/api/utils/async-caller-proxy.d.ts +2 -0
  102. package/dist/api/utils/async-caller-proxy.d.ts.map +1 -0
  103. package/dist/api/utils/async-caller-proxy.js +36 -0
  104. package/dist/api/utils/lazy-caller-proxy.d.ts +2 -0
  105. package/dist/api/utils/lazy-caller-proxy.d.ts.map +1 -0
  106. package/dist/api/utils/lazy-caller-proxy.js +36 -0
  107. package/dist/api/utils/router-types.d.ts +7 -0
  108. package/dist/api/utils/router-types.d.ts.map +1 -0
  109. package/dist/api/utils/router-types.js +0 -0
  110. package/dist/auth/hooks/index.d.ts +1 -2
  111. package/dist/auth/hooks/index.d.ts.map +1 -1
  112. package/dist/auth/hooks/index.js +1 -2
  113. package/dist/auth/react.d.ts +1 -2
  114. package/dist/auth/react.d.ts.map +1 -1
  115. package/dist/auth/react.js +1 -2
  116. package/dist/auth/trpc.d.ts +1 -1
  117. package/dist/auth/trpc.d.ts.map +1 -1
  118. package/dist/auth/trpc.js +0 -1
  119. package/dist/cli/lib/fix-master-admin.d.ts.map +1 -1
  120. package/dist/cli/lib/fix-master-admin.js +12 -25
  121. package/dist/cli/lib/update-sections.d.ts.map +1 -1
  122. package/dist/cli/lib/update-sections.js +29 -24
  123. package/dist/core/config/config-loader.d.ts +40 -16
  124. package/dist/core/config/config-loader.d.ts.map +1 -1
  125. package/dist/core/config/config-loader.js +58 -10
  126. package/dist/core/config/index.d.ts +1 -1
  127. package/dist/core/config/index.d.ts.map +1 -1
  128. package/dist/core/config/loader-with-jiti.d.ts.map +1 -1
  129. package/dist/core/config/loader-with-jiti.js +13 -12
  130. package/dist/core/factories/section-factory-with-jiti.d.ts.map +1 -1
  131. package/dist/core/factories/section-factory-with-jiti.js +2 -1
  132. package/dist/core/sections/category.d.ts +6 -6
  133. package/dist/core/sections/hasItems.d.ts +6 -6
  134. package/dist/core/sections/section.d.ts +4 -4
  135. package/dist/core/sections/simple.d.ts +2 -2
  136. package/dist/core/types/index.d.ts +17 -0
  137. package/dist/core/types/index.d.ts.map +1 -1
  138. package/dist/index.d.ts +0 -1
  139. package/dist/index.d.ts.map +1 -1
  140. package/dist/index.js +0 -1
  141. package/dist/plugins/client.d.ts +19 -0
  142. package/dist/plugins/client.d.ts.map +1 -0
  143. package/dist/plugins/client.js +24 -0
  144. package/dist/plugins/define.d.ts +6 -0
  145. package/dist/plugins/define.d.ts.map +1 -0
  146. package/dist/plugins/define.js +3 -0
  147. package/dist/plugins/derive.d.ts +32 -0
  148. package/dist/plugins/derive.d.ts.map +1 -0
  149. package/dist/plugins/derive.js +77 -0
  150. package/dist/plugins/index.d.ts +1 -1
  151. package/dist/plugins/index.d.ts.map +1 -1
  152. package/dist/plugins/loader.d.ts +43 -51
  153. package/dist/plugins/loader.d.ts.map +1 -1
  154. package/dist/plugins/loader.js +115 -58
  155. package/dist/plugins/manifest.d.ts +28 -0
  156. package/dist/plugins/manifest.d.ts.map +1 -0
  157. package/dist/plugins/manifest.js +83 -0
  158. package/dist/plugins/prefetch.d.ts +16 -0
  159. package/dist/plugins/prefetch.d.ts.map +1 -0
  160. package/dist/plugins/prefetch.js +40 -0
  161. package/dist/plugins/registry.d.ts +22 -0
  162. package/dist/plugins/registry.d.ts.map +1 -0
  163. package/dist/plugins/registry.js +25 -0
  164. package/dist/plugins/server.d.ts +2 -0
  165. package/dist/plugins/server.d.ts.map +1 -1
  166. package/dist/plugins/server.js +2 -0
  167. package/dist/plugins/types.d.ts +79 -0
  168. package/dist/plugins/types.d.ts.map +1 -0
  169. package/dist/plugins/types.js +0 -0
  170. package/dist/translations/base/en.d.ts +1 -0
  171. package/dist/translations/base/en.d.ts.map +1 -1
  172. package/dist/translations/base/en.js +1 -0
  173. package/dist/translations/client.d.ts +16 -4
  174. package/dist/translations/client.d.ts.map +1 -1
  175. package/dist/translations/server.d.ts +16 -4
  176. package/dist/translations/server.d.ts.map +1 -1
  177. package/dist/utils/console-log.d.ts +18 -0
  178. package/dist/utils/console-log.d.ts.map +1 -0
  179. package/dist/utils/console-log.js +28 -0
  180. package/dist/utils/index.d.ts +1 -0
  181. package/dist/utils/index.d.ts.map +1 -1
  182. package/dist/utils/index.js +1 -0
  183. package/dist/utils/log.d.ts +18 -0
  184. package/dist/utils/log.d.ts.map +1 -0
  185. package/dist/utils/log.js +28 -0
  186. package/dist/validators/index.d.ts +1 -0
  187. package/dist/validators/index.d.ts.map +1 -1
  188. package/dist/validators/index.js +1 -0
  189. package/dist/validators/tags.d.ts +4 -0
  190. package/dist/validators/tags.d.ts.map +1 -0
  191. package/dist/validators/tags.js +8 -0
  192. package/package.json +28 -18
@@ -195,19 +195,36 @@ const cmsConfigSchema = z.object({
195
195
  /**
196
196
  * Arbitrary options passed to the plugin factory
197
197
  */
198
- // options: z.record(z.unknown()).optional(),
198
+ options: z.record(z.string(), z.unknown()).optional(),
199
199
  /**
200
- * Override the plugin's default title with localized strings
200
+ * Config-time overrides for the plugin's authored title/icon and per-route titles.
201
+ *
202
+ * Single-route plugin: `override.title` and `override.icon` set the route's
203
+ * title/icon. `override.routes` is redundant and will be warned about.
204
+ *
205
+ * Multi-route plugin (default `groupRoutes: true`): `override.title`/`icon` set
206
+ * the sidebar group label/icon. Per-route overrides via `override.routes[path]`.
207
+ *
208
+ * Multi-route plugin with `groupRoutes: false`: routes are flattened. Plugin-level
209
+ * `override.title`/`icon` have no effect (warned).
201
210
  */
202
- title: z.union([z.string(), z.record(z.string(), z.string())]).optional(),
203
- /**
204
- * Override individual route titles by path
205
- */
206
- routes: z
207
- .record(z.string(), z.object({
211
+ override: z
212
+ .object({
208
213
  title: z.union([z.string(), z.record(z.string(), z.string())]).optional(),
209
- }))
214
+ icon: z.custom((v) => typeof v === 'string').optional(),
215
+ routes: z
216
+ .record(z.string(), z.object({
217
+ title: z.union([z.string(), z.record(z.string(), z.string())]).optional(),
218
+ icon: z.custom((v) => typeof v === 'string').optional(),
219
+ }))
220
+ .optional(),
221
+ })
210
222
  .optional(),
223
+ /**
224
+ * Whether multi-route plugins render as a collapsible group in the sidebar.
225
+ * Single-route plugins ignore this. Default: `true`.
226
+ */
227
+ groupRoutes: z.boolean().optional(),
211
228
  }))
212
229
  .optional(),
213
230
  /**
@@ -289,7 +306,38 @@ const cmsConfigSchema = z.object({
289
306
  * ```
290
307
  */
291
308
  export function defineConfig(config) {
292
- return config;
309
+ return {
310
+ ...config,
311
+ plugins: normalizePluginConfigInputs(config.plugins),
312
+ };
313
+ }
314
+ function isPluginConfigWithOverrides(input) {
315
+ return typeof input === 'object' && input !== null && 'plugin' in input;
316
+ }
317
+ function isPluginDescriptor(input) {
318
+ return (typeof input === 'object' &&
319
+ input !== null &&
320
+ 'package' in input &&
321
+ 'title' in input &&
322
+ !('plugin' in input));
323
+ }
324
+ function normalizePluginConfigInputs(plugins) {
325
+ return plugins?.map((entry) => {
326
+ if (isPluginConfigWithOverrides(entry)) {
327
+ return {
328
+ package: entry.plugin.package,
329
+ options: entry.options,
330
+ override: entry.override,
331
+ groupRoutes: entry.groupRoutes,
332
+ };
333
+ }
334
+ if (isPluginDescriptor(entry)) {
335
+ return {
336
+ package: entry.package,
337
+ };
338
+ }
339
+ throw new Error('Invalid plugin config entry. Use a plugin descriptor or { plugin: descriptor, ...config }.');
340
+ });
293
341
  }
294
342
  function normalizeI18n(userConfig) {
295
343
  const record = userConfig.i18n?.supportedLanguages;
@@ -1,5 +1,5 @@
1
1
  export { getCMSConfig, AVAILABLE_I18N_LANGUAGES, defineConfig } from './config-loader.js';
2
2
  export { getConfigImportVersion } from './loader.js';
3
- export type { CMSConfig, ComputedCMSConfig, AvailableLanguage } from './config-loader.js';
3
+ export type { AvailableLanguage, CMSConfig, ComputedCMSConfig, PluginConfigEntry, PluginConfigInput, PluginConfigOverride, PluginConfigWithOverrides, PluginRouteOverride, PluginRoutePath, } from './config-loader.js';
4
4
  export type { TranslationDictionary } from '../../translations/types.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACzF,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,YAAY,EACR,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,GAClB,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"loader-with-jiti.d.ts","sourceRoot":"","sources":["../../../src/core/config/loader-with-jiti.ts"],"names":[],"mappings":"AAiDA,eAAO,MAAM,sBAAsB,cAAmC,CAAA;AAsHtE;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,OAAO,CA4BxD,CAAA"}
1
+ {"version":3,"file":"loader-with-jiti.d.ts","sourceRoot":"","sources":["../../../src/core/config/loader-with-jiti.ts"],"names":[],"mappings":"AAoDA,eAAO,MAAM,sBAAsB,cAAmC,CAAA;AAsHtE;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,OAAO,CA4BxD,CAAA"}
@@ -7,11 +7,12 @@
7
7
  // - Still supports JS / CJS / MJS / JSON configs
8
8
  // - Keeps your Node CJS resolve patch for tests (js specifier -> ts fallback)
9
9
  import { existsSync } from 'fs';
10
- import { resolve, join } from 'path';
10
+ import { resolve } from 'path';
11
11
  import chalk from 'chalk';
12
12
  import fs from 'fs';
13
13
  let jitiInstance = null;
14
- const hotMarkerFile = resolve(process.cwd(), 'components/form/helpers/_section-hot-reload.js');
14
+ const hotMarkerFile = resolve(
15
+ /* turbopackIgnore: true */ process.cwd(), 'components/form/helpers/_section-hot-reload.js');
15
16
  const configWatcherState = (() => {
16
17
  const key = Symbol.for('nextjs-cms.configWatcher');
17
18
  const globalAny = globalThis;
@@ -97,7 +98,7 @@ const startConfigWatcher = () => {
97
98
  return;
98
99
  configWatcherState.lastEventAt.set(normalized, now);
99
100
  console.log(chalk.green('Detected config file change, reloading config...'));
100
- const absPath = resolve(cwd, relPath);
101
+ const absPath = resolve(/* turbopackIgnore: true */ cwd, relPath);
101
102
  clearJitiCache(absPath);
102
103
  configWatcherState.version++;
103
104
  await bumpHotMarker();
@@ -108,7 +109,7 @@ const startConfigWatcher = () => {
108
109
  return;
109
110
  configWatcherState.watcher = chokidar.default
110
111
  .watch('cms.config.*', {
111
- cwd,
112
+ cwd: /* turbopackIgnore: true */ cwd,
112
113
  ignoreInitial: true,
113
114
  atomic: true,
114
115
  awaitWriteFinish: {
@@ -125,14 +126,14 @@ const startConfigWatcher = () => {
125
126
  const findConfigFile = () => {
126
127
  const cwd = process.cwd();
127
128
  const candidates = [
128
- 'cms.config.js',
129
- 'cms.config.cjs',
130
- 'cms.config.mjs',
131
- 'cms.config.json',
132
- 'cms.config.ts',
133
- 'cms.config.cts',
134
- 'cms.config.mts',
135
- ].map((f) => resolve(join(cwd, f)));
129
+ resolve(/* turbopackIgnore: true */ cwd, 'cms.config.js'),
130
+ resolve(/* turbopackIgnore: true */ cwd, 'cms.config.cjs'),
131
+ resolve(/* turbopackIgnore: true */ cwd, 'cms.config.mjs'),
132
+ resolve(/* turbopackIgnore: true */ cwd, 'cms.config.json'),
133
+ resolve(/* turbopackIgnore: true */ cwd, 'cms.config.ts'),
134
+ resolve(/* turbopackIgnore: true */ cwd, 'cms.config.cts'),
135
+ resolve(/* turbopackIgnore: true */ cwd, 'cms.config.mts'),
136
+ ];
136
137
  const found = candidates.find((p) => existsSync(p));
137
138
  if (!found) {
138
139
  throw new Error(`Config file not found. Searched: ${candidates.join(', ')}`);
@@ -1 +1 @@
1
- {"version":3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EAAE,CAAA;QACpC,KAAK,EAAE;YACH,EAAE,EAAE,MAAM,CAAA;YACV,YAAY,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;SACjC,CAAA;KACJ,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAKpC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;QAClB,KAAK,EAAE,MAAM,eAAe,GAAG,aAAa,GAAG,eAAe,CAAA;QAC9D,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KACrB,GAAG,eAAe,GAAG,aAAa,GAAG,eAAe;IAYrD;;;;;;;;;OASG;mBACkB,GAAG;IA6FxB;;;;OAIG;mBACkB,eAAe;IA4LpC,OAAO,CAAC,MAAM,CAAC,YAAY;IA6E3B;;;OAGG;IACH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IA+D5C,OAAO,CAAC,MAAM,CAAC,IAAI;CAatB"}
@@ -9,7 +9,8 @@ import { db } from '../../db/client.js';
9
9
  import { AdminPrivilegesTable } from '../../db/schema.js';
10
10
  import { getCMSConfig, getConfigImportVersion } from '../config/index.js';
11
11
  import { collectDuplicateSectionNameReport } from './section-name-validation.js';
12
- const hotMarkerFile = resolve(process.cwd(), 'components/form/helpers/_section-hot-reload.js');
12
+ const hotMarkerFile = resolve(
13
+ /* turbopackIgnore: true */ process.cwd(), 'components/form/helpers/_section-hot-reload.js');
13
14
  const sectionWatcherState = (() => {
14
15
  const key = Symbol.for('nextjs-cms.sectionWatcher');
15
16
  const globalAny = globalThis;