@openeditor/react 0.0.31 → 0.0.32
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/dist/index.d.ts +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,9 @@ type OpenEditorBlockInteractionStore = {
|
|
|
19
19
|
|
|
20
20
|
declare const openEditorThemeTokenNames: readonly ["surface", "surfaceRaised", "surfaceMuted", "blockSurface", "text", "textSoft", "heading", "muted", "placeholder", "border", "borderStrong", "structuralLine", "accent", "accentText", "accentStrong", "buttonBackground", "buttonText", "codeBackground", "codeText", "link", "linkHover", "shadow", "fontSans", "fontMono", "radiusSmall", "radiusMedium", "radiusLarge", "spaceBlock", "spaceInline", "bodyFontSize", "bodyLineHeight", "headingFont", "headingLineHeight", "headingWeight", "heading1Size", "heading2Size", "heading3Size", "heading4Size", "heading5Size", "heading6Size"];
|
|
21
21
|
type OpenEditorThemeToken = (typeof openEditorThemeTokenNames)[number];
|
|
22
|
-
type OpenEditorTheme =
|
|
22
|
+
type OpenEditorTheme = {
|
|
23
|
+
surfaceRaised: string;
|
|
24
|
+
} & Partial<Record<Exclude<OpenEditorThemeToken, "surfaceRaised">, string>>;
|
|
23
25
|
type OpenEditorThemeStyle = CSSProperties & Record<`--oe-${string}`, string | undefined>;
|
|
24
26
|
declare const createOpenEditorThemeStyle: (theme: OpenEditorTheme) => OpenEditorThemeStyle;
|
|
25
27
|
declare const useOpenEditorThemeStyle: () => OpenEditorThemeStyle | undefined;
|