@box/box-ai-content-answers 0.86.2 → 0.87.2

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.
Files changed (127) hide show
  1. package/chunks/clear-conversation-button.js +12 -13
  2. package/chunks/markdown.js +12168 -0
  3. package/esm/lib/box-ai-content-answers.js +11 -12
  4. package/esm/lib/components/agents/agent-editor.js +7 -8
  5. package/esm/lib/components/agents/agent-selector.js +3 -4
  6. package/esm/lib/components/answer/answer-content.js +5 -6
  7. package/esm/lib/components/answer/answer.js +604 -107
  8. package/esm/lib/components/answer/citation.js +4 -5
  9. package/esm/lib/components/answer/inline-error.js +4 -5
  10. package/esm/lib/components/answer/loading-element.js +4 -5
  11. package/esm/lib/components/answer/references.js +19 -20
  12. package/esm/lib/components/answer/thumb-buttons.js +11 -12
  13. package/esm/lib/components/chat/chat.js +13 -14
  14. package/esm/lib/components/common/markdown.js +3 -12212
  15. package/esm/lib/components/common/media-container.js +10 -11
  16. package/esm/lib/components/content/content.js +4 -5
  17. package/esm/lib/components/footer/footer-actions.js +3 -4
  18. package/esm/lib/components/footer/footer.js +3 -4
  19. package/esm/lib/components/modal-error/modal-error.js +3 -4
  20. package/esm/lib/components/question/question.js +12 -13
  21. package/esm/lib/components/suggested-questions/suggested-questions.js +10 -11
  22. package/esm/lib/components/suggested-questions/suggestions.js +8 -9
  23. package/esm/lib/components/welcome-message/contextual-items-message.js +4 -5
  24. package/esm/lib/components/welcome-message/items-dropdown.js +15 -16
  25. package/esm/lib/components/welcome-message/unsupported-items-notice.js +9 -10
  26. package/esm/lib/components/welcome-message/welcome-message.js +11 -12
  27. package/i18n/bn-IN.js +3 -3
  28. package/i18n/bn-IN.properties +7 -3
  29. package/i18n/da-DK.js +3 -3
  30. package/i18n/da-DK.properties +7 -3
  31. package/i18n/de-DE.js +3 -3
  32. package/i18n/de-DE.properties +7 -3
  33. package/i18n/en-AU.js +3 -3
  34. package/i18n/en-AU.properties +7 -3
  35. package/i18n/en-CA.js +1 -1
  36. package/i18n/en-CA.properties +5 -1
  37. package/i18n/en-GB.js +3 -3
  38. package/i18n/en-GB.properties +7 -3
  39. package/i18n/en-x-pseudo.js +59 -59
  40. package/i18n/en-x-pseudo.properties +61 -57
  41. package/i18n/es-419.js +3 -3
  42. package/i18n/es-419.properties +7 -3
  43. package/i18n/es-ES.js +3 -3
  44. package/i18n/es-ES.properties +7 -3
  45. package/i18n/fi-FI.js +3 -3
  46. package/i18n/fi-FI.properties +7 -3
  47. package/i18n/fr-CA.js +3 -3
  48. package/i18n/fr-CA.properties +7 -3
  49. package/i18n/fr-FR.js +3 -3
  50. package/i18n/fr-FR.properties +7 -3
  51. package/i18n/hi-IN.js +3 -3
  52. package/i18n/hi-IN.properties +7 -3
  53. package/i18n/it-IT.js +3 -3
  54. package/i18n/it-IT.properties +7 -3
  55. package/i18n/ja-JP.js +4 -4
  56. package/i18n/ja-JP.properties +8 -4
  57. package/i18n/ko-KR.js +3 -3
  58. package/i18n/ko-KR.properties +7 -3
  59. package/i18n/nb-NO.js +3 -3
  60. package/i18n/nb-NO.properties +7 -3
  61. package/i18n/nl-NL.js +3 -3
  62. package/i18n/nl-NL.properties +7 -3
  63. package/i18n/pl-PL.js +3 -3
  64. package/i18n/pl-PL.properties +7 -3
  65. package/i18n/pt-BR.js +3 -3
  66. package/i18n/pt-BR.properties +7 -3
  67. package/i18n/ru-RU.js +3 -3
  68. package/i18n/ru-RU.properties +7 -3
  69. package/i18n/sv-SE.js +3 -3
  70. package/i18n/sv-SE.properties +7 -3
  71. package/i18n/tr-TR.js +3 -3
  72. package/i18n/tr-TR.properties +7 -3
  73. package/i18n/zh-CN.js +3 -3
  74. package/i18n/zh-CN.properties +7 -3
  75. package/i18n/zh-TW.js +3 -3
  76. package/i18n/zh-TW.properties +7 -3
  77. package/package.json +7 -7
  78. package/types/lib/box-ai-content-answers.d.ts +1 -1
  79. package/types/lib/components/agents/agent-editor.d.ts +1 -1
  80. package/types/lib/components/agents/agent-selector.d.ts +1 -1
  81. package/types/lib/components/agents/stories/shared.d.ts +3 -3
  82. package/types/lib/components/answer/answer-content.d.ts +2 -2
  83. package/types/lib/components/answer/answer.d.ts +1 -1
  84. package/types/lib/components/answer/citation.d.ts +1 -1
  85. package/types/lib/components/answer/copy-button.d.ts +1 -1
  86. package/types/lib/components/answer/inline-error.d.ts +1 -1
  87. package/types/lib/components/answer/loading-element.d.ts +1 -1
  88. package/types/lib/components/answer/no-citations.d.ts +1 -1
  89. package/types/lib/components/answer/references.d.ts +1 -1
  90. package/types/lib/components/answer/stories/shared.d.ts +1 -1
  91. package/types/lib/components/answer/thumb-buttons.d.ts +1 -1
  92. package/types/lib/components/api-wrapper/api-wrapper.d.ts +1 -1
  93. package/types/lib/components/api-wrapper/constants.d.ts +1 -1
  94. package/types/lib/components/api-wrapper/content-answers-component.d.ts +1 -1
  95. package/types/lib/components/api-wrapper/hooks/useContentAnswers.d.ts +4 -4
  96. package/types/lib/components/api-wrapper/records.d.ts +1 -1
  97. package/types/lib/components/api-wrapper/stories/shared.d.ts +1 -1
  98. package/types/lib/components/api-wrapper/test-utils/ReadableStreamSimulator.d.ts +1 -1
  99. package/types/lib/components/api-wrapper/types.d.ts +3 -3
  100. package/types/lib/components/api-wrapper/utils/format.d.ts +1 -1
  101. package/types/lib/components/api-wrapper/utils/request.d.ts +3 -3
  102. package/types/lib/components/api-wrapper/utils/stream.d.ts +1 -1
  103. package/types/lib/components/chat/chat.d.ts +1 -1
  104. package/types/lib/components/common/constants.d.ts +1 -1
  105. package/types/lib/components/common/media-container.d.ts +2 -2
  106. package/types/lib/components/common/mock-data.d.ts +4 -4
  107. package/types/lib/components/content/content.d.ts +1 -1
  108. package/types/lib/components/footer/footer-actions.d.ts +1 -1
  109. package/types/lib/components/footer/footer.d.ts +1 -1
  110. package/types/lib/components/footer/stories/shared.d.ts +7 -7
  111. package/types/lib/components/modal/modal.d.ts +5 -5
  112. package/types/lib/components/modal/stories/shared.d.ts +2 -2
  113. package/types/lib/components/modal-error/stories/shared.d.ts +1 -1
  114. package/types/lib/components/question/question.d.ts +1 -1
  115. package/types/lib/components/question/stories/shared.d.ts +1 -1
  116. package/types/lib/components/suggested-questions/mocks.d.ts +1 -1
  117. package/types/lib/components/suggested-questions/stories/shared.d.ts +1 -1
  118. package/types/lib/components/suggested-questions/suggested-questions.d.ts +1 -1
  119. package/types/lib/components/suggested-questions/suggestions.d.ts +1 -1
  120. package/types/lib/components/welcome-message/contextual-items-message.d.ts +1 -1
  121. package/types/lib/components/welcome-message/items-dropdown.d.ts +1 -1
  122. package/types/lib/components/welcome-message/stories/shared.d.ts +4 -4
  123. package/types/lib/components/welcome-message/unsupported-items-notice.d.ts +1 -1
  124. package/types/lib/components/welcome-message/welcome-message.d.ts +1 -1
  125. package/types/lib/contexts/AgentsContext.d.ts +1 -1
  126. package/types/lib/stories/shared.d.ts +3 -3
  127. package/types/lib/types.d.ts +2 -2
@@ -1,13 +1,12 @@
1
- import "../styles/clear-conversation-button.css";
2
- import { Tooltip as r, IconButton as a } from "@box/blueprint-web";
1
+ import { Tooltip as a, IconButton as r } from "@box/blueprint-web";
3
2
  import { Trash as s } from "@box/blueprint-web-assets/icons/Line";
4
3
  import { useIntl as l } from "react-intl";
5
- import t from "../esm/lib/components/modal/messages.js";
6
- import { jsx as n } from "react/jsx-runtime";
7
- const c = "_BoxAIIconColor_1nf8s_1", i = "_modalHeader_1nf8s_5", _ = "_contentAnswersModal_1nf8s_10", d = "_boxAiContentAnswers_1nf8s_17", m = "_clearButton_1nf8s_25", f = "_contentAnswerModal_1nf8s_1", C = "_modalHeaderContainer_1nf8s_54", g = "_agentSelectorTrigger_1nf8s_62", A = "_agentSelectorContent_1nf8s_73", u = {
4
+ import n from "../esm/lib/components/modal/messages.js";
5
+ import { jsx as t } from "react/jsx-runtime";
6
+ import '../styles/clear-conversation-button.css';const c = "_BoxAIIconColor_1nf8s_1", _ = "_modalHeader_1nf8s_5", i = "_contentAnswersModal_1nf8s_10", d = "_boxAiContentAnswers_1nf8s_17", m = "_clearButton_1nf8s_25", f = "_contentAnswerModal_1nf8s_1", C = "_modalHeaderContainer_1nf8s_54", g = "_agentSelectorTrigger_1nf8s_62", A = "_agentSelectorContent_1nf8s_73", u = {
8
7
  BoxAIIconColor: c,
9
- modalHeader: i,
10
- contentAnswersModal: _,
8
+ modalHeader: _,
9
+ contentAnswersModal: i,
11
10
  boxAiContentAnswers: d,
12
11
  clearButton: m,
13
12
  "modal-close-button": "_modal-close-button_1nf8s_29",
@@ -15,16 +14,16 @@ const c = "_BoxAIIconColor_1nf8s_1", i = "_modalHeader_1nf8s_5", _ = "_contentAn
15
14
  modalHeaderContainer: C,
16
15
  agentSelectorTrigger: g,
17
16
  agentSelectorContent: A
18
- }, M = ({
17
+ }, I = ({
19
18
  onClick: e
20
19
  }) => {
21
20
  const o = l();
22
- return /* @__PURE__ */ n(r, {
23
- content: o.formatMessage(t.clearConversationLabel),
21
+ return /* @__PURE__ */ t(a, {
22
+ content: o.formatMessage(n.clearConversationLabel),
24
23
  "data-testid": "clear-conversation-tooltip",
25
24
  variant: "standard",
26
- children: /* @__PURE__ */ n(a, {
27
- "aria-label": o.formatMessage(t.clearConversationLabel),
25
+ children: /* @__PURE__ */ t(r, {
26
+ "aria-label": o.formatMessage(n.clearConversationLabel),
28
27
  className: u.clearButton,
29
28
  "data-testid": "clear-conversation-button",
30
29
  icon: s,
@@ -34,6 +33,6 @@ const c = "_BoxAIIconColor_1nf8s_1", i = "_modalHeader_1nf8s_5", _ = "_contentAn
34
33
  });
35
34
  };
36
35
  export {
37
- M as C,
36
+ I as C,
38
37
  u as s
39
38
  };