@miso.ai/client-sdk-ui 1.11.0-beta.8 → 1.11.0-beta.9
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.
|
@@ -37,7 +37,7 @@ class Sections extends _templates.Sections {
|
|
|
37
37
|
} = this._helpers;
|
|
38
38
|
return phrase(options, {
|
|
39
39
|
name: 'question',
|
|
40
|
-
tag: '
|
|
40
|
+
tag: 'div'
|
|
41
41
|
}).replaceAll('${value}', '<miso-question></miso-question>');
|
|
42
42
|
}
|
|
43
43
|
answerBoxToggle(options) {
|
|
@@ -121,15 +121,19 @@ function root() {
|
|
|
121
121
|
} = helpers;
|
|
122
122
|
options = normalizeOptions(options);
|
|
123
123
|
const {
|
|
124
|
-
answerBox
|
|
124
|
+
answerBox,
|
|
125
|
+
answerGroup
|
|
125
126
|
} = sections;
|
|
127
|
+
const {
|
|
128
|
+
answerBox: answerBoxOptions = true
|
|
129
|
+
} = options;
|
|
126
130
|
return [section(options, {
|
|
127
131
|
name: 'question'
|
|
128
132
|
}, [container(options, {
|
|
129
133
|
name: 'query'
|
|
130
134
|
}, '<miso-query></miso-query>')]), section(options, {
|
|
131
135
|
name: 'answer'
|
|
132
|
-
}, [answerBox(options)]), section(options, {
|
|
136
|
+
}, answerBoxOptions ? [answerBox(options)] : answerGroup(options)), section(options, {
|
|
133
137
|
name: 'search-results'
|
|
134
138
|
}, sections.searchResultsGroup(options))].join('');
|
|
135
139
|
}
|
package/dist/cjs/version.js
CHANGED
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ class Sections extends _Sections {
|
|
|
20
20
|
|
|
21
21
|
question(options) {
|
|
22
22
|
const { phrase } = this._helpers;
|
|
23
|
-
return phrase(options, { name: 'question', tag: '
|
|
23
|
+
return phrase(options, { name: 'question', tag: 'div' }).replaceAll('${value}', '<miso-question></miso-question>');
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
answerBoxToggle(options) {
|
|
@@ -75,14 +75,13 @@ export const sections = externalize(new Sections({ helpers }));
|
|
|
75
75
|
export function root(options = {}) {
|
|
76
76
|
const { normalizeOptions, section, container } = helpers;
|
|
77
77
|
options = normalizeOptions(options);
|
|
78
|
-
const { answerBox } = sections;
|
|
78
|
+
const { answerBox, answerGroup } = sections;
|
|
79
|
+
const { answerBox: answerBoxOptions = true } = options;
|
|
79
80
|
return [
|
|
80
81
|
section(options, { name: 'question' }, [
|
|
81
82
|
container(options, { name: 'query' }, '<miso-query></miso-query>'),
|
|
82
83
|
]),
|
|
83
|
-
section(options, { name: 'answer' }, [
|
|
84
|
-
answerBox(options),
|
|
85
|
-
]),
|
|
84
|
+
section(options, { name: 'answer' }, answerBoxOptions ? [ answerBox(options) ] : answerGroup(options)),
|
|
86
85
|
section(options, { name: 'search-results' }, sections.searchResultsGroup(options)),
|
|
87
86
|
].join('');
|
|
88
87
|
};
|
package/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.11.0-beta.
|
|
1
|
+
export default '1.11.0-beta.9';
|