@seorii/tiptap 0.0.4 → 0.0.6

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.
@@ -14,7 +14,7 @@ const san = (body, force = false) => (editor || force) ? body : sanitizeHtml(bod
14
14
  'tiptap-file': ['id']
15
15
  },
16
16
  });
17
- export let body = '', editor = false, style = '', ref = null, plugins = [];
17
+ export let body = '', editor = false, style = '', ref = null, options = {};
18
18
  const tiptap = setContext('editor', writable(null));
19
19
  let element, _body = san(body, true), fullscreen = false, html = false, mounted = false;
20
20
  $: ref = $tiptap;
@@ -31,7 +31,7 @@ if (browser)
31
31
  $tiptap = tt(element, _body, {
32
32
  editable: editor,
33
33
  onTransaction: () => $tiptap = $tiptap,
34
- plugins,
34
+ ...options,
35
35
  });
36
36
  $tiptap.on('update', ({ editor: tiptap }) => {
37
37
  let content = tiptap.getHTML(), json = tiptap.getJSON().content;
@@ -6,7 +6,7 @@ declare const __propDef: {
6
6
  editor?: boolean | undefined;
7
7
  style?: string | undefined;
8
8
  ref?: any;
9
- plugins?: any[] | undefined;
9
+ options?: {} | undefined;
10
10
  };
11
11
  events: {
12
12
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seorii/tiptap",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "svelte-kit sync && svelte-package",
@@ -31,6 +31,7 @@
31
31
  },
32
32
  "type": "module",
33
33
  "dependencies": {
34
+ "@seorii/prosemirror-math": "^0.3.0",
34
35
  "@tiptap/core": "^2.0.4",
35
36
  "@tiptap/extension-code-block-lowlight": "^2.0.4",
36
37
  "@tiptap/extension-color": "^2.0.4",
@@ -58,13 +59,14 @@
58
59
  "prosemirror-transform": "^1.7.4",
59
60
  "prosemirror-view": "^1.31.7",
60
61
  "sanitize-html": "^2.11.0",
61
- "tiptap-katex": "^0.0.2"
62
+ "tiptap-katex": "0.0.6"
62
63
  },
63
64
  "exports": {
64
65
  ".": {
65
66
  "require": "./dist/index.js",
66
67
  "import": "./dist/index.js",
67
- "types": "./dist/index.d.ts"
68
+ "types": "./dist/index.d.ts",
69
+ "svelte": "./dist/index.js"
68
70
  }
69
71
  },
70
72
  "license": "MIT",