@squiz/resource-browser 2.1.9-rc.0 → 2.1.10-rc.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/.storybook/preview-body.html +1 -0
- package/.storybook/preview-head.html +7 -10
- package/CHANGELOG.md +4 -0
- package/lib/MainContainer/MainContainer.js +1 -1
- package/lib/index.css +326 -326
- package/package.json +3 -3
- package/postcss.config.js +19 -15
- package/src/MainContainer/MainContainer.tsx +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@squiz/resource-browser",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.10-rc.0",
|
4
4
|
"main": "lib/index.js",
|
5
5
|
"types": "lib/index.d.ts",
|
6
6
|
"private": false,
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"@react-types/shared": "^3.22.1",
|
24
24
|
"@squiz/dx-json-schema-lib": "^1.67.0",
|
25
25
|
"@squiz/generic-browser-lib": "^1.66.0",
|
26
|
-
"@squiz/resource-browser-ui-lib": "^0.8.
|
26
|
+
"@squiz/resource-browser-ui-lib": "^0.8.2-rc.0",
|
27
27
|
"clsx": "^2.1.0",
|
28
28
|
"expiry-map": "^2.0.0",
|
29
29
|
"p-memoize": "^4.0.4",
|
@@ -81,5 +81,5 @@
|
|
81
81
|
"volta": {
|
82
82
|
"node": "18.18.0"
|
83
83
|
},
|
84
|
-
"gitHead": "
|
84
|
+
"gitHead": "0799116e7501bb4eaa3c401be6304231d8910f75"
|
85
85
|
}
|
package/postcss.config.js
CHANGED
@@ -1,17 +1,21 @@
|
|
1
1
|
module.exports = {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
2
|
+
plugins: [
|
3
|
+
require('tailwindcss'),
|
4
|
+
require('autoprefixer'),
|
5
|
+
require('postcss-nested'),
|
6
|
+
require('postcss-prefix-selector')({
|
7
|
+
prefix: '.squiz-rb-scope',
|
8
|
+
transform(prefix, selector, prefixedSelector, filePath, rule) {
|
9
|
+
if (selector.match(/(squiz-gb-scope)/)) {
|
10
|
+
return selector;
|
11
|
+
}
|
12
|
+
if (selector.match(/(::)/)) {
|
13
|
+
const index = prefixedSelector.indexOf('::');
|
14
|
+
return `${prefixedSelector.slice(0, index)}:not(.squiz-rb-plugin *)${prefixedSelector.slice(index)}`;
|
15
|
+
}
|
16
|
+
return `${prefixedSelector}:not(.squiz-rb-plugin *)`;
|
17
|
+
},
|
18
|
+
includeFiles: ['./src/index.scss'],
|
19
|
+
}),
|
20
|
+
],
|
17
21
|
};
|
@@ -79,7 +79,7 @@ function MainContainer({
|
|
79
79
|
</svg>
|
80
80
|
</button>
|
81
81
|
</div>
|
82
|
-
<div className="border-t border-gray-300
|
82
|
+
<div className="squiz-rb-plugin border-t border-gray-300 overflow-y-hidden">
|
83
83
|
{plugin && selectedSource && SourceBrowser && (
|
84
84
|
<SourceBrowser
|
85
85
|
source={selectedSource}
|