@arbidocs/blocks 0.4.140 → 0.4.142
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/dist/agents/index.cjs +264 -263
- package/dist/agents/index.js +7 -6
- package/dist/calls/index.cjs +3 -3
- package/dist/calls/index.js +2 -2
- package/dist/{chunk-5Y3SAJUK.cjs → chunk-7NDW4KF4.cjs} +4 -4
- package/dist/{chunk-5Y3SAJUK.cjs.map → chunk-7NDW4KF4.cjs.map} +1 -1
- package/dist/chunk-AHDJXIUB.cjs +25 -0
- package/dist/chunk-AHDJXIUB.cjs.map +1 -0
- package/dist/{chunk-DAIHYDK6.cjs → chunk-DPGFEMVT.cjs} +11 -26
- package/dist/chunk-DPGFEMVT.cjs.map +1 -0
- package/dist/{chunk-ZAVEMQ37.cjs → chunk-DWZXSPMB.cjs} +3 -3
- package/dist/{chunk-ZAVEMQ37.cjs.map → chunk-DWZXSPMB.cjs.map} +1 -1
- package/dist/{chunk-ZNTHEXNJ.js → chunk-ETXYVO6E.js} +4 -4
- package/dist/{chunk-ZNTHEXNJ.js.map → chunk-ETXYVO6E.js.map} +1 -1
- package/dist/{chunk-5HFPRI3W.js → chunk-FUTMU4FR.js} +3 -3
- package/dist/{chunk-5HFPRI3W.js.map → chunk-FUTMU4FR.js.map} +1 -1
- package/dist/{chunk-BPUZEYSP.js → chunk-FXG7TFAG.js} +3 -3
- package/dist/{chunk-BPUZEYSP.js.map → chunk-FXG7TFAG.js.map} +1 -1
- package/dist/{chunk-YLUEQSMK.cjs → chunk-GBS6QVGS.cjs} +5 -5
- package/dist/{chunk-YLUEQSMK.cjs.map → chunk-GBS6QVGS.cjs.map} +1 -1
- package/dist/{chunk-SU7QY7U2.cjs → chunk-HIJUXAWS.cjs} +34 -33
- package/dist/chunk-HIJUXAWS.cjs.map +1 -0
- package/dist/{chunk-O6W6RW3B.js → chunk-I7WG3JRD.js} +206 -53
- package/dist/chunk-I7WG3JRD.js.map +1 -0
- package/dist/{chunk-RYEJ6AA5.js → chunk-N5X37J3D.js} +8 -7
- package/dist/chunk-N5X37J3D.js.map +1 -0
- package/dist/{chunk-OCDDWDH2.js → chunk-ON3TKY5Y.js} +3 -3
- package/dist/{chunk-OCDDWDH2.js.map → chunk-ON3TKY5Y.js.map} +1 -1
- package/dist/{chunk-DJM7DLCT.cjs → chunk-OPTBQSCV.cjs} +3 -3
- package/dist/{chunk-DJM7DLCT.cjs.map → chunk-OPTBQSCV.cjs.map} +1 -1
- package/dist/{chunk-IBIUPT23.js → chunk-PROK33G6.js} +8 -22
- package/dist/chunk-PROK33G6.js.map +1 -0
- package/dist/{chunk-UMG5S6H5.cjs → chunk-QIMVTGKS.cjs} +3 -3
- package/dist/{chunk-UMG5S6H5.cjs.map → chunk-QIMVTGKS.cjs.map} +1 -1
- package/dist/chunk-RLWIUUQ5.js +23 -0
- package/dist/chunk-RLWIUUQ5.js.map +1 -0
- package/dist/{chunk-ECERC6TI.js → chunk-VHJHY7TT.js} +3 -3
- package/dist/{chunk-ECERC6TI.js.map → chunk-VHJHY7TT.js.map} +1 -1
- package/dist/{chunk-GFRQG36Y.cjs → chunk-YFY3TQ6Q.cjs} +208 -52
- package/dist/chunk-YFY3TQ6Q.cjs.map +1 -0
- package/dist/collaboration/index.cjs +42 -42
- package/dist/collaboration/index.js +2 -2
- package/dist/connect/docx.cjs +6 -6
- package/dist/connect/docx.js +5 -5
- package/dist/connect/index.cjs +92 -91
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +15 -14
- package/dist/connect/index.js.map +1 -1
- package/dist/facts/index.cjs +2 -2
- package/dist/facts/index.js +2 -2
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.js +3 -3
- package/dist/home/index.cjs +2 -2
- package/dist/home/index.js +2 -2
- package/dist/index.cjs +585 -572
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -18
- package/dist/index.js.map +1 -1
- package/dist/lib/sidebar-mode.d.ts +1 -3
- package/dist/lib/use-close-on-escape.d.ts +6 -0
- package/dist/retrieval/index.cjs +1 -1
- package/dist/retrieval/index.js +1 -1
- package/dist/settings/index.cjs +40 -40
- package/dist/settings/index.js +5 -5
- package/dist/shell/ShellSidebar.d.ts +37 -0
- package/dist/shell/Sidebar.d.ts +6 -6
- package/dist/shell/index.cjs +55 -42
- package/dist/shell/index.d.ts +4 -1
- package/dist/shell/index.js +5 -4
- package/dist/shell/types.d.ts +18 -0
- package/dist/shell/use-sidebar-controller.d.ts +59 -0
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +3 -3
- package/dist/studio/index.js +3 -3
- package/dist/workflow-canvas/index.cjs +20 -19
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +7 -6
- package/dist/workflow-canvas/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/dist/chunk-DAIHYDK6.cjs.map +0 -1
- package/dist/chunk-GFRQG36Y.cjs.map +0 -1
- package/dist/chunk-IBIUPT23.js.map +0 -1
- package/dist/chunk-O6W6RW3B.js.map +0 -1
- package/dist/chunk-RYEJ6AA5.js.map +0 -1
- package/dist/chunk-SU7QY7U2.cjs.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -1,39 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkQIMVTGKS_cjs = require('../chunk-QIMVTGKS.cjs');
|
|
5
5
|
var chunk3BFGL2JL_cjs = require('../chunk-3BFGL2JL.cjs');
|
|
6
6
|
var chunkJZNXRMLH_cjs = require('../chunk-JZNXRMLH.cjs');
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-S24XEVPS.cjs');
|
|
9
|
-
require('../chunk-V5OAXIBN.cjs');
|
|
7
|
+
var chunk7NDW4KF4_cjs = require('../chunk-7NDW4KF4.cjs');
|
|
10
8
|
var chunkGFNELPDP_cjs = require('../chunk-GFNELPDP.cjs');
|
|
11
9
|
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
10
|
+
require('../chunk-S24XEVPS.cjs');
|
|
11
|
+
require('../chunk-V5OAXIBN.cjs');
|
|
12
12
|
require('../chunk-5FYU7ZIU.cjs');
|
|
13
13
|
var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
|
|
14
|
-
var
|
|
14
|
+
var chunkGBS6QVGS_cjs = require('../chunk-GBS6QVGS.cjs');
|
|
15
15
|
var chunkV46W7YLI_cjs = require('../chunk-V46W7YLI.cjs');
|
|
16
16
|
var chunkO6IEZDRC_cjs = require('../chunk-O6IEZDRC.cjs');
|
|
17
17
|
var chunkI2QSDQQV_cjs = require('../chunk-I2QSDQQV.cjs');
|
|
18
18
|
require('../chunk-RC25WMVB.cjs');
|
|
19
|
-
var
|
|
20
|
-
require('../chunk-
|
|
21
|
-
|
|
19
|
+
var chunkDPGFEMVT_cjs = require('../chunk-DPGFEMVT.cjs');
|
|
20
|
+
require('../chunk-WS5EX7DN.cjs');
|
|
21
|
+
require('../chunk-AHDJXIUB.cjs');
|
|
22
22
|
var chunkMIDXCYZB_cjs = require('../chunk-MIDXCYZB.cjs');
|
|
23
23
|
require('../chunk-ZW6FPIFC.cjs');
|
|
24
|
-
require('../chunk-WS5EX7DN.cjs');
|
|
25
24
|
require('../chunk-DETZZBG2.cjs');
|
|
25
|
+
require('../chunk-R26BK7YL.cjs');
|
|
26
26
|
var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
|
|
27
27
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
28
28
|
var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
|
|
29
|
-
require('../chunk-
|
|
29
|
+
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
30
|
+
require('../chunk-ADOKTJHV.cjs');
|
|
30
31
|
var chunk6YTHQ73P_cjs = require('../chunk-6YTHQ73P.cjs');
|
|
31
32
|
var chunkBIXHB4LV_cjs = require('../chunk-BIXHB4LV.cjs');
|
|
32
|
-
var
|
|
33
|
+
var chunkDWZXSPMB_cjs = require('../chunk-DWZXSPMB.cjs');
|
|
33
34
|
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
34
|
-
var chunk5FTIHRZH_cjs = require('../chunk-5FTIHRZH.cjs');
|
|
35
|
-
var chunkC4WSHRR6_cjs = require('../chunk-C4WSHRR6.cjs');
|
|
36
|
-
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
37
35
|
var chunk7YLJHTDC_cjs = require('../chunk-7YLJHTDC.cjs');
|
|
38
36
|
require('../chunk-B6MVQCXW.cjs');
|
|
39
37
|
var chunkJKB7WT7L_cjs = require('../chunk-JKB7WT7L.cjs');
|
|
@@ -43,6 +41,9 @@ require('../chunk-32HW2Q33.cjs');
|
|
|
43
41
|
require('../chunk-FX3K6LNZ.cjs');
|
|
44
42
|
require('../chunk-PPCATBOY.cjs');
|
|
45
43
|
require('../chunk-MHVNT4J3.cjs');
|
|
44
|
+
var chunk5FTIHRZH_cjs = require('../chunk-5FTIHRZH.cjs');
|
|
45
|
+
var chunkC4WSHRR6_cjs = require('../chunk-C4WSHRR6.cjs');
|
|
46
|
+
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
46
47
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
47
48
|
require('../chunk-DES3K4SD.cjs');
|
|
48
49
|
var react = require('react');
|
|
@@ -135,7 +136,7 @@ function ConnectedWorkspaceActivity({
|
|
|
135
136
|
[feed.data]
|
|
136
137
|
);
|
|
137
138
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
138
|
-
|
|
139
|
+
chunkGBS6QVGS_cjs.WorkspaceActivityList,
|
|
139
140
|
{
|
|
140
141
|
...listProps,
|
|
141
142
|
items,
|
|
@@ -563,7 +564,7 @@ function NotificationCenter({
|
|
|
563
564
|
}
|
|
564
565
|
];
|
|
565
566
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full bg-background", "data-testid": "notifications-page", children: [
|
|
566
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
567
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIMVTGKS_cjs.DraggableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
567
568
|
chunk7RGLTF76_cjs.TabHeader,
|
|
568
569
|
{
|
|
569
570
|
tabs,
|
|
@@ -808,7 +809,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
808
809
|
});
|
|
809
810
|
if (!workspaceId) return null;
|
|
810
811
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
811
|
-
|
|
812
|
+
chunkGBS6QVGS_cjs.WorkspaceNotificationMenu,
|
|
812
813
|
{
|
|
813
814
|
...menuProps,
|
|
814
815
|
level,
|
|
@@ -827,7 +828,7 @@ function ConnectedThreadFollow({
|
|
|
827
828
|
enabled: status === "authenticated"
|
|
828
829
|
});
|
|
829
830
|
if (!conversationId) return null;
|
|
830
|
-
const Control = as === "menu-item" ?
|
|
831
|
+
const Control = as === "menu-item" ? chunkGBS6QVGS_cjs.ThreadFollowMenuItem : chunkGBS6QVGS_cjs.ThreadFollowButton;
|
|
831
832
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
832
833
|
Control,
|
|
833
834
|
{
|
|
@@ -867,7 +868,7 @@ var DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS = {
|
|
|
867
868
|
var messageOf = (error) => error instanceof Error ? error.message : "";
|
|
868
869
|
function ConnectedWorkflowsTable({
|
|
869
870
|
filter,
|
|
870
|
-
describeTrigger = (w) =>
|
|
871
|
+
describeTrigger = (w) => chunkDPGFEMVT_cjs.workflowTriggerType(w).replaceAll("_", " "),
|
|
871
872
|
formatDate: formatDate2 = chunkKDG6FER6_cjs.fmtDate,
|
|
872
873
|
onViewRuns,
|
|
873
874
|
connectedLabels,
|
|
@@ -929,7 +930,7 @@ function ConnectedWorkflowsTable({
|
|
|
929
930
|
await act(workflow, () => remove.mutateAsync(workflow.external_id));
|
|
930
931
|
};
|
|
931
932
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
932
|
-
|
|
933
|
+
chunkDPGFEMVT_cjs.WorkflowsTable,
|
|
933
934
|
{
|
|
934
935
|
...tableProps,
|
|
935
936
|
workflows,
|
|
@@ -990,7 +991,7 @@ function toWorkflowFieldDocument(doc) {
|
|
|
990
991
|
function useConnectedWorkflowScopeSource() {
|
|
991
992
|
const { data: docs } = chunkJZNXRMLH_cjs.useConnectedDocuments();
|
|
992
993
|
const { data: tags } = chunkJZNXRMLH_cjs.useConnectedTags();
|
|
993
|
-
return react.useMemo(() =>
|
|
994
|
+
return react.useMemo(() => chunkDPGFEMVT_cjs.buildWorkflowScopeSource(docs, chunkDPGFEMVT_cjs.documentScopeLabels(tags)), [docs, tags]);
|
|
994
995
|
}
|
|
995
996
|
function useConnectedAgentOptions() {
|
|
996
997
|
const { data: agents } = react$1.useAgents();
|
|
@@ -1048,7 +1049,7 @@ function ConnectedWorkflowDocumentsField({
|
|
|
1048
1049
|
}
|
|
1049
1050
|
),
|
|
1050
1051
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1051
|
-
|
|
1052
|
+
chunkDPGFEMVT_cjs.WorkflowDocumentsField,
|
|
1052
1053
|
{
|
|
1053
1054
|
field,
|
|
1054
1055
|
value,
|
|
@@ -1070,7 +1071,7 @@ function ConnectedWorkflowLauncher({
|
|
|
1070
1071
|
const scopeSource = useConnectedWorkflowScopeSource();
|
|
1071
1072
|
const agents = useConnectedAgentOptions();
|
|
1072
1073
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1073
|
-
|
|
1074
|
+
chunkDPGFEMVT_cjs.WorkflowLauncher,
|
|
1074
1075
|
{
|
|
1075
1076
|
...props,
|
|
1076
1077
|
scopeSource,
|
|
@@ -1149,7 +1150,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1149
1150
|
onChange: (e) => {
|
|
1150
1151
|
const file = e.target.files?.[0];
|
|
1151
1152
|
e.target.value = "";
|
|
1152
|
-
if (file) void add(() =>
|
|
1153
|
+
if (file) void add(() => chunkDPGFEMVT_cjs.importSkillFile(file));
|
|
1153
1154
|
}
|
|
1154
1155
|
}
|
|
1155
1156
|
),
|
|
@@ -1174,7 +1175,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1174
1175
|
className: "space-y-2",
|
|
1175
1176
|
onSubmit: (e) => {
|
|
1176
1177
|
e.preventDefault();
|
|
1177
|
-
if (url.trim()) void add(() =>
|
|
1178
|
+
if (url.trim()) void add(() => chunkDPGFEMVT_cjs.importSkillFromUrl(url));
|
|
1178
1179
|
},
|
|
1179
1180
|
children: [
|
|
1180
1181
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
|
|
@@ -1238,9 +1239,9 @@ function ConnectedSkillsLibrary({
|
|
|
1238
1239
|
const [type, setType] = react.useState("all");
|
|
1239
1240
|
const [view, setView] = react.useState("gallery");
|
|
1240
1241
|
const [isBusy, setIsBusy] = react.useState(false);
|
|
1241
|
-
const all = react.useMemo(() =>
|
|
1242
|
+
const all = react.useMemo(() => chunkDPGFEMVT_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
|
|
1242
1243
|
const shown = react.useMemo(
|
|
1243
|
-
() =>
|
|
1244
|
+
() => chunkDPGFEMVT_cjs.filterLibrarySkills(all, { query, source, type }),
|
|
1244
1245
|
[all, query, source, type]
|
|
1245
1246
|
);
|
|
1246
1247
|
const current = all.find((s) => s.slug === selected) ?? null;
|
|
@@ -1251,21 +1252,21 @@ function ConnectedSkillsLibrary({
|
|
|
1251
1252
|
const count = (s) => all.filter((x) => x.source === s).length;
|
|
1252
1253
|
const sourceOptions = [
|
|
1253
1254
|
{ id: "all", label: "All", count: all.length },
|
|
1254
|
-
{ id: "builtin", label:
|
|
1255
|
-
{ id: "mine", label:
|
|
1256
|
-
{ id: "shared", label:
|
|
1255
|
+
{ id: "builtin", label: chunkDPGFEMVT_cjs.SKILL_SOURCE_LABELS.builtin, count: count("builtin") },
|
|
1256
|
+
{ id: "mine", label: chunkDPGFEMVT_cjs.SKILL_SOURCE_LABELS.mine, count: count("mine") },
|
|
1257
|
+
{ id: "shared", label: chunkDPGFEMVT_cjs.SKILL_SOURCE_LABELS.shared, count: count("shared") }
|
|
1257
1258
|
];
|
|
1258
1259
|
const types = [...new Set(all.map((s) => s.type))];
|
|
1259
1260
|
const typeOptions = [
|
|
1260
1261
|
{ id: "all", label: "Any kind" },
|
|
1261
|
-
...types.map((t) => ({ id: t, label:
|
|
1262
|
+
...types.map((t) => ({ id: t, label: chunkDPGFEMVT_cjs.SKILL_TYPE_LABELS[t] ?? t }))
|
|
1262
1263
|
];
|
|
1263
1264
|
const pick = (slug) => {
|
|
1264
1265
|
setSelected(slug);
|
|
1265
1266
|
setMode("detail");
|
|
1266
1267
|
};
|
|
1267
1268
|
const markdownOf = async (skill) => {
|
|
1268
|
-
if (!skill.docExtId) return
|
|
1269
|
+
if (!skill.docExtId) return chunkDPGFEMVT_cjs.workflowToSkillMarkdown(skill.workflow);
|
|
1269
1270
|
const response = await arbi.documents.download(skill.docExtId);
|
|
1270
1271
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
1271
1272
|
return response.text();
|
|
@@ -1273,7 +1274,7 @@ function ConnectedSkillsLibrary({
|
|
|
1273
1274
|
const saveAs = (slug, markdown, shared = false) => upload.mutateAsync([
|
|
1274
1275
|
{
|
|
1275
1276
|
folder: `${SKILL_FOLDER}${slug}`,
|
|
1276
|
-
fileName:
|
|
1277
|
+
fileName: chunkDPGFEMVT_cjs.SKILL_MAIN_FILENAME,
|
|
1277
1278
|
content: new Blob([markdown], { type: "text/markdown" }),
|
|
1278
1279
|
shared
|
|
1279
1280
|
}
|
|
@@ -1336,7 +1337,7 @@ function ConnectedSkillsLibrary({
|
|
|
1336
1337
|
try {
|
|
1337
1338
|
documentTools.downloadBlob(
|
|
1338
1339
|
new Blob([await markdownOf(skill)], { type: "text/markdown" }),
|
|
1339
|
-
|
|
1340
|
+
chunkDPGFEMVT_cjs.SKILL_MAIN_FILENAME
|
|
1340
1341
|
);
|
|
1341
1342
|
} catch (error) {
|
|
1342
1343
|
notify(errorText(error, "Could not export the skill"), "error");
|
|
@@ -1377,10 +1378,10 @@ function ConnectedSkillsLibrary({
|
|
|
1377
1378
|
}
|
|
1378
1379
|
)
|
|
1379
1380
|
] }),
|
|
1380
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1381
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkDPGFEMVT_cjs.SkillViewToggle, { value: view, onChange: setView })
|
|
1381
1382
|
] }),
|
|
1382
1383
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1383
|
-
|
|
1384
|
+
chunkDPGFEMVT_cjs.SkillFilterChips,
|
|
1384
1385
|
{
|
|
1385
1386
|
label: "Show",
|
|
1386
1387
|
value: source,
|
|
@@ -1389,7 +1390,7 @@ function ConnectedSkillsLibrary({
|
|
|
1389
1390
|
}
|
|
1390
1391
|
),
|
|
1391
1392
|
types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1392
|
-
|
|
1393
|
+
chunkDPGFEMVT_cjs.SkillFilterChips,
|
|
1393
1394
|
{
|
|
1394
1395
|
label: "Kind",
|
|
1395
1396
|
value: type,
|
|
@@ -1436,12 +1437,12 @@ function ConnectedSkillsLibrary({
|
|
|
1436
1437
|
view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
|
|
1437
1438
|
),
|
|
1438
1439
|
children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1439
|
-
|
|
1440
|
+
chunkDPGFEMVT_cjs.SkillTile,
|
|
1440
1441
|
{
|
|
1441
1442
|
name: skill.title,
|
|
1442
1443
|
testId: `skill-tile-${skill.slug}`,
|
|
1443
1444
|
description: skill.description,
|
|
1444
|
-
sourceLabel: skill.isShared ? `${
|
|
1445
|
+
sourceLabel: skill.isShared ? `${chunkDPGFEMVT_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkDPGFEMVT_cjs.SKILL_SOURCE_LABELS[skill.source],
|
|
1445
1446
|
type: skill.type,
|
|
1446
1447
|
icon,
|
|
1447
1448
|
layout: view,
|
|
@@ -1476,7 +1477,7 @@ function ConnectedSkillsLibrary({
|
|
|
1476
1477
|
}
|
|
1477
1478
|
),
|
|
1478
1479
|
mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1479
|
-
|
|
1480
|
+
chunkDPGFEMVT_cjs.SkillGenerateForm,
|
|
1480
1481
|
{
|
|
1481
1482
|
icon,
|
|
1482
1483
|
onGenerate: (desc) => {
|
|
@@ -1503,11 +1504,11 @@ function ConnectedSkillsLibrary({
|
|
|
1503
1504
|
),
|
|
1504
1505
|
mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
|
|
1505
1506
|
mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1506
|
-
|
|
1507
|
+
chunkDPGFEMVT_cjs.SkillLibraryDetail,
|
|
1507
1508
|
{
|
|
1508
1509
|
skill: current,
|
|
1509
1510
|
icon,
|
|
1510
|
-
instructions: current.docExtId ? currentText ?
|
|
1511
|
+
instructions: current.docExtId ? currentText ? chunkDPGFEMVT_cjs.parseSkillFrontmatter(currentText, chunkDPGFEMVT_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
|
|
1511
1512
|
isLoading: !!current.docExtId && textLoading,
|
|
1512
1513
|
actions: {
|
|
1513
1514
|
onRun: () => onRun(current.slug),
|
|
@@ -1542,7 +1543,7 @@ function SkillEditor({
|
|
|
1542
1543
|
const [seeded, setSeeded] = react.useState(!isEditing);
|
|
1543
1544
|
const [nameError, setNameError] = react.useState(null);
|
|
1544
1545
|
if (isEditing && !seeded && text !== void 0) {
|
|
1545
|
-
const parsed =
|
|
1546
|
+
const parsed = chunkDPGFEMVT_cjs.parseSkillFrontmatter(text, chunkDPGFEMVT_cjs.SKILL_MAIN_FILENAME);
|
|
1546
1547
|
setDescription(parsed.description ?? "");
|
|
1547
1548
|
setBody(parsed.content ?? "");
|
|
1548
1549
|
setSeeded(true);
|
|
@@ -1556,15 +1557,15 @@ function SkillEditor({
|
|
|
1556
1557
|
notify("Add a short description.", "error");
|
|
1557
1558
|
return;
|
|
1558
1559
|
}
|
|
1559
|
-
const slug =
|
|
1560
|
+
const slug = chunkDPGFEMVT_cjs.skillSlug(name);
|
|
1560
1561
|
try {
|
|
1561
|
-
await onSave(slug,
|
|
1562
|
+
await onSave(slug, chunkDPGFEMVT_cjs.serializeSkill({ name: slug, description, body }), isEditing);
|
|
1562
1563
|
} catch (err) {
|
|
1563
1564
|
notify(errorText(err, "Could not save the skill"), "error");
|
|
1564
1565
|
}
|
|
1565
1566
|
};
|
|
1566
1567
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1567
|
-
|
|
1568
|
+
chunkDPGFEMVT_cjs.SkillEditForm,
|
|
1568
1569
|
{
|
|
1569
1570
|
name,
|
|
1570
1571
|
onNameChange: setName,
|
|
@@ -1600,9 +1601,9 @@ function ConnectedAgentCreator({
|
|
|
1600
1601
|
agent,
|
|
1601
1602
|
initialName,
|
|
1602
1603
|
onSaved,
|
|
1603
|
-
capabilities =
|
|
1604
|
-
templates =
|
|
1605
|
-
types =
|
|
1604
|
+
capabilities = chunkDPGFEMVT_cjs.DEFAULT_AGENT_CAPABILITIES,
|
|
1605
|
+
templates = chunkDPGFEMVT_cjs.DEFAULT_AGENT_TEMPLATES,
|
|
1606
|
+
types = chunkDPGFEMVT_cjs.DEFAULT_AGENT_TYPES,
|
|
1606
1607
|
canRevokeWorkspaces = false,
|
|
1607
1608
|
labels
|
|
1608
1609
|
}) {
|
|
@@ -1644,7 +1645,7 @@ function ConnectedAgentCreator({
|
|
|
1644
1645
|
const initialValues = react.useMemo(
|
|
1645
1646
|
() => ({
|
|
1646
1647
|
name: agent?.given_name ?? initialName ?? "",
|
|
1647
|
-
persona: isEdit ?
|
|
1648
|
+
persona: isEdit ? chunkDPGFEMVT_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
|
|
1648
1649
|
modelName: String(agents.AGENT_MODEL_NAME ?? ""),
|
|
1649
1650
|
capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
|
|
1650
1651
|
type: "builtin",
|
|
@@ -1663,7 +1664,7 @@ function ConnectedAgentCreator({
|
|
|
1663
1664
|
try {
|
|
1664
1665
|
let agentExtId = agent?.external_id ?? early?.id ?? "";
|
|
1665
1666
|
if (!agentExtId) {
|
|
1666
|
-
if (!
|
|
1667
|
+
if (!chunkDPGFEMVT_cjs.isValidAgentName(values.name)) {
|
|
1667
1668
|
notify("Give the agent a name first.", "error");
|
|
1668
1669
|
return;
|
|
1669
1670
|
}
|
|
@@ -1699,7 +1700,7 @@ function ConnectedAgentCreator({
|
|
|
1699
1700
|
title: `agent-${name}`,
|
|
1700
1701
|
sections: {
|
|
1701
1702
|
Agents: {
|
|
1702
|
-
PERSONA:
|
|
1703
|
+
PERSONA: chunkDPGFEMVT_cjs.composePersona(name, values.persona),
|
|
1703
1704
|
...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
|
|
1704
1705
|
...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
|
|
1705
1706
|
ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
|
|
@@ -1722,7 +1723,7 @@ function ConnectedAgentCreator({
|
|
|
1722
1723
|
};
|
|
1723
1724
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1724
1725
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1725
|
-
|
|
1726
|
+
chunkDPGFEMVT_cjs.AgentCreator,
|
|
1726
1727
|
{
|
|
1727
1728
|
open: ready,
|
|
1728
1729
|
onOpenChange,
|
|
@@ -1738,11 +1739,11 @@ function ConnectedAgentCreator({
|
|
|
1738
1739
|
) : void 0,
|
|
1739
1740
|
revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
|
|
1740
1741
|
avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1741
|
-
|
|
1742
|
+
chunkDPGFEMVT_cjs.AgentAvatarField,
|
|
1742
1743
|
{
|
|
1743
1744
|
picture,
|
|
1744
1745
|
isBusy: avatarBusy,
|
|
1745
|
-
canGenerate: isEdit ||
|
|
1746
|
+
canGenerate: isEdit || chunkDPGFEMVT_cjs.isValidAgentName(values.name),
|
|
1746
1747
|
onGenerate: () => handleGenerateAvatar(values)
|
|
1747
1748
|
}
|
|
1748
1749
|
),
|
|
@@ -1794,7 +1795,7 @@ function ConnectedAgentCreator({
|
|
|
1794
1795
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
|
|
1795
1796
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
|
|
1796
1797
|
] }),
|
|
1797
|
-
connect && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1798
|
+
connect && /* @__PURE__ */ jsxRuntime.jsx(chunkDPGFEMVT_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
|
|
1798
1799
|
]
|
|
1799
1800
|
}
|
|
1800
1801
|
) })
|
|
@@ -1831,7 +1832,7 @@ function ConnectedWorkflowHistory({
|
|
|
1831
1832
|
const { openConversation } = chunkC4WSHRR6_cjs.useBlocksEnvironment();
|
|
1832
1833
|
const { data: runs = [], isLoading } = react$1.useWorkflowRuns(workflow?.external_id);
|
|
1833
1834
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1834
|
-
|
|
1835
|
+
chunkDPGFEMVT_cjs.TaskRunsDialog,
|
|
1835
1836
|
{
|
|
1836
1837
|
inline,
|
|
1837
1838
|
hideHeader,
|
|
@@ -1874,7 +1875,7 @@ function ConnectedTaskActivityDialog({
|
|
|
1874
1875
|
const member = members.find((m) => m.user.external_id === id)?.user;
|
|
1875
1876
|
const name = member && [member.given_name, member.family_name].filter(Boolean).join(" ") || member?.email;
|
|
1876
1877
|
const person = { id, label: isMe ? "You" : name || "Someone", isMe };
|
|
1877
|
-
return renderTaskPerson ? renderTaskPerson(person) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1878
|
+
return renderTaskPerson ? renderTaskPerson(person) : /* @__PURE__ */ jsxRuntime.jsx(chunkDPGFEMVT_cjs.PersonPill, { person });
|
|
1878
1879
|
},
|
|
1879
1880
|
[renderTaskPerson, userId, members]
|
|
1880
1881
|
);
|
|
@@ -1883,7 +1884,7 @@ function ConnectedTaskActivityDialog({
|
|
|
1883
1884
|
[agents]
|
|
1884
1885
|
);
|
|
1885
1886
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1886
|
-
|
|
1887
|
+
chunkDPGFEMVT_cjs.TaskActivityDialog,
|
|
1887
1888
|
{
|
|
1888
1889
|
open: true,
|
|
1889
1890
|
onOpenChange: (open) => !open && onClose(),
|
|
@@ -2029,7 +2030,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
2029
2030
|
);
|
|
2030
2031
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
2031
2032
|
const steps = react.useMemo(
|
|
2032
|
-
() => chunkOWCEQKAR_cjs.workflowSteps(workflow).length > 0 ? chunkOWCEQKAR_cjs.workflowSteps(workflow) :
|
|
2033
|
+
() => chunkOWCEQKAR_cjs.workflowSteps(workflow).length > 0 ? chunkOWCEQKAR_cjs.workflowSteps(workflow) : chunkDPGFEMVT_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
2033
2034
|
[workflow, conversation?.plan?.steps]
|
|
2034
2035
|
);
|
|
2035
2036
|
const activity = react$1.useConversationActivity(threadId, { live: !!threadId });
|
|
@@ -2089,7 +2090,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
2089
2090
|
criteria: [],
|
|
2090
2091
|
max_passes: 3,
|
|
2091
2092
|
documents: [],
|
|
2092
|
-
steps:
|
|
2093
|
+
steps: chunkDPGFEMVT_cjs.toPlanSteps(workflow, {
|
|
2093
2094
|
inputs: values,
|
|
2094
2095
|
resolveWorkflow: options.resolveWorkflow,
|
|
2095
2096
|
compose: options.compose
|
|
@@ -2176,7 +2177,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
2176
2177
|
const anyRunning = Object.values(states).some((s) => s.status === "running");
|
|
2177
2178
|
const needsStart = !threadId || idle && !anyRunning;
|
|
2178
2179
|
const runError = idle ? conversation?.last_error ?? null : null;
|
|
2179
|
-
const view =
|
|
2180
|
+
const view = chunkDPGFEMVT_cjs.useWorkflowView({
|
|
2180
2181
|
steps,
|
|
2181
2182
|
states,
|
|
2182
2183
|
inputs,
|
|
@@ -2344,7 +2345,7 @@ function WorkflowWordDialog({
|
|
|
2344
2345
|
title: title ?? labels.wordTitle,
|
|
2345
2346
|
size: "xl",
|
|
2346
2347
|
testId: "workflow-word-dialog",
|
|
2347
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2348
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunk7NDW4KF4_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
|
|
2348
2349
|
}
|
|
2349
2350
|
);
|
|
2350
2351
|
}
|
|
@@ -2653,7 +2654,7 @@ function ConnectedWorkflowRunner({
|
|
|
2653
2654
|
);
|
|
2654
2655
|
};
|
|
2655
2656
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2656
|
-
|
|
2657
|
+
chunkDPGFEMVT_cjs.WorkflowRunner,
|
|
2657
2658
|
{
|
|
2658
2659
|
people,
|
|
2659
2660
|
...runnerProps,
|
|
@@ -2699,7 +2700,7 @@ function ConnectedWorkflowRunner({
|
|
|
2699
2700
|
) }),
|
|
2700
2701
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2701
2702
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2702
|
-
|
|
2703
|
+
chunkDPGFEMVT_cjs.WorkflowStepBar,
|
|
2703
2704
|
{
|
|
2704
2705
|
run: view,
|
|
2705
2706
|
levels: chunkOWCEQKAR_cjs.stepLevels(view.steps),
|
|
@@ -2900,7 +2901,7 @@ function ConnectedTagTable({
|
|
|
2900
2901
|
const fail = (e) => setError(e instanceof Error ? e.message : String(e));
|
|
2901
2902
|
const snapshot = (data) => {
|
|
2902
2903
|
const title = exportTitle ?? KIND_TITLES[kind];
|
|
2903
|
-
const bytes =
|
|
2904
|
+
const bytes = chunkGBS6QVGS_cjs.tagTableDocx(data, {
|
|
2904
2905
|
title,
|
|
2905
2906
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
2906
2907
|
});
|
|
@@ -2910,7 +2911,7 @@ function ConnectedTagTable({
|
|
|
2910
2911
|
};
|
|
2911
2912
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2912
2913
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2913
|
-
|
|
2914
|
+
chunkGBS6QVGS_cjs.TagTable,
|
|
2914
2915
|
{
|
|
2915
2916
|
...props,
|
|
2916
2917
|
table,
|
|
@@ -3052,13 +3053,13 @@ function ConnectedProfileCard({
|
|
|
3052
3053
|
}
|
|
3053
3054
|
});
|
|
3054
3055
|
const display = profile?.fullName || "Unnamed";
|
|
3055
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3056
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkQIMVTGKS_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserCircle, {}), title, children: [
|
|
3056
3057
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3057
|
-
|
|
3058
|
+
chunkQIMVTGKS_cjs.ProfileCard,
|
|
3058
3059
|
{
|
|
3059
3060
|
avatar: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3060
3061
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3061
|
-
|
|
3062
|
+
chunkQIMVTGKS_cjs.AvatarPicker,
|
|
3062
3063
|
{
|
|
3063
3064
|
pictureUrl: profile?.picture,
|
|
3064
3065
|
initials: chunkKDG6FER6_cjs.initials(display),
|
|
@@ -3105,9 +3106,9 @@ function ConnectedIdentityVerification({
|
|
|
3105
3106
|
onNameAccepted: () => notify("Name updated to match your ID", "success")
|
|
3106
3107
|
});
|
|
3107
3108
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3108
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3109
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIMVTGKS_cjs.IdentityVerificationCard, { flow, labels, onManageBilling }),
|
|
3109
3110
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3110
|
-
|
|
3111
|
+
chunkQIMVTGKS_cjs.IdentityVerificationDialog,
|
|
3111
3112
|
{
|
|
3112
3113
|
flow,
|
|
3113
3114
|
accountName: profile?.fullName ?? "",
|
|
@@ -3120,7 +3121,7 @@ function ConnectedIdentityVerification({
|
|
|
3120
3121
|
function ConnectedRequireVerified({ children, labels }) {
|
|
3121
3122
|
const { data: profile } = react$1.useProfile();
|
|
3122
3123
|
const flow = react$1.useIdentityVerification();
|
|
3123
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3124
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQIMVTGKS_cjs.RequireVerified, { flow, accountName: profile?.fullName ?? "", labels, children });
|
|
3124
3125
|
}
|
|
3125
3126
|
function defaultUnmetPasswordRequirement(password) {
|
|
3126
3127
|
if (password.length < 8) return "Minimum 8 characters";
|
|
@@ -3153,7 +3154,7 @@ function ConnectedPasswordChangeDialog({
|
|
|
3153
3154
|
onRecoveryComplete
|
|
3154
3155
|
});
|
|
3155
3156
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3156
|
-
|
|
3157
|
+
chunkQIMVTGKS_cjs.PasswordChangeDialog,
|
|
3157
3158
|
{
|
|
3158
3159
|
open,
|
|
3159
3160
|
onClose: form.onCancel,
|
|
@@ -3179,10 +3180,10 @@ function ConnectedSecuritySection({
|
|
|
3179
3180
|
children
|
|
3180
3181
|
}) {
|
|
3181
3182
|
const [open, setOpen] = react.useState(false);
|
|
3182
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3183
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3183
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkQIMVTGKS_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, {}), title: "Security", children: [
|
|
3184
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkQIMVTGKS_cjs.SettingsCard, { padding: "sm", children: [
|
|
3184
3185
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3185
|
-
|
|
3186
|
+
chunkQIMVTGKS_cjs.SettingsActionRow,
|
|
3186
3187
|
{
|
|
3187
3188
|
title: "Change password",
|
|
3188
3189
|
description: "Used to sign in and to unlock your account key. Changing it keeps everything readable and re-encrypts nothing.",
|
|
@@ -3203,23 +3204,23 @@ function ConnectedSecuritySection({
|
|
|
3203
3204
|
] });
|
|
3204
3205
|
}
|
|
3205
3206
|
function ConnectedNotificationPreferences({
|
|
3206
|
-
categories =
|
|
3207
|
+
categories = chunkQIMVTGKS_cjs.EMAIL_NOTIFICATION_CATEGORIES,
|
|
3207
3208
|
title = "Notifications"
|
|
3208
3209
|
}) {
|
|
3209
3210
|
const keys = react.useMemo(
|
|
3210
|
-
() => categories ===
|
|
3211
|
+
() => categories === chunkQIMVTGKS_cjs.EMAIL_NOTIFICATION_CATEGORIES ? chunkQIMVTGKS_cjs.EMAIL_NOTIFICATION_KEYS : categories.map((c) => c.key),
|
|
3211
3212
|
[categories]
|
|
3212
3213
|
);
|
|
3213
3214
|
const prefs = react$1.useNotificationPreferences(keys);
|
|
3214
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3215
|
-
|
|
3215
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQIMVTGKS_cjs.SettingsSection, { title, children: /* @__PURE__ */ jsxRuntime.jsx(chunkQIMVTGKS_cjs.SettingsCard, { className: "space-y-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3216
|
+
chunkQIMVTGKS_cjs.NotificationCategoryList,
|
|
3216
3217
|
{
|
|
3217
3218
|
masterId: "emailNotifications",
|
|
3218
3219
|
masterTitle: "Email Notifications",
|
|
3219
3220
|
masterDescription: "Email me about activity when I\u2019m away",
|
|
3220
3221
|
masterChecked: prefs.masterChecked,
|
|
3221
3222
|
onMasterChange: prefs.setAll,
|
|
3222
|
-
categories:
|
|
3223
|
+
categories: chunkQIMVTGKS_cjs.toNotificationCategories(prefs.checked, categories),
|
|
3223
3224
|
onCategoryChange: prefs.setCategory
|
|
3224
3225
|
}
|
|
3225
3226
|
) }) });
|
|
@@ -3230,14 +3231,14 @@ function ConnectedSessionsRow({ renderSessionIcon }) {
|
|
|
3230
3231
|
const sessions = react$1.useSessions({ enabled: open });
|
|
3231
3232
|
const currentSessionId = react$1.useCurrentSessionId();
|
|
3232
3233
|
const terminate = react$1.useTerminateSession();
|
|
3233
|
-
const views =
|
|
3234
|
+
const views = chunkQIMVTGKS_cjs.toActiveSessionViews(sessions.data ?? [], {
|
|
3234
3235
|
currentSessionId,
|
|
3235
3236
|
terminatingId: terminate.isPending ? terminate.variables : null,
|
|
3236
3237
|
renderIcon: renderSessionIcon
|
|
3237
3238
|
});
|
|
3238
3239
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3239
3240
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3240
|
-
|
|
3241
|
+
chunkQIMVTGKS_cjs.SettingsRow,
|
|
3241
3242
|
{
|
|
3242
3243
|
label: "Active sessions",
|
|
3243
3244
|
description: "Devices and agents currently signed in to your account.",
|
|
@@ -3259,7 +3260,7 @@ function ConnectedSessionsRow({ renderSessionIcon }) {
|
|
|
3259
3260
|
}
|
|
3260
3261
|
),
|
|
3261
3262
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3262
|
-
|
|
3263
|
+
chunkQIMVTGKS_cjs.ActiveSessionsDialog,
|
|
3263
3264
|
{
|
|
3264
3265
|
open,
|
|
3265
3266
|
onOpenChange: setOpen,
|
|
@@ -3301,7 +3302,7 @@ function ConnectedLogoutDialog({
|
|
|
3301
3302
|
signOut.mutate({ everywhere, reason: "manual" });
|
|
3302
3303
|
};
|
|
3303
3304
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3304
|
-
|
|
3305
|
+
chunkQIMVTGKS_cjs.LogoutDialog,
|
|
3305
3306
|
{
|
|
3306
3307
|
open,
|
|
3307
3308
|
onClose,
|
|
@@ -3309,7 +3310,7 @@ function ConnectedLogoutDialog({
|
|
|
3309
3310
|
onLogoutAll: () => void run(true),
|
|
3310
3311
|
canLogoutAll,
|
|
3311
3312
|
isOnline,
|
|
3312
|
-
sessions:
|
|
3313
|
+
sessions: chunkQIMVTGKS_cjs.toLogoutSessionViews(sessions.data ?? []),
|
|
3313
3314
|
renderSessionIcon
|
|
3314
3315
|
}
|
|
3315
3316
|
);
|
|
@@ -3331,7 +3332,7 @@ function ConnectedDangerZone({ renderSubscriptionLink }) {
|
|
|
3331
3332
|
});
|
|
3332
3333
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3333
3334
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3334
|
-
|
|
3335
|
+
chunkQIMVTGKS_cjs.SettingsDangerZone,
|
|
3335
3336
|
{
|
|
3336
3337
|
isOpen: zoneOpen,
|
|
3337
3338
|
onToggle: () => setZoneOpen((o) => !o),
|
|
@@ -3351,12 +3352,12 @@ function ConnectedDangerZone({ renderSubscriptionLink }) {
|
|
|
3351
3352
|
}
|
|
3352
3353
|
),
|
|
3353
3354
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3354
|
-
|
|
3355
|
+
chunkQIMVTGKS_cjs.DeleteAccountDialog,
|
|
3355
3356
|
{
|
|
3356
3357
|
open: dialogOpen,
|
|
3357
3358
|
onClose: flow.onClose,
|
|
3358
3359
|
step: flow.step,
|
|
3359
|
-
blockers:
|
|
3360
|
+
blockers: chunkQIMVTGKS_cjs.toDeleteBlockerViews(flow.blockers, renderSubscriptionLink),
|
|
3360
3361
|
onContinue: flow.onContinue,
|
|
3361
3362
|
onBack: flow.onBack,
|
|
3362
3363
|
userEmail,
|
|
@@ -5340,7 +5341,7 @@ function ConnectedMailbox({
|
|
|
5340
5341
|
}
|
|
5341
5342
|
),
|
|
5342
5343
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5343
|
-
|
|
5344
|
+
chunkDWZXSPMB_cjs.ConfirmDialog,
|
|
5344
5345
|
{
|
|
5345
5346
|
isOpen: confirmDelete !== null,
|
|
5346
5347
|
onClose: () => setConfirmDelete(null),
|