@blankdotpage/cake 0.1.1 → 0.1.2

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 +1 @@
1
- export declare function htmlToMarkdownForPaste(html: string): string;
1
+ export declare function htmlToMarkdownForPaste(htmlContent: string): string | null;
@@ -133,6 +133,7 @@ export type Runtime = {
133
133
  kind?: "dom" | "keyboard" | "programmatic";
134
134
  }): RuntimeState;
135
135
  serializeSelection(state: RuntimeState, selection: Selection): string;
136
+ serializeSelectionToHtml(state: RuntimeState, selection: Selection): string;
136
137
  applyEdit(command: EditCommand, state: RuntimeState): RuntimeState;
137
138
  };
138
139
  export declare function createRuntime(extensions: CakeExtension[]): Runtime;
@@ -9,6 +9,6 @@ export type RenderContentResult = {
9
9
  content: Node[];
10
10
  map: ReturnType<typeof createDomMap>;
11
11
  };
12
- export declare function renderDocContent(doc: Doc, extensions: CakeExtension[], _root?: HTMLElement): RenderContentResult;
12
+ export declare function renderDocContent(doc: Doc, extensions: CakeExtension[], root?: HTMLElement): RenderContentResult;
13
13
  export declare function renderDoc(doc: Doc, extensions: CakeExtension[]): RenderResult;
14
14
  export declare function mergeInlineForRender(inlines: Inline[]): Inline[];
@@ -10,6 +10,7 @@ export type SelectionCaretMeasurement = {
10
10
  lineRect: LayoutRect;
11
11
  caretRect: LayoutRect;
12
12
  lineLength: number;
13
+ fontSize: number;
13
14
  padding: {
14
15
  top: number;
15
16
  bottom: number;