@kyro-cms/core 0.12.70 → 0.13.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.
Files changed (232) hide show
  1. package/README.md +6 -0
  2. package/dist/{WebhookService-CGNSlclW.d.ts → WebhookService-BLi5Rz2m.d.ts} +1 -1
  3. package/dist/{WebhookService-CIQPD1We.d.cts → WebhookService-BcuD8tnn.d.cts} +1 -1
  4. package/dist/WebhookService-D5PSI5t6.d.cts +143 -0
  5. package/dist/WebhookService-DPCCn_12.d.ts +143 -0
  6. package/dist/WebhookService-Dncnbgm9.d.cts +143 -0
  7. package/dist/WebhookService-UY5p89Bj.d.ts +143 -0
  8. package/dist/WebhookService-YZXBCRXA.d.ts +143 -0
  9. package/dist/WebhookService-zrDmAx7L.d.cts +143 -0
  10. package/dist/api-handler-graphql.cjs +1 -1
  11. package/dist/api-handler-graphql.js +1 -1
  12. package/dist/api-handler-trpc.cjs +1 -1
  13. package/dist/api-handler-trpc.js +1 -1
  14. package/dist/api-handler.cjs +1 -1
  15. package/dist/api-handler.js +1 -1
  16. package/dist/base-B--L0lCn.d.cts +218 -0
  17. package/dist/base-BVoDPNjJ.d.cts +218 -0
  18. package/dist/{types-CpjuXbe7.d.cts → base-CAb9EYQs.d.ts} +69 -1
  19. package/dist/base-CyG7aF1e.d.cts +218 -0
  20. package/dist/{types-CpjuXbe7.d.ts → base-DOImeJ-F.d.ts} +69 -1
  21. package/dist/base-DbnwE42-.d.cts +218 -0
  22. package/dist/base-NyiSsD-n.d.ts +218 -0
  23. package/dist/base-xflndGDO.d.ts +218 -0
  24. package/dist/bootstrap-E24SGUJP.cjs +1 -0
  25. package/dist/bootstrap-QQ6D3OYG.js +1 -0
  26. package/dist/bootstrap-QVKSKXJF.cjs +1 -0
  27. package/dist/bootstrap-RILR44UM.cjs +1 -0
  28. package/dist/{bootstrap-WB6FDH2T.js → bootstrap-YFVE7MRG.js} +1 -1
  29. package/dist/bootstrap-ZRRUPRUR.js +1 -0
  30. package/dist/chunk-262YP5XA.cjs +1 -0
  31. package/dist/chunk-2FSOHXOU.cjs +56 -0
  32. package/dist/chunk-2OS5Y4LE.cjs +1 -0
  33. package/dist/chunk-2PXXQKN3.cjs +3 -0
  34. package/dist/chunk-355R4LS5.cjs +56 -0
  35. package/dist/chunk-35IVNLMA.js +122 -0
  36. package/dist/{chunk-XVPTVTQC.js → chunk-3GXLOYM3.js} +2 -2
  37. package/dist/chunk-3KZXF4US.js +2 -0
  38. package/dist/{chunk-Z552BTXA.cjs → chunk-3LAWUINR.cjs} +1 -1
  39. package/dist/chunk-3O3AVMWM.cjs +1 -0
  40. package/dist/{chunk-637PTUHF.js → chunk-3TAUNYEM.js} +1 -1
  41. package/dist/chunk-3U6MKWET.cjs +120 -0
  42. package/dist/chunk-4BMWWGJN.js +384 -0
  43. package/dist/chunk-5A7E7N4B.cjs +431 -0
  44. package/dist/chunk-6DD4J7LI.js +2 -0
  45. package/dist/chunk-6GGPY7U2.js +4 -0
  46. package/dist/chunk-6MNLRAKM.cjs +121 -0
  47. package/dist/chunk-6NBZDW53.js +133 -0
  48. package/dist/chunk-73Y63IPP.js +57 -0
  49. package/dist/chunk-7K6ZUNJM.js +4 -0
  50. package/dist/chunk-7NKNSRCB.cjs +448 -0
  51. package/dist/{chunk-IL2TMAHB.cjs → chunk-A35ZP72D.cjs} +3 -3
  52. package/dist/chunk-A3IOQOV6.js +2 -0
  53. package/dist/chunk-A3XVL6ED.cjs +3 -0
  54. package/dist/{chunk-OBH6EEAO.cjs → chunk-APDQ6ZTG.cjs} +5 -5
  55. package/dist/chunk-ATI2UZ7U.js +2 -0
  56. package/dist/chunk-B4AC23SG.js +122 -0
  57. package/dist/chunk-BD6XHMMM.cjs +2 -0
  58. package/dist/chunk-CH4TZZI5.js +449 -0
  59. package/dist/{chunk-TBTQXIHP.js → chunk-CHYVUWZ3.js} +1 -1
  60. package/dist/{chunk-6USPOWA4.js → chunk-CNHUCCQJ.js} +10 -10
  61. package/dist/chunk-CRP6PSCE.js +2 -0
  62. package/dist/chunk-DI6TCZSE.js +122 -0
  63. package/dist/chunk-DORUYZQV.cjs +1 -0
  64. package/dist/chunk-EFKEVWAD.js +4 -0
  65. package/dist/chunk-EI7FRSNY.js +57 -0
  66. package/dist/chunk-EON4XLKQ.cjs +1 -0
  67. package/dist/chunk-EUQAOYEO.cjs +121 -0
  68. package/dist/chunk-EVAUBT7H.js +57 -0
  69. package/dist/chunk-EYHD7HZE.cjs +1 -0
  70. package/dist/chunk-EYYIPA5N.js +432 -0
  71. package/dist/chunk-F2O4QO5N.cjs +383 -0
  72. package/dist/chunk-FBWLSWZ4.js +122 -0
  73. package/dist/{chunk-3XLXKGEU.cjs → chunk-FG3IFGJP.cjs} +1 -1
  74. package/dist/chunk-FGN6IMPY.cjs +3 -0
  75. package/dist/chunk-FK2BG4HU.js +3 -0
  76. package/dist/{chunk-MVZSSTCV.js → chunk-FUFS65Q5.js} +2 -2
  77. package/dist/chunk-GWIZT2P5.js +57 -0
  78. package/dist/chunk-H3FJ54KB.cjs +121 -0
  79. package/dist/chunk-HY3EAWB2.js +4 -0
  80. package/dist/chunk-I6UJVO2P.js +57 -0
  81. package/dist/chunk-IQSF6XRV.js +57 -0
  82. package/dist/chunk-IXGDTAES.js +4 -0
  83. package/dist/chunk-JA44K75G.js +2 -0
  84. package/dist/chunk-K5XGP57D.cjs +19 -0
  85. package/dist/chunk-KEITOXIP.js +2 -0
  86. package/dist/chunk-LPFRMQFQ.js +121 -0
  87. package/dist/chunk-LYU44UNN.cjs +56 -0
  88. package/dist/chunk-MDLJTZLV.cjs +1 -0
  89. package/dist/chunk-MJAODEFC.cjs +121 -0
  90. package/dist/chunk-MYHNTJLR.cjs +56 -0
  91. package/dist/chunk-N2YHO2WI.cjs +3 -0
  92. package/dist/chunk-N4FXLQE3.cjs +132 -0
  93. package/dist/chunk-NPBXLPOP.js +3 -0
  94. package/dist/chunk-ON5XJEPO.cjs +3 -0
  95. package/dist/chunk-OT2Z4XBD.cjs +1 -0
  96. package/dist/chunk-PFTBTWSC.cjs +1 -0
  97. package/dist/chunk-PTPVFLET.js +20 -0
  98. package/dist/chunk-PZDLPRJF.js +4 -0
  99. package/dist/chunk-Q5TFO66G.cjs +1 -0
  100. package/dist/chunk-QUTYCUST.js +4 -0
  101. package/dist/chunk-REKKBAQX.cjs +56 -0
  102. package/dist/chunk-REQ622YC.js +3 -0
  103. package/dist/chunk-RTNQP6BV.js +2 -0
  104. package/dist/chunk-RUJW47ZJ.js +2 -0
  105. package/dist/{chunk-SOCBJPYB.cjs → chunk-RVBSJ4UQ.cjs} +1 -1
  106. package/dist/chunk-RXYCFZJC.cjs +121 -0
  107. package/dist/chunk-RYHOWZLK.js +2 -0
  108. package/dist/chunk-S2MZNEBQ.cjs +1 -0
  109. package/dist/chunk-S73YERS2.js +57 -0
  110. package/dist/chunk-SBNMXQNO.cjs +2 -0
  111. package/dist/chunk-T3DJ3UTP.cjs +121 -0
  112. package/dist/{chunk-ZQETJ4T4.cjs → chunk-TCFL3UWT.cjs} +1 -1
  113. package/dist/chunk-TJZO7ZSX.cjs +3 -0
  114. package/dist/chunk-TKUNRCRH.js +4 -0
  115. package/dist/chunk-TQLCOMKC.js +4 -0
  116. package/dist/chunk-TRXYDWGE.cjs +1 -0
  117. package/dist/chunk-TS55CUNJ.js +57 -0
  118. package/dist/chunk-UFBJ3WOZ.js +2 -0
  119. package/dist/chunk-UQRVQUVR.js +2 -0
  120. package/dist/chunk-UW5W35NP.js +122 -0
  121. package/dist/chunk-VI7WCO2J.cjs +3 -0
  122. package/dist/chunk-W2GPP6RB.js +122 -0
  123. package/dist/chunk-WHOA7YJU.cjs +1 -0
  124. package/dist/chunk-WNRUPL26.js +2 -0
  125. package/dist/chunk-WXT2XW7T.js +13 -0
  126. package/dist/chunk-XFYSADHV.cjs +2 -0
  127. package/dist/chunk-XIAJQLGS.js +2 -0
  128. package/dist/chunk-XK6UB77Q.js +4 -0
  129. package/dist/chunk-Y2VHO66Q.cjs +3 -0
  130. package/dist/chunk-Y5O2OD7J.cjs +3 -0
  131. package/dist/chunk-YARB43JG.cjs +56 -0
  132. package/dist/chunk-YLCEMVYY.cjs +56 -0
  133. package/dist/chunk-YSOM57GK.cjs +3 -0
  134. package/dist/chunk-Z3UVDGYS.cjs +56 -0
  135. package/dist/{chunk-4OMQURN7.js → chunk-ZAKYTBEN.js} +1 -1
  136. package/dist/chunk-ZTLGK6R4.cjs +12 -0
  137. package/dist/chunk-ZUBJ6RLQ.cjs +1 -0
  138. package/dist/cli/index.cjs +1 -1
  139. package/dist/cli/index.js +1 -1
  140. package/dist/client.cjs +109 -1
  141. package/dist/client.d.cts +1242 -6
  142. package/dist/client.d.ts +1242 -6
  143. package/dist/client.js +109 -2
  144. package/dist/drizzle/index.cjs +1 -1
  145. package/dist/drizzle/index.d.cts +3 -4
  146. package/dist/drizzle/index.d.ts +3 -4
  147. package/dist/drizzle/index.js +1 -1
  148. package/dist/fields/index.cjs +1 -1
  149. package/dist/fields/index.d.cts +2 -2
  150. package/dist/fields/index.d.ts +2 -2
  151. package/dist/fields/index.js +1 -1
  152. package/dist/graphql/index.d.cts +3 -3
  153. package/dist/graphql/index.d.ts +3 -3
  154. package/dist/{index-BHYGO3yF.d.cts → index-B9BFNOHd.d.cts} +2 -2
  155. package/dist/index-BMcYFpTv.d.cts +105 -0
  156. package/dist/{index-DTy4k1oU.d.ts → index-BttsFZDa.d.ts} +2 -2
  157. package/dist/index-CxA9uOv0.d.ts +105 -0
  158. package/dist/index-D6AXbuPI.d.ts +105 -0
  159. package/dist/index-DF0KDBaM.d.cts +105 -0
  160. package/dist/index-DG4Xu7gA.d.cts +105 -0
  161. package/dist/index-eHex8Iwj.d.ts +105 -0
  162. package/dist/index.cjs +43 -24
  163. package/dist/index.d.cts +167 -13
  164. package/dist/index.d.ts +167 -13
  165. package/dist/index.js +44 -25
  166. package/dist/lib-A2D63VXD.cjs +1 -0
  167. package/dist/lib-JQD2JAOO.js +2 -0
  168. package/dist/local-KR3AIGVA.cjs +1 -0
  169. package/dist/local-T7GISZBL.js +1 -0
  170. package/dist/mongo-auth-adapter-GR2CFFEA.js +1 -0
  171. package/dist/mongo-auth-adapter-UOO2LZUJ.cjs +1 -0
  172. package/dist/mongodb/index.cjs +1 -1
  173. package/dist/mongodb/index.d.cts +4 -4
  174. package/dist/mongodb/index.d.ts +4 -4
  175. package/dist/mongodb/index.js +1 -1
  176. package/dist/nodemailer-transport-3VWVUBM5.cjs +1 -0
  177. package/dist/nodemailer-transport-7RHATUKL.js +1 -0
  178. package/dist/nodemailer-transport-CHO2WKIY.js +1 -0
  179. package/dist/nodemailer-transport-ED2IXNGW.cjs +1 -0
  180. package/dist/postgres-auth-adapter-SK3N3OSS.js +1 -1
  181. package/dist/postgres-auth-adapter-ZO6HK5AK.cjs +1 -1
  182. package/dist/postgres-js-7YBZKGXG.cjs +1 -0
  183. package/dist/{postgres-js-WE3NBRFO.js → postgres-js-JLFIWOBH.js} +1 -1
  184. package/dist/rest/index.cjs +1 -1
  185. package/dist/rest/index.d.cts +4 -4
  186. package/dist/rest/index.d.ts +4 -4
  187. package/dist/rest/index.js +1 -1
  188. package/dist/templates/index.cjs +1 -1
  189. package/dist/templates/index.d.cts +2 -2
  190. package/dist/templates/index.d.ts +2 -2
  191. package/dist/templates/index.js +1 -1
  192. package/dist/trpc/index.cjs +1 -1
  193. package/dist/trpc/index.d.cts +3 -3
  194. package/dist/trpc/index.d.ts +3 -3
  195. package/dist/trpc/index.js +1 -1
  196. package/dist/types-B5Qz1svz.d.cts +822 -0
  197. package/dist/types-Bii0bhUV.d.cts +329 -0
  198. package/dist/types-Bii0bhUV.d.ts +329 -0
  199. package/dist/{types-CeAQSR87.d.cts → types-Bt2_ycUO.d.ts} +37 -2
  200. package/dist/types-C4wXHImf.d.ts +822 -0
  201. package/dist/types-DCWgPFmi.d.cts +822 -0
  202. package/dist/types-DROqAsr0.d.cts +330 -0
  203. package/dist/types-DROqAsr0.d.ts +330 -0
  204. package/dist/{types-BKPEavuy.d.cts → types-DlGSbh7I.d.cts} +1 -1
  205. package/dist/{types-BKPEavuy.d.ts → types-DlGSbh7I.d.ts} +1 -1
  206. package/dist/types-DsF64Wrc.d.cts +811 -0
  207. package/dist/{types-BWJx6zzm.d.ts → types-ZrjEVWfi.d.ts} +37 -2
  208. package/dist/types-dEy5JxvN.d.ts +822 -0
  209. package/dist/types-tVJc9YbX.d.cts +811 -0
  210. package/dist/ws/index.cjs +1 -1
  211. package/dist/ws/index.d.cts +121 -1
  212. package/dist/ws/index.d.ts +121 -1
  213. package/dist/ws/index.js +1 -1
  214. package/package.json +2 -2
  215. package/dist/base-Ds06wMo9.d.cts +0 -69
  216. package/dist/base-DxDXLyWe.d.ts +0 -69
  217. package/dist/bootstrap-XDT4MRML.cjs +0 -1
  218. package/dist/chunk-5M3FKE2V.js +0 -2
  219. package/dist/chunk-7FXEXHK6.js +0 -21
  220. package/dist/chunk-JSTDCK3Z.js +0 -2
  221. package/dist/chunk-JT36FTHY.cjs +0 -20
  222. package/dist/chunk-L2QXP26Q.js +0 -2
  223. package/dist/chunk-MRR7OTRX.js +0 -57
  224. package/dist/chunk-MVX2PYJJ.cjs +0 -1
  225. package/dist/chunk-MYGHZQMO.cjs +0 -1
  226. package/dist/chunk-OUAR4ZCU.cjs +0 -56
  227. package/dist/chunk-WCFHS7EZ.cjs +0 -1
  228. package/dist/index-D7kt5jT_.d.ts +0 -97
  229. package/dist/index-DPtCjn94.d.cts +0 -97
  230. package/dist/postgres-js-GXZX3AGZ.cjs +0 -1
  231. /package/dist/{chunk-XTTGHN3D.cjs → chunk-FLS2FJM6.cjs} +0 -0
  232. /package/dist/{chunk-KWGB3YNI.js → chunk-PFKVHUOT.js} +0 -0
package/dist/client.js CHANGED
@@ -1,2 +1,109 @@
1
- export{a as CSSGenerator,g as createAdminStyling,d as defaultDarkTheme,h as defaultFieldStyling,c as defaultLightTheme,e as ecommerce2026Theme,f as generateCSSVariables,b as generateTailwindConfig}from'./chunk-7FXEXHK6.js';export{q as ALL_FIELD_TYPES,u as renderRichText,s as richTextStyles}from'./chunk-ZRIBWDYJ.js';export{a as FIELD_DEFINITION_KEYS,e as applyBlocksOverrides,g as applyCollectionOverrides,h as applyGlobalOverrides,f as applyTabsOverrides,c as flattenFieldOverrides,b as isFieldOverrideDefinition,d as updateFieldByPath}from'./chunk-JSTDCK3Z.js';import'./chunk-D6SDGHY6.js';export{a as createAuditContext}from'./chunk-L2QXP26Q.js';import'./chunk-7MNDQU6K.js';import {g}from'./chunk-Y2YAKDEQ.js';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
2
- g();
1
+ import {generateHTML}from'@tiptap/html';import M from'@tiptap/starter-kit';import N from'@tiptap/extension-link';import V from'@tiptap/extension-image';import _ from'@tiptap/extension-text-align';import H from'@tiptap/extension-underline';import q from'@tiptap/extension-highlight';import G from'@tiptap/extension-task-list';import U from'@tiptap/extension-task-item';import {TextStyle}from'@tiptap/extension-text-style';import Y from'@tiptap/extension-color';var I=["text","number","checkbox","date","email","password","textarea","select","radio","color","icon"],P=["richtext","json","code","upload","image","markdown","embedding"],L=["relationship","array","group","blocks"],$=["row","collapsible","tabs"],j=[...I,...P,...L,...$];var J=`
2
+ .kyro-richtext {
3
+ color: inherit;
4
+ line-height: 1.7;
5
+ }
6
+
7
+ .kyro-richtext > *:first-child {
8
+ margin-top: 0;
9
+ }
10
+
11
+ .kyro-richtext > *:last-child {
12
+ margin-bottom: 0;
13
+ }
14
+
15
+ .kyro-richtext p,
16
+ .kyro-richtext ul,
17
+ .kyro-richtext ol,
18
+ .kyro-richtext blockquote,
19
+ .kyro-richtext pre {
20
+ margin: 0 0 1rem;
21
+ }
22
+
23
+ .kyro-richtext h1,
24
+ .kyro-richtext h2,
25
+ .kyro-richtext h3,
26
+ .kyro-richtext h4,
27
+ .kyro-richtext h5,
28
+ .kyro-richtext h6 {
29
+ margin: 0 0 0.75rem;
30
+ line-height: 1.2;
31
+ }
32
+
33
+ .kyro-richtext ul,
34
+ .kyro-richtext ol {
35
+ padding-left: 1.5rem;
36
+ }
37
+
38
+ .kyro-richtext blockquote {
39
+ border-left: 4px solid rgba(148, 163, 184, 0.5);
40
+ margin-left: 0;
41
+ padding-left: 1rem;
42
+ font-style: italic;
43
+ }
44
+
45
+ .kyro-richtext pre {
46
+ overflow-x: auto;
47
+ border-radius: 0.75rem;
48
+ background: rgba(15, 23, 42, 0.92);
49
+ color: #f8fafc;
50
+ padding: 1rem;
51
+ }
52
+
53
+ .kyro-richtext code {
54
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
55
+ }
56
+
57
+ .kyro-richtext img {
58
+ display: block;
59
+ max-width: 100%;
60
+ height: auto;
61
+ border-radius: 0.75rem;
62
+ }
63
+
64
+ .kyro-richtext ul[data-type="taskList"] {
65
+ list-style: none;
66
+ padding: 0;
67
+ }
68
+
69
+ .kyro-richtext li[data-type="taskItem"] {
70
+ display: flex;
71
+ align-items: flex-start;
72
+ gap: 0.5rem;
73
+ }
74
+
75
+ .kyro-richtext li[data-type="taskItem"] > label {
76
+ user-select: none;
77
+ pointer-events: none;
78
+ margin-top: 0.2rem;
79
+ }
80
+
81
+ .kyro-richtext li[data-type="taskItem"] > div {
82
+ flex: 1;
83
+ }
84
+
85
+ .kyro-richtext mark {
86
+ background-color: #fef08a;
87
+ border-radius: 0.25rem;
88
+ padding: 0.125rem 0.25rem;
89
+ }
90
+ `.trim(),K=[M,N.configure({openOnClick:false}),V,_.configure({types:["heading","paragraph"]}),H,q.configure({multicolor:true}),G,U.configure({nested:true}),TextStyle,Y];function W(r){if(typeof r!="object"||r===null)return "";try{return `<div class="kyro-richtext">${generateHTML(r,K)}</div>`}catch(i){return console.error("Failed to render rich text:",i),""}}var k=class{constructor(i){this.config=i;}config;css=[];addRule(i,e){let s=Object.entries(e).map(([t,n])=>` ${t}: ${n};`).join(`
91
+ `);return this.css.push(`${i} {
92
+ ${s}
93
+ }`),this}addMediaQuery(i,e){return this.css.push(`@media (min-width: ${i}) {
94
+ ${e.join(`
95
+ `)}
96
+ }`),this}generate(){return this.css.join(`
97
+
98
+ `)}};function Q(r){return {theme:{extend:{colors:r.colors||{},fontFamily:r.fonts||{},spacing:r.spacing||{},borderRadius:r.borderRadius||{},boxShadow:r.shadows||{},screens:r.breakpoints||{}}}}}var h={colors:{primary:"#3b82f6",secondary:"#6366f1",accent:"#ec4899",background:"#ffffff",surface:"#f9fafb",text:"#111827",textMuted:"#6b7280",border:"#e5e7eb",error:"#ef4444",warning:"#f59e0b",success:"#10b981",info:"#3b82f6"},fonts:{sans:"system-ui, -apple-system, sans-serif",serif:"Georgia, serif",mono:"Menlo, monospace"},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem"},borderRadius:{sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem",full:"9999px"},shadows:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1)"}},X={colors:{primary:"#60a5fa",secondary:"#818cf8",accent:"#f472b6",background:"#111827",surface:"#1f2937",text:"#f9fafb",textMuted:"#9ca3af",border:"#374151",error:"#f87171",warning:"#fbbf24",success:"#34d399",info:"#60a5fa"},fonts:h.fonts,spacing:h.spacing,borderRadius:h.borderRadius,shadows:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.3)",md:"0 4px 6px -1px rgb(0 0 0 / 0.4)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.5)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.6)"}},Z={colors:{primary:"#FF6B35",secondary:"#1A1A2E",accent:"#16C79A",background:"#FFFFFF",surface:"#F8F9FA",text:"#1A1A2E",textMuted:"#6B7280",border:"#E5E7EB",error:"#EF4444",warning:"#F59E0B",success:"#16C79A",info:"#3B82F6"},fonts:{sans:'"Inter", "Satoshi", system-ui, sans-serif',serif:'"Playfair Display", Georgia, serif',mono:'"JetBrains Mono", monospace'},spacing:{xs:"0.125rem",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"1.5rem","2xl":"2rem","3xl":"3rem","4xl":"4rem"},borderRadius:{sm:"0",md:"0",lg:"0",xl:"0",full:"9999px"},shadows:{sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 4px 6px rgba(0,0,0,0.07)",lg:"0 10px 15px rgba(0,0,0,0.1)",xl:"0 20px 25px rgba(0,0,0,0.15)"}};function w(r){let i=[];if(r.colors)for(let[e,s]of Object.entries(r.colors))i.push(` --color-${e}: ${s};`);if(r.fonts)for(let[e,s]of Object.entries(r.fonts))i.push(` --font-${e}: ${s};`);if(r.spacing)for(let[e,s]of Object.entries(r.spacing))i.push(` --spacing-${e}: ${s};`);if(r.borderRadius)for(let[e,s]of Object.entries(r.borderRadius))i.push(` --radius-${e}: ${s};`);if(r.shadows)for(let[e,s]of Object.entries(r.shadows))i.push(` --shadow-${e}: ${s};`);return `:root {
99
+ ${i.join(`
100
+ `)}
101
+ }`}function ee(r){let i=w(r.theme||h),e=[];if(r.componentOverrides)for(let[s,t]of Object.entries(r.componentOverrides)){let n=Object.entries(t).map(([a,f])=>` ${a}: ${f};`).join(`
102
+ `);e.push(`${s} {
103
+ ${n}
104
+ }`);}return `
105
+ ${i}
106
+ ${r.customStyles||""}
107
+ ${e.join(`
108
+ `)}
109
+ `}var re={text:{wrapper:{marginBottom:"var(--spacing-md)"},label:{display:"block",marginBottom:"var(--spacing-xs)",fontWeight:"500",color:"var(--color-text)"},input:{width:"100%",padding:"var(--spacing-sm) var(--spacing-md)",border:"1px solid var(--color-border)",borderRadius:"var(--radius-md)",fontSize:"0.875rem"},error:{color:"var(--color-error)",fontSize:"0.75rem",marginTop:"var(--spacing-xs)"}},number:{wrapper:{marginBottom:"var(--spacing-md)"},label:{display:"block",marginBottom:"var(--spacing-xs)",fontWeight:"500"},input:{width:"100%",padding:"var(--spacing-sm) var(--spacing-md)",border:"1px solid var(--color-border)",borderRadius:"var(--radius-md)"}},checkbox:{wrapper:{display:"flex",alignItems:"center",gap:"var(--spacing-sm)"},input:{width:"1rem",height:"1rem"},label:{cursor:"pointer"}},select:{wrapper:{marginBottom:"var(--spacing-md)"},input:{width:"100%",padding:"var(--spacing-sm) var(--spacing-md)",border:"1px solid var(--color-border)",borderRadius:"var(--radius-md)",backgroundColor:"white"}}};function te(r){return {ipAddress:r.headers.get("x-forwarded-for")?.split(",")[0]?.trim()||r.headers.get("x-real-ip")||"unknown",userAgent:r.headers.get("user-agent")||"unknown"}}var v=new Set(["type","admin","label","singularLabel","labelPlural","relationTo","required","hasMany","defaultValue","validate","options","dynamicOptions","filterOptions","hooks","min","max","minLength","maxLength","minRows","maxRows","minDate","maxDate","step","integer","variant","pattern","format","fields","tabs","blocks"]);function C(r){return typeof r!="object"||r===null||Array.isArray(r)?false:Object.keys(r).some(i=>v.has(i))}function F(r,i=""){let e={};for(let[s,t]of Object.entries(r)){let n=i?`${i}.${s}`:s;t&&typeof t=="object"&&!Array.isArray(t)&&!C(t)?Object.assign(e,F(t,n)):e[n]=t;}return e}function y(r,i,e,s=true){let t=i.split(".");if(t.length===0)return false;let n=t[0],a=t.slice(1).join("."),f=n.match(/^(?:tab|tabs)\[(.+?)\]$/i);if(f){let o=f[1].toLowerCase();for(let u of r)if(u.type==="tabs"&&u.tabs&&Array.isArray(u.tabs)){for(let l of u.tabs)if((l.label||l.name||"").toLowerCase()===o&&l.fields&&Array.isArray(l.fields))return y(l.fields,a,e,s)}return false}for(let o of r){if(o.name===n)if(a){if(o.fields&&Array.isArray(o.fields))return y(o.fields,a,e,s);if(o.type==="tabs"&&o.tabs&&Array.isArray(o.tabs)){for(let l of o.tabs)if(l.fields&&Array.isArray(l.fields)&&y(l.fields,a,e,s))return true;return false}if(o.type==="blocks"&&o.blocks&&Array.isArray(o.blocks)){let l=a.split(".")[0],g=a.split(".").slice(1).join(".");if(!g)return false;for(let d of o.blocks)if(d.slug===l&&d.fields&&Array.isArray(d.fields))return y(d.fields,g,e,s);return false}return o.type==="array"&&o.fields&&Array.isArray(o.fields)?y(o.fields,a,e,s):false}else return Object.assign(o,e),true;if(o.type==="blocks"&&o.blocks&&Array.isArray(o.blocks)){for(let l of o.blocks)if(l.slug===n&&l.fields&&Array.isArray(l.fields)&&y(l.fields,a,e,s))return true}if(!o.name||o.type==="tabs"||o.type==="row"||o.type==="collapsible"){if(o.fields&&Array.isArray(o.fields)&&y(o.fields,i,e,false))return true;if(o.type==="tabs"&&o.tabs&&Array.isArray(o.tabs)){for(let l of o.tabs)if(l.fields&&Array.isArray(l.fields)&&y(l.fields,i,e,false))return true}}}return s&&!a&&e&&e.type?(r.push({name:n,...e}),true):false}function T(r,i){if(!i)return;let e=Array.isArray(i)?i:Object.entries(i).map(([t,n])=>({slug:n?.slug||t,...n}));function s(t){for(let n of t){if(n.type==="blocks"){Array.isArray(n.blocks)||(n.blocks=[]);for(let a of e){let f=n.blocks.findIndex(o=>o.slug===a.slug);f>=0?n.blocks[f]={...n.blocks[f],...a}:n.blocks.push(a);}return true}if(n.fields&&Array.isArray(n.fields)&&s(n.fields))return true;if(n.type==="tabs"&&n.tabs&&Array.isArray(n.tabs)){for(let a of n.tabs)if(a.fields&&Array.isArray(a.fields)&&s(a.fields))return true}}return false}s(r);}function R(r,i){if(!i)return;let e=Array.isArray(i)?i:Object.entries(i).map(([t,n])=>({label:n?.label||t,...Array.isArray(n)?{fields:n}:n})),s=r.find(t=>t.type==="tabs");if(s&&Array.isArray(s.tabs))for(let t of e){let n=s.tabs.find(a=>(a.label||a.name||"").toLowerCase()===(t.label||t.name||"").toLowerCase());n?(t.fields&&Array.isArray(t.fields)&&(Array.isArray(n.fields)||(n.fields=[]),n.fields.push(...t.fields)),Object.assign(n,t)):s.tabs.push(t);}else {let t=[...r];r.length=0,r.push({type:"tabs",tabs:[{label:"General",fields:t},...e]});}}function ie(r,i){if(i)for(let e of r){let s=i[e.slug];if(s){let{fields:t,blocks:n,tabs:a,labels:f,label:o,singularLabel:u,labelPlural:l,hidden:g,timestamps:d,versions:b,seo:c,access:p,hooks:m,admin:x,...A}=s;if(o&&(e.label=o),u&&(e.singularLabel=u),l&&(e.labelPlural=l),f&&(f.singular&&(e.singularLabel=f.singular),f.plural&&(e.labelPlural=f.plural)),d!==void 0&&(e.timestamps=d),b!==void 0&&(e.versions={...e.versions,...b}),c!==void 0&&(e.seo=c),p&&(e.access={...e.access,...p}),m&&(e.hooks={...e.hooks,...m}),(x||A)&&(e.admin={...e.admin,...x,...A}),n&&T(e.fields,n),a&&R(e.fields,a),t){let B=F(t);for(let[O,D]of Object.entries(B))y(e.fields,O,D);}}}}function ne(r,i){if(i)for(let e of r){let s=i[e.slug];if(s){let{fields:t,blocks:n,tabs:a,label:f,hidden:o,versions:u,access:l,hooks:g,admin:d,...b}=s;if(f&&(e.label=f),u!==void 0&&(e.versions={...e.versions,...u}),l&&(e.access={...e.access,...l}),g&&(e.hooks={...e.hooks,...g}),(d||b)&&(e.admin={...e.admin,...d,...b}),n&&T(e.fields,n),a&&R(e.fields,a),t){let c=F(t);for(let[p,m]of Object.entries(c))y(e.fields,p,m);}}}}function se(r,i={}){let{idField:e="id",parentField:s="parent",slugField:t="slug",slugPrefix:n=true,basePath:a="",maxDepth:f=10}=i,o=new Map,u=[];for(let g of r){let d=g[e];d!=null&&o.set(d,{doc:g,id:d,slug:g[t],depth:0,path:"",fullPath:"",children:[]});}for(let g of r){let d=g[e],b=o.get(d);if(!b)continue;let c=g[s];c&&typeof c=="object"&&(c=c[e]||c.id||c._id),c&&o.has(c)?o.get(c).children.push(b):u.push(b);}function l(g,d,b){if(!(d>f))for(let c of g){c.depth=d;let p=c.slug||String(c.id),m="";n?m=b?`${b}/${p}`:a?`${a.replace(/\/$/,"")}/${p}`:`/${p}`:m=a?`${a.replace(/\/$/,"")}/${p}`:`/${p}`,c.path=m,c.fullPath=m,c.children.length>0&&l(c.children,d+1,c.path);}}return l(u,0,""),u}function S(r,i,e={}){let s,t;Array.isArray(r)?(s=r,t=i):(t=r,s=i);let{idField:n="id",parentField:a="parent",labelField:f="title",slugField:o="slug",basePath:u=""}=e,l=new Map;for(let p of s){let m=p[n];m!=null&&l.set(m,p);}let g=[],d=t,b=new Set;for(;d!==void 0&&l.has(d)&&!b.has(d);){b.add(d);let p=l.get(d),m=p[f]||p.name||p.label||p[o]||String(d);g.unshift({id:d,label:m,slug:p[o]});let x=p[a];x&&typeof x=="object"&&(x=x[n]||x.id||x._id),d=x;}let c=u?u.replace(/\/$/,""):"";return g.map(p=>{let m=p.slug||String(p.id);return c=`${c}/${m}`,{...p,path:c}})}function oe(r,i,e={}){let s=S(r,i,e);return s[s.length-1]?.path||(e.basePath?e.basePath:"/")}function ae(r){let i=[];function e(s){for(let t of s)i.push({doc:t.doc,id:t.id,depth:t.depth,path:t.path,fullPath:t.fullPath,hasChildren:t.children.length>0}),t.children.length>0&&e(t.children);}return e(r),i}export{j as ALL_FIELD_TYPES,k as CSSGenerator,v as FIELD_DEFINITION_KEYS,T as applyBlocksOverrides,ie as applyCollectionOverrides,ne as applyGlobalOverrides,R as applyTabsOverrides,se as buildDocumentTree,ee as createAdminStyling,te as createAuditContext,X as defaultDarkTheme,re as defaultFieldStyling,h as defaultLightTheme,Z as ecommerce2026Theme,ae as flattenDocumentTree,F as flattenFieldOverrides,w as generateCSSVariables,Q as generateTailwindConfig,S as getBreadcrumbs,oe as getNestedPath,C as isFieldOverrideDefinition,W as renderRichText,J as richTextStyles,y as updateFieldByPath};
@@ -1 +1 @@
1
- 'use strict';var chunkIL2TMAHB_cjs=require('../chunk-IL2TMAHB.cjs');require('../chunk-7ACHOBWY.cjs');var chunkZQETJ4T4_cjs=require('../chunk-ZQETJ4T4.cjs'),chunkXBQ6HV3T_cjs=require('../chunk-XBQ6HV3T.cjs');require('../chunk-7JWQ2PZP.cjs'),require('../chunk-NGNJSUGL.cjs'),require('../chunk-SOCBJPYB.cjs'),require('../chunk-GNOSG3PK.cjs'),require('../chunk-BCEE4NBZ.cjs'),require('../chunk-LY7N3UHH.cjs'),require('../chunk-BAVN7VDR.cjs'),require('../chunk-VRZC4TTF.cjs'),require('../chunk-VQ53TFYA.cjs'),require('../chunk-F4ITQ6XQ.cjs'),require('../chunk-HTYVI2HK.cjs'),require('../chunk-ZOVH6QT5.cjs'),require('../chunk-7WMMKGEO.cjs'),require('../chunk-BUNLC3II.cjs');Object.defineProperty(exports,"DrizzleAdapter",{enumerable:true,get:function(){return chunkIL2TMAHB_cjs.c}});Object.defineProperty(exports,"collectionToDrizzleSchema",{enumerable:true,get:function(){return chunkIL2TMAHB_cjs.b}});Object.defineProperty(exports,"createDrizzleAdapter",{enumerable:true,get:function(){return chunkIL2TMAHB_cjs.d}});Object.defineProperty(exports,"fieldToDrizzleType",{enumerable:true,get:function(){return chunkIL2TMAHB_cjs.a}});Object.defineProperty(exports,"createDatabase",{enumerable:true,get:function(){return chunkZQETJ4T4_cjs.b}});Object.defineProperty(exports,"runMigrations",{enumerable:true,get:function(){return chunkZQETJ4T4_cjs.c}});Object.defineProperty(exports,"seedDefaultRoles",{enumerable:true,get:function(){return chunkZQETJ4T4_cjs.d}});Object.defineProperty(exports,"PostgresAuthAdapter",{enumerable:true,get:function(){return chunkXBQ6HV3T_cjs.a}});
1
+ 'use strict';var chunkN4FXLQE3_cjs=require('../chunk-N4FXLQE3.cjs');require('../chunk-7ACHOBWY.cjs');var chunkTCFL3UWT_cjs=require('../chunk-TCFL3UWT.cjs'),chunkXBQ6HV3T_cjs=require('../chunk-XBQ6HV3T.cjs');require('../chunk-7JWQ2PZP.cjs'),require('../chunk-RVBSJ4UQ.cjs'),require('../chunk-GNOSG3PK.cjs'),require('../chunk-LY7N3UHH.cjs'),require('../chunk-BAVN7VDR.cjs'),require('../chunk-NGNJSUGL.cjs'),require('../chunk-BCEE4NBZ.cjs'),require('../chunk-VRZC4TTF.cjs'),require('../chunk-VQ53TFYA.cjs'),require('../chunk-F4ITQ6XQ.cjs'),require('../chunk-HTYVI2HK.cjs'),require('../chunk-ZUBJ6RLQ.cjs'),require('../chunk-7WMMKGEO.cjs'),require('../chunk-BUNLC3II.cjs');Object.defineProperty(exports,"DrizzleAdapter",{enumerable:true,get:function(){return chunkN4FXLQE3_cjs.c}});Object.defineProperty(exports,"collectionToDrizzleSchema",{enumerable:true,get:function(){return chunkN4FXLQE3_cjs.b}});Object.defineProperty(exports,"createDrizzleAdapter",{enumerable:true,get:function(){return chunkN4FXLQE3_cjs.d}});Object.defineProperty(exports,"fieldToDrizzleType",{enumerable:true,get:function(){return chunkN4FXLQE3_cjs.a}});Object.defineProperty(exports,"createDatabase",{enumerable:true,get:function(){return chunkTCFL3UWT_cjs.b}});Object.defineProperty(exports,"runMigrations",{enumerable:true,get:function(){return chunkTCFL3UWT_cjs.c}});Object.defineProperty(exports,"seedDefaultRoles",{enumerable:true,get:function(){return chunkTCFL3UWT_cjs.d}});Object.defineProperty(exports,"PostgresAuthAdapter",{enumerable:true,get:function(){return chunkXBQ6HV3T_cjs.a}});
@@ -1,8 +1,7 @@
1
- import { A as AbstractBaseAdapter } from '../base-Ds06wMo9.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, f as FindOneArgs } from '../types-CeAQSR87.cjs';
1
+ import { b as AbstractBaseAdapter, c as AuthAdapter, U as UserRole, d as AuthUser, S as Session, a as AuditLogFilter, A as AuditLog } from '../base-CyG7aF1e.cjs';
2
+ import { C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, U as UpdateArgs, D as DeleteArgs, e as FindOneArgs } from '../types-B5Qz1svz.cjs';
3
3
  import { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
4
- import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-CpjuXbe7.cjs';
5
- import { F as Field } from '../types-BKPEavuy.cjs';
4
+ import { F as Field } from '../types-DROqAsr0.cjs';
6
5
 
7
6
  declare function fieldToDrizzleType(field: Field, dialect?: 'postgres' | 'sqlite'): string;
8
7
  declare function collectionToDrizzleSchema(collection: CollectionConfig, dialect?: 'postgres' | 'sqlite'): string;
@@ -1,8 +1,7 @@
1
- import { A as AbstractBaseAdapter } from '../base-DxDXLyWe.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, f as FindOneArgs } from '../types-BWJx6zzm.js';
1
+ import { b as AbstractBaseAdapter, c as AuthAdapter, U as UserRole, d as AuthUser, S as Session, a as AuditLogFilter, A as AuditLog } from '../base-CAb9EYQs.js';
2
+ import { C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, U as UpdateArgs, D as DeleteArgs, e as FindOneArgs } from '../types-C4wXHImf.js';
3
3
  import { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
4
- import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-CpjuXbe7.js';
5
- import { F as Field } from '../types-BKPEavuy.js';
4
+ import { F as Field } from '../types-DROqAsr0.js';
6
5
 
7
6
  declare function fieldToDrizzleType(field: Field, dialect?: 'postgres' | 'sqlite'): string;
8
7
  declare function collectionToDrizzleSchema(collection: CollectionConfig, dialect?: 'postgres' | 'sqlite'): string;
@@ -1 +1 @@
1
- export{c as DrizzleAdapter,b as collectionToDrizzleSchema,d as createDrizzleAdapter,a as fieldToDrizzleType}from'../chunk-MVZSSTCV.js';import'../chunk-JV4HJBXW.js';export{b as createDatabase,c as runMigrations,d as seedDefaultRoles}from'../chunk-4OMQURN7.js';export{a as PostgresAuthAdapter}from'../chunk-ZWDBPEXL.js';import'../chunk-47CXBWMA.js';import'../chunk-EML5FDUU.js';import'../chunk-637PTUHF.js';import'../chunk-N5POANYV.js';import'../chunk-HRAY65XH.js';import'../chunk-2HA6EKXX.js';import'../chunk-FLMUMPDE.js';import'../chunk-3NSZZCOJ.js';import'../chunk-SLMIYECU.js';import'../chunk-P6JITOFF.js';import'../chunk-7NH7H3WA.js';import'../chunk-VVVCCB6R.js';import'../chunk-TBHNE4VV.js';import'../chunk-Y2YAKDEQ.js';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
1
+ export{c as DrizzleAdapter,b as collectionToDrizzleSchema,d as createDrizzleAdapter,a as fieldToDrizzleType}from'../chunk-6NBZDW53.js';import'../chunk-JV4HJBXW.js';export{b as createDatabase,c as runMigrations,d as seedDefaultRoles}from'../chunk-ZAKYTBEN.js';export{a as PostgresAuthAdapter}from'../chunk-ZWDBPEXL.js';import'../chunk-47CXBWMA.js';import'../chunk-3TAUNYEM.js';import'../chunk-N5POANYV.js';import'../chunk-2HA6EKXX.js';import'../chunk-FLMUMPDE.js';import'../chunk-EML5FDUU.js';import'../chunk-HRAY65XH.js';import'../chunk-3NSZZCOJ.js';import'../chunk-SLMIYECU.js';import'../chunk-P6JITOFF.js';import'../chunk-7NH7H3WA.js';import'../chunk-JA44K75G.js';import'../chunk-TBHNE4VV.js';import'../chunk-Y2YAKDEQ.js';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
@@ -1 +1 @@
1
- 'use strict';var chunkQC4YXUBT_cjs=require('../chunk-QC4YXUBT.cjs'),chunkKMFLHGD5_cjs=require('../chunk-KMFLHGD5.cjs');require('../chunk-73D2PNHD.cjs'),require('../chunk-BUNLC3II.cjs');Object.defineProperty(exports,"ALL_FIELD_TYPES",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.q}});Object.defineProperty(exports,"COMPLEX_FIELD_TYPES",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.n}});Object.defineProperty(exports,"LAYOUT_FIELD_TYPES",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.p}});Object.defineProperty(exports,"PRIMITIVE_FIELD_TYPES",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.m}});Object.defineProperty(exports,"RELATIONAL_FIELD_TYPES",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.o}});Object.defineProperty(exports,"createRelationshipFieldConfig",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.r}});Object.defineProperty(exports,"isArrayField",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.d}});Object.defineProperty(exports,"isBlocksField",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.f}});Object.defineProperty(exports,"isGroupField",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.e}});Object.defineProperty(exports,"isIconField",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.l}});Object.defineProperty(exports,"isImageField",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.h}});Object.defineProperty(exports,"isLayoutField",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.k}});Object.defineProperty(exports,"isNumberField",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.b}});Object.defineProperty(exports,"isRelationshipField",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.c}});Object.defineProperty(exports,"isRichTextField",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.i}});Object.defineProperty(exports,"isSelectField",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.j}});Object.defineProperty(exports,"isTextField",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.a}});Object.defineProperty(exports,"isUploadField",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.g}});Object.defineProperty(exports,"normalizeRichTextValue",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.t}});Object.defineProperty(exports,"renderRichText",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.u}});Object.defineProperty(exports,"richTextStyles",{enumerable:true,get:function(){return chunkQC4YXUBT_cjs.s}});Object.defineProperty(exports,"generateSEOFields",{enumerable:true,get:function(){return chunkKMFLHGD5_cjs.a}});
1
+ 'use strict';var chunkF2O4QO5N_cjs=require('../chunk-F2O4QO5N.cjs'),chunkKMFLHGD5_cjs=require('../chunk-KMFLHGD5.cjs');require('../chunk-73D2PNHD.cjs'),require('../chunk-BUNLC3II.cjs');Object.defineProperty(exports,"ALL_FIELD_TYPES",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.r}});Object.defineProperty(exports,"COMPLEX_FIELD_TYPES",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.o}});Object.defineProperty(exports,"LAYOUT_FIELD_TYPES",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.q}});Object.defineProperty(exports,"PRIMITIVE_FIELD_TYPES",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.n}});Object.defineProperty(exports,"RELATIONAL_FIELD_TYPES",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.p}});Object.defineProperty(exports,"createRelationshipFieldConfig",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.s}});Object.defineProperty(exports,"isArrayField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.d}});Object.defineProperty(exports,"isBlocksField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.f}});Object.defineProperty(exports,"isEmbeddingField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.m}});Object.defineProperty(exports,"isGroupField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.e}});Object.defineProperty(exports,"isIconField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.l}});Object.defineProperty(exports,"isImageField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.h}});Object.defineProperty(exports,"isLayoutField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.k}});Object.defineProperty(exports,"isNumberField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.b}});Object.defineProperty(exports,"isRelationshipField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.c}});Object.defineProperty(exports,"isRichTextField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.i}});Object.defineProperty(exports,"isSelectField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.j}});Object.defineProperty(exports,"isTextField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.a}});Object.defineProperty(exports,"isUploadField",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.g}});Object.defineProperty(exports,"normalizeRichTextValue",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.u}});Object.defineProperty(exports,"renderRichText",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.v}});Object.defineProperty(exports,"richTextStyles",{enumerable:true,get:function(){return chunkF2O4QO5N_cjs.t}});Object.defineProperty(exports,"generateSEOFields",{enumerable:true,get:function(){return chunkKMFLHGD5_cjs.a}});
@@ -1,5 +1,5 @@
1
- import { F as Field } from '../types-BKPEavuy.cjs';
2
- export { A as ALL_FIELD_TYPES, t as ActionField, a as ArrayField, B as BaseField, b as Block, c as BlockAdmin, d as BlockImage, e as BlocksField, u as ButtonField, v as COMPLEX_FIELD_TYPES, C as CheckboxField, f as CodeField, g as CollapsibleField, h as ColorField, D as DateField, i as DeclarativeCondition, E as EmailField, j as FieldAdmin, k as FieldType, G as GroupField, H as Hook, I as IconField, l as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, w as ListField, M as MarkdownField, N as NumberField, x as PRIMITIVE_FIELD_TYPES, P as PasswordField, y as RELATIONAL_FIELD_TYPES, R as RadioField, m as RelationshipField, n as RichTextBlock, o as RichTextField, p as RowField, S as SecretField, q as SelectField, T as TabsField, r as TextField, z as TextFieldVariant, s as TextareaField, U as UploadField, V as ValidateOptions, K as createRelationshipFieldConfig, O as isArrayField, Q as isBlocksField, W as isGroupField, X as isIconField, Y as isImageField, Z as isLayoutField, _ as isNumberField, $ as isRelationshipField, a0 as isRichTextField, a1 as isSelectField, a2 as isTextField, a3 as isUploadField } from '../types-BKPEavuy.cjs';
1
+ import { F as Field } from '../types-DROqAsr0.cjs';
2
+ export { A as ALL_FIELD_TYPES, a as ActionField, b as ArrayField, B as BaseField, c as Block, d as BlockAdmin, e as BlockImage, f as BlocksField, g as ButtonField, C as COMPLEX_FIELD_TYPES, h as CheckboxField, i as CodeField, j as CollapsibleField, k as ColorField, D as DateField, l as DeclarativeCondition, E as EmailField, m as EmbeddingField, n as FieldAccess, o as FieldAdmin, p as FieldType, G as GroupField, H as Hook, I as IconField, q as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, r as ListField, M as MarkdownField, N as NumberField, P as PRIMITIVE_FIELD_TYPES, s as PasswordField, R as RELATIONAL_FIELD_TYPES, t as RadioField, u as RelationshipField, v as RichTextBlock, w as RichTextField, x as RowField, S as SecretField, y as SelectField, T as TabsField, z as TextField, K as TextFieldVariant, O as TextareaField, U as UploadField, V as ValidateOptions, Q as createRelationshipFieldConfig, W as isArrayField, X as isBlocksField, Y as isEmbeddingField, Z as isGroupField, _ as isIconField, $ as isImageField, a0 as isLayoutField, a1 as isNumberField, a2 as isRelationshipField, a3 as isRichTextField, a4 as isSelectField, a5 as isTextField, a6 as isUploadField } from '../types-DROqAsr0.cjs';
3
3
  export { n as normalizeRichTextValue, r as renderRichText, a as richTextStyles } from '../richtext-DrhORshE.cjs';
4
4
 
5
5
  declare function generateSEOFields(): Field;
@@ -1,5 +1,5 @@
1
- import { F as Field } from '../types-BKPEavuy.js';
2
- export { A as ALL_FIELD_TYPES, t as ActionField, a as ArrayField, B as BaseField, b as Block, c as BlockAdmin, d as BlockImage, e as BlocksField, u as ButtonField, v as COMPLEX_FIELD_TYPES, C as CheckboxField, f as CodeField, g as CollapsibleField, h as ColorField, D as DateField, i as DeclarativeCondition, E as EmailField, j as FieldAdmin, k as FieldType, G as GroupField, H as Hook, I as IconField, l as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, w as ListField, M as MarkdownField, N as NumberField, x as PRIMITIVE_FIELD_TYPES, P as PasswordField, y as RELATIONAL_FIELD_TYPES, R as RadioField, m as RelationshipField, n as RichTextBlock, o as RichTextField, p as RowField, S as SecretField, q as SelectField, T as TabsField, r as TextField, z as TextFieldVariant, s as TextareaField, U as UploadField, V as ValidateOptions, K as createRelationshipFieldConfig, O as isArrayField, Q as isBlocksField, W as isGroupField, X as isIconField, Y as isImageField, Z as isLayoutField, _ as isNumberField, $ as isRelationshipField, a0 as isRichTextField, a1 as isSelectField, a2 as isTextField, a3 as isUploadField } from '../types-BKPEavuy.js';
1
+ import { F as Field } from '../types-DROqAsr0.js';
2
+ export { A as ALL_FIELD_TYPES, a as ActionField, b as ArrayField, B as BaseField, c as Block, d as BlockAdmin, e as BlockImage, f as BlocksField, g as ButtonField, C as COMPLEX_FIELD_TYPES, h as CheckboxField, i as CodeField, j as CollapsibleField, k as ColorField, D as DateField, l as DeclarativeCondition, E as EmailField, m as EmbeddingField, n as FieldAccess, o as FieldAdmin, p as FieldType, G as GroupField, H as Hook, I as IconField, q as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, r as ListField, M as MarkdownField, N as NumberField, P as PRIMITIVE_FIELD_TYPES, s as PasswordField, R as RELATIONAL_FIELD_TYPES, t as RadioField, u as RelationshipField, v as RichTextBlock, w as RichTextField, x as RowField, S as SecretField, y as SelectField, T as TabsField, z as TextField, K as TextFieldVariant, O as TextareaField, U as UploadField, V as ValidateOptions, Q as createRelationshipFieldConfig, W as isArrayField, X as isBlocksField, Y as isEmbeddingField, Z as isGroupField, _ as isIconField, $ as isImageField, a0 as isLayoutField, a1 as isNumberField, a2 as isRelationshipField, a3 as isRichTextField, a4 as isSelectField, a5 as isTextField, a6 as isUploadField } from '../types-DROqAsr0.js';
3
3
  export { n as normalizeRichTextValue, r as renderRichText, a as richTextStyles } from '../richtext-DrhORshE.js';
4
4
 
5
5
  declare function generateSEOFields(): Field;
@@ -1 +1 @@
1
- export{q as ALL_FIELD_TYPES,n as COMPLEX_FIELD_TYPES,p as LAYOUT_FIELD_TYPES,m as PRIMITIVE_FIELD_TYPES,o as RELATIONAL_FIELD_TYPES,r as createRelationshipFieldConfig,d as isArrayField,f as isBlocksField,e as isGroupField,l as isIconField,h as isImageField,k as isLayoutField,b as isNumberField,c as isRelationshipField,i as isRichTextField,j as isSelectField,a as isTextField,g as isUploadField,t as normalizeRichTextValue,u as renderRichText,s as richTextStyles}from'../chunk-ZRIBWDYJ.js';export{a as generateSEOFields}from'../chunk-D6SDGHY6.js';import'../chunk-7MNDQU6K.js';import'../chunk-Y2YAKDEQ.js';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
1
+ export{r as ALL_FIELD_TYPES,o as COMPLEX_FIELD_TYPES,q as LAYOUT_FIELD_TYPES,n as PRIMITIVE_FIELD_TYPES,p as RELATIONAL_FIELD_TYPES,s as createRelationshipFieldConfig,d as isArrayField,f as isBlocksField,m as isEmbeddingField,e as isGroupField,l as isIconField,h as isImageField,k as isLayoutField,b as isNumberField,c as isRelationshipField,i as isRichTextField,j as isSelectField,a as isTextField,g as isUploadField,u as normalizeRichTextValue,v as renderRichText,t as richTextStyles}from'../chunk-4BMWWGJN.js';export{a as generateSEOFields}from'../chunk-D6SDGHY6.js';import'../chunk-7MNDQU6K.js';import'../chunk-Y2YAKDEQ.js';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
@@ -1,8 +1,8 @@
1
1
  import { GraphQLSchema } from 'graphql';
2
2
  export { printSchema } from 'graphql';
3
- import { B as BaseAdapter, l as User, R as Request } from '../types-CeAQSR87.cjs';
4
- import { R as Registry } from '../index-BHYGO3yF.cjs';
5
- import '../types-BKPEavuy.cjs';
3
+ import { B as BaseAdapter, i as User, R as Request } from '../types-B5Qz1svz.cjs';
4
+ import { R as Registry } from '../index-BMcYFpTv.cjs';
5
+ import '../types-DROqAsr0.cjs';
6
6
  import 'zod';
7
7
 
8
8
  interface LoaderOptions {
@@ -1,8 +1,8 @@
1
1
  import { GraphQLSchema } from 'graphql';
2
2
  export { printSchema } from 'graphql';
3
- import { B as BaseAdapter, l as User, R as Request } from '../types-BWJx6zzm.js';
4
- import { R as Registry } from '../index-DTy4k1oU.js';
5
- import '../types-BKPEavuy.js';
3
+ import { B as BaseAdapter, i as User, R as Request } from '../types-C4wXHImf.js';
4
+ import { R as Registry } from '../index-CxA9uOv0.js';
5
+ import '../types-DROqAsr0.js';
6
6
  import 'zod';
7
7
 
8
8
  interface LoaderOptions {
@@ -1,5 +1,5 @@
1
- import { S as StorageConfig, j as StorageProvider, C as CollectionConfig, G as GlobalConfig, k as KyroPlugin } from './types-CeAQSR87.cjs';
2
- import { F as Field } from './types-BKPEavuy.cjs';
1
+ import { S as StorageConfig, a as StorageProvider, C as CollectionConfig, G as GlobalConfig, K as KyroPlugin } from './types-DsF64Wrc.cjs';
2
+ import { F as Field } from './types-DlGSbh7I.cjs';
3
3
  import { ZodTypeAny } from 'zod';
4
4
 
5
5
  interface StorageProviderRegistration {
@@ -0,0 +1,105 @@
1
+ import { S as StorageConfig, a as StorageProvider, C as CollectionConfig, G as GlobalConfig, K as KyroPlugin } from './types-B5Qz1svz.cjs';
2
+ import { F as Field } from './types-DROqAsr0.cjs';
3
+ import { ZodTypeAny } from 'zod';
4
+
5
+ interface StorageProviderRegistration {
6
+ type: string;
7
+ displayName: string;
8
+ pluginName?: string;
9
+ configFields: Field[];
10
+ configKey?: string;
11
+ extractConfig: (storageConfig: StorageConfig, configKey: string) => any;
12
+ extractRawConfig: (config: any) => any;
13
+ factory: (config: any) => StorageProvider;
14
+ }
15
+ declare class StorageProviderRegistry {
16
+ private providers;
17
+ private providerToPlugin;
18
+ private disabledPlugins;
19
+ constructor();
20
+ private registerLocal;
21
+ private registerImgix;
22
+ private registerBunny;
23
+ private registerCloudflareR2;
24
+ private registerCloudflareS3;
25
+ register(registration: StorageProviderRegistration): void;
26
+ unregister(type: string): void;
27
+ get(type: string): StorageProviderRegistration | undefined;
28
+ getAll(): StorageProviderRegistration[];
29
+ getAllAvailable(isPluginEnabled?: (name: string) => boolean): StorageProviderRegistration[];
30
+ has(type: string): boolean;
31
+ resolve(type: string, storageConfig: StorageConfig): Promise<StorageProvider>;
32
+ resolveWithConfig(type: string, config: any): Promise<StorageProvider>;
33
+ getProviderPluginName(type: string): string | undefined;
34
+ getAllPluginNames(): string[];
35
+ setPluginEnabled(name: string, enabled: boolean): void;
36
+ isPluginEnabled(name: string): boolean;
37
+ }
38
+
39
+ declare class Registry {
40
+ storageProviders: StorageProviderRegistry;
41
+ private collections;
42
+ private globals;
43
+ private plugins;
44
+ private schemaCache;
45
+ private initialized;
46
+ addCollection(config: CollectionConfig): void;
47
+ addCollections(configs: CollectionConfig[]): void;
48
+ getCollection(slug: string): CollectionConfig | undefined;
49
+ getCollections(): CollectionConfig[];
50
+ getCollectionSlugs(): string[];
51
+ hasCollection(slug: string): boolean;
52
+ removeCollection(slug: string): boolean;
53
+ addGlobal(config: GlobalConfig): void;
54
+ /**
55
+ * Add a global after the registry is already initialized.
56
+ * Only for internal use (e.g. storage settings form built at startup).
57
+ */
58
+ addGlobalPostInit(config: GlobalConfig): void;
59
+ private _addGlobalUnsafe;
60
+ addGlobals(configs: GlobalConfig[]): void;
61
+ getGlobal(slug: string): GlobalConfig | undefined;
62
+ getGlobals(): GlobalConfig[];
63
+ getGlobalSlugs(): string[];
64
+ hasGlobal(slug: string): boolean;
65
+ removeGlobal(slug: string): boolean;
66
+ addPlugin(plugin: KyroPlugin): void;
67
+ getPlugins(): KyroPlugin[];
68
+ getZodSchema(slug: string): ZodTypeAny;
69
+ getCreateZodSchema(slug: string): ZodTypeAny;
70
+ getUpdateZodSchema(slug: string): ZodTypeAny;
71
+ getWhereZodSchema(slug: string): ZodTypeAny;
72
+ getFieldZodSchema(field: Field): ZodTypeAny;
73
+ private clearSchemaCache;
74
+ private applyFieldDefaults;
75
+ getFields(slug: string): Field[];
76
+ getFieldMap(slug: string): Map<string, Field>;
77
+ getVisibleFields(slug: string): Field[];
78
+ validate(): void;
79
+ init(kyroInstance?: any): Promise<void>;
80
+ isInitialized(): boolean;
81
+ getPaginationDefaults(slug: string): {
82
+ defaultLimit: number;
83
+ limits: number[];
84
+ };
85
+ getDefaultSort(slug: string): string;
86
+ getDefaultColumns(slug: string): string[];
87
+ getAdminTitle(slug: string): string;
88
+ getAdminLabel(slug: string): string;
89
+ getAdminGroup(slug: string): string | undefined;
90
+ getStats(): {
91
+ collections: number;
92
+ globals: number;
93
+ plugins: number;
94
+ fields: number;
95
+ };
96
+ toJSON(): {
97
+ collections: CollectionConfig[];
98
+ globals: GlobalConfig[];
99
+ };
100
+ }
101
+ declare function getRegistry(): Registry;
102
+ declare function resetRegistry(): void;
103
+ declare function createRegistry(): Registry;
104
+
105
+ export { Registry as R, createRegistry as c, getRegistry as g, resetRegistry as r };
@@ -1,5 +1,5 @@
1
- import { S as StorageConfig, j as StorageProvider, C as CollectionConfig, G as GlobalConfig, k as KyroPlugin } from './types-BWJx6zzm.js';
2
- import { F as Field } from './types-BKPEavuy.js';
1
+ import { S as StorageConfig, a as StorageProvider, C as CollectionConfig, G as GlobalConfig, K as KyroPlugin } from './types-dEy5JxvN.js';
2
+ import { F as Field } from './types-Bii0bhUV.js';
3
3
  import { ZodTypeAny } from 'zod';
4
4
 
5
5
  interface StorageProviderRegistration {
@@ -0,0 +1,105 @@
1
+ import { S as StorageConfig, a as StorageProvider, C as CollectionConfig, G as GlobalConfig, K as KyroPlugin } from './types-C4wXHImf.js';
2
+ import { F as Field } from './types-DROqAsr0.js';
3
+ import { ZodTypeAny } from 'zod';
4
+
5
+ interface StorageProviderRegistration {
6
+ type: string;
7
+ displayName: string;
8
+ pluginName?: string;
9
+ configFields: Field[];
10
+ configKey?: string;
11
+ extractConfig: (storageConfig: StorageConfig, configKey: string) => any;
12
+ extractRawConfig: (config: any) => any;
13
+ factory: (config: any) => StorageProvider;
14
+ }
15
+ declare class StorageProviderRegistry {
16
+ private providers;
17
+ private providerToPlugin;
18
+ private disabledPlugins;
19
+ constructor();
20
+ private registerLocal;
21
+ private registerImgix;
22
+ private registerBunny;
23
+ private registerCloudflareR2;
24
+ private registerCloudflareS3;
25
+ register(registration: StorageProviderRegistration): void;
26
+ unregister(type: string): void;
27
+ get(type: string): StorageProviderRegistration | undefined;
28
+ getAll(): StorageProviderRegistration[];
29
+ getAllAvailable(isPluginEnabled?: (name: string) => boolean): StorageProviderRegistration[];
30
+ has(type: string): boolean;
31
+ resolve(type: string, storageConfig: StorageConfig): Promise<StorageProvider>;
32
+ resolveWithConfig(type: string, config: any): Promise<StorageProvider>;
33
+ getProviderPluginName(type: string): string | undefined;
34
+ getAllPluginNames(): string[];
35
+ setPluginEnabled(name: string, enabled: boolean): void;
36
+ isPluginEnabled(name: string): boolean;
37
+ }
38
+
39
+ declare class Registry {
40
+ storageProviders: StorageProviderRegistry;
41
+ private collections;
42
+ private globals;
43
+ private plugins;
44
+ private schemaCache;
45
+ private initialized;
46
+ addCollection(config: CollectionConfig): void;
47
+ addCollections(configs: CollectionConfig[]): void;
48
+ getCollection(slug: string): CollectionConfig | undefined;
49
+ getCollections(): CollectionConfig[];
50
+ getCollectionSlugs(): string[];
51
+ hasCollection(slug: string): boolean;
52
+ removeCollection(slug: string): boolean;
53
+ addGlobal(config: GlobalConfig): void;
54
+ /**
55
+ * Add a global after the registry is already initialized.
56
+ * Only for internal use (e.g. storage settings form built at startup).
57
+ */
58
+ addGlobalPostInit(config: GlobalConfig): void;
59
+ private _addGlobalUnsafe;
60
+ addGlobals(configs: GlobalConfig[]): void;
61
+ getGlobal(slug: string): GlobalConfig | undefined;
62
+ getGlobals(): GlobalConfig[];
63
+ getGlobalSlugs(): string[];
64
+ hasGlobal(slug: string): boolean;
65
+ removeGlobal(slug: string): boolean;
66
+ addPlugin(plugin: KyroPlugin): void;
67
+ getPlugins(): KyroPlugin[];
68
+ getZodSchema(slug: string): ZodTypeAny;
69
+ getCreateZodSchema(slug: string): ZodTypeAny;
70
+ getUpdateZodSchema(slug: string): ZodTypeAny;
71
+ getWhereZodSchema(slug: string): ZodTypeAny;
72
+ getFieldZodSchema(field: Field): ZodTypeAny;
73
+ private clearSchemaCache;
74
+ private applyFieldDefaults;
75
+ getFields(slug: string): Field[];
76
+ getFieldMap(slug: string): Map<string, Field>;
77
+ getVisibleFields(slug: string): Field[];
78
+ validate(): void;
79
+ init(kyroInstance?: any): Promise<void>;
80
+ isInitialized(): boolean;
81
+ getPaginationDefaults(slug: string): {
82
+ defaultLimit: number;
83
+ limits: number[];
84
+ };
85
+ getDefaultSort(slug: string): string;
86
+ getDefaultColumns(slug: string): string[];
87
+ getAdminTitle(slug: string): string;
88
+ getAdminLabel(slug: string): string;
89
+ getAdminGroup(slug: string): string | undefined;
90
+ getStats(): {
91
+ collections: number;
92
+ globals: number;
93
+ plugins: number;
94
+ fields: number;
95
+ };
96
+ toJSON(): {
97
+ collections: CollectionConfig[];
98
+ globals: GlobalConfig[];
99
+ };
100
+ }
101
+ declare function getRegistry(): Registry;
102
+ declare function resetRegistry(): void;
103
+ declare function createRegistry(): Registry;
104
+
105
+ export { Registry as R, createRegistry as c, getRegistry as g, resetRegistry as r };
@@ -0,0 +1,105 @@
1
+ import { S as StorageConfig, a as StorageProvider, C as CollectionConfig, G as GlobalConfig, K as KyroPlugin } from './types-Bt2_ycUO.js';
2
+ import { F as Field } from './types-DlGSbh7I.js';
3
+ import { ZodTypeAny } from 'zod';
4
+
5
+ interface StorageProviderRegistration {
6
+ type: string;
7
+ displayName: string;
8
+ pluginName?: string;
9
+ configFields: Field[];
10
+ configKey?: string;
11
+ extractConfig: (storageConfig: StorageConfig, configKey: string) => any;
12
+ extractRawConfig: (config: any) => any;
13
+ factory: (config: any) => StorageProvider;
14
+ }
15
+ declare class StorageProviderRegistry {
16
+ private providers;
17
+ private providerToPlugin;
18
+ private disabledPlugins;
19
+ constructor();
20
+ private registerLocal;
21
+ private registerImgix;
22
+ private registerBunny;
23
+ private registerCloudflareR2;
24
+ private registerCloudflareS3;
25
+ register(registration: StorageProviderRegistration): void;
26
+ unregister(type: string): void;
27
+ get(type: string): StorageProviderRegistration | undefined;
28
+ getAll(): StorageProviderRegistration[];
29
+ getAllAvailable(isPluginEnabled?: (name: string) => boolean): StorageProviderRegistration[];
30
+ has(type: string): boolean;
31
+ resolve(type: string, storageConfig: StorageConfig): Promise<StorageProvider>;
32
+ resolveWithConfig(type: string, config: any): Promise<StorageProvider>;
33
+ getProviderPluginName(type: string): string | undefined;
34
+ getAllPluginNames(): string[];
35
+ setPluginEnabled(name: string, enabled: boolean): void;
36
+ isPluginEnabled(name: string): boolean;
37
+ }
38
+
39
+ declare class Registry {
40
+ storageProviders: StorageProviderRegistry;
41
+ private collections;
42
+ private globals;
43
+ private plugins;
44
+ private schemaCache;
45
+ private initialized;
46
+ addCollection(config: CollectionConfig): void;
47
+ addCollections(configs: CollectionConfig[]): void;
48
+ getCollection(slug: string): CollectionConfig | undefined;
49
+ getCollections(): CollectionConfig[];
50
+ getCollectionSlugs(): string[];
51
+ hasCollection(slug: string): boolean;
52
+ removeCollection(slug: string): boolean;
53
+ addGlobal(config: GlobalConfig): void;
54
+ /**
55
+ * Add a global after the registry is already initialized.
56
+ * Only for internal use (e.g. storage settings form built at startup).
57
+ */
58
+ addGlobalPostInit(config: GlobalConfig): void;
59
+ private _addGlobalUnsafe;
60
+ addGlobals(configs: GlobalConfig[]): void;
61
+ getGlobal(slug: string): GlobalConfig | undefined;
62
+ getGlobals(): GlobalConfig[];
63
+ getGlobalSlugs(): string[];
64
+ hasGlobal(slug: string): boolean;
65
+ removeGlobal(slug: string): boolean;
66
+ addPlugin(plugin: KyroPlugin): void;
67
+ getPlugins(): KyroPlugin[];
68
+ getZodSchema(slug: string): ZodTypeAny;
69
+ getCreateZodSchema(slug: string): ZodTypeAny;
70
+ getUpdateZodSchema(slug: string): ZodTypeAny;
71
+ getWhereZodSchema(slug: string): ZodTypeAny;
72
+ getFieldZodSchema(field: Field): ZodTypeAny;
73
+ private clearSchemaCache;
74
+ private applyFieldDefaults;
75
+ getFields(slug: string): Field[];
76
+ getFieldMap(slug: string): Map<string, Field>;
77
+ getVisibleFields(slug: string): Field[];
78
+ validate(): void;
79
+ init(kyroInstance?: any): Promise<void>;
80
+ isInitialized(): boolean;
81
+ getPaginationDefaults(slug: string): {
82
+ defaultLimit: number;
83
+ limits: number[];
84
+ };
85
+ getDefaultSort(slug: string): string;
86
+ getDefaultColumns(slug: string): string[];
87
+ getAdminTitle(slug: string): string;
88
+ getAdminLabel(slug: string): string;
89
+ getAdminGroup(slug: string): string | undefined;
90
+ getStats(): {
91
+ collections: number;
92
+ globals: number;
93
+ plugins: number;
94
+ fields: number;
95
+ };
96
+ toJSON(): {
97
+ collections: CollectionConfig[];
98
+ globals: GlobalConfig[];
99
+ };
100
+ }
101
+ declare function getRegistry(): Registry;
102
+ declare function resetRegistry(): void;
103
+ declare function createRegistry(): Registry;
104
+
105
+ export { Registry as R, createRegistry as c, getRegistry as g, resetRegistry as r };