@fingerly/svelte 0.1.2 → 0.2.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 +6 -1
- package/dist/state.svelte.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -11,6 +11,11 @@ and no `$` prefix at the call site.
|
|
|
11
11
|
pnpm add @fingerly/svelte
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
**Not for apps.** This binding runs the browser SDK, which collects nothing
|
|
15
|
+
inside an app's web view (Capacitor, Cordova, Ionic, React Native WebView,
|
|
16
|
+
`WKWebView`, Android `WebView`, Electron). Use the Fingerly iOS or Android SDK
|
|
17
|
+
in an app; see [docs/privacy.md §3.3](../../../docs/privacy.md).
|
|
18
|
+
|
|
14
19
|
## Set it up
|
|
15
20
|
|
|
16
21
|
```svelte
|
|
@@ -20,7 +25,7 @@ pnpm add @fingerly/svelte
|
|
|
20
25
|
|
|
21
26
|
let { children } = $props()
|
|
22
27
|
|
|
23
|
-
// consent: 'granted' only once you have consent (or
|
|
28
|
+
// consent: 'granted' only once you have consent (or know none is required here; see docs/privacy.md §4)
|
|
24
29
|
setupFingerly({ apiKey: 'fly_pk_production_…', endpoints: '/k7x2qm4a', consent: 'granted' })
|
|
25
30
|
</script>
|
|
26
31
|
|
package/dist/state.svelte.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export interface FingerlyOptions {
|
|
|
38
38
|
*
|
|
39
39
|
* Leave it `pending` while identification waits on a consent banner, then
|
|
40
40
|
* call [[Fingerly.setConsent]] when it is answered, or pass `granted`
|
|
41
|
-
* once you have consent (or
|
|
41
|
+
* once you have consent (or know none is required here; see docs/privacy.md §4). Until then nothing is
|
|
42
42
|
* collected or sent: `useIdentify({ immediate: true })` waits, and a manual
|
|
43
43
|
* `identify()` fails with a `ConsentError` in `error`.
|
|
44
44
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fingerly/svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@fingerly/web-js": "0.
|
|
29
|
+
"@fingerly/web-js": "0.2.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"svelte": ">=5"
|