react-native-my-survey-sdk 3.1.3 → 4.0.1
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/components/XeboDropdownView.d.ts +6 -2
- package/dist/components/XeboDropdownView.d.ts.map +1 -1
- package/dist/components/XeboDropdownView.js +28 -19
- package/dist/components/XeboLanguageView.js +1 -1
- package/dist/components/XeboMultiNPSView.d.ts +4 -2
- package/dist/components/XeboMultiNPSView.d.ts.map +1 -1
- package/dist/components/XeboMultiNPSView.js +25 -27
- package/dist/components/XeboMultiRatingView.d.ts +4 -2
- package/dist/components/XeboMultiRatingView.d.ts.map +1 -1
- package/dist/components/XeboMultiRatingView.js +27 -20
- package/dist/components/XeboMultipleChoiceView.d.ts +6 -2
- package/dist/components/XeboMultipleChoiceView.d.ts.map +1 -1
- package/dist/components/XeboMultipleChoiceView.js +35 -38
- package/dist/components/XeboNPSView.d.ts +8 -2
- package/dist/components/XeboNPSView.d.ts.map +1 -1
- package/dist/components/XeboNPSView.js +307 -59
- package/dist/components/XeboPageView.d.ts +33 -0
- package/dist/components/XeboPageView.d.ts.map +1 -0
- package/dist/components/XeboPageView.js +190 -0
- package/dist/components/XeboRatingView.d.ts +20 -2
- package/dist/components/XeboRatingView.d.ts.map +1 -1
- package/dist/components/XeboRatingView.js +72 -46
- package/dist/components/XeboSingleChoiceView.d.ts +8 -2
- package/dist/components/XeboSingleChoiceView.d.ts.map +1 -1
- package/dist/components/XeboSingleChoiceView.js +42 -40
- package/dist/components/XeboSurveyModal.d.ts.map +1 -1
- package/dist/components/XeboSurveyModal.js +152 -37
- package/dist/components/XeboTextBoxView.d.ts +4 -2
- package/dist/components/XeboTextBoxView.d.ts.map +1 -1
- package/dist/components/XeboTextBoxView.js +28 -19
- package/dist/core/XeboLanguageService.d.ts.map +1 -1
- package/dist/core/XeboLanguageService.js +6 -0
- package/dist/core/XeboNetworkService.d.ts +12 -1
- package/dist/core/XeboNetworkService.d.ts.map +1 -1
- package/dist/core/XeboNetworkService.js +181 -64
- package/dist/core/XeboOfflineQueue.d.ts +2 -1
- package/dist/core/XeboOfflineQueue.d.ts.map +1 -1
- package/dist/core/XeboOfflineQueue.js +24 -10
- package/dist/core/XeboSurveyManager.d.ts +16 -1
- package/dist/core/XeboSurveyManager.d.ts.map +1 -1
- package/dist/core/XeboSurveyManager.js +120 -47
- package/dist/i18n/XeboRtl.d.ts +5 -0
- package/dist/i18n/XeboRtl.d.ts.map +1 -1
- package/dist/i18n/XeboRtl.js +11 -0
- package/dist/i18n/XeboStrings.d.ts +6 -0
- package/dist/i18n/XeboStrings.d.ts.map +1 -1
- package/dist/i18n/XeboStrings.js +19 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/models/XeboAPIModels.d.ts +93 -0
- package/dist/models/XeboAPIModels.d.ts.map +1 -1
- package/dist/models/XeboModels.d.ts +86 -2
- package/dist/models/XeboModels.d.ts.map +1 -1
- package/dist/models/XeboModels.js +24 -0
- package/dist/theme/XeboTheme.d.ts +7 -0
- package/dist/theme/XeboTheme.d.ts.map +1 -1
- package/dist/theme/XeboTheme.js +27 -13
- package/package.json +3 -4
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { XeboQuestion, XeboAnswer } from '../models/XeboModels';
|
|
2
|
+
import { XeboQuestion, XeboAnswer, XeboQuestionHandle } from '../models/XeboModels';
|
|
3
3
|
interface Props {
|
|
4
4
|
question: XeboQuestion;
|
|
5
5
|
isLastQuestion: boolean;
|
|
6
6
|
onAnswer: (answer: XeboAnswer) => void;
|
|
7
|
+
/** Shown with other questions on one page: no own button. */
|
|
8
|
+
embedded?: boolean;
|
|
9
|
+
/** Fires when an option is picked (drives auto-advance on a shared page). */
|
|
10
|
+
onSelect?: () => void;
|
|
7
11
|
}
|
|
8
|
-
export declare const XeboDropdownView: React.
|
|
12
|
+
export declare const XeboDropdownView: React.ForwardRefExoticComponent<Props & React.RefAttributes<XeboQuestionHandle>>;
|
|
9
13
|
export {};
|
|
10
14
|
//# sourceMappingURL=XeboDropdownView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XeboDropdownView.d.ts","sourceRoot":"","sources":["../../src/components/XeboDropdownView.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"XeboDropdownView.d.ts","sourceRoot":"","sources":["../../src/components/XeboDropdownView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AASjF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAc,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAKhG,UAAU,KAAK;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,kFA+H3B,CAAC"}
|
|
@@ -39,10 +39,13 @@ const react_native_1 = require("react-native");
|
|
|
39
39
|
const XeboTheme_1 = require("../theme/XeboTheme");
|
|
40
40
|
const XeboStrings_1 = require("../i18n/XeboStrings");
|
|
41
41
|
const XeboRtl_1 = require("../i18n/XeboRtl");
|
|
42
|
-
|
|
42
|
+
exports.XeboDropdownView = (0, react_1.forwardRef)(({ question, isLastQuestion, onAnswer, embedded, onSelect }, ref) => {
|
|
43
43
|
var _a;
|
|
44
44
|
const theme = (0, XeboTheme_1.getTheme)();
|
|
45
|
-
const [selectedChoice, setSelectedChoice] = (0, react_1.useState)(
|
|
45
|
+
const [selectedChoice, setSelectedChoice] = (0, react_1.useState)(() => {
|
|
46
|
+
var _a, _b;
|
|
47
|
+
return (_b = (_a = question.options) === null || _a === void 0 ? void 0 : _a.find(o => { var _a, _b, _c, _d; return o.id === ((_c = (_b = (_a = question.previousAnswer) === null || _a === void 0 ? void 0 : _a.value[0]) === null || _b === void 0 ? void 0 : _b.rowId) !== null && _c !== void 0 ? _c : (_d = question.autoSelectOptionIds) === null || _d === void 0 ? void 0 : _d[0]); })) !== null && _b !== void 0 ? _b : null;
|
|
48
|
+
});
|
|
46
49
|
const [isOpen, setIsOpen] = (0, react_1.useState)(false);
|
|
47
50
|
const [error, setError] = (0, react_1.useState)('');
|
|
48
51
|
const shakeAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(0)).current;
|
|
@@ -58,17 +61,24 @@ const XeboDropdownView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
58
61
|
setSelectedChoice(choice);
|
|
59
62
|
setIsOpen(false);
|
|
60
63
|
setError('');
|
|
64
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect();
|
|
61
65
|
};
|
|
62
|
-
const
|
|
66
|
+
const collect = () => {
|
|
63
67
|
if (question.isRequired && !selectedChoice) {
|
|
64
68
|
setError((0, XeboStrings_1.requiredMessage)(question, 'Please select an option.'));
|
|
65
69
|
shake();
|
|
66
|
-
return;
|
|
70
|
+
return null;
|
|
67
71
|
}
|
|
68
|
-
|
|
72
|
+
return {
|
|
69
73
|
questionId: question.id,
|
|
70
74
|
value: selectedChoice ? [{ rowId: selectedChoice.id, text: selectedChoice.text }] : [],
|
|
71
|
-
}
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
(0, react_1.useImperativeHandle)(ref, () => ({ collect }));
|
|
78
|
+
const handleNext = () => {
|
|
79
|
+
const answer = collect();
|
|
80
|
+
if (answer)
|
|
81
|
+
onAnswer(answer);
|
|
72
82
|
};
|
|
73
83
|
return (<react_native_1.View style={styles.container}>
|
|
74
84
|
<react_native_1.Text style={[styles.title, { color: theme.textColor, fontFamily: theme.fontFamily }, (0, XeboRtl_1.rtlText)()]}>
|
|
@@ -79,7 +89,7 @@ const XeboDropdownView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
79
89
|
</react_native_1.Text>)}
|
|
80
90
|
|
|
81
91
|
<react_native_1.Animated.View style={{ transform: [{ translateX: shakeAnim }] }}>
|
|
82
|
-
<react_native_1.TouchableOpacity style={[styles.trigger, { borderColor: isOpen ? theme.primaryColor :
|
|
92
|
+
<react_native_1.TouchableOpacity style={[styles.trigger, { borderColor: isOpen ? theme.primaryColor : theme.borderColor, borderRadius: theme.cornerRadius }]} onPress={() => setIsOpen(prev => !prev)} activeOpacity={0.8}>
|
|
83
93
|
<react_native_1.Text style={[
|
|
84
94
|
styles.triggerText,
|
|
85
95
|
{ color: selectedChoice ? theme.textColor : '#9CA3AF', fontFamily: theme.fontFamily },
|
|
@@ -95,6 +105,7 @@ const XeboDropdownView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
95
105
|
<react_native_1.ScrollView nestedScrollEnabled style={styles.optionsScroll} showsVerticalScrollIndicator={false}>
|
|
96
106
|
{((_a = question.options) !== null && _a !== void 0 ? _a : []).map((choice) => (<react_native_1.TouchableOpacity key={choice.id} style={[
|
|
97
107
|
styles.optionRow,
|
|
108
|
+
{ borderBottomColor: theme.selectedSurfaceColor },
|
|
98
109
|
(selectedChoice === null || selectedChoice === void 0 ? void 0 : selectedChoice.id) === choice.id && { backgroundColor: `${theme.primaryColor}15` },
|
|
99
110
|
]} onPress={() => handleSelect(choice)} activeOpacity={0.7}>
|
|
100
111
|
<react_native_1.Text style={[
|
|
@@ -114,18 +125,17 @@ const XeboDropdownView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
114
125
|
|
|
115
126
|
{!!error && <react_native_1.Text style={[styles.errorText, (0, XeboRtl_1.rtlText)()]}>{error}</react_native_1.Text>}
|
|
116
127
|
|
|
117
|
-
<react_native_1.TouchableOpacity style={[
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
128
|
+
{!embedded && (<react_native_1.TouchableOpacity style={[
|
|
129
|
+
styles.button,
|
|
130
|
+
{ backgroundColor: theme.primaryColor, borderRadius: theme.cornerRadius },
|
|
131
|
+
(question.isRequired && !selectedChoice) && styles.buttonDisabled,
|
|
132
|
+
]} onPress={handleNext} activeOpacity={0.8}>
|
|
133
|
+
<react_native_1.Text style={[styles.buttonText, { fontFamily: theme.fontFamily }]}>
|
|
134
|
+
{(0, XeboStrings_1.actionLabel)(isLastQuestion)}
|
|
135
|
+
</react_native_1.Text>
|
|
136
|
+
</react_native_1.TouchableOpacity>)}
|
|
126
137
|
</react_native_1.View>);
|
|
127
|
-
};
|
|
128
|
-
exports.XeboDropdownView = XeboDropdownView;
|
|
138
|
+
});
|
|
129
139
|
const styles = react_native_1.StyleSheet.create({
|
|
130
140
|
container: {
|
|
131
141
|
paddingHorizontal: 20,
|
|
@@ -167,7 +177,6 @@ const styles = react_native_1.StyleSheet.create({
|
|
|
167
177
|
optionRow: {
|
|
168
178
|
padding: 14,
|
|
169
179
|
borderBottomWidth: 1,
|
|
170
|
-
borderBottomColor: '#F3F4F6',
|
|
171
180
|
},
|
|
172
181
|
optionText: {
|
|
173
182
|
fontSize: 15,
|
|
@@ -29,7 +29,7 @@ const XeboLanguageView = ({ page, selectedLangKey, busy, onSelect, }) => {
|
|
|
29
29
|
styles.button,
|
|
30
30
|
{
|
|
31
31
|
backgroundColor: selected ? theme.primaryColor : 'transparent',
|
|
32
|
-
borderColor: selected ? theme.primaryColor :
|
|
32
|
+
borderColor: selected ? theme.primaryColor : theme.borderColor,
|
|
33
33
|
borderRadius: theme.cornerRadius,
|
|
34
34
|
opacity: dimmed ? 0.4 : 1,
|
|
35
35
|
},
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { XeboQuestion, XeboAnswer } from '../models/XeboModels';
|
|
2
|
+
import { XeboQuestion, XeboAnswer, XeboQuestionHandle } from '../models/XeboModels';
|
|
3
3
|
interface Props {
|
|
4
4
|
question: XeboQuestion;
|
|
5
5
|
isLastQuestion: boolean;
|
|
6
6
|
onAnswer: (answer: XeboAnswer) => void;
|
|
7
|
+
/** Shown with other questions on one page: no own button, sized to content. */
|
|
8
|
+
embedded?: boolean;
|
|
7
9
|
}
|
|
8
|
-
export declare const XeboMultiNPSView: React.
|
|
10
|
+
export declare const XeboMultiNPSView: React.ForwardRefExoticComponent<Props & React.RefAttributes<XeboQuestionHandle>>;
|
|
9
11
|
export {};
|
|
10
12
|
//# sourceMappingURL=XeboMultiNPSView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XeboMultiNPSView.d.ts","sourceRoot":"","sources":["../../src/components/XeboMultiNPSView.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"XeboMultiNPSView.d.ts","sourceRoot":"","sources":["../../src/components/XeboMultiNPSView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AASjF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAmB,MAAM,sBAAsB,CAAC;AAKrG,UAAU,KAAK;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,eAAO,MAAM,gBAAgB,kFAoH3B,CAAC"}
|
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.XeboMultiNPSView = void 0;
|
|
37
37
|
const react_1 = __importStar(require("react"));
|
|
38
38
|
const react_native_1 = require("react-native");
|
|
39
|
+
const XeboModels_1 = require("../models/XeboModels");
|
|
39
40
|
const XeboTheme_1 = require("../theme/XeboTheme");
|
|
40
41
|
const XeboStrings_1 = require("../i18n/XeboStrings");
|
|
41
42
|
const XeboRtl_1 = require("../i18n/XeboRtl");
|
|
@@ -50,20 +51,11 @@ function npsColor(score, npsLabels) {
|
|
|
50
51
|
return (_b = npsLabels === null || npsLabels === void 0 ? void 0 : npsLabels.passiveColor) !== null && _b !== void 0 ? _b : PASSIVE_COLOR;
|
|
51
52
|
return (_c = npsLabels === null || npsLabels === void 0 ? void 0 : npsLabels.promoterColor) !== null && _c !== void 0 ? _c : PROMOTER_COLOR;
|
|
52
53
|
}
|
|
53
|
-
|
|
54
|
-
const m = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
55
|
-
if (!m)
|
|
56
|
-
return false;
|
|
57
|
-
const r = parseInt(m[1], 16) / 255;
|
|
58
|
-
const g = parseInt(m[2], 16) / 255;
|
|
59
|
-
const b = parseInt(m[3], 16) / 255;
|
|
60
|
-
return 0.299 * r + 0.587 * g + 0.114 * b < 0.5;
|
|
61
|
-
}
|
|
62
|
-
const XeboMultiNPSView = ({ question, isLastQuestion, onAnswer }) => {
|
|
54
|
+
exports.XeboMultiNPSView = (0, react_1.forwardRef)(({ question, isLastQuestion, onAnswer, embedded }, ref) => {
|
|
63
55
|
var _a;
|
|
64
56
|
const theme = (0, XeboTheme_1.getTheme)();
|
|
65
57
|
const rows = (_a = question.options) !== null && _a !== void 0 ? _a : [];
|
|
66
|
-
const [scores, setScores] = (0, react_1.useState)(
|
|
58
|
+
const [scores, setScores] = (0, react_1.useState)(() => (0, XeboModels_1.scaleIndexByRow)(question));
|
|
67
59
|
const [error, setError] = (0, react_1.useState)('');
|
|
68
60
|
const shakeAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(0)).current;
|
|
69
61
|
const shake = () => {
|
|
@@ -78,13 +70,13 @@ const XeboMultiNPSView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
78
70
|
setScores(prev => (Object.assign(Object.assign({}, prev), { [rowId]: score })));
|
|
79
71
|
setError('');
|
|
80
72
|
};
|
|
81
|
-
const
|
|
73
|
+
const collect = () => {
|
|
82
74
|
if (question.isRequired && rows.some(r => scores[r.id] === undefined)) {
|
|
83
75
|
setError((0, XeboStrings_1.requiredMessage)(question, 'Please rate all items.'));
|
|
84
76
|
shake();
|
|
85
|
-
return;
|
|
77
|
+
return null;
|
|
86
78
|
}
|
|
87
|
-
|
|
79
|
+
return {
|
|
88
80
|
questionId: question.id,
|
|
89
81
|
value: rows
|
|
90
82
|
.filter(r => scores[r.id] !== undefined)
|
|
@@ -95,9 +87,15 @@ const XeboMultiNPSView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
95
87
|
colId: ((_c = (_b = (_a = question.columns) === null || _a === void 0 ? void 0 : _a[scores[r.id]]) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : scores[r.id].toString()),
|
|
96
88
|
});
|
|
97
89
|
}),
|
|
98
|
-
}
|
|
90
|
+
};
|
|
99
91
|
};
|
|
100
|
-
|
|
92
|
+
(0, react_1.useImperativeHandle)(ref, () => ({ collect }));
|
|
93
|
+
const handleNext = () => {
|
|
94
|
+
const answer = collect();
|
|
95
|
+
if (answer)
|
|
96
|
+
onAnswer(answer);
|
|
97
|
+
};
|
|
98
|
+
return (<react_native_1.View style={[styles.container, embedded && styles.embedded]}>
|
|
101
99
|
<react_native_1.Text style={[styles.title, { color: theme.textColor, fontFamily: theme.fontFamily }, (0, XeboRtl_1.rtlText)()]}>
|
|
102
100
|
{question.title}
|
|
103
101
|
</react_native_1.Text>
|
|
@@ -105,7 +103,7 @@ const XeboMultiNPSView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
105
103
|
{question.subtitle}
|
|
106
104
|
</react_native_1.Text>)}
|
|
107
105
|
|
|
108
|
-
<react_native_1.ScrollView style={styles.scroll} showsVerticalScrollIndicator={false}>
|
|
106
|
+
<react_native_1.ScrollView style={[styles.scroll, embedded && styles.embedded]} scrollEnabled={!embedded} showsVerticalScrollIndicator={false}>
|
|
109
107
|
{rows.map(row => (<react_native_1.View key={row.id} style={styles.rowWrap}>
|
|
110
108
|
<react_native_1.Text style={[styles.rowLabel, { color: theme.textColor, fontFamily: theme.fontFamily }, (0, XeboRtl_1.rtlText)()]}>
|
|
111
109
|
{row.text}
|
|
@@ -125,7 +123,7 @@ const XeboMultiNPSView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
125
123
|
]} onPress={() => setScore(row.id, i)} activeOpacity={0.8}>
|
|
126
124
|
<react_native_1.Text style={[
|
|
127
125
|
styles.scoreText,
|
|
128
|
-
{ color: isColorDark(color) ? '#FFFFFF' : selected ? '#111111' : '#444444' },
|
|
126
|
+
{ color: (0, XeboTheme_1.isColorDark)(color) ? '#FFFFFF' : selected ? '#111111' : '#444444' },
|
|
129
127
|
]}>
|
|
130
128
|
{i}
|
|
131
129
|
</react_native_1.Text>
|
|
@@ -137,18 +135,18 @@ const XeboMultiNPSView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
137
135
|
|
|
138
136
|
{!!error && <react_native_1.Text style={[styles.errorText, (0, XeboRtl_1.rtlText)()]}>{error}</react_native_1.Text>}
|
|
139
137
|
|
|
140
|
-
<react_native_1.Animated.View style={{ transform: [{ translateX: shakeAnim }] }}>
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
138
|
+
{!embedded && (<react_native_1.Animated.View style={{ transform: [{ translateX: shakeAnim }] }}>
|
|
139
|
+
<react_native_1.TouchableOpacity style={[styles.button, { backgroundColor: theme.primaryColor, borderRadius: theme.cornerRadius }]} onPress={handleNext} activeOpacity={0.8}>
|
|
140
|
+
<react_native_1.Text style={[styles.buttonText, { fontFamily: theme.fontFamily }]}>
|
|
141
|
+
{(0, XeboStrings_1.actionLabel)(isLastQuestion)}
|
|
142
|
+
</react_native_1.Text>
|
|
143
|
+
</react_native_1.TouchableOpacity>
|
|
144
|
+
</react_native_1.Animated.View>)}
|
|
147
145
|
</react_native_1.View>);
|
|
148
|
-
};
|
|
149
|
-
exports.XeboMultiNPSView = XeboMultiNPSView;
|
|
146
|
+
});
|
|
150
147
|
const styles = react_native_1.StyleSheet.create({
|
|
151
148
|
container: { flex: 1, paddingHorizontal: 20, paddingTop: 16, paddingBottom: 10 },
|
|
149
|
+
embedded: { flex: 0 },
|
|
152
150
|
title: { fontSize: 18, fontWeight: '700', marginBottom: 6 },
|
|
153
151
|
subtitle: { fontSize: 14, opacity: 0.6, marginBottom: 16 },
|
|
154
152
|
scroll: { flex: 1, minHeight: 0, marginBottom: 12 },
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { XeboQuestion, XeboAnswer } from '../models/XeboModels';
|
|
2
|
+
import { XeboQuestion, XeboAnswer, XeboQuestionHandle } from '../models/XeboModels';
|
|
3
3
|
interface Props {
|
|
4
4
|
question: XeboQuestion;
|
|
5
5
|
isLastQuestion: boolean;
|
|
6
6
|
onAnswer: (answer: XeboAnswer) => void;
|
|
7
|
+
/** Shown with other questions on one page: no own button, sized to content. */
|
|
8
|
+
embedded?: boolean;
|
|
7
9
|
}
|
|
8
|
-
export declare const XeboMultiRatingView: React.
|
|
10
|
+
export declare const XeboMultiRatingView: React.ForwardRefExoticComponent<Props & React.RefAttributes<XeboQuestionHandle>>;
|
|
9
11
|
export {};
|
|
10
12
|
//# sourceMappingURL=XeboMultiRatingView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XeboMultiRatingView.d.ts","sourceRoot":"","sources":["../../src/components/XeboMultiRatingView.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"XeboMultiRatingView.d.ts","sourceRoot":"","sources":["../../src/components/XeboMultiRatingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AASjF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAmB,MAAM,sBAAsB,CAAC;AAKrG,UAAU,KAAK;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB,kFAuI9B,CAAC"}
|
|
@@ -36,17 +36,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.XeboMultiRatingView = void 0;
|
|
37
37
|
const react_1 = __importStar(require("react"));
|
|
38
38
|
const react_native_1 = require("react-native");
|
|
39
|
+
const XeboModels_1 = require("../models/XeboModels");
|
|
39
40
|
const XeboTheme_1 = require("../theme/XeboTheme");
|
|
40
41
|
const XeboStrings_1 = require("../i18n/XeboStrings");
|
|
41
42
|
const XeboRtl_1 = require("../i18n/XeboRtl");
|
|
42
|
-
|
|
43
|
+
exports.XeboMultiRatingView = (0, react_1.forwardRef)(({ question, isLastQuestion, onAnswer, embedded }, ref) => {
|
|
43
44
|
var _a, _b, _c, _d, _e;
|
|
44
45
|
const theme = (0, XeboTheme_1.getTheme)();
|
|
45
46
|
const rows = (_a = question.options) !== null && _a !== void 0 ? _a : [];
|
|
46
47
|
const totalSteps = (_c = (_b = question.columns) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 5;
|
|
47
48
|
const ratingColor = (_d = question.ratingColor) !== null && _d !== void 0 ? _d : theme.primaryColor;
|
|
48
49
|
const ratingStyle = (_e = question.ratingStyle) !== null && _e !== void 0 ? _e : 'star';
|
|
49
|
-
const [ratings, setRatings] = (0, react_1.useState)(
|
|
50
|
+
const [ratings, setRatings] = (0, react_1.useState)(() => (0, XeboModels_1.scaleIndexByRow)(question));
|
|
50
51
|
const [error, setError] = (0, react_1.useState)('');
|
|
51
52
|
const shakeAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(0)).current;
|
|
52
53
|
const shake = () => {
|
|
@@ -62,13 +63,13 @@ const XeboMultiRatingView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
62
63
|
setError('');
|
|
63
64
|
};
|
|
64
65
|
const isCumulative = ratingStyle === 'star' || ratingStyle === 'heart';
|
|
65
|
-
const
|
|
66
|
+
const collect = () => {
|
|
66
67
|
if (question.isRequired && rows.some(r => ratings[r.id] === undefined)) {
|
|
67
68
|
setError((0, XeboStrings_1.requiredMessage)(question, 'Please rate all items.'));
|
|
68
69
|
shake();
|
|
69
|
-
return;
|
|
70
|
+
return null;
|
|
70
71
|
}
|
|
71
|
-
|
|
72
|
+
return {
|
|
72
73
|
questionId: question.id,
|
|
73
74
|
value: rows
|
|
74
75
|
.filter(r => ratings[r.id] !== undefined)
|
|
@@ -79,7 +80,13 @@ const XeboMultiRatingView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
79
80
|
colId: (_c = (_b = (_a = question.columns) === null || _a === void 0 ? void 0 : _a[ratings[r.id]]) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : ratings[r.id].toString(),
|
|
80
81
|
});
|
|
81
82
|
}),
|
|
82
|
-
}
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
(0, react_1.useImperativeHandle)(ref, () => ({ collect }));
|
|
86
|
+
const handleNext = () => {
|
|
87
|
+
const answer = collect();
|
|
88
|
+
if (answer)
|
|
89
|
+
onAnswer(answer);
|
|
83
90
|
};
|
|
84
91
|
const starIcon = (filled) => ratingStyle === 'heart' ? (filled ? '♥' : '♡') : filled ? '★' : '☆';
|
|
85
92
|
return (<react_native_1.View style={styles.container}>
|
|
@@ -90,7 +97,7 @@ const XeboMultiRatingView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
90
97
|
{question.subtitle}
|
|
91
98
|
</react_native_1.Text>)}
|
|
92
99
|
|
|
93
|
-
<react_native_1.ScrollView style={styles.scroll} showsVerticalScrollIndicator={false}>
|
|
100
|
+
<react_native_1.ScrollView style={[styles.scroll, embedded && styles.embeddedScroll]} scrollEnabled={!embedded} showsVerticalScrollIndicator={false}>
|
|
94
101
|
{rows.map(row => (<react_native_1.View key={row.id} style={styles.rowWrap}>
|
|
95
102
|
<react_native_1.Text style={[styles.rowLabel, { color: theme.textColor, fontFamily: theme.fontFamily }, (0, XeboRtl_1.rtlText)()]}>
|
|
96
103
|
{row.text}
|
|
@@ -103,15 +110,15 @@ const XeboMultiRatingView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
103
110
|
return (<react_native_1.TouchableOpacity key={i} onPress={() => setRating(row.id, i)} activeOpacity={0.7} style={styles.iconButton}>
|
|
104
111
|
{ratingStyle === 'circle' ? (<react_native_1.View style={[
|
|
105
112
|
styles.circle,
|
|
106
|
-
{ backgroundColor: isFilled ? ratingColor :
|
|
113
|
+
{ backgroundColor: isFilled ? ratingColor : theme.borderColor },
|
|
107
114
|
]}/>) : ratingStyle === 'tile' ? (<react_native_1.View style={[
|
|
108
115
|
styles.tile,
|
|
109
|
-
{ backgroundColor: isFilled ? ratingColor :
|
|
116
|
+
{ backgroundColor: isFilled ? ratingColor : theme.borderColor },
|
|
110
117
|
]}>
|
|
111
|
-
<react_native_1.Text style={[styles.tileText, { color: isFilled ? '#FFF' :
|
|
118
|
+
<react_native_1.Text style={[styles.tileText, { color: isFilled ? '#FFF' : theme.mutedTextColor }]}>
|
|
112
119
|
{i + 1}
|
|
113
120
|
</react_native_1.Text>
|
|
114
|
-
</react_native_1.View>) : (<react_native_1.Text style={{ fontSize: 30, color: isFilled ? ratingColor :
|
|
121
|
+
</react_native_1.View>) : (<react_native_1.Text style={{ fontSize: 30, color: isFilled ? ratingColor : theme.borderColor }}>
|
|
115
122
|
{starIcon(isFilled)}
|
|
116
123
|
</react_native_1.Text>)}
|
|
117
124
|
</react_native_1.TouchableOpacity>);
|
|
@@ -122,21 +129,21 @@ const XeboMultiRatingView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
122
129
|
|
|
123
130
|
{!!error && <react_native_1.Text style={[styles.errorText, (0, XeboRtl_1.rtlText)()]}>{error}</react_native_1.Text>}
|
|
124
131
|
|
|
125
|
-
<react_native_1.Animated.View style={{ transform: [{ translateX: shakeAnim }] }}>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
{!embedded && (<react_native_1.Animated.View style={{ transform: [{ translateX: shakeAnim }] }}>
|
|
133
|
+
<react_native_1.TouchableOpacity style={[styles.button, { backgroundColor: theme.primaryColor, borderRadius: theme.cornerRadius }]} onPress={handleNext} activeOpacity={0.8}>
|
|
134
|
+
<react_native_1.Text style={[styles.buttonText, { fontFamily: theme.fontFamily }]}>
|
|
135
|
+
{(0, XeboStrings_1.actionLabel)(isLastQuestion)}
|
|
136
|
+
</react_native_1.Text>
|
|
137
|
+
</react_native_1.TouchableOpacity>
|
|
138
|
+
</react_native_1.Animated.View>)}
|
|
132
139
|
</react_native_1.View>);
|
|
133
|
-
};
|
|
134
|
-
exports.XeboMultiRatingView = XeboMultiRatingView;
|
|
140
|
+
});
|
|
135
141
|
const styles = react_native_1.StyleSheet.create({
|
|
136
142
|
container: { paddingHorizontal: 20, paddingTop: 16, paddingBottom: 10 },
|
|
137
143
|
title: { fontSize: 18, fontWeight: '700', marginBottom: 16 },
|
|
138
144
|
subtitle: { fontSize: 14, opacity: 0.6, marginBottom: 16 },
|
|
139
145
|
scroll: { maxHeight: 280, marginBottom: 12 },
|
|
146
|
+
embeddedScroll: { maxHeight: undefined },
|
|
140
147
|
rowWrap: { marginBottom: 24 },
|
|
141
148
|
rowLabel: { fontSize: 15, fontWeight: '500', marginBottom: 8 },
|
|
142
149
|
iconsRow: { flexDirection: 'row', flexWrap: 'nowrap', justifyContent: 'space-between' },
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { XeboQuestion, XeboAnswer } from '../models/XeboModels';
|
|
2
|
+
import { XeboQuestion, XeboAnswer, XeboQuestionHandle } from '../models/XeboModels';
|
|
3
3
|
interface Props {
|
|
4
4
|
question: XeboQuestion;
|
|
5
5
|
isLastQuestion: boolean;
|
|
6
6
|
onAnswer: (answer: XeboAnswer) => void;
|
|
7
|
+
/** Reports how much taller (or shorter) the sheet must be to fit every option without scrolling. */
|
|
8
|
+
onFitHeight?: (delta: number) => void;
|
|
9
|
+
/** Shown with other questions on one page: no own button, sized to content. */
|
|
10
|
+
embedded?: boolean;
|
|
7
11
|
}
|
|
8
|
-
export declare const XeboMultipleChoiceView: React.
|
|
12
|
+
export declare const XeboMultipleChoiceView: React.ForwardRefExoticComponent<Props & React.RefAttributes<XeboQuestionHandle>>;
|
|
9
13
|
export {};
|
|
10
14
|
//# sourceMappingURL=XeboMultipleChoiceView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XeboMultipleChoiceView.d.ts","sourceRoot":"","sources":["../../src/components/XeboMultipleChoiceView.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"XeboMultipleChoiceView.d.ts","sourceRoot":"","sources":["../../src/components/XeboMultipleChoiceView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AASjF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAc,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAKhG,UAAU,KAAK;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,oGAAoG;IACpG,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,sBAAsB,kFAkHjC,CAAC"}
|
|
@@ -39,10 +39,16 @@ const react_native_1 = require("react-native");
|
|
|
39
39
|
const XeboTheme_1 = require("../theme/XeboTheme");
|
|
40
40
|
const XeboStrings_1 = require("../i18n/XeboStrings");
|
|
41
41
|
const XeboRtl_1 = require("../i18n/XeboRtl");
|
|
42
|
-
|
|
42
|
+
exports.XeboMultipleChoiceView = (0, react_1.forwardRef)(({ question, isLastQuestion, onAnswer, onFitHeight, embedded }, ref) => {
|
|
43
43
|
var _a;
|
|
44
44
|
const theme = (0, XeboTheme_1.getTheme)();
|
|
45
|
-
const
|
|
45
|
+
const listHeights = (0, react_1.useRef)({ layout: 0, content: 0 });
|
|
46
|
+
const reportFit = () => {
|
|
47
|
+
const { layout, content } = listHeights.current;
|
|
48
|
+
if (layout > 0 && content > 0)
|
|
49
|
+
onFitHeight === null || onFitHeight === void 0 ? void 0 : onFitHeight(content - layout);
|
|
50
|
+
};
|
|
51
|
+
const [selectedIds, setSelectedIds] = (0, react_1.useState)(() => new Set(question.previousAnswer ? question.previousAnswer.value.map(v => v.rowId) : question.autoSelectOptionIds));
|
|
46
52
|
const [error, setError] = (0, react_1.useState)('');
|
|
47
53
|
const shakeAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(0)).current;
|
|
48
54
|
const shake = () => {
|
|
@@ -66,13 +72,13 @@ const XeboMultipleChoiceView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
66
72
|
});
|
|
67
73
|
setError('');
|
|
68
74
|
};
|
|
69
|
-
const
|
|
75
|
+
const collect = () => {
|
|
70
76
|
if (question.isRequired && selectedIds.size === 0) {
|
|
71
77
|
setError((0, XeboStrings_1.requiredMessage)(question, 'Please select at least one option.'));
|
|
72
78
|
shake();
|
|
73
|
-
return;
|
|
79
|
+
return null;
|
|
74
80
|
}
|
|
75
|
-
|
|
81
|
+
return {
|
|
76
82
|
questionId: question.id,
|
|
77
83
|
value: Array.from(selectedIds).map(id => {
|
|
78
84
|
var _a, _b;
|
|
@@ -81,9 +87,15 @@ const XeboMultipleChoiceView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
81
87
|
text: (_b = (_a = question.options) === null || _a === void 0 ? void 0 : _a.find((o) => o.id === id)) === null || _b === void 0 ? void 0 : _b.text,
|
|
82
88
|
});
|
|
83
89
|
}),
|
|
84
|
-
}
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
(0, react_1.useImperativeHandle)(ref, () => ({ collect }));
|
|
93
|
+
const handleNext = () => {
|
|
94
|
+
const answer = collect();
|
|
95
|
+
if (answer)
|
|
96
|
+
onAnswer(answer);
|
|
85
97
|
};
|
|
86
|
-
return (<react_native_1.View style={styles.container}>
|
|
98
|
+
return (<react_native_1.View style={[styles.container, embedded && styles.embedded]}>
|
|
87
99
|
<react_native_1.Text style={[styles.title, { color: theme.textColor, fontFamily: theme.fontFamily }, (0, XeboRtl_1.rtlText)()]}>
|
|
88
100
|
{question.title}
|
|
89
101
|
</react_native_1.Text>
|
|
@@ -91,41 +103,34 @@ const XeboMultipleChoiceView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
91
103
|
{question.subtitle}
|
|
92
104
|
</react_native_1.Text>)}
|
|
93
105
|
|
|
94
|
-
<react_native_1.ScrollView style={styles.optionsList} showsVerticalScrollIndicator={false}>
|
|
106
|
+
<react_native_1.ScrollView style={[styles.optionsList, embedded && styles.embedded]} scrollEnabled={!embedded} showsVerticalScrollIndicator={false} onLayout={e => { listHeights.current.layout = e.nativeEvent.layout.height; reportFit(); }} onContentSizeChange={(_, h) => { listHeights.current.content = h; reportFit(); }}>
|
|
95
107
|
{((_a = question.options) !== null && _a !== void 0 ? _a : []).map((choice) => {
|
|
96
108
|
const selected = selectedIds.has(choice.id);
|
|
97
109
|
return (<react_native_1.TouchableOpacity key={choice.id} style={[
|
|
98
110
|
styles.optionRow,
|
|
99
|
-
|
|
111
|
+
selected
|
|
112
|
+
? { borderColor: theme.primaryColor, backgroundColor: theme.selectedSurfaceColor }
|
|
113
|
+
: { borderColor: theme.borderColor },
|
|
100
114
|
]} onPress={() => toggleChoice(choice)} activeOpacity={0.7}>
|
|
101
|
-
<react_native_1.View style={[
|
|
102
|
-
styles.checkbox,
|
|
103
|
-
{
|
|
104
|
-
borderColor: selected ? theme.primaryColor : '#9CA3AF',
|
|
105
|
-
backgroundColor: selected ? theme.primaryColor : 'transparent',
|
|
106
|
-
},
|
|
107
|
-
]}>
|
|
108
|
-
{selected && <react_native_1.Text style={styles.checkmark}>✓</react_native_1.Text>}
|
|
109
|
-
</react_native_1.View>
|
|
110
115
|
<react_native_1.Text style={[styles.optionText, { color: theme.textColor, fontFamily: theme.fontFamily }, (0, XeboRtl_1.rtlText)()]}>
|
|
111
116
|
{choice.text}
|
|
112
117
|
</react_native_1.Text>
|
|
118
|
+
{selected && <react_native_1.Text style={[styles.checkmark, { color: theme.primaryColor }]}>✓</react_native_1.Text>}
|
|
113
119
|
</react_native_1.TouchableOpacity>);
|
|
114
120
|
})}
|
|
115
121
|
</react_native_1.ScrollView>
|
|
116
122
|
|
|
117
123
|
{!!error && <react_native_1.Text style={[styles.errorText, (0, XeboRtl_1.rtlText)()]}>{error}</react_native_1.Text>}
|
|
118
124
|
|
|
119
|
-
<react_native_1.Animated.View style={{ transform: [{ translateX: shakeAnim }] }}>
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
{!embedded && (<react_native_1.Animated.View style={{ transform: [{ translateX: shakeAnim }] }}>
|
|
126
|
+
<react_native_1.TouchableOpacity style={[styles.button, { backgroundColor: theme.primaryColor, borderRadius: theme.cornerRadius }]} onPress={handleNext} activeOpacity={0.8}>
|
|
127
|
+
<react_native_1.Text style={[styles.buttonText, { fontFamily: theme.fontFamily }]}>
|
|
128
|
+
{(0, XeboStrings_1.actionLabel)(isLastQuestion)}
|
|
129
|
+
</react_native_1.Text>
|
|
130
|
+
</react_native_1.TouchableOpacity>
|
|
131
|
+
</react_native_1.Animated.View>)}
|
|
126
132
|
</react_native_1.View>);
|
|
127
|
-
};
|
|
128
|
-
exports.XeboMultipleChoiceView = XeboMultipleChoiceView;
|
|
133
|
+
});
|
|
129
134
|
const styles = react_native_1.StyleSheet.create({
|
|
130
135
|
container: {
|
|
131
136
|
flex: 1,
|
|
@@ -133,6 +138,7 @@ const styles = react_native_1.StyleSheet.create({
|
|
|
133
138
|
paddingTop: 16,
|
|
134
139
|
paddingBottom: 10,
|
|
135
140
|
},
|
|
141
|
+
embedded: { flex: 0 },
|
|
136
142
|
title: {
|
|
137
143
|
fontSize: 18,
|
|
138
144
|
fontWeight: '700',
|
|
@@ -155,19 +161,10 @@ const styles = react_native_1.StyleSheet.create({
|
|
|
155
161
|
padding: 14,
|
|
156
162
|
marginBottom: 10,
|
|
157
163
|
},
|
|
158
|
-
checkbox: {
|
|
159
|
-
width: 20,
|
|
160
|
-
height: 20,
|
|
161
|
-
borderRadius: 4,
|
|
162
|
-
borderWidth: 2,
|
|
163
|
-
alignItems: 'center',
|
|
164
|
-
justifyContent: 'center',
|
|
165
|
-
marginEnd: 12,
|
|
166
|
-
},
|
|
167
164
|
checkmark: {
|
|
168
|
-
|
|
169
|
-
fontSize: 13,
|
|
165
|
+
fontSize: 16,
|
|
170
166
|
fontWeight: '700',
|
|
167
|
+
marginStart: 12,
|
|
171
168
|
},
|
|
172
169
|
optionText: {
|
|
173
170
|
fontSize: 15,
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { XeboQuestion, XeboAnswer } from '../models/XeboModels';
|
|
2
|
+
import { XeboQuestion, XeboAnswer, XeboQuestionHandle } from '../models/XeboModels';
|
|
3
3
|
interface Props {
|
|
4
4
|
question: XeboQuestion;
|
|
5
5
|
isLastQuestion: boolean;
|
|
6
6
|
onAnswer: (answer: XeboAnswer | XeboAnswer[]) => void;
|
|
7
|
+
/** Reports how much taller (or shorter) the sheet must be to fit the content without a gap. */
|
|
8
|
+
onFitHeight?: (delta: number) => void;
|
|
9
|
+
/** Shown with other questions on one page: no own button, sized to content. */
|
|
10
|
+
embedded?: boolean;
|
|
11
|
+
/** Fires when a score is picked (drives auto-advance on a shared page). */
|
|
12
|
+
onSelect?: () => void;
|
|
7
13
|
}
|
|
8
|
-
export declare const XeboNPSView: React.
|
|
14
|
+
export declare const XeboNPSView: React.ForwardRefExoticComponent<Props & React.RefAttributes<XeboQuestionHandle>>;
|
|
9
15
|
export {};
|
|
10
16
|
//# sourceMappingURL=XeboNPSView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XeboNPSView.d.ts","sourceRoot":"","sources":["../../src/components/XeboNPSView.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"XeboNPSView.d.ts","sourceRoot":"","sources":["../../src/components/XeboNPSView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAYjF,OAAO,EAAE,YAAY,EAAE,UAAU,EAA6C,kBAAkB,EAAc,MAAM,sBAAsB,CAAC;AAM3I,UAAU,KAAK;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,EAAE,KAAK,IAAI,CAAC;IACtD,+FAA+F;IAC/F,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AA+CD,eAAO,MAAM,WAAW,kFA0dtB,CAAC"}
|