@grapadigital/shared-app-modules 0.0.164 → 0.0.166

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.
@@ -773,6 +773,7 @@ declare interface Rights {
773
773
  declare interface SaleInterface {
774
774
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
775
775
  _id: string;
776
+ organization?: string;
776
777
  title: string;
777
778
  pipefyId: string;
778
779
  screening?: ScreeningInterface;
@@ -1,5 +1,5 @@
1
1
  import { a as b, V as N, c, $ as v, B as S, aI as C, aJ as I, aK as z, ac as H, ad as T, ah as y, ag as _, ae as j, ai as A } from "./chuncks/switch.BuckOH_X.js";
2
- import { n as ge, o as xe, s as be, D as me, t as he, u as fe, F as ue, v as pe, w as ye, x as we, y as ke, z as Ne, m as ve, p as Ce, E as Ie, L as ze, g as Fe, h as Me, j as Se, k as He, l as Te, G as _e, q as je, r as Ae, H as Le, X as Pe, Y as $e } from "./chuncks/youtube-icon.component.DScbZg9o.js";
2
+ import { p as ge, q as xe, u as be, G as me, v as he, w as fe, F as ue, x as pe, y as ye, z as we, D as ke, E as Ne, o as ve, r as Ce, H as Ie, L as ze, j as Fe, k as Me, l as Se, m as He, n as Te, J as _e, s as je, t as Ae, K as Le, X as Pe, Y as $e } from "./chuncks/youtube-icon.component.CHZjR-2u.js";
3
3
  import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
4
4
  import "react";
5
5
  import { parseISO as w, differenceInCalendarDays as P, format as $ } from "date-fns";
@@ -26,13 +26,13 @@ const V = [
26
26
  ["path", { d: "M16 13H8", key: "t4e002" }],
27
27
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
28
28
  ], E = b("file-text", V);
29
- const X = [
29
+ const J = [
30
30
  ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
31
31
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
32
32
  ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
33
33
  ["path", { d: "M8 16H3v5", key: "1cv678" }]
34
- ], Y = b("refresh-cw", X);
35
- const G = [
34
+ ], K = b("refresh-cw", J);
35
+ const X = [
36
36
  [
37
37
  "path",
38
38
  {
@@ -42,9 +42,9 @@ const G = [
42
42
  ],
43
43
  ["path", { d: "M12 9v4", key: "juzpu7" }],
44
44
  ["path", { d: "M12 17h.01", key: "p32p05" }]
45
- ], J = b("triangle-alert", G);
45
+ ], Y = b("triangle-alert", X);
46
46
  function te({
47
- icon: a = J,
47
+ icon: a = Y,
48
48
  title: t,
49
49
  description: l,
50
50
  onRetry: n,
@@ -57,7 +57,7 @@ function te({
57
57
  /* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: t }),
58
58
  /* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: l }),
59
59
  n && /* @__PURE__ */ o(S, { onClick: n, variant: "outline", className: "mt-6", children: [
60
- /* @__PURE__ */ e(Y, {}),
60
+ /* @__PURE__ */ e(K, {}),
61
61
  "Tentar novamente"
62
62
  ] }),
63
63
  i && /* @__PURE__ */ e("div", { className: "bg-destructive/5 border-destructive/20 mt-6 rounded-lg border border-dashed px-4 py-2", children: /* @__PURE__ */ e("p", { className: "text-muted-foreground text-xs", children: i }) })
@@ -79,7 +79,7 @@ function ae({
79
79
  /* @__PURE__ */ e(z, { align: t, className: n, children: a })
80
80
  ] }) });
81
81
  }
82
- const K = {
82
+ const G = {
83
83
  red: { bg: "bg-red-50", text: "text-red-600" },
84
84
  orange: { bg: "bg-orange-50", text: "text-orange-600" },
85
85
  amber: { bg: "bg-amber-50", text: "text-amber-600" },
@@ -140,7 +140,7 @@ function re({
140
140
  icon: n,
141
141
  filled: i
142
142
  }) {
143
- const r = i ? O[t] : K[t], s = a ? k[a] : k.md;
143
+ const r = i ? O[t] : G[t], s = a ? k[a] : k.md;
144
144
  return /* @__PURE__ */ e("div", { className: c("w-fit p-2 rounded-lg", r?.bg, l), children: /* @__PURE__ */ e(n, { className: c(s, r?.text) }) });
145
145
  }
146
146
  function le({ className: a, ...t }) {
@@ -28,6 +28,14 @@ export declare const ERROR_MESSAGE = "N\u00E3o foi poss\u00EDvel concluir a oper
28
28
  */
29
29
  export declare const FILTER_ALREADY_APPLIED_MESSAGE = "O filtro selecionado j\u00E1 est\u00E1 ativo. Por favor, escolha outro filtro antes de tentar novamente.";
30
30
 
31
+ export declare const INFLUENCER_BROADCAST_METHOD_VALUES: {
32
+ transfer: string;
33
+ client: string;
34
+ direct: string;
35
+ debit_note: string;
36
+ undefined: string;
37
+ };
38
+
31
39
  declare function InstagramIcon({ size, color, ...props }: LucideProps): JSX.Element;
32
40
 
33
41
  declare function LinkedInIcon({ size, color, ...props }: LucideProps): JSX.Element;
package/dist/constants.js CHANGED
@@ -1,18 +1,19 @@
1
- import { A as s, B as n, C as S, P as T, a as O, b as L, S as N, T as c } from "./chuncks/youtube-icon.component.DScbZg9o.js";
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.", e = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", t = "Há um erro na validação dos campos. Por favor, entre em contato com o suporte.", _ = "Campo obrigatório.";
1
+ import { A as s, B as S, C as n, I as T, P as O, a as L, b as N, S as c, T as I } from "./chuncks/youtube-icon.component.CHZjR-2u.js";
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.", e = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", _ = "Há um erro na validação dos campos. Por favor, entre em contato com o suporte.", t = "Campo obrigatório.";
3
3
  export {
4
4
  s as ACTION_TYPE_VALUES,
5
- n as BUSINESS_UNIT_VALUES,
6
- S as CLIENT_TYPE_VALUES,
5
+ S as BUSINESS_UNIT_VALUES,
6
+ n as CLIENT_TYPE_VALUES,
7
7
  e as ERROR_MESSAGE,
8
8
  a as FILTER_ALREADY_APPLIED_MESSAGE,
9
+ T as INFLUENCER_BROADCAST_METHOD_VALUES,
9
10
  o as NO_DATA_TO_UPDATE,
10
11
  E as NO_DATA_TO_UPDATE_MESSAGE,
11
- T as PAYMENT_TYPE_VALUES,
12
- _ as REQUIRED_FIELD_MESSAGE,
13
- O as SOCIAL_NETWORK_COLOR_VALUES,
14
- L as SOCIAL_NETWORK_ICON_COMPONENTS,
15
- N as SOCIAL_NETWORK_VALUES,
16
- c as TYPE_SALE_VALUES,
17
- t as VALIDATION_ERROR_MESSAGE
12
+ O as PAYMENT_TYPE_VALUES,
13
+ t as REQUIRED_FIELD_MESSAGE,
14
+ L as SOCIAL_NETWORK_COLOR_VALUES,
15
+ N as SOCIAL_NETWORK_ICON_COMPONENTS,
16
+ c as SOCIAL_NETWORK_VALUES,
17
+ I as TYPE_SALE_VALUES,
18
+ _ as VALIDATION_ERROR_MESSAGE
18
19
  };
package/dist/content.d.ts CHANGED
@@ -511,6 +511,7 @@ declare interface Rights {
511
511
  declare interface SaleInterface {
512
512
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
513
513
  _id: string;
514
+ organization?: string;
514
515
  title: string;
515
516
  pipefyId: string;
516
517
  screening?: ScreeningInterface;
package/dist/events.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as o } from "./chuncks/format.util.DmewuK-i.js";
1
+ import { b as o } from "./chuncks/format.util.Bgy0yStH.js";
2
2
  const i = (t, a) => {
3
3
  const e = t.target.value, n = o(e);
4
4
  n !== !1 && a(n);
package/dist/invoice.d.ts CHANGED
@@ -511,6 +511,7 @@ declare interface Rights {
511
511
  declare interface SaleInterface {
512
512
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
513
513
  _id: string;
514
+ organization?: string;
514
515
  title: string;
515
516
  pipefyId: string;
516
517
  screening?: ScreeningInterface;
package/dist/payment.d.ts CHANGED
@@ -511,6 +511,7 @@ declare interface Rights {
511
511
  declare interface SaleInterface {
512
512
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
513
513
  _id: string;
514
+ organization?: string;
514
515
  title: string;
515
516
  pipefyId: string;
516
517
  screening?: ScreeningInterface;
@@ -511,6 +511,7 @@ export declare interface Rights {
511
511
  declare interface SaleInterface {
512
512
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
513
513
  _id: string;
514
+ organization?: string;
514
515
  title: string;
515
516
  pipefyId: string;
516
517
  screening?: ScreeningInterface;
package/dist/sale.d.ts CHANGED
@@ -511,6 +511,7 @@ declare interface Rights {
511
511
  export declare interface SaleInterface {
512
512
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
513
513
  _id: string;
514
+ organization?: string;
514
515
  title: string;
515
516
  pipefyId: string;
516
517
  screening?: ScreeningInterface;
package/dist/utils.d.ts CHANGED
@@ -68,6 +68,14 @@ export declare function formatCurrency(value: number): string;
68
68
  */
69
69
  export declare const formatPercentage: (value: string | number) => string;
70
70
 
71
+ declare const INFLUENCER_BROADCAST_METHOD_VALUES: {
72
+ transfer: string;
73
+ client: string;
74
+ direct: string;
75
+ debit_note: string;
76
+ undefined: string;
77
+ };
78
+
71
79
  /**
72
80
  * Gera uma mensagem de erro genérica para campos inválidos.
73
81
  *
@@ -88,7 +96,8 @@ declare namespace IS_MODULES {
88
96
  isSocialNetwork,
89
97
  isClientType,
90
98
  isBusinessUnit,
91
- isPaymentType
99
+ isPaymentType,
100
+ isInfluencerBroadcastMethod
92
101
  }
93
102
  }
94
103
 
@@ -96,6 +105,8 @@ export declare function isBusinessUnit(value?: string): value is keyof typeof BU
96
105
 
97
106
  export declare function isClientType(value?: string): value is keyof typeof CLIENT_TYPE_VALUES;
98
107
 
108
+ export declare function isInfluencerBroadcastMethod(value?: string): value is keyof typeof INFLUENCER_BROADCAST_METHOD_VALUES;
109
+
99
110
  /**
100
111
  * Verifica se o valor fornecido é um número ou uma string que pode ser convertida para número.
101
112
  *
package/dist/utils.js CHANGED
@@ -1,7 +1,7 @@
1
- import { U as o } from "./chuncks/format.util.DmewuK-i.js";
2
- import { g as C, h as E, f as L, a as _, d as b, m as v, c as l, e as y, p as D, b as I, u as P } from "./chuncks/format.util.DmewuK-i.js";
3
- import { I as a } from "./chuncks/youtube-icon.component.DScbZg9o.js";
4
- import { e as k, d as N, i as q, f as x, c as F } from "./chuncks/youtube-icon.component.DScbZg9o.js";
1
+ import { U as o } from "./chuncks/format.util.Bgy0yStH.js";
2
+ import { g as C, h as E, f as L, a as _, d as b, m as l, c as v, e as y, p as D, b as I, u as P } from "./chuncks/format.util.Bgy0yStH.js";
3
+ import { c as a } from "./chuncks/youtube-icon.component.CHZjR-2u.js";
4
+ import { f as k, e as N, h, i as q, g as x, d as F } from "./chuncks/youtube-icon.component.CHZjR-2u.js";
5
5
  const s = (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,
@@ -22,12 +22,13 @@ export {
22
22
  c as invalidMessage,
23
23
  k as isBusinessUnit,
24
24
  N as isClientType,
25
+ h as isInfluencerBroadcastMethod,
25
26
  q as isNumber,
26
27
  x as isPaymentType,
27
28
  F as isSocialNetwork,
28
29
  b as maskCNPJ,
29
- v as maskCPF,
30
- l as maskRG,
30
+ l as maskCPF,
31
+ v as maskRG,
31
32
  y as maskZipCode,
32
33
  n as maxLengthMessage,
33
34
  i as maxValueMessage,
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.164",
4
+ "version": "0.0.166",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
@@ -120,6 +120,13 @@
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
+ },
123
130
  "peerDependencies": {
124
131
  "react": "^18.3.1",
125
132
  "react-dom": "^18.3.1"
@@ -175,12 +182,5 @@
175
182
  "vite": "^7.2.4",
176
183
  "vite-plugin-dts": "^4.5.4",
177
184
  "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
+ }