@blockspark/chat-widget 1.0.3 → 1.0.5
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/README.md +148 -288
- package/dist/adapters/vue/index.d.ts +7 -0
- package/dist/adapters/vue/index.d.ts.map +1 -0
- package/dist/adapters/vue/useChatMode.d.ts +21 -0
- package/dist/adapters/vue/useChatMode.d.ts.map +1 -0
- package/dist/core/stateManager.d.ts +136 -0
- package/dist/core/stateManager.d.ts.map +1 -0
- package/dist/core/types.d.ts +66 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/entry/next.d.ts +9 -0
- package/dist/entry/next.d.ts.map +1 -0
- package/dist/entry/nuxt.d.ts +7 -0
- package/dist/entry/nuxt.d.ts.map +1 -0
- package/dist/entry/react.d.ts +10 -0
- package/dist/entry/react.d.ts.map +1 -0
- package/dist/entry/vanilla.d.ts +33 -0
- package/dist/entry/vanilla.d.ts.map +1 -0
- package/dist/entry/vite.d.ts +11 -0
- package/dist/entry/vite.d.ts.map +1 -0
- package/dist/entry/vue.d.ts +9 -0
- package/dist/entry/vue.d.ts.map +1 -0
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.LICENSE.txt +27 -0
- package/dist/index.d.ts +18 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.LICENSE.txt +27 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.LICENSE.txt +27 -0
- package/dist/react.cjs.js +2 -0
- package/dist/react.cjs.js.LICENSE.txt +9 -0
- package/dist/react.esm.js +2 -0
- package/dist/react.esm.js.LICENSE.txt +9 -0
- package/dist/styles.css +11 -0
- package/dist/utils/frameworkDetector.d.ts +17 -0
- package/dist/utils/frameworkDetector.d.ts.map +1 -0
- package/dist/vue.cjs.js +1 -0
- package/dist/vue.esm.js +1 -0
- package/package.json +109 -40
- package/types/vue.d.ts +0 -8
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @vue/runtime-core v3.5.28
|
|
13
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14
|
+
* @license MIT
|
|
15
|
+
**/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @vue/runtime-dom v3.5.28
|
|
19
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
|
+
* @license MIT
|
|
21
|
+
**/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @vue/shared v3.5.28
|
|
25
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
26
|
+
* @license MIT
|
|
27
|
+
**/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Main Entry Point - Auto-detection
|
|
3
|
+
* Defaults to React component (original full-featured component)
|
|
4
|
+
* For framework-specific usage, use explicit entry points:
|
|
5
|
+
* - @blockspark/chat-widget/react (uses original component)
|
|
6
|
+
* - @blockspark/chat-widget/vue (uses Vue adapter)
|
|
7
|
+
* - @blockspark/chat-widget/next (uses original component)
|
|
8
|
+
* - @blockspark/chat-widget/vite (uses original component)
|
|
9
|
+
* - etc.
|
|
10
|
+
*/
|
|
1
11
|
export { default as ChatWidget } from './components/ChatWidget';
|
|
2
|
-
export
|
|
12
|
+
export { default } from './components/ChatWidget';
|
|
13
|
+
export type { ChatWidgetProps } from './components/ChatWidget';
|
|
3
14
|
export * from './types';
|
|
4
|
-
|
|
5
|
-
export
|
|
15
|
+
export * from './services/dialogflowClient';
|
|
16
|
+
export { getFramework, setFramework } from './utils/frameworkDetector';
|
|
17
|
+
export type { Framework, FrameworkInfo } from './utils/frameworkDetector';
|
|
18
|
+
export { default as ReactChatWidget } from './components/ChatWidget';
|
|
19
|
+
export type { ChatWidgetProps as ReactChatWidgetProps } from './components/ChatWidget';
|
|
20
|
+
export { ChatWidget as VanillaChatWidget, createChatWidget } from './entry/vanilla';
|
|
6
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG/D,cAAc,SAAS,CAAC;AACxB,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACvE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI1E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACrE,YAAY,EAAE,eAAe,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAGvF,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC"}
|