@openreplay/tracker 4.0.0 → 4.1.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/cjs/app/guards.d.ts +1 -0
- package/cjs/app/guards.js +6 -1
- package/cjs/app/index.d.ts +1 -1
- package/cjs/app/index.js +15 -9
- package/cjs/app/messages.gen.d.ts +1 -0
- package/cjs/app/messages.gen.js +10 -1
- package/cjs/app/nodes.d.ts +1 -1
- package/cjs/app/nodes.js +3 -5
- package/cjs/app/observer/iframe_observer.js +1 -0
- package/cjs/app/observer/iframe_offsets.d.ts +8 -0
- package/cjs/app/observer/iframe_offsets.js +59 -0
- package/cjs/app/observer/observer.js +4 -4
- package/cjs/app/observer/top_observer.d.ts +2 -4
- package/cjs/app/observer/top_observer.js +11 -21
- package/cjs/app/sanitizer.d.ts +10 -4
- package/cjs/app/sanitizer.js +33 -15
- package/cjs/app/session.js +1 -1
- package/cjs/common/messages.gen.d.ts +8 -2
- package/cjs/common/messages.gen.js +1 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +7 -7
- package/cjs/modules/constructedStyleSheets.d.ts +4 -0
- package/cjs/modules/{adoptedStyleSheets.js → constructedStyleSheets.js} +21 -20
- package/cjs/modules/cssrules.js +65 -18
- package/cjs/modules/img.js +27 -19
- package/cjs/modules/input.js +2 -2
- package/cjs/modules/mouse.js +11 -7
- package/cjs/modules/scroll.js +32 -12
- package/cjs/utils.d.ts +5 -3
- package/cjs/utils.js +18 -13
- package/lib/app/guards.d.ts +1 -0
- package/lib/app/guards.js +4 -0
- package/lib/app/index.d.ts +1 -1
- package/lib/app/index.js +15 -9
- package/lib/app/messages.gen.d.ts +1 -0
- package/lib/app/messages.gen.js +8 -0
- package/lib/app/nodes.d.ts +1 -1
- package/lib/app/nodes.js +3 -5
- package/lib/app/observer/iframe_observer.js +1 -0
- package/lib/app/observer/iframe_offsets.d.ts +8 -0
- package/lib/app/observer/iframe_offsets.js +56 -0
- package/lib/app/observer/observer.js +4 -4
- package/lib/app/observer/top_observer.d.ts +2 -4
- package/lib/app/observer/top_observer.js +11 -21
- package/lib/app/sanitizer.d.ts +10 -4
- package/lib/app/sanitizer.js +32 -15
- package/lib/app/session.js +1 -1
- package/lib/common/messages.gen.d.ts +8 -2
- package/lib/common/messages.gen.js +1 -0
- package/lib/common/tsconfig.tsbuildinfo +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +5 -6
- package/lib/modules/constructedStyleSheets.d.ts +4 -0
- package/lib/modules/{adoptedStyleSheets.js → constructedStyleSheets.js} +20 -21
- package/lib/modules/cssrules.js +67 -19
- package/lib/modules/img.js +28 -20
- package/lib/modules/input.js +3 -3
- package/lib/modules/mouse.js +11 -7
- package/lib/modules/scroll.js +33 -13
- package/lib/utils.d.ts +5 -3
- package/lib/utils.js +17 -11
- package/package.json +1 -1
- package/cjs/modules/adoptedStyleSheets.d.ts +0 -2
- package/lib/modules/adoptedStyleSheets.d.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../src/common/messages.gen.ts","../../src/common/interaction.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/assert/strict.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/dns/promises.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/stream/promises.d.ts","../../node_modules/@types/node/stream/consumers.d.ts","../../node_modules/@types/node/stream/web.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/test.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/timers/promises.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/glob/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/resolve/index.d.ts"],"fileInfos":[{"version":"ca3c1cd7464b613bf148a1422cb3201fe083e08565a02dc99eaad0d2977c16a7","affectsGlobalScope":true,"impliedFormat":1},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true,"impliedFormat":1},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true,"impliedFormat":1},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true,"impliedFormat":1},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true,"impliedFormat":1},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true,"impliedFormat":1},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true,"impliedFormat":1},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true,"impliedFormat":1},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true,"impliedFormat":1},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true,"impliedFormat":1},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true,"impliedFormat":1},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true,"impliedFormat":1},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true,"impliedFormat":1},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true,"impliedFormat":1},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true,"impliedFormat":1},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true,"impliedFormat":1},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true,"impliedFormat":1},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true,"impliedFormat":1},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true,"impliedFormat":1},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true,"impliedFormat":1},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true,"impliedFormat":1},{"version":"ca06fa264234f5895ebfe13ec1f578ee1c18a0d02219a54c3cdad296686251cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true,"impliedFormat":1},"1894830df5c4f48f2c9aaff16dbf9d0762bbbb1e739feae0e24df8d1fb5b2b40","68dcaf7bcaafa00e059a6c32fc519773fccdedbe51ba80c8962a944c36e5a77e","89ccbe04e737ce613f5f04990271cfa84901446350b8551b0555ddf19319723b","9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true,"impliedFormat":1},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"3e4624c306340ad303cc536a07004e81336c3f088308a9e4a9f4c957a3cda2fd","affectsGlobalScope":true,"impliedFormat":1},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true,"impliedFormat":1},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","34ec1daf3566f26c43dbab380af0de1aac29166e57e4f9ef379a2f154e0cb290","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"249a2b90439cdfd51709539fbfa4dfe0791cbae6efce1e9b327ba8f8cd703f49","affectsGlobalScope":true,"impliedFormat":1},"2f60ac046e587e917d739f1edc77540eb0ec34f83090dae4ebd5f96c1c9578d4","a9b6b0f7b1e30359283b131ba6d1c51ee2d3601a2f12e1623141e6a1a60c92a5","aeee0090b38de0dd47ca9a79ad5c2d156e3e09d92306719b0b45a3e96098e564","7bac475dcdd9f7e4e9da934d32c305bc889c4ce3c8ac0ef45a93a8d670fff607","09416dd69576b03a3f485adf329a02f043e4a481e060ef5b208194e488d31fd9","8acf99b1c8682276a63ea5bb68433782715892726b97e4604a415e4e56bce41c",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true,"impliedFormat":1},"3b145a2351f5cf16abf999c8d5f4481c74dffdc54ec1e9a89992e2622e1226c5","a907bf91df26df2400858ef75f749498fb5cf00062bf90a737ac3949cc07978d","d270fd4b565eda11a0a737c181892316b7a1ace06c7988d0246219c3df11db06","4275d5f964e7fc7afc18538e26b3748c207dd772998346d17f409749aa1f3a63",{"version":"59a638a504490fecaacf0020b9814b6abee37edb66047eb1ab9f7c2274bf1da0","affectsGlobalScope":true,"impliedFormat":1},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","8c4c1a64db28930732033c31418f817dcb9d09d706766707ae6d38f23faf0c53","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","556bf5c36deb62cffa1bf697c1789fe008ec82db0273025001db66732714e9d9","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true,"impliedFormat":1},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","653968fc1b35c5eb3d273d36fac1c1dc66f9537edf28f33485b8776bd956e23d",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true,"impliedFormat":1},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","a381f079c4804442f179d742fdb2e495fe28d67a47cac673485f75ae2e77aeca","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"bfe39beb986d2a2e512c091cbe924f1c415bc65de54de0e2f6a0dc6f84c183d9","affectsGlobalScope":true,"impliedFormat":1},"2af17363f8a062e3a8cd1b26030af0058b3f86e783f4fc6aa9f57247f240ebaa","06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","dfe08140492cdc135fb7fd9c4a652c05207b61a436906079b87da1d3111314bf","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","089e1f8603cbc35ab977c8dcc662eb754b82fca32ed1dfb16bd682726c2d5432","8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},"64d5585e08ad1ab194b18bf4e851f22a626eae33ac7312ca4ba90bb7ea7daf64","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","8a19491eba2108d5c333c249699f40aff05ad312c04a17504573b27d91f0aede"],"options":{"composite":true,"declaration":true,"module":5,"noImplicitAny":true,"noImplicitThis":true,"outDir":"..","rootDir":"../../src","strictNullChecks":true,"target":2},"fileIdsList":[[86],[57,58,86,93,94],[42,86],[45,86],[46,51,86],[47,57,58,65,74,85,86],[47,48,57,65,86],[49,86],[50,51,58,66,86],[51,74,82,86],[52,54,57,65,86],[53,86],[54,55,86],[56,57,86],[57,86],[57,58,59,74,85,86],[57,58,59,74,77,86],[86,90],[60,65,74,85,86],[57,58,60,61,65,74,82,85,86],[60,62,74,82,85,86],[42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92],[57,63,86],[64,85,86],[54,57,65,74,86],[66,86],[67,86],[45,68,86],[69,84,86,90],[70,86],[71,86],[57,72,86],[72,73,86,88],[57,74,75,76,77,86],[74,76,86],[74,75,86],[77,86],[78,86],[57,80,81,86],[80,81,86],[51,65,74,82,86],[83,86],[65,84,86],[46,60,71,85,86],[51,86],[74,86,87],[86,88],[86,89],[46,51,57,59,68,74,85,86,88,90],[74,86,91],[86,93],[39,86]],"referencedMap":[[41,1],[95,2],[96,1],[94,1],[42,3],[43,3],[45,4],[46,5],[47,6],[48,7],[49,8],[50,9],[51,10],[52,11],[53,12],[54,13],[55,13],[56,14],[57,15],[58,16],[59,17],[44,18],[92,1],[60,19],[61,20],[62,21],[93,22],[63,23],[64,24],[65,25],[66,26],[67,27],[68,28],[69,29],[70,30],[71,31],[72,32],[73,33],[74,34],[76,35],[75,36],[77,37],[78,38],[79,1],[80,39],[81,40],[82,41],[83,42],[84,43],[85,44],[86,45],[87,46],[88,47],[89,48],[90,49],[91,50],[97,51],[9,1],[8,1],[2,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[3,1],[4,1],[21,1],[18,1],[19,1],[20,1],[22,1],[23,1],[24,1],[5,1],[25,1],[26,1],[27,1],[28,1],[6,1],[29,1],[30,1],[31,1],[32,1],[7,1],[37,1],[33,1],[34,1],[35,1],[36,1],[1,1],[38,1],[40,52],[39,1]],"exportedModulesMap":[[41,1],[95,2],[96,1],[94,1],[42,3],[43,3],[45,4],[46,5],[47,6],[48,7],[49,8],[50,9],[51,10],[52,11],[53,12],[54,13],[55,13],[56,14],[57,15],[58,16],[59,17],[44,18],[92,1],[60,19],[61,20],[62,21],[93,22],[63,23],[64,24],[65,25],[66,26],[67,27],[68,28],[69,29],[70,30],[71,31],[72,32],[73,33],[74,34],[76,35],[75,36],[77,37],[78,38],[79,1],[80,39],[81,40],[82,41],[83,42],[84,43],[85,44],[86,45],[87,46],[88,47],[89,48],[90,49],[91,50],[97,51],[9,1],[8,1],[2,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[3,1],[4,1],[21,1],[18,1],[19,1],[20,1],[22,1],[23,1],[24,1],[5,1],[25,1],[26,1],[27,1],[28,1],[6,1],[29,1],[30,1],[31,1],[32,1],[7,1],[37,1],[33,1],[34,1],[35,1],[36,1],[1,1],[38,1],[40,52],[39,1]],"semanticDiagnosticsPerFile":[41,95,96,94,42,43,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,44,92,60,61,62,93,63,64,65,66,67,68,69,70,71,72,73,74,76,75,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,97,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,6,29,30,31,32,7,37,33,34,35,36,1,38,40,39]},"version":"4.6.0-dev.20211126"}
|
|
1
|
+
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../src/common/messages.gen.ts","../../src/common/interaction.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/assert/strict.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/dns/promises.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/stream/promises.d.ts","../../node_modules/@types/node/stream/consumers.d.ts","../../node_modules/@types/node/stream/web.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/test.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/timers/promises.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/glob/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/resolve/index.d.ts"],"fileInfos":[{"version":"ca3c1cd7464b613bf148a1422cb3201fe083e08565a02dc99eaad0d2977c16a7","affectsGlobalScope":true,"impliedFormat":1},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true,"impliedFormat":1},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true,"impliedFormat":1},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true,"impliedFormat":1},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true,"impliedFormat":1},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true,"impliedFormat":1},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true,"impliedFormat":1},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true,"impliedFormat":1},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true,"impliedFormat":1},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true,"impliedFormat":1},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true,"impliedFormat":1},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true,"impliedFormat":1},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true,"impliedFormat":1},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true,"impliedFormat":1},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true,"impliedFormat":1},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true,"impliedFormat":1},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true,"impliedFormat":1},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true,"impliedFormat":1},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true,"impliedFormat":1},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true,"impliedFormat":1},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true,"impliedFormat":1},{"version":"ca06fa264234f5895ebfe13ec1f578ee1c18a0d02219a54c3cdad296686251cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true,"impliedFormat":1},"eb8d151b279cdd7f9c014cbfd79371801b8ef1e1b34b088630f88b52924201b4","68dcaf7bcaafa00e059a6c32fc519773fccdedbe51ba80c8962a944c36e5a77e","89ccbe04e737ce613f5f04990271cfa84901446350b8551b0555ddf19319723b","9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true,"impliedFormat":1},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"3e4624c306340ad303cc536a07004e81336c3f088308a9e4a9f4c957a3cda2fd","affectsGlobalScope":true,"impliedFormat":1},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true,"impliedFormat":1},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","025fc13211ed47d2798269017af3ec869122a050d5431a6ad3c1997900e65c58","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"249a2b90439cdfd51709539fbfa4dfe0791cbae6efce1e9b327ba8f8cd703f49","affectsGlobalScope":true,"impliedFormat":1},"2f60ac046e587e917d739f1edc77540eb0ec34f83090dae4ebd5f96c1c9578d4","a9b6b0f7b1e30359283b131ba6d1c51ee2d3601a2f12e1623141e6a1a60c92a5","aeee0090b38de0dd47ca9a79ad5c2d156e3e09d92306719b0b45a3e96098e564","7bac475dcdd9f7e4e9da934d32c305bc889c4ce3c8ac0ef45a93a8d670fff607","09416dd69576b03a3f485adf329a02f043e4a481e060ef5b208194e488d31fd9","8acf99b1c8682276a63ea5bb68433782715892726b97e4604a415e4e56bce41c",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true,"impliedFormat":1},"3b145a2351f5cf16abf999c8d5f4481c74dffdc54ec1e9a89992e2622e1226c5","a907bf91df26df2400858ef75f749498fb5cf00062bf90a737ac3949cc07978d","d270fd4b565eda11a0a737c181892316b7a1ace06c7988d0246219c3df11db06","4275d5f964e7fc7afc18538e26b3748c207dd772998346d17f409749aa1f3a63",{"version":"59a638a504490fecaacf0020b9814b6abee37edb66047eb1ab9f7c2274bf1da0","affectsGlobalScope":true,"impliedFormat":1},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","8c4c1a64db28930732033c31418f817dcb9d09d706766707ae6d38f23faf0c53","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","12a70315c8281e46d65696086dd25827408e967b305a22276ae2779fe519e0fe","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true,"impliedFormat":1},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","29d613c3964ea75b2b4e0d17098245c34529282e9cc72b7e4eeb2a7b12c27cb7",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true,"impliedFormat":1},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","a381f079c4804442f179d742fdb2e495fe28d67a47cac673485f75ae2e77aeca","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"bfe39beb986d2a2e512c091cbe924f1c415bc65de54de0e2f6a0dc6f84c183d9","affectsGlobalScope":true,"impliedFormat":1},"2af17363f8a062e3a8cd1b26030af0058b3f86e783f4fc6aa9f57247f240ebaa","06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","dfe08140492cdc135fb7fd9c4a652c05207b61a436906079b87da1d3111314bf","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","089e1f8603cbc35ab977c8dcc662eb754b82fca32ed1dfb16bd682726c2d5432","8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},"82fc37849846a3a0264047621d5beb6ce2ddeb2f83bdee2c79523af3c3282d97","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","8a19491eba2108d5c333c249699f40aff05ad312c04a17504573b27d91f0aede"],"options":{"composite":true,"declaration":true,"module":5,"noImplicitAny":true,"noImplicitThis":true,"outDir":"..","rootDir":"../../src","strictNullChecks":true,"target":2},"fileIdsList":[[86],[57,58,86,93,94],[42,86],[45,86],[46,51,86],[47,57,58,65,74,85,86],[47,48,57,65,86],[49,86],[50,51,58,66,86],[51,74,82,86],[52,54,57,65,86],[53,86],[54,55,86],[56,57,86],[57,86],[57,58,59,74,85,86],[57,58,59,74,77,86],[86,90],[60,65,74,85,86],[57,58,60,61,65,74,82,85,86],[60,62,74,82,85,86],[42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92],[57,63,86],[64,85,86],[54,57,65,74,86],[66,86],[67,86],[45,68,86],[69,84,86,90],[70,86],[71,86],[57,72,86],[72,73,86,88],[57,74,75,76,77,86],[74,76,86],[74,75,86],[77,86],[78,86],[57,80,81,86],[80,81,86],[51,65,74,82,86],[83,86],[65,84,86],[46,60,71,85,86],[51,86],[74,86,87],[86,88],[86,89],[46,51,57,59,68,74,85,86,88,90],[74,86,91],[86,93],[39,86]],"referencedMap":[[41,1],[95,2],[96,1],[94,1],[42,3],[43,3],[45,4],[46,5],[47,6],[48,7],[49,8],[50,9],[51,10],[52,11],[53,12],[54,13],[55,13],[56,14],[57,15],[58,16],[59,17],[44,18],[92,1],[60,19],[61,20],[62,21],[93,22],[63,23],[64,24],[65,25],[66,26],[67,27],[68,28],[69,29],[70,30],[71,31],[72,32],[73,33],[74,34],[76,35],[75,36],[77,37],[78,38],[79,1],[80,39],[81,40],[82,41],[83,42],[84,43],[85,44],[86,45],[87,46],[88,47],[89,48],[90,49],[91,50],[97,51],[9,1],[8,1],[2,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[3,1],[4,1],[21,1],[18,1],[19,1],[20,1],[22,1],[23,1],[24,1],[5,1],[25,1],[26,1],[27,1],[28,1],[6,1],[29,1],[30,1],[31,1],[32,1],[7,1],[37,1],[33,1],[34,1],[35,1],[36,1],[1,1],[38,1],[40,52],[39,1]],"exportedModulesMap":[[41,1],[95,2],[96,1],[94,1],[42,3],[43,3],[45,4],[46,5],[47,6],[48,7],[49,8],[50,9],[51,10],[52,11],[53,12],[54,13],[55,13],[56,14],[57,15],[58,16],[59,17],[44,18],[92,1],[60,19],[61,20],[62,21],[93,22],[63,23],[64,24],[65,25],[66,26],[67,27],[68,28],[69,29],[70,30],[71,31],[72,32],[73,33],[74,34],[76,35],[75,36],[77,37],[78,38],[79,1],[80,39],[81,40],[82,41],[83,42],[84,43],[85,44],[86,45],[87,46],[88,47],[89,48],[90,49],[91,50],[97,51],[9,1],[8,1],[2,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[3,1],[4,1],[21,1],[18,1],[19,1],[20,1],[22,1],[23,1],[24,1],[5,1],[25,1],[26,1],[27,1],[28,1],[6,1],[29,1],[30,1],[31,1],[32,1],[7,1],[37,1],[33,1],[34,1],[35,1],[36,1],[1,1],[38,1],[40,52],[39,1]],"semanticDiagnosticsPerFile":[41,95,96,94,42,43,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,44,92,60,61,62,93,63,64,65,66,67,68,69,70,71,72,73,74,76,75,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,97,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,6,29,30,31,32,7,37,33,34,35,36,1,38,40,39]},"version":"4.6.0-dev.20211126"}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import App from './app/index.js';
|
|
|
2
2
|
export { default as App } from './app/index.js';
|
|
3
3
|
import * as _Messages from './app/messages.gen.js';
|
|
4
4
|
export declare const Messages: typeof _Messages;
|
|
5
|
+
export { SanitizeLevel } from './app/sanitizer.js';
|
|
5
6
|
import type { Options as AppOptions } from './app/index.js';
|
|
6
7
|
import type { Options as ConsoleOptions } from './modules/console.js';
|
|
7
8
|
import type { Options as ExceptionOptions } from './modules/exception.js';
|
package/lib/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export { default as App } from './app/index.js';
|
|
|
3
3
|
import { UserAnonymousID, RawCustomEvent, CustomIssue } from './app/messages.gen.js';
|
|
4
4
|
import * as _Messages from './app/messages.gen.js';
|
|
5
5
|
export const Messages = _Messages;
|
|
6
|
+
export { SanitizeLevel } from './app/sanitizer.js';
|
|
6
7
|
import Connection from './modules/connection.js';
|
|
7
8
|
import Console from './modules/console.js';
|
|
8
9
|
import Exception, { getExceptionMessageFromEvent, getExceptionMessage, } from './modules/exception.js';
|
|
@@ -14,7 +15,7 @@ import Performance from './modules/performance.js';
|
|
|
14
15
|
import Scroll from './modules/scroll.js';
|
|
15
16
|
import Viewport from './modules/viewport.js';
|
|
16
17
|
import CSSRules from './modules/cssrules.js';
|
|
17
|
-
import
|
|
18
|
+
import ConstructedStyleSheets from './modules/constructedStyleSheets.js';
|
|
18
19
|
import { IN_BROWSER, deprecationWarn, DOCS_HOST } from './utils.js';
|
|
19
20
|
const DOCS_SETUP = '/installation/setup-or';
|
|
20
21
|
function processOptions(obj) {
|
|
@@ -93,7 +94,7 @@ export default class API {
|
|
|
93
94
|
if (app !== null) {
|
|
94
95
|
Viewport(app);
|
|
95
96
|
CSSRules(app);
|
|
96
|
-
|
|
97
|
+
ConstructedStyleSheets(app);
|
|
97
98
|
Connection(app);
|
|
98
99
|
Console(app, options);
|
|
99
100
|
Exception(app, options);
|
|
@@ -127,7 +128,7 @@ export default class API {
|
|
|
127
128
|
// no-cors issue only with text/plain or not-set Content-Type
|
|
128
129
|
// req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
|
|
129
130
|
req.send(JSON.stringify({
|
|
130
|
-
trackerVersion: '4.0.
|
|
131
|
+
trackerVersion: '4.0.1',
|
|
131
132
|
projectKey: options.projectKey,
|
|
132
133
|
doNotTrack,
|
|
133
134
|
// TODO: add precise reason (an exact API missing)
|
|
@@ -159,9 +160,7 @@ export default class API {
|
|
|
159
160
|
return;
|
|
160
161
|
}
|
|
161
162
|
this.app.stop();
|
|
162
|
-
|
|
163
|
-
this.app.session.reset();
|
|
164
|
-
return sessionHash;
|
|
163
|
+
return this.app.session.getSessionHash();
|
|
165
164
|
}
|
|
166
165
|
getSessionToken() {
|
|
167
166
|
if (this.app === null) {
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import { TechnicalInfo, AdoptedSSReplaceURLBased, AdoptedSSInsertRuleURLBased,
|
|
1
|
+
import { TechnicalInfo, AdoptedSSReplaceURLBased, AdoptedSSInsertRuleURLBased, AdoptedSSAddOwner, AdoptedSSRemoveOwner, } from '../app/messages.gen.js';
|
|
2
2
|
import { isRootNode } from '../app/guards.js';
|
|
3
3
|
function hasAdoptedSS(node) {
|
|
4
4
|
return (isRootNode(node) &&
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
!!node.adoptedStyleSheets);
|
|
7
7
|
}
|
|
8
|
+
// TODO: incapsulate to be init-ed on-start and join with cssrules.ts under one folder
|
|
9
|
+
let _id = 0xf;
|
|
10
|
+
export function nextID() {
|
|
11
|
+
return _id++;
|
|
12
|
+
}
|
|
13
|
+
export const styleSheetIDMap = new Map();
|
|
8
14
|
export default function (app) {
|
|
9
15
|
if (app === null) {
|
|
10
16
|
return;
|
|
@@ -16,10 +22,9 @@ export default function (app) {
|
|
|
16
22
|
});
|
|
17
23
|
return;
|
|
18
24
|
}
|
|
19
|
-
let nextID = 0xf;
|
|
20
25
|
const styleSheetIDMap = new Map();
|
|
21
26
|
const adoptedStyleSheetsOwnings = new Map();
|
|
22
|
-
const
|
|
27
|
+
const sendAdoptedStyleSheetsUpdate = (root) => {
|
|
23
28
|
let nodeID = app.nodes.getID(root);
|
|
24
29
|
if (root === document) {
|
|
25
30
|
nodeID = 0; // main document doesn't have nodeID. ID count starts from the documentElement
|
|
@@ -37,7 +42,7 @@ export default function (app) {
|
|
|
37
42
|
let sheetID = styleSheetIDMap.get(s);
|
|
38
43
|
const init = !sheetID;
|
|
39
44
|
if (!sheetID) {
|
|
40
|
-
sheetID =
|
|
45
|
+
sheetID = nextID();
|
|
41
46
|
}
|
|
42
47
|
nowOwning.push(sheetID);
|
|
43
48
|
if (!pastOwning.includes(sheetID)) {
|
|
@@ -63,12 +68,20 @@ export default function (app) {
|
|
|
63
68
|
Object.defineProperty(prototype, 'adoptedStyleSheets', Object.assign(Object.assign({}, nativeAdoptedStyleSheetsDescriptor), { set: function (value) {
|
|
64
69
|
// @ts-ignore
|
|
65
70
|
const retVal = nativeAdoptedStyleSheetsDescriptor.set.call(this, value);
|
|
66
|
-
|
|
71
|
+
sendAdoptedStyleSheetsUpdate(this);
|
|
67
72
|
return retVal;
|
|
68
73
|
} }));
|
|
69
74
|
}
|
|
70
75
|
}
|
|
71
76
|
const patchContext = (context) => {
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
if (context.__openreplay_adpss_patched__) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
// @ts-ignore
|
|
83
|
+
context.__openreplay_adpss_patched__ = true;
|
|
84
|
+
}
|
|
72
85
|
patchAdoptedStyleSheets(context.Document.prototype);
|
|
73
86
|
patchAdoptedStyleSheets(context.ShadowRoot.prototype);
|
|
74
87
|
//@ts-ignore TODO: configure ts (use necessary lib)
|
|
@@ -91,20 +104,6 @@ export default function (app) {
|
|
|
91
104
|
}
|
|
92
105
|
return replaceSync.call(this, text);
|
|
93
106
|
};
|
|
94
|
-
context.CSSStyleSheet.prototype.insertRule = function (rule, index = 0) {
|
|
95
|
-
const sheetID = styleSheetIDMap.get(this);
|
|
96
|
-
if (sheetID) {
|
|
97
|
-
app.send(AdoptedSSInsertRuleURLBased(sheetID, rule, index, app.getBaseHref()));
|
|
98
|
-
}
|
|
99
|
-
return insertRule.call(this, rule, index);
|
|
100
|
-
};
|
|
101
|
-
context.CSSStyleSheet.prototype.deleteRule = function (index) {
|
|
102
|
-
const sheetID = styleSheetIDMap.get(this);
|
|
103
|
-
if (sheetID) {
|
|
104
|
-
app.send(AdoptedSSDeleteRule(sheetID, index));
|
|
105
|
-
}
|
|
106
|
-
return deleteRule.call(this, index);
|
|
107
|
-
};
|
|
108
107
|
};
|
|
109
108
|
patchContext(window);
|
|
110
109
|
app.observer.attachContextCallback(patchContext);
|
|
@@ -114,11 +113,11 @@ export default function (app) {
|
|
|
114
113
|
});
|
|
115
114
|
// So far main Document is not triggered with nodeCallbacks
|
|
116
115
|
app.attachStartCallback(() => {
|
|
117
|
-
|
|
116
|
+
sendAdoptedStyleSheetsUpdate(document);
|
|
118
117
|
});
|
|
119
118
|
app.nodes.attachNodeCallback((node) => {
|
|
120
119
|
if (hasAdoptedSS(node)) {
|
|
121
|
-
|
|
120
|
+
sendAdoptedStyleSheetsUpdate(node);
|
|
122
121
|
}
|
|
123
122
|
});
|
|
124
123
|
}
|
package/lib/modules/cssrules.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdoptedSSInsertRuleURLBased, // TODO: rename to common StyleSheet names
|
|
2
|
+
AdoptedSSDeleteRule, AdoptedSSAddOwner, TechnicalInfo, } from '../app/messages.gen.js';
|
|
2
3
|
import { hasTag } from '../app/guards.js';
|
|
4
|
+
import { nextID, styleSheetIDMap } from './constructedStyleSheets.js';
|
|
3
5
|
export default function (app) {
|
|
4
6
|
if (app === null) {
|
|
5
7
|
return;
|
|
@@ -8,42 +10,88 @@ export default function (app) {
|
|
|
8
10
|
app.send(TechnicalInfo('no_stylesheet_prototype_in_window', ''));
|
|
9
11
|
return;
|
|
10
12
|
}
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
13
|
+
const sendInserDeleteRule = app.safe((sheet, index, rule) => {
|
|
14
|
+
const sheetID = styleSheetIDMap.get(sheet);
|
|
15
|
+
if (!sheetID) {
|
|
16
|
+
// OK-case. Sheet haven't been registered yet. Rules will be sent on registration.
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (typeof rule === 'string') {
|
|
20
|
+
app.send(AdoptedSSInsertRuleURLBased(sheetID, rule, index, app.getBaseHref()));
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
app.send(AdoptedSSDeleteRule(sheetID, index));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
// TODO: proper rule insertion/removal (how?)
|
|
27
|
+
const sendReplaceGroupingRule = app.safe((rule) => {
|
|
28
|
+
let topmostRule = rule;
|
|
29
|
+
while (topmostRule.parentRule) {
|
|
30
|
+
topmostRule = topmostRule.parentRule;
|
|
31
|
+
}
|
|
32
|
+
const sheet = topmostRule.parentStyleSheet;
|
|
33
|
+
if (!sheet) {
|
|
34
|
+
app.debug.warn('No parent StyleSheet found for', topmostRule, rule);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const sheetID = styleSheetIDMap.get(sheet);
|
|
38
|
+
if (!sheetID) {
|
|
39
|
+
app.debug.warn('No sheedID found for', sheet, styleSheetIDMap);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const cssText = topmostRule.cssText;
|
|
43
|
+
const ruleList = sheet.cssRules;
|
|
44
|
+
const idx = Array.from(ruleList).indexOf(topmostRule);
|
|
45
|
+
if (idx >= 0) {
|
|
46
|
+
app.send(AdoptedSSInsertRuleURLBased(sheetID, cssText, idx, app.getBaseHref()));
|
|
47
|
+
app.send(AdoptedSSDeleteRule(sheetID, idx + 1)); // Remove previous clone
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
app.debug.warn('Rule index not found in', sheet, topmostRule);
|
|
51
|
+
}
|
|
23
52
|
});
|
|
24
53
|
const patchContext = (context) => {
|
|
25
54
|
const { insertRule, deleteRule } = context.CSSStyleSheet.prototype;
|
|
55
|
+
const { insertRule: groupInsertRule, deleteRule: groupDeleteRule } = context.CSSGroupingRule.prototype;
|
|
26
56
|
context.CSSStyleSheet.prototype.insertRule = function (rule, index = 0) {
|
|
27
|
-
|
|
57
|
+
sendInserDeleteRule(this, index, rule);
|
|
28
58
|
return insertRule.call(this, rule, index);
|
|
29
59
|
};
|
|
30
60
|
context.CSSStyleSheet.prototype.deleteRule = function (index) {
|
|
31
|
-
|
|
61
|
+
sendInserDeleteRule(this, index);
|
|
32
62
|
return deleteRule.call(this, index);
|
|
33
63
|
};
|
|
64
|
+
context.CSSGroupingRule.prototype.insertRule = function (rule, index = 0) {
|
|
65
|
+
const result = groupInsertRule.call(this, rule, index);
|
|
66
|
+
sendReplaceGroupingRule(this);
|
|
67
|
+
return result;
|
|
68
|
+
};
|
|
69
|
+
context.CSSGroupingRule.prototype.deleteRule = function (index = 0) {
|
|
70
|
+
const result = groupDeleteRule.call(this, index);
|
|
71
|
+
sendReplaceGroupingRule(this);
|
|
72
|
+
return result;
|
|
73
|
+
};
|
|
34
74
|
};
|
|
35
75
|
patchContext(window);
|
|
36
76
|
app.observer.attachContextCallback(patchContext);
|
|
37
77
|
app.nodes.attachNodeCallback((node) => {
|
|
38
|
-
if (!hasTag(node, 'STYLE') || !node.sheet) {
|
|
78
|
+
if (!(hasTag(node, 'STYLE') || hasTag(node, 'style')) || !node.sheet) {
|
|
39
79
|
return;
|
|
40
80
|
}
|
|
41
81
|
if (node.textContent !== null && node.textContent.trim().length > 0) {
|
|
42
|
-
return; //
|
|
82
|
+
return; // Non-virtual styles captured by the observer as a text
|
|
83
|
+
}
|
|
84
|
+
const nodeID = app.nodes.getID(node);
|
|
85
|
+
if (!nodeID) {
|
|
86
|
+
return;
|
|
43
87
|
}
|
|
44
|
-
const
|
|
88
|
+
const sheet = node.sheet;
|
|
89
|
+
const sheetID = nextID();
|
|
90
|
+
styleSheetIDMap.set(sheet, sheetID);
|
|
91
|
+
app.send(AdoptedSSAddOwner(sheetID, nodeID));
|
|
92
|
+
const rules = sheet.cssRules;
|
|
45
93
|
for (let i = 0; i < rules.length; i++) {
|
|
46
|
-
|
|
94
|
+
sendInserDeleteRule(sheet, i, rules[i].cssText);
|
|
47
95
|
}
|
|
48
96
|
});
|
|
49
97
|
}
|
package/lib/modules/img.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { timestamp, isURL } from '../utils.js';
|
|
1
|
+
import { timestamp, isURL, IS_FIREFOX, MAX_STR_LEN } from '../utils.js';
|
|
2
2
|
import { ResourceTiming, SetNodeAttributeURLBased, SetNodeAttribute } from '../app/messages.gen.js';
|
|
3
3
|
import { hasTag } from '../app/guards.js';
|
|
4
4
|
function resolveURL(url, location = document.location) {
|
|
@@ -8,7 +8,7 @@ function resolveURL(url, location = document.location) {
|
|
|
8
8
|
}
|
|
9
9
|
else if (url.startsWith('http://') ||
|
|
10
10
|
url.startsWith('https://') ||
|
|
11
|
-
url.startsWith('data:') // any other possible value here?
|
|
11
|
+
url.startsWith('data:') // any other possible value here? https://bugzilla.mozilla.org/show_bug.cgi?id=1758035
|
|
12
12
|
) {
|
|
13
13
|
return url;
|
|
14
14
|
}
|
|
@@ -16,6 +16,10 @@ function resolveURL(url, location = document.location) {
|
|
|
16
16
|
return location.origin + location.pathname + url;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=1607081
|
|
20
|
+
function isSVGInFireFox(url) {
|
|
21
|
+
return IS_FIREFOX && (url.startsWith('data:image/svg+xml') || url.match(/.svg$|/i));
|
|
22
|
+
}
|
|
19
23
|
const PLACEHOLDER_SRC = 'https://static.openreplay.com/tracker/placeholder.jpeg';
|
|
20
24
|
export default function (app) {
|
|
21
25
|
function sendPlaceholder(id, node) {
|
|
@@ -40,30 +44,34 @@ export default function (app) {
|
|
|
40
44
|
app.send(SetNodeAttribute(id, 'srcset', resolvedSrcset));
|
|
41
45
|
};
|
|
42
46
|
const sendSrc = function (id, img) {
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
if (img.src.length > MAX_STR_LEN) {
|
|
48
|
+
sendPlaceholder(id, img);
|
|
49
|
+
}
|
|
50
|
+
app.send(SetNodeAttributeURLBased(id, 'src', img.src, app.getBaseHref()));
|
|
45
51
|
};
|
|
46
|
-
const
|
|
47
|
-
const
|
|
52
|
+
const sendImgError = app.safe(function (img) {
|
|
53
|
+
const resolvedSrc = resolveURL(img.src || ''); // Src type is null sometimes. - is it true?
|
|
54
|
+
if (isURL(resolvedSrc)) {
|
|
55
|
+
app.send(ResourceTiming(timestamp(), 0, 0, 0, 0, 0, resolvedSrc, 'img'));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
const sendImgAttrs = app.safe(function (img) {
|
|
59
|
+
const id = app.nodes.getID(img);
|
|
48
60
|
if (id === undefined) {
|
|
49
61
|
return;
|
|
50
62
|
}
|
|
51
|
-
|
|
52
|
-
if (!complete) {
|
|
63
|
+
if (!img.complete) {
|
|
53
64
|
return;
|
|
54
65
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
if (isURL(resolvedSrc)) {
|
|
58
|
-
app.send(ResourceTiming(timestamp(), 0, 0, 0, 0, 0, resolvedSrc, 'img'));
|
|
59
|
-
}
|
|
66
|
+
if (img.naturalHeight === 0 && img.naturalWidth === 0 && !isSVGInFireFox(img.src)) {
|
|
67
|
+
sendImgError(img);
|
|
60
68
|
}
|
|
61
|
-
else if (
|
|
62
|
-
sendPlaceholder(id,
|
|
69
|
+
else if (app.sanitizer.isHidden(id) || app.sanitizer.isObscured(id)) {
|
|
70
|
+
sendPlaceholder(id, img);
|
|
63
71
|
}
|
|
64
72
|
else {
|
|
65
|
-
sendSrc(id,
|
|
66
|
-
sendSrcset(id,
|
|
73
|
+
sendSrc(id, img);
|
|
74
|
+
sendSrcset(id, img);
|
|
67
75
|
}
|
|
68
76
|
});
|
|
69
77
|
const observer = new MutationObserver((mutations) => {
|
|
@@ -90,9 +98,9 @@ export default function (app) {
|
|
|
90
98
|
if (!hasTag(node, 'IMG')) {
|
|
91
99
|
return;
|
|
92
100
|
}
|
|
93
|
-
app.nodes.
|
|
94
|
-
app.nodes.
|
|
95
|
-
sendImgAttrs
|
|
101
|
+
app.nodes.attachNodeListener(node, 'error', () => sendImgError(node));
|
|
102
|
+
app.nodes.attachNodeListener(node, 'load', () => sendImgAttrs(node));
|
|
103
|
+
sendImgAttrs(node);
|
|
96
104
|
observer.observe(node, { attributes: true, attributeFilter: ['src', 'srcset'] });
|
|
97
105
|
});
|
|
98
106
|
}
|
package/lib/modules/input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { normSpaces, IN_BROWSER, getLabelAttribute
|
|
1
|
+
import { normSpaces, IN_BROWSER, getLabelAttribute } from '../utils.js';
|
|
2
2
|
import { hasTag } from '../app/guards.js';
|
|
3
3
|
import { SetInputTarget, SetInputValue, SetInputChecked } from '../app/messages.gen.js';
|
|
4
4
|
const INPUT_TYPES = ['text', 'password', 'email', 'search', 'number', 'range', 'date'];
|
|
@@ -76,10 +76,10 @@ export default function (app, opts) {
|
|
|
76
76
|
function sendInputValue(id, node) {
|
|
77
77
|
let value = node.value;
|
|
78
78
|
let inputMode = options.defaultInputMode;
|
|
79
|
-
if (node.type === 'password' ||
|
|
79
|
+
if (node.type === 'password' || app.sanitizer.isHidden(id)) {
|
|
80
80
|
inputMode = 2 /* Hidden */;
|
|
81
81
|
}
|
|
82
|
-
else if (
|
|
82
|
+
else if (app.sanitizer.isObscured(id) ||
|
|
83
83
|
(inputMode === 0 /* Plain */ &&
|
|
84
84
|
((options.obscureInputNumbers && node.type !== 'date' && /\d\d\d\d/.test(value)) ||
|
|
85
85
|
(options.obscureInputDates && node.type === 'date') ||
|
package/lib/modules/mouse.js
CHANGED
|
@@ -96,11 +96,13 @@ export default function (app) {
|
|
|
96
96
|
let mousePositionChanged = false;
|
|
97
97
|
let mouseTarget = null;
|
|
98
98
|
let mouseTargetTime = 0;
|
|
99
|
+
let selectorMap = {};
|
|
99
100
|
app.attachStopCallback(() => {
|
|
100
101
|
mousePositionX = -1;
|
|
101
102
|
mousePositionY = -1;
|
|
102
103
|
mousePositionChanged = false;
|
|
103
104
|
mouseTarget = null;
|
|
105
|
+
selectorMap = {};
|
|
104
106
|
});
|
|
105
107
|
const sendMouseMove = () => {
|
|
106
108
|
if (mousePositionChanged) {
|
|
@@ -108,25 +110,27 @@ export default function (app) {
|
|
|
108
110
|
mousePositionChanged = false;
|
|
109
111
|
}
|
|
110
112
|
};
|
|
111
|
-
const patchDocument = (document) => {
|
|
112
|
-
const selectorMap = {};
|
|
113
|
+
const patchDocument = (document, topframe = false) => {
|
|
113
114
|
function getSelector(id, target) {
|
|
114
115
|
return (selectorMap[id] = selectorMap[id] || _getSelector(target, document));
|
|
115
116
|
}
|
|
116
|
-
|
|
117
|
+
const attachListener = topframe
|
|
118
|
+
? app.attachEventListener.bind(app) // attached/removed on start/stop
|
|
119
|
+
: app.nodes.attachNodeListener.bind(app.nodes); // attached/removed on node register/unregister
|
|
120
|
+
attachListener(document.documentElement, 'mouseover', (e) => {
|
|
117
121
|
const target = getTarget(e.target, document);
|
|
118
122
|
if (target !== mouseTarget) {
|
|
119
123
|
mouseTarget = target;
|
|
120
124
|
mouseTargetTime = performance.now();
|
|
121
125
|
}
|
|
122
126
|
});
|
|
123
|
-
|
|
124
|
-
const
|
|
127
|
+
attachListener(document, 'mousemove', (e) => {
|
|
128
|
+
const [left, top] = app.observer.getDocumentOffset(document); // MBTODO?: document-id related message
|
|
125
129
|
mousePositionX = e.clientX + left;
|
|
126
130
|
mousePositionY = e.clientY + top;
|
|
127
131
|
mousePositionChanged = true;
|
|
128
132
|
}, false);
|
|
129
|
-
|
|
133
|
+
attachListener(document, 'click', (e) => {
|
|
130
134
|
const target = getTarget(e.target, document);
|
|
131
135
|
if ((!e.clientX && !e.clientY) || target === null) {
|
|
132
136
|
return;
|
|
@@ -144,6 +148,6 @@ export default function (app) {
|
|
|
144
148
|
patchDocument(node);
|
|
145
149
|
}
|
|
146
150
|
});
|
|
147
|
-
patchDocument(document);
|
|
151
|
+
patchDocument(document, true);
|
|
148
152
|
app.ticker.attach(sendMouseMove, 10);
|
|
149
153
|
}
|
package/lib/modules/scroll.js
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
import { SetViewportScroll, SetNodeScroll } from '../app/messages.gen.js';
|
|
2
|
-
import { isElementNode, isRootNode } from '../app/guards.js';
|
|
2
|
+
import { isNode, isElementNode, isRootNode, isDocument } from '../app/guards.js';
|
|
3
|
+
function getDocumentScroll(doc) {
|
|
4
|
+
const win = doc.defaultView;
|
|
5
|
+
return [
|
|
6
|
+
(win && win.pageXOffset) ||
|
|
7
|
+
(doc.documentElement && doc.documentElement.scrollLeft) ||
|
|
8
|
+
(doc.body && doc.body.scrollLeft) ||
|
|
9
|
+
0,
|
|
10
|
+
(win && win.pageYOffset) ||
|
|
11
|
+
(doc.documentElement && doc.documentElement.scrollTop) ||
|
|
12
|
+
(doc.body && doc.body.scrollTop) ||
|
|
13
|
+
0,
|
|
14
|
+
];
|
|
15
|
+
}
|
|
3
16
|
export default function (app) {
|
|
4
17
|
let documentScroll = false;
|
|
5
18
|
const nodeScroll = new Map();
|
|
6
19
|
function setNodeScroll(target) {
|
|
7
|
-
if (target
|
|
20
|
+
if (!isNode(target)) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (isElementNode(target)) {
|
|
8
24
|
nodeScroll.set(target, [target.scrollLeft, target.scrollTop]);
|
|
9
25
|
}
|
|
26
|
+
if (isDocument(target)) {
|
|
27
|
+
nodeScroll.set(target, getDocumentScroll(target));
|
|
28
|
+
}
|
|
10
29
|
}
|
|
11
|
-
const sendSetViewportScroll = app.safe(() => app.send(SetViewportScroll(
|
|
12
|
-
(document.documentElement && document.documentElement.scrollLeft) ||
|
|
13
|
-
(document.body && document.body.scrollLeft) ||
|
|
14
|
-
0, window.pageYOffset ||
|
|
15
|
-
(document.documentElement && document.documentElement.scrollTop) ||
|
|
16
|
-
(document.body && document.body.scrollTop) ||
|
|
17
|
-
0)));
|
|
30
|
+
const sendSetViewportScroll = app.safe(() => app.send(SetViewportScroll(...getDocumentScroll(document))));
|
|
18
31
|
const sendSetNodeScroll = app.safe((s, node) => {
|
|
19
32
|
const id = app.nodes.getID(node);
|
|
20
33
|
if (id !== undefined) {
|
|
@@ -27,12 +40,19 @@ export default function (app) {
|
|
|
27
40
|
nodeScroll.clear();
|
|
28
41
|
});
|
|
29
42
|
app.nodes.attachNodeCallback((node, isStart) => {
|
|
30
|
-
|
|
31
|
-
|
|
43
|
+
// MBTODO: iterate over all the nodes on start instead of using isStart hack
|
|
44
|
+
if (isStart) {
|
|
45
|
+
if (isElementNode(node) && node.scrollLeft + node.scrollTop > 0) {
|
|
46
|
+
nodeScroll.set(node, [node.scrollLeft, node.scrollTop]);
|
|
47
|
+
}
|
|
48
|
+
else if (isDocument(node)) {
|
|
49
|
+
// DRY somehow?
|
|
50
|
+
nodeScroll.set(node, getDocumentScroll(node));
|
|
51
|
+
}
|
|
32
52
|
}
|
|
33
|
-
|
|
53
|
+
if (isRootNode(node)) {
|
|
34
54
|
// scroll is not-composed event (https://javascript.info/shadow-dom-events)
|
|
35
|
-
app.
|
|
55
|
+
app.nodes.attachNodeListener(node, 'scroll', (e) => {
|
|
36
56
|
setNodeScroll(e.target);
|
|
37
57
|
});
|
|
38
58
|
}
|
package/lib/utils.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare const IN_BROWSER: boolean;
|
|
2
|
+
export declare const IS_FIREFOX: false | RegExpMatchArray | null;
|
|
3
|
+
export declare const MAX_STR_LEN = 100000;
|
|
4
|
+
export declare const timestamp: () => number;
|
|
2
5
|
export declare const stars: (str: string) => string;
|
|
3
6
|
export declare function normSpaces(str: string): string;
|
|
4
7
|
export declare function isURL(s: string): boolean;
|
|
5
|
-
export declare const IN_BROWSER: boolean;
|
|
6
8
|
export declare const DOCS_HOST = "https://docs.openreplay.com";
|
|
7
9
|
export declare function deprecationWarn(nameOfFeature: string, useInstead: string, docsPath?: string): void;
|
|
8
10
|
export declare function getLabelAttribute(e: Element): string | null;
|
|
9
|
-
export declare function hasOpenreplayAttribute(e: Element,
|
|
11
|
+
export declare function hasOpenreplayAttribute(e: Element, attr: string): boolean;
|