@redneckz/wildless-cms-uni-blocks 0.14.1025 → 0.14.1026
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/bundle/bundle.umd.js +6 -2
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/ui-kit/UserSurveyDialog/UserSurveyDialog.js +0 -1
- package/dist/ui-kit/UserSurveyDialog/UserSurveyDialog.js.map +1 -1
- package/dist/ui-kit/UserSurveyDialog/useUserSurveyDialog.js +5 -0
- package/dist/ui-kit/UserSurveyDialog/useUserSurveyDialog.js.map +1 -1
- package/lib/ui-kit/UserSurveyDialog/UserSurveyDialog.js +0 -1
- package/lib/ui-kit/UserSurveyDialog/UserSurveyDialog.js.map +1 -1
- package/lib/ui-kit/UserSurveyDialog/useUserSurveyDialog.js +5 -0
- package/lib/ui-kit/UserSurveyDialog/useUserSurveyDialog.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/ui-kit/UserSurveyDialog/UserSurveyDialog.js +0 -1
- package/mobile/dist/ui-kit/UserSurveyDialog/UserSurveyDialog.js.map +1 -1
- package/mobile/dist/ui-kit/UserSurveyDialog/useUserSurveyDialog.js +5 -0
- package/mobile/dist/ui-kit/UserSurveyDialog/useUserSurveyDialog.js.map +1 -1
- package/mobile/lib/ui-kit/UserSurveyDialog/UserSurveyDialog.js +0 -1
- package/mobile/lib/ui-kit/UserSurveyDialog/UserSurveyDialog.js.map +1 -1
- package/mobile/lib/ui-kit/UserSurveyDialog/useUserSurveyDialog.js +5 -0
- package/mobile/lib/ui-kit/UserSurveyDialog/useUserSurveyDialog.js.map +1 -1
- package/mobile/src/ui-kit/UserSurveyDialog/UserSurveyDialog.tsx +0 -1
- package/mobile/src/ui-kit/UserSurveyDialog/useUserSurveyDialog.ts +7 -0
- package/package.json +1 -1
- package/src/ui-kit/UserSurveyDialog/UserSurveyDialog.tsx +0 -1
- package/src/ui-kit/UserSurveyDialog/useUserSurveyDialog.ts +7 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -1970,7 +1970,6 @@
|
|
|
1970
1970
|
const getTimeAfter30days = () => Date.now() + 30 * 24 * 60 * 60 * 1000;
|
|
1971
1971
|
// Если пользователь проходил опрос то показываем другой, иначе показываем случайный тип опроса
|
|
1972
1972
|
const getUserSurveyType = (lastShownType) => {
|
|
1973
|
-
console.log('Расчитал');
|
|
1974
1973
|
if (lastShownType) {
|
|
1975
1974
|
return lastShownType === 'NPS' ? 'CSI' : 'NPS';
|
|
1976
1975
|
}
|
|
@@ -1989,6 +1988,7 @@
|
|
|
1989
1988
|
? Date.now() - Number.parseInt(sessionStore.surveyTimerStart)
|
|
1990
1989
|
: 0;
|
|
1991
1990
|
const isShowSurvey = !isSurveySkipped &&
|
|
1991
|
+
!isOtherLanguagePortal &&
|
|
1992
1992
|
(!userSurveyStore.userSurvey || userSurveyStore.userSurvey?.nextDueAt <= Date.now());
|
|
1993
1993
|
const handleSkipSurvey = useCallback(() => {
|
|
1994
1994
|
sessionStore.isSurveySkipped = true;
|
|
@@ -2027,6 +2027,10 @@
|
|
|
2027
2027
|
}, [isShowSurvey]);
|
|
2028
2028
|
return handleOpenSurveyAction;
|
|
2029
2029
|
};
|
|
2030
|
+
const isOtherLanguagePortal = () => {
|
|
2031
|
+
const regexp = new RegExp('^/(cn|en)($|/.*)');
|
|
2032
|
+
return regexp.test(globalThis.location.pathname);
|
|
2033
|
+
};
|
|
2030
2034
|
|
|
2031
2035
|
const SERVICE_TYPES = [{ key: 'ULTRASERVICE', text: 'Ультра' }];
|
|
2032
2036
|
const SERVICE_DIRECTIONS = [
|
|
@@ -14376,7 +14380,7 @@
|
|
|
14376
14380
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14377
14381
|
});
|
|
14378
14382
|
|
|
14379
|
-
const packageVersion = "0.14.
|
|
14383
|
+
const packageVersion = "0.14.1025";
|
|
14380
14384
|
|
|
14381
14385
|
exports.Blocks = Blocks;
|
|
14382
14386
|
exports.ContentPage = ContentPage;
|