@arbidocs/blocks 0.4.102 → 0.4.104
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 +207 -207
- package/dist/agents/index.js +2 -2
- package/dist/{chunk-AOFATOT3.cjs → chunk-2A4MDHJR.cjs} +7 -5
- package/dist/chunk-2A4MDHJR.cjs.map +1 -0
- package/dist/{chunk-G5JH2YMQ.js → chunk-4GFB5U3K.js} +3 -3
- package/dist/{chunk-G5JH2YMQ.js.map → chunk-4GFB5U3K.js.map} +1 -1
- package/dist/chunk-5FYU7ZIU.cjs +139 -0
- package/dist/chunk-5FYU7ZIU.cjs.map +1 -0
- package/dist/{chunk-Y5XW57U4.cjs → chunk-7LLLQUM7.cjs} +5 -5
- package/dist/{chunk-Y5XW57U4.cjs.map → chunk-7LLLQUM7.cjs.map} +1 -1
- package/dist/{chunk-D3QPYKZG.js → chunk-EPHGD4YV.js} +7 -6
- package/dist/chunk-EPHGD4YV.js.map +1 -0
- package/dist/chunk-HFZ45FD3.js +133 -0
- package/dist/chunk-HFZ45FD3.js.map +1 -0
- package/dist/{chunk-5NQIBJPP.js → chunk-NJX774HB.js} +3 -3
- package/dist/{chunk-5NQIBJPP.js.map → chunk-NJX774HB.js.map} +1 -1
- package/dist/{chunk-DDYXFALG.cjs → chunk-NW3LFDZL.cjs} +3 -3
- package/dist/{chunk-DDYXFALG.cjs.map → chunk-NW3LFDZL.cjs.map} +1 -1
- package/dist/{chunk-YGREW5TZ.js → chunk-PIT2YZCK.js} +3 -3
- package/dist/{chunk-YGREW5TZ.js.map → chunk-PIT2YZCK.js.map} +1 -1
- package/dist/{chunk-Z3G65XHZ.js → chunk-S55VDTX3.js} +3 -3
- package/dist/{chunk-Z3G65XHZ.js.map → chunk-S55VDTX3.js.map} +1 -1
- package/dist/{chunk-LENXDIMY.cjs → chunk-SKSE4OT6.cjs} +22 -22
- package/dist/{chunk-LENXDIMY.cjs.map → chunk-SKSE4OT6.cjs.map} +1 -1
- package/dist/{chunk-ZT2EBBSC.cjs → chunk-TP3FAP5J.cjs} +5 -5
- package/dist/{chunk-ZT2EBBSC.cjs.map → chunk-TP3FAP5J.cjs.map} +1 -1
- package/dist/{chunk-MYALCKDR.js → chunk-W2RTZOK3.js} +1533 -263
- package/dist/chunk-W2RTZOK3.js.map +1 -0
- package/dist/{chunk-FAGQTB3D.cjs → chunk-ZWWN4CUL.cjs} +1690 -408
- package/dist/chunk-ZWWN4CUL.cjs.map +1 -0
- package/dist/connect/docx.cjs +8 -7
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/docx.js +6 -5
- package/dist/connect/docx.js.map +1 -1
- package/dist/connect/index.cjs +12 -11
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +5 -4
- package/dist/connect/index.js.map +1 -1
- package/dist/docx/LinkHoverCard.d.ts +24 -0
- package/dist/docx/NativeDocxEditor.d.ts +6 -0
- package/dist/docx/RibbonMenu.d.ts +4 -1
- package/dist/docx/RibbonOverflow.d.ts +27 -0
- package/dist/docx/WordReferences.d.ts +3 -2
- package/dist/docx/beforeSave.d.ts +9 -0
- package/dist/docx/definitions/fragment.d.ts +19 -1
- package/dist/docx/definitions/port.d.ts +43 -11
- package/dist/docx/index.cjs +85 -36
- package/dist/docx/index.cjs.map +1 -1
- package/dist/docx/index.d.ts +6 -0
- package/dist/docx/index.js +5 -4
- package/dist/docx/index.js.map +1 -1
- package/dist/docx/noteStyles.d.ts +46 -0
- package/dist/docx/overflowPlan.d.ts +15 -0
- package/dist/docx/references/CrossReferences.d.ts +97 -0
- package/dist/docx/references/EditorMenus.d.ts +10 -0
- package/dist/docx/references/commands.d.ts +119 -0
- package/dist/docx/references/numbering.d.ts +49 -0
- package/dist/docx/references/passages.d.ts +32 -0
- package/dist/docx/references/port.d.ts +20 -0
- package/dist/facts/index.cjs +22 -129
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.js +3 -125
- package/dist/facts/index.js.map +1 -1
- package/dist/files/index.cjs +1 -1
- package/dist/files/index.js +1 -1
- package/dist/home/index.cjs +1 -1
- package/dist/home/index.js +1 -1
- package/dist/index.cjs +314 -314
- package/dist/index.js +8 -8
- 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/ooxml.d.ts +4 -0
- package/dist/workflow-canvas/index.cjs +9 -9
- package/dist/workflow-canvas/index.js +2 -2
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/src/docx/README.md +32 -0
- package/src/docx/styles.css +73 -5
- package/dist/chunk-AOFATOT3.cjs.map +0 -1
- package/dist/chunk-D3QPYKZG.js.map +0 -1
- package/dist/chunk-FAGQTB3D.cjs.map +0 -1
- package/dist/chunk-MYALCKDR.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunk2A4MDHJR_cjs = require('./chunk-2A4MDHJR.cjs');
|
|
5
5
|
var chunk3US5OIDQ_cjs = require('./chunk-3US5OIDQ.cjs');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
7
|
var ui = require('@arbidocs/react/ui');
|
|
@@ -1130,7 +1130,7 @@ function evidenceParagraphs(row, l) {
|
|
|
1130
1130
|
const threads = links.threads ?? [];
|
|
1131
1131
|
const more = links.doc_count - docs.length + (links.fact_count - facts.length) + (links.thread_count - threads.length);
|
|
1132
1132
|
return [
|
|
1133
|
-
|
|
1133
|
+
chunk2A4MDHJR_cjs.paragraph(
|
|
1134
1134
|
[
|
|
1135
1135
|
{
|
|
1136
1136
|
text: [
|
|
@@ -1144,15 +1144,15 @@ function evidenceParagraphs(row, l) {
|
|
|
1144
1144
|
"TagTableCell"
|
|
1145
1145
|
),
|
|
1146
1146
|
...docs.map(
|
|
1147
|
-
(d) =>
|
|
1147
|
+
(d) => chunk2A4MDHJR_cjs.paragraph(
|
|
1148
1148
|
[{ text: d.file_name, bold: true }, ...d.note ? [{ text: ` \u2014 ${d.note}` }] : []],
|
|
1149
1149
|
"TagTableCell"
|
|
1150
1150
|
)
|
|
1151
1151
|
),
|
|
1152
|
-
...facts.map((f) =>
|
|
1153
|
-
...threads.map((t) =>
|
|
1152
|
+
...facts.map((f) => chunk2A4MDHJR_cjs.paragraph([{ text: `\u201C${f.text}\u201D`, italic: true }], "TagTableCell")),
|
|
1153
|
+
...threads.map((t) => chunk2A4MDHJR_cjs.paragraph([{ text: t.title || l.untitledThread }], "TagTableCell")),
|
|
1154
1154
|
...more > 0 ? [
|
|
1155
|
-
|
|
1155
|
+
chunk2A4MDHJR_cjs.paragraph(
|
|
1156
1156
|
[{ text: l.more.replace("{count}", String(more)), muted: true }],
|
|
1157
1157
|
"TagTableCell"
|
|
1158
1158
|
)
|
|
@@ -1162,8 +1162,8 @@ function evidenceParagraphs(row, l) {
|
|
|
1162
1162
|
function gapParagraphs(row, columns, l) {
|
|
1163
1163
|
const missing = columns.filter((c) => c.type !== "checkbox" && cellText(cellValue(row, c), c) === "").map((c) => c.name);
|
|
1164
1164
|
return [
|
|
1165
|
-
...isGap(row) ? [
|
|
1166
|
-
...missing.length ? [
|
|
1165
|
+
...isGap(row) ? [chunk2A4MDHJR_cjs.paragraph([{ text: l.noEvidence, bold: true }], "TagTableCell")] : [],
|
|
1166
|
+
...missing.length ? [chunk2A4MDHJR_cjs.paragraph([{ text: l.missing.replace("{fields}", missing.join(", ")) }], "TagTableCell")] : []
|
|
1167
1167
|
];
|
|
1168
1168
|
}
|
|
1169
1169
|
function tagTableDocumentXml(table, options) {
|
|
@@ -1171,40 +1171,40 @@ function tagTableDocumentXml(table, options) {
|
|
|
1171
1171
|
const { columns, rows } = table;
|
|
1172
1172
|
const heads = [l.row, ...columns.map((c) => c.name), l.evidence, l.gaps];
|
|
1173
1173
|
const landscape = heads.length > TAG_TABLE_DOCX_LANDSCAPE_AFTER;
|
|
1174
|
-
const { textWidth, sectPr } =
|
|
1174
|
+
const { textWidth, sectPr } = chunk2A4MDHJR_cjs.page(landscape);
|
|
1175
1175
|
const weights = [2, ...columns.map(() => 1), 3, 1.5];
|
|
1176
1176
|
const total = weights.reduce((a, b) => a + b, 0);
|
|
1177
1177
|
const widths = weights.map((w) => Math.floor(textWidth * w / total));
|
|
1178
|
-
const at =
|
|
1178
|
+
const at = chunk2A4MDHJR_cjs.minuteUtc(options.at ?? (/* @__PURE__ */ new Date()).toISOString());
|
|
1179
1179
|
const header = `<w:tr><w:trPr><w:tblHeader/><w:cantSplit/></w:trPr>${heads.map(
|
|
1180
|
-
(h, i) =>
|
|
1180
|
+
(h, i) => chunk2A4MDHJR_cjs.cell([chunk2A4MDHJR_cjs.paragraph([{ text: h, bold: true }], "TagTableCell")], widths[i], "E7E6E6")
|
|
1181
1181
|
).join("")}</w:tr>`;
|
|
1182
1182
|
const body = rows.map((row) => {
|
|
1183
1183
|
const fill = isGap(row) ? "FFF2CC" : void 0;
|
|
1184
1184
|
const cells = [
|
|
1185
|
-
|
|
1185
|
+
chunk2A4MDHJR_cjs.cell([chunk2A4MDHJR_cjs.paragraph([{ text: row.name, bold: true }], "TagTableCell")], widths[0], fill),
|
|
1186
1186
|
...columns.map((c, i) => {
|
|
1187
1187
|
const text = cellText(cellValue(row, c), c, options.nameOf);
|
|
1188
|
-
return
|
|
1188
|
+
return chunk2A4MDHJR_cjs.cell(text ? [chunk2A4MDHJR_cjs.paragraph([{ text }], "TagTableCell")] : [], widths[i + 1], fill);
|
|
1189
1189
|
}),
|
|
1190
|
-
|
|
1191
|
-
|
|
1190
|
+
chunk2A4MDHJR_cjs.cell(evidenceParagraphs(row, l), widths[columns.length + 1], fill),
|
|
1191
|
+
chunk2A4MDHJR_cjs.cell(gapParagraphs(row, columns, l), widths[columns.length + 2], fill)
|
|
1192
1192
|
];
|
|
1193
1193
|
return `<w:tr><w:trPr><w:cantSplit/></w:trPr>${cells.join("")}</w:tr>`;
|
|
1194
1194
|
});
|
|
1195
1195
|
const grid = `<w:tbl><w:tblPr><w:tblStyle w:val="TagTableGrid"/><w:tblW w:w="${textWidth}" w:type="dxa"/><w:tblLayout w:type="fixed"/><w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1"/></w:tblPr><w:tblGrid>${widths.map((w) => `<w:gridCol w:w="${w}"/>`).join("")}</w:tblGrid>${header}${body.join("")}</w:tbl>`;
|
|
1196
|
-
return
|
|
1197
|
-
`${
|
|
1196
|
+
return chunk2A4MDHJR_cjs.documentXml(
|
|
1197
|
+
`${chunk2A4MDHJR_cjs.paragraph(
|
|
1198
1198
|
[{ text: options.title }],
|
|
1199
1199
|
"Title"
|
|
1200
|
-
)}${
|
|
1200
|
+
)}${chunk2A4MDHJR_cjs.paragraph([{ text: l.takenAt.replace("{at}", `${at} UTC`), muted: true }])}${grid}${rows.length ? "" : chunk2A4MDHJR_cjs.paragraph([{ text: l.empty, muted: true }])}<w:p/>${sectPr}`
|
|
1201
1201
|
);
|
|
1202
1202
|
}
|
|
1203
1203
|
function tagTableDocx(table, options) {
|
|
1204
1204
|
const at = new Date(options.at ?? Date.now()).toISOString();
|
|
1205
|
-
return
|
|
1205
|
+
return chunk2A4MDHJR_cjs.docxPackage({
|
|
1206
1206
|
document: tagTableDocumentXml(table, { ...options, at }),
|
|
1207
|
-
styles:
|
|
1207
|
+
styles: chunk2A4MDHJR_cjs.TABLE_DOCUMENT_STYLES,
|
|
1208
1208
|
title: options.title,
|
|
1209
1209
|
at
|
|
1210
1210
|
});
|
|
@@ -1235,5 +1235,5 @@ exports.tagTableDocx = tagTableDocx;
|
|
|
1235
1235
|
exports.tagTableMarkdown = tagTableMarkdown;
|
|
1236
1236
|
exports.workspaceActivityHeadline = workspaceActivityHeadline;
|
|
1237
1237
|
exports.workspaceActivityTarget = workspaceActivityTarget;
|
|
1238
|
-
//# sourceMappingURL=chunk-
|
|
1239
|
-
//# sourceMappingURL=chunk-
|
|
1238
|
+
//# sourceMappingURL=chunk-SKSE4OT6.cjs.map
|
|
1239
|
+
//# sourceMappingURL=chunk-SKSE4OT6.cjs.map
|