@sonicjs-cms/core 2.8.3 → 2.10.0
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/{app-DnQ26Lho.d.cts → app-Ozl9agJG.d.cts} +1 -1
- package/dist/{app-DnQ26Lho.d.ts → app-Ozl9agJG.d.ts} +1 -1
- package/dist/{chunk-YFJJU26H.js → chunk-27AOVQTR.js} +10 -2
- package/dist/chunk-27AOVQTR.js.map +1 -0
- package/dist/{chunk-Y3VMEGY2.js → chunk-4TTMQQC7.js} +4 -4
- package/dist/{chunk-Y3VMEGY2.js.map → chunk-4TTMQQC7.js.map} +1 -1
- package/dist/{chunk-VNLR35GO.cjs → chunk-64APW3DW.cjs} +339 -2
- package/dist/chunk-64APW3DW.cjs.map +1 -0
- package/dist/{chunk-GTFMI24U.js → chunk-6O3RJV3C.js} +2 -2
- package/dist/{chunk-GTFMI24U.js.map → chunk-6O3RJV3C.js.map} +1 -1
- package/dist/{chunk-G44QUVNM.js → chunk-7JMMLHPQ.js} +337 -4
- package/dist/chunk-7JMMLHPQ.js.map +1 -0
- package/dist/chunk-CJYFSKH7.js +54 -54
- package/dist/chunk-CJYFSKH7.js.map +1 -1
- package/dist/{chunk-JDIM5AG7.cjs → chunk-EKPLKUZT.cjs} +11 -5
- package/dist/chunk-EKPLKUZT.cjs.map +1 -0
- package/dist/{chunk-MPT5PA6U.cjs → chunk-IIBRG5S5.cjs} +10 -2
- package/dist/chunk-IIBRG5S5.cjs.map +1 -0
- package/dist/{chunk-K4Q4SFJJ.cjs → chunk-IT2TC4ZD.cjs} +7 -7
- package/dist/{chunk-K4Q4SFJJ.cjs.map → chunk-IT2TC4ZD.cjs.map} +1 -1
- package/dist/{chunk-5XAI2XUF.js → chunk-IZWNIUJI.js} +11 -5
- package/dist/chunk-IZWNIUJI.js.map +1 -0
- package/dist/{chunk-CH5UHZVM.js → chunk-JTNUM7JE.js} +1218 -442
- package/dist/chunk-JTNUM7JE.js.map +1 -0
- package/dist/chunk-MNFY6DWY.cjs +54 -54
- package/dist/chunk-MNFY6DWY.cjs.map +1 -1
- package/dist/{chunk-R4WR3VTN.cjs → chunk-RCA6R6VE.cjs} +1329 -553
- package/dist/chunk-RCA6R6VE.cjs.map +1 -0
- package/dist/{chunk-HXHVU5GM.cjs → chunk-ZMVWMJ3S.cjs} +2 -2
- package/dist/{chunk-HXHVU5GM.cjs.map → chunk-ZMVWMJ3S.cjs.map} +1 -1
- package/dist/{collection-config-i8EaAF7z.d.cts → collection-config-B4PG-AaF.d.cts} +4 -2
- package/dist/{collection-config-i8EaAF7z.d.ts → collection-config-B4PG-AaF.d.ts} +4 -2
- package/dist/{filter-bar.template-Daw8ZDoq.d.cts → filter-bar.template-DlVYMk-T.d.cts} +1 -1
- package/dist/{filter-bar.template-Daw8ZDoq.d.ts → filter-bar.template-DlVYMk-T.d.ts} +1 -1
- package/dist/index.cjs +142 -141
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +29 -29
- package/dist/middleware.d.cts +1 -1
- package/dist/middleware.d.ts +1 -1
- package/dist/middleware.js +3 -3
- package/dist/migrations-N2C2VPJU.js +4 -0
- package/dist/{migrations-KHWFJ2HN.js.map → migrations-N2C2VPJU.js.map} +1 -1
- package/dist/migrations-ONIAY6GK.cjs +13 -0
- package/dist/{migrations-7X4RPH7O.cjs.map → migrations-ONIAY6GK.cjs.map} +1 -1
- package/dist/{plugin-zvZpaiP5.d.cts → plugin-0Xogrln-.d.cts} +1 -1
- package/dist/{plugin-zvZpaiP5.d.ts → plugin-0Xogrln-.d.ts} +1 -1
- package/dist/{plugin-bootstrap-CJozpgmI.d.cts → plugin-bootstrap-WmpvYM5w.d.ts} +2 -2
- package/dist/{plugin-bootstrap-DU5VmuHZ.d.ts → plugin-bootstrap-fpG98Otb.d.cts} +2 -2
- package/dist/{plugin-manager-Baa6xXqB.d.ts → plugin-manager-Clf2gXwj.d.ts} +2 -2
- package/dist/{plugin-manager-vBal9Zip.d.cts → plugin-manager-GcIeb226.d.cts} +2 -2
- package/dist/plugins.d.cts +2 -2
- package/dist/plugins.d.ts +2 -2
- package/dist/routes.cjs +29 -29
- package/dist/routes.d.cts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +6 -6
- package/dist/services.cjs +44 -28
- package/dist/services.d.cts +29 -4
- package/dist/services.d.ts +29 -4
- package/dist/services.js +3 -3
- package/dist/{telemetry-UiD1i9GS.d.cts → telemetry-B9vIV4wh.d.cts} +1 -1
- package/dist/{telemetry-UiD1i9GS.d.ts → telemetry-B9vIV4wh.d.ts} +1 -1
- package/dist/templates.d.cts +1 -1
- package/dist/templates.d.ts +1 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/utils.cjs +11 -11
- package/dist/utils.d.cts +3 -3
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +1 -1
- package/dist/{version-C_CXrN_T.d.cts → version-ChpccWQ1.d.cts} +1 -1
- package/dist/{version-C_CXrN_T.d.ts → version-ChpccWQ1.d.ts} +1 -1
- package/package.json +9 -3
- package/dist/chunk-5XAI2XUF.js.map +0 -1
- package/dist/chunk-CH5UHZVM.js.map +0 -1
- package/dist/chunk-G44QUVNM.js.map +0 -1
- package/dist/chunk-JDIM5AG7.cjs.map +0 -1
- package/dist/chunk-MPT5PA6U.cjs.map +0 -1
- package/dist/chunk-R4WR3VTN.cjs.map +0 -1
- package/dist/chunk-VNLR35GO.cjs.map +0 -1
- package/dist/chunk-YFJJU26H.js.map +0 -1
- package/dist/migrations-7X4RPH7O.cjs +0 -13
- package/dist/migrations-KHWFJ2HN.js +0 -4
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* These types define the structure for collection configuration files.
|
|
5
5
|
* Collections can be defined in TypeScript/JSON files and synced to the database.
|
|
6
6
|
*/
|
|
7
|
-
type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'email' | 'url' | 'richtext' | 'markdown' | 'json' | 'array' | 'object' | 'reference' | 'media' | 'select' | 'multiselect' | 'checkbox' | 'radio' | 'textarea' | 'slug' | 'color' | 'file' | 'tinymce' | 'quill' | 'easymde';
|
|
7
|
+
type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'email' | 'url' | 'richtext' | 'markdown' | 'mdxeditor' | 'easymde' | 'quill' | 'tinymce' | 'json' | 'array' | 'object' | 'reference' | 'media' | 'select' | 'multiselect' | 'checkbox' | 'radio' | 'textarea' | 'slug' | 'color' | 'file' | 'tinymce' | 'quill' | 'easymde';
|
|
8
8
|
interface BlockDefinition {
|
|
9
9
|
label?: string;
|
|
10
10
|
description?: string;
|
|
@@ -32,6 +32,8 @@ interface FieldConfig {
|
|
|
32
32
|
properties?: Record<string, FieldConfig>;
|
|
33
33
|
blocks?: BlockDefinitions;
|
|
34
34
|
discriminator?: string;
|
|
35
|
+
collapsed?: boolean;
|
|
36
|
+
objectLayout?: 'nested' | 'flat';
|
|
35
37
|
format?: string;
|
|
36
38
|
widget?: string;
|
|
37
39
|
dependsOn?: string;
|
|
@@ -113,4 +115,4 @@ interface CollectionSyncResult {
|
|
|
113
115
|
error?: string;
|
|
114
116
|
}
|
|
115
117
|
|
|
116
|
-
export type { BlockDefinition as B,
|
|
118
|
+
export type { BlockDefinition as B, CollectionConfig as C, FieldConfig as F, BlockDefinitions as a, CollectionConfigModule as b, CollectionSchema as c, CollectionSyncResult as d, FieldType as e };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* These types define the structure for collection configuration files.
|
|
5
5
|
* Collections can be defined in TypeScript/JSON files and synced to the database.
|
|
6
6
|
*/
|
|
7
|
-
type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'email' | 'url' | 'richtext' | 'markdown' | 'json' | 'array' | 'object' | 'reference' | 'media' | 'select' | 'multiselect' | 'checkbox' | 'radio' | 'textarea' | 'slug' | 'color' | 'file' | 'tinymce' | 'quill' | 'easymde';
|
|
7
|
+
type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'email' | 'url' | 'richtext' | 'markdown' | 'mdxeditor' | 'easymde' | 'quill' | 'tinymce' | 'json' | 'array' | 'object' | 'reference' | 'media' | 'select' | 'multiselect' | 'checkbox' | 'radio' | 'textarea' | 'slug' | 'color' | 'file' | 'tinymce' | 'quill' | 'easymde';
|
|
8
8
|
interface BlockDefinition {
|
|
9
9
|
label?: string;
|
|
10
10
|
description?: string;
|
|
@@ -32,6 +32,8 @@ interface FieldConfig {
|
|
|
32
32
|
properties?: Record<string, FieldConfig>;
|
|
33
33
|
blocks?: BlockDefinitions;
|
|
34
34
|
discriminator?: string;
|
|
35
|
+
collapsed?: boolean;
|
|
36
|
+
objectLayout?: 'nested' | 'flat';
|
|
35
37
|
format?: string;
|
|
36
38
|
widget?: string;
|
|
37
39
|
dependsOn?: string;
|
|
@@ -113,4 +115,4 @@ interface CollectionSyncResult {
|
|
|
113
115
|
error?: string;
|
|
114
116
|
}
|
|
115
117
|
|
|
116
|
-
export type { BlockDefinition as B,
|
|
118
|
+
export type { BlockDefinition as B, CollectionConfig as C, FieldConfig as F, BlockDefinitions as a, CollectionConfigModule as b, CollectionSchema as c, CollectionSyncResult as d, FieldType as e };
|
|
@@ -138,4 +138,4 @@ interface FilterBarData {
|
|
|
138
138
|
}
|
|
139
139
|
declare function renderFilterBar(data: FilterBarData): string;
|
|
140
140
|
|
|
141
|
-
export { type AlertData as A, type ConfirmationDialogOptions as C, type
|
|
141
|
+
export { type AlertData as A, type ConfirmationDialogOptions as C, type Filter as F, type PaginationData as P, type TableColumn as T, type FilterBarData as a, type FilterOption as b, type FormData as c, type FormField as d, type TableData as e, renderConfirmationDialog as f, getConfirmationDialogScript as g, renderFilterBar as h, renderForm as i, renderFormField as j, renderPagination as k, renderTable as l, renderAlert as r };
|
|
@@ -138,4 +138,4 @@ interface FilterBarData {
|
|
|
138
138
|
}
|
|
139
139
|
declare function renderFilterBar(data: FilterBarData): string;
|
|
140
140
|
|
|
141
|
-
export { type AlertData as A, type ConfirmationDialogOptions as C, type
|
|
141
|
+
export { type AlertData as A, type ConfirmationDialogOptions as C, type Filter as F, type PaginationData as P, type TableColumn as T, type FilterBarData as a, type FilterOption as b, type FormData as c, type FormField as d, type TableData as e, renderConfirmationDialog as f, getConfirmationDialogScript as g, renderFilterBar as h, renderForm as i, renderFormField as j, renderPagination as k, renderTable as l, renderAlert as r };
|