nextjs-cms 0.9.29 → 0.9.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.
Files changed (89) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +279 -279
  3. package/dist/api/actions/pages.d.ts +3 -3
  4. package/dist/api/index.d.ts +974 -1
  5. package/dist/api/index.d.ts.map +1 -1
  6. package/dist/api/index.js +13 -0
  7. package/dist/api/lib/serverActions.d.ts +49 -13
  8. package/dist/api/lib/serverActions.d.ts.map +1 -1
  9. package/dist/api/lib/serverActions.js +31 -103
  10. package/dist/api/root.d.ts +1916 -18
  11. package/dist/api/root.d.ts.map +1 -1
  12. package/dist/api/root.js +83 -18
  13. package/dist/api/routers/config.d.ts.map +1 -1
  14. package/dist/api/routers/gallery.d.ts +0 -1
  15. package/dist/api/routers/gallery.d.ts.map +1 -1
  16. package/dist/api/routers/gallery.js +8 -36
  17. package/dist/api/routers/hasItemsSection.d.ts +30 -5
  18. package/dist/api/routers/hasItemsSection.d.ts.map +1 -1
  19. package/dist/api/routers/navigation.d.ts +3 -3
  20. package/dist/api/routers/simpleSection.d.ts +15 -3
  21. package/dist/api/routers/simpleSection.d.ts.map +1 -1
  22. package/dist/api/trpc/root.d.ts +3 -3
  23. package/dist/api/trpc/root.d.ts.map +1 -1
  24. package/dist/api/trpc/routers/config.d.ts.map +1 -1
  25. package/dist/api/trpc/routers/hasItemsSection.d.ts.map +1 -1
  26. package/dist/api/trpc/routers/navigation.d.ts +3 -3
  27. package/dist/api/trpc/routers/simpleSection.d.ts.map +1 -1
  28. package/dist/api/trpc/server.d.ts +9 -9
  29. package/dist/api/trpc/server.d.ts.map +1 -1
  30. package/dist/auth/trpc.d.ts +1 -1
  31. package/dist/auth/trpc.d.ts.map +1 -1
  32. package/dist/auth/trpc.js +1 -0
  33. package/dist/cli/lib/db-config.js +10 -10
  34. package/dist/cli/lib/update-sections.d.ts.map +1 -1
  35. package/dist/cli/lib/update-sections.js +24 -29
  36. package/dist/core/db/table-checker/MysqlTable.js +10 -10
  37. package/dist/core/factories/section-factory-with-esbuild.js +9 -9
  38. package/dist/core/factories/section-factory-with-jiti.js +9 -9
  39. package/dist/core/fields/dateRange.d.ts +115 -0
  40. package/dist/core/fields/dateRange.d.ts.map +1 -0
  41. package/dist/core/fields/dateRange.js +149 -0
  42. package/dist/core/sections/category.d.ts +42 -42
  43. package/dist/core/sections/hasItems.d.ts +42 -42
  44. package/dist/core/sections/section.d.ts +22 -22
  45. package/dist/core/sections/simple.d.ts +8 -8
  46. package/dist/plugins/derive.d.ts +0 -8
  47. package/dist/plugins/derive.d.ts.map +1 -1
  48. package/dist/plugins/derive.js +0 -32
  49. package/dist/plugins/server.d.ts +1 -1
  50. package/dist/plugins/server.d.ts.map +1 -1
  51. package/dist/plugins/server.js +1 -1
  52. package/dist/translations/client.d.ts +4 -4
  53. package/dist/translations/locale-cookie.d.ts +24 -0
  54. package/dist/translations/locale-cookie.d.ts.map +1 -0
  55. package/dist/translations/locale-cookie.js +44 -0
  56. package/dist/translations/locale-utils.d.ts +8 -0
  57. package/dist/translations/locale-utils.d.ts.map +1 -0
  58. package/dist/translations/locale-utils.js +11 -0
  59. package/dist/translations/localization.d.ts +40 -0
  60. package/dist/translations/localization.d.ts.map +1 -0
  61. package/dist/translations/localization.js +48 -0
  62. package/dist/validators/dateRange.d.ts +11 -0
  63. package/dist/validators/dateRange.d.ts.map +1 -0
  64. package/dist/validators/dateRange.js +16 -0
  65. package/package.json +1 -1
  66. package/dist/api/client.d.ts +0 -30
  67. package/dist/api/client.d.ts.map +0 -1
  68. package/dist/api/client.js +0 -82
  69. package/dist/api/server.d.ts +0 -2748
  70. package/dist/api/server.d.ts.map +0 -1
  71. package/dist/api/server.js +0 -100
  72. package/dist/api/utils/async-caller-proxy.d.ts +0 -2
  73. package/dist/api/utils/async-caller-proxy.d.ts.map +0 -1
  74. package/dist/api/utils/async-caller-proxy.js +0 -36
  75. package/dist/api/utils/lazy-caller-proxy.d.ts +0 -2
  76. package/dist/api/utils/lazy-caller-proxy.d.ts.map +0 -1
  77. package/dist/api/utils/lazy-caller-proxy.js +0 -36
  78. package/dist/api/utils/router-types.d.ts +0 -7
  79. package/dist/api/utils/router-types.d.ts.map +0 -1
  80. package/dist/api/utils/router-types.js +0 -0
  81. package/dist/plugins/manifest.d.ts +0 -28
  82. package/dist/plugins/manifest.d.ts.map +0 -1
  83. package/dist/plugins/manifest.js +0 -83
  84. package/dist/plugins/registry.d.ts +0 -22
  85. package/dist/plugins/registry.d.ts.map +0 -1
  86. package/dist/plugins/registry.js +0 -25
  87. package/dist/utils/log.d.ts +0 -18
  88. package/dist/utils/log.d.ts.map +0 -1
  89. package/dist/utils/log.js +0 -28
@@ -1 +1 @@
1
- {"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../src/api/root.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAcvB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAA;AAI5C,eAAO,MAAM,aAAa,KAAsB,CAAA;AAEhD,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
1
+ {"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../src/api/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAgB5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA8FvB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAwB6gQ,CAAC;;;;;;;;;;;;;;;;;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'./trpc/routers/admins.js';
3
- import { hasItemsSectionRouter } from './trpc/routers/hasItemsSection.js';
4
- import { filesRouter } from './trpc/routers/files.js';
5
- import { authRouter } from './trpc/routers/auth.js';
6
- import { configRouter } from './trpc/routers/config.js';
7
- import { navRouter } from './trpc/routers/navigation.js';
8
- import { simpleSectionRouter } from './trpc/routers/simpleSection.js';
9
- import { categorySectionRouter } from './trpc/routers/categorySection.js';
10
- import { accountSettings } from './trpc/routers/accountSettings.js';
11
- import { galleryRouter } from './trpc/routers/gallery.js';
12
- import { logsRouter } from './trpc/routers/logs.js';
13
- import { fieldsRouter } from './trpc/routers/fields.js';
14
- import { getPluginRoutes } from '../plugins/loader.js';
1
+ import { createCallerFactory, privateProcedure, router } from './trpc.js';
2
+ import { adminsRouter } from './routers/admins.js';
3
+ import { hasItemsSectionRouter } from './routers/hasItemsSection.js';
4
+ import { filesRouter } from './routers/files.js';
5
+ import { authRouter } from './routers/auth.js';
6
+ import { configRouter } from './routers/config.js';
7
+ import { navRouter } from './routers/navigation.js';
8
+ import { simpleSectionRouter } from './routers/simpleSection.js';
9
+ import { categorySectionRouter } from './routers/categorySection.js';
10
+ import { accountSettings } from './routers/accountSettings.js';
11
+ import { galleryRouter } from './routers/gallery.js';
12
+ import { logsRouter } from './routers/logs.js';
13
+ import { fieldsRouter } from './routers/fields.js';
14
+ import { getConfigImportVersion } from '../core/config/index.js';
15
+ import { getPluginRoutes, loadPlugins } from '../plugins/loader.js';
15
16
  import { z } from 'zod';
16
17
  import { getAdminPrivileges } from './lib/serverActions.js';
18
+ async function getPluginRouters() {
19
+ const loadedPlugins = await loadPlugins();
20
+ return loadedPlugins.reduce((acc, current) => {
21
+ if (current.plugin.router) {
22
+ acc[current.routerKey] = current.plugin.router;
23
+ }
24
+ return acc;
25
+ }, {});
26
+ }
17
27
  const pluginsRouter = router({
18
28
  checkRoute: privateProcedure
19
29
  .input(z.object({
@@ -30,7 +40,7 @@ const pluginsRouter = router({
30
40
  return plugin;
31
41
  }),
32
42
  });
33
- export const coreRouters = {
43
+ const coreRouters = {
34
44
  auth: authRouter,
35
45
  admins: adminsRouter,
36
46
  config: configRouter,
@@ -45,6 +55,61 @@ export const coreRouters = {
45
55
  logs: logsRouter,
46
56
  plugins: pluginsRouter,
47
57
  };
48
- // Core-only router used for package-level type helpers.
49
- // App-owned routers should be created with createTRPCRouter().
50
- export const coreAppRouter = router(coreRouters);
58
+ // Lazy router creation - cache the result
59
+ let _appRouter = null;
60
+ let routerInitPromise = null;
61
+ let appRouterConfigVersion = -1;
62
+ async function createAppRouterWithPlugins() {
63
+ const currentVersion = getConfigImportVersion();
64
+ if (appRouterConfigVersion !== currentVersion) {
65
+ _appRouter = null;
66
+ routerInitPromise = null;
67
+ }
68
+ if (_appRouter) {
69
+ return _appRouter;
70
+ }
71
+ if (routerInitPromise) {
72
+ return routerInitPromise;
73
+ }
74
+ routerInitPromise = (async () => {
75
+ const pluginRouters = await getPluginRouters();
76
+ const safePluginRouters = Object.entries(pluginRouters).reduce((acc, [key, pluginRouter]) => {
77
+ if (key in coreRouters) {
78
+ console.error(`[plugins] Router key "${key}" conflicts with a core router. Skipping.`);
79
+ return acc;
80
+ }
81
+ acc[key] = pluginRouter;
82
+ return acc;
83
+ }, {});
84
+ const routerInstance = router({
85
+ ...coreRouters,
86
+ ...safePluginRouters,
87
+ });
88
+ _appRouter = routerInstance;
89
+ appRouterConfigVersion = currentVersion;
90
+ return routerInstance;
91
+ })();
92
+ return routerInitPromise;
93
+ }
94
+ // Create router synchronously with core routes only
95
+ // This allows the module to load without top-level await
96
+ // NOTE: Plugin routes will not be available until plugins are loaded
97
+ // For now, we export the core router. Plugin routes should be added
98
+ // via the plugins router's list/routes procedures
99
+ export const appRouter = router(coreRouters);
100
+ // Start loading plugins in the background (non-blocking)
101
+ // Plugin routes can be accessed through the plugins.list/routes procedures
102
+ createAppRouterWithPlugins().catch((error) => {
103
+ console.error('Failed to load plugins for router:', error);
104
+ });
105
+ // Export a function to get the full router with plugins
106
+ // This should be used in server contexts where async is allowed
107
+ export async function getAppRouter() {
108
+ return createAppRouterWithPlugins();
109
+ }
110
+ export async function createCallerWithPlugins(ctx) {
111
+ const routerWithPlugins = await getAppRouter();
112
+ return routerWithPlugins.createCaller(ctx);
113
+ }
114
+ // createCaller factory
115
+ export const createCaller = createCallerFactory(appRouter);
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/api/routers/config.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAaozZ,CAAC;;;;;;GAD50Z,CAAA"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/api/routers/config.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAa4sY,CAAC;;;;;;GADpuY,CAAA"}
@@ -26,7 +26,6 @@ export declare const galleryRouter: import("@trpc/server").TRPCBuiltRouter<{
26
26
  sectionName: string;
27
27
  photoName: string;
28
28
  referenceId: string;
29
- locale?: string | undefined;
30
29
  };
31
30
  output: boolean;
32
31
  meta: object;
@@ -1 +1 @@
1
- {"version":3,"file":"gallery.d.ts","sourceRoot":"","sources":["../../../src/api/routers/gallery.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAUxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FxB,CAAA"}
1
+ {"version":3,"file":"gallery.d.ts","sourceRoot":"","sources":["../../../src/api/routers/gallery.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAWxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DxB,CAAA"}
@@ -1,26 +1,23 @@
1
+ import { privateProcedure, router } from '../trpc.js';
2
+ import * as z from 'zod';
1
3
  import fs from 'fs';
2
4
  import path from 'path';
5
+ import { SectionFactory } from '../../core/factories/index.js';
3
6
  import { TRPCError } from '@trpc/server';
7
+ import getString from '../../translations/index.js';
8
+ import { db } from '../../db/client.js';
4
9
  import { sql } from 'drizzle-orm';
5
- import * as z from 'zod';
6
- import { getCMSConfig } from '../../core/config/index.js';
7
10
  import { MysqlTableChecker } from '../../core/db/index.js';
8
- import { SectionFactory } from '../../core/factories/index.js';
9
- import { resolveLocale } from '../../core/localization/index.js';
10
- import { db } from '../../db/client.js';
11
- import getString from '../../translations/index.js';
12
- import { privateProcedure, router } from '../trpc.js';
11
+ import { getCMSConfig } from '../../core/config/index.js';
13
12
  export const galleryRouter = router({
14
13
  deletePhoto: privateProcedure
15
14
  .input(z.object({
16
15
  sectionName: z.string(),
17
16
  photoName: z.string(),
18
17
  referenceId: z.string(),
19
- locale: z.string().optional(),
20
18
  }))
21
19
  .mutation(async ({ ctx, input }) => {
22
- const cmsConfig = await getCMSConfig();
23
- const uploadsFolder = cmsConfig.media.upload.path;
20
+ const uploadsFolder = (await getCMSConfig()).media.upload.path;
24
21
  /**
25
22
  * Get the section information
26
23
  */
@@ -46,32 +43,7 @@ export const galleryRouter = router({
46
43
  const columns = await MysqlTableChecker.getColumns(gallery.db.tableName);
47
44
  if (columns.includes(gallery.db.photoNameField) &&
48
45
  columns.includes(gallery.db.referenceIdentifierField)) {
49
- const galleryIsLocalized = gallery.localized === true && cmsConfig.localization?.enabled === true;
50
- if (galleryIsLocalized) {
51
- const localeResult = resolveLocale({
52
- localization: cmsConfig.localization,
53
- locale: input.locale,
54
- });
55
- if (!input.locale || !localeResult.resolvedLocale) {
56
- throw new TRPCError({
57
- code: 'BAD_REQUEST',
58
- message: getString('invalidLocale', ctx.session.user.language, {
59
- locale: input.locale ?? '',
60
- locales: localeResult.availableLocales.map((l) => l.code).join(', '),
61
- }),
62
- });
63
- }
64
- if (!columns.includes('locale')) {
65
- throw new TRPCError({
66
- code: 'BAD_REQUEST',
67
- message: getString('galleryTableNotSetUp', ctx.session.user.language),
68
- });
69
- }
70
- await db.execute(sql `DELETE FROM ${sql.raw(gallery.db.tableName)} WHERE ${sql.raw(gallery.db.photoNameField)} = ${input.photoName} AND ${sql.raw(gallery.db.referenceIdentifierField)} = ${input.referenceId} AND \`locale\` = ${localeResult.resolvedLocale.code}`);
71
- }
72
- else {
73
- await db.execute(sql `DELETE FROM ${sql.raw(gallery.db.tableName)} WHERE ${sql.raw(gallery.db.photoNameField)} = ${input.photoName} AND ${sql.raw(gallery.db.referenceIdentifierField)} = ${input.referenceId}`);
74
- }
46
+ await db.execute(sql `DELETE FROM ${sql.raw(gallery.db.tableName)} WHERE ${sql.raw(gallery.db.photoNameField)} = ${input.photoName} AND ${sql.raw(gallery.db.referenceIdentifierField)} = ${input.referenceId}`);
75
47
  }
76
48
  }
77
49
  /**
@@ -72,7 +72,21 @@ export declare const hasItemsSectionRouter: import("@trpc/server").TRPCBuiltRout
72
72
  singular: string;
73
73
  plural: string;
74
74
  };
75
- gallery: import("../../index.js").SectionGallery | undefined;
75
+ gallery: {
76
+ db: {
77
+ tableName: string;
78
+ referenceIdentifierField: string;
79
+ photoNameField: string;
80
+ metaField: string;
81
+ };
82
+ watermark?: boolean;
83
+ thumbnail?: {
84
+ width: number;
85
+ height: number;
86
+ fit: "cover" | "contain";
87
+ quality: number;
88
+ };
89
+ } | undefined;
76
90
  variants: import("../../core/types/index.js").Variant[] | undefined;
77
91
  configFile: string;
78
92
  };
@@ -115,7 +129,21 @@ export declare const hasItemsSectionRouter: import("@trpc/server").TRPCBuiltRout
115
129
  singular: string;
116
130
  plural: string;
117
131
  };
118
- gallery: import("../../index.js").SectionGallery | undefined;
132
+ gallery: {
133
+ db: {
134
+ tableName: string;
135
+ referenceIdentifierField: string;
136
+ photoNameField: string;
137
+ metaField: string;
138
+ };
139
+ watermark?: boolean;
140
+ thumbnail?: {
141
+ width: number;
142
+ height: number;
143
+ fit: "cover" | "contain";
144
+ quality: number;
145
+ };
146
+ } | undefined;
119
147
  variants: import("../../core/types/index.js").Variant[] | undefined;
120
148
  configFile: string;
121
149
  };
@@ -139,7 +167,6 @@ export declare const hasItemsSectionRouter: import("@trpc/server").TRPCBuiltRout
139
167
  referenceId: string;
140
168
  photo: string;
141
169
  meta: any;
142
- locale?: string;
143
170
  }[];
144
171
  localization: {
145
172
  defaultLocale: {
@@ -158,8 +185,6 @@ export declare const hasItemsSectionRouter: import("@trpc/server").TRPCBuiltRout
158
185
  label: string;
159
186
  rtl?: boolean;
160
187
  }[];
161
- localeSwitcherEnabled: boolean;
162
- developerNoteEnabled: boolean;
163
188
  } | null;
164
189
  error?: undefined;
165
190
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"hasItemsSection.d.ts","sourceRoot":"","sources":["../../../src/api/routers/hasItemsSection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAcxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAwG+53C,CAAC;;;;;uBAAyE,CAAC;;;;;;uBAA8G,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GADzn4C,CAAA"}
1
+ {"version":3,"file":"hasItemsSection.d.ts","sourceRoot":"","sources":["../../../src/api/routers/hasItemsSection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAcxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAwGykwC,CAAC;;;;;uBAAyE,CAAC;;;;;;uBAA8G,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GADnywC,CAAA"}