@kyro-cms/core 0.12.65 → 0.12.67
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/README.md +1 -1
- package/dist/{WebhookService-Bue85CZq.d.ts → WebhookService-CGNSlclW.d.ts} +1 -1
- package/dist/{WebhookService-B-jb55_P.d.cts → WebhookService-CIQPD1We.d.cts} +1 -1
- package/dist/api-handler-graphql.cjs +1 -1
- package/dist/api-handler-graphql.js +1 -1
- package/dist/api-handler-trpc.cjs +1 -1
- package/dist/api-handler-trpc.js +1 -1
- package/dist/api-handler.cjs +1 -1
- package/dist/api-handler.js +1 -1
- package/dist/{base-CU2tjpsX.d.cts → base-Ds06wMo9.d.cts} +2 -2
- package/dist/{base-CTeNj4rw.d.ts → base-DxDXLyWe.d.ts} +2 -2
- package/dist/chunk-2XUD2OPJ.js +121 -0
- package/dist/{chunk-LVHWORV4.js → chunk-4YCI3HBD.js} +3 -3
- package/dist/chunk-7LLCXY5O.cjs +19 -0
- package/dist/{chunk-N4HVIKNF.cjs → chunk-B3BSVEFC.cjs} +1 -1
- package/dist/{chunk-7JCRN5ZH.cjs → chunk-CTIQQ3ZX.cjs} +17 -17
- package/dist/{chunk-QBYXAKHH.js → chunk-EJN3FJWB.js} +2 -2
- package/dist/{chunk-ZDMJOFKR.cjs → chunk-GH4OVDIL.cjs} +1 -1
- package/dist/{chunk-H5BTDZXQ.js → chunk-HEGM2QMX.js} +18 -18
- package/dist/{chunk-YFUH3SST.cjs → chunk-IL2TMAHB.cjs} +25 -25
- package/dist/chunk-JCEJ4VTN.js +20 -0
- package/dist/chunk-JSTDCK3Z.js +2 -0
- package/dist/chunk-MSC4G2HF.cjs +2 -0
- package/dist/{chunk-AXT3QPVM.js → chunk-MVZSSTCV.js} +26 -26
- package/dist/chunk-MYGHZQMO.cjs +1 -0
- package/dist/{chunk-KCQBV3MA.js → chunk-VTOL3URF.js} +1 -1
- package/dist/chunk-X6HUA6EF.cjs +20 -0
- package/dist/chunk-XDPLVJRO.js +21 -0
- package/dist/chunk-ZED7JS6I.cjs +120 -0
- package/dist/client.cjs +1 -1
- package/dist/client.d.cts +3 -3
- package/dist/client.d.ts +3 -3
- package/dist/client.js +1 -1
- package/dist/drizzle/index.cjs +1 -1
- package/dist/drizzle/index.d.cts +3 -3
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/drizzle/index.js +1 -1
- package/dist/fields/index.d.cts +2 -2
- package/dist/fields/index.d.ts +2 -2
- package/dist/graphql/index.d.cts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/{index-HNBjfQpn.d.cts → index-BHYGO3yF.d.cts} +2 -2
- package/dist/{index-Bz9JqRGI.d.cts → index-D7kt5jT_.d.ts} +12 -1
- package/dist/{index-Bz9JqRGI.d.ts → index-DPtCjn94.d.cts} +12 -1
- package/dist/{index-DowyndWK.d.ts → index-DTy4k1oU.d.ts} +2 -2
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +6 -6
- package/dist/integration.cjs +1 -1
- package/dist/integration.js +1 -1
- package/dist/{local-4MZ7KOL3.js → local-DPLKZQA3.js} +1 -1
- package/dist/{local-NDTKWJQ6.cjs → local-S5VA7IXE.cjs} +1 -1
- package/dist/mongodb/index.cjs +1 -1
- package/dist/mongodb/index.d.cts +3 -3
- package/dist/mongodb/index.d.ts +3 -3
- package/dist/mongodb/index.js +1 -1
- package/dist/rest/index.cjs +1 -1
- package/dist/rest/index.d.cts +4 -4
- package/dist/rest/index.d.ts +4 -4
- package/dist/rest/index.js +1 -1
- package/dist/templates/index.cjs +1 -1
- package/dist/templates/index.d.cts +2 -2
- package/dist/templates/index.d.ts +2 -2
- package/dist/templates/index.js +1 -1
- package/dist/trpc/index.d.cts +3 -3
- package/dist/trpc/index.d.ts +3 -3
- package/dist/{types-euTszc-1.d.cts → types-BKPEavuy.d.cts} +3 -0
- package/dist/{types-euTszc-1.d.ts → types-BKPEavuy.d.ts} +3 -0
- package/dist/{types-ComJeXGL.d.cts → types-BWJx6zzm.d.ts} +38 -14
- package/dist/{types-COokblgr.d.ts → types-CeAQSR87.d.cts} +38 -14
- package/package.json +2 -2
- package/dist/chunk-2F4WPCVA.cjs +0 -120
- package/dist/chunk-6KERPHAL.cjs +0 -2
- package/dist/chunk-HKYBQYAJ.cjs +0 -19
- package/dist/chunk-HOX6BHKS.js +0 -121
- package/dist/chunk-JW4HRIVP.cjs +0 -20
- package/dist/chunk-QXWQELAM.js +0 -21
- package/dist/chunk-T4JJVUGT.js +0 -20
package/dist/trpc/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as BaseAdapter, l as User, R as Request, b as FindResult } from '../types-
|
|
2
|
-
import { j as createWebhookService } from '../WebhookService-
|
|
3
|
-
import '../types-
|
|
1
|
+
import { B as BaseAdapter, l as User, R as Request, b as FindResult } from '../types-BWJx6zzm.js';
|
|
2
|
+
import { j as createWebhookService } from '../WebhookService-CGNSlclW.js';
|
|
3
|
+
import '../types-BKPEavuy.js';
|
|
4
4
|
|
|
5
5
|
interface ApiKeyContext {
|
|
6
6
|
userId: string;
|
|
@@ -30,6 +30,9 @@ interface FieldAdmin {
|
|
|
30
30
|
action?: string;
|
|
31
31
|
method?: string;
|
|
32
32
|
inline?: boolean;
|
|
33
|
+
compact?: boolean;
|
|
34
|
+
collapsible?: boolean;
|
|
35
|
+
initCollapsed?: boolean;
|
|
33
36
|
pickerMode?: "drawer" | "dropdown";
|
|
34
37
|
condition?: ((data: Record<string, unknown>, siblingData: Record<string, unknown>) => boolean) | DeclarativeCondition;
|
|
35
38
|
}
|
|
@@ -30,6 +30,9 @@ interface FieldAdmin {
|
|
|
30
30
|
action?: string;
|
|
31
31
|
method?: string;
|
|
32
32
|
inline?: boolean;
|
|
33
|
+
compact?: boolean;
|
|
34
|
+
collapsible?: boolean;
|
|
35
|
+
initCollapsed?: boolean;
|
|
33
36
|
pickerMode?: "drawer" | "dropdown";
|
|
34
37
|
condition?: ((data: Record<string, unknown>, siblingData: Record<string, unknown>) => boolean) | DeclarativeCondition;
|
|
35
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Field } from './types-
|
|
1
|
+
import { F as Field } from './types-BKPEavuy.js';
|
|
2
2
|
|
|
3
3
|
interface Request {
|
|
4
4
|
body?: any;
|
|
@@ -417,16 +417,41 @@ interface AdminConfig {
|
|
|
417
417
|
};
|
|
418
418
|
layout?: "split" | "single";
|
|
419
419
|
}
|
|
420
|
-
/**
|
|
421
|
-
* Field overrides allow modifying specific field properties by path.
|
|
422
|
-
* Path uses dot notation: "fieldName" or "groupField.arrayField.targetField"
|
|
423
|
-
* Commonly used to extend relationship fields with additional collections.
|
|
424
|
-
*/
|
|
425
420
|
interface FieldOverrides {
|
|
426
|
-
[fieldPath: string]:
|
|
427
|
-
|
|
428
|
-
|
|
421
|
+
[fieldPath: string]: any;
|
|
422
|
+
}
|
|
423
|
+
interface CollectionOverrideConfig extends Partial<AdminConfig> {
|
|
424
|
+
label?: string;
|
|
425
|
+
singularLabel?: string;
|
|
426
|
+
labelPlural?: string;
|
|
427
|
+
labels?: {
|
|
428
|
+
singular?: string;
|
|
429
|
+
plural?: string;
|
|
429
430
|
};
|
|
431
|
+
hidden?: boolean;
|
|
432
|
+
timestamps?: boolean;
|
|
433
|
+
versions?: {
|
|
434
|
+
drafts?: boolean;
|
|
435
|
+
maxPerDoc?: number;
|
|
436
|
+
autosave?: boolean;
|
|
437
|
+
};
|
|
438
|
+
seo?: boolean | Record<string, any>;
|
|
439
|
+
access?: CollectionAccess;
|
|
440
|
+
hooks?: CollectionHooks;
|
|
441
|
+
fields?: FieldOverrides;
|
|
442
|
+
blocks?: Record<string, any> | any[];
|
|
443
|
+
tabs?: Record<string, any> | any[];
|
|
444
|
+
[key: string]: any;
|
|
445
|
+
}
|
|
446
|
+
interface GlobalOverrideConfig extends Partial<AdminConfig> {
|
|
447
|
+
label?: string;
|
|
448
|
+
hidden?: boolean;
|
|
449
|
+
access?: GlobalAccess;
|
|
450
|
+
hooks?: GlobalHooks;
|
|
451
|
+
fields?: FieldOverrides;
|
|
452
|
+
blocks?: Record<string, any> | any[];
|
|
453
|
+
tabs?: Record<string, any> | any[];
|
|
454
|
+
[key: string]: any;
|
|
430
455
|
}
|
|
431
456
|
interface UploadConfig {
|
|
432
457
|
staticDir?: string;
|
|
@@ -437,7 +462,7 @@ interface UploadConfig {
|
|
|
437
462
|
crop?: boolean;
|
|
438
463
|
focalPoint?: boolean;
|
|
439
464
|
formatOptions?: {
|
|
440
|
-
format: "webp" | "png" | "jpg";
|
|
465
|
+
format: "webp" | "png" | "jpg" | "avif";
|
|
441
466
|
options?: Record<string, unknown>;
|
|
442
467
|
};
|
|
443
468
|
resizeOptions?: Record<string, any>;
|
|
@@ -450,7 +475,7 @@ interface ImageSize {
|
|
|
450
475
|
crop?: string;
|
|
451
476
|
position?: string;
|
|
452
477
|
formatOptions?: {
|
|
453
|
-
format: "webp" | "png" | "jpg";
|
|
478
|
+
format: "webp" | "png" | "jpg" | "avif";
|
|
454
479
|
};
|
|
455
480
|
generateImageName?: (doc: any) => string;
|
|
456
481
|
}
|
|
@@ -722,9 +747,8 @@ interface KyroConfig {
|
|
|
722
747
|
disable?: boolean;
|
|
723
748
|
indexRoute?: string;
|
|
724
749
|
components?: Record<string, any>;
|
|
725
|
-
collectionOverrides?: Record<string,
|
|
726
|
-
|
|
727
|
-
}>;
|
|
750
|
+
collectionOverrides?: Record<string, CollectionOverrideConfig>;
|
|
751
|
+
globalOverrides?: Record<string, GlobalOverrideConfig>;
|
|
728
752
|
};
|
|
729
753
|
upload?: {
|
|
730
754
|
limits?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Field } from './types-
|
|
1
|
+
import { F as Field } from './types-BKPEavuy.cjs';
|
|
2
2
|
|
|
3
3
|
interface Request {
|
|
4
4
|
body?: any;
|
|
@@ -417,16 +417,41 @@ interface AdminConfig {
|
|
|
417
417
|
};
|
|
418
418
|
layout?: "split" | "single";
|
|
419
419
|
}
|
|
420
|
-
/**
|
|
421
|
-
* Field overrides allow modifying specific field properties by path.
|
|
422
|
-
* Path uses dot notation: "fieldName" or "groupField.arrayField.targetField"
|
|
423
|
-
* Commonly used to extend relationship fields with additional collections.
|
|
424
|
-
*/
|
|
425
420
|
interface FieldOverrides {
|
|
426
|
-
[fieldPath: string]:
|
|
427
|
-
|
|
428
|
-
|
|
421
|
+
[fieldPath: string]: any;
|
|
422
|
+
}
|
|
423
|
+
interface CollectionOverrideConfig extends Partial<AdminConfig> {
|
|
424
|
+
label?: string;
|
|
425
|
+
singularLabel?: string;
|
|
426
|
+
labelPlural?: string;
|
|
427
|
+
labels?: {
|
|
428
|
+
singular?: string;
|
|
429
|
+
plural?: string;
|
|
429
430
|
};
|
|
431
|
+
hidden?: boolean;
|
|
432
|
+
timestamps?: boolean;
|
|
433
|
+
versions?: {
|
|
434
|
+
drafts?: boolean;
|
|
435
|
+
maxPerDoc?: number;
|
|
436
|
+
autosave?: boolean;
|
|
437
|
+
};
|
|
438
|
+
seo?: boolean | Record<string, any>;
|
|
439
|
+
access?: CollectionAccess;
|
|
440
|
+
hooks?: CollectionHooks;
|
|
441
|
+
fields?: FieldOverrides;
|
|
442
|
+
blocks?: Record<string, any> | any[];
|
|
443
|
+
tabs?: Record<string, any> | any[];
|
|
444
|
+
[key: string]: any;
|
|
445
|
+
}
|
|
446
|
+
interface GlobalOverrideConfig extends Partial<AdminConfig> {
|
|
447
|
+
label?: string;
|
|
448
|
+
hidden?: boolean;
|
|
449
|
+
access?: GlobalAccess;
|
|
450
|
+
hooks?: GlobalHooks;
|
|
451
|
+
fields?: FieldOverrides;
|
|
452
|
+
blocks?: Record<string, any> | any[];
|
|
453
|
+
tabs?: Record<string, any> | any[];
|
|
454
|
+
[key: string]: any;
|
|
430
455
|
}
|
|
431
456
|
interface UploadConfig {
|
|
432
457
|
staticDir?: string;
|
|
@@ -437,7 +462,7 @@ interface UploadConfig {
|
|
|
437
462
|
crop?: boolean;
|
|
438
463
|
focalPoint?: boolean;
|
|
439
464
|
formatOptions?: {
|
|
440
|
-
format: "webp" | "png" | "jpg";
|
|
465
|
+
format: "webp" | "png" | "jpg" | "avif";
|
|
441
466
|
options?: Record<string, unknown>;
|
|
442
467
|
};
|
|
443
468
|
resizeOptions?: Record<string, any>;
|
|
@@ -450,7 +475,7 @@ interface ImageSize {
|
|
|
450
475
|
crop?: string;
|
|
451
476
|
position?: string;
|
|
452
477
|
formatOptions?: {
|
|
453
|
-
format: "webp" | "png" | "jpg";
|
|
478
|
+
format: "webp" | "png" | "jpg" | "avif";
|
|
454
479
|
};
|
|
455
480
|
generateImageName?: (doc: any) => string;
|
|
456
481
|
}
|
|
@@ -722,9 +747,8 @@ interface KyroConfig {
|
|
|
722
747
|
disable?: boolean;
|
|
723
748
|
indexRoute?: string;
|
|
724
749
|
components?: Record<string, any>;
|
|
725
|
-
collectionOverrides?: Record<string,
|
|
726
|
-
|
|
727
|
-
}>;
|
|
750
|
+
collectionOverrides?: Record<string, CollectionOverrideConfig>;
|
|
751
|
+
globalOverrides?: Record<string, GlobalOverrideConfig>;
|
|
728
752
|
};
|
|
729
753
|
upload?: {
|
|
730
754
|
limits?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kyro-cms/core",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.67",
|
|
4
4
|
"description": "Astro-native headless CMS with multi-database adapters, multi-protocol APIs, and multi-vendor support",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22"
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"ws": "^8.18.0",
|
|
192
192
|
"zod": "^3.24.0",
|
|
193
193
|
"zod-to-json-schema": "^3.25.2",
|
|
194
|
-
"@kyro-cms/ai": "0.12.
|
|
194
|
+
"@kyro-cms/ai": "0.12.67"
|
|
195
195
|
},
|
|
196
196
|
"devDependencies": {
|
|
197
197
|
"@tailwindcss/vite": "^4.0.0",
|