@yoopta/editor 4.0.0-rc.2 → 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.
Files changed (30) hide show
  1. package/LICENSE +21 -0
  2. package/dist/UI/BlockOptions/BlockOptions.d.ts +8 -7
  3. package/dist/UI/BlockOptions/BlockOptions.d.ts.map +1 -1
  4. package/dist/UI/ExtendedBlockActions/ExtendedBlockActions.d.ts.map +1 -1
  5. package/dist/UI/index.d.ts +5 -5
  6. package/dist/YooptaEditor.d.ts +5 -6
  7. package/dist/YooptaEditor.d.ts.map +1 -1
  8. package/dist/components/Block/Block.d.ts.map +1 -1
  9. package/dist/components/Block/BlockActions.d.ts.map +1 -1
  10. package/dist/components/Editor/Editor.d.ts.map +1 -1
  11. package/dist/contexts/UltraYooptaContext/ToolsContext.d.ts +13 -19
  12. package/dist/contexts/UltraYooptaContext/ToolsContext.d.ts.map +1 -1
  13. package/dist/editor/transforms/deleteBlock.d.ts.map +1 -1
  14. package/dist/index.d.ts +3 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +3 -3
  17. package/dist/plugins/SlateEditorComponent.d.ts.map +1 -1
  18. package/dist/utils/findSlateBySelectionPath.d.ts +2 -1
  19. package/dist/utils/findSlateBySelectionPath.d.ts.map +1 -1
  20. package/package.json +5 -7
  21. package/dist/tools/ActionMenuList/ActionMenuComponent.d.ts +0 -14
  22. package/dist/tools/ActionMenuList/ActionMenuComponent.d.ts.map +0 -1
  23. package/dist/tools/ActionMenuList/ActionMenuList.d.ts +0 -10
  24. package/dist/tools/ActionMenuList/ActionMenuList.d.ts.map +0 -1
  25. package/dist/tools/Toolbar/HighlightColor.d.ts +0 -14
  26. package/dist/tools/Toolbar/HighlightColor.d.ts.map +0 -1
  27. package/dist/tools/Toolbar/Toolbar.d.ts +0 -4
  28. package/dist/tools/Toolbar/Toolbar.d.ts.map +0 -1
  29. package/dist/tools/Toolbar/ToolbarComponent.d.ts +0 -9
  30. package/dist/tools/Toolbar/ToolbarComponent.d.ts.map +0 -1
@@ -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;AA+GF,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.2",
3
+ "version": "4.0.0-rc.4",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "type": "module",
@@ -13,20 +13,17 @@
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",
23
21
  "is-hotkey": "^0.2.0",
24
22
  "lodash.clonedeep": "^4.5.0",
25
23
  "nanoid": "^4.0.1",
26
- "slate": ">=0.72.3",
24
+ "slate": ">=0.99.0",
27
25
  "slate-history": "^0.66.0",
28
- "slate-hyperscript": "^0.77.0",
29
- "slate-react": ">=0.95.0"
26
+ "slate-react": ">=0.99.0"
30
27
  },
31
28
  "peerDependencies": {
32
29
  "react": ">=17.0.2",
@@ -70,5 +67,6 @@
70
67
  "bugs": {
71
68
  "url": "https://github.com/Darginec05/Yoopta-Editor/issues"
72
69
  },
73
- "homepage": "https://github.com/Darginec05/Yoopta-Editor#readme"
70
+ "homepage": "https://github.com/Darginec05/Yoopta-Editor#readme",
71
+ "gitHead": "03017afa8ec08e0806e5cdf08d9085894e924ca0"
74
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"}