@redneckz/wildless-cms-uni-blocks 0.14.1089 → 0.14.1090
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 +5 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/UserSurveyDialog/UserSurveyDialogContent.d.ts +1 -1
- package/dist/ui-kit/UserSurveyDialog/FirstStep.js +2 -2
- package/dist/ui-kit/UserSurveyDialog/UserSurveyDialog.js +2 -2
- package/dist/ui-kit/UserSurveyDialog/UserSurveyDialogContent.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/ui-kit/UserSurveyDialog/FirstStep.js +2 -2
- package/lib/ui-kit/UserSurveyDialog/UserSurveyDialog.js +2 -2
- package/lib/ui-kit/UserSurveyDialog/UserSurveyDialogContent.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +5 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/UserSurveyDialog/UserSurveyDialogContent.d.ts +1 -1
- package/mobile/dist/ui-kit/UserSurveyDialog/FirstStep.js +2 -2
- package/mobile/dist/ui-kit/UserSurveyDialog/UserSurveyDialog.js +2 -2
- package/mobile/dist/ui-kit/UserSurveyDialog/UserSurveyDialogContent.d.ts +1 -1
- package/mobile/lib/ui-kit/UserSurveyDialog/FirstStep.js +2 -2
- package/mobile/lib/ui-kit/UserSurveyDialog/UserSurveyDialog.js +2 -2
- package/mobile/lib/ui-kit/UserSurveyDialog/UserSurveyDialogContent.d.ts +1 -1
- package/mobile/src/ui-kit/UserSurveyDialog/FirstStep.tsx +2 -2
- package/mobile/src/ui-kit/UserSurveyDialog/UserSurveyDialog.tsx +2 -2
- package/mobile/src/ui-kit/UserSurveyDialog/UserSurveyDialogContent.ts +1 -1
- package/package.json +1 -1
- package/src/ui-kit/UserSurveyDialog/FirstStep.tsx +2 -2
- package/src/ui-kit/UserSurveyDialog/UserSurveyDialog.tsx +2 -2
- package/src/ui-kit/UserSurveyDialog/UserSurveyDialogContent.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
2
2
|
import { type OnCloseProps } from '../../model/OnCloseProps';
|
|
3
3
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
4
|
-
export declare type UserSurveyType = '
|
|
4
|
+
export declare type UserSurveyType = 'nps' | 'csi';
|
|
5
5
|
export declare type UserSurveyStoreSlice = {
|
|
6
6
|
userSurvey: {
|
|
7
7
|
lastShownType: UserSurveyType;
|
|
@@ -8,8 +8,8 @@ const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
|
8
8
|
const Star_1 = require("./Star");
|
|
9
9
|
const stars = Array.from('12345', () => Star_1.Star);
|
|
10
10
|
const TITLE = {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
nps: 'Оцените, пожалуйста, от 1 до 5,\nнасколько вероятно, что вы порекомендуете Россельхозбанк коллегам, друзьям и знакомым?',
|
|
12
|
+
csi: 'Оцените, пожалуйста, удовлетворённость пользования сайтом',
|
|
13
13
|
};
|
|
14
14
|
exports.FirstStep = (0, uni_jsx_1.JSX)(({ currentRating, surveyType, isSending, setCurrentRating, onNextStep, onSubmit }) => {
|
|
15
15
|
const [currentHover, setCurrentHover] = (0, hooks_1.useState)();
|
|
@@ -61,8 +61,8 @@ const getTimeAfter30days = () => Date.now() + 30 * 24 * 60 * 60 * 1000;
|
|
|
61
61
|
// Если пользователь проходил опрос то показываем другой, иначе показываем случайный тип опроса
|
|
62
62
|
const getUserSurveyType = (lastShownType) => {
|
|
63
63
|
if (lastShownType) {
|
|
64
|
-
return lastShownType === '
|
|
64
|
+
return lastShownType === 'nps' ? 'csi' : 'nps';
|
|
65
65
|
}
|
|
66
|
-
return ['
|
|
66
|
+
return ['nps', 'csi'][Date.now() % 2];
|
|
67
67
|
};
|
|
68
68
|
//# sourceMappingURL=UserSurveyDialog.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
2
2
|
import { type OnCloseProps } from '../../model/OnCloseProps';
|
|
3
3
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
4
|
-
export declare type UserSurveyType = '
|
|
4
|
+
export declare type UserSurveyType = 'nps' | 'csi';
|
|
5
5
|
export declare type UserSurveyStoreSlice = {
|
|
6
6
|
userSurvey: {
|
|
7
7
|
lastShownType: UserSurveyType;
|
|
@@ -16,5 +16,5 @@ export interface OfficesAtmsMapLayoutProps<T> extends ComponentType, TitleProps
|
|
|
16
16
|
initFilterState?: InitFilterState;
|
|
17
17
|
descriptionData?: AtmsDef;
|
|
18
18
|
}
|
|
19
|
-
export declare const OfficesAtmsMapLayout: import("@redneckz/uni-jsx").UNIComponent<OfficesAtmsMapLayoutProps<
|
|
19
|
+
export declare const OfficesAtmsMapLayout: import("@redneckz/uni-jsx").UNIComponent<OfficesAtmsMapLayoutProps<Atm | Branch | RemoteWorkplace>, any, any>;
|
|
20
20
|
export declare const getFiltersWithNonEmptyData: (data: (Branch | Atm | RemoteWorkplace)[]) => string[];
|
|
@@ -6,8 +6,8 @@ import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
|
6
6
|
import { Star } from './Star.js';
|
|
7
7
|
const stars = Array.from('12345', () => Star);
|
|
8
8
|
const TITLE = {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
nps: 'Оцените, пожалуйста, от 1 до 5,\nнасколько вероятно, что вы порекомендуете Россельхозбанк коллегам, друзьям и знакомым?',
|
|
10
|
+
csi: 'Оцените, пожалуйста, удовлетворённость пользования сайтом',
|
|
11
11
|
};
|
|
12
12
|
export const FirstStep = JSX(({ currentRating, surveyType, isSending, setCurrentRating, onNextStep, onSubmit }) => {
|
|
13
13
|
const [currentHover, setCurrentHover] = useState();
|
|
@@ -59,8 +59,8 @@ const getTimeAfter30days = () => Date.now() + 30 * 24 * 60 * 60 * 1000;
|
|
|
59
59
|
// Если пользователь проходил опрос то показываем другой, иначе показываем случайный тип опроса
|
|
60
60
|
const getUserSurveyType = (lastShownType) => {
|
|
61
61
|
if (lastShownType) {
|
|
62
|
-
return lastShownType === '
|
|
62
|
+
return lastShownType === 'nps' ? 'csi' : 'nps';
|
|
63
63
|
}
|
|
64
|
-
return ['
|
|
64
|
+
return ['nps', 'csi'][Date.now() % 2];
|
|
65
65
|
};
|
|
66
66
|
//# sourceMappingURL=UserSurveyDialog.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
2
2
|
import { type OnCloseProps } from '../../model/OnCloseProps';
|
|
3
3
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
4
|
-
export declare type UserSurveyType = '
|
|
4
|
+
export declare type UserSurveyType = 'nps' | 'csi';
|
|
5
5
|
export declare type UserSurveyStoreSlice = {
|
|
6
6
|
userSurvey: {
|
|
7
7
|
lastShownType: UserSurveyType;
|
|
@@ -1843,8 +1843,8 @@
|
|
|
1843
1843
|
|
|
1844
1844
|
const stars$1 = Array.from('12345', () => Star);
|
|
1845
1845
|
const TITLE$1 = {
|
|
1846
|
-
|
|
1847
|
-
|
|
1846
|
+
nps: 'Оцените, пожалуйста, от 1 до 5,\nнасколько вероятно, что вы порекомендуете Россельхозбанк коллегам, друзьям и знакомым?',
|
|
1847
|
+
csi: 'Оцените, пожалуйста, удовлетворённость пользования сайтом',
|
|
1848
1848
|
};
|
|
1849
1849
|
const FirstStep = JSX(({ currentRating, surveyType, isSending, setCurrentRating, onNextStep, onSubmit }) => {
|
|
1850
1850
|
const [currentHover, setCurrentHover] = useState();
|
|
@@ -2034,9 +2034,9 @@
|
|
|
2034
2034
|
// Если пользователь проходил опрос то показываем другой, иначе показываем случайный тип опроса
|
|
2035
2035
|
const getUserSurveyType = (lastShownType) => {
|
|
2036
2036
|
if (lastShownType) {
|
|
2037
|
-
return lastShownType === '
|
|
2037
|
+
return lastShownType === 'nps' ? 'csi' : 'nps';
|
|
2038
2038
|
}
|
|
2039
|
-
return ['
|
|
2039
|
+
return ['nps', 'csi'][Date.now() % 2];
|
|
2040
2040
|
};
|
|
2041
2041
|
|
|
2042
2042
|
const DELAY = 5 * 60 * 1000;
|
|
@@ -14959,7 +14959,7 @@
|
|
|
14959
14959
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14960
14960
|
});
|
|
14961
14961
|
|
|
14962
|
-
const packageVersion = "0.14.
|
|
14962
|
+
const packageVersion = "0.14.1089";
|
|
14963
14963
|
|
|
14964
14964
|
exports.Blocks = Blocks;
|
|
14965
14965
|
exports.ContentPage = ContentPage;
|