@snf/access-qa-bot 3.3.1 → 3.3.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.
@@ -15073,8 +15073,8 @@ const Gm = Ae.forwardRef((e, n) => {
15073
15073
  Gm.displayName = "ProgrammaticQABot";
15074
15074
  const ki = {
15075
15075
  // Q&A API endpoints
15076
- QA_ENDPOINT: "https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",
15077
- RATING_ENDPOINT: "https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",
15076
+ QA_ENDPOINT: "http://localhost:8000/api/v1/query",
15077
+ RATING_ENDPOINT: "http://localhost:8000/api/v1/rating",
15078
15078
  // Metrics/XDMoD API endpoints
15079
15079
  METRICS_API_ENDPOINT: "https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",
15080
15080
  METRICS_RATING_ENDPOINT: "https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",
@@ -15086,9 +15086,7 @@ const ki = {
15086
15086
  }, Oo = {
15087
15087
  BOT_NAME: "ACCESS Q&A",
15088
15088
  LOGO: "https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",
15089
- WELCOME_MESSAGE: `Hello! What can I help you with?
15090
-
15091
- *This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.* [Privacy Notice](https://support.access-ci.org/tools/access-qa-tool/privacy)`,
15089
+ WELCOME_MESSAGE: "Hello! What can I help you with?",
15092
15090
  WELCOME_MESSAGE_LOGGED_OUT: "To ask questions, please log in.",
15093
15091
  LOGIN_URL: "/login",
15094
15092
  PRIMARY_COLOR: "#1a5b6e",
@@ -15116,7 +15114,10 @@ function Vm({ welcome: e, setTicketForm: n, isLoggedIn: a, trackEvent: i }) {
15116
15114
  },
15117
15115
  // Transition step for logged-in users - absorbs button click, waits for real question
15118
15116
  go_ahead_and_ask: {
15119
- message: "Go ahead and ask your question! I'll do my best to help.",
15117
+ message: `Go ahead and ask your question! I'll do my best to help.
15118
+
15119
+ <em>This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.</em> <a href="https://support.access-ci.org/tools/access-qa-tool/privacy">Privacy Notice</a>`,
15120
+ renderHtml: ["BOT"],
15120
15121
  path: "qa_loop"
15121
15122
  }
15122
15123
  };
@@ -16673,7 +16674,9 @@ function uv({ sessionId: e, apiKey: n, trackEvent: a }) {
16673
16674
  return {
16674
16675
  // Entry point with instructions
16675
16676
  metrics_intro: {
16676
- message: `Please type your question about usage and performance metrics (XDMoD) below. You can see some <a target="_blank" href="${ki.METRICS_QUESTIONS_URL}">examples here</a>.`,
16677
+ message: `Please type your question about usage and performance metrics (XDMoD) below. You can see some <a target="_blank" href="${ki.METRICS_QUESTIONS_URL}">examples here</a>.
16678
+
16679
+ <em>This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.</em> <a href="https://support.access-ci.org/tools/access-qa-tool/privacy">Privacy Notice</a>`,
16677
16680
  renderHtml: ["BOT"],
16678
16681
  path: "metrics_loop"
16679
16682
  },
@@ -16868,6 +16871,18 @@ const dd = "access-qa-bot-shadow-overrides", dv = `
16868
16871
  color: white !important;
16869
16872
  transform: translateY(0) !important;
16870
16873
  }
16874
+
16875
+ .rcb-bot-message a,
16876
+ .rcb-chat-window .rcb-bot-message a:link,
16877
+ .rcb-chat-window .rcb-bot-message a:visited {
16878
+ color: #ffffff !important;
16879
+ text-decoration: underline !important;
16880
+ }
16881
+
16882
+ .rcb-bot-message a:hover {
16883
+ opacity: 0.85;
16884
+ text-decoration: underline !important;
16885
+ }
16871
16886
  `;
16872
16887
  function fv(e) {
16873
16888
  if (!e) return;
@@ -16940,12 +16955,12 @@ const pv = Pn(
16940
16955
  isLoggedIn: i,
16941
16956
  trackEvent: j
16942
16957
  }), ie = rv({
16943
- ticketForm: U,
16958
+ ticketForm: {},
16944
16959
  setTicketForm: H,
16945
16960
  userInfo: z,
16946
16961
  trackEvent: j
16947
16962
  }), se = iv({
16948
- ticketForm: U,
16963
+ ticketForm: {},
16949
16964
  setTicketForm: H,
16950
16965
  userInfo: z,
16951
16966
  trackEvent: j
@@ -16960,7 +16975,7 @@ const pv = Pn(
16960
16975
  ...be
16961
16976
  };
16962
16977
  return Ym(he, { disableOnOptions: !0 });
16963
- }, [Z, U, z, W, a, i, j]);
16978
+ }, [Z, z, W, a, i, j]);
16964
16979
  return /* @__PURE__ */ X("div", { ref: N, children: /* @__PURE__ */ X(
16965
16980
  Zu,
16966
16981
  {