@clevertask/scribe 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,10 +1,9 @@
1
1
  import "react/jsx-runtime";
2
- import { S } from "../../../../SlashCommandList-DYKFukY8.js";
2
+ import { S as s } from "../../../../SlashCommandList-D_Ndw6pj.js";
3
3
  import "react";
4
- import "../../../../purify.es-Bzg5nW_L.js";
5
- import "../../../../turndown.browser.es-DwgPoVx0.js";
6
- import "../../../../marked.esm-DIt7dqAB.js";
4
+ import "../../../../turndown.browser.es-CeowJDZ0.js";
5
+ import "../../../../browser-D3_ToIiA.js";
7
6
  import "../../../../utils/is-in-viewport.js";
8
7
  export {
9
- S as SlashCommandList
8
+ s as SlashCommandList
10
9
  };
@@ -1,5 +1,5 @@
1
1
  import { R as l, t as c } from "../../../../index-Cu10LNOZ.js";
2
- import { l as a, S as d } from "../../../../SlashCommandList-DYKFukY8.js";
2
+ import { l as a, S as d } from "../../../../SlashCommandList-D_Ndw6pj.js";
3
3
  const m = () => {
4
4
  let n, t = [], r, i = !a.isEmpty(t);
5
5
  return {
@@ -4,27 +4,26 @@ import { initExtensions as S } from "./extension/index.js";
4
4
  import { forwardRef as B, useCallback as M, useImperativeHandle as k, useEffect as i } from "react";
5
5
  import A from "../Menu/BarMenu.js";
6
6
  import { html2md as H } from "../../utils/html-to-markdown.js";
7
- import "../../marked.esm-DIt7dqAB.js";
8
- import "../../purify.es-Bzg5nW_L.js";
9
- function p(t) {
7
+ import "../../browser-D3_ToIiA.js";
8
+ function d(t) {
10
9
  var r, o, e = "";
11
10
  if (typeof t == "string" || typeof t == "number") e += t;
12
11
  else if (typeof t == "object") if (Array.isArray(t)) {
13
12
  var s = t.length;
14
- for (r = 0; r < s; r++) t[r] && (o = p(t[r])) && (e && (e += " "), e += o);
13
+ for (r = 0; r < s; r++) t[r] && (o = d(t[r])) && (e && (e += " "), e += o);
15
14
  } else for (o in t) t[o] && (e && (e += " "), e += o);
16
15
  return e;
17
16
  }
18
17
  function m() {
19
- for (var t, r, o = 0, e = "", s = arguments.length; o < s; o++) (t = arguments[o]) && (r = p(t)) && (e && (e += " "), e += r);
18
+ for (var t, r, o = 0, e = "", s = arguments.length; o < s; o++) (t = arguments[o]) && (r = d(t)) && (e && (e += " "), e += r);
20
19
  return e;
21
20
  }
22
- const R = B((t, r) => {
21
+ const O = B((t, r) => {
23
22
  const {
24
23
  autoFocus: o = !1,
25
24
  content: e,
26
25
  editable: s = !0,
27
- editorProps: d,
26
+ editorProps: p,
28
27
  extensions: C,
29
28
  onContentChange: l,
30
29
  showBarMenu: b = !0,
@@ -48,7 +47,7 @@ const R = B((t, r) => {
48
47
  attributes: {
49
48
  class: "scribe"
50
49
  },
51
- ...d
50
+ ...p
52
51
  }
53
52
  },
54
53
  []
@@ -88,5 +87,5 @@ const R = B((t, r) => {
88
87
  );
89
88
  });
90
89
  export {
91
- R as Scribe
90
+ O as Scribe
92
91
  };
package/dist/main.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './components/Scribe';
2
2
  export * from './utils';
3
+ export type { Content } from '@tiptap/react';