legal-markdown-js 3.2.1 → 3.2.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/dist/core/processors/reference-processor.d.ts.map +1 -1
- package/dist/core/processors/reference-processor.js +41 -76
- package/dist/core/processors/reference-processor.js.map +1 -1
- package/dist/examples/imports/frontmatter-merging/output/contract-metadata.json +2 -2
- package/dist/examples/imports/frontmatter-merging/output/contract-metadata.yaml +2 -2
- package/dist/examples/imports/frontmatter-merging/templates/output/enterprise-contract-metadata.json +2 -2
- package/dist/examples/imports/frontmatter-merging/templates/output/enterprise-contract-metadata.yaml +2 -2
- package/dist/index.js +1 -1
- package/dist/legal-markdown.umd.min.js +1 -1
- package/dist/legal-markdown.umd.min.js.map +1 -1
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +7 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types.js +1 -1
- package/dist/web/legal-markdown.umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference-processor.d.ts","sourceRoot":"","sources":["../../../src/core/processors/reference-processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;
|
|
1
|
+
{"version":3,"file":"reference-processor.d.ts","sourceRoot":"","sources":["../../../src/core/processors/reference-processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAmBH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAkB7F"}
|
|
@@ -42,6 +42,10 @@
|
|
|
42
42
|
*/
|
|
43
43
|
import { getRomanNumeral, getAlphaLabel } from '../../utils/number-utilities.js';
|
|
44
44
|
import { fieldTracker } from '../../extensions/tracking/field-tracker.js';
|
|
45
|
+
/**
|
|
46
|
+
* Maximum number of header levels supported
|
|
47
|
+
*/
|
|
48
|
+
const MAX_HEADER_LEVELS = 6;
|
|
45
49
|
/**
|
|
46
50
|
* Processes internal cross-references in a Legal Markdown document
|
|
47
51
|
*
|
|
@@ -132,83 +136,11 @@ function extractCrossReferences(content, metadata) {
|
|
|
132
136
|
headerText = text;
|
|
133
137
|
key = keyName;
|
|
134
138
|
}
|
|
135
|
-
// Update section counters
|
|
136
|
-
|
|
137
|
-
sectionCounters.level1++;
|
|
138
|
-
sectionCounters.level2 = 0;
|
|
139
|
-
sectionCounters.level3 = 0;
|
|
140
|
-
sectionCounters.level4 = 0;
|
|
141
|
-
sectionCounters.level5 = 0;
|
|
142
|
-
sectionCounters.level6 = 0;
|
|
143
|
-
}
|
|
144
|
-
else if (level === 2) {
|
|
145
|
-
sectionCounters.level2++;
|
|
146
|
-
sectionCounters.level3 = 0;
|
|
147
|
-
sectionCounters.level4 = 0;
|
|
148
|
-
sectionCounters.level5 = 0;
|
|
149
|
-
sectionCounters.level6 = 0;
|
|
150
|
-
}
|
|
151
|
-
else if (level === 3) {
|
|
152
|
-
sectionCounters.level3++;
|
|
153
|
-
sectionCounters.level4 = 0;
|
|
154
|
-
sectionCounters.level5 = 0;
|
|
155
|
-
sectionCounters.level6 = 0;
|
|
156
|
-
}
|
|
157
|
-
else if (level === 4) {
|
|
158
|
-
sectionCounters.level4++;
|
|
159
|
-
sectionCounters.level5 = 0;
|
|
160
|
-
sectionCounters.level6 = 0;
|
|
161
|
-
}
|
|
162
|
-
else if (level === 5) {
|
|
163
|
-
sectionCounters.level5++;
|
|
164
|
-
sectionCounters.level6 = 0;
|
|
165
|
-
}
|
|
166
|
-
else if (level === 6) {
|
|
167
|
-
sectionCounters.level6++;
|
|
168
|
-
}
|
|
139
|
+
// Update section counters and reset sub-levels
|
|
140
|
+
updateSectionCounters(level, sectionCounters);
|
|
169
141
|
// Generate section number based on level
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
if (level === 1) {
|
|
173
|
-
sectionNumber = levelFormats.level1.replace(/%n/g, sectionCounters.level1.toString());
|
|
174
|
-
sectionText = `${sectionNumber} ${headerText}`;
|
|
175
|
-
}
|
|
176
|
-
else if (level === 2) {
|
|
177
|
-
sectionNumber = levelFormats.level2.replace(/%n/g, sectionCounters.level2.toString());
|
|
178
|
-
sectionText = `${sectionNumber} ${headerText}`;
|
|
179
|
-
}
|
|
180
|
-
else if (level === 3) {
|
|
181
|
-
sectionNumber = levelFormats.level3.replace(/%n/g, sectionCounters.level3.toString());
|
|
182
|
-
sectionText = `${sectionNumber} ${headerText}`;
|
|
183
|
-
}
|
|
184
|
-
else if (level === 4) {
|
|
185
|
-
sectionNumber = levelFormats.level4
|
|
186
|
-
.replace(/%n/g, sectionCounters.level4.toString())
|
|
187
|
-
.replace(/%c/g, getAlphaLabel(sectionCounters.level4))
|
|
188
|
-
.replace(/%r/g, getRomanNumeral(sectionCounters.level4, true))
|
|
189
|
-
.replace(/%R/g, getRomanNumeral(sectionCounters.level4, false));
|
|
190
|
-
sectionText = `${sectionNumber} ${headerText}`;
|
|
191
|
-
}
|
|
192
|
-
else if (level === 5) {
|
|
193
|
-
sectionNumber = levelFormats.level5
|
|
194
|
-
.replace(/%n/g, sectionCounters.level5.toString())
|
|
195
|
-
.replace(/%c/g, getAlphaLabel(sectionCounters.level5))
|
|
196
|
-
.replace(/%r/g, getRomanNumeral(sectionCounters.level5, true))
|
|
197
|
-
.replace(/%R/g, getRomanNumeral(sectionCounters.level5, false));
|
|
198
|
-
sectionText = `${sectionNumber} ${headerText}`;
|
|
199
|
-
}
|
|
200
|
-
else if (level === 6) {
|
|
201
|
-
sectionNumber = levelFormats.level6
|
|
202
|
-
.replace(/%n/g, sectionCounters.level6.toString())
|
|
203
|
-
.replace(/%r/g, getRomanNumeral(sectionCounters.level6, true))
|
|
204
|
-
.replace(/%R/g, getRomanNumeral(sectionCounters.level6, false));
|
|
205
|
-
sectionText = `${sectionNumber} ${headerText}`;
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
// Fallback for unknown levels
|
|
209
|
-
sectionNumber = `Level ${level}.`;
|
|
210
|
-
sectionText = `${sectionNumber} ${headerText}`;
|
|
211
|
-
}
|
|
142
|
+
const sectionNumber = generateSectionNumber(level, levelFormats, sectionCounters);
|
|
143
|
+
const sectionText = `${sectionNumber} ${headerText}`;
|
|
212
144
|
crossReferences.push({
|
|
213
145
|
key,
|
|
214
146
|
sectionNumber: sectionNumber.trim(),
|
|
@@ -286,6 +218,39 @@ function replaceCrossReferences(content, crossReferences, metadata) {
|
|
|
286
218
|
});
|
|
287
219
|
return processedLines.join('\n');
|
|
288
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* Generates formatted section number with placeholder replacement
|
|
223
|
+
* @param level - Section level (1-6)
|
|
224
|
+
* @param levelFormats - Format templates for each level
|
|
225
|
+
* @param counters - Current section counters
|
|
226
|
+
* @returns Formatted section number
|
|
227
|
+
*/
|
|
228
|
+
function generateSectionNumber(level, levelFormats, counters) {
|
|
229
|
+
const levelKey = `level${level}`;
|
|
230
|
+
const format = levelFormats[levelKey];
|
|
231
|
+
const counter = counters[levelKey];
|
|
232
|
+
if (!format) {
|
|
233
|
+
return `Level ${level}.`;
|
|
234
|
+
}
|
|
235
|
+
return format
|
|
236
|
+
.replace(/%n/g, counter.toString())
|
|
237
|
+
.replace(/%c/g, getAlphaLabel(counter))
|
|
238
|
+
.replace(/%r/g, getRomanNumeral(counter, true))
|
|
239
|
+
.replace(/%R/g, getRomanNumeral(counter, false));
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Updates section counter for given level and resets sub-levels
|
|
243
|
+
* @param level - Current level being processed
|
|
244
|
+
* @param counters - Section counters to update
|
|
245
|
+
*/
|
|
246
|
+
function updateSectionCounters(level, counters) {
|
|
247
|
+
const levelKey = `level${level}`;
|
|
248
|
+
counters[levelKey]++;
|
|
249
|
+
// Reset all lower-level counters
|
|
250
|
+
for (let i = level + 1; i <= MAX_HEADER_LEVELS; i++) {
|
|
251
|
+
counters[`level${i}`] = 0;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
289
254
|
/**
|
|
290
255
|
* Gets a potentially nested value from an object using dot notation
|
|
291
256
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference-processor.js","sourceRoot":"","sources":["../../../src/core/processors/reference-processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"reference-processor.js","sourceRoot":"","sources":["../../../src/core/processors/reference-processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAEvE;;GAEG;AACH,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAW5B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,sBAAsB,CAAC,OAAe,EAAE,QAA6B;IACnF,8DAA8D;IAC9D,MAAM,eAAe,GAAG,sBAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAElE,qDAAqD;IACrD,QAAQ,CAAC,mBAAmB,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC1D,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,aAAa,EAAE,GAAG,CAAC,aAAa;QAChC,WAAW,EAAE,GAAG,CAAC,WAAW;KAC7B,CAAC,CAAC,CA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AAC,YAAY,CAAC,OAAO,EAAE;YACpC,KAAK,EAAE,UAAU;YACjB,QAAQ;SACT,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC;IAED,4BAA4B;IAC5B,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"title": "Professional Services Agreement",
|
|
3
3
|
"document_type": "Master Service Agreement",
|
|
4
4
|
"version": "3.1",
|
|
5
|
-
"effective_date": "\"2025-09-
|
|
5
|
+
"effective_date": "\"2025-09-25\"",
|
|
6
6
|
"expiration_date": "2025-12-31",
|
|
7
7
|
"parties": {
|
|
8
8
|
"provider": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"name": "Enterprise Digital Transformation",
|
|
22
22
|
"description": "Comprehensive digital transformation initiative",
|
|
23
23
|
"duration": "18 months",
|
|
24
|
-
"start_date": "\"2025-09-
|
|
24
|
+
"start_date": "\"2025-09-25\"",
|
|
25
25
|
"end_date": "2026-06-30",
|
|
26
26
|
"budget": 750000,
|
|
27
27
|
"currency": "USD",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
title: Professional Services Agreement
|
|
2
2
|
document_type: Master Service Agreement
|
|
3
3
|
version: '3.1'
|
|
4
|
-
effective_date: '"2025-09-
|
|
4
|
+
effective_date: '"2025-09-25"'
|
|
5
5
|
expiration_date: '2025-12-31'
|
|
6
6
|
parties:
|
|
7
7
|
provider:
|
|
@@ -17,7 +17,7 @@ project:
|
|
|
17
17
|
name: Enterprise Digital Transformation
|
|
18
18
|
description: Comprehensive digital transformation initiative
|
|
19
19
|
duration: 18 months
|
|
20
|
-
start_date: '"2025-09-
|
|
20
|
+
start_date: '"2025-09-25"'
|
|
21
21
|
end_date: '2026-06-30'
|
|
22
22
|
budget: 750000
|
|
23
23
|
currency: USD
|
package/dist/examples/imports/frontmatter-merging/templates/output/enterprise-contract-metadata.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"title": "Enterprise Master Service Agreement",
|
|
3
3
|
"document_type": "Master Service Agreement",
|
|
4
4
|
"version": "2.3",
|
|
5
|
-
"effective_date": "\"2025-09-
|
|
5
|
+
"effective_date": "\"2025-09-25\"",
|
|
6
6
|
"expiration_date": "2026-12-31",
|
|
7
7
|
"contract_value": 5000000,
|
|
8
8
|
"parties": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"name": "Digital Transformation Initiative",
|
|
23
23
|
"description": "Comprehensive enterprise modernization program",
|
|
24
24
|
"duration": "36 months",
|
|
25
|
-
"start_date": "\"2025-09-
|
|
25
|
+
"start_date": "\"2025-09-25\"",
|
|
26
26
|
"end_date": "2027-12-31",
|
|
27
27
|
"budget": 5000000,
|
|
28
28
|
"currency": "USD",
|
package/dist/examples/imports/frontmatter-merging/templates/output/enterprise-contract-metadata.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
title: Enterprise Master Service Agreement
|
|
2
2
|
document_type: Master Service Agreement
|
|
3
3
|
version: '2.3'
|
|
4
|
-
effective_date: '"2025-09-
|
|
4
|
+
effective_date: '"2025-09-25"'
|
|
5
5
|
expiration_date: '2026-12-31'
|
|
6
6
|
contract_value: 5000000
|
|
7
7
|
parties:
|
|
@@ -18,7 +18,7 @@ project:
|
|
|
18
18
|
name: Digital Transformation Initiative
|
|
19
19
|
description: Comprehensive enterprise modernization program
|
|
20
20
|
duration: 36 months
|
|
21
|
-
start_date: '"2025-09-
|
|
21
|
+
start_date: '"2025-09-25"'
|
|
22
22
|
end_date: '2027-12-31'
|
|
23
23
|
budget: 5000000
|
|
24
24
|
currency: USD
|
package/dist/index.js
CHANGED
|
@@ -488,7 +488,7 @@ export async function generatePdfVersions(content, outputPath, options = {}) {
|
|
|
488
488
|
return { normal, highlighted };
|
|
489
489
|
}
|
|
490
490
|
// Export all sub-modules
|
|
491
|
-
export * from './types.js';
|
|
491
|
+
export * from './types/index.js';
|
|
492
492
|
export * from './core/index.js';
|
|
493
493
|
export * from './errors/index.js';
|
|
494
494
|
export * from './constants/index.js';
|