@sonicjs-cms/core 2.10.0 → 2.11.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/{chunk-CJYFSKH7.js → chunk-2MXF4RYZ.js} +3 -3
- package/dist/{chunk-CJYFSKH7.js.map → chunk-2MXF4RYZ.js.map} +1 -1
- package/dist/{chunk-MNFY6DWY.cjs → chunk-56GUBLJE.cjs} +7 -7
- package/dist/{chunk-MNFY6DWY.cjs.map → chunk-56GUBLJE.cjs.map} +1 -1
- package/dist/{chunk-IIBRG5S5.cjs → chunk-6BVLPACH.cjs} +408 -2
- package/dist/chunk-6BVLPACH.cjs.map +1 -0
- package/dist/{chunk-RCA6R6VE.cjs → chunk-ASAEJ4B7.cjs} +315 -162
- package/dist/chunk-ASAEJ4B7.cjs.map +1 -0
- package/dist/{chunk-IT2TC4ZD.cjs → chunk-B2ASV5RD.cjs} +13 -7
- package/dist/chunk-B2ASV5RD.cjs.map +1 -0
- package/dist/{chunk-IZWNIUJI.js → chunk-BUU2US2Z.js} +3 -3
- package/dist/{chunk-IZWNIUJI.js.map → chunk-BUU2US2Z.js.map} +1 -1
- package/dist/{chunk-ZMVWMJ3S.cjs → chunk-DE5YTNCD.cjs} +9 -2
- package/dist/chunk-DE5YTNCD.cjs.map +1 -0
- package/dist/{chunk-4TTMQQC7.js → chunk-GKRGDJGG.js} +10 -4
- package/dist/chunk-GKRGDJGG.js.map +1 -0
- package/dist/{chunk-6O3RJV3C.js → chunk-H55AYIRI.js} +9 -2
- package/dist/chunk-H55AYIRI.js.map +1 -0
- package/dist/{chunk-JTNUM7JE.js → chunk-JTQBNSZX.js} +187 -34
- package/dist/chunk-JTQBNSZX.js.map +1 -0
- package/dist/{chunk-64APW3DW.cjs → chunk-LFAQUR7P.cjs} +9 -2
- package/dist/chunk-LFAQUR7P.cjs.map +1 -0
- package/dist/{chunk-27AOVQTR.js → chunk-NMLFKXWW.js} +402 -3
- package/dist/chunk-NMLFKXWW.js.map +1 -0
- package/dist/{chunk-EKPLKUZT.cjs → chunk-QLPFENZ2.cjs} +3 -3
- package/dist/{chunk-EKPLKUZT.cjs.map → chunk-QLPFENZ2.cjs.map} +1 -1
- package/dist/{chunk-KYGRJCZM.cjs → chunk-QTFKZBLC.cjs} +3 -2
- package/dist/chunk-QTFKZBLC.cjs.map +1 -0
- package/dist/{chunk-LOUJRBXV.js → chunk-QXOZI5Q2.js} +3 -2
- package/dist/chunk-QXOZI5Q2.js.map +1 -0
- package/dist/{chunk-7JMMLHPQ.js → chunk-VJCLJH3X.js} +9 -2
- package/dist/chunk-VJCLJH3X.js.map +1 -0
- package/dist/index.cjs +751 -152
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +125 -5
- package/dist/index.d.ts +125 -5
- package/dist/index.js +582 -15
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +29 -29
- package/dist/middleware.js +3 -3
- package/dist/migrations-UFVJTPVT.js +4 -0
- package/dist/{migrations-N2C2VPJU.js.map → migrations-UFVJTPVT.js.map} +1 -1
- package/dist/migrations-VNYOSUNE.cjs +13 -0
- package/dist/{migrations-ONIAY6GK.cjs.map → migrations-VNYOSUNE.cjs.map} +1 -1
- package/dist/{plugin-0Xogrln-.d.cts → plugin-DDYetMF-.d.cts} +1 -0
- package/dist/{plugin-0Xogrln-.d.ts → plugin-DDYetMF-.d.ts} +1 -0
- package/dist/{plugin-bootstrap-fpG98Otb.d.cts → plugin-bootstrap-DCXpeQVb.d.cts} +229 -1
- package/dist/{plugin-bootstrap-WmpvYM5w.d.ts → plugin-bootstrap-DXBAYaqM.d.ts} +229 -1
- package/dist/{plugin-manager-GcIeb226.d.cts → plugin-manager-BoM3Q7o7.d.cts} +1 -1
- package/dist/{plugin-manager-Clf2gXwj.d.ts → plugin-manager-Efx9RyDX.d.ts} +1 -1
- package/dist/plugins.cjs +10 -10
- package/dist/plugins.d.cts +2 -2
- package/dist/plugins.d.ts +2 -2
- package/dist/plugins.js +2 -2
- package/dist/routes.cjs +29 -29
- package/dist/routes.js +6 -6
- package/dist/services.cjs +60 -32
- package/dist/services.d.cts +1 -1
- package/dist/services.d.ts +1 -1
- package/dist/services.js +3 -3
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utils.cjs +11 -11
- package/dist/utils.js +1 -1
- package/migrations/033_form_content_integration.sql +19 -0
- package/package.json +1 -1
- package/dist/chunk-27AOVQTR.js.map +0 -1
- package/dist/chunk-4TTMQQC7.js.map +0 -1
- package/dist/chunk-64APW3DW.cjs.map +0 -1
- package/dist/chunk-6O3RJV3C.js.map +0 -1
- package/dist/chunk-7JMMLHPQ.js.map +0 -1
- package/dist/chunk-IIBRG5S5.cjs.map +0 -1
- package/dist/chunk-IT2TC4ZD.cjs.map +0 -1
- package/dist/chunk-JTNUM7JE.js.map +0 -1
- package/dist/chunk-KYGRJCZM.cjs.map +0 -1
- package/dist/chunk-LOUJRBXV.js.map +0 -1
- package/dist/chunk-RCA6R6VE.cjs.map +0 -1
- package/dist/chunk-ZMVWMJ3S.cjs.map +0 -1
- package/dist/migrations-N2C2VPJU.js +0 -4
- package/dist/migrations-ONIAY6GK.cjs +0 -13
|
@@ -73,6 +73,63 @@ declare function fullCollectionSync(db: D1Database): Promise<{
|
|
|
73
73
|
removed: string[];
|
|
74
74
|
}>;
|
|
75
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Form-Collection Sync Service
|
|
78
|
+
*
|
|
79
|
+
* Bridge logic that creates "shadow collections" for forms and
|
|
80
|
+
* dual-writes form submissions to the content table, enabling
|
|
81
|
+
* unified content management for form submissions.
|
|
82
|
+
*/
|
|
83
|
+
/**
|
|
84
|
+
* Convert a Form.io schema into a collection JSON schema definition
|
|
85
|
+
*/
|
|
86
|
+
declare function deriveCollectionSchemaFromFormio(formioSchema: any): any;
|
|
87
|
+
/**
|
|
88
|
+
* Derive a human-readable title from form submission data
|
|
89
|
+
*/
|
|
90
|
+
declare function deriveSubmissionTitle(data: Record<string, any>, formDisplayName: string): string;
|
|
91
|
+
/**
|
|
92
|
+
* Map form submission status to content status.
|
|
93
|
+
* Form submissions are complete data — they default to 'published'.
|
|
94
|
+
* Only rejected/spam submissions get demoted.
|
|
95
|
+
*/
|
|
96
|
+
declare function mapFormStatusToContentStatus(formStatus: string): string;
|
|
97
|
+
/**
|
|
98
|
+
* Create or update a shadow collection for a given form
|
|
99
|
+
*/
|
|
100
|
+
declare function syncFormCollection(db: D1Database, form: {
|
|
101
|
+
id: string;
|
|
102
|
+
name: string;
|
|
103
|
+
display_name: string;
|
|
104
|
+
description?: string | null;
|
|
105
|
+
formio_schema: any;
|
|
106
|
+
is_active: number | boolean;
|
|
107
|
+
}): Promise<{
|
|
108
|
+
collectionId: string;
|
|
109
|
+
status: 'created' | 'updated' | 'unchanged';
|
|
110
|
+
}>;
|
|
111
|
+
/**
|
|
112
|
+
* Sync all active forms to shadow collections
|
|
113
|
+
*/
|
|
114
|
+
declare function syncAllFormCollections(db: D1Database): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Create a content item from a form submission
|
|
117
|
+
*/
|
|
118
|
+
declare function createContentFromSubmission(db: D1Database, submissionData: Record<string, any>, form: {
|
|
119
|
+
id: string;
|
|
120
|
+
name: string;
|
|
121
|
+
display_name: string;
|
|
122
|
+
}, submissionId: string, metadata?: {
|
|
123
|
+
ipAddress?: string | null;
|
|
124
|
+
userAgent?: string | null;
|
|
125
|
+
userEmail?: string | null;
|
|
126
|
+
userId?: string | null;
|
|
127
|
+
}): Promise<string | null>;
|
|
128
|
+
/**
|
|
129
|
+
* Backfill existing form submissions that don't have a content_id
|
|
130
|
+
*/
|
|
131
|
+
declare function backfillFormSubmissions(db: D1Database, formId: string, collectionId: string): Promise<number>;
|
|
132
|
+
|
|
76
133
|
interface Migration {
|
|
77
134
|
id: string;
|
|
78
135
|
name: string;
|
|
@@ -515,6 +572,44 @@ declare const collections: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
515
572
|
identity: undefined;
|
|
516
573
|
generated: undefined;
|
|
517
574
|
}, {}, {}>;
|
|
575
|
+
sourceType: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
576
|
+
name: "source_type";
|
|
577
|
+
tableName: "collections";
|
|
578
|
+
dataType: "string";
|
|
579
|
+
columnType: "SQLiteText";
|
|
580
|
+
data: string;
|
|
581
|
+
driverParam: string;
|
|
582
|
+
notNull: false;
|
|
583
|
+
hasDefault: true;
|
|
584
|
+
isPrimaryKey: false;
|
|
585
|
+
isAutoincrement: false;
|
|
586
|
+
hasRuntimeDefault: false;
|
|
587
|
+
enumValues: [string, ...string[]];
|
|
588
|
+
baseColumn: never;
|
|
589
|
+
identity: undefined;
|
|
590
|
+
generated: undefined;
|
|
591
|
+
}, {}, {
|
|
592
|
+
length: number | undefined;
|
|
593
|
+
}>;
|
|
594
|
+
sourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
595
|
+
name: "source_id";
|
|
596
|
+
tableName: "collections";
|
|
597
|
+
dataType: "string";
|
|
598
|
+
columnType: "SQLiteText";
|
|
599
|
+
data: string;
|
|
600
|
+
driverParam: string;
|
|
601
|
+
notNull: false;
|
|
602
|
+
hasDefault: false;
|
|
603
|
+
isPrimaryKey: false;
|
|
604
|
+
isAutoincrement: false;
|
|
605
|
+
hasRuntimeDefault: false;
|
|
606
|
+
enumValues: [string, ...string[]];
|
|
607
|
+
baseColumn: never;
|
|
608
|
+
identity: undefined;
|
|
609
|
+
generated: undefined;
|
|
610
|
+
}, {}, {
|
|
611
|
+
length: number | undefined;
|
|
612
|
+
}>;
|
|
518
613
|
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
519
614
|
name: "created_at";
|
|
520
615
|
tableName: "collections";
|
|
@@ -3068,6 +3163,44 @@ declare const insertCollectionSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
3068
3163
|
identity: undefined;
|
|
3069
3164
|
generated: undefined;
|
|
3070
3165
|
}, {}, {}>;
|
|
3166
|
+
sourceType: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3167
|
+
name: "source_type";
|
|
3168
|
+
tableName: "collections";
|
|
3169
|
+
dataType: "string";
|
|
3170
|
+
columnType: "SQLiteText";
|
|
3171
|
+
data: string;
|
|
3172
|
+
driverParam: string;
|
|
3173
|
+
notNull: false;
|
|
3174
|
+
hasDefault: true;
|
|
3175
|
+
isPrimaryKey: false;
|
|
3176
|
+
isAutoincrement: false;
|
|
3177
|
+
hasRuntimeDefault: false;
|
|
3178
|
+
enumValues: [string, ...string[]];
|
|
3179
|
+
baseColumn: never;
|
|
3180
|
+
identity: undefined;
|
|
3181
|
+
generated: undefined;
|
|
3182
|
+
}, {}, {
|
|
3183
|
+
length: number | undefined;
|
|
3184
|
+
}>;
|
|
3185
|
+
sourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3186
|
+
name: "source_id";
|
|
3187
|
+
tableName: "collections";
|
|
3188
|
+
dataType: "string";
|
|
3189
|
+
columnType: "SQLiteText";
|
|
3190
|
+
data: string;
|
|
3191
|
+
driverParam: string;
|
|
3192
|
+
notNull: false;
|
|
3193
|
+
hasDefault: false;
|
|
3194
|
+
isPrimaryKey: false;
|
|
3195
|
+
isAutoincrement: false;
|
|
3196
|
+
hasRuntimeDefault: false;
|
|
3197
|
+
enumValues: [string, ...string[]];
|
|
3198
|
+
baseColumn: never;
|
|
3199
|
+
identity: undefined;
|
|
3200
|
+
generated: undefined;
|
|
3201
|
+
}, {}, {
|
|
3202
|
+
length: number | undefined;
|
|
3203
|
+
}>;
|
|
3071
3204
|
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3072
3205
|
name: "created_at";
|
|
3073
3206
|
tableName: "collections";
|
|
@@ -3234,6 +3367,44 @@ declare const selectCollectionSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
3234
3367
|
identity: undefined;
|
|
3235
3368
|
generated: undefined;
|
|
3236
3369
|
}, {}, {}>;
|
|
3370
|
+
sourceType: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3371
|
+
name: "source_type";
|
|
3372
|
+
tableName: "collections";
|
|
3373
|
+
dataType: "string";
|
|
3374
|
+
columnType: "SQLiteText";
|
|
3375
|
+
data: string;
|
|
3376
|
+
driverParam: string;
|
|
3377
|
+
notNull: false;
|
|
3378
|
+
hasDefault: true;
|
|
3379
|
+
isPrimaryKey: false;
|
|
3380
|
+
isAutoincrement: false;
|
|
3381
|
+
hasRuntimeDefault: false;
|
|
3382
|
+
enumValues: [string, ...string[]];
|
|
3383
|
+
baseColumn: never;
|
|
3384
|
+
identity: undefined;
|
|
3385
|
+
generated: undefined;
|
|
3386
|
+
}, {}, {
|
|
3387
|
+
length: number | undefined;
|
|
3388
|
+
}>;
|
|
3389
|
+
sourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3390
|
+
name: "source_id";
|
|
3391
|
+
tableName: "collections";
|
|
3392
|
+
dataType: "string";
|
|
3393
|
+
columnType: "SQLiteText";
|
|
3394
|
+
data: string;
|
|
3395
|
+
driverParam: string;
|
|
3396
|
+
notNull: false;
|
|
3397
|
+
hasDefault: false;
|
|
3398
|
+
isPrimaryKey: false;
|
|
3399
|
+
isAutoincrement: false;
|
|
3400
|
+
hasRuntimeDefault: false;
|
|
3401
|
+
enumValues: [string, ...string[]];
|
|
3402
|
+
baseColumn: never;
|
|
3403
|
+
identity: undefined;
|
|
3404
|
+
generated: undefined;
|
|
3405
|
+
}, {}, {
|
|
3406
|
+
length: number | undefined;
|
|
3407
|
+
}>;
|
|
3237
3408
|
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3238
3409
|
name: "created_at";
|
|
3239
3410
|
tableName: "collections";
|
|
@@ -8728,6 +8899,25 @@ declare const formSubmissions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
8728
8899
|
identity: undefined;
|
|
8729
8900
|
generated: undefined;
|
|
8730
8901
|
}, {}, {}>;
|
|
8902
|
+
contentId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
8903
|
+
name: "content_id";
|
|
8904
|
+
tableName: "form_submissions";
|
|
8905
|
+
dataType: "string";
|
|
8906
|
+
columnType: "SQLiteText";
|
|
8907
|
+
data: string;
|
|
8908
|
+
driverParam: string;
|
|
8909
|
+
notNull: false;
|
|
8910
|
+
hasDefault: false;
|
|
8911
|
+
isPrimaryKey: false;
|
|
8912
|
+
isAutoincrement: false;
|
|
8913
|
+
hasRuntimeDefault: false;
|
|
8914
|
+
enumValues: [string, ...string[]];
|
|
8915
|
+
baseColumn: never;
|
|
8916
|
+
identity: undefined;
|
|
8917
|
+
generated: undefined;
|
|
8918
|
+
}, {}, {
|
|
8919
|
+
length: number | undefined;
|
|
8920
|
+
}>;
|
|
8731
8921
|
submittedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
8732
8922
|
name: "submitted_at";
|
|
8733
8923
|
tableName: "form_submissions";
|
|
@@ -9884,6 +10074,25 @@ declare const insertFormSubmissionSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
9884
10074
|
identity: undefined;
|
|
9885
10075
|
generated: undefined;
|
|
9886
10076
|
}, {}, {}>;
|
|
10077
|
+
contentId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
10078
|
+
name: "content_id";
|
|
10079
|
+
tableName: "form_submissions";
|
|
10080
|
+
dataType: "string";
|
|
10081
|
+
columnType: "SQLiteText";
|
|
10082
|
+
data: string;
|
|
10083
|
+
driverParam: string;
|
|
10084
|
+
notNull: false;
|
|
10085
|
+
hasDefault: false;
|
|
10086
|
+
isPrimaryKey: false;
|
|
10087
|
+
isAutoincrement: false;
|
|
10088
|
+
hasRuntimeDefault: false;
|
|
10089
|
+
enumValues: [string, ...string[]];
|
|
10090
|
+
baseColumn: never;
|
|
10091
|
+
identity: undefined;
|
|
10092
|
+
generated: undefined;
|
|
10093
|
+
}, {}, {
|
|
10094
|
+
length: number | undefined;
|
|
10095
|
+
}>;
|
|
9887
10096
|
submittedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
9888
10097
|
name: "submitted_at";
|
|
9889
10098
|
tableName: "form_submissions";
|
|
@@ -10252,6 +10461,25 @@ declare const selectFormSubmissionSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
10252
10461
|
identity: undefined;
|
|
10253
10462
|
generated: undefined;
|
|
10254
10463
|
}, {}, {}>;
|
|
10464
|
+
contentId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
10465
|
+
name: "content_id";
|
|
10466
|
+
tableName: "form_submissions";
|
|
10467
|
+
dataType: "string";
|
|
10468
|
+
columnType: "SQLiteText";
|
|
10469
|
+
data: string;
|
|
10470
|
+
driverParam: string;
|
|
10471
|
+
notNull: false;
|
|
10472
|
+
hasDefault: false;
|
|
10473
|
+
isPrimaryKey: false;
|
|
10474
|
+
isAutoincrement: false;
|
|
10475
|
+
hasRuntimeDefault: false;
|
|
10476
|
+
enumValues: [string, ...string[]];
|
|
10477
|
+
baseColumn: never;
|
|
10478
|
+
identity: undefined;
|
|
10479
|
+
generated: undefined;
|
|
10480
|
+
}, {}, {
|
|
10481
|
+
length: number | undefined;
|
|
10482
|
+
}>;
|
|
10255
10483
|
submittedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
10256
10484
|
name: "submitted_at";
|
|
10257
10485
|
tableName: "form_submissions";
|
|
@@ -10790,4 +11018,4 @@ declare class PluginBootstrapService {
|
|
|
10790
11018
|
isBootstrapNeeded(): Promise<boolean>;
|
|
10791
11019
|
}
|
|
10792
11020
|
|
|
10793
|
-
export {
|
|
11021
|
+
export { type SystemLog as $, validateCollectionConfig as A, schema as B, type CorePlugin as C, type Collection as D, type Content as E, type Plugin as F, type PluginHook as G, type LogConfig as H, type Media as I, type NewContent as J, type NewLogConfig as K, type LogCategory as L, type Migration as M, type NewCollection as N, type NewMedia as O, PluginBootstrapService as P, type NewPlugin as Q, type NewPluginActivityLog as R, type NewPluginAsset as S, type NewPluginHook as T, type NewPluginRoute as U, type NewSystemLog as V, type NewUser as W, type NewWorkflowHistory as X, type PluginActivityLog as Y, type PluginAsset as Z, type PluginRoute as _, type LogEntry as a, type User as a0, type WorkflowHistory as a1, apiTokens as a2, collections as a3, content as a4, contentVersions as a5, insertCollectionSchema as a6, insertContentSchema as a7, insertLogConfigSchema as a8, insertMediaSchema as a9, selectWorkflowHistorySchema as aA, systemLogs as aB, users as aC, workflowHistory as aD, insertPluginActivityLogSchema as aa, insertPluginAssetSchema as ab, insertPluginHookSchema as ac, insertPluginRouteSchema as ad, insertPluginSchema as ae, insertSystemLogSchema as af, insertUserSchema as ag, insertWorkflowHistorySchema as ah, logConfig as ai, media as aj, pluginActivityLog as ak, pluginAssets as al, pluginHooks as am, pluginRoutes as an, plugins as ao, selectCollectionSchema as ap, selectContentSchema as aq, selectLogConfigSchema as ar, selectMediaSchema as as, selectPluginActivityLogSchema as at, selectPluginAssetSchema as au, selectPluginHookSchema as av, selectPluginRouteSchema as aw, selectPluginSchema as ax, selectSystemLogSchema as ay, selectUserSchema as az, type LogFilter as b, type LogLevel as c, Logger as d, MigrationService as e, type MigrationStatus as f, PluginService as g, backfillFormSubmissions as h, cleanupRemovedCollections as i, createContentFromSubmission as j, deriveCollectionSchemaFromFormio as k, deriveSubmissionTitle as l, fullCollectionSync as m, getAvailableCollectionNames as n, getLogger as o, getManagedCollections as p, initLogger as q, isCollectionManaged as r, loadCollectionConfig as s, loadCollectionConfigs as t, mapFormStatusToContentStatus as u, registerCollections as v, syncAllFormCollections as w, syncCollection as x, syncCollections as y, syncFormCollection as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as HookSystem, b as HookHandler, k as PluginHook, v as PluginValidator$1, P as Plugin, u as PluginValidationResult, q as PluginRegistry, i as PluginConfig, t as PluginStatus, m as PluginManager$1, j as PluginContext } from './plugin-
|
|
1
|
+
import { d as HookSystem, b as HookHandler, k as PluginHook, v as PluginValidator$1, P as Plugin, u as PluginValidationResult, q as PluginRegistry, i as PluginConfig, t as PluginStatus, m as PluginManager$1, j as PluginContext } from './plugin-DDYetMF-.cjs';
|
|
2
2
|
import { Hono } from 'hono';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as HookSystem, b as HookHandler, k as PluginHook, v as PluginValidator$1, P as Plugin, u as PluginValidationResult, q as PluginRegistry, i as PluginConfig, t as PluginStatus, m as PluginManager$1, j as PluginContext } from './plugin-
|
|
1
|
+
import { d as HookSystem, b as HookHandler, k as PluginHook, v as PluginValidator$1, P as Plugin, u as PluginValidationResult, q as PluginRegistry, i as PluginConfig, t as PluginStatus, m as PluginManager$1, j as PluginContext } from './plugin-DDYetMF-.js';
|
|
2
2
|
import { Hono } from 'hono';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/plugins.cjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk56GUBLJE_cjs = require('./chunk-56GUBLJE.cjs');
|
|
4
4
|
var chunk6FHNRRJ3_cjs = require('./chunk-6FHNRRJ3.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-QTFKZBLC.cjs');
|
|
6
6
|
require('./chunk-IGJUBJBW.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "HookSystemImpl", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk56GUBLJE_cjs.HookSystemImpl; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "HookUtils", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk56GUBLJE_cjs.HookUtils; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "PluginManager", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk56GUBLJE_cjs.PluginManager; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "PluginRegistryImpl", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk56GUBLJE_cjs.PluginRegistryImpl; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "PluginValidator", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk56GUBLJE_cjs.PluginValidator; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "ScopedHookSystem", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk56GUBLJE_cjs.ScopedHookSystem; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "createTurnstileMiddleware", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk56GUBLJE_cjs.createTurnstileMiddleware; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "verifyTurnstile", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk56GUBLJE_cjs.verifyTurnstile; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "TurnstileService", {
|
|
43
43
|
enumerable: true,
|
package/dist/plugins.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { H as HookSystemImpl, a as HookUtils, P as PluginManager, b as PluginRegistryImpl, c as PluginValidator, S as ScopedHookSystem } from './plugin-manager-
|
|
1
|
+
export { H as HookSystemImpl, a as HookUtils, P as PluginManager, b as PluginRegistryImpl, c as PluginValidator, S as ScopedHookSystem } from './plugin-manager-BoM3Q7o7.cjs';
|
|
2
2
|
import { D1Database } from '@cloudflare/workers-types';
|
|
3
3
|
import * as hono from 'hono';
|
|
4
4
|
import { Context, Next } from 'hono';
|
|
5
|
-
import './plugin-
|
|
5
|
+
import './plugin-DDYetMF-.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
8
|
interface TurnstileSettings {
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { H as HookSystemImpl, a as HookUtils, P as PluginManager, b as PluginRegistryImpl, c as PluginValidator, S as ScopedHookSystem } from './plugin-manager-
|
|
1
|
+
export { H as HookSystemImpl, a as HookUtils, P as PluginManager, b as PluginRegistryImpl, c as PluginValidator, S as ScopedHookSystem } from './plugin-manager-Efx9RyDX.js';
|
|
2
2
|
import { D1Database } from '@cloudflare/workers-types';
|
|
3
3
|
import * as hono from 'hono';
|
|
4
4
|
import { Context, Next } from 'hono';
|
|
5
|
-
import './plugin-
|
|
5
|
+
import './plugin-DDYetMF-.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
8
|
interface TurnstileSettings {
|
package/dist/plugins.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { HookSystemImpl, HookUtils, PluginManager, PluginRegistryImpl, PluginValidator, ScopedHookSystem, createTurnstileMiddleware, verifyTurnstile } from './chunk-
|
|
1
|
+
export { HookSystemImpl, HookUtils, PluginManager, PluginRegistryImpl, PluginValidator, ScopedHookSystem, createTurnstileMiddleware, verifyTurnstile } from './chunk-2MXF4RYZ.js';
|
|
2
2
|
export { TurnstileService } from './chunk-J5WGMRSU.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-QXOZI5Q2.js';
|
|
4
4
|
import './chunk-V4OQ3NZ2.js';
|
|
5
5
|
//# sourceMappingURL=plugins.js.map
|
|
6
6
|
//# sourceMappingURL=plugins.js.map
|
package/dist/routes.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
3
|
+
var chunkASAEJ4B7_cjs = require('./chunk-ASAEJ4B7.cjs');
|
|
4
|
+
require('./chunk-LFAQUR7P.cjs');
|
|
5
|
+
require('./chunk-B2ASV5RD.cjs');
|
|
6
|
+
require('./chunk-6BVLPACH.cjs');
|
|
7
|
+
require('./chunk-DE5YTNCD.cjs');
|
|
8
8
|
require('./chunk-LTKV7AE5.cjs');
|
|
9
9
|
require('./chunk-6FHNRRJ3.cjs');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-QLPFENZ2.cjs');
|
|
11
11
|
require('./chunk-P3XDZL6Q.cjs');
|
|
12
12
|
require('./chunk-RCQ2HIQD.cjs');
|
|
13
13
|
require('./chunk-MNWKYY5E.cjs');
|
|
@@ -17,95 +17,95 @@ require('./chunk-IGJUBJBW.cjs');
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "ROUTES_INFO", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkASAEJ4B7_cjs.ROUTES_INFO; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "adminApiReferenceRoutes", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkASAEJ4B7_cjs.router2; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "adminApiRoutes", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkASAEJ4B7_cjs.admin_api_default; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "adminCheckboxRoutes", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkASAEJ4B7_cjs.adminCheckboxRoutes; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "adminCodeExamplesRoutes", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkASAEJ4B7_cjs.admin_code_examples_default; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "adminCollectionsRoutes", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkASAEJ4B7_cjs.adminCollectionsRoutes; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "adminContentRoutes", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkASAEJ4B7_cjs.admin_content_default; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "adminDashboardRoutes", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkASAEJ4B7_cjs.router; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "adminDesignRoutes", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkASAEJ4B7_cjs.adminDesignRoutes; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "adminFormsRoutes", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkASAEJ4B7_cjs.adminFormsRoutes; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "adminLogsRoutes", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkASAEJ4B7_cjs.adminLogsRoutes; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "adminMediaRoutes", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkASAEJ4B7_cjs.adminMediaRoutes; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "adminPluginRoutes", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkASAEJ4B7_cjs.adminPluginRoutes; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "adminSettingsRoutes", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkASAEJ4B7_cjs.adminSettingsRoutes; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "adminTestimonialsRoutes", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkASAEJ4B7_cjs.admin_testimonials_default; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "adminUsersRoutes", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkASAEJ4B7_cjs.userRoutes; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "apiContentCrudRoutes", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkASAEJ4B7_cjs.api_content_crud_default; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "apiMediaRoutes", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkASAEJ4B7_cjs.api_media_default; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "apiRoutes", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkASAEJ4B7_cjs.api_default; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "apiSystemRoutes", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkASAEJ4B7_cjs.api_system_default; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "authRoutes", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkASAEJ4B7_cjs.auth_default; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "publicFormsRoutes", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkASAEJ4B7_cjs.public_forms_default; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "testCleanupRoutes", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkASAEJ4B7_cjs.test_cleanup_default; }
|
|
109
109
|
});
|
|
110
110
|
//# sourceMappingURL=routes.cjs.map
|
|
111
111
|
//# sourceMappingURL=routes.cjs.map
|
package/dist/routes.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { ROUTES_INFO, router2 as adminApiReferenceRoutes, admin_api_default as adminApiRoutes, adminCheckboxRoutes, admin_code_examples_default as adminCodeExamplesRoutes, adminCollectionsRoutes, admin_content_default as adminContentRoutes, router as adminDashboardRoutes, adminDesignRoutes, adminFormsRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_testimonials_default as adminTestimonialsRoutes, userRoutes as adminUsersRoutes, api_content_crud_default as apiContentCrudRoutes, api_media_default as apiMediaRoutes, api_default as apiRoutes, api_system_default as apiSystemRoutes, auth_default as authRoutes, public_forms_default as publicFormsRoutes, test_cleanup_default as testCleanupRoutes } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { ROUTES_INFO, router2 as adminApiReferenceRoutes, admin_api_default as adminApiRoutes, adminCheckboxRoutes, admin_code_examples_default as adminCodeExamplesRoutes, adminCollectionsRoutes, admin_content_default as adminContentRoutes, router as adminDashboardRoutes, adminDesignRoutes, adminFormsRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_testimonials_default as adminTestimonialsRoutes, userRoutes as adminUsersRoutes, api_content_crud_default as apiContentCrudRoutes, api_media_default as apiMediaRoutes, api_default as apiRoutes, api_system_default as apiSystemRoutes, auth_default as authRoutes, public_forms_default as publicFormsRoutes, test_cleanup_default as testCleanupRoutes } from './chunk-JTQBNSZX.js';
|
|
2
|
+
import './chunk-VJCLJH3X.js';
|
|
3
|
+
import './chunk-GKRGDJGG.js';
|
|
4
|
+
import './chunk-NMLFKXWW.js';
|
|
5
|
+
import './chunk-H55AYIRI.js';
|
|
6
6
|
import './chunk-JJS7JZCH.js';
|
|
7
7
|
import './chunk-J5WGMRSU.js';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-BUU2US2Z.js';
|
|
9
9
|
import './chunk-X7ZAEI5S.js';
|
|
10
10
|
import './chunk-FICTAGD4.js';
|
|
11
11
|
import './chunk-TQABQWOP.js';
|