@pie-players/pie-theme 0.3.64 → 0.3.66

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.
@@ -1,21 +1,12 @@
1
- import { type ThemeVariables } from "./theme-types.js";
2
- export type PieColorSchemePreview = {
3
- bg: string;
4
- text: string;
5
- primary: string;
6
- };
7
- export type PieColorSchemeDefinition = {
8
- id: string;
9
- name: string;
10
- description?: string;
11
- variables: ThemeVariables;
12
- preview?: PieColorSchemePreview;
13
- };
14
- export declare const BUILTIN_PIE_COLOR_SCHEMES: PieColorSchemeDefinition[];
15
- export declare function listPieColorSchemes(): PieColorSchemeDefinition[];
16
- export declare function getPieColorScheme(schemeId: string | null | undefined): PieColorSchemeDefinition | undefined;
17
- export declare function resolvePieColorSchemeVariables(schemeId: string | null | undefined): ThemeVariables;
18
- export declare function registerPieColorSchemes(schemes: PieColorSchemeDefinition[], options?: {
19
- overwrite?: boolean;
20
- }): void;
21
- export declare function unregisterPieColorScheme(schemeId: string): void;
1
+ import { type ColorSchemeSnapshot, type PieThemeObserver, type RegisteredPieColorScheme, type RegistrationReceipt, type ResolvePieThemeInput, type ThemeResolution, type Unsubscribe } from "./theme-types.js";
2
+ /** Returns the current deeply immutable catalog snapshot. */
3
+ export declare function listPieColorSchemes(): ColorSchemeSnapshot;
4
+ /** Delivers the current snapshot immediately, then once per registry mutation. */
5
+ export declare function observePieColorSchemes(listener: PieThemeObserver): Unsubscribe;
6
+ /** Resolves Base Theme → Theme Provider → Scheme → Explicit Theme Override. */
7
+ export declare function resolvePieTheme(input?: ResolvePieThemeInput): ThemeResolution;
8
+ /**
9
+ * Registers valid entries from a batch and returns a generation-aware receipt.
10
+ * Invalid entries never disturb an existing valid registration.
11
+ */
12
+ export declare function registerPieColorSchemes(entries: readonly RegisteredPieColorScheme[]): RegistrationReceipt;