@hotosm/hanko-auth 0.3.4 → 0.3.5

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
@@ -15,36 +15,11 @@ pnpm add @hotosm/hanko-auth
15
15
  yarn add @hotosm/hanko-auth
16
16
  ```
17
17
 
18
- ### Peer Dependencies
19
-
20
- This package requires Web Awesome to be installed separately:
21
-
22
- ```bash
23
- # npm
24
- npm install @awesome.me/webawesome
25
-
26
- # pnpm
27
- pnpm add @awesome.me/webawesome
28
-
29
- # yarn
30
- yarn add @awesome.me/webawesome
31
- ```
32
-
33
- **Why peer dependencies?**
34
-
35
- - Control the Web Awesome version in your project
36
- - Share Web Awesome across multiple packages without duplication
37
- - Reduce bundle size when multiple packages use Web Awesome
38
-
39
18
  ## Quick Start
40
19
 
41
20
  ### Import the component
42
21
 
43
22
  ```javascript
44
- // Import Web Awesome (required peer dependency)
45
- import "@awesome.me/webawesome";
46
-
47
- // Import the auth component
48
23
  import "@hotosm/hanko-auth";
49
24
  ```
50
25
 
@@ -61,7 +36,6 @@ import "@hotosm/hanko-auth";
61
36
 
62
37
  ```tsx
63
38
  import { useEffect, useRef } from "react";
64
- import "@awesome.me/webawesome";
65
39
  import "@hotosm/hanko-auth";
66
40
 
67
41
  export function AuthButton({ hankoUrl, onLogin }) {
@@ -203,14 +177,3 @@ The component detects the Hanko URL in the following priority order:
203
177
  </script>
204
178
  <hotosm-auth></hotosm-auth>
205
179
  ```
206
-
207
- ## Styling
208
-
209
- The component uses Shadow DOM. Override styles with CSS custom properties:
210
-
211
- ```css
212
- hotosm-auth {
213
- --primary-color: #d73f3f;
214
- --text-color: #333;
215
- }
216
- ```