@quidgest/chatbot 0.5.4 → 0.5.6
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.js +5 -5
- package/dist/index.mjs +156 -149
- package/dist/utils/string.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/ChatBot/__tests__/__snapshots__/ChatBot.spec.ts.snap +1 -1
- package/src/components/ChatBotInput/ChatBotInput.vue +1 -0
- package/src/components/ChatBotInput/__tests__/__snapshots__/ChatBotInput.spec.ts.snap +1 -1
- package/src/components/FieldPreview/FieldPreview.vue +5 -1
- package/src/components/FieldPreview/__tests__/__snapshots__/FieldPreview.spec.ts.snap +1 -1
- package/src/utils/string.ts +6 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toKebabCase(str: string): string;
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ exports[`ChatBot > renders the component with default props 1`] = `
|
|
|
21
21
|
<div class="q-field q-field--block q-field--disabled q-text-area">
|
|
22
22
|
<!--v-if-->
|
|
23
23
|
<div class="q-field__control">
|
|
24
|
-
<!--v-if--><textarea id="
|
|
24
|
+
<!--v-if--><textarea id="chatbot-input" class="q-text-area__input" disabled="" rows="2" resize="none" wrap="soft"></textarea>
|
|
25
25
|
<!--v-if-->
|
|
26
26
|
</div>
|
|
27
27
|
<!--v-if-->
|
|
@@ -9,7 +9,7 @@ exports[`ChatBotInput > renders correctly with default props 1`] = `
|
|
|
9
9
|
<div class="q-field q-field--block q-text-area">
|
|
10
10
|
<!--v-if-->
|
|
11
11
|
<div class="q-field__control">
|
|
12
|
-
<!--v-if--><textarea id="
|
|
12
|
+
<!--v-if--><textarea id="chatbot-input" class="q-text-area__input" rows="2" resize="none" wrap="soft"></textarea>
|
|
13
13
|
<!--v-if-->
|
|
14
14
|
</div>
|
|
15
15
|
<!--v-if-->
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="q-field-preview"
|
|
4
|
+
:data-testid="toKebabCase(props.name)">
|
|
3
5
|
<div class="q-field-preview__toolbar">
|
|
4
6
|
<span>
|
|
5
7
|
{{ texts.suggestionsForField }} <b>{{ props.name }}</b>
|
|
@@ -39,7 +41,9 @@
|
|
|
39
41
|
import { FieldPreviewProps } from './types'
|
|
40
42
|
import { useTexts } from '@/composables/useTexts'
|
|
41
43
|
import { computed, ref } from 'vue'
|
|
44
|
+
|
|
42
45
|
import { parseFieldValue } from '@/utils/parseFieldValue'
|
|
46
|
+
import { toKebabCase } from '@/utils/string'
|
|
43
47
|
|
|
44
48
|
const props = defineProps<FieldPreviewProps>()
|
|
45
49
|
const emit = defineEmits<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
3
|
exports[`FieldPreview > renders correctly with default props 1`] = `
|
|
4
|
-
"<div class="q-field-preview">
|
|
4
|
+
"<div class="q-field-preview" data-testid="test-field">
|
|
5
5
|
<div class="q-field-preview__toolbar"><span>Suggestions for field: <b>Test Field</b></span></div>
|
|
6
6
|
<div class="q-field-preview__content">
|
|
7
7
|
<div class="markdown-renderer">
|