@zydon/common 2.7.43 → 2.7.45
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/{chunk-3JELAFSE.js → chunk-25RD3FNB.js} +2 -2
- package/dist/{chunk-Y2BERZSA.js → chunk-4DRAVVKF.js} +2 -2
- package/dist/{chunk-YWSFODIB.js → chunk-5NVPK5JK.js} +2 -2
- package/dist/{chunk-KN22PA5V.js → chunk-AXH2MGYR.js} +2 -2
- package/dist/{chunk-WVOR4AJC.js → chunk-E5ULJSWF.js} +1 -1
- package/dist/{chunk-WVOR4AJC.js.map → chunk-E5ULJSWF.js.map} +1 -1
- package/dist/{chunk-LV6VSQQ2.js → chunk-F6U6MBF2.js} +2 -2
- package/dist/{chunk-X4PUHUMT.js → chunk-GHEFHID3.js} +2 -2
- package/dist/{chunk-24TEQF5G.js → chunk-GQNMT5OL.js} +4 -4
- package/dist/{chunk-24TEQF5G.js.map → chunk-GQNMT5OL.js.map} +1 -1
- package/dist/{chunk-NTKAC4NG.js → chunk-GTWJQJAN.js} +2 -2
- package/dist/{chunk-SPC6IIEJ.js → chunk-IYYN6B6B.js} +5 -5
- package/dist/{chunk-SLDN2VKA.js → chunk-JN7AYFK2.js} +3 -3
- package/dist/{chunk-IG2JGSDF.js → chunk-KTDUAIF6.js} +3 -3
- package/dist/{chunk-HZHHU42J.js → chunk-ME427CYO.js} +2 -2
- package/dist/{chunk-5BAO4KAB.js → chunk-RBXJBUAX.js} +2 -2
- package/dist/{chunk-LNHA4IG5.js → chunk-RO6KQM2A.js} +4 -4
- package/dist/{chunk-AGTC2GFY.js → chunk-RXJFG4ZF.js} +2 -2
- package/dist/{chunk-SR36OFDX.js → chunk-TLF76YLT.js} +3 -3
- package/dist/{chunk-ZMZIXWJA.js → chunk-WIQJA25K.js} +2 -2
- package/dist/chunk-XM4SVZO6.js +5 -0
- package/dist/chunk-XM4SVZO6.js.map +1 -0
- package/dist/{chunk-TYWQEVTD.js → chunk-YHAGF7IQ.js} +2 -2
- package/dist/components/ActionButton/index.js +3 -3
- package/dist/components/Autocomplete/index.js +3 -3
- package/dist/components/AvatarButton/index.js +2 -2
- package/dist/components/BuilderLayout/index.js +3 -3
- package/dist/components/BuilderSidebar/index.js +2 -2
- package/dist/components/Common/index.js +2 -2
- package/dist/components/DataView/index.js +3 -3
- package/dist/components/DragButton/index.js +3 -3
- package/dist/components/Drawer/index.js +2 -2
- package/dist/components/EasyCropModal/index.js +4 -4
- package/dist/components/Error/index.js +2 -2
- package/dist/components/ExpandableGroup/index.js +2 -2
- package/dist/components/FileUpload/index.js +7 -7
- package/dist/components/FrameSkeleton/index.js +2 -2
- package/dist/components/HelpButton/index.js +3 -3
- package/dist/components/Icon/index.js +2 -2
- package/dist/components/IconButton/index.js +3 -3
- package/dist/components/ImageCropModal/index.js +4 -4
- package/dist/components/Incrementer/index.js +3 -3
- package/dist/components/InfoCircle/index.js +2 -2
- package/dist/components/ListBundles/index.js +3 -3
- package/dist/components/MenuItem/index.js +2 -2
- package/dist/components/Modal/index.js +3 -3
- package/dist/components/MoreMenu/index.js +2 -2
- package/dist/components/PasswordRules/index.js +2 -2
- package/dist/components/PopoverSelect/index.js +2 -2
- package/dist/components/SearchInput/index.js +3 -3
- package/dist/components/SelectableCards/index.js +4 -4
- package/dist/components/SeoPreview/index.js +2 -2
- package/dist/components/StateDisplay/index.js +3 -3
- package/dist/components/Steps/index.js +2 -2
- package/dist/components/StyledTab/index.js +2 -2
- package/dist/components/SwapList/index.js +3 -3
- package/dist/components/WebhookCard/index.js +2 -2
- package/dist/components/carousel/index.js +3 -3
- package/dist/components/form/Address/index.js +4 -4
- package/dist/components/form/Autocomplete/index.js +4 -4
- package/dist/components/form/FileUpload/index.js +7 -7
- package/dist/components/form/Incrementer/index.js +3 -3
- package/dist/components/form/Password/index.js +2 -2
- package/dist/components/form/SelectableCards/index.js +4 -4
- package/dist/components/form/UploadAvatarWithCrop/index.js +5 -5
- package/dist/components/form/UploadWithCrop/index.js +6 -6
- package/dist/components/form/Webhook/index.js +5 -5
- package/dist/components/lightbox/index.js +2 -2
- package/dist/components/table/index.js +3 -3
- package/dist/components/upload/index.js +7 -7
- package/dist/contexts/PushNotifications/index.js +2 -2
- package/dist/contexts/PushNotifications/index.js.map +1 -1
- package/dist/types/icon.d.ts +2 -0
- package/dist/types/icon.js +1 -1
- package/dist/types/pushNotifications.d.ts +1 -1
- package/dist/types/pushNotifications.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-LCQGL2LT.js +0 -5
- package/dist/chunk-LCQGL2LT.js.map +0 -1
- /package/dist/{chunk-3JELAFSE.js.map → chunk-25RD3FNB.js.map} +0 -0
- /package/dist/{chunk-Y2BERZSA.js.map → chunk-4DRAVVKF.js.map} +0 -0
- /package/dist/{chunk-YWSFODIB.js.map → chunk-5NVPK5JK.js.map} +0 -0
- /package/dist/{chunk-KN22PA5V.js.map → chunk-AXH2MGYR.js.map} +0 -0
- /package/dist/{chunk-LV6VSQQ2.js.map → chunk-F6U6MBF2.js.map} +0 -0
- /package/dist/{chunk-X4PUHUMT.js.map → chunk-GHEFHID3.js.map} +0 -0
- /package/dist/{chunk-NTKAC4NG.js.map → chunk-GTWJQJAN.js.map} +0 -0
- /package/dist/{chunk-SPC6IIEJ.js.map → chunk-IYYN6B6B.js.map} +0 -0
- /package/dist/{chunk-SLDN2VKA.js.map → chunk-JN7AYFK2.js.map} +0 -0
- /package/dist/{chunk-IG2JGSDF.js.map → chunk-KTDUAIF6.js.map} +0 -0
- /package/dist/{chunk-HZHHU42J.js.map → chunk-ME427CYO.js.map} +0 -0
- /package/dist/{chunk-5BAO4KAB.js.map → chunk-RBXJBUAX.js.map} +0 -0
- /package/dist/{chunk-LNHA4IG5.js.map → chunk-RO6KQM2A.js.map} +0 -0
- /package/dist/{chunk-AGTC2GFY.js.map → chunk-RXJFG4ZF.js.map} +0 -0
- /package/dist/{chunk-SR36OFDX.js.map → chunk-TLF76YLT.js.map} +0 -0
- /package/dist/{chunk-ZMZIXWJA.js.map → chunk-WIQJA25K.js.map} +0 -0
- /package/dist/{chunk-TYWQEVTD.js.map → chunk-YHAGF7IQ.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-F6U6MBF2.js';
|
|
2
2
|
import { a as a$1 } from './chunk-KGLU4CR2.js';
|
|
3
3
|
import { b } from './chunk-RPO7AI5K.js';
|
|
4
4
|
import P from '@mui/lab/LoadingButton';
|
|
@@ -14,4 +14,4 @@ var w=({imageSrc:c,aspectRatio:p,cropShape:g,cropSize:u,onInitialized:h})=>{let[
|
|
|
14
14
|
|
|
15
15
|
export { q as a };
|
|
16
16
|
//# sourceMappingURL=out.js.map
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-25RD3FNB.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-GQNMT5OL.js';
|
|
2
2
|
import { forwardRef, useMemo } from 'react';
|
|
3
3
|
import M from '@mui/material/Box';
|
|
4
4
|
import w from '@mui/material/CircularProgress';
|
|
@@ -9,4 +9,4 @@ var p=forwardRef(({icon:o,label:n,loading:r=!1,disabled:u=!1,iconProps:i={},chil
|
|
|
9
9
|
|
|
10
10
|
export { x as a };
|
|
11
11
|
//# sourceMappingURL=out.js.map
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-4DRAVVKF.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-
|
|
1
|
+
import { a as a$1 } from './chunk-GQNMT5OL.js';
|
|
2
2
|
import c from '@mui/material/IconButton';
|
|
3
3
|
import s from '@mui/material/Stack';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
@@ -8,4 +8,4 @@ var a=styled(c)(({theme:t})=>({position:"absolute",top:0,left:-2,zIndex:1,color:
|
|
|
8
8
|
|
|
9
9
|
export { D as a };
|
|
10
10
|
//# sourceMappingURL=out.js.map
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-5NVPK5JK.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-GQNMT5OL.js';
|
|
2
2
|
import { k, b } from './chunk-GLRLKFPS.js';
|
|
3
3
|
import { forwardRef, Children, isValidElement, useMemo, useState, useCallback, useEffect, useRef } from 'react';
|
|
4
4
|
import N from '@mui/material/Box';
|
|
@@ -14,4 +14,4 @@ var Ge={xs:"(min-width: 0px)",sm:"(min-width: 600px)",md:"(min-width: 900px)",lg
|
|
|
14
14
|
|
|
15
15
|
export { Ge as a, p as b, w as c, T as d, R as e, io as f, Co as g, ho as h, So as i, h as j, To as k, Lo as l, Ne as m, qo as n, St as o };
|
|
16
16
|
//# sourceMappingURL=out.js.map
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-AXH2MGYR.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/pushNotifications.ts"],"names":["MessageStatus"],"mappings":"AA+BO,IAAKA,OACVA,EAAA,KAAO,OACPA,EAAA,UAAY,YACZA,EAAA,KAAO,OAHGA,OAAA","sourcesContent":["import { ReactNode } from 'react';\n\nexport interface PushMessage<TPayload = unknown> {\n message: string;\n topic: string;\n updatedAt: string;\n createdAt: string;\n payload: TPayload;\n id: string;\n}\n\nexport interface SubscriptionItem {\n topic: string;\n}\n\nexport interface SubscriptionsData {\n subscriptions: SubscriptionItem[];\n}\n\nexport interface ClientRegistrationPayload {\n origin_type: string;\n origin_id: string;\n endpoint?: string;\n auth?: string;\n p256dh?: string;\n}\n\nexport interface ClientRegistrationResult {\n id: string;\n}\n\nexport enum MessageStatus {\n SENT = 'SENT',\n DELIVERED = 'DELIVERED',\n READ = 'READ',\n}\n\nexport interface MessageStatusPayload {\n status: MessageStatus;\n}\n\nexport interface PushNotificationApiAdapters<TMessage = unknown> {\n // Registra um cliente no serviço de push\n registerClient: (\n payload: ClientRegistrationPayload,\n ) => Promise<ClientRegistrationResult>;\n\n // Inscreve o cliente em um tópico\n subscribeTopic: (clientId: string, topic: string) => Promise<void>;\n\n // Remove inscrição de um tópico\n unsubscribeTopic: (clientId: string, topic: string) => Promise<void>;\n\n // Inscreve o cliente em múltiplos tópicos\n subscribeTopicsBatch: (clientId: string, topics: string[]) => Promise<void>;\n\n // Remove inscrição de múltiplos tópicos\n unsubscribeTopicsBatch: (clientId: string, topics: string[]) => Promise<void>;\n\n // Lista as inscrições do cliente\n listSubscriptions: (clientId: string) => Promise<SubscriptionsData>;\n\n // Busca mensagens pendentes (usado para polling fallback)\n fetchMessages?: (\n clientId: string,\n ) => Promise<{ messages: PushMessage<TMessage>[] }>;\n\n // Atualiza o status de uma mensagem\n updateMessageStatus: (\n messageId: string,\n status: MessageStatusPayload,\n ) => Promise<void>;\n}\n\nexport interface PushNotificationProviderProps<TMessage = unknown> {\n children: ReactNode;\n\n // Token de autenticação para validar o usuário\n bearerToken: string;\n\n // ID único da origem (ex: userId, sessionId)\n originId: string;\n\n // Tipo da origem (ex: 'ADMIN', 'CLIENT', 'MOBILE')\n originType: string;\n\n // Chave pública VAPID para Push API\n vapidKey: string;\n\n // Caminho base do service worker (padrão: '/')\n serviceWorkerPath?: string;\n\n // Nome do arquivo do service worker (padrão: 'service-worker.js')\n serviceWorkerFile?: string;\n\n // Intervalo de polling em ms para clientes ativos (padrão: 1000)\n pollingInterval?: number;\n\n // Adapters para chamadas de API (implementados pelo MFE)\n apiAdapters: PushNotificationApiAdapters<TMessage>;\n\n // Callback chamado quando uma mensagem é recebida\n onMessageReceived?: (message: TMessage) => void;\n\n // Callback chamado quando ocorre um erro\n onError?: (error: Error) => void;\n}\n\nexport interface TopicSubscriptionOptions {\n stopPollingOnFirstMessage?: boolean;\n}\n\nexport interface PushNotificationContextData {\n clientId: string | null;\n subscribedTopics: SubscriptionsData;\n isLoading: boolean;\n newMessageCount: number;\n isRegisterError: boolean;\n subscribeToTopic: (\n topic: string,\n options?: TopicSubscriptionOptions,\n ) => Promise<void>;\n unsubscribeFromTopic: (topic: string) => Promise<void>;\n subscribeTopicsBatch: (topics: string[]) => Promise<void>;\n unsubscribeTopicsBatch: (topics: string[]) => Promise<void>;\n resetMessageCount: () => void;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/types/pushNotifications.ts"],"names":["MessageStatus"],"mappings":"AA+BO,IAAKA,OACVA,EAAA,KAAO,OACPA,EAAA,UAAY,YACZA,EAAA,KAAO,OAHGA,OAAA","sourcesContent":["import { ReactNode } from 'react';\n\nexport interface PushMessage<TPayload = unknown> {\n message: string;\n topic: string;\n updatedAt: string;\n createdAt: string;\n payload: TPayload;\n id: string;\n}\n\nexport interface SubscriptionItem {\n topic: string;\n}\n\nexport interface SubscriptionsData {\n subscriptions: SubscriptionItem[];\n}\n\nexport interface ClientRegistrationPayload {\n origin_type: string;\n origin_id: string;\n endpoint?: string;\n auth?: string;\n p256dh?: string;\n}\n\nexport interface ClientRegistrationResult {\n id: string;\n}\n\nexport enum MessageStatus {\n SENT = 'SENT',\n DELIVERED = 'DELIVERED',\n READ = 'READ',\n}\n\nexport interface MessageStatusPayload {\n status: MessageStatus;\n}\n\nexport interface PushNotificationApiAdapters<TMessage = unknown> {\n // Registra um cliente no serviço de push\n registerClient: (\n payload: ClientRegistrationPayload,\n ) => Promise<ClientRegistrationResult>;\n\n // Inscreve o cliente em um tópico\n subscribeTopic: (clientId: string, topic: string) => Promise<void>;\n\n // Remove inscrição de um tópico\n unsubscribeTopic: (clientId: string, topic: string) => Promise<void>;\n\n // Inscreve o cliente em múltiplos tópicos\n subscribeTopicsBatch: (clientId: string, topics: string[]) => Promise<void>;\n\n // Remove inscrição de múltiplos tópicos\n unsubscribeTopicsBatch: (clientId: string, topics: string[]) => Promise<void>;\n\n // Lista as inscrições do cliente\n listSubscriptions: (clientId: string) => Promise<SubscriptionsData>;\n\n // Busca mensagens pendentes (usado para polling fallback)\n fetchMessages?: (\n clientId: string,\n ) => Promise<{ messages: PushMessage<TMessage>[] }>;\n\n // Atualiza o status de uma mensagem\n updateMessageStatus: (\n messageId: string,\n status: MessageStatusPayload,\n ) => Promise<void>;\n}\n\nexport interface PushNotificationProviderProps<TMessage = unknown> {\n children: ReactNode;\n\n // Token de autenticação para validar o usuário\n bearerToken: string;\n\n // ID único da origem (ex: userId, sessionId)\n originId: string;\n\n // Tipo da origem (ex: 'ADMIN', 'CLIENT', 'MOBILE')\n originType: string;\n\n // Chave pública VAPID para Push API\n vapidKey: string;\n\n // Caminho base do service worker (padrão: '/')\n serviceWorkerPath?: string;\n\n // Nome do arquivo do service worker (padrão: 'service-worker.js')\n serviceWorkerFile?: string;\n\n // Intervalo de polling em ms para clientes ativos (padrão: 1000)\n pollingInterval?: number;\n\n // Adapters para chamadas de API (implementados pelo MFE)\n apiAdapters: PushNotificationApiAdapters<TMessage>;\n\n // Callback chamado quando uma mensagem é recebida\n onMessageReceived?: (message: TMessage, topic?: string) => void;\n\n // Callback chamado quando ocorre um erro\n onError?: (error: Error) => void;\n}\n\nexport interface TopicSubscriptionOptions {\n stopPollingOnFirstMessage?: boolean;\n}\n\nexport interface PushNotificationContextData {\n clientId: string | null;\n subscribedTopics: SubscriptionsData;\n isLoading: boolean;\n newMessageCount: number;\n isRegisterError: boolean;\n subscribeToTopic: (\n topic: string,\n options?: TopicSubscriptionOptions,\n ) => Promise<void>;\n unsubscribeFromTopic: (topic: string) => Promise<void>;\n subscribeTopicsBatch: (topics: string[]) => Promise<void>;\n unsubscribeTopicsBatch: (topics: string[]) => Promise<void>;\n resetMessageCount: () => void;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-GQNMT5OL.js';
|
|
2
2
|
import M from '@mui/material/Dialog';
|
|
3
3
|
import k from '@mui/material/DialogTitle';
|
|
4
4
|
import B from '@mui/material/IconButton';
|
|
@@ -12,4 +12,4 @@ var s=styled(P)(({theme:o})=>({flexDirection:"row",alignItems:"center",justifyCo
|
|
|
12
12
|
|
|
13
13
|
export { U as a };
|
|
14
14
|
//# sourceMappingURL=out.js.map
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-F6U6MBF2.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-GQNMT5OL.js';
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import d from '@mui/material/Button';
|
|
4
4
|
import o from '@mui/material/Stack';
|
|
@@ -10,4 +10,4 @@ var R=r=>{switch(r){case"success":return jsx(a,{"data-testid":"icon-SUCCESS",ico
|
|
|
10
10
|
|
|
11
11
|
export { _ as a };
|
|
12
12
|
//# sourceMappingURL=out.js.map
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-GHEFHID3.js.map
|