@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 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?)`
@@ -0,0 +1,3 @@
1
+ declare const lovableMarkUrl: string;
2
+
3
+ export default lovableMarkUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/cloud-auth-js",
3
- "version": "1.2.0",
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": [
package/styles.css CHANGED
@@ -15,7 +15,7 @@
15
15
  align-items: center;
16
16
  justify-content: center;
17
17
  box-sizing: border-box;
18
- padding: 10px 16px;
18
+ padding: 10px 40px;
19
19
  border: 1px solid #c5cad3;
20
20
  border-radius: 8px;
21
21
  appearance: none;