@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.
@@ -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
- sharedBy: "Shared by {owner}",
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
- sharedBy: "Compartida por {owner}",
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
- sharedBy: "{owner} が共有",
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
- sharedBy: "{owner}님이 공유함",
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
- sharedBy: "由 {owner} 共享",
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: r }) => n(await t.GET("/api/v1/workspaces/{workspace}/views", {
709
- params: s(e),
710
- signal: r
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: [
@@ -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 { AttachmentFiles as o, AttachmentImage as s, DocLinkIcons as c, DocLinks as l, IssueMentions as u, KnowledgeTerms as d, LinkedIssues as f, PeopleMentions as p, TeamNames as m, recordingText as h } from "./editorPlugins.js";
8
- import { FigmaEmbedBlock as g } from "./Figma.js";
9
- import { IssueListBlock as _ } from "./IssueListBlock.js";
10
- import { LinkCard as v } from "./LinkCard.js";
11
- import { MentionPicker as y } from "./MentionPicker.js";
12
- import { Diagrams as b, MathBlock as x, MathInline as ee } from "./mathDiagrams.js";
13
- import { SlashMenu as te } from "./SlashMenu.js";
14
- import { SubPages as ne } from "./SubPages.js";
15
- import { MarkdownTable as S } from "./table.js";
16
- import { DetailsContent as C, DetailsSummary as w, Toggle as T } from "./toggle.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";
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 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
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: h = "", collaborative: y = !1 } = {}) {
65
+ function Q({ editable: i = !0, placeholder: g = "", collaborative: b = !1 } = {}) {
65
66
  return [
66
- V.configure({
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 && !y ? {} : { trailingNode: !1 },
74
- ...y ? { undoRedo: !1 } : {}
71
+ ...i && !b ? {} : { trailingNode: !1 },
72
+ ...b ? { undoRedo: !1 } : {}
73
+ }),
74
+ o.configure({
75
+ openOnClick: !i,
76
+ autolink: !0
75
77
  }),
76
- N.configure({ lowlight: ue }),
78
+ P.configure({ lowlight: de }),
77
79
  e,
78
- F,
79
- P.configure({ nested: !0 }),
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
- I.configure({ table: !1 }),
86
- S.configure({
87
+ L.configure({ table: !1 }),
88
+ C.configure({
87
89
  resizable: !1,
88
90
  allowTableNodeSelection: !1
89
91
  }),
90
- L.configure({ placeholder: h }),
91
- R,
92
- d,
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
- u,
101
+ h,
102
+ d,
101
103
  a,
102
104
  r,
103
- v,
104
- g,
105
- E,
105
+ y,
106
+ _,
107
+ D,
108
+ te,
106
109
  ee,
107
110
  x,
108
- b,
109
- _,
111
+ v,
110
112
  n
111
113
  ];
112
114
  }
@@ -125,9 +127,9 @@ function $(e) {
125
127
  }
126
128
  };
127
129
  }
128
- function de({ 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 }) {
129
- h.linkHint = k("video")("linkHint");
130
- let p = O({
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 = O(d);
144
+ let m = k(d);
143
145
  m.current = d;
144
- let g = B({
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
- D(() => {
172
- !g || g.isDestroyed || g.isFocused || g.getMarkdown() === e || g.commands.setContent(e, {
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
- }, [g, e]), D(() => {
177
- g?.setEditable(s);
178
- }, [g, s]);
179
- let _ = O(f);
180
- return _.current = f, D(() => (_.current?.(g), () => _.current?.(null)), [g]), /* @__PURE__ */ M(A, { children: [
181
- /* @__PURE__ */ j(z, { editor: g }),
182
- s && /* @__PURE__ */ j(i, { editor: g }),
183
- s && /* @__PURE__ */ j(te, {
184
- editor: g,
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__ */ j(y, { editor: g })
189
+ s && /* @__PURE__ */ M(b, { editor: h })
188
190
  ] });
189
191
  }
190
- export { de as Editor, Q as contentExtensions, $ as fileHandlers };
192
+ export { fe as Editor, Q as contentExtensions, $ as fileHandlers };