lawgic-dev-kit 0.13.0 → 0.13.4
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/dist/_virtual/index2.js +3 -2
- package/dist/_virtual/index3.js +3 -2
- package/dist/_virtual/index4.js +5 -3
- package/dist/_virtual/index5.js +2 -3
- package/dist/_virtual/index6.js +2 -5
- package/dist/_virtual/index7.js +2 -2
- package/dist/lawgic-dev-kit.umd.js +92 -341
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/utils/toast.js +22 -22
- package/package.json +1 -1
- package/dist/_virtual/client.js +0 -24
- package/dist/_virtual/client2.js +0 -4
- package/dist/_virtual/index8.js +0 -4
- package/dist/_virtual/react-dom-client.development.js +0 -4
- package/dist/_virtual/react-dom-client.production.js +0 -4
- package/dist/_virtual/scheduler.development.js +0 -4
- package/dist/_virtual/scheduler.production.js +0 -4
- package/dist/node_modules/react-dom/cjs/react-dom-client.development.js +0 -15314
- package/dist/node_modules/react-dom/cjs/react-dom-client.production.js +0 -9408
- package/dist/node_modules/react-dom/client.js +0 -23
- package/dist/node_modules/scheduler/cjs/scheduler.development.js +0 -236
- package/dist/node_modules/scheduler/cjs/scheduler.production.js +0 -233
- package/dist/node_modules/scheduler/index.js +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../_virtual/
|
|
1
|
+
import { __module as r } from "../../_virtual/index5.js";
|
|
2
2
|
import { __require as s } from "./node_modules/react-is/index.js";
|
|
3
3
|
import { __require as t } from "./factoryWithTypeCheckers.js";
|
|
4
4
|
import { __require as p } from "./factoryWithThrowingShims.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as e } from "../../../../_virtual/
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index6.js";
|
|
2
2
|
import { __require as o } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.development.js";
|
|
4
4
|
var r;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as v } from "../../_virtual/
|
|
2
|
-
import { t as U } from "../../_virtual/
|
|
3
|
-
import oe from "../../_virtual/
|
|
1
|
+
import { p as v } from "../../_virtual/index2.js";
|
|
2
|
+
import { t as U } from "../../_virtual/index3.js";
|
|
3
|
+
import oe from "../../_virtual/index4.js";
|
|
4
4
|
const ce = Object.prototype.toString, he = Error.prototype.toString, fe = RegExp.prototype.toString, de = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", pe = /^Symbol\((.*)\)(.*)$/;
|
|
5
5
|
function me(n) {
|
|
6
6
|
return n != +n ? "NaN" : n === 0 && 1 / n < 0 ? "-0" : "" + n;
|
package/dist/utils/toast.js
CHANGED
|
@@ -49,14 +49,14 @@ function l(e = "bottom-center") {
|
|
|
49
49
|
}
|
|
50
50
|
return (o = m.find((t) => t.id === e)) == null ? void 0 : o.element;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
import("
|
|
52
|
+
function c(e, o = "success", { position: t = "top-right", duration: a = 3e3 } = {}) {
|
|
53
|
+
import("react-dom/client").then(({ createRoot: r }) => {
|
|
54
54
|
const s = l(t);
|
|
55
55
|
if (!s) return;
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
const n = document.createElement("div"), i = r(n), f = () => {
|
|
57
|
+
i.unmount(), s.removeChild(n);
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
i.render(
|
|
60
60
|
/* @__PURE__ */ d.jsx(
|
|
61
61
|
h,
|
|
62
62
|
{
|
|
@@ -66,29 +66,29 @@ function i(e, o = "success", { position: t = "top-right", duration: a = 3e3 } =
|
|
|
66
66
|
onClose: f
|
|
67
67
|
}
|
|
68
68
|
)
|
|
69
|
-
), s.prepend(
|
|
70
|
-
|
|
69
|
+
), s.prepend(n), setTimeout(() => {
|
|
70
|
+
n.classList.add("mt-[0.5rem]");
|
|
71
71
|
}, 10);
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
const p = (e, o, t = {}) => {
|
|
75
|
-
import("
|
|
76
|
-
const
|
|
77
|
-
if (!
|
|
78
|
-
const s = document.createElement("div"),
|
|
79
|
-
|
|
75
|
+
import("react-dom/client").then(({ createRoot: a }) => {
|
|
76
|
+
const r = l(t.position);
|
|
77
|
+
if (!r) return;
|
|
78
|
+
const s = document.createElement("div"), n = a(s), i = () => {
|
|
79
|
+
n.unmount(), r.removeChild(s);
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
n.render(
|
|
82
82
|
/* @__PURE__ */ d.jsx(
|
|
83
83
|
u,
|
|
84
84
|
{
|
|
85
85
|
promise: e,
|
|
86
86
|
messages: o,
|
|
87
87
|
options: t,
|
|
88
|
-
onClose:
|
|
88
|
+
onClose: i
|
|
89
89
|
}
|
|
90
90
|
)
|
|
91
|
-
),
|
|
91
|
+
), r.prepend(s), setTimeout(() => {
|
|
92
92
|
s.classList.add("mt-[0.5rem]");
|
|
93
93
|
}, 10);
|
|
94
94
|
});
|
|
@@ -96,18 +96,18 @@ const p = (e, o, t = {}) => {
|
|
|
96
96
|
let t = () => {
|
|
97
97
|
}, a = () => {
|
|
98
98
|
};
|
|
99
|
-
const
|
|
100
|
-
t = s, a =
|
|
99
|
+
const r = new Promise((s, n) => {
|
|
100
|
+
t = s, a = n;
|
|
101
101
|
});
|
|
102
|
-
return p(
|
|
102
|
+
return p(r, e, o), {
|
|
103
103
|
resolve: t,
|
|
104
104
|
reject: a
|
|
105
105
|
};
|
|
106
106
|
}, y = {
|
|
107
|
-
success: (e, o = {}) =>
|
|
108
|
-
error: (e, o = {}) =>
|
|
109
|
-
warning: (e, o = {}) =>
|
|
110
|
-
info: (e, o = {}) =>
|
|
107
|
+
success: (e, o = {}) => c(e, "success", o),
|
|
108
|
+
error: (e, o = {}) => c(e, "error", o),
|
|
109
|
+
warning: (e, o = {}) => c(e, "warning", o),
|
|
110
|
+
info: (e, o = {}) => c(e, "info", o),
|
|
111
111
|
async: (e, o, t = {}) => p(e, o, t),
|
|
112
112
|
loading: (e, o = {}) => b(e, o)
|
|
113
113
|
};
|
package/package.json
CHANGED
package/dist/_virtual/client.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { __require as c } from "../node_modules/react-dom/client.js";
|
|
2
|
-
function a(t, i) {
|
|
3
|
-
for (var o = 0; o < i.length; o++) {
|
|
4
|
-
const e = i[o];
|
|
5
|
-
if (typeof e != "string" && !Array.isArray(e)) {
|
|
6
|
-
for (const r in e)
|
|
7
|
-
if (r !== "default" && !(r in t)) {
|
|
8
|
-
const n = Object.getOwnPropertyDescriptor(e, r);
|
|
9
|
-
n && Object.defineProperty(t, r, n.get ? n : {
|
|
10
|
-
enumerable: !0,
|
|
11
|
-
get: () => e[r]
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
-
}
|
|
18
|
-
var f = c();
|
|
19
|
-
const l = /* @__PURE__ */ a({
|
|
20
|
-
__proto__: null
|
|
21
|
-
}, [f]);
|
|
22
|
-
export {
|
|
23
|
-
l as c
|
|
24
|
-
};
|
package/dist/_virtual/client2.js
DELETED
package/dist/_virtual/index8.js
DELETED