@box/box-ai-content-answers 0.87.0 → 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 (77) 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/package.json +7 -7
  28. package/types/lib/box-ai-content-answers.d.ts +1 -1
  29. package/types/lib/components/agents/agent-editor.d.ts +1 -1
  30. package/types/lib/components/agents/agent-selector.d.ts +1 -1
  31. package/types/lib/components/agents/stories/shared.d.ts +3 -3
  32. package/types/lib/components/answer/answer-content.d.ts +2 -2
  33. package/types/lib/components/answer/answer.d.ts +1 -1
  34. package/types/lib/components/answer/citation.d.ts +1 -1
  35. package/types/lib/components/answer/copy-button.d.ts +1 -1
  36. package/types/lib/components/answer/inline-error.d.ts +1 -1
  37. package/types/lib/components/answer/loading-element.d.ts +1 -1
  38. package/types/lib/components/answer/no-citations.d.ts +1 -1
  39. package/types/lib/components/answer/references.d.ts +1 -1
  40. package/types/lib/components/answer/stories/shared.d.ts +1 -1
  41. package/types/lib/components/answer/thumb-buttons.d.ts +1 -1
  42. package/types/lib/components/api-wrapper/api-wrapper.d.ts +1 -1
  43. package/types/lib/components/api-wrapper/constants.d.ts +1 -1
  44. package/types/lib/components/api-wrapper/content-answers-component.d.ts +1 -1
  45. package/types/lib/components/api-wrapper/hooks/useContentAnswers.d.ts +4 -4
  46. package/types/lib/components/api-wrapper/records.d.ts +1 -1
  47. package/types/lib/components/api-wrapper/stories/shared.d.ts +1 -1
  48. package/types/lib/components/api-wrapper/test-utils/ReadableStreamSimulator.d.ts +1 -1
  49. package/types/lib/components/api-wrapper/types.d.ts +3 -3
  50. package/types/lib/components/api-wrapper/utils/format.d.ts +1 -1
  51. package/types/lib/components/api-wrapper/utils/request.d.ts +3 -3
  52. package/types/lib/components/api-wrapper/utils/stream.d.ts +1 -1
  53. package/types/lib/components/chat/chat.d.ts +1 -1
  54. package/types/lib/components/common/constants.d.ts +1 -1
  55. package/types/lib/components/common/media-container.d.ts +2 -2
  56. package/types/lib/components/common/mock-data.d.ts +4 -4
  57. package/types/lib/components/content/content.d.ts +1 -1
  58. package/types/lib/components/footer/footer-actions.d.ts +1 -1
  59. package/types/lib/components/footer/footer.d.ts +1 -1
  60. package/types/lib/components/footer/stories/shared.d.ts +7 -7
  61. package/types/lib/components/modal/modal.d.ts +5 -5
  62. package/types/lib/components/modal/stories/shared.d.ts +2 -2
  63. package/types/lib/components/modal-error/stories/shared.d.ts +1 -1
  64. package/types/lib/components/question/question.d.ts +1 -1
  65. package/types/lib/components/question/stories/shared.d.ts +1 -1
  66. package/types/lib/components/suggested-questions/mocks.d.ts +1 -1
  67. package/types/lib/components/suggested-questions/stories/shared.d.ts +1 -1
  68. package/types/lib/components/suggested-questions/suggested-questions.d.ts +1 -1
  69. package/types/lib/components/suggested-questions/suggestions.d.ts +1 -1
  70. package/types/lib/components/welcome-message/contextual-items-message.d.ts +1 -1
  71. package/types/lib/components/welcome-message/items-dropdown.d.ts +1 -1
  72. package/types/lib/components/welcome-message/stories/shared.d.ts +4 -4
  73. package/types/lib/components/welcome-message/unsupported-items-notice.d.ts +1 -1
  74. package/types/lib/components/welcome-message/welcome-message.d.ts +1 -1
  75. package/types/lib/contexts/AgentsContext.d.ts +1 -1
  76. package/types/lib/stories/shared.d.ts +3 -3
  77. 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
  };