@djangocfg/ui-tools 2.1.357 → 2.1.358
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/ui-tools",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.358",
|
|
4
4
|
"description": "Heavy React tools with lazy loading - for Electron, Vite, CRA, Next.js apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui-tools",
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"check": "tsc --noEmit"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
|
-
"@djangocfg/i18n": "^2.1.
|
|
105
|
-
"@djangocfg/ui-core": "^2.1.
|
|
104
|
+
"@djangocfg/i18n": "^2.1.358",
|
|
105
|
+
"@djangocfg/ui-core": "^2.1.358",
|
|
106
106
|
"consola": "^3.4.2",
|
|
107
107
|
"lodash-es": "^4.18.1",
|
|
108
108
|
"lucide-react": "^0.545.0",
|
|
@@ -155,10 +155,10 @@
|
|
|
155
155
|
"material-file-icons": "^2.4.0"
|
|
156
156
|
},
|
|
157
157
|
"devDependencies": {
|
|
158
|
-
"@djangocfg/i18n": "^2.1.
|
|
158
|
+
"@djangocfg/i18n": "^2.1.358",
|
|
159
159
|
"@djangocfg/playground": "workspace:*",
|
|
160
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
161
|
-
"@djangocfg/ui-core": "^2.1.
|
|
160
|
+
"@djangocfg/typescript-config": "^2.1.358",
|
|
161
|
+
"@djangocfg/ui-core": "^2.1.358",
|
|
162
162
|
"@types/lodash-es": "^4.17.12",
|
|
163
163
|
"@types/mapbox__mapbox-gl-draw": "^1.4.8",
|
|
164
164
|
"@types/node": "^24.7.2",
|
|
@@ -31,7 +31,7 @@ const OFFSET = 8;
|
|
|
31
31
|
* (`top`, `right`, `bottom`) are primitives, so default shallow
|
|
32
32
|
* comparison is sufficient.
|
|
33
33
|
*/
|
|
34
|
-
const JsonToolbar = memo(
|
|
34
|
+
const JsonToolbar = memo(({
|
|
35
35
|
top,
|
|
36
36
|
right,
|
|
37
37
|
bottom,
|
|
@@ -41,7 +41,7 @@ const JsonToolbar = memo(function JsonToolbar({
|
|
|
41
41
|
onDownload,
|
|
42
42
|
showExpandControls,
|
|
43
43
|
showActionButtons,
|
|
44
|
-
}: JsonToolbarProps) {
|
|
44
|
+
}: JsonToolbarProps) => {
|
|
45
45
|
const viewportHeight = window.visualViewport?.height ?? document.documentElement.clientHeight;
|
|
46
46
|
|
|
47
47
|
// Hide when block is fully above or below viewport
|
|
@@ -92,4 +92,4 @@ const JsonToolbar = memo(function JsonToolbar({
|
|
|
92
92
|
)}
|
|
93
93
|
</div>
|
|
94
94
|
);
|
|
95
|
-
};
|
|
95
|
+
});
|