oasis-chat-button 0.5.0 → 0.6.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/index.d.ts CHANGED
@@ -7,8 +7,17 @@ export interface CreateButtonOptions {
7
7
  * @default 'auto'
8
8
  */
9
9
  theme?: 'light' | 'dark' | 'auto'
10
+ /**
11
+ * 어시스턴트 UUID
12
+ */
13
+ assistantUuid: string
10
14
  }
11
15
 
12
16
  export function createButton(options?: CreateButtonOptions): HTMLElement
13
17
 
14
18
  export function resetPanelInstance(): void
19
+
20
+ export function performLogin(
21
+ accountId: string,
22
+ password: string,
23
+ ): Promise<boolean>
@@ -1,5 +1,3 @@
1
- import type { ReactNode } from 'react'
2
-
3
1
  export interface OasisButtonProps {
4
2
  /**
5
3
  * 테마 설정 ('light' | 'dark' | 'auto')
@@ -9,6 +7,10 @@ export interface OasisButtonProps {
9
7
  * @default 'auto'
10
8
  */
11
9
  theme?: 'light' | 'dark' | 'auto'
10
+ /**
11
+ * 어시스턴트 UUID
12
+ */
13
+ assistantUuid: string
12
14
  }
13
15
 
14
- export declare function OasisButton(props?: OasisButtonProps): ReactNode
16
+ export declare function OasisButton(props?: OasisButtonProps): React.ReactNode
@@ -1,9 +1,18 @@
1
1
  import type { DefineComponent } from 'vue'
2
2
 
3
- export declare const OasisButton: DefineComponent<
4
- {
5
- theme?: 'light' | 'dark' | 'auto'
6
- },
7
- Record<string, never>,
8
- any
9
- >
3
+ export interface OasisButtonProps {
4
+ /**
5
+ * 테마 설정 ('light' | 'dark' | 'auto')
6
+ * - 'light': 라이트 모드
7
+ * - 'dark': 다크 모드
8
+ * - 'auto': 시스템 설정에 따라 자동 (기본값)
9
+ * @default 'auto'
10
+ */
11
+ theme?: 'light' | 'dark' | 'auto'
12
+ /**
13
+ * 어시스턴트 UUID
14
+ */
15
+ assistantUuid: string
16
+ }
17
+
18
+ export declare const OasisButton: DefineComponent<OasisButtonProps>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-chat-button",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Vanilla JS button component with axios for API requests.",
5
5
  "license": "MIT",
6
6
  "type": "module",