@kyro-cms/core 0.9.6 → 0.9.8

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 (91) hide show
  1. package/dist/{WebhookService-BKszZlG0.d.cts → WebhookService-Dj8pJ3sp.d.cts} +1 -1
  2. package/dist/{WebhookService-Ccf1j-IN.d.ts → WebhookService-DpRB940h.d.ts} +1 -1
  3. package/dist/api-handler-graphql.cjs +11 -11
  4. package/dist/api-handler-graphql.js +7 -7
  5. package/dist/api-handler-trpc.cjs +9 -9
  6. package/dist/api-handler-trpc.js +7 -7
  7. package/dist/api-handler.cjs +10 -10
  8. package/dist/api-handler.js +7 -7
  9. package/dist/{base-CIuXkrH4.d.cts → base-BjyoF6da.d.cts} +2 -2
  10. package/dist/{base-fFo4lqER.d.ts → base-C2YR8lWt.d.ts} +2 -2
  11. package/dist/{chunk-QVJNSAQL.cjs → chunk-2CBCU5ML.cjs} +47 -41
  12. package/dist/chunk-2CBCU5ML.cjs.map +1 -0
  13. package/dist/{chunk-NZEUU7QB.js → chunk-2GXALYKV.js} +2 -2
  14. package/dist/chunk-2GXALYKV.js.map +1 -0
  15. package/dist/{chunk-3UK5XBVJ.js → chunk-2Z7YAJBS.js} +10 -9
  16. package/dist/chunk-2Z7YAJBS.js.map +1 -0
  17. package/dist/{chunk-QX3WNQ7V.js → chunk-65DSXNQL.js} +4 -4
  18. package/dist/{chunk-QX3WNQ7V.js.map → chunk-65DSXNQL.js.map} +1 -1
  19. package/dist/{chunk-PONTBXR5.js → chunk-6DURKQ6W.js} +370 -140
  20. package/dist/chunk-6DURKQ6W.js.map +1 -0
  21. package/dist/{chunk-AX2TZRQJ.js → chunk-EQTMBMDR.js} +3 -3
  22. package/dist/{chunk-AX2TZRQJ.js.map → chunk-EQTMBMDR.js.map} +1 -1
  23. package/dist/{chunk-E5UJBLQ7.js → chunk-FIAMXNTH.js} +2 -2
  24. package/dist/chunk-FIAMXNTH.js.map +1 -0
  25. package/dist/{chunk-VLK5SJRI.js → chunk-HA4MGAZJ.js} +28 -22
  26. package/dist/chunk-HA4MGAZJ.js.map +1 -0
  27. package/dist/{chunk-FKKQUMXR.cjs → chunk-KGJRJ7CU.cjs} +2 -2
  28. package/dist/chunk-KGJRJ7CU.cjs.map +1 -0
  29. package/dist/{chunk-FSKONGCX.cjs → chunk-OJ2AM75W.cjs} +2 -2
  30. package/dist/chunk-OJ2AM75W.cjs.map +1 -0
  31. package/dist/{chunk-DRVOUQMT.cjs → chunk-OVZO4KB6.cjs} +45 -79
  32. package/dist/chunk-OVZO4KB6.cjs.map +1 -0
  33. package/dist/{chunk-RRKCIAPU.cjs → chunk-PF642V5O.cjs} +372 -140
  34. package/dist/chunk-PF642V5O.cjs.map +1 -0
  35. package/dist/{chunk-OZ3CCTTA.cjs → chunk-PJ7F4TCC.cjs} +5 -5
  36. package/dist/{chunk-OZ3CCTTA.cjs.map → chunk-PJ7F4TCC.cjs.map} +1 -1
  37. package/dist/{chunk-HVCUIII2.cjs → chunk-W3GT55TY.cjs} +13 -13
  38. package/dist/{chunk-HVCUIII2.cjs.map → chunk-W3GT55TY.cjs.map} +1 -1
  39. package/dist/{chunk-QFLB4EIJ.cjs → chunk-Z7OH3MWT.cjs} +10 -9
  40. package/dist/chunk-Z7OH3MWT.cjs.map +1 -0
  41. package/dist/{chunk-CMXVTUYV.js → chunk-ZFHTJ2YX.js} +29 -63
  42. package/dist/chunk-ZFHTJ2YX.js.map +1 -0
  43. package/dist/client.cjs +3 -3
  44. package/dist/client.d.cts +2 -2
  45. package/dist/client.d.ts +2 -2
  46. package/dist/client.js +1 -1
  47. package/dist/drizzle/index.d.cts +3 -3
  48. package/dist/drizzle/index.d.ts +3 -3
  49. package/dist/fields/index.cjs +21 -21
  50. package/dist/fields/index.d.cts +1 -1
  51. package/dist/fields/index.d.ts +1 -1
  52. package/dist/fields/index.js +1 -1
  53. package/dist/graphql/index.cjs +13 -5
  54. package/dist/graphql/index.d.cts +34 -12
  55. package/dist/graphql/index.d.ts +34 -12
  56. package/dist/graphql/index.js +2 -2
  57. package/dist/{index-BKta3cBH.d.cts → index-DHbywDs-.d.cts} +2 -2
  58. package/dist/{index-ClOqnkTO.d.ts → index-jLs0zlft.d.ts} +2 -2
  59. package/dist/index.cjs +90 -90
  60. package/dist/index.d.cts +9 -9
  61. package/dist/index.d.ts +9 -9
  62. package/dist/index.js +8 -8
  63. package/dist/mongodb/index.d.cts +3 -3
  64. package/dist/mongodb/index.d.ts +3 -3
  65. package/dist/rest/index.cjs +5 -5
  66. package/dist/rest/index.d.cts +4 -4
  67. package/dist/rest/index.d.ts +4 -4
  68. package/dist/rest/index.js +3 -3
  69. package/dist/templates/index.d.cts +2 -2
  70. package/dist/templates/index.d.ts +2 -2
  71. package/dist/trpc/index.cjs +12 -12
  72. package/dist/trpc/index.d.cts +3 -3
  73. package/dist/trpc/index.d.ts +3 -3
  74. package/dist/trpc/index.js +3 -3
  75. package/dist/{types-Dgzlftb7.d.ts → types-BzH3_rtP.d.ts} +7 -7
  76. package/dist/{types-Ds0tCA3L.d.cts → types-CY_iNunL.d.cts} +7 -7
  77. package/dist/{types-DeSApf9T.d.ts → types-C_rVxU2T.d.cts} +4 -4
  78. package/dist/{types-DeSApf9T.d.cts → types-C_rVxU2T.d.ts} +4 -4
  79. package/package.json +2 -1
  80. package/dist/chunk-3UK5XBVJ.js.map +0 -1
  81. package/dist/chunk-CMXVTUYV.js.map +0 -1
  82. package/dist/chunk-DRVOUQMT.cjs.map +0 -1
  83. package/dist/chunk-E5UJBLQ7.js.map +0 -1
  84. package/dist/chunk-FKKQUMXR.cjs.map +0 -1
  85. package/dist/chunk-FSKONGCX.cjs.map +0 -1
  86. package/dist/chunk-NZEUU7QB.js.map +0 -1
  87. package/dist/chunk-PONTBXR5.js.map +0 -1
  88. package/dist/chunk-QFLB4EIJ.cjs.map +0 -1
  89. package/dist/chunk-QVJNSAQL.cjs.map +0 -1
  90. package/dist/chunk-RRKCIAPU.cjs.map +0 -1
  91. package/dist/chunk-VLK5SJRI.js.map +0 -1
package/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { A as AdminConfig, a as AuthConfig, C as CollectionConfig, G as GlobalConfig, I as ImageSize, K as KyroConfig, U as UploadConfig, V as VersionConfig } from './types-Dgzlftb7.js';
2
- export { A as ArrayField, B as BaseField, a as Block, b as BlockAdmin, c as BlockImage, d as BlocksField, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, h as DeclarativeCondition, E as EmailField, F as Field, i as FieldAdmin, j as FieldType, G as GroupField, I as ImageField, J as JSONField, M as MarkdownField, N as NumberField, P as PasswordField, R as RadioField, k as RelationshipField, l as RichTextBlock, m as RichTextField, n as RowField, S as SecretField, o as SelectField, T as TabsField, p as TextField, q as TextareaField, U as UploadField } from './types-DeSApf9T.js';
1
+ export { A as AdminConfig, a as AuthConfig, C as CollectionConfig, G as GlobalConfig, I as ImageSize, K as KyroConfig, U as UploadConfig, V as VersionConfig } from './types-BzH3_rtP.js';
2
+ export { A as ArrayField, B as BaseField, a as Block, b as BlockAdmin, c as BlockImage, d as BlocksField, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, h as DeclarativeCondition, E as EmailField, F as Field, i as FieldAdmin, j as FieldType, G as GroupField, I as ImageField, J as JSONField, M as MarkdownField, N as NumberField, P as PasswordField, R as RadioField, k as RelationshipField, l as RichTextBlock, m as RichTextField, n as RowField, S as SecretField, o as SelectField, T as TabsField, p as TextField, q as TextareaField, U as UploadField } from './types-C_rVxU2T.js';
3
3
  export { renderRichText, richTextStyles } from './fields/index.js';
4
4
  export { A as AuthAdapter, a as AuthResult, S as AuthSession, b as AuthTokenConfig, c as AuthUser, J as JWTPayload, L as LoginCredentials, R as RegisterData, S as Session, U as UserRole } from './types-CpjuXbe7.js';
5
5
  export { A as AdminStylingConfig, C as CSSGenerator, F as FieldStyling, S as StylingConfig, a as StylingMode, T as ThemeBorderRadius, b as ThemeColors, c as ThemeConfig, d as ThemeFonts, e as ThemeShadows, f as ThemeSpacing, g as createAdminStyling, h as defaultDarkTheme, i as defaultFieldStyling, j as defaultLightTheme, k as ecommerce2026Theme, l as generateCSSVariables, m as generateTailwindConfig } from './index-Bz9JqRGI.js';
package/dist/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { CSSGenerator, createAdminStyling, defaultDarkTheme, defaultFieldStyling, defaultLightTheme, ecommerce2026Theme, generateCSSVariables, generateTailwindConfig } from './chunk-2HFJUUFZ.js';
2
- export { renderRichText, richTextStyles } from './chunk-E5UJBLQ7.js';
2
+ export { renderRichText, richTextStyles } from './chunk-FIAMXNTH.js';
3
3
  export { createAuditContext } from './chunk-P2YW545G.js';
4
4
  import './chunk-4CV4JOE5.js';
5
5
  //# sourceMappingURL=client.js.map
@@ -1,6 +1,6 @@
1
- import { A as AbstractBaseAdapter } from '../base-CIuXkrH4.cjs';
2
- import { C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs } from '../types-Ds0tCA3L.cjs';
3
- import { F as Field } from '../types-DeSApf9T.cjs';
1
+ import { A as AbstractBaseAdapter } from '../base-BjyoF6da.cjs';
2
+ import { C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs } from '../types-CY_iNunL.cjs';
3
+ import { F as Field } from '../types-C_rVxU2T.cjs';
4
4
  import { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
5
5
  import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-CpjuXbe7.cjs';
6
6
 
@@ -1,6 +1,6 @@
1
- import { A as AbstractBaseAdapter } from '../base-fFo4lqER.js';
2
- import { C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs } from '../types-Dgzlftb7.js';
3
- import { F as Field } from '../types-DeSApf9T.js';
1
+ import { A as AbstractBaseAdapter } from '../base-C2YR8lWt.js';
2
+ import { C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs } from '../types-BzH3_rtP.js';
3
+ import { F as Field } from '../types-C_rVxU2T.js';
4
4
  import { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
5
5
  import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-CpjuXbe7.js';
6
6
 
@@ -1,89 +1,89 @@
1
1
  'use strict';
2
2
 
3
- var chunkFSKONGCX_cjs = require('../chunk-FSKONGCX.cjs');
3
+ var chunkOJ2AM75W_cjs = require('../chunk-OJ2AM75W.cjs');
4
4
  require('../chunk-CZLDE2OZ.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "ALL_FIELD_TYPES", {
9
9
  enumerable: true,
10
- get: function () { return chunkFSKONGCX_cjs.ALL_FIELD_TYPES; }
10
+ get: function () { return chunkOJ2AM75W_cjs.ALL_FIELD_TYPES; }
11
11
  });
12
12
  Object.defineProperty(exports, "COMPLEX_FIELD_TYPES", {
13
13
  enumerable: true,
14
- get: function () { return chunkFSKONGCX_cjs.COMPLEX_FIELD_TYPES; }
14
+ get: function () { return chunkOJ2AM75W_cjs.COMPLEX_FIELD_TYPES; }
15
15
  });
16
16
  Object.defineProperty(exports, "LAYOUT_FIELD_TYPES", {
17
17
  enumerable: true,
18
- get: function () { return chunkFSKONGCX_cjs.LAYOUT_FIELD_TYPES; }
18
+ get: function () { return chunkOJ2AM75W_cjs.LAYOUT_FIELD_TYPES; }
19
19
  });
20
20
  Object.defineProperty(exports, "PRIMITIVE_FIELD_TYPES", {
21
21
  enumerable: true,
22
- get: function () { return chunkFSKONGCX_cjs.PRIMITIVE_FIELD_TYPES; }
22
+ get: function () { return chunkOJ2AM75W_cjs.PRIMITIVE_FIELD_TYPES; }
23
23
  });
24
24
  Object.defineProperty(exports, "RELATIONAL_FIELD_TYPES", {
25
25
  enumerable: true,
26
- get: function () { return chunkFSKONGCX_cjs.RELATIONAL_FIELD_TYPES; }
26
+ get: function () { return chunkOJ2AM75W_cjs.RELATIONAL_FIELD_TYPES; }
27
27
  });
28
28
  Object.defineProperty(exports, "createRelationshipFieldConfig", {
29
29
  enumerable: true,
30
- get: function () { return chunkFSKONGCX_cjs.createRelationshipFieldConfig; }
30
+ get: function () { return chunkOJ2AM75W_cjs.createRelationshipFieldConfig; }
31
31
  });
32
32
  Object.defineProperty(exports, "isArrayField", {
33
33
  enumerable: true,
34
- get: function () { return chunkFSKONGCX_cjs.isArrayField; }
34
+ get: function () { return chunkOJ2AM75W_cjs.isArrayField; }
35
35
  });
36
36
  Object.defineProperty(exports, "isBlocksField", {
37
37
  enumerable: true,
38
- get: function () { return chunkFSKONGCX_cjs.isBlocksField; }
38
+ get: function () { return chunkOJ2AM75W_cjs.isBlocksField; }
39
39
  });
40
40
  Object.defineProperty(exports, "isGroupField", {
41
41
  enumerable: true,
42
- get: function () { return chunkFSKONGCX_cjs.isGroupField; }
42
+ get: function () { return chunkOJ2AM75W_cjs.isGroupField; }
43
43
  });
44
44
  Object.defineProperty(exports, "isImageField", {
45
45
  enumerable: true,
46
- get: function () { return chunkFSKONGCX_cjs.isImageField; }
46
+ get: function () { return chunkOJ2AM75W_cjs.isImageField; }
47
47
  });
48
48
  Object.defineProperty(exports, "isLayoutField", {
49
49
  enumerable: true,
50
- get: function () { return chunkFSKONGCX_cjs.isLayoutField; }
50
+ get: function () { return chunkOJ2AM75W_cjs.isLayoutField; }
51
51
  });
52
52
  Object.defineProperty(exports, "isNumberField", {
53
53
  enumerable: true,
54
- get: function () { return chunkFSKONGCX_cjs.isNumberField; }
54
+ get: function () { return chunkOJ2AM75W_cjs.isNumberField; }
55
55
  });
56
56
  Object.defineProperty(exports, "isRelationshipField", {
57
57
  enumerable: true,
58
- get: function () { return chunkFSKONGCX_cjs.isRelationshipField; }
58
+ get: function () { return chunkOJ2AM75W_cjs.isRelationshipField; }
59
59
  });
60
60
  Object.defineProperty(exports, "isRichTextField", {
61
61
  enumerable: true,
62
- get: function () { return chunkFSKONGCX_cjs.isRichTextField; }
62
+ get: function () { return chunkOJ2AM75W_cjs.isRichTextField; }
63
63
  });
64
64
  Object.defineProperty(exports, "isSelectField", {
65
65
  enumerable: true,
66
- get: function () { return chunkFSKONGCX_cjs.isSelectField; }
66
+ get: function () { return chunkOJ2AM75W_cjs.isSelectField; }
67
67
  });
68
68
  Object.defineProperty(exports, "isTextField", {
69
69
  enumerable: true,
70
- get: function () { return chunkFSKONGCX_cjs.isTextField; }
70
+ get: function () { return chunkOJ2AM75W_cjs.isTextField; }
71
71
  });
72
72
  Object.defineProperty(exports, "isUploadField", {
73
73
  enumerable: true,
74
- get: function () { return chunkFSKONGCX_cjs.isUploadField; }
74
+ get: function () { return chunkOJ2AM75W_cjs.isUploadField; }
75
75
  });
76
76
  Object.defineProperty(exports, "normalizeRichTextValue", {
77
77
  enumerable: true,
78
- get: function () { return chunkFSKONGCX_cjs.normalizeRichTextValue; }
78
+ get: function () { return chunkOJ2AM75W_cjs.normalizeRichTextValue; }
79
79
  });
80
80
  Object.defineProperty(exports, "renderRichText", {
81
81
  enumerable: true,
82
- get: function () { return chunkFSKONGCX_cjs.renderRichText; }
82
+ get: function () { return chunkOJ2AM75W_cjs.renderRichText; }
83
83
  });
84
84
  Object.defineProperty(exports, "richTextStyles", {
85
85
  enumerable: true,
86
- get: function () { return chunkFSKONGCX_cjs.richTextStyles; }
86
+ get: function () { return chunkOJ2AM75W_cjs.richTextStyles; }
87
87
  });
88
88
  //# sourceMappingURL=index.cjs.map
89
89
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- export { r as ALL_FIELD_TYPES, Y as ActionField, A as ArrayField, B as BaseField, a as Block, b as BlockAdmin, c as BlockImage, d as BlocksField, Z as ButtonField, s as COMPLEX_FIELD_TYPES, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, h as DeclarativeCondition, E as EmailField, F as Field, i as FieldAdmin, j as FieldType, G as GroupField, _ as Hook, I as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, $ as ListField, M as MarkdownField, N as NumberField, t as PRIMITIVE_FIELD_TYPES, P as PasswordField, u as RELATIONAL_FIELD_TYPES, R as RadioField, k as RelationshipField, l as RichTextBlock, m as RichTextField, n as RowField, S as SecretField, o as SelectField, T as TabsField, p as TextField, a0 as TextFieldVariant, q as TextareaField, U as UploadField, V as ValidateOptions, a1 as createRelationshipFieldConfig, v as isArrayField, w as isBlocksField, x as isGroupField, y as isImageField, z as isLayoutField, H as isNumberField, K as isRelationshipField, O as isRichTextField, Q as isSelectField, W as isTextField, X as isUploadField } from '../types-DeSApf9T.cjs';
1
+ export { r as ALL_FIELD_TYPES, Y as ActionField, A as ArrayField, B as BaseField, a as Block, b as BlockAdmin, c as BlockImage, d as BlocksField, Z as ButtonField, s as COMPLEX_FIELD_TYPES, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, h as DeclarativeCondition, E as EmailField, F as Field, i as FieldAdmin, j as FieldType, G as GroupField, _ as Hook, I as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, $ as ListField, M as MarkdownField, N as NumberField, t as PRIMITIVE_FIELD_TYPES, P as PasswordField, u as RELATIONAL_FIELD_TYPES, R as RadioField, k as RelationshipField, l as RichTextBlock, m as RichTextField, n as RowField, S as SecretField, o as SelectField, T as TabsField, p as TextField, a0 as TextFieldVariant, q as TextareaField, U as UploadField, V as ValidateOptions, a1 as createRelationshipFieldConfig, v as isArrayField, w as isBlocksField, x as isGroupField, y as isImageField, z as isLayoutField, H as isNumberField, K as isRelationshipField, O as isRichTextField, Q as isSelectField, W as isTextField, X as isUploadField } from '../types-C_rVxU2T.cjs';
2
2
 
3
3
  declare const richTextStyles: string;
4
4
  declare function normalizeRichTextValue<T>(value: T): T;
@@ -1,4 +1,4 @@
1
- export { r as ALL_FIELD_TYPES, Y as ActionField, A as ArrayField, B as BaseField, a as Block, b as BlockAdmin, c as BlockImage, d as BlocksField, Z as ButtonField, s as COMPLEX_FIELD_TYPES, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, h as DeclarativeCondition, E as EmailField, F as Field, i as FieldAdmin, j as FieldType, G as GroupField, _ as Hook, I as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, $ as ListField, M as MarkdownField, N as NumberField, t as PRIMITIVE_FIELD_TYPES, P as PasswordField, u as RELATIONAL_FIELD_TYPES, R as RadioField, k as RelationshipField, l as RichTextBlock, m as RichTextField, n as RowField, S as SecretField, o as SelectField, T as TabsField, p as TextField, a0 as TextFieldVariant, q as TextareaField, U as UploadField, V as ValidateOptions, a1 as createRelationshipFieldConfig, v as isArrayField, w as isBlocksField, x as isGroupField, y as isImageField, z as isLayoutField, H as isNumberField, K as isRelationshipField, O as isRichTextField, Q as isSelectField, W as isTextField, X as isUploadField } from '../types-DeSApf9T.js';
1
+ export { r as ALL_FIELD_TYPES, Y as ActionField, A as ArrayField, B as BaseField, a as Block, b as BlockAdmin, c as BlockImage, d as BlocksField, Z as ButtonField, s as COMPLEX_FIELD_TYPES, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, h as DeclarativeCondition, E as EmailField, F as Field, i as FieldAdmin, j as FieldType, G as GroupField, _ as Hook, I as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, $ as ListField, M as MarkdownField, N as NumberField, t as PRIMITIVE_FIELD_TYPES, P as PasswordField, u as RELATIONAL_FIELD_TYPES, R as RadioField, k as RelationshipField, l as RichTextBlock, m as RichTextField, n as RowField, S as SecretField, o as SelectField, T as TabsField, p as TextField, a0 as TextFieldVariant, q as TextareaField, U as UploadField, V as ValidateOptions, a1 as createRelationshipFieldConfig, v as isArrayField, w as isBlocksField, x as isGroupField, y as isImageField, z as isLayoutField, H as isNumberField, K as isRelationshipField, O as isRichTextField, Q as isSelectField, W as isTextField, X as isUploadField } from '../types-C_rVxU2T.js';
2
2
 
3
3
  declare const richTextStyles: string;
4
4
  declare function normalizeRichTextValue<T>(value: T): T;
@@ -1,4 +1,4 @@
1
- export { ALL_FIELD_TYPES, COMPLEX_FIELD_TYPES, LAYOUT_FIELD_TYPES, PRIMITIVE_FIELD_TYPES, RELATIONAL_FIELD_TYPES, createRelationshipFieldConfig, isArrayField, isBlocksField, isGroupField, isImageField, isLayoutField, isNumberField, isRelationshipField, isRichTextField, isSelectField, isTextField, isUploadField, normalizeRichTextValue, renderRichText, richTextStyles } from '../chunk-E5UJBLQ7.js';
1
+ export { ALL_FIELD_TYPES, COMPLEX_FIELD_TYPES, LAYOUT_FIELD_TYPES, PRIMITIVE_FIELD_TYPES, RELATIONAL_FIELD_TYPES, createRelationshipFieldConfig, isArrayField, isBlocksField, isGroupField, isImageField, isLayoutField, isNumberField, isRelationshipField, isRichTextField, isSelectField, isTextField, isUploadField, normalizeRichTextValue, renderRichText, richTextStyles } from '../chunk-FIAMXNTH.js';
2
2
  import '../chunk-4CV4JOE5.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,23 +1,31 @@
1
1
  'use strict';
2
2
 
3
- var chunkRRKCIAPU_cjs = require('../chunk-RRKCIAPU.cjs');
4
- require('../chunk-FKKQUMXR.cjs');
3
+ var chunkPF642V5O_cjs = require('../chunk-PF642V5O.cjs');
4
+ require('../chunk-KGJRJ7CU.cjs');
5
5
  require('../chunk-NKPKR5BW.cjs');
6
6
  require('../chunk-CZLDE2OZ.cjs');
7
7
 
8
8
 
9
9
 
10
+ Object.defineProperty(exports, "RelationLoader", {
11
+ enumerable: true,
12
+ get: function () { return chunkPF642V5O_cjs.RelationLoader; }
13
+ });
10
14
  Object.defineProperty(exports, "buildGraphQLSchema", {
11
15
  enumerable: true,
12
- get: function () { return chunkRRKCIAPU_cjs.buildGraphQLSchema; }
16
+ get: function () { return chunkPF642V5O_cjs.buildGraphQLSchema; }
13
17
  });
14
18
  Object.defineProperty(exports, "createGraphQLSchema", {
15
19
  enumerable: true,
16
- get: function () { return chunkRRKCIAPU_cjs.createGraphQLSchema; }
20
+ get: function () { return chunkPF642V5O_cjs.createGraphQLSchema; }
21
+ });
22
+ Object.defineProperty(exports, "depthLimit", {
23
+ enumerable: true,
24
+ get: function () { return chunkPF642V5O_cjs.depthLimit; }
17
25
  });
18
26
  Object.defineProperty(exports, "printSchema", {
19
27
  enumerable: true,
20
- get: function () { return chunkRRKCIAPU_cjs.printSchema; }
28
+ get: function () { return chunkPF642V5O_cjs.printSchema; }
21
29
  });
22
30
  //# sourceMappingURL=index.cjs.map
23
31
  //# sourceMappingURL=index.cjs.map
@@ -1,27 +1,49 @@
1
1
  import { GraphQLSchema } from 'graphql';
2
2
  export { printSchema } from 'graphql';
3
- import { B as BaseAdapter, i as User, R as Request } from '../types-Ds0tCA3L.cjs';
4
- import { R as Registry } from '../index-BKta3cBH.cjs';
5
- import '../types-DeSApf9T.cjs';
3
+ import { B as BaseAdapter, i as User, R as Request } from '../types-CY_iNunL.cjs';
4
+ import { R as Registry } from '../index-DHbywDs-.cjs';
5
+ import '../types-C_rVxU2T.cjs';
6
6
  import 'zod';
7
7
 
8
- interface GraphQLSchemaOptions {
9
- registry: Registry;
8
+ interface GraphQLContext {
10
9
  db: BaseAdapter;
10
+ registry: Registry;
11
11
  user?: User;
12
12
  req?: Request;
13
13
  tenantID?: string;
14
14
  apiKey?: any;
15
+ relationLoader: RelationLoader;
16
+ }
17
+ interface LoaderOptions {
18
+ db: BaseAdapter;
19
+ tenantID?: string;
20
+ user?: User;
21
+ }
22
+ declare class RelationLoader {
23
+ private db;
24
+ private tenantID?;
25
+ private user?;
26
+ private caches;
27
+ private pending;
28
+ constructor(opts: LoaderOptions);
29
+ private getCacheKey;
30
+ load(collection: string, id: string): Promise<any | undefined>;
31
+ flushAll(): Promise<void>;
32
+ resolveOne(collection: string, id: string): any | undefined;
33
+ static withBatch<T>(loader: RelationLoader, fn: () => Promise<T>): Promise<T>;
34
+ }
35
+ declare function depthLimit(maxDepth: number): (validationContext: any) => {
36
+ Field(): void;
37
+ leaveField(): void;
38
+ };
39
+ interface GraphQLSchemaOptions {
40
+ registry: Registry;
41
+ db: BaseAdapter;
15
42
  settings?: Record<string, any>;
16
43
  }
17
44
  declare function buildGraphQLSchema(options: GraphQLSchemaOptions): GraphQLSchema;
18
- declare function createGraphQLSchema(registry: Registry, db: BaseAdapter, options?: {
19
- user?: User;
20
- req?: Request;
21
- tenantID?: string;
22
- apiKey?: any;
23
- }): GraphQLSchema & {
45
+ declare function createGraphQLSchema(registry: Registry, db: BaseAdapter): GraphQLSchema & {
24
46
  sdl: string;
25
47
  };
26
48
 
27
- export { type GraphQLSchemaOptions, buildGraphQLSchema, createGraphQLSchema };
49
+ export { type GraphQLContext, type GraphQLSchemaOptions, RelationLoader, buildGraphQLSchema, createGraphQLSchema, depthLimit };
@@ -1,27 +1,49 @@
1
1
  import { GraphQLSchema } from 'graphql';
2
2
  export { printSchema } from 'graphql';
3
- import { B as BaseAdapter, i as User, R as Request } from '../types-Dgzlftb7.js';
4
- import { R as Registry } from '../index-ClOqnkTO.js';
5
- import '../types-DeSApf9T.js';
3
+ import { B as BaseAdapter, i as User, R as Request } from '../types-BzH3_rtP.js';
4
+ import { R as Registry } from '../index-jLs0zlft.js';
5
+ import '../types-C_rVxU2T.js';
6
6
  import 'zod';
7
7
 
8
- interface GraphQLSchemaOptions {
9
- registry: Registry;
8
+ interface GraphQLContext {
10
9
  db: BaseAdapter;
10
+ registry: Registry;
11
11
  user?: User;
12
12
  req?: Request;
13
13
  tenantID?: string;
14
14
  apiKey?: any;
15
+ relationLoader: RelationLoader;
16
+ }
17
+ interface LoaderOptions {
18
+ db: BaseAdapter;
19
+ tenantID?: string;
20
+ user?: User;
21
+ }
22
+ declare class RelationLoader {
23
+ private db;
24
+ private tenantID?;
25
+ private user?;
26
+ private caches;
27
+ private pending;
28
+ constructor(opts: LoaderOptions);
29
+ private getCacheKey;
30
+ load(collection: string, id: string): Promise<any | undefined>;
31
+ flushAll(): Promise<void>;
32
+ resolveOne(collection: string, id: string): any | undefined;
33
+ static withBatch<T>(loader: RelationLoader, fn: () => Promise<T>): Promise<T>;
34
+ }
35
+ declare function depthLimit(maxDepth: number): (validationContext: any) => {
36
+ Field(): void;
37
+ leaveField(): void;
38
+ };
39
+ interface GraphQLSchemaOptions {
40
+ registry: Registry;
41
+ db: BaseAdapter;
15
42
  settings?: Record<string, any>;
16
43
  }
17
44
  declare function buildGraphQLSchema(options: GraphQLSchemaOptions): GraphQLSchema;
18
- declare function createGraphQLSchema(registry: Registry, db: BaseAdapter, options?: {
19
- user?: User;
20
- req?: Request;
21
- tenantID?: string;
22
- apiKey?: any;
23
- }): GraphQLSchema & {
45
+ declare function createGraphQLSchema(registry: Registry, db: BaseAdapter): GraphQLSchema & {
24
46
  sdl: string;
25
47
  };
26
48
 
27
- export { type GraphQLSchemaOptions, buildGraphQLSchema, createGraphQLSchema };
49
+ export { type GraphQLContext, type GraphQLSchemaOptions, RelationLoader, buildGraphQLSchema, createGraphQLSchema, depthLimit };
@@ -1,5 +1,5 @@
1
- export { buildGraphQLSchema, createGraphQLSchema, printSchema } from '../chunk-PONTBXR5.js';
2
- import '../chunk-NZEUU7QB.js';
1
+ export { RelationLoader, buildGraphQLSchema, createGraphQLSchema, depthLimit, printSchema } from '../chunk-6DURKQ6W.js';
2
+ import '../chunk-2GXALYKV.js';
3
3
  import '../chunk-L4EZKIEX.js';
4
4
  import '../chunk-4CV4JOE5.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { C as CollectionConfig, G as GlobalConfig, P as PluginConfig } from './types-Ds0tCA3L.cjs';
2
- import { F as Field } from './types-DeSApf9T.cjs';
1
+ import { C as CollectionConfig, G as GlobalConfig, P as PluginConfig } from './types-CY_iNunL.cjs';
2
+ import { F as Field } from './types-C_rVxU2T.cjs';
3
3
  import { ZodTypeAny } from 'zod';
4
4
 
5
5
  interface S3CompatibleConfig {
@@ -1,5 +1,5 @@
1
- import { C as CollectionConfig, G as GlobalConfig, P as PluginConfig } from './types-Dgzlftb7.js';
2
- import { F as Field } from './types-DeSApf9T.js';
1
+ import { C as CollectionConfig, G as GlobalConfig, P as PluginConfig } from './types-BzH3_rtP.js';
2
+ import { F as Field } from './types-C_rVxU2T.js';
3
3
  import { ZodTypeAny } from 'zod';
4
4
 
5
5
  interface S3CompatibleConfig {