@credithub/harlan-components 1.43.0 → 1.43.1

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.
@@ -79,7 +79,9 @@ var ConsultaSimplesSection = function (_a) {
79
79
  React.createElement(StatusMessage, null, format(new Date(), "dd/MM/yyyy 'às' HH:mm")),
80
80
  React.createElement(StatusMessage, { type: "found" }, formatDocument(documento)),
81
81
  isError && (ctx === null || ctx === void 0 ? void 0 : ctx.error) && (React.createElement(StatusMessage, { type: statusType }, ctx.error.message)),
82
- possuiPendenciaText.length ? (possuiPendenciaText.map(function (text) { return (React.createElement(StatusMessage, { key: text, type: "error" }, text)); })) : (React.createElement(StatusMessage, { type: statusType }, "Nenhum registro encontrado"))), onClose: onClose, icon: ConsultaSimplesIcon, variant: isLoading ? 'loading' : 'default', ctx: ctx, loadingProps: {
82
+ !isLoading &&
83
+ possuiPendenciaText.length === 0 &&
84
+ !possuiPendencias ? (React.createElement(StatusMessage, { type: statusType }, "Nenhum registro encontrado")) : (possuiPendenciaText.map(function (text) { return (React.createElement(StatusMessage, { key: text, type: "error" }, text)); }))), onClose: onClose, icon: ConsultaSimplesIcon, variant: isLoading ? 'loading' : 'default', ctx: ctx, loadingProps: {
83
85
  percentage: (ctx === null || ctx === void 0 ? void 0 : ctx.progress) || 0,
84
86
  hidden: !isLoading
85
87
  } }, rest), children));
@@ -241,9 +241,10 @@ var GenerativeAI = function (_a) {
241
241
  React.createElement(InitialMessageContent, null,
242
242
  React.createElement("div", { className: "icon-and-text" },
243
243
  React.createElement(Credithub, { size: 18, className: "initial-icon" }),
244
- React.createElement("span", null, isLoading &&
245
- currentMessageIndex === 0 &&
246
- !((_b = messageHistory[0]) === null || _b === void 0 ? void 0 : _b.content) ? (React.createElement(LoadingDots, null)) : shouldStartTyping &&
244
+ React.createElement("span", null, !isGlobalDataLoaded ||
245
+ (isLoading &&
246
+ currentMessageIndex === 0 &&
247
+ !((_b = messageHistory[0]) === null || _b === void 0 ? void 0 : _b.content)) ? (React.createElement(LoadingDots, null)) : shouldStartTyping &&
247
248
  isTyping &&
248
249
  currentMessageIndex === 0 ? (typingMessage) : (React.createElement(ReactMarkdown, null, ((_c = messageHistory[0]) === null || _c === void 0 ? void 0 : _c.content) || '')))),
249
250
  React.createElement("div", { className: "additional-message" },