@bbl-digital/snorre 4.1.27 → 4.1.29

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,19 @@
1
- export const editorContentCss = `
2
- body { font-family:'Source Sans Pro',sans-serif; font-size:16px; } p {margin: 0;} h1,h2,h3,h4,h5,h6 {margin-top: 0;margin-bottom: 0;}
3
- `;
4
- export const editorBlockFormats = 'Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;';
5
- export const plugins = 'autolink lists link image code print preview media paste';
6
- export const richToolbar = 'formatselect | ' + ' | bold italic underline' + ' | bullist numlist indent outdent' + ' | alignleft aligncenter alignright alignjustify' + ' | link unlink';
7
- export const basicToolbar = 'bold italic underline | bullist numlist indent outdent';
1
+ // export const editorContentCss = `
2
+ // body { font-family:'Source Sans Pro',sans-serif; font-size:16px; } p {margin: 0;} h1,h2,h3,h4,h5,h6 {margin-top: 0;margin-bottom: 0;}
3
+ // `
4
+
5
+ // export const editorBlockFormats =
6
+ // 'Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;'
7
+
8
+ // export const plugins =
9
+ // 'autolink lists link image code print preview media paste'
10
+
11
+ // export const richToolbar =
12
+ // 'formatselect | ' +
13
+ // ' | bold italic underline' +
14
+ // ' | bullist numlist indent outdent' +
15
+ // ' | alignleft aligncenter alignright alignjustify' +
16
+ // ' | link unlink'
17
+
18
+ // export const basicToolbar =
19
+ // 'bold italic underline | bullist numlist indent outdent'
@@ -1,44 +1 @@
1
- /** @jsxImportSource @emotion/react */
2
- import { FC } from 'react';
3
- interface IProps {
4
- /** Input text */
5
- initialValue?: string;
6
- /** Input text that overrides the initialValue or already existing text value, if null is sent in we reset the field */
7
- overrideValue?: string;
8
- /** Editor type, defaults to basic */
9
- type?: 'basic' | 'rich' | 'custom';
10
- /** Adds a custom toolbar if type is set to custom */
11
- customToolbar?: string;
12
- /** Height of textarea */
13
- label?: string;
14
- /** Deafult height of texteditor */
15
- height?: number;
16
- /** Max resize height of texteditor */
17
- maxHeight?: number;
18
- /** Max resize width of texteditor */
19
- maxWidth?: number;
20
- /** Error message */
21
- invalidMessage?: string;
22
- /** Allow image in editor */
23
- allowImages?: boolean;
24
- /** Strip all pasted styles */
25
- pasteAsText?: boolean;
26
- /** Set resize, defaults to true (vertical) */
27
- resize?: boolean | 'both';
28
- /** Invalid html elements, must be comma separated, defaults to "button" */
29
- invalidElements?: string;
30
- /** Valid html elements, must be comma separated */
31
- validElements?: string;
32
- /** Disable editor */
33
- disabled?: boolean;
34
- /** Cb on blur */
35
- onBlur?: (value: string) => void;
36
- /** Cb on change */
37
- onChange: (value: string, plainTextLength: number) => void;
38
- }
39
- /**
40
- * @deprecated Use QuillEditor instead
41
- */
42
- declare const Editor: FC<IProps>;
43
- export default Editor;
44
1
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,EAAE,EAAE,EAAY,MAAM,OAAO,CAAA;AAiBpC,UAAU,MAAM;IACd,iBAAiB;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,wHAAwH;IACxH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;IAClC,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oBAAoB;IACpB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,2EAA2E;IAC3E,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,mDAAmD;IACnD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iBAAiB;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,mBAAmB;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3D;AAGD;;GAEG;AACH,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,MAAM,CA+GtB,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/index.tsx"],"names":[],"mappings":""}
@@ -1,113 +1,173 @@
1
- /** @jsxImportSource @emotion/react */
2
- import { useState } from 'react';
3
- import { Editor as TinyEditor } from '@tinymce/tinymce-react';
4
- import { ErrorWrapper, Label, styles } from './styles';
5
- import { basicToolbar, editorBlockFormats, editorContentCss, plugins, richToolbar } from './config';
6
- import Skeleton from '../Skeleton';
7
- import Text from '../Text';
8
- import IconErrorOutline from '../../icons/General/IconErrorOutline';
9
- import { useTheme } from '@emotion/react';
10
- import { useIsMobile } from '../../hooks/useIsMobile';
11
- import { useEffect } from 'react';
12
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
13
- const TINYMCE_API_KEY = '1n4id0n4p67gr15sq9hvnk965wgh5ku8xjgqt30e2hnpccp3';
14
- /**
15
- * @deprecated Use QuillEditor instead
16
- */
17
- const Editor = ({
18
- initialValue,
19
- overrideValue,
20
- type = 'basic',
21
- label,
22
- height = 500,
23
- maxHeight,
24
- maxWidth,
25
- customToolbar,
26
- invalidMessage,
27
- allowImages,
28
- pasteAsText,
29
- resize = true,
30
- validElements,
31
- invalidElements = 'button',
32
- disabled,
33
- onChange,
34
- onBlur
35
- }) => {
36
- const [loaded, setLoaded] = useState(false);
37
- const [value, setValue] = useState(initialValue || '');
38
- const {
39
- alert
40
- } = useTheme();
41
- const isMobile = useIsMobile();
42
- const handleChange = (html, editor) => {
43
- setValue(html);
44
- onChange(html, editor.getContent({
45
- format: 'text'
46
- }).length);
47
- };
48
- const handleBlur = () => onBlur?.(value);
49
- const toolbar = type === 'basic' ? basicToolbar : type === 'rich' ? richToolbar : customToolbar;
50
- useEffect(() => {
51
- if (overrideValue === undefined) return;
52
- setValue(() => overrideValue);
53
- // eslint-disable-next-line react-hooks/exhaustive-deps
54
- }, [overrideValue]);
55
- return _jsxs("div", {
56
- css: theme => [styles.default(theme), !loaded && styles.hideEditor],
57
- children: [label && _jsx(Label, {
58
- children: label
59
- }), _jsx("div", {
60
- className: "editor-wrapper",
61
- children: _jsx(TinyEditor, {
62
- onBlur: handleBlur,
63
- onInit: _e => setLoaded(true),
64
- apiKey: TINYMCE_API_KEY,
65
- value: value,
66
- onEditorChange: handleChange,
67
- disabled: disabled,
68
- init: {
69
- browser_spellcheck: true,
70
- height,
71
- min_height: 100,
72
- max_height: maxHeight,
73
- min_width: 100,
74
- max_width: maxWidth,
75
- toolbar_mode: 'wrap',
76
- menubar: false,
77
- branding: false,
78
- elementpath: false,
79
- resize: resize,
80
- statusbar: !isMobile,
81
- plugins,
82
- toolbar,
83
- content_style: editorContentCss,
84
- language: 'nb_NO',
85
- block_formats: editorBlockFormats,
86
- paste_data_images: allowImages,
87
- paste_as_text: pasteAsText !== undefined ? pasteAsText : type === 'basic',
88
- contextmenu: false,
89
- invalid_elements: !allowImages ? 'img,' + invalidElements : invalidElements,
90
- valid_elements: validElements,
91
- default_link_target: '_blank',
92
- link_assume_external_targets: 'https',
93
- link_title: false,
94
- target_list: false
95
- }
96
- })
97
- }), !loaded && _jsx(Skeleton, {
98
- height: `${height}px`,
99
- width: "100%",
100
- borderRadius: "3px",
101
- rectangle: true
102
- }), invalidMessage && _jsx(ErrorWrapper, {
103
- children: invalidMessage && _jsxs(Text, {
104
- color: alert,
105
- children: [_jsx(IconErrorOutline, {
106
- size: "16px",
107
- color: alert
108
- }), " ", invalidMessage]
109
- })
110
- })]
111
- });
112
- };
113
- export default Editor;
1
+ // /** @jsxImportSource @emotion/react */
2
+ // import { FC, useState } from 'react'
3
+ // import { Editor as TinyEditor } from '@tinymce/tinymce-react'
4
+ // import { ErrorWrapper, Label, styles } from './styles'
5
+ // import {
6
+ // basicToolbar,
7
+ // editorBlockFormats,
8
+ // editorContentCss,
9
+ // plugins,
10
+ // richToolbar,
11
+ // } from './config'
12
+ // import Skeleton from '../Skeleton'
13
+ // import Text from '../Text'
14
+ // import IconErrorOutline from '../../icons/General/IconErrorOutline'
15
+ // import { useTheme } from '@emotion/react'
16
+ // import { useIsMobile } from '../../hooks/useIsMobile'
17
+ // import { useEffect } from 'react'
18
+
19
+ // interface IProps {
20
+ // /** Input text */
21
+ // initialValue?: string
22
+ // /** Input text that overrides the initialValue or already existing text value, if null is sent in we reset the field */
23
+ // overrideValue?: string
24
+ // /** Editor type, defaults to basic */
25
+ // type?: 'basic' | 'rich' | 'custom'
26
+ // /** Adds a custom toolbar if type is set to custom */
27
+ // customToolbar?: string
28
+ // /** Height of textarea */
29
+ // label?: string
30
+ // /** Deafult height of texteditor */
31
+ // height?: number
32
+ // /** Max resize height of texteditor */
33
+ // maxHeight?: number
34
+ // /** Max resize width of texteditor */
35
+ // maxWidth?: number
36
+ // /** Error message */
37
+ // invalidMessage?: string
38
+ // /** Allow image in editor */
39
+ // allowImages?: boolean
40
+ // /** Strip all pasted styles */
41
+ // pasteAsText?: boolean
42
+ // /** Set resize, defaults to true (vertical) */
43
+ // resize?: boolean | 'both'
44
+ // /** Invalid html elements, must be comma separated, defaults to "button" */
45
+ // invalidElements?: string
46
+ // /** Valid html elements, must be comma separated */
47
+ // validElements?: string
48
+ // /** Disable editor */
49
+ // disabled?: boolean
50
+ // /** Cb on blur */
51
+ // onBlur?: (value: string) => void
52
+ // /** Cb on change */
53
+ // onChange: (value: string, plainTextLength: number) => void
54
+ // }
55
+
56
+ // const TINYMCE_API_KEY = '1n4id0n4p67gr15sq9hvnk965wgh5ku8xjgqt30e2hnpccp3'
57
+ // /**
58
+ // * @deprecated Use QuillEditor instead
59
+ // */
60
+ // const Editor: FC<IProps> = ({
61
+ // initialValue,
62
+ // overrideValue,
63
+ // type = 'basic',
64
+ // label,
65
+ // height = 500,
66
+ // maxHeight,
67
+ // maxWidth,
68
+ // customToolbar,
69
+ // invalidMessage,
70
+ // allowImages,
71
+ // pasteAsText,
72
+ // resize = true,
73
+ // validElements,
74
+ // invalidElements = 'button',
75
+ // disabled,
76
+ // onChange,
77
+ // onBlur,
78
+ // }) => {
79
+ // const [loaded, setLoaded] = useState(false)
80
+ // const [value, setValue] = useState(initialValue || '')
81
+ // const { alert } = useTheme()
82
+ // const isMobile = useIsMobile()
83
+
84
+ // const handleChange = (html: string, editor: any) => {
85
+ // setValue(html)
86
+ // onChange(html, editor.getContent({ format: 'text' }).length)
87
+ // }
88
+
89
+ // const handleBlur = () => onBlur?.(value)
90
+
91
+ // const toolbar =
92
+ // type === 'basic'
93
+ // ? basicToolbar
94
+ // : type === 'rich'
95
+ // ? richToolbar
96
+ // : customToolbar
97
+
98
+ // useEffect(() => {
99
+ // if (overrideValue === undefined) return
100
+
101
+ // setValue(() => overrideValue)
102
+ // // eslint-disable-next-line react-hooks/exhaustive-deps
103
+ // }, [overrideValue])
104
+
105
+ // return (
106
+ // <div css={(theme) => [styles.default(theme), !loaded && styles.hideEditor]}>
107
+ // {label && <Label>{label}</Label>}
108
+
109
+ // <div className="editor-wrapper">
110
+ // <TinyEditor
111
+ // onBlur={handleBlur}
112
+ // onInit={(_e) => setLoaded(true)}
113
+ // apiKey={TINYMCE_API_KEY}
114
+ // value={value}
115
+ // onEditorChange={handleChange}
116
+ // disabled={disabled}
117
+ // init={{
118
+ // browser_spellcheck: true,
119
+ // height,
120
+ // min_height: 100,
121
+ // max_height: maxHeight,
122
+ // min_width: 100,
123
+ // max_width: maxWidth,
124
+ // toolbar_mode: 'wrap',
125
+ // menubar: false,
126
+ // branding: false,
127
+ // elementpath: false,
128
+ // resize: resize,
129
+ // statusbar: !isMobile,
130
+ // plugins,
131
+ // toolbar,
132
+ // content_style: editorContentCss,
133
+ // language: 'nb_NO',
134
+ // block_formats: editorBlockFormats,
135
+ // paste_data_images: allowImages,
136
+ // paste_as_text:
137
+ // pasteAsText !== undefined ? pasteAsText : type === 'basic',
138
+ // contextmenu: false,
139
+ // invalid_elements: !allowImages
140
+ // ? 'img,' + invalidElements
141
+ // : invalidElements,
142
+ // valid_elements: validElements,
143
+ // default_link_target: '_blank',
144
+ // link_assume_external_targets: 'https',
145
+ // link_title: false,
146
+ // target_list: false,
147
+ // }}
148
+ // />
149
+ // </div>
150
+
151
+ // {!loaded && (
152
+ // <Skeleton
153
+ // height={`${height}px`}
154
+ // width="100%"
155
+ // borderRadius="3px"
156
+ // rectangle
157
+ // />
158
+ // )}
159
+
160
+ // {invalidMessage && (
161
+ // <ErrorWrapper>
162
+ // {invalidMessage && (
163
+ // <Text color={alert}>
164
+ // <IconErrorOutline size="16px" color={alert} /> {invalidMessage}
165
+ // </Text>
166
+ // )}
167
+ // </ErrorWrapper>
168
+ // )}
169
+ // </div>
170
+ // )
171
+ // }
172
+
173
+ // export default Editor
@@ -1,14 +1 @@
1
- import { IAppTheme } from '../../app-shell/theme';
2
- export declare const styles: {
3
- default: (theme: IAppTheme) => import("@emotion/react").SerializedStyles;
4
- hideEditor: import("@emotion/react").SerializedStyles;
5
- };
6
- export declare const Label: import("@emotion/styled").StyledComponent<{
7
- theme?: import("@emotion/react").Theme;
8
- as?: React.ElementType;
9
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
10
- export declare const ErrorWrapper: import("@emotion/styled").StyledComponent<{
11
- theme?: import("@emotion/react").Theme;
12
- as?: React.ElementType;
13
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
1
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,eAAO,MAAM,MAAM;qBACA,SAAS;;CAoC3B,CAAA;AAED,eAAO,MAAM,KAAK;;eAlBZ,WAAM;2GAuBX,CAAA;AAED,eAAO,MAAM,YAAY;;eAzBnB,WAAM;yGAkCX,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/styles.ts"],"names":[],"mappings":""}
@@ -1,43 +1,60 @@
1
- import _styled from "@emotion/styled/base";
2
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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)."; }
3
- import { css } from '@emotion/react';
4
- export const styles = {
5
- default: theme => /*#__PURE__*/css("display:flex;flex-direction:column;gap:4px;.tox-tinymce{border:1px solid ", theme.border, ";border-radius:3px;}.tox-toolbar__group{border-color:", theme.border, "!important;}.tox-toolbar__primary{background:none!important;border-bottom:1px solid ", theme.border, ";}.tox-statusbar{border-top:none!important;}.editor-wrapper{display:grid;.tox-toolbar--scrolling,.tox-edit-area{&::-webkit-scrollbar{width:2px;height:2px;}}}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9w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ci0tc2Nyb2xsaW5nLFxuICAgICAgLnRveC1lZGl0LWFyZWEge1xuICAgICAgICAmOjotd2Via2l0LXNjcm9sbGJhciB7XG4gICAgICAgICAgd2lkdGg6IDJweDtcbiAgICAgICAgICBoZWlnaHQ6IDJweDtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgYCxcbiAgaGlkZUVkaXRvcjogY3NzYFxuICAgIC5lZGl0b3Itd3JhcHBlciB7XG4gICAgICBkaXNwbGF5OiBub25lO1xuICAgIH1cbiAgYCxcbn1cblxuZXhwb3J0IGNvbnN0IExhYmVsID0gc3R5bGVkLnNwYW5gXG4gIGxpbmUtaGVpZ2h0OiAyMnB4O1xuICBmb250LXNpemU6IDFlbTtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgbWFyZ2luLWJvdHRvbTogNHB4O1xuYFxuXG5leHBvcnQgY29uc3QgRXJyb3JXcmFwcGVyID0gc3R5bGVkLmRpdmBcbiAgZGlzcGxheTogZ3JpZDtcblxuICAmID4gc3BhbiB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIGdhcDogNnB4O1xuICAgIG1hcmdpbi1sZWZ0OiAycHg7XG4gIH1cbmBcbiJdfQ== */"),
6
- hideEditor: process.env.NODE_ENV === "production" ? {
7
- name: "l41m35",
8
- styles: ".editor-wrapper{display:none;}"
9
- } : {
10
- name: "c0y57c-hideEditor",
11
- styles: ".editor-wrapper{display:none;};label:hideEditor;",
12
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0VkaXRvci9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0NpQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9FZGl0b3Ivc3R5bGVzLnRzIiwic291cmNlc0Nv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AgICAgIH1cbiAgICB9XG4gIGAsXG4gIGhpZGVFZGl0b3I6IGNzc2BcbiAgICAuZWRpdG9yLXdyYXBwZXIge1xuICAgICAgZGlzcGxheTogbm9uZTtcbiAgICB9XG4gIGAsXG59XG5cbmV4cG9ydCBjb25zdCBMYWJlbCA9IHN0eWxlZC5zcGFuYFxuICBsaW5lLWhlaWdodDogMjJweDtcbiAgZm9udC1zaXplOiAxZW07XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIG1hcmdpbi1ib3R0b206IDRweDtcbmBcblxuZXhwb3J0IGNvbnN0IEVycm9yV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIGRpc3BsYXk6IGdyaWQ7XG5cbiAgJiA+IHNwYW4ge1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBnYXA6IDZweDtcbiAgICBtYXJnaW4tbGVmdDogMnB4O1xuICB9XG5gXG4iXX0= */",
13
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
14
- }
15
- };
16
- export const Label = /*#__PURE__*/_styled("span", process.env.NODE_ENV === "production" ? {
17
- target: "e1b0idrw1"
18
- } : {
19
- target: "e1b0idrw1",
20
- label: "Label"
21
- })(process.env.NODE_ENV === "production" ? {
22
- name: "1ge8ozm",
23
- styles: "line-height:22px;font-size:1em;font-weight:600;margin-bottom:4px"
24
- } : {
25
- name: "1ge8ozm",
26
- styles: "line-height:22px;font-size:1em;font-weight:600;margin-bottom:4px",
27
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0VkaXRvci9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMkNnQyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9FZGl0b3Ivc3R5bGVzLnRzIiwic291cmNlc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cbiAgICAgIH1cbiAgICB9XG4gIGAsXG4gIGhpZGVFZGl0b3I6IGNzc2BcbiAgICAuZWRpdG9yLXdyYXBwZXIge1xuICAgICAgZGlzcGxheTogbm9uZTtcbiAgICB9XG4gIGAsXG59XG5cbmV4cG9ydCBjb25zdCBMYWJlbCA9IHN0eWxlZC5zcGFuYFxuICBsaW5lLWhlaWdodDogMjJweDtcbiAgZm9udC1zaXplOiAxZW07XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIG1hcmdpbi1ib3R0b206IDRweDtcbmBcblxuZXhwb3J0IGNvbnN0IEVycm9yV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIGRpc3BsYXk6IGdyaWQ7XG5cbiAgJiA+IHNwYW4ge1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBnYXA6IDZweDtcbiAgICBtYXJnaW4tbGVmdDogMnB4O1xuICB9XG5gXG4iXX0= */",
28
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
29
- });
30
- export const ErrorWrapper = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
31
- target: "e1b0idrw0"
32
- } : {
33
- target: "e1b0idrw0",
34
- label: "ErrorWrapper"
35
- })(process.env.NODE_ENV === "production" ? {
36
- name: "p12i1l",
37
- styles: "display:grid;&>span{display:flex;align-items:center;gap:6px;margin-left:2px;}"
38
- } : {
39
- name: "p12i1l",
40
- styles: "display:grid;&>span{display:flex;align-items:center;gap:6px;margin-left:2px;}",
41
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wYWNrYWdlcy9jb3JlL0VkaXRvci9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0RzQyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvcGFja2FnZXMvY29yZS9FZGl0b3Ivc3R5bG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Hg7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIGAsXG4gIGhpZGVFZGl0b3I6IGNzc2BcbiAgICAuZWRpdG9yLXdyYXBwZXIge1xuICAgICAgZGlzcGxheTogbm9uZTtcbiAgICB9XG4gIGAsXG59XG5cbmV4cG9ydCBjb25zdCBMYWJlbCA9IHN0eWxlZC5zcGFuYFxuICBsaW5lLWhlaWdodDogMjJweDtcbiAgZm9udC1zaXplOiAxZW07XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIG1hcmdpbi1ib3R0b206IDRweDtcbmBcblxuZXhwb3J0IGNvbnN0IEVycm9yV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIGRpc3BsYXk6IGdyaWQ7XG5cbiAgJiA+IHNwYW4ge1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBnYXA6IDZweDtcbiAgICBtYXJnaW4tbGVmdDogMnB4O1xuICB9XG5gXG4iXX0= */",
42
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
43
- });
1
+ // import { css } from '@emotion/react'
2
+ // import styled from '@emotion/styled'
3
+ // import { IAppTheme } from '../../app-shell/theme'
4
+
5
+ // export const styles = {
6
+ // default: (theme: IAppTheme) => css`
7
+ // display: flex;
8
+ // flex-direction: column;
9
+ // gap: 4px;
10
+
11
+ // .tox-tinymce {
12
+ // border: 1px solid ${theme.border};
13
+ // border-radius: 3px;
14
+ // }
15
+ // .tox-toolbar__group {
16
+ // border-color: ${theme.border} !important;
17
+ // }
18
+ // .tox-toolbar__primary {
19
+ // background: none !important;
20
+ // border-bottom: 1px solid ${theme.border};
21
+ // }
22
+ // .tox-statusbar {
23
+ // border-top: none !important;
24
+ // }
25
+ // .editor-wrapper {
26
+ // display: grid;
27
+
28
+ // .tox-toolbar--scrolling,
29
+ // .tox-edit-area {
30
+ // &::-webkit-scrollbar {
31
+ // width: 2px;
32
+ // height: 2px;
33
+ // }
34
+ // }
35
+ // }
36
+ // `,
37
+ // hideEditor: css`
38
+ // .editor-wrapper {
39
+ // display: none;
40
+ // }
41
+ // `,
42
+ // }
43
+
44
+ // export const Label = styled.span`
45
+ // line-height: 22px;
46
+ // font-size: 1em;
47
+ // font-weight: 600;
48
+ // margin-bottom: 4px;
49
+ // `
50
+
51
+ // export const ErrorWrapper = styled.div`
52
+ // display: grid;
53
+
54
+ // & > span {
55
+ // display: flex;
56
+ // align-items: center;
57
+ // gap: 6px;
58
+ // margin-left: 2px;
59
+ // }
60
+ // `
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,eAAO,MAAM,MAAM;qBAER,SAAS,cACJ,MAAM,cACN,MAAM,aACP,MAAM,UACT,MAAM,aACH,MAAM,WACR,MAAM;CA0IlB,CAAA;AAED,eAAO,MAAM,KAAK;;eApID,WAAW;kHAyI3B,CAAA;AAED,eAAO,MAAM,YAAY;;eA3IR,WAAW;yGAqJ3B,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,eAAO,MAAM,MAAM;qBAER,SAAS,cACJ,MAAM,cACN,MAAM,aACP,MAAM,UACT,MAAM,aACH,MAAM,WACR,MAAM;CAmLlB,CAAA;AAED,eAAO,MAAM,KAAK;;eA7KD,WAAW;kHAkL3B,CAAA;AAED,eAAO,MAAM,YAAY;;eApLR,WAAW;yGA8L3B,CAAA"}