diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 00000000..6d856d22 --- /dev/null +++ b/.github/workflows/eslint.yml @@ -0,0 +1,47 @@ +name: Eslint Check + +on: [pull_request] + +jobs: + eslint_check_upload: + runs-on: ubuntu-latest + name: ESLint Check and Report Upload + + steps: + - uses: actions/checkout@v3 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'yarn' + - name: Install Dependencies + run: YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn + - name: Build Packages + run: yarn build:all + - name: Test Code Linting + run: yarn turbo run lint + - name: Save Code Linting Report JSON + run: yarn lint:report + # Continue to the next step even if this fails + continue-on-error: true + - name: Upload ESLint report + uses: actions/upload-artifact@v3 + with: + name: eslint_report.json + path: eslint_report.json + + Annotation: + # Skip the annotation action in PRs from the forked repositories + if: github.event.pull_request.head.repo.full_name == 'rrweb-io/rrweb' + needs: eslint_check_upload + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 + with: + name: eslint_report.json + - name: Annotate Code Linting Results + uses: ataylorme/eslint-annotate-action@v2 + with: + repo-token: '${{ secrets.GITHUB_TOKEN }}' + report-json: 'eslint_report.json' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..5026d620 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Release Rrweb +on: push +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 16.15.0 + registry-url: https://registry.npmjs.org + - name: Install + run: YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn + - name: Build all + run: yarn build:all + # - name: Test all + # run: yarn test + - name: Setup Publish Env + run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > ~/.npmrc + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Publish + if: github.ref == 'refs/heads/master' + run: yarn lerna publish from-package -y + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/style-check.yml b/.github/workflows/style-check.yml index 50498ee9..054e7989 100644 --- a/.github/workflows/style-check.yml +++ b/.github/workflows/style-check.yml @@ -18,7 +18,7 @@ jobs: node-version: 16 cache: 'yarn' - name: Install Dependencies - run: yarn + run: YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn - name: Build Packages run: yarn build:all - name: Eslint Check @@ -56,16 +56,13 @@ jobs: name: Format Check steps: - uses: actions/checkout@v3 + - name: Setup Node.js + uses: actions/setup-node@v1 with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.head_ref }} - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 16 - cache: 'yarn' - - name: Install Dependencies - run: yarn + node-version: 16.15.0 + registry-url: https://registry.npmjs.org + - name: Install + run: YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn - name: Prettier Check run: yarn prettier --check '**/*.{ts,md}' @@ -76,16 +73,13 @@ jobs: name: Format Code steps: - uses: actions/checkout@v3 + - name: Setup Node.js + uses: actions/setup-node@v1 with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.head_ref }} - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 16 - cache: 'yarn' - - name: Install Dependencies - run: yarn + node-version: 16.15.0 + registry-url: https://registry.npmjs.org + - name: Install + run: YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn - name: Prettify Code run: yarn prettier --write '**/*.{ts,md}' - name: Commit Changes diff --git a/.vscode/rrweb-monorepo.code-workspace b/.vscode/rrweb-monorepo.code-workspace index 6a1be41e..0785ef5c 100644 --- a/.vscode/rrweb-monorepo.code-workspace +++ b/.vscode/rrweb-monorepo.code-workspace @@ -25,7 +25,7 @@ "path": "../packages/rrweb-snapshot" }, { - "name": "@rrweb/types", + "name": "@highlight-run/rrweb-types", "path": "../packages/types" } ], @@ -33,7 +33,7 @@ "jest.disabledWorkspaceFolders": [ " rrweb monorepo", "rrweb-player (package)", - "@rrweb/types" + "@highlight-run/rrweb-types" ] } } diff --git a/README.md b/README.md index 3e6490f1..ee3a7a31 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,14 @@ rrweb refers to 'record and replay the web', which is a tool for recording and r [**🍳 Recipes 🍳**](./docs/recipes/index.md) +## Version History + +### 2.0.0 + +This version updates the highlight rrweb fork on rrweb 1.1.3 April 2022 Release. +Because this is a major update, it may not be suitable for customers looking for stable recording and replay functionality. +However, the major update brings lots of rrweb features that have been in development. See the rrweb release notes for more details. + ## Project Structure rrweb is mainly composed of 3 parts: diff --git a/guide.md b/guide.md index 76f781d0..b1e65547 100644 --- a/guide.md +++ b/guide.md @@ -140,11 +140,11 @@ The parameter of `rrweb.record` accepts the following options. | emit | required | the callback function to get emitted events | | checkoutEveryNth | - | take a full snapshot after every N events
refer to the [checkout](#checkout) chapter | | checkoutEveryNms | - | take a full snapshot after every N ms
refer to the [checkout](#checkout) chapter | -| blockClass | 'rr-block' | Use a string or RegExp to configure which elements should be blocked, refer to the [privacy](#privacy) chapter | +| blockClass | 'highlight-block' | Use a string or RegExp to configure which elements should be blocked, refer to the [privacy](#privacy) chapter | | blockSelector | null | Use a string to configure which selector should be blocked, refer to the [privacy](#privacy) chapter | -| ignoreClass | 'rr-ignore' | Use a string or RegExp to configure which elements should be ignored, refer to the [privacy](#privacy) chapter | +| ignoreClass | 'highlight-ignore' | Use a string or RegExp to configure which elements should be ignored, refer to the [privacy](#privacy) chapter | | ignoreCSSAttributes | null | array of CSS attributes that should be ignored | -| maskTextClass | 'rr-mask' | Use a string or RegExp to configure which elements should be masked, refer to the [privacy](#privacy) chapter | +| maskTextClass | 'highlight-mask' | Use a string or RegExp to configure which elements should be masked, refer to the [privacy](#privacy) chapter | | maskTextSelector | null | Use a string to configure which selector should be masked, refer to the [privacy](#privacy) chapter | | maskAllInputs | false | mask all input content as \* | | maskInputOptions | { password: true } | mask some kinds of input \*
refer to the [list](https://github.com/rrweb-io/rrweb/blob/588164aa12f1d94576f89ae0210b98f6e971c895/packages/rrweb-snapshot/src/types.ts#L77-L95) | @@ -167,9 +167,9 @@ The parameter of `rrweb.record` accepts the following options. You may find some contents on the webpage which are not willing to be recorded, then you can use the following approaches: -- An element with the class name `.rr-block` will not be recorded. Instead, it will replay as a placeholder with the same dimension. -- An element with the class name `.rr-ignore` will not record its input events. -- All text of elements with the class name `.rr-mask` and their children will be masked. +- An element with the class name `.highlight-block` will not be recorded. Instead, it will replay as a placeholder with the same dimension. +- An element with the class name `.highlight-ignore` will not record its input events. +- All text of elements with the class name `.highlight-mask` and their children will be masked. - `input[type="password"]` will be masked by default. - Mask options to mask the content in input elements. @@ -300,7 +300,7 @@ The replayer accepts options as its constructor's second parameter, and it has t | skipInactive | false | whether to skip inactive time | | showWarning | true | whether to print warning messages during replay | | showDebug | false | whether to print debug messages during replay | -| blockClass | 'rr-block' | element with the class name will display as a blocked area | +| blockClass | 'highlight-block' | element with the class name will display as a blocked area | | liveMode | false | whether to enable live mode | | insertStyleRules | [] | accepts multiple CSS rule string, which will be injected into the replay iframe | | triggerFocus | true | whether to trigger focus during replay | diff --git a/guide.zh_CN.md b/guide.zh_CN.md index 1093dbb3..c9b9fd9a 100644 --- a/guide.zh_CN.md +++ b/guide.zh_CN.md @@ -136,11 +136,11 @@ setInterval(save, 10 * 1000); | emit | 必填 | 获取当前录制的数据 | | checkoutEveryNth | - | 每 N 次事件重新制作一次全量快照
详见[“重新制作快照”](#重新制作快照)章节 | | checkoutEveryNms | - | 每 N 毫秒重新制作一次全量快照
详见[“重新制作快照”](#重新制作快照)章节 | -| blockClass | 'rr-block' | 字符串或正则表达式,可用于自定义屏蔽元素的类名,详见[“隐私”](#隐私)章节 | +| blockClass | 'highlight-block' | 字符串或正则表达式,可用于自定义屏蔽元素的类名,详见[“隐私”](#隐私)章节 | | blockSelector | null | 所有 element.matches(blockSelector)为 true 的元素都不会被录制,回放时取而代之的是一个同等宽高的占位元素 | -| ignoreClass | 'rr-ignore' | 字符串或正则表达式,可用于自定义忽略元素的类名,详见[“隐私”](#隐私)章节 | +| ignoreClass | 'highlight-ignore' | 字符串或正则表达式,可用于自定义忽略元素的类名,详见[“隐私”](#隐私)章节 | | ignoreCSSAttributes | null | 应该被忽略的 CSS 属性数组 | -| maskTextClass | 'rr-mask' | 字符串或正则表达式,可用于自定义忽略元素 text 内容的类名,详见[“隐私”](#隐私)章节 | +| maskTextClass | 'highlight-mask' | 字符串或正则表达式,可用于自定义忽略元素 text 内容的类名,详见[“隐私”](#隐私)章节 | | maskTextSelector | null | 所有 element.matches(maskTextSelector)为 true 的元素及其子元素的 text 内容将会被屏蔽 | | maskAllInputs | false | 将所有输入内容记录为 \* | | maskInputOptions | { password: true } | 选择将特定类型的输入框内容记录为 \*
类型详见[列表](https://github.com/rrweb-io/rrweb/blob/588164aa12f1d94576f89ae0210b98f6e971c895/packages/rrweb-snapshot/src/types.ts#L77-L95) | @@ -163,9 +163,9 @@ setInterval(save, 10 * 1000); 页面中可能存在一些隐私相关的内容不希望被录制,rrweb 为此做了以下支持: -- 在 HTML 元素中添加类名 `.rr-block` 将会避免该元素及其子元素被录制,回放时取而代之的是一个同等宽高的占位元素。 -- 在 HTML 元素中添加类名 `.rr-ignore` 将会避免录制该元素的输入事件。 -- 所有带有`.rr-mask`类名的元素及其子元素的 text 内容将会被屏蔽。 +- 在 HTML 元素中添加类名 `.highlight-block` 将会避免该元素及其子元素被录制,回放时取而代之的是一个同等宽高的占位元素。 +- 在 HTML 元素中添加类名 `.highlight-ignore` 将会避免录制该元素的输入事件。 +- 所有带有`.highlight-mask`类名的元素及其子元素的 text 内容将会被屏蔽。 - `input[type="password"]` 类型的密码输入框默认不会录制输入事件。 - 配置中还有更为丰富的隐私保护选项。 @@ -296,7 +296,7 @@ replayer.destroy(); | skipInactive | false | 是否快速跳过无用户操作的阶段 | | showWarning | true | 是否在回放过程中打印警告信息 | | showDebug | false | 是否在回放过程中打印 debug 信息 | -| blockClass | 'rr-block' | 需要在回放时展示为隐藏区域的元素类名 | +| blockClass | 'highlight-block' | 需要在回放时展示为隐藏区域的元素类名 | | liveMode | false | 是否开启直播模式 | | insertStyleRules | [] | 可以传入多个 CSS rule string,用于自定义回放时 iframe 内的样式 | | triggerFocus | true | 回放时是否回放 focus 交互 | diff --git a/packages/rrdom-nodejs/LICENSE b/packages/rrdom-nodejs/LICENSE new file mode 100644 index 00000000..fce28eb8 --- /dev/null +++ b/packages/rrdom-nodejs/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/rrdom-nodejs/package.json b/packages/rrdom-nodejs/package.json index f1be1665..9a2715b3 100644 --- a/packages/rrdom-nodejs/package.json +++ b/packages/rrdom-nodejs/package.json @@ -1,6 +1,6 @@ { - "name": "rrdom-nodejs", - "version": "0.1.7", + "name": "@highlight-run/rrdom-nodejs", + "version": "0.1.9", "scripts": { "dev": "rollup -c -w", "bundle": "rollup --config", @@ -46,11 +46,11 @@ "typescript": "^4.7.3" }, "dependencies": { + "@highlight-run/rrdom": "^0.1.18", + "@highlight-run/rrweb-snapshot": "^2.0.1", "cssom": "^0.5.0", "cssstyle": "^2.3.0", - "nwsapi": "^2.2.0", - "rrdom": "^0.1.7", - "rrweb-snapshot": "^2.0.0-alpha.4" + "nwsapi": "^2.2.0" }, "browserslist": [ "supports es6-class" diff --git a/packages/rrdom-nodejs/src/document-nodejs.ts b/packages/rrdom-nodejs/src/document-nodejs.ts index 69f85b87..517167e5 100644 --- a/packages/rrdom-nodejs/src/document-nodejs.ts +++ b/packages/rrdom-nodejs/src/document-nodejs.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ -import { NodeType as RRNodeType } from 'rrweb-snapshot'; +import { NodeType as RRNodeType } from '@highlight-run/rrweb-snapshot'; import type { NWSAPI } from 'nwsapi'; import type { CSSStyleDeclaration as CSSStyleDeclarationType } from 'cssstyle'; import { @@ -14,7 +14,7 @@ import { ClassList, IRRDocument, CSSStyleDeclaration, -} from 'rrdom'; +} from '@highlight-run/rrdom'; // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires const nwsapi = require('nwsapi'); // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires diff --git a/packages/rrdom-nodejs/test/document-nodejs.test.ts b/packages/rrdom-nodejs/test/document-nodejs.test.ts index ba3c6144..81469c87 100644 --- a/packages/rrdom-nodejs/test/document-nodejs.test.ts +++ b/packages/rrdom-nodejs/test/document-nodejs.test.ts @@ -3,7 +3,7 @@ */ import * as fs from 'fs'; import * as path from 'path'; -import { NodeType as RRNodeType } from 'rrweb-snapshot'; +import { NodeType as RRNodeType } from '@highlight-run/rrweb-snapshot'; import { RRCanvasElement, RRCDATASection, @@ -16,7 +16,7 @@ import { RRStyleElement, RRText, } from '../src/document-nodejs'; -import { buildFromDom } from 'rrdom'; +import { buildFromDom } from '@highlight-run/rrdom'; describe('RRDocument for nodejs environment', () => { describe('RRDocument API', () => { diff --git a/packages/rrdom/LICENSE b/packages/rrdom/LICENSE new file mode 100644 index 00000000..fce28eb8 --- /dev/null +++ b/packages/rrdom/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/rrdom/package.json b/packages/rrdom/package.json index 440358d1..b9b8c0b1 100644 --- a/packages/rrdom/package.json +++ b/packages/rrdom/package.json @@ -1,6 +1,6 @@ { - "name": "rrdom", - "version": "0.1.7", + "name": "@highlight-run/rrdom", + "version": "0.1.19", "homepage": "https://github.com/rrweb-io/rrweb/tree/main/packages/rrdom#readme", "license": "MIT", "main": "lib/rrdom.js", @@ -30,8 +30,8 @@ "url": "https://github.com/rrweb-io/rrweb/issues" }, "devDependencies": { + "@highlight-run/rrweb-types": "^2.0.0-alpha.4", "@rollup/plugin-commonjs": "^20.0.0", - "@rrweb/types": "^2.0.0-alpha.4", "@types/jest": "^27.4.1", "@types/puppeteer": "^5.4.4", "@typescript-eslint/eslint-plugin": "^5.23.0", @@ -47,6 +47,6 @@ "typescript": "^4.7.3" }, "dependencies": { - "rrweb-snapshot": "^2.0.0-alpha.4" + "@highlight-run/rrweb-snapshot": "^2.0.1" } } diff --git a/packages/rrdom/rollup.config.js b/packages/rrdom/rollup.config.js index 5bd34667..a69dc3ad 100644 --- a/packages/rrdom/rollup.config.js +++ b/packages/rrdom/rollup.config.js @@ -24,8 +24,8 @@ const basePlugins = [ const baseConfigs = [ { input: './src/index.ts', - name: pkg.name, - path: pkg.name, + name: 'rrdom', + path: 'rrdom', }, ]; @@ -40,7 +40,7 @@ for (let config of baseConfigs) { output: [ { format: 'esm', - file: pkg.module.replace(pkg.name, config.path), + file: pkg.module.replace('rrdom', config.path), }, ], }, diff --git a/packages/rrdom/src/diff.ts b/packages/rrdom/src/diff.ts index f03557e7..4e9df330 100644 --- a/packages/rrdom/src/diff.ts +++ b/packages/rrdom/src/diff.ts @@ -1,4 +1,4 @@ -import { NodeType as RRNodeType, Mirror as NodeMirror } from 'rrweb-snapshot'; +import { NodeType as RRNodeType, Mirror as NodeMirror } from '@highlight-run/rrweb-snapshot'; import type { canvasMutationData, canvasEventWithTime, @@ -6,7 +6,7 @@ import type { scrollData, styleDeclarationData, styleSheetRuleData, -} from '@rrweb/types'; +} from '@highlight-run/rrweb-types'; import type { IRRCDATASection, IRRComment, diff --git a/packages/rrdom/src/document.ts b/packages/rrdom/src/document.ts index f8ee5b86..b2f0310e 100644 --- a/packages/rrdom/src/document.ts +++ b/packages/rrdom/src/document.ts @@ -1,4 +1,4 @@ -import { NodeType as RRNodeType } from 'rrweb-snapshot'; +import { NodeType as RRNodeType } from '@highlight-run/rrweb-snapshot'; import { parseCSSText, camelize, toCSSText } from './style'; export interface IRRNode { parentElement: IRRNode | null; diff --git a/packages/rrdom/src/index.ts b/packages/rrdom/src/index.ts index 2b90840d..c4c9cf18 100644 --- a/packages/rrdom/src/index.ts +++ b/packages/rrdom/src/index.ts @@ -1,12 +1,12 @@ import { NodeType as RRNodeType, createMirror as createNodeMirror, -} from 'rrweb-snapshot'; +} from '@highlight-run/rrweb-snapshot'; import type { Mirror as NodeMirror, IMirror, serializedNodeWithId, -} from 'rrweb-snapshot'; +} from '@highlight-run/rrweb-snapshot'; import type { canvasMutationData, canvasEventWithTime, @@ -14,7 +14,7 @@ import type { scrollData, styleSheetRuleData, styleDeclarationData, -} from '@rrweb/types'; +} from '@highlight-run/rrweb-types'; import { BaseRRNode as RRNode, BaseRRCDATASectionImpl, diff --git a/packages/rrdom/test/diff.test.ts b/packages/rrdom/test/diff.test.ts index 6e02577f..ab52c3cb 100644 --- a/packages/rrdom/test/diff.test.ts +++ b/packages/rrdom/test/diff.test.ts @@ -8,16 +8,16 @@ import { serializedNodeWithId, createMirror, Mirror, -} from 'rrweb-snapshot'; +} from '@highlight-run/rrweb-snapshot'; import type { IRRNode } from '../src/document'; -import { Replayer } from 'rrweb'; +import { Replayer } from '@highlight-run/rrweb'; import type { eventWithTime, canvasMutationData, styleDeclarationData, styleSheetRuleData, -} from '@rrweb/types'; -import { EventType, IncrementalSource } from '@rrweb/types'; +} from '@highlight-run/rrweb-types'; +import { EventType, IncrementalSource } from '@highlight-run/rrweb-types'; const elementSn = { type: RRNodeType.Element, diff --git a/packages/rrdom/test/document.test.ts b/packages/rrdom/test/document.test.ts index c9ee13c3..1b75e2aa 100644 --- a/packages/rrdom/test/document.test.ts +++ b/packages/rrdom/test/document.test.ts @@ -1,7 +1,7 @@ /** * @jest-environment jsdom */ -import { NodeType as RRNodeType } from 'rrweb-snapshot'; +import { NodeType as RRNodeType } from '@highlight-run/rrweb-snapshot'; import { BaseRRDocumentImpl, BaseRRDocumentTypeImpl, diff --git a/packages/rrdom/test/virtual-dom.test.ts b/packages/rrdom/test/virtual-dom.test.ts index e414e230..2a9cfc37 100644 --- a/packages/rrdom/test/virtual-dom.test.ts +++ b/packages/rrdom/test/virtual-dom.test.ts @@ -18,7 +18,7 @@ import { NodeType, NodeType as RRNodeType, textNode, -} from 'rrweb-snapshot'; +} from '@highlight-run/rrweb-snapshot'; import { buildFromDom, buildFromNode, diff --git a/packages/rrweb-player/LICENSE b/packages/rrweb-player/LICENSE new file mode 100644 index 00000000..fce28eb8 --- /dev/null +++ b/packages/rrweb-player/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/rrweb-player/package.json b/packages/rrweb-player/package.json index 224dbdd1..66385983 100644 --- a/packages/rrweb-player/package.json +++ b/packages/rrweb-player/package.json @@ -1,10 +1,10 @@ { - "name": "rrweb-player", - "version": "1.0.0-alpha.4", + "name": "@highlight-run/rrweb-player", + "version": "1.0.1", "devDependencies": { + "@highlight-run/rrweb-types": "^2.0.0-alpha.4", "@rollup/plugin-commonjs": "^22.0.0", "@rollup/plugin-node-resolve": "^13.2.1", - "@rrweb/types": "^2.0.0-alpha.4", "@types/offscreencanvas": "^2019.6.4", "eslint-config-google": "^0.14.0", "eslint-plugin-svelte3": "^4.0.0", @@ -24,8 +24,8 @@ "typescript": "^4.7.3" }, "dependencies": { - "@tsconfig/svelte": "^1.0.0", - "rrweb": "^2.0.0-alpha.4" + "@highlight-run/rrweb": "2.1.10", + "@tsconfig/svelte": "^1.0.1" }, "scripts": { "build": "rollup -c", diff --git a/packages/rrweb-player/src/Controller.svelte b/packages/rrweb-player/src/Controller.svelte index 1025e453..6a8eaef9 100644 --- a/packages/rrweb-player/src/Controller.svelte +++ b/packages/rrweb-player/src/Controller.svelte @@ -1,7 +1,7 @@