doculi 5.12.34 → 5.12.36
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/cli.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{tui-BXX7R8xz.js → tui-DGrjyiw9.js} +13 -10
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -1195,7 +1195,7 @@ function registerSetMetadataCommand(program) {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
//#endregion
|
|
1197
1197
|
//#region package.json
|
|
1198
|
-
var version = "5.12.
|
|
1198
|
+
var version = "5.12.36";
|
|
1199
1199
|
//#endregion
|
|
1200
1200
|
//#region src/program.ts
|
|
1201
1201
|
function createProgram() {
|
|
@@ -1223,7 +1223,7 @@ function createProgram() {
|
|
|
1223
1223
|
//#region src/cli-main.ts
|
|
1224
1224
|
async function launchTui(startPath, signal) {
|
|
1225
1225
|
try {
|
|
1226
|
-
const { runTui } = await import("./tui-
|
|
1226
|
+
const { runTui } = await import("./tui-DGrjyiw9.js");
|
|
1227
1227
|
await runTui({
|
|
1228
1228
|
startPath,
|
|
1229
1229
|
signal
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -8176,6 +8176,14 @@ function ReadOnlyItemDetail(props) {
|
|
|
8176
8176
|
]
|
|
8177
8177
|
});
|
|
8178
8178
|
}
|
|
8179
|
+
function frameOf(item) {
|
|
8180
|
+
return {
|
|
8181
|
+
xPt: item.xPt,
|
|
8182
|
+
yPt: item.yPt,
|
|
8183
|
+
widthPt: item.widthPt,
|
|
8184
|
+
heightPt: item.heightPt
|
|
8185
|
+
};
|
|
8186
|
+
}
|
|
8179
8187
|
function buildFrameRows(frame, onFrameChange) {
|
|
8180
8188
|
return [
|
|
8181
8189
|
{
|
|
@@ -8293,7 +8301,6 @@ function buildTextRows(item, pageIndex, itemIndex, dispatch) {
|
|
|
8293
8301
|
},
|
|
8294
8302
|
{
|
|
8295
8303
|
label: `Font weight: ${item.font.weight} (Enter to toggle)`,
|
|
8296
|
-
currentValue: "",
|
|
8297
8304
|
activate: () => {
|
|
8298
8305
|
dispatch({
|
|
8299
8306
|
type: "SET_PDF_TEXT_FONT",
|
|
@@ -8308,7 +8315,6 @@ function buildTextRows(item, pageIndex, itemIndex, dispatch) {
|
|
|
8308
8315
|
},
|
|
8309
8316
|
{
|
|
8310
8317
|
label: `Font style: ${item.font.style} (Enter to toggle)`,
|
|
8311
|
-
currentValue: "",
|
|
8312
8318
|
activate: () => {
|
|
8313
8319
|
dispatch({
|
|
8314
8320
|
type: "SET_PDF_TEXT_FONT",
|
|
@@ -8371,7 +8377,6 @@ function buildTextRows(item, pageIndex, itemIndex, dispatch) {
|
|
|
8371
8377
|
},
|
|
8372
8378
|
{
|
|
8373
8379
|
label: `Underline: ${item.underline === true ? "yes" : "no"} (Enter to toggle)`,
|
|
8374
|
-
currentValue: "",
|
|
8375
8380
|
activate: () => {
|
|
8376
8381
|
dispatch({
|
|
8377
8382
|
type: "TOGGLE_PDF_TEXT_UNDERLINE",
|
|
@@ -8383,7 +8388,7 @@ function buildTextRows(item, pageIndex, itemIndex, dispatch) {
|
|
|
8383
8388
|
];
|
|
8384
8389
|
}
|
|
8385
8390
|
function buildRectRows(item, pageIndex, itemIndex, dispatch) {
|
|
8386
|
-
return [...buildFrameRows(item, (frame) => {
|
|
8391
|
+
return [...buildFrameRows(frameOf(item), (frame) => {
|
|
8387
8392
|
dispatch({
|
|
8388
8393
|
type: "SET_PDF_RECT_FRAME",
|
|
8389
8394
|
pageIndex,
|
|
@@ -8407,7 +8412,7 @@ function buildRectRows(item, pageIndex, itemIndex, dispatch) {
|
|
|
8407
8412
|
})];
|
|
8408
8413
|
}
|
|
8409
8414
|
function buildEllipseRows(item, pageIndex, itemIndex, dispatch) {
|
|
8410
|
-
return [...buildFrameRows(item, (frame) => {
|
|
8415
|
+
return [...buildFrameRows(frameOf(item), (frame) => {
|
|
8411
8416
|
dispatch({
|
|
8412
8417
|
type: "SET_PDF_ELLIPSE_FRAME",
|
|
8413
8418
|
pageIndex,
|
|
@@ -8513,7 +8518,6 @@ function buildLineRows(item, pageIndex, itemIndex, dispatch) {
|
|
|
8513
8518
|
function buildPathRows(item, pageIndex, itemIndex, dispatch) {
|
|
8514
8519
|
return [{
|
|
8515
8520
|
label: `Fill rule: ${item.fillRule ?? "nonzero (default)"} (Enter to cycle)`,
|
|
8516
|
-
currentValue: "",
|
|
8517
8521
|
activate: () => {
|
|
8518
8522
|
dispatch({
|
|
8519
8523
|
type: "SET_PDF_PATH_FILL_RULE",
|
|
@@ -8540,7 +8544,7 @@ function buildPathRows(item, pageIndex, itemIndex, dispatch) {
|
|
|
8540
8544
|
}
|
|
8541
8545
|
function buildImageRows(item, pageIndex, itemIndex, dispatch, onReplaceImage) {
|
|
8542
8546
|
return [
|
|
8543
|
-
...buildFrameRows(item, (frame) => {
|
|
8547
|
+
...buildFrameRows(frameOf(item), (frame) => {
|
|
8544
8548
|
dispatch({
|
|
8545
8549
|
type: "SET_PDF_IMAGE_FRAME",
|
|
8546
8550
|
pageIndex,
|
|
@@ -8562,7 +8566,6 @@ function buildImageRows(item, pageIndex, itemIndex, dispatch, onReplaceImage) {
|
|
|
8562
8566
|
},
|
|
8563
8567
|
{
|
|
8564
8568
|
label: "Replace image...",
|
|
8565
|
-
currentValue: "",
|
|
8566
8569
|
activate: onReplaceImage
|
|
8567
8570
|
}
|
|
8568
8571
|
];
|
|
@@ -8579,7 +8582,7 @@ function buildLinkRows(item, pageIndex, itemIndex, dispatch) {
|
|
|
8579
8582
|
uri: raw
|
|
8580
8583
|
});
|
|
8581
8584
|
}
|
|
8582
|
-
}, ...buildFrameRows(item, (frame) => {
|
|
8585
|
+
}, ...buildFrameRows(frameOf(item), (frame) => {
|
|
8583
8586
|
dispatch({
|
|
8584
8587
|
type: "SET_PDF_LINK_FRAME",
|
|
8585
8588
|
pageIndex,
|
|
@@ -8600,7 +8603,7 @@ function buildInternalLinkRows(item, pageIndex, itemIndex, dispatch) {
|
|
|
8600
8603
|
destination: raw
|
|
8601
8604
|
});
|
|
8602
8605
|
}
|
|
8603
|
-
}, ...buildFrameRows(item, (frame) => {
|
|
8606
|
+
}, ...buildFrameRows(frameOf(item), (frame) => {
|
|
8604
8607
|
dispatch({
|
|
8605
8608
|
type: "SET_PDF_INTERNAL_LINK_FRAME",
|
|
8606
8609
|
pageIndex,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doculi",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.36",
|
|
4
4
|
"description": "CLI and interactive Ink TUI for documents.js: every docx/pptx/odt/odp/ods/odg/odf/pdf/odm/odb/xlsx/csv/svg/markdown/rtf conversion, bridge, and editor as a scriptable command or a terminal app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"commander": "15.0.0",
|
|
71
71
|
"document-outline.js": "3.10.17",
|
|
72
72
|
"document-schema.js": "7.15.1",
|
|
73
|
-
"documents.js": "14.4.
|
|
73
|
+
"documents.js": "14.4.27",
|
|
74
74
|
"ink": "7.1.1",
|
|
75
75
|
"ink-text-input": "6.0.0",
|
|
76
76
|
"react": "19.2.8"
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"eslint": "10.8.1",
|
|
88
88
|
"husky": "9.1.7",
|
|
89
89
|
"ink-testing-library": "4.0.0",
|
|
90
|
-
"odf.js": "11.1.
|
|
90
|
+
"odf.js": "11.1.6",
|
|
91
91
|
"publint": "0.3.22",
|
|
92
92
|
"semantic-release": "25.0.9",
|
|
93
93
|
"tsdown": "0.22.14",
|