rme 0.2.6 → 0.3.0-beta.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
@@ -6,7 +6,7 @@ import { Compartment, Extension } from '@codemirror/state';
6
6
  import { EditorView, EditorViewConfig } from '@codemirror/view';
7
7
  import { ProsemirrorNode, EditorView as EditorView$1 } from '@rme-sdk/pm';
8
8
  import * as react from 'react';
9
- import react__default, { CSSProperties, ReactNode, MouseEvent, FC } from 'react';
9
+ import react__default, { CSSProperties, ReactNode, MouseEvent, JSX, FC } from 'react';
10
10
  import { RemirrorEventListenerProps, Extension as Extension$1, RemirrorManager as RemirrorManager$1, AnyExtension as AnyExtension$1 } from '@rme-sdk/main';
11
11
  import { AnyExtension, RemirrorManager, CommandDecoratorMessageProps, CoreIcon } from '@rme-sdk/core';
12
12
  import { Node, Schema, NodeType, Mark } from '@rme-sdk/pm/model';
@@ -122,7 +122,7 @@ interface ITextProps extends react__default.HTMLAttributes<HTMLDivElement> {
122
122
  style?: CSSProperties;
123
123
  }
124
124
 
125
- declare const Editor: react.MemoExoticComponent<react.ForwardRefExoticComponent<EditorProps & react.RefAttributes<EditorRef>>>;
125
+ declare const Editor: react.NamedExoticComponent<EditorProps & react.RefAttributes<EditorRef>>;
126
126
  type EditorChangeEventParams = RemirrorEventListenerProps<Extension$1>;
127
127
  type EditorChangeHandler = (params: EditorChangeEventParams) => void;
128
128
  type EditorRef = {
@@ -411,9 +411,7 @@ interface WrapperProps {
411
411
  */
412
412
  rootLineHeight?: string;
413
413
  }
414
- declare const WysiwygThemeWrapper: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
415
- ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
416
- }>, WrapperProps>, never>> & string;
414
+ declare const WysiwygThemeWrapper: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, WrapperProps>, never>> & string;
417
415
 
418
416
  interface WarpperProps {
419
417
  codeEditor?: boolean;
@@ -427,9 +425,7 @@ interface WarpperProps {
427
425
  */
428
426
  rootLineHeight?: string;
429
427
  }
430
- declare const SourceCodeThemeWrapper: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
431
- ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
432
- }>, WarpperProps>, never>> & string;
428
+ declare const SourceCodeThemeWrapper: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, WarpperProps>, never>> & string;
433
429
 
434
430
  declare const tableSelectorSize = 15;
435
431
  declare const common: {