@bbl-digital/snorre 4.0.84 → 4.0.85
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +17 -15
- package/esm/core/QuillEditor/Attributors/ListContainer.js +2 -1
- package/esm/core/QuillEditor/Attributors/ListItem.js +2 -2
- package/esm/core/QuillEditor/index.js +1 -0
- package/lib/core/QuillEditor/Attributors/ListContainer.d.ts +3 -2
- package/lib/core/QuillEditor/Attributors/ListContainer.d.ts.map +1 -1
- package/lib/core/QuillEditor/Attributors/ListContainer.js +2 -1
- package/lib/core/QuillEditor/Attributors/ListItem.d.ts +2 -2
- package/lib/core/QuillEditor/Attributors/ListItem.d.ts.map +1 -1
- package/lib/core/QuillEditor/Attributors/ListItem.js +2 -2
- package/lib/core/QuillEditor/index.d.ts.map +1 -1
- package/lib/core/QuillEditor/index.js +1 -0
- package/package.json +1 -1
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
|
|
@@ -12,7 +12,6 @@
|
|
12
12
|
var Carousel__default = /*#__PURE__*/_interopDefaultLegacy(Carousel);
|
13
13
|
var ImageUploading__default = /*#__PURE__*/_interopDefaultLegacy(ImageUploading);
|
14
14
|
var Quill__default = /*#__PURE__*/_interopDefaultLegacy(Quill);
|
15
|
-
var ListItem__default = /*#__PURE__*/_interopDefaultLegacy(ListItem$2);
|
16
15
|
|
17
16
|
const styles$C = {
|
18
17
|
default: (theme, color) => /*#__PURE__*/react.css("display:inline-block;position:relative;min-width:58px;height:10px;div{position:absolute;width:10px;height:10px;border-radius:50%;background:", color ? color : '#ccc', ";animation-timing-function:cubic-bezier(0, 1, 1, 0);}div:nth-of-type(1){left:6px;animation:lds-ellipsis1 0.6s infinite;}div:nth-of-type(2){left:6px;animation:lds-ellipsis2 0.6s infinite;}div:nth-of-type(3){left:24px;animation:lds-ellipsis2 0.6s infinite;}div:nth-of-type(4){left:42px;animation:lds-ellipsis3 0.6s infinite;}@keyframes lds-ellipsis1{0%{transform:scale(0);}100%{transform:scale(1);}}@keyframes lds-ellipsis3{0%{transform:scale(1);}100%{transform:scale(0);}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0);}100%{transform:translate(18px, 0);}}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0FwcExvYWRlci9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS08iLCJmaWxlIjoiLi4vLi4vLi4vc3JjL3BhY2thZ2VzL2NvcmUvQXBwTG9hZGVyL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuaW1wb3J0IHsgSUFwcFRoZW1lIH0gZnJvbSAnLi4vLi4vYXBwLXNoZWxsL3RoZW1lJ1xuXG5jb25zdCBzdHlsZXMgPSB7XG4gIGRlZmF1bHQ6ICh0aGVtZTogSUFwcFRoZW1lLCBjb2xvcjogc3RyaW5nIHwgdW5kZWZpbmVkKSA9PlxuICAgIGNzc2BcbiAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICAgIG1pbi13aWR0aDogNThweDtcbiAgICAgIGhlaWdodDogMTBweDtcbiAgICAgIGRpdiB7XG4gICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgd2lkdGg6IDEwcHg7XG4gICAgICAgIGhlaWdodDogMTBweDtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogNTAlO1xuICAgICAgICBiYWNrZ3JvdW5kOiAke2NvbG9yID8gY29sb3IgOiAnI2NjYyd9O1xuICAgICAgICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBjdWJpYy1iZXppZXIoMCwgMSwgMSwgMCk7XG4gICAgICB9XG4gICAgICBkaXY6bnRoLW9mLXR5cGUoMSkge1xuICAgICAgICBsZWZ0OiA2cHg7XG4gICAgICAgIGFuaW1hdGlvbjogbGRzLWVsbGlwc2lzMSAwLjZzIGluZmluaXRlO1xuICAgICAgfVxuICAgICAgZGl2Om50aC1vZi10eXBlKDIpIHtcbiAgICAgICAgbGVmdDogNnB4O1xuICAgICAgICBhbmltYXRpb246IGxkcy1lbGxpcHNpczIgMC42cyBpbmZpbml0ZTtcbiAgICAgIH1cbiAgICAgIGRpdjpudGgtb2YtdHlwZSgzKSB7XG4gICAgICAgIGxlZnQ6IDI0cHg7XG4gICAgICAgIGFuaW1hdGlvbjogbGRzLWVsbGlwc2lzMiAwLjZzIGluZmluaXRlO1xuICAgICAgfVxuICAgICAgZGl2Om50aC1vZi10eXBlKDQpIHtcbiAgICAgICAgbGVmdDogNDJweDtcbiAgICAgICAgYW5pbWF0aW9uOiBsZHMtZWxsaXBzaXMzIDAuNnMgaW5maW5pdGU7XG4gICAgICB9XG4gICAgICBAa2V5ZnJhbWVzIGxkcy1lbGxpcHNpczEge1xuICAgICAgICAwJSB7XG4gICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgwKTtcbiAgICAgICAgfVxuICAgICAgICAxMDAlIHtcbiAgICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDEpO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgICBAa2V5ZnJhbWVzIGxkcy1lbGxpcHNpczMge1xuICAgICAgICAwJSB7XG4gICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgxKTtcbiAgICAgICAgfVxuICAgICAgICAxMDAlIHtcbiAgICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDApO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgICBAa2V5ZnJhbWVzIGxkcy1lbGxpcHNpczIge1xuICAgICAgICAwJSB7XG4gICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoMCwgMCk7XG4gICAgICAgIH1cbiAgICAgICAgMTAwJSB7XG4gICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoMThweCwgMCk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICBgLFxufVxuXG5leHBvcnQgZGVmYXVsdCBzdHlsZXNcblxuZXhwb3J0IHsgc3R5bGVzIH1cbiJdfQ== */")
|
@@ -1711,7 +1710,7 @@
|
|
1711
1710
|
};
|
1712
1711
|
|
1713
1712
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$1b() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
1714
|
-
const ListItem$
|
1713
|
+
const ListItem$2 = /*#__PURE__*/_styled__default["default"]("li", process.env.NODE_ENV === "production" ? {
|
1715
1714
|
target: "e8hjcxt0"
|
1716
1715
|
} : {
|
1717
1716
|
target: "e8hjcxt0",
|
@@ -25147,7 +25146,7 @@
|
|
25147
25146
|
});
|
25148
25147
|
}
|
25149
25148
|
};
|
25150
|
-
return jsxRuntime.jsx(ListItem$
|
25149
|
+
return jsxRuntime.jsx(ListItem$2, {
|
25151
25150
|
children: jsxRuntime.jsx(Button, {
|
25152
25151
|
nostyle: true,
|
25153
25152
|
css: optionButton$1(props.indent),
|
@@ -28111,7 +28110,7 @@
|
|
28111
28110
|
}
|
28112
28111
|
return null;
|
28113
28112
|
}
|
28114
|
-
return !isMobile ? jsxRuntime.jsx(ListItem$
|
28113
|
+
return !isMobile ? jsxRuntime.jsx(ListItem$2, {
|
28115
28114
|
role: "menuitem",
|
28116
28115
|
children: jsxRuntime.jsx(Button, {
|
28117
28116
|
nostyle: true,
|
@@ -28136,7 +28135,7 @@
|
|
28136
28135
|
})
|
28137
28136
|
})
|
28138
28137
|
})
|
28139
|
-
}) : jsxRuntime.jsx(ListItem$
|
28138
|
+
}) : jsxRuntime.jsx(ListItem$2, {
|
28140
28139
|
role: "menuitem",
|
28141
28140
|
children: jsxRuntime.jsx(Button, {
|
28142
28141
|
nostyle: true,
|
@@ -28480,7 +28479,7 @@
|
|
28480
28479
|
};
|
28481
28480
|
|
28482
28481
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$H() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
28483
|
-
const ListItem = /*#__PURE__*/_styled__default["default"]("li", process.env.NODE_ENV === "production" ? {
|
28482
|
+
const ListItem$1 = /*#__PURE__*/_styled__default["default"]("li", process.env.NODE_ENV === "production" ? {
|
28484
28483
|
target: "e1xvofrz2"
|
28485
28484
|
} : {
|
28486
28485
|
target: "e1xvofrz2",
|
@@ -28517,7 +28516,7 @@
|
|
28517
28516
|
...props
|
28518
28517
|
}) => {
|
28519
28518
|
const theme = react.useTheme();
|
28520
|
-
return /*#__PURE__*/jsxRuntime$1.jsx(ListItem, {
|
28519
|
+
return /*#__PURE__*/jsxRuntime$1.jsx(ListItem$1, {
|
28521
28520
|
role: "menuitem",
|
28522
28521
|
...props,
|
28523
28522
|
children: /*#__PURE__*/jsxRuntime$1.jsx(Wrapper$m, {
|
@@ -35328,7 +35327,8 @@ to {top: 100vh;}
|
|
35328
35327
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
35329
35328
|
});
|
35330
35329
|
|
35331
|
-
|
35330
|
+
const ListContainer = Quill__default["default"].import('formats/list-container');
|
35331
|
+
class MyListContainer extends ListContainer {
|
35332
35332
|
static tagName = ['OL', 'UL'];
|
35333
35333
|
static defaultTag = 'OL';
|
35334
35334
|
static create(value) {
|
@@ -35347,7 +35347,8 @@ to {top: 100vh;}
|
|
35347
35347
|
}
|
35348
35348
|
}
|
35349
35349
|
|
35350
|
-
|
35350
|
+
const ListItem = Quill__default["default"].import('formats/list');
|
35351
|
+
class MyListItem extends ListItem {
|
35351
35352
|
static requiredContainer = MyListContainer;
|
35352
35353
|
static register() {
|
35353
35354
|
Quill__default["default"].register(MyListContainer, true);
|
@@ -35361,7 +35362,7 @@ to {top: 100vh;}
|
|
35361
35362
|
}
|
35362
35363
|
format(name, value) {
|
35363
35364
|
// If the list type is different, wrap this list item in a new MyListContainer of that type
|
35364
|
-
if (name ===
|
35365
|
+
if (name === ListItem.blotName && value !== MyListItem.formats(this.domNode)) {
|
35365
35366
|
this.wrap(this.statics.requiredContainer.blotName, value);
|
35366
35367
|
}
|
35367
35368
|
super.format(name, value);
|
@@ -35443,6 +35444,7 @@ to {top: 100vh;}
|
|
35443
35444
|
const modules = {
|
35444
35445
|
toolbar: toolbars[type || 'basic']
|
35445
35446
|
};
|
35447
|
+
console.log(Quill__default["default"].imports);
|
35446
35448
|
const handleChange = React.useCallback((delta, oldDelta, source) => {
|
35447
35449
|
if (quill && onChange) {
|
35448
35450
|
const html = quill.root.innerHTML;
|
@@ -35884,7 +35886,7 @@ to {top: 100vh;}
|
|
35884
35886
|
exports.LayoutShell = LayoutShell;
|
35885
35887
|
exports.Link = Link;
|
35886
35888
|
exports.List = List;
|
35887
|
-
exports.ListItem = ListItem$
|
35889
|
+
exports.ListItem = ListItem$2;
|
35888
35890
|
exports.ListPager = ListPager;
|
35889
35891
|
exports.MainMenu = MainMenu;
|
35890
35892
|
exports.MediaCarousel = MediaCarousel;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import Quill from 'quill';
|
2
|
-
import ListItem from 'quill/formats/list';
|
3
2
|
import { MyListContainer } from './ListContainer';
|
3
|
+
const ListItem = Quill.import('formats/list');
|
4
4
|
class MyListItem extends ListItem {
|
5
5
|
static requiredContainer = MyListContainer;
|
6
6
|
static register() {
|
@@ -21,4 +21,4 @@ class MyListItem extends ListItem {
|
|
21
21
|
super.format(name, value);
|
22
22
|
}
|
23
23
|
}
|
24
|
-
export default
|
24
|
+
export { MyListItem as default };
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
1
|
+
declare const ListContainer: any;
|
2
2
|
export declare class MyListContainer extends ListContainer {
|
3
3
|
static tagName: string[];
|
4
4
|
static defaultTag: string;
|
5
5
|
static create(value: 'bullet' | 'ordered'): HTMLElement;
|
6
6
|
static getTag(val: 'bullet' | 'ordered'): string;
|
7
|
-
checkMerge():
|
7
|
+
checkMerge(): any;
|
8
8
|
}
|
9
|
+
export {};
|
9
10
|
//# sourceMappingURL=ListContainer.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ListContainer.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/QuillEditor/Attributors/ListContainer.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ListContainer.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/QuillEditor/Attributors/ListContainer.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa,EAA6C,GAAG,CAAA;AACnE,qBAAa,eAAgB,SAAQ,aAAa;IAChD,MAAM,CAAC,OAAO,WAAe;IAC7B,MAAM,CAAC,UAAU,SAAO;IAExB,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS;IAIzC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,QAAQ,GAAG,SAAS;IAQvC,UAAU;CAMX"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import ListItem from 'quill/formats/list';
|
2
1
|
import { MyListContainer } from './ListContainer';
|
2
|
+
declare const ListItem: any;
|
3
3
|
declare class MyListItem extends ListItem {
|
4
4
|
static requiredContainer: typeof MyListContainer;
|
5
5
|
static register(): void;
|
6
6
|
optimize(context: any): void;
|
7
7
|
format(name: any, value: any): void;
|
8
8
|
}
|
9
|
-
export default
|
9
|
+
export { MyListItem as default };
|
10
10
|
//# sourceMappingURL=ListItem.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/QuillEditor/Attributors/ListItem.ts"],"names":[],"mappings":"AACA,OAAO,
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/packages/core/QuillEditor/Attributors/ListItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,QAAA,MAAM,QAAQ,EAAmC,GAAG,CAAA;AACpD,cAAM,UAAW,SAAQ,QAAQ;IAC/B,MAAM,CAAC,iBAAiB,yBAAkB;IAE1C,MAAM,CAAC,QAAQ;IAIf,QAAQ,CAAC,OAAO,EAAE,GAAG;IAcrB,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG;CAU7B;AAED,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import Quill from 'quill';
|
2
|
-
import ListItem from 'quill/formats/list';
|
3
2
|
import { MyListContainer } from './ListContainer';
|
3
|
+
const ListItem = Quill.import('formats/list');
|
4
4
|
class MyListItem extends ListItem {
|
5
5
|
static requiredContainer = MyListContainer;
|
6
6
|
static register() {
|
@@ -21,4 +21,4 @@ class MyListItem extends ListItem {
|
|
21
21
|
super.format(name, value);
|
22
22
|
}
|
23
23
|
}
|
24
|
-
export default
|
24
|
+
export { MyListItem as default };
|
@@ -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;AAqC3C,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;AAqC3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoK3C,CAAA;AAED,eAAe,WAAW,CAAA"}
|