@examind/block-editor 0.1.0 → 0.1.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.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import React__default, { RefAttributes } from 'react';
4
+ import { SerializedEditorState } from '@examind/block-types';
4
5
 
5
6
  type Theme = 'light' | 'dark';
6
7
  type ThemeVariables = {
@@ -15,9 +16,9 @@ type ThemeVariables = {
15
16
  type BlockEditorProps = {
16
17
  themeSettings?: ThemeVariables;
17
18
  editable?: boolean;
18
- editorState?: any;
19
+ editorState?: SerializedEditorState;
19
20
  theme?: Theme;
20
- onChange?: (editorState?: any) => void;
21
+ onChange?: (editorState: SerializedEditorState) => void;
21
22
  children?: React__default.ReactNode;
22
23
  };
23
24
  declare function BlockEditor(props: BlockEditorProps): react_jsx_runtime.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import React__default, { RefAttributes } from 'react';
4
+ import { SerializedEditorState } from '@examind/block-types';
4
5
 
5
6
  type Theme = 'light' | 'dark';
6
7
  type ThemeVariables = {
@@ -15,9 +16,9 @@ type ThemeVariables = {
15
16
  type BlockEditorProps = {
16
17
  themeSettings?: ThemeVariables;
17
18
  editable?: boolean;
18
- editorState?: any;
19
+ editorState?: SerializedEditorState;
19
20
  theme?: Theme;
20
- onChange?: (editorState?: any) => void;
21
+ onChange?: (editorState: SerializedEditorState) => void;
21
22
  children?: React__default.ReactNode;
22
23
  };
23
24
  declare function BlockEditor(props: BlockEditorProps): react_jsx_runtime.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@examind/block-editor",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "@comment version": [
5
5
  "Don't specify package version here. It will be injected by publish workflow."
6
6
  ],