@frontera-sdk/chat-ui 1.50.78 → 1.50.80

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 (46) hide show
  1. package/dist/agent-picker.js +6 -6
  2. package/dist/{capture-NO5ZIGP6.js → capture-G4CDPSBH.js} +1 -1
  3. package/dist/chat.d.ts +1 -1
  4. package/dist/chat.js +4594 -941
  5. package/dist/{chunk-V44YVBRX.js → chunk-2P4IEVOQ.js} +29 -12
  6. package/dist/{chunk-WMN6BPPS.js → chunk-4FRTPVJT.js} +2 -2
  7. package/dist/{chunk-UTKQ6G2A.js → chunk-5B25DNOG.js} +7 -7
  8. package/dist/{chunk-FTLVGUG5.js → chunk-7AT2LRVW.js} +2640 -153
  9. package/dist/{chunk-FNIHHKOZ.js → chunk-C2TZSGKK.js} +1374 -186
  10. package/dist/{chunk-BDJFVRYR.js → chunk-C3HW5S2Z.js} +57 -18
  11. package/dist/chunk-CWAOLMFS.js +32 -0
  12. package/dist/{chunk-26L3ST3H.js → chunk-EFFOOCIK.js} +5975 -639
  13. package/dist/{chunk-J7EWRXEC.js → chunk-EXPHCRFP.js} +3 -3
  14. package/dist/{chunk-PH7AYVSS.js → chunk-FLOAEPRU.js} +4 -4
  15. package/dist/chunk-LGVMMBL3.js +33 -0
  16. package/dist/{chunk-IQXJEZM7.js → chunk-LOBDKA2D.js} +328 -32
  17. package/dist/{chunk-FDGBZFGN.js → chunk-PKNEC4LJ.js} +528 -12
  18. package/dist/{chunk-TSKFBMGC.js → chunk-PUMRNN3R.js} +117 -66
  19. package/dist/{chunk-S3ECTKA3.js → chunk-QBV7MAFV.js} +30 -4
  20. package/dist/{chunk-F6PEZE7A.js → chunk-T5SANYSX.js} +3 -10
  21. package/dist/{chunk-AFVU5VT6.js → chunk-TUDJ35AB.js} +1071 -87
  22. package/dist/{chunk-ROJM44GB.js → chunk-UWKO24VT.js} +28 -2
  23. package/dist/{chunk-KHF7OM3F.js → chunk-UZ6RDWCT.js} +4 -4
  24. package/dist/chunk-X3QVICX7.js +32 -0
  25. package/dist/client.d.ts +3 -3
  26. package/dist/client.js +1 -1
  27. package/dist/header.d.ts +1 -1
  28. package/dist/header.js +15 -15
  29. package/dist/message.js +14 -15
  30. package/dist/new-session.d.ts +1 -1
  31. package/dist/new-session.js +7 -8
  32. package/dist/parts.js +6 -6
  33. package/dist/{pdf-deck-view-inner-AY4FYDAJ.js → pdf-deck-view-inner-KW6RIALH.js} +7 -8
  34. package/dist/{pdf-document-view-inner-NC5MBN7X.js → pdf-document-view-inner-AJEP5IJC.js} +6 -7
  35. package/dist/{pdf-viewer-inner-GPES3KG2.js → pdf-viewer-inner-CXWPRACH.js} +2 -2
  36. package/dist/pending-cards.js +7 -7
  37. package/dist/platform.css +1 -1
  38. package/package.json +7 -4
  39. package/dist/chunk-6BPHEBCF.js +0 -639
  40. package/dist/chunk-IXDM5R55.js +0 -23
  41. package/dist/chunk-XLX3L3P4.js +0 -43
  42. package/dist/vega-chart-block-NQADYNWQ.js +0 -2857
  43. package/dist/{chunk-7ADM3CKD.js → chunk-6JLWE7M3.js} +0 -0
  44. package/dist/{pdf-cover-thumbnail-inner-4N2Q5AAG.js → pdf-cover-thumbnail-inner-B2P6S25B.js} +0 -0
  45. package/dist/{types-BDqLaBfH.d.ts → types-BZhoOcz2.d.ts} +3 -3
  46. /package/dist/{univer-workbook-LSBVETAQ.js → univer-workbook-PENO65OQ.js} +0 -0
@@ -1,23 +0,0 @@
1
- 'use client';
2
- import { useSyncExternalStore } from 'react';
3
-
4
- // src/vendor/ui/hooks/use-is-mobile.ts
5
- var MOBILE_BREAKPOINT = 768;
6
- var QUERY = `(max-width: ${MOBILE_BREAKPOINT - 1}px)`;
7
- var query = null;
8
- function mediaQuery() {
9
- if (!query) query = window.matchMedia(QUERY);
10
- return query;
11
- }
12
- function subscribe(onChange) {
13
- const mql = mediaQuery();
14
- mql.addEventListener("change", onChange);
15
- return () => mql.removeEventListener("change", onChange);
16
- }
17
- var getSnapshot = () => mediaQuery().matches;
18
- var getServerSnapshot = () => false;
19
- function useIsMobile() {
20
- return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
21
- }
22
-
23
- export { MOBILE_BREAKPOINT, useIsMobile };
@@ -1,43 +0,0 @@
1
- 'use client';
2
- import { clsx } from 'clsx';
3
- import { twMerge } from 'tailwind-merge';
4
- import { createContext, useContext, useState, useEffect } from 'react';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- // src/vendor/lib/utils.ts
8
- function cn(...inputs) {
9
- return twMerge(clsx(inputs));
10
- }
11
- var PortalRootContext = createContext(null);
12
- function usePortalContainer() {
13
- return useContext(PortalRootContext);
14
- }
15
- function PortalRootProvider({
16
- dark,
17
- style,
18
- children
19
- }) {
20
- const [root, setRoot] = useState(null);
21
- useEffect(() => {
22
- const element = document.createElement("div");
23
- element.setAttribute("data-frontera-portal-root", "");
24
- document.body.appendChild(element);
25
- setRoot(element);
26
- return () => {
27
- element.remove();
28
- };
29
- }, []);
30
- useEffect(() => {
31
- if (!root) return;
32
- root.className = `fr-shell${dark ? " dark" : ""}`;
33
- root.removeAttribute("style");
34
- for (const [key, value] of Object.entries(style ?? {})) {
35
- if (typeof value !== "string") continue;
36
- if (key.startsWith("--")) root.style.setProperty(key, value);
37
- else root.style.setProperty(key, value);
38
- }
39
- }, [root, dark, style]);
40
- return /* @__PURE__ */ jsx(PortalRootContext.Provider, { value: root, children });
41
- }
42
-
43
- export { PortalRootProvider, cn, usePortalContainer };