@arbidocs/blocks 0.4.81 → 0.4.82
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 +2 -2
- package/dist/{chunk-B3WCKBJ7.cjs → chunk-5XVWGJ2H.cjs} +3 -3
- package/dist/{chunk-B3WCKBJ7.cjs.map → chunk-5XVWGJ2H.cjs.map} +1 -1
- package/dist/{chunk-SWSVPQNB.js → chunk-COP6GVKN.js} +148 -5
- package/dist/chunk-COP6GVKN.js.map +1 -0
- package/dist/{chunk-I56ORHPY.js → chunk-IRG5LPDP.js} +3 -3
- package/dist/{chunk-I56ORHPY.js.map → chunk-IRG5LPDP.js.map} +1 -1
- package/dist/{chunk-UA2AMDR6.cjs → chunk-LRRJ2HBW.cjs} +151 -3
- package/dist/chunk-LRRJ2HBW.cjs.map +1 -0
- package/dist/{chunk-GJV2G4FC.js → chunk-O35LRB3P.js} +3 -3
- package/dist/{chunk-GJV2G4FC.js.map → chunk-O35LRB3P.js.map} +1 -1
- package/dist/{chunk-F5WIETZY.cjs → chunk-VWK24TEY.cjs} +3 -3
- package/dist/{chunk-F5WIETZY.cjs.map → chunk-VWK24TEY.cjs.map} +1 -1
- package/dist/connect/index.cjs +59 -38
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +35 -14
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedTagMatrix.d.ts +6 -3
- package/dist/files/index.cjs +2 -2
- package/dist/files/index.js +2 -2
- package/dist/index.cjs +414 -398
- package/dist/index.js +6 -6
- package/dist/settings/index.cjs +35 -35
- package/dist/settings/index.js +3 -3
- package/dist/tags/TagMatrix.d.ts +7 -3
- package/dist/tags/index.d.ts +1 -0
- package/dist/tags/tagMatrixDocx.d.ts +42 -0
- package/dist/workflow-canvas/index.cjs +9 -9
- package/dist/workflow-canvas/index.js +2 -2
- package/dist/workspaces/index.cjs +1 -1
- package/dist/workspaces/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-SWSVPQNB.js.map +0 -1
- package/dist/chunk-UA2AMDR6.cjs.map +0 -1
package/dist/connect/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { SettingsSection, ProfileCard, AvatarPicker, IdentityVerificationCard, IdentityVerificationDialog, RequireVerified, SettingsCard, SettingsActionRow, PasswordChangeDialog, EMAIL_NOTIFICATION_KEYS, EMAIL_NOTIFICATION_CATEGORIES, NotificationCategoryList, toNotificationCategories, toActiveSessionViews, SettingsRow, ActiveSessionsDialog, LogoutDialog, toLogoutSessionViews, SettingsDangerZone, DeleteAccountDialog, toDeleteBlockerViews } from '../chunk-
|
|
2
|
+
import { SettingsSection, ProfileCard, AvatarPicker, IdentityVerificationCard, IdentityVerificationDialog, RequireVerified, SettingsCard, SettingsActionRow, PasswordChangeDialog, EMAIL_NOTIFICATION_KEYS, EMAIL_NOTIFICATION_CATEGORIES, NotificationCategoryList, toNotificationCategories, toActiveSessionViews, SettingsRow, ActiveSessionsDialog, LogoutDialog, toLogoutSessionViews, SettingsDangerZone, DeleteAccountDialog, toDeleteBlockerViews } from '../chunk-O35LRB3P.js';
|
|
3
3
|
import { useWorkspaceDocs } from '../chunk-XQDM6T6C.js';
|
|
4
4
|
export { ConnectedAssistantDock, redlineStats, textToArtifact, toRedlineMarkdown, useConnectedAiTask, useConnectedChat, useSemanticSearch, useWorkspaceDocs } from '../chunk-XQDM6T6C.js';
|
|
5
5
|
import { ConnectedNativeDocxEditor } from '../chunk-A24C6BNA.js';
|
|
@@ -7,19 +7,19 @@ import { ConnectionProvider, useConnection } from '../chunk-OYMWV45N.js';
|
|
|
7
7
|
export { ConnectionProvider, SESSION_EXPIRED_MESSAGE, isAuthenticated, useConnection } from '../chunk-OYMWV45N.js';
|
|
8
8
|
import { SignDocumentDialog } from '../chunk-FE4ULGOR.js';
|
|
9
9
|
import '../chunk-OPA2Y6YZ.js';
|
|
10
|
-
import { TagMatrix,
|
|
11
|
-
import { StreamedArtifactFrame } from '../chunk-LOJVUGBJ.js';
|
|
10
|
+
import { TagMatrix, tagMatrixDocx, DOCX_MIME_TYPE } from '../chunk-COP6GVKN.js';
|
|
12
11
|
import { splitDocRef, WorkflowStepBar, stepLevels, WorkflowRunner, initialRunInputs, workflowSteps, fromPlanSteps, stepStatesFromActivity, toPlanSteps, runThreadTitle, useWorkflowView, stepFields } from '../chunk-THCFZKTM.js';
|
|
13
12
|
import '../chunk-EVUEIBNU.js';
|
|
14
13
|
import '../chunk-XD2M6LIG.js';
|
|
14
|
+
import { StreamedArtifactFrame } from '../chunk-LOJVUGBJ.js';
|
|
15
15
|
import '../chunk-VILAPTCB.js';
|
|
16
|
+
import { ModalScaffold } from '../chunk-TX2ZICS7.js';
|
|
16
17
|
import { ChatPage } from '../chunk-EWSEQEPL.js';
|
|
17
18
|
import '../chunk-KZJAG7T3.js';
|
|
18
19
|
import '../chunk-HOXKR26S.js';
|
|
19
20
|
import '../chunk-AA3PT6KR.js';
|
|
20
21
|
import '../chunk-NPLYHR2E.js';
|
|
21
22
|
import { initials } from '../chunk-OXF2IFXG.js';
|
|
22
|
-
import { ModalScaffold } from '../chunk-TX2ZICS7.js';
|
|
23
23
|
import '../chunk-7F6CBP3Z.js';
|
|
24
24
|
import '../chunk-VUNV25KB.js';
|
|
25
25
|
import { lazy, useState, Suspense, useEffect, useRef, useCallback, useMemo } from 'react';
|
|
@@ -963,6 +963,7 @@ function ConnectedTagMatrix({
|
|
|
963
963
|
linksLimit = 3,
|
|
964
964
|
exportTitle,
|
|
965
965
|
onExported,
|
|
966
|
+
downloadable = true,
|
|
966
967
|
readOnly,
|
|
967
968
|
...props
|
|
968
969
|
}) {
|
|
@@ -981,6 +982,16 @@ function ConnectedTagMatrix({
|
|
|
981
982
|
label: [m.user.given_name, m.user.family_name].filter(Boolean).join(" ") || m.user.email
|
|
982
983
|
}));
|
|
983
984
|
const fail = (e) => setError(e instanceof Error ? e.message : String(e));
|
|
985
|
+
const snapshot = (data) => {
|
|
986
|
+
const title = exportTitle ?? data.parent?.name ?? "Matrix";
|
|
987
|
+
const bytes = tagMatrixDocx(data, {
|
|
988
|
+
title,
|
|
989
|
+
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
990
|
+
});
|
|
991
|
+
const stamp = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
992
|
+
const name = `${title.replace(/[\\/:*?"<>|]+/g, "-")} (${stamp}).docx`;
|
|
993
|
+
return { blob: new Blob([bytes], { type: DOCX_MIME_TYPE }), name };
|
|
994
|
+
};
|
|
984
995
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
985
996
|
/* @__PURE__ */ jsx(
|
|
986
997
|
TagMatrix,
|
|
@@ -1008,22 +1019,32 @@ function ConnectedTagMatrix({
|
|
|
1008
1019
|
try {
|
|
1009
1020
|
const data = matrix.data;
|
|
1010
1021
|
if (!data) return;
|
|
1011
|
-
const
|
|
1012
|
-
const markdown = tagMatrixMarkdown(data, {
|
|
1013
|
-
title,
|
|
1014
|
-
nameOf: (id2) => people.find((p) => p.value === id2)?.label
|
|
1015
|
-
});
|
|
1022
|
+
const { blob, name } = snapshot(data);
|
|
1016
1023
|
await ensureWorkspaceOpen();
|
|
1017
|
-
const
|
|
1018
|
-
const uploaded = await arbi.documents.uploadFile(
|
|
1019
|
-
new Blob([markdown], { type: "text/markdown" }),
|
|
1020
|
-
`${title} (${stamp}).md`
|
|
1021
|
-
);
|
|
1024
|
+
const uploaded = await arbi.documents.uploadFile(blob, name);
|
|
1022
1025
|
const id = uploaded?.doc_ext_ids?.[0];
|
|
1023
1026
|
if (id) onExported(id);
|
|
1024
1027
|
} catch (e) {
|
|
1025
1028
|
fail(e);
|
|
1026
1029
|
}
|
|
1030
|
+
} : void 0,
|
|
1031
|
+
onDownload: downloadable && matrix.data ? () => {
|
|
1032
|
+
setError(null);
|
|
1033
|
+
try {
|
|
1034
|
+
const data = matrix.data;
|
|
1035
|
+
if (!data) return;
|
|
1036
|
+
const { blob, name } = snapshot(data);
|
|
1037
|
+
const url = URL.createObjectURL(blob);
|
|
1038
|
+
const link = document.createElement("a");
|
|
1039
|
+
link.href = url;
|
|
1040
|
+
link.download = name;
|
|
1041
|
+
document.body.appendChild(link);
|
|
1042
|
+
link.click();
|
|
1043
|
+
link.remove();
|
|
1044
|
+
setTimeout(() => URL.revokeObjectURL(url), 0);
|
|
1045
|
+
} catch (e) {
|
|
1046
|
+
fail(e);
|
|
1047
|
+
}
|
|
1027
1048
|
} : void 0
|
|
1028
1049
|
}
|
|
1029
1050
|
),
|