├── .gitignore ├── .npmignore ├── .prettierrc ├── .release-it.json ├── .travis.yml ├── LICENSE ├── README.md ├── package.json ├── rollup.config.js ├── src ├── css.ts ├── index.ts ├── rebuild.ts ├── snapshot.ts ├── types.ts └── utils.ts ├── test.d.ts ├── test ├── __snapshots__ │ └── integration.ts.snap ├── css.test.ts ├── css │ ├── benchmark.css │ ├── style-with-import.css │ └── style.css ├── html │ ├── about-mozilla.html │ ├── basic.html │ ├── block-element.html │ ├── cors-style-sheet.html │ ├── dynamic-stylesheet.html │ ├── form-fields.html │ ├── hover.html │ ├── iframe-inner.html │ ├── iframe.html │ ├── invalid-attribute.html │ ├── invalid-doctype.html │ ├── invalid-tagname.html │ ├── mask-text.html │ ├── picture.html │ ├── preload.html │ ├── shadow-dom.html │ ├── video.html │ ├── with-relative-res.html │ ├── with-script.html │ ├── with-style-sheet-with-import.html │ └── with-style-sheet.html ├── iframe-html │ ├── frame1.html │ ├── frame2.html │ └── main.html ├── integration.ts ├── js │ └── a.js ├── rebuild.test.ts └── snapshot.test.ts ├── tsconfig.json ├── tslint.json └── typings ├── css.d.ts ├── index.d.ts ├── rebuild.d.ts ├── snapshot.d.ts ├── types.d.ts └── utils.d.ts /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | package-lock.json 3 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/.prettierrc -------------------------------------------------------------------------------- /.release-it.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/.release-it.json -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/css.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/src/css.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/rebuild.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/src/rebuild.ts -------------------------------------------------------------------------------- /src/snapshot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/src/snapshot.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test.d.ts -------------------------------------------------------------------------------- /test/__snapshots__/integration.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/__snapshots__/integration.ts.snap -------------------------------------------------------------------------------- /test/css.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/css.test.ts -------------------------------------------------------------------------------- /test/css/benchmark.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/css/benchmark.css -------------------------------------------------------------------------------- /test/css/style-with-import.css: -------------------------------------------------------------------------------- 1 | @import "./style.css"; 2 | -------------------------------------------------------------------------------- /test/css/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/css/style.css -------------------------------------------------------------------------------- /test/html/about-mozilla.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/about-mozilla.html -------------------------------------------------------------------------------- /test/html/basic.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/basic.html -------------------------------------------------------------------------------- /test/html/block-element.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/block-element.html -------------------------------------------------------------------------------- /test/html/cors-style-sheet.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/cors-style-sheet.html -------------------------------------------------------------------------------- /test/html/dynamic-stylesheet.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/dynamic-stylesheet.html -------------------------------------------------------------------------------- /test/html/form-fields.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/form-fields.html -------------------------------------------------------------------------------- /test/html/hover.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/hover.html -------------------------------------------------------------------------------- /test/html/iframe-inner.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/iframe-inner.html -------------------------------------------------------------------------------- /test/html/iframe.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/iframe.html -------------------------------------------------------------------------------- /test/html/invalid-attribute.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/html/invalid-doctype.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/invalid-doctype.html -------------------------------------------------------------------------------- /test/html/invalid-tagname.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/invalid-tagname.html -------------------------------------------------------------------------------- /test/html/mask-text.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/mask-text.html -------------------------------------------------------------------------------- /test/html/picture.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/picture.html -------------------------------------------------------------------------------- /test/html/preload.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/preload.html -------------------------------------------------------------------------------- /test/html/shadow-dom.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/shadow-dom.html -------------------------------------------------------------------------------- /test/html/video.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/video.html -------------------------------------------------------------------------------- /test/html/with-relative-res.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/with-relative-res.html -------------------------------------------------------------------------------- /test/html/with-script.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/with-script.html -------------------------------------------------------------------------------- /test/html/with-style-sheet-with-import.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/with-style-sheet-with-import.html -------------------------------------------------------------------------------- /test/html/with-style-sheet.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/html/with-style-sheet.html -------------------------------------------------------------------------------- /test/iframe-html/frame1.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/iframe-html/frame1.html -------------------------------------------------------------------------------- /test/iframe-html/frame2.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/iframe-html/frame2.html -------------------------------------------------------------------------------- /test/iframe-html/main.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/iframe-html/main.html -------------------------------------------------------------------------------- /test/integration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/integration.ts -------------------------------------------------------------------------------- /test/js/a.js: -------------------------------------------------------------------------------- 1 | var a = 1 + 1; 2 | -------------------------------------------------------------------------------- /test/rebuild.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/rebuild.test.ts -------------------------------------------------------------------------------- /test/snapshot.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/test/snapshot.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/tslint.json -------------------------------------------------------------------------------- /typings/css.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/typings/css.d.ts -------------------------------------------------------------------------------- /typings/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/typings/index.d.ts -------------------------------------------------------------------------------- /typings/rebuild.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/typings/rebuild.d.ts -------------------------------------------------------------------------------- /typings/snapshot.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/typings/snapshot.d.ts -------------------------------------------------------------------------------- /typings/types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/typings/types.d.ts -------------------------------------------------------------------------------- /typings/utils.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rrweb-io/rrweb-snapshot/HEAD/typings/utils.d.ts --------------------------------------------------------------------------------