@m4l/components 9.44.0 → 9.45.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/ObjectLogs/subcomponents/DetailDialog/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/ObjectLogs/subcomponents/DetailDialog/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAA2B,MAAM,aAAa,CAAC;AAI9E;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,oDAkCpD"}
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as m, useEffect as
|
|
3
|
-
import { useNetwork as
|
|
4
|
-
import { OBJECT_LOGS_M4L_END_POINT as
|
|
5
|
-
import { ReactJsonViewer as
|
|
6
|
-
function
|
|
7
|
-
const { logId:
|
|
8
|
-
return
|
|
9
|
-
let
|
|
10
|
-
return
|
|
1
|
+
import { jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as m, useEffect as f } from "react";
|
|
3
|
+
import { useNetwork as p } from "@m4l/core";
|
|
4
|
+
import { OBJECT_LOGS_M4L_END_POINT as u, OBJECT_LOGS_OTHERS_END_POINT as _ } from "../../constants.js";
|
|
5
|
+
import { ReactJsonViewer as d } from "../../../extended/React-Json-Viewer/ReactJsonViewer.js";
|
|
6
|
+
function N(i) {
|
|
7
|
+
const { logId: o, type: t } = i, { networkOperation: a } = p(), [n, l] = m({});
|
|
8
|
+
return f(() => {
|
|
9
|
+
let r = !0;
|
|
10
|
+
return a({
|
|
11
11
|
method: "GET",
|
|
12
|
-
endPoint: `${
|
|
12
|
+
endPoint: `${t === "m4l" ? u : _}/${o}`
|
|
13
13
|
// data: {
|
|
14
14
|
// ...(createdAt ? { created_at: createdAt } : {}),
|
|
15
15
|
// },
|
|
16
16
|
}).then((e) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
17
|
+
r && l(
|
|
18
|
+
t === "m4l" ? JSON.parse(String(e.data.log_detail)) : e.data.log_detail_new
|
|
19
|
+
);
|
|
21
20
|
}), function() {
|
|
22
|
-
|
|
21
|
+
r = !1;
|
|
23
22
|
};
|
|
24
|
-
}, []), /* @__PURE__ */
|
|
25
|
-
|
|
23
|
+
}, [o, a, t]), /* @__PURE__ */ s(
|
|
24
|
+
d,
|
|
26
25
|
{
|
|
27
|
-
value:
|
|
26
|
+
value: n,
|
|
28
27
|
displayDataTypes: !1,
|
|
29
28
|
quotesOnKeys: !1
|
|
30
29
|
}
|
|
31
30
|
);
|
|
32
31
|
}
|
|
33
32
|
export {
|
|
34
|
-
|
|
33
|
+
N as DetailDialog
|
|
35
34
|
};
|
|
@@ -35,6 +35,21 @@ export interface DetailDialogProps {
|
|
|
35
35
|
type: 'm4l' | 'other';
|
|
36
36
|
logId: number | string;
|
|
37
37
|
}
|
|
38
|
+
/** Detail response returned by the M4L logs endpoint. */
|
|
39
|
+
export interface M4LObjectLogDetailResponse {
|
|
40
|
+
data: {
|
|
41
|
+
log_detail: string;
|
|
42
|
+
log_detail_new?: never;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/** Structured detail response returned by the Guardian logs endpoint. */
|
|
46
|
+
export interface GuardianObjectLogDetailResponse {
|
|
47
|
+
data: {
|
|
48
|
+
log_detail?: never;
|
|
49
|
+
log_detail_new: unknown;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export type ObjectLogDetailResponse = M4LObjectLogDetailResponse | GuardianObjectLogDetailResponse;
|
|
38
53
|
export type ObjectLogsSlotsType = keyof typeof ObjectLogsSlots;
|
|
39
54
|
export type ObjectLogsOwnerState = {};
|
|
40
55
|
export type ObjectLogsStyles = M4LOverridesStyleRules<ObjectLogsSlotsType, typeof OBJECT_LOGS_KEY_COMPONENT, Theme>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/ObjectLogs/types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CACZ;AAGD,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,IAAI,EAAE,KAAK,CAAC;IACZ,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAK3B;AAED,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D,IAAI,EAAE,OAAO,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CAKxB;AAED,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG,oBAAoB,CAAC;AAExE,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAGD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/ObjectLogs/types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CACZ;AAGD,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,IAAI,EAAE,KAAK,CAAC;IACZ,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAK3B;AAED,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D,IAAI,EAAE,OAAO,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CAKxB;AAED,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG,oBAAoB,CAAC;AAExE,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAGD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,yDAAyD;AACzD,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,CAAC,EAAE,KAAK,CAAC;KACxB,CAAC;CACH;AAED,yEAAyE;AACzE,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE;QACJ,UAAU,CAAC,EAAE,KAAK,CAAC;QACnB,cAAc,EAAE,OAAO,CAAC;KACzB,CAAC;CACH;AAED,MAAM,MAAM,uBAAuB,GAC/B,0BAA0B,GAC1B,+BAA+B,CAAC;AAKpC,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,eAAe,CAAC;AAC/D,MAAM,MAAM,oBAAoB,GAAG,EAAE,CAAC;AACtC,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,mBAAmB,EAAE,OAAO,yBAAyB,EAAE,KAAK,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.45.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
"@hookform/resolvers": "2.9.11",
|
|
53
53
|
"nprogress": "0.2.0",
|
|
54
54
|
"react-transition-group": "4.4.5",
|
|
55
|
-
"react-
|
|
56
|
-
"react-dropzone": "14.4.1",
|
|
55
|
+
"react-color": "2.19.3",
|
|
57
56
|
"react-rnd": "10.5.2",
|
|
58
57
|
"@mui/x-date-pickers": "6.20.2",
|
|
59
|
-
"react-
|
|
58
|
+
"react-draggable": "4.5.0",
|
|
60
59
|
"react-spinners": "0.13.8",
|
|
61
|
-
"
|
|
60
|
+
"react-dropzone": "14.4.1",
|
|
62
61
|
"chart.js": "4.5.1",
|
|
63
62
|
"chartjs-chart-error-bars": "4.4.5",
|
|
64
63
|
"qrcode.react": "3.2.0",
|
|
64
|
+
"simplebar-react": "3.2.6",
|
|
65
65
|
"react-resizable-panels": "2.1.9",
|
|
66
66
|
"react-simple-code-editor": "0.14.1",
|
|
67
67
|
"react-data-grid": "7.0.0-beta.47",
|