chore(fluent-editor): upgrade quill to 2.0.0 (#1785)

This commit is contained in:
Kagol 2024-07-26 16:55:16 +08:00 committed by GitHub
parent 59bc73b23d
commit a18a7c895f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
40 changed files with 40 additions and 40 deletions

View File

@ -54,7 +54,7 @@
"dependencies": {
"highlight.js": "^10.2.0",
"html2canvas": "^1.0.0-rc.7",
"quill": "2.0.0-dev.4",
"quill": "^2.0.0",
"quill-delta": "^5.1.0"
}
}

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill'
import Quill from 'quill'
const Delta = Quill.imports['delta']

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { LANG_CONF } from '../config';
import { ICounterOption } from '../config/types';

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill'
import Quill from 'quill'
import {
ERROR_IMAGE_PLACEHOLDER_CN,
ERROR_IMAGE_PLACEHOLDER_EN,

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import Action from './actions/Action';
import ImageBlot, { ImageContainerBlot } from './image';
import DefaultOptions, { Options } from './Options';

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import Action from './Action';
export default class DeleteAction extends Action {

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { isNullOrUndefined, sanitize } from '../config/editor.utils';
const Embed = Quill.imports['blots/embed'];
const Inline = Quill.imports['blots/inline'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill'
import Quill from 'quill'
import {
FILE_UPLOADER_MIME_TYPES,

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import emojiMap from '../emoji-map';
const Embed = Quill.imports['blots/embed'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import emojiList from '../emoji-list';
const Module = Quill.imports['core/module'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { EMOJI_SPRITE as emojiSprite } from '../../config/base64-image';
import emojiList from '../emoji-list';

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { sanitize } from '../../config/editor.utils';
const Embed = Quill.imports['blots/embed'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import File from './formats/file';
import FileBar from './modules/file-bar';

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill'
import Quill from 'quill'
// devui-internal api: utils\public-api.ts
import { unshiftString } from '../../utils/method';

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
const BlockEmbed = Quill.imports['blots/block/embed'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { ON_DOC_LINK_REMOVE } from '../constants';
const Embed = Quill.imports['blots/embed'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { ON_WIKI_LINK_REMOVE } from '../constants';
const Embed = Quill.imports['blots/embed'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { ON_WORK_ITEM_LINK_REMOVE } from '../constants';
import { createTable } from '../utils/createTable';
const BlockEmbed = Quill.imports['blots/block/embed'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { getEventComposedPath } from '../config/editor.utils';
import CustomerWidgetLink from './formats/customer-widget-link';
import DocumentLink from './formats/doc-link';

View File

@ -1,6 +1,6 @@
import Quill from 'quill'
// import * as Quill from 'quill';
// import Quill from 'quill';
const Parchment = Quill.imports['parchment'];
const LineHeightStyle = new Parchment.StyleAttributor('lineheight', 'line-height', {

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { sanitize } from '../../config/editor.utils';
const Inline = Quill.imports['blots/inline'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import LinkBlot from './formats/link';
import Tooltip from './modules/tooltip';
const icons = Quill.imports['ui/icons'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { debounce } from '../../../src/utils/debounce';
import { LANG_CONF } from '../../config/editor.config';
import { isNullOrUndefined } from '../../config/editor.utils';

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { isNullOrUndefined } from '../config/editor.utils';
import { DEFAULT_MENTION_CHAR, ON_MENTION_LINK_REMOVE } from './constants';
import MentionLink from './MentionLink';

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { DEFAULT_MENTION_CHAR, MENTION_CHAR, ON_MENTION_LINK_REMOVE } from './constants';
const Embed = Quill.imports['blots/embed'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
interface QuickMenuOptions {
container: string;

View File

@ -1,5 +1,5 @@
import * as Quill from 'quill';
import Quill from 'quill';
import Html2Canvas from 'html2canvas';
import { isPureIE } from '../config/editor.utils';

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
const Embed = Quill.imports['blots/embed'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
const Inline = Quill.imports['blots/inline'];
// @dynamic

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import * as hljs from 'highlight.js';
const Syntax = Quill.imports['modules/syntax'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import {
getEventComposedPath,
insideTable,

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { isNullOrUndefined } from '../../config/editor.utils';
import { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS } from '../table-config';

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS } from '../table-config';
const Block = Quill.imports['blots/block'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { compare } from '../../utils/method'
import { isNullOrUndefined } from '../../config/editor.utils';
import {

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { CELL_MIN_HEIGHT, CELL_MIN_WIDTH, COL_TOOL_HEIGHT, PRIMARY_COLOR, ROW_TOOL_WIDTH } from '../table-config';
import { css } from '../utils';

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { LANG_CONF } from '../../config/editor.config'
import { elementRemove, arrayFrom, css, getRelativeRect } from '../utils';
import {

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { TableCell } from '../formats/table';
import { ERROR_LIMIT, LINE_POSITIONS, PRIMARY_COLOR } from '../table-config';
import { css, getRelativeRect } from '../utils';

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { omit, splitWithBreak } from '../../config/editor.utils';
import { cellId as tableCellId, rowId as tableRowId, TableViewWrapper } from '../formats/table';
import { CELL_MIN_WIDTH } from '../table-config';

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { isNullOrUndefined } from '../config/editor.utils';
const SnowTheme = Quill.imports['themes/snow'];

View File

@ -1,4 +1,4 @@
import * as Quill from 'quill';
import Quill from 'quill';
import { sanitize } from '../config/editor.utils';