@snowplow/react-native-tracker 1.4.0 → 2.1.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/.editorconfig +15 -0
- package/.eslintignore +6 -0
- package/.gitattributes +3 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +29 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/actions/setup/action.yml +28 -0
- package/.github/workflows/build.yml +155 -0
- package/.github/workflows/deploy.yml +97 -0
- package/.github/workflows/e2e-android.yml +121 -0
- package/.github/workflows/e2e-ios.yml +95 -0
- package/.github/workflows/snyk.yml +21 -0
- package/.gitignore +70 -0
- package/.npmignore +60 -0
- package/.nvmrc +1 -0
- package/.watchmanconfig +1 -0
- package/.yarnrc +3 -0
- package/CHANGELOG +176 -0
- package/CONTRIBUTING.md +80 -0
- package/LICENSE +1 -1
- package/README.md +24 -111
- package/android/build.gradle +93 -37
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -2
- package/android/gradle.properties +5 -2
- package/android/gradlew +172 -110
- package/android/gradlew.bat +24 -19
- package/android/src/main/AndroidManifest.xml +1 -3
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/snowplow/reactnativetracker/ReactNativeTrackerModule.kt +744 -0
- package/android/src/main/java/com/snowplow/reactnativetracker/ReactNativeTrackerPackage.kt +17 -0
- package/android/src/main/java/com/snowplow/reactnativetracker/util/ConfigUtil.kt +274 -0
- package/android/src/main/java/com/snowplow/reactnativetracker/util/EventUtil.kt +233 -0
- package/android/src/main/java/com/snowplow/reactnativetracker/util/TrackerVersion.kt +5 -0
- package/babel.config.js +3 -0
- package/example/.watchmanconfig +1 -0
- package/example/Gemfile +6 -0
- package/example/android/app/build.gradle +129 -0
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/proguard-rules.pro +10 -0
- package/example/android/app/src/androidTest/java/com/reactnativetrackerexample/DetoxTest.java +36 -0
- package/example/android/app/src/androidTest/java/com/reactnativetrackerexample/DetoxTestAppJUnitRunner.java +21 -0
- package/example/android/app/src/debug/AndroidManifest.xml +13 -0
- package/example/android/app/src/debug/java/com/reactnativetrackerexample/ReactNativeFlipper.java +75 -0
- package/example/android/app/src/main/AndroidManifest.xml +26 -0
- package/example/android/app/src/main/java/com/reactnativetrackerexample/MainActivity.java +32 -0
- package/example/android/app/src/main/java/com/reactnativetrackerexample/MainApplication.java +62 -0
- package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/values/strings.xml +3 -0
- package/example/android/app/src/main/res/values/styles.xml +9 -0
- package/example/android/app/src/release/java/com/reactnativetrackerexample/ReactNativeFlipper.java +20 -0
- package/example/android/build.gradle +31 -0
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/example/android/gradle.properties +44 -0
- package/example/android/gradlew +244 -0
- package/example/android/gradlew.bat +92 -0
- package/example/android/settings.gradle +4 -0
- package/example/app.json +4 -0
- package/example/babel.config.js +17 -0
- package/example/detox.config.js +92 -0
- package/example/e2e/config.json +10 -0
- package/example/e2e/emitEvents.e2e.detox.js +95 -0
- package/example/e2e/environment.js +23 -0
- package/example/e2e/helpers/microCommands.js +140 -0
- package/example/e2e/helpers/microHelpers.js +333 -0
- package/example/e2e/helpers/microHelpers.test.js +295 -0
- package/example/e2e/helpers/schemas.js +49 -0
- package/example/e2e/jest.config.js +16 -0
- package/example/e2e/setup.js +4 -0
- package/example/e2e/testEvents.micro.test.js +287 -0
- package/example/index.js +5 -0
- package/example/ios/.xcode.env +11 -0
- package/example/ios/Podfile +62 -0
- package/example/ios/Podfile.lock +730 -0
- package/example/ios/ReactNativeTrackerExample/AppDelegate.h +6 -0
- package/example/ios/ReactNativeTrackerExample/AppDelegate.mm +26 -0
- package/example/ios/ReactNativeTrackerExample/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/example/ios/ReactNativeTrackerExample/Images.xcassets/Contents.json +6 -0
- package/example/ios/ReactNativeTrackerExample/Info.plist +55 -0
- package/example/ios/ReactNativeTrackerExample/LaunchScreen.storyboard +47 -0
- package/example/ios/ReactNativeTrackerExample/main.m +10 -0
- package/example/ios/ReactNativeTrackerExample-Bridging-Header.h +3 -0
- package/example/ios/ReactNativeTrackerExample.xcodeproj/project.pbxproj +722 -0
- package/{ios/RNSnowplowTracker.xcodeproj/xcshareddata/xcschemes/RNSnowplowTracker.xcscheme → example/ios/ReactNativeTrackerExample.xcodeproj/xcshareddata/xcschemes/ReactNativeTrackerExample.xcscheme} +29 -21
- package/example/ios/ReactNativeTrackerExample.xcworkspace/contents.xcworkspacedata +10 -0
- package/example/ios/ReactNativeTrackerExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/example/ios/ReactNativeTrackerExampleTests/Info.plist +24 -0
- package/example/ios/ReactNativeTrackerExampleTests/ReactNativeTrackerExampleTests.m +66 -0
- package/example/metro.config.js +45 -0
- package/example/package.json +54 -0
- package/example/react-native.config.js +10 -0
- package/example/src/App.js +566 -0
- package/example/tsconfig.json +5 -0
- package/example/yarn.lock +7379 -0
- package/ios/ReactNativeTracker-Bridging-Header.h +2 -0
- package/ios/ReactNativeTracker.mm +175 -0
- package/ios/ReactNativeTracker.swift +822 -0
- package/ios/{RNSnowplowTracker.xcodeproj → ReactNativeTracker.xcodeproj}/project.pbxproj +55 -79
- package/ios/Util/ConfigUtils.swift +209 -0
- package/ios/Util/TrackerVersion.swift +3 -0
- package/ios/Util/Utilities.swift +37 -0
- package/lefthook.yml +11 -0
- package/lib/commonjs/api.js +490 -0
- package/lib/commonjs/api.js.map +1 -0
- package/lib/commonjs/configurations.js +196 -0
- package/lib/commonjs/configurations.js.map +1 -0
- package/lib/commonjs/constants.js +77 -0
- package/lib/commonjs/constants.js.map +1 -0
- package/lib/commonjs/events.js +277 -0
- package/lib/commonjs/events.js.map +1 -0
- package/lib/commonjs/index.js +132 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/jsCore.js +427 -0
- package/lib/commonjs/jsCore.js.map +1 -0
- package/lib/commonjs/native.js +16 -0
- package/lib/commonjs/native.js.map +1 -0
- package/lib/commonjs/subject.js +235 -0
- package/lib/commonjs/subject.js.map +1 -0
- package/lib/commonjs/tracker.js +248 -0
- package/lib/commonjs/tracker.js.map +1 -0
- package/lib/commonjs/types.js +2 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/commonjs/utils.js +72 -0
- package/lib/commonjs/utils.js.map +1 -0
- package/lib/commonjs/webViewInterface.js +66 -0
- package/lib/commonjs/webViewInterface.js.map +1 -0
- package/lib/module/api.js +452 -0
- package/lib/module/api.js.map +1 -0
- package/lib/module/configurations.js +184 -0
- package/lib/module/configurations.js.map +1 -0
- package/lib/module/constants.js +72 -0
- package/lib/module/constants.js.map +1 -0
- package/lib/module/events.js +259 -0
- package/lib/module/events.js.map +1 -0
- package/lib/module/index.js +120 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/jsCore.js +424 -0
- package/lib/module/jsCore.js.map +1 -0
- package/lib/module/native.js +12 -0
- package/lib/module/native.js.map +1 -0
- package/lib/module/subject.js +222 -0
- package/lib/module/subject.js.map +1 -0
- package/lib/module/tracker.js +234 -0
- package/lib/module/tracker.js.map +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils.js +66 -0
- package/lib/module/utils.js.map +1 -0
- package/lib/module/webViewInterface.js +62 -0
- package/lib/module/webViewInterface.js.map +1 -0
- package/lib/typescript/__tests__/api.test.d.ts +2 -0
- package/lib/typescript/__tests__/api.test.d.ts.map +1 -0
- package/lib/typescript/__tests__/configurations.test.d.ts +2 -0
- package/lib/typescript/__tests__/configurations.test.d.ts.map +1 -0
- package/lib/typescript/__tests__/events.test.d.ts +2 -0
- package/lib/typescript/__tests__/events.test.d.ts.map +1 -0
- package/lib/typescript/__tests__/index.test.d.ts +2 -0
- package/lib/typescript/__tests__/index.test.d.ts.map +1 -0
- package/lib/typescript/__tests__/jsCore.test.d.ts +2 -0
- package/lib/typescript/__tests__/jsCore.test.d.ts.map +1 -0
- package/lib/typescript/__tests__/utils.test.d.ts +2 -0
- package/lib/typescript/__tests__/utils.test.d.ts.map +1 -0
- package/lib/typescript/api.d.ts +240 -0
- package/lib/typescript/api.d.ts.map +1 -0
- package/lib/typescript/configurations.d.ts +73 -0
- package/lib/typescript/configurations.d.ts.map +1 -0
- package/lib/typescript/constants.d.ts +64 -0
- package/lib/typescript/constants.d.ts.map +1 -0
- package/lib/typescript/events.d.ts +115 -0
- package/lib/typescript/events.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +27 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/jsCore.d.ts +152 -0
- package/lib/typescript/jsCore.d.ts.map +1 -0
- package/lib/typescript/native.d.ts +4 -0
- package/lib/typescript/native.d.ts.map +1 -0
- package/lib/typescript/subject.d.ts +91 -0
- package/lib/typescript/subject.d.ts.map +1 -0
- package/lib/typescript/tracker.d.ts +111 -0
- package/lib/typescript/tracker.d.ts.map +1 -0
- package/{dist/index.d.ts → lib/typescript/types.d.ts} +264 -73
- package/lib/typescript/types.d.ts.map +1 -0
- package/lib/typescript/utils.d.ts +35 -0
- package/lib/typescript/utils.d.ts.map +1 -0
- package/lib/typescript/webViewInterface.d.ts +15 -0
- package/lib/typescript/webViewInterface.d.ts.map +1 -0
- package/package.json +135 -53
- package/scripts/bootstrap.js +29 -0
- package/snowplow-react-native-tracker.podspec +42 -0
- package/src/__mocks__/react-native.js +7 -0
- package/src/__tests__/api.test.ts +21 -0
- package/src/__tests__/configurations.test.ts +608 -0
- package/src/__tests__/events.test.ts +736 -0
- package/src/__tests__/index.test.ts +14 -0
- package/src/__tests__/jsCore.test.ts +199 -0
- package/src/__tests__/utils.test.ts +10 -0
- package/src/api.ts +556 -0
- package/src/configurations.ts +325 -0
- package/src/constants.ts +97 -0
- package/src/events.ts +355 -0
- package/src/index.ts +184 -0
- package/src/jsCore.ts +603 -0
- package/src/native.ts +21 -0
- package/src/subject.ts +302 -0
- package/src/tracker.ts +377 -0
- package/src/types.ts +1162 -0
- package/src/utils.ts +65 -0
- package/src/webViewInterface.ts +92 -0
- package/tsconfig.build.json +5 -0
- package/tsconfig.json +28 -0
- package/turbo.json +34 -0
- package/yarn.lock +9333 -0
- package/RNSnowplowTracker.podspec +0 -24
- package/android/src/main/java/com/snowplowanalytics/react/tracker/RNSnowplowTrackerModule.java +0 -750
- package/android/src/main/java/com/snowplowanalytics/react/tracker/RNSnowplowTrackerPackage.java +0 -29
- package/android/src/main/java/com/snowplowanalytics/react/util/ConfigUtil.java +0 -351
- package/android/src/main/java/com/snowplowanalytics/react/util/EventUtil.java +0 -339
- package/android/src/main/java/com/snowplowanalytics/react/util/TrackerVersion.java +0 -7
- package/dist/index.js +0 -2026
- package/dist/index.js.map +0 -1
- package/ios/RNSnowplowTracker.h +0 -34
- package/ios/RNSnowplowTracker.m +0 -911
- package/ios/Util/NSDictionary+RNSP_TypeMethods.h +0 -33
- package/ios/Util/NSDictionary+RNSP_TypeMethods.m +0 -40
- package/ios/Util/RNConfigUtils.h +0 -44
- package/ios/Util/RNConfigUtils.m +0 -209
- package/ios/Util/RNTrackerVersion.h +0 -27
- package/ios/Util/RNTrackerVersion.m +0 -27
- package/ios/Util/RNUtilities.h +0 -32
- package/ios/Util/RNUtilities.m +0 -68
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* HttpMethod type
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
export type HttpMethod = 'post' | 'get';
|
|
5
5
|
/**
|
|
6
6
|
* DevicePlatform type
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
export type DevicePlatform = 'web' | 'mob' | 'pc' | 'srv' | 'app' | 'tv' | 'cnsl' | 'iot';
|
|
9
9
|
/**
|
|
10
10
|
* LogLevel type
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
export type LogLevel = 'off' | 'error' | 'debug' | 'verbose';
|
|
13
13
|
/**
|
|
14
14
|
* BasisForProsessing
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
export type Basis = 'consent' | 'contract' | 'legal_obligation' | 'legitimate_interests' | 'public_task' | 'vital_interests';
|
|
17
17
|
/**
|
|
18
18
|
* BufferOption
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
export type BufferOption = 'single' | 'small' | 'large';
|
|
21
21
|
/**
|
|
22
22
|
* Trigger for MessageNotification event
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
export type Trigger = 'push' | 'location' | 'calendar' | 'timeInterval' | 'other';
|
|
25
25
|
/**
|
|
26
26
|
* ScreenSize
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
export type ScreenSize = [number, number];
|
|
29
29
|
/**
|
|
30
30
|
* SelfDescribing type
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
export type SelfDescribing<T extends Record<string, unknown> = Record<string, unknown>> = {
|
|
33
33
|
/**
|
|
34
34
|
* Schema
|
|
35
35
|
*/
|
|
@@ -42,11 +42,11 @@ declare type SelfDescribing<T extends Record<keyof T, unknown> = Record<string,
|
|
|
42
42
|
/**
|
|
43
43
|
* EventContext type
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
export type EventContext = SelfDescribing;
|
|
46
46
|
/**
|
|
47
47
|
* NetworkConfiguration
|
|
48
48
|
*/
|
|
49
|
-
interface NetworkConfiguration {
|
|
49
|
+
export interface NetworkConfiguration {
|
|
50
50
|
/**
|
|
51
51
|
* The collector endpoint
|
|
52
52
|
* - if the protocol is not included it defaults to https
|
|
@@ -72,7 +72,7 @@ interface NetworkConfiguration {
|
|
|
72
72
|
/**
|
|
73
73
|
* TrackerConfiguration
|
|
74
74
|
*/
|
|
75
|
-
interface TrackerConfiguration {
|
|
75
|
+
export interface TrackerConfiguration {
|
|
76
76
|
/**
|
|
77
77
|
* Identifier of the app.
|
|
78
78
|
*/
|
|
@@ -123,13 +123,21 @@ interface TrackerConfiguration {
|
|
|
123
123
|
*/
|
|
124
124
|
screenContext?: boolean;
|
|
125
125
|
/**
|
|
126
|
-
* Whether enable automatic tracking of ScreenView events.
|
|
127
|
-
*
|
|
126
|
+
* Whether to enable automatic tracking of ScreenView events from the native side.
|
|
127
|
+
* Only tracking UIKit views on iOS and Activity on Android are supported.
|
|
128
|
+
* For tracking React Native views, see the tracker docs for manual and auto-tracking options.
|
|
129
|
+
* @defaultValue false
|
|
128
130
|
*/
|
|
129
131
|
screenViewAutotracking?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Whether to enable tracking of the screen end event and the screen summary context entity.
|
|
134
|
+
* Make sure that you have lifecycle autotracking enabled for screen summary to have complete information.
|
|
135
|
+
* @defaultValue true
|
|
136
|
+
*/
|
|
137
|
+
screenEngagementAutotracking?: boolean;
|
|
130
138
|
/**
|
|
131
139
|
* Whether enable automatic tracking of background and foreground transitions.
|
|
132
|
-
* @defaultValue
|
|
140
|
+
* @defaultValue true
|
|
133
141
|
*/
|
|
134
142
|
lifecycleAutotracking?: boolean;
|
|
135
143
|
/**
|
|
@@ -156,7 +164,7 @@ interface TrackerConfiguration {
|
|
|
156
164
|
/**
|
|
157
165
|
* SessionConfiguration
|
|
158
166
|
*/
|
|
159
|
-
interface SessionConfiguration {
|
|
167
|
+
export interface SessionConfiguration {
|
|
160
168
|
/**
|
|
161
169
|
* The amount of time in seconds before the session id is updated while the app is in the foreground
|
|
162
170
|
* @defaultValue 1800
|
|
@@ -171,7 +179,7 @@ interface SessionConfiguration {
|
|
|
171
179
|
/**
|
|
172
180
|
* EmitterConfiguration
|
|
173
181
|
*/
|
|
174
|
-
interface EmitterConfiguration {
|
|
182
|
+
export interface EmitterConfiguration {
|
|
175
183
|
/**
|
|
176
184
|
* The buffer option for post requests.
|
|
177
185
|
* @defaultValue 'single'
|
|
@@ -206,7 +214,7 @@ interface EmitterConfiguration {
|
|
|
206
214
|
/**
|
|
207
215
|
* SubjectConfiguration
|
|
208
216
|
*/
|
|
209
|
-
interface SubjectConfiguration {
|
|
217
|
+
export interface SubjectConfiguration {
|
|
210
218
|
[index: string]: unknown;
|
|
211
219
|
/**
|
|
212
220
|
* user id
|
|
@@ -252,7 +260,7 @@ interface SubjectConfiguration {
|
|
|
252
260
|
/**
|
|
253
261
|
* GdprConfiguration
|
|
254
262
|
*/
|
|
255
|
-
interface GdprConfiguration {
|
|
263
|
+
export interface GdprConfiguration {
|
|
256
264
|
/**
|
|
257
265
|
* Basis for processing
|
|
258
266
|
*/
|
|
@@ -273,7 +281,7 @@ interface GdprConfiguration {
|
|
|
273
281
|
/**
|
|
274
282
|
* Global Context
|
|
275
283
|
*/
|
|
276
|
-
interface GlobalContext {
|
|
284
|
+
export interface GlobalContext {
|
|
277
285
|
/**
|
|
278
286
|
* tag
|
|
279
287
|
*/
|
|
@@ -286,11 +294,11 @@ interface GlobalContext {
|
|
|
286
294
|
/**
|
|
287
295
|
* Global Contexts configuration
|
|
288
296
|
*/
|
|
289
|
-
|
|
297
|
+
export type GCConfiguration = GlobalContext[];
|
|
290
298
|
/**
|
|
291
299
|
* The TrackerControllerConfiguration
|
|
292
300
|
*/
|
|
293
|
-
interface TrackerControllerConfiguration {
|
|
301
|
+
export interface TrackerControllerConfiguration {
|
|
294
302
|
trackerConfig?: TrackerConfiguration;
|
|
295
303
|
sessionConfig?: SessionConfiguration;
|
|
296
304
|
emitterConfig?: EmitterConfiguration;
|
|
@@ -298,11 +306,18 @@ interface TrackerControllerConfiguration {
|
|
|
298
306
|
gdprConfig?: GdprConfiguration;
|
|
299
307
|
gcConfig?: GCConfiguration;
|
|
300
308
|
}
|
|
309
|
+
/**
|
|
310
|
+
* The TrackerConfiguration
|
|
311
|
+
*/
|
|
312
|
+
export interface InitTrackerConfiguration extends TrackerControllerConfiguration {
|
|
313
|
+
namespace: string;
|
|
314
|
+
networkConfig: NetworkConfiguration;
|
|
315
|
+
}
|
|
301
316
|
/**
|
|
302
317
|
* ScreenView event properties
|
|
303
318
|
* schema: iglu:com.snowplowanalytics.mobile/screen_view/jsonschema/1-0-0
|
|
304
319
|
*/
|
|
305
|
-
|
|
320
|
+
export type ScreenViewProps = {
|
|
306
321
|
/**
|
|
307
322
|
* The name of the screen viewed
|
|
308
323
|
*/
|
|
@@ -320,8 +335,8 @@ declare type ScreenViewProps = {
|
|
|
320
335
|
*/
|
|
321
336
|
previousName?: string;
|
|
322
337
|
/**
|
|
323
|
-
|
|
324
|
-
|
|
338
|
+
* The id(UUID) of the previous screen that was viewed
|
|
339
|
+
*/
|
|
325
340
|
previousId?: string;
|
|
326
341
|
/**
|
|
327
342
|
* The type of the previous screen that was viewed
|
|
@@ -332,10 +347,58 @@ declare type ScreenViewProps = {
|
|
|
332
347
|
*/
|
|
333
348
|
transitionType?: string;
|
|
334
349
|
};
|
|
350
|
+
/**
|
|
351
|
+
* Event tracked when a scroll view's scroll position changes.
|
|
352
|
+
* If screen engagement tracking is enabled, the scroll changed events will be aggregated into a `screen_summary` entity.
|
|
353
|
+
*
|
|
354
|
+
* Schema: `iglu:com.snowplowanalytics.mobile/scroll_changed/jsonschema/1-0-0`
|
|
355
|
+
*/
|
|
356
|
+
export type ScrollChangedProps = {
|
|
357
|
+
/**
|
|
358
|
+
* Vertical scroll offset in pixels
|
|
359
|
+
*/
|
|
360
|
+
yOffset?: number;
|
|
361
|
+
/**
|
|
362
|
+
* Horizontal scroll offset in pixels.
|
|
363
|
+
*/
|
|
364
|
+
xOffset?: number;
|
|
365
|
+
/**
|
|
366
|
+
* The height of the scroll view in pixels
|
|
367
|
+
*/
|
|
368
|
+
viewHeight?: number;
|
|
369
|
+
/**
|
|
370
|
+
* The width of the scroll view in pixels
|
|
371
|
+
*/
|
|
372
|
+
viewWidth?: number;
|
|
373
|
+
/**
|
|
374
|
+
* The height of the content in the scroll view in pixels
|
|
375
|
+
*/
|
|
376
|
+
contentHeight?: number;
|
|
377
|
+
/**
|
|
378
|
+
* The width of the content in the scroll view in pixels
|
|
379
|
+
*/
|
|
380
|
+
contentWidth?: number;
|
|
381
|
+
};
|
|
382
|
+
/**
|
|
383
|
+
* Event tracking the view of an item in a list.
|
|
384
|
+
* If screen engagement tracking is enabled, the list item view events will be aggregated into a `screen_summary` entity.
|
|
385
|
+
*
|
|
386
|
+
* Schema: `iglu:com.snowplowanalytics.mobile/list_item_view/jsonschema/1-0-0`
|
|
387
|
+
*/
|
|
388
|
+
export type ListItemViewProps = {
|
|
389
|
+
/**
|
|
390
|
+
* Index of the item in the list
|
|
391
|
+
*/
|
|
392
|
+
index: number;
|
|
393
|
+
/**
|
|
394
|
+
* Total number of items in the list
|
|
395
|
+
*/
|
|
396
|
+
itemsCount?: number;
|
|
397
|
+
};
|
|
335
398
|
/**
|
|
336
399
|
* Structured event properties
|
|
337
400
|
*/
|
|
338
|
-
|
|
401
|
+
export type StructuredProps = {
|
|
339
402
|
/**
|
|
340
403
|
* The category of the event
|
|
341
404
|
*/
|
|
@@ -360,7 +423,7 @@ declare type StructuredProps = {
|
|
|
360
423
|
/**
|
|
361
424
|
* PageView event properties
|
|
362
425
|
*/
|
|
363
|
-
|
|
426
|
+
export type PageViewProps = {
|
|
364
427
|
/**
|
|
365
428
|
* The page URL
|
|
366
429
|
*/
|
|
@@ -377,7 +440,7 @@ declare type PageViewProps = {
|
|
|
377
440
|
/**
|
|
378
441
|
* Timing event properties
|
|
379
442
|
*/
|
|
380
|
-
|
|
443
|
+
export type TimingProps = {
|
|
381
444
|
/**
|
|
382
445
|
* The timing category
|
|
383
446
|
*/
|
|
@@ -398,7 +461,7 @@ declare type TimingProps = {
|
|
|
398
461
|
/**
|
|
399
462
|
* ConsentDocument properties
|
|
400
463
|
*/
|
|
401
|
-
interface ConsentDocument {
|
|
464
|
+
export interface ConsentDocument {
|
|
402
465
|
/**
|
|
403
466
|
* The consent document id
|
|
404
467
|
*/
|
|
@@ -419,7 +482,7 @@ interface ConsentDocument {
|
|
|
419
482
|
/**
|
|
420
483
|
* ConsentGranted event properties
|
|
421
484
|
*/
|
|
422
|
-
interface ConsentGrantedProps extends ConsentDocument {
|
|
485
|
+
export interface ConsentGrantedProps extends ConsentDocument {
|
|
423
486
|
/**
|
|
424
487
|
* The expiry (date-time string, e.g.: '2022-01-01T00:00:00Z')
|
|
425
488
|
*/
|
|
@@ -428,7 +491,7 @@ interface ConsentGrantedProps extends ConsentDocument {
|
|
|
428
491
|
/**
|
|
429
492
|
* ConsentWithdrawn event properties
|
|
430
493
|
*/
|
|
431
|
-
interface ConsentWithdrawnProps extends ConsentDocument {
|
|
494
|
+
export interface ConsentWithdrawnProps extends ConsentDocument {
|
|
432
495
|
/**
|
|
433
496
|
* Whether user opts out of all data collection
|
|
434
497
|
*/
|
|
@@ -437,7 +500,7 @@ interface ConsentWithdrawnProps extends ConsentDocument {
|
|
|
437
500
|
/**
|
|
438
501
|
* EcommerceItem
|
|
439
502
|
*/
|
|
440
|
-
|
|
503
|
+
export type EcommerceItem = {
|
|
441
504
|
sku: string;
|
|
442
505
|
price: number;
|
|
443
506
|
quantity: number;
|
|
@@ -448,7 +511,7 @@ declare type EcommerceItem = {
|
|
|
448
511
|
/**
|
|
449
512
|
* EcommerceTransaction event properties
|
|
450
513
|
*/
|
|
451
|
-
|
|
514
|
+
export type EcommerceTransactionProps = {
|
|
452
515
|
orderId: string;
|
|
453
516
|
totalValue: number;
|
|
454
517
|
items: EcommerceItem[];
|
|
@@ -464,7 +527,7 @@ declare type EcommerceTransactionProps = {
|
|
|
464
527
|
* DeepLinkReceived event properties
|
|
465
528
|
* schema: iglu:com.snowplowanalytics.mobile/deep_link_received/jsonschema/1-0-0
|
|
466
529
|
*/
|
|
467
|
-
|
|
530
|
+
export type DeepLinkReceivedProps = {
|
|
468
531
|
/**
|
|
469
532
|
* URL in the received deep-link.
|
|
470
533
|
*/
|
|
@@ -477,7 +540,7 @@ declare type DeepLinkReceivedProps = {
|
|
|
477
540
|
/**
|
|
478
541
|
* Attachment object that identify an attachment in the MessageNotification.
|
|
479
542
|
*/
|
|
480
|
-
|
|
543
|
+
export type MessageNotificationAttachmentProps = {
|
|
481
544
|
identifier: string;
|
|
482
545
|
type: string;
|
|
483
546
|
url: string;
|
|
@@ -486,7 +549,7 @@ declare type MessageNotificationAttachmentProps = {
|
|
|
486
549
|
* MessageNotification event properties
|
|
487
550
|
* schema: iglu:com.snowplowanalytics.mobile/message_notification/jsonschema/1-0-0
|
|
488
551
|
*/
|
|
489
|
-
|
|
552
|
+
export type MessageNotificationProps = {
|
|
490
553
|
/**
|
|
491
554
|
* The action associated with the notification.
|
|
492
555
|
*/
|
|
@@ -561,15 +624,15 @@ declare type MessageNotificationProps = {
|
|
|
561
624
|
/**
|
|
562
625
|
* The ReactNativeTracker type
|
|
563
626
|
*/
|
|
564
|
-
|
|
627
|
+
export type ReactNativeTracker = {
|
|
565
628
|
/**
|
|
566
|
-
* Tracks a self-
|
|
629
|
+
* Tracks a self-describing event
|
|
567
630
|
*
|
|
568
631
|
* @param argmap - The self-describing event properties
|
|
569
632
|
* @param contexts - The array of event contexts
|
|
570
633
|
* @typeParam TData - The type of the data object within the SelfDescribing object
|
|
571
634
|
*/
|
|
572
|
-
readonly trackSelfDescribingEvent: <TData extends Record<
|
|
635
|
+
readonly trackSelfDescribingEvent: <TData extends Record<string, unknown> = Record<string, unknown>>(argmap: SelfDescribing<TData>, contexts?: EventContext[]) => Promise<void>;
|
|
573
636
|
/**
|
|
574
637
|
* Tracks a screen-view event
|
|
575
638
|
*
|
|
@@ -577,6 +640,20 @@ declare type ReactNativeTracker = {
|
|
|
577
640
|
* @param contexts - The array of event contexts
|
|
578
641
|
*/
|
|
579
642
|
readonly trackScreenViewEvent: (argmap: ScreenViewProps, contexts?: EventContext[]) => Promise<void>;
|
|
643
|
+
/**
|
|
644
|
+
* Tracks a scroll changed event
|
|
645
|
+
*
|
|
646
|
+
* @param argmap - The scroll changed event's properties
|
|
647
|
+
* @param contexts - The array of event contexts
|
|
648
|
+
*/
|
|
649
|
+
readonly trackScrollChangedEvent: (argmap: ScrollChangedProps, contexts?: EventContext[]) => Promise<void>;
|
|
650
|
+
/**
|
|
651
|
+
* Tracks a list item view event
|
|
652
|
+
*
|
|
653
|
+
* @param argmap - The list item view event's properties
|
|
654
|
+
* @param contexts - The array of event contexts
|
|
655
|
+
*/
|
|
656
|
+
readonly trackListItemViewEvent: (argmap: ListItemViewProps, contexts?: EventContext[]) => Promise<void>;
|
|
580
657
|
/**
|
|
581
658
|
* Tracks a structured event
|
|
582
659
|
*
|
|
@@ -748,43 +825,157 @@ declare type ReactNativeTracker = {
|
|
|
748
825
|
*/
|
|
749
826
|
readonly getForegroundIndex: () => Promise<number | undefined>;
|
|
750
827
|
};
|
|
751
|
-
|
|
752
828
|
/**
|
|
753
|
-
*
|
|
754
|
-
* The apps need to use the Snowplow WebView tracker to track the events.
|
|
755
|
-
*
|
|
756
|
-
* To subscribe for the events, set the `onMessage` attribute:
|
|
757
|
-
* <WebView onMessage={getWebViewCallback()} ... />
|
|
758
|
-
*
|
|
759
|
-
* @returns Callback to subscribe for events from Web views tracked using the Snowplow WebView tracker.
|
|
829
|
+
* Internal event type for page views tracked using the WebView tracker.
|
|
760
830
|
*/
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
/**
|
|
768
|
-
* Creates a React Native Tracker object
|
|
769
|
-
*
|
|
770
|
-
* @param namespace {string} - The tracker namespace
|
|
771
|
-
* @param networkConfig {Object} - The network configuration
|
|
772
|
-
* @param control {Array} - The tracker controller configuration
|
|
773
|
-
* @returns The tracker object
|
|
774
|
-
*/
|
|
775
|
-
declare function createTracker(namespace: string, networkConfig: NetworkConfiguration, controllerConfig?: TrackerControllerConfiguration): ReactNativeTracker;
|
|
831
|
+
export interface WebViewPageViewEvent {
|
|
832
|
+
title?: string | null;
|
|
833
|
+
url?: string;
|
|
834
|
+
referrer?: string;
|
|
835
|
+
}
|
|
776
836
|
/**
|
|
777
|
-
*
|
|
778
|
-
*
|
|
779
|
-
* @param trackerNamespace {string}
|
|
780
|
-
* @returns - A boolean promise
|
|
837
|
+
* Internal type exchanged in messages received from the WebView tracker in Web views through the web view callback.
|
|
781
838
|
*/
|
|
782
|
-
|
|
839
|
+
export type WebViewMessage = {
|
|
840
|
+
command: 'trackSelfDescribingEvent' | 'trackStructEvent' | 'trackPageView' | 'trackScreenView';
|
|
841
|
+
event: StructuredProps | SelfDescribing | ScreenViewProps | WebViewPageViewEvent;
|
|
842
|
+
context?: Array<SelfDescribing> | null;
|
|
843
|
+
trackers?: Array<string>;
|
|
844
|
+
};
|
|
783
845
|
/**
|
|
784
|
-
*
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
846
|
+
* Internal type for representing the interface to the native trackers.
|
|
847
|
+
*/
|
|
848
|
+
export interface Native {
|
|
849
|
+
createTracker: (configuration: InitTrackerConfiguration) => Promise<void>;
|
|
850
|
+
removeTracker: (details: {
|
|
851
|
+
tracker: string;
|
|
852
|
+
}) => Promise<boolean>;
|
|
853
|
+
removeAllTrackers: () => Promise<boolean>;
|
|
854
|
+
trackSelfDescribingEvent: (details: {
|
|
855
|
+
tracker: string | null;
|
|
856
|
+
eventData: SelfDescribing;
|
|
857
|
+
contexts: EventContext[];
|
|
858
|
+
}) => Promise<void>;
|
|
859
|
+
trackStructuredEvent: (details: {
|
|
860
|
+
tracker: string | null;
|
|
861
|
+
eventData: StructuredProps;
|
|
862
|
+
contexts: EventContext[];
|
|
863
|
+
}) => Promise<void>;
|
|
864
|
+
trackScreenViewEvent: (details: {
|
|
865
|
+
tracker: string | null;
|
|
866
|
+
eventData: ScreenViewProps;
|
|
867
|
+
contexts: EventContext[];
|
|
868
|
+
}) => Promise<void>;
|
|
869
|
+
trackScrollChangedEvent: (details: {
|
|
870
|
+
tracker: string | null;
|
|
871
|
+
eventData: ScrollChangedProps;
|
|
872
|
+
contexts: EventContext[];
|
|
873
|
+
}) => Promise<void>;
|
|
874
|
+
trackListItemViewEvent: (details: {
|
|
875
|
+
tracker: string | null;
|
|
876
|
+
eventData: ListItemViewProps;
|
|
877
|
+
contexts: EventContext[];
|
|
878
|
+
}) => Promise<void>;
|
|
879
|
+
trackPageViewEvent: (details: {
|
|
880
|
+
tracker: string | null;
|
|
881
|
+
eventData: PageViewProps;
|
|
882
|
+
contexts: EventContext[];
|
|
883
|
+
}) => Promise<void>;
|
|
884
|
+
trackTimingEvent: (details: {
|
|
885
|
+
tracker: string | null;
|
|
886
|
+
eventData: TimingProps;
|
|
887
|
+
contexts: EventContext[];
|
|
888
|
+
}) => Promise<void>;
|
|
889
|
+
trackConsentGrantedEvent: (details: {
|
|
890
|
+
tracker: string | null;
|
|
891
|
+
eventData: ConsentGrantedProps;
|
|
892
|
+
contexts: EventContext[];
|
|
893
|
+
}) => Promise<void>;
|
|
894
|
+
trackConsentWithdrawnEvent: (details: {
|
|
895
|
+
tracker: string | null;
|
|
896
|
+
eventData: ConsentWithdrawnProps;
|
|
897
|
+
contexts: EventContext[];
|
|
898
|
+
}) => Promise<void>;
|
|
899
|
+
trackEcommerceTransactionEvent: (details: {
|
|
900
|
+
tracker: string | null;
|
|
901
|
+
eventData: EcommerceTransactionProps;
|
|
902
|
+
contexts: EventContext[];
|
|
903
|
+
}) => Promise<void>;
|
|
904
|
+
trackDeepLinkReceivedEvent: (details: {
|
|
905
|
+
tracker: string | null;
|
|
906
|
+
eventData: DeepLinkReceivedProps;
|
|
907
|
+
contexts: EventContext[];
|
|
908
|
+
}) => Promise<void>;
|
|
909
|
+
trackMessageNotificationEvent: (details: {
|
|
910
|
+
tracker: string | null;
|
|
911
|
+
eventData: MessageNotificationProps;
|
|
912
|
+
contexts: EventContext[];
|
|
913
|
+
}) => Promise<void>;
|
|
914
|
+
removeGlobalContexts: (details: {
|
|
915
|
+
tracker: string;
|
|
916
|
+
removeTag: string;
|
|
917
|
+
}) => Promise<void>;
|
|
918
|
+
addGlobalContexts: (details: {
|
|
919
|
+
tracker: string;
|
|
920
|
+
addGlobalContext: GlobalContext;
|
|
921
|
+
}) => Promise<void>;
|
|
922
|
+
setUserId: (details: {
|
|
923
|
+
tracker: string;
|
|
924
|
+
userId: string | null;
|
|
925
|
+
}) => Promise<void>;
|
|
926
|
+
setNetworkUserId: (details: {
|
|
927
|
+
tracker: string;
|
|
928
|
+
networkUserId: string | null;
|
|
929
|
+
}) => Promise<void>;
|
|
930
|
+
setDomainUserId: (details: {
|
|
931
|
+
tracker: string;
|
|
932
|
+
domainUserId: string | null;
|
|
933
|
+
}) => Promise<void>;
|
|
934
|
+
setIpAddress: (details: {
|
|
935
|
+
tracker: string;
|
|
936
|
+
ipAddress: string | null;
|
|
937
|
+
}) => Promise<void>;
|
|
938
|
+
setUseragent: (details: {
|
|
939
|
+
tracker: string;
|
|
940
|
+
useragent: string | null;
|
|
941
|
+
}) => Promise<void>;
|
|
942
|
+
setTimezone: (details: {
|
|
943
|
+
tracker: string;
|
|
944
|
+
timezone: string | null;
|
|
945
|
+
}) => Promise<void>;
|
|
946
|
+
setLanguage: (details: {
|
|
947
|
+
tracker: string;
|
|
948
|
+
language: string | null;
|
|
949
|
+
}) => Promise<void>;
|
|
950
|
+
setScreenResolution: (details: {
|
|
951
|
+
tracker: string;
|
|
952
|
+
screenResolution: ScreenSize | null;
|
|
953
|
+
}) => Promise<void>;
|
|
954
|
+
setScreenViewport: (details: {
|
|
955
|
+
tracker: string;
|
|
956
|
+
screenViewport: ScreenSize | null;
|
|
957
|
+
}) => Promise<void>;
|
|
958
|
+
setColorDepth: (details: {
|
|
959
|
+
tracker: string;
|
|
960
|
+
colorDepth: number | null;
|
|
961
|
+
}) => Promise<void>;
|
|
962
|
+
getSessionUserId: (details: {
|
|
963
|
+
tracker: string;
|
|
964
|
+
}) => Promise<string>;
|
|
965
|
+
getSessionId: (details: {
|
|
966
|
+
tracker: string;
|
|
967
|
+
}) => Promise<string>;
|
|
968
|
+
getSessionIndex: (details: {
|
|
969
|
+
tracker: string;
|
|
970
|
+
}) => Promise<number>;
|
|
971
|
+
getIsInBackground: (details: {
|
|
972
|
+
tracker: string;
|
|
973
|
+
}) => Promise<boolean>;
|
|
974
|
+
getBackgroundIndex: (details: {
|
|
975
|
+
tracker: string;
|
|
976
|
+
}) => Promise<number>;
|
|
977
|
+
getForegroundIndex: (details: {
|
|
978
|
+
tracker: string;
|
|
979
|
+
}) => Promise<number>;
|
|
980
|
+
}
|
|
981
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,cAAc,GACtB,KAAK,GACL,KAAK,GACL,IAAI,GACJ,KAAK,GACL,KAAK,GACL,IAAI,GACJ,MAAM,GACN,KAAK,CAAC;AAEV;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,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AAC,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACtE,kBAAkB,EAAE,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACvE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a function that accepts a side-effect function as its argument and subscribes
|
|
3
|
+
* that function to aPromise's fullfillment,
|
|
4
|
+
* and errHandle to aPromise's rejection.
|
|
5
|
+
*
|
|
6
|
+
* @param aPromise - A void Promise
|
|
7
|
+
* @param errHandle - A function to handle the promise being rejected
|
|
8
|
+
* @returns - A function subscribed to the Promise's fullfillment
|
|
9
|
+
*/
|
|
10
|
+
declare function safeWait(aPromise: Promise<void>, errHandle: (err: Error) => void): <F extends (...args: never[]) => Promise<void>>(func: F) => (...args: Parameters<F>) => Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Returns a function that accepts a callback function as its argument and subscribes
|
|
13
|
+
* that function to aPromise's fullfillment,
|
|
14
|
+
* and errHandle to aPromise's rejection.
|
|
15
|
+
*
|
|
16
|
+
* @param aPromise - A void Promise
|
|
17
|
+
* @param errHandle - A function to handle the promise being rejected
|
|
18
|
+
* @returns - A function subscribed to the Promise's fullfillment
|
|
19
|
+
*/
|
|
20
|
+
declare function safeWaitCallback(callPromise: Promise<void>, errHandle: (err: Error) => undefined): <T, F extends (...args: never[]) => Promise<T>>(func: F) => (...args: Parameters<F>) => ReturnType<F> | Promise<undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Handles an error.
|
|
23
|
+
*
|
|
24
|
+
* @param err - The error to be handled.
|
|
25
|
+
*/
|
|
26
|
+
declare function errorHandler(err: Error): undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Helper to check whether its argument is of object type
|
|
29
|
+
*
|
|
30
|
+
* @param x - The argument to check.
|
|
31
|
+
* @returns - A boolean
|
|
32
|
+
*/
|
|
33
|
+
declare function isObject<Type>(x: Type): boolean;
|
|
34
|
+
export { safeWait, safeWaitCallback, errorHandler, isObject };
|
|
35
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,iBAAS,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,wBAC5C,KAAK,EAAE,KAAK,QAAQ,IAAI,CAAC,0CAClB,QAAQ,IAAI,CAAC,CAIjD;AAED;;;;;;;;GAQG;AACH,iBAAS,gBAAgB,CACvB,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,EAC1B,SAAS,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,SAAS,2BAEL,KAAK,EAAE,4FAOvC;AAED;;;;GAIG;AACH,iBAAS,YAAY,CAAC,GAAG,EAAE,KAAK,GAAG,SAAS,CAM3C;AAED;;;;;GAKG;AACH,iBAAS,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,OAAO,CAExC;AAED,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enables tracking events from apps rendered in react-native-webview components.
|
|
3
|
+
* The apps need to use the Snowplow WebView tracker to track the events.
|
|
4
|
+
*
|
|
5
|
+
* To subscribe for the events, set the `onMessage` attribute:
|
|
6
|
+
* <WebView onMessage={getWebViewCallback()} ... />
|
|
7
|
+
*
|
|
8
|
+
* @returns Callback to subscribe for events from Web views tracked using the Snowplow WebView tracker.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getWebViewCallback(): (message: {
|
|
11
|
+
nativeEvent: {
|
|
12
|
+
data: string;
|
|
13
|
+
};
|
|
14
|
+
}) => void;
|
|
15
|
+
//# sourceMappingURL=webViewInterface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webViewInterface.d.ts","sourceRoot":"","sources":["../../src/webViewInterface.ts"],"names":[],"mappings":"AA4BA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,cACf;IAAE,WAAW,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,KAAG,IAAI,CAqD1D"}
|