@cripty2001/utils 0.0.47 → 0.0.49

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.
@@ -71,7 +71,8 @@ class Appserver {
71
71
  return {
72
72
  status: 422,
73
73
  data: {
74
- errors: [...value_1.Value.Errors(inputSchema, unsafeData)]
74
+ errors: [...value_1.Value.Errors(inputSchema, unsafeData)],
75
+ received: unsafeData
75
76
  }
76
77
  };
77
78
  return {
@@ -25,10 +25,48 @@ function LoggerReactDisplay() {
25
25
  }
26
26
  };
27
27
  const relTs = (0, react_whispr_1.useRelTime)();
28
- return ((0, jsx_runtime_1.jsx)("div", { className: "fixed bottom-0 right-0 w-full z-50 p-4 rounded ", children: (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-2 items-center w-full justify-center", children: [...messages]
28
+ return ((0, jsx_runtime_1.jsx)("div", { style: {
29
+ position: 'fixed',
30
+ bottom: 0,
31
+ right: 0,
32
+ width: '100%',
33
+ zIndex: 50,
34
+ padding: '1rem',
35
+ borderRadius: '0.5rem',
36
+ }, children: (0, jsx_runtime_1.jsx)("div", { style: {
37
+ display: 'flex',
38
+ flexDirection: 'column',
39
+ gap: '0.5rem',
40
+ alignItems: 'center',
41
+ width: '100%',
42
+ justifyContent: 'center',
43
+ }, children: [...messages]
29
44
  .reverse()
30
45
  .slice(0, 3)
31
- .map((message) => ((0, jsx_runtime_1.jsxs)("div", { className: `p-2 rounded shadow-md text-white ng-black w-full max-w-prose cursor-pointer`, onClick: message.dismiss, style: {
46
+ .map((message) => ((0, jsx_runtime_1.jsxs)("div", { style: {
47
+ padding: '0.5rem',
48
+ borderRadius: '0.375rem',
49
+ boxShadow: '0 1px 3px rgba(0,0,0,0.2)',
50
+ color: '#fff',
51
+ width: '100%',
52
+ maxWidth: '65ch',
53
+ cursor: 'pointer',
32
54
  backgroundColor: getColor(message.severity)
33
- }, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between items-center", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("strong", { children: ["[", relTs(message.date), "] "] }), message.context && (0, jsx_runtime_1.jsxs)("span", { className: "ml-2", children: [" - ", message.context, " "] })] }), (0, jsx_runtime_1.jsx)("button", { onClick: message.dismiss, className: "ml-4 text-white font-bold", children: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 16 }) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-1", children: [" ", message.message, " "] })] }, message.id))) }) }));
55
+ }, onClick: message.dismiss, children: [(0, jsx_runtime_1.jsxs)("div", { style: {
56
+ display: 'flex',
57
+ justifyContent: 'space-between',
58
+ alignItems: 'center',
59
+ }, children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("strong", { children: ["[", relTs(message.date), "] "] }), message.context && (0, jsx_runtime_1.jsxs)("span", { style: {
60
+ marginLeft: '0.5rem',
61
+ }, children: [" - ", message.context, " "] })] }), (0, jsx_runtime_1.jsx)("button", { onClick: message.dismiss, style: {
62
+ marginLeft: '1rem',
63
+ color: '#fff',
64
+ fontWeight: 'bold',
65
+ background: 'none',
66
+ border: 'none',
67
+ cursor: 'pointer',
68
+ padding: 0,
69
+ }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 16 }) })] }), (0, jsx_runtime_1.jsx)("div", { style: {
70
+ marginTop: '0.25rem',
71
+ }, children: message.message })] }, message.id))) }) }));
34
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cripty2001/utils",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "description": "Internal Set of utils. If you need them use them, otherwise go to the next package ;)",
5
5
  "homepage": "https://github.com/cripty2001/utils#readme",
6
6
  "bugs": {