@lovable.dev/cloud-auth-js 1.2.0 → 1.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 +7 -0
- package/assets/lovable-mark.svg.d.ts +3 -0
- package/package.json +6 -2
- package/styles.css +1 -1
package/README.md
CHANGED
|
@@ -47,6 +47,13 @@ Use the `signInWithOAuth` flow above with `"lovable"` in `handleLovableSignIn`.
|
|
|
47
47
|
`lovable-auth-button--dark` on dark surfaces. The stylesheet owns the official mark, provider spacing, colors, focus
|
|
48
48
|
treatment, and disabled state.
|
|
49
49
|
|
|
50
|
+
For a custom button, import the heart mark separately:
|
|
51
|
+
|
|
52
|
+
```tsx
|
|
53
|
+
import lovableMarkUrl from "@lovable.dev/cloud-auth-js/lovable-mark.svg";
|
|
54
|
+
<img src={lovableMarkUrl} alt="" />;
|
|
55
|
+
```
|
|
56
|
+
|
|
50
57
|
## API
|
|
51
58
|
|
|
52
59
|
### `createLovableAuth(config?)`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovable.dev/cloud-auth-js",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Lovable legacy OAuth broker JS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,11 @@
|
|
|
21
21
|
"default": "./dist/index.cjs"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"./styles.css": "./styles.css"
|
|
24
|
+
"./styles.css": "./styles.css",
|
|
25
|
+
"./lovable-mark.svg": {
|
|
26
|
+
"types": "./assets/lovable-mark.svg.d.ts",
|
|
27
|
+
"default": "./assets/lovable-mark.svg"
|
|
28
|
+
}
|
|
25
29
|
},
|
|
26
30
|
"type": "module",
|
|
27
31
|
"sideEffects": [
|