@s_mart/minha-conta 4.0.1 → 4.0.3

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 CHANGED
@@ -155,6 +155,12 @@ interface ContatoSuporte {
155
155
  * @important Mandar com 55 e sem máscara
156
156
  */
157
157
  telefoneSuporte: string;
158
+ /**
159
+ * Telefone para entrar em contato com o CS
160
+ *
161
+ * @important Mandar com 55 e sem máscara
162
+ */
163
+ telefoneCS?: string;
158
164
  }
159
165
  interface MinhaEmpresaState {
160
166
  /**
@@ -229,6 +235,12 @@ interface RecursosDialogState {
229
235
  * Callback executada ao remover um recurso com sucesso
230
236
  */
231
237
  onRemoverRecurso?: (recursoRemovido: IRecurso) => void;
238
+ /**
239
+ * Boolean para esconder ou não os valores dos recursos não contratados
240
+ *
241
+ * Se true, o botão de contratar chama o telefone do CS, se habilitado, ou do suporte
242
+ */
243
+ esconderValoresRecursos?: boolean;
232
244
  }
233
245
  interface PlanosDialogState {
234
246
  /**
@@ -275,6 +287,16 @@ interface PlanosDialogState {
275
287
  * Se houverem planos setados em codigoValorPlano, serão desconsiderados
276
288
  */
277
289
  mostrarSomentePlanosDaPeriodicidade?: 'mensais' | 'trimestrais' | 'semestrais' | 'anuais';
290
+ /**
291
+ * Esconde o valor dos planos
292
+ *
293
+ * Se true, o botão de contratar chama o telefone do CS, se habilitado, ou do suporte
294
+ */
295
+ esconderValorPlanos?: boolean;
296
+ /**
297
+ * Não deixa desabilitado o plano atual do cliente
298
+ */
299
+ habilitarPlanoAtual?: boolean;
278
300
  /**
279
301
  * Callback executada ao contratar um plano com sucesso
280
302
  */
@@ -308,8 +330,8 @@ type ConfirmarEmailTipo = 'empresa' | 'responsável';
308
330
 
309
331
  declare function ConfirmarEmail({ apiUrl, imagem, onSubmit, tipo }: ConfirmarEmailProps): react_jsx_runtime.JSX.Element;
310
332
 
311
- declare function RecursosDialog({ onClose, axiosInstance, sistemaNome, telefoneSuporte, endpointsV2, ...recursosDialog }: RecursosDialogProps): react_jsx_runtime.JSX.Element;
333
+ declare function RecursosDialog({ onClose, axiosInstance, sistemaNome, telefoneSuporte, telefoneCS, endpointsV2, ...recursosDialog }: RecursosDialogProps): react_jsx_runtime.JSX.Element;
312
334
 
313
- declare function PlanosDialog({ onClose, axiosInstance, telefoneSuporte, endpointsV2, ...planosDialog }: PlanosDialogProps): react_jsx_runtime.JSX.Element;
335
+ declare function PlanosDialog({ onClose, axiosInstance, telefoneSuporte, endpointsV2, telefoneCS, ...planosDialog }: PlanosDialogProps): react_jsx_runtime.JSX.Element;
314
336
 
315
337
  export { ConfirmarEmail, ConfirmarEmailProps, MinhaConta, MinhaContaProps, PlanosDialog, PlanosDialogProps, RecursosDialog, RecursosDialogProps };