@kerebron/editor 0.0.1 → 0.0.2

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.
@@ -1,5 +1,5 @@
1
1
  import { EditorView } from 'prosemirror-view';
2
- import { Fragment, type Schema } from 'prosemirror-model';
2
+ import { Fragment, Node as ProseMirrorNode, type Schema } from 'prosemirror-model';
3
3
  import type { EditorOptions, JSONContent } from './types.js';
4
4
  import { EditorState } from 'prosemirror-state';
5
5
  import { ChainedCommands } from './commands/CommandManager.js';
@@ -11,7 +11,7 @@ export declare class CoreEditor extends EventTarget {
11
11
  view: EditorView;
12
12
  constructor(options?: Partial<EditorOptions>);
13
13
  private createExtensionManager;
14
- get schema(): Schema;
14
+ get schema(): Schema<any, any>;
15
15
  get state(): EditorState;
16
16
  chain(): ChainedCommands;
17
17
  can(): ChainedCommands;
@@ -24,6 +24,6 @@ export declare class CoreEditor extends EventTarget {
24
24
  */
25
25
  getHTML(): string;
26
26
  setDocument(content?: any, mediaType?: string): void;
27
- getDocument(mediaType?: string): any;
27
+ getDocument(mediaType?: string): void | ProseMirrorNode;
28
28
  }
29
29
  //# sourceMappingURL=CoreEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CoreEditor.d.ts","sourceRoot":"","sources":["../src/CoreEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAEL,QAAQ,EAGR,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,EAAW,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,WAAW,EAAe,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAkB,MAAM,8BAA8B,CAAC;AAE/E,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,GACb,MAAM,CAWR;AAeD,qBAAa,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C3C,OAAO,CAAC,cAAc,CAAiB;IAChC,IAAI,EAAG,UAAU,CAAC;gBAEb,OAAO,GAAE,OAAO,CAAC,aAAa,CAAM;IA0BhD,OAAO,CAAC,sBAAsB;IAI9B,IAAW,MAAM,qBAEhB;IAED,IAAW,KAAK,IAAI,WAAW,CAE9B;IAEM,KAAK,IAAI,eAAe;IAIxB,GAAG,IAAI,eAAe;IAI7B,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,YAAY;IAYb,OAAO,IAAI,WAAW;IAI7B;;OAEG;IACI,OAAO,IAAI,MAAM;IAIjB,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,MAAM;IA0C7C,WAAW,CAAC,SAAS,CAAC,EAAE,MAAM;CAUtC"}
@@ -919,7 +919,7 @@ const macBaseKeymap = {
919
919
  };
920
920
  for (let key in pcBaseKeymap)
921
921
  macBaseKeymap[key] = pcBaseKeymap[key];
922
- const mac = (/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform));
922
+ const mac = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
923
923
  /// Depending on the detected platform, this will hold
924
924
  /// [`pcBasekeymap`](#commands.pcBaseKeymap) or
925
925
  /// [`macBaseKeymap`](#commands.macBaseKeymap).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kerebron/editor",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "license": "MIT",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -17,6 +17,13 @@
17
17
  "import": "./esm/utilities/mod.js"
18
18
  }
19
19
  },
20
+ "dependencies": {
21
+ "prosemirror-keymap": "1.2.2",
22
+ "prosemirror-model": "1.24.1",
23
+ "prosemirror-state": "1.4.3",
24
+ "prosemirror-transform": "1.10.3",
25
+ "prosemirror-view": "1.33.6"
26
+ },
20
27
  "devDependencies": {
21
28
  "@types/node": "^20.9.0"
22
29
  },