@grapadigital/shared-app-modules 0.0.214 → 0.0.216

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.
@@ -93,7 +93,7 @@ declare interface Approval {
93
93
  approvedAt: string;
94
94
  }
95
95
 
96
- export declare function AsyncBoundary({ suspenseFallback: SuspenseFallback, errorFallback: ErrorFallback, children, }: AsyncBoundaryProps): JSX.Element;
96
+ export declare function AsyncBoundary({ suspenseFallback: SuspenseFallback, errorFallback, children, }: AsyncBoundaryProps): JSX.Element;
97
97
 
98
98
  declare interface AsyncBoundaryProps extends React.PropsWithChildren {
99
99
  suspenseFallback?: React.ComponentType;
@@ -274,6 +274,15 @@ declare interface DeliveryScope {
274
274
  twitter?: number | null;
275
275
  }
276
276
 
277
+ declare interface ErrorBoundaryProps extends React.PropsWithChildren {
278
+ errorFallback?: React.ComponentType<{
279
+ error?: Error | unknown;
280
+ onRetry?: () => void;
281
+ }>;
282
+ }
283
+
284
+ export declare function ErrorBundary({ errorFallback: ErrorFallback, children, }: ErrorBoundaryProps): JSX.Element;
285
+
277
286
  export declare function ErrorCard({ icon: Icon, title, description, onRetry, tip, className, ...props }: ErrorCardProps): JSX.Element;
278
287
 
279
288
  declare interface ErrorCardProps extends React.ComponentProps<typeof Card> {
@@ -1,9 +1,9 @@
1
- import { aZ as v, c as u, B as N, a_ as z, aq as M, ar as T, as as R, w as O, F as $, W as j, X as q, $ as C, _ as B, Y as P, a0 as U } from "./chuncks/switch.D_38xWg-.js";
2
- import { M as K, s as W } from "./chuncks/youtube-icon.component.DJUDonHx.js";
3
- import { t as We, K as Xe, L as Ge, G as Qe, X as Ve, a3 as Ye, Y as Ze, Z as Je, H as et, _ as tt, a4 as nt, $ as at, a0 as rt, a1 as st, a2 as it, J as ot, O as lt, a5 as dt, a6 as ct, ab as gt, u as ut, w as pt, x as xt, y as mt, z as bt, a7 as ht, Q as ft, W as yt, U as wt, a8 as vt, a9 as kt, aa as Nt, ad as Ct, ac as St } from "./chuncks/youtube-icon.component.DJUDonHx.js";
1
+ import { aZ as v, c as u, B as N, a_ as z, aq as M, ar as T, as as R, w as O, F as B, W as $, X as j, $ as C, _ as q, Y as P, a0 as U } from "./chuncks/switch.D_38xWg-.js";
2
+ import { M as K, s as W } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
3
+ import { t as We, L as Xe, O as Ge, u as Qe, H as Ve, Y as Ye, a4 as Ze, Z as Je, _ as et, J as tt, $ as nt, a5 as at, a0 as rt, a1 as st, a2 as it, a3 as ot, K as lt, Q as dt, a6 as ct, a7 as gt, ac as ut, w as pt, x as xt, y as mt, z as bt, G as ht, a8 as ft, U as yt, X as wt, W as vt, a9 as kt, aa as Nt, ab as Ct, ae as St, ad as It } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
4
4
  import { jsxs as g, jsx as e, Fragment as A } from "react/jsx-runtime";
5
- import S, { useState as F, useRef as D, useEffect as H, useMemo as X } from "react";
6
- import { B as L, m as G, T as Q, k as V, l as Y, S as k } from "./chuncks/badge.tZcF7uIJ.js";
5
+ import S, { useState as F, useRef as D, useEffect as E, useMemo as X } from "react";
6
+ import { B as H, m as G, T as Q, k as V, l as Y, S as k } from "./chuncks/badge.tZcF7uIJ.js";
7
7
  import { parseISO as I, differenceInCalendarDays as Z, format as J } from "date-fns";
8
8
  import { u as ee, a as te } from "./chuncks/use-shared-app-modules.hook.uZhjsTQ0.js";
9
9
  import "./chuncks/shared-app-modules.provider.DRJ7n4Cj.js";
@@ -120,7 +120,7 @@ function Ae({
120
120
  ]
121
121
  }
122
122
  ),
123
- i.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: i.map((l, h) => /* @__PURE__ */ g(L, { children: [
123
+ i.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: i.map((l, h) => /* @__PURE__ */ g(H, { children: [
124
124
  /* @__PURE__ */ e(
125
125
  "button",
126
126
  {
@@ -218,10 +218,10 @@ function De({
218
218
  const n = i ? me[t] : xe[t], o = a ? _[a] : _.md;
219
219
  return /* @__PURE__ */ e("div", { className: u("w-fit p-2 rounded-lg", n?.bg, r), children: /* @__PURE__ */ e(s, { className: u(o, n?.text) }) });
220
220
  }
221
- function He({ className: a, ...t }) {
221
+ function Ee({ className: a, ...t }) {
222
222
  return /* @__PURE__ */ e("div", { className: u("divide-y", a), ...t });
223
223
  }
224
- function Le({
224
+ function He({
225
225
  label: a,
226
226
  value: t,
227
227
  tooltip: r,
@@ -285,7 +285,7 @@ function Le({
285
285
  )
286
286
  ] }) });
287
287
  }
288
- function Ee({
288
+ function Le({
289
289
  icon: a = ge,
290
290
  title: t,
291
291
  description: r,
@@ -293,7 +293,7 @@ function Ee({
293
293
  className: i,
294
294
  ...n
295
295
  }) {
296
- return /* @__PURE__ */ e(O, { className: u(i), ...n, children: /* @__PURE__ */ g($, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
296
+ return /* @__PURE__ */ e(O, { className: u(i), ...n, children: /* @__PURE__ */ g(B, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
297
297
  /* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(
298
298
  a,
299
299
  {
@@ -311,7 +311,7 @@ function Oe({
311
311
  icon: t = oe
312
312
  }) {
313
313
  const [r, s] = F(!1), i = D(null);
314
- return H(() => {
314
+ return E(() => {
315
315
  if (!r) return;
316
316
  const n = (d) => {
317
317
  i.current?.contains(d.target) || s(!1);
@@ -374,17 +374,17 @@ function Oe({
374
374
  }
375
375
  ) });
376
376
  }
377
- function $e({
377
+ function Be({
378
378
  columns: a = 9,
379
379
  rows: t = 20,
380
380
  hasActions: r = !1,
381
381
  actionsCount: s = 1
382
382
  }) {
383
- return /* @__PURE__ */ g(j, { children: [
384
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(C, { children: Array.from({ length: a }).map((i, n) => {
383
+ return /* @__PURE__ */ g($, { children: [
384
+ /* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(C, { children: Array.from({ length: a }).map((i, n) => {
385
385
  const o = r && n === a - 1;
386
386
  return /* @__PURE__ */ e(
387
- B,
387
+ q,
388
388
  {
389
389
  className: o ? "w-0 text-right" : "",
390
390
  children: /* @__PURE__ */ e(
@@ -403,15 +403,15 @@ function $e({
403
403
  }) }, n)) })
404
404
  ] });
405
405
  }
406
- const be = "@[__display__](__id__)", E = /@\[([^\]]+)\]\(([^)]+)\)/g;
406
+ const be = "@[__display__](__id__)", L = /@\[([^\]]+)\]\(([^)]+)\)/g;
407
407
  function he(a) {
408
- const t = [], r = new RegExp(E);
408
+ const t = [], r = new RegExp(L);
409
409
  let s;
410
410
  for (; (s = r.exec(a)) !== null; )
411
411
  t.push({ display: s[1], id: s[2] });
412
412
  return t;
413
413
  }
414
- function je(a) {
414
+ function $e(a) {
415
415
  return he(a).map((t) => ({
416
416
  userId: t.id,
417
417
  username: t.display
@@ -488,7 +488,7 @@ const ye = {
488
488
  borderRadius: 4,
489
489
  padding: "1px 2px"
490
490
  };
491
- function qe({
491
+ function je({
492
492
  value: a,
493
493
  onChange: t,
494
494
  onBlur: r,
@@ -501,7 +501,7 @@ function qe({
501
501
  () => m?.map((c) => ({ id: c._id, display: c.username })) ?? [],
502
502
  [m]
503
503
  );
504
- return H(() => {
504
+ return E(() => {
505
505
  y.current?.(f);
506
506
  }, [f]), /* @__PURE__ */ e(
507
507
  K,
@@ -530,14 +530,14 @@ function qe({
530
530
  }
531
531
  );
532
532
  }
533
- function Be({ text: a, className: t }) {
534
- const r = new RegExp(E), s = [];
533
+ function qe({ text: a, className: t }) {
534
+ const r = new RegExp(L), s = [];
535
535
  let i = 0, n, o = 0;
536
536
  for (; (n = r.exec(a)) !== null; )
537
537
  n.index > i && s.push(
538
538
  /* @__PURE__ */ e("span", { children: a.slice(i, n.index) }, o++)
539
539
  ), s.push(
540
- /* @__PURE__ */ g(L, { variant: "secondary", className: t, children: [
540
+ /* @__PURE__ */ g(H, { variant: "secondary", className: t, children: [
541
541
  "@",
542
542
  n[1]
543
543
  ] }, o++)
@@ -572,47 +572,48 @@ export {
572
572
  Ae as AttachmentInput,
573
573
  Xe as CampaignsSelectInput,
574
574
  Ge as ClientSelectInput,
575
- Qe as ErrorCard,
576
- Ve as FieldCalendar,
577
- Ye as FieldCheckbox,
578
- Ze as FieldClientSelectInput,
579
- Je as FieldInput,
580
- et as FieldLabelWithAsterisk,
581
- tt as FieldProfileSelectInput,
582
- nt as FieldResponsibleSelectInput,
583
- at as FieldSaleSelectInput,
584
- rt as FieldSelect,
585
- st as FieldSwitch,
586
- it as FieldTextarea,
575
+ Qe as ErrorBundary,
576
+ Ve as ErrorCard,
577
+ Ye as FieldCalendar,
578
+ Ze as FieldCheckbox,
579
+ Je as FieldClientSelectInput,
580
+ et as FieldInput,
581
+ tt as FieldLabelWithAsterisk,
582
+ nt as FieldProfileSelectInput,
583
+ at as FieldResponsibleSelectInput,
584
+ rt as FieldSaleSelectInput,
585
+ st as FieldSelect,
586
+ it as FieldSwitch,
587
+ ot as FieldTextarea,
587
588
  Fe as HoverContent,
588
589
  De as IconBadge,
589
- ot as Image,
590
- lt as InfluencerSelectInput,
591
- dt as InstagramIcon,
592
- ct as LinkedInIcon,
593
- He as List,
594
- Le as ListRow,
595
- qe as MentionInput,
596
- Be as MentionText,
597
- gt as ModuleTags,
598
- Ee as NotFoundCard,
599
- ut as PageHeader,
600
- pt as PageHeaderActions,
601
- xt as PageHeaderContent,
602
- mt as PageHeaderDescription,
603
- bt as PageHeaderTitle,
604
- ht as PinterestIcon,
605
- ft as ProfileSelectInput,
606
- yt as ResponsibleSelectInput,
607
- wt as SaleSelectInput,
590
+ lt as Image,
591
+ dt as InfluencerSelectInput,
592
+ ct as InstagramIcon,
593
+ gt as LinkedInIcon,
594
+ Ee as List,
595
+ He as ListRow,
596
+ je as MentionInput,
597
+ qe as MentionText,
598
+ ut as ModuleTags,
599
+ Le as NotFoundCard,
600
+ pt as PageHeader,
601
+ xt as PageHeaderActions,
602
+ mt as PageHeaderContent,
603
+ bt as PageHeaderDescription,
604
+ ht as PageHeaderTitle,
605
+ ft as PinterestIcon,
606
+ yt as ProfileSelectInput,
607
+ wt as ResponsibleSelectInput,
608
+ vt as SaleSelectInput,
608
609
  Oe as SpeedDialButton,
609
- $e as TableSkeleton,
610
- vt as TikTokIcon,
610
+ Be as TableSkeleton,
611
+ kt as TikTokIcon,
611
612
  Pe as TwitterIcon,
612
- kt as XIcon,
613
- Nt as YoutubeIcon,
614
- je as getMentionedUsers,
613
+ Nt as XIcon,
614
+ Ct as YoutubeIcon,
615
+ $e as getMentionedUsers,
615
616
  he as parseMentions,
616
- Ct as useGetTags,
617
- St as useModuleTags
617
+ St as useGetTags,
618
+ It as useModuleTags
618
619
  };
@@ -22,6 +22,7 @@ export declare const banks: {
22
22
  export declare const BUSINESS_UNIT_VALUES: {
23
23
  readonly service: "Atendimento";
24
24
  readonly comercial: "Comercial";
25
+ readonly artistic: "Agenciamento Artístico";
25
26
  readonly squad_a: "Squad A";
26
27
  readonly squad_b: "Squad B";
27
28
  };
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as n, A as m, B as S, C as A, D as c, E as N, F as E, I as g, N as l, a as _, d as p, P as B, R as r, c as s, e as i, S as t, T, V as I } from "./chuncks/youtube-icon.component.DJUDonHx.js";
1
+ import { b as n, A as m, B as S, C as A, D as c, E as N, F as E, I as g, N as l, a as _, d as p, P as B, R as r, c as s, e as i, S as t, T, V as I } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
2
2
  const o = [
3
3
  {
4
4
  compe: "001",
@@ -50,25 +50,27 @@ export declare const businessUnitDict: {
50
50
  data: {
51
51
  readonly service: "Atendimento";
52
52
  readonly comercial: "Comercial";
53
+ readonly artistic: "Agenciamento Artístico";
53
54
  readonly squad_a: "Squad A";
54
55
  readonly squad_b: "Squad B";
55
56
  };
56
- values: ("service" | "comercial" | "squad_a" | "squad_b")[];
57
- labels: ("Atendimento" | "Comercial" | "Squad A" | "Squad B")[];
57
+ values: ("service" | "comercial" | "artistic" | "squad_a" | "squad_b")[];
58
+ labels: ("Atendimento" | "Comercial" | "Agenciamento Artístico" | "Squad A" | "Squad B")[];
58
59
  getLabel: {
59
- <K extends "service" | "comercial" | "squad_a" | "squad_b">(value: K): {
60
+ <K extends "service" | "comercial" | "artistic" | "squad_a" | "squad_b">(value: K): {
60
61
  readonly service: "Atendimento";
61
62
  readonly comercial: "Comercial";
63
+ readonly artistic: "Agenciamento Artístico";
62
64
  readonly squad_a: "Squad A";
63
65
  readonly squad_b: "Squad B";
64
66
  }[K];
65
- (value?: string | number | symbol | null): "Atendimento" | "Comercial" | "Squad A" | "Squad B" | null;
67
+ (value?: string | number | symbol | null): "Atendimento" | "Comercial" | "Agenciamento Artístico" | "Squad A" | "Squad B" | null;
66
68
  };
67
69
  options: {
68
- value: "service" | "comercial" | "squad_a" | "squad_b";
69
- label: "Atendimento" | "Comercial" | "Squad A" | "Squad B";
70
+ value: "service" | "comercial" | "artistic" | "squad_a" | "squad_b";
71
+ label: "Atendimento" | "Comercial" | "Agenciamento Artístico" | "Squad A" | "Squad B";
70
72
  }[];
71
- is(value?: string | number | symbol | null): value is "service" | "comercial" | "squad_a" | "squad_b";
73
+ is(value?: string | number | symbol | null): value is "service" | "comercial" | "artistic" | "squad_a" | "squad_b";
72
74
  };
73
75
 
74
76
  export declare const clientTypeDict: {
@@ -1,5 +1,5 @@
1
1
  import "./chuncks/switch.D_38xWg-.js";
2
- import { ah as D, ag as m, ae as n, ai as l, an as y, ak as h, aj as k, am as P, ap as T, ao as f, af as g, al as u } from "./chuncks/youtube-icon.component.DJUDonHx.js";
2
+ import { ai as D, ah as m, af as n, aj as l, ao as y, al as h, ak as k, an as P, aq as T, ap as f, ag as g, am as u } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "@tanstack/react-query";
package/dist/events.js CHANGED
@@ -1,4 +1,4 @@
1
- import { p as o } from "./chuncks/format.util.ZogZZ58E.js";
1
+ import { p as o } from "./chuncks/format.util.BUmWGiJF.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/utils.d.ts CHANGED
@@ -9,6 +9,7 @@ declare const ACTION_STATUS_VALUES: {
9
9
  declare const BUSINESS_UNIT_VALUES: {
10
10
  readonly service: "Atendimento";
11
11
  readonly comercial: "Comercial";
12
+ readonly artistic: "Agenciamento Artístico";
12
13
  readonly squad_a: "Squad A";
13
14
  readonly squad_b: "Squad B";
14
15
  };
package/dist/utils.js CHANGED
@@ -1,7 +1,7 @@
1
- import { U as o } from "./chuncks/format.util.ZogZZ58E.js";
2
- import { g as D, h as E, f as L, b, d as h, m as k, c as C, e as _, a as I, p as U, u as O } from "./chuncks/format.util.ZogZZ58E.js";
3
- import { f as n } from "./chuncks/youtube-icon.component.DJUDonHx.js";
4
- import { r as N, p as x, n as A, j as F, h as T, l as j, i as w, m as G, k as V, g as z, o as B, q as R, v as J } from "./chuncks/youtube-icon.component.DJUDonHx.js";
1
+ import { U as o } from "./chuncks/format.util.BUmWGiJF.js";
2
+ import { g as D, h as E, f as L, b, d as h, m as k, c as C, e as _, a as I, p as U, u as O } from "./chuncks/format.util.BUmWGiJF.js";
3
+ import { f as n } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
4
+ import { r as N, p as x, n as A, j as F, h as T, l as j, i as w, m as G, k as V, g as z, o as B, q as R, v as J } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
5
5
  const i = (e) => e ? `${e} é obrigatório.` : "Campo obrigatório.", c = (e, r) => r ? `${r} deve ter no mínimo ${e} caracteres.` : `Deve ter no mínimo ${e} caracteres.`, m = (e, r) => r ? `${r} deve ter no máximo ${e} caracteres.` : `Deve ter no máximo ${e} caracteres.`, u = (e, r) => r ? `${r} não pode ser menor que ${e}.` : `Não pode ser menor que ${e}.`, p = (e, r) => r ? `${r} não pode ser maior que ${e}.` : `Não pode ser maior que ${e}.`, f = (e) => e ? `${e} inválido.` : "Valor inválido.", g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6
6
  __proto__: null,
7
7
  invalidMessage: f,
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.214",
4
+ "version": "0.0.216",
5
5
  "files": [
6
6
  "dist"
7
7
  ],