nextjs-cms 0.9.31 → 0.9.33

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 (49) hide show
  1. package/dist/api/actions/pages.d.ts +3 -3
  2. package/dist/api/trpc/root.d.ts +3 -3
  3. package/dist/api/trpc/routers/navigation.d.ts +3 -3
  4. package/dist/api/trpc/server.d.ts +9 -9
  5. package/dist/cli/lib/update-sections.d.ts.map +1 -1
  6. package/dist/cli/lib/update-sections.js +217 -59
  7. package/dist/cli/utils/schema-generator.d.ts.map +1 -1
  8. package/dist/cli/utils/schema-generator.js +4 -1
  9. package/dist/core/config/config-loader.d.ts +2 -2
  10. package/dist/core/fields/date-range.d.ts +4 -4
  11. package/dist/core/fields/document.d.ts.map +1 -1
  12. package/dist/core/fields/document.js +13 -1
  13. package/dist/core/fields/photo.d.ts +6 -6
  14. package/dist/core/fields/photo.d.ts.map +1 -1
  15. package/dist/core/fields/photo.js +30 -9
  16. package/dist/core/fields/richText.d.ts +8 -8
  17. package/dist/core/fields/select.d.ts +13 -0
  18. package/dist/core/fields/select.d.ts.map +1 -1
  19. package/dist/core/fields/select.js +1 -0
  20. package/dist/core/fields/selectMultiple.d.ts +9 -0
  21. package/dist/core/fields/selectMultiple.d.ts.map +1 -1
  22. package/dist/core/fields/selectMultiple.js +1 -0
  23. package/dist/core/fields/video.d.ts +1 -0
  24. package/dist/core/fields/video.d.ts.map +1 -1
  25. package/dist/core/fields/video.js +18 -2
  26. package/dist/core/sections/category.d.ts +6 -6
  27. package/dist/core/sections/hasItems.d.ts +12 -12
  28. package/dist/core/sections/section.d.ts +4 -4
  29. package/dist/core/sections/simple.d.ts +6 -6
  30. package/dist/db/schema.d.ts +17 -0
  31. package/dist/db/schema.d.ts.map +1 -1
  32. package/dist/db/schema.js +1 -0
  33. package/dist/translations/base/en.d.ts +6 -0
  34. package/dist/translations/base/en.d.ts.map +1 -1
  35. package/dist/translations/base/en.js +6 -0
  36. package/dist/translations/client.d.ts +76 -4
  37. package/dist/translations/client.d.ts.map +1 -1
  38. package/dist/translations/server.d.ts +76 -4
  39. package/dist/translations/server.d.ts.map +1 -1
  40. package/dist/validators/document.d.ts.map +1 -1
  41. package/dist/validators/document.js +2 -1
  42. package/dist/validators/file-extension.d.ts +3 -0
  43. package/dist/validators/file-extension.d.ts.map +1 -0
  44. package/dist/validators/file-extension.js +9 -0
  45. package/dist/validators/photo.d.ts.map +1 -1
  46. package/dist/validators/photo.js +2 -1
  47. package/dist/validators/video.d.ts.map +1 -1
  48. package/dist/validators/video.js +2 -1
  49. package/package.json +3 -3
@@ -409,6 +409,23 @@ export declare const NextJsCmsTablesTable: import("drizzle-orm/mysql-core").MySq
409
409
  identity: undefined;
410
410
  generated: undefined;
411
411
  }, {}, {}>;
412
+ config: import("drizzle-orm/mysql-core").MySqlColumn<{
413
+ name: "config";
414
+ tableName: "__nextjs_cms_tables";
415
+ dataType: "string";
416
+ columnType: "MySqlText";
417
+ data: string;
418
+ driverParam: string;
419
+ notNull: false;
420
+ hasDefault: false;
421
+ isPrimaryKey: false;
422
+ isAutoincrement: false;
423
+ hasRuntimeDefault: false;
424
+ enumValues: [string, ...string[]];
425
+ baseColumn: never;
426
+ identity: undefined;
427
+ generated: undefined;
428
+ }, {}, {}>;
412
429
  createdAt: import("drizzle-orm/mysql-core").MySqlColumn<{
413
430
  name: "created_at";
414
431
  tableName: "__nextjs_cms_tables";
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/db/schema.ts"],"names":[],"mappings":"AAYA;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBrB,CAAA"}
package/dist/db/schema.js CHANGED
@@ -48,6 +48,7 @@ export const AccessTokensTable = mysqlTable('access_tokens', {
48
48
  export const NextJsCmsTablesTable = mysqlTable('__nextjs_cms_tables', {
49
49
  tableName: varchar('name', { length: 100 }).primaryKey().notNull(),
50
50
  sectionName: varchar('section', { length: 200 }),
51
+ config: longtext('config'),
51
52
  createdAt: timestamp('created_at').defaultNow().notNull(),
52
53
  });
53
54
  /**
@@ -373,6 +373,12 @@ declare const _default: {
373
373
  readonly categorySections: "Category Sections";
374
374
  readonly sectionsWithItems: "Sections with Items";
375
375
  readonly simpleSections: "Simple Sections";
376
+ readonly pluginError: "Plugin error";
377
+ readonly pluginFailedToLoad: "Plugin failed to load";
378
+ readonly pluginFailedToLoadDescription: "This plugin could not be rendered. Retry the request, or check the server logs if the problem continues.";
379
+ readonly unexpectedPluginError: "An unexpected error occurred while rendering this plugin.";
380
+ readonly errorDigest: "Error digest";
381
+ readonly retry: "Retry";
376
382
  readonly cpanelPluginMisconfigured: "cPanel dashboard plugin misconfigured: missing tRPC client.";
377
383
  readonly loadingCpanelData: "Loading cPanel usage…";
378
384
  readonly unableToLoadCpanelData: "Unable to load cPanel data";
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/translations/base/en.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAqgBU"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/translations/base/en.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA4gBU"}
@@ -373,6 +373,12 @@ export default {
373
373
  categorySections: 'Category Sections',
374
374
  sectionsWithItems: 'Sections with Items',
375
375
  simpleSections: 'Simple Sections',
376
+ pluginError: 'Plugin error',
377
+ pluginFailedToLoad: 'Plugin failed to load',
378
+ pluginFailedToLoadDescription: 'This plugin could not be rendered. Retry the request, or check the server logs if the problem continues.',
379
+ unexpectedPluginError: 'An unexpected error occurred while rendering this plugin.',
380
+ errorDigest: 'Error digest',
381
+ retry: 'Retry',
376
382
  cpanelPluginMisconfigured: 'cPanel dashboard plugin misconfigured: missing tRPC client.',
377
383
  loadingCpanelData: 'Loading cPanel usage…',
378
384
  unableToLoadCpanelData: 'Unable to load cPanel data',