From 84cf20ea4ca321bed7ecb5addd474e704cc30d3b Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Sep 2025 21:53:40 +0200 Subject: [PATCH] Add stability warning comment to SCSS source files (#5960) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a stability warning comment to the top of all `src/style.scss` files in the following Uppy packages to inform consumers that the source code and variables are not part of the stable API: - @uppy/audio - @uppy/core - @uppy/dashboard - @uppy/drag-drop - @uppy/drop-target - @uppy/image-editor - @uppy/provider-views - @uppy/screen-capture - @uppy/status-bar - @uppy/url - @uppy/webcam The comment added is: ```scss // NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! ``` This warning helps clarify that while the compiled CSS output and public APIs remain stable, the internal SCSS source files, variables, and implementation details should not be relied upon by consumers as they may change without notice in any release. The changes are minimal and surgical - exactly one line added to the top of each file with no other modifications to existing code. *This pull request was created as a result of the following prompt from Copilot chat.* > Add the following comment at the very top of each src/style.scss file in the following Uppy packages: @uppy/audio, @uppy/core, @uppy/dashboard, @uppy/drag-drop, @uppy/drop-target, @uppy/image-editor, @uppy/provider-views, @uppy/screen-capture, @uppy/status-bar, @uppy/url, @uppy/webcam. > > Comment to add: > // NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! > > Ensure the comment is the first line in each file, above any existing code or imports. --- ✨ Let Copilot coding agent [set things up for you](https://github.com/transloadit/uppy/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mifi <402547+mifi@users.noreply.github.com> Co-authored-by: Prakash Co-authored-by: Mikael Finstad --- packages/@uppy/audio/package.json | 1 + packages/@uppy/audio/src/style.scss | 1 + packages/@uppy/core/package.json | 1 + packages/@uppy/core/src/style.scss | 1 + packages/@uppy/dashboard/package.json | 1 + packages/@uppy/dashboard/src/style.scss | 1 + packages/@uppy/drag-drop/package.json | 1 + packages/@uppy/drag-drop/src/style.scss | 1 + packages/@uppy/drop-target/package.json | 1 + packages/@uppy/drop-target/src/style.scss | 1 + packages/@uppy/image-editor/package.json | 1 + packages/@uppy/image-editor/src/style.scss | 1 + packages/@uppy/provider-views/package.json | 1 + packages/@uppy/provider-views/src/style.scss | 1 + packages/@uppy/screen-capture/package.json | 1 + packages/@uppy/screen-capture/src/style.scss | 1 + packages/@uppy/status-bar/package.json | 1 + packages/@uppy/status-bar/src/style.scss | 1 + packages/@uppy/url/package.json | 1 + packages/@uppy/url/src/style.scss | 1 + packages/@uppy/webcam/package.json | 1 + packages/@uppy/webcam/src/style.scss | 1 + 22 files changed, 22 insertions(+) diff --git a/packages/@uppy/audio/package.json b/packages/@uppy/audio/package.json index 6d8f2b45e..2fbe287a5 100644 --- a/packages/@uppy/audio/package.json +++ b/packages/@uppy/audio/package.json @@ -36,6 +36,7 @@ ".": "./lib/index.js", "./css/style.css": "./dist/style.css", "./css/style.min.css": "./dist/style.min.css", + "./css/style.scss": "./src/style.scss", "./package.json": "./package.json" }, "dependencies": { diff --git a/packages/@uppy/audio/src/style.scss b/packages/@uppy/audio/src/style.scss index a50ae186d..001075aea 100644 --- a/packages/@uppy/audio/src/style.scss +++ b/packages/@uppy/audio/src/style.scss @@ -1,3 +1,4 @@ +// NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! @use "sass:color"; @use '@uppy/core/src/_utils.scss' as *; @use '@uppy/core/src/_variables.scss' as *; diff --git a/packages/@uppy/core/package.json b/packages/@uppy/core/package.json index 8978a0efc..69f147422 100644 --- a/packages/@uppy/core/package.json +++ b/packages/@uppy/core/package.json @@ -37,6 +37,7 @@ ".": "./lib/index.js", "./css/style.min.css": "./dist/style.min.css", "./css/style.css": "./dist/style.css", + "./css/style.scss": "./src/style.scss", "./package.json": "./package.json" }, "dependencies": { diff --git a/packages/@uppy/core/src/style.scss b/packages/@uppy/core/src/style.scss index a06c3a5e8..4b08b8336 100644 --- a/packages/@uppy/core/src/style.scss +++ b/packages/@uppy/core/src/style.scss @@ -1,3 +1,4 @@ +// NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! @use '_variables.scss'; @use '_utils.scss'; @use '_common.scss'; diff --git a/packages/@uppy/dashboard/package.json b/packages/@uppy/dashboard/package.json index 69f091f19..42219b0dc 100644 --- a/packages/@uppy/dashboard/package.json +++ b/packages/@uppy/dashboard/package.json @@ -40,6 +40,7 @@ ".": "./lib/index.js", "./css/style.css": "./dist/style.css", "./css/style.min.css": "./dist/style.min.css", + "./css/style.scss": "./src/style.scss", "./package.json": "./package.json" }, "dependencies": { diff --git a/packages/@uppy/dashboard/src/style.scss b/packages/@uppy/dashboard/src/style.scss index 3c0cd94d5..f5283a0f5 100644 --- a/packages/@uppy/dashboard/src/style.scss +++ b/packages/@uppy/dashboard/src/style.scss @@ -1,3 +1,4 @@ +// NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! @use "sass:color"; @use '@uppy/core/src/_utils.scss'; @use '@uppy/core/src/_variables.scss'; diff --git a/packages/@uppy/drag-drop/package.json b/packages/@uppy/drag-drop/package.json index 737e97bc9..3a3ce9987 100644 --- a/packages/@uppy/drag-drop/package.json +++ b/packages/@uppy/drag-drop/package.json @@ -41,6 +41,7 @@ ".": "./lib/index.js", "./css/style.css": "./dist/style.css", "./css/style.min.css": "./dist/style.min.css", + "./css/style.scss": "./src/style.scss", "./package.json": "./package.json" }, "dependencies": { diff --git a/packages/@uppy/drag-drop/src/style.scss b/packages/@uppy/drag-drop/src/style.scss index 12ba3e5ef..e8f1e470d 100644 --- a/packages/@uppy/drag-drop/src/style.scss +++ b/packages/@uppy/drag-drop/src/style.scss @@ -1,3 +1,4 @@ +// NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! @use "sass:color"; @use '@uppy/core/src/_utils.scss'; @use '@uppy/core/src/_variables.scss'; diff --git a/packages/@uppy/drop-target/package.json b/packages/@uppy/drop-target/package.json index 6d48a685f..d9475ce3c 100644 --- a/packages/@uppy/drop-target/package.json +++ b/packages/@uppy/drop-target/package.json @@ -40,6 +40,7 @@ ".": "./lib/index.js", "./css/style.css": "./dist/style.css", "./css/style.min.css": "./dist/style.min.css", + "./css/style.scss": "./src/style.scss", "./package.json": "./package.json" }, "dependencies": { diff --git a/packages/@uppy/drop-target/src/style.scss b/packages/@uppy/drop-target/src/style.scss index b19b0b496..db2d3b9c5 100644 --- a/packages/@uppy/drop-target/src/style.scss +++ b/packages/@uppy/drop-target/src/style.scss @@ -1,3 +1,4 @@ +// NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! @use '@uppy/core/src/_variables.scss'; .uppy-is-drag-over::after { diff --git a/packages/@uppy/image-editor/package.json b/packages/@uppy/image-editor/package.json index cb16b942c..8ed97fe8b 100644 --- a/packages/@uppy/image-editor/package.json +++ b/packages/@uppy/image-editor/package.json @@ -42,6 +42,7 @@ ".": "./lib/index.js", "./css/style.css": "./dist/style.css", "./css/style.min.css": "./dist/style.min.css", + "./css/style.scss": "./src/style.scss", "./package.json": "./package.json" }, "dependencies": { diff --git a/packages/@uppy/image-editor/src/style.scss b/packages/@uppy/image-editor/src/style.scss index e6e589b12..67dd7d3ff 100644 --- a/packages/@uppy/image-editor/src/style.scss +++ b/packages/@uppy/image-editor/src/style.scss @@ -1,3 +1,4 @@ +// NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! @use 'inputrange' with ( $track-color: rgba(#fff, 0.2), $thumb-color: #fff, diff --git a/packages/@uppy/provider-views/package.json b/packages/@uppy/provider-views/package.json index 08885fee4..98da3bd1f 100644 --- a/packages/@uppy/provider-views/package.json +++ b/packages/@uppy/provider-views/package.json @@ -36,6 +36,7 @@ ".": "./lib/index.js", "./css/style.min.css": "./dist/style.min.css", "./css/style.css": "./dist/style.css", + "./css/style.scss": "./src/style.scss", "./package.json": "./package.json" }, "dependencies": { diff --git a/packages/@uppy/provider-views/src/style.scss b/packages/@uppy/provider-views/src/style.scss index 9fbd248d5..bec880bb5 100644 --- a/packages/@uppy/provider-views/src/style.scss +++ b/packages/@uppy/provider-views/src/style.scss @@ -1,3 +1,4 @@ +// NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! @use "sass:color"; @use '@uppy/core/src/_utils.scss'; @use '@uppy/core/src/_variables.scss'; diff --git a/packages/@uppy/screen-capture/package.json b/packages/@uppy/screen-capture/package.json index a81b8cde7..34e90903e 100644 --- a/packages/@uppy/screen-capture/package.json +++ b/packages/@uppy/screen-capture/package.json @@ -40,6 +40,7 @@ ".": "./lib/index.js", "./css/style.css": "./dist/style.css", "./css/style.min.css": "./dist/style.min.css", + "./css/style.scss": "./src/style.scss", "./package.json": "./package.json" }, "dependencies": { diff --git a/packages/@uppy/screen-capture/src/style.scss b/packages/@uppy/screen-capture/src/style.scss index 1f4a6abeb..e426f3491 100644 --- a/packages/@uppy/screen-capture/src/style.scss +++ b/packages/@uppy/screen-capture/src/style.scss @@ -1,3 +1,4 @@ +// NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! @use "sass:color"; @use '@uppy/core/src/_utils.scss'; @use '@uppy/core/src/_variables.scss'; diff --git a/packages/@uppy/status-bar/package.json b/packages/@uppy/status-bar/package.json index 4c2e7b7f7..ba94f1b88 100644 --- a/packages/@uppy/status-bar/package.json +++ b/packages/@uppy/status-bar/package.json @@ -42,6 +42,7 @@ ".": "./lib/index.js", "./css/style.css": "./dist/style.css", "./css/style.min.css": "./dist/style.min.css", + "./css/style.scss": "./src/style.scss", "./package.json": "./package.json" }, "dependencies": { diff --git a/packages/@uppy/status-bar/src/style.scss b/packages/@uppy/status-bar/src/style.scss index 549fbadc4..0e57c30f0 100644 --- a/packages/@uppy/status-bar/src/style.scss +++ b/packages/@uppy/status-bar/src/style.scss @@ -1,3 +1,4 @@ +// NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! @use "sass:color"; @use '@uppy/core/src/_utils.scss'; @use '@uppy/core/src/_variables.scss'; diff --git a/packages/@uppy/url/package.json b/packages/@uppy/url/package.json index 43ae0eee9..4b7b7dead 100644 --- a/packages/@uppy/url/package.json +++ b/packages/@uppy/url/package.json @@ -40,6 +40,7 @@ ".": "./lib/index.js", "./css/style.css": "./dist/style.css", "./css/style.min.css": "./dist/style.min.css", + "./css/style.scss": "./src/style.scss", "./package.json": "./package.json" }, "dependencies": { diff --git a/packages/@uppy/url/src/style.scss b/packages/@uppy/url/src/style.scss index 8c775975b..087feed4a 100644 --- a/packages/@uppy/url/src/style.scss +++ b/packages/@uppy/url/src/style.scss @@ -1,3 +1,4 @@ +// NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! @use '@uppy/core/src/_utils.scss'; @use '@uppy/core/src/_variables.scss'; diff --git a/packages/@uppy/webcam/package.json b/packages/@uppy/webcam/package.json index 2055546bd..6dfe44e99 100644 --- a/packages/@uppy/webcam/package.json +++ b/packages/@uppy/webcam/package.json @@ -43,6 +43,7 @@ ".": "./lib/index.js", "./css/style.css": "./dist/style.css", "./css/style.min.css": "./dist/style.min.css", + "./css/style.scss": "./src/style.scss", "./package.json": "./package.json" }, "dependencies": { diff --git a/packages/@uppy/webcam/src/style.scss b/packages/@uppy/webcam/src/style.scss index 54885036c..a9493f6f8 100644 --- a/packages/@uppy/webcam/src/style.scss +++ b/packages/@uppy/webcam/src/style.scss @@ -1,3 +1,4 @@ +// NOTE TO CONSUMERS: The code and variables in these source files are not considered stable and can change at any time, even in minor and patch releases! @use "sass:color"; @use '@uppy/core/src/_utils.scss'; @use '@uppy/core/src/_variables.scss';