@openreplay/tracker 16.2.1 → 16.3.0-beta.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/dist/cjs/entry.js +130 -39
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +130 -39
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/index.d.ts +2 -0
- package/dist/cjs/main/modules/cssrules.d.ts +15 -1
- package/dist/lib/entry.js +130 -39
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +130 -39
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/index.d.ts +2 -0
- package/dist/lib/main/modules/cssrules.d.ts +15 -1
- package/dist/types/main/index.d.ts +2 -0
- package/dist/types/main/modules/cssrules.d.ts +15 -1
- package/package.json +1 -1
package/dist/lib/main/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type { Options as TimingOptions } from './modules/timing.js';
|
|
|
13
13
|
import type { Options as NetworkOptions } from './modules/network.js';
|
|
14
14
|
import type { MouseHandlerOptions } from './modules/mouse.js';
|
|
15
15
|
import type { SessionInfo } from './app/session.js';
|
|
16
|
+
import type { CssRulesOptions } from './modules/cssrules.js';
|
|
16
17
|
import type { StartOptions } from './app/index.js';
|
|
17
18
|
import type { StartPromiseReturn } from './app/index.js';
|
|
18
19
|
export type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & InputOptions & PerformanceOptions & TimingOptions> & {
|
|
@@ -28,6 +29,7 @@ export type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & I
|
|
|
28
29
|
onFlagsLoad?: (flags: IFeatureFlag[]) => void;
|
|
29
30
|
};
|
|
30
31
|
__DISABLE_SECURE_MODE?: boolean;
|
|
32
|
+
css: CssRulesOptions;
|
|
31
33
|
};
|
|
32
34
|
export default class API {
|
|
33
35
|
readonly options: Partial<Options>;
|
|
@@ -1,2 +1,16 @@
|
|
|
1
1
|
import type App from '../app/index.js';
|
|
2
|
-
export
|
|
2
|
+
export interface CssRulesOptions {
|
|
3
|
+
checkCssInterval?: number;
|
|
4
|
+
scanInMemoryCSS?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
Useful for cases where you expect limited amount of mutations
|
|
7
|
+
|
|
8
|
+
i.e when sheets are hydrated on client after initial render.
|
|
9
|
+
|
|
10
|
+
if you want to observe for x seconds, do (x*1000)/checkCssInterval = checkLimit
|
|
11
|
+
|
|
12
|
+
applied to each stylesheet individually.
|
|
13
|
+
*/
|
|
14
|
+
checkLimit?: number;
|
|
15
|
+
}
|
|
16
|
+
export default function (app: App, opts: CssRulesOptions): void;
|
|
@@ -13,6 +13,7 @@ import type { Options as TimingOptions } from './modules/timing.js';
|
|
|
13
13
|
import type { Options as NetworkOptions } from './modules/network.js';
|
|
14
14
|
import type { MouseHandlerOptions } from './modules/mouse.js';
|
|
15
15
|
import type { SessionInfo } from './app/session.js';
|
|
16
|
+
import type { CssRulesOptions } from './modules/cssrules.js';
|
|
16
17
|
import type { StartOptions } from './app/index.js';
|
|
17
18
|
import type { StartPromiseReturn } from './app/index.js';
|
|
18
19
|
export type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & InputOptions & PerformanceOptions & TimingOptions> & {
|
|
@@ -28,6 +29,7 @@ export type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & I
|
|
|
28
29
|
onFlagsLoad?: (flags: IFeatureFlag[]) => void;
|
|
29
30
|
};
|
|
30
31
|
__DISABLE_SECURE_MODE?: boolean;
|
|
32
|
+
css: CssRulesOptions;
|
|
31
33
|
};
|
|
32
34
|
export default class API {
|
|
33
35
|
readonly options: Partial<Options>;
|
|
@@ -1,2 +1,16 @@
|
|
|
1
1
|
import type App from '../app/index.js';
|
|
2
|
-
export
|
|
2
|
+
export interface CssRulesOptions {
|
|
3
|
+
checkCssInterval?: number;
|
|
4
|
+
scanInMemoryCSS?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
Useful for cases where you expect limited amount of mutations
|
|
7
|
+
|
|
8
|
+
i.e when sheets are hydrated on client after initial render.
|
|
9
|
+
|
|
10
|
+
if you want to observe for x seconds, do (x*1000)/checkCssInterval = checkLimit
|
|
11
|
+
|
|
12
|
+
applied to each stylesheet individually.
|
|
13
|
+
*/
|
|
14
|
+
checkLimit?: number;
|
|
15
|
+
}
|
|
16
|
+
export default function (app: App, opts: CssRulesOptions): void;
|