@kerebron/editor-browserless 0.4.27 → 0.4.28

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.
@@ -0,0 +1,8 @@
1
+ import { AnyExtensionOrReq, Extension } from '@kerebron/editor';
2
+ import './window.js';
3
+ export declare class BrowserLessEditorKit extends Extension {
4
+ name: string;
5
+ requires: AnyExtensionOrReq[];
6
+ constructor();
7
+ }
8
+ //# sourceMappingURL=BrowserLessEditorKit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserLessEditorKit.d.ts","sourceRoot":"","sources":["../src/BrowserLessEditorKit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAMhE,OAAO,aAAa,CAAC;AAErB,qBAAa,oBAAqB,SAAQ,SAAS;IACxC,IAAI,SAA4B;IACzC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;;CAW/B"}
@@ -0,0 +1,19 @@
1
+ import { Extension } from '@kerebron/editor';
2
+ import { ExtensionBasicEditor } from '@kerebron/extension-basic-editor/ExtensionBasicEditor';
3
+ import { ExtensionMarkdown } from '@kerebron/extension-markdown';
4
+ import { ExtensionTables } from '@kerebron/extension-tables';
5
+ import { ExtensionOdt } from '@kerebron/extension-odt';
6
+ import './window.js';
7
+ export class BrowserLessEditorKit extends Extension {
8
+ name = 'browserless-editor-kit';
9
+ requires;
10
+ constructor() {
11
+ super();
12
+ this.requires = [
13
+ new ExtensionBasicEditor(),
14
+ new ExtensionMarkdown(),
15
+ new ExtensionOdt(),
16
+ new ExtensionTables(),
17
+ ];
18
+ }
19
+ }
package/esm/mod.d.ts ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":""}
package/esm/mod.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=window.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../src/window.ts"],"names":[],"mappings":""}
package/esm/window.js ADDED
@@ -0,0 +1,13 @@
1
+ // import { DOMParser } from 'jsr:@b-fuze/deno-dom'; // No xml support (mathML) https://github.com/b-fuze/deno-dom/issues?q=is%3Aissue%20state%3Aopen%20xml
2
+ import { DOMParser } from 'linkedom';
3
+ import { XMLSerializer } from 'xmldom';
4
+ globalThis.DOMParser = DOMParser;
5
+ globalThis.XMLSerializer = XMLSerializer;
6
+ const doc = new DOMParser().parseFromString('<html lang="en"><body></body></html>', 'text/html');
7
+ // const doc = new DOMParser().parseFromString('<html><body></body></html>', "application/xhtml+xml")!;
8
+ doc.implementation = {
9
+ createHTMLDocument() {
10
+ return new DOMParser().parseFromString('<html lang="en"><body></body></html>', 'text/html');
11
+ },
12
+ };
13
+ globalThis.document = doc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kerebron/editor-browserless",
3
- "version": "0.4.27",
3
+ "version": "0.4.28",
4
4
  "license": "MIT",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -15,13 +15,12 @@
15
15
  }
16
16
  },
17
17
  "scripts": {},
18
- "files": [],
19
18
  "dependencies": {
20
- "@kerebron/editor": "0.4.27",
21
- "@kerebron/extension-basic-editor": "0.4.27",
22
- "@kerebron/extension-markdown": "0.4.27",
23
- "@kerebron/extension-odt": "0.4.27",
24
- "@kerebron/extension-tables": "0.4.27",
19
+ "@kerebron/editor": "0.4.28",
20
+ "@kerebron/extension-basic-editor": "0.4.28",
21
+ "@kerebron/extension-markdown": "0.4.28",
22
+ "@kerebron/extension-odt": "0.4.28",
23
+ "@kerebron/extension-tables": "0.4.28",
25
24
  "linkedom": "0.18.12",
26
25
  "xmldom": "0.6.0"
27
26
  },