@parallelworks/tandem-web 0.162.0 → 0.164.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 -1
- package/_virtual/_virtual_i18n/es/common.js +3 -1
- package/_virtual/_virtual_i18n/ja/common.js +3 -1
- package/_virtual/_virtual_i18n/ko/common.js +3 -1
- package/_virtual/_virtual_i18n/zh/common.js +3 -1
- package/components/Editor.js +81 -77
- package/components/TeamRepositories.js +134 -115
- package/components/editorPlugins.js +162 -126
- package/components/video.js +51 -0
- package/lib/attachments.js +30 -7
- package/lib/githubLink.js +13 -0
- package/lib/videoMarkdown.js +15 -0
- package/package.json +1 -1
- package/styles.css +12 -0
|
@@ -1686,6 +1686,7 @@ var e = {
|
|
|
1686
1686
|
connectFirst: "Add a GitHub organization in <settings>GitHub settings</settings> first.",
|
|
1687
1687
|
unavailable: "Couldn’t list repositories. Try again.",
|
|
1688
1688
|
closeOnMerge: "Start an issue when its pull request opens, and complete it when the pull request merges",
|
|
1689
|
+
keepIssuesHere: "Don't open this team's issues on GitHub. Issues already on GitHub keep syncing",
|
|
1689
1690
|
pullRequests: "Pull requests",
|
|
1690
1691
|
pullRequestRef: "{repository} {number}",
|
|
1691
1692
|
copyBranch: "Copy branch name",
|
|
@@ -3905,6 +3906,7 @@ var e = {
|
|
|
3905
3906
|
save: "Save",
|
|
3906
3907
|
use: "Run agents here",
|
|
3907
3908
|
useHelp: "Agents in this workspace run in pods on this cluster."
|
|
3908
|
-
}
|
|
3909
|
+
},
|
|
3910
|
+
video: { linkHint: "Link your GitHub account to play this video" }
|
|
3909
3911
|
};
|
|
3910
3912
|
export { e as default };
|
|
@@ -1686,6 +1686,7 @@ var e = {
|
|
|
1686
1686
|
connectFirst: "Primero añade una organización de GitHub en <settings>Ajustes de GitHub</settings>.",
|
|
1687
1687
|
unavailable: "No se pudieron listar los repositorios. Inténtalo de nuevo.",
|
|
1688
1688
|
closeOnMerge: "Iniciar una incidencia cuando se abra su pull request y completarla cuando se fusione",
|
|
1689
|
+
keepIssuesHere: "No abrir las incidencias de este equipo en GitHub. Las que ya están en GitHub siguen sincronizándose",
|
|
1689
1690
|
pullRequests: "Pull requests",
|
|
1690
1691
|
pullRequestRef: "{repository} {number}",
|
|
1691
1692
|
copyBranch: "Copiar nombre de la rama",
|
|
@@ -3905,6 +3906,7 @@ var e = {
|
|
|
3905
3906
|
save: "Guardar",
|
|
3906
3907
|
use: "Ejecutar agentes aquí",
|
|
3907
3908
|
useHelp: "Los agentes de este espacio de trabajo se ejecutan en pods de este clúster."
|
|
3908
|
-
}
|
|
3909
|
+
},
|
|
3910
|
+
video: { linkHint: "Vincula tu cuenta de GitHub para reproducir este video" }
|
|
3909
3911
|
};
|
|
3910
3912
|
export { e as default };
|
|
@@ -1686,6 +1686,7 @@ var e = {
|
|
|
1686
1686
|
connectFirst: "先に<settings>GitHub 設定</settings>で GitHub の組織を追加してください。",
|
|
1687
1687
|
unavailable: "リポジトリを一覧表示できませんでした。もう一度お試しください。",
|
|
1688
1688
|
closeOnMerge: "プルリクエストが開かれたら課題を開始し、マージされたら完了にする",
|
|
1689
|
+
keepIssuesHere: "このチームの課題を GitHub で作成しない。すでに GitHub にある課題は同期を続けます",
|
|
1689
1690
|
pullRequests: "プルリクエスト",
|
|
1690
1691
|
pullRequestRef: "{repository} {number}",
|
|
1691
1692
|
copyBranch: "ブランチ名をコピー",
|
|
@@ -3905,6 +3906,7 @@ var e = {
|
|
|
3905
3906
|
save: "保存",
|
|
3906
3907
|
use: "ここでエージェントを実行",
|
|
3907
3908
|
useHelp: "このワークスペースのエージェントは、このクラスターのポッドで実行されます。"
|
|
3908
|
-
}
|
|
3909
|
+
},
|
|
3910
|
+
video: { linkHint: "この動画を再生するには GitHub アカウントを連携してください" }
|
|
3909
3911
|
};
|
|
3910
3912
|
export { e as default };
|
|
@@ -1686,6 +1686,7 @@ var e = {
|
|
|
1686
1686
|
connectFirst: "먼저 <settings>GitHub 설정</settings>에서 GitHub 조직을 추가하세요.",
|
|
1687
1687
|
unavailable: "저장소 목록을 불러오지 못했습니다. 다시 시도하세요.",
|
|
1688
1688
|
closeOnMerge: "풀 리퀘스트가 열리면 이슈를 시작하고, 병합되면 완료",
|
|
1689
|
+
keepIssuesHere: "이 팀의 이슈를 GitHub에 열지 않습니다. 이미 GitHub에 있는 이슈는 계속 동기화됩니다",
|
|
1689
1690
|
pullRequests: "풀 리퀘스트",
|
|
1690
1691
|
pullRequestRef: "{repository} {number}",
|
|
1691
1692
|
copyBranch: "브랜치 이름 복사",
|
|
@@ -3905,6 +3906,7 @@ var e = {
|
|
|
3905
3906
|
save: "저장",
|
|
3906
3907
|
use: "여기서 에이전트 실행",
|
|
3907
3908
|
useHelp: "이 워크스페이스의 에이전트가 이 클러스터의 파드에서 실행됩니다."
|
|
3908
|
-
}
|
|
3909
|
+
},
|
|
3910
|
+
video: { linkHint: "이 동영상을 재생하려면 GitHub 계정을 연결하세요" }
|
|
3909
3911
|
};
|
|
3910
3912
|
export { e as default };
|
|
@@ -1686,6 +1686,7 @@ var e = {
|
|
|
1686
1686
|
connectFirst: "请先在<settings>GitHub 设置</settings>中添加一个 GitHub 组织。",
|
|
1687
1687
|
unavailable: "无法列出仓库。请重试。",
|
|
1688
1688
|
closeOnMerge: "拉取请求打开时开始议题,合并时完成议题",
|
|
1689
|
+
keepIssuesHere: "不在 GitHub 上创建此团队的事项。已在 GitHub 上的事项继续同步",
|
|
1689
1690
|
pullRequests: "拉取请求",
|
|
1690
1691
|
pullRequestRef: "{repository} {number}",
|
|
1691
1692
|
copyBranch: "复制分支名称",
|
|
@@ -3905,6 +3906,7 @@ var e = {
|
|
|
3905
3906
|
save: "保存",
|
|
3906
3907
|
use: "在此运行智能体",
|
|
3907
3908
|
useHelp: "此工作区的智能体会在该集群的 Pod 中运行。"
|
|
3908
|
-
}
|
|
3909
|
+
},
|
|
3910
|
+
video: { linkHint: "关联你的 GitHub 账号即可播放此视频" }
|
|
3909
3911
|
};
|
|
3910
3912
|
export { e as default };
|
package/components/Editor.js
CHANGED
|
@@ -3,90 +3,92 @@ import { DetailsContent as t, DetailsSummary as n, Toggle as r } from "./toggle.
|
|
|
3
3
|
import { Columns as i } from "./columns.js";
|
|
4
4
|
import { DateChip as a } from "./DateChip.js";
|
|
5
5
|
import { DocButton as o } from "./DocButton.js";
|
|
6
|
-
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 } from "./editorPlugins.js";
|
|
7
|
-
import { DocLinkPicker as
|
|
8
|
-
import { DocViewBlock as
|
|
6
|
+
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";
|
|
7
|
+
import { DocLinkPicker as _ } from "./DocLinkPicker.js";
|
|
8
|
+
import { DocViewBlock as ee } from "./DocViewBlock.js";
|
|
9
9
|
import { FigmaEmbedBlock as v } from "./Figma.js";
|
|
10
10
|
import { IssueListBlock as y } from "./IssueListBlock.js";
|
|
11
11
|
import { LinkCard as b } from "./LinkCard.js";
|
|
12
12
|
import { MentionPicker as x } from "./MentionPicker.js";
|
|
13
|
-
import { Diagrams as
|
|
14
|
-
import { SlashMenu as
|
|
15
|
-
import { SubPages as
|
|
16
|
-
import { MarkdownTable as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
13
|
+
import { Diagrams as te, MathBlock as ne, MathInline as S } from "./mathDiagrams.js";
|
|
14
|
+
import { SlashMenu as C } from "./SlashMenu.js";
|
|
15
|
+
import { SubPages as w } from "./SubPages.js";
|
|
16
|
+
import { MarkdownTable as T } from "./table.js";
|
|
17
|
+
import { VideoBlock as E } from "./video.js";
|
|
18
|
+
import { useEffect as D, useRef as O } from "react";
|
|
19
|
+
import { useTranslations as k } from "use-intl";
|
|
20
|
+
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
21
|
+
import { CodeBlockLowlight as N } from "@tiptap/extension-code-block-lowlight";
|
|
22
|
+
import { TaskItem as P, TaskList as F } from "@tiptap/extension-list";
|
|
23
|
+
import { TableKit as I } from "@tiptap/extension-table";
|
|
24
|
+
import { Placeholder as L } from "@tiptap/extensions";
|
|
25
|
+
import { Markdown as R } from "@tiptap/markdown";
|
|
26
|
+
import { EditorContent as z, useEditor as B } from "@tiptap/react";
|
|
27
|
+
import V from "@tiptap/starter-kit";
|
|
28
|
+
import re from "highlight.js/lib/languages/bash";
|
|
29
|
+
import H from "highlight.js/lib/languages/css";
|
|
30
|
+
import U from "highlight.js/lib/languages/diff";
|
|
31
|
+
import W from "highlight.js/lib/languages/dockerfile";
|
|
32
|
+
import G from "highlight.js/lib/languages/go";
|
|
33
|
+
import K from "highlight.js/lib/languages/ini";
|
|
34
|
+
import q from "highlight.js/lib/languages/javascript";
|
|
35
|
+
import J from "highlight.js/lib/languages/json";
|
|
36
|
+
import Y from "highlight.js/lib/languages/markdown";
|
|
37
|
+
import X from "highlight.js/lib/languages/python";
|
|
38
|
+
import ie from "highlight.js/lib/languages/rust";
|
|
39
|
+
import ae from "highlight.js/lib/languages/shell";
|
|
40
|
+
import oe from "highlight.js/lib/languages/sql";
|
|
41
|
+
import se from "highlight.js/lib/languages/typescript";
|
|
42
|
+
import ce from "highlight.js/lib/languages/xml";
|
|
43
|
+
import Z from "highlight.js/lib/languages/yaml";
|
|
44
|
+
import { createLowlight as le } from "lowlight";
|
|
43
45
|
// src/components/Editor.tsx
|
|
44
|
-
var
|
|
45
|
-
bash:
|
|
46
|
-
css:
|
|
47
|
-
diff:
|
|
48
|
-
dockerfile:
|
|
49
|
-
go:
|
|
50
|
-
ini:
|
|
51
|
-
javascript:
|
|
52
|
-
json:
|
|
53
|
-
markdown:
|
|
54
|
-
python:
|
|
55
|
-
rust:
|
|
56
|
-
shell:
|
|
57
|
-
sql:
|
|
58
|
-
typescript:
|
|
59
|
-
xml:
|
|
60
|
-
yaml:
|
|
46
|
+
var ue = le({
|
|
47
|
+
bash: re,
|
|
48
|
+
css: H,
|
|
49
|
+
diff: U,
|
|
50
|
+
dockerfile: W,
|
|
51
|
+
go: G,
|
|
52
|
+
ini: K,
|
|
53
|
+
javascript: q,
|
|
54
|
+
json: J,
|
|
55
|
+
markdown: Y,
|
|
56
|
+
python: X,
|
|
57
|
+
rust: ie,
|
|
58
|
+
shell: ae,
|
|
59
|
+
sql: oe,
|
|
60
|
+
typescript: se,
|
|
61
|
+
xml: ce,
|
|
62
|
+
yaml: Z
|
|
61
63
|
});
|
|
62
|
-
function Q({ editable: g = !0, placeholder:
|
|
64
|
+
function Q({ editable: g = !0, placeholder: _ = "", collaborative: x = !1 } = {}) {
|
|
63
65
|
return [
|
|
64
|
-
|
|
66
|
+
V.configure({
|
|
65
67
|
link: {
|
|
66
68
|
openOnClick: !g,
|
|
67
69
|
autolink: !0
|
|
68
70
|
},
|
|
69
71
|
codeBlock: !1,
|
|
70
72
|
blockquote: !1,
|
|
71
|
-
...g && !
|
|
72
|
-
...
|
|
73
|
+
...g && !x ? {} : { trailingNode: !1 },
|
|
74
|
+
...x ? { undoRedo: !1 } : {}
|
|
73
75
|
}),
|
|
74
|
-
|
|
76
|
+
N.configure({ lowlight: ue }),
|
|
75
77
|
e,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
F,
|
|
79
|
+
P.configure({ nested: !0 }),
|
|
78
80
|
r,
|
|
79
|
-
|
|
81
|
+
w,
|
|
80
82
|
n,
|
|
81
83
|
t,
|
|
82
84
|
i,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
I.configure({ table: !1 }),
|
|
86
|
+
T.configure({
|
|
85
87
|
resizable: !1,
|
|
86
88
|
allowTableNodeSelection: !1
|
|
87
89
|
}),
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
L.configure({ placeholder: _ }),
|
|
91
|
+
R,
|
|
90
92
|
f,
|
|
91
93
|
u,
|
|
92
94
|
l,
|
|
@@ -96,13 +98,14 @@ function Q({ editable: g = !0, placeholder: x = "", collaborative: S = !1 } = {}
|
|
|
96
98
|
m,
|
|
97
99
|
h,
|
|
98
100
|
d,
|
|
99
|
-
|
|
101
|
+
ee,
|
|
100
102
|
o,
|
|
101
103
|
b,
|
|
102
104
|
v,
|
|
105
|
+
E,
|
|
106
|
+
S,
|
|
103
107
|
ne,
|
|
104
108
|
te,
|
|
105
|
-
ee,
|
|
106
109
|
y,
|
|
107
110
|
a
|
|
108
111
|
];
|
|
@@ -122,8 +125,9 @@ function $(e) {
|
|
|
122
125
|
}
|
|
123
126
|
};
|
|
124
127
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
128
|
+
function de({ value: e, onChange: t, onSubmit: n, onBlur: r, onFocus: i, placeholder: a, editable: o = !0, autofocus: s = !1, className: c = "", label: l, onFiles: u, onEditor: d }) {
|
|
129
|
+
g.linkHint = k("video")("linkHint");
|
|
130
|
+
let f = O({
|
|
127
131
|
onChange: t,
|
|
128
132
|
onSubmit: n,
|
|
129
133
|
onBlur: r,
|
|
@@ -135,9 +139,9 @@ function ce({ value: e, onChange: t, onSubmit: n, onBlur: r, onFocus: i, placeho
|
|
|
135
139
|
onBlur: r,
|
|
136
140
|
onFocus: i
|
|
137
141
|
};
|
|
138
|
-
let p =
|
|
142
|
+
let p = O(u);
|
|
139
143
|
p.current = u;
|
|
140
|
-
let m =
|
|
144
|
+
let m = B({
|
|
141
145
|
extensions: Q({
|
|
142
146
|
editable: o,
|
|
143
147
|
placeholder: a ?? ""
|
|
@@ -164,23 +168,23 @@ function ce({ value: e, onChange: t, onSubmit: n, onBlur: r, onFocus: i, placeho
|
|
|
164
168
|
onBlur: ({ editor: e }) => f.current.onBlur?.(e.getMarkdown()),
|
|
165
169
|
onFocus: () => f.current.onFocus?.()
|
|
166
170
|
});
|
|
167
|
-
|
|
171
|
+
D(() => {
|
|
168
172
|
m && !m.isFocused && m.getMarkdown() !== e && m.commands.setContent(e, {
|
|
169
173
|
contentType: "markdown",
|
|
170
174
|
emitUpdate: !1
|
|
171
175
|
});
|
|
172
|
-
}, [m, e]),
|
|
176
|
+
}, [m, e]), D(() => {
|
|
173
177
|
m?.setEditable(o);
|
|
174
178
|
}, [m, o]);
|
|
175
|
-
let h =
|
|
176
|
-
return h.current = d,
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
o && /* @__PURE__ */
|
|
179
|
-
o && /* @__PURE__ */
|
|
179
|
+
let h = O(d);
|
|
180
|
+
return h.current = d, D(() => (h.current?.(m), () => h.current?.(null)), [m]), /* @__PURE__ */ M(A, { children: [
|
|
181
|
+
/* @__PURE__ */ j(z, { editor: m }),
|
|
182
|
+
o && /* @__PURE__ */ j(_, { editor: m }),
|
|
183
|
+
o && /* @__PURE__ */ j(C, {
|
|
180
184
|
editor: m,
|
|
181
185
|
onFiles: p
|
|
182
186
|
}),
|
|
183
|
-
o && /* @__PURE__ */
|
|
187
|
+
o && /* @__PURE__ */ j(x, { editor: m })
|
|
184
188
|
] });
|
|
185
189
|
}
|
|
186
|
-
export {
|
|
190
|
+
export { de as Editor, Q as contentExtensions, $ as fileHandlers };
|