nextjs-cms 0.9.35 → 0.9.37
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 +43 -10
- package/dist/core/config/config-loader.d.ts +2 -2
- package/dist/core/fields/date-range.d.ts +4 -4
- package/dist/core/fields/slug.d.ts +55 -3
- package/dist/core/fields/slug.d.ts.map +1 -1
- package/dist/core/fields/slug.js +56 -2
- package/dist/core/sections/category.d.ts +4 -4
- package/dist/core/sections/hasItems.d.ts +4 -4
- package/dist/core/sections/section.d.ts +3 -3
- package/dist/core/sections/simple.d.ts +4 -4
- package/dist/core/submit/ItemEditSubmit.js +5 -5
- package/dist/translations/base/en.d.ts +3 -0
- package/dist/translations/base/en.d.ts.map +1 -1
- package/dist/translations/base/en.js +3 -0
- package/dist/translations/client.d.ts +40 -4
- package/dist/translations/client.d.ts.map +1 -1
- package/dist/translations/server.d.ts +40 -4
- package/dist/translations/server.d.ts.map +1 -1
- package/package.json +6 -3
- package/dist/api/axios/axiosInstance.d.ts +0 -2
- package/dist/api/axios/axiosInstance.d.ts.map +0 -1
- package/dist/api/axios/axiosInstance.js +0 -8
- package/dist/api/client.d.ts +0 -30
- package/dist/api/client.d.ts.map +0 -1
- package/dist/api/client.js +0 -82
- package/dist/api/index.d.ts +0 -2
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js +0 -0
- package/dist/api/lib/serverActions.d.ts +0 -338
- package/dist/api/lib/serverActions.d.ts.map +0 -1
- package/dist/api/lib/serverActions.js +0 -1517
- package/dist/api/root.d.ts +0 -19
- package/dist/api/root.d.ts.map +0 -1
- package/dist/api/root.js +0 -50
- package/dist/api/routers/accountSettings.d.ts +0 -66
- package/dist/api/routers/accountSettings.d.ts.map +0 -1
- package/dist/api/routers/accountSettings.js +0 -202
- package/dist/api/routers/admins.d.ts +0 -112
- package/dist/api/routers/admins.d.ts.map +0 -1
- package/dist/api/routers/admins.js +0 -323
- package/dist/api/routers/auth.d.ts +0 -54
- package/dist/api/routers/auth.d.ts.map +0 -1
- package/dist/api/routers/auth.js +0 -50
- package/dist/api/routers/categorySection.d.ts +0 -105
- package/dist/api/routers/categorySection.d.ts.map +0 -1
- package/dist/api/routers/categorySection.js +0 -49
- package/dist/api/routers/config.d.ts +0 -48
- package/dist/api/routers/config.d.ts.map +0 -1
- package/dist/api/routers/config.js +0 -18
- package/dist/api/routers/cpanel.d.ts +0 -82
- package/dist/api/routers/cpanel.d.ts.map +0 -1
- package/dist/api/routers/cpanel.js +0 -216
- package/dist/api/routers/fields.d.ts +0 -35
- package/dist/api/routers/fields.d.ts.map +0 -1
- package/dist/api/routers/fields.js +0 -81
- package/dist/api/routers/files.d.ts +0 -34
- package/dist/api/routers/files.d.ts.map +0 -1
- package/dist/api/routers/files.js +0 -14
- package/dist/api/routers/gallery.d.ts +0 -35
- package/dist/api/routers/gallery.d.ts.map +0 -1
- package/dist/api/routers/gallery.js +0 -92
- package/dist/api/routers/hasItemsSection.d.ts +0 -194
- package/dist/api/routers/hasItemsSection.d.ts.map +0 -1
- package/dist/api/routers/hasItemsSection.js +0 -86
- package/dist/api/routers/logs.d.ts +0 -59
- package/dist/api/routers/logs.d.ts.map +0 -1
- package/dist/api/routers/logs.js +0 -76
- package/dist/api/routers/navigation.d.ts +0 -50
- package/dist/api/routers/navigation.d.ts.map +0 -1
- package/dist/api/routers/navigation.js +0 -11
- package/dist/api/routers/simpleSection.d.ts +0 -93
- package/dist/api/routers/simpleSection.d.ts.map +0 -1
- package/dist/api/routers/simpleSection.js +0 -54
- package/dist/api/server.d.ts +0 -2748
- package/dist/api/server.d.ts.map +0 -1
- package/dist/api/server.js +0 -100
- package/dist/api/trpc/error-logging.d.ts +0 -14
- package/dist/api/trpc/error-logging.d.ts.map +0 -1
- package/dist/api/trpc/error-logging.js +0 -75
- package/dist/api/trpc.d.ts +0 -111
- package/dist/api/trpc.d.ts.map +0 -1
- package/dist/api/trpc.js +0 -99
- package/dist/api/utils/async-caller-proxy.d.ts +0 -2
- package/dist/api/utils/async-caller-proxy.d.ts.map +0 -1
- package/dist/api/utils/async-caller-proxy.js +0 -36
- package/dist/api/utils/lazy-caller-proxy.d.ts +0 -2
- package/dist/api/utils/lazy-caller-proxy.d.ts.map +0 -1
- package/dist/api/utils/lazy-caller-proxy.js +0 -36
- package/dist/api/utils/router-types.d.ts +0 -7
- package/dist/api/utils/router-types.d.ts.map +0 -1
- package/dist/api/utils/router-types.js +0 -0
- package/dist/auth/axios/axiosInstance.d.ts +0 -2
- package/dist/auth/axios/axiosInstance.d.ts.map +0 -1
- package/dist/auth/axios/axiosInstance.js +0 -8
- package/dist/auth/hooks/useAxiosPrivate.d.ts +0 -5
- package/dist/auth/hooks/useAxiosPrivate.d.ts.map +0 -1
- package/dist/auth/hooks/useAxiosPrivate.js +0 -74
- package/dist/auth/trpc.d.ts +0 -6
- package/dist/auth/trpc.d.ts.map +0 -1
- package/dist/auth/trpc.js +0 -81
- package/dist/plugins/manifest.d.ts +0 -28
- package/dist/plugins/manifest.d.ts.map +0 -1
- package/dist/plugins/manifest.js +0 -83
- package/dist/plugins/registry.d.ts +0 -22
- package/dist/plugins/registry.d.ts.map +0 -1
- package/dist/plugins/registry.js +0 -25
- package/dist/utils/log.d.ts +0 -18
- package/dist/utils/log.d.ts.map +0 -1
- package/dist/utils/log.js +0 -28
|
@@ -133,11 +133,11 @@ export class EditSubmit extends Submit {
|
|
|
133
133
|
if (field.type === 'select_multiple') {
|
|
134
134
|
return await this.getSelectMultipleValue(field);
|
|
135
135
|
}
|
|
136
|
-
return this._values[field.name] ?? undefined;
|
|
136
|
+
return this._values?.[field.name] ?? undefined;
|
|
137
137
|
}
|
|
138
138
|
async getSelectMultipleValue(field) {
|
|
139
139
|
if (!field.destinationDb)
|
|
140
|
-
return this._values[field.name] ?? undefined;
|
|
140
|
+
return this._values?.[field.name] ?? undefined;
|
|
141
141
|
if (field.db) {
|
|
142
142
|
/**
|
|
143
143
|
* field.db is available (db or section options) — JOIN the options table
|
|
@@ -239,7 +239,7 @@ export class EditSubmit extends Submit {
|
|
|
239
239
|
*/
|
|
240
240
|
checkRequired(field) {
|
|
241
241
|
if (is(field, FileField)) {
|
|
242
|
-
if (!this._values[field.name]) {
|
|
242
|
+
if (!this._values?.[field.name]) {
|
|
243
243
|
field.checkRequired();
|
|
244
244
|
}
|
|
245
245
|
}
|
|
@@ -300,7 +300,7 @@ export class EditSubmit extends Submit {
|
|
|
300
300
|
isFileMarkedForRemoval(field) {
|
|
301
301
|
if (field.required)
|
|
302
302
|
return false;
|
|
303
|
-
return this.getRemovedFiles().some((removed) => removed.fieldName === field.name && removed.fileName === this._values[field.name]);
|
|
303
|
+
return this.getRemovedFiles().some((removed) => removed.fieldName === field.name && removed.fileName === this._values?.[field.name]);
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
306
|
* Set field value override
|
|
@@ -330,7 +330,7 @@ export class EditSubmit extends Submit {
|
|
|
330
330
|
field.setValue(value);
|
|
331
331
|
}
|
|
332
332
|
else {
|
|
333
|
-
field.setFileName(this._values[field.name]);
|
|
333
|
+
field.setFileName(this._values?.[field.name] ?? '');
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
else {
|
|
@@ -84,6 +84,7 @@ declare const _default: {
|
|
|
84
84
|
readonly profilePhotoChanged: "Profile photo changed";
|
|
85
85
|
readonly profilePhotoChangedError: "Error changing profile photo";
|
|
86
86
|
readonly error: "Error";
|
|
87
|
+
readonly important: "Important";
|
|
87
88
|
readonly about: "About";
|
|
88
89
|
readonly aboutText: "Get to know the academy and Dr. Salam Asaad";
|
|
89
90
|
readonly profile: "Profile";
|
|
@@ -463,6 +464,7 @@ declare const _default: {
|
|
|
463
464
|
readonly searchDots: "Search...";
|
|
464
465
|
readonly noItemFound: "No item found";
|
|
465
466
|
readonly searchOptionsDots: "Search options...";
|
|
467
|
+
readonly revert: "Revert";
|
|
466
468
|
readonly availableOptions: "Available options";
|
|
467
469
|
readonly searchThroughOptions: "Search through available options";
|
|
468
470
|
readonly filterOptionsHint: "Type to filter options. Use arrow keys to navigate results.";
|
|
@@ -472,6 +474,7 @@ declare const _default: {
|
|
|
472
474
|
readonly logo: "Logo";
|
|
473
475
|
readonly newImage: "New image";
|
|
474
476
|
readonly autoGeneratedFromLinkedField: "Auto-generated from linked field";
|
|
477
|
+
readonly slugChangeWarning: "Changing this slug may affect places where this item is already referenced. For example, existing shared URLs, links, redirects, integrations, or saved bookmarks may stop pointing to the expected item.";
|
|
475
478
|
readonly clear: "Clear";
|
|
476
479
|
readonly close: "Close";
|
|
477
480
|
readonly clearAllSelectedOptions: "Clear all {count} selected options";
|
|
@@ -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,wBAghBU"}
|
|
@@ -84,6 +84,7 @@ export default {
|
|
|
84
84
|
profilePhotoChanged: 'Profile photo changed',
|
|
85
85
|
profilePhotoChangedError: 'Error changing profile photo',
|
|
86
86
|
error: 'Error',
|
|
87
|
+
important: 'Important',
|
|
87
88
|
about: 'About',
|
|
88
89
|
aboutText: 'Get to know the academy and Dr. Salam Asaad',
|
|
89
90
|
profile: 'Profile',
|
|
@@ -477,6 +478,7 @@ export default {
|
|
|
477
478
|
searchDots: 'Search...',
|
|
478
479
|
noItemFound: 'No item found',
|
|
479
480
|
searchOptionsDots: 'Search options...',
|
|
481
|
+
revert: 'Revert',
|
|
480
482
|
availableOptions: 'Available options',
|
|
481
483
|
searchThroughOptions: 'Search through available options',
|
|
482
484
|
filterOptionsHint: 'Type to filter options. Use arrow keys to navigate results.',
|
|
@@ -486,6 +488,7 @@ export default {
|
|
|
486
488
|
logo: 'Logo',
|
|
487
489
|
newImage: 'New image',
|
|
488
490
|
autoGeneratedFromLinkedField: 'Auto-generated from linked field',
|
|
491
|
+
slugChangeWarning: 'Changing this slug may affect places where this item is already referenced. For example, existing shared URLs, links, redirects, integrations, or saved bookmarks may stop pointing to the expected item.',
|
|
489
492
|
clear: 'Clear',
|
|
490
493
|
close: 'Close',
|
|
491
494
|
clearAllSelectedOptions: 'Clear all {count} selected options',
|