react-native-my-survey-sdk 3.0.1 → 3.0.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XeboRatingView.d.ts","sourceRoot":"","sources":["../../src/components/XeboRatingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAWhD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGhE,UAAU,KAAK;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;CACxC;AA6HD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"XeboRatingView.d.ts","sourceRoot":"","sources":["../../src/components/XeboRatingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAWhD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGhE,UAAU,KAAK;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;CACxC;AA6HD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA4I1C,CAAC"}
|
|
@@ -128,6 +128,7 @@ const XeboRatingView = ({ question, isLastQuestion, onAnswer }) => {
|
|
|
128
128
|
const ratingStyle = (_a = question.ratingStyle) !== null && _a !== void 0 ? _a : 'star';
|
|
129
129
|
const ratingColor = (_b = question.ratingColor) !== null && _b !== void 0 ? _b : theme.primaryColor;
|
|
130
130
|
const totalSteps = (_d = (_c = question.columns) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 5;
|
|
131
|
+
console.log('[XeboRatingView] question:', JSON.stringify(question, null, 2));
|
|
131
132
|
const [selected, setSelected] = (0, react_1.useState)(null);
|
|
132
133
|
const [followUpText, setFollowUpText] = (0, react_1.useState)('');
|
|
133
134
|
const [error, setError] = (0, react_1.useState)('');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XeboNetworkService.d.ts","sourceRoot":"","sources":["../../src/core/XeboNetworkService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAKV,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,iBAAiB,EAGlB,MAAM,yBAAyB,CAAC;AAIjC,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAID,wBAAsB,YAAY,CAChC,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,CAAC,CAqCjB;AAID,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAWzD;AAuCD,wBAAgB,WAAW,CAAC,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"XeboNetworkService.d.ts","sourceRoot":"","sources":["../../src/core/XeboNetworkService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAKV,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,iBAAiB,EAGlB,MAAM,yBAAyB,CAAC;A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AAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,wBAAsB,cAAc,CAClC,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,UAAU,EAAE,EACrB,IAAI,CAAC,EAAE,UAAU,GAChB,OAAO,CAAC,YAAY,CAAC,CAmFvB"}
|
|
@@ -119,6 +119,7 @@ function parseSurvey(data) {
|
|
|
119
119
|
if (followUpQuestionIds.has(q.uuid))
|
|
120
120
|
continue;
|
|
121
121
|
const type = mapQuestionType(q.quesType);
|
|
122
|
+
console.log(`[Xebo] Raw API question [${q.quesType}]:`, JSON.stringify(q, null, 2));
|
|
122
123
|
if (type === XeboModels_1.XeboQuestionType.dropdown) {
|
|
123
124
|
console.log('[Xebo] Dropdown raw options keys:', JSON.stringify(Object.keys((_d = q.options) !== null && _d !== void 0 ? _d : {})));
|
|
124
125
|
console.log('[Xebo] Dropdown options.row:', JSON.stringify((_e = q.options) === null || _e === void 0 ? void 0 : _e.row));
|
|
@@ -201,10 +202,11 @@ function parseSurvey(data) {
|
|
|
201
202
|
: undefined,
|
|
202
203
|
followUpQuestion: undefined,
|
|
203
204
|
conditionalFollowUps: conditionalFollowUps.length > 0 ? conditionalFollowUps : undefined,
|
|
204
|
-
ratingStyle:
|
|
205
|
+
ratingStyle: ratingSettings ? mapRatingStyle(ratingSettings.type) : undefined,
|
|
205
206
|
showColLabels: ratingSettings === null || ratingSettings === void 0 ? void 0 : ratingSettings.colLabel,
|
|
206
207
|
ratingColor: ratingSettings === null || ratingSettings === void 0 ? void 0 : ratingSettings.color,
|
|
207
208
|
};
|
|
209
|
+
console.log(`[Xebo] Parsed question [${type}]:`, JSON.stringify(parsed, null, 2));
|
|
208
210
|
questions.push(parsed);
|
|
209
211
|
}
|
|
210
212
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-my-survey-sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Xebo survey collection SDK for React Native",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
"react-native-modal": "^13.0.0",
|
|
36
36
|
"typescript": "^5.3.0"
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|