@superdoc-dev/mcp 0.3.0-next.91 → 0.3.0-next.92
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/index.js +32 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -200201,7 +200201,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
200201
200201
|
init_remark_gfm_BhnWr3yf_es();
|
|
200202
200202
|
});
|
|
200203
200203
|
|
|
200204
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
200204
|
+
// ../../packages/superdoc/dist/chunks/src-XCAViTso.es.js
|
|
200205
200205
|
function deleteProps(obj, propOrProps) {
|
|
200206
200206
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
200207
200207
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -200456,6 +200456,16 @@ function getParagraphInlineDirection(attrs) {
|
|
|
200456
200456
|
if (attrs?.direction === "ltr" || attrs?.dir === "ltr" || attrs?.rtl === false || ppRtl === false)
|
|
200457
200457
|
return "ltr";
|
|
200458
200458
|
}
|
|
200459
|
+
function getTableVisualDirection(attrs) {
|
|
200460
|
+
const fromContext = attrs?.tableDirectionContext?.visualDirection;
|
|
200461
|
+
if (fromContext != null)
|
|
200462
|
+
return fromContext;
|
|
200463
|
+
const tp = attrs?.tableProperties;
|
|
200464
|
+
if (tp?.rightToLeft === true || tp?.bidiVisual === true)
|
|
200465
|
+
return "rtl";
|
|
200466
|
+
if (tp?.rightToLeft === false || tp?.bidiVisual === false)
|
|
200467
|
+
return "ltr";
|
|
200468
|
+
}
|
|
200459
200469
|
function resolveTableWidthAttr(value) {
|
|
200460
200470
|
if (!value || typeof value !== "object")
|
|
200461
200471
|
return null;
|
|
@@ -204955,7 +204965,7 @@ function getTableContext($head) {
|
|
|
204955
204965
|
};
|
|
204956
204966
|
}
|
|
204957
204967
|
function isRtlTable(table2) {
|
|
204958
|
-
return table2?.attrs
|
|
204968
|
+
return getTableVisualDirection(table2?.attrs) === "rtl";
|
|
204959
204969
|
}
|
|
204960
204970
|
function getCellRect(context) {
|
|
204961
204971
|
const map$12 = TableMap.get(context.table);
|
|
@@ -246725,7 +246735,7 @@ function resolveRenderedTableWidth(columnWidth, measuredWidth, attrs) {
|
|
|
246725
246735
|
function resolveTableFrame(baseX, columnWidth, tableWidth, attrs) {
|
|
246726
246736
|
const width = resolveRenderedTableWidth(columnWidth, tableWidth, attrs);
|
|
246727
246737
|
const explicitJustification = typeof attrs?.justification === "string" ? attrs.justification : undefined;
|
|
246728
|
-
const isRtlTable$1 = attrs
|
|
246738
|
+
const isRtlTable$1 = getTableVisualDirection(attrs) === "rtl";
|
|
246729
246739
|
const effectiveJustification = explicitJustification ?? (isRtlTable$1 ? "end" : undefined);
|
|
246730
246740
|
const tableIndent = getTableIndentWidth(attrs);
|
|
246731
246741
|
if (effectiveJustification === "center")
|
|
@@ -257048,6 +257058,12 @@ function tableNodeToBlock(node2, { nextBlockId, positions, storyKey, trackedChan
|
|
|
257048
257058
|
const tableProperties = node2.attrs?.tableProperties;
|
|
257049
257059
|
if (tableProperties && typeof tableProperties === "object")
|
|
257050
257060
|
tableAttrs.tableProperties = tableProperties;
|
|
257061
|
+
const styleResolvedTableProps = effectiveStyleId && converterContext?.translatedLinkedStyles ? resolveTableProperties(effectiveStyleId, converterContext.translatedLinkedStyles) : undefined;
|
|
257062
|
+
const inlineProps = rawTableProperties;
|
|
257063
|
+
const styleProps = styleResolvedTableProps;
|
|
257064
|
+
const inlineVisual = inlineProps?.rightToLeft ?? inlineProps?.bidiVisual;
|
|
257065
|
+
const styleVisual = styleProps?.rightToLeft ?? styleProps?.bidiVisual;
|
|
257066
|
+
tableAttrs.tableDirectionContext = resolveTableDirection({ rightToLeft: inlineVisual ?? styleVisual }, converterContext?.sectionDirectionContext ?? resolveSectionDirection(undefined));
|
|
257051
257067
|
let columnWidths = undefined;
|
|
257052
257068
|
const twipsToPixels$2 = (twips) => {
|
|
257053
257069
|
return twips / 1440 * 96;
|
|
@@ -281617,7 +281633,7 @@ menclose::after {
|
|
|
281617
281633
|
const tableBorders = block.attrs?.borders;
|
|
281618
281634
|
const tableIndentValue = block.attrs?.tableIndent?.width;
|
|
281619
281635
|
const tableIndent = typeof tableIndentValue === "number" && Number.isFinite(tableIndentValue) ? tableIndentValue : 0;
|
|
281620
|
-
const isRtl = block.attrs
|
|
281636
|
+
const isRtl = getTableVisualDirection(block.attrs) === "rtl";
|
|
281621
281637
|
const container = doc$12.createElement("div");
|
|
281622
281638
|
container.classList.add(CLASS_NAMES$1.fragment);
|
|
281623
281639
|
applyStyles$2(container, fragmentStyles);
|
|
@@ -287135,6 +287151,16 @@ menclose::after {
|
|
|
287135
287151
|
mutated = true;
|
|
287136
287152
|
}
|
|
287137
287153
|
return mutated ? mirrored : indent2;
|
|
287154
|
+
}, resolveTableDirection = (tableProperties, parentSection) => {
|
|
287155
|
+
let visualDirection;
|
|
287156
|
+
if (tableProperties?.rightToLeft === true || tableProperties?.bidiVisual === true)
|
|
287157
|
+
visualDirection = "rtl";
|
|
287158
|
+
else if (tableProperties?.rightToLeft === false || tableProperties?.bidiVisual === false)
|
|
287159
|
+
visualDirection = "ltr";
|
|
287160
|
+
return {
|
|
287161
|
+
visualDirection,
|
|
287162
|
+
parentSection
|
|
287163
|
+
};
|
|
287138
287164
|
}, writingModeFromTextDirection = (val) => {
|
|
287139
287165
|
switch (val) {
|
|
287140
287166
|
case "lrTb":
|
|
@@ -294049,7 +294075,7 @@ menclose::after {
|
|
|
294049
294075
|
return;
|
|
294050
294076
|
console.log(...args$1);
|
|
294051
294077
|
}, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions;
|
|
294052
|
-
var
|
|
294078
|
+
var init_src_XCAViTso_es = __esm(() => {
|
|
294053
294079
|
init_rolldown_runtime_Bg48TavK_es();
|
|
294054
294080
|
init_SuperConverter_KEGUvaEC_es();
|
|
294055
294081
|
init_jszip_C49i9kUs_es();
|
|
@@ -332143,7 +332169,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
332143
332169
|
|
|
332144
332170
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
332145
332171
|
var init_super_editor_es = __esm(() => {
|
|
332146
|
-
|
|
332172
|
+
init_src_XCAViTso_es();
|
|
332147
332173
|
init_SuperConverter_KEGUvaEC_es();
|
|
332148
332174
|
init_jszip_C49i9kUs_es();
|
|
332149
332175
|
init_xml_js_CqGKpaft_es();
|