@harnessio/ui3-ai-chat 0.0.0-stage → 0.2.0
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/chat-constants.d.ts +14 -0
- package/dist/chat-constants.d.ts.map +1 -0
- package/dist/chat-constants.js +13 -0
- package/dist/chat-drawer-layout.d.ts +10 -0
- package/dist/chat-drawer-layout.d.ts.map +1 -0
- package/dist/chat-drawer-layout.js +66 -0
- package/dist/chat-header.d.ts +13 -0
- package/dist/chat-header.d.ts.map +1 -0
- package/dist/chat-header.js +45 -0
- package/dist/chat-history.d.ts +6 -0
- package/dist/chat-history.d.ts.map +1 -0
- package/dist/chat-history.js +119 -0
- package/dist/chat-homepage-body.d.ts +5 -0
- package/dist/chat-homepage-body.d.ts.map +1 -0
- package/dist/chat-homepage-body.js +17 -0
- package/dist/chat-input-plus-menu.d.ts +2 -0
- package/dist/chat-input-plus-menu.d.ts.map +1 -0
- package/dist/chat-input-plus-menu.js +15 -0
- package/dist/chat-input.d.ts +2 -0
- package/dist/chat-input.d.ts.map +1 -0
- package/dist/chat-input.js +65 -0
- package/dist/chat-layout.d.ts +14 -0
- package/dist/chat-layout.d.ts.map +1 -0
- package/dist/chat-layout.js +16 -0
- package/dist/chat-message-list.d.ts +13 -0
- package/dist/chat-message-list.d.ts.map +1 -0
- package/dist/chat-message-list.js +13 -0
- package/dist/chat-panel-body.d.ts +5 -0
- package/dist/chat-panel-body.d.ts.map +1 -0
- package/dist/chat-panel-body.js +17 -0
- package/dist/chat-scroll-fade.d.ts +9 -0
- package/dist/chat-scroll-fade.d.ts.map +1 -0
- package/dist/chat-scroll-fade.js +22 -0
- package/dist/chat-speech-button.d.ts +7 -0
- package/dist/chat-speech-button.d.ts.map +1 -0
- package/dist/chat-speech-button.js +12 -0
- package/dist/chat.d.ts +5 -0
- package/dist/chat.d.ts.map +1 -0
- package/dist/chat.js +18 -0
- package/dist/context/chat-event-context.d.ts +10 -0
- package/dist/context/chat-event-context.d.ts.map +1 -0
- package/dist/context/chat-event-context.js +9 -0
- package/dist/context/chat-host-context.d.ts +22 -0
- package/dist/context/chat-host-context.d.ts.map +1 -0
- package/dist/context/chat-host-context.js +27 -0
- package/dist/context/chat-position-context.d.ts +14 -0
- package/dist/context/chat-position-context.d.ts.map +1 -0
- package/dist/context/chat-position-context.js +17 -0
- package/dist/default-chat-welcome.d.ts +7 -0
- package/dist/default-chat-welcome.d.ts.map +1 -0
- package/dist/default-chat-welcome.js +37 -0
- package/dist/error-boundaries/chat-error-boundary.d.ts +15 -0
- package/dist/error-boundaries/chat-error-boundary.d.ts.map +1 -0
- package/dist/error-boundaries/chat-error-boundary.js +18 -0
- package/dist/error-boundaries/index.d.ts +3 -0
- package/dist/error-boundaries/index.d.ts.map +1 -0
- package/dist/error-boundaries/index.js +2 -0
- package/dist/error-boundaries/message-error-boundary.d.ts +15 -0
- package/dist/error-boundaries/message-error-boundary.d.ts.map +1 -0
- package/dist/error-boundaries/message-error-boundary.js +18 -0
- package/dist/harness-loader/harness-loader-blades.d.ts +21 -0
- package/dist/harness-loader/harness-loader-blades.d.ts.map +1 -0
- package/dist/harness-loader/harness-loader-blades.js +25 -0
- package/dist/harness-loader/harness-loader.css +335 -0
- package/dist/harness-loader/harness-loader.d.ts +8 -0
- package/dist/harness-loader/harness-loader.d.ts.map +1 -0
- package/dist/harness-loader/harness-loader.js +9 -0
- package/dist/hooks/use-chat-content-state.d.ts +23 -0
- package/dist/hooks/use-chat-content-state.d.ts.map +1 -0
- package/dist/hooks/use-chat-content-state.js +97 -0
- package/dist/hooks/use-chat-mcp-connectors.d.ts +4 -0
- package/dist/hooks/use-chat-mcp-connectors.d.ts.map +1 -0
- package/dist/hooks/use-chat-mcp-connectors.js +5 -0
- package/dist/hooks/use-chat-tracking.d.ts +19 -0
- package/dist/hooks/use-chat-tracking.d.ts.map +1 -0
- package/dist/hooks/use-chat-tracking.js +84 -0
- package/dist/hooks/use-idle-session-prompt.d.ts +13 -0
- package/dist/hooks/use-idle-session-prompt.d.ts.map +1 -0
- package/dist/hooks/use-idle-session-prompt.js +147 -0
- package/dist/hooks/use-speech-to-text.d.ts +49 -0
- package/dist/hooks/use-speech-to-text.d.ts.map +1 -0
- package/dist/hooks/use-speech-to-text.js +117 -0
- package/dist/idle-session-banner.d.ts +6 -0
- package/dist/idle-session-banner.d.ts.map +1 -0
- package/dist/idle-session-banner.js +13 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/dist/plugins/core-plugin.d.ts +3 -0
- package/dist/plugins/core-plugin.d.ts.map +1 -0
- package/dist/plugins/core-plugin.js +47 -0
- package/dist/providers/chat-runtime-provider.d.ts +10 -0
- package/dist/providers/chat-runtime-provider.d.ts.map +1 -0
- package/dist/providers/chat-runtime-provider.js +15 -0
- package/dist/renderers/elicitation/confirm-renderer.d.ts +4 -0
- package/dist/renderers/elicitation/confirm-renderer.d.ts.map +1 -0
- package/dist/renderers/elicitation/confirm-renderer.js +16 -0
- package/dist/renderers/elicitation/free-text-renderer.d.ts +4 -0
- package/dist/renderers/elicitation/free-text-renderer.d.ts.map +1 -0
- package/dist/renderers/elicitation/free-text-renderer.js +25 -0
- package/dist/renderers/elicitation/index.d.ts +5 -0
- package/dist/renderers/elicitation/index.d.ts.map +1 -0
- package/dist/renderers/elicitation/index.js +4 -0
- package/dist/renderers/elicitation/multi-select-renderer.d.ts +4 -0
- package/dist/renderers/elicitation/multi-select-renderer.d.ts.map +1 -0
- package/dist/renderers/elicitation/multi-select-renderer.js +47 -0
- package/dist/renderers/elicitation/select-renderer.d.ts +4 -0
- package/dist/renderers/elicitation/select-renderer.d.ts.map +1 -0
- package/dist/renderers/elicitation/select-renderer.js +32 -0
- package/dist/renderers/elicitation/shared.d.ts +146 -0
- package/dist/renderers/elicitation/shared.d.ts.map +1 -0
- package/dist/renderers/elicitation/shared.js +237 -0
- package/dist/renderers/error-renderer.d.ts +3 -0
- package/dist/renderers/error-renderer.d.ts.map +1 -0
- package/dist/renderers/error-renderer.js +11 -0
- package/dist/renderers/file-renderer.d.ts +12 -0
- package/dist/renderers/file-renderer.d.ts.map +1 -0
- package/dist/renderers/file-renderer.js +35 -0
- package/dist/renderers/follow-up-prompts-renderer.d.ts +3 -0
- package/dist/renderers/follow-up-prompts-renderer.d.ts.map +1 -0
- package/dist/renderers/follow-up-prompts-renderer.js +55 -0
- package/dist/renderers/prompts-renderer.d.ts +14 -0
- package/dist/renderers/prompts-renderer.d.ts.map +1 -0
- package/dist/renderers/prompts-renderer.js +5 -0
- package/dist/renderers/suggestions-renderer.d.ts +3 -0
- package/dist/renderers/suggestions-renderer.d.ts.map +1 -0
- package/dist/renderers/suggestions-renderer.js +24 -0
- package/dist/renderers/table-renderer.d.ts +22 -0
- package/dist/renderers/table-renderer.d.ts.map +1 -0
- package/dist/renderers/table-renderer.js +49 -0
- package/dist/renderers/text-renderer.d.ts +10 -0
- package/dist/renderers/text-renderer.d.ts.map +1 -0
- package/dist/renderers/text-renderer.js +10 -0
- package/dist/renderers/thought-process.d.ts +10 -0
- package/dist/renderers/thought-process.d.ts.map +1 -0
- package/dist/renderers/thought-process.js +8 -0
- package/dist/renderers/tool-call-renderer.d.ts +12 -0
- package/dist/renderers/tool-call-renderer.d.ts.map +1 -0
- package/dist/renderers/tool-call-renderer.js +37 -0
- package/dist/stores/chat-input-options-store.d.ts +9 -0
- package/dist/stores/chat-input-options-store.d.ts.map +1 -0
- package/dist/stores/chat-input-options-store.js +6 -0
- package/dist/stores/chat-settings-store.d.ts +11 -0
- package/dist/stores/chat-settings-store.d.ts.map +1 -0
- package/dist/stores/chat-settings-store.js +8 -0
- package/dist/stores/idle-session-prompt-store.d.ts +21 -0
- package/dist/stores/idle-session-prompt-store.d.ts.map +1 -0
- package/dist/stores/idle-session-prompt-store.js +34 -0
- package/dist/styles.css +129 -0
- package/dist/thread-actions-menu.d.ts +11 -0
- package/dist/thread-actions-menu.d.ts.map +1 -0
- package/dist/thread-actions-menu.js +55 -0
- package/dist/truncated-chip-label.d.ts +12 -0
- package/dist/truncated-chip-label.d.ts.map +1 -0
- package/dist/truncated-chip-label.js +11 -0
- package/dist/types/chat-events.d.ts +18 -0
- package/dist/types/chat-events.d.ts.map +1 -0
- package/dist/types/chat-events.js +1 -0
- package/dist/types/chat-layout.d.ts +9 -0
- package/dist/types/chat-layout.d.ts.map +1 -0
- package/dist/types/chat-layout.js +8 -0
- package/dist/utils/sentence-case.d.ts +2 -0
- package/dist/utils/sentence-case.d.ts.map +1 -0
- package/dist/utils/sentence-case.js +14 -0
- package/dist/utils/time-utils.d.ts +7 -0
- package/dist/utils/time-utils.d.ts.map +1 -0
- package/dist/utils/time-utils.js +27 -0
- package/package.json +51 -3
- package/README.md +0 -3
package/dist/chat.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../src/chat.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAsCjD,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAAE,OAAiB,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,WAAW,CAAA;CAAE,2CAM5E"}
|
package/dist/chat.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Layout } from '@harnessio/ui/components';
|
|
3
|
+
import { ChatHeader } from './chat-header';
|
|
4
|
+
import { ChatHomepageBody } from './chat-homepage-body';
|
|
5
|
+
import { ChatLayout } from './chat-layout';
|
|
6
|
+
import { ChatPanelBody } from './chat-panel-body';
|
|
7
|
+
import { useChatHost } from './context/chat-host-context';
|
|
8
|
+
import { ChatErrorBoundary } from './error-boundaries';
|
|
9
|
+
import { useChatContentState } from './hooks/use-chat-content-state';
|
|
10
|
+
function ChatContent({ variant = 'panel' }) {
|
|
11
|
+
const state = useChatContentState();
|
|
12
|
+
const { SettingsDrawer } = useChatHost();
|
|
13
|
+
const Body = variant === 'homepage' ? ChatHomepageBody : ChatPanelBody;
|
|
14
|
+
return (_jsxs(Layout.Vertical, { className: "ai-chat h-full pt-cn-md", gap: "none", style: { minWidth: 'var(--cn-ai-chat-min-width)' }, children: [_jsx(ChatLayout.Header, { className: "mb-cn-sm", children: _jsx(ChatHeader, { showHistory: state.showHistory, hideTitle: state.showChatWelcomeScreen, onToggleHistory: state.handleToggleHistory, onOpenSettings: SettingsDrawer ? state.handleOpenSettings : undefined, onStartNewThread: state.handleStartNewThread, position: state.chatPosition?.position, onPositionChange: state.chatPosition?.onPositionChange }) }), _jsx(Body, { showHistory: state.showHistory, handleSelectThread: state.handleSelectThread, showChatWelcomeScreen: state.showChatWelcomeScreen, messages: state.messages, scrollRef: state.scrollRef, handleScroll: state.handleScroll, showScrollButton: state.showScrollButton, scrollEdgeFadeStyle: state.scrollEdgeFadeStyle, scrollToBottom: state.scrollToBottom }), SettingsDrawer ? _jsx(SettingsDrawer, { open: state.showSettings, onOpenChange: state.setShowSettings }) : null] }));
|
|
15
|
+
}
|
|
16
|
+
export default function Chat({ variant = 'panel' }) {
|
|
17
|
+
return (_jsx(ChatErrorBoundary, { children: _jsx(ChatContent, { variant: variant }) }));
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { ChatEvent } from '../types/chat-events';
|
|
3
|
+
type ChatEventEmitter = (event: ChatEvent) => void;
|
|
4
|
+
export declare function ChatEventProvider({ onEvent, children }: {
|
|
5
|
+
onEvent?: ChatEventEmitter;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function useChatEvent(): ChatEventEmitter | null;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=chat-event-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-event-context.d.ts","sourceRoot":"","sources":["../../src/context/chat-event-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEhD,KAAK,gBAAgB,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;AAIlD,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAE3G;AAED,wBAAgB,YAAY,IAAI,gBAAgB,GAAG,IAAI,CAEtD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from 'react';
|
|
3
|
+
const ChatEventContext = createContext(null);
|
|
4
|
+
export function ChatEventProvider({ onEvent, children }) {
|
|
5
|
+
return _jsx(ChatEventContext.Provider, { value: onEvent ?? null, children: children });
|
|
6
|
+
}
|
|
7
|
+
export function useChatEvent() {
|
|
8
|
+
return useContext(ChatEventContext);
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { ChatVariant } from '../types/chat-layout';
|
|
3
|
+
export interface ChatHostValue {
|
|
4
|
+
WelcomeScreen: ComponentType<{
|
|
5
|
+
variant?: ChatVariant;
|
|
6
|
+
}>;
|
|
7
|
+
SettingsDrawer?: ComponentType<{
|
|
8
|
+
open: boolean;
|
|
9
|
+
onOpenChange: (open: boolean) => void;
|
|
10
|
+
}>;
|
|
11
|
+
PlusMenu?: ComponentType;
|
|
12
|
+
rewriteUrls: (text: string) => string;
|
|
13
|
+
trackEvent?: (eventName: string, properties: Record<string, unknown>) => void;
|
|
14
|
+
aiChatHidden: boolean;
|
|
15
|
+
setAIChatHidden: (hidden: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function ChatHostProvider({ children, value }: {
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
value?: Partial<ChatHostValue>;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function useChatHost(): ChatHostValue;
|
|
22
|
+
//# sourceMappingURL=chat-host-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-host-context.d.ts","sourceRoot":"","sources":["../../src/context/chat-host-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAA;AAGpF,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAElD,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,aAAa,CAAC;QAAE,OAAO,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC,CAAA;IACvD,cAAc,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;KAAE,CAAC,CAAA;IACxF,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;IACrC,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IAC7E,YAAY,EAAE,OAAO,CAAA;IACrB,eAAe,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;CAC3C;AAcD,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;CAAE,2CAe5G;AAED,wBAAgB,WAAW,IAAI,aAAa,CAE3C"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext, useMemo } from 'react';
|
|
3
|
+
import { DefaultChatWelcome } from '../default-chat-welcome';
|
|
4
|
+
const identity = (text) => text;
|
|
5
|
+
const noopSet = (_hidden) => undefined;
|
|
6
|
+
const defaultHost = {
|
|
7
|
+
WelcomeScreen: DefaultChatWelcome,
|
|
8
|
+
rewriteUrls: identity,
|
|
9
|
+
aiChatHidden: false,
|
|
10
|
+
setAIChatHidden: noopSet
|
|
11
|
+
};
|
|
12
|
+
const ChatHostContext = createContext(defaultHost);
|
|
13
|
+
export function ChatHostProvider({ children, value }) {
|
|
14
|
+
const merged = useMemo(() => ({
|
|
15
|
+
WelcomeScreen: value?.WelcomeScreen ?? defaultHost.WelcomeScreen,
|
|
16
|
+
SettingsDrawer: value?.SettingsDrawer,
|
|
17
|
+
PlusMenu: value?.PlusMenu,
|
|
18
|
+
rewriteUrls: value?.rewriteUrls ?? defaultHost.rewriteUrls,
|
|
19
|
+
trackEvent: value?.trackEvent,
|
|
20
|
+
aiChatHidden: value?.aiChatHidden ?? false,
|
|
21
|
+
setAIChatHidden: value?.setAIChatHidden ?? noopSet
|
|
22
|
+
}), [value]);
|
|
23
|
+
return _jsx(ChatHostContext.Provider, { value: merged, children: children });
|
|
24
|
+
}
|
|
25
|
+
export function useChatHost() {
|
|
26
|
+
return useContext(ChatHostContext);
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
import { ChatLayoutPosition } from '../types/chat-layout';
|
|
3
|
+
export interface ChatPositionContextType {
|
|
4
|
+
position: ChatLayoutPosition;
|
|
5
|
+
onPositionChange: (position: ChatLayoutPosition) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ChatPositionProvider: FC<{
|
|
8
|
+
position: ChatLayoutPosition;
|
|
9
|
+
onPositionChange: (position: ChatLayoutPosition) => void;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const useChatPosition: () => ChatPositionContextType;
|
|
13
|
+
export declare const useChatPositionOptional: () => ChatPositionContextType | null;
|
|
14
|
+
//# sourceMappingURL=chat-position-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-position-context.d.ts","sourceRoot":"","sources":["../../src/context/chat-position-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,gBAAgB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAA;CACzD;AAID,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC;IACpC,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,gBAAgB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAA;IACxD,QAAQ,EAAE,SAAS,CAAA;CACpB,CAGA,CAAA;AAED,eAAO,MAAM,eAAe,QAAO,uBAMlC,CAAA;AAED,eAAO,MAAM,uBAAuB,QAAO,uBAAuB,GAAG,IAEpE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext, useMemo } from 'react';
|
|
3
|
+
const ChatPositionContext = createContext(null);
|
|
4
|
+
export const ChatPositionProvider = ({ children, position, onPositionChange }) => {
|
|
5
|
+
const value = useMemo(() => ({ position, onPositionChange }), [position, onPositionChange]);
|
|
6
|
+
return _jsx(ChatPositionContext.Provider, { value: value, children: children });
|
|
7
|
+
};
|
|
8
|
+
export const useChatPosition = () => {
|
|
9
|
+
const context = useContext(ChatPositionContext);
|
|
10
|
+
if (!context) {
|
|
11
|
+
throw new Error('useChatPosition must be used within ChatPositionProvider');
|
|
12
|
+
}
|
|
13
|
+
return context;
|
|
14
|
+
};
|
|
15
|
+
export const useChatPositionOptional = () => {
|
|
16
|
+
return useContext(ChatPositionContext);
|
|
17
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChatVariant } from './types/chat-layout';
|
|
2
|
+
interface DefaultChatWelcomeProps {
|
|
3
|
+
variant?: ChatVariant;
|
|
4
|
+
}
|
|
5
|
+
export declare function DefaultChatWelcome({ variant }: DefaultChatWelcomeProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=default-chat-welcome.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-chat-welcome.d.ts","sourceRoot":"","sources":["../src/default-chat-welcome.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AASjD,UAAU,uBAAuB;IAC/B,OAAO,CAAC,EAAE,WAAW,CAAA;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,OAAiB,EAAE,EAAE,uBAAuB,2CAgEhF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCurrentThread, useQuickActions } from '@harnessio/ai-chat-core';
|
|
3
|
+
import { Button, IconV2, Layout, Text } from '@harnessio/ui/components';
|
|
4
|
+
import { cn } from '@harnessio/ui/utils';
|
|
5
|
+
import { useStrings } from '@harnessio/ui3-i18n';
|
|
6
|
+
import { TruncatedChipLabel } from './truncated-chip-label';
|
|
7
|
+
export function DefaultChatWelcome({ variant = 'panel' }) {
|
|
8
|
+
const { getString } = useStrings();
|
|
9
|
+
const thread = useCurrentThread();
|
|
10
|
+
const registeredActions = useQuickActions();
|
|
11
|
+
const isHomepage = variant === 'homepage';
|
|
12
|
+
const defaultQuickActions = [
|
|
13
|
+
{
|
|
14
|
+
id: 'list-pipelines',
|
|
15
|
+
icon: 'pipeline',
|
|
16
|
+
label: getString('platform.chat.welcome.listPipelines'),
|
|
17
|
+
prompt: 'List pipelines'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 'support-question',
|
|
21
|
+
icon: 'help-circle',
|
|
22
|
+
label: getString('platform.chat.welcome.askSupportQuestion'),
|
|
23
|
+
prompt: 'Ask a support question'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'analyze-errors',
|
|
27
|
+
icon: 'pipeline',
|
|
28
|
+
label: getString('platform.chat.welcome.analyzePipelineErrors'),
|
|
29
|
+
prompt: getString('platform.chat.welcome.analyzePipelineErrors')
|
|
30
|
+
}
|
|
31
|
+
];
|
|
32
|
+
const actions = registeredActions.length > 0 ? registeredActions : defaultQuickActions;
|
|
33
|
+
const handleQuickAction = (prompt) => {
|
|
34
|
+
thread.send(prompt);
|
|
35
|
+
};
|
|
36
|
+
return (_jsxs(Layout.Vertical, { align: "center", justify: isHomepage ? undefined : 'end', gap: "xl", className: isHomepage ? 'w-full' : 'h-full', children: [_jsxs(Layout.Horizontal, { align: "center", gap: "xs", className: isHomepage ? undefined : 'h-full', children: [_jsx(IconV2, { size: "lg", name: "harness-plugins", className: "text-cn-logo-icon" }), _jsx(Text, { variant: "heading-subsection", color: "foreground-2", children: getString('platform.chat.welcome.howCanIHelp') })] }), _jsx(Layout.Vertical, { className: "w-full", children: _jsx("div", { className: cn('mb-cn-sm flex w-full gap-cn-sm', isHomepage ? 'flex-row justify-center' : 'flex-col'), children: actions.map(action => (_jsx(Button, { variant: "outline", className: "w-fit min-w-0 max-w-full justify-start overflow-hidden rounded-cn-4", onClick: () => handleQuickAction(action.prompt), children: _jsxs(Layout.Horizontal, { align: "center", gap: "2xs", className: "w-full min-w-0", children: [_jsx(IconV2, { name: action.icon, className: "shrink-0" }), _jsx(TruncatedChipLabel, { children: action.label })] }) }, action.id))) }) })] }));
|
|
37
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Component, ReactNode } from 'react';
|
|
2
|
+
interface ErrorBoundaryProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
interface ErrorBoundaryState {
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
error: Error | null;
|
|
8
|
+
}
|
|
9
|
+
export declare class ChatErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
10
|
+
constructor(props: ErrorBoundaryProps);
|
|
11
|
+
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
12
|
+
render(): ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=chat-error-boundary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-error-boundary.d.ts","sourceRoot":"","sources":["../../src/error-boundaries/chat-error-boundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAI5C,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CACpB;AAED,qBAAa,iBAAkB,SAAQ,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IACtF,YAAY,KAAK,EAAE,kBAAkB,EAGpC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,kBAAkB,CAEhE;IAED,MAAM,cAaL;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Component } from 'react';
|
|
3
|
+
import { Button, Layout, Text } from '@harnessio/ui/components';
|
|
4
|
+
export class ChatErrorBoundary extends Component {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super(props);
|
|
7
|
+
this.state = { hasError: false, error: null };
|
|
8
|
+
}
|
|
9
|
+
static getDerivedStateFromError(error) {
|
|
10
|
+
return { hasError: true, error };
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
if (this.state.hasError) {
|
|
14
|
+
return (_jsxs(Layout.Vertical, { className: "h-full items-center justify-center gap-cn-md p-cn-lg", align: "center", children: [_jsx(Text, { color: "foreground-3", children: "Something went wrong with the chat" }), _jsx(Button, { variant: "outline", size: "sm", onClick: () => this.setState({ hasError: false, error: null }), children: "Try Again" })] }));
|
|
15
|
+
}
|
|
16
|
+
return this.props.children;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/error-boundaries/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Component, ReactNode } from 'react';
|
|
2
|
+
interface ErrorBoundaryProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
interface ErrorBoundaryState {
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
error: Error | null;
|
|
8
|
+
}
|
|
9
|
+
export declare class MessageErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
10
|
+
constructor(props: ErrorBoundaryProps);
|
|
11
|
+
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
12
|
+
render(): ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=message-error-boundary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-error-boundary.d.ts","sourceRoot":"","sources":["../../src/error-boundaries/message-error-boundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAI5C,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CACpB;AAED,qBAAa,oBAAqB,SAAQ,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IACzF,YAAY,KAAK,EAAE,kBAAkB,EAGpC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,kBAAkB,CAEhE;IAED,MAAM,cAYL;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Component } from 'react';
|
|
3
|
+
import { Layout, Text } from '@harnessio/ui/components';
|
|
4
|
+
export class MessageErrorBoundary extends Component {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super(props);
|
|
7
|
+
this.state = { hasError: false, error: null };
|
|
8
|
+
}
|
|
9
|
+
static getDerivedStateFromError(error) {
|
|
10
|
+
return { hasError: true, error };
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
if (this.state.hasError) {
|
|
14
|
+
return (_jsx(Layout.Horizontal, { className: "bg-cn-background-2 rounded-cn-md py-cn-sm", align: "center", gap: "sm", children: _jsx(Text, { color: "foreground-3", variant: "body-normal", children: "Failed to render this message" }) }));
|
|
15
|
+
}
|
|
16
|
+
return this.props.children;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blade geometry for the Harness mark loading animation.
|
|
3
|
+
*
|
|
4
|
+
* Each blade is one quadrant of the Harness logo: a rounded square with a notched
|
|
5
|
+
* inner corner, drawn in an 80x80 viewBox so its center sits at (40, 40) — the
|
|
6
|
+
* rotation origin the keyframes in harness-loader.css animate around.
|
|
7
|
+
*/
|
|
8
|
+
export declare const HARNESS_LOADER_BLADES: readonly [{
|
|
9
|
+
readonly key: 'a';
|
|
10
|
+
readonly d: 'M16.201,80 C15.855,80 14.814,80.011 13.829,79.93 C12.691,79.837 10.543,79.564 8.191,78.366 C5.368,76.928 3.073,74.632 1.635,71.81 C0.437,69.458 0.164,67.31 0.071,66.172 C-0.01,65.187 0,64.146 0,63.8 C0,63.8 0,51.401 0,51.401 C0,44.895 -0.01,39.233 0.371,34.578 C0.763,29.773 1.636,24.908 4.034,20.203 C7.581,13.241 13.241,7.581 20.203,4.034 C24.908,1.636 29.773,0.763 34.578,0.371 C39.233,-0.01 44.895,0 51.401,0 C51.401,0 63.8,0 63.8,0 C64.146,0 65.187,-0.01 66.172,0.071 C67.31,0.164 69.458,0.437 71.81,1.635 C71.81,1.635 72.333,1.914 72.333,1.914 C74.916,3.362 77.017,5.545 78.366,8.191 C78.366,8.191 78.579,8.629 78.579,8.629 C79.597,10.807 79.843,12.762 79.93,13.829 C80.011,14.814 80,15.855 80,16.201 C80,16.201 80,63.8 80,63.8 C80,64.146 80.011,65.187 79.93,66.172 C79.843,67.239 79.597,69.194 78.579,71.371 C78.579,71.371 78.366,71.81 78.366,71.81 C78.366,71.81 78.086,72.333 78.086,72.333 C76.735,74.744 74.744,76.735 72.333,78.086 C72.333,78.086 71.81,78.366 71.81,78.366 C71.81,78.366 71.371,78.579 71.371,78.579 C69.194,79.597 67.239,79.843 66.172,79.93 C65.187,80.011 64.146,80 63.8,80 C63.8,80 16.201,80 16.201,80 C16.201,80 16.201,80 16.201,80 Z M51.401,26 C44.466,26 40.046,26.011 36.696,26.285 C33.498,26.546 32.435,26.981 32.006,27.2 C29.937,28.254 28.254,29.937 27.2,32.006 C26.981,32.435 26.546,33.498 26.285,36.696 C26.011,40.046 26,44.466 26,51.401 C26,51.401 26,54 26,54 C26,54 54,54 54,54 C54,54 54,26 54,26 C54,26 51.401,26 51.401,26 C51.401,26 51.401,26 51.401,26 Z';
|
|
11
|
+
}, {
|
|
12
|
+
readonly key: 'b';
|
|
13
|
+
readonly d: 'M0,16.201 C0,15.855 -0.01,14.814 0.071,13.829 C0.164,12.691 0.437,10.543 1.635,8.191 C3.073,5.368 5.368,3.073 8.191,1.635 C10.543,0.437 12.691,0.164 13.829,0.071 C14.814,-0.01 15.855,0 16.201,0 C16.201,0 28.6,0 28.6,0 C35.106,0 40.768,-0.01 45.422,0.371 C50.228,0.763 55.093,1.636 59.798,4.034 C66.76,7.581 72.42,13.241 75.967,20.203 C78.365,24.908 79.238,29.773 79.63,34.578 C80.011,39.233 80,44.895 80,51.401 C80,51.401 80,63.8 80,63.8 C80,64.146 80.011,65.187 79.93,66.172 C79.837,67.31 79.564,69.458 78.366,71.81 C78.366,71.81 78.086,72.333 78.086,72.333 C76.639,74.916 74.456,77.017 71.81,78.366 C71.81,78.366 71.371,78.579 71.371,78.579 C69.194,79.597 67.239,79.843 66.172,79.93 C65.187,80.011 64.146,80 63.8,80 C63.8,80 16.201,80 16.201,80 C15.855,80 14.814,80.011 13.829,79.93 C12.762,79.843 10.807,79.597 8.629,78.579 C8.629,78.579 8.191,78.366 8.191,78.366 C8.191,78.366 7.667,78.086 7.667,78.086 C5.257,76.735 3.265,74.744 1.914,72.333 C1.914,72.333 1.635,71.81 1.635,71.81 C1.635,71.81 1.421,71.371 1.421,71.371 C0.404,69.194 0.158,67.239 0.071,66.172 C-0.01,65.187 0,64.146 0,63.8 C0,63.8 0,16.201 0,16.201 C0,16.201 0,16.201 0,16.201 Z M54,51.401 C54,44.466 53.99,40.046 53.716,36.696 C53.455,33.498 53.02,32.435 52.801,32.006 C51.747,29.937 50.064,28.254 47.995,27.2 C47.566,26.981 46.503,26.546 43.305,26.285 C39.955,26.011 35.535,26 28.6,26 C28.6,26 26,26 26,26 C26,26 26,54 26,54 C26,54 54,54 54,54 C54,54 54,51.401 54,51.401 C54,51.401 54,51.401 54,51.401 Z';
|
|
14
|
+
}, {
|
|
15
|
+
readonly key: 'c';
|
|
16
|
+
readonly d: 'M0,63.8 C0,64.146 -0.01,65.187 0.071,66.172 C0.164,67.31 0.437,69.458 1.635,71.81 C3.073,74.632 5.368,76.927 8.191,78.366 C10.543,79.564 12.691,79.837 13.829,79.93 C14.814,80.011 15.855,80 16.201,80 C16.201,80 28.6,80 28.6,80 C35.106,80 40.768,80.011 45.422,79.63 C50.228,79.238 55.093,78.365 59.798,75.967 C66.76,72.42 72.42,66.76 75.967,59.798 C78.365,55.093 79.238,50.228 79.63,45.422 C80.011,40.768 80,35.106 80,28.6 C80,28.6 80,16.201 80,16.201 C80,15.855 80.011,14.814 79.93,13.829 C79.837,12.691 79.564,10.543 78.366,8.191 C78.366,8.191 78.086,7.667 78.086,7.667 C76.639,5.084 74.456,2.983 71.81,1.635 C71.81,1.635 71.371,1.421 71.371,1.421 C69.194,0.404 67.239,0.158 66.172,0.071 C65.187,-0.01 64.146,0 63.8,0 C63.8,0 16.201,0 16.201,0 C15.855,0 14.814,-0.01 13.829,0.071 C12.762,0.158 10.807,0.404 8.629,1.421 C8.629,1.421 8.191,1.635 8.191,1.635 C8.191,1.635 7.667,1.914 7.667,1.914 C5.257,3.265 3.265,5.257 1.914,7.667 C1.914,7.667 1.635,8.191 1.635,8.191 C1.635,8.191 1.421,8.629 1.421,8.629 C0.404,10.807 0.158,12.762 0.071,13.829 C-0.01,14.814 0,15.855 0,16.201 C0,16.201 0,63.8 0,63.8 C0,63.8 0,63.8 0,63.8 Z M54,28.6 C54,35.535 53.99,39.955 53.716,43.305 C53.455,46.503 53.02,47.566 52.801,47.995 C51.747,50.064 50.064,51.747 47.995,52.801 C47.566,53.02 46.503,53.455 43.305,53.716 C39.955,53.99 35.535,54 28.6,54 C28.6,54 26,54 26,54 C26,54 26,26 26,26 C26,26 54,26 54,26 C54,26 54,28.6 54,28.6 C54,28.6 54,28.6 54,28.6 Z';
|
|
17
|
+
}, {
|
|
18
|
+
readonly key: 'd';
|
|
19
|
+
readonly d: 'M16.201,0 C15.855,0 14.814,-0.01 13.829,0.071 C12.691,0.164 10.543,0.437 8.191,1.635 C5.368,3.073 3.073,5.368 1.635,8.191 C0.437,10.543 0.164,12.691 0.071,13.829 C-0.01,14.814 0,15.855 0,16.201 C0,16.201 0,28.6 0,28.6 C0,35.106 -0.01,40.768 0.371,45.422 C0.763,50.228 1.636,55.093 4.034,59.798 C7.581,66.76 13.241,72.42 20.203,75.967 C24.908,78.365 29.773,79.238 34.578,79.63 C39.233,80.011 44.895,80 51.401,80 C51.401,80 63.8,80 63.8,80 C64.146,80 65.187,80.011 66.172,79.93 C67.31,79.837 69.458,79.564 71.81,78.366 C71.81,78.366 72.333,78.086 72.333,78.086 C74.916,76.639 77.017,74.456 78.366,71.81 C78.366,71.81 78.579,71.371 78.579,71.371 C79.597,69.194 79.843,67.239 79.93,66.172 C80.011,65.187 80,64.146 80,63.8 C80,63.8 80,16.201 80,16.201 C80,15.855 80.011,14.814 79.93,13.829 C79.843,12.762 79.597,10.807 78.579,8.629 C78.579,8.629 78.366,8.191 78.366,8.191 C78.366,8.191 78.086,7.667 78.086,7.667 C76.735,5.257 74.744,3.265 72.333,1.914 C72.333,1.914 71.81,1.635 71.81,1.635 C71.81,1.635 71.371,1.421 71.371,1.421 C69.194,0.404 67.239,0.158 66.172,0.071 C65.187,-0.01 64.146,0 63.8,0 C63.8,0 16.201,0 16.201,0 C16.201,0 16.201,0 16.201,0 Z M51.401,54 C44.466,54 40.046,53.99 36.696,53.716 C33.498,53.455 32.435,53.02 32.006,52.801 C29.937,51.747 28.254,50.064 27.2,47.995 C26.981,47.566 26.546,46.503 26.285,43.305 C26.011,39.955 26,35.535 26,28.6 C26,28.6 26,26 26,26 C26,26 54,26 54,26 C54,26 54,54 54,54 C54,54 51.401,54 51.401,54 C51.401,54 51.401,54 51.401,54 Z';
|
|
20
|
+
}];
|
|
21
|
+
//# sourceMappingURL=harness-loader-blades.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"harness-loader-blades.d.ts","sourceRoot":"","sources":["../../src/harness-loader/harness-loader-blades.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;aAE9B,GAAG,EAAE,GAAG;aACR,CAAC,EAAE,q9CAAq9C;;aAGx9C,GAAG,EAAE,GAAG;aACR,CAAC,EAAE,s8CAAs8C;;aAGz8C,GAAG,EAAE,GAAG;aACR,CAAC,EAAE,g6CAAg6C;;aAGn6C,GAAG,EAAE,GAAG;aACR,CAAC,EAAE,s8CAAs8C;EAEn8C,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blade geometry for the Harness mark loading animation.
|
|
3
|
+
*
|
|
4
|
+
* Each blade is one quadrant of the Harness logo: a rounded square with a notched
|
|
5
|
+
* inner corner, drawn in an 80x80 viewBox so its center sits at (40, 40) — the
|
|
6
|
+
* rotation origin the keyframes in harness-loader.css animate around.
|
|
7
|
+
*/
|
|
8
|
+
export const HARNESS_LOADER_BLADES = [
|
|
9
|
+
{
|
|
10
|
+
key: 'a',
|
|
11
|
+
d: 'M16.201,80 C15.855,80 14.814,80.011 13.829,79.93 C12.691,79.837 10.543,79.564 8.191,78.366 C5.368,76.928 3.073,74.632 1.635,71.81 C0.437,69.458 0.164,67.31 0.071,66.172 C-0.01,65.187 0,64.146 0,63.8 C0,63.8 0,51.401 0,51.401 C0,44.895 -0.01,39.233 0.371,34.578 C0.763,29.773 1.636,24.908 4.034,20.203 C7.581,13.241 13.241,7.581 20.203,4.034 C24.908,1.636 29.773,0.763 34.578,0.371 C39.233,-0.01 44.895,0 51.401,0 C51.401,0 63.8,0 63.8,0 C64.146,0 65.187,-0.01 66.172,0.071 C67.31,0.164 69.458,0.437 71.81,1.635 C71.81,1.635 72.333,1.914 72.333,1.914 C74.916,3.362 77.017,5.545 78.366,8.191 C78.366,8.191 78.579,8.629 78.579,8.629 C79.597,10.807 79.843,12.762 79.93,13.829 C80.011,14.814 80,15.855 80,16.201 C80,16.201 80,63.8 80,63.8 C80,64.146 80.011,65.187 79.93,66.172 C79.843,67.239 79.597,69.194 78.579,71.371 C78.579,71.371 78.366,71.81 78.366,71.81 C78.366,71.81 78.086,72.333 78.086,72.333 C76.735,74.744 74.744,76.735 72.333,78.086 C72.333,78.086 71.81,78.366 71.81,78.366 C71.81,78.366 71.371,78.579 71.371,78.579 C69.194,79.597 67.239,79.843 66.172,79.93 C65.187,80.011 64.146,80 63.8,80 C63.8,80 16.201,80 16.201,80 C16.201,80 16.201,80 16.201,80 Z M51.401,26 C44.466,26 40.046,26.011 36.696,26.285 C33.498,26.546 32.435,26.981 32.006,27.2 C29.937,28.254 28.254,29.937 27.2,32.006 C26.981,32.435 26.546,33.498 26.285,36.696 C26.011,40.046 26,44.466 26,51.401 C26,51.401 26,54 26,54 C26,54 54,54 54,54 C54,54 54,26 54,26 C54,26 51.401,26 51.401,26 C51.401,26 51.401,26 51.401,26 Z'
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
key: 'b',
|
|
15
|
+
d: 'M0,16.201 C0,15.855 -0.01,14.814 0.071,13.829 C0.164,12.691 0.437,10.543 1.635,8.191 C3.073,5.368 5.368,3.073 8.191,1.635 C10.543,0.437 12.691,0.164 13.829,0.071 C14.814,-0.01 15.855,0 16.201,0 C16.201,0 28.6,0 28.6,0 C35.106,0 40.768,-0.01 45.422,0.371 C50.228,0.763 55.093,1.636 59.798,4.034 C66.76,7.581 72.42,13.241 75.967,20.203 C78.365,24.908 79.238,29.773 79.63,34.578 C80.011,39.233 80,44.895 80,51.401 C80,51.401 80,63.8 80,63.8 C80,64.146 80.011,65.187 79.93,66.172 C79.837,67.31 79.564,69.458 78.366,71.81 C78.366,71.81 78.086,72.333 78.086,72.333 C76.639,74.916 74.456,77.017 71.81,78.366 C71.81,78.366 71.371,78.579 71.371,78.579 C69.194,79.597 67.239,79.843 66.172,79.93 C65.187,80.011 64.146,80 63.8,80 C63.8,80 16.201,80 16.201,80 C15.855,80 14.814,80.011 13.829,79.93 C12.762,79.843 10.807,79.597 8.629,78.579 C8.629,78.579 8.191,78.366 8.191,78.366 C8.191,78.366 7.667,78.086 7.667,78.086 C5.257,76.735 3.265,74.744 1.914,72.333 C1.914,72.333 1.635,71.81 1.635,71.81 C1.635,71.81 1.421,71.371 1.421,71.371 C0.404,69.194 0.158,67.239 0.071,66.172 C-0.01,65.187 0,64.146 0,63.8 C0,63.8 0,16.201 0,16.201 C0,16.201 0,16.201 0,16.201 Z M54,51.401 C54,44.466 53.99,40.046 53.716,36.696 C53.455,33.498 53.02,32.435 52.801,32.006 C51.747,29.937 50.064,28.254 47.995,27.2 C47.566,26.981 46.503,26.546 43.305,26.285 C39.955,26.011 35.535,26 28.6,26 C28.6,26 26,26 26,26 C26,26 26,54 26,54 C26,54 54,54 54,54 C54,54 54,51.401 54,51.401 C54,51.401 54,51.401 54,51.401 Z'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
key: 'c',
|
|
19
|
+
d: 'M0,63.8 C0,64.146 -0.01,65.187 0.071,66.172 C0.164,67.31 0.437,69.458 1.635,71.81 C3.073,74.632 5.368,76.927 8.191,78.366 C10.543,79.564 12.691,79.837 13.829,79.93 C14.814,80.011 15.855,80 16.201,80 C16.201,80 28.6,80 28.6,80 C35.106,80 40.768,80.011 45.422,79.63 C50.228,79.238 55.093,78.365 59.798,75.967 C66.76,72.42 72.42,66.76 75.967,59.798 C78.365,55.093 79.238,50.228 79.63,45.422 C80.011,40.768 80,35.106 80,28.6 C80,28.6 80,16.201 80,16.201 C80,15.855 80.011,14.814 79.93,13.829 C79.837,12.691 79.564,10.543 78.366,8.191 C78.366,8.191 78.086,7.667 78.086,7.667 C76.639,5.084 74.456,2.983 71.81,1.635 C71.81,1.635 71.371,1.421 71.371,1.421 C69.194,0.404 67.239,0.158 66.172,0.071 C65.187,-0.01 64.146,0 63.8,0 C63.8,0 16.201,0 16.201,0 C15.855,0 14.814,-0.01 13.829,0.071 C12.762,0.158 10.807,0.404 8.629,1.421 C8.629,1.421 8.191,1.635 8.191,1.635 C8.191,1.635 7.667,1.914 7.667,1.914 C5.257,3.265 3.265,5.257 1.914,7.667 C1.914,7.667 1.635,8.191 1.635,8.191 C1.635,8.191 1.421,8.629 1.421,8.629 C0.404,10.807 0.158,12.762 0.071,13.829 C-0.01,14.814 0,15.855 0,16.201 C0,16.201 0,63.8 0,63.8 C0,63.8 0,63.8 0,63.8 Z M54,28.6 C54,35.535 53.99,39.955 53.716,43.305 C53.455,46.503 53.02,47.566 52.801,47.995 C51.747,50.064 50.064,51.747 47.995,52.801 C47.566,53.02 46.503,53.455 43.305,53.716 C39.955,53.99 35.535,54 28.6,54 C28.6,54 26,54 26,54 C26,54 26,26 26,26 C26,26 54,26 54,26 C54,26 54,28.6 54,28.6 C54,28.6 54,28.6 54,28.6 Z'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
key: 'd',
|
|
23
|
+
d: 'M16.201,0 C15.855,0 14.814,-0.01 13.829,0.071 C12.691,0.164 10.543,0.437 8.191,1.635 C5.368,3.073 3.073,5.368 1.635,8.191 C0.437,10.543 0.164,12.691 0.071,13.829 C-0.01,14.814 0,15.855 0,16.201 C0,16.201 0,28.6 0,28.6 C0,35.106 -0.01,40.768 0.371,45.422 C0.763,50.228 1.636,55.093 4.034,59.798 C7.581,66.76 13.241,72.42 20.203,75.967 C24.908,78.365 29.773,79.238 34.578,79.63 C39.233,80.011 44.895,80 51.401,80 C51.401,80 63.8,80 63.8,80 C64.146,80 65.187,80.011 66.172,79.93 C67.31,79.837 69.458,79.564 71.81,78.366 C71.81,78.366 72.333,78.086 72.333,78.086 C74.916,76.639 77.017,74.456 78.366,71.81 C78.366,71.81 78.579,71.371 78.579,71.371 C79.597,69.194 79.843,67.239 79.93,66.172 C80.011,65.187 80,64.146 80,63.8 C80,63.8 80,16.201 80,16.201 C80,15.855 80.011,14.814 79.93,13.829 C79.843,12.762 79.597,10.807 78.579,8.629 C78.579,8.629 78.366,8.191 78.366,8.191 C78.366,8.191 78.086,7.667 78.086,7.667 C76.735,5.257 74.744,3.265 72.333,1.914 C72.333,1.914 71.81,1.635 71.81,1.635 C71.81,1.635 71.371,1.421 71.371,1.421 C69.194,0.404 67.239,0.158 66.172,0.071 C65.187,-0.01 64.146,0 63.8,0 C63.8,0 16.201,0 16.201,0 C16.201,0 16.201,0 16.201,0 Z M51.401,54 C44.466,54 40.046,53.99 36.696,53.716 C33.498,53.455 32.435,53.02 32.006,52.801 C29.937,51.747 28.254,50.064 27.2,47.995 C26.981,47.566 26.546,46.503 26.285,43.305 C26.011,39.955 26,35.535 26,28.6 C26,28.6 26,26 26,26 C26,26 54,26 54,26 C54,26 54,54 54,54 C54,54 51.401,54 51.401,54 C51.401,54 51.401,54 51.401,54 Z'
|
|
24
|
+
}
|
|
25
|
+
];
|