@picked/react 0.0.1-dev.1783478000089 → 0.0.1-dev.1783575114714
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/dist/hooks/client.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ExperienceInstance, Picked } from '@picked/client';
|
|
2
2
|
/**
|
|
3
3
|
* Retrieves the Picked Client for the Experience Instance.
|
|
4
|
+
*
|
|
4
5
|
* @returns The Picked client instance that provides access to experiences, steps, and other Picked functionality.
|
|
5
6
|
* @example
|
|
6
7
|
* const client = usePicked()
|
|
@@ -8,9 +9,17 @@ import { ExperienceInstance, Picked } from '@picked/client';
|
|
|
8
9
|
export declare function usePicked(): Picked;
|
|
9
10
|
/**
|
|
10
11
|
* Retrieves the Experience Store for the current Experience Instance.
|
|
12
|
+
*
|
|
13
|
+
* The returned instance exposes `restart` and `isResumableStore` for SDK-native
|
|
14
|
+
* resume/restart flows: call `instance.restart()` to clear this instance's history and
|
|
15
|
+
* the experience's owned responses, and read `instance.isResumableStore` (via `useUnit`)
|
|
16
|
+
* to render a "continue / start over" prompt once the user has progressed past the first
|
|
17
|
+
* step (it stays `false` on the first step, even with a saved answer).
|
|
18
|
+
*
|
|
11
19
|
* @returns The Experience store instance that provides access to experience configuration and state.
|
|
12
20
|
* @example
|
|
13
21
|
* const experience = useExperience()
|
|
22
|
+
* const canResume = useUnit(experience.isResumableStore)
|
|
14
23
|
*/
|
|
15
24
|
export declare function useExperience(): ExperienceInstance;
|
|
16
25
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/hooks/client.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAGhE
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/hooks/client.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAGhE;;;;;;GAMG;AACH,wBAAgB,SAAS,IAAI,MAAM,CAOlC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,IAAI,kBAAkB,CAOlD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@picked/react",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.1783575114714",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@picked/client": "workspace:*",
|
|
6
6
|
"@repo/eslint-config": "workspace:*",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"module": "./dist/index.js",
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@picked/client": "0.0.1-dev.
|
|
88
|
+
"@picked/client": "0.0.1-dev.1783575114714",
|
|
89
89
|
"effector": "^23.3.0",
|
|
90
90
|
"react": "19.2.2",
|
|
91
91
|
"react-dom": "19.2.2"
|