@bbl-digital/snorre 4.0.95 → 4.0.96
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/bundle.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@emotion/styled/base'), require('react'), require('@emotion/react'), require('@emotion/react/jsx-runtime'), require('react/jsx-runtime'), require('react-transition-group'), require('react-player'), require('react-aria'), require('react-quill/dist/quill.snow.css'), require('match-sorter'), require('body-scroll-lock'), require('framer-motion'), require('recharts'), require('nuka-carousel'), require('react-day-picker'), require('date-fns/locale'), require('react-popper'), require('date-fns'), require('react-beautiful-dnd'), require('@tinymce/tinymce-react'), require('react-images-uploading'), require('react-stately'), require('quill'), require('quill/dist/quill.snow.css')
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@emotion/styled/base', 'react', '@emotion/react', '@emotion/react/jsx-runtime', 'react/jsx-runtime', 'react-transition-group', 'react-player', 'react-aria', 'react-quill/dist/quill.snow.css', 'match-sorter', 'body-scroll-lock', 'framer-motion', 'recharts', 'nuka-carousel', 'react-day-picker', 'date-fns/locale', 'react-popper', 'date-fns', 'react-beautiful-dnd', '@tinymce/tinymce-react', 'react-images-uploading', 'react-stately', 'quill', 'quill/dist/quill.snow.css'
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Snorre = {}, global._styled, global.React, global.react, global.jsxRuntime, global.jsxRuntime$1, global.reactTransitionGroup, global.ReactPlayer, global.reactAria, null, global.matchSorter, global.bodyScrollLock, global.framerMotion, global.recharts, global.Carousel, global.reactDayPicker, global.locale, global.reactPopper, global.dateFns, global.reactBeautifulDnd, global.tinymceReact, global.ImageUploading, global.reactStately, global.Quill
|
|
5
|
-
})(this, (function (exports, _styled, React, react, jsxRuntime, jsxRuntime$1, reactTransitionGroup, ReactPlayer, reactAria, quill_snow_css, matchSorter, bodyScrollLock, framerMotion, recharts, Carousel, reactDayPicker, locale, reactPopper, dateFns, reactBeautifulDnd, tinymceReact, ImageUploading, reactStately, Quill
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@emotion/styled/base'), require('react'), require('@emotion/react'), require('@emotion/react/jsx-runtime'), require('react/jsx-runtime'), require('react-transition-group'), require('react-player'), require('react-aria'), require('react-quill/dist/quill.snow.css'), require('match-sorter'), require('body-scroll-lock'), require('framer-motion'), require('recharts'), require('nuka-carousel'), require('react-day-picker'), require('date-fns/locale'), require('react-popper'), require('date-fns'), require('react-beautiful-dnd'), require('@tinymce/tinymce-react'), require('react-images-uploading'), require('react-stately'), require('quill'), require('quill/dist/quill.snow.css')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@emotion/styled/base', 'react', '@emotion/react', '@emotion/react/jsx-runtime', 'react/jsx-runtime', 'react-transition-group', 'react-player', 'react-aria', 'react-quill/dist/quill.snow.css', 'match-sorter', 'body-scroll-lock', 'framer-motion', 'recharts', 'nuka-carousel', 'react-day-picker', 'date-fns/locale', 'react-popper', 'date-fns', 'react-beautiful-dnd', '@tinymce/tinymce-react', 'react-images-uploading', 'react-stately', 'quill', 'quill/dist/quill.snow.css'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Snorre = {}, global._styled, global.React, global.react, global.jsxRuntime, global.jsxRuntime$1, global.reactTransitionGroup, global.ReactPlayer, global.reactAria, null, global.matchSorter, global.bodyScrollLock, global.framerMotion, global.recharts, global.Carousel, global.reactDayPicker, global.locale, global.reactPopper, global.dateFns, global.reactBeautifulDnd, global.tinymceReact, global.ImageUploading, global.reactStately, global.Quill));
|
|
5
|
+
})(this, (function (exports, _styled, React, react, jsxRuntime, jsxRuntime$1, reactTransitionGroup, ReactPlayer, reactAria, quill_snow_css, matchSorter, bodyScrollLock, framerMotion, recharts, Carousel, reactDayPicker, locale, reactPopper, dateFns, reactBeautifulDnd, tinymceReact, ImageUploading, reactStately, Quill) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -35520,9 +35520,16 @@ to {top: 100vh;}
|
|
|
35520
35520
|
React.useEffect(() => {
|
|
35521
35521
|
if (!quill) return;
|
|
35522
35522
|
quill.clipboard.addMatcher(Node.ELEMENT_NODE, (node, delta) => {
|
|
35523
|
-
if (pasteAsText)
|
|
35524
|
-
|
|
35525
|
-
|
|
35523
|
+
if (!pasteAsText) return delta;
|
|
35524
|
+
let ops = [];
|
|
35525
|
+
delta.ops.forEach(op => {
|
|
35526
|
+
if (op.insert && typeof op.insert === 'string') {
|
|
35527
|
+
ops.push({
|
|
35528
|
+
insert: op.insert
|
|
35529
|
+
});
|
|
35530
|
+
}
|
|
35531
|
+
});
|
|
35532
|
+
delta.ops = ops;
|
|
35526
35533
|
return delta;
|
|
35527
35534
|
});
|
|
35528
35535
|
}, [quill, pasteAsText]);
|
|
@@ -10,7 +10,6 @@ import { useTheme } from '@emotion/react';
|
|
|
10
10
|
import MyListItem from './Attributors/ListItem';
|
|
11
11
|
import { MyListContainer } from './Attributors/ListContainer';
|
|
12
12
|
import { IndentAttributor } from './Attributors/IndentAttributor';
|
|
13
|
-
import { Delta } from 'quill/core';
|
|
14
13
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
15
14
|
const Parchment = Quill.import('parchment');
|
|
16
15
|
|
|
@@ -147,9 +146,16 @@ const QuillEditor = ({
|
|
|
147
146
|
useEffect(() => {
|
|
148
147
|
if (!quill) return;
|
|
149
148
|
quill.clipboard.addMatcher(Node.ELEMENT_NODE, (node, delta) => {
|
|
150
|
-
if (pasteAsText)
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
if (!pasteAsText) return delta;
|
|
150
|
+
let ops = [];
|
|
151
|
+
delta.ops.forEach(op => {
|
|
152
|
+
if (op.insert && typeof op.insert === 'string') {
|
|
153
|
+
ops.push({
|
|
154
|
+
insert: op.insert
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
delta.ops = ops;
|
|
153
159
|
return delta;
|
|
154
160
|
});
|
|
155
161
|
}, [quill, pasteAsText]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/index.tsx"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AA4D3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/index.tsx"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AA4D3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA+L3C,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -10,7 +10,6 @@ import { useTheme } from '@emotion/react';
|
|
|
10
10
|
import MyListItem from './Attributors/ListItem';
|
|
11
11
|
import { MyListContainer } from './Attributors/ListContainer';
|
|
12
12
|
import { IndentAttributor } from './Attributors/IndentAttributor';
|
|
13
|
-
import { Delta } from 'quill/core';
|
|
14
13
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
15
14
|
const Parchment = Quill.import('parchment');
|
|
16
15
|
|
|
@@ -147,9 +146,16 @@ const QuillEditor = ({
|
|
|
147
146
|
useEffect(() => {
|
|
148
147
|
if (!quill) return;
|
|
149
148
|
quill.clipboard.addMatcher(Node.ELEMENT_NODE, (node, delta) => {
|
|
150
|
-
if (pasteAsText)
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
if (!pasteAsText) return delta;
|
|
150
|
+
let ops = [];
|
|
151
|
+
delta.ops.forEach(op => {
|
|
152
|
+
if (op.insert && typeof op.insert === 'string') {
|
|
153
|
+
ops.push({
|
|
154
|
+
insert: op.insert
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
delta.ops = ops;
|
|
153
159
|
return delta;
|
|
154
160
|
});
|
|
155
161
|
}, [quill, pasteAsText]);
|