diff --git a/.changeset/real-doors-lie.md b/.changeset/real-doors-lie.md new file mode 100644 index 000000000..1c0f20289 --- /dev/null +++ b/.changeset/real-doors-lie.md @@ -0,0 +1,5 @@ +--- +'@finsweet/attributes-scrolldisable': patch +--- + +chore: remove `tua-body-scroll-lock` local patch diff --git a/packages/scrolldisable/package.json b/packages/scrolldisable/package.json index 5a7e66fa6..346894f2d 100644 --- a/packages/scrolldisable/package.json +++ b/packages/scrolldisable/package.json @@ -19,6 +19,6 @@ "dependencies": { "@finsweet/attributes-utils": "workspace:*", "just-debounce": "^1.1.0", - "tua-body-scroll-lock": "^1.6.1" + "tua-body-scroll-lock": "^1.6.2" } } diff --git a/patches/tua-body-scroll-lock@1.6.1.patch b/patches/tua-body-scroll-lock@1.6.1.patch deleted file mode 100644 index 89fed276d..000000000 --- a/patches/tua-body-scroll-lock@1.6.1.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/dist/tua-bsl.mjs b/dist/tua-bsl.mjs -index ab83570cdd70766c7b72f0e5293a532f867458bc..c8b9c868855e35088d183e6fefe9e6686d925b4d 100644 ---- a/dist/tua-bsl.mjs -+++ b/dist/tua-bsl.mjs -@@ -178,13 +178,13 @@ function setOverflowForPc(options) { - var $html = document.documentElement; - var htmlStyle = Object.assign({}, $html.style); - var withPaddingRight = (_a = void 0 ) !== null && _a !== void 0 ? _a : true; -- $html.style.overflow = 'hidden'; -- $html.style.boxSizing = 'border-box'; - if (withPaddingRight) { - var scrollBarWidth = window.innerWidth - $html.clientWidth; - var previousPaddingRight = parseInt(window.getComputedStyle($html).paddingRight, 10); - $html.style.paddingRight = "".concat(scrollBarWidth + previousPaddingRight, "px"); - } -+ $html.style.overflow = 'hidden'; -+ $html.style.boxSizing = 'border-box'; - return function () { - ['overflow', 'boxSizing', 'paddingRight'].forEach(function (x) { - $html.style[x] = htmlStyle[x] || ''; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 69b61119f..248bfc6b1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,11 +4,6 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false -patchedDependencies: - tua-body-scroll-lock@1.6.1: - hash: 04a62a2a8c3a144be525aaea115265dce3d3dada6ba8e31df66ad16053c2ca72 - path: patches/tua-body-scroll-lock@1.6.1.patch - importers: .: @@ -342,8 +337,8 @@ importers: specifier: ^1.1.0 version: 1.1.0 tua-body-scroll-lock: - specifier: ^1.6.1 - version: 1.6.1(patch_hash=04a62a2a8c3a144be525aaea115265dce3d3dada6ba8e31df66ad16053c2ca72) + specifier: ^1.6.2 + version: 1.6.2 packages/selectcustom: dependencies: @@ -1936,8 +1931,8 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - tua-body-scroll-lock@1.6.1: - resolution: {integrity: sha512-BKJ8Jg8/SoSeE2GgKXeLKYZesa5cIGUj3jupGtnM3HoZIa5dsa+p6aeHhN6rHlP1KW7bNDsc1fhKkf4fm0krug==} + tua-body-scroll-lock@1.6.2: + resolution: {integrity: sha512-Jze2xSvqo1gWq3Dky/XkySWNeC36YcfmFhZ+3hjpUWLuI8zFHYOLtQuZuDrl6tFfn4iVqddtqLVfABIYV4SA+w==} type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} @@ -3538,7 +3533,7 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - tua-body-scroll-lock@1.6.1(patch_hash=04a62a2a8c3a144be525aaea115265dce3d3dada6ba8e31df66ad16053c2ca72): {} + tua-body-scroll-lock@1.6.2: {} type-check@0.4.0: dependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 6d56c1cb4..f7e9217bb 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -4,6 +4,3 @@ packages: onlyBuiltDependencies: - esbuild - -patchedDependencies: - tua-body-scroll-lock@1.6.1: patches/tua-body-scroll-lock@1.6.1.patch