UNPKG

@promptbook/vercel

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

22 lines (21 loc) 891 B
import type { string_css_class } from '../../types/typeAliases'; 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. * * @public exported from `@promptbook/components` * <- TODO: [🧠] Make `@promptbook/components-utils` * @deprecated This was used for BookEditor shadow DOM support, which is no longer needed */ export declare function injectCssModuleIntoShadowRoot(options: InjectCssModuleIntoShadowRootOptions): void;