@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
27 lines (26 loc) • 949 B
TypeScript
import type { string_css_class } from '../../types/string_markdown';
/**
* Options for inject Css module into shadow root.
*/
export type InjectCssModuleIntoShadowRootOptions = {
/**
* The shadow root where the styles should be injected
*/
shadowRoot: ShadowRoot;
/**
* The imported CSS module styles object
*/
styles: Record<string_css_class, string_css_class>;
};
/**
* Inject the CSS module rules (derived from imported `styles`) into the provided shadow root.
* This allows CSS modules (which are normally emitted into the document head) to be
* available inside the component's shadow DOM.
*
* TODO: [🧠] Make `@promptbook/components-utils`
*
* @deprecated This was used for BookEditor shadow DOM support, which is no longer needed
*
* @public exported from `@promptbook/components`
*/
export declare function injectCssModuleIntoShadowRoot(options: InjectCssModuleIntoShadowRootOptions): void;