From 68076b724ff19d198d4f351a05063b85e1705a8c Mon Sep 17 00:00:00 2001 From: Christopher Arredondo Date: Wed, 3 Jul 2024 14:50:00 -0400 Subject: [PATCH] [Feature] Include takeFullSnapshot function in rrweb (#1527) * export takeFullSnapshot function in rrweb --- .changeset/giant-rats-chew.md | 5 +++++ packages/rrweb/src/index.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/giant-rats-chew.md diff --git a/.changeset/giant-rats-chew.md b/.changeset/giant-rats-chew.md new file mode 100644 index 0000000000..8f28c5f7b4 --- /dev/null +++ b/.changeset/giant-rats-chew.md @@ -0,0 +1,5 @@ +--- +"rrweb": patch +--- + +Export takeFullSnapshot function for a recording process diff --git a/packages/rrweb/src/index.ts b/packages/rrweb/src/index.ts index 1e338d8b38..7851c6e012 100644 --- a/packages/rrweb/src/index.ts +++ b/packages/rrweb/src/index.ts @@ -24,11 +24,13 @@ export type { recordOptions, ReplayPlugin } from './types'; const { addCustomEvent } = record; const { freezePage } = record; +const { takeFullSnapshot } = record; export { record, addCustomEvent, freezePage, + takeFullSnapshot, Replayer, type playerConfig, type PlayerMachineState,