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.
- package/dist/api/actions/pages.d.ts +3 -3
- package/dist/api/trpc/root.d.ts +3 -3
- package/dist/api/trpc/routers/navigation.d.ts +3 -3
- package/dist/api/trpc/server.d.ts +9 -9
- package/dist/cli/lib/update-sections.d.ts.map +1 -1
- package/dist/cli/lib/update-sections.js +217 -59
- package/dist/cli/utils/schema-generator.d.ts.map +1 -1
- package/dist/cli/utils/schema-generator.js +4 -1
- package/dist/core/config/config-loader.d.ts +2 -2
- package/dist/core/fields/date-range.d.ts +4 -4
- package/dist/core/fields/document.d.ts.map +1 -1
- package/dist/core/fields/document.js +13 -1
- package/dist/core/fields/photo.d.ts +6 -6
- package/dist/core/fields/photo.d.ts.map +1 -1
- package/dist/core/fields/photo.js +30 -9
- package/dist/core/fields/richText.d.ts +8 -8
- package/dist/core/fields/select.d.ts +13 -0
- package/dist/core/fields/select.d.ts.map +1 -1
- package/dist/core/fields/select.js +1 -0
- package/dist/core/fields/selectMultiple.d.ts +9 -0
- package/dist/core/fields/selectMultiple.d.ts.map +1 -1
- package/dist/core/fields/selectMultiple.js +1 -0
- package/dist/core/fields/video.d.ts +1 -0
- package/dist/core/fields/video.d.ts.map +1 -1
- package/dist/core/fields/video.js +18 -2
- package/dist/core/sections/category.d.ts +6 -6
- package/dist/core/sections/hasItems.d.ts +12 -12
- package/dist/core/sections/section.d.ts +4 -4
- package/dist/core/sections/simple.d.ts +6 -6
- package/dist/db/schema.d.ts +17 -0
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js +1 -0
- package/dist/translations/base/en.d.ts +6 -0
- package/dist/translations/base/en.d.ts.map +1 -1
- package/dist/translations/base/en.js +6 -0
- package/dist/translations/client.d.ts +76 -4
- package/dist/translations/client.d.ts.map +1 -1
- package/dist/translations/server.d.ts +76 -4
- package/dist/translations/server.d.ts.map +1 -1
- package/dist/validators/document.d.ts.map +1 -1
- package/dist/validators/document.js +2 -1
- package/dist/validators/file-extension.d.ts +3 -0
- package/dist/validators/file-extension.d.ts.map +1 -0
- package/dist/validators/file-extension.js +9 -0
- package/dist/validators/photo.d.ts.map +1 -1
- package/dist/validators/photo.js +2 -1
- package/dist/validators/video.d.ts.map +1 -1
- package/dist/validators/video.js +2 -1
- package/package.json +3 -3
package/dist/db/schema.d.ts
CHANGED
|
@@ -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";
|
package/dist/db/schema.d.ts.map
CHANGED
|
@@ -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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;;;;EAK/B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ5B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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":"
|
|
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',
|