@companix/uikit 0.0.38 → 0.0.39
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.
|
@@ -6,6 +6,8 @@ export interface InnerAlert extends AlertOptions {
|
|
|
6
6
|
id: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const createAlertAgent: (options?: AlertBaseProps) => {
|
|
9
|
-
|
|
9
|
+
api: {
|
|
10
|
+
show: (value: Omit<InnerAlert, "id">) => void;
|
|
11
|
+
};
|
|
10
12
|
Viewport: () => import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
};
|
package/dist/bundle.es38.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { hash as m } from "@companix/utils-js";
|
|
3
3
|
import { useRef as n, useMemo as s } from "react";
|
|
4
|
-
import { Viewport as
|
|
5
|
-
const
|
|
4
|
+
import { Viewport as p } from "./bundle.es59.js";
|
|
5
|
+
const a = (t = {}) => {
|
|
6
6
|
const e = {
|
|
7
7
|
emit: (r) => {
|
|
8
8
|
console.error("uninitialized", r);
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
return {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
api: {
|
|
13
|
+
show: (r) => {
|
|
14
|
+
e.emit({ ...r, id: m() });
|
|
15
|
+
}
|
|
14
16
|
},
|
|
15
17
|
Viewport: () => {
|
|
16
18
|
const r = n(null);
|
|
@@ -18,10 +20,10 @@ const h = (t = {}) => {
|
|
|
18
20
|
e.emit = (o) => {
|
|
19
21
|
r.current && r.current.showAlert(o);
|
|
20
22
|
};
|
|
21
|
-
}, []), /* @__PURE__ */ i(
|
|
23
|
+
}, []), /* @__PURE__ */ i(p, { ref: r, ...t });
|
|
22
24
|
}
|
|
23
25
|
};
|
|
24
26
|
};
|
|
25
27
|
export {
|
|
26
|
-
|
|
28
|
+
a as createAlertAgent
|
|
27
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@companix/uikit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
4
4
|
"main": "./dist/bundle.es.js",
|
|
5
5
|
"module": "./dist/bundle.es.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
-
"author": "Pavel Victorov",
|
|
11
|
+
"author": "Pavel Victorov.",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"echo": "echo \"uikit\"",
|
|
14
14
|
"dev": "vite --config vite.config.ts",
|