@sonicjs-cms/core 2.0.0-alpha.1 → 2.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/chunk-3MNMOLSA.js +133 -0
  2. package/dist/chunk-3MNMOLSA.js.map +1 -0
  3. package/dist/{chunk-BRC3F4CG.cjs → chunk-6BHDKYLU.cjs} +8 -2
  4. package/dist/{chunk-KRJMGD4E.js.map → chunk-6BHDKYLU.cjs.map} +1 -1
  5. package/dist/{chunk-CXZDAR6S.js → chunk-7N3HK7ZK.js} +3 -3
  6. package/dist/{chunk-CXZDAR6S.js.map → chunk-7N3HK7ZK.js.map} +1 -1
  7. package/dist/chunk-AGOE25LF.cjs +137 -0
  8. package/dist/chunk-AGOE25LF.cjs.map +1 -0
  9. package/dist/{chunk-NRSL6BQI.js → chunk-BITQ4MFX.js} +3 -3
  10. package/dist/{chunk-NRSL6BQI.js.map → chunk-BITQ4MFX.js.map} +1 -1
  11. package/dist/{chunk-24PWAFUT.cjs → chunk-BUKT6HP5.cjs} +13 -13
  12. package/dist/{chunk-24PWAFUT.cjs.map → chunk-BUKT6HP5.cjs.map} +1 -1
  13. package/dist/chunk-DG4INX36.cjs +14246 -0
  14. package/dist/chunk-DG4INX36.cjs.map +1 -0
  15. package/dist/chunk-FDUDHGI6.js +14233 -0
  16. package/dist/chunk-FDUDHGI6.js.map +1 -0
  17. package/dist/{chunk-L3NXO7Y4.cjs → chunk-FVMV5DKA.cjs} +49 -49
  18. package/dist/{chunk-L3NXO7Y4.cjs.map → chunk-FVMV5DKA.cjs.map} +1 -1
  19. package/dist/{chunk-KRJMGD4E.js → chunk-FZYF43TN.js} +8 -2
  20. package/dist/chunk-FZYF43TN.js.map +1 -0
  21. package/dist/chunk-G4JGVZAF.js +1337 -0
  22. package/dist/chunk-G4JGVZAF.js.map +1 -0
  23. package/dist/{chunk-EMMSS5I5.cjs → chunk-IGJUBJBW.cjs} +8 -2
  24. package/dist/{chunk-ALTMI5Y2.cjs.map → chunk-IGJUBJBW.cjs.map} +1 -1
  25. package/dist/chunk-LEGKJ5DI.cjs +1344 -0
  26. package/dist/chunk-LEGKJ5DI.cjs.map +1 -0
  27. package/dist/{chunk-WJ7QYVR2.cjs → chunk-RNR4HA23.cjs} +4 -4
  28. package/dist/{chunk-WJ7QYVR2.cjs.map → chunk-RNR4HA23.cjs.map} +1 -1
  29. package/dist/{chunk-G3PMV62Z.js → chunk-V4OQ3NZ2.js} +7 -3
  30. package/dist/{chunk-G3PMV62Z.js.map → chunk-V4OQ3NZ2.js.map} +1 -1
  31. package/dist/{chunk-PTQZ5FEI.js → chunk-WESS2U3K.js} +3 -3
  32. package/dist/{chunk-PTQZ5FEI.js.map → chunk-WESS2U3K.js.map} +1 -1
  33. package/dist/index.cjs +147 -101
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.ts +5 -135
  36. package/dist/index.js +24 -9
  37. package/dist/index.js.map +1 -1
  38. package/dist/middleware.cjs +23 -23
  39. package/dist/middleware.d.ts +2 -206
  40. package/dist/middleware.js +3 -3
  41. package/dist/plugins.cjs +8 -8
  42. package/dist/plugins.d.ts +2 -330
  43. package/dist/plugins.js +2 -2
  44. package/dist/routes.cjs +52 -3
  45. package/dist/routes.d.ts +2 -17
  46. package/dist/routes.js +7 -2
  47. package/dist/services.cjs +31 -19
  48. package/dist/services.d.ts +2 -5
  49. package/dist/services.js +3 -3
  50. package/dist/templates.cjs +23 -10
  51. package/dist/templates.d.ts +2 -140
  52. package/dist/templates.js +3 -2
  53. package/dist/types.cjs +1 -1
  54. package/dist/types.d.ts +2 -41
  55. package/dist/types.js +1 -1
  56. package/dist/utils.cjs +1 -1
  57. package/dist/utils.d.ts +2 -184
  58. package/dist/utils.js +1 -1
  59. package/migrations/001_initial_schema.sql +198 -0
  60. package/migrations/002_faq_plugin.sql +86 -0
  61. package/migrations/003_stage5_enhancements.sql +121 -0
  62. package/migrations/004_stage6_user_management.sql +183 -0
  63. package/migrations/005_stage7_workflow_automation.sql +294 -0
  64. package/migrations/006_plugin_system.sql +155 -0
  65. package/migrations/007_demo_login_plugin.sql +23 -0
  66. package/migrations/008_fix_slug_validation.sql +22 -0
  67. package/migrations/009_system_logging.sql +57 -0
  68. package/migrations/011_config_managed_collections.sql +14 -0
  69. package/migrations/012_testimonials_plugin.sql +80 -0
  70. package/migrations/013_code_examples_plugin.sql +177 -0
  71. package/migrations/014_fix_plugin_registry.sql +88 -0
  72. package/migrations/015_add_remaining_plugins.sql +89 -0
  73. package/migrations/016_remove_duplicate_cache_plugin.sql +17 -0
  74. package/migrations/017_auth_configurable_fields.sql +49 -0
  75. package/package.json +2 -2
  76. package/dist/chunk-4URGXJP7.js +0 -3
  77. package/dist/chunk-4URGXJP7.js.map +0 -1
  78. package/dist/chunk-ALTMI5Y2.cjs +0 -4
  79. package/dist/chunk-BOLQHE4J.cjs +0 -11
  80. package/dist/chunk-BOLQHE4J.cjs.map +0 -1
  81. package/dist/chunk-BRC3F4CG.cjs.map +0 -1
  82. package/dist/chunk-EMMSS5I5.cjs.map +0 -1
  83. package/dist/chunk-HD7R6T6I.js +0 -9
  84. package/dist/chunk-HD7R6T6I.js.map +0 -1
  85. package/dist/collection-config-FLlGtsh9.d.cts +0 -107
  86. package/dist/collection-config-FLlGtsh9.d.ts +0 -107
  87. package/dist/index-BlsY5XNH.d.ts +0 -8333
  88. package/dist/index-D45jaIlr.d.cts +0 -8333
  89. package/dist/index.d.cts +0 -136
  90. package/dist/middleware.d.cts +0 -206
  91. package/dist/plugin-UzmDImQc.d.cts +0 -357
  92. package/dist/plugin-UzmDImQc.d.ts +0 -357
  93. package/dist/plugins.d.cts +0 -330
  94. package/dist/routes.d.cts +0 -17
  95. package/dist/services.d.cts +0 -5
  96. package/dist/templates.d.cts +0 -140
  97. package/dist/types.d.cts +0 -41
  98. package/dist/utils.d.cts +0 -184
package/dist/plugins.cjs CHANGED
@@ -1,34 +1,34 @@
1
1
  'use strict';
2
2
 
3
- var chunkL3NXO7Y4_cjs = require('./chunk-L3NXO7Y4.cjs');
3
+ var chunkFVMV5DKA_cjs = require('./chunk-FVMV5DKA.cjs');
4
4
  require('./chunk-KYGRJCZM.cjs');
5
- require('./chunk-EMMSS5I5.cjs');
5
+ require('./chunk-IGJUBJBW.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "HookSystemImpl", {
10
10
  enumerable: true,
11
- get: function () { return chunkL3NXO7Y4_cjs.HookSystemImpl; }
11
+ get: function () { return chunkFVMV5DKA_cjs.HookSystemImpl; }
12
12
  });
13
13
  Object.defineProperty(exports, "HookUtils", {
14
14
  enumerable: true,
15
- get: function () { return chunkL3NXO7Y4_cjs.HookUtils; }
15
+ get: function () { return chunkFVMV5DKA_cjs.HookUtils; }
16
16
  });
17
17
  Object.defineProperty(exports, "PluginManager", {
18
18
  enumerable: true,
19
- get: function () { return chunkL3NXO7Y4_cjs.PluginManager; }
19
+ get: function () { return chunkFVMV5DKA_cjs.PluginManager; }
20
20
  });
21
21
  Object.defineProperty(exports, "PluginRegistryImpl", {
22
22
  enumerable: true,
23
- get: function () { return chunkL3NXO7Y4_cjs.PluginRegistryImpl; }
23
+ get: function () { return chunkFVMV5DKA_cjs.PluginRegistryImpl; }
24
24
  });
25
25
  Object.defineProperty(exports, "PluginValidator", {
26
26
  enumerable: true,
27
- get: function () { return chunkL3NXO7Y4_cjs.PluginValidator; }
27
+ get: function () { return chunkFVMV5DKA_cjs.PluginValidator; }
28
28
  });
29
29
  Object.defineProperty(exports, "ScopedHookSystem", {
30
30
  enumerable: true,
31
- get: function () { return chunkL3NXO7Y4_cjs.ScopedHookSystem; }
31
+ get: function () { return chunkFVMV5DKA_cjs.ScopedHookSystem; }
32
32
  });
33
33
  //# sourceMappingURL=plugins.cjs.map
34
34
  //# sourceMappingURL=plugins.cjs.map
package/dist/plugins.d.ts CHANGED
@@ -1,330 +1,2 @@
1
- import { l as HookSystem, H as HookHandler, j as PluginHook, r as PluginValidator$1, P as Plugin, s as PluginValidationResult, m as PluginRegistry, b as PluginConfig, o as PluginStatus, n as PluginManager$1, a as PluginContext } from './plugin-UzmDImQc.js';
2
- import { Hono } from 'hono';
3
- import 'zod';
4
- import '@cloudflare/workers-types';
5
-
6
- /**
7
- * Hook System Implementation
8
- *
9
- * Provides event-driven extensibility for plugins
10
- */
11
-
12
- declare class HookSystemImpl implements HookSystem {
13
- private hooks;
14
- private executing;
15
- /**
16
- * Register a hook handler
17
- */
18
- register(hookName: string, handler: HookHandler, priority?: number): void;
19
- /**
20
- * Execute all handlers for a hook
21
- */
22
- execute(hookName: string, data: any, context?: any): Promise<any>;
23
- /**
24
- * Remove a hook handler
25
- */
26
- unregister(hookName: string, handler: HookHandler): void;
27
- /**
28
- * Get all registered hooks for a name
29
- */
30
- getHooks(hookName: string): PluginHook[];
31
- /**
32
- * Get all registered hook names
33
- */
34
- getHookNames(): string[];
35
- /**
36
- * Get hook statistics
37
- */
38
- getStats(): {
39
- hookName: string;
40
- handlerCount: number;
41
- }[];
42
- /**
43
- * Clear all hooks (useful for testing)
44
- */
45
- clear(): void;
46
- /**
47
- * Create a scoped hook system for a plugin
48
- */
49
- createScope(_pluginName: string): ScopedHookSystem;
50
- }
51
- /**
52
- * Scoped hook system for individual plugins
53
- */
54
- declare class ScopedHookSystem {
55
- private parent;
56
- private registeredHooks;
57
- constructor(parent: HookSystemImpl);
58
- /**
59
- * Register a hook (scoped to this plugin)
60
- */
61
- register(hookName: string, handler: HookHandler, priority?: number): void;
62
- /**
63
- * Execute a hook
64
- */
65
- execute(hookName: string, data: any, context?: any): Promise<any>;
66
- /**
67
- * Unregister a specific hook
68
- */
69
- unregister(hookName: string, handler: HookHandler): void;
70
- /**
71
- * Unregister all hooks for this plugin
72
- */
73
- unregisterAll(): void;
74
- /**
75
- * Get hooks registered by this plugin
76
- */
77
- getRegisteredHooks(): {
78
- hookName: string;
79
- handler: HookHandler;
80
- }[];
81
- }
82
- /**
83
- * Hook utilities
84
- */
85
- declare class HookUtils {
86
- /**
87
- * Create a hook name with namespace
88
- */
89
- static createHookName(namespace: string, event: string): string;
90
- /**
91
- * Parse a hook name to extract namespace and event
92
- */
93
- static parseHookName(hookName: string): {
94
- namespace: string;
95
- event: string;
96
- };
97
- /**
98
- * Create a middleware that executes hooks
99
- */
100
- static createHookMiddleware(hookSystem: HookSystem, beforeHook?: string, afterHook?: string): (c: any, next: any) => Promise<void>;
101
- /**
102
- * Create a debounced hook handler
103
- */
104
- static debounce(handler: HookHandler, delay: number): HookHandler;
105
- /**
106
- * Create a throttled hook handler
107
- */
108
- static throttle(handler: HookHandler, limit: number): HookHandler;
109
- }
110
-
111
- /**
112
- * Plugin Validator
113
- *
114
- * Validates plugin definitions, dependencies, and compatibility
115
- */
116
-
117
- declare class PluginValidator implements PluginValidator$1 {
118
- private static readonly RESERVED_NAMES;
119
- private static readonly RESERVED_PATHS;
120
- /**
121
- * Validate plugin definition
122
- */
123
- validate(plugin: Plugin): PluginValidationResult;
124
- /**
125
- * Validate plugin dependencies
126
- */
127
- validateDependencies(plugin: Plugin, registry: PluginRegistry): PluginValidationResult;
128
- /**
129
- * Validate plugin compatibility with SonicJS version
130
- */
131
- validateCompatibility(plugin: Plugin, sonicVersion: string): PluginValidationResult;
132
- /**
133
- * Check if two version ranges are compatible
134
- */
135
- private isCompatible;
136
- /**
137
- * Validate plugin security constraints
138
- */
139
- validateSecurity(plugin: Plugin): PluginValidationResult;
140
- }
141
-
142
- /**
143
- * Plugin Registry Implementation
144
- *
145
- * Manages plugin registration, activation, and lifecycle
146
- */
147
-
148
- declare class PluginRegistryImpl implements PluginRegistry {
149
- private plugins;
150
- private configs;
151
- private statuses;
152
- private validator;
153
- constructor(validator?: PluginValidator);
154
- /**
155
- * Get plugin by name
156
- */
157
- get(name: string): Plugin | undefined;
158
- /**
159
- * Get all registered plugins
160
- */
161
- getAll(): Plugin[];
162
- /**
163
- * Get active plugins
164
- */
165
- getActive(): Plugin[];
166
- /**
167
- * Register a plugin
168
- */
169
- register(plugin: Plugin): Promise<void>;
170
- /**
171
- * Unregister a plugin
172
- */
173
- unregister(name: string): Promise<void>;
174
- /**
175
- * Check if plugin is registered
176
- */
177
- has(name: string): boolean;
178
- /**
179
- * Activate a plugin
180
- */
181
- activate(name: string): Promise<void>;
182
- /**
183
- * Deactivate a plugin
184
- */
185
- deactivate(name: string): Promise<void>;
186
- /**
187
- * Get plugin configuration
188
- */
189
- getConfig(name: string): PluginConfig | undefined;
190
- /**
191
- * Set plugin configuration
192
- */
193
- setConfig(name: string, config: PluginConfig): void;
194
- /**
195
- * Get plugin status
196
- */
197
- getStatus(name: string): PluginStatus | undefined;
198
- /**
199
- * Get all plugin statuses
200
- */
201
- getAllStatuses(): Map<string, PluginStatus>;
202
- /**
203
- * Update plugin status
204
- */
205
- private updateStatus;
206
- /**
207
- * Get plugins that depend on the specified plugin
208
- */
209
- private getDependents;
210
- /**
211
- * Get dependency graph
212
- */
213
- getDependencyGraph(): Map<string, string[]>;
214
- /**
215
- * Resolve plugin load order based on dependencies
216
- */
217
- resolveLoadOrder(): string[];
218
- /**
219
- * Export plugin configuration
220
- */
221
- exportConfig(): {
222
- plugins: PluginConfig[];
223
- };
224
- /**
225
- * Import plugin configuration
226
- */
227
- importConfig(config: {
228
- plugins: PluginConfig[];
229
- }): void;
230
- /**
231
- * Clear all plugins (useful for testing)
232
- */
233
- clear(): void;
234
- /**
235
- * Get registry statistics
236
- */
237
- getStats(): {
238
- total: number;
239
- active: number;
240
- inactive: number;
241
- withErrors: number;
242
- };
243
- }
244
-
245
- /**
246
- * Plugin Manager
247
- *
248
- * Central orchestrator for the plugin system
249
- */
250
-
251
- declare class PluginManager implements PluginManager$1 {
252
- readonly registry: PluginRegistry;
253
- readonly hooks: HookSystem;
254
- private validator;
255
- private context?;
256
- private scopedHooks;
257
- private pluginRoutes;
258
- constructor();
259
- /**
260
- * Initialize plugin system
261
- */
262
- initialize(context: PluginContext): Promise<void>;
263
- /**
264
- * Load plugins from configuration
265
- */
266
- loadPlugins(configs: PluginConfig[]): Promise<void>;
267
- /**
268
- * Install a plugin
269
- */
270
- install(plugin: Plugin, config?: PluginConfig): Promise<void>;
271
- /**
272
- * Uninstall a plugin
273
- */
274
- uninstall(name: string): Promise<void>;
275
- /**
276
- * Get plugin status
277
- */
278
- getStatus(name: string): PluginStatus;
279
- /**
280
- * Get all plugin statuses
281
- */
282
- getAllStatuses(): PluginStatus[];
283
- /**
284
- * Register plugin extensions (routes, middleware, etc.)
285
- */
286
- private registerPluginExtensions;
287
- /**
288
- * Unregister plugin extensions
289
- */
290
- private unregisterPluginExtensions;
291
- /**
292
- * Update plugin status
293
- */
294
- private updatePluginStatus;
295
- /**
296
- * Create a logger for a plugin
297
- */
298
- private createLogger;
299
- /**
300
- * Get plugin routes for mounting in main app
301
- */
302
- getPluginRoutes(): Map<string, Hono>;
303
- /**
304
- * Get plugin middleware for main app
305
- */
306
- getPluginMiddleware(): Array<{
307
- name: string;
308
- handler: any;
309
- priority: number;
310
- global: boolean;
311
- }>;
312
- /**
313
- * Execute shutdown procedures
314
- */
315
- shutdown(): Promise<void>;
316
- /**
317
- * Get plugin system statistics
318
- */
319
- getStats(): {
320
- registry: ReturnType<PluginRegistryImpl['getStats']>;
321
- hooks: Array<{
322
- hookName: string;
323
- handlerCount: number;
324
- }>;
325
- routes: number;
326
- middleware: number;
327
- };
328
- }
329
-
330
- export { HookSystemImpl, HookUtils, PluginManager, PluginRegistryImpl, PluginValidator, ScopedHookSystem };
1
+ // Plugin exports from core package
2
+ export * from '../src/plugins/index'
package/dist/plugins.js CHANGED
@@ -1,5 +1,5 @@
1
- export { HookSystemImpl, HookUtils, PluginManager, PluginRegistryImpl, PluginValidator, ScopedHookSystem } from './chunk-NRSL6BQI.js';
1
+ export { HookSystemImpl, HookUtils, PluginManager, PluginRegistryImpl, PluginValidator, ScopedHookSystem } from './chunk-BITQ4MFX.js';
2
2
  import './chunk-LOUJRBXV.js';
3
- import './chunk-G3PMV62Z.js';
3
+ import './chunk-V4OQ3NZ2.js';
4
4
  //# sourceMappingURL=plugins.js.map
5
5
  //# sourceMappingURL=plugins.js.map
package/dist/routes.cjs CHANGED
@@ -1,13 +1,62 @@
1
1
  'use strict';
2
2
 
3
- var chunkBOLQHE4J_cjs = require('./chunk-BOLQHE4J.cjs');
4
- require('./chunk-EMMSS5I5.cjs');
3
+ var chunkDG4INX36_cjs = require('./chunk-DG4INX36.cjs');
4
+ require('./chunk-AGOE25LF.cjs');
5
+ require('./chunk-BUKT6HP5.cjs');
6
+ require('./chunk-RNR4HA23.cjs');
7
+ require('./chunk-LEGKJ5DI.cjs');
8
+ require('./chunk-RGCQSFKC.cjs');
9
+ require('./chunk-IGJUBJBW.cjs');
5
10
 
6
11
 
7
12
 
8
13
  Object.defineProperty(exports, "ROUTES_INFO", {
9
14
  enumerable: true,
10
- get: function () { return chunkBOLQHE4J_cjs.ROUTES_INFO; }
15
+ get: function () { return chunkDG4INX36_cjs.ROUTES_INFO; }
16
+ });
17
+ Object.defineProperty(exports, "adminApiRoutes", {
18
+ enumerable: true,
19
+ get: function () { return chunkDG4INX36_cjs.admin_api_default; }
20
+ });
21
+ Object.defineProperty(exports, "adminContentRoutes", {
22
+ enumerable: true,
23
+ get: function () { return chunkDG4INX36_cjs.admin_content_default; }
24
+ });
25
+ Object.defineProperty(exports, "adminLogsRoutes", {
26
+ enumerable: true,
27
+ get: function () { return chunkDG4INX36_cjs.adminLogsRoutes; }
28
+ });
29
+ Object.defineProperty(exports, "adminMediaRoutes", {
30
+ enumerable: true,
31
+ get: function () { return chunkDG4INX36_cjs.adminMediaRoutes; }
32
+ });
33
+ Object.defineProperty(exports, "adminPluginRoutes", {
34
+ enumerable: true,
35
+ get: function () { return chunkDG4INX36_cjs.adminPluginRoutes; }
36
+ });
37
+ Object.defineProperty(exports, "adminUsersRoutes", {
38
+ enumerable: true,
39
+ get: function () { return chunkDG4INX36_cjs.userRoutes; }
40
+ });
41
+ Object.defineProperty(exports, "apiContentCrudRoutes", {
42
+ enumerable: true,
43
+ get: function () { return chunkDG4INX36_cjs.api_content_crud_default; }
44
+ });
45
+ Object.defineProperty(exports, "apiMediaRoutes", {
46
+ enumerable: true,
47
+ get: function () { return chunkDG4INX36_cjs.api_media_default; }
48
+ });
49
+ Object.defineProperty(exports, "apiRoutes", {
50
+ enumerable: true,
51
+ get: function () { return chunkDG4INX36_cjs.api_default; }
52
+ });
53
+ Object.defineProperty(exports, "apiSystemRoutes", {
54
+ enumerable: true,
55
+ get: function () { return chunkDG4INX36_cjs.api_system_default; }
56
+ });
57
+ Object.defineProperty(exports, "authRoutes", {
58
+ enumerable: true,
59
+ get: function () { return chunkDG4INX36_cjs.auth_default; }
11
60
  });
12
61
  //# sourceMappingURL=routes.cjs.map
13
62
  //# sourceMappingURL=routes.cjs.map
package/dist/routes.d.ts CHANGED
@@ -1,17 +1,2 @@
1
- /**
2
- * Routes Module Exports
3
- *
4
- * Note: HTTP routes are application-specific and should be implemented
5
- * in the consuming application rather than in the core package.
6
- *
7
- * The core package provides the building blocks (middleware, services, types)
8
- * but each application should define its own routes based on its specific needs.
9
- *
10
- * For reference implementations, see the main SonicJS repository.
11
- */
12
- declare const ROUTES_INFO: {
13
- readonly message: "Routes are application-specific - implement in your application";
14
- readonly reference: "https://github.com/sonicjs/sonicjs";
15
- };
16
-
17
- export { ROUTES_INFO };
1
+ // Route exports from core package
2
+ export * from '../src/routes/index'
package/dist/routes.js CHANGED
@@ -1,4 +1,9 @@
1
- export { ROUTES_INFO } from './chunk-HD7R6T6I.js';
2
- import './chunk-G3PMV62Z.js';
1
+ export { ROUTES_INFO, admin_api_default as adminApiRoutes, admin_content_default as adminContentRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, 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 } from './chunk-FDUDHGI6.js';
2
+ import './chunk-3MNMOLSA.js';
3
+ import './chunk-WESS2U3K.js';
4
+ import './chunk-7N3HK7ZK.js';
5
+ import './chunk-G4JGVZAF.js';
6
+ import './chunk-JIINOD2W.js';
7
+ import './chunk-V4OQ3NZ2.js';
3
8
  //# sourceMappingURL=routes.js.map
4
9
  //# sourceMappingURL=routes.js.map
package/dist/services.cjs CHANGED
@@ -1,74 +1,86 @@
1
1
  'use strict';
2
2
 
3
- require('./chunk-ALTMI5Y2.cjs');
4
- var chunkWJ7QYVR2_cjs = require('./chunk-WJ7QYVR2.cjs');
5
- require('./chunk-EMMSS5I5.cjs');
3
+ var chunkAGOE25LF_cjs = require('./chunk-AGOE25LF.cjs');
4
+ var chunkRNR4HA23_cjs = require('./chunk-RNR4HA23.cjs');
5
+ require('./chunk-IGJUBJBW.cjs');
6
6
 
7
7
 
8
8
 
9
+ Object.defineProperty(exports, "CACHE_CONFIGS", {
10
+ enumerable: true,
11
+ get: function () { return chunkAGOE25LF_cjs.CACHE_CONFIGS; }
12
+ });
13
+ Object.defineProperty(exports, "CacheService", {
14
+ enumerable: true,
15
+ get: function () { return chunkAGOE25LF_cjs.CacheService; }
16
+ });
17
+ Object.defineProperty(exports, "getCacheService", {
18
+ enumerable: true,
19
+ get: function () { return chunkAGOE25LF_cjs.getCacheService; }
20
+ });
9
21
  Object.defineProperty(exports, "Logger", {
10
22
  enumerable: true,
11
- get: function () { return chunkWJ7QYVR2_cjs.Logger; }
23
+ get: function () { return chunkRNR4HA23_cjs.Logger; }
12
24
  });
13
25
  Object.defineProperty(exports, "MigrationService", {
14
26
  enumerable: true,
15
- get: function () { return chunkWJ7QYVR2_cjs.MigrationService; }
27
+ get: function () { return chunkRNR4HA23_cjs.MigrationService; }
16
28
  });
17
29
  Object.defineProperty(exports, "PluginBootstrapService", {
18
30
  enumerable: true,
19
- get: function () { return chunkWJ7QYVR2_cjs.PluginBootstrapService; }
31
+ get: function () { return chunkRNR4HA23_cjs.PluginBootstrapService; }
20
32
  });
21
33
  Object.defineProperty(exports, "PluginService", {
22
34
  enumerable: true,
23
- get: function () { return chunkWJ7QYVR2_cjs.PluginService; }
35
+ get: function () { return chunkRNR4HA23_cjs.PluginService; }
24
36
  });
25
37
  Object.defineProperty(exports, "cleanupRemovedCollections", {
26
38
  enumerable: true,
27
- get: function () { return chunkWJ7QYVR2_cjs.cleanupRemovedCollections; }
39
+ get: function () { return chunkRNR4HA23_cjs.cleanupRemovedCollections; }
28
40
  });
29
41
  Object.defineProperty(exports, "fullCollectionSync", {
30
42
  enumerable: true,
31
- get: function () { return chunkWJ7QYVR2_cjs.fullCollectionSync; }
43
+ get: function () { return chunkRNR4HA23_cjs.fullCollectionSync; }
32
44
  });
33
45
  Object.defineProperty(exports, "getAvailableCollectionNames", {
34
46
  enumerable: true,
35
- get: function () { return chunkWJ7QYVR2_cjs.getAvailableCollectionNames; }
47
+ get: function () { return chunkRNR4HA23_cjs.getAvailableCollectionNames; }
36
48
  });
37
49
  Object.defineProperty(exports, "getLogger", {
38
50
  enumerable: true,
39
- get: function () { return chunkWJ7QYVR2_cjs.getLogger; }
51
+ get: function () { return chunkRNR4HA23_cjs.getLogger; }
40
52
  });
41
53
  Object.defineProperty(exports, "getManagedCollections", {
42
54
  enumerable: true,
43
- get: function () { return chunkWJ7QYVR2_cjs.getManagedCollections; }
55
+ get: function () { return chunkRNR4HA23_cjs.getManagedCollections; }
44
56
  });
45
57
  Object.defineProperty(exports, "initLogger", {
46
58
  enumerable: true,
47
- get: function () { return chunkWJ7QYVR2_cjs.initLogger; }
59
+ get: function () { return chunkRNR4HA23_cjs.initLogger; }
48
60
  });
49
61
  Object.defineProperty(exports, "isCollectionManaged", {
50
62
  enumerable: true,
51
- get: function () { return chunkWJ7QYVR2_cjs.isCollectionManaged; }
63
+ get: function () { return chunkRNR4HA23_cjs.isCollectionManaged; }
52
64
  });
53
65
  Object.defineProperty(exports, "loadCollectionConfig", {
54
66
  enumerable: true,
55
- get: function () { return chunkWJ7QYVR2_cjs.loadCollectionConfig; }
67
+ get: function () { return chunkRNR4HA23_cjs.loadCollectionConfig; }
56
68
  });
57
69
  Object.defineProperty(exports, "loadCollectionConfigs", {
58
70
  enumerable: true,
59
- get: function () { return chunkWJ7QYVR2_cjs.loadCollectionConfigs; }
71
+ get: function () { return chunkRNR4HA23_cjs.loadCollectionConfigs; }
60
72
  });
61
73
  Object.defineProperty(exports, "syncCollection", {
62
74
  enumerable: true,
63
- get: function () { return chunkWJ7QYVR2_cjs.syncCollection; }
75
+ get: function () { return chunkRNR4HA23_cjs.syncCollection; }
64
76
  });
65
77
  Object.defineProperty(exports, "syncCollections", {
66
78
  enumerable: true,
67
- get: function () { return chunkWJ7QYVR2_cjs.syncCollections; }
79
+ get: function () { return chunkRNR4HA23_cjs.syncCollections; }
68
80
  });
69
81
  Object.defineProperty(exports, "validateCollectionConfig", {
70
82
  enumerable: true,
71
- get: function () { return chunkWJ7QYVR2_cjs.validateCollectionConfig; }
83
+ get: function () { return chunkRNR4HA23_cjs.validateCollectionConfig; }
72
84
  });
73
85
  //# sourceMappingURL=services.cjs.map
74
86
  //# sourceMappingURL=services.cjs.map
@@ -1,5 +1,2 @@
1
- export { C as CorePlugin, p as LogCategory, q as LogEntry, r as LogFilter, o as LogLevel, L as Logger, m as Migration, M as MigrationService, n as MigrationStatus, k as PluginBootstrapService, P as PluginService, e as cleanupRemovedCollections, f as fullCollectionSync, g as getAvailableCollectionNames, h as getLogger, d as getManagedCollections, j as initLogger, i as isCollectionManaged, a as loadCollectionConfig, l as loadCollectionConfigs, c as syncCollection, b as syncCollections, v as validateCollectionConfig } from './index-BlsY5XNH.js';
2
- import './collection-config-FLlGtsh9.js';
3
- import '@cloudflare/workers-types';
4
- import 'drizzle-zod';
5
- import 'drizzle-orm/sqlite-core';
1
+ // Service exports from core package
2
+ export * from '../src/services/index'
package/dist/services.js CHANGED
@@ -1,5 +1,5 @@
1
- import './chunk-4URGXJP7.js';
2
- export { Logger, MigrationService, PluginBootstrapService, PluginService, cleanupRemovedCollections, fullCollectionSync, getAvailableCollectionNames, getLogger, getManagedCollections, initLogger, isCollectionManaged, loadCollectionConfig, loadCollectionConfigs, syncCollection, syncCollections, validateCollectionConfig } from './chunk-CXZDAR6S.js';
3
- import './chunk-G3PMV62Z.js';
1
+ export { CACHE_CONFIGS, CacheService, getCacheService } from './chunk-3MNMOLSA.js';
2
+ export { Logger, MigrationService, PluginBootstrapService, PluginService, cleanupRemovedCollections, fullCollectionSync, getAvailableCollectionNames, getLogger, getManagedCollections, initLogger, isCollectionManaged, loadCollectionConfig, loadCollectionConfigs, syncCollection, syncCollections, validateCollectionConfig } from './chunk-7N3HK7ZK.js';
3
+ import './chunk-V4OQ3NZ2.js';
4
4
  //# sourceMappingURL=services.js.map
5
5
  //# sourceMappingURL=services.js.map
@@ -1,41 +1,54 @@
1
1
  'use strict';
2
2
 
3
- var chunkBRC3F4CG_cjs = require('./chunk-BRC3F4CG.cjs');
4
- require('./chunk-EMMSS5I5.cjs');
3
+ var chunk6BHDKYLU_cjs = require('./chunk-6BHDKYLU.cjs');
4
+ var chunkLEGKJ5DI_cjs = require('./chunk-LEGKJ5DI.cjs');
5
+ require('./chunk-IGJUBJBW.cjs');
5
6
 
6
7
 
7
8
 
8
9
  Object.defineProperty(exports, "getConfirmationDialogScript", {
9
10
  enumerable: true,
10
- get: function () { return chunkBRC3F4CG_cjs.getConfirmationDialogScript; }
11
+ get: function () { return chunk6BHDKYLU_cjs.getConfirmationDialogScript; }
11
12
  });
12
13
  Object.defineProperty(exports, "renderAlert", {
13
14
  enumerable: true,
14
- get: function () { return chunkBRC3F4CG_cjs.renderAlert; }
15
+ get: function () { return chunk6BHDKYLU_cjs.renderAlert; }
15
16
  });
16
17
  Object.defineProperty(exports, "renderConfirmationDialog", {
17
18
  enumerable: true,
18
- get: function () { return chunkBRC3F4CG_cjs.renderConfirmationDialog; }
19
+ get: function () { return chunk6BHDKYLU_cjs.renderConfirmationDialog; }
19
20
  });
20
21
  Object.defineProperty(exports, "renderFilterBar", {
21
22
  enumerable: true,
22
- get: function () { return chunkBRC3F4CG_cjs.renderFilterBar; }
23
+ get: function () { return chunk6BHDKYLU_cjs.renderFilterBar; }
23
24
  });
24
25
  Object.defineProperty(exports, "renderForm", {
25
26
  enumerable: true,
26
- get: function () { return chunkBRC3F4CG_cjs.renderForm; }
27
+ get: function () { return chunk6BHDKYLU_cjs.renderForm; }
27
28
  });
28
29
  Object.defineProperty(exports, "renderFormField", {
29
30
  enumerable: true,
30
- get: function () { return chunkBRC3F4CG_cjs.renderFormField; }
31
+ get: function () { return chunk6BHDKYLU_cjs.renderFormField; }
31
32
  });
32
33
  Object.defineProperty(exports, "renderPagination", {
33
34
  enumerable: true,
34
- get: function () { return chunkBRC3F4CG_cjs.renderPagination; }
35
+ get: function () { return chunk6BHDKYLU_cjs.renderPagination; }
35
36
  });
36
37
  Object.defineProperty(exports, "renderTable", {
37
38
  enumerable: true,
38
- get: function () { return chunkBRC3F4CG_cjs.renderTable; }
39
+ get: function () { return chunk6BHDKYLU_cjs.renderTable; }
40
+ });
41
+ Object.defineProperty(exports, "renderAdminLayout", {
42
+ enumerable: true,
43
+ get: function () { return chunkLEGKJ5DI_cjs.renderAdminLayout; }
44
+ });
45
+ Object.defineProperty(exports, "renderAdminLayoutCatalyst", {
46
+ enumerable: true,
47
+ get: function () { return chunkLEGKJ5DI_cjs.renderAdminLayoutCatalyst; }
48
+ });
49
+ Object.defineProperty(exports, "renderLogo", {
50
+ enumerable: true,
51
+ get: function () { return chunkLEGKJ5DI_cjs.renderLogo; }
39
52
  });
40
53
  //# sourceMappingURL=templates.cjs.map
41
54
  //# sourceMappingURL=templates.cjs.map