@m4l/core 2.0.19 → 2.0.20-beta.1
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/commonjs/index.js +12 -0
- package/hooks/usePaginate/index.d.ts +1 -0
- package/hooks/usePaginate/index.js +9 -9
- package/index.d.ts +1 -0
- package/index.js +116 -82
- package/not_recognized/index.js +16173 -500
- package/package.json +1 -1
- package/test/constants.js +72 -0
- package/test/index.d.ts +4 -0
- package/test/index.js +1 -0
- package/test/mocks.js +10 -0
- package/test/types.js +1 -0
- package/test/utils.js +18 -0
- package/utils/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { e as t, f as o, b as e, c as a, d as n } from "./mocks.js";
|
|
2
|
+
const c = "testing", r = "label_for_module_name", l = {
|
|
3
|
+
data: { module_name: r, label1: "testGetLabel1" },
|
|
4
|
+
comp1: { key1: "testcomp1label" }
|
|
5
|
+
}, m = ["priv1"], _ = { data: { priv1: !0 } }, d = {
|
|
6
|
+
data: {
|
|
7
|
+
name: "a",
|
|
8
|
+
company_logo_small_url: "b",
|
|
9
|
+
company_logo_normal_url: "c"
|
|
10
|
+
}
|
|
11
|
+
}, g = {
|
|
12
|
+
id: 1,
|
|
13
|
+
currency: "$",
|
|
14
|
+
currency_decimal_digits: 0,
|
|
15
|
+
decimal_symbol: ".",
|
|
16
|
+
thousands_symbol: ","
|
|
17
|
+
}, u = {
|
|
18
|
+
id: 2,
|
|
19
|
+
currency: "USD",
|
|
20
|
+
currency_decimal_digits: 2,
|
|
21
|
+
decimal_symbol: ",",
|
|
22
|
+
thousands_symbol: "."
|
|
23
|
+
}, p = {
|
|
24
|
+
data: { a: 1, b: "testing" }
|
|
25
|
+
}, y = {
|
|
26
|
+
method: "GET",
|
|
27
|
+
endPoint: "endpoint",
|
|
28
|
+
parms: {}
|
|
29
|
+
}, b = {
|
|
30
|
+
isLocalhost: !0,
|
|
31
|
+
host: "h2",
|
|
32
|
+
domain_token: "1",
|
|
33
|
+
host_api_local: "2",
|
|
34
|
+
host_api_remote: "https://localhost",
|
|
35
|
+
host_static_assets: "4",
|
|
36
|
+
environment_assets: "5",
|
|
37
|
+
isMicroFrontend: !1,
|
|
38
|
+
isIsolatation: !1,
|
|
39
|
+
database: "domain"
|
|
40
|
+
}, h = {
|
|
41
|
+
a: "hellou",
|
|
42
|
+
b: 1
|
|
43
|
+
}, s = () => 0;
|
|
44
|
+
s.info = () => 1;
|
|
45
|
+
s.success = () => 2;
|
|
46
|
+
s.warning = () => 3;
|
|
47
|
+
s.error = () => 4;
|
|
48
|
+
const T = {
|
|
49
|
+
history: {},
|
|
50
|
+
toast: s,
|
|
51
|
+
startProgress: t,
|
|
52
|
+
stopProgress: o,
|
|
53
|
+
events_add_listener: e,
|
|
54
|
+
events_remove_listener: a,
|
|
55
|
+
events_emit: n
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
r as a,
|
|
59
|
+
d as b,
|
|
60
|
+
g as c,
|
|
61
|
+
l as d,
|
|
62
|
+
u as e,
|
|
63
|
+
p as f,
|
|
64
|
+
b as g,
|
|
65
|
+
h,
|
|
66
|
+
s as i,
|
|
67
|
+
T as j,
|
|
68
|
+
c as m,
|
|
69
|
+
y as n,
|
|
70
|
+
m as q,
|
|
71
|
+
_ as r
|
|
72
|
+
};
|
package/test/index.d.ts
ADDED
package/test/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/test/mocks.js
ADDED
package/test/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/test/utils.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { c, l as o, a as s, r as l } from "../not_recognized/index.js";
|
|
2
|
+
import "react";
|
|
3
|
+
beforeEach(() => {
|
|
4
|
+
c(), o.cleanup(), vi.clearAllMocks();
|
|
5
|
+
});
|
|
6
|
+
s(() => {
|
|
7
|
+
});
|
|
8
|
+
const n = (r, a = {}) => l(r, {
|
|
9
|
+
// wrap provider(s) here if needed
|
|
10
|
+
/**
|
|
11
|
+
* wrapper
|
|
12
|
+
*/
|
|
13
|
+
wrapper: ({ children: e }) => e,
|
|
14
|
+
...a
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
n as c
|
|
18
|
+
};
|
package/utils/index.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export { evaluateWithContext } from './evaluateWithContext';
|
|
|
4
4
|
export { getLocalStorage } from './getLocalStorage';
|
|
5
5
|
export { setLocalStorage } from './setLocalStorage';
|
|
6
6
|
export { axiosOperation } from './axiosOperation';
|
|
7
|
+
export type { AxiosOptions } from './axiosOperation/types';
|