@omniloy/sofia-sdk 0.0.3 → 0.0.5

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.
@@ -28052,7 +28052,7 @@ Z_.interceptors.request.use(
28052
28052
  async (e) => {
28053
28053
  if (e != null && e.headers) {
28054
28054
  const t = fP;
28055
- e.baseURL = pP, t && t !== "undefined" && (e.headers.Authorization = `Bearer ${t}`), !(e.data instanceof FormData) && !e.headers["Content-Type"] && (e.headers["Content-Type"] = "application/json"), Vk && (e.headers.doctor = Vk), Wk && (e.headers.patient = Wk);
28055
+ e.baseURL = pP, t && t !== "undefined" && (e.headers.Authorization = `Bearer ${t}`), !(e.data instanceof FormData) && !e.headers["Content-Type"] && (e.headers["Content-Type"] = "application/json"), Vk && (e.headers["x-doctor"] = Vk), Wk && (e.headers["x-patient"] = Wk);
28056
28056
  }
28057
28057
  return e;
28058
28058
  },
@@ -54680,7 +54680,7 @@ function Phe() {
54680
54680
  }
54681
54681
  }, i = n.languages.asciidoc = {
54682
54682
  "comment-block": {
54683
- pattern: /^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r)){0,1}\1/m,
54683
+ pattern: /^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,
54684
54684
  alias: "comment"
54685
54685
  },
54686
54686
  table: {
@@ -54698,7 +54698,7 @@ function Phe() {
54698
54698
  }
54699
54699
  },
54700
54700
  "passthrough-block": {
54701
- pattern: /^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r)){0,1}\1$/m,
54701
+ pattern: /^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,
54702
54702
  inside: {
54703
54703
  punctuation: /^\++|\++$/
54704
54704
  // See rest below
@@ -54706,7 +54706,7 @@ function Phe() {
54706
54706
  },
54707
54707
  // Literal blocks and listing blocks
54708
54708
  "literal-block": {
54709
- pattern: /^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r)){0,1}\1$/m,
54709
+ pattern: /^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,
54710
54710
  inside: {
54711
54711
  punctuation: /^(?:-+|\.+)|(?:-+|\.+)$/
54712
54712
  // See rest below
@@ -54714,7 +54714,7 @@ function Phe() {
54714
54714
  },
54715
54715
  // Sidebar blocks, quote blocks, example blocks and open blocks
54716
54716
  "other-block": {
54717
- pattern: /^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r)){0,1}\1$/m,
54717
+ pattern: /^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,
54718
54718
  inside: {
54719
54719
  punctuation: /^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/
54720
54720
  // See rest below
@@ -82968,7 +82968,14 @@ const rye = nye({
82968
82968
  }, []);
82969
82969
  V.useEffect(() => () => {
82970
82970
  h.current && clearTimeout(h.current);
82971
- }, []);
82971
+ }, []), V.useEffect(() => {
82972
+ const $ = (K) => {
82973
+ m.current && !m.current.contains(K.target) && b.current && !b.current.contains(K.target) && (u(!1), s(!1));
82974
+ };
82975
+ return E && document.addEventListener("mousedown", $), () => {
82976
+ document.removeEventListener("mousedown", $);
82977
+ };
82978
+ }, [E]);
82972
82979
  const R = V.useCallback(() => {
82973
82980
  h.current && (clearTimeout(h.current), h.current = null);
82974
82981
  }, []), T = V.useCallback(() => {
@@ -87491,9 +87498,9 @@ function Jwe(e, t, n, a) {
87491
87498
  apiUrl: e,
87492
87499
  defaultHeaders: {
87493
87500
  Authorization: `Bearer ${t}`,
87494
- IS_CHAT: "true",
87495
- doctor: n,
87496
- patient: a
87501
+ "x-is-chat": "true",
87502
+ "x-doctor": n,
87503
+ "x-patient": a
87497
87504
  }
87498
87505
  });
87499
87506
  }
@@ -87502,8 +87509,8 @@ function exe(e, t, n, a) {
87502
87509
  apiUrl: e,
87503
87510
  defaultHeaders: {
87504
87511
  Authorization: `Bearer ${t}`,
87505
- doctor: n,
87506
- patient: a
87512
+ "x-doctor": n,
87513
+ "x-patient": a
87507
87514
  }
87508
87515
  });
87509
87516
  }
@@ -89383,9 +89390,9 @@ const Uxe = ({
89383
89390
  }) => {
89384
89391
  const { chatThreadId: a, appointmentData: i, setLangGraphState: s } = na(), c = S0(), { apiKey: u } = ta(), { getThreads: d, setThreads: p } = sH(), h = {
89385
89392
  Authorization: `Bearer ${u}`,
89386
- IS_CHAT: "true",
89387
- doctor: i == null ? void 0 : i.doctorId,
89388
- patient: i == null ? void 0 : i.patientId
89393
+ "x-is-chat": "true",
89394
+ "x-doctor": i == null ? void 0 : i.doctorId,
89395
+ "x-patient": i == null ? void 0 : i.patientId
89389
89396
  }, m = Fxe({
89390
89397
  apiUrl: t,
89391
89398
  assistantId: n,