sliftutils 0.52.0 → 0.54.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/package.json +2 -2
- package/render-utils/modal.tsx +2 -2
- package/yarn.lock +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sliftutils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"mobx": "^6.13.3",
|
|
49
49
|
"preact": "10.24.3",
|
|
50
50
|
"shell-quote": "^1.8.3",
|
|
51
|
-
"socket-function": "^0.
|
|
51
|
+
"socket-function": "^0.162.0",
|
|
52
52
|
"typenode": "^6.0.0",
|
|
53
53
|
"typesafecss": "*",
|
|
54
54
|
"ws": "^8.18.3",
|
package/render-utils/modal.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import { observable } from "mobx";
|
|
|
3
3
|
import * as mobx from "mobx";
|
|
4
4
|
import { observer } from "./observer";
|
|
5
5
|
import { lazy } from "socket-function/src/caching";
|
|
6
|
+
import { nextId } from "socket-function/src/misc";
|
|
6
7
|
|
|
7
8
|
type ModalData = {
|
|
8
9
|
contents: preact.ComponentChildren;
|
|
@@ -31,7 +32,6 @@ const ensureRootMounted = lazy(() => {
|
|
|
31
32
|
preact.render(<ModalRoot />, root);
|
|
32
33
|
});
|
|
33
34
|
|
|
34
|
-
let modalIdCounter = 0;
|
|
35
35
|
|
|
36
36
|
function closeModal(id: string) {
|
|
37
37
|
const modal = activeModals[id];
|
|
@@ -54,7 +54,7 @@ export function showModal(config: {
|
|
|
54
54
|
} {
|
|
55
55
|
ensureRootMounted();
|
|
56
56
|
|
|
57
|
-
const id = `modal-${
|
|
57
|
+
const id = `modal-${nextId()}`;
|
|
58
58
|
activeModals[id] = {
|
|
59
59
|
contents: config.contents,
|
|
60
60
|
onClose: config.onClose
|
package/yarn.lock
CHANGED
|
@@ -1494,10 +1494,10 @@ slash@^3.0.0:
|
|
|
1494
1494
|
resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
|
|
1495
1495
|
integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
|
|
1496
1496
|
|
|
1497
|
-
socket-function@^0.
|
|
1498
|
-
version "0.
|
|
1499
|
-
resolved "https://registry.yarnpkg.com/socket-function/-/socket-function-0.
|
|
1500
|
-
integrity sha512-
|
|
1497
|
+
socket-function@^0.162.0:
|
|
1498
|
+
version "0.162.0"
|
|
1499
|
+
resolved "https://registry.yarnpkg.com/socket-function/-/socket-function-0.162.0.tgz#659dcff669a777c765c2d609ce733ee3674bb468"
|
|
1500
|
+
integrity sha512-vBlGEWbYtPIAYSG9qmBuZ1Yec8fetIDzPR6TzKFOHXOlWtwq4W/rHz3aALw+afLNGBpJs4SI21WrS8efOepN/A==
|
|
1501
1501
|
dependencies:
|
|
1502
1502
|
"@types/pako" "^2.0.3"
|
|
1503
1503
|
"@types/ws" "^8.5.3"
|