@super_studio/ecforce-ai-agent-react 0.6.0-canary.6 → 1.0.0-canary.7
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/_virtual/_@oxc-project_runtime@0.103.0/helpers/defineProperty.mjs +14 -0
- package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/extends.mjs +13 -0
- package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/objectDestructuringEmpty.mjs +7 -0
- package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/objectSpread2.mjs +27 -0
- package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/objectWithoutProperties.mjs +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/objectWithoutPropertiesLoose.mjs +13 -0
- package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/toPrimitive.mjs +16 -0
- package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/toPropertyKey.mjs +11 -0
- package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/typeof.mjs +12 -0
- package/dist/components/chatbot-frame.d.mts +53 -0
- package/dist/components/chatbot-frame.d.mts.map +1 -0
- package/dist/components/chatbot-frame.mjs +99 -0
- package/dist/components/chatbot-frame.mjs.map +1 -0
- package/dist/components/chatbot-sheet.d.mts +15 -0
- package/dist/components/chatbot-sheet.d.mts.map +1 -0
- package/dist/components/chatbot-sheet.mjs +40 -0
- package/dist/components/chatbot-sheet.mjs.map +1 -0
- package/dist/components/lottie-ai-icon.mjs +60 -0
- package/dist/components/lottie-ai-icon.mjs.map +1 -0
- package/dist/components/provider/chatbot-provider.d.mts +48 -0
- package/dist/components/provider/chatbot-provider.d.mts.map +1 -0
- package/dist/components/provider/chatbot-provider.mjs +46 -0
- package/dist/components/provider/chatbot-provider.mjs.map +1 -0
- package/dist/components/provider/use-chatbot-frame-handler.d.mts +17 -0
- package/dist/components/provider/use-chatbot-frame-handler.d.mts.map +1 -0
- package/dist/components/provider/use-chatbot-frame-handler.mjs +93 -0
- package/dist/components/provider/use-chatbot-frame-handler.mjs.map +1 -0
- package/dist/components/provider/use-chatbot-window-states.mjs +27 -0
- package/dist/components/provider/use-chatbot-window-states.mjs.map +1 -0
- package/dist/components/sheet.d.mts +18 -0
- package/dist/components/sheet.d.mts.map +1 -0
- package/dist/components/sheet.mjs +117 -0
- package/dist/components/sheet.mjs.map +1 -0
- package/dist/components/tooltip.d.mts +38 -0
- package/dist/components/tooltip.d.mts.map +1 -0
- package/dist/components/tooltip.mjs +36 -0
- package/dist/components/tooltip.mjs.map +1 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +6 -618
- package/dist/lib/constants.mjs +6 -0
- package/dist/lib/constants.mjs.map +1 -0
- package/package.json +16 -25
- package/src/components/chatbot-frame.tsx +2 -0
- package/src/components/chatbot-sheet.tsx +2 -0
- package/src/components/lottie-ai-icon.tsx +2 -0
- package/src/components/provider/chatbot-provider.tsx +2 -0
- package/src/components/provider/use-chatbot-frame-handler.tsx +2 -0
- package/src/components/provider/use-chatbot-window-states.tsx +2 -0
- package/src/components/sheet.tsx +2 -0
- package/src/components/tooltip.tsx +2 -0
- package/dist/components/chatbot-frame.d.ts +0 -39
- package/dist/components/chatbot-frame.d.ts.map +0 -1
- package/dist/components/chatbot-sheet.d.ts +0 -8
- package/dist/components/chatbot-sheet.d.ts.map +0 -1
- package/dist/components/lottie-ai-icon.d.ts +0 -13
- package/dist/components/lottie-ai-icon.d.ts.map +0 -1
- package/dist/components/provider/chatbot-provider.d.ts +0 -42
- package/dist/components/provider/chatbot-provider.d.ts.map +0 -1
- package/dist/components/provider/use-chatbot-frame-handler.d.ts +0 -57
- package/dist/components/provider/use-chatbot-frame-handler.d.ts.map +0 -1
- package/dist/components/provider/use-chatbot-window-states.d.ts +0 -11
- package/dist/components/provider/use-chatbot-window-states.d.ts.map +0 -1
- package/dist/components/sheet.d.ts +0 -12
- package/dist/components/sheet.d.ts.map +0 -1
- package/dist/components/tooltip.d.ts +0 -20
- package/dist/components/tooltip.d.ts.map +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -619
- package/dist/lib/constants.d.ts +0 -2
- package/dist/lib/constants.d.ts.map +0 -1
- package/dist/styles/chatbot-sheet.css +0 -122
- package/dist/styles/preset.css +0 -18
package/src/components/sheet.tsx
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export type ChatbotFrameProps = {
|
|
2
|
-
/** 初期化時のチャットID */
|
|
3
|
-
initialConfig?: {
|
|
4
|
-
agentId?: string;
|
|
5
|
-
chatId?: string;
|
|
6
|
-
model?: string;
|
|
7
|
-
};
|
|
8
|
-
/** アプリ名のメタデータ */
|
|
9
|
-
appName?: string;
|
|
10
|
-
/** セッションを取得するための関数 */
|
|
11
|
-
getSession?: () => Promise<{
|
|
12
|
-
token: string;
|
|
13
|
-
expiresAt: string;
|
|
14
|
-
}>;
|
|
15
|
-
/**
|
|
16
|
-
* trueになるまで、初期化されません。
|
|
17
|
-
* 初期化せれたあとはもう使われません。
|
|
18
|
-
* @default true
|
|
19
|
-
*/
|
|
20
|
-
enabled?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* エージェントのURLを上書きしたい場合にこちらを使います。
|
|
23
|
-
* 基本的には使われません。
|
|
24
|
-
* [CHATBOT_URL]の環境変数でも設定可能。
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
|
-
url?: string;
|
|
28
|
-
className?: string;
|
|
29
|
-
};
|
|
30
|
-
export declare function ChatbotFrame({ appName, initialConfig, getSession, enabled, url, className, }: ChatbotFrameProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
export type SessionData = {
|
|
32
|
-
token: string;
|
|
33
|
-
expiresAt: string;
|
|
34
|
-
};
|
|
35
|
-
export type UseSessionProps = {
|
|
36
|
-
getSession?: () => Promise<SessionData>;
|
|
37
|
-
};
|
|
38
|
-
export declare function useSession({ getSession }: UseSessionProps): string | undefined;
|
|
39
|
-
//# sourceMappingURL=chatbot-frame.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot-frame.d.ts","sourceRoot":"","sources":["../../src/components/chatbot-frame.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,kBAAkB;IAClB,aAAa,CAAC,EAAE;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,iBAAiB;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sBAAsB;IACtB,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC;QACzB,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;IACH;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,aAAa,EACb,UAAU,EACV,OAAc,EACd,GAAG,EACH,SAAS,GACV,EAAE,iBAAiB,2CAiEnB;AAsBD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;CACzC,CAAC;AAEF,wBAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,EAAE,eAAe,sBAuCzD"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { type ChatbotFrameProps } from "./chatbot-frame";
|
|
3
|
-
type ChatbotSheetProps = ChatbotFrameProps & {
|
|
4
|
-
sheetStyle?: React.CSSProperties;
|
|
5
|
-
};
|
|
6
|
-
export declare function ChatbotSheet({ sheetStyle, ...props }: ChatbotSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=chatbot-sheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot-sheet.d.ts","sourceRoot":"","sources":["../../src/components/chatbot-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAWvE,KAAK,iBAAiB,GAAG,iBAAiB,GAAG;IAC3C,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAClC,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CA0BvE"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
type LottieAiIconProps = {
|
|
3
|
-
src: string;
|
|
4
|
-
width?: number;
|
|
5
|
-
height?: number;
|
|
6
|
-
loop?: boolean;
|
|
7
|
-
autoplay?: boolean;
|
|
8
|
-
hover?: boolean;
|
|
9
|
-
fallback?: React.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
export declare function LottieAiIcon({ src, width, height, loop, autoplay, hover, fallback, }: LottieAiIconProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=lottie-ai-icon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lottie-ai-icon.d.ts","sourceRoot":"","sources":["../../src/components/lottie-ai-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,GAAG,EACH,KAAU,EACV,MAAW,EACX,IAAW,EACX,QAAgB,EAChB,KAAa,EACb,QAAQ,GACT,EAAE,iBAAiB,2CAoDnB"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { type InitProps, type MCP } from "./use-chatbot-frame-handler";
|
|
3
|
-
type ChatbotContextType = {
|
|
4
|
-
/** 1回チャットボットを開いたら、固定でtrueになる */
|
|
5
|
-
hasOpened: boolean;
|
|
6
|
-
/** チャットボットを開いているか */
|
|
7
|
-
open: boolean;
|
|
8
|
-
/** チャットボットを開く */
|
|
9
|
-
setOpen: (open: boolean) => void;
|
|
10
|
-
/** チャットボットを展開しているか */
|
|
11
|
-
isExpanded: boolean;
|
|
12
|
-
/** チャットボットを展開する */
|
|
13
|
-
setIsExpanded: (expanded: boolean) => void;
|
|
14
|
-
/** チャットボットをフルスクリーンにしているか */
|
|
15
|
-
isFullScreen: boolean;
|
|
16
|
-
/** チャットボットをフルスクリーンにする */
|
|
17
|
-
setIsFullScreen: (fullScreen: boolean) => void;
|
|
18
|
-
/** チャットボットを初期化 */
|
|
19
|
-
init: (props: InitProps) => void;
|
|
20
|
-
/** MCPを設定 */
|
|
21
|
-
setMcps: (mcps: MCP[]) => void;
|
|
22
|
-
/** アプリ名を設定 */
|
|
23
|
-
setAppName: (appName: string) => void;
|
|
24
|
-
/** セッショントークンを設定 */
|
|
25
|
-
setSessionToken: (sessionToken: string) => void;
|
|
26
|
-
/** チャットボットが準備できたか */
|
|
27
|
-
isReady: boolean;
|
|
28
|
-
/** チャットボットが初期化されたか */
|
|
29
|
-
isInitialized: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @internal
|
|
32
|
-
* チャットボットのiframe要素を設定
|
|
33
|
-
*/
|
|
34
|
-
setIframeEl: (iframeEl: HTMLIFrameElement | null) => void;
|
|
35
|
-
};
|
|
36
|
-
export declare function useChatbot(): ChatbotContextType;
|
|
37
|
-
type ChatbotProviderProps = {
|
|
38
|
-
children: React.ReactNode;
|
|
39
|
-
};
|
|
40
|
-
export declare function ChatbotProvider({ children }: ChatbotProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
export {};
|
|
42
|
-
//# sourceMappingURL=chatbot-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot-provider.d.ts","sourceRoot":"","sources":["../../../src/components/provider/chatbot-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,GAAG,EACT,MAAM,6BAA6B,CAAC;AAGrC,KAAK,kBAAkB,GAAG;IACxB,gCAAgC;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,iBAAiB;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,sBAAsB;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,mBAAmB;IACnB,aAAa,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,4BAA4B;IAC5B,YAAY,EAAE,OAAO,CAAC;IACtB,yBAAyB;IACzB,eAAe,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,kBAAkB;IAClB,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACjC,aAAa;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAC/B,cAAc;IACd,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,mBAAmB;IACnB,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,qBAAqB;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;CAC3D,CAAC;AAMF,wBAAgB,UAAU,uBAMzB;AAED,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE,oBAAoB,2CA4CjE"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type IframeMessage = {
|
|
3
|
-
type: "CHATBOT_READY";
|
|
4
|
-
} | {
|
|
5
|
-
type: "CHATBOT_INITIALIZED";
|
|
6
|
-
} | {
|
|
7
|
-
type: "CLOSE_CHATBOT";
|
|
8
|
-
} | {
|
|
9
|
-
type: "EXPAND_CHATBOT";
|
|
10
|
-
} | {
|
|
11
|
-
type: "SHRINK_CHATBOT";
|
|
12
|
-
} | {
|
|
13
|
-
type: "FULLSCREEN_CHATBOT";
|
|
14
|
-
} | {
|
|
15
|
-
type: "EXIT_FULLSCREEN_CHATBOT";
|
|
16
|
-
} | {
|
|
17
|
-
type: "RELOAD_CHATBOT";
|
|
18
|
-
};
|
|
19
|
-
export type MCP = {
|
|
20
|
-
name: string;
|
|
21
|
-
url: string;
|
|
22
|
-
headers?: Record<string, string>;
|
|
23
|
-
};
|
|
24
|
-
export type InitProps = {
|
|
25
|
-
mcps?: MCP[];
|
|
26
|
-
appName?: string;
|
|
27
|
-
sessionToken?: string;
|
|
28
|
-
};
|
|
29
|
-
export type ParentMessage = {
|
|
30
|
-
type: "mcps";
|
|
31
|
-
mcps: MCP[];
|
|
32
|
-
} | {
|
|
33
|
-
type: "appName";
|
|
34
|
-
appName: string;
|
|
35
|
-
} | {
|
|
36
|
-
type: "sessionToken";
|
|
37
|
-
sessionToken: string;
|
|
38
|
-
} | {
|
|
39
|
-
type: "init";
|
|
40
|
-
mcps?: MCP[];
|
|
41
|
-
appName?: string;
|
|
42
|
-
sessionToken?: string;
|
|
43
|
-
};
|
|
44
|
-
export declare function useChatbotFrameHandler({ setOpen, setIsExpanded, setIsFullScreen, }: {
|
|
45
|
-
setOpen: (open: boolean) => void;
|
|
46
|
-
setIsExpanded: (expanded: boolean) => void;
|
|
47
|
-
setIsFullScreen: (fullScreen: boolean) => void;
|
|
48
|
-
}): {
|
|
49
|
-
init: (props: InitProps) => void;
|
|
50
|
-
setMcps: (mcps: MCP[]) => void;
|
|
51
|
-
setAppName: (appName: string) => void;
|
|
52
|
-
setSessionToken: (sessionToken: string) => void;
|
|
53
|
-
setIframeEl: React.Dispatch<React.SetStateAction<HTMLIFrameElement | null>>;
|
|
54
|
-
isReady: boolean;
|
|
55
|
-
isInitialized: boolean;
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=use-chatbot-frame-handler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-chatbot-frame-handler.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-chatbot-frame-handler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,GACzB;IAAE,IAAI,EAAE,qBAAqB,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,GACzB;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAC1B;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAC1B;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,yBAAyB,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,CAAC;AAE/B,MAAM,MAAM,GAAG,GAAG;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GACrB;IACE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,GAAG,EAAE,CAAC;CACb,GACD;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,GACD;IACE,IAAI,EAAE,cAAc,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,GACD;IACE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEN,wBAAgB,sBAAsB,CAAC,EACrC,OAAO,EACP,aAAa,EACb,eAAe,GAChB,EAAE;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,aAAa,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,eAAe,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD;kBAqBW,SAAS;oBAUV,GAAG,EAAE;0BAOF,MAAM;oCAOD,MAAM;;;;EAoExB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare function useChatbotWindowStates(): {
|
|
3
|
-
hasOpened: boolean;
|
|
4
|
-
open: boolean;
|
|
5
|
-
isExpanded: boolean;
|
|
6
|
-
isFullScreen: boolean;
|
|
7
|
-
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
-
setIsExpanded: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
-
setIsFullScreen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=use-chatbot-window-states.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-chatbot-window-states.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-chatbot-window-states.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wBAAgB,sBAAsB;;;;;;;;EAqBrC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const SheetTrigger: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
declare const SheetClose: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const SheetContent: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const SheetHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const SheetFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
10
|
-
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
11
|
-
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
12
|
-
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/components/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAW5E;AAED,QAAA,MAAM,YAAY,mKAUhB,CAAC;AAGH,QAAA,MAAM,UAAU,iKAUd,CAAC;AASH,QAAA,MAAM,YAAY,6JAyChB,CAAC;AAGH,QAAA,MAAM,WAAW,6GAUf,CAAC;AAGH,QAAA,MAAM,WAAW,6GAUf,CAAC;AAGH,QAAA,MAAM,UAAU,mKAUd,CAAC;AAGH,QAAA,MAAM,gBAAgB,6KAUpB,CAAC;AAGH,OAAO,EACL,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
type Side = "top" | "right" | "bottom" | "left";
|
|
2
|
-
type Align = "start" | "center" | "end";
|
|
3
|
-
type TooltipProps = {
|
|
4
|
-
content: React.ReactNode;
|
|
5
|
-
side?: Side;
|
|
6
|
-
align?: Align;
|
|
7
|
-
trigger: React.ReactNode;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
delayDuration?: number;
|
|
10
|
-
skipDelayDuration?: number;
|
|
11
|
-
className?: string;
|
|
12
|
-
open?: boolean;
|
|
13
|
-
alignOffset?: number;
|
|
14
|
-
sideOffset?: number;
|
|
15
|
-
arrowClassName?: string;
|
|
16
|
-
keepTooltipOpen?: boolean;
|
|
17
|
-
};
|
|
18
|
-
export declare function Tooltip({ content, trigger, side, align, disabled, delayDuration, skipDelayDuration, className, open, alignOffset, sideOffset, arrowClassName, keepTooltipOpen, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.tsx"],"names":[],"mappings":"AASA,KAAK,IAAI,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAChD,KAAK,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAExC,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,wBAAgB,OAAO,CAAC,EACtB,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,IAAI,EACJ,WAAW,EACX,UAAU,EACV,cAAc,EACd,eAAe,GAChB,EAAE,YAAY,2CA0Cd"}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
|