@arbidocs/blocks 0.4.92 → 0.4.94
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 +209 -209
- package/dist/agents/index.js +4 -4
- package/dist/{chunk-6XS5IJ5R.cjs → chunk-3OXWJ3CZ.cjs} +5 -5
- package/dist/{chunk-6XS5IJ5R.cjs.map → chunk-3OXWJ3CZ.cjs.map} +1 -1
- package/dist/chunk-AF6RDAJF.js +14 -0
- package/dist/chunk-AF6RDAJF.js.map +1 -0
- package/dist/chunk-AOFATOT3.cjs +196 -0
- package/dist/chunk-AOFATOT3.cjs.map +1 -0
- package/dist/chunk-D3QPYKZG.js +173 -0
- package/dist/chunk-D3QPYKZG.js.map +1 -0
- package/dist/{chunk-2ZDFVRGV.cjs → chunk-E2AAIMXO.cjs} +975 -61
- package/dist/chunk-E2AAIMXO.cjs.map +1 -0
- package/dist/{chunk-DDYXFALG.cjs → chunk-KKU7MUWE.cjs} +5 -5
- package/dist/{chunk-DDYXFALG.cjs.map → chunk-KKU7MUWE.cjs.map} +1 -1
- package/dist/{chunk-EHF63UYP.cjs → chunk-LENXDIMY.cjs} +33 -65
- package/dist/chunk-LENXDIMY.cjs.map +1 -0
- package/dist/chunk-RC25WMVB.cjs +16 -0
- package/dist/chunk-RC25WMVB.cjs.map +1 -0
- package/dist/{chunk-5YXG342J.cjs → chunk-RPCQBET5.cjs} +3 -3
- package/dist/{chunk-5YXG342J.cjs.map → chunk-RPCQBET5.cjs.map} +1 -1
- package/dist/{chunk-YFPIJUV3.cjs → chunk-RZGVMV6B.cjs} +5 -5
- package/dist/{chunk-YFPIJUV3.cjs.map → chunk-RZGVMV6B.cjs.map} +1 -1
- package/dist/{chunk-W2R7YVFM.js → chunk-WXLKMEMB.js} +970 -65
- package/dist/chunk-WXLKMEMB.js.map +1 -0
- package/dist/{chunk-BX62HJZU.js → chunk-YPKSLTL5.js} +3 -3
- package/dist/{chunk-BX62HJZU.js.map → chunk-YPKSLTL5.js.map} +1 -1
- package/dist/{chunk-5RQOVALO.js → chunk-Z3G65XHZ.js} +21 -52
- package/dist/chunk-Z3G65XHZ.js.map +1 -0
- package/dist/{chunk-W7NZRZ54.js → chunk-Z7OMEYDG.js} +3 -3
- package/dist/{chunk-W7NZRZ54.js.map → chunk-Z7OMEYDG.js.map} +1 -1
- package/dist/{chunk-UDLMLU6T.js → chunk-ZNDAXSDP.js} +3 -3
- package/dist/{chunk-UDLMLU6T.js.map → chunk-ZNDAXSDP.js.map} +1 -1
- package/dist/{chunk-5NQIBJPP.js → chunk-ZNGDEQBN.js} +5 -5
- package/dist/{chunk-5NQIBJPP.js.map → chunk-ZNGDEQBN.js.map} +1 -1
- package/dist/connect/docx.cjs +8 -6
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/docx.js +6 -4
- package/dist/connect/docx.js.map +1 -1
- package/dist/connect/index.cjs +44 -44
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +14 -14
- package/dist/connect/index.js.map +1 -1
- package/dist/docx/NativeDocxEditor.d.ts +6 -0
- package/dist/docx/definitions/DefinedTerms.d.ts +50 -0
- package/dist/docx/definitions/commands.d.ts +78 -0
- package/dist/docx/definitions/fragment.d.ts +29 -0
- package/dist/docx/definitions/port.d.ts +76 -0
- package/dist/docx/index.cjs +53 -15
- package/dist/docx/index.cjs.map +1 -1
- package/dist/docx/index.d.ts +3 -0
- package/dist/docx/index.js +5 -3
- package/dist/docx/index.js.map +1 -1
- package/dist/facts/index.cjs +9 -14
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.js +5 -12
- package/dist/facts/index.js.map +1 -1
- package/dist/files/index.cjs +2 -2
- package/dist/files/index.js +2 -2
- package/dist/home/index.cjs +1 -1
- package/dist/home/index.js +1 -1
- package/dist/index.cjs +845 -705
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +100 -13
- package/dist/index.js.map +1 -1
- package/dist/settings/index.cjs +35 -35
- package/dist/settings/index.js +3 -3
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/studio/index.cjs +1 -1
- package/dist/studio/index.js +1 -1
- package/dist/tags/definitions.d.ts +92 -0
- package/dist/tags/glossary.d.ts +44 -0
- package/dist/tags/index.d.ts +2 -0
- package/dist/tags/ooxml.d.ts +46 -0
- package/dist/tags/tagTableDocx.d.ts +1 -1
- package/dist/workflow-canvas/index.cjs +11 -11
- package/dist/workflow-canvas/index.js +4 -4
- package/dist/workspaces/index.cjs +1 -1
- package/dist/workspaces/index.js +1 -1
- package/package.json +4 -4
- package/src/docx/README.md +11 -0
- package/dist/chunk-2ZDFVRGV.cjs.map +0 -1
- package/dist/chunk-5RQOVALO.js.map +0 -1
- package/dist/chunk-EHF63UYP.cjs.map +0 -1
- package/dist/chunk-W2R7YVFM.js.map +0 -1
package/dist/connect/docx.cjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkRZGVMV6B_cjs = require('../chunk-RZGVMV6B.cjs');
|
|
5
5
|
require('../chunk-MUMH3Z6K.cjs');
|
|
6
|
-
var
|
|
7
|
-
require('../chunk-
|
|
6
|
+
var chunk3OXWJ3CZ_cjs = require('../chunk-3OXWJ3CZ.cjs');
|
|
7
|
+
require('../chunk-E2AAIMXO.cjs');
|
|
8
|
+
require('../chunk-AOFATOT3.cjs');
|
|
9
|
+
require('../chunk-RC25WMVB.cjs');
|
|
8
10
|
require('../chunk-7UTB4PHM.cjs');
|
|
9
11
|
require('../chunk-MHVNT4J3.cjs');
|
|
10
12
|
require('../chunk-DES3K4SD.cjs');
|
|
@@ -14,13 +16,13 @@ function ConnectedStreamedWordArtifact({
|
|
|
14
16
|
fontBaseUrl,
|
|
15
17
|
...props
|
|
16
18
|
}) {
|
|
17
|
-
const adapter =
|
|
18
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19
|
+
const adapter = chunkRZGVMV6B_cjs.useConnectedNativeDocxAdapter(fontBaseUrl);
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk3OXWJ3CZ_cjs.StreamedWordArtifact, { ...props, adapter });
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
Object.defineProperty(exports, "ConnectedNativeDocxEditor", {
|
|
22
24
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkRZGVMV6B_cjs.ConnectedNativeDocxEditor; }
|
|
24
26
|
});
|
|
25
27
|
exports.ConnectedStreamedWordArtifact = ConnectedStreamedWordArtifact;
|
|
26
28
|
//# sourceMappingURL=docx.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/connection/ConnectedStreamedWordArtifact.tsx"],"names":["useConnectedNativeDocxAdapter","jsx","StreamedWordArtifact"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/connection/ConnectedStreamedWordArtifact.tsx"],"names":["useConnectedNativeDocxAdapter","jsx","StreamedWordArtifact"],"mappings":";;;;;;;;;;;;;AAGO,SAAS,6BAAA,CAA8B;AAAA,EAC5C,WAAA;AAAA,EACA,GAAG;AACL,CAAA,EAA0E;AACxE,EAAA,MAAM,OAAA,GAAUA,gDAA8B,WAAW,CAAA;AACzD,EAAA,uBAAOC,cAAA,CAACC,sCAAA,EAAA,EAAsB,GAAG,KAAA,EAAO,OAAA,EAAkB,CAAA;AAC5D","file":"docx.cjs","sourcesContent":["import { useConnectedNativeDocxAdapter } from './ConnectedNativeDocxEditor'\nimport { StreamedWordArtifact, type StreamedWordArtifactProps } from '../docx/StreamedWordArtifact'\n\nexport function ConnectedStreamedWordArtifact({\n fontBaseUrl,\n ...props\n}: Omit<StreamedWordArtifactProps, 'adapter'> & { fontBaseUrl?: string }) {\n const adapter = useConnectedNativeDocxAdapter(fontBaseUrl)\n return <StreamedWordArtifact {...props} adapter={adapter} />\n}\n"]}
|
package/dist/connect/docx.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useConnectedNativeDocxAdapter } from '../chunk-
|
|
3
|
-
export { ConnectedNativeDocxEditor } from '../chunk-
|
|
2
|
+
import { useConnectedNativeDocxAdapter } from '../chunk-ZNDAXSDP.js';
|
|
3
|
+
export { ConnectedNativeDocxEditor } from '../chunk-ZNDAXSDP.js';
|
|
4
4
|
import '../chunk-OYMWV45N.js';
|
|
5
|
-
import { StreamedWordArtifact } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import { StreamedWordArtifact } from '../chunk-YPKSLTL5.js';
|
|
6
|
+
import '../chunk-WXLKMEMB.js';
|
|
7
|
+
import '../chunk-D3QPYKZG.js';
|
|
8
|
+
import '../chunk-AF6RDAJF.js';
|
|
7
9
|
import '../chunk-AA3PT6KR.js';
|
|
8
10
|
import '../chunk-7F6CBP3Z.js';
|
|
9
11
|
import '../chunk-VUNV25KB.js';
|
package/dist/connect/docx.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/connection/ConnectedStreamedWordArtifact.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/connection/ConnectedStreamedWordArtifact.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAGO,SAAS,6BAAA,CAA8B;AAAA,EAC5C,WAAA;AAAA,EACA,GAAG;AACL,CAAA,EAA0E;AACxE,EAAA,MAAM,OAAA,GAAU,8BAA8B,WAAW,CAAA;AACzD,EAAA,uBAAO,GAAA,CAAC,oBAAA,EAAA,EAAsB,GAAG,KAAA,EAAO,OAAA,EAAkB,CAAA;AAC5D","file":"docx.js","sourcesContent":["import { useConnectedNativeDocxAdapter } from './ConnectedNativeDocxEditor'\nimport { StreamedWordArtifact, type StreamedWordArtifactProps } from '../docx/StreamedWordArtifact'\n\nexport function ConnectedStreamedWordArtifact({\n fontBaseUrl,\n ...props\n}: Omit<StreamedWordArtifactProps, 'adapter'> & { fontBaseUrl?: string }) {\n const adapter = useConnectedNativeDocxAdapter(fontBaseUrl)\n return <StreamedWordArtifact {...props} adapter={adapter} />\n}\n"]}
|
package/dist/connect/index.cjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkRPCQBET5_cjs = require('../chunk-RPCQBET5.cjs');
|
|
5
5
|
var chunkXMBYDLZQ_cjs = require('../chunk-XMBYDLZQ.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkRZGVMV6B_cjs = require('../chunk-RZGVMV6B.cjs');
|
|
7
7
|
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
8
8
|
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-E2AAIMXO.cjs');
|
|
10
10
|
var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var chunkLENXDIMY_cjs = require('../chunk-LENXDIMY.cjs');
|
|
12
|
+
var chunkAOFATOT3_cjs = require('../chunk-AOFATOT3.cjs');
|
|
13
|
+
require('../chunk-RC25WMVB.cjs');
|
|
13
14
|
var chunk3US5OIDQ_cjs = require('../chunk-3US5OIDQ.cjs');
|
|
14
15
|
var chunkN26CXGXC_cjs = require('../chunk-N26CXGXC.cjs');
|
|
15
16
|
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
@@ -17,16 +18,17 @@ require('../chunk-DETZZBG2.cjs');
|
|
|
17
18
|
require('../chunk-32HW2Q33.cjs');
|
|
18
19
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
19
20
|
require('../chunk-7D737FLE.cjs');
|
|
21
|
+
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
20
22
|
require('../chunk-ADOKTJHV.cjs');
|
|
23
|
+
var chunk3R6XBYL7_cjs = require('../chunk-3R6XBYL7.cjs');
|
|
24
|
+
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
25
|
+
require('../chunk-IXALYQT7.cjs');
|
|
21
26
|
var chunkMP6FK43E_cjs = require('../chunk-MP6FK43E.cjs');
|
|
22
27
|
require('../chunk-VGOFFCMT.cjs');
|
|
23
28
|
require('../chunk-B4SRYJLM.cjs');
|
|
24
29
|
require('../chunk-7UTB4PHM.cjs');
|
|
25
30
|
require('../chunk-PPCATBOY.cjs');
|
|
26
31
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
27
|
-
var chunk3R6XBYL7_cjs = require('../chunk-3R6XBYL7.cjs');
|
|
28
|
-
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
29
|
-
require('../chunk-IXALYQT7.cjs');
|
|
30
32
|
require('../chunk-FX3K6LNZ.cjs');
|
|
31
33
|
require('../chunk-MHVNT4J3.cjs');
|
|
32
34
|
require('../chunk-DES3K4SD.cjs');
|
|
@@ -117,7 +119,7 @@ function ConnectedWorkspaceActivity({
|
|
|
117
119
|
[feed.data]
|
|
118
120
|
);
|
|
119
121
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
120
|
-
|
|
122
|
+
chunkLENXDIMY_cjs.WorkspaceActivityList,
|
|
121
123
|
{
|
|
122
124
|
...listProps,
|
|
123
125
|
items,
|
|
@@ -143,7 +145,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
143
145
|
});
|
|
144
146
|
if (!workspaceId) return null;
|
|
145
147
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
-
|
|
148
|
+
chunkLENXDIMY_cjs.WorkspaceNotificationMenu,
|
|
147
149
|
{
|
|
148
150
|
...menuProps,
|
|
149
151
|
level,
|
|
@@ -162,7 +164,7 @@ function ConnectedThreadFollow({
|
|
|
162
164
|
enabled: status === "authenticated"
|
|
163
165
|
});
|
|
164
166
|
if (!conversationId) return null;
|
|
165
|
-
const Control = as === "menu-item" ?
|
|
167
|
+
const Control = as === "menu-item" ? chunkLENXDIMY_cjs.ThreadFollowMenuItem : chunkLENXDIMY_cjs.ThreadFollowButton;
|
|
166
168
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
167
169
|
Control,
|
|
168
170
|
{
|
|
@@ -661,7 +663,7 @@ function WorkflowWordDialog({
|
|
|
661
663
|
title: title ?? labels.wordTitle,
|
|
662
664
|
size: "xl",
|
|
663
665
|
testId: "workflow-word-dialog",
|
|
664
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
666
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunkRZGVMV6B_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
|
|
665
667
|
}
|
|
666
668
|
);
|
|
667
669
|
}
|
|
@@ -675,10 +677,8 @@ function WorkflowReviewGridDialog({
|
|
|
675
677
|
const { workspaceId } = chunkMUMH3Z6K_cjs.useConnection();
|
|
676
678
|
const allTags = react$1.useTags(workspaceId ?? void 0);
|
|
677
679
|
const all = react$1.useDocuments(workspaceId ?? void 0);
|
|
678
|
-
const
|
|
679
|
-
|
|
680
|
-
data: (all.data ?? []).filter((d) => documents.includes(d.external_id))
|
|
681
|
-
};
|
|
680
|
+
const isLoading = allTags.isLoading || all.isLoading || all.isFetching && !all.isFetchedAfterMount;
|
|
681
|
+
const docs = (all.data ?? []).filter((d) => documents.includes(d.external_id));
|
|
682
682
|
const columns = react.useMemo(
|
|
683
683
|
() => tags.map((id) => ({
|
|
684
684
|
id,
|
|
@@ -696,7 +696,7 @@ function WorkflowReviewGridDialog({
|
|
|
696
696
|
showDescription: true,
|
|
697
697
|
size: "xl",
|
|
698
698
|
testId: "workflow-review-grid",
|
|
699
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "overflow-auto", children:
|
|
699
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "overflow-auto", children: isLoading ? /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
700
700
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
701
701
|
" ",
|
|
702
702
|
labels.loadingDocument
|
|
@@ -712,7 +712,7 @@ function WorkflowReviewGridDialog({
|
|
|
712
712
|
c.id
|
|
713
713
|
))
|
|
714
714
|
] }) }),
|
|
715
|
-
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children:
|
|
715
|
+
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: docs.map((d) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { "data-testid": `workflow-review-grid-row-${d.external_id}`, children: [
|
|
716
716
|
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "sticky left-0 z-10 border-b border-border bg-background p-2 align-top", children: /* @__PURE__ */ jsxRuntime.jsx(DocumentName, { onClick: onOpenDocument && (() => onOpenDocument(d.external_id)), children: d.file_name ?? d.external_id }) }),
|
|
717
717
|
columns.map((c) => {
|
|
718
718
|
const note = d.doctags?.find((t) => t.tag_ext_id === c.id)?.note;
|
|
@@ -1202,17 +1202,17 @@ function ConnectedTagTable({
|
|
|
1202
1202
|
const fail = (e) => setError(e instanceof Error ? e.message : String(e));
|
|
1203
1203
|
const snapshot = (data) => {
|
|
1204
1204
|
const title = exportTitle ?? KIND_TITLES[kind];
|
|
1205
|
-
const bytes =
|
|
1205
|
+
const bytes = chunkLENXDIMY_cjs.tagTableDocx(data, {
|
|
1206
1206
|
title,
|
|
1207
1207
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
1208
1208
|
});
|
|
1209
1209
|
const stamp = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
1210
1210
|
const name = `${title.replace(/[\\/:*?"<>|]+/g, "-")} (${stamp}).docx`;
|
|
1211
|
-
return { blob: new Blob([bytes], { type:
|
|
1211
|
+
return { blob: new Blob([bytes], { type: chunkAOFATOT3_cjs.DOCX_MIME_TYPE }), name };
|
|
1212
1212
|
};
|
|
1213
1213
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1214
1214
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1215
|
-
|
|
1215
|
+
chunkLENXDIMY_cjs.TagTable,
|
|
1216
1216
|
{
|
|
1217
1217
|
...props,
|
|
1218
1218
|
table,
|
|
@@ -1350,12 +1350,12 @@ function ConnectedProfileCard({ notify: notify3, title = "Profile" }) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
});
|
|
1352
1352
|
const display = profile?.fullName || user?.name || "Unnamed";
|
|
1353
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1354
|
-
|
|
1353
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkRPCQBET5_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserCircle, {}), title, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1354
|
+
chunkRPCQBET5_cjs.ProfileCard,
|
|
1355
1355
|
{
|
|
1356
1356
|
avatar: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1357
1357
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1358
|
-
|
|
1358
|
+
chunkRPCQBET5_cjs.AvatarPicker,
|
|
1359
1359
|
{
|
|
1360
1360
|
pictureUrl: profile?.picture ?? user?.picture,
|
|
1361
1361
|
initials: chunkKDG6FER6_cjs.initials(display),
|
|
@@ -1397,9 +1397,9 @@ function ConnectedIdentityVerification({
|
|
|
1397
1397
|
onNameAccepted: () => notify3?.("Name updated to match your ID", "success")
|
|
1398
1398
|
});
|
|
1399
1399
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1400
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1400
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRPCQBET5_cjs.IdentityVerificationCard, { flow, labels }),
|
|
1401
1401
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1402
|
-
|
|
1402
|
+
chunkRPCQBET5_cjs.IdentityVerificationDialog,
|
|
1403
1403
|
{
|
|
1404
1404
|
flow,
|
|
1405
1405
|
accountName: profile?.fullName ?? "",
|
|
@@ -1411,7 +1411,7 @@ function ConnectedIdentityVerification({
|
|
|
1411
1411
|
function ConnectedRequireVerified({ children, labels }) {
|
|
1412
1412
|
const { data: profile } = react$1.useProfile();
|
|
1413
1413
|
const flow = react$1.useIdentityVerification();
|
|
1414
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1414
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkRPCQBET5_cjs.RequireVerified, { flow, accountName: profile?.fullName ?? "", labels, children });
|
|
1415
1415
|
}
|
|
1416
1416
|
function defaultUnmetPasswordRequirement(password) {
|
|
1417
1417
|
if (password.length < 8) return "Minimum 8 characters";
|
|
@@ -1436,10 +1436,10 @@ function ConnectedSecuritySection({
|
|
|
1436
1436
|
},
|
|
1437
1437
|
onClose: () => setOpen(false)
|
|
1438
1438
|
});
|
|
1439
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1440
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1439
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkRPCQBET5_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, {}), title: "Security", children: [
|
|
1440
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkRPCQBET5_cjs.SettingsCard, { padding: "sm", children: [
|
|
1441
1441
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1442
|
-
|
|
1442
|
+
chunkRPCQBET5_cjs.SettingsActionRow,
|
|
1443
1443
|
{
|
|
1444
1444
|
title: "Change password",
|
|
1445
1445
|
description: "Used to sign in and to unlock your account key. Changing it keeps everything readable and re-encrypts nothing.",
|
|
@@ -1450,7 +1450,7 @@ function ConnectedSecuritySection({
|
|
|
1450
1450
|
children
|
|
1451
1451
|
] }),
|
|
1452
1452
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1453
|
-
|
|
1453
|
+
chunkRPCQBET5_cjs.PasswordChangeDialog,
|
|
1454
1454
|
{
|
|
1455
1455
|
open,
|
|
1456
1456
|
onClose: form.onCancel,
|
|
@@ -1473,23 +1473,23 @@ function ConnectedSecuritySection({
|
|
|
1473
1473
|
] });
|
|
1474
1474
|
}
|
|
1475
1475
|
function ConnectedNotificationPreferences({
|
|
1476
|
-
categories =
|
|
1476
|
+
categories = chunkRPCQBET5_cjs.EMAIL_NOTIFICATION_CATEGORIES,
|
|
1477
1477
|
title = "Notifications"
|
|
1478
1478
|
}) {
|
|
1479
1479
|
const keys = react.useMemo(
|
|
1480
|
-
() => categories ===
|
|
1480
|
+
() => categories === chunkRPCQBET5_cjs.EMAIL_NOTIFICATION_CATEGORIES ? chunkRPCQBET5_cjs.EMAIL_NOTIFICATION_KEYS : categories.map((c) => c.key),
|
|
1481
1481
|
[categories]
|
|
1482
1482
|
);
|
|
1483
1483
|
const prefs = react$1.useNotificationPreferences(keys);
|
|
1484
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1485
|
-
|
|
1484
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkRPCQBET5_cjs.SettingsSection, { title, children: /* @__PURE__ */ jsxRuntime.jsx(chunkRPCQBET5_cjs.SettingsCard, { className: "space-y-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1485
|
+
chunkRPCQBET5_cjs.NotificationCategoryList,
|
|
1486
1486
|
{
|
|
1487
1487
|
masterId: "emailNotifications",
|
|
1488
1488
|
masterTitle: "Email Notifications",
|
|
1489
1489
|
masterDescription: "Email me about activity when I\u2019m away",
|
|
1490
1490
|
masterChecked: prefs.masterChecked,
|
|
1491
1491
|
onMasterChange: prefs.setAll,
|
|
1492
|
-
categories:
|
|
1492
|
+
categories: chunkRPCQBET5_cjs.toNotificationCategories(prefs.checked, categories),
|
|
1493
1493
|
onCategoryChange: prefs.setCategory
|
|
1494
1494
|
}
|
|
1495
1495
|
) }) });
|
|
@@ -1503,14 +1503,14 @@ function ConnectedSessionsRow({
|
|
|
1503
1503
|
const sessions = react$1.useSessions({ enabled: open });
|
|
1504
1504
|
const currentSessionId = react$1.useCurrentSessionId();
|
|
1505
1505
|
const terminate = react$1.useTerminateSession();
|
|
1506
|
-
const views =
|
|
1506
|
+
const views = chunkRPCQBET5_cjs.toActiveSessionViews(sessions.data ?? [], {
|
|
1507
1507
|
currentSessionId,
|
|
1508
1508
|
terminatingId: terminate.isPending ? terminate.variables : null,
|
|
1509
1509
|
renderIcon: renderSessionIcon
|
|
1510
1510
|
});
|
|
1511
1511
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1512
1512
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1513
|
-
|
|
1513
|
+
chunkRPCQBET5_cjs.SettingsRow,
|
|
1514
1514
|
{
|
|
1515
1515
|
label: "Active sessions",
|
|
1516
1516
|
description: "Devices and agents currently signed in to your account.",
|
|
@@ -1532,7 +1532,7 @@ function ConnectedSessionsRow({
|
|
|
1532
1532
|
}
|
|
1533
1533
|
),
|
|
1534
1534
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1535
|
-
|
|
1535
|
+
chunkRPCQBET5_cjs.ActiveSessionsDialog,
|
|
1536
1536
|
{
|
|
1537
1537
|
open,
|
|
1538
1538
|
onOpenChange: setOpen,
|
|
@@ -1567,7 +1567,7 @@ function ConnectedLogoutDialog({
|
|
|
1567
1567
|
const sessions = react$1.useSessions({ enabled: open });
|
|
1568
1568
|
const logoutAll = react$1.useLogoutAllSessions();
|
|
1569
1569
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1570
|
-
|
|
1570
|
+
chunkRPCQBET5_cjs.LogoutDialog,
|
|
1571
1571
|
{
|
|
1572
1572
|
open,
|
|
1573
1573
|
onClose,
|
|
@@ -1581,7 +1581,7 @@ function ConnectedLogoutDialog({
|
|
|
1581
1581
|
},
|
|
1582
1582
|
canLogoutAll: true,
|
|
1583
1583
|
isOnline,
|
|
1584
|
-
sessions:
|
|
1584
|
+
sessions: chunkRPCQBET5_cjs.toLogoutSessionViews(sessions.data ?? []),
|
|
1585
1585
|
renderSessionIcon
|
|
1586
1586
|
}
|
|
1587
1587
|
);
|
|
@@ -1600,7 +1600,7 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
1600
1600
|
});
|
|
1601
1601
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1602
1602
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1603
|
-
|
|
1603
|
+
chunkRPCQBET5_cjs.SettingsDangerZone,
|
|
1604
1604
|
{
|
|
1605
1605
|
isOpen: zoneOpen,
|
|
1606
1606
|
onToggle: () => setZoneOpen((o) => !o),
|
|
@@ -1620,12 +1620,12 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
),
|
|
1622
1622
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1623
|
-
|
|
1623
|
+
chunkRPCQBET5_cjs.DeleteAccountDialog,
|
|
1624
1624
|
{
|
|
1625
1625
|
open: dialogOpen,
|
|
1626
1626
|
onClose: flow.onClose,
|
|
1627
1627
|
step: flow.step,
|
|
1628
|
-
blockers:
|
|
1628
|
+
blockers: chunkRPCQBET5_cjs.toDeleteBlockerViews(flow.blockers, renderSubscriptionLink),
|
|
1629
1629
|
onContinue: flow.onContinue,
|
|
1630
1630
|
onBack: flow.onBack,
|
|
1631
1631
|
userEmail: user?.email ?? "",
|