@kyro-cms/core 0.9.8 → 0.10.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.
- package/dist/api-handler-graphql.cjs +22 -17
- package/dist/api-handler-graphql.cjs.map +1 -1
- package/dist/api-handler-graphql.js +18 -13
- package/dist/api-handler-graphql.js.map +1 -1
- package/dist/api-handler-trpc.cjs +13 -13
- package/dist/api-handler-trpc.js +11 -11
- package/dist/api-handler.cjs +14 -14
- package/dist/api-handler.js +11 -11
- package/dist/{bootstrap-4CELFLJO.cjs → bootstrap-FUAPY2OF.cjs} +9 -9
- package/dist/{bootstrap-4CELFLJO.cjs.map → bootstrap-FUAPY2OF.cjs.map} +1 -1
- package/dist/bootstrap-OXNVM7FP.js +7 -0
- package/dist/{bootstrap-3PV3GJ3S.js.map → bootstrap-OXNVM7FP.js.map} +1 -1
- package/dist/{chunk-HA4MGAZJ.js → chunk-354ISGA4.js} +112 -49
- package/dist/chunk-354ISGA4.js.map +1 -0
- package/dist/{chunk-2GXALYKV.js → chunk-3AKCVYDB.js} +4 -109
- package/dist/chunk-3AKCVYDB.js.map +1 -0
- package/dist/{chunk-OVZO4KB6.cjs → chunk-3P5AHK2U.cjs} +34 -38
- package/dist/chunk-3P5AHK2U.cjs.map +1 -0
- package/dist/{chunk-KGJRJ7CU.cjs → chunk-4OCMVGEY.cjs} +4 -110
- package/dist/chunk-4OCMVGEY.cjs.map +1 -0
- package/dist/{chunk-EQTMBMDR.js → chunk-526M5MOA.js} +19 -8
- package/dist/chunk-526M5MOA.js.map +1 -0
- package/dist/{chunk-5PMQQFRE.cjs → chunk-5GFQPHGT.cjs} +6 -9
- package/dist/chunk-5GFQPHGT.cjs.map +1 -0
- package/dist/chunk-5RPRLTTN.js +861 -0
- package/dist/chunk-5RPRLTTN.js.map +1 -0
- package/dist/{chunk-ZFHTJ2YX.js → chunk-AN2L2CJZ.js} +16 -20
- package/dist/chunk-AN2L2CJZ.js.map +1 -0
- package/dist/{chunk-RFFSZSCL.cjs → chunk-GYIJ3JJM.cjs} +3 -11
- package/dist/chunk-GYIJ3JJM.cjs.map +1 -0
- package/dist/{chunk-PQ72Z6WC.js → chunk-GZS4LMR7.js} +2 -5
- package/dist/chunk-GZS4LMR7.js.map +1 -0
- package/dist/{chunk-GAAHG2Z4.js → chunk-HY6B7B5A.js} +4 -7
- package/dist/chunk-HY6B7B5A.js.map +1 -0
- package/dist/{chunk-2CBCU5ML.cjs → chunk-ISKYUUP4.cjs} +142 -79
- package/dist/chunk-ISKYUUP4.cjs.map +1 -0
- package/dist/{chunk-Z7OH3MWT.cjs → chunk-LNTFRAHF.cjs} +110 -2
- package/dist/chunk-LNTFRAHF.cjs.map +1 -0
- package/dist/chunk-N4GN6Q3V.cjs +869 -0
- package/dist/chunk-N4GN6Q3V.cjs.map +1 -0
- package/dist/{chunk-6UNONDW7.js → chunk-N5QSHUA6.js} +2 -11
- package/dist/chunk-N5QSHUA6.js.map +1 -0
- package/dist/{chunk-PJ7F4TCC.cjs → chunk-NQJJYRLP.cjs} +24 -13
- package/dist/chunk-NQJJYRLP.cjs.map +1 -0
- package/dist/{chunk-65DSXNQL.js → chunk-OX6GOIPH.js} +4 -4
- package/dist/{chunk-65DSXNQL.js.map → chunk-OX6GOIPH.js.map} +1 -1
- package/dist/{chunk-Q23GAMLE.cjs → chunk-THBQG64D.cjs} +2 -5
- package/dist/chunk-THBQG64D.cjs.map +1 -0
- package/dist/{chunk-W3GT55TY.cjs → chunk-TQG7G7YI.cjs} +13 -13
- package/dist/{chunk-W3GT55TY.cjs.map → chunk-TQG7G7YI.cjs.map} +1 -1
- package/dist/{chunk-Y7AQK4R4.cjs → chunk-VKREAIBA.cjs} +2 -11
- package/dist/chunk-VKREAIBA.cjs.map +1 -0
- package/dist/{chunk-2Z7YAJBS.js → chunk-WDTTHKDS.js} +109 -3
- package/dist/chunk-WDTTHKDS.js.map +1 -0
- package/dist/{chunk-V7KZQIZ6.js → chunk-XHAAAEXX.js} +2 -10
- package/dist/chunk-XHAAAEXX.js.map +1 -0
- package/dist/cli/index.cjs +145 -51
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +145 -51
- package/dist/cli/index.js.map +1 -1
- package/dist/drizzle/index.cjs +9 -9
- package/dist/drizzle/index.js +1 -1
- package/dist/graphql/index.cjs +7 -7
- package/dist/graphql/index.d.cts +21 -13
- package/dist/graphql/index.d.ts +21 -13
- package/dist/graphql/index.js +2 -2
- package/dist/index.cjs +92 -94
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +12 -14
- package/dist/index.js.map +1 -1
- package/dist/mongodb/index.cjs +3 -3
- package/dist/mongodb/index.js +1 -1
- package/dist/rest/index.cjs +8 -8
- package/dist/rest/index.js +6 -6
- package/dist/trpc/index.cjs +12 -12
- package/dist/trpc/index.js +3 -3
- package/package.json +1 -1
- package/dist/bootstrap-3PV3GJ3S.js +0 -7
- package/dist/chunk-2CBCU5ML.cjs.map +0 -1
- package/dist/chunk-2GXALYKV.js.map +0 -1
- package/dist/chunk-2Z7YAJBS.js.map +0 -1
- package/dist/chunk-5PMQQFRE.cjs.map +0 -1
- package/dist/chunk-6DURKQ6W.js +0 -1072
- package/dist/chunk-6DURKQ6W.js.map +0 -1
- package/dist/chunk-6UNONDW7.js.map +0 -1
- package/dist/chunk-EQTMBMDR.js.map +0 -1
- package/dist/chunk-GAAHG2Z4.js.map +0 -1
- package/dist/chunk-HA4MGAZJ.js.map +0 -1
- package/dist/chunk-KGJRJ7CU.cjs.map +0 -1
- package/dist/chunk-OVZO4KB6.cjs.map +0 -1
- package/dist/chunk-PF642V5O.cjs +0 -1080
- package/dist/chunk-PF642V5O.cjs.map +0 -1
- package/dist/chunk-PJ7F4TCC.cjs.map +0 -1
- package/dist/chunk-PQ72Z6WC.js.map +0 -1
- package/dist/chunk-Q23GAMLE.cjs.map +0 -1
- package/dist/chunk-RFFSZSCL.cjs.map +0 -1
- package/dist/chunk-V7KZQIZ6.js.map +0 -1
- package/dist/chunk-Y7AQK4R4.cjs.map +0 -1
- package/dist/chunk-Z7OH3MWT.cjs.map +0 -1
- package/dist/chunk-ZFHTJ2YX.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1165,15 +1165,16 @@ declare class MediaService {
|
|
|
1165
1165
|
private now;
|
|
1166
1166
|
private buildFindConditions;
|
|
1167
1167
|
private rowToMedia;
|
|
1168
|
+
static resolveMediaUrl(url: string | null | undefined, origin?: string): string | null;
|
|
1168
1169
|
private sqliteRun;
|
|
1169
1170
|
private sqliteGet;
|
|
1170
1171
|
upload(file: File, folder?: string): Promise<MediaRow>;
|
|
1171
1172
|
uploadFromUrl(url: string, folder?: string): Promise<MediaRow>;
|
|
1172
|
-
delete(id: string): Promise<void>;
|
|
1173
|
+
delete(id: string, origin?: string): Promise<void>;
|
|
1173
1174
|
deleteFile(url: string): Promise<void>;
|
|
1174
|
-
rename(id: string, newKey: string): Promise<MediaRow | null>;
|
|
1175
|
-
findById(id: string): Promise<MediaRow | null>;
|
|
1176
|
-
find(params?: MediaSearchParams): Promise<{
|
|
1175
|
+
rename(id: string, newKey: string, origin?: string): Promise<MediaRow | null>;
|
|
1176
|
+
findById(id: string, origin?: string): Promise<MediaRow | null>;
|
|
1177
|
+
find(params?: MediaSearchParams, origin?: string): Promise<{
|
|
1177
1178
|
docs: MediaRow[];
|
|
1178
1179
|
totalDocs: number;
|
|
1179
1180
|
page: number;
|
|
@@ -1185,7 +1186,7 @@ declare class MediaService {
|
|
|
1185
1186
|
alt?: string;
|
|
1186
1187
|
caption?: string;
|
|
1187
1188
|
folder?: string;
|
|
1188
|
-
}): Promise<MediaRow | null>;
|
|
1189
|
+
}, origin?: string): Promise<MediaRow | null>;
|
|
1189
1190
|
updateMany(ids: string[], data: {
|
|
1190
1191
|
folder?: string;
|
|
1191
1192
|
}): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1165,15 +1165,16 @@ declare class MediaService {
|
|
|
1165
1165
|
private now;
|
|
1166
1166
|
private buildFindConditions;
|
|
1167
1167
|
private rowToMedia;
|
|
1168
|
+
static resolveMediaUrl(url: string | null | undefined, origin?: string): string | null;
|
|
1168
1169
|
private sqliteRun;
|
|
1169
1170
|
private sqliteGet;
|
|
1170
1171
|
upload(file: File, folder?: string): Promise<MediaRow>;
|
|
1171
1172
|
uploadFromUrl(url: string, folder?: string): Promise<MediaRow>;
|
|
1172
|
-
delete(id: string): Promise<void>;
|
|
1173
|
+
delete(id: string, origin?: string): Promise<void>;
|
|
1173
1174
|
deleteFile(url: string): Promise<void>;
|
|
1174
|
-
rename(id: string, newKey: string): Promise<MediaRow | null>;
|
|
1175
|
-
findById(id: string): Promise<MediaRow | null>;
|
|
1176
|
-
find(params?: MediaSearchParams): Promise<{
|
|
1175
|
+
rename(id: string, newKey: string, origin?: string): Promise<MediaRow | null>;
|
|
1176
|
+
findById(id: string, origin?: string): Promise<MediaRow | null>;
|
|
1177
|
+
find(params?: MediaSearchParams, origin?: string): Promise<{
|
|
1177
1178
|
docs: MediaRow[];
|
|
1178
1179
|
totalDocs: number;
|
|
1179
1180
|
page: number;
|
|
@@ -1185,7 +1186,7 @@ declare class MediaService {
|
|
|
1185
1186
|
alt?: string;
|
|
1186
1187
|
caption?: string;
|
|
1187
1188
|
folder?: string;
|
|
1188
|
-
}): Promise<MediaRow | null>;
|
|
1189
|
+
}, origin?: string): Promise<MediaRow | null>;
|
|
1189
1190
|
updateMany(ids: string[], data: {
|
|
1190
1191
|
folder?: string;
|
|
1191
1192
|
}): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
export { RedisAuthAdapter } from './chunk-CF7OL6HR.js';
|
|
2
2
|
export { allSettingsGlobals, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, kitchenSinkCollections, mediaCollections, minimalCollections, templateCollections } from './chunk-53NYVYVX.js';
|
|
3
3
|
export { kyro } from './chunk-X4BPPD6K.js';
|
|
4
|
-
export { ConfigValidationError, Kyro, LocalAdapter, Registry, collectionToCreateZod, collectionToUpdateZod, collectionToWhereZod, collectionToZod, createKyro, createLocalAdapter, createRegistry, fieldToZod, getRegistry, globalToZod, resetRegistry, validateCollection, validateConfig, validateFields, validateGlobal } from './chunk-
|
|
5
|
-
export { autoBootstrap, bootstrapAdmin, bootstrapWithRetry, getBootstrapFromEnv } from './chunk-
|
|
4
|
+
export { ConfigValidationError, Kyro, LocalAdapter, Registry, collectionToCreateZod, collectionToUpdateZod, collectionToWhereZod, collectionToZod, createKyro, createLocalAdapter, createRegistry, fieldToZod, getRegistry, globalToZod, resetRegistry, validateCollection, validateConfig, validateFields, validateGlobal } from './chunk-AN2L2CJZ.js';
|
|
5
|
+
export { autoBootstrap, bootstrapAdmin, bootstrapWithRetry, getBootstrapFromEnv } from './chunk-HY6B7B5A.js';
|
|
6
6
|
import './chunk-GAOXD3XT.js';
|
|
7
7
|
export { CSSGenerator, createAdminStyling, defaultDarkTheme, defaultFieldStyling, defaultLightTheme, ecommerce2026Theme, generateCSSVariables, generateTailwindConfig } from './chunk-2HFJUUFZ.js';
|
|
8
8
|
export { ALL_FIELD_TYPES, COMPLEX_FIELD_TYPES, LAYOUT_FIELD_TYPES, PRIMITIVE_FIELD_TYPES, RELATIONAL_FIELD_TYPES, isArrayField, isBlocksField, isGroupField, isImageField, isLayoutField, isNumberField, isRelationshipField, isRichTextField, isSelectField, isTextField, isUploadField, normalizeRichTextValue, renderRichText, richTextStyles } from './chunk-FIAMXNTH.js';
|
|
9
|
-
export { createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure } from './chunk-
|
|
10
|
-
export { buildGraphQLSchema, createGraphQLSchema } from './chunk-
|
|
11
|
-
import { init_secret, AuditLogger, InMemoryRateLimiter, InMemoryAuditLogger, AuthRoutes } from './chunk-
|
|
12
|
-
export { AuditLogger, InMemoryAuditLogger, InMemoryRateLimiter, MediaService, createAuditContext, createHonoApp, createLocalStorage, createRESTAPI, getAppSecret, getEncryptionKey, getSessionConfig, loadSecrets, resolveProvider, setDbAdapter } from './chunk-
|
|
13
|
-
import { EmailTransport, PasswordPolicy } from './chunk-
|
|
14
|
-
export { ConfigService, EmailTransport, PasswordPolicy } from './chunk-
|
|
9
|
+
export { createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure } from './chunk-OX6GOIPH.js';
|
|
10
|
+
export { buildGraphQLSchema, createGraphQLSchema } from './chunk-5RPRLTTN.js';
|
|
11
|
+
import { init_secret, AuditLogger, InMemoryRateLimiter, InMemoryAuditLogger, AuthRoutes } from './chunk-354ISGA4.js';
|
|
12
|
+
export { AuditLogger, InMemoryAuditLogger, InMemoryRateLimiter, MediaService, createAuditContext, createHonoApp, createLocalStorage, createRESTAPI, getAppSecret, getEncryptionKey, getSessionConfig, loadSecrets, resolveProvider, setDbAdapter } from './chunk-354ISGA4.js';
|
|
13
|
+
import { EmailTransport, PasswordPolicy } from './chunk-N5QSHUA6.js';
|
|
14
|
+
export { ConfigService, EmailTransport, PasswordPolicy } from './chunk-N5QSHUA6.js';
|
|
15
15
|
import './chunk-YT7HXXVN.js';
|
|
16
16
|
import './chunk-XEB7PH2E.js';
|
|
17
17
|
import { SQLiteAuthAdapter } from './chunk-Q72BOAPK.js';
|
|
18
18
|
export { SQLiteAuthAdapter } from './chunk-Q72BOAPK.js';
|
|
19
19
|
import './chunk-P2YW545G.js';
|
|
20
|
-
export { ALL_WEBHOOK_EVENTS, WEBHOOK_COLLECTION, WEBHOOK_DELIVERY_COLLECTION, WEBHOOK_EVENTS, WebhookService, buildDeliveryRecord, createTestPayload, createWebhookService, deliverWebhook, deliverWithRetry, generateWebhookSecret, signPayload } from './chunk-
|
|
21
|
-
export { evaluateAccess, getWhereClause, mergeWhereClauses } from './chunk-
|
|
20
|
+
export { ALL_WEBHOOK_EVENTS, WEBHOOK_COLLECTION, WEBHOOK_DELIVERY_COLLECTION, WEBHOOK_EVENTS, WebhookService, buildDeliveryRecord, createTestPayload, createWebhookService, deliverWebhook, deliverWithRetry, generateWebhookSecret, signPayload } from './chunk-WDTTHKDS.js';
|
|
21
|
+
export { evaluateAccess, getWhereClause, mergeWhereClauses } from './chunk-3AKCVYDB.js';
|
|
22
22
|
export { KyroPubSub, KyroWSServer, PubSub, createWSServer } from './chunk-BYBMTIMT.js';
|
|
23
23
|
import './chunk-QU2RFFH4.js';
|
|
24
|
-
export { DrizzleAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, runMigrations, seedDefaultRoles } from './chunk-
|
|
24
|
+
export { DrizzleAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, runMigrations, seedDefaultRoles } from './chunk-XHAAAEXX.js';
|
|
25
25
|
import { PostgresAuthAdapter } from './chunk-CJX74IYK.js';
|
|
26
26
|
export { PostgresAuthAdapter } from './chunk-CJX74IYK.js';
|
|
27
27
|
import './chunk-UUDTPZX6.js';
|
|
28
28
|
import './chunk-GTGRLD4Y.js';
|
|
29
|
-
export { MongoDBAdapter, createMongoDBAdapter } from './chunk-
|
|
29
|
+
export { MongoDBAdapter, createMongoDBAdapter } from './chunk-GZS4LMR7.js';
|
|
30
30
|
import { MongoDBAuthAdapter } from './chunk-7OGPN7MP.js';
|
|
31
31
|
export { MongoDBAuthAdapter } from './chunk-7OGPN7MP.js';
|
|
32
32
|
export { AbstractBaseAdapter } from './chunk-WXVB364T.js';
|
|
@@ -107,7 +107,6 @@ var PluginManager = class {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
console.log(`[PluginManager] Registered plugin: ${plugin.name}`);
|
|
111
110
|
}
|
|
112
111
|
unregister(name) {
|
|
113
112
|
const plugin = this.plugins.get(name);
|
|
@@ -121,7 +120,6 @@ var PluginManager = class {
|
|
|
121
120
|
}
|
|
122
121
|
}
|
|
123
122
|
this.plugins.delete(name);
|
|
124
|
-
console.log(`[PluginManager] Unregistered plugin: ${name}`);
|
|
125
123
|
}
|
|
126
124
|
get(name) {
|
|
127
125
|
return this.plugins.get(name);
|