@kyro-cms/core 0.3.2 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{WebhookService-BznDc2AT.d.ts → WebhookService-118ZTFis.d.ts} +2 -2
- package/dist/{WebhookService-mZZ75syh.d.cts → WebhookService-AefJfqX0.d.cts} +2 -2
- package/dist/api-handler.cjs +52 -0
- package/dist/api-handler.cjs.map +1 -0
- package/dist/api-handler.d.cts +9 -0
- package/dist/api-handler.d.ts +9 -0
- package/dist/api-handler.js +46 -0
- package/dist/api-handler.js.map +1 -0
- package/dist/{base-Hu6ij8sZ.d.ts → base-DvvNqnM-.d.cts} +16 -5
- package/dist/{base-Db9LkB1N.d.cts → base-eVegJ_Pr.d.ts} +16 -5
- package/dist/bootstrap-DGJ3N7SO.js +6 -0
- package/dist/{bootstrap-LL6O7PWO.js.map → bootstrap-DGJ3N7SO.js.map} +1 -1
- package/dist/bootstrap-O5UGUTYU.cjs +31 -0
- package/dist/{bootstrap-BMWVB2T6.cjs.map → bootstrap-O5UGUTYU.cjs.map} +1 -1
- package/dist/{chunk-QKOFKITP.js → chunk-2HFJUUFZ.js} +3 -11
- package/dist/chunk-2HFJUUFZ.js.map +1 -0
- package/dist/chunk-2UOI5MUC.cjs +1276 -0
- package/dist/chunk-2UOI5MUC.cjs.map +1 -0
- package/dist/{chunk-DIC236EW.js → chunk-342BJNBI.js} +167 -24
- package/dist/chunk-342BJNBI.js.map +1 -0
- package/dist/{chunk-OUGKLCYF.js → chunk-3AJE4SEG.js} +4 -3
- package/dist/chunk-3AJE4SEG.js.map +1 -0
- package/dist/chunk-4UD44U4Z.js +5818 -0
- package/dist/chunk-4UD44U4Z.js.map +1 -0
- package/dist/chunk-5FTY2DLG.js +1258 -0
- package/dist/chunk-5FTY2DLG.js.map +1 -0
- package/dist/{chunk-BXMWDUED.js → chunk-A4USRVTQ.js} +2 -2
- package/dist/chunk-A4USRVTQ.js.map +1 -0
- package/dist/chunk-ADLJSJSN.cjs +13 -0
- package/dist/chunk-ADLJSJSN.cjs.map +1 -0
- package/dist/chunk-ATBOUGQP.cjs +513 -0
- package/dist/chunk-ATBOUGQP.cjs.map +1 -0
- package/dist/chunk-BQ2T4WRS.js +140 -0
- package/dist/chunk-BQ2T4WRS.js.map +1 -0
- package/dist/{chunk-U74F3YZU.js → chunk-DBUYB32X.js} +15 -3
- package/dist/chunk-DBUYB32X.js.map +1 -0
- package/dist/chunk-DE7OQOMD.cjs +5842 -0
- package/dist/chunk-DE7OQOMD.cjs.map +1 -0
- package/dist/chunk-DLHUQO25.cjs +1746 -0
- package/dist/chunk-DLHUQO25.cjs.map +1 -0
- package/dist/{chunk-GE5DMB44.js → chunk-E3BZLMX6.js} +55 -49
- package/dist/chunk-E3BZLMX6.js.map +1 -0
- package/dist/{chunk-44BF6ALS.cjs → chunk-H4XCAPA6.cjs} +55 -49
- package/dist/chunk-H4XCAPA6.cjs.map +1 -0
- package/dist/{chunk-VIONYQ2K.cjs → chunk-IBG6V56E.cjs} +16 -32
- package/dist/chunk-IBG6V56E.cjs.map +1 -0
- package/dist/{chunk-LIJVWQKU.cjs → chunk-IX3ABYKZ.cjs} +43 -31
- package/dist/chunk-IX3ABYKZ.cjs.map +1 -0
- package/dist/chunk-JYGIFBBS.cjs +146 -0
- package/dist/chunk-JYGIFBBS.cjs.map +1 -0
- package/dist/{chunk-42JPONZU.cjs → chunk-K7JPTH3G.cjs} +17 -16
- package/dist/chunk-K7JPTH3G.cjs.map +1 -0
- package/dist/{chunk-RLTG4YZM.cjs → chunk-KOCTZKPV.cjs} +2 -2
- package/dist/chunk-KOCTZKPV.cjs.map +1 -0
- package/dist/{chunk-EWP5AT6A.cjs → chunk-N4H37VN4.cjs} +2 -11
- package/dist/chunk-N4H37VN4.cjs.map +1 -0
- package/dist/chunk-P2YW545G.js +11 -0
- package/dist/chunk-P2YW545G.js.map +1 -0
- package/dist/chunk-Q23JB3KL.js +488 -0
- package/dist/chunk-Q23JB3KL.js.map +1 -0
- package/dist/{chunk-E5X75WNB.js → chunk-QXIQWPAP.js} +14 -30
- package/dist/chunk-QXIQWPAP.js.map +1 -0
- package/dist/chunk-R3XIBBAW.cjs +34 -0
- package/dist/chunk-R3XIBBAW.cjs.map +1 -0
- package/dist/chunk-R4C4O4SE.cjs +622 -0
- package/dist/chunk-R4C4O4SE.cjs.map +1 -0
- package/dist/{chunk-KWGNR4HM.js → chunk-REK7AYOC.js} +82 -9
- package/dist/chunk-REK7AYOC.js.map +1 -0
- package/dist/chunk-RGIQKTZ7.js +68 -0
- package/dist/chunk-RGIQKTZ7.js.map +1 -0
- package/dist/chunk-RYDGMBIG.js +1737 -0
- package/dist/chunk-RYDGMBIG.js.map +1 -0
- package/dist/chunk-SDMNUYVU.js +30 -0
- package/dist/chunk-SDMNUYVU.js.map +1 -0
- package/dist/{chunk-FTSSDDZQ.cjs → chunk-VJT6P4N6.cjs} +82 -9
- package/dist/chunk-VJT6P4N6.cjs.map +1 -0
- package/dist/{chunk-HT6VE4NW.cjs → chunk-W3KPQX7V.cjs} +168 -25
- package/dist/chunk-W3KPQX7V.cjs.map +1 -0
- package/dist/{chunk-LTRCYJAG.js → chunk-WOWUL7ZY.js} +3 -2
- package/dist/chunk-WOWUL7ZY.js.map +1 -0
- package/dist/{chunk-7YITG2US.cjs → chunk-WQBRWOQT.cjs} +3 -2
- package/dist/chunk-WQBRWOQT.cjs.map +1 -0
- package/dist/{chunk-KB6QF4HO.js → chunk-WSCJQI2B.js} +305 -152
- package/dist/chunk-WSCJQI2B.js.map +1 -0
- package/dist/chunk-X3CU27OO.cjs +78 -0
- package/dist/chunk-X3CU27OO.cjs.map +1 -0
- package/dist/chunk-Y3TM7WH7.js +617 -0
- package/dist/chunk-Y3TM7WH7.js.map +1 -0
- package/dist/{chunk-PNBZZ76A.cjs → chunk-Z2OVHWHB.cjs} +305 -151
- package/dist/chunk-Z2OVHWHB.cjs.map +1 -0
- package/dist/cli/index.cjs +2 -2
- package/dist/cli/index.js +2 -2
- package/dist/client.cjs +23 -13
- package/dist/client.d.cts +4 -2
- package/dist/client.d.ts +4 -2
- package/dist/client.js +3 -1
- package/dist/drizzle/index.cjs +20 -19
- package/dist/drizzle/index.d.cts +28 -7
- package/dist/drizzle/index.d.ts +28 -7
- package/dist/drizzle/index.js +5 -4
- package/dist/fields/index.cjs +105 -0
- package/dist/fields/index.cjs.map +1 -0
- package/dist/fields/index.d.cts +27 -0
- package/dist/fields/index.d.ts +27 -0
- package/dist/fields/index.js +4 -0
- package/dist/fields/index.js.map +1 -0
- package/dist/graphql/index.cjs +4 -3
- package/dist/graphql/index.d.cts +3 -2
- package/dist/graphql/index.d.ts +3 -2
- package/dist/graphql/index.js +2 -1
- package/dist/{index-Ci6r4xnN.d.ts → index-CLp-DRKA.d.ts} +2 -1
- package/dist/{index-11MDNKce.d.cts → index-DfO7G4kN.d.cts} +2 -1
- package/dist/index.cjs +2659 -6670
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +138 -47
- package/dist/index.d.ts +138 -47
- package/dist/index.js +2356 -6529
- package/dist/index.js.map +1 -1
- package/dist/integration.cjs +68 -0
- package/dist/integration.cjs.map +1 -0
- package/dist/integration.d.cts +27 -0
- package/dist/integration.d.ts +27 -0
- package/dist/integration.js +61 -0
- package/dist/integration.js.map +1 -0
- package/dist/mongodb/index.cjs +4 -4
- package/dist/mongodb/index.d.cts +20 -6
- package/dist/mongodb/index.d.ts +20 -6
- package/dist/mongodb/index.js +2 -2
- package/dist/postgres-auth-adapter-7F3ECO7I.js +5 -0
- package/dist/{postgres-auth-adapter-OTRWSTT5.js.map → postgres-auth-adapter-7F3ECO7I.js.map} +1 -1
- package/dist/postgres-auth-adapter-Z463NYJZ.cjs +14 -0
- package/dist/{postgres-auth-adapter-EVRPO7BQ.cjs.map → postgres-auth-adapter-Z463NYJZ.cjs.map} +1 -1
- package/dist/redis-adapter-LPUWLE4Y.cjs +13 -0
- package/dist/{redis-adapter-E7PMN5HW.cjs.map → redis-adapter-LPUWLE4Y.cjs.map} +1 -1
- package/dist/redis-adapter-THYDCGQR.js +4 -0
- package/dist/{redis-adapter-HOO67RBQ.js.map → redis-adapter-THYDCGQR.js.map} +1 -1
- package/dist/rest/index.cjs +9 -5
- package/dist/rest/index.d.cts +6 -3
- package/dist/rest/index.d.ts +6 -3
- package/dist/rest/index.js +7 -3
- package/dist/{schema-CNB2DDTX.js → schema-6Q4W6AE6.js} +3 -3
- package/dist/{schema-CNB2DDTX.js.map → schema-6Q4W6AE6.js.map} +1 -1
- package/dist/{schema-Y777CQQS.cjs → schema-TIYTCIKX.cjs} +14 -14
- package/dist/{schema-Y777CQQS.cjs.map → schema-TIYTCIKX.cjs.map} +1 -1
- package/dist/templates/index.cjs +27 -23
- package/dist/templates/index.d.cts +8 -2
- package/dist/templates/index.d.ts +8 -2
- package/dist/templates/index.js +1 -1
- package/dist/trpc/index.cjs +12 -11
- package/dist/trpc/index.d.cts +3 -2
- package/dist/trpc/index.d.ts +3 -2
- package/dist/trpc/index.js +3 -2
- package/dist/{types-1u353OHN.d.ts → types-BnTm7oJG.d.cts} +7 -3
- package/dist/{types-1u353OHN.d.cts → types-BnTm7oJG.d.ts} +7 -3
- package/dist/{types-kGfsGdos.d.cts → types-Bs1up4yP.d.ts} +76 -244
- package/dist/{types-kGfsGdos.d.ts → types-J3R9nVsZ.d.cts} +76 -244
- package/dist/types-VtjUxIMp.d.cts +246 -0
- package/dist/types-VtjUxIMp.d.ts +246 -0
- package/package.json +16 -9
- package/dist/bootstrap-BMWVB2T6.cjs +0 -31
- package/dist/bootstrap-LL6O7PWO.js +0 -6
- package/dist/chunk-42JPONZU.cjs.map +0 -1
- package/dist/chunk-44BF6ALS.cjs.map +0 -1
- package/dist/chunk-4M5PHMUE.cjs +0 -947
- package/dist/chunk-4M5PHMUE.cjs.map +0 -1
- package/dist/chunk-6MSSF46R.js +0 -941
- package/dist/chunk-6MSSF46R.js.map +0 -1
- package/dist/chunk-7YITG2US.cjs.map +0 -1
- package/dist/chunk-BTOE3VUK.js +0 -330
- package/dist/chunk-BTOE3VUK.js.map +0 -1
- package/dist/chunk-BXMWDUED.js.map +0 -1
- package/dist/chunk-DIC236EW.js.map +0 -1
- package/dist/chunk-E5X75WNB.js.map +0 -1
- package/dist/chunk-E63IF3MD.cjs +0 -951
- package/dist/chunk-E63IF3MD.cjs.map +0 -1
- package/dist/chunk-EWP5AT6A.cjs.map +0 -1
- package/dist/chunk-FTSSDDZQ.cjs.map +0 -1
- package/dist/chunk-GE5DMB44.js.map +0 -1
- package/dist/chunk-GVFB5C6O.cjs +0 -345
- package/dist/chunk-GVFB5C6O.cjs.map +0 -1
- package/dist/chunk-HT6VE4NW.cjs.map +0 -1
- package/dist/chunk-HVSQDZZJ.cjs +0 -765
- package/dist/chunk-HVSQDZZJ.cjs.map +0 -1
- package/dist/chunk-HYC4GNHX.js +0 -758
- package/dist/chunk-HYC4GNHX.js.map +0 -1
- package/dist/chunk-KB6QF4HO.js.map +0 -1
- package/dist/chunk-KWGNR4HM.js.map +0 -1
- package/dist/chunk-LIJVWQKU.cjs.map +0 -1
- package/dist/chunk-LTRCYJAG.js.map +0 -1
- package/dist/chunk-OUGKLCYF.js.map +0 -1
- package/dist/chunk-PNBZZ76A.cjs.map +0 -1
- package/dist/chunk-QKOFKITP.js.map +0 -1
- package/dist/chunk-RLTG4YZM.cjs.map +0 -1
- package/dist/chunk-RRYXQMZG.js +0 -935
- package/dist/chunk-RRYXQMZG.js.map +0 -1
- package/dist/chunk-U74F3YZU.js.map +0 -1
- package/dist/chunk-VIONYQ2K.cjs.map +0 -1
- package/dist/postgres-auth-adapter-EVRPO7BQ.cjs +0 -14
- package/dist/postgres-auth-adapter-OTRWSTT5.js +0 -5
- package/dist/redis-adapter-E7PMN5HW.cjs +0 -13
- package/dist/redis-adapter-HOO67RBQ.js +0 -4
package/dist/client.cjs
CHANGED
|
@@ -1,45 +1,55 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkN4H37VN4_cjs = require('./chunk-N4H37VN4.cjs');
|
|
4
|
+
var chunkATBOUGQP_cjs = require('./chunk-ATBOUGQP.cjs');
|
|
5
|
+
var chunkADLJSJSN_cjs = require('./chunk-ADLJSJSN.cjs');
|
|
4
6
|
require('./chunk-G7VZBCD6.cjs');
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
Object.defineProperty(exports, "CSSGenerator", {
|
|
9
11
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkN4H37VN4_cjs.CSSGenerator; }
|
|
11
13
|
});
|
|
12
14
|
Object.defineProperty(exports, "createAdminStyling", {
|
|
13
15
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "createAuditContext", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return chunkEWP5AT6A_cjs.createAuditContext; }
|
|
16
|
+
get: function () { return chunkN4H37VN4_cjs.createAdminStyling; }
|
|
19
17
|
});
|
|
20
18
|
Object.defineProperty(exports, "defaultDarkTheme", {
|
|
21
19
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkN4H37VN4_cjs.defaultDarkTheme; }
|
|
23
21
|
});
|
|
24
22
|
Object.defineProperty(exports, "defaultFieldStyling", {
|
|
25
23
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkN4H37VN4_cjs.defaultFieldStyling; }
|
|
27
25
|
});
|
|
28
26
|
Object.defineProperty(exports, "defaultLightTheme", {
|
|
29
27
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkN4H37VN4_cjs.defaultLightTheme; }
|
|
31
29
|
});
|
|
32
30
|
Object.defineProperty(exports, "ecommerce2026Theme", {
|
|
33
31
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkN4H37VN4_cjs.ecommerce2026Theme; }
|
|
35
33
|
});
|
|
36
34
|
Object.defineProperty(exports, "generateCSSVariables", {
|
|
37
35
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkN4H37VN4_cjs.generateCSSVariables; }
|
|
39
37
|
});
|
|
40
38
|
Object.defineProperty(exports, "generateTailwindConfig", {
|
|
41
39
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkN4H37VN4_cjs.generateTailwindConfig; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "renderRichText", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunkATBOUGQP_cjs.renderRichText; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "richTextStyles", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunkATBOUGQP_cjs.richTextStyles; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "createAuditContext", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunkADLJSJSN_cjs.createAuditContext; }
|
|
43
53
|
});
|
|
44
54
|
//# sourceMappingURL=client.cjs.map
|
|
45
55
|
//# sourceMappingURL=client.cjs.map
|
package/dist/client.d.cts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export { A as AdminConfig, a as
|
|
2
|
-
export { A as
|
|
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-J3R9nVsZ.cjs';
|
|
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, E as EmailField, F as Field, h as FieldAdmin, i as FieldType, G as GroupField, I as ImageField, J as JSONField, M as MarkdownField, N as NumberField, P as PasswordField, R as RadioField, j as RelationshipField, k as RichTextBlock, l as RichTextField, m as RowField, S as SelectField, T as TabsField, n as TextField, o as TextareaField, U as UploadField } from './types-VtjUxIMp.cjs';
|
|
3
|
+
export { renderRichText, richTextStyles } from './fields/index.cjs';
|
|
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-BnTm7oJG.cjs';
|
|
3
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.cjs';
|
|
4
6
|
|
|
5
7
|
declare function createAuditContext(req: Request): {
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export { A as AdminConfig, a as
|
|
2
|
-
export { A as
|
|
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-Bs1up4yP.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, E as EmailField, F as Field, h as FieldAdmin, i as FieldType, G as GroupField, I as ImageField, J as JSONField, M as MarkdownField, N as NumberField, P as PasswordField, R as RadioField, j as RelationshipField, k as RichTextBlock, l as RichTextField, m as RowField, S as SelectField, T as TabsField, n as TextField, o as TextareaField, U as UploadField } from './types-VtjUxIMp.js';
|
|
3
|
+
export { renderRichText, richTextStyles } from './fields/index.js';
|
|
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-BnTm7oJG.js';
|
|
3
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';
|
|
4
6
|
|
|
5
7
|
declare function createAuditContext(req: Request): {
|
package/dist/client.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { CSSGenerator, createAdminStyling,
|
|
1
|
+
export { CSSGenerator, createAdminStyling, defaultDarkTheme, defaultFieldStyling, defaultLightTheme, ecommerce2026Theme, generateCSSVariables, generateTailwindConfig } from './chunk-2HFJUUFZ.js';
|
|
2
|
+
export { renderRichText, richTextStyles } from './chunk-Q23JB3KL.js';
|
|
3
|
+
export { createAuditContext } from './chunk-P2YW545G.js';
|
|
2
4
|
import './chunk-Z6ZWNWWR.js';
|
|
3
5
|
//# sourceMappingURL=client.js.map
|
|
4
6
|
//# sourceMappingURL=client.js.map
|
package/dist/drizzle/index.cjs
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkR4C4O4SE_cjs = require('../chunk-R4C4O4SE.cjs');
|
|
4
|
+
var chunkIX3ABYKZ_cjs = require('../chunk-IX3ABYKZ.cjs');
|
|
5
|
+
require('../chunk-WQBRWOQT.cjs');
|
|
6
|
+
var chunkX3CU27OO_cjs = require('../chunk-X3CU27OO.cjs');
|
|
7
|
+
require('../chunk-KOCTZKPV.cjs');
|
|
7
8
|
require('../chunk-G7VZBCD6.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
Object.defineProperty(exports, "DrizzleAdapter", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkR4C4O4SE_cjs.DrizzleAdapter; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "collectionToDrizzleSchema", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "createDatabase", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunkGVFB5C6O_cjs.createDatabase; }
|
|
18
|
+
get: function () { return chunkR4C4O4SE_cjs.collectionToDrizzleSchema; }
|
|
22
19
|
});
|
|
23
20
|
Object.defineProperty(exports, "createDrizzleAdapter", {
|
|
24
21
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkR4C4O4SE_cjs.createDrizzleAdapter; }
|
|
26
23
|
});
|
|
27
24
|
Object.defineProperty(exports, "fieldToDrizzleType", {
|
|
28
25
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkR4C4O4SE_cjs.fieldToDrizzleType; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "PostgresAuthAdapter", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkIX3ABYKZ_cjs.PostgresAuthAdapter; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "createDatabase", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkX3CU27OO_cjs.createDatabase; }
|
|
30
35
|
});
|
|
31
36
|
Object.defineProperty(exports, "genId", {
|
|
32
37
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkX3CU27OO_cjs.genId; }
|
|
34
39
|
});
|
|
35
40
|
Object.defineProperty(exports, "runMigrations", {
|
|
36
41
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkX3CU27OO_cjs.runMigrations; }
|
|
38
43
|
});
|
|
39
44
|
Object.defineProperty(exports, "seedDefaultRoles", {
|
|
40
45
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "PostgresAuthAdapter", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () { return chunkLIJVWQKU_cjs.PostgresAuthAdapter; }
|
|
46
|
+
get: function () { return chunkX3CU27OO_cjs.seedDefaultRoles; }
|
|
46
47
|
});
|
|
47
48
|
//# sourceMappingURL=index.cjs.map
|
|
48
49
|
//# sourceMappingURL=index.cjs.map
|
package/dist/drizzle/index.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { A as AbstractBaseAdapter } from '../base-
|
|
2
|
-
import {
|
|
1
|
+
import { A as AbstractBaseAdapter } from '../base-DvvNqnM-.cjs';
|
|
2
|
+
import { C as CollectionConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs, i as DraftFindArgs, j as DraftSnapshot, k as DraftUpsertArgs, l as DraftDeleteArgs } from '../types-J3R9nVsZ.cjs';
|
|
3
|
+
import { F as Field } from '../types-VtjUxIMp.cjs';
|
|
3
4
|
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-
|
|
5
|
+
import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-BnTm7oJG.cjs';
|
|
5
6
|
|
|
6
7
|
declare function fieldToDrizzleType(field: Field, dialect?: 'postgres' | 'mysql' | 'sqlite'): string;
|
|
7
8
|
declare function collectionToDrizzleSchema(collection: CollectionConfig, dialect?: 'postgres' | 'mysql' | 'sqlite'): string;
|
|
@@ -9,11 +10,14 @@ declare class DrizzleAdapter extends AbstractBaseAdapter {
|
|
|
9
10
|
private client;
|
|
10
11
|
private schema;
|
|
11
12
|
private dialect;
|
|
13
|
+
private draftsTableReady;
|
|
14
|
+
private versionsTableReady;
|
|
12
15
|
constructor(options: {
|
|
13
16
|
type: 'postgres' | 'mysql' | 'sqlite';
|
|
14
17
|
client: any;
|
|
15
18
|
schema?: any;
|
|
16
19
|
});
|
|
20
|
+
protected prepareData(data: Record<string, any>, config: CollectionConfig): Record<string, any>;
|
|
17
21
|
connect(): Promise<void>;
|
|
18
22
|
disconnect(): Promise<void>;
|
|
19
23
|
find<T>(args: FindArgs): Promise<FindResult<T>>;
|
|
@@ -30,17 +34,32 @@ declare class DrizzleAdapter extends AbstractBaseAdapter {
|
|
|
30
34
|
collection: string;
|
|
31
35
|
where: Record<string, any>;
|
|
32
36
|
tenantID?: string;
|
|
37
|
+
draft?: boolean;
|
|
33
38
|
}): Promise<any>;
|
|
34
|
-
findVersions(args:
|
|
35
|
-
findVersionByID(args:
|
|
36
|
-
|
|
39
|
+
findVersions(args: any): Promise<FindResult<any>>;
|
|
40
|
+
findVersionByID(args: {
|
|
41
|
+
collection: string;
|
|
42
|
+
versionId: string;
|
|
43
|
+
tenantID?: string;
|
|
44
|
+
}): Promise<any>;
|
|
45
|
+
createVersion(args: any): Promise<any>;
|
|
37
46
|
deleteVersions(args: {
|
|
38
47
|
collection: string;
|
|
39
|
-
|
|
48
|
+
documentId: string;
|
|
49
|
+
keepLatest?: number;
|
|
50
|
+
tenantID?: string;
|
|
40
51
|
}): Promise<void>;
|
|
52
|
+
findDraft<T>(args: DraftFindArgs): Promise<DraftSnapshot<T> | null>;
|
|
53
|
+
upsertDraft<T>(args: DraftUpsertArgs<T>): Promise<DraftSnapshot<T>>;
|
|
54
|
+
deleteDraft(args: DraftDeleteArgs): Promise<void>;
|
|
41
55
|
private getTable;
|
|
42
56
|
private buildWhereClause;
|
|
43
57
|
private processResult;
|
|
58
|
+
private ensureDraftsTable;
|
|
59
|
+
private ensureVersionsTable;
|
|
60
|
+
private getDraftId;
|
|
61
|
+
private executeRaw;
|
|
62
|
+
private rowToDraft;
|
|
44
63
|
}
|
|
45
64
|
declare function createDrizzleAdapter(options: {
|
|
46
65
|
type: 'postgres' | 'mysql' | 'sqlite';
|
|
@@ -63,6 +82,7 @@ declare class PostgresAuthAdapter implements AuthAdapter {
|
|
|
63
82
|
createUser(data: {
|
|
64
83
|
email: string;
|
|
65
84
|
password: string;
|
|
85
|
+
name?: string;
|
|
66
86
|
role?: UserRole;
|
|
67
87
|
tenantId?: string;
|
|
68
88
|
}): Promise<AuthUser>;
|
|
@@ -77,6 +97,7 @@ declare class PostgresAuthAdapter implements AuthAdapter {
|
|
|
77
97
|
userAgent?: string;
|
|
78
98
|
}): Promise<Session>;
|
|
79
99
|
findSessionByToken(token: string): Promise<Session | null>;
|
|
100
|
+
findSessionByRefreshToken(refreshToken: string): Promise<Session | null>;
|
|
80
101
|
deleteSession(sessionId: string): Promise<boolean>;
|
|
81
102
|
deleteUserSessions(userId: string): Promise<number>;
|
|
82
103
|
addPasswordToHistory(userId: string, passwordHash: string): Promise<void>;
|
package/dist/drizzle/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { A as AbstractBaseAdapter } from '../base-
|
|
2
|
-
import {
|
|
1
|
+
import { A as AbstractBaseAdapter } from '../base-eVegJ_Pr.js';
|
|
2
|
+
import { C as CollectionConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs, i as DraftFindArgs, j as DraftSnapshot, k as DraftUpsertArgs, l as DraftDeleteArgs } from '../types-Bs1up4yP.js';
|
|
3
|
+
import { F as Field } from '../types-VtjUxIMp.js';
|
|
3
4
|
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-
|
|
5
|
+
import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-BnTm7oJG.js';
|
|
5
6
|
|
|
6
7
|
declare function fieldToDrizzleType(field: Field, dialect?: 'postgres' | 'mysql' | 'sqlite'): string;
|
|
7
8
|
declare function collectionToDrizzleSchema(collection: CollectionConfig, dialect?: 'postgres' | 'mysql' | 'sqlite'): string;
|
|
@@ -9,11 +10,14 @@ declare class DrizzleAdapter extends AbstractBaseAdapter {
|
|
|
9
10
|
private client;
|
|
10
11
|
private schema;
|
|
11
12
|
private dialect;
|
|
13
|
+
private draftsTableReady;
|
|
14
|
+
private versionsTableReady;
|
|
12
15
|
constructor(options: {
|
|
13
16
|
type: 'postgres' | 'mysql' | 'sqlite';
|
|
14
17
|
client: any;
|
|
15
18
|
schema?: any;
|
|
16
19
|
});
|
|
20
|
+
protected prepareData(data: Record<string, any>, config: CollectionConfig): Record<string, any>;
|
|
17
21
|
connect(): Promise<void>;
|
|
18
22
|
disconnect(): Promise<void>;
|
|
19
23
|
find<T>(args: FindArgs): Promise<FindResult<T>>;
|
|
@@ -30,17 +34,32 @@ declare class DrizzleAdapter extends AbstractBaseAdapter {
|
|
|
30
34
|
collection: string;
|
|
31
35
|
where: Record<string, any>;
|
|
32
36
|
tenantID?: string;
|
|
37
|
+
draft?: boolean;
|
|
33
38
|
}): Promise<any>;
|
|
34
|
-
findVersions(args:
|
|
35
|
-
findVersionByID(args:
|
|
36
|
-
|
|
39
|
+
findVersions(args: any): Promise<FindResult<any>>;
|
|
40
|
+
findVersionByID(args: {
|
|
41
|
+
collection: string;
|
|
42
|
+
versionId: string;
|
|
43
|
+
tenantID?: string;
|
|
44
|
+
}): Promise<any>;
|
|
45
|
+
createVersion(args: any): Promise<any>;
|
|
37
46
|
deleteVersions(args: {
|
|
38
47
|
collection: string;
|
|
39
|
-
|
|
48
|
+
documentId: string;
|
|
49
|
+
keepLatest?: number;
|
|
50
|
+
tenantID?: string;
|
|
40
51
|
}): Promise<void>;
|
|
52
|
+
findDraft<T>(args: DraftFindArgs): Promise<DraftSnapshot<T> | null>;
|
|
53
|
+
upsertDraft<T>(args: DraftUpsertArgs<T>): Promise<DraftSnapshot<T>>;
|
|
54
|
+
deleteDraft(args: DraftDeleteArgs): Promise<void>;
|
|
41
55
|
private getTable;
|
|
42
56
|
private buildWhereClause;
|
|
43
57
|
private processResult;
|
|
58
|
+
private ensureDraftsTable;
|
|
59
|
+
private ensureVersionsTable;
|
|
60
|
+
private getDraftId;
|
|
61
|
+
private executeRaw;
|
|
62
|
+
private rowToDraft;
|
|
44
63
|
}
|
|
45
64
|
declare function createDrizzleAdapter(options: {
|
|
46
65
|
type: 'postgres' | 'mysql' | 'sqlite';
|
|
@@ -63,6 +82,7 @@ declare class PostgresAuthAdapter implements AuthAdapter {
|
|
|
63
82
|
createUser(data: {
|
|
64
83
|
email: string;
|
|
65
84
|
password: string;
|
|
85
|
+
name?: string;
|
|
66
86
|
role?: UserRole;
|
|
67
87
|
tenantId?: string;
|
|
68
88
|
}): Promise<AuthUser>;
|
|
@@ -77,6 +97,7 @@ declare class PostgresAuthAdapter implements AuthAdapter {
|
|
|
77
97
|
userAgent?: string;
|
|
78
98
|
}): Promise<Session>;
|
|
79
99
|
findSessionByToken(token: string): Promise<Session | null>;
|
|
100
|
+
findSessionByRefreshToken(refreshToken: string): Promise<Session | null>;
|
|
80
101
|
deleteSession(sessionId: string): Promise<boolean>;
|
|
81
102
|
deleteUserSessions(userId: string): Promise<number>;
|
|
82
103
|
addPasswordToHistory(userId: string, passwordHash: string): Promise<void>;
|
package/dist/drizzle/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { DrizzleAdapter, collectionToDrizzleSchema,
|
|
2
|
-
export { PostgresAuthAdapter } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
|
|
1
|
+
export { DrizzleAdapter, collectionToDrizzleSchema, createDrizzleAdapter, fieldToDrizzleType } from '../chunk-Y3TM7WH7.js';
|
|
2
|
+
export { PostgresAuthAdapter } from '../chunk-DBUYB32X.js';
|
|
3
|
+
import '../chunk-WOWUL7ZY.js';
|
|
4
|
+
export { createDatabase, genId, runMigrations, seedDefaultRoles } from '../chunk-RGIQKTZ7.js';
|
|
5
|
+
import '../chunk-A4USRVTQ.js';
|
|
5
6
|
import '../chunk-Z6ZWNWWR.js';
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkATBOUGQP_cjs = require('../chunk-ATBOUGQP.cjs');
|
|
4
|
+
require('../chunk-G7VZBCD6.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "ALL_FIELD_TYPES", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkATBOUGQP_cjs.ALL_FIELD_TYPES; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "COMPLEX_FIELD_TYPES", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkATBOUGQP_cjs.COMPLEX_FIELD_TYPES; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "LAYOUT_FIELD_TYPES", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkATBOUGQP_cjs.LAYOUT_FIELD_TYPES; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "PRIMITIVE_FIELD_TYPES", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkATBOUGQP_cjs.PRIMITIVE_FIELD_TYPES; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "RELATIONAL_FIELD_TYPES", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkATBOUGQP_cjs.RELATIONAL_FIELD_TYPES; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "createColumnNode", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkATBOUGQP_cjs.createColumnNode; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "createColumnsNode", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkATBOUGQP_cjs.createColumnsNode; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "createEmptyParagraphNode", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkATBOUGQP_cjs.createEmptyParagraphNode; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "createRelationshipFieldConfig", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunkATBOUGQP_cjs.createRelationshipFieldConfig; }
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "isArrayField", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () { return chunkATBOUGQP_cjs.isArrayField; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "isBlocksField", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunkATBOUGQP_cjs.isBlocksField; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "isGroupField", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunkATBOUGQP_cjs.isGroupField; }
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "isImageField", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return chunkATBOUGQP_cjs.isImageField; }
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "isLayoutField", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () { return chunkATBOUGQP_cjs.isLayoutField; }
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "isNumberField", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () { return chunkATBOUGQP_cjs.isNumberField; }
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "isRelationshipField", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () { return chunkATBOUGQP_cjs.isRelationshipField; }
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "isRichTextField", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () { return chunkATBOUGQP_cjs.isRichTextField; }
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "isSelectField", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () { return chunkATBOUGQP_cjs.isSelectField; }
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "isTextField", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () { return chunkATBOUGQP_cjs.isTextField; }
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "isUploadField", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () { return chunkATBOUGQP_cjs.isUploadField; }
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, "normalizeRichTextDocument", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function () { return chunkATBOUGQP_cjs.normalizeRichTextDocument; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "normalizeRichTextValue", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunkATBOUGQP_cjs.normalizeRichTextValue; }
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "renderRichText", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () { return chunkATBOUGQP_cjs.renderRichText; }
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "richTextStyles", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () { return chunkATBOUGQP_cjs.richTextStyles; }
|
|
103
|
+
});
|
|
104
|
+
//# sourceMappingURL=index.cjs.map
|
|
105
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { p as ALL_FIELD_TYPES, A as ArrayField, B as BaseField, a as Block, b as BlockAdmin, c as BlockImage, d as BlocksField, W as ButtonField, q as COMPLEX_FIELD_TYPES, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, E as EmailField, F as Field, h as FieldAdmin, i as FieldType, G as GroupField, X as Hook, I as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, Y as ListField, M as MarkdownField, N as NumberField, r as PRIMITIVE_FIELD_TYPES, P as PasswordField, s as RELATIONAL_FIELD_TYPES, R as RadioField, j as RelationshipField, k as RichTextBlock, l as RichTextField, m as RowField, S as SelectField, T as TabsField, n as TextField, Z as TextFieldVariant, o as TextareaField, U as UploadField, V as ValidateOptions, _ as createRelationshipFieldConfig, t as isArrayField, u as isBlocksField, v as isGroupField, w as isImageField, x as isLayoutField, y as isNumberField, z as isRelationshipField, H as isRichTextField, K as isSelectField, O as isTextField, Q as isUploadField } from '../types-VtjUxIMp.cjs';
|
|
2
|
+
|
|
3
|
+
interface RichTextMark {
|
|
4
|
+
type: string;
|
|
5
|
+
attrs?: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
interface RichTextNode {
|
|
8
|
+
type?: string;
|
|
9
|
+
attrs?: Record<string, unknown>;
|
|
10
|
+
content?: RichTextNode[];
|
|
11
|
+
text?: string;
|
|
12
|
+
marks?: RichTextMark[];
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
interface RichTextDocument extends RichTextNode {
|
|
16
|
+
type: "doc";
|
|
17
|
+
content: RichTextNode[];
|
|
18
|
+
}
|
|
19
|
+
declare const richTextStyles: string;
|
|
20
|
+
declare function createEmptyParagraphNode(): RichTextNode;
|
|
21
|
+
declare function createColumnNode(content?: RichTextNode[]): RichTextNode;
|
|
22
|
+
declare function createColumnsNode(columns?: number): RichTextNode;
|
|
23
|
+
declare function normalizeRichTextDocument(value: unknown): RichTextDocument;
|
|
24
|
+
declare function normalizeRichTextValue<T>(value: T): T;
|
|
25
|
+
declare function renderRichText(value: unknown): string;
|
|
26
|
+
|
|
27
|
+
export { type RichTextDocument, type RichTextMark, type RichTextNode, createColumnNode, createColumnsNode, createEmptyParagraphNode, normalizeRichTextDocument, normalizeRichTextValue, renderRichText, richTextStyles };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { p as ALL_FIELD_TYPES, A as ArrayField, B as BaseField, a as Block, b as BlockAdmin, c as BlockImage, d as BlocksField, W as ButtonField, q as COMPLEX_FIELD_TYPES, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, E as EmailField, F as Field, h as FieldAdmin, i as FieldType, G as GroupField, X as Hook, I as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, Y as ListField, M as MarkdownField, N as NumberField, r as PRIMITIVE_FIELD_TYPES, P as PasswordField, s as RELATIONAL_FIELD_TYPES, R as RadioField, j as RelationshipField, k as RichTextBlock, l as RichTextField, m as RowField, S as SelectField, T as TabsField, n as TextField, Z as TextFieldVariant, o as TextareaField, U as UploadField, V as ValidateOptions, _ as createRelationshipFieldConfig, t as isArrayField, u as isBlocksField, v as isGroupField, w as isImageField, x as isLayoutField, y as isNumberField, z as isRelationshipField, H as isRichTextField, K as isSelectField, O as isTextField, Q as isUploadField } from '../types-VtjUxIMp.js';
|
|
2
|
+
|
|
3
|
+
interface RichTextMark {
|
|
4
|
+
type: string;
|
|
5
|
+
attrs?: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
interface RichTextNode {
|
|
8
|
+
type?: string;
|
|
9
|
+
attrs?: Record<string, unknown>;
|
|
10
|
+
content?: RichTextNode[];
|
|
11
|
+
text?: string;
|
|
12
|
+
marks?: RichTextMark[];
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
interface RichTextDocument extends RichTextNode {
|
|
16
|
+
type: "doc";
|
|
17
|
+
content: RichTextNode[];
|
|
18
|
+
}
|
|
19
|
+
declare const richTextStyles: string;
|
|
20
|
+
declare function createEmptyParagraphNode(): RichTextNode;
|
|
21
|
+
declare function createColumnNode(content?: RichTextNode[]): RichTextNode;
|
|
22
|
+
declare function createColumnsNode(columns?: number): RichTextNode;
|
|
23
|
+
declare function normalizeRichTextDocument(value: unknown): RichTextDocument;
|
|
24
|
+
declare function normalizeRichTextValue<T>(value: T): T;
|
|
25
|
+
declare function renderRichText(value: unknown): string;
|
|
26
|
+
|
|
27
|
+
export { type RichTextDocument, type RichTextMark, type RichTextNode, createColumnNode, createColumnsNode, createEmptyParagraphNode, normalizeRichTextDocument, normalizeRichTextValue, renderRichText, richTextStyles };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ALL_FIELD_TYPES, COMPLEX_FIELD_TYPES, LAYOUT_FIELD_TYPES, PRIMITIVE_FIELD_TYPES, RELATIONAL_FIELD_TYPES, createColumnNode, createColumnsNode, createEmptyParagraphNode, createRelationshipFieldConfig, isArrayField, isBlocksField, isGroupField, isImageField, isLayoutField, isNumberField, isRelationshipField, isRichTextField, isSelectField, isTextField, isUploadField, normalizeRichTextDocument, normalizeRichTextValue, renderRichText, richTextStyles } from '../chunk-Q23JB3KL.js';
|
|
2
|
+
import '../chunk-Z6ZWNWWR.js';
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVJT6P4N6_cjs = require('../chunk-VJT6P4N6.cjs');
|
|
4
|
+
require('../chunk-R3XIBBAW.cjs');
|
|
4
5
|
require('../chunk-G7VZBCD6.cjs');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
Object.defineProperty(exports, "buildGraphQLSchema", {
|
|
9
10
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkVJT6P4N6_cjs.buildGraphQLSchema; }
|
|
11
12
|
});
|
|
12
13
|
Object.defineProperty(exports, "createGraphQLSchema", {
|
|
13
14
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkVJT6P4N6_cjs.createGraphQLSchema; }
|
|
15
16
|
});
|
|
16
17
|
//# sourceMappingURL=index.cjs.map
|
|
17
18
|
//# sourceMappingURL=index.cjs.map
|
package/dist/graphql/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { GraphQLSchema } from 'graphql';
|
|
2
|
-
import {
|
|
3
|
-
import { R as Registry } from '../index-
|
|
2
|
+
import { B as BaseAdapter, m as User, R as Request } from '../types-J3R9nVsZ.cjs';
|
|
3
|
+
import { R as Registry } from '../index-DfO7G4kN.cjs';
|
|
4
|
+
import '../types-VtjUxIMp.cjs';
|
|
4
5
|
import 'zod';
|
|
5
6
|
|
|
6
7
|
interface GraphQLSchemaOptions {
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { GraphQLSchema } from 'graphql';
|
|
2
|
-
import {
|
|
3
|
-
import { R as Registry } from '../index-
|
|
2
|
+
import { B as BaseAdapter, m as User, R as Request } from '../types-Bs1up4yP.js';
|
|
3
|
+
import { R as Registry } from '../index-CLp-DRKA.js';
|
|
4
|
+
import '../types-VtjUxIMp.js';
|
|
4
5
|
import 'zod';
|
|
5
6
|
|
|
6
7
|
interface GraphQLSchemaOptions {
|
package/dist/graphql/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { buildGraphQLSchema, createGraphQLSchema } from '../chunk-
|
|
1
|
+
export { buildGraphQLSchema, createGraphQLSchema } from '../chunk-REK7AYOC.js';
|
|
2
|
+
import '../chunk-SDMNUYVU.js';
|
|
2
3
|
import '../chunk-Z6ZWNWWR.js';
|
|
3
4
|
//# sourceMappingURL=index.js.map
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as CollectionConfig, G as GlobalConfig, P as PluginConfig } from './types-Bs1up4yP.js';
|
|
2
|
+
import { F as Field } from './types-VtjUxIMp.js';
|
|
2
3
|
import { ZodTypeAny } from 'zod';
|
|
3
4
|
|
|
4
5
|
declare class Registry {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as CollectionConfig, G as GlobalConfig, P as PluginConfig } from './types-J3R9nVsZ.cjs';
|
|
2
|
+
import { F as Field } from './types-VtjUxIMp.cjs';
|
|
2
3
|
import { ZodTypeAny } from 'zod';
|
|
3
4
|
|
|
4
5
|
declare class Registry {
|