@parallelworks/tandem-web 0.189.7 → 0.189.9

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.
@@ -750,8 +750,17 @@ var e = {
750
750
  findIssue: "Find the issue it duplicates…",
751
751
  declineReason: "Why decline it? (optional, posted as a comment)",
752
752
  acceptInto: "Status",
753
- acceptWhereItIs: "Where it is now",
754
- assignToMe: "Assign to me"
753
+ assignToMe: "Assign to me",
754
+ acceptedToast: "{key} accepted",
755
+ declinedToast: "{key} declined",
756
+ assignedToYou: "assigned to you",
757
+ assignedTo: "assigned to {name}",
758
+ undo: "Undo",
759
+ paneFailed: "This issue couldn't load",
760
+ paneFailedHelp: "Pick another one, or open it on its own page.",
761
+ addReason: "Add a reason",
762
+ acceptKey: "Accept (1)",
763
+ declineKey: "Decline (2)"
755
764
  },
756
765
  subscription: {
757
766
  subscribe: "Subscribe to updates on this issue",
@@ -750,8 +750,17 @@ var e = {
750
750
  findIssue: "Busca la incidencia que duplica…",
751
751
  declineReason: "¿Por qué rechazarla? (opcional, se publica como comentario)",
752
752
  acceptInto: "Estado",
753
- acceptWhereItIs: "Donde está ahora",
754
- assignToMe: "Asignármela"
753
+ assignToMe: "Asignármela",
754
+ acceptedToast: "{key} aceptada",
755
+ declinedToast: "{key} rechazada",
756
+ assignedToYou: "asignada a ti",
757
+ assignedTo: "asignada a {name}",
758
+ undo: "Deshacer",
759
+ paneFailed: "No se pudo cargar esta incidencia",
760
+ paneFailedHelp: "Elige otra o ábrela en su propia página.",
761
+ addReason: "Añadir un motivo",
762
+ acceptKey: "Aceptar (1)",
763
+ declineKey: "Rechazar (2)"
755
764
  },
756
765
  subscription: {
757
766
  subscribe: "Suscribirse a las novedades de esta incidencia",
@@ -750,8 +750,17 @@ var e = {
750
750
  findIssue: "重複先のイシューを検索…",
751
751
  declineReason: "却下する理由(任意、コメントとして投稿)",
752
752
  acceptInto: "ステータス",
753
- acceptWhereItIs: "現在のまま",
754
- assignToMe: "自分に割り当てる"
753
+ assignToMe: "自分に割り当てる",
754
+ acceptedToast: "{key} を受け入れました",
755
+ declinedToast: "{key} を却下しました",
756
+ assignedToYou: "あなたに割り当て",
757
+ assignedTo: "{name} に割り当て",
758
+ undo: "元に戻す",
759
+ paneFailed: "この課題を読み込めませんでした",
760
+ paneFailedHelp: "別の課題を選ぶか、課題のページで開いてください。",
761
+ addReason: "理由を追加",
762
+ acceptKey: "受け入れる (1)",
763
+ declineKey: "却下する (2)"
755
764
  },
756
765
  subscription: {
757
766
  subscribe: "この課題の更新を購読",
@@ -750,8 +750,17 @@ var e = {
750
750
  findIssue: "중복된 이슈 찾기…",
751
751
  declineReason: "거절하는 이유 (선택, 댓글로 게시됨)",
752
752
  acceptInto: "상태",
753
- acceptWhereItIs: "현재 상태 그대로",
754
- assignToMe: "나에게 할당"
753
+ assignToMe: "나에게 할당",
754
+ acceptedToast: "{key} 수락됨",
755
+ declinedToast: "{key} 거절됨",
756
+ assignedToYou: "나에게 할당됨",
757
+ assignedTo: "{name}에게 할당됨",
758
+ undo: "실행 취소",
759
+ paneFailed: "이 이슈를 불러오지 못했습니다",
760
+ paneFailedHelp: "다른 이슈를 고르거나 이슈 페이지에서 여세요.",
761
+ addReason: "사유 추가",
762
+ acceptKey: "수락 (1)",
763
+ declineKey: "거절 (2)"
755
764
  },
756
765
  subscription: {
757
766
  subscribe: "이 이슈의 업데이트 구독",
@@ -750,8 +750,17 @@ var e = {
750
750
  findIssue: "查找它重复的问题…",
751
751
  declineReason: "拒绝原因(可选,作为评论发布)",
752
752
  acceptInto: "状态",
753
- acceptWhereItIs: "保持当前状态",
754
- assignToMe: "分配给我"
753
+ assignToMe: "分配给我",
754
+ acceptedToast: "已接受 {key}",
755
+ declinedToast: "已拒绝 {key}",
756
+ assignedToYou: "已分配给你",
757
+ assignedTo: "已分配给 {name}",
758
+ undo: "撤销",
759
+ paneFailed: "无法加载此问题",
760
+ paneFailedHelp: "选择另一个问题,或在其页面中打开。",
761
+ addReason: "添加原因",
762
+ acceptKey: "接受 (1)",
763
+ declineKey: "拒绝 (2)"
755
764
  },
756
765
  subscription: {
757
766
  subscribe: "订阅此议题的更新",
@@ -1,5 +1,5 @@
1
1
  import { attachmentsQuery as e, meQuery as t, workspaceQuery as n } from "../api/queries.js";
2
- import { attachmentSizes as r, attachmentURL as i, insertAttachments as a, uploadAttachment as o } from "../lib/attachments.js";
2
+ import { attachmentSizes as r, insertAttachments as i, mediaURL as a, uploadAttachment as o } from "../lib/attachments.js";
3
3
  import { openImageEvent as s } from "./editorPlugins.js";
4
4
  import { AttachmentIcon as c, CloseIcon as l, DownloadIcon as u } from "./icons.js";
5
5
  import { ErrorText as d, IconButton as f, Modal as p, ModalTitle as m, buttonClasses as h } from "@parallelworks/ui";
@@ -23,10 +23,10 @@ function A(t, n) {
23
23
  return j((e) => o(t, n, e), () => r.invalidateQueries({ queryKey: e(t, n).queryKey }));
24
24
  }
25
25
  function j(e, t) {
26
- let n = S("issue.attachments"), r = b(), [i, o] = y(0), [s, c] = y(null), l = k();
26
+ let n = S("issue.attachments"), r = b(), [a, o] = y(0), [s, c] = y(null), l = k();
27
27
  return {
28
- upload: async (i, s, u) => {
29
- if (!i || s.length === 0) return;
28
+ upload: async (a, s, u) => {
29
+ if (!a || s.length === 0) return;
30
30
  if (!l) {
31
31
  c(n("off", { name: s[0]?.name ?? "" }));
32
32
  return;
@@ -44,9 +44,9 @@ function j(e, t) {
44
44
  } finally {
45
45
  o((e) => e - 1);
46
46
  }
47
- d.length > 0 && !i.isDestroyed && a(i, d, u), t?.();
47
+ d.length > 0 && !a.isDestroyed && i(a, d, u), t?.();
48
48
  },
49
- pending: i,
49
+ pending: a,
50
50
  error: s
51
51
  };
52
52
  }
@@ -93,14 +93,14 @@ function P() {
93
93
  });
94
94
  }
95
95
  function F({ workspace: t, identifier: n }) {
96
- let a = S("issue.attachments"), o = S("common"), c = P(), { data: d } = D(e(t, n)), [g, v] = y(null);
96
+ let i = S("issue.attachments"), o = S("common"), c = P(), { data: d } = D(e(t, n)), [g, v] = y(null);
97
97
  _(() => {
98
98
  r.set(new Map((d ?? []).map((e) => [e.id, c(e.size)])), new Set((d ?? []).filter((e) => e.video).map((e) => e.id)));
99
99
  }, [d]), _(() => () => r.set(/* @__PURE__ */ new Map()), []), _(() => {
100
100
  let e = (e) => v(e.detail);
101
101
  return document.addEventListener(s, e), () => document.removeEventListener(s, e);
102
102
  }, []);
103
- let b = g ? i(g.src) : "";
103
+ let b = g ? a(g.src) : "";
104
104
  return /* @__PURE__ */ E(p, {
105
105
  open: g !== null,
106
106
  onClose: () => v(null),
@@ -111,13 +111,13 @@ function F({ workspace: t, identifier: n }) {
111
111
  children: [
112
112
  /* @__PURE__ */ T(m, {
113
113
  className: "min-w-0 flex-1 truncate text-sm font-medium",
114
- children: g?.name || a("image")
114
+ children: g?.name || i("image")
115
115
  }),
116
116
  /* @__PURE__ */ E("a", {
117
117
  href: b,
118
118
  download: g?.name ?? "",
119
119
  className: h({ size: "sm" }),
120
- children: [/* @__PURE__ */ T(u, { className: "size-3.5" }), a("download")]
120
+ children: [/* @__PURE__ */ T(u, { className: "size-3.5" }), i("download")]
121
121
  }),
122
122
  /* @__PURE__ */ T(f, {
123
123
  icon: /* @__PURE__ */ T(l, {}),
@@ -131,7 +131,7 @@ function F({ workspace: t, identifier: n }) {
131
131
  className: "flex min-h-0 flex-1 items-center justify-center overflow-auto bg-muted p-4",
132
132
  children: g && /* @__PURE__ */ T("img", {
133
133
  src: b,
134
- alt: g.name || a("image"),
134
+ alt: g.name || i("image"),
135
135
  className: "max-h-[calc(90vh-5rem)] max-w-full object-contain"
136
136
  })
137
137
  })]