@fullstory/browser 1.4.9 → 1.4.10
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 +4 -0
- package/dist/index.d.ts +13 -1
- package/package.json +11 -12
- package/src/index.d.ts +13 -1
- package/src/index.js +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FullStory Client SDK snippet options.
|
|
3
|
+
*
|
|
4
|
+
* - orgId: Reference for your [Org Id](https://help.fullstory.com/hc/en-us/articles/360047075853) listed in FullStory.
|
|
5
|
+
* - namespace: Global object name that contains the FullStory browser API methods and properties. Defaults to `FS`.
|
|
6
|
+
* - debug: Debug mode with extra browser console logging.
|
|
7
|
+
* - host: The recording server host domain. Can be set to direct recorded events to a proxy that you host. Defaults to `fullstory.com`.
|
|
8
|
+
* - script: FullStory script host domain. FullStory hosts the `fs.js` recording script on a CDN, but you can choose to host a copy yourself. Defaults to `edge.fullstory.com`.
|
|
9
|
+
* - recordCrossDomainIFrames: FullStory can record cross-domain iFrames. Defaults to `false`. Certain limitations apply and can be found [here](https://help.fullstory.com/hc/en-us/articles/360020622514-Can-FullStory-capture-content-that-is-presented-in-iframes-#h_01F1G333PYKPGZ4B42WDBV3YKV).
|
|
10
|
+
* - recordOnlyThisIFrame: FullStory can record the iFrame as its own unique session. Defaults to `false`. Additional conditions apply and can be found [here](https://help.fullstory.com/hc/en-us/articles/360020622514-Can-FullStory-capture-content-that-is-presented-in-iframes-#h_01F1G33B40Q2TPQA8MA7SF8Y5P).
|
|
11
|
+
* - devMode: In dev mode FullStory won't record sessions. Any calls to SDK methods will `console.warn` that FullStory is in `devMode`. Defaults to `false`.
|
|
12
|
+
*/
|
|
1
13
|
interface SnippetOptions {
|
|
2
14
|
orgId: string;
|
|
3
15
|
namespace?: string;
|
|
@@ -5,7 +17,7 @@ interface SnippetOptions {
|
|
|
5
17
|
host?: string;
|
|
6
18
|
script?: string;
|
|
7
19
|
recordCrossDomainIFrames?: boolean;
|
|
8
|
-
recordOnlyThisIFrame?: boolean;
|
|
20
|
+
recordOnlyThisIFrame?: boolean;
|
|
9
21
|
devMode?: boolean;
|
|
10
22
|
}
|
|
11
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstory/browser",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.10",
|
|
4
4
|
"description": "The official FullStory browser SDK",
|
|
5
5
|
"repository": "git://github.com/fullstorydev/fullstory-browser-sdk.git",
|
|
6
6
|
"homepage": "https://github.com/fullstorydev/fullstory-browser-sdk",
|
|
@@ -27,28 +27,27 @@
|
|
|
27
27
|
],
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/core": "^7.8.7",
|
|
30
|
+
"@babel/eslint-parser": "^7.16.5",
|
|
30
31
|
"@babel/preset-env": "^7.10.4",
|
|
31
32
|
"@babel/register": "^7.8.6",
|
|
32
|
-
"babel
|
|
33
|
+
"@rollup/plugin-babel": "^5.3.0",
|
|
33
34
|
"chai": "^4.1.2",
|
|
34
|
-
"eslint": "^
|
|
35
|
-
"eslint-config-airbnb": "^
|
|
35
|
+
"eslint": "^8.6.0",
|
|
36
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
36
37
|
"eslint-plugin-import": "^2.20.1",
|
|
37
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
38
|
-
"eslint-plugin-react": "^7.
|
|
38
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
39
|
+
"eslint-plugin-react": "^7.28.0",
|
|
39
40
|
"karma": "^6.1.1",
|
|
40
41
|
"karma-chai": "^0.1.0",
|
|
41
42
|
"karma-chrome-launcher": "^3.1.0",
|
|
42
43
|
"karma-mocha": "^2.0.1",
|
|
43
44
|
"karma-spec-reporter": "0.0.32",
|
|
44
|
-
"karma-webpack": "^
|
|
45
|
-
"mocha": "^
|
|
45
|
+
"karma-webpack": "^5.0.0",
|
|
46
|
+
"mocha": "^9.0.0",
|
|
46
47
|
"rimraf": "^2.7.1",
|
|
47
48
|
"rollup": "^1.32.1",
|
|
48
|
-
"rollup-plugin-babel": "^4.4.0",
|
|
49
49
|
"rollup-plugin-copy": "^3.3.0",
|
|
50
50
|
"typescript": "^3.8.3",
|
|
51
|
-
"webpack": "^
|
|
52
|
-
}
|
|
53
|
-
"dependencies": {}
|
|
51
|
+
"webpack": "^5.38.1"
|
|
52
|
+
}
|
|
54
53
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FullStory Client SDK snippet options.
|
|
3
|
+
*
|
|
4
|
+
* - orgId: Reference for your [Org Id](https://help.fullstory.com/hc/en-us/articles/360047075853) listed in FullStory.
|
|
5
|
+
* - namespace: Global object name that contains the FullStory browser API methods and properties. Defaults to `FS`.
|
|
6
|
+
* - debug: Debug mode with extra browser console logging.
|
|
7
|
+
* - host: The recording server host domain. Can be set to direct recorded events to a proxy that you host. Defaults to `fullstory.com`.
|
|
8
|
+
* - script: FullStory script host domain. FullStory hosts the `fs.js` recording script on a CDN, but you can choose to host a copy yourself. Defaults to `edge.fullstory.com`.
|
|
9
|
+
* - recordCrossDomainIFrames: FullStory can record cross-domain iFrames. Defaults to `false`. Certain limitations apply and can be found [here](https://help.fullstory.com/hc/en-us/articles/360020622514-Can-FullStory-capture-content-that-is-presented-in-iframes-#h_01F1G333PYKPGZ4B42WDBV3YKV).
|
|
10
|
+
* - recordOnlyThisIFrame: FullStory can record the iFrame as its own unique session. Defaults to `false`. Additional conditions apply and can be found [here](https://help.fullstory.com/hc/en-us/articles/360020622514-Can-FullStory-capture-content-that-is-presented-in-iframes-#h_01F1G33B40Q2TPQA8MA7SF8Y5P).
|
|
11
|
+
* - devMode: In dev mode FullStory won't record sessions. Any calls to SDK methods will `console.warn` that FullStory is in `devMode`. Defaults to `false`.
|
|
12
|
+
*/
|
|
1
13
|
interface SnippetOptions {
|
|
2
14
|
orgId: string;
|
|
3
15
|
namespace?: string;
|
|
@@ -5,7 +17,7 @@ interface SnippetOptions {
|
|
|
5
17
|
host?: string;
|
|
6
18
|
script?: string;
|
|
7
19
|
recordCrossDomainIFrames?: boolean;
|
|
8
|
-
recordOnlyThisIFrame?: boolean;
|
|
20
|
+
recordOnlyThisIFrame?: boolean;
|
|
9
21
|
devMode?: boolean;
|
|
10
22
|
}
|
|
11
23
|
|
package/src/index.js
CHANGED
|
@@ -11,10 +11,10 @@ const ensureSnippetLoaded = () => {
|
|
|
11
11
|
|
|
12
12
|
const hasFullStoryWithFunction = (...testNames) => {
|
|
13
13
|
ensureSnippetLoaded();
|
|
14
|
-
return testNames.every(current => fs()[current]);
|
|
14
|
+
return testNames.every((current) => fs()[current]);
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const guard = name => (...args) => {
|
|
17
|
+
const guard = (name) => (...args) => {
|
|
18
18
|
if (window._fs_dev_mode) {
|
|
19
19
|
const message = `FullStory is in dev mode and is not recording: ${name} method not executed`;
|
|
20
20
|
console.warn(message); // eslint-disable-line no-console
|