wysimark-lite 0.14.3 → 0.15.1

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 CHANGED
@@ -319,6 +319,7 @@ type PlaceholderPluginCustomTypes = {
319
319
 
320
320
  declare function createImageMethods(editor: Editor): {
321
321
  noop: () => void;
322
+ insertImageFromUrl: (url: string, alt?: string | undefined, title?: string | undefined) => void;
322
323
  };
323
324
 
324
325
  type ImageSize = {
@@ -417,13 +418,10 @@ type ImageBlockElement = {
417
418
  *
418
419
  * Smaller images can be converted to block images though.
419
420
  */
420
- type ImageInlineElement = {
421
- type: "image-inline";
422
- } & ImageSharedElement;
423
421
  type ImagePluginCustomTypes = {
424
422
  Name: "image";
425
423
  Editor: ImageEditor;
426
- Element: ImageBlockElement | ImageInlineElement;
424
+ Element: ImageBlockElement;
427
425
  Options: ImagePluginOptions;
428
426
  };
429
427
  /**
@@ -741,7 +739,7 @@ type BlockQuotePluginCustomTypes = {
741
739
 
742
740
  declare function createTableMethods(editor: Editor): {
743
741
  getTableInfo: (args_0?: {
744
- at?: ImageBlockElement | ImageInlineElement | ParagraphElement | OrderedListItemElement | UnorderedListItemElement | TaskListItemElement | HorizontalRuleElement | TableElement | TableRowElement | TableCellElement | TableContentElement | BlockQuoteElement | HeadingElement | AnchorElement | slate.Location | null | undefined;
742
+ at?: ImageBlockElement | ParagraphElement | OrderedListItemElement | UnorderedListItemElement | TaskListItemElement | HorizontalRuleElement | TableElement | TableRowElement | TableCellElement | TableContentElement | BlockQuoteElement | HeadingElement | AnchorElement | slate.Location | null | undefined;
745
743
  } | undefined) => TableInfo | undefined;
746
744
  insertTable: (args_0: number, args_1: number, args_2?: {
747
745
  at?: slate.Location | null | undefined;
@@ -848,8 +846,8 @@ type CurriedConvertElements = <T extends Element$1 = Element$1>(matchForToggle:
848
846
 
849
847
  declare function createConvertElementMethods(editor: Editor): {
850
848
  convertElementTypes: string[];
851
- addConvertElementType: (type: "anchor" | "heading" | "block-quote" | "table" | "horizontal-rule" | "paragraph" | "image-block" | "image-inline" | "ordered-list-item" | "unordered-list-item" | "task-list-item" | "table-row" | "table-cell" | "table-content" | ("anchor" | "heading" | "block-quote" | "table" | "horizontal-rule" | "paragraph" | "image-block" | "image-inline" | "ordered-list-item" | "unordered-list-item" | "task-list-item" | "table-row" | "table-cell" | "table-content")[]) => void;
852
- isConvertibleElement: (element: ImageBlockElement | ImageInlineElement | ParagraphElement | OrderedListItemElement | UnorderedListItemElement | TaskListItemElement | HorizontalRuleElement | TableElement | TableRowElement | TableCellElement | TableContentElement | BlockQuoteElement | HeadingElement | AnchorElement) => boolean;
849
+ addConvertElementType: (type: "anchor" | "heading" | "block-quote" | "table" | "horizontal-rule" | "paragraph" | "image-block" | "ordered-list-item" | "unordered-list-item" | "task-list-item" | "table-row" | "table-cell" | "table-content" | ("anchor" | "heading" | "block-quote" | "table" | "horizontal-rule" | "paragraph" | "image-block" | "ordered-list-item" | "unordered-list-item" | "task-list-item" | "table-row" | "table-cell" | "table-content")[]) => void;
850
+ isConvertibleElement: (element: ImageBlockElement | ParagraphElement | OrderedListItemElement | UnorderedListItemElement | TaskListItemElement | HorizontalRuleElement | TableElement | TableRowElement | TableCellElement | TableContentElement | BlockQuoteElement | HeadingElement | AnchorElement) => boolean;
853
851
  convertElements: CurriedConvertElements;
854
852
  };
855
853