@eigenpal/docx-js-editor 0.0.1 → 0.0.2
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 +1 -1
- package/dist/chunk-3IYNTJO5.js +1 -0
- package/dist/chunk-7KNRIGGW.cjs +1 -0
- package/dist/chunk-AQ35GWDV.js +1 -0
- package/dist/chunk-CDT2SOKB.cjs +9 -0
- package/dist/chunk-CM5WP7HZ.cjs +10 -0
- package/dist/chunk-EU5LN2WS.js +11 -0
- package/dist/chunk-FOU7PS3K.cjs +1 -0
- package/dist/chunk-G4AXMTQY.cjs +11 -0
- package/dist/chunk-HRPNPUU4.js +1 -0
- package/dist/chunk-NI5OFVY2.js +57 -0
- package/dist/chunk-QHWHCIUW.js +1 -0
- package/dist/chunk-RGYAPHXT.cjs +57 -0
- package/dist/chunk-RTESADL3.cjs +1 -0
- package/dist/chunk-T3I3VSJ3.js +9 -0
- package/dist/chunk-XVFMG77A.cjs +1 -0
- package/dist/chunk-YJJ7HRPG.js +10 -0
- package/dist/core-plugins.cjs +1 -7131
- package/dist/core-plugins.js +1 -7102
- package/dist/executor-7DZMHPUF.js +1 -0
- package/dist/executor-FSMRGT73.cjs +1 -0
- package/dist/headless.cjs +4 -10984
- package/dist/headless.d.cts +4 -3
- package/dist/headless.d.ts +4 -3
- package/dist/headless.js +4 -10852
- package/dist/index.cjs +210 -44710
- package/dist/index.css +1 -369
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +210 -44385
- package/dist/mcp-cli.js +35 -9557
- package/dist/mcp.cjs +14 -8713
- package/dist/mcp.js +14 -8665
- package/dist/selectionRects-3PJ6FGHQ.js +1 -0
- package/dist/selectionRects-6QL5E7CE.cjs +1 -0
- package/package.json +3 -4
- package/dist/core-plugins.cjs.map +0 -1
- package/dist/core-plugins.js.map +0 -1
- package/dist/headless.cjs.map +0 -1
- package/dist/headless.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/mcp-cli.js.map +0 -1
- package/dist/mcp.cjs.map +0 -1
- package/dist/mcp.js.map +0 -1
package/dist/headless.d.cts
CHANGED
|
@@ -211,7 +211,8 @@ declare function createDocx(doc: Document): Promise<ArrayBuffer>;
|
|
|
211
211
|
/**
|
|
212
212
|
* Variable Detector Utility
|
|
213
213
|
*
|
|
214
|
-
* Scans a DOCX document for template variables in the format {
|
|
214
|
+
* Scans a DOCX document for template variables in the format {variable_name}
|
|
215
|
+
* (standard docxtemplater syntax).
|
|
215
216
|
* Returns a unique, sorted list of variable names found in the document.
|
|
216
217
|
*/
|
|
217
218
|
|
|
@@ -290,7 +291,7 @@ declare function isValidVariableName(name: string): boolean;
|
|
|
290
291
|
*/
|
|
291
292
|
declare function sanitizeVariableName(name: string): string;
|
|
292
293
|
/**
|
|
293
|
-
* Format a variable name with braces
|
|
294
|
+
* Format a variable name with braces (standard docxtemplater syntax)
|
|
294
295
|
*/
|
|
295
296
|
declare function formatVariable(name: string): string;
|
|
296
297
|
/**
|
|
@@ -356,6 +357,6 @@ declare function documentHasVariables(doc: Document): boolean;
|
|
|
356
357
|
* fs.writeFileSync('output.docx', Buffer.from(output));
|
|
357
358
|
* ```
|
|
358
359
|
*/
|
|
359
|
-
declare const VERSION = "0.
|
|
360
|
+
declare const VERSION = "0.0.2";
|
|
360
361
|
|
|
361
362
|
export { Document, DocumentBody, Hyperlink, Paragraph, Position, Run, Table, TextFormatting, VERSION, type VariableDetectionResult, type VariableOccurrence, countCharacters, countWords, createDocx, detectVariables, detectVariablesDetailed, detectVariablesInBody, detectVariablesInParagraph, documentHasVariables, extractVariablesFromText, formatVariable, getBlockIndexForParagraph, getBodyCharacterCount, getBodyText, getBodyWordCount, getFormattingAtPosition, getHyperlinkAtPosition, getHyperlinkText, getParagraphAtIndex, getParagraphText, getParagraphs, getRunText, getTableText, getTextAfter, getTextBefore, hasHyperlinks, hasImages, hasTables, hasTemplateVariables, isHeadingStyle, isPositionInHyperlink, isValidVariableName, parseHeadingLevel, parseVariable, removeVariables, repackDocx, replaceVariables, sanitizeVariableName };
|
package/dist/headless.d.ts
CHANGED
|
@@ -211,7 +211,8 @@ declare function createDocx(doc: Document): Promise<ArrayBuffer>;
|
|
|
211
211
|
/**
|
|
212
212
|
* Variable Detector Utility
|
|
213
213
|
*
|
|
214
|
-
* Scans a DOCX document for template variables in the format {
|
|
214
|
+
* Scans a DOCX document for template variables in the format {variable_name}
|
|
215
|
+
* (standard docxtemplater syntax).
|
|
215
216
|
* Returns a unique, sorted list of variable names found in the document.
|
|
216
217
|
*/
|
|
217
218
|
|
|
@@ -290,7 +291,7 @@ declare function isValidVariableName(name: string): boolean;
|
|
|
290
291
|
*/
|
|
291
292
|
declare function sanitizeVariableName(name: string): string;
|
|
292
293
|
/**
|
|
293
|
-
* Format a variable name with braces
|
|
294
|
+
* Format a variable name with braces (standard docxtemplater syntax)
|
|
294
295
|
*/
|
|
295
296
|
declare function formatVariable(name: string): string;
|
|
296
297
|
/**
|
|
@@ -356,6 +357,6 @@ declare function documentHasVariables(doc: Document): boolean;
|
|
|
356
357
|
* fs.writeFileSync('output.docx', Buffer.from(output));
|
|
357
358
|
* ```
|
|
358
359
|
*/
|
|
359
|
-
declare const VERSION = "0.
|
|
360
|
+
declare const VERSION = "0.0.2";
|
|
360
361
|
|
|
361
362
|
export { Document, DocumentBody, Hyperlink, Paragraph, Position, Run, Table, TextFormatting, VERSION, type VariableDetectionResult, type VariableOccurrence, countCharacters, countWords, createDocx, detectVariables, detectVariablesDetailed, detectVariablesInBody, detectVariablesInParagraph, documentHasVariables, extractVariablesFromText, formatVariable, getBlockIndexForParagraph, getBodyCharacterCount, getBodyText, getBodyWordCount, getFormattingAtPosition, getHyperlinkAtPosition, getHyperlinkText, getParagraphAtIndex, getParagraphText, getParagraphs, getRunText, getTableText, getTextAfter, getTextBefore, hasHyperlinks, hasImages, hasTables, hasTemplateVariables, isHeadingStyle, isPositionInHyperlink, isValidVariableName, parseHeadingLevel, parseVariable, removeVariables, repackDocx, replaceVariables, sanitizeVariableName };
|