@seorii/tiptap 0.0.3 → 0.0.4

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/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export default TipTap;
2
- import TipTap from "./tiptap";
2
+ import TipTap from "./tiptap/index.js";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Reexport your entry components here
2
- import TipTap from "./tiptap";
2
+ import TipTap from "./tiptap/index.js";
3
3
 
4
4
  export default TipTap;
@@ -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;
17
+ export let body = '', editor = false, style = '', ref = null, plugins = [];
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,6 +31,7 @@ if (browser)
31
31
  $tiptap = tt(element, _body, {
32
32
  editable: editor,
33
33
  onTransaction: () => $tiptap = $tiptap,
34
+ plugins,
34
35
  });
35
36
  $tiptap.on('update', ({ editor: tiptap }) => {
36
37
  let content = tiptap.getHTML(), json = tiptap.getJSON().content;
@@ -6,6 +6,7 @@ declare const __propDef: {
6
6
  editor?: boolean | undefined;
7
7
  style?: string | undefined;
8
8
  ref?: any;
9
+ plugins?: any[] | undefined;
9
10
  };
10
11
  events: {
11
12
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seorii/tiptap",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "svelte-kit sync && svelte-package",