@grapadigital/shared-app-modules 0.0.178 → 0.0.180
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/chuncks/{format.util.BvK_tzw5.js → format.util.DtTLQR-y.js} +1 -1
- package/dist/chuncks/{use-shared-app-modules.hook.BneFRNyA.js → use-shared-app-modules.hook.jCQwZaT8.js} +1 -1
- package/dist/chuncks/{youtube-icon.component.DNSli53G.js → youtube-icon.component.B-P0SByx.js} +1 -1
- package/dist/commission.d.ts +6 -3
- package/dist/components.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/events.js +1 -1
- package/dist/hooks.d.ts +11 -1
- package/dist/hooks.js +1 -1
- package/dist/utils.js +4 -4
- package/package.json +9 -9
package/dist/chuncks/{youtube-icon.component.DNSli53G.js → youtube-icon.component.B-P0SByx.js}
RENAMED
|
@@ -4,7 +4,7 @@ import * as NA from "react";
|
|
|
4
4
|
import { forwardRef as P, useState as C, useEffect as J } from "react";
|
|
5
5
|
import { P as L, k, l as j, q as $, r as H, s as O, t as EA, F as E, C as RA, b as R, c as D, h as sA } from "./popover.4p4HlZwe.js";
|
|
6
6
|
import "date-fns";
|
|
7
|
-
import { a as W, u as V } from "./use-shared-app-modules.hook.
|
|
7
|
+
import { a as W, u as V } from "./use-shared-app-modules.hook.jCQwZaT8.js";
|
|
8
8
|
import "./shared-app-modules.provider.DRJ7n4Cj.js";
|
|
9
9
|
import { useQuery as Z } from "@tanstack/react-query";
|
|
10
10
|
import "react-hook-form";
|
package/dist/commission.d.ts
CHANGED
|
@@ -5,15 +5,18 @@ export declare interface CommissionInterface {
|
|
|
5
5
|
value: number;
|
|
6
6
|
installmentNumber: number;
|
|
7
7
|
percentage: number;
|
|
8
|
-
status:
|
|
9
|
-
type:
|
|
8
|
+
status: CommissionStatus;
|
|
9
|
+
type: CommissionStatus;
|
|
10
10
|
title: string;
|
|
11
11
|
sale: string;
|
|
12
12
|
paymentDate?: string;
|
|
13
|
+
payment?: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
export declare type
|
|
18
|
+
export declare type CommissionStatus = "pending" | "approved" | "reproved" | "ready" | "paid";
|
|
19
|
+
|
|
20
|
+
export declare type CommissionType = "novo" | "renovacao" | "upsell" | "bonus" | "collaborator";
|
|
18
21
|
|
|
19
22
|
export { }
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as x, V as v, c, $ as C, B as f, aI as z, aJ as I, aK as M, bf as F, ac as H, ad as _, ah as w, ag as L, ae as j, ai as A } from "./chuncks/switch.BF6I8Lqo.js";
|
|
2
|
-
import { r as Ne, s as ve, w as Ce, J as ze, x as Ie, y as Me, F as Te, z as Se, D as Fe, E as He, G as _e, H as Le, q as je, t as Ae, K as De, L as $e, l as Pe, m as Ee, n as Be, o as Re, p as qe, M as Ke, u as Oe, v as Ve, N as Xe, X as Je, Y as Ye } from "./chuncks/youtube-icon.component.
|
|
2
|
+
import { r as Ne, s as ve, w as Ce, J as ze, x as Ie, y as Me, F as Te, z as Se, D as Fe, E as He, G as _e, H as Le, q as je, t as Ae, K as De, L as $e, l as Pe, m as Ee, n as Be, o as Re, p as qe, M as Ke, u as Oe, v as Ve, N as Xe, X as Je, Y as Ye } from "./chuncks/youtube-icon.component.B-P0SByx.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as D } from "react/jsx-runtime";
|
|
4
4
|
import { useState as $, useRef as P, useEffect as E } from "react";
|
|
5
5
|
import { parseISO as k, differenceInCalendarDays as B, format as R } from "date-fns";
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, B as S, C as n, I as T, b as O, P as L, a as N, c, S as I, T as P } from "./chuncks/youtube-icon.component.
|
|
1
|
+
import { A as s, B as S, C as n, I as T, b as O, P as L, a as N, c, S as I, T as P } from "./chuncks/youtube-icon.component.B-P0SByx.js";
|
|
2
2
|
const o = "Não há dados para atualizar.", a = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", E = "Nenhum dado novo foi informado para realizar a operação. Por favor, atualize os campos antes de tentar novamente.", _ = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", e = "Há um erro na validação dos campos. Por favor, entre em contato com o suporte.", A = "Campo obrigatório.";
|
|
3
3
|
export {
|
|
4
4
|
s as ACTION_TYPE_VALUES,
|
package/dist/events.js
CHANGED
package/dist/hooks.d.ts
CHANGED
|
@@ -10,7 +10,17 @@ declare interface SharedAppModulesContextData {
|
|
|
10
10
|
environments: Environments;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Hook para debounce de valores.
|
|
15
|
+
*
|
|
16
|
+
* Retorna um valor debounced que é atualizado somente após um delay especificado
|
|
17
|
+
* desde a última vez que o valor de entrada foi alterado.
|
|
18
|
+
*
|
|
19
|
+
* @param value Valor a ser debounced.
|
|
20
|
+
* @param delay Tempo de espera em milissegundos. Padrão: 500ms.
|
|
21
|
+
* @returns Valor debounced.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useDebounce<T>(value: T, delay?: number): T;
|
|
14
24
|
|
|
15
25
|
export declare function useSharedAppModules(): SharedAppModulesContextData;
|
|
16
26
|
|
package/dist/hooks.js
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as a } from "./chuncks/format.util.
|
|
2
|
-
import { g as C, h as E, f as L, a as P, d as _, m as b, c as l, e as v, p as y, b as k, u as D } from "./chuncks/format.util.
|
|
3
|
-
import { d as s } from "./chuncks/youtube-icon.component.
|
|
4
|
-
import { g as U, f as h, j as N, i as q, k as x, h as F, e as O } from "./chuncks/youtube-icon.component.
|
|
1
|
+
import { U as a } from "./chuncks/format.util.DtTLQR-y.js";
|
|
2
|
+
import { g as C, h as E, f as L, a as P, d as _, m as b, c as l, e as v, p as y, b as k, u as D } from "./chuncks/format.util.DtTLQR-y.js";
|
|
3
|
+
import { d as s } from "./chuncks/youtube-icon.component.B-P0SByx.js";
|
|
4
|
+
import { g as U, f as h, j as N, i as q, k as x, h as F, e as O } from "./chuncks/youtube-icon.component.B-P0SByx.js";
|
|
5
5
|
const o = (e) => e ? `${e} é obrigatório.` : "Campo obrigatório.", t = (e, r) => r ? `${r} deve ter no mínimo ${e} caracteres.` : `Deve ter no mínimo ${e} caracteres.`, n = (e, r) => r ? `${r} deve ter no máximo ${e} caracteres.` : `Deve ter no máximo ${e} caracteres.`, m = (e, r) => r ? `${r} não pode ser menor que ${e}.` : `Não pode ser menor que ${e}.`, i = (e, r) => r ? `${r} não pode ser maior que ${e}.` : `Não pode ser maior que ${e}.`, c = (e) => e ? `${e} inválido.` : "Valor inválido.", u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
6
|
__proto__: null,
|
|
7
7
|
invalidMessage: c,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grapadigital/shared-app-modules",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.180",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
@@ -120,13 +120,6 @@
|
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"type": "module",
|
|
123
|
-
"scripts": {
|
|
124
|
-
"dev": "vite",
|
|
125
|
-
"build": "rm -rf dist && tsc -b && vite build",
|
|
126
|
-
"lint": "eslint .",
|
|
127
|
-
"preview": "vite preview",
|
|
128
|
-
"lib:publish": "pnpm build && pnpm publish --no-git-checks"
|
|
129
|
-
},
|
|
130
123
|
"peerDependencies": {
|
|
131
124
|
"react": "^18.3.1",
|
|
132
125
|
"react-dom": "^18.3.1"
|
|
@@ -182,5 +175,12 @@
|
|
|
182
175
|
"vite": "^7.2.4",
|
|
183
176
|
"vite-plugin-dts": "^4.5.4",
|
|
184
177
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
178
|
+
},
|
|
179
|
+
"scripts": {
|
|
180
|
+
"dev": "vite",
|
|
181
|
+
"build": "rm -rf dist && tsc -b && vite build",
|
|
182
|
+
"lint": "eslint .",
|
|
183
|
+
"preview": "vite preview",
|
|
184
|
+
"lib:publish": "pnpm build && pnpm publish --no-git-checks"
|
|
185
185
|
}
|
|
186
|
-
}
|
|
186
|
+
}
|