@flozy/editor 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/Elements/CodeToText/HtmlContextMenu.js +1 -1
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +2 -2
- package/dist/Editor/Elements/Embed/Embed.js +1 -1
- package/dist/Editor/Elements/Embed/Image.js +1 -1
- package/dist/Editor/Elements/Embed/Video.js +1 -3
- package/dist/Editor/Elements/Equation/EquationButton.js +1 -1
- package/dist/Editor/Elements/Link/Link.js +1 -1
- package/dist/Editor/Elements/Link/LinkButton.js +5 -5
- package/dist/Editor/Elements/TableContextMenu/TableContextMenu.js +3 -3
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
2
|
import useContextMenu from "../../utils/customHooks/useContextMenu.js";
|
3
|
-
import Icon from "../../common/Icon
|
3
|
+
import Icon from "../../common/Icon";
|
4
4
|
import { Transforms, Node, Path } from "slate";
|
5
5
|
const HtmlContextMenu = props => {
|
6
6
|
const {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React, { useRef, useState } from "react";
|
2
2
|
import { MdFormatColorText, MdFormatColorFill, MdCheck } from "react-icons/md";
|
3
3
|
import "./ColorPicker.css";
|
4
|
-
import { colors } from "./defaultColors
|
5
|
-
import { addMarkData, activeMark } from "../../utils/SlateUtilityFunctions
|
4
|
+
import { colors } from "./defaultColors";
|
5
|
+
import { addMarkData, activeMark } from "../../utils/SlateUtilityFunctions";
|
6
6
|
import { Transforms } from "slate";
|
7
7
|
import usePopup from "../../utils/customHooks/usePopup";
|
8
8
|
import { ReactEditor } from "slate-react";
|
@@ -3,7 +3,7 @@ import Button from '../../common/Button';
|
|
3
3
|
import Icon from '../../common/Icon';
|
4
4
|
import { isBlockActive } from '../../utils/SlateUtilityFunctions';
|
5
5
|
import usePopup from '../../utils/customHooks/usePopup';
|
6
|
-
import { insertEmbed } from '../../utils/embed
|
6
|
+
import { insertEmbed } from '../../utils/embed';
|
7
7
|
import { Transforms } from 'slate';
|
8
8
|
import { ReactEditor } from 'slate-react';
|
9
9
|
import './Embed.css';
|
@@ -3,7 +3,7 @@ import React, { useEffect, useState } from "react";
|
|
3
3
|
import { useSlateStatic, useSelected, useFocused, ReactEditor } from "slate-react";
|
4
4
|
import { Node, Transforms } from "slate";
|
5
5
|
import Icon from "../../common/Icon";
|
6
|
-
import useResize from "../../utils/customHooks/useResize
|
6
|
+
import useResize from "../../utils/customHooks/useResize";
|
7
7
|
const Image = ({
|
8
8
|
attributes,
|
9
9
|
element,
|
@@ -2,9 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
2
2
|
import React from "react";
|
3
3
|
import { useSelected, useFocused } from "slate-react";
|
4
4
|
import Icon from "../../common/Icon";
|
5
|
-
import useResize from "../../utils/customHooks/useResize
|
6
|
-
// import "./Video.css";
|
7
|
-
|
5
|
+
import useResize from "../../utils/customHooks/useResize";
|
8
6
|
const Video = ({
|
9
7
|
attributes,
|
10
8
|
element,
|
@@ -2,7 +2,7 @@ import { useRef, useState } from 'react';
|
|
2
2
|
import Button from '../../common/Button';
|
3
3
|
import Icon from '../../common/Icon';
|
4
4
|
import usePopup from '../../utils/customHooks/usePopup';
|
5
|
-
import { insertEquation } from '../../utils/equation
|
5
|
+
import { insertEquation } from '../../utils/equation';
|
6
6
|
import { Transforms } from 'slate';
|
7
7
|
const EquationButton = ({
|
8
8
|
editor
|
@@ -1,7 +1,7 @@
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2
2
|
import React from 'react';
|
3
3
|
import { useFocused, useSelected, useSlateStatic } from 'slate-react';
|
4
|
-
import { removeLink } from '../../utils/link
|
4
|
+
import { removeLink } from '../../utils/link';
|
5
5
|
import unlink from '../../Toolbar/toolbarIcons/unlink.svg';
|
6
6
|
import './styles.css';
|
7
7
|
const Link = ({
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { useRef, useState } from "react";
|
2
|
-
import { insertLink } from "../../utils/link
|
3
|
-
import Button from "../../common/Button
|
4
|
-
import Icon from "../../common/Icon
|
5
|
-
import { isBlockActive } from "../../utils/SlateUtilityFunctions
|
6
|
-
import usePopup from "../../utils/customHooks/usePopup
|
2
|
+
import { insertLink } from "../../utils/link";
|
3
|
+
import Button from "../../common/Button";
|
4
|
+
import Icon from "../../common/Icon";
|
5
|
+
import { isBlockActive } from "../../utils/SlateUtilityFunctions";
|
6
|
+
import usePopup from "../../utils/customHooks/usePopup";
|
7
7
|
import { Transforms } from "slate";
|
8
8
|
const LinkButton = props => {
|
9
9
|
const {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
|
-
import useContextMenu from "../../utils/customHooks/useContextMenu
|
3
|
-
import Icon from "../../common/Icon
|
2
|
+
import useContextMenu from "../../utils/customHooks/useContextMenu";
|
3
|
+
import Icon from "../../common/Icon";
|
4
4
|
import "./styles.css";
|
5
|
-
import { TableUtil } from "../../utils/table
|
5
|
+
import { TableUtil } from "../../utils/table";
|
6
6
|
import { Transforms } from "slate";
|
7
7
|
import { ReactEditor } from "slate-react";
|
8
8
|
const TableContextMenu = props => {
|