@parallelworks/tandem-web 0.179.0 → 0.179.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.
- package/_virtual/_virtual_i18n/en/common.js +6 -3
- package/_virtual/_virtual_i18n/es/common.js +6 -3
- package/_virtual/_virtual_i18n/ja/common.js +6 -3
- package/_virtual/_virtual_i18n/ko/common.js +6 -3
- package/_virtual/_virtual_i18n/zh/common.js +6 -3
- package/components/HoverCards.js +23 -13
- package/components/SubPages.js +101 -44
- package/components/editorPlugins.js +107 -101
- package/package.json +1 -1
- package/routes/_workspace/docs/space2._space.js +1 -1
- package/routes/_workspace/issues/_identifier2.js +1 -1
- package/routes/_workspace/teams/_key/settings2.js +2 -2
- package/styles.css +20 -0
|
@@ -1063,7 +1063,7 @@ var e = {
|
|
|
1063
1063
|
download: "Download",
|
|
1064
1064
|
image: "Attached image"
|
|
1065
1065
|
},
|
|
1066
|
-
|
|
1066
|
+
branchName: "branch name",
|
|
1067
1067
|
copiedBranchName: "Copied {name}",
|
|
1068
1068
|
copyFailed: "Couldn’t copy. Copy it from the issue’s menu instead.",
|
|
1069
1069
|
restore: "Restore",
|
|
@@ -1332,12 +1332,12 @@ var e = {
|
|
|
1332
1332
|
formHelp: "Anyone with the link can send a request.",
|
|
1333
1333
|
needsTriage: "Turn on triage first: requests wait there.",
|
|
1334
1334
|
link: "Form link",
|
|
1335
|
-
|
|
1335
|
+
formLink: "form link",
|
|
1336
1336
|
email: "Email",
|
|
1337
1337
|
emailHelp: "Email to the team's address becomes a request.",
|
|
1338
1338
|
noDomain: "Email needs the server's intake domain (TANDEM_INTAKE_DOMAIN).",
|
|
1339
1339
|
address: "Address",
|
|
1340
|
-
|
|
1340
|
+
emailAddress: "address",
|
|
1341
1341
|
rotate: "New link and address",
|
|
1342
1342
|
rotateHelp: "The old link and address stop working.",
|
|
1343
1343
|
rotateButton: "Make new"
|
|
@@ -1441,6 +1441,9 @@ var e = {
|
|
|
1441
1441
|
rename: "Rename",
|
|
1442
1442
|
moveTo: "Move to",
|
|
1443
1443
|
archive: "Archive",
|
|
1444
|
+
archiveConfirm: "Archive “{title}”?",
|
|
1445
|
+
archiveDetail: "It leaves this page and its space. You can restore it from Archived.",
|
|
1446
|
+
moveOut: "Move out of this page",
|
|
1444
1447
|
restore: "Restore",
|
|
1445
1448
|
copyKey: "Copy key",
|
|
1446
1449
|
breadcrumbs: "Doc location",
|
|
@@ -1063,7 +1063,7 @@ var e = {
|
|
|
1063
1063
|
download: "Descargar",
|
|
1064
1064
|
image: "Imagen adjunta"
|
|
1065
1065
|
},
|
|
1066
|
-
|
|
1066
|
+
branchName: "nombre de la rama",
|
|
1067
1067
|
copiedBranchName: "Se copió {name}",
|
|
1068
1068
|
copyFailed: "No se pudo copiar. Cópialo desde el menú de la incidencia.",
|
|
1069
1069
|
restore: "Restaurar",
|
|
@@ -1332,12 +1332,12 @@ var e = {
|
|
|
1332
1332
|
formHelp: "Cualquiera con el enlace puede enviar una solicitud.",
|
|
1333
1333
|
needsTriage: "Activa primero la clasificación: las solicitudes esperan allí.",
|
|
1334
1334
|
link: "Enlace del formulario",
|
|
1335
|
-
|
|
1335
|
+
formLink: "enlace del formulario",
|
|
1336
1336
|
email: "Correo",
|
|
1337
1337
|
emailHelp: "El correo a la dirección del equipo se convierte en solicitud.",
|
|
1338
1338
|
noDomain: "El correo necesita el dominio de entrada del servidor (TANDEM_INTAKE_DOMAIN).",
|
|
1339
1339
|
address: "Dirección",
|
|
1340
|
-
|
|
1340
|
+
emailAddress: "dirección",
|
|
1341
1341
|
rotate: "Enlace y dirección nuevos",
|
|
1342
1342
|
rotateHelp: "El enlace y la dirección anteriores dejan de funcionar.",
|
|
1343
1343
|
rotateButton: "Crear nuevos"
|
|
@@ -1441,6 +1441,9 @@ var e = {
|
|
|
1441
1441
|
rename: "Renombrar",
|
|
1442
1442
|
moveTo: "Mover a",
|
|
1443
1443
|
archive: "Archivar",
|
|
1444
|
+
archiveConfirm: "¿Archivar «{title}»?",
|
|
1445
|
+
archiveDetail: "Sale de esta página y de su espacio. Puedes restaurarla desde Archivados.",
|
|
1446
|
+
moveOut: "Sacar de esta página",
|
|
1444
1447
|
restore: "Restaurar",
|
|
1445
1448
|
copyKey: "Copiar clave",
|
|
1446
1449
|
breadcrumbs: "Ubicación del documento",
|
|
@@ -1063,7 +1063,7 @@ var e = {
|
|
|
1063
1063
|
download: "ダウンロード",
|
|
1064
1064
|
image: "添付画像"
|
|
1065
1065
|
},
|
|
1066
|
-
|
|
1066
|
+
branchName: "ブランチ名",
|
|
1067
1067
|
copiedBranchName: "{name} をコピーしました",
|
|
1068
1068
|
copyFailed: "コピーできませんでした。課題のメニューからコピーしてください。",
|
|
1069
1069
|
restore: "復元",
|
|
@@ -1332,12 +1332,12 @@ var e = {
|
|
|
1332
1332
|
formHelp: "リンクを知っている人なら誰でも送れます。",
|
|
1333
1333
|
needsTriage: "先にトリアージを有効にしてください。リクエストはそこで待ちます。",
|
|
1334
1334
|
link: "フォームのリンク",
|
|
1335
|
-
|
|
1335
|
+
formLink: "フォームのリンク",
|
|
1336
1336
|
email: "メール",
|
|
1337
1337
|
emailHelp: "チームのアドレスへのメールがリクエストになります。",
|
|
1338
1338
|
noDomain: "メールにはサーバーの受信ドメイン(TANDEM_INTAKE_DOMAIN)が必要です。",
|
|
1339
1339
|
address: "アドレス",
|
|
1340
|
-
|
|
1340
|
+
emailAddress: "アドレス",
|
|
1341
1341
|
rotate: "新しいリンクとアドレス",
|
|
1342
1342
|
rotateHelp: "以前のリンクとアドレスは使えなくなります。",
|
|
1343
1343
|
rotateButton: "新しく作る"
|
|
@@ -1441,6 +1441,9 @@ var e = {
|
|
|
1441
1441
|
rename: "名前を変更",
|
|
1442
1442
|
moveTo: "移動先",
|
|
1443
1443
|
archive: "アーカイブ",
|
|
1444
|
+
archiveConfirm: "「{title}」をアーカイブしますか?",
|
|
1445
|
+
archiveDetail: "このページとスペースから外れます。「アーカイブ済み」から復元できます。",
|
|
1446
|
+
moveOut: "このページから移動",
|
|
1444
1447
|
restore: "復元",
|
|
1445
1448
|
copyKey: "キーをコピー",
|
|
1446
1449
|
breadcrumbs: "ドキュメントの場所",
|
|
@@ -1063,7 +1063,7 @@ var e = {
|
|
|
1063
1063
|
download: "다운로드",
|
|
1064
1064
|
image: "첨부된 이미지"
|
|
1065
1065
|
},
|
|
1066
|
-
|
|
1066
|
+
branchName: "브랜치 이름",
|
|
1067
1067
|
copiedBranchName: "{name}을(를) 복사했습니다",
|
|
1068
1068
|
copyFailed: "복사하지 못했습니다. 대신 이슈 메뉴에서 복사하세요.",
|
|
1069
1069
|
restore: "복원",
|
|
@@ -1332,12 +1332,12 @@ var e = {
|
|
|
1332
1332
|
formHelp: "링크가 있는 누구나 요청을 보낼 수 있습니다.",
|
|
1333
1333
|
needsTriage: "먼저 분류를 켜세요. 요청은 그곳에서 기다립니다.",
|
|
1334
1334
|
link: "양식 링크",
|
|
1335
|
-
|
|
1335
|
+
formLink: "양식 링크",
|
|
1336
1336
|
email: "이메일",
|
|
1337
1337
|
emailHelp: "팀 주소로 온 이메일이 요청이 됩니다.",
|
|
1338
1338
|
noDomain: "이메일에는 서버의 수신 도메인(TANDEM_INTAKE_DOMAIN)이 필요합니다.",
|
|
1339
1339
|
address: "주소",
|
|
1340
|
-
|
|
1340
|
+
emailAddress: "주소",
|
|
1341
1341
|
rotate: "새 링크와 주소",
|
|
1342
1342
|
rotateHelp: "이전 링크와 주소는 더 이상 작동하지 않습니다.",
|
|
1343
1343
|
rotateButton: "새로 만들기"
|
|
@@ -1441,6 +1441,9 @@ var e = {
|
|
|
1441
1441
|
rename: "이름 바꾸기",
|
|
1442
1442
|
moveTo: "이동",
|
|
1443
1443
|
archive: "보관",
|
|
1444
|
+
archiveConfirm: "“{title}”을(를) 보관할까요?",
|
|
1445
|
+
archiveDetail: "이 페이지와 스페이스에서 빠집니다. 보관됨에서 복원할 수 있습니다.",
|
|
1446
|
+
moveOut: "이 페이지에서 꺼내기",
|
|
1444
1447
|
restore: "복원",
|
|
1445
1448
|
copyKey: "키 복사",
|
|
1446
1449
|
breadcrumbs: "문서 위치",
|
|
@@ -1063,7 +1063,7 @@ var e = {
|
|
|
1063
1063
|
download: "下载",
|
|
1064
1064
|
image: "附加的图片"
|
|
1065
1065
|
},
|
|
1066
|
-
|
|
1066
|
+
branchName: "分支名称",
|
|
1067
1067
|
copiedBranchName: "已复制 {name}",
|
|
1068
1068
|
copyFailed: "无法复制。请改从议题菜单中复制。",
|
|
1069
1069
|
restore: "恢复",
|
|
@@ -1332,12 +1332,12 @@ var e = {
|
|
|
1332
1332
|
formHelp: "拥有链接的任何人都能提交请求。",
|
|
1333
1333
|
needsTriage: "请先开启分诊:请求会在那里等待。",
|
|
1334
1334
|
link: "表单链接",
|
|
1335
|
-
|
|
1335
|
+
formLink: "表单链接",
|
|
1336
1336
|
email: "邮件",
|
|
1337
1337
|
emailHelp: "发到团队地址的邮件会成为请求。",
|
|
1338
1338
|
noDomain: "邮件需要服务器的接收域名(TANDEM_INTAKE_DOMAIN)。",
|
|
1339
1339
|
address: "地址",
|
|
1340
|
-
|
|
1340
|
+
emailAddress: "地址",
|
|
1341
1341
|
rotate: "新的链接和地址",
|
|
1342
1342
|
rotateHelp: "旧的链接和地址将失效。",
|
|
1343
1343
|
rotateButton: "重新生成"
|
|
@@ -1441,6 +1441,9 @@ var e = {
|
|
|
1441
1441
|
rename: "重命名",
|
|
1442
1442
|
moveTo: "移动到",
|
|
1443
1443
|
archive: "归档",
|
|
1444
|
+
archiveConfirm: "归档“{title}”?",
|
|
1445
|
+
archiveDetail: "它会离开此页面和所在空间。你可以从“已归档”中恢复。",
|
|
1446
|
+
moveOut: "移出此页面",
|
|
1444
1447
|
restore: "恢复",
|
|
1445
1448
|
copyKey: "复制标识",
|
|
1446
1449
|
breadcrumbs: "文档位置",
|
package/components/HoverCards.js
CHANGED
|
@@ -119,25 +119,35 @@ function R({ workspace: n }) {
|
|
|
119
119
|
}, i = (e) => {
|
|
120
120
|
e.target.matches?.(".kb-term[tabindex], .prose-issue a[href*=\"/docs/\"]") && r(e);
|
|
121
121
|
}, a = (e) => {
|
|
122
|
-
let t = e.target.closest?.(".issue-mention"), n = t?.dataset.issue;
|
|
123
|
-
if (t && n &&
|
|
124
|
-
e.
|
|
125
|
-
|
|
122
|
+
let t = e.target.closest?.(".issue-mention"), n = t?.dataset.issue, i = t?.closest("a[href]");
|
|
123
|
+
if (t && n && (!i || i === t)) {
|
|
124
|
+
if ((e.metaKey || e.ctrlKey || e.shiftKey) && i) {
|
|
125
|
+
e.preventDefault(), window.open(i.href, "_blank", "noopener");
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
if (!t.closest("[contenteditable=\"true\"]")) {
|
|
129
|
+
e.preventDefault(), P.current(n);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
126
132
|
}
|
|
127
|
-
let
|
|
128
|
-
if (
|
|
129
|
-
e.preventDefault(), R.current(
|
|
133
|
+
let a = e.target.closest?.(".team-mention"), o = a?.dataset.team;
|
|
134
|
+
if (a && o && (!a.closest("[contenteditable=\"true\"]") || e.metaKey || e.ctrlKey)) {
|
|
135
|
+
e.preventDefault(), R.current(o);
|
|
130
136
|
return;
|
|
131
137
|
}
|
|
132
|
-
let
|
|
133
|
-
if (!
|
|
134
|
-
let
|
|
135
|
-
|
|
138
|
+
let s = e.target.closest?.(".kb-term");
|
|
139
|
+
if (!s) return;
|
|
140
|
+
let c = s.dataset.term;
|
|
141
|
+
c && (!s.closest("[contenteditable=\"true\"]") || e.metaKey || e.ctrlKey) ? (e.preventDefault(), l(null), x.current(c)) : r(e);
|
|
136
142
|
}, o = (e) => {
|
|
143
|
+
if (e.button !== 1) return;
|
|
144
|
+
let t = e.target.closest?.("a.issue-mention[href]");
|
|
145
|
+
t?.closest("[contenteditable=\"true\"]") && (e.preventDefault(), window.open(t.href, "_blank", "noopener"));
|
|
146
|
+
}, s = (e) => {
|
|
137
147
|
e.key === "Escape" && d.current?.isConnected && (e.stopPropagation(), e.preventDefault(), l((e) => (e?.el.tabIndex === 0 && e.el.focus(), null)));
|
|
138
148
|
};
|
|
139
|
-
return document.addEventListener("pointerover", t), document.addEventListener("pointerout", n), document.addEventListener("focusin", i), document.addEventListener("click", a), document.addEventListener(b, r), document.addEventListener("keydown",
|
|
140
|
-
clearTimeout(p.current), document.removeEventListener("pointerover", t), document.removeEventListener("pointerout", n), document.removeEventListener("focusin", i), document.removeEventListener("click", a), document.removeEventListener(b, r), document.removeEventListener("keydown",
|
|
149
|
+
return document.addEventListener("pointerover", t), document.addEventListener("pointerout", n), document.addEventListener("focusin", i), document.addEventListener("click", a), document.addEventListener("auxclick", o), document.addEventListener(b, r), document.addEventListener("keydown", s, !0), () => {
|
|
150
|
+
clearTimeout(p.current), document.removeEventListener("pointerover", t), document.removeEventListener("pointerout", n), document.removeEventListener("focusin", i), document.removeEventListener("click", a), document.removeEventListener("auxclick", o), document.removeEventListener(b, r), document.removeEventListener("keydown", s, !0);
|
|
141
151
|
};
|
|
142
152
|
}, []), T(() => {
|
|
143
153
|
if (!c) return;
|
package/components/SubPages.js
CHANGED
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import { docQuery as e, docsQuery as t } from "../api/queries.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { docQuery as e, docsQuery as t, teamsQuery as n } from "../api/queries.js";
|
|
2
|
+
import { useConfirm as r } from "../lib/confirm.js";
|
|
3
|
+
import { docRef as i, useDocActions as a, useDocMenu as o } from "../lib/docs.js";
|
|
4
|
+
import { Link as s } from "../lib/router.js";
|
|
5
|
+
import { DocIcon as c } from "./DocIcon.js";
|
|
6
|
+
import { useParams as l } from "@tanstack/react-router";
|
|
7
|
+
import { useState as u } from "react";
|
|
8
|
+
import { useTranslations as d } from "use-intl";
|
|
9
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
10
|
+
import { useQuery as m } from "@tanstack/react-query";
|
|
11
|
+
import { MoreButton as h } from "@parallelworks/ui/list";
|
|
12
|
+
import { Node as g, NodeViewWrapper as _, ReactNodeViewRenderer as v, mergeAttributes as y } from "@tiptap/react";
|
|
10
13
|
// src/components/SubPages.tsx
|
|
11
|
-
var
|
|
14
|
+
var b = /^:::subpages[ \t]*\n[ \t]*:::[ \t]*(?:\n|$)/, x = g.create({
|
|
12
15
|
name: "subPages",
|
|
13
16
|
group: "block",
|
|
14
17
|
atom: !0,
|
|
15
18
|
draggable: !0,
|
|
16
19
|
selectable: !0,
|
|
17
20
|
parseHTML: () => [{ tag: "div[data-sub-pages]" }],
|
|
18
|
-
renderHTML: ({ HTMLAttributes: e }) => ["div",
|
|
19
|
-
addNodeView: () =>
|
|
21
|
+
renderHTML: ({ HTMLAttributes: e }) => ["div", y(e, { "data-sub-pages": "" })],
|
|
22
|
+
addNodeView: () => v(S),
|
|
20
23
|
markdownTokenName: "subPages",
|
|
21
24
|
markdownTokenizer: {
|
|
22
25
|
name: "subPages",
|
|
23
26
|
level: "block",
|
|
24
27
|
start: (e) => e.search(/^:::subpages/m),
|
|
25
28
|
tokenize: (e) => {
|
|
26
|
-
let t =
|
|
29
|
+
let t = b.exec(e);
|
|
27
30
|
return t ? {
|
|
28
31
|
type: "subPages",
|
|
29
32
|
raw: t[0]
|
|
@@ -33,39 +36,93 @@ var m = /^:::subpages[ \t]*\n[ \t]*:::[ \t]*(?:\n|$)/, h = u.create({
|
|
|
33
36
|
parseMarkdown: (e, t) => t.createNode("subPages"),
|
|
34
37
|
renderMarkdown: () => ":::subpages\n:::"
|
|
35
38
|
});
|
|
36
|
-
function g
|
|
37
|
-
let
|
|
38
|
-
...e(
|
|
39
|
-
enabled: !!
|
|
40
|
-
}), { data:
|
|
41
|
-
...t(
|
|
42
|
-
enabled: !!
|
|
43
|
-
})
|
|
44
|
-
|
|
39
|
+
function S({ editor: g }) {
|
|
40
|
+
let v = d("docs"), y = d("common"), { workspace: b = "", doc: x = "" } = l({ strict: !1 }), { data: S } = m({
|
|
41
|
+
...e(b, x),
|
|
42
|
+
enabled: !!b && !!x
|
|
43
|
+
}), { data: C = [] } = m({
|
|
44
|
+
...t(b, { parent: S?.key ?? "" }),
|
|
45
|
+
enabled: !!b && !!S
|
|
46
|
+
}), { data: w = [] } = m({
|
|
47
|
+
...n(b),
|
|
48
|
+
enabled: !!b
|
|
49
|
+
}), T = o(b), E = a(b), { confirm: D, dialog: O } = r(), [k, A] = u(), j = g.isEditable, M = (e) => T(e, { onRename: () => A(e.key) }).flatMap((t) => {
|
|
50
|
+
if (!("label" in t)) return [t];
|
|
51
|
+
if (t.label === v("archive")) return [{
|
|
52
|
+
label: v("archive"),
|
|
53
|
+
destructive: !0,
|
|
54
|
+
onClick: () => {
|
|
55
|
+
D({
|
|
56
|
+
title: v("archiveConfirm", { title: e.title || v("untitled") }),
|
|
57
|
+
description: v("archiveDetail"),
|
|
58
|
+
confirmLabel: v("archive"),
|
|
59
|
+
onConfirm: () => E.archive.mutateAsync(e)
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}];
|
|
63
|
+
if (t.label === v("moveTo")) {
|
|
64
|
+
let n = w.find((t) => t.id === e.teamId)?.key ?? "workspace";
|
|
65
|
+
return [{
|
|
66
|
+
label: v("moveOut"),
|
|
67
|
+
onClick: () => E.move.mutate({
|
|
68
|
+
doc: e,
|
|
69
|
+
space: n
|
|
70
|
+
})
|
|
71
|
+
}, t];
|
|
72
|
+
}
|
|
73
|
+
return [t];
|
|
74
|
+
}), N = (e, t) => {
|
|
75
|
+
A(void 0);
|
|
76
|
+
let n = t.trim();
|
|
77
|
+
n && n !== e.title && E.rename.mutate({
|
|
78
|
+
doc: e,
|
|
79
|
+
title: n
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
return /* @__PURE__ */ p(_, {
|
|
45
83
|
className: "sub-pages",
|
|
46
84
|
contentEditable: !1,
|
|
47
85
|
"data-drag-handle": !0,
|
|
48
|
-
children: [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ f("p", {
|
|
88
|
+
className: "sub-pages-title",
|
|
89
|
+
children: v("subPages")
|
|
90
|
+
}),
|
|
91
|
+
C.length === 0 ? /* @__PURE__ */ f("p", {
|
|
92
|
+
className: "sub-pages-empty",
|
|
93
|
+
children: v("noSubPages")
|
|
94
|
+
}) : /* @__PURE__ */ f("ul", { children: C.map((e) => /* @__PURE__ */ p("li", {
|
|
95
|
+
className: "group flex items-center gap-1",
|
|
96
|
+
children: [k === e.key ? /* @__PURE__ */ f("input", {
|
|
97
|
+
autoFocus: !0,
|
|
98
|
+
defaultValue: e.title,
|
|
99
|
+
"aria-label": v("rename"),
|
|
100
|
+
className: "sub-pages-rename",
|
|
101
|
+
onBlur: (t) => N(e, t.currentTarget.value),
|
|
102
|
+
onKeyDown: (t) => {
|
|
103
|
+
t.key === "Enter" && N(e, t.currentTarget.value), t.key === "Escape" && A(void 0);
|
|
104
|
+
}
|
|
105
|
+
}) : /* @__PURE__ */ p(s, {
|
|
106
|
+
to: "/$workspace/docs/$doc",
|
|
107
|
+
params: {
|
|
108
|
+
workspace: b,
|
|
109
|
+
doc: i(e)
|
|
110
|
+
},
|
|
111
|
+
className: "sub-pages-link",
|
|
112
|
+
children: [/* @__PURE__ */ f(c, {
|
|
113
|
+
icon: e.icon,
|
|
114
|
+
className: "size-4"
|
|
115
|
+
}), /* @__PURE__ */ f("span", {
|
|
116
|
+
className: "truncate",
|
|
117
|
+
children: e.title
|
|
118
|
+
})]
|
|
119
|
+
}), j && /* @__PURE__ */ f(h, {
|
|
120
|
+
items: () => M(e),
|
|
121
|
+
label: y("moreActionsFor", { name: e.title || v("untitled") })
|
|
122
|
+
})]
|
|
123
|
+
}, e.key)) }),
|
|
124
|
+
O
|
|
125
|
+
]
|
|
69
126
|
});
|
|
70
127
|
}
|
|
71
|
-
export {
|
|
128
|
+
export { x as SubPages };
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { attachmentIdOf as e, attachmentPrefix as t, attachmentSizes as n, attachmentURL as r, githubMedia as i, githubUpload as a, mediaURL as o, playableLink as s, videoName as c } from "../lib/attachments.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { basePath as l } from "../lib/base.js";
|
|
3
|
+
import { issuePath as u } from "../lib/branch.js";
|
|
4
|
+
import { docLooks as d } from "../lib/docLooks.js";
|
|
5
|
+
import { githubLinkPage as f } from "../lib/githubLink.js";
|
|
6
|
+
import { glossary as p, mentions as m } from "../lib/glossary.js";
|
|
7
|
+
import { issueKeyOfHref as ee, issueKeyPattern as te, issueRefs as h } from "../lib/issueRefs.js";
|
|
6
8
|
import { linkedIssues as g } from "../lib/linkedIssues.js";
|
|
7
|
-
import { mentionable as _, mentionsIn as
|
|
9
|
+
import { mentionable as _, mentionsIn as ne } from "../lib/mentions.js";
|
|
8
10
|
import { statusGroup as v } from "../lib/statusGroup.js";
|
|
9
11
|
import { teamNames as y } from "../lib/teamNames.js";
|
|
10
|
-
import { docIcons as
|
|
11
|
-
import { iconImageURL as
|
|
12
|
-
import { createElement as
|
|
13
|
-
import { Extension as
|
|
14
|
-
import { Plugin as
|
|
15
|
-
import { Decoration as
|
|
12
|
+
import { docIcons as re } from "./DocIcon.js";
|
|
13
|
+
import { iconImageURL as b } from "./EntityIcon.js";
|
|
14
|
+
import { createElement as x } from "react";
|
|
15
|
+
import { Extension as S } from "@tiptap/react";
|
|
16
|
+
import { Plugin as C, PluginKey as w, TextSelection as ie } from "@tiptap/pm/state";
|
|
17
|
+
import { Decoration as T, DecorationSet as E } from "@tiptap/pm/view";
|
|
16
18
|
import ae from "@tiptap/extension-image";
|
|
17
|
-
import { createRoot as
|
|
19
|
+
import { createRoot as D } from "react-dom/client";
|
|
18
20
|
// src/components/editorPlugins.ts
|
|
19
|
-
var
|
|
21
|
+
var O = new w("knowledgeTerms"), oe = /* @__PURE__ */ new Set([
|
|
20
22
|
"ArrowLeft",
|
|
21
23
|
"ArrowRight",
|
|
22
24
|
"ArrowUp",
|
|
23
25
|
"ArrowDown",
|
|
24
26
|
"Home",
|
|
25
27
|
"End"
|
|
26
|
-
]),
|
|
27
|
-
function
|
|
28
|
+
]), k = "tandem:term-caret";
|
|
29
|
+
function A(e, t) {
|
|
28
30
|
e.descendants((e, n) => {
|
|
29
31
|
if (!e.isTextblock) return !0;
|
|
30
32
|
if (e.type.spec.code) return !1;
|
|
@@ -37,12 +39,12 @@ function O(e, t) {
|
|
|
37
39
|
}), t(r, n + 1), !1;
|
|
38
40
|
});
|
|
39
41
|
}
|
|
40
|
-
function
|
|
41
|
-
let n =
|
|
42
|
-
if (n.length === 0) return
|
|
42
|
+
function j(e, t) {
|
|
43
|
+
let n = p.forms();
|
|
44
|
+
if (n.length === 0) return E.empty;
|
|
43
45
|
let r = [];
|
|
44
|
-
return
|
|
45
|
-
for (let a of
|
|
46
|
+
return A(e, (e, i) => {
|
|
47
|
+
for (let a of m(e, n)) r.push(T.inline(i + a.from, i + a.to, {
|
|
46
48
|
class: "kb-term",
|
|
47
49
|
"data-term": a.id,
|
|
48
50
|
...t && {
|
|
@@ -50,19 +52,19 @@ function k(e, t) {
|
|
|
50
52
|
role: "button"
|
|
51
53
|
}
|
|
52
54
|
}));
|
|
53
|
-
}),
|
|
55
|
+
}), E.create(e, r);
|
|
54
56
|
}
|
|
55
|
-
function
|
|
57
|
+
function M(e) {
|
|
56
58
|
let t = /* @__PURE__ */ new Set();
|
|
57
59
|
return e.descendants((e) => {
|
|
58
60
|
for (let n of e.marks) n.type.name === "link" && t.add(String(n.attrs.href ?? ""));
|
|
59
61
|
return !0;
|
|
60
62
|
}), t;
|
|
61
63
|
}
|
|
62
|
-
function
|
|
64
|
+
function N(e, t, n) {
|
|
63
65
|
let r = [], i = /* @__PURE__ */ new Set();
|
|
64
|
-
return
|
|
65
|
-
for (let o of
|
|
66
|
+
return A(e, (e, a) => {
|
|
67
|
+
for (let o of m(e, t)) i.has(o.id) || (i.add(o.id), n(o.id) || r.push({
|
|
66
68
|
from: a + o.from,
|
|
67
69
|
to: a + o.to,
|
|
68
70
|
id: o.id,
|
|
@@ -70,49 +72,49 @@ function j(e, t, n) {
|
|
|
70
72
|
}));
|
|
71
73
|
}), r;
|
|
72
74
|
}
|
|
73
|
-
var
|
|
75
|
+
var se = S.create({
|
|
74
76
|
name: "knowledgeTerms",
|
|
75
77
|
addProseMirrorPlugins() {
|
|
76
78
|
let e = this.editor, t = "";
|
|
77
|
-
return [new
|
|
78
|
-
key:
|
|
79
|
+
return [new C({
|
|
80
|
+
key: O,
|
|
79
81
|
state: {
|
|
80
|
-
init: (t, n) =>
|
|
81
|
-
apply: (t, n) => t.docChanged || t.getMeta(
|
|
82
|
+
init: (t, n) => j(n.doc, !e.isEditable),
|
|
83
|
+
apply: (t, n) => t.docChanged || t.getMeta(O) ? j(t.doc, !e.isEditable) : n.map(t.mapping, t.doc)
|
|
82
84
|
},
|
|
83
85
|
props: {
|
|
84
|
-
decorations: (e) =>
|
|
86
|
+
decorations: (e) => O.getState(e),
|
|
85
87
|
handleKeyDown: (e, n) => (t = n.key, !1)
|
|
86
88
|
},
|
|
87
89
|
view: (e) => ({
|
|
88
90
|
update: (e, n) => {
|
|
89
91
|
let { selection: r } = e.state;
|
|
90
|
-
if (!
|
|
92
|
+
if (!oe.has(t) || !r.empty || n.selection.eq(r)) return;
|
|
91
93
|
t = "";
|
|
92
94
|
let i = e.domAtPos(r.from);
|
|
93
|
-
(i.node.nodeType === 1 ? i.node : i.node.parentElement)?.closest(".kb-term")?.dispatchEvent(new CustomEvent(
|
|
95
|
+
(i.node.nodeType === 1 ? i.node : i.node.parentElement)?.closest(".kb-term")?.dispatchEvent(new CustomEvent(k, { bubbles: !0 }));
|
|
94
96
|
},
|
|
95
|
-
destroy:
|
|
96
|
-
e.isDestroyed || e.dispatch(e.state.tr.setMeta(
|
|
97
|
+
destroy: p.subscribe(() => {
|
|
98
|
+
e.isDestroyed || e.dispatch(e.state.tr.setMeta(O, !0));
|
|
97
99
|
})
|
|
98
100
|
})
|
|
99
101
|
})];
|
|
100
102
|
}
|
|
101
103
|
});
|
|
102
|
-
function
|
|
104
|
+
function ce(e) {
|
|
103
105
|
return e.docLinks;
|
|
104
106
|
}
|
|
105
|
-
var
|
|
107
|
+
var le = S.create({
|
|
106
108
|
name: "docLinks",
|
|
107
109
|
addStorage: () => ({ handlers: /* @__PURE__ */ new Set() }),
|
|
108
110
|
addProseMirrorPlugins() {
|
|
109
111
|
let e = this.storage;
|
|
110
|
-
return [new
|
|
112
|
+
return [new C({ props: { handleKeyDown: (t, n) => {
|
|
111
113
|
for (let t of e.handlers) if (t(n)) return !0;
|
|
112
114
|
return !1;
|
|
113
115
|
} } })];
|
|
114
116
|
}
|
|
115
|
-
}), P = "tandem:open-image",
|
|
117
|
+
}), P = "tandem:open-image", ue = ae.extend({
|
|
116
118
|
parseHTML() {
|
|
117
119
|
return [{
|
|
118
120
|
tag: "img[src]",
|
|
@@ -159,7 +161,7 @@ function F(e, t) {
|
|
|
159
161
|
var I = { linkHint: "" };
|
|
160
162
|
function L(e, t, n) {
|
|
161
163
|
let r = document.createElement("span");
|
|
162
|
-
r.className = "recording-unplayable", r.contentEditable = "false", n && r.append(R(t)), e.replaceWith(r), a(t) &&
|
|
164
|
+
r.className = "recording-unplayable", r.contentEditable = "false", n && r.append(R(t)), e.replaceWith(r), a(t) && f().then((e) => {
|
|
163
165
|
if (!e || !I.linkHint) return;
|
|
164
166
|
let t = document.createElement("a");
|
|
165
167
|
t.className = "recording-hint", t.href = e, t.textContent = I.linkHint, r.append(t);
|
|
@@ -169,12 +171,12 @@ function R(e) {
|
|
|
169
171
|
let t = document.createElement("a");
|
|
170
172
|
return t.href = r(e), t.textContent = e, t.rel = "noopener noreferrer", t.target = "_blank", t;
|
|
171
173
|
}
|
|
172
|
-
var z = new
|
|
174
|
+
var z = new w("attachmentFiles");
|
|
173
175
|
function B(e, t) {
|
|
174
176
|
e.descendants((e, n) => {
|
|
175
177
|
if (e.type.name !== "paragraph") return !0;
|
|
176
178
|
let r = e.childCount === 1 ? e.firstChild : null, i = r?.marks.find((e) => e.type.name === "link")?.attrs.href;
|
|
177
|
-
return r?.isText && i && s(i) && r.text?.trim() === i && t.push(
|
|
179
|
+
return r?.isText && i && s(i) && r.text?.trim() === i && t.push(T.widget(n + e.nodeSize - 1, () => {
|
|
178
180
|
let e = document.createElement("span");
|
|
179
181
|
return e.className = "recording-box", e.contentEditable = "false", e.append(F(i, (e) => L(e, i, !1))), e;
|
|
180
182
|
}, {
|
|
@@ -190,11 +192,11 @@ function V(t) {
|
|
|
190
192
|
return B(t, i), t.descendants((t, a) => {
|
|
191
193
|
if (!t.isText) return !0;
|
|
192
194
|
let o = t.marks.find((e) => e.type.name === "link"), s = e(o?.attrs.href), l = s && n.get(s);
|
|
193
|
-
l && i.push(
|
|
195
|
+
l && i.push(T.inline(a, a + t.nodeSize, { "data-size": l }));
|
|
194
196
|
let u = !n.get(s ?? "") && c.test(t.text ?? "");
|
|
195
197
|
if (s && (n.isVideo(s) || u) && o) {
|
|
196
198
|
let e = r(String(o.attrs.href));
|
|
197
|
-
i.push(
|
|
199
|
+
i.push(T.widget(a + t.nodeSize, () => {
|
|
198
200
|
let t = document.createElement("video");
|
|
199
201
|
return t.className = "attachment-video", t.src = e, t.controls = !0, t.preload = "metadata", t.contentEditable = "false", u && t.addEventListener("error", () => t.remove(), { once: !0 }), t;
|
|
200
202
|
}, {
|
|
@@ -205,13 +207,13 @@ function V(t) {
|
|
|
205
207
|
}));
|
|
206
208
|
}
|
|
207
209
|
return !1;
|
|
208
|
-
}),
|
|
210
|
+
}), E.create(t, i);
|
|
209
211
|
}
|
|
210
|
-
var H =
|
|
212
|
+
var H = S.create({
|
|
211
213
|
name: "attachmentFiles",
|
|
212
214
|
priority: 1e3,
|
|
213
215
|
addProseMirrorPlugins() {
|
|
214
|
-
return [new
|
|
216
|
+
return [new C({
|
|
215
217
|
key: z,
|
|
216
218
|
state: {
|
|
217
219
|
init: (e, t) => V(t.doc),
|
|
@@ -239,13 +241,13 @@ var H = b.create({
|
|
|
239
241
|
}) })
|
|
240
242
|
})];
|
|
241
243
|
}
|
|
242
|
-
}), U = new
|
|
244
|
+
}), U = new w("linkedIssues");
|
|
243
245
|
function W(e) {
|
|
244
246
|
let t = [], n, r = () => {
|
|
245
247
|
let e = n && g.get(n.href);
|
|
246
248
|
if (n && e) {
|
|
247
249
|
let { identifier: r, title: i, status: a } = e;
|
|
248
|
-
t.push(
|
|
250
|
+
t.push(T.widget(n.end, () => {
|
|
249
251
|
let e = document.createElement("button");
|
|
250
252
|
return e.type = "button", e.className = "linked-issue", e.dataset.linkedIssue = r, e.dataset.category = v(a), e.contentEditable = "false", e.title = `${r} ${i}`, e.textContent = `${r} · ${a.name}`, e;
|
|
251
253
|
}, {
|
|
@@ -262,12 +264,12 @@ function W(e) {
|
|
|
262
264
|
href: i,
|
|
263
265
|
end: t + e.nodeSize
|
|
264
266
|
}), !1;
|
|
265
|
-
}), r(),
|
|
267
|
+
}), r(), E.create(e, t);
|
|
266
268
|
}
|
|
267
|
-
var
|
|
269
|
+
var de = S.create({
|
|
268
270
|
name: "linkedIssues",
|
|
269
271
|
addProseMirrorPlugins() {
|
|
270
|
-
return [new
|
|
272
|
+
return [new C({
|
|
271
273
|
key: U,
|
|
272
274
|
state: {
|
|
273
275
|
init: (e, t) => W(t.doc),
|
|
@@ -285,44 +287,48 @@ var le = b.create({
|
|
|
285
287
|
}) })
|
|
286
288
|
})];
|
|
287
289
|
}
|
|
288
|
-
}), G = new
|
|
289
|
-
function
|
|
290
|
+
}), G = new w("issueMentions");
|
|
291
|
+
function fe(e) {
|
|
290
292
|
let t = document.createElement("span");
|
|
291
293
|
return t.className = "issue-mention-status", t.dataset.category = e, t.contentEditable = "false", t;
|
|
292
294
|
}
|
|
293
295
|
function K(e) {
|
|
294
296
|
let t = h.workspace();
|
|
295
|
-
if (!t) return
|
|
296
|
-
let n = [], r = [], i = (e,
|
|
297
|
-
let
|
|
298
|
-
if (!
|
|
299
|
-
r.push(
|
|
297
|
+
if (!t) return E.empty;
|
|
298
|
+
let n = [], r = [], i = (e, i, a, o) => {
|
|
299
|
+
let s = h.get(a);
|
|
300
|
+
if (!s) {
|
|
301
|
+
r.push(a);
|
|
300
302
|
return;
|
|
301
303
|
}
|
|
302
|
-
let
|
|
303
|
-
n.push(
|
|
304
|
+
let c = v(s.status);
|
|
305
|
+
n.push(T.widget(e, () => fe(c), {
|
|
304
306
|
side: -1,
|
|
305
|
-
key: `dot-${
|
|
306
|
-
}),
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
307
|
+
key: `dot-${a}-${c}`
|
|
308
|
+
}), T.inline(e, i, {
|
|
309
|
+
...o ? {
|
|
310
|
+
nodeName: "a",
|
|
311
|
+
href: `${l}${u(t, s.identifier)}`
|
|
312
|
+
} : {},
|
|
313
|
+
class: o ? "issue-mention issue-mention-key" : "issue-mention",
|
|
314
|
+
"data-issue": s.identifier,
|
|
315
|
+
title: `${s.identifier} ${s.title} · ${s.status.name}`
|
|
316
|
+
})), o && n.push(T.widget(i, () => {
|
|
311
317
|
let e = document.createElement("span");
|
|
312
|
-
return e.className = "issue-mention-title", e.contentEditable = "false", e.textContent =
|
|
318
|
+
return e.className = "issue-mention-title", e.contentEditable = "false", e.textContent = s.title, e;
|
|
313
319
|
}, {
|
|
314
320
|
side: 1,
|
|
315
|
-
key: `title-${
|
|
321
|
+
key: `title-${a}-${s.title}`
|
|
316
322
|
}));
|
|
317
323
|
};
|
|
318
|
-
|
|
319
|
-
for (let n of e.matchAll(
|
|
324
|
+
A(e, (e, t) => {
|
|
325
|
+
for (let n of e.matchAll(te)) {
|
|
320
326
|
let e = n[1] ?? "";
|
|
321
327
|
i(t + (n.index ?? 0), t + (n.index ?? 0) + e.length, e, !0);
|
|
322
328
|
}
|
|
323
329
|
});
|
|
324
330
|
let a, o = () => {
|
|
325
|
-
let e = a &&
|
|
331
|
+
let e = a && ee(a.href, t);
|
|
326
332
|
a && e && i(a.from, a.to, e, !1), a = void 0;
|
|
327
333
|
};
|
|
328
334
|
return e.descendants((e, t) => {
|
|
@@ -336,12 +342,12 @@ function K(e) {
|
|
|
336
342
|
from: t,
|
|
337
343
|
to: t + e.nodeSize
|
|
338
344
|
}), !1;
|
|
339
|
-
}), o(), r.length > 0 && h.want(r),
|
|
345
|
+
}), o(), r.length > 0 && h.want(r), E.create(e, n);
|
|
340
346
|
}
|
|
341
|
-
var
|
|
347
|
+
var pe = S.create({
|
|
342
348
|
name: "issueMentions",
|
|
343
349
|
addProseMirrorPlugins() {
|
|
344
|
-
return [new
|
|
350
|
+
return [new C({
|
|
345
351
|
key: G,
|
|
346
352
|
state: {
|
|
347
353
|
init: (e, t) => K(t.doc),
|
|
@@ -353,22 +359,22 @@ var de = b.create({
|
|
|
353
359
|
}) })
|
|
354
360
|
})];
|
|
355
361
|
}
|
|
356
|
-
}), q = new
|
|
362
|
+
}), q = new w("teamNames");
|
|
357
363
|
function J(e) {
|
|
358
364
|
let t = y.forms();
|
|
359
|
-
if (t.length === 0) return
|
|
365
|
+
if (t.length === 0) return E.empty;
|
|
360
366
|
let n = [];
|
|
361
|
-
return
|
|
362
|
-
for (let i of
|
|
367
|
+
return A(e, (e, r) => {
|
|
368
|
+
for (let i of m(e, t, !0)) n.push(T.inline(r + i.from, r + i.to, {
|
|
363
369
|
class: "team-mention",
|
|
364
370
|
"data-team": i.id
|
|
365
371
|
}));
|
|
366
|
-
}),
|
|
372
|
+
}), E.create(e, n);
|
|
367
373
|
}
|
|
368
|
-
var
|
|
374
|
+
var me = S.create({
|
|
369
375
|
name: "teamNames",
|
|
370
376
|
addProseMirrorPlugins() {
|
|
371
|
-
return [new
|
|
377
|
+
return [new C({
|
|
372
378
|
key: q,
|
|
373
379
|
state: {
|
|
374
380
|
init: (e, t) => J(t.doc),
|
|
@@ -380,20 +386,20 @@ var fe = b.create({
|
|
|
380
386
|
}) })
|
|
381
387
|
})];
|
|
382
388
|
}
|
|
383
|
-
}), Y = new
|
|
389
|
+
}), Y = new w("peopleMentions");
|
|
384
390
|
function X(e) {
|
|
385
391
|
let t = [];
|
|
386
|
-
return
|
|
387
|
-
for (let r of
|
|
392
|
+
return A(e, (e, n) => {
|
|
393
|
+
for (let r of ne(e)) _.has(r.username) && t.push(T.inline(n + r.from, n + r.to, {
|
|
388
394
|
class: "person-mention",
|
|
389
395
|
"data-username": r.username
|
|
390
396
|
}));
|
|
391
|
-
}),
|
|
397
|
+
}), E.create(e, t);
|
|
392
398
|
}
|
|
393
|
-
var
|
|
399
|
+
var he = S.create({
|
|
394
400
|
name: "peopleMentions",
|
|
395
401
|
addProseMirrorPlugins() {
|
|
396
|
-
return [new
|
|
402
|
+
return [new C({
|
|
397
403
|
key: Y,
|
|
398
404
|
state: {
|
|
399
405
|
init: (e, t) => X(t.doc),
|
|
@@ -405,17 +411,17 @@ var pe = b.create({
|
|
|
405
411
|
}) })
|
|
406
412
|
})];
|
|
407
413
|
}
|
|
408
|
-
}), Z = new
|
|
409
|
-
function
|
|
414
|
+
}), Z = new w("docLinkIcons"), Q = /* @__PURE__ */ new WeakMap();
|
|
415
|
+
function ge(e) {
|
|
410
416
|
let t = document.createElement("span");
|
|
411
417
|
t.className = "doc-link-icon", t.contentEditable = "false";
|
|
412
|
-
let n =
|
|
418
|
+
let n = b(e), r = e.startsWith("icon:") ? re[e.slice(5)] : void 0;
|
|
413
419
|
if (n) {
|
|
414
420
|
let e = document.createElement("img");
|
|
415
421
|
e.src = n, e.alt = "", t.appendChild(e);
|
|
416
422
|
} else if (r) {
|
|
417
|
-
let e =
|
|
418
|
-
queueMicrotask(() => e.render(
|
|
423
|
+
let e = D(t);
|
|
424
|
+
queueMicrotask(() => e.render(x(r, { className: "size-[0.95em]" }))), Q.set(t, e);
|
|
419
425
|
} else t.textContent = e;
|
|
420
426
|
return t;
|
|
421
427
|
}
|
|
@@ -425,8 +431,8 @@ function $(e) {
|
|
|
425
431
|
if (!e.isText) return !0;
|
|
426
432
|
let a = e.marks.find((e) => e.type.name === "link"), o = String(a?.attrs.href ?? ""), s = !!a && o === r && i === n;
|
|
427
433
|
if (r = a ? o : "", n = i + e.nodeSize, !a || s || !o.includes("/docs/")) return !1;
|
|
428
|
-
let c =
|
|
429
|
-
return c && t.push(
|
|
434
|
+
let c = d.iconAt(o);
|
|
435
|
+
return c && t.push(T.widget(i, () => ge(c), {
|
|
430
436
|
side: 1,
|
|
431
437
|
marks: [a],
|
|
432
438
|
key: `doc-icon:${c}`,
|
|
@@ -436,24 +442,24 @@ function $(e) {
|
|
|
436
442
|
t && queueMicrotask(() => t.unmount());
|
|
437
443
|
}
|
|
438
444
|
})), !1;
|
|
439
|
-
}),
|
|
445
|
+
}), E.create(e, t);
|
|
440
446
|
}
|
|
441
|
-
var
|
|
447
|
+
var _e = S.create({
|
|
442
448
|
name: "docLinkIcons",
|
|
443
449
|
addProseMirrorPlugins() {
|
|
444
|
-
return [new
|
|
450
|
+
return [new C({
|
|
445
451
|
key: Z,
|
|
446
452
|
state: {
|
|
447
453
|
init: (e, t) => $(t.doc),
|
|
448
454
|
apply: (e, t) => e.docChanged || e.getMeta(Z) ? $(e.doc) : t
|
|
449
455
|
},
|
|
450
456
|
props: { decorations: (e) => Z.getState(e) },
|
|
451
|
-
view: (e) => ({ destroy:
|
|
457
|
+
view: (e) => ({ destroy: d.subscribe(() => {
|
|
452
458
|
e.isDestroyed || e.dispatch(e.state.tr.setMeta(Z, !0));
|
|
453
459
|
}) })
|
|
454
460
|
})];
|
|
455
461
|
}
|
|
456
|
-
}),
|
|
462
|
+
}), ve = S.create({
|
|
457
463
|
name: "moveBlock",
|
|
458
464
|
addKeyboardShortcuts() {
|
|
459
465
|
let e = (e) => () => {
|
|
@@ -470,4 +476,4 @@ var he = b.create({
|
|
|
470
476
|
};
|
|
471
477
|
}
|
|
472
478
|
});
|
|
473
|
-
export { H as AttachmentFiles,
|
|
479
|
+
export { H as AttachmentFiles, ue as AttachmentImage, _e as DocLinkIcons, le as DocLinks, pe as IssueMentions, se as KnowledgeTerms, de as LinkedIssues, ve as MoveBlock, he as PeopleMentions, me as TeamNames, M as linksIn, P as openImageEvent, ce as pickerKeys, R as plainLink, F as recordingPlayer, I as recordingText, k as termCaretEvent, N as unlinkedMentions, L as unplayable };
|
package/package.json
CHANGED
|
@@ -198,7 +198,7 @@ function j() {
|
|
|
198
198
|
"aria-label": g("groupBy"),
|
|
199
199
|
size: "sm",
|
|
200
200
|
width: "content"
|
|
201
|
-
}) : /* @__PURE__ */ D(C, {
|
|
201
|
+
}) : R.length > 0 && /* @__PURE__ */ D(C, {
|
|
202
202
|
multiple: !0,
|
|
203
203
|
value: W.columns ?? R.map((e) => e.id),
|
|
204
204
|
items: R.map((e) => ({
|
|
@@ -259,7 +259,7 @@ function ae({ workspace: n, team: r, isAdmin: a }) {
|
|
|
259
259
|
children: v
|
|
260
260
|
}), /* @__PURE__ */ q(N, {
|
|
261
261
|
text: v,
|
|
262
|
-
label: o("
|
|
262
|
+
label: o("formLink"),
|
|
263
263
|
size: "sm",
|
|
264
264
|
variant: "ghost"
|
|
265
265
|
})]
|
|
@@ -287,7 +287,7 @@ function ae({ workspace: n, team: r, isAdmin: a }) {
|
|
|
287
287
|
children: y
|
|
288
288
|
}), /* @__PURE__ */ q(N, {
|
|
289
289
|
text: y,
|
|
290
|
-
label: o("
|
|
290
|
+
label: o("emailAddress"),
|
|
291
291
|
size: "sm",
|
|
292
292
|
variant: "ghost"
|
|
293
293
|
})]
|
package/styles.css
CHANGED
|
@@ -572,6 +572,8 @@ body[data-tandem] > :not(:has(.tandem)) {
|
|
|
572
572
|
}
|
|
573
573
|
.prose-issue .sub-pages a.sub-pages-link {
|
|
574
574
|
display: flex;
|
|
575
|
+
flex: 1;
|
|
576
|
+
min-width: 0;
|
|
575
577
|
align-items: center;
|
|
576
578
|
gap: 0.5rem;
|
|
577
579
|
border: 0;
|
|
@@ -586,6 +588,16 @@ body[data-tandem] > :not(:has(.tandem)) {
|
|
|
586
588
|
.prose-issue .sub-pages a.sub-pages-link:hover {
|
|
587
589
|
background: var(--color-muted);
|
|
588
590
|
}
|
|
591
|
+
/* A sub-page being renamed in its row (SubPages). */
|
|
592
|
+
.prose-issue .sub-pages .sub-pages-rename {
|
|
593
|
+
flex: 1;
|
|
594
|
+
min-width: 0;
|
|
595
|
+
border-radius: 0.375rem;
|
|
596
|
+
border: 1px solid var(--color-border);
|
|
597
|
+
background: var(--color-background);
|
|
598
|
+
padding: 0.25rem 0.5rem;
|
|
599
|
+
font: inherit;
|
|
600
|
+
}
|
|
589
601
|
/* An issue synced with the one a link goes to, after the link (LinkedIssues). */
|
|
590
602
|
.prose-issue .linked-issue {
|
|
591
603
|
display: inline-flex;
|
|
@@ -777,9 +789,17 @@ body[data-tandem] > :not(:has(.tandem)) {
|
|
|
777
789
|
.issue-mention-key {
|
|
778
790
|
white-space: nowrap;
|
|
779
791
|
}
|
|
792
|
+
/* A bare key is a link (IssueMentions): it keeps the text's color, not a link's. */
|
|
793
|
+
a.issue-mention {
|
|
794
|
+
color: inherit;
|
|
795
|
+
text-decoration: none;
|
|
796
|
+
}
|
|
780
797
|
[contenteditable="false"] .issue-mention {
|
|
781
798
|
cursor: pointer;
|
|
782
799
|
}
|
|
800
|
+
[contenteditable="false"] a.issue-mention:hover {
|
|
801
|
+
color: var(--color-primary);
|
|
802
|
+
}
|
|
783
803
|
.issue-mention-title {
|
|
784
804
|
margin-inline-start: 0.25rem;
|
|
785
805
|
color: var(--color-muted-foreground);
|