@kyro-cms/core 0.3.0 → 0.3.2
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/client.d.cts +2 -3
- package/dist/client.d.ts +2 -3
- package/dist/drizzle/index.d.cts +1 -2
- package/dist/drizzle/index.d.ts +1 -2
- package/dist/index-Bz9JqRGI.d.cts +86 -0
- package/dist/index-Bz9JqRGI.d.ts +86 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +171 -6
- package/dist/index.d.ts +171 -6
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/{types-CGA0z0XD.d.cts → types-1u353OHN.d.cts} +1 -34
- package/dist/{types-CGA0z0XD.d.ts → types-1u353OHN.d.ts} +1 -34
- package/package.json +1 -1
- package/dist/rate-limit-BmBKGQKx.d.cts +0 -223
- package/dist/rate-limit-CmDv55RV.d.ts +0 -223
package/dist/client.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { A as AdminConfig, a as ArrayField, b as AuthConfig, B as BaseField, c as Block, d as BlockAdmin, e as BlockImage, f as BlocksField, C as CheckboxField, g as CodeField, h as CollapsibleField, i as CollectionConfig, j as ColorField, D as DateField, E as EmailField, F as Field, k as FieldAdmin, l as FieldType, G as GlobalConfig, m as GroupField, I as ImageField, n as ImageSize, J as JSONField, K as KyroConfig, M as MarkdownField, N as NumberField, P as PasswordField, R as RadioField, o as RelationshipField, p as RichTextBlock, q as RichTextField, r as RowField, S as SelectField, T as TabsField, s as TextField, t as TextareaField, U as UploadConfig, u as UploadField, V as VersionConfig } from './types-kGfsGdos.cjs';
|
|
2
|
-
export { A as
|
|
3
|
-
export { A as AdminStylingConfig, C as CSSGenerator, F as FieldStyling,
|
|
4
|
-
import 'ioredis';
|
|
2
|
+
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-1u353OHN.cjs';
|
|
3
|
+
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';
|
|
5
4
|
|
|
6
5
|
declare function createAuditContext(req: Request): {
|
|
7
6
|
ipAddress: string;
|
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { A as AdminConfig, a as ArrayField, b as AuthConfig, B as BaseField, c as Block, d as BlockAdmin, e as BlockImage, f as BlocksField, C as CheckboxField, g as CodeField, h as CollapsibleField, i as CollectionConfig, j as ColorField, D as DateField, E as EmailField, F as Field, k as FieldAdmin, l as FieldType, G as GlobalConfig, m as GroupField, I as ImageField, n as ImageSize, J as JSONField, K as KyroConfig, M as MarkdownField, N as NumberField, P as PasswordField, R as RadioField, o as RelationshipField, p as RichTextBlock, q as RichTextField, r as RowField, S as SelectField, T as TabsField, s as TextField, t as TextareaField, U as UploadConfig, u as UploadField, V as VersionConfig } from './types-kGfsGdos.js';
|
|
2
|
-
export { A as
|
|
3
|
-
export { A as AdminStylingConfig, C as CSSGenerator, F as FieldStyling,
|
|
4
|
-
import 'ioredis';
|
|
2
|
+
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-1u353OHN.js';
|
|
3
|
+
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';
|
|
5
4
|
|
|
6
5
|
declare function createAuditContext(req: Request): {
|
|
7
6
|
ipAddress: string;
|
package/dist/drizzle/index.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { A as AbstractBaseAdapter } from '../base-Db9LkB1N.cjs';
|
|
2
2
|
import { x as FindArgs, y as FindResult, z as FindByIDArgs, H as CreateArgs, L as UpdateArgs, O as DeleteArgs, i as CollectionConfig, F as Field } from '../types-kGfsGdos.cjs';
|
|
3
3
|
import { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
|
|
4
|
-
import {
|
|
5
|
-
import 'ioredis';
|
|
4
|
+
import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-1u353OHN.cjs';
|
|
6
5
|
|
|
7
6
|
declare function fieldToDrizzleType(field: Field, dialect?: 'postgres' | 'mysql' | 'sqlite'): string;
|
|
8
7
|
declare function collectionToDrizzleSchema(collection: CollectionConfig, dialect?: 'postgres' | 'mysql' | 'sqlite'): string;
|
package/dist/drizzle/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { A as AbstractBaseAdapter } from '../base-Hu6ij8sZ.js';
|
|
2
2
|
import { x as FindArgs, y as FindResult, z as FindByIDArgs, H as CreateArgs, L as UpdateArgs, O as DeleteArgs, i as CollectionConfig, F as Field } from '../types-kGfsGdos.js';
|
|
3
3
|
import { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
|
|
4
|
-
import {
|
|
5
|
-
import 'ioredis';
|
|
4
|
+
import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-1u353OHN.js';
|
|
6
5
|
|
|
7
6
|
declare function fieldToDrizzleType(field: Field, dialect?: 'postgres' | 'mysql' | 'sqlite'): string;
|
|
8
7
|
declare function collectionToDrizzleSchema(collection: CollectionConfig, dialect?: 'postgres' | 'mysql' | 'sqlite'): string;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
type StylingMode = 'css' | 'tailwind' | 'css-in-js' | 'styled-components' | 'vanilla-extract';
|
|
2
|
+
interface StylingConfig {
|
|
3
|
+
mode: StylingMode;
|
|
4
|
+
theme?: ThemeConfig;
|
|
5
|
+
customProperties?: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
interface ThemeConfig {
|
|
8
|
+
colors?: ThemeColors;
|
|
9
|
+
fonts?: ThemeFonts;
|
|
10
|
+
spacing?: ThemeSpacing;
|
|
11
|
+
borderRadius?: ThemeBorderRadius;
|
|
12
|
+
shadows?: ThemeShadows;
|
|
13
|
+
breakpoints?: Record<string, string>;
|
|
14
|
+
}
|
|
15
|
+
interface ThemeColors {
|
|
16
|
+
primary?: string;
|
|
17
|
+
secondary?: string;
|
|
18
|
+
accent?: string;
|
|
19
|
+
background?: string;
|
|
20
|
+
surface?: string;
|
|
21
|
+
text?: string;
|
|
22
|
+
textMuted?: string;
|
|
23
|
+
border?: string;
|
|
24
|
+
error?: string;
|
|
25
|
+
warning?: string;
|
|
26
|
+
success?: string;
|
|
27
|
+
info?: string;
|
|
28
|
+
}
|
|
29
|
+
interface ThemeFonts {
|
|
30
|
+
sans?: string;
|
|
31
|
+
serif?: string;
|
|
32
|
+
mono?: string;
|
|
33
|
+
}
|
|
34
|
+
interface ThemeSpacing {
|
|
35
|
+
xs?: string;
|
|
36
|
+
sm?: string;
|
|
37
|
+
md?: string;
|
|
38
|
+
lg?: string;
|
|
39
|
+
xl?: string;
|
|
40
|
+
'2xl'?: string;
|
|
41
|
+
'3xl'?: string;
|
|
42
|
+
'4xl'?: string;
|
|
43
|
+
}
|
|
44
|
+
interface ThemeBorderRadius {
|
|
45
|
+
sm?: string;
|
|
46
|
+
md?: string;
|
|
47
|
+
lg?: string;
|
|
48
|
+
xl?: string;
|
|
49
|
+
full?: string;
|
|
50
|
+
}
|
|
51
|
+
interface ThemeShadows {
|
|
52
|
+
sm?: string;
|
|
53
|
+
md?: string;
|
|
54
|
+
lg?: string;
|
|
55
|
+
xl?: string;
|
|
56
|
+
}
|
|
57
|
+
declare class CSSGenerator {
|
|
58
|
+
private config;
|
|
59
|
+
private css;
|
|
60
|
+
constructor(config: StylingConfig);
|
|
61
|
+
addRule(selector: string, properties: Record<string, string>): this;
|
|
62
|
+
addMediaQuery(breakpoint: string, rules: string[]): this;
|
|
63
|
+
generate(): string;
|
|
64
|
+
}
|
|
65
|
+
declare function generateTailwindConfig(theme: ThemeConfig): Record<string, any>;
|
|
66
|
+
declare const defaultLightTheme: ThemeConfig;
|
|
67
|
+
declare const defaultDarkTheme: ThemeConfig;
|
|
68
|
+
declare const ecommerce2026Theme: ThemeConfig;
|
|
69
|
+
declare function generateCSSVariables(theme: ThemeConfig): string;
|
|
70
|
+
interface AdminStylingConfig {
|
|
71
|
+
mode: StylingMode;
|
|
72
|
+
theme?: ThemeConfig;
|
|
73
|
+
customStyles?: string;
|
|
74
|
+
componentOverrides?: Record<string, Record<string, string>>;
|
|
75
|
+
}
|
|
76
|
+
declare function createAdminStyling(config: AdminStylingConfig): string;
|
|
77
|
+
interface FieldStyling {
|
|
78
|
+
wrapper?: Record<string, string>;
|
|
79
|
+
label?: Record<string, string>;
|
|
80
|
+
input?: Record<string, string>;
|
|
81
|
+
error?: Record<string, string>;
|
|
82
|
+
description?: Record<string, string>;
|
|
83
|
+
}
|
|
84
|
+
declare const defaultFieldStyling: Record<string, FieldStyling>;
|
|
85
|
+
|
|
86
|
+
export { type AdminStylingConfig as A, CSSGenerator as C, type FieldStyling as F, type StylingConfig as S, type ThemeBorderRadius as T, type StylingMode as a, type ThemeColors as b, type ThemeConfig as c, type ThemeFonts as d, type ThemeShadows as e, type ThemeSpacing as f, createAdminStyling as g, defaultDarkTheme as h, defaultFieldStyling as i, defaultLightTheme as j, ecommerce2026Theme as k, generateCSSVariables as l, generateTailwindConfig as m };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
type StylingMode = 'css' | 'tailwind' | 'css-in-js' | 'styled-components' | 'vanilla-extract';
|
|
2
|
+
interface StylingConfig {
|
|
3
|
+
mode: StylingMode;
|
|
4
|
+
theme?: ThemeConfig;
|
|
5
|
+
customProperties?: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
interface ThemeConfig {
|
|
8
|
+
colors?: ThemeColors;
|
|
9
|
+
fonts?: ThemeFonts;
|
|
10
|
+
spacing?: ThemeSpacing;
|
|
11
|
+
borderRadius?: ThemeBorderRadius;
|
|
12
|
+
shadows?: ThemeShadows;
|
|
13
|
+
breakpoints?: Record<string, string>;
|
|
14
|
+
}
|
|
15
|
+
interface ThemeColors {
|
|
16
|
+
primary?: string;
|
|
17
|
+
secondary?: string;
|
|
18
|
+
accent?: string;
|
|
19
|
+
background?: string;
|
|
20
|
+
surface?: string;
|
|
21
|
+
text?: string;
|
|
22
|
+
textMuted?: string;
|
|
23
|
+
border?: string;
|
|
24
|
+
error?: string;
|
|
25
|
+
warning?: string;
|
|
26
|
+
success?: string;
|
|
27
|
+
info?: string;
|
|
28
|
+
}
|
|
29
|
+
interface ThemeFonts {
|
|
30
|
+
sans?: string;
|
|
31
|
+
serif?: string;
|
|
32
|
+
mono?: string;
|
|
33
|
+
}
|
|
34
|
+
interface ThemeSpacing {
|
|
35
|
+
xs?: string;
|
|
36
|
+
sm?: string;
|
|
37
|
+
md?: string;
|
|
38
|
+
lg?: string;
|
|
39
|
+
xl?: string;
|
|
40
|
+
'2xl'?: string;
|
|
41
|
+
'3xl'?: string;
|
|
42
|
+
'4xl'?: string;
|
|
43
|
+
}
|
|
44
|
+
interface ThemeBorderRadius {
|
|
45
|
+
sm?: string;
|
|
46
|
+
md?: string;
|
|
47
|
+
lg?: string;
|
|
48
|
+
xl?: string;
|
|
49
|
+
full?: string;
|
|
50
|
+
}
|
|
51
|
+
interface ThemeShadows {
|
|
52
|
+
sm?: string;
|
|
53
|
+
md?: string;
|
|
54
|
+
lg?: string;
|
|
55
|
+
xl?: string;
|
|
56
|
+
}
|
|
57
|
+
declare class CSSGenerator {
|
|
58
|
+
private config;
|
|
59
|
+
private css;
|
|
60
|
+
constructor(config: StylingConfig);
|
|
61
|
+
addRule(selector: string, properties: Record<string, string>): this;
|
|
62
|
+
addMediaQuery(breakpoint: string, rules: string[]): this;
|
|
63
|
+
generate(): string;
|
|
64
|
+
}
|
|
65
|
+
declare function generateTailwindConfig(theme: ThemeConfig): Record<string, any>;
|
|
66
|
+
declare const defaultLightTheme: ThemeConfig;
|
|
67
|
+
declare const defaultDarkTheme: ThemeConfig;
|
|
68
|
+
declare const ecommerce2026Theme: ThemeConfig;
|
|
69
|
+
declare function generateCSSVariables(theme: ThemeConfig): string;
|
|
70
|
+
interface AdminStylingConfig {
|
|
71
|
+
mode: StylingMode;
|
|
72
|
+
theme?: ThemeConfig;
|
|
73
|
+
customStyles?: string;
|
|
74
|
+
componentOverrides?: Record<string, Record<string, string>>;
|
|
75
|
+
}
|
|
76
|
+
declare function createAdminStyling(config: AdminStylingConfig): string;
|
|
77
|
+
interface FieldStyling {
|
|
78
|
+
wrapper?: Record<string, string>;
|
|
79
|
+
label?: Record<string, string>;
|
|
80
|
+
input?: Record<string, string>;
|
|
81
|
+
error?: Record<string, string>;
|
|
82
|
+
description?: Record<string, string>;
|
|
83
|
+
}
|
|
84
|
+
declare const defaultFieldStyling: Record<string, FieldStyling>;
|
|
85
|
+
|
|
86
|
+
export { type AdminStylingConfig as A, CSSGenerator as C, type FieldStyling as F, type StylingConfig as S, type ThemeBorderRadius as T, type StylingMode as a, type ThemeColors as b, type ThemeConfig as c, type ThemeFonts as d, type ThemeShadows as e, type ThemeSpacing as f, createAdminStyling as g, defaultDarkTheme as h, defaultFieldStyling as i, defaultLightTheme as j, ecommerce2026Theme as k, generateCSSVariables as l, generateTailwindConfig as m };
|
package/dist/index.cjs
CHANGED
|
@@ -3614,8 +3614,12 @@ var RateLimiter = class {
|
|
|
3614
3614
|
this.userLimits[type] = config;
|
|
3615
3615
|
}
|
|
3616
3616
|
};
|
|
3617
|
+
|
|
3618
|
+
// src/auth/security/audit-log-types.ts
|
|
3617
3619
|
var DEFAULT_RETENTION_CONFIG = {
|
|
3618
3620
|
retentionDays: 30};
|
|
3621
|
+
|
|
3622
|
+
// src/auth/security/audit-log.ts
|
|
3619
3623
|
var AuditLogger = class {
|
|
3620
3624
|
redis;
|
|
3621
3625
|
prefix;
|