gleap 18.1.2 → 19.0.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 +16 -0
- package/build/browser/index.js +1 -1
- package/build/browser/index.js.map +1 -1
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.mjs +1 -1
- package/build/esm/index.mjs.map +1 -1
- package/index.d.ts +22 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -47,8 +47,24 @@ Gleap.setRegion("us");
|
|
|
47
47
|
Gleap.initialize("SDK-TOKEN");
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
+
### Dark mode (optional)
|
|
51
|
+
|
|
52
|
+
The widget can match your app's dark/light mode. Enable "Adapt to dark / light mode" in the dashboard (Widget → Look & feel) and set the dark colors there: header colors, UI color and background. In dark mode the widget uses these dark colors, plus the dark logo, header image and composer glow set in the dashboard; without dark colors it keeps its normal colors. Override the scheme at runtime, e.g. from your own theme toggle (only takes effect while "Adapt to dark / light mode" is enabled in the dashboard; until you call it, the dashboard setting applies):
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
Gleap.setColorScheme("auto"); // follows your app; or "light" / "dark" to force a mode
|
|
56
|
+
```
|
|
57
|
+
|
|
50
58
|
Congrats, you are now all set! Report your first bug by using the feedback button.
|
|
51
59
|
|
|
52
60
|
## 🤝 Need help?
|
|
53
61
|
|
|
54
62
|
We are here to help! hello@gleap.io
|
|
63
|
+
|
|
64
|
+
## Releasing
|
|
65
|
+
|
|
66
|
+
1. Set `version` in `package.json` and add a `## X.Y.Z` section to `CHANGELOG.md`.
|
|
67
|
+
2. Merge to `master`. Cloudflare Workers Builds deploys the CDN build (`sdk.gleap.io`) on every push to `master`.
|
|
68
|
+
3. `git tag X.Y.Z && git push origin X.Y.Z` (plain version, no `v`).
|
|
69
|
+
|
|
70
|
+
The `Release` workflow checks that the tag matches `package.json`, runs the tests, publishes `gleap` to npm with trusted publishing (GitHub OIDC, no token; prerelease tags go to the `next` dist-tag) and creates the GitHub release from the CHANGELOG section. One-time setup: `npm trust github gleap --repo GleapSDK/JavaScript-SDK --file release.yml --allow-publish`.
|