oasis-chat-test 0.9.0 → 0.11.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.
@@ -0,0 +1,14 @@
1
+ export interface CreateButtonOptions {
2
+ /**
3
+ * 테마 설정 ('light' | 'dark' | 'auto')
4
+ * - 'light': 라이트 모드
5
+ * - 'dark': 다크 모드
6
+ * - 'auto': 시스템 설정에 따라 자동 (기본값)
7
+ * @default 'auto'
8
+ */
9
+ theme?: 'light' | 'dark' | 'auto'
10
+ }
11
+
12
+ export function createButton(options?: CreateButtonOptions): HTMLElement
13
+
14
+ export function resetPanelInstance(): void
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from 'react'
2
+
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
+
14
+ export declare function OasisButton(props?: OasisButtonProps): ReactNode
@@ -0,0 +1,9 @@
1
+ import type { DefineComponent } from 'vue'
2
+
3
+ export declare const OasisButton: DefineComponent<
4
+ {
5
+ theme?: 'light' | 'dark' | 'auto'
6
+ },
7
+ Record<string, never>,
8
+ any
9
+ >
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "oasis-chat-test",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "Vanilla JS button component with axios for API requests.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "dev": "vite",
9
9
  "build": "vite build",
10
- "build:lib": "vite build --config vite.lib.config.js && vite build --config vite.react.config.js && vite build --config vite.vue.config.js && mkdir -p dist/vue && cp dist/oasis-chat-test.css dist/react/oasis-chat.css && cp dist/oasis-chat-test.css dist/vue/oasis-chat.css && node scripts/post-build-react.js && node scripts/post-build-vue.js",
10
+ "build:lib": "vite build --config vite.lib.config.js && vite build --config vite.react.config.js && vite build --config vite.vue.config.js && mkdir -p dist/vue && cp dist/oasis-chat-test.css dist/react/oasis-chat.css && cp dist/oasis-chat-test.css dist/vue/oasis-chat.css && node scripts/post-build-react.js && node scripts/post-build-vue.js && node scripts/generate-types.js",
11
11
  "preview": "vite preview",
12
12
  "format": "prettier --write ."
13
13
  },