oasis-editor 0.0.111 → 0.0.113

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.
@@ -36,3 +36,22 @@ export declare function applyCanvasTextFeatureHints(ctx: CanvasRenderingContext2
36
36
  kerningThreshold?: number | null;
37
37
  ligatures?: "none" | "standard" | "contextual" | "historical" | "standardContextual" | null;
38
38
  } | undefined, fontSizePx: number): void;
39
+ type RunStyleInput = {
40
+ bold?: boolean;
41
+ italic?: boolean;
42
+ fontFamily?: string | null;
43
+ fontSize?: number | null;
44
+ color?: string | null;
45
+ characterScale?: number | null;
46
+ superscript?: boolean;
47
+ subscript?: boolean;
48
+ smallCaps?: boolean;
49
+ baselineShift?: number | null;
50
+ } | undefined;
51
+ export declare function resolveCanvasRunPaintStyle(styles: RunStyleInput): {
52
+ font: string;
53
+ fillStyle: string;
54
+ renderMetrics: ReturnType<typeof resolveCanvasTextRenderMetrics>;
55
+ scale: number;
56
+ };
57
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { EditorLayoutLine, EditorPageSettings, EditorParagraphNode, EditorState } from '../../core/model.js';
2
2
  import { CanvasBlockPainters } from './canvasBlockPainters.js';
3
3
 
4
- export { applyCanvasTextFeatureHints, resolveCanvasFontFamily, resolveCanvasTextRenderMetrics, } from './canvasFontResolution.js';
4
+ export { applyCanvasTextFeatureHints, resolveCanvasFontFamily, resolveCanvasTextRenderMetrics, resolveCanvasRunPaintStyle, } from './canvasFontResolution.js';
5
5
  /**
6
6
  * Paints the floating images anchored within a paragraph, mirroring
7
7
  * `drawFloatingTextBoxesForParagraph`. Split into `behind`/`front` layers so a
@@ -0,0 +1,12 @@
1
+ import { JSX } from 'solid-js';
2
+
3
+ interface DialogFooterProps {
4
+ onCancel: () => void;
5
+ onConfirm: () => void;
6
+ cancelLabel: string;
7
+ confirmLabel: string;
8
+ cancelTestId?: string;
9
+ confirmTestId?: string;
10
+ }
11
+ export declare function DialogFooter(props: DialogFooterProps): JSX.Element;
12
+ export {};
@@ -0,0 +1,16 @@
1
+ export interface TextInputDialogProps {
2
+ isOpen: boolean;
3
+ title: string;
4
+ label: string;
5
+ placeholder: string;
6
+ initialValue: string;
7
+ confirmLabel: string;
8
+ onClose: () => void;
9
+ onConfirm: (value: string) => void;
10
+ testIds?: {
11
+ input?: string;
12
+ cancel?: string;
13
+ confirm?: string;
14
+ };
15
+ }
16
+ export declare function TextInputDialog(props: TextInputDialogProps): import("solid-js").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.111",
3
+ "version": "0.0.113",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",