hmpo-form-wizard 15.0.2 → 15.0.5
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 +3 -0
- package/example/README.md +2 -0
- package/example/package.json +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -200,6 +200,7 @@ See [hmpo-components](https://github.com/HMPO/hmpo-components) for additional fi
|
|
|
200
200
|
|
|
201
201
|
* `journeyKey` - Name of the cross-wizard field storage name
|
|
202
202
|
* `default` - Default value for this field
|
|
203
|
+
* `placeholder` - Placeholder selection value for select box or radio button fields when first loading the form. Can be set to `true` for an empty placeholder, or with `{ key: }` to set a specific value.
|
|
203
204
|
* `multiple` - Allow multiple incomming values for a field. The result is presented as an array
|
|
204
205
|
* `formater` - Array of formatter names for this field in addition to the default formatter set, or formatter objects
|
|
205
206
|
* `type` - Formatter name
|
|
@@ -363,6 +364,8 @@ These controllers can be overridden in a custom controller to provide additional
|
|
|
363
364
|
|
|
364
365
|
An example application can be found in [the ./example directory](./example). To run this, follow the instructions in the [README](./example/README.md).
|
|
365
366
|
|
|
367
|
+
> **⚠️ Express Compatibility**: If you encounter a `path-to-regexp` error when running the example app with `"latest"` dependencies, pin Express to a v4.x version in the example's package.json by changing `"express": "latest"` to `"express": "^4.21.2"`. This is due to breaking changes in Express v5.x that affect route parameter parsing.
|
|
368
|
+
|
|
366
369
|
## Session Injection
|
|
367
370
|
|
|
368
371
|
A [helper](./injection/session-injection.js) is provided to aid with session injection:
|
package/example/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Example
|
|
2
2
|
|
|
3
|
+
> **⚠️ Compatibility Note**: If you encounter a `path-to-regexp` error when starting this example, it's likely due to Express v5.x compatibility issues. Pin Express to a v4.x version in package.json by changing `"express": "latest"` to `"express": "^4.21.2"`. This is due to breaking changes in Express v5.x that affect route parameter parsing.
|
|
4
|
+
|
|
3
5
|
## Installing and running
|
|
4
6
|
|
|
5
7
|
```
|
package/example/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hmpo-form-wizard",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.5",
|
|
4
4
|
"description": "Routing and request handling for a multi-step form processes",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"body-parser": "^1.20.3",
|
|
28
28
|
"csrf": "^3.1.0",
|
|
29
|
-
"debug": "
|
|
29
|
+
"debug": "4.3.7",
|
|
30
30
|
"deep-clone-merge": "^1.5.5",
|
|
31
|
-
"hmpo-model": "^6.0.
|
|
31
|
+
"hmpo-model": "^6.0.2",
|
|
32
32
|
"moment": "^2.30.1",
|
|
33
33
|
"underscore": "^1.13.7"
|
|
34
34
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"chai": "^4.5.0",
|
|
41
41
|
"eslint": "^9.12.0",
|
|
42
|
-
"express": "^4.21.
|
|
42
|
+
"express": "^4.21.2",
|
|
43
43
|
"json5": "^2.2.3",
|
|
44
44
|
"mocha": "^10.7.3",
|
|
45
45
|
"nyc": "^17.1.0",
|