@docx-editor.dev/core 2.0.1 → 2.1.1
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/README.md +32 -33
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.cts +2 -2
- package/dist/automation.d.ts +2 -2
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +14 -8
- package/dist/binding.d.ts +14 -8
- package/dist/binding.js +1 -1
- package/dist/chunk-2DTQDAN7.js +2 -0
- package/dist/chunk-3JKQE4QJ.cjs +2 -0
- package/dist/chunk-4WWEDTTE.js +2 -0
- package/dist/chunk-6WIIHJFY.js +1 -0
- package/dist/chunk-7VQ7YLW3.cjs +1 -0
- package/dist/chunk-BS554B6D.cjs +2 -0
- package/dist/chunk-BZK64YU3.cjs +10 -0
- package/dist/chunk-F2VQQW5R.cjs +12 -0
- package/dist/chunk-GQQOL4PV.js +1 -0
- package/dist/chunk-JQFDLZXQ.cjs +2 -0
- package/dist/chunk-O2WQY7IT.cjs +5 -0
- package/dist/chunk-PC76F2HR.cjs +1 -0
- package/dist/chunk-QRAUDDVY.js +2 -0
- package/dist/chunk-RKNH4ZFT.js +12 -0
- package/dist/chunk-STCITBJK.js +12 -0
- package/dist/chunk-TBBXCC7D.js +5 -0
- package/dist/chunk-TSXT537P.cjs +12 -0
- package/dist/chunk-Y7TA7TPF.js +10 -0
- package/dist/contracts/editor.d.cts +6 -6
- package/dist/contracts/editor.d.ts +6 -6
- package/dist/contracts/interaction.d.cts +6 -6
- package/dist/contracts/interaction.d.ts +6 -6
- package/dist/contracts/modules.cjs +1 -1
- package/dist/contracts/modules.d.cts +30 -3
- package/dist/contracts/modules.d.ts +30 -3
- package/dist/contracts/modules.js +1 -1
- package/dist/{tree-package-store-DOKMtCnh.d.cts → custom-node-writes-YqISlSRl.d.cts} +181 -4
- package/dist/{tree-package-store-D5S7VKs5.d.ts → custom-node-writes-ttKuYd0M.d.ts} +181 -4
- package/dist/{editor-D0UDock4.d.cts → editor-B93PggnR.d.cts} +24 -5
- package/dist/{editor-C1QRi1v4.d.ts → editor-CFsSrxGR.d.ts} +24 -5
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +1368 -279
- package/dist/editor.d.cts +19 -19
- package/dist/editor.d.ts +19 -19
- package/dist/editor.js +1 -1
- package/dist/{image-resources-BJnTpG66.d.ts → image-resources-C_YnqPhn.d.ts} +19 -11
- package/dist/{image-resources-BpIydXtU.d.cts → image-resources-DwpNnTg3.d.cts} +19 -11
- package/dist/{index-CrW-IxXt.d.cts → index-DQhDm4o0.d.cts} +34 -13
- package/dist/{index-ZqBEOrTV.d.ts → index-DTbKoFJL.d.ts} +34 -13
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +869 -819
- package/dist/layout.d.ts +869 -819
- package/dist/layout.js +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +4 -4
- package/dist/output.d.ts +4 -4
- package/dist/output.js +1 -1
- package/dist/{protocol-oxHaWmt4.d.ts → protocol-BWVA3Q1p.d.ts} +56 -2
- package/dist/{protocol-CAkOBBGE.d.cts → protocol-FAz_nPm_.d.cts} +56 -2
- package/dist/review-reads-CsoXSvUg.d.ts +401 -0
- package/dist/review-reads-qW0jvdF1.d.cts +401 -0
- package/dist/{review-support-DS8DYX2a.d.cts → review-support-D64Wu236.d.cts} +37 -5
- package/dist/{review-support-Fy3vdIea.d.ts → review-support-nsLXC9jf.d.ts} +37 -5
- package/dist/{semantic-cell-selection-DsmHmLJ5.d.ts → semantic-cell-selection-D_8RbPII.d.ts} +2 -2
- package/dist/{semantic-cell-selection-CZjBSmMv.d.cts → semantic-cell-selection-DwLB71fF.d.cts} +2 -2
- package/dist/{semantic-interaction-Dy-dCUFF.d.ts → semantic-interaction-CXH2wFqi.d.ts} +1 -1
- package/dist/{semantic-interaction-D-Dszxrn.d.cts → semantic-interaction-DqcEonqD.d.cts} +1 -1
- package/dist/{semantic-paint-drawings-BA3z9jl8.d.ts → semantic-paint-drawings-B5Wk2so5.d.ts} +1 -1
- package/dist/{semantic-paint-drawings-D7qbB0E2.d.cts → semantic-paint-drawings-x8g44lD_.d.cts} +1 -1
- package/dist/{semantic-records-CJR3BvHs.d.cts → semantic-records-COVFW5aS.d.cts} +77 -4
- package/dist/{semantic-records-CWodBJsz.d.ts → semantic-records-zTC0_1zi.d.ts} +77 -4
- package/dist/{shaped-measurer-CNIT_svZ.d.cts → shaped-measurer-AFnFxoot.d.cts} +1 -1
- package/dist/{shaped-measurer-B-TAtcQU.d.ts → shaped-measurer-CZXL-a6v.d.ts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +223 -317
- package/dist/store.d.ts +223 -317
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-CwOeiaQ8.d.ts → tree-op-types-DWLCllG7.d.ts} +80 -25
- package/dist/{tree-op-types-DMiW6nIH.d.cts → tree-op-types-UOXlRUqQ.d.cts} +80 -25
- package/dist/{tree-session-CiUel5Kz.d.ts → tree-session-BtVFXsF6.d.ts} +45 -7
- package/dist/{tree-session-D47_imvR.d.cts → tree-session-DxIOHUOD.d.cts} +45 -7
- package/dist/{tree-store-CxifqwIv.d.cts → tree-store-B1lEkdXc.d.cts} +1 -1
- package/dist/{tree-store-hLtjeyWE.d.ts → tree-store-BscFPB7x.d.ts} +1 -1
- package/package.json +10 -5
- package/dist/chunk-5KSCB2OZ.js +0 -2
- package/dist/chunk-BSC44TIT.js +0 -5
- package/dist/chunk-DLPL5DAG.js +0 -12
- package/dist/chunk-DOEIARE2.js +0 -2
- package/dist/chunk-G7YCQBZE.cjs +0 -5
- package/dist/chunk-HR7K3W6A.js +0 -1
- package/dist/chunk-HVAV2JSN.js +0 -11
- package/dist/chunk-MYH2HCUJ.cjs +0 -2
- package/dist/chunk-NSM75TN6.cjs +0 -1
- package/dist/chunk-PHDVKUWZ.js +0 -1
- package/dist/chunk-QADYGK5L.cjs +0 -12
- package/dist/chunk-RNBHTPW7.js +0 -10
- package/dist/chunk-UD2ZXLFI.cjs +0 -2
- package/dist/chunk-VYAVK2AH.cjs +0 -1
- package/dist/chunk-YUK46A2N.cjs +0 -11
- package/dist/chunk-ZMIX42J7.cjs +0 -10
- package/dist/chunk-ZT55Q52J.cjs +0 -2
- package/dist/chunk-ZUALAR4M.js +0 -2
- package/dist/note-properties-CnmCoory.d.cts +0 -68
- package/dist/note-properties-m75hmP70.d.ts +0 -68
package/dist/chunk-ZT55Q52J.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var c="http://schemas.microsoft.com/office/word/2012/wordml";function R(e){return `${e.kind}-${e.id}`}function v(e){let o=[],t=n=>{if(n.kind==="textValue"){o.push(n.value);return}for(let r of n.children)t(r);};for(let n of e.blocks)t(n);return o.join("")}function w(e){if(e.initials&&e.initials.trim().length>0)return e.initials.trim();let o=e.author.trim().split(/\s+/).filter(Boolean);return o.length===0?"?":o.slice(0,2).map(t=>t[0].toUpperCase()).join("")}function I(e){let o=new Map,t=(n,r)=>{if(!(n.kind==="textValue"||r>64)){if(n.kind==="paragraph"){o.has(n.id)||o.set(n.id,o.size);return}for(let i of n.children)t(i,r+1);}};return t(e.root,0),o}function s(e){return e.kind==="revision"?e.ranges:e.range?[e.range]:[]}function l(e){return s(e)[0]??null}function x(e,o){let t=l(e);if(!t)return Number.MAX_SAFE_INTEGER;let n=o.get(t.start.paragraphId);return n===void 0?Number.MAX_SAFE_INTEGER:n*1e6+Math.min(t.start.offset,999999)}function u(e,o){let t=o.get(e.start.paragraphId),n=o.get(e.end.paragraphId);return t===void 0||n===void 0?Number.MAX_SAFE_INTEGER:(n-t)*1e6+(e.end.offset-e.start.offset)}function y(e,o,t){let n=t.get(o.paragraphId),r=t.get(e.start.paragraphId),i=t.get(e.end.paragraphId);return !(n===void 0||r===void 0||i===void 0||n<r||n>i||n===r&&o.offset<e.start.offset||n===i&&o.offset>e.end.offset)}function f(e,o,t){let n=null;for(let r of s(e)){if(!y(r,o,t))continue;let i=u(r,t);(n===null||i<n)&&(n=i);}return n}var d={comment:0,custom:1,revision:2};function g(e,o,t){let n=[];for(let r of e){let i=f(r,o,t);i!==null&&n.push({item:r,width:i});}return n.sort((r,i)=>r.width!==i.width?r.width-i.width:r.item.kind!==i.item.kind?d[r.item.kind]-d[i.item.kind]:0).map(r=>r.item)}function h(e,o,t){let r=g(e,o,t).filter(i=>!(i.kind==="comment"&&i.resolved))[0];return r?r.kind==="comment"?m(e,r):r:null}function b(e,o){return m(e,o)}function m(e,o){let t=new Map,n=new Map;for(let a of e)a.kind==="comment"?t.set(a.id,a):a.kind==="revision"&&n.set(a.id,a);let r=new Set([o.id]),i=o;for(;i.parentId!==void 0;){let a=t.get(i.parentId);if(!a||r.has(a.id))break;r.add(a.id),i=a;}if(i.parentRevisionId!==void 0){let a=n.get(i.parentRevisionId);if(a)return a}return i}function P(e,o){let t=new Map;for(let n of e.pages)for(let r of o(n))t.has(r.paragraphId)||t.set(r.paragraphId,{pageIndex:n.index,contentY:n.contentBox.y,fragmentY:r.box.y,...r.lines?{lines:r.lines}:{}});return t}function k(e,o){let t=l(e);if(!t)return null;let n=o.get(t.start.paragraphId);if(!n)return null;let r=n.lines?.find(i=>t.start.offset<i.range.end);return {pageIndex:n.pageIndex,y:n.contentY+(r?r.box.y:n.fragmentY)}}
|
|
2
|
-
exports.a=c;exports.b=R;exports.c=v;exports.d=w;exports.e=I;exports.f=s;exports.g=l;exports.h=x;exports.i=g;exports.j=h;exports.k=b;exports.l=P;exports.m=k;
|
package/dist/chunk-ZUALAR4M.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var c="http://schemas.microsoft.com/office/word/2012/wordml";function R(e){return `${e.kind}-${e.id}`}function v(e){let o=[],t=n=>{if(n.kind==="textValue"){o.push(n.value);return}for(let r of n.children)t(r);};for(let n of e.blocks)t(n);return o.join("")}function w(e){if(e.initials&&e.initials.trim().length>0)return e.initials.trim();let o=e.author.trim().split(/\s+/).filter(Boolean);return o.length===0?"?":o.slice(0,2).map(t=>t[0].toUpperCase()).join("")}function I(e){let o=new Map,t=(n,r)=>{if(!(n.kind==="textValue"||r>64)){if(n.kind==="paragraph"){o.has(n.id)||o.set(n.id,o.size);return}for(let i of n.children)t(i,r+1);}};return t(e.root,0),o}function s(e){return e.kind==="revision"?e.ranges:e.range?[e.range]:[]}function l(e){return s(e)[0]??null}function x(e,o){let t=l(e);if(!t)return Number.MAX_SAFE_INTEGER;let n=o.get(t.start.paragraphId);return n===void 0?Number.MAX_SAFE_INTEGER:n*1e6+Math.min(t.start.offset,999999)}function u(e,o){let t=o.get(e.start.paragraphId),n=o.get(e.end.paragraphId);return t===void 0||n===void 0?Number.MAX_SAFE_INTEGER:(n-t)*1e6+(e.end.offset-e.start.offset)}function y(e,o,t){let n=t.get(o.paragraphId),r=t.get(e.start.paragraphId),i=t.get(e.end.paragraphId);return !(n===void 0||r===void 0||i===void 0||n<r||n>i||n===r&&o.offset<e.start.offset||n===i&&o.offset>e.end.offset)}function f(e,o,t){let n=null;for(let r of s(e)){if(!y(r,o,t))continue;let i=u(r,t);(n===null||i<n)&&(n=i);}return n}var d={comment:0,custom:1,revision:2};function g(e,o,t){let n=[];for(let r of e){let i=f(r,o,t);i!==null&&n.push({item:r,width:i});}return n.sort((r,i)=>r.width!==i.width?r.width-i.width:r.item.kind!==i.item.kind?d[r.item.kind]-d[i.item.kind]:0).map(r=>r.item)}function h(e,o,t){let r=g(e,o,t).filter(i=>!(i.kind==="comment"&&i.resolved))[0];return r?r.kind==="comment"?m(e,r):r:null}function b(e,o){return m(e,o)}function m(e,o){let t=new Map,n=new Map;for(let a of e)a.kind==="comment"?t.set(a.id,a):a.kind==="revision"&&n.set(a.id,a);let r=new Set([o.id]),i=o;for(;i.parentId!==void 0;){let a=t.get(i.parentId);if(!a||r.has(a.id))break;r.add(a.id),i=a;}if(i.parentRevisionId!==void 0){let a=n.get(i.parentRevisionId);if(a)return a}return i}function P(e,o){let t=new Map;for(let n of e.pages)for(let r of o(n))t.has(r.paragraphId)||t.set(r.paragraphId,{pageIndex:n.index,contentY:n.contentBox.y,fragmentY:r.box.y,...r.lines?{lines:r.lines}:{}});return t}function k(e,o){let t=l(e);if(!t)return null;let n=o.get(t.start.paragraphId);if(!n)return null;let r=n.lines?.find(i=>t.start.offset<i.range.end);return {pageIndex:n.pageIndex,y:n.contentY+(r?r.box.y:n.fragmentY)}}
|
|
2
|
-
export{c as a,R as b,v as c,w as d,I as e,s as f,l as g,x as h,g as i,h as j,b as k,P as l,k as m};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { e as OoxmlPart, O as OoxmlNode } from './ooxml-tree-BU0e3DVi.cjs';
|
|
2
|
-
import { O as OoxmlPackage } from './ooxml-package-CR5us6ad.cjs';
|
|
3
|
-
|
|
4
|
-
/** `w:pos` — where a section's footnotes are laid out. */
|
|
5
|
-
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|
|
6
|
-
/** `w:pos` for endnotes — only the two document-level placements are legal. */
|
|
7
|
-
type EndnotePosition = 'sectEnd' | 'docEnd';
|
|
8
|
-
/** `w:numRestart` — when note numbering starts over. `eachPage` needs the reference's page. */
|
|
9
|
-
type NoteNumRestart = 'continuous' | 'eachSect' | 'eachPage';
|
|
10
|
-
/** Authored subset — only keys present in the file appear. */
|
|
11
|
-
interface AuthoredNoteProperties {
|
|
12
|
-
readonly pos?: string;
|
|
13
|
-
readonly numFmt?: string;
|
|
14
|
-
readonly numStart?: number;
|
|
15
|
-
readonly numRestart?: string;
|
|
16
|
-
}
|
|
17
|
-
/** Fully resolved footnote properties (defaults filled). */
|
|
18
|
-
interface ResolvedFootnoteProperties {
|
|
19
|
-
readonly pos: FootnotePosition;
|
|
20
|
-
readonly numFmt: string;
|
|
21
|
-
readonly numStart: number;
|
|
22
|
-
readonly numRestart: NoteNumRestart;
|
|
23
|
-
}
|
|
24
|
-
/** Fully resolved endnote properties (defaults filled). */
|
|
25
|
-
interface ResolvedEndnoteProperties {
|
|
26
|
-
readonly pos: EndnotePosition;
|
|
27
|
-
readonly numFmt: string;
|
|
28
|
-
readonly numStart: number;
|
|
29
|
-
readonly numRestart: NoteNumRestart;
|
|
30
|
-
}
|
|
31
|
-
/** Word's own footnote defaults, applied where a section declares no `w:footnotePr`. */
|
|
32
|
-
declare const DEFAULT_FOOTNOTE_PROPERTIES: ResolvedFootnoteProperties;
|
|
33
|
-
/**
|
|
34
|
-
* Word-compatible defaults. ECMA-376 says omitted endnote `numFmt` is decimal;
|
|
35
|
-
* MS-OE376 / MS-OI29500 document that Word’s default is `lowerRoman` instead.
|
|
36
|
-
* Resolved (not authored) — unedited packages still invent nothing on save.
|
|
37
|
-
*/
|
|
38
|
-
declare const DEFAULT_ENDNOTE_PROPERTIES: ResolvedEndnoteProperties;
|
|
39
|
-
/** Parse authored CT_FtnProps / CT_EdnProps without inventing defaults. */
|
|
40
|
-
declare function parseAuthoredNoteProperties(propsNode: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
41
|
-
/** Authored footnotePr on a sectPr node. */
|
|
42
|
-
declare function authoredFootnotePropertiesFromSectPr(sectPr: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
43
|
-
/** Authored endnotePr on a sectPr node. */
|
|
44
|
-
declare function authoredEndnotePropertiesFromSectPr(sectPr: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
45
|
-
/** Locate settings.xml via the main document relationship when present. */
|
|
46
|
-
declare function settingsPartOf(pkg: OoxmlPackage): OoxmlPart | null;
|
|
47
|
-
/** Authored document-level footnotePr from settings. */
|
|
48
|
-
declare function authoredDocumentFootnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
49
|
-
/** Authored document-level endnotePr from settings. */
|
|
50
|
-
declare function authoredDocumentEndnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Resolve footnote properties: section → document → defaults.
|
|
53
|
-
* Illegal position strings fall through to the next layer / default.
|
|
54
|
-
*/
|
|
55
|
-
declare function resolveFootnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedFootnoteProperties;
|
|
56
|
-
/**
|
|
57
|
-
* Resolve endnote properties: section → document → defaults.
|
|
58
|
-
* `pageBottom` is never a legal endnote position — falls back.
|
|
59
|
-
*/
|
|
60
|
-
declare function resolveEndnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedEndnoteProperties;
|
|
61
|
-
/** Validate an authored endnote position write — refuse `pageBottom`. */
|
|
62
|
-
declare function isLegalEndnotePosition(pos: string): pos is EndnotePosition;
|
|
63
|
-
/** Validate an authored footnote position write. */
|
|
64
|
-
declare function isLegalFootnotePosition(pos: string): pos is FootnotePosition;
|
|
65
|
-
/** Whether a file-supplied string is a legal `w:numRestart` value. Narrows the type. */
|
|
66
|
-
declare function isLegalNumRestart(value: string): value is NoteNumRestart;
|
|
67
|
-
|
|
68
|
-
export { type AuthoredNoteProperties as A, DEFAULT_ENDNOTE_PROPERTIES as D, type EndnotePosition as E, type FootnotePosition as F, type NoteNumRestart as N, type ResolvedFootnoteProperties as R, type ResolvedEndnoteProperties as a, DEFAULT_FOOTNOTE_PROPERTIES as b, authoredDocumentEndnoteProperties as c, authoredDocumentFootnoteProperties as d, authoredEndnotePropertiesFromSectPr as e, authoredFootnotePropertiesFromSectPr as f, isLegalFootnotePosition as g, isLegalNumRestart as h, isLegalEndnotePosition as i, resolveFootnoteProperties as j, parseAuthoredNoteProperties as p, resolveEndnoteProperties as r, settingsPartOf as s };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { e as OoxmlPart, O as OoxmlNode } from './ooxml-tree-BU0e3DVi.js';
|
|
2
|
-
import { O as OoxmlPackage } from './ooxml-package-D_CtywTW.js';
|
|
3
|
-
|
|
4
|
-
/** `w:pos` — where a section's footnotes are laid out. */
|
|
5
|
-
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|
|
6
|
-
/** `w:pos` for endnotes — only the two document-level placements are legal. */
|
|
7
|
-
type EndnotePosition = 'sectEnd' | 'docEnd';
|
|
8
|
-
/** `w:numRestart` — when note numbering starts over. `eachPage` needs the reference's page. */
|
|
9
|
-
type NoteNumRestart = 'continuous' | 'eachSect' | 'eachPage';
|
|
10
|
-
/** Authored subset — only keys present in the file appear. */
|
|
11
|
-
interface AuthoredNoteProperties {
|
|
12
|
-
readonly pos?: string;
|
|
13
|
-
readonly numFmt?: string;
|
|
14
|
-
readonly numStart?: number;
|
|
15
|
-
readonly numRestart?: string;
|
|
16
|
-
}
|
|
17
|
-
/** Fully resolved footnote properties (defaults filled). */
|
|
18
|
-
interface ResolvedFootnoteProperties {
|
|
19
|
-
readonly pos: FootnotePosition;
|
|
20
|
-
readonly numFmt: string;
|
|
21
|
-
readonly numStart: number;
|
|
22
|
-
readonly numRestart: NoteNumRestart;
|
|
23
|
-
}
|
|
24
|
-
/** Fully resolved endnote properties (defaults filled). */
|
|
25
|
-
interface ResolvedEndnoteProperties {
|
|
26
|
-
readonly pos: EndnotePosition;
|
|
27
|
-
readonly numFmt: string;
|
|
28
|
-
readonly numStart: number;
|
|
29
|
-
readonly numRestart: NoteNumRestart;
|
|
30
|
-
}
|
|
31
|
-
/** Word's own footnote defaults, applied where a section declares no `w:footnotePr`. */
|
|
32
|
-
declare const DEFAULT_FOOTNOTE_PROPERTIES: ResolvedFootnoteProperties;
|
|
33
|
-
/**
|
|
34
|
-
* Word-compatible defaults. ECMA-376 says omitted endnote `numFmt` is decimal;
|
|
35
|
-
* MS-OE376 / MS-OI29500 document that Word’s default is `lowerRoman` instead.
|
|
36
|
-
* Resolved (not authored) — unedited packages still invent nothing on save.
|
|
37
|
-
*/
|
|
38
|
-
declare const DEFAULT_ENDNOTE_PROPERTIES: ResolvedEndnoteProperties;
|
|
39
|
-
/** Parse authored CT_FtnProps / CT_EdnProps without inventing defaults. */
|
|
40
|
-
declare function parseAuthoredNoteProperties(propsNode: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
41
|
-
/** Authored footnotePr on a sectPr node. */
|
|
42
|
-
declare function authoredFootnotePropertiesFromSectPr(sectPr: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
43
|
-
/** Authored endnotePr on a sectPr node. */
|
|
44
|
-
declare function authoredEndnotePropertiesFromSectPr(sectPr: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
45
|
-
/** Locate settings.xml via the main document relationship when present. */
|
|
46
|
-
declare function settingsPartOf(pkg: OoxmlPackage): OoxmlPart | null;
|
|
47
|
-
/** Authored document-level footnotePr from settings. */
|
|
48
|
-
declare function authoredDocumentFootnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
49
|
-
/** Authored document-level endnotePr from settings. */
|
|
50
|
-
declare function authoredDocumentEndnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Resolve footnote properties: section → document → defaults.
|
|
53
|
-
* Illegal position strings fall through to the next layer / default.
|
|
54
|
-
*/
|
|
55
|
-
declare function resolveFootnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedFootnoteProperties;
|
|
56
|
-
/**
|
|
57
|
-
* Resolve endnote properties: section → document → defaults.
|
|
58
|
-
* `pageBottom` is never a legal endnote position — falls back.
|
|
59
|
-
*/
|
|
60
|
-
declare function resolveEndnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedEndnoteProperties;
|
|
61
|
-
/** Validate an authored endnote position write — refuse `pageBottom`. */
|
|
62
|
-
declare function isLegalEndnotePosition(pos: string): pos is EndnotePosition;
|
|
63
|
-
/** Validate an authored footnote position write. */
|
|
64
|
-
declare function isLegalFootnotePosition(pos: string): pos is FootnotePosition;
|
|
65
|
-
/** Whether a file-supplied string is a legal `w:numRestart` value. Narrows the type. */
|
|
66
|
-
declare function isLegalNumRestart(value: string): value is NoteNumRestart;
|
|
67
|
-
|
|
68
|
-
export { type AuthoredNoteProperties as A, DEFAULT_ENDNOTE_PROPERTIES as D, type EndnotePosition as E, type FootnotePosition as F, type NoteNumRestart as N, type ResolvedFootnoteProperties as R, type ResolvedEndnoteProperties as a, DEFAULT_FOOTNOTE_PROPERTIES as b, authoredDocumentEndnoteProperties as c, authoredDocumentFootnoteProperties as d, authoredEndnotePropertiesFromSectPr as e, authoredFootnotePropertiesFromSectPr as f, isLegalFootnotePosition as g, isLegalNumRestart as h, isLegalEndnotePosition as i, resolveFootnoteProperties as j, parseAuthoredNoteProperties as p, resolveEndnoteProperties as r, settingsPartOf as s };
|