@evaro/consultation-sdk 0.1.0 → 0.2.0-next.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 CHANGED
@@ -28,7 +28,7 @@ import { Consultation } from '@evaro/consultation-sdk'
28
28
  />
29
29
  ```
30
30
 
31
- With no `target`, the component runs as a preview and saves nothing. With `readOnly`, it shows the saved answers of the target.
31
+ With no `target`, the component runs as a preview and saves nothing. With `readOnly`, it shows the saved answers of the target. With `nodeApiUrl`, the target's calls go to that URL, for example a local stub server, in place of the environment's NodeAPI host. It must use https, except for localhost. When `consultation`, `vendor`, `environment`, `preview`, `target`, `readOnly` or `layout` changes, or `nodeApiUrl` sends the target's calls to another server, the component sends the last unsaved answers to the old target and loads again, so a host does not have to remount it.
32
32
 
33
33
  The props, the target endpoints and the events are described in [docs/consultation-sdk.md](https://github.com/TotalAccessHealth/consultation/blob/main/docs/consultation-sdk.md).
34
34
 
@@ -44,7 +44,7 @@ The package lives in the `sdk/` folder of the CB repo. Run these commands from t
44
44
 
45
45
  `pnpm dev` and `pnpm build` build the package first, because the CB preview uses it. `pnpm dev` builds it only once, so when you change the package while CB runs, also run `pnpm dev:sdk` to rebuild on each change.
46
46
 
47
- `src/flow/questionnaire.ts` and its test are copies of Connect's `utils/questionnaire.ts`. Until Connect uses this package, a change to the flow goes to both repos, with its tests.
47
+ `src/flow/questionnaire.ts` and its test are copies of Connect's `utils/questionnaire.ts` and its test at commit `53135f37` on Connect `main`. Until Connect uses this package, a change to the flow goes to both repos, with its tests. When you copy a newer version, change the commit here and in the design doc.
48
48
 
49
49
  ## Publish
50
50