@team-monolith/cds 0.29.22 → 0.29.24

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.
@@ -22,10 +22,6 @@ export declare class Raw extends EditorJSRaw {
22
22
  icon: string;
23
23
  title: string;
24
24
  };
25
- static get sanitize(): {
26
- html: boolean;
27
- code: boolean;
28
- };
29
25
  onPaste(event: any): void;
30
26
  static get pasteConfig(): {
31
27
  tags: string[];
@@ -92,16 +92,11 @@ export class Raw extends EditorJSRaw {
92
92
  title: "Code",
93
93
  };
94
94
  }
95
- static get sanitize() {
96
- return {
97
- html: true,
98
- code: false,
99
- };
100
- }
101
95
  onPaste(event) {
96
+ var _a;
102
97
  const content = event.detail.data;
103
98
  if (this.textarea) {
104
- this.textarea.textContent = content.textContent;
99
+ this.textarea.textContent = (_a = content.textContent) !== null && _a !== void 0 ? _a : "";
105
100
  }
106
101
  }
107
102
  static get pasteConfig() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "0.29.22",
3
+ "version": "0.29.24",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,