@heypointerhq/react 0.2.0 → 0.2.1

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
@@ -9,7 +9,7 @@ export function App() {
9
9
  return (
10
10
  <>
11
11
  {/* your app */}
12
- <HeyPointerAssistant baseUrl="https://your-heypointer-server" clientId="gfc_..." />
12
+ <HeyPointerAssistant baseUrl="https://your-heypointer-server" clientId="hpc_..." />
13
13
  </>
14
14
  );
15
15
  }
@@ -18,7 +18,7 @@ export function App() {
18
18
  | Prop | Meaning |
19
19
  |---|---|
20
20
  | `baseUrl` | HeyPointer API origin (required). Changing it remounts the guide. |
21
- | `clientId` | Client id from `heypointer init` (`gfc_` + 24 hex, public). The server refuses guide requests without a valid one. |
21
+ | `clientId` | Client id from `heypointer init` (`hpc_` + 24 hex, public). The server refuses guide requests without a valid one. |
22
22
  | `targetTimeoutMs` | How long to wait for a target that appears late (default 1500). |
23
23
  | `assist` | Start with assist mode on. The user can switch it off in the card; it is not remembered. See the [SDK README](../sdk/README.md#assist-mode). |
24
24
  | `labels` | Override any user-visible string (translations). Plain text with `{placeholders}`. See [Customizing](../../docs/CUSTOMIZING.md). |
@@ -36,7 +36,7 @@ A `ref` gives access to the live player: `ref.current?.player()?.open()`.
36
36
  npm install @heypointerhq/react react react-dom
37
37
  ```
38
38
 
39
- `@heypointerhq/sdk` comes with it. `react` and `react-dom` 18 or newer are peer dependencies. Version 0.2.0. The packages are still `private` (not on a registry); until publishing is approved, install the tarball: `npm pack -w @heypointerhq/react`, then `npm install ./heypointer-react-0.2.0.tgz`. See [docs/PACKAGES.md](../../docs/PACKAGES.md). Install `@heypointerhq/sdk` and `@heypointerhq/contracts` tarballs the same way.
39
+ `@heypointerhq/sdk` comes with it. `react` and `react-dom` 18 or newer are peer dependencies. Version 0.2.1. Install it with `npm install @heypointerhq/react`; `@heypointerhq/sdk` and `@heypointerhq/contracts` come with it.
40
40
 
41
41
  ## Next.js and server rendering
42
42
 
@@ -47,3 +47,7 @@ The package is marked `'use client'` and registers the element in an effect, so
47
47
  Verified: 6 tests that mount the real player in jsdom, cover `baseUrl` changes, unmount and server rendering. Peer dependencies: `react` and `react-dom` 18 or newer.
48
48
 
49
49
  `npm test -w packages/react`
50
+
51
+ ---
52
+
53
+ [Website](https://heypointer.com/) · [Docs](https://heypointer.com/docs/) · [X](https://x.com/heypointer) · [Instagram](https://www.instagram.com/heypointer/) · Support: [Buy Me a Coffee](https://buymeacoffee.com/heypointer) · [Ko-fi](https://ko-fi.com/heypointer)
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { type ColorScheme, type HeyPointer, type HeyPointerLabels, type HeyPoint
2
2
  export interface HeyPointerAssistantProps {
3
3
  /** HeyPointer API origin, e.g. https://heypointer.example.com */
4
4
  baseUrl: string;
5
- /** Publishable client id from `heypointer init` (`gfc_` + 24 hex). The server refuses guide requests without a valid one. */
5
+ /** Publishable client id from `heypointer init` (`hpc_` + 24 hex). The server refuses guide requests without a valid one. */
6
6
  clientId?: string;
7
7
  targetTimeoutMs?: number;
8
8
  /** Start with assist mode on (the guide clicks safe controls for the user on Next). The user can still switch it off; it is not remembered. */
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ // Copyright 2026 HeyPointer
1
3
  'use client';
2
4
  import { createElement, forwardRef, useEffect, useImperativeHandle, useRef } from 'react';
3
5
  import { HEYPOINTER_TAG, defineHeyPointerElement } from '@heypointerhq/sdk';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heypointerhq/react",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "description": "React component for HeyPointer: renders the shared <heypointer-assistant> element and manages its lifecycle.",
6
6
  "keywords": [
@@ -39,7 +39,7 @@
39
39
  "NOTICE"
40
40
  ],
41
41
  "dependencies": {
42
- "@heypointerhq/sdk": "^0.2.0"
42
+ "@heypointerhq/sdk": "^0.2.1"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=18",