"test-coverage": "jest --coverage && start ./coverage/lcov-report/index.html",
"test-build": "jest --coverage",
"storyshots": "jest storyshots.test.js",
- "lint-fix": "eslint --fix --ext .js --ext .jsx src"
+ "lint-fix": "eslint --fix --ext .js --ext .jsx src",
+ "postinstall": "patch-package"
},
"dependencies": {
"attr-accept": "^1.1.0",
"jsx-loader": "^0.13.2",
"mkdirp": "^0.5.1",
"moment": "^2.18.1",
- "node-sass": "^9.0.0",
+ "sass": "^1.32.0",
+ "patch-package": "^8.0.0",
"node-watch": "^0.3.5",
"prettier": "1.10.2",
"prompt": "^0.2.14",
"react-test-renderer": "^16.4.2",
"rosie": "^1.6.0",
"run-sequence": "^2.2.1",
- "sass-loader": "^6.0.6",
+ "sass-loader": "^7.3.1",
"source-map-loader": "^0.1.5",
"storyshots": "^3.2.2",
"style-loader": "^0.13.0",
--- /dev/null
+# patches
+
+This directory contains patches applied to `node_modules` via [patch-package](https://github.com/ds300/patch-package) after `npm install`.
+
+Patches are applied automatically by the `postinstall` script in `package.json`:
+
+```
+"postinstall": "patch-package"
+```
+
+## Patches
+
+### `onap-ui-common+1.0.119.patch`
+
+**Package:** `onap-ui-common@1.0.119`
+**File patched:** `lib/style.css`
+
+Removes a single use of the deprecated `/deep/` shadow-piercing CSS combinator from the compiled stylesheet:
+
+```css
+/* before */
+.file-upload .file-upload-input /deep/ .sdc-input { margin-bottom: 0px; }
+
+/* after */
+.file-upload .file-upload-input .sdc-input { margin-bottom: 0px; }
+```
+
+**Why:** `/deep/` is a non-standard Angular-era selector that Dart Sass rejects as a syntax error. Node Sass (libsass) silently accepted it, but since this project was migrated from `node-sass` to `sass` (Dart Sass), the invalid selector causes a build failure.
+
+**Upstream:** The `/deep/` is in the pre-compiled `lib/style.css` artifact shipped with the npm package. The source SCSS that produced it is not present in the available `onap-ui-common` source repository. This patch is intended as a temporary workaround until a fixed version of `onap-ui-common` is published.
--- /dev/null
+--- a/node_modules/onap-ui-common/lib/style.css
++++ b/node_modules/onap-ui-common/lib/style.css
+@@ -2911,7 +2911,7 @@
+ align-items: flex-end; }
+ .file-upload .file-upload-input {
+ flex-grow: 1; }
+- .file-upload .file-upload-input /deep/ .sdc-input {
++ .file-upload .file-upload-input .sdc-input {
+ margin-bottom: 0px; }
+ .file-upload .file-upload-button {
+ position: relative;