@kerebron/editor-browserless 0.4.31 → 0.5.1

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/README.md CHANGED
@@ -26,9 +26,17 @@ number of output npm modules.
26
26
 
27
27
  **Work in progress**
28
28
 
29
-
30
29
  ## Build
31
30
 
31
+ ###
32
+
33
+ Update git submodules
34
+
35
+ ```sh
36
+ git submodule init
37
+ git submodule update
38
+ ```
39
+
32
40
  ### Build static examples and `.wasm` files
33
41
 
34
42
  ```sh
@@ -72,12 +80,12 @@ docker run -it -p 8000:8000 -v $PWD:/usr/src/app editor-test
72
80
 
73
81
  Install deno
74
82
 
75
- ```
83
+ ```sh
76
84
  npm install -g deno
77
85
  ```
78
86
 
79
87
  Install rust
80
88
 
81
- ```
89
+ ```sh
82
90
  curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
83
91
  ```
@@ -1,8 +1,7 @@
1
- import { AnyExtensionOrReq, Extension } from '@kerebron/editor';
1
+ import { EditorKit } from '@kerebron/editor';
2
2
  import './window.js';
3
- export declare class BrowserLessEditorKit extends Extension {
3
+ export declare class BrowserLessEditorKit implements EditorKit {
4
4
  name: string;
5
- requires: AnyExtensionOrReq[];
6
- constructor();
5
+ getExtensions(): any[];
7
6
  }
8
7
  //# sourceMappingURL=BrowserLessEditorKit.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"BrowserLessEditorKit.d.ts","sourceRoot":"","sources":["../src/BrowserLessEditorKit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAM7C,OAAO,aAAa,CAAC;AAErB,qBAAa,oBAAqB,YAAW,SAAS;IACpD,IAAI,SAA4B;IAEhC,aAAa;CAQd"}
@@ -1,15 +1,12 @@
1
- import { Extension } from '@kerebron/editor';
2
1
  import { ExtensionBasicEditor } from '@kerebron/extension-basic-editor/ExtensionBasicEditor';
3
2
  import { ExtensionMarkdown } from '@kerebron/extension-markdown';
4
3
  import { ExtensionTables } from '@kerebron/extension-tables';
5
4
  import { ExtensionOdt } from '@kerebron/extension-odt';
6
5
  import './window.js';
7
- export class BrowserLessEditorKit extends Extension {
6
+ export class BrowserLessEditorKit {
8
7
  name = 'browserless-editor-kit';
9
- requires;
10
- constructor() {
11
- super();
12
- this.requires = [
8
+ getExtensions() {
9
+ return [
13
10
  new ExtensionBasicEditor(),
14
11
  new ExtensionMarkdown(),
15
12
  new ExtensionOdt(),
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserLessEditorKit.js","sourceRoot":"","sources":["../src/BrowserLessEditorKit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,aAAa,CAAC;AAErB,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACxC,IAAI,GAAG,wBAAwB,CAAC;IACzC,QAAQ,CAAsB;IAE9B;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG;YACd,IAAI,oBAAoB,EAAE;YAC1B,IAAI,iBAAiB,EAAE;YACvB,IAAI,YAAY,EAAE;YAClB,IAAI,eAAe,EAAE;SACtB,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"BrowserLessEditorKit.js","sourceRoot":"","sources":["../src/BrowserLessEditorKit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,aAAa,CAAC;AAErB,MAAM,OAAO,oBAAoB;IAC/B,IAAI,GAAG,wBAAwB,CAAC;IAEhC,aAAa;QACX,OAAO;YACL,IAAI,oBAAoB,EAAE;YAC1B,IAAI,iBAAiB,EAAE;YACvB,IAAI,YAAY,EAAE;YAClB,IAAI,eAAe,EAAE;SACtB,CAAC;IACJ,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kerebron/editor-browserless",
3
- "version": "0.4.31",
3
+ "version": "0.5.1",
4
4
  "license": "MIT",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -20,11 +20,11 @@
20
20
  "src"
21
21
  ],
22
22
  "dependencies": {
23
- "@kerebron/editor": "0.4.31",
24
- "@kerebron/extension-basic-editor": "0.4.31",
25
- "@kerebron/extension-markdown": "0.4.31",
26
- "@kerebron/extension-odt": "0.4.31",
27
- "@kerebron/extension-tables": "0.4.31",
23
+ "@kerebron/editor": "0.5.1",
24
+ "@kerebron/extension-basic-editor": "0.5.1",
25
+ "@kerebron/extension-markdown": "0.5.1",
26
+ "@kerebron/extension-odt": "0.5.1",
27
+ "@kerebron/extension-tables": "0.5.1",
28
28
  "linkedom": "0.18.12",
29
29
  "xmldom": "0.6.0"
30
30
  },
@@ -1,4 +1,4 @@
1
- import { AnyExtensionOrReq, Extension } from '@kerebron/editor';
1
+ import { EditorKit } from '@kerebron/editor';
2
2
  import { ExtensionBasicEditor } from '@kerebron/extension-basic-editor/ExtensionBasicEditor';
3
3
  import { ExtensionMarkdown } from '@kerebron/extension-markdown';
4
4
  import { ExtensionTables } from '@kerebron/extension-tables';
@@ -6,13 +6,11 @@ import { ExtensionOdt } from '@kerebron/extension-odt';
6
6
 
7
7
  import './window.js';
8
8
 
9
- export class BrowserLessEditorKit extends Extension {
10
- override name = 'browserless-editor-kit';
11
- requires: AnyExtensionOrReq[];
9
+ export class BrowserLessEditorKit implements EditorKit {
10
+ name = 'browserless-editor-kit';
12
11
 
13
- constructor() {
14
- super();
15
- this.requires = [
12
+ getExtensions() {
13
+ return [
16
14
  new ExtensionBasicEditor(),
17
15
  new ExtensionMarkdown(),
18
16
  new ExtensionOdt(),