@sprig-technologies/sprig-browser 2.24.3 → 2.24.4
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/dist/index.cjs +14 -14
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1282 -1272
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1106,6 +1106,11 @@ declare namespace sprigConfig {
|
|
|
1106
1106
|
metadata?: SprigMetadata,
|
|
1107
1107
|
showSurveyCallback?: (surveyId?: number) => Promise<boolean>
|
|
1108
1108
|
) => IdentifyResult;
|
|
1109
|
+
trackPageView: (
|
|
1110
|
+
url: string,
|
|
1111
|
+
properties?: SprigProperties,
|
|
1112
|
+
showSurveyCallback?: (surveyId?: number) => Promise<boolean>
|
|
1113
|
+
) => void;
|
|
1109
1114
|
unmute: () => void;
|
|
1110
1115
|
}
|
|
1111
1116
|
|
|
@@ -1289,6 +1294,10 @@ declare class SprigAPI {
|
|
|
1289
1294
|
metadata?: SprigMetadata;
|
|
1290
1295
|
userId?: string;
|
|
1291
1296
|
}): void;
|
|
1297
|
+
/**
|
|
1298
|
+
* Tracks a page view with the provided URL and additional event properties.
|
|
1299
|
+
*/
|
|
1300
|
+
trackPageView(url: string, props?: SprigProperties, showSurveyCallback?: (surveyId?: number) => Promise<boolean>): void;
|
|
1292
1301
|
/**
|
|
1293
1302
|
* Apply a css string representing the customized styles
|
|
1294
1303
|
*/
|