mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-11-03 00:53:53 +00:00
* chore: move posthog-rrweb into the monorepo Imports the posthog-rrweb fork (currently published as v0.0.60) into packages/rrweb/ so that the rrweb packages release from this repo via the existing changesets pipeline. This collapses the current two-step publish flow (posthog-rrweb -> npm -> posthog-js) into a single monorepo release. Scope of the move: - Snapshot taken from posthog-rrweb@main; rrvideo, rrweb-player and web-extension are intentionally dropped because we do not consume them from posthog-js. - The seven packages we publish today continue to publish from this repo: @posthog/rrweb, @posthog/rrweb-types, @posthog/rrweb-utils, @posthog/rrdom, @posthog/rrweb-snapshot, @posthog/rrweb-record and @posthog/rrweb-plugin-console-record. - Internal-only packages (rrdom-nodejs, @posthog/rrweb-replay, @posthog/rrweb-all, @posthog/rrweb-packer, the experimental plugins) are listed under changesets ignore. - packages/browser now depends on @posthog/rrweb-record, @posthog/rrweb-plugin-console-record and @posthog/rrweb-types via workspace:* instead of pinned npm versions. Tooling/config updates: - pnpm-workspace.yaml gains packages/rrweb/* and packages/rrweb/plugins/* globs and a small catalog for vite, vite-plugin-dts and esbuild-plugin-umd-wrapper. - turbo.json picks up vite.config.* as build inputs and adds prepublish / check-types tasks used by the rrweb subpackages. - Root devDependencies hoist esbuild, esbuild-plugin-umd-wrapper and rollup-plugin-visualizer so vite builds resolve correctly. - .npmrc adds a few trust-policy-exclude entries for transitive deps brought in by the rrweb tree that lost provenance attestations. - release.yml extends the publish matrix to the seven publishable rrweb packages. - library-ci.yml adds an rrweb job (vitest + puppeteer under xvfb) that only runs when packages/rrweb/** changes. No runtime behavior changes are intended: the recorder bundle in packages/browser is byte-identical to main (verified locally), and the published rrweb packages get a single patch bump via the accompanying changeset. * stop using rrweb npm package and point imports to local rrweb * fix tests * fix tests * fix docker build * fix docker build * silence false positives * fix for tue's comment * pin package version * add minimal permissions to silence alert
171 lines
4.8 KiB
Plaintext
171 lines
4.8 KiB
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`cross origin iframes & packer > blank.html > should support packFn option in record() > 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
},
|
|
\\"v\\": \\"v1\\"
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"text/javascript\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 6
|
|
}
|
|
],
|
|
\\"id\\": 5
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"iframe\\",
|
|
\\"attributes\\": {
|
|
\\"rr_src\\": \\"http://localhost:3030/html/blank.html\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n \\",
|
|
\\"id\\": 10
|
|
}
|
|
],
|
|
\\"id\\": 7
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
},
|
|
\\"v\\": \\"v1\\"
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 9,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"text/javascript\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"rootId\\": 11,
|
|
\\"id\\": 15
|
|
}
|
|
],
|
|
\\"rootId\\": 11,
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"rootId\\": 11,
|
|
\\"id\\": 13
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n\\",
|
|
\\"rootId\\": 11,
|
|
\\"id\\": 17
|
|
}
|
|
],
|
|
\\"rootId\\": 11,
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"rootId\\": 11,
|
|
\\"id\\": 12
|
|
}
|
|
],
|
|
\\"compatMode\\": \\"BackCompat\\",
|
|
\\"id\\": 11
|
|
}
|
|
}
|
|
],
|
|
\\"removes\\": [],
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"isAttachIframe\\": true
|
|
},
|
|
\\"v\\": \\"v1\\"
|
|
}
|
|
]"
|
|
`;
|