@bbl-digital/snorre 4.1.22 → 4.1.23
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 +7 -1
- package/esm/core/QuillEditor/QuillEditor.stories.js +1 -1
- package/esm/core/QuillEditor/index.js +7 -1
- package/infrastructure/azure-pipelines.yml +1 -1
- package/lib/core/QuillEditor/QuillEditor.stories.js +1 -1
- package/lib/core/QuillEditor/index.d.ts.map +1 -1
- package/lib/core/QuillEditor/index.js +7 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -35588,7 +35588,13 @@ to {top: 100vh;}
|
|
|
35588
35588
|
const delta = quillRef.current.clipboard.convert({
|
|
35589
35589
|
html: defaultValueRef.current
|
|
35590
35590
|
});
|
|
35591
|
-
|
|
35591
|
+
const formattedDelta = delta.ops.map(op => {
|
|
35592
|
+
if (op.attributes && op.attributes.indent) {
|
|
35593
|
+
op.attributes.indent = parseInt(op.attributes.indent, 10);
|
|
35594
|
+
}
|
|
35595
|
+
return op;
|
|
35596
|
+
});
|
|
35597
|
+
quillRef.current.setContents(formattedDelta);
|
|
35592
35598
|
}
|
|
35593
35599
|
quillRef.current.on(Quill__default["default"].events.TEXT_CHANGE, (...args) => handleChange(...args, quillRef.current));
|
|
35594
35600
|
if (onFocus || onBlur) {
|
|
@@ -12,7 +12,7 @@ export const Default = {
|
|
|
12
12
|
onFocus: () => console.log('focus'),
|
|
13
13
|
maxHeight: "500px",
|
|
14
14
|
width: "500px",
|
|
15
|
-
initialValue: `<p>
|
|
15
|
+
initialValue: `<p><strong>test</strong></p><ol><li data-list="ordered"><span class="ql-ui" contenteditable="false"></span>test</li><li data-list="ordered" style="margin-left: 3em;"><span class="ql-ui" contenteditable="false"></span>test</li></ol><p><br></p><ul><li data-list="bullet"><span class="ql-ui" contenteditable="false"></span>test</li><li data-list="bullet" style="margin-left: 4em;"><span class="ql-ui" contenteditable="false"></span>test</li></ul>`,
|
|
16
16
|
pasteAsText: true
|
|
17
17
|
});
|
|
18
18
|
},
|
|
@@ -184,7 +184,13 @@ const QuillEditor = ({
|
|
|
184
184
|
const delta = quillRef.current.clipboard.convert({
|
|
185
185
|
html: defaultValueRef.current
|
|
186
186
|
});
|
|
187
|
-
|
|
187
|
+
const formattedDelta = delta.ops.map(op => {
|
|
188
|
+
if (op.attributes && op.attributes.indent) {
|
|
189
|
+
op.attributes.indent = parseInt(op.attributes.indent, 10);
|
|
190
|
+
}
|
|
191
|
+
return op;
|
|
192
|
+
});
|
|
193
|
+
quillRef.current.setContents(formattedDelta);
|
|
188
194
|
}
|
|
189
195
|
quillRef.current.on(Quill.events.TEXT_CHANGE, (...args) => handleChange(...args, quillRef.current));
|
|
190
196
|
if (onFocus || onBlur) {
|
|
@@ -12,7 +12,7 @@ export const Default = {
|
|
|
12
12
|
onFocus: () => console.log('focus'),
|
|
13
13
|
maxHeight: "500px",
|
|
14
14
|
width: "500px",
|
|
15
|
-
initialValue: `<p>
|
|
15
|
+
initialValue: `<p><strong>test</strong></p><ol><li data-list="ordered"><span class="ql-ui" contenteditable="false"></span>test</li><li data-list="ordered" style="margin-left: 3em;"><span class="ql-ui" contenteditable="false"></span>test</li></ol><p><br></p><ul><li data-list="bullet"><span class="ql-ui" contenteditable="false"></span>test</li><li data-list="bullet" style="margin-left: 4em;"><span class="ql-ui" contenteditable="false"></span>test</li></ul>`,
|
|
16
16
|
pasteAsText: true
|
|
17
17
|
});
|
|
18
18
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/index.tsx"],"names":[],"mappings":"AASA,OAAO,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AA+D3C,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":"AASA,OAAO,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AA+D3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0P3C,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -184,7 +184,13 @@ const QuillEditor = ({
|
|
|
184
184
|
const delta = quillRef.current.clipboard.convert({
|
|
185
185
|
html: defaultValueRef.current
|
|
186
186
|
});
|
|
187
|
-
|
|
187
|
+
const formattedDelta = delta.ops.map(op => {
|
|
188
|
+
if (op.attributes && op.attributes.indent) {
|
|
189
|
+
op.attributes.indent = parseInt(op.attributes.indent, 10);
|
|
190
|
+
}
|
|
191
|
+
return op;
|
|
192
|
+
});
|
|
193
|
+
quillRef.current.setContents(formattedDelta);
|
|
188
194
|
}
|
|
189
195
|
quillRef.current.on(Quill.events.TEXT_CHANGE, (...args) => handleChange(...args, quillRef.current));
|
|
190
196
|
if (onFocus || onBlur) {
|