@omnitron-dev/prism 0.1.1
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/LICENSE +21 -0
- package/README.md +44 -0
- package/bin/prism.js +13 -0
- package/dist/accessibility/index.d.ts +157 -0
- package/dist/accessibility/index.js +186 -0
- package/dist/accessibility/index.js.map +1 -0
- package/dist/blocks/index.d.ts +1239 -0
- package/dist/blocks/index.js +1712 -0
- package/dist/blocks/index.js.map +1 -0
- package/dist/chunk-77KIJLPP.js +37 -0
- package/dist/chunk-77KIJLPP.js.map +1 -0
- package/dist/chunk-BTIT7WYH.js +339 -0
- package/dist/chunk-BTIT7WYH.js.map +1 -0
- package/dist/chunk-BV32OJ2A.js +1409 -0
- package/dist/chunk-BV32OJ2A.js.map +1 -0
- package/dist/chunk-DDY7TLUI.js +139 -0
- package/dist/chunk-DDY7TLUI.js.map +1 -0
- package/dist/chunk-DXXZ3ITR.js +4227 -0
- package/dist/chunk-DXXZ3ITR.js.map +1 -0
- package/dist/chunk-E3XANPTO.js +2319 -0
- package/dist/chunk-E3XANPTO.js.map +1 -0
- package/dist/chunk-FU52GL2E.js +3 -0
- package/dist/chunk-FU52GL2E.js.map +1 -0
- package/dist/chunk-GYDT5EKX.js +16505 -0
- package/dist/chunk-GYDT5EKX.js.map +1 -0
- package/dist/chunk-HO2GKTWJ.js +28 -0
- package/dist/chunk-HO2GKTWJ.js.map +1 -0
- package/dist/chunk-JDTC2SBY.js +140 -0
- package/dist/chunk-JDTC2SBY.js.map +1 -0
- package/dist/chunk-JNU4QHJK.js +6 -0
- package/dist/chunk-JNU4QHJK.js.map +1 -0
- package/dist/chunk-LAEY5USO.js +2621 -0
- package/dist/chunk-LAEY5USO.js.map +1 -0
- package/dist/chunk-UR6X3W5I.js +530 -0
- package/dist/chunk-UR6X3W5I.js.map +1 -0
- package/dist/chunk-WC2WM2JD.js +883 -0
- package/dist/chunk-WC2WM2JD.js.map +1 -0
- package/dist/chunk-XWL6J6IO.js +40 -0
- package/dist/chunk-XWL6J6IO.js.map +1 -0
- package/dist/cli/index.js +2695 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/config-BA6IeTq9.d.ts +100 -0
- package/dist/core/index.d.ts +454 -0
- package/dist/core/index.js +9 -0
- package/dist/core/index.js.map +1 -0
- package/dist/forms/index.d.ts +562 -0
- package/dist/forms/index.js +545 -0
- package/dist/forms/index.js.map +1 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +10 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/http/index.d.ts +233 -0
- package/dist/http/index.js +282 -0
- package/dist/http/index.js.map +1 -0
- package/dist/index-odhPSv9I.d.ts +2491 -0
- package/dist/index.css +131 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +9109 -0
- package/dist/index.js +13280 -0
- package/dist/index.js.map +1 -0
- package/dist/layouts/index.d.ts +854 -0
- package/dist/layouts/index.js +6 -0
- package/dist/layouts/index.js.map +1 -0
- package/dist/netron/index.d.ts +4 -0
- package/dist/netron/index.js +4 -0
- package/dist/netron/index.js.map +1 -0
- package/dist/registry/index.d.ts +352 -0
- package/dist/registry/index.js +4 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/registry-BrDNftd5.d.ts +574 -0
- package/dist/settings-plpR26Xk.d.ts +455 -0
- package/dist/state/index.d.ts +981 -0
- package/dist/state/index.js +5 -0
- package/dist/state/index.js.map +1 -0
- package/dist/theme/index.d.ts +1049 -0
- package/dist/theme/index.js +5 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme-CrXLfP1c.d.ts +389 -0
- package/dist/types/index.d.ts +146 -0
- package/dist/types/index.js +5 -0
- package/dist/types/index.js.map +1 -0
- package/dist/use-timeout-D7U3EAtH.d.ts +808 -0
- package/package.json +194 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { AuthCenteredContent, AuthCenteredLayout, AuthSimpleLayout, AuthSplitContent, AuthSplitIllustration, AuthSplitLayout, DEFAULT_LAYOUT_CSS_VARS, DRAWER_WIDTHS, DashboardContent, DashboardLayout, HEADER_HEIGHTS, HeaderSection, HeaderToolbar, LAYOUT_CSS_VARS, LayoutContext, LayoutGlobalStyles, LayoutProvider, LayoutSection, MainSection, MobileSidenav, Sidenav, SimpleCompactContent, defaultLayoutConfig, getBaseLayoutCssVars, getNavColorCssVars, mergeLayoutCssVars, useLayoutConfig, useLayoutContext, useNavActive, useSidenavVisible, useTopnavVisible } from '../chunk-GYDT5EKX.js';
|
|
2
|
+
import '../chunk-JDTC2SBY.js';
|
|
3
|
+
import '../chunk-DDY7TLUI.js';
|
|
4
|
+
import '../chunk-77KIJLPP.js';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { AuthConfig, BackendConfig, BackendConnectionAware, BackendSchema, BackendStatus, CacheConfig, ConnectionAware, ConnectionAwareProps, ConnectionContextValue, DefaultOptions, DefaultsContextValue, DehydratedState, HydrationContextValue, IBackendClient, IMultiBackendClient, Middleware, MiddlewareContext, MultiBackendClientOptions, MultiBackendConnectionAware, MultiBackendProvider, MultiBackendProviderProps, MutationOptions, MutationResult, MutationStatus, NetronError, NetronProvider, NetronProviderProps, NetronReactClient, NetronReactClientConfig, RetryConfig as NetronRetryConfig, QueryKey, QueryOptions, QueryResult, QueryStatus, RequireAllBackends, RequireAnyBackend, RequireBackendConnection, RequireConnection, ServiceMethodHooks, ServiceOptions, SubscriptionOptions, SubscriptionResult, TransportType, TypedServiceProxy, createNetronClient, createServiceHook as createNetronServiceHook, useAllBackendsConnected, useAnyBackendConnected, useBackend, useBackendConnectionState, useBackendMutation, useBackendQuery, useBackendService, useDefaults, useHydration, useMultiBackend, useNetronClient, useNetronClientSafe, useNetronConnection, useMutation as useNetronMutation, useQuery as useNetronQuery, useService as useNetronService, useSubscription as useNetronSubscription } from '@omnitron-dev/netron-react';
|
|
2
|
+
export { AuthenticationClient, ConnectionState, MultiBackendClient, SessionTokenStorage, WebSocketClient, createMultiBackendClient } from '@omnitron-dev/netron-browser';
|
|
3
|
+
export { AuthGuard, AuthGuardProps, AuthProvider, AuthProviderProps, GuestGuard, GuestGuardProps, Hide, AuthContextValue as NetronAuthContextValue, AuthState as NetronAuthState, PermissionGuard, PermissionGuardProps, RoleGuard, RoleGuardProps, Show, User, useAuth, useAuthRequired, useIsAuthenticated, useUser } from '@omnitron-dev/netron-react/auth';
|
|
4
|
+
export { MutationCache, QueryCache, hashQueryKey, matchQueryKey } from '@omnitron-dev/netron-react/cache';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { AuthGuard, AuthProvider, AuthenticationClient, BackendConnectionAware, BackendStatus, ConnectionAware, GuestGuard, Hide, MultiBackendClient, MultiBackendConnectionAware, MultiBackendProvider, MutationCache, NetronProvider, NetronReactClient, PermissionGuard, QueryCache, RequireAllBackends, RequireAnyBackend, RequireBackendConnection, RequireConnection, RoleGuard, SessionTokenStorage, Show, WebSocketClient, createMultiBackendClient, createNetronClient, createServiceHook as createNetronServiceHook, hashQueryKey, matchQueryKey, useAllBackendsConnected, useAnyBackendConnected, useAuth, useAuthRequired, useBackend, useBackendConnectionState, useBackendMutation, useBackendQuery, useBackendService, useDefaults, useHydration, useIsAuthenticated, useMultiBackend, useNetronClient, useNetronClientSafe, useNetronConnection, useMutation as useNetronMutation, useQuery as useNetronQuery, useService as useNetronService, useSubscription as useNetronSubscription, useUser } from '../chunk-JNU4QHJK.js';
|
|
2
|
+
import '../chunk-77KIJLPP.js';
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { R as RegistryConfig, a as RegistrySchema, C as ComponentDefinition, B as BlockDefinition, P as PrismLockfile, I as InstalledComponent, b as InstalledBlock } from '../registry-BrDNftd5.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../theme-CrXLfP1c.js';
|
|
4
|
+
import '@mui/material/styles';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Registry Manager
|
|
8
|
+
*
|
|
9
|
+
* Core registry management for Prism components and blocks.
|
|
10
|
+
* Handles loading, merging, querying, and caching of registry data.
|
|
11
|
+
*
|
|
12
|
+
* Key Features:
|
|
13
|
+
* - Multiple registry sources (local, remote, merged)
|
|
14
|
+
* - Automatic dependency resolution
|
|
15
|
+
* - Version management and compatibility checking
|
|
16
|
+
* - Caching with configurable TTL
|
|
17
|
+
*
|
|
18
|
+
* @module @omnitron-dev/prism/registry/manager
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
interface RegistryManagerOptions {
|
|
22
|
+
/** Base directory for local registries */
|
|
23
|
+
baseDir?: string;
|
|
24
|
+
/** Default registry name */
|
|
25
|
+
defaultRegistry?: string;
|
|
26
|
+
/** Registry configuration */
|
|
27
|
+
config?: RegistryConfig;
|
|
28
|
+
/** Cache TTL in milliseconds (default: 5 minutes) */
|
|
29
|
+
cacheTtl?: number;
|
|
30
|
+
}
|
|
31
|
+
interface SearchOptions {
|
|
32
|
+
/** Filter by category */
|
|
33
|
+
category?: string;
|
|
34
|
+
/** Search query */
|
|
35
|
+
query?: string;
|
|
36
|
+
/** Include dependencies in results */
|
|
37
|
+
includeDependencies?: boolean;
|
|
38
|
+
/** Limit results */
|
|
39
|
+
limit?: number;
|
|
40
|
+
}
|
|
41
|
+
interface ResolvedItem {
|
|
42
|
+
/** Item definition */
|
|
43
|
+
definition: ComponentDefinition | BlockDefinition;
|
|
44
|
+
/** Registry source */
|
|
45
|
+
registry: string;
|
|
46
|
+
/** Resolved dependencies */
|
|
47
|
+
dependencies: ResolvedItem[];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Registry manager for Prism design system.
|
|
51
|
+
*
|
|
52
|
+
* Manages component and block registries with support for:
|
|
53
|
+
* - Local and remote registry sources
|
|
54
|
+
* - Registry merging and extension
|
|
55
|
+
* - Dependency resolution
|
|
56
|
+
* - Caching with TTL
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```typescript
|
|
60
|
+
* const manager = new RegistryManager({
|
|
61
|
+
* baseDir: './prism',
|
|
62
|
+
* config: {
|
|
63
|
+
* default: 'prism',
|
|
64
|
+
* registries: {
|
|
65
|
+
* prism: 'https://registry.prism.dev',
|
|
66
|
+
* custom: './custom-registry.json',
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* });
|
|
70
|
+
*
|
|
71
|
+
* // Get a component
|
|
72
|
+
* const button = await manager.getComponent('button');
|
|
73
|
+
*
|
|
74
|
+
* // Search for components
|
|
75
|
+
* const inputs = await manager.searchComponents({ category: 'inputs' });
|
|
76
|
+
*
|
|
77
|
+
* // Resolve dependencies
|
|
78
|
+
* const resolved = await manager.resolveDependencies('data-table');
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
declare class RegistryManager {
|
|
82
|
+
private readonly options;
|
|
83
|
+
private registries;
|
|
84
|
+
private cache;
|
|
85
|
+
private loaders;
|
|
86
|
+
constructor(options?: RegistryManagerOptions);
|
|
87
|
+
/**
|
|
88
|
+
* Register a custom loader for a registry.
|
|
89
|
+
*/
|
|
90
|
+
registerLoader(name: string, loader: () => Promise<RegistrySchema>): void;
|
|
91
|
+
/**
|
|
92
|
+
* Load a registry by name.
|
|
93
|
+
*/
|
|
94
|
+
loadRegistry(name: string): Promise<RegistrySchema>;
|
|
95
|
+
/**
|
|
96
|
+
* Load registry from local file path.
|
|
97
|
+
* Uses dynamic import for ESM compatibility across environments.
|
|
98
|
+
*
|
|
99
|
+
* @param path - Relative or absolute path to registry JSON
|
|
100
|
+
* @returns Loaded registry schema
|
|
101
|
+
*/
|
|
102
|
+
private loadFromPath;
|
|
103
|
+
/**
|
|
104
|
+
* Load registry from remote URL.
|
|
105
|
+
*/
|
|
106
|
+
private loadFromRemote;
|
|
107
|
+
/**
|
|
108
|
+
* Cache a loaded registry.
|
|
109
|
+
*/
|
|
110
|
+
private cacheRegistry;
|
|
111
|
+
/**
|
|
112
|
+
* Merge two registries (base + extension).
|
|
113
|
+
*/
|
|
114
|
+
private mergeRegistries;
|
|
115
|
+
/**
|
|
116
|
+
* Clear registry cache.
|
|
117
|
+
*/
|
|
118
|
+
clearCache(name?: string): void;
|
|
119
|
+
/**
|
|
120
|
+
* Get a component definition by name.
|
|
121
|
+
*/
|
|
122
|
+
getComponent(name: string, registryName?: string): Promise<ComponentDefinition | null>;
|
|
123
|
+
/**
|
|
124
|
+
* Get all components from a registry.
|
|
125
|
+
*/
|
|
126
|
+
getComponents(registryName?: string): Promise<Record<string, ComponentDefinition>>;
|
|
127
|
+
/**
|
|
128
|
+
* Search for components.
|
|
129
|
+
*/
|
|
130
|
+
searchComponents(options: SearchOptions, registryName?: string): Promise<ComponentDefinition[]>;
|
|
131
|
+
/**
|
|
132
|
+
* Get component categories.
|
|
133
|
+
*/
|
|
134
|
+
getComponentCategories(registryName?: string): Promise<string[]>;
|
|
135
|
+
/**
|
|
136
|
+
* Get a block definition by name.
|
|
137
|
+
*/
|
|
138
|
+
getBlock(name: string, registryName?: string): Promise<BlockDefinition | null>;
|
|
139
|
+
/**
|
|
140
|
+
* Get all blocks from a registry.
|
|
141
|
+
*/
|
|
142
|
+
getBlocks(registryName?: string): Promise<Record<string, BlockDefinition>>;
|
|
143
|
+
/**
|
|
144
|
+
* Search for blocks.
|
|
145
|
+
*/
|
|
146
|
+
searchBlocks(options: SearchOptions, registryName?: string): Promise<BlockDefinition[]>;
|
|
147
|
+
/**
|
|
148
|
+
* Get block categories.
|
|
149
|
+
*/
|
|
150
|
+
getBlockCategories(registryName?: string): Promise<string[]>;
|
|
151
|
+
/**
|
|
152
|
+
* Resolve all dependencies for a component.
|
|
153
|
+
*/
|
|
154
|
+
resolveComponentDependencies(name: string, registryName?: string): Promise<ResolvedItem>;
|
|
155
|
+
/**
|
|
156
|
+
* Resolve all dependencies for a block.
|
|
157
|
+
*/
|
|
158
|
+
resolveBlockDependencies(name: string, registryName?: string): Promise<ResolvedItem>;
|
|
159
|
+
/**
|
|
160
|
+
* Get flat list of all npm dependencies for resolved items.
|
|
161
|
+
*/
|
|
162
|
+
getNpmDependencies(resolved: ResolvedItem): string[];
|
|
163
|
+
/**
|
|
164
|
+
* Get flat list of all file paths for resolved items.
|
|
165
|
+
*/
|
|
166
|
+
getFilePaths(resolved: ResolvedItem): string[];
|
|
167
|
+
/**
|
|
168
|
+
* Check if a component version is compatible.
|
|
169
|
+
*/
|
|
170
|
+
checkComponentVersion(name: string, requiredVersion: string, registryName?: string): Promise<boolean>;
|
|
171
|
+
/**
|
|
172
|
+
* Check semver version compatibility.
|
|
173
|
+
* Simple implementation - considers major.minor compatibility.
|
|
174
|
+
*/
|
|
175
|
+
private isVersionCompatible;
|
|
176
|
+
/**
|
|
177
|
+
* Get registry metadata.
|
|
178
|
+
*/
|
|
179
|
+
getRegistryInfo(registryName?: string): Promise<{
|
|
180
|
+
name: string;
|
|
181
|
+
version: string;
|
|
182
|
+
description?: string;
|
|
183
|
+
componentCount: number;
|
|
184
|
+
blockCount: number;
|
|
185
|
+
themeCount: number;
|
|
186
|
+
}>;
|
|
187
|
+
/**
|
|
188
|
+
* Get list of loaded registries.
|
|
189
|
+
*/
|
|
190
|
+
getLoadedRegistries(): string[];
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Default registry manager instance.
|
|
194
|
+
*/
|
|
195
|
+
declare const registry: RegistryManager;
|
|
196
|
+
/**
|
|
197
|
+
* Create a new registry manager with custom options.
|
|
198
|
+
*/
|
|
199
|
+
declare function createRegistryManager(options?: RegistryManagerOptions): RegistryManager;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Component/Block Installer
|
|
203
|
+
*
|
|
204
|
+
* Handles installation of Prism components and blocks to target projects.
|
|
205
|
+
* Manages file copying, dependency resolution, and lockfile tracking.
|
|
206
|
+
*
|
|
207
|
+
* Key Features:
|
|
208
|
+
* - Atomic installation with rollback on failure
|
|
209
|
+
* - Automatic dependency installation
|
|
210
|
+
* - Template variable substitution
|
|
211
|
+
* - Lockfile tracking for updates
|
|
212
|
+
*
|
|
213
|
+
* @module @omnitron-dev/prism/registry/installer
|
|
214
|
+
*/
|
|
215
|
+
|
|
216
|
+
interface InstallerOptions {
|
|
217
|
+
/** Target directory for components */
|
|
218
|
+
componentsDir?: string;
|
|
219
|
+
/** Target directory for blocks */
|
|
220
|
+
blocksDir?: string;
|
|
221
|
+
/** Target directory for hooks */
|
|
222
|
+
hooksDir?: string;
|
|
223
|
+
/** Overwrite existing files */
|
|
224
|
+
overwrite?: boolean;
|
|
225
|
+
/** Dry run mode (don't write files) */
|
|
226
|
+
dryRun?: boolean;
|
|
227
|
+
/** Skip dependencies */
|
|
228
|
+
skipDependencies?: boolean;
|
|
229
|
+
/** Template variables for substitution */
|
|
230
|
+
templateVars?: Record<string, string>;
|
|
231
|
+
}
|
|
232
|
+
interface InstallResult {
|
|
233
|
+
/** Whether installation was successful */
|
|
234
|
+
success: boolean;
|
|
235
|
+
/** Installed files */
|
|
236
|
+
files: string[];
|
|
237
|
+
/** npm dependencies to install */
|
|
238
|
+
npmDependencies: string[];
|
|
239
|
+
/** Errors encountered */
|
|
240
|
+
errors: string[];
|
|
241
|
+
/** Warnings */
|
|
242
|
+
warnings: string[];
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Prism component and block installer.
|
|
246
|
+
*
|
|
247
|
+
* @example
|
|
248
|
+
* ```typescript
|
|
249
|
+
* const installer = new PrismInstaller({
|
|
250
|
+
* componentsDir: 'src/components',
|
|
251
|
+
* blocksDir: 'src/blocks',
|
|
252
|
+
* });
|
|
253
|
+
*
|
|
254
|
+
* // Install a component
|
|
255
|
+
* const result = await installer.installComponent('button');
|
|
256
|
+
*
|
|
257
|
+
* // Install a block with all dependencies
|
|
258
|
+
* const blockResult = await installer.installBlock('dashboard-layout');
|
|
259
|
+
* ```
|
|
260
|
+
*/
|
|
261
|
+
declare class PrismInstaller {
|
|
262
|
+
private readonly options;
|
|
263
|
+
private readonly registryManager;
|
|
264
|
+
private lockfile;
|
|
265
|
+
private lockfilePath;
|
|
266
|
+
constructor(registryManager: RegistryManager, options?: InstallerOptions);
|
|
267
|
+
/**
|
|
268
|
+
* Install a component and its dependencies.
|
|
269
|
+
*/
|
|
270
|
+
installComponent(name: string, registryName?: string): Promise<InstallResult>;
|
|
271
|
+
/**
|
|
272
|
+
* Prepare file operations for a component.
|
|
273
|
+
*/
|
|
274
|
+
private prepareComponentFiles;
|
|
275
|
+
/**
|
|
276
|
+
* Install a block and its dependencies.
|
|
277
|
+
*/
|
|
278
|
+
installBlock(name: string, registryName?: string): Promise<InstallResult>;
|
|
279
|
+
/**
|
|
280
|
+
* Prepare file operations for a block.
|
|
281
|
+
*/
|
|
282
|
+
private prepareBlockFiles;
|
|
283
|
+
/**
|
|
284
|
+
* Uninstall a component.
|
|
285
|
+
*/
|
|
286
|
+
uninstallComponent(name: string): Promise<InstallResult>;
|
|
287
|
+
/**
|
|
288
|
+
* Uninstall a block.
|
|
289
|
+
*/
|
|
290
|
+
uninstallBlock(name: string): Promise<InstallResult>;
|
|
291
|
+
/**
|
|
292
|
+
* Flatten dependency tree into unique list.
|
|
293
|
+
*/
|
|
294
|
+
private flattenDependencies;
|
|
295
|
+
/**
|
|
296
|
+
* Fetch file content from registry.
|
|
297
|
+
* Supports local files (prefixed with file:// or absolute paths) and remote URLs.
|
|
298
|
+
*/
|
|
299
|
+
private fetchFileContent;
|
|
300
|
+
/**
|
|
301
|
+
* Process template variables in content.
|
|
302
|
+
*/
|
|
303
|
+
private processTemplate;
|
|
304
|
+
/**
|
|
305
|
+
* Execute file operations.
|
|
306
|
+
*/
|
|
307
|
+
private executeOperations;
|
|
308
|
+
/**
|
|
309
|
+
* Find items that depend on a given component/block.
|
|
310
|
+
*/
|
|
311
|
+
private findDependents;
|
|
312
|
+
/**
|
|
313
|
+
* Load lockfile from disk.
|
|
314
|
+
*/
|
|
315
|
+
private loadLockfile;
|
|
316
|
+
/**
|
|
317
|
+
* Save lockfile to disk.
|
|
318
|
+
*/
|
|
319
|
+
private saveLockfile;
|
|
320
|
+
/**
|
|
321
|
+
* Get current lockfile.
|
|
322
|
+
*/
|
|
323
|
+
getLockfile(): Promise<PrismLockfile>;
|
|
324
|
+
/**
|
|
325
|
+
* List installed components.
|
|
326
|
+
*/
|
|
327
|
+
listInstalled(): Promise<{
|
|
328
|
+
components: InstalledComponent[];
|
|
329
|
+
blocks: InstalledBlock[];
|
|
330
|
+
}>;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Create a new installer instance.
|
|
334
|
+
*/
|
|
335
|
+
declare function createInstaller(registryManager: RegistryManager, options?: InstallerOptions): PrismInstaller;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Prism Registry Module
|
|
339
|
+
*
|
|
340
|
+
* Component and block registry system for the Prism design framework.
|
|
341
|
+
* Enables shadcn/ui-style copy-paste installation with dependency resolution.
|
|
342
|
+
*
|
|
343
|
+
* @module @omnitron-dev/prism/registry
|
|
344
|
+
*/
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Default Prism registry schema.
|
|
348
|
+
* Defines the structure for the base component and block registry.
|
|
349
|
+
*/
|
|
350
|
+
declare const defaultRegistrySchema: RegistrySchema;
|
|
351
|
+
|
|
352
|
+
export { type InstallResult, type InstallerOptions, PrismInstaller, RegistryManager, type RegistryManagerOptions, type ResolvedItem, type SearchOptions, createInstaller, createRegistryManager, defaultRegistrySchema, registry };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|