@posthog/rrweb-snapshot 0.0.53 → 0.0.54

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.
Files changed (60) hide show
  1. package/dist/css.d.cts +5 -0
  2. package/dist/css.d.ts +5 -0
  3. package/dist/index.d.cts +6 -0
  4. package/dist/index.d.ts +6 -0
  5. package/dist/rebuild.d.cts +23 -0
  6. package/dist/rebuild.d.ts +23 -0
  7. package/dist/record.cjs +1013 -14
  8. package/dist/record.cjs.map +1 -1
  9. package/dist/record.d.cts +5 -273
  10. package/dist/record.d.ts +5 -273
  11. package/dist/record.js +1029 -29
  12. package/dist/record.js.map +1 -1
  13. package/dist/record.umd.cjs +967 -985
  14. package/dist/record.umd.cjs.map +3 -3
  15. package/dist/record.umd.min.cjs +1 -1
  16. package/dist/record.umd.min.cjs.map +4 -4
  17. package/dist/replay.cjs +1 -1
  18. package/dist/replay.d.cts +5 -219
  19. package/dist/replay.d.ts +5 -219
  20. package/dist/replay.js +2 -2
  21. package/dist/replay.umd.cjs +13 -10
  22. package/dist/replay.umd.cjs.map +2 -2
  23. package/dist/replay.umd.min.cjs +19 -19
  24. package/dist/replay.umd.min.cjs.map +2 -2
  25. package/dist/rrweb-snapshot.cjs +2 -2
  26. package/dist/rrweb-snapshot.d.cts +1 -299
  27. package/dist/rrweb-snapshot.d.ts +1 -299
  28. package/dist/rrweb-snapshot.js +26 -26
  29. package/dist/rrweb-snapshot.umd.cjs +41 -16
  30. package/dist/rrweb-snapshot.umd.cjs.map +2 -2
  31. package/dist/rrweb-snapshot.umd.min.cjs +11 -11
  32. package/dist/rrweb-snapshot.umd.min.cjs.map +2 -2
  33. package/dist/snapshot.d.cts +71 -0
  34. package/dist/snapshot.d.ts +71 -0
  35. package/dist/{types-B7TTv7Jc.cjs → types-BjupQhwp.cjs} +10 -7
  36. package/dist/types-BjupQhwp.cjs.map +1 -0
  37. package/dist/{types-B7TTv7Jc.umd.cjs → types-BjupQhwp.umd.cjs} +11 -8
  38. package/dist/types-BjupQhwp.umd.cjs.map +7 -0
  39. package/dist/types-BjupQhwp.umd.min.cjs +20 -0
  40. package/dist/types-BjupQhwp.umd.min.cjs.map +7 -0
  41. package/dist/{types-OLXvwyjP.js → types-D1TQIdgp.js} +10 -7
  42. package/dist/types-D1TQIdgp.js.map +1 -0
  43. package/dist/types.d.cts +103 -0
  44. package/dist/types.d.ts +103 -0
  45. package/dist/utils.d.cts +51 -0
  46. package/dist/utils.d.ts +51 -0
  47. package/package.json +3 -3
  48. package/dist/record-BUfdSR_C.cjs +0 -1015
  49. package/dist/record-BUfdSR_C.cjs.map +0 -1
  50. package/dist/record-BUfdSR_C.umd.cjs +0 -1590
  51. package/dist/record-BUfdSR_C.umd.cjs.map +0 -7
  52. package/dist/record-BUfdSR_C.umd.min.cjs +0 -20
  53. package/dist/record-BUfdSR_C.umd.min.cjs.map +0 -7
  54. package/dist/record-CbT7EKn4.js +0 -1016
  55. package/dist/record-CbT7EKn4.js.map +0 -1
  56. package/dist/types-B7TTv7Jc.cjs.map +0 -1
  57. package/dist/types-B7TTv7Jc.umd.cjs.map +0 -7
  58. package/dist/types-B7TTv7Jc.umd.min.cjs +0 -20
  59. package/dist/types-B7TTv7Jc.umd.min.cjs.map +0 -7
  60. package/dist/types-OLXvwyjP.js.map +0 -1
package/dist/css.d.cts ADDED
@@ -0,0 +1,5 @@
1
+ import { AcceptedPlugin } from 'postcss';
2
+
3
+ declare const mediaSelectorPlugin: AcceptedPlugin;
4
+ declare const pseudoClassPlugin: AcceptedPlugin;
5
+ export { mediaSelectorPlugin, pseudoClassPlugin };
package/dist/css.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { AcceptedPlugin } from 'postcss';
2
+
3
+ declare const mediaSelectorPlugin: AcceptedPlugin;
4
+ declare const pseudoClassPlugin: AcceptedPlugin;
5
+ export { mediaSelectorPlugin, pseudoClassPlugin };
@@ -0,0 +1,6 @@
1
+ import { default as snapshot, serializeNodeWithId, transformAttribute, ignoreAttribute, visitSnapshot, cleanupSnapshot, needMaskingText, classMatchesRegex, slimDOMDefaults, IGNORED_NODE, DEFAULT_MAX_DEPTH, wasMaxDepthReached, resetMaxDepthState, genId } from './snapshot';
2
+ import { default as rebuild, buildNodeWithSN, adaptCssForReplay, createCache } from './rebuild';
3
+
4
+ export * from './types';
5
+ export * from './utils';
6
+ export { snapshot, serializeNodeWithId, rebuild, buildNodeWithSN, adaptCssForReplay, createCache, transformAttribute, ignoreAttribute, visitSnapshot, cleanupSnapshot, needMaskingText, classMatchesRegex, slimDOMDefaults, IGNORED_NODE, DEFAULT_MAX_DEPTH, wasMaxDepthReached, resetMaxDepthState, genId, };
@@ -0,0 +1,6 @@
1
+ import { default as snapshot, serializeNodeWithId, transformAttribute, ignoreAttribute, visitSnapshot, cleanupSnapshot, needMaskingText, classMatchesRegex, slimDOMDefaults, IGNORED_NODE, DEFAULT_MAX_DEPTH, wasMaxDepthReached, resetMaxDepthState, genId } from './snapshot';
2
+ import { default as rebuild, buildNodeWithSN, adaptCssForReplay, createCache } from './rebuild';
3
+
4
+ export * from './types';
5
+ export * from './utils';
6
+ export { snapshot, serializeNodeWithId, rebuild, buildNodeWithSN, adaptCssForReplay, createCache, transformAttribute, ignoreAttribute, visitSnapshot, cleanupSnapshot, needMaskingText, classMatchesRegex, slimDOMDefaults, IGNORED_NODE, DEFAULT_MAX_DEPTH, wasMaxDepthReached, resetMaxDepthState, genId, };
@@ -0,0 +1,23 @@
1
+ import { serializedNodeWithId } from '@posthog/rrweb-types';
2
+ import { BuildCache } from './types';
3
+ import { Mirror } from './utils';
4
+
5
+ export declare function adaptCssForReplay(cssText: string, cache: BuildCache): string;
6
+ export declare function createCache(): BuildCache;
7
+ export declare function buildNodeWithSN(n: serializedNodeWithId, options: {
8
+ doc: Document;
9
+ mirror: Mirror;
10
+ skipChild?: boolean;
11
+ hackCss: boolean;
12
+ afterAppend?: (n: Node, id: number) => unknown;
13
+ cache: BuildCache;
14
+ }): Node | null;
15
+ declare function rebuild(n: serializedNodeWithId, options: {
16
+ doc: Document;
17
+ onVisit?: (node: Node) => unknown;
18
+ hackCss?: boolean;
19
+ afterAppend?: (n: Node, id: number) => unknown;
20
+ cache: BuildCache;
21
+ mirror: Mirror;
22
+ }): Node | null;
23
+ export default rebuild;
@@ -0,0 +1,23 @@
1
+ import { serializedNodeWithId } from '@posthog/rrweb-types';
2
+ import { BuildCache } from './types';
3
+ import { Mirror } from './utils';
4
+
5
+ export declare function adaptCssForReplay(cssText: string, cache: BuildCache): string;
6
+ export declare function createCache(): BuildCache;
7
+ export declare function buildNodeWithSN(n: serializedNodeWithId, options: {
8
+ doc: Document;
9
+ mirror: Mirror;
10
+ skipChild?: boolean;
11
+ hackCss: boolean;
12
+ afterAppend?: (n: Node, id: number) => unknown;
13
+ cache: BuildCache;
14
+ }): Node | null;
15
+ declare function rebuild(n: serializedNodeWithId, options: {
16
+ doc: Document;
17
+ onVisit?: (node: Node) => unknown;
18
+ hackCss?: boolean;
19
+ afterAppend?: (n: Node, id: number) => unknown;
20
+ cache: BuildCache;
21
+ mirror: Mirror;
22
+ }): Node | null;
23
+ export default rebuild;