@gustavo-valsechi/client 1.4.178 → 1.4.179
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/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.mjs +1 -0
- package/dist/src/services/index.d.ts +1 -0
- package/dist/src/services/index.js +23 -0
- package/dist/src/services/index.mjs +2 -0
- package/dist/src/services/toaster.d.ts +9 -0
- package/dist/src/services/toaster.js +57 -0
- package/dist/src/services/toaster.mjs +23 -0
- package/package.json +11 -5
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -20,9 +20,11 @@ var import_styled = require("./styled");
|
|
|
20
20
|
__reExport(index_exports, require("./src/components"), module.exports);
|
|
21
21
|
__reExport(index_exports, require("./src/contexts"), module.exports);
|
|
22
22
|
__reExport(index_exports, require("./src/interfaces"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("./src/services"), module.exports);
|
|
23
24
|
// Annotate the CommonJS export names for ESM import in node:
|
|
24
25
|
0 && (module.exports = {
|
|
25
26
|
...require("./src/components"),
|
|
26
27
|
...require("./src/contexts"),
|
|
27
|
-
...require("./src/interfaces")
|
|
28
|
+
...require("./src/interfaces"),
|
|
29
|
+
...require("./src/services")
|
|
28
30
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./toaster";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from))
|
|
10
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
11
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
}
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
16
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
17
|
+
var services_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(services_exports);
|
|
19
|
+
__reExport(services_exports, require("./toaster"), module.exports);
|
|
20
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
21
|
+
0 && (module.exports = {
|
|
22
|
+
...require("./toaster")
|
|
23
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var toaster_exports = {};
|
|
31
|
+
__export(toaster_exports, {
|
|
32
|
+
Toast: () => Toast
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(toaster_exports);
|
|
35
|
+
var import_react_hot_toast = require("react-hot-toast");
|
|
36
|
+
var import_lodash = __toESM(require("lodash"));
|
|
37
|
+
const _Toast = class _Toast {
|
|
38
|
+
};
|
|
39
|
+
_Toast.set = async (config) => {
|
|
40
|
+
if (!config.type || config.type === "success") _Toast.success(config.message);
|
|
41
|
+
if (config.type === "error") _Toast.error(config.message);
|
|
42
|
+
};
|
|
43
|
+
_Toast.success = (message = "") => {
|
|
44
|
+
return import_react_hot_toast.toast.success(_Toast.buildMessage(message));
|
|
45
|
+
};
|
|
46
|
+
_Toast.error = (message = "") => {
|
|
47
|
+
return import_react_hot_toast.toast.error(_Toast.buildMessage(message));
|
|
48
|
+
};
|
|
49
|
+
_Toast.buildMessage = (message) => {
|
|
50
|
+
if (!!message && !import_lodash.default.isString(message)) return JSON.stringify(message);
|
|
51
|
+
return import_lodash.default.trim(message, ".");
|
|
52
|
+
};
|
|
53
|
+
let Toast = _Toast;
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
Toast
|
|
57
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { toast } from "react-hot-toast";
|
|
3
|
+
import _ from "lodash";
|
|
4
|
+
const _Toast = class _Toast {
|
|
5
|
+
};
|
|
6
|
+
_Toast.set = async (config) => {
|
|
7
|
+
if (!config.type || config.type === "success") _Toast.success(config.message);
|
|
8
|
+
if (config.type === "error") _Toast.error(config.message);
|
|
9
|
+
};
|
|
10
|
+
_Toast.success = (message = "") => {
|
|
11
|
+
return toast.success(_Toast.buildMessage(message));
|
|
12
|
+
};
|
|
13
|
+
_Toast.error = (message = "") => {
|
|
14
|
+
return toast.error(_Toast.buildMessage(message));
|
|
15
|
+
};
|
|
16
|
+
_Toast.buildMessage = (message) => {
|
|
17
|
+
if (!!message && !_.isString(message)) return JSON.stringify(message);
|
|
18
|
+
return _.trim(message, ".");
|
|
19
|
+
};
|
|
20
|
+
let Toast = _Toast;
|
|
21
|
+
export {
|
|
22
|
+
Toast
|
|
23
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gustavo-valsechi/client",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.179",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"@hookform/resolvers": "5.2.2",
|
|
30
30
|
"apexcharts": "3.51.0",
|
|
31
31
|
"lodash": "4.17.21",
|
|
32
|
+
"luhn": "2.4.1",
|
|
32
33
|
"next": "14.2.5",
|
|
33
34
|
"randomcolor": "0.6.2",
|
|
34
35
|
"react-apexcharts": "1.4.1",
|
|
@@ -48,9 +49,9 @@
|
|
|
48
49
|
"@types/react-dom": "18.3.0",
|
|
49
50
|
"@types/react-lottie": "1.2.10",
|
|
50
51
|
"@types/styled-components": "5.1.34",
|
|
51
|
-
"@vitejs/plugin-react": "
|
|
52
|
+
"@vitejs/plugin-react": "5.1.0",
|
|
52
53
|
"esbuild": "0.25.11",
|
|
53
|
-
"esbuild-css-modules-plugin": "
|
|
54
|
+
"esbuild-css-modules-plugin": "3.1.5",
|
|
54
55
|
"raw-loader": "4.0.2",
|
|
55
56
|
"react": "18.3.1",
|
|
56
57
|
"react-dom": "18.3.1",
|
|
@@ -58,8 +59,8 @@
|
|
|
58
59
|
"styled-components": "6.1.12",
|
|
59
60
|
"tsc-alias": "1.8.16",
|
|
60
61
|
"typescript": "5.5.4",
|
|
61
|
-
"vite": "
|
|
62
|
-
"vitest": "
|
|
62
|
+
"vite": "7.2.1",
|
|
63
|
+
"vitest": "4.0.8"
|
|
63
64
|
},
|
|
64
65
|
"publishConfig": {
|
|
65
66
|
"access": "public"
|
|
@@ -84,6 +85,11 @@
|
|
|
84
85
|
"types": "./dist/src/interfaces/index.d.ts",
|
|
85
86
|
"import": "./dist/src/interfaces/index.js",
|
|
86
87
|
"require": "./dist/src/interfaces/index.js"
|
|
88
|
+
},
|
|
89
|
+
"./services": {
|
|
90
|
+
"types": "./dist/src/services/index.d.ts",
|
|
91
|
+
"import": "./dist/src/services/index.js",
|
|
92
|
+
"require": "./dist/src/services/index.js"
|
|
87
93
|
}
|
|
88
94
|
}
|
|
89
95
|
}
|