@ones-editor/editor 0.0.3-beta.54 → 0.0.3-beta.56

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/types.d.ts CHANGED
@@ -40,7 +40,6 @@ export interface CreateOnesEditorOptions {
40
40
  token: string;
41
41
  disableLogout?: boolean;
42
42
  enableComments?: boolean;
43
- scrollContainer?: HTMLElement;
44
43
  lang?: i18n.LANGS;
45
44
  onReauth?: (userId: string, docId: string, permission: OnesEditorUserPermission) => Promise<string>;
46
45
  user: {
@@ -60,9 +59,9 @@ export interface CreateOnesEditorOptions {
60
59
  export interface CreateLocalEditorOptions {
61
60
  id?: string;
62
61
  lang?: i18n.LANGS;
63
- scrollContainer?: HTMLElement;
64
62
  components?: {
65
63
  embeds?: Embed[];
64
+ blockHooks?: OnesEditorBlockHook[];
66
65
  };
67
66
  serverUrl?: string;
68
67
  enableComments?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "0.0.3-beta.54",
3
+ "version": "0.0.3-beta.56",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,5 +0,0 @@
1
- import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
2
- export declare function applyHeadingStyle(editor: OnesEditor, block: BlockElement, heading: number | null): void;
3
- export declare function applyAlignStyle(editor: OnesEditor, block: BlockElement, align: string): void;
4
- export declare function applyQuoteStyle(editor: OnesEditor, block: BlockElement): void;
5
- export declare function applyList(editor: OnesEditor, block: BlockElement, id: 'unordered-list' | 'ordered-list' | 'check-list'): void;