@squiz/resource-browser 3.0.1-rc.7 → 3.1.0-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/CHANGELOG.md +6 -0
- package/lib/MainContainer/MainContainer.js +5 -3
- package/lib/index.css +21 -0
- package/package.json +3 -3
- package/src/MainContainer/MainContainer.tsx +19 -13
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
# [3.1.0-rc.0](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@3.0.1-rc.7...@squiz/resource-browser@3.1.0-rc.0) (2024-12-16)
|
7
|
+
|
8
|
+
### Features
|
9
|
+
|
10
|
+
- **prodam-489:** close modal hover and mobile input with fix ([135c695](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/commit/135c695bdcc1c5d6cbbd26d850e402d3cc208a8a))
|
11
|
+
|
6
12
|
## [3.0.1-rc.7](https://gitlab.squiz.net/dxp/dxp-shared-ui/resource-browser/compare/@squiz/resource-browser@3.0.1-rc.6...@squiz/resource-browser@3.0.1-rc.7) (2024-12-13)
|
7
13
|
|
8
14
|
**Note:** Version bump only for package @squiz/resource-browser
|
@@ -52,9 +52,11 @@ function MainContainer({ title, titleAriaProps, allowedTypes, sources, selectedS
|
|
52
52
|
!plugin.createHeaderPortal && sources.length > 1 && (react_1.default.createElement(SourceDropdownContainer_1.default, { isCollapsed: false, onExpand: () => { } },
|
53
53
|
react_1.default.createElement("div", { className: `border-l border-blue-200 pl-1 w-[204px]` },
|
54
54
|
react_1.default.createElement(SourceDropdown_1.default, { sources: sources, selectedSource: selectedSource, onSourceSelect: onSourceSelect })))))),
|
55
|
-
react_1.default.createElement("
|
56
|
-
react_1.default.createElement("
|
57
|
-
react_1.default.createElement("
|
55
|
+
react_1.default.createElement("div", { className: "flex gap-3 p-3 absolute right-0 top-0" },
|
56
|
+
react_1.default.createElement("button", { type: "button", "aria-label": `Close ${title} dialog`, onClick: onClose, className: "border-0 bg-transparent cursor-pointer p-0 relative" },
|
57
|
+
react_1.default.createElement("svg", { height: "24px", viewBox: "0 0 24 24", width: "24px", xmlns: "http://www.w3.org/2000/svg", className: "text-gray-600 hover:text-gray-800 fill-current" },
|
58
|
+
react_1.default.createElement("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
59
|
+
react_1.default.createElement("path", { d: "M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z" }))))),
|
58
60
|
react_1.default.createElement("div", { className: "border-t border-gray-300 overflow-y-hidden" },
|
59
61
|
plugin && selectedSource && (react_1.default.createElement("div", { className: `squiz-rb-plugin squiz-rb-plugin--${pluginMode?.type}` },
|
60
62
|
pluginToRender === types_1.PluginLaunchModeType.Browse && SourceBrowser && (react_1.default.createElement(SourceBrowser, { source: selectedSource, sources: sources, onSourceSelect: onSourceSelect, allowedTypes: allowedTypes, headerPortal: plugin.createHeaderPortal && headerPortal ? headerPortal : undefined, searchEnabled: searchEnabled, preselectedResource: preselectedResource || undefined, browseTo: pluginMode?.args?.browseTo, onSelected: (resource) => {
|
package/lib/index.css
CHANGED
@@ -4826,6 +4826,9 @@
|
|
4826
4826
|
.squiz-rb-scope .left-1:not(.squiz-rb-plugin *) {
|
4827
4827
|
left: 0.25rem;
|
4828
4828
|
}
|
4829
|
+
.squiz-rb-scope .right-0:not(.squiz-rb-plugin *) {
|
4830
|
+
right: 0px;
|
4831
|
+
}
|
4829
4832
|
.squiz-rb-scope .right-2:not(.squiz-rb-plugin *) {
|
4830
4833
|
right: 0.5rem;
|
4831
4834
|
}
|
@@ -4838,6 +4841,9 @@
|
|
4838
4841
|
.squiz-rb-scope .right-5:not(.squiz-rb-plugin *) {
|
4839
4842
|
right: 1.25rem;
|
4840
4843
|
}
|
4844
|
+
.squiz-rb-scope .top-0:not(.squiz-rb-plugin *) {
|
4845
|
+
top: 0px;
|
4846
|
+
}
|
4841
4847
|
.squiz-rb-scope .top-2:not(.squiz-rb-plugin *) {
|
4842
4848
|
top: 0.5rem;
|
4843
4849
|
}
|
@@ -5127,6 +5133,9 @@
|
|
5127
5133
|
.squiz-rb-scope .cursor-not-allowed:not(.squiz-rb-plugin *) {
|
5128
5134
|
cursor: not-allowed;
|
5129
5135
|
}
|
5136
|
+
.squiz-rb-scope .cursor-pointer:not(.squiz-rb-plugin *) {
|
5137
|
+
cursor: pointer;
|
5138
|
+
}
|
5130
5139
|
.squiz-rb-scope .grid-cols-\[24px_1fr_45px\]:not(.squiz-rb-plugin *) {
|
5131
5140
|
grid-template-columns: 24px 1fr 45px;
|
5132
5141
|
}
|
@@ -5192,6 +5201,9 @@
|
|
5192
5201
|
.squiz-rb-scope .rounded-lg:not(.squiz-rb-plugin *) {
|
5193
5202
|
border-radius: 0.5rem;
|
5194
5203
|
}
|
5204
|
+
.squiz-rb-scope .border-0:not(.squiz-rb-plugin *) {
|
5205
|
+
border-width: 0px;
|
5206
|
+
}
|
5195
5207
|
.squiz-rb-scope .border-1:not(.squiz-rb-plugin *) {
|
5196
5208
|
border-width: 1px;
|
5197
5209
|
}
|
@@ -5262,6 +5274,9 @@
|
|
5262
5274
|
--tw-bg-opacity: 1;
|
5263
5275
|
background-color: rgb(237 237 237 / var(--tw-bg-opacity));
|
5264
5276
|
}
|
5277
|
+
.squiz-rb-scope .bg-transparent:not(.squiz-rb-plugin *) {
|
5278
|
+
background-color: transparent;
|
5279
|
+
}
|
5265
5280
|
.squiz-rb-scope .bg-white:not(.squiz-rb-plugin *) {
|
5266
5281
|
--tw-bg-opacity: 1;
|
5267
5282
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
@@ -5272,6 +5287,9 @@
|
|
5272
5287
|
.squiz-rb-scope .fill-blue-300:not(.squiz-rb-plugin *) {
|
5273
5288
|
fill: #0774d2;
|
5274
5289
|
}
|
5290
|
+
.squiz-rb-scope .fill-current:not(.squiz-rb-plugin *) {
|
5291
|
+
fill: currentColor;
|
5292
|
+
}
|
5275
5293
|
.squiz-rb-scope .object-cover:not(.squiz-rb-plugin *) {
|
5276
5294
|
-o-object-fit: cover;
|
5277
5295
|
object-fit: cover;
|
@@ -5292,6 +5310,9 @@
|
|
5292
5310
|
.squiz-rb-scope .p-2\.5:not(.squiz-rb-plugin *) {
|
5293
5311
|
padding: 0.625rem;
|
5294
5312
|
}
|
5313
|
+
.squiz-rb-scope .p-3:not(.squiz-rb-plugin *) {
|
5314
|
+
padding: 0.75rem;
|
5315
|
+
}
|
5295
5316
|
.squiz-rb-scope .p-4:not(.squiz-rb-plugin *) {
|
5296
5317
|
padding: 1rem;
|
5297
5318
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@squiz/resource-browser",
|
3
|
-
"version": "3.0
|
3
|
+
"version": "3.1.0-rc.0",
|
4
4
|
"main": "lib/index.js",
|
5
5
|
"types": "lib/index.d.ts",
|
6
6
|
"private": false,
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"@react-types/shared": "^3.23.1",
|
29
29
|
"@squiz/dx-json-schema-lib": "^1.67.0",
|
30
30
|
"@squiz/generic-browser-lib": "1.67.2",
|
31
|
-
"@squiz/resource-browser-ui-lib": "^1.0.0-rc.
|
31
|
+
"@squiz/resource-browser-ui-lib": "^1.0.0-rc.7",
|
32
32
|
"@squiz/sds": "^1.3.1",
|
33
33
|
"clsx": "^2.1.0",
|
34
34
|
"expiry-map": "^2.0.0",
|
@@ -89,5 +89,5 @@
|
|
89
89
|
"volta": {
|
90
90
|
"node": "18.18.0"
|
91
91
|
},
|
92
|
-
"gitHead": "
|
92
|
+
"gitHead": "827a766f573da634daf63817dde6ef62314e66fa"
|
93
93
|
}
|
@@ -83,19 +83,25 @@ function MainContainer({
|
|
83
83
|
</>
|
84
84
|
)}
|
85
85
|
|
86
|
-
<
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
<
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
86
|
+
<div className="flex gap-3 p-3 absolute right-0 top-0">
|
87
|
+
<button
|
88
|
+
type="button"
|
89
|
+
aria-label={`Close ${title} dialog`}
|
90
|
+
onClick={onClose}
|
91
|
+
className="border-0 bg-transparent cursor-pointer p-0 relative"
|
92
|
+
>
|
93
|
+
<svg
|
94
|
+
height="24px"
|
95
|
+
viewBox="0 0 24 24"
|
96
|
+
width="24px"
|
97
|
+
xmlns="http://www.w3.org/2000/svg"
|
98
|
+
className="text-gray-600 hover:text-gray-800 fill-current"
|
99
|
+
>
|
100
|
+
<path d="M0 0h24v24H0V0z" fill="none"></path>
|
101
|
+
<path d="M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"></path>
|
102
|
+
</svg>
|
103
|
+
</button>
|
104
|
+
</div>
|
99
105
|
</div>
|
100
106
|
<div className="border-t border-gray-300 overflow-y-hidden">
|
101
107
|
{plugin && selectedSource && (
|