@yoopta/editor 4.0.0-rc.3 → 4.0.0-rc.4

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
- {"version":3,"file":"SlateEditorComponent.d.ts","sourceRoot":"","sources":["../../src/plugins/SlateEditorComponent.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAA0E,YAAY,EAAE,MAAM,SAAS,CAAC;AAU/G,KAAK,KAAK,CAAC,KAAK,SAAS,MAAM,EAAE,MAAM,EAAE,QAAQ,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,GAAG;IAC3F,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;IAC1B,OAAO,EAAE,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAgBF,QAAA,MAAM,oBAAoB,+JA0LzB,CAAC;AAsEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"SlateEditorComponent.d.ts","sourceRoot":"","sources":["../../src/plugins/SlateEditorComponent.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAIL,YAAY,EAEb,MAAM,SAAS,CAAC;AAUjB,KAAK,KAAK,CAAC,KAAK,SAAS,MAAM,EAAE,MAAM,EAAE,QAAQ,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,GAAG;IAC3F,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;IAC1B,OAAO,EAAE,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAgBF,QAAA,MAAM,oBAAoB,+JAwKzB,CAAC;AAsFF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { Editor } from 'slate';
1
2
  import { YooEditor, YooptaEditorTransformOptions } from '../editor/types';
2
- export declare function findSlateBySelectionPath(editor: YooEditor, options?: Pick<YooptaEditorTransformOptions, 'at'>): (import("slate-react").ReactEditor & import("slate").BaseEditor) | undefined;
3
+ export declare function findSlateBySelectionPath(editor: YooEditor, options?: Pick<YooptaEditorTransformOptions, 'at'>): Editor | undefined;
3
4
  //# sourceMappingURL=findSlateBySelectionPath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"findSlateBySelectionPath.d.ts","sourceRoot":"","sources":["../../src/utils/findSlateBySelectionPath.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAE1E,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,IAAI,CAAC,4BAA4B,EAAE,IAAI,CAAM,gFAWjH"}
1
+ {"version":3,"file":"findSlateBySelectionPath.d.ts","sourceRoot":"","sources":["../../src/utils/findSlateBySelectionPath.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAE1E,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,SAAS,EACjB,OAAO,GAAE,IAAI,CAAC,4BAA4B,EAAE,IAAI,CAAM,GACrD,MAAM,GAAG,SAAS,CAWpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoopta/editor",
3
- "version": "4.0.0-rc.3",
3
+ "version": "4.0.0-rc.4",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "type": "module",
@@ -13,10 +13,8 @@
13
13
  "dependencies": {
14
14
  "@dnd-kit/core": "^6.1.0",
15
15
  "@dnd-kit/sortable": "^8.0.0",
16
- "@dnd-kit/utilities": "^3.2.2",
17
16
  "@floating-ui/react": "^0.26.9",
18
17
  "@radix-ui/react-icons": "^1.3.0",
19
- "@radix-ui/react-toolbar": "^1.0.4",
20
18
  "copy-to-clipboard": "^3.3.2",
21
19
  "eventemitter3": "^5.0.1",
22
20
  "immer": "^10.0.3",
@@ -25,7 +23,6 @@
25
23
  "nanoid": "^4.0.1",
26
24
  "slate": ">=0.99.0",
27
25
  "slate-history": "^0.66.0",
28
- "slate-hyperscript": "^0.77.0",
29
26
  "slate-react": ">=0.99.0"
30
27
  },
31
28
  "peerDependencies": {
@@ -71,5 +68,5 @@
71
68
  "url": "https://github.com/Darginec05/Yoopta-Editor/issues"
72
69
  },
73
70
  "homepage": "https://github.com/Darginec05/Yoopta-Editor#readme",
74
- "gitHead": "c46f09afdb5f60f98f2065e24305a9d02ed57ca7"
71
+ "gitHead": "03017afa8ec08e0806e5cdf08d9085894e924ca0"
75
72
  }
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import { YooEditor } from '../../editor/types';
3
- type Props = {
4
- actions: string[];
5
- editor: YooEditor;
6
- onMouseEnter?: (e: React.MouseEvent) => void;
7
- selectedAction: string;
8
- onClose: () => void;
9
- empty: boolean;
10
- mode?: 'toggle' | 'create';
11
- };
12
- declare const ActionMenuComponent: ({ actions: actionsProps, editor, onMouseEnter, selectedAction, onClose, empty, mode, }: Props) => JSX.Element;
13
- export { ActionMenuComponent };
14
- //# sourceMappingURL=ActionMenuComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionMenuComponent.d.ts","sourceRoot":"","sources":["../../../src/tools/ActionMenuList/ActionMenuComponent.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAe,MAAM,oBAAoB,CAAC;AAG5D,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC7C,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC5B,CAAC;AAUF,QAAA,MAAM,mBAAmB,2FAQtB,KAAK,gBAuDP,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { YooptaBlock } from '../../editor/types';
3
- type Props = {
4
- trigger?: string;
5
- actions?: YooptaBlock[];
6
- render?: (props: any) => JSX.Element;
7
- };
8
- declare const ActionMenuList: ({ trigger, render }: Props) => JSX.Element | null;
9
- export { ActionMenuList };
10
- //# sourceMappingURL=ActionMenuList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionMenuList.d.ts","sourceRoot":"","sources":["../../../src/tools/ActionMenuList/ActionMenuList.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAmBjD,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IAQjB,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC,OAAO,CAAC;CACtC,CAAC;AAEF,QAAA,MAAM,cAAc,wBAA+B,KAAK,uBA0MvD,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -1,14 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import { YooEditor } from '../../editor/types';
3
- type Props = {
4
- editor: YooEditor;
5
- highlightColors: CSSProperties;
6
- onClose: () => void;
7
- refs: {
8
- setFloating: (el: HTMLElement) => void;
9
- };
10
- floatingStyles: React.CSSProperties;
11
- };
12
- declare const HighlightColor: ({ editor, highlightColors, onClose, refs, floatingStyles }: Props) => JSX.Element;
13
- export { HighlightColor };
14
- //# sourceMappingURL=HighlightColor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HighlightColor.d.ts","sourceRoot":"","sources":["../../../src/tools/Toolbar/HighlightColor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAc,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AA6C/C,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,SAAS,CAAC;IAClB,eAAe,EAAE,aAAa,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE;QAAE,WAAW,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,CAAA;KAAE,CAAC;IACjD,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC;CACrC,CAAC;AAEF,QAAA,MAAM,cAAc,+DAAgE,KAAK,gBAgExF,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Toolbar: () => JSX.Element | null;
3
- export { Toolbar };
4
- //# sourceMappingURL=Toolbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../src/tools/Toolbar/Toolbar.tsx"],"names":[],"mappings":";AAMA,QAAA,MAAM,OAAO,0BAqDZ,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { YooEditor, YooptaBlock } from '../../editor/types';
3
- type ToolbarComponentProps = {
4
- activeBlock?: YooptaBlock;
5
- editor: YooEditor;
6
- };
7
- declare const ToolbarComponent: ({ activeBlock, editor }: ToolbarComponentProps) => JSX.Element;
8
- export { ToolbarComponent };
9
- //# sourceMappingURL=ToolbarComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToolbarComponent.d.ts","sourceRoot":"","sources":["../../../src/tools/Toolbar/ToolbarComponent.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAe5D,KAAK,qBAAqB,GAAG;IAC3B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAMF,QAAA,MAAM,gBAAgB,4BAA6B,qBAAqB,gBAgKvE,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}