@parallelworks/tandem-web 0.191.0 → 0.192.0
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/_virtual/_virtual_i18n/en/common.js +3 -2
- package/_virtual/_virtual_i18n/es/common.js +3 -2
- package/_virtual/_virtual_i18n/ja/common.js +3 -2
- package/_virtual/_virtual_i18n/ko/common.js +3 -2
- package/_virtual/_virtual_i18n/zh/common.js +3 -2
- package/api/queries.js +13 -5
- package/components/Editor.js +101 -99
- package/components/HoverCards.js +121 -121
- package/components/IssueEvent.js +1 -0
- package/components/StatusRules.js +1 -1
- package/components/docLink.js +18 -0
- package/lib/base.js +10 -1
- package/lib/listSearch.js +13 -10
- package/package.json +2 -1
- package/pages/issues.js +466 -414
- package/pages/triage.js +165 -167
- package/routes/_workspace/docs/_doc2.js +2 -2
- package/routes/_workspace/settings/audit-log3.js +1 -0
- package/routes/_workspace2.js +357 -383
|
@@ -1021,6 +1021,7 @@ var e = {
|
|
|
1021
1021
|
runMoved: "<actor>{name}</actor> moved the run to {state}",
|
|
1022
1022
|
triageAccepted: "<actor>{name}</actor> accepted it from triage",
|
|
1023
1023
|
triageDeclined: "<actor>{name}</actor> declined it in triage",
|
|
1024
|
+
triageUndone: "<actor>{name}</actor> undid the triage decision and put it back in triage",
|
|
1024
1025
|
decisionRequested: "<actor>{name}</actor> asked for a decision",
|
|
1025
1026
|
decisionAnswered: "<actor>{name}</actor> answered a decision",
|
|
1026
1027
|
other: "<actor>{name}</actor> {type}",
|
|
@@ -1874,8 +1875,7 @@ var e = {
|
|
|
1874
1875
|
sharedHint: "Everyone in the workspace sees it.",
|
|
1875
1876
|
personalHint: "Only you see it.",
|
|
1876
1877
|
shareNeedsWrite: "Sharing a view needs member access.",
|
|
1877
|
-
|
|
1878
|
-
onlyYou: "Only you see this view"
|
|
1878
|
+
more: "{count} more"
|
|
1879
1879
|
},
|
|
1880
1880
|
palette: {
|
|
1881
1881
|
label: "Command palette",
|
|
@@ -2310,6 +2310,7 @@ var e = {
|
|
|
2310
2310
|
issueReactionRemoved: "<actor>{name}</actor> removed a {emoji} reaction from <link>{target}</link>",
|
|
2311
2311
|
issueTriageAccepted: "<actor>{name}</actor> accepted <link>{target}</link> from triage",
|
|
2312
2312
|
issueTriageDeclined: "<actor>{name}</actor> declined <link>{target}</link> in triage",
|
|
2313
|
+
issueTriageUndone: "<actor>{name}</actor> undid the triage decision on <link>{target}</link>",
|
|
2313
2314
|
commentCreated: "<actor>{name}</actor> commented on <link>{target}</link>",
|
|
2314
2315
|
commentEdited: "<actor>{name}</actor> edited a comment on <link>{target}</link>",
|
|
2315
2316
|
commentDeleted: "<actor>{name}</actor> deleted a comment on <link>{target}</link>",
|
|
@@ -1021,6 +1021,7 @@ var e = {
|
|
|
1021
1021
|
runMoved: "<actor>{name}</actor> movió la ejecución a {state}",
|
|
1022
1022
|
triageAccepted: "<actor>{name}</actor> la aceptó desde clasificación",
|
|
1023
1023
|
triageDeclined: "<actor>{name}</actor> la rechazó en clasificación",
|
|
1024
|
+
triageUndone: "<actor>{name}</actor> deshizo la decisión de clasificación y la devolvió a clasificación",
|
|
1024
1025
|
decisionRequested: "<actor>{name}</actor> pidió una decisión",
|
|
1025
1026
|
decisionAnswered: "<actor>{name}</actor> respondió una decisión",
|
|
1026
1027
|
other: "<actor>{name}</actor> {type}",
|
|
@@ -1874,8 +1875,7 @@ var e = {
|
|
|
1874
1875
|
sharedHint: "Todos en el espacio de trabajo la ven.",
|
|
1875
1876
|
personalHint: "Solo tú la ves.",
|
|
1876
1877
|
shareNeedsWrite: "Para compartir una vista necesitas acceso de miembro.",
|
|
1877
|
-
|
|
1878
|
-
onlyYou: "Solo tú ves esta vista"
|
|
1878
|
+
more: "{count} más"
|
|
1879
1879
|
},
|
|
1880
1880
|
palette: {
|
|
1881
1881
|
label: "Paleta de comandos",
|
|
@@ -2310,6 +2310,7 @@ var e = {
|
|
|
2310
2310
|
issueReactionRemoved: "<actor>{name}</actor> quitó una reacción {emoji} de <link>{target}</link>",
|
|
2311
2311
|
issueTriageAccepted: "<actor>{name}</actor> aceptó <link>{target}</link> desde clasificación",
|
|
2312
2312
|
issueTriageDeclined: "<actor>{name}</actor> rechazó <link>{target}</link> en clasificación",
|
|
2313
|
+
issueTriageUndone: "<actor>{name}</actor> deshizo la decisión de clasificación de <link>{target}</link>",
|
|
2313
2314
|
commentCreated: "<actor>{name}</actor> comentó en <link>{target}</link>",
|
|
2314
2315
|
commentEdited: "<actor>{name}</actor> editó un comentario en <link>{target}</link>",
|
|
2315
2316
|
commentDeleted: "<actor>{name}</actor> eliminó un comentario en <link>{target}</link>",
|
|
@@ -1021,6 +1021,7 @@ var e = {
|
|
|
1021
1021
|
runMoved: "<actor>{name}</actor> が実行を {state} に移動しました",
|
|
1022
1022
|
triageAccepted: "<actor>{name}</actor> がトリアージから受け入れました",
|
|
1023
1023
|
triageDeclined: "<actor>{name}</actor> がトリアージで却下しました",
|
|
1024
|
+
triageUndone: "<actor>{name}</actor> がトリアージの判断を取り消し、トリアージに戻しました",
|
|
1024
1025
|
decisionRequested: "<actor>{name}</actor> が判断を求めました",
|
|
1025
1026
|
decisionAnswered: "<actor>{name}</actor> が判断に回答しました",
|
|
1026
1027
|
other: "<actor>{name}</actor> {type}",
|
|
@@ -1874,8 +1875,7 @@ var e = {
|
|
|
1874
1875
|
sharedHint: "ワークスペースの全員に表示されます。",
|
|
1875
1876
|
personalHint: "自分だけに表示されます。",
|
|
1876
1877
|
shareNeedsWrite: "ビューを共有するにはメンバー権限が必要です。",
|
|
1877
|
-
|
|
1878
|
-
onlyYou: "このビューは自分だけに表示されます"
|
|
1878
|
+
more: "他 {count} 件"
|
|
1879
1879
|
},
|
|
1880
1880
|
palette: {
|
|
1881
1881
|
label: "コマンドパレット",
|
|
@@ -2310,6 +2310,7 @@ var e = {
|
|
|
2310
2310
|
issueReactionRemoved: "<actor>{name}</actor> が <link>{target}</link> から {emoji} のリアクションを外しました",
|
|
2311
2311
|
issueTriageAccepted: "<actor>{name}</actor> が <link>{target}</link> をトリアージから受け入れました",
|
|
2312
2312
|
issueTriageDeclined: "<actor>{name}</actor> が <link>{target}</link> をトリアージで却下しました",
|
|
2313
|
+
issueTriageUndone: "<actor>{name}</actor> が <link>{target}</link> のトリアージの判断を取り消しました",
|
|
2313
2314
|
commentCreated: "<actor>{name}</actor> が <link>{target}</link> にコメントしました",
|
|
2314
2315
|
commentEdited: "<actor>{name}</actor> が <link>{target}</link> のコメントを編集しました",
|
|
2315
2316
|
commentDeleted: "<actor>{name}</actor> が <link>{target}</link> のコメントを削除しました",
|
|
@@ -1021,6 +1021,7 @@ var e = {
|
|
|
1021
1021
|
runMoved: "<actor>{name}</actor>이(가) 실행을 {state}(으)로 옮김",
|
|
1022
1022
|
triageAccepted: "<actor>{name}</actor>이(가) 분류에서 수락함",
|
|
1023
1023
|
triageDeclined: "<actor>{name}</actor>이(가) 분류에서 거절함",
|
|
1024
|
+
triageUndone: "<actor>{name}</actor>이(가) 분류 결정을 취소하고 분류로 되돌림",
|
|
1024
1025
|
decisionRequested: "<actor>{name}</actor>이(가) 결정을 요청함",
|
|
1025
1026
|
decisionAnswered: "<actor>{name}</actor>이(가) 결정에 답변함",
|
|
1026
1027
|
other: "<actor>{name}</actor> {type}",
|
|
@@ -1874,8 +1875,7 @@ var e = {
|
|
|
1874
1875
|
sharedHint: "워크스페이스의 모든 사람이 볼 수 있습니다.",
|
|
1875
1876
|
personalHint: "나만 볼 수 있습니다.",
|
|
1876
1877
|
shareNeedsWrite: "보기를 공유하려면 멤버 권한이 필요합니다.",
|
|
1877
|
-
|
|
1878
|
-
onlyYou: "나만 볼 수 있는 보기입니다"
|
|
1878
|
+
more: "{count}개 더"
|
|
1879
1879
|
},
|
|
1880
1880
|
palette: {
|
|
1881
1881
|
label: "명령 팔레트",
|
|
@@ -2310,6 +2310,7 @@ var e = {
|
|
|
2310
2310
|
issueReactionRemoved: "<actor>{name}</actor>님이 <link>{target}</link>에서 {emoji} 반응을 취소했습니다",
|
|
2311
2311
|
issueTriageAccepted: "<actor>{name}</actor>님이 분류에서 <link>{target}</link>을(를) 수락했습니다",
|
|
2312
2312
|
issueTriageDeclined: "<actor>{name}</actor>님이 분류에서 <link>{target}</link>을(를) 거절했습니다",
|
|
2313
|
+
issueTriageUndone: "<actor>{name}</actor>이(가) <link>{target}</link>의 분류 결정을 취소함",
|
|
2313
2314
|
commentCreated: "<actor>{name}</actor>님이 <link>{target}</link>에 댓글을 남겼습니다",
|
|
2314
2315
|
commentEdited: "<actor>{name}</actor>님이 <link>{target}</link>의 댓글을 편집했습니다",
|
|
2315
2316
|
commentDeleted: "<actor>{name}</actor>님이 <link>{target}</link>의 댓글을 삭제했습니다",
|
|
@@ -1021,6 +1021,7 @@ var e = {
|
|
|
1021
1021
|
runMoved: "<actor>{name}</actor> 将运行移到了 {state}",
|
|
1022
1022
|
triageAccepted: "<actor>{name}</actor> 在分拣中接受了此议题",
|
|
1023
1023
|
triageDeclined: "<actor>{name}</actor> 在分拣中拒绝了此议题",
|
|
1024
|
+
triageUndone: "<actor>{name}</actor> 撤销了分拣决定,并将其放回分拣",
|
|
1024
1025
|
decisionRequested: "<actor>{name}</actor> 请求做出决策",
|
|
1025
1026
|
decisionAnswered: "<actor>{name}</actor> 回答了一项决策",
|
|
1026
1027
|
other: "<actor>{name}</actor> {type}",
|
|
@@ -1874,8 +1875,7 @@ var e = {
|
|
|
1874
1875
|
sharedHint: "工作区中的所有人都能看到。",
|
|
1875
1876
|
personalHint: "只有您能看到。",
|
|
1876
1877
|
shareNeedsWrite: "共享视图需要成员权限。",
|
|
1877
|
-
|
|
1878
|
-
onlyYou: "只有您能看到此视图"
|
|
1878
|
+
more: "另外 {count} 个"
|
|
1879
1879
|
},
|
|
1880
1880
|
palette: {
|
|
1881
1881
|
label: "命令面板",
|
|
@@ -2310,6 +2310,7 @@ var e = {
|
|
|
2310
2310
|
issueReactionRemoved: "<actor>{name}</actor> 撤回了对 <link>{target}</link> 的 {emoji} 回应",
|
|
2311
2311
|
issueTriageAccepted: "<actor>{name}</actor> 在分拣中接受了 <link>{target}</link>",
|
|
2312
2312
|
issueTriageDeclined: "<actor>{name}</actor> 在分拣中拒绝了 <link>{target}</link>",
|
|
2313
|
+
issueTriageUndone: "<actor>{name}</actor> 撤销了 <link>{target}</link> 的分拣决定",
|
|
2313
2314
|
commentCreated: "<actor>{name}</actor> 评论了 <link>{target}</link>",
|
|
2314
2315
|
commentEdited: "<actor>{name}</actor> 编辑了 <link>{target}</link> 上的一条评论",
|
|
2315
2316
|
commentDeleted: "<actor>{name}</actor> 删除了 <link>{target}</link> 上的一条评论",
|
package/api/queries.js
CHANGED
|
@@ -699,15 +699,23 @@ var a = i({
|
|
|
699
699
|
params: s(e),
|
|
700
700
|
signal: r
|
|
701
701
|
})).favorites
|
|
702
|
-
}), me = (e) => i({
|
|
703
|
-
queryKey: [
|
|
702
|
+
}), me = (e, r) => i({
|
|
703
|
+
queryKey: r ? [
|
|
704
|
+
"workspace",
|
|
705
|
+
e,
|
|
706
|
+
"views",
|
|
707
|
+
r
|
|
708
|
+
] : [
|
|
704
709
|
"workspace",
|
|
705
710
|
e,
|
|
706
711
|
"views"
|
|
707
712
|
],
|
|
708
|
-
queryFn: async ({ signal:
|
|
709
|
-
params:
|
|
710
|
-
|
|
713
|
+
queryFn: async ({ signal: i }) => n(await t.GET("/api/v1/workspaces/{workspace}/views", {
|
|
714
|
+
params: {
|
|
715
|
+
path: { workspace: e },
|
|
716
|
+
query: r ? { team: r } : {}
|
|
717
|
+
},
|
|
718
|
+
signal: i
|
|
711
719
|
})).views
|
|
712
720
|
}), he = (e) => i({
|
|
713
721
|
queryKey: [
|
package/components/Editor.js
CHANGED
|
@@ -4,109 +4,111 @@ import { DateChip as n } from "./DateChip.js";
|
|
|
4
4
|
import { DocButton as r } from "./DocButton.js";
|
|
5
5
|
import { DocLinkPicker as i } from "./DocLinkPicker.js";
|
|
6
6
|
import { DocViewBlock as a } from "./DocViewBlock.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import V from "@tiptap/
|
|
28
|
-
import re from "
|
|
29
|
-
import H from "highlight.js/lib/languages/
|
|
30
|
-
import U from "highlight.js/lib/languages/
|
|
31
|
-
import W from "highlight.js/lib/languages/
|
|
32
|
-
import G from "highlight.js/lib/languages/
|
|
33
|
-
import K from "highlight.js/lib/languages/
|
|
34
|
-
import q from "highlight.js/lib/languages/
|
|
35
|
-
import J from "highlight.js/lib/languages/
|
|
36
|
-
import Y from "highlight.js/lib/languages/
|
|
37
|
-
import X from "highlight.js/lib/languages/
|
|
38
|
-
import ie from "highlight.js/lib/languages/
|
|
39
|
-
import ae from "highlight.js/lib/languages/
|
|
40
|
-
import oe from "highlight.js/lib/languages/
|
|
41
|
-
import se from "highlight.js/lib/languages/
|
|
42
|
-
import ce from "highlight.js/lib/languages/
|
|
43
|
-
import Z from "highlight.js/lib/languages/
|
|
44
|
-
import
|
|
7
|
+
import { DocLink as o } from "./docLink.js";
|
|
8
|
+
import { AttachmentFiles as s, AttachmentImage as c, DocLinkIcons as l, DocLinks as u, IssueMentions as d, KnowledgeTerms as f, LinkedIssues as p, PeopleMentions as m, TeamNames as h, recordingText as g } from "./editorPlugins.js";
|
|
9
|
+
import { FigmaEmbedBlock as _ } from "./Figma.js";
|
|
10
|
+
import { IssueListBlock as v } from "./IssueListBlock.js";
|
|
11
|
+
import { LinkCard as y } from "./LinkCard.js";
|
|
12
|
+
import { MentionPicker as b } from "./MentionPicker.js";
|
|
13
|
+
import { Diagrams as x, MathBlock as ee, MathInline as te } from "./mathDiagrams.js";
|
|
14
|
+
import { SlashMenu as ne } from "./SlashMenu.js";
|
|
15
|
+
import { SubPages as S } from "./SubPages.js";
|
|
16
|
+
import { MarkdownTable as C } from "./table.js";
|
|
17
|
+
import { DetailsContent as w, DetailsSummary as T, Toggle as E } from "./toggle.js";
|
|
18
|
+
import { VideoBlock as D } from "./video.js";
|
|
19
|
+
import { useEffect as O, useRef as k } from "react";
|
|
20
|
+
import { useTranslations as A } from "use-intl";
|
|
21
|
+
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
22
|
+
import { CodeBlockLowlight as P } from "@tiptap/extension-code-block-lowlight";
|
|
23
|
+
import { TaskItem as F, TaskList as I } from "@tiptap/extension-list";
|
|
24
|
+
import { TableKit as L } from "@tiptap/extension-table";
|
|
25
|
+
import { Placeholder as R } from "@tiptap/extensions";
|
|
26
|
+
import { Markdown as z } from "@tiptap/markdown";
|
|
27
|
+
import { EditorContent as B, useEditor as V } from "@tiptap/react";
|
|
28
|
+
import re from "@tiptap/starter-kit";
|
|
29
|
+
import H from "highlight.js/lib/languages/bash";
|
|
30
|
+
import U from "highlight.js/lib/languages/css";
|
|
31
|
+
import W from "highlight.js/lib/languages/diff";
|
|
32
|
+
import G from "highlight.js/lib/languages/dockerfile";
|
|
33
|
+
import K from "highlight.js/lib/languages/go";
|
|
34
|
+
import q from "highlight.js/lib/languages/ini";
|
|
35
|
+
import J from "highlight.js/lib/languages/javascript";
|
|
36
|
+
import Y from "highlight.js/lib/languages/json";
|
|
37
|
+
import X from "highlight.js/lib/languages/markdown";
|
|
38
|
+
import ie from "highlight.js/lib/languages/python";
|
|
39
|
+
import ae from "highlight.js/lib/languages/rust";
|
|
40
|
+
import oe from "highlight.js/lib/languages/shell";
|
|
41
|
+
import se from "highlight.js/lib/languages/sql";
|
|
42
|
+
import ce from "highlight.js/lib/languages/typescript";
|
|
43
|
+
import Z from "highlight.js/lib/languages/xml";
|
|
44
|
+
import le from "highlight.js/lib/languages/yaml";
|
|
45
|
+
import { createLowlight as ue } from "lowlight";
|
|
45
46
|
// src/components/Editor.tsx
|
|
46
|
-
var
|
|
47
|
-
bash:
|
|
48
|
-
css:
|
|
49
|
-
diff:
|
|
50
|
-
dockerfile:
|
|
51
|
-
go:
|
|
52
|
-
ini:
|
|
53
|
-
javascript:
|
|
54
|
-
json:
|
|
55
|
-
markdown:
|
|
56
|
-
python:
|
|
57
|
-
rust:
|
|
58
|
-
shell:
|
|
59
|
-
sql:
|
|
60
|
-
typescript:
|
|
61
|
-
xml:
|
|
62
|
-
yaml:
|
|
47
|
+
var de = ue({
|
|
48
|
+
bash: H,
|
|
49
|
+
css: U,
|
|
50
|
+
diff: W,
|
|
51
|
+
dockerfile: G,
|
|
52
|
+
go: K,
|
|
53
|
+
ini: q,
|
|
54
|
+
javascript: J,
|
|
55
|
+
json: Y,
|
|
56
|
+
markdown: X,
|
|
57
|
+
python: ie,
|
|
58
|
+
rust: ae,
|
|
59
|
+
shell: oe,
|
|
60
|
+
sql: se,
|
|
61
|
+
typescript: ce,
|
|
62
|
+
xml: Z,
|
|
63
|
+
yaml: le
|
|
63
64
|
});
|
|
64
|
-
function Q({ editable: i = !0, placeholder:
|
|
65
|
+
function Q({ editable: i = !0, placeholder: g = "", collaborative: b = !1 } = {}) {
|
|
65
66
|
return [
|
|
66
|
-
|
|
67
|
-
link:
|
|
68
|
-
openOnClick: !i,
|
|
69
|
-
autolink: !0
|
|
70
|
-
},
|
|
67
|
+
re.configure({
|
|
68
|
+
link: !1,
|
|
71
69
|
codeBlock: !1,
|
|
72
70
|
blockquote: !1,
|
|
73
|
-
...i && !
|
|
74
|
-
...
|
|
71
|
+
...i && !b ? {} : { trailingNode: !1 },
|
|
72
|
+
...b ? { undoRedo: !1 } : {}
|
|
73
|
+
}),
|
|
74
|
+
o.configure({
|
|
75
|
+
openOnClick: !i,
|
|
76
|
+
autolink: !0
|
|
75
77
|
}),
|
|
76
|
-
|
|
78
|
+
P.configure({ lowlight: de }),
|
|
77
79
|
e,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
I,
|
|
81
|
+
F.configure({ nested: !0 }),
|
|
82
|
+
E,
|
|
83
|
+
S,
|
|
80
84
|
T,
|
|
81
|
-
ne,
|
|
82
85
|
w,
|
|
83
|
-
C,
|
|
84
86
|
t,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
L.configure({ table: !1 }),
|
|
88
|
+
C.configure({
|
|
87
89
|
resizable: !1,
|
|
88
90
|
allowTableNodeSelection: !1
|
|
89
91
|
}),
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
R.configure({ placeholder: g }),
|
|
93
|
+
z,
|
|
94
|
+
f,
|
|
95
|
+
u,
|
|
93
96
|
l,
|
|
94
97
|
c,
|
|
95
98
|
s,
|
|
96
|
-
o,
|
|
97
|
-
f,
|
|
98
99
|
p,
|
|
99
100
|
m,
|
|
100
|
-
|
|
101
|
+
h,
|
|
102
|
+
d,
|
|
101
103
|
a,
|
|
102
104
|
r,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
y,
|
|
106
|
+
_,
|
|
107
|
+
D,
|
|
108
|
+
te,
|
|
106
109
|
ee,
|
|
107
110
|
x,
|
|
108
|
-
|
|
109
|
-
_,
|
|
111
|
+
v,
|
|
110
112
|
n
|
|
111
113
|
];
|
|
112
114
|
}
|
|
@@ -125,9 +127,9 @@ function $(e) {
|
|
|
125
127
|
}
|
|
126
128
|
};
|
|
127
129
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
130
|
-
let p =
|
|
130
|
+
function fe({ value: e, onChange: t, onSubmit: n, onBlur: r, onFocus: a, placeholder: o, editable: s = !0, autofocus: c = !1, className: l = "", label: u, onFiles: d, onEditor: f }) {
|
|
131
|
+
g.linkHint = A("video")("linkHint");
|
|
132
|
+
let p = k({
|
|
131
133
|
onChange: t,
|
|
132
134
|
onSubmit: n,
|
|
133
135
|
onBlur: r,
|
|
@@ -139,9 +141,9 @@ function de({ value: e, onChange: t, onSubmit: n, onBlur: r, onFocus: a, placeho
|
|
|
139
141
|
onBlur: r,
|
|
140
142
|
onFocus: a
|
|
141
143
|
};
|
|
142
|
-
let m =
|
|
144
|
+
let m = k(d);
|
|
143
145
|
m.current = d;
|
|
144
|
-
let
|
|
146
|
+
let h = V({
|
|
145
147
|
extensions: Q({
|
|
146
148
|
editable: s,
|
|
147
149
|
placeholder: o ?? ""
|
|
@@ -168,23 +170,23 @@ function de({ value: e, onChange: t, onSubmit: n, onBlur: r, onFocus: a, placeho
|
|
|
168
170
|
onBlur: ({ editor: e }) => p.current.onBlur?.(e.getMarkdown()),
|
|
169
171
|
onFocus: () => p.current.onFocus?.()
|
|
170
172
|
});
|
|
171
|
-
|
|
172
|
-
!
|
|
173
|
+
O(() => {
|
|
174
|
+
!h || h.isDestroyed || h.isFocused || h.getMarkdown() === e || h.commands.setContent(e, {
|
|
173
175
|
contentType: "markdown",
|
|
174
176
|
emitUpdate: !1
|
|
175
177
|
});
|
|
176
|
-
}, [
|
|
177
|
-
|
|
178
|
-
}, [
|
|
179
|
-
let _ =
|
|
180
|
-
return _.current = f,
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
s && /* @__PURE__ */
|
|
183
|
-
s && /* @__PURE__ */
|
|
184
|
-
editor:
|
|
178
|
+
}, [h, e]), O(() => {
|
|
179
|
+
h?.setEditable(s);
|
|
180
|
+
}, [h, s]);
|
|
181
|
+
let _ = k(f);
|
|
182
|
+
return _.current = f, O(() => (_.current?.(h), () => _.current?.(null)), [h]), /* @__PURE__ */ N(j, { children: [
|
|
183
|
+
/* @__PURE__ */ M(B, { editor: h }),
|
|
184
|
+
s && /* @__PURE__ */ M(i, { editor: h }),
|
|
185
|
+
s && /* @__PURE__ */ M(ne, {
|
|
186
|
+
editor: h,
|
|
185
187
|
onFiles: m
|
|
186
188
|
}),
|
|
187
|
-
s && /* @__PURE__ */
|
|
189
|
+
s && /* @__PURE__ */ M(b, { editor: h })
|
|
188
190
|
] });
|
|
189
191
|
}
|
|
190
|
-
export {
|
|
192
|
+
export { fe as Editor, Q as contentExtensions, $ as fileHandlers };
|