@lssm/lib.presentation-runtime-core 1.7.3 → 1.9.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/README.md +38 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @lssm/lib.presentation-runtime-core
|
|
2
|
+
|
|
3
|
+
Core logic for ContractSpec presentation runtimes.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
To provide the shared, framework-agnostic state management and logic for executing workflows and rendering presentations defined in ContractSpec.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @lssm/lib.presentation-runtime-core
|
|
13
|
+
# or
|
|
14
|
+
bun add @lssm/lib.presentation-runtime-core
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Key Concepts
|
|
18
|
+
|
|
19
|
+
- **Workflow State**: Manages the progression of steps in a `WorkflowSpec`.
|
|
20
|
+
- **Step Navigation**: Logic for next/previous/submit actions.
|
|
21
|
+
- **Validation**: Integration with Zod schemas for step validation.
|
|
22
|
+
|
|
23
|
+
## Exports
|
|
24
|
+
|
|
25
|
+
- Types and state machines for workflows.
|
|
26
|
+
- Validation helpers.
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
Typically used internally by `@lssm/lib.presentation-runtime-react` or `@lssm/lib.presentation-runtime-react-native`.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/lib.presentation-runtime-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"typescript": "^5.9.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"tsdown": "^0.
|
|
22
|
+
"tsdown": "^0.16.6",
|
|
23
23
|
"typescript": "^5.9.3"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"exports": {
|
|
30
|
-
".": "./
|
|
30
|
+
".": "./dist/index.js",
|
|
31
31
|
"./*": "./*"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|