@livechatta/sdk 1.0.0 → 1.0.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/CHANGELOG.md +10 -0
- package/README.md +5 -5
- package/dist/cjs/livechatta.cjs.js +2 -1
- package/dist/cjs/livechatta.cjs.js.map +1 -1
- package/dist/cjs/livechatta.cjs.min.js +1 -1
- package/dist/cjs/livechatta.cjs.min.js.map +1 -1
- package/dist/esm/livechatta.esm.js +2 -1
- package/dist/esm/livechatta.esm.js.map +1 -1
- package/dist/esm/livechatta.esm.min.js +1 -1
- package/dist/esm/livechatta.esm.min.js.map +1 -1
- package/dist/umd/livechatta.umd.js +2 -1
- package/dist/umd/livechatta.umd.js.map +1 -1
- package/dist/umd/livechatta.umd.min.js +1 -1
- package/dist/umd/livechatta.umd.min.js.map +1 -1
- package/package.json +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ All notable changes to `@livechatta/sdk` (and the Kotlin, Swift and Dart SDKs an
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 1.0.1 (2026-11-28)
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **`permissions.requestMedia({ audio, video })` on Capacitor asks for exactly what you request.** It called `HopBridge.requestPermissions()` without flags, so `video: true` never raised the camera dialog on iOS (and Android never asked for the camera), and `audio: false` still asked for the microphone. It now passes `{ wantVideo, wantAudio }`; shells that ignore the flags behave as before.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **Docs links point at [livechatta.com/docs](https://livechatta.com/docs/guides/), never the private source repository.** The npm README, the guides (iOS install, Android and Flutter notes, server samples), the package `homepage` (now the SDK reference; `repository` removed), the Maven POM `scm` url and the pub.dev `homepage` / `documentation`.
|
|
16
|
+
|
|
7
17
|
## 1.0.0 (2026-11-27)
|
|
8
18
|
|
|
9
19
|
**The first public release of the LiveChatta SDK.** Nothing was published before this. Everything the SDK does ships in this one release, on every platform at the same version. The internal builds that led up to it are listed in [docs/HISTORY.md](docs/HISTORY.md).
|
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Official SDK for the [LiveChatta](https://livechatta.com) chat platform. Provides dual-transport (WebSocket + HTTP), headless or embedded UI modes, and cross-platform support (Web, React, React Native, Flutter, Android, iOS, Angular, Vue 3, Nuxt 3, Svelte).
|
|
4
4
|
|
|
5
|
-
> **New here?** The task-based guides (quick start, embed a chat, custom UI, webhooks, FlexCoin, calls, the CLI and each platform) are in [docs/
|
|
5
|
+
> **New here?** The task-based guides (quick start, embed a chat, custom UI, webhooks, FlexCoin, calls, the CLI and each platform) are in [livechatta.com/docs/guides](https://livechatta.com/docs/guides/). Server samples for Node, PHP and Python are in the [server guide](https://livechatta.com/docs/guides/server.html). The full reference is at [livechatta.com/docs/sdk](https://livechatta.com/docs/sdk/).
|
|
6
6
|
|
|
7
|
-
> **Versions:** 1.0.0 is the first public release. Version numbers in brackets in these docs, such as "(1.7.0)", are internal pre-release builds that were never published; everything in them is in 1.0.0. See
|
|
7
|
+
> **Versions:** 1.0.0 is the first public release. Version numbers in brackets in these docs, such as "(1.7.0)", are internal pre-release builds that were never published; everything in them is in 1.0.0. See the changelog shipped with the package (`CHANGELOG.md`).
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
@@ -1264,7 +1264,7 @@ const { results, lastSeq } = await api.readWebhookCapture(webhookId, 0); // ne
|
|
|
1264
1264
|
await api.stopWebhookCapture(webhookId);
|
|
1265
1265
|
```
|
|
1266
1266
|
|
|
1267
|
-
Every delivery carries `X-Webhook-Signature: t=<unix>,v1=<hex>`, an HMAC-SHA256 of `"<t>." + rawBody` with the webhook secret, and an `id` in the body (also `X-Webhook-Id`), which is stable across retries: dedupe on the signed body `id`, not the unsigned header, and record it only after your work succeeded. Verify the signature with the code in [
|
|
1267
|
+
Every delivery carries `X-Webhook-Signature: t=<unix>,v1=<hex>`, an HMAC-SHA256 of `"<t>." + rawBody` with the webhook secret, and an `id` in the body (also `X-Webhook-Id`), which is stable across retries: dedupe on the signed body `id`, not the unsigned header, and record it only after your work succeeded. Verify the signature with the code in the [webhooks guide](https://livechatta.com/docs/guides/webhooks.html).
|
|
1268
1268
|
The old `X-Webhook-Secret` header carries the secret itself. New webhooks never send it; older ones send it (with `X-Webhook-Deprecation`) only until **2027-02-17**, and `rotateWebhookSecret` turns it off. Retries are signed with the webhook's current secret when they are sent.
|
|
1269
1269
|
|
|
1270
1270
|
The native SDKs have typed models for every TypeScript model: Kotlin data classes, Swift structs, Dart classes, all generated from the TypeScript types (`yarn models:generate`; `yarn check:models` fails on drift). Use the typed twins, and treat the map-based `sendMessage` and `listSentMessages` as deprecated:
|
|
@@ -2456,7 +2456,7 @@ chatta meetings cancel <meetingId> --yes # invitees are told; safe to r
|
|
|
2456
2456
|
chatta webhooks listen <webhookId> --forward http://localhost:3000/hook # real deliveries to your laptop (localhost only; only the signature is forwarded)
|
|
2457
2457
|
```
|
|
2458
2458
|
|
|
2459
|
-
Full reference: [
|
|
2459
|
+
Full reference: [CLI guide](https://livechatta.com/docs/guides/cli.html).
|
|
2460
2460
|
|
|
2461
2461
|
## Build Commands
|
|
2462
2462
|
|
|
@@ -2528,7 +2528,7 @@ dist/
|
|
|
2528
2528
|
## Publishing
|
|
2529
2529
|
|
|
2530
2530
|
Releases go out from a pushed tag to npm, Maven Central, pub.dev and SwiftPM, after a person approves them.
|
|
2531
|
-
`node scripts/release.mjs minor` bumps every version and the changelog;
|
|
2531
|
+
`node scripts/release.mjs minor` bumps every version and the changelog; `docs/PUBLISHING.md` (SDK maintainers) lists the steps and every secret.
|
|
2532
2532
|
To publish from your own machine, run `./release.sh` (or `yarn run release`) on a clean, up-to-date `development`. It bumps from the newest version on npm or GitHub (`--low` 1.0.x is the default, `--mid` 1.x.0, `--major` x.0.0), builds and tests, packs the `.tgz`, publishes it to npm (using `NPM_TOKEN` if set, otherwise `npm login`), pushes the `vX.Y.Z` tag and creates the GitHub release. Try `./release.sh --dry-run` first.
|
|
2533
2533
|
|
|
2534
2534
|
```bash
|
|
@@ -296,7 +296,8 @@ class Permissions {
|
|
|
296
296
|
const { Capacitor, registerPlugin } = await import('@capacitor/core');
|
|
297
297
|
if (Capacitor && Capacitor.isPluginAvailable && Capacitor.isPluginAvailable('HopBridge')) {
|
|
298
298
|
const HopBridge = registerPlugin('HopBridge');
|
|
299
|
-
|
|
299
|
+
// Only the dialogs asked for: video adds the camera prompt, audio:false skips the mic (and Bluetooth).
|
|
300
|
+
const status = await HopBridge.requestPermissions({ wantVideo, wantAudio });
|
|
300
301
|
mic = (status === null || status === void 0 ? void 0 : status.mic) || 'prompt';
|
|
301
302
|
cam = (status === null || status === void 0 ? void 0 : status.cam) || 'prompt';
|
|
302
303
|
}
|