@inkeep/agents-ui 0.0.0-dev-20260508233535 → 0.0.0-dev-20260508234956
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.
- package/dist/index.cjs +1 -1
- package/dist/index.js +153 -156
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +2 -2
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +242 -226
- package/dist/primitives/components/embedded-chat.d.ts +1 -1
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +141 -144
- package/dist/primitives/providers/index.cjs +1 -1
- package/dist/primitives/providers/index.d.ts +0 -1
- package/dist/primitives/providers/index.js +48 -51
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +74 -75
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +153 -156
- package/dist/styled/index.cjs +1 -1
- package/dist/styled/index.js +145 -148
- package/package.json +1 -1
- package/dist/primitives/providers/chat-auth-provider.cjs +0 -1
- package/dist/primitives/providers/chat-auth-provider.d.ts +0 -15
- package/dist/primitives/providers/chat-auth-provider.js +0 -44
package/dist/styled/index.js
CHANGED
|
@@ -12,84 +12,82 @@ import { widgetToggle as g } from "./components/ui/recipes/widget-toggle.js";
|
|
|
12
12
|
import { DefaultToolComponent as M, EmbeddedChatMessagePart as y } from "./components/message.js";
|
|
13
13
|
import { DataSummaryGroup as F } from "./components/data-summary-group.js";
|
|
14
14
|
import { BaseEventsProvider as w, useBaseEvents as E } from "../primitives/providers/base-events-provider.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { ikp as we, jsxFactory as Ee } from "../primitives/components/factory.js";
|
|
15
|
+
import { ChatFormProvider as R, useChatForm as $, useChatFormState as T } from "../primitives/providers/chat-form-provider.js";
|
|
16
|
+
import { ChatHistoryProvider as W, useChatHistory as A } from "../primitives/providers/chat-history-provider.js";
|
|
17
|
+
import { InkeepConfigProvider as L, WebWidgetInteractionType as j, useInkeepConfig as G } from "../primitives/providers/config-provider.js";
|
|
18
|
+
import { FeedbackProvider as N, useMessageFeedback as Q } from "../primitives/providers/feedback-provider.js";
|
|
19
|
+
import { FormFieldProvider as q, useFormField as J } from "../primitives/providers/form-field-provider.js";
|
|
20
|
+
import { HelpMenuProvider as X, useHelpMenu as Y, useHelpMenuState as Z } from "../primitives/providers/help-menu-provider.js";
|
|
21
|
+
import { ChatMarkdownProvider as ee, useChatMarkdown as oe } from "../primitives/providers/markdown-provider.js";
|
|
22
|
+
import { MessageProvider as te, useMessage as ae, useOptionalMessage as me } from "../primitives/providers/message-provider.js";
|
|
23
|
+
import { RootProvider as ie } from "../primitives/providers/root-provider.js";
|
|
24
|
+
import { SourceItemProvider as de, useSourceItem as ne } from "../primitives/providers/source-item-provider.js";
|
|
25
|
+
import { ThemeProvider as fe } from "../primitives/providers/theme-provider.js";
|
|
26
|
+
import { WidgetProvider as xe, useWidget as he } from "../primitives/providers/widget-provider.js";
|
|
27
|
+
import { SidebarChatProvider as be, useInkeepSidebarChat as Se, useOptionalSidebarChat as ce, useSidebarChat as Pe } from "../primitives/providers/sidebar-chat-provider.js";
|
|
28
|
+
import { ChatBubbleProvider as Ie, useChatBubble as ge, useInkeepChatBubble as Be, useOptionalChatBubble as Me } from "../primitives/providers/chat-bubble-provider.js";
|
|
29
|
+
import { ikp as ke, jsxFactory as Fe } from "../primitives/components/factory.js";
|
|
31
30
|
import * as p from "../primitives/components/embedded-chat.js";
|
|
32
31
|
import * as d from "../primitives/components/sidebar-chat/index.js";
|
|
33
|
-
import { ChatProvider as
|
|
32
|
+
import { ChatProvider as we, useChat as Ee } from "../primitives/components/embedded-chat/chat-provider.js";
|
|
34
33
|
import * as n from "../primitives/components/embedded-search.js";
|
|
35
|
-
import { SearchProvider as
|
|
34
|
+
import { SearchProvider as Re, SearchProviderImpl as $e, useSearch as Te } from "../primitives/components/embedded-search/search-provider.js";
|
|
36
35
|
import * as u from "../primitives/components/modal.js";
|
|
37
|
-
import { ModalProvider as
|
|
38
|
-
import * as
|
|
39
|
-
import * as
|
|
36
|
+
import { ModalProvider as We, useModal as Ae } from "../primitives/components/modal/modal-provider.js";
|
|
37
|
+
import * as f from "../primitives/components/chat-button.js";
|
|
38
|
+
import * as C from "../primitives/components/searchbar.js";
|
|
40
39
|
import * as x from "../primitives/components/chat-bubble/index.js";
|
|
41
40
|
import * as h from "../primitives/components/data-summaries.js";
|
|
42
41
|
import * as l from "../primitives/components/chat-history/index.js";
|
|
43
|
-
import { useBoolean as
|
|
44
|
-
import { useComponentClassNames as
|
|
45
|
-
import { useContainerSize as
|
|
46
|
-
import { useInkeepOpenState as
|
|
47
|
-
import { useCopyToClipboard as
|
|
48
|
-
import { useInstantUpdate as
|
|
49
|
-
import { useIsMounted as
|
|
50
|
-
import { useMediaQuery as
|
|
51
|
-
import { useResizeObserver as
|
|
52
|
-
import { useScrollingFades as
|
|
53
|
-
import { useSettleAction as
|
|
54
|
-
import { useSimpleScroll as
|
|
55
|
-
import { callAll as
|
|
56
|
-
import { ChatBubbleComponentIds as
|
|
57
|
-
import { composeRefs as
|
|
58
|
-
import { mergeProps as
|
|
59
|
-
import { Portal as
|
|
60
|
-
import { CustomIcon as
|
|
61
|
-
import { BuiltInIconRenderer as
|
|
62
|
-
import { PortalWithTheme as
|
|
63
|
-
import { Command as
|
|
64
|
-
import { ErrorBoundary as
|
|
65
|
-
import { InkeepShadow as
|
|
42
|
+
import { useBoolean as Le } from "../primitives/hooks/use-boolean.js";
|
|
43
|
+
import { useComponentClassNames as Ge } from "../primitives/hooks/use-component-classnames.js";
|
|
44
|
+
import { useContainerSize as Ne } from "../primitives/hooks/use-container-size.js";
|
|
45
|
+
import { useInkeepOpenState as Ue } from "../primitives/hooks/use-inkeep-open-state.js";
|
|
46
|
+
import { useCopyToClipboard as Je } from "../primitives/hooks/use-copy-to-clipboard.js";
|
|
47
|
+
import { useInstantUpdate as Xe } from "../primitives/hooks/use-instant-update.js";
|
|
48
|
+
import { useIsMounted as Ze } from "../primitives/hooks/use-is-mounted.js";
|
|
49
|
+
import { useMediaQuery as eo } from "../primitives/hooks/use-media-query.js";
|
|
50
|
+
import { useResizeObserver as ro } from "../primitives/hooks/use-resize-observer.js";
|
|
51
|
+
import { useScrollingFades as ao, useScrollingFadesHorizontal as mo } from "../primitives/hooks/use-scrolling-fades.js";
|
|
52
|
+
import { useSettleAction as io } from "../primitives/hooks/use-settle-action.js";
|
|
53
|
+
import { useSimpleScroll as no } from "../primitives/hooks/use-simple-scroll.js";
|
|
54
|
+
import { callAll as fo, dataAttr as Co, getInitials as xo, getMessageContent as ho, isCitationArtifact as lo, isString as bo, maybeRender as So, toKebabCase as co } from "../primitives/utils/misc.js";
|
|
55
|
+
import { ChatBubbleComponentIds as vo, DataSummaryComponentIds as Io, SearchBarComponentIds as go, SidebarChatComponentIds as Bo, aiChatComponentIds as Mo, aiChatHistoryComponentIds as yo, aiSearchComponentIds as ko, chatButtonComponentIds as Fo, componentIDs as Ho, markDownComponentIds as wo, miscellanousComponentIds as Eo, modalComponentIds as Do } from "../primitives/utils/component-ids.js";
|
|
56
|
+
import { composeRefs as $o, useComposedRefs as To } from "../primitives/utils/compose-refs.js";
|
|
57
|
+
import { mergeProps as Wo } from "../primitives/utils/merge-props.js";
|
|
58
|
+
import { Portal as zo } from "../primitives/atoms/portal.js";
|
|
59
|
+
import { CustomIcon as jo } from "../primitives/atoms/icons/custom-icon.js";
|
|
60
|
+
import { BuiltInIconRenderer as Ko } from "../primitives/atoms/icons/built-in-icon-renderer.js";
|
|
61
|
+
import { PortalWithTheme as Qo } from "../primitives/atoms/portal-with-theme.js";
|
|
62
|
+
import { Command as qo, CommandDialog as Jo, CommandEmpty as Vo, CommandInput as Xo, CommandItem as Yo, CommandList as Zo, CommandLoading as _o, CommandRoot as er, CommandSeparator as or, defaultFilter as rr, useCommandState as tr, useCommandStore as ar } from "../primitives/atoms/cmdk/index.js";
|
|
63
|
+
import { ErrorBoundary as sr } from "../primitives/atoms/error-boundary.js";
|
|
64
|
+
import { InkeepShadow as pr, InkeepShadowProvider as dr, ShadowContext as nr, useShadow as ur } from "../primitives/atoms/shadow/context.js";
|
|
66
65
|
export {
|
|
67
66
|
w as BaseEventsProvider,
|
|
68
|
-
|
|
69
|
-
R as ChatAuthProvider,
|
|
67
|
+
Ko as BuiltInIconRenderer,
|
|
70
68
|
t as ChatBubble,
|
|
71
|
-
|
|
69
|
+
vo as ChatBubbleComponentIds,
|
|
72
70
|
x as ChatBubblePrimitive,
|
|
73
|
-
|
|
71
|
+
Ie as ChatBubbleProvider,
|
|
74
72
|
s as ChatButton,
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
f as ChatButtonPrimitive,
|
|
74
|
+
R as ChatFormProvider,
|
|
77
75
|
o as ChatHistory,
|
|
78
76
|
l as ChatHistoryPrimitive,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
77
|
+
W as ChatHistoryProvider,
|
|
78
|
+
ee as ChatMarkdownProvider,
|
|
79
|
+
we as ChatProvider,
|
|
80
|
+
qo as Command,
|
|
81
|
+
Jo as CommandDialog,
|
|
82
|
+
Vo as CommandEmpty,
|
|
83
|
+
Xo as CommandInput,
|
|
84
|
+
Yo as CommandItem,
|
|
85
|
+
Zo as CommandList,
|
|
86
|
+
_o as CommandLoading,
|
|
87
|
+
er as CommandRoot,
|
|
88
|
+
or as CommandSeparator,
|
|
89
|
+
jo as CustomIcon,
|
|
90
|
+
Io as DataSummaryComponentIds,
|
|
93
91
|
F as DataSummaryGroup,
|
|
94
92
|
h as DataSummaryPrimitive,
|
|
95
93
|
M as DefaultToolComponent,
|
|
@@ -98,97 +96,96 @@ export {
|
|
|
98
96
|
p as EmbeddedChatPrimitive,
|
|
99
97
|
a as EmbeddedSearch,
|
|
100
98
|
n as EmbeddedSearchPrimitive,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
99
|
+
sr as ErrorBoundary,
|
|
100
|
+
N as FeedbackProvider,
|
|
101
|
+
q as FormFieldProvider,
|
|
102
|
+
X as HelpMenuProvider,
|
|
103
|
+
L as InkeepConfigProvider,
|
|
104
|
+
pr as InkeepShadow,
|
|
105
|
+
dr as InkeepShadowProvider,
|
|
108
106
|
v as LoadingIndicator,
|
|
109
|
-
|
|
107
|
+
te as MessageProvider,
|
|
110
108
|
m as Modal,
|
|
111
109
|
u as ModalPrimitive,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
We as ModalProvider,
|
|
111
|
+
zo as Portal,
|
|
112
|
+
Qo as PortalWithTheme,
|
|
113
|
+
ie as RootProvider,
|
|
116
114
|
i as SearchBar,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
115
|
+
go as SearchBarComponentIds,
|
|
116
|
+
C as SearchBarPrimitive,
|
|
117
|
+
Re as SearchProvider,
|
|
118
|
+
$e as SearchProviderImpl,
|
|
121
119
|
c as Shadow,
|
|
122
|
-
|
|
120
|
+
nr as ShadowContext,
|
|
123
121
|
r as SidebarChat,
|
|
124
|
-
|
|
122
|
+
Bo as SidebarChatComponentIds,
|
|
125
123
|
d as SidebarChatPrimitive,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
124
|
+
be as SidebarChatProvider,
|
|
125
|
+
de as SourceItemProvider,
|
|
126
|
+
fe as ThemeProvider,
|
|
127
|
+
j as WebWidgetInteractionType,
|
|
128
|
+
xe as WidgetProvider,
|
|
129
|
+
Mo as aiChatComponentIds,
|
|
130
|
+
yo as aiChatHistoryComponentIds,
|
|
131
|
+
ko as aiSearchComponentIds,
|
|
132
|
+
fo as callAll,
|
|
133
|
+
Fo as chatButtonComponentIds,
|
|
134
|
+
Ho as componentIDs,
|
|
135
|
+
$o as composeRefs,
|
|
136
|
+
Co as dataAttr,
|
|
137
|
+
rr as defaultFilter,
|
|
138
|
+
xo as getInitials,
|
|
139
|
+
ho as getMessageContent,
|
|
140
|
+
ke as ikp,
|
|
141
|
+
lo as isCitationArtifact,
|
|
142
|
+
bo as isString,
|
|
143
|
+
Fe as jsxFactory,
|
|
144
|
+
wo as markDownComponentIds,
|
|
145
|
+
So as maybeRender,
|
|
146
|
+
Wo as mergeProps,
|
|
147
|
+
Eo as miscellanousComponentIds,
|
|
148
|
+
Do as modalComponentIds,
|
|
149
|
+
co as toKebabCase,
|
|
152
150
|
E as useBaseEvents,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
Y as
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
Se as useWidget,
|
|
151
|
+
Le as useBoolean,
|
|
152
|
+
Ee as useChat,
|
|
153
|
+
ge as useChatBubble,
|
|
154
|
+
$ as useChatForm,
|
|
155
|
+
T as useChatFormState,
|
|
156
|
+
A as useChatHistory,
|
|
157
|
+
oe as useChatMarkdown,
|
|
158
|
+
tr as useCommandState,
|
|
159
|
+
ar as useCommandStore,
|
|
160
|
+
Ge as useComponentClassNames,
|
|
161
|
+
To as useComposedRefs,
|
|
162
|
+
Ne as useContainerSize,
|
|
163
|
+
Je as useCopyToClipboard,
|
|
164
|
+
J as useFormField,
|
|
165
|
+
Y as useHelpMenu,
|
|
166
|
+
Z as useHelpMenuState,
|
|
167
|
+
Be as useInkeepChatBubble,
|
|
168
|
+
G as useInkeepConfig,
|
|
169
|
+
Ue as useInkeepOpenState,
|
|
170
|
+
Se as useInkeepSidebarChat,
|
|
171
|
+
Xe as useInstantUpdate,
|
|
172
|
+
Ze as useIsMounted,
|
|
173
|
+
eo as useMediaQuery,
|
|
174
|
+
ae as useMessage,
|
|
175
|
+
Q as useMessageFeedback,
|
|
176
|
+
Ae as useModal,
|
|
177
|
+
Me as useOptionalChatBubble,
|
|
178
|
+
me as useOptionalMessage,
|
|
179
|
+
ce as useOptionalSidebarChat,
|
|
180
|
+
ro as useResizeObserver,
|
|
181
|
+
ao as useScrollingFades,
|
|
182
|
+
mo as useScrollingFadesHorizontal,
|
|
183
|
+
Te as useSearch,
|
|
184
|
+
io as useSettleAction,
|
|
185
|
+
ur as useShadow,
|
|
186
|
+
Pe as useSidebarChat,
|
|
187
|
+
no as useSimpleScroll,
|
|
188
|
+
ne as useSourceItem,
|
|
189
|
+
he as useWidget,
|
|
193
190
|
g as widgetToggle
|
|
194
191
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),u=require("react"),S=require("./config-provider.cjs"),T=require("../components/modal/modal-provider.cjs"),m=require("./chat-bubble-provider.cjs"),x=require("./sidebar-chat-provider.cjs"),B=require("../hooks/use-auth-token.cjs"),w=require("../components/embedded-chat/use-captcha.cjs"),I=require("../hooks/use-anonymous-session.cjs"),c=u.createContext(void 0),j=({children:e})=>{const{baseSettings:t,aiChatSettings:h}=S.useInkeepConfig(),{shouldBypassCaptcha:d,privacyPreferences:l}=t,{baseUrl:s,appId:C,apiKey:p}=h,A=T.useModal(),b=m.useOptionalChatBubble(),v=x.useOptionalSidebarChat(),g=A?.isOpen??b?.isOpen??v?.isOpen??!0,{authToken:n,isLoading:o,refreshToken:q}=B.useAuthToken(),y=!!t.getAuthToken,r=!!n,{getCaptchaHeader:a,invalidate:i}=w.useCaptcha({baseUrl:s,shouldBypassCaptcha:d||!!p,shouldMakeInitialRequest:g}),{sessionToken:P,refreshSession:f}=I.useAnonymousSession({baseUrl:s,appId:C,getCaptchaHeader:a,invalidateCaptcha:i,optOutAllAnalytics:l?.optOutAllAnalytics,enabled:!r&&!o}),k={authToken:n,isAuthenticated:r,isAuthLoading:o,isAuthConfigured:y,refreshAuthToken:q,sessionToken:P,refreshSession:f,getCaptchaHeader:a,invalidateCaptcha:i};return O.jsx(c.Provider,{value:k,children:e})},M=()=>{const e=u.useContext(c);if(!e)throw new Error("useChatAuth must be used within a ChatAuthProvider");return e};exports.ChatAuthProvider=j;exports.useChatAuth=M;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface ChatAuthContextValue {
|
|
2
|
-
authToken: string | null;
|
|
3
|
-
isAuthenticated: boolean;
|
|
4
|
-
isAuthLoading: boolean;
|
|
5
|
-
isAuthConfigured: boolean;
|
|
6
|
-
refreshAuthToken: () => Promise<string | null>;
|
|
7
|
-
sessionToken: string | null;
|
|
8
|
-
refreshSession: () => Promise<string | null>;
|
|
9
|
-
getCaptchaHeader: () => Promise<Record<string, string>>;
|
|
10
|
-
invalidateCaptcha: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const ChatAuthProvider: React.FC<{
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
}>;
|
|
15
|
-
export declare const useChatAuth: () => ChatAuthContextValue;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as y } from "react/jsx-runtime";
|
|
3
|
-
import { useContext as x, createContext as T } from "react";
|
|
4
|
-
import { useInkeepConfig as S } from "./config-provider.js";
|
|
5
|
-
import { useModal as w } from "../components/modal/modal-provider.js";
|
|
6
|
-
import { useOptionalChatBubble as B } from "./chat-bubble-provider.js";
|
|
7
|
-
import { useOptionalSidebarChat as I } from "./sidebar-chat-provider.js";
|
|
8
|
-
import { useAuthToken as P } from "../hooks/use-auth-token.js";
|
|
9
|
-
import { useCaptcha as L } from "../components/embedded-chat/use-captcha.js";
|
|
10
|
-
import { useAnonymousSession as M } from "../hooks/use-anonymous-session.js";
|
|
11
|
-
const u = T(void 0), F = ({ children: t }) => {
|
|
12
|
-
const { baseSettings: e, aiChatSettings: h } = S(), { shouldBypassCaptcha: c, privacyPreferences: p } = e, { baseUrl: o, appId: d, apiKey: l } = h, m = w(), C = B(), f = I(), A = m?.isOpen ?? C?.isOpen ?? f?.isOpen ?? !0, { authToken: s, isLoading: n, refreshToken: b } = P(), g = !!e.getAuthToken, a = !!s, { getCaptchaHeader: i, invalidate: r } = L({
|
|
13
|
-
baseUrl: o,
|
|
14
|
-
shouldBypassCaptcha: c || !!l,
|
|
15
|
-
shouldMakeInitialRequest: A
|
|
16
|
-
}), { sessionToken: k, refreshSession: v } = M({
|
|
17
|
-
baseUrl: o,
|
|
18
|
-
appId: d,
|
|
19
|
-
getCaptchaHeader: i,
|
|
20
|
-
invalidateCaptcha: r,
|
|
21
|
-
optOutAllAnalytics: p?.optOutAllAnalytics,
|
|
22
|
-
enabled: !a && !n
|
|
23
|
-
}), O = {
|
|
24
|
-
authToken: s,
|
|
25
|
-
isAuthenticated: a,
|
|
26
|
-
isAuthLoading: n,
|
|
27
|
-
isAuthConfigured: g,
|
|
28
|
-
refreshAuthToken: b,
|
|
29
|
-
sessionToken: k,
|
|
30
|
-
refreshSession: v,
|
|
31
|
-
getCaptchaHeader: i,
|
|
32
|
-
invalidateCaptcha: r
|
|
33
|
-
};
|
|
34
|
-
return /* @__PURE__ */ y(u.Provider, { value: O, children: t });
|
|
35
|
-
}, G = () => {
|
|
36
|
-
const t = x(u);
|
|
37
|
-
if (!t)
|
|
38
|
-
throw new Error("useChatAuth must be used within a ChatAuthProvider");
|
|
39
|
-
return t;
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
F as ChatAuthProvider,
|
|
43
|
-
G as useChatAuth
|
|
44
|
-
};
|