Creates a new ComponentRegistry instance
Optionalconfig: Partial<RegistryConfig>Optional registry configuration
Performs cleanup of unused components
Force cleanup regardless of reference count
Number of components removed
Clears all components from the registry
Clear all components in a specific namespace
Namespace to clear (default: 'Global')
Number of components removed
Destroys the registry and cleans up resources
Force clear all components and reset registry Used for development/testing scenarios
Gets a component from the registry
Component name
Component namespace
Optionalversion: stringComponent version
OptionalcontentHash: stringOptional content fingerprint. When provided, looks up
the exact (name, namespace, version, contentHash) entry. When omitted,
falls back to the most recently registered entry matching the other keys
(existing behavior).
The component object if found, undefined otherwise
Gets all components in a namespace and version as a map
Namespace to query (default: 'Global')
Version to query (default: 'v1')
Object mapping component names to component objects
Gets components by tags
Tags to search for
Array of components matching any of the tags
Gets all components in a namespace
Namespace to query
Array of components in the namespace
Gets all registered namespaces
Array of unique namespace names
Gets registry statistics
Object containing registry stats
Checks if a component exists in the registry
Component name
Component namespace
Optionalversion: stringComponent version
OptionalcontentHash: stringOptional content fingerprint (see get)
true if the component exists
Registers a compiled component
Component name
Compiled component object
Component namespace (default: 'Global')
Component version (default: 'v1')
OptionalcontentHash: stringOptional content fingerprint. When provided, the entry
is keyed by (name, namespace, version, contentHash) so multiple specs
that share (name, namespace, version) but carry different code (e.g.
a registry-reference stub vs. an inline-code Studio export of the same
artifact) coexist in the cache instead of clobbering each other.
Optionaltags: string[]Optional tags for categorization
The registered component's metadata
Decrements reference count for a component
Component name
Component namespace
Optionalversion: stringComponent version
OptionalcontentHash: stringOptional content fingerprint (see get)
Gets the current size of the registry
Number of registered components
Removes a component from the registry
Component name
Component namespace
Optionalversion: stringComponent version
OptionalcontentHash: stringOptional content fingerprint (see get)
true if the component was removed
Platform-agnostic component registry. Manages compiled React components with namespace isolation and lifecycle management.