@flarehr/benefits-plan-assessment 1.0.861 → 1.0.862
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 +15 -0
- package/dist/benefits-plan-assessment.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,21 @@ Values can be obtained from partner app:
|
|
|
14
14
|
* To find the `profile-id` search for requests to https://sdk.split.io/api/mySegments/`profile-id`.
|
|
15
15
|
* To find a valid `assessment-id` click on one of the assessments on the page and search for https://autodev-partner.flarehr.com/benefits-plan/workplace-backend/v2.0/activities/`assessment-id`/steps
|
|
16
16
|
|
|
17
|
+
### Navigating programmatically
|
|
18
|
+
|
|
19
|
+
The component exposes a `navigateTo` method directly on the element, allowing external code to change the active page:
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
const el = document.querySelector('benefits-plan-assessment') as HTMLElement & {
|
|
23
|
+
navigateTo: (route: string) => void;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
el.navigateTo('/consent');
|
|
27
|
+
el.navigateTo('/question');
|
|
28
|
+
el.navigateTo('/completion');
|
|
29
|
+
el.navigateTo('/ineligible/<stepId>');
|
|
30
|
+
```
|
|
31
|
+
|
|
17
32
|
### Running
|
|
18
33
|
```
|
|
19
34
|
npm ci
|