@legalplace/prerenderx 3.5.18 → 3.5.20-alpha.0
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/CHANGELOG.md +8 -0
- package/dist/libs/OutputParser.js +3 -0
- package/package.json +6 -7
- package/src/libs/OutputParser.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.5.19](https://git.legalplace.eu/legalplace/prerenderx/compare/@legalplace/prerenderx@3.5.18...@legalplace/prerenderx@3.5.19) (2024-06-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @legalplace/prerenderx
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.5.18](https://git.legalplace.eu/legalplace/prerenderx/compare/@legalplace/prerenderx@3.5.17...@legalplace/prerenderx@3.5.18) (2024-06-12)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @legalplace/prerenderx
|
|
@@ -63,6 +63,9 @@ var parseOutputWithVariables = function (output, index, variables, autonums) {
|
|
|
63
63
|
parsedOutput = parsedOutput.replace(/\[signature:date:([0-9]+)\]/g, function (v, signatureId) {
|
|
64
64
|
return "<span data-signature=\"date\" data-signature-id=\"" + signatureId + "\" data-signer-index=\"" + index + "\"></span>";
|
|
65
65
|
});
|
|
66
|
+
parsedOutput = parsedOutput.replace(/\[signature:mention:([0-9]+):"((?:[^"\\]|\\.)*)"\]/g, function (v, signatureId, mention) {
|
|
67
|
+
return "<span data-signature=\"mention\" data-signature-id=\"" + signatureId + "\" data-signer-index=\"" + index + "\" data-signer-mention=\"" + mention + "\"></span>";
|
|
68
|
+
});
|
|
66
69
|
parsedOutput = parsedOutput.replace(/\[date\]/g, function () { return '<span data-signature="date"></span>'; });
|
|
67
70
|
autonums.forEach(function (currentAn) {
|
|
68
71
|
if (currentAn[3] === null)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/prerenderx",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.20-alpha.0",
|
|
4
4
|
"description": "PrerenderX",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": "https://git.legalplace.eu/legalplace/prerenderx",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"release": "standard-version -a --no-verify"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@legalplace/conditions-runner": "^2.1.
|
|
19
|
+
"@legalplace/conditions-runner": "^2.1.19",
|
|
20
20
|
"@legalplace/eslint-config-base": "^1.1.1",
|
|
21
21
|
"@legalplace/lplogic": "2.3.1",
|
|
22
22
|
"@legalplace/models-v3-types": "^5.11.5",
|
|
23
|
-
"@legalplace/ovc-converter": "^2.0.
|
|
23
|
+
"@legalplace/ovc-converter": "^2.0.26",
|
|
24
24
|
"@legalplace/prettier-config": "^2.1.3",
|
|
25
|
-
"@legalplace/referencesparser": "^3.1.
|
|
25
|
+
"@legalplace/referencesparser": "^3.1.19",
|
|
26
26
|
"crypto": "^1.0.1",
|
|
27
27
|
"standard-version": "^9.3.1",
|
|
28
28
|
"typescript": "4.4.3"
|
|
@@ -30,13 +30,12 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/core": "^7.7.2",
|
|
32
32
|
"@babel/preset-typescript": "^7.7.2",
|
|
33
|
-
"@legalplace/types": "^2.
|
|
33
|
+
"@legalplace/types": "^2.8.0",
|
|
34
34
|
"@types/jest": "^24.0.15",
|
|
35
35
|
"@types/node": "^20.8.10",
|
|
36
36
|
"jest": "^24.8.0",
|
|
37
37
|
"redux-mock-store": "^1.5.3",
|
|
38
38
|
"ts-jest": "^24.0.2"
|
|
39
39
|
},
|
|
40
|
-
"prettier": "@legalplace/prettier-config"
|
|
41
|
-
"gitHead": "1c66efb5a8066dc72f28eeb9758edc577d039df5"
|
|
40
|
+
"prettier": "@legalplace/prettier-config"
|
|
42
41
|
}
|
package/src/libs/OutputParser.ts
CHANGED
|
@@ -143,6 +143,13 @@ export const parseOutputWithVariables: parseOutputT = (
|
|
|
143
143
|
`<span data-signature="date" data-signature-id="${signatureId}" data-signer-index="${index}"></span>`
|
|
144
144
|
);
|
|
145
145
|
|
|
146
|
+
// Signature mention tag
|
|
147
|
+
parsedOutput = parsedOutput.replace(
|
|
148
|
+
/\[signature:mention:([0-9]+):"((?:[^"\\]|\\.)*)"\]/g,
|
|
149
|
+
(v, signatureId, mention) =>
|
|
150
|
+
`<span data-signature="mention" data-signature-id="${signatureId}" data-signer-index="${index}" data-signer-mention="${mention}"></span>`
|
|
151
|
+
);
|
|
152
|
+
|
|
146
153
|
// Obsolete signature date tag
|
|
147
154
|
parsedOutput = parsedOutput.replace(
|
|
148
155
|
/\[date\]/g,
|