@axceera/playstep-react 0.1.0 → 0.2.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
@@ -24,7 +24,7 @@ function Invoices() {
24
24
  }
25
25
  ```
26
26
 
27
- `usePlayStep()` returns the SDK (`start`, `complete`, `track`, `openLauncher`, `reset`). The provider initialises once
27
+ `usePlayStep()` returns the SDK (`start`, `complete`, `track`, `openLauncher`, `resetProgress`, `reset`). The provider initialises once
28
28
  and re-identifies when `user` changes.
29
29
 
30
30
  Docs: https://playstep.app/docs/sdk/react
package/dist/index.d.ts CHANGED
@@ -16,7 +16,10 @@ export interface PlayStepProviderProps extends Omit<InitOptions$1, 'appKey' | 's
16
16
  }
17
17
  /** Starts PlayStep once for your app and keeps the signed-in user in sync. Renders only its children. */
18
18
  export declare function PlayStepProvider({ appKey, user, children, ...options }: PlayStepProviderProps): import("react").JSX.Element;
19
- /** The PlayStep SDK: `track`, `start`, `complete`, `openLauncher`, `identify`, `reset`. */
19
+ /**
20
+ * The PlayStep SDK: `track`, `start`, `complete`, `page`, `openLauncher` (the guide list, for your own help menu),
21
+ * `resetProgress` (let users replay guides), `identify`, `reset`.
22
+ */
20
23
  export declare function usePlayStep(): PlayStep$1;
21
24
  /** Reports one of your events when the component mounts (and again whenever `event` changes). */
22
25
  export declare function useTrack(event: string | null | undefined): void;
package/dist/index.js CHANGED
@@ -30,7 +30,10 @@ function PlayStepProvider({ appKey, user, children, ...options }) {
30
30
  children
31
31
  });
32
32
  }
33
- /** The PlayStep SDK: `track`, `start`, `complete`, `openLauncher`, `identify`, `reset`. */
33
+ /**
34
+ * The PlayStep SDK: `track`, `start`, `complete`, `page`, `openLauncher` (the guide list, for your own help menu),
35
+ * `resetProgress` (let users replay guides), `identify`, `reset`.
36
+ */
34
37
  function usePlayStep() {
35
38
  return useContext(Context);
36
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axceera/playstep-react",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "PlayStep for React: a provider and hooks around @axceera/playstep. Guides render in their own Shadow DOM, outside your React tree.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "react": ">=18"
23
23
  },
24
24
  "dependencies": {
25
- "@axceera/playstep": "^0.1.0"
25
+ "@axceera/playstep": "^0.2.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@testing-library/react": "^16.3.3",