@quidgest/chatbot 0.0.5 → 0.0.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/README.md +8 -0
- package/dist/components/CBMessage.vue.d.ts +8 -4
- package/dist/components/ChatBot.vue.d.ts +10 -5
- package/dist/components/index.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -4298
- package/dist/index.mjs +1914 -3573
- package/dist/style.css +1 -96
- package/package.json +11 -7
- package/src/assets/styles/styles.scss +7 -11
- package/src/components/CBMessage.vue +29 -6
- package/src/components/ChatBot.vue +131 -117
- package/src/components/index.ts +3 -6
- package/src/types/message.type.ts +5 -5
- package/src/types/texts.type.ts +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Vue 3 + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
## Recommended IDE Setup
|
|
6
|
+
|
|
7
|
+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
8
|
+
|
|
@@ -3,17 +3,21 @@ export interface CBMessageProps {
|
|
|
3
3
|
message?: string;
|
|
4
4
|
date?: Date;
|
|
5
5
|
loading?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Project locale
|
|
8
|
+
*/
|
|
9
|
+
dateFormat?: string;
|
|
6
10
|
}
|
|
7
|
-
declare const _default: import(
|
|
11
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CBMessageProps>, {
|
|
8
12
|
sender: string;
|
|
9
13
|
date: () => Date;
|
|
10
|
-
}
|
|
14
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CBMessageProps>, {
|
|
11
15
|
sender: string;
|
|
12
16
|
date: () => Date;
|
|
13
|
-
}
|
|
17
|
+
}>>> & Readonly<{}>, {
|
|
14
18
|
sender: "bot" | "user";
|
|
15
19
|
date: Date;
|
|
16
|
-
}, {}>;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
21
|
export default _default;
|
|
18
22
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
23
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ResourceStrings } from '../types/texts.type';
|
|
2
|
+
|
|
2
3
|
export type ChatBotProps = {
|
|
3
4
|
/**
|
|
4
5
|
* API Enpoint URL
|
|
@@ -16,8 +17,12 @@ export type ChatBotProps = {
|
|
|
16
17
|
* Project aplication path
|
|
17
18
|
*/
|
|
18
19
|
projectPath: string;
|
|
20
|
+
/**
|
|
21
|
+
* Project locale
|
|
22
|
+
*/
|
|
23
|
+
dateFormat?: string;
|
|
19
24
|
};
|
|
20
|
-
declare const _default: import(
|
|
25
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ChatBotProps>, {
|
|
21
26
|
apiEndpoint: string;
|
|
22
27
|
texts: () => {
|
|
23
28
|
chatbotTitle: string;
|
|
@@ -27,7 +32,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
27
32
|
loginError: string;
|
|
28
33
|
botIsSick: string;
|
|
29
34
|
};
|
|
30
|
-
}
|
|
35
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ChatBotProps>, {
|
|
31
36
|
apiEndpoint: string;
|
|
32
37
|
texts: () => {
|
|
33
38
|
chatbotTitle: string;
|
|
@@ -37,10 +42,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
37
42
|
loginError: string;
|
|
38
43
|
botIsSick: string;
|
|
39
44
|
};
|
|
40
|
-
}
|
|
45
|
+
}>>> & Readonly<{}>, {
|
|
41
46
|
apiEndpoint: string;
|
|
42
47
|
texts: ResourceStrings;
|
|
43
|
-
}, {}>;
|
|
48
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
44
49
|
export default _default;
|
|
45
50
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
46
51
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import CBMessage from
|
|
2
|
-
|
|
1
|
+
import { default as CBMessage, CBMessageProps } from './CBMessage.vue';
|
|
2
|
+
|
|
3
3
|
export { CBMessage, CBMessageProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ChatBot from './components/ChatBot.vue';
|
|
2
|
-
|
|
1
|
+
import { default as ChatBot } from './components/ChatBot.vue';
|
|
2
|
+
|
|
3
3
|
export default ChatBot;
|