@bbl-digital/snorre 4.1.2 → 4.1.4

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
@@ -35592,6 +35592,12 @@ to {top: 100vh;}
35592
35592
  }, (range, context) => {
35593
35593
  return handleBackspaceWithIndentetList(range, context, quillInstance);
35594
35594
  });
35595
+ quillInstance.keyboard.addBinding({
35596
+ key: 'Escape'
35597
+ }, () => {
35598
+ // Remove focus from editor
35599
+ quillInstance.blur();
35600
+ });
35595
35601
  // Move the last binding in the list, to the top. Ensure that the custom binding is called first.
35596
35602
  quillInstance.keyboard.bindings['Backspace'].unshift(quillInstance.keyboard.bindings['Backspace'].pop());
35597
35603
  if (initialValue !== undefined) {
@@ -35599,8 +35605,6 @@ to {top: 100vh;}
35599
35605
  const delta = quillInstance.clipboard.convert({
35600
35606
  html: initialValue
35601
35607
  });
35602
- delta.ops.forEach(op => {});
35603
- console.log(delta);
35604
35608
  quillInstance.setContents(delta);
35605
35609
  }
35606
35610
  }
@@ -189,6 +189,12 @@ const QuillEditor = ({
189
189
  }, (range, context) => {
190
190
  return handleBackspaceWithIndentetList(range, context, quillInstance);
191
191
  });
192
+ quillInstance.keyboard.addBinding({
193
+ key: 'Escape'
194
+ }, () => {
195
+ // Remove focus from editor
196
+ quillInstance.blur();
197
+ });
192
198
  // Move the last binding in the list, to the top. Ensure that the custom binding is called first.
193
199
  quillInstance.keyboard.bindings['Backspace'].unshift(quillInstance.keyboard.bindings['Backspace'].pop());
194
200
  if (initialValue !== undefined) {
@@ -196,8 +202,6 @@ const QuillEditor = ({
196
202
  const delta = quillInstance.clipboard.convert({
197
203
  html: initialValue
198
204
  });
199
- delta.ops.forEach(op => {});
200
- console.log(delta);
201
205
  quillInstance.setContents(delta);
202
206
  }
203
207
  }
@@ -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;AA+D3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsQ3C,CAAA;AAED,eAAe,WAAW,CAAA"}
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;AA+D3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwQ3C,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -189,6 +189,12 @@ const QuillEditor = ({
189
189
  }, (range, context) => {
190
190
  return handleBackspaceWithIndentetList(range, context, quillInstance);
191
191
  });
192
+ quillInstance.keyboard.addBinding({
193
+ key: 'Escape'
194
+ }, () => {
195
+ // Remove focus from editor
196
+ quillInstance.blur();
197
+ });
192
198
  // Move the last binding in the list, to the top. Ensure that the custom binding is called first.
193
199
  quillInstance.keyboard.bindings['Backspace'].unshift(quillInstance.keyboard.bindings['Backspace'].pop());
194
200
  if (initialValue !== undefined) {
@@ -196,8 +202,6 @@ const QuillEditor = ({
196
202
  const delta = quillInstance.clipboard.convert({
197
203
  html: initialValue
198
204
  });
199
- delta.ops.forEach(op => {});
200
- console.log(delta);
201
205
  quillInstance.setContents(delta);
202
206
  }
203
207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbl-digital/snorre",
3
- "version": "4.1.2",
3
+ "version": "4.1.4",
4
4
  "description": "Design library for BBL Digital",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",