@redneckz/wildless-cms-uni-blocks 0.14.1056 → 0.14.1058
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/bin/migration-scripts/0.14.1058.js +21 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +63 -38
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -2
- package/bundle/model/LinkProps.d.ts +0 -2
- package/bundle/ui-kit/LinkButton/LinkButtonContent.d.ts +4 -0
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +16 -2
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -2
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +38 -24
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/dist/model/LinkProps.d.ts +0 -2
- package/dist/ui-kit/LinkButton/LinkButton.js +9 -9
- package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/dist/ui-kit/LinkButton/LinkButtonContent.d.ts +4 -0
- package/dist/ui-kit/UserSurveyDialog/useUserSurveyDialog.js +1 -1
- package/dist/ui-kit/UserSurveyDialog/useUserSurveyDialog.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +16 -2
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -2
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +38 -24
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/lib/model/LinkProps.d.ts +0 -2
- package/lib/ui-kit/LinkButton/LinkButton.js +9 -9
- package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/lib/ui-kit/LinkButton/LinkButtonContent.d.ts +4 -0
- package/lib/ui-kit/UserSurveyDialog/useUserSurveyDialog.js +1 -1
- package/lib/ui-kit/UserSurveyDialog/useUserSurveyDialog.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +63 -38
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -2
- package/mobile/bundle/model/LinkProps.d.ts +0 -2
- package/mobile/bundle/ui-kit/LinkButton/LinkButtonContent.d.ts +4 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +16 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -2
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +38 -24
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/dist/model/LinkProps.d.ts +0 -2
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js +9 -9
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/dist/ui-kit/LinkButton/LinkButtonContent.d.ts +4 -0
- package/mobile/dist/ui-kit/UserSurveyDialog/useUserSurveyDialog.js +1 -1
- package/mobile/dist/ui-kit/UserSurveyDialog/useUserSurveyDialog.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +16 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -2
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +38 -24
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/lib/model/LinkProps.d.ts +0 -2
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js +9 -9
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/lib/ui-kit/LinkButton/LinkButtonContent.d.ts +4 -0
- package/mobile/lib/ui-kit/UserSurveyDialog/useUserSurveyDialog.js +1 -1
- package/mobile/lib/ui-kit/UserSurveyDialog/useUserSurveyDialog.js.map +1 -1
- package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +16 -2
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +43 -26
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -1
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -0
- package/mobile/src/model/LinkProps.ts +0 -2
- package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +11 -10
- package/mobile/src/ui-kit/LinkButton/LinkButtonContent.ts +4 -0
- package/mobile/src/ui-kit/UserSurveyDialog/useUserSurveyDialog.ts +1 -1
- package/package.json +1 -1
- package/src/components/ButtonsBlock/ButtonsBlock.fixture.tsx +2 -1
- package/src/components/CreditCardForm/CreditCardForm.fixture.mobile.tsx +0 -4
- package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +7 -13
- package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +16 -2
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +43 -26
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -1
- package/src/components/CreditForm/CreditForm.fixture.mobile.tsx +0 -4
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -0
- package/src/model/LinkProps.ts +0 -2
- package/src/ui-kit/LinkButton/LinkButton.tsx +11 -10
- package/src/ui-kit/LinkButton/LinkButtonContent.ts +4 -0
- package/src/ui-kit/UserSurveyDialog/useUserSurveyDialog.ts +1 -1
- package/bundle/retail/utils/mockLocalStorage.d.ts +0 -1
- package/dist/retail/utils/mockLocalStorage.d.ts +0 -1
- package/dist/retail/utils/mockLocalStorage.js +0 -38
- package/dist/retail/utils/mockLocalStorage.js.map +0 -1
- package/lib/retail/utils/mockLocalStorage.d.ts +0 -1
- package/lib/retail/utils/mockLocalStorage.js +0 -35
- package/lib/retail/utils/mockLocalStorage.js.map +0 -1
- package/mobile/bundle/retail/utils/mockLocalStorage.d.ts +0 -1
- package/mobile/dist/retail/utils/mockLocalStorage.d.ts +0 -1
- package/mobile/dist/retail/utils/mockLocalStorage.js +0 -38
- package/mobile/dist/retail/utils/mockLocalStorage.js.map +0 -1
- package/mobile/lib/retail/utils/mockLocalStorage.d.ts +0 -1
- package/mobile/lib/retail/utils/mockLocalStorage.js +0 -35
- package/mobile/lib/retail/utils/mockLocalStorage.js.map +0 -1
- package/mobile/src/retail/utils/mockLocalStorage.ts +0 -44
- package/src/retail/utils/mockLocalStorage.ts +0 -44
|
@@ -6,6 +6,10 @@ export interface ButtonCommonContent extends LinkProps {
|
|
|
6
6
|
version?: LinkButtonVersion;
|
|
7
7
|
/** @title Метод */
|
|
8
8
|
method?: 'LINK' | 'POST';
|
|
9
|
+
/** @title Дополнительная ссылка для A/B-тестирования */
|
|
10
|
+
additionalHref?: string;
|
|
11
|
+
/** @title Вероятность перехода по дополнительной ссылке в % */
|
|
12
|
+
chance?: 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100;
|
|
9
13
|
}
|
|
10
14
|
/** @deprecated */
|
|
11
15
|
/**
|
|
@@ -16,7 +16,7 @@ export const useUserSurveyDialog = (withoutTimer = false) => {
|
|
|
16
16
|
? Date.now() - Number.parseInt(sessionStore.surveyTimerStart)
|
|
17
17
|
: 0;
|
|
18
18
|
const isShowSurvey = !isSurveySkipped &&
|
|
19
|
-
!isOtherLanguagePortal &&
|
|
19
|
+
!isOtherLanguagePortal() &&
|
|
20
20
|
(!userSurveyStore.userSurvey || userSurveyStore.userSurvey?.nextDueAt <= Date.now());
|
|
21
21
|
const handleSkipSurvey = useCallback(() => {
|
|
22
22
|
sessionStore.isSurveySkipped = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUserSurveyDialog.js","sourceRoot":"","sources":["../../../src/ui-kit/UserSurveyDialog/useUserSurveyDialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAQ5B,4CAA4C;AAC5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,YAAY,GAAG,KAAK,EAAE,EAAE;IAC1D,MAAM,gBAAgB,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACrD,MAAM,eAAe,GAAG,aAAa,EAAwB,CAAC;IAC9D,MAAM,YAAY,GAAG,eAAe,EAAoB,CAAC;IACzD,MAAM,WAAW,GAAG,YAAY,CAAC,aAAa,CAAC;IAC/C,MAAM,eAAe,GAA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AAC,OAAO,CAAC,CAAC;gBACtB,YAAY,CAAC,aAAa,GAAG,IAAI,CAAC;YACpC,CAAC,CAAC;SACH;QAED,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,OAAO,sBAAsB,CAAC;AAChC,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACjC,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAE9C,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACnD,CAAC,CAAC"}
|
|
@@ -714,15 +714,15 @@
|
|
|
714
714
|
}, [method, href]);
|
|
715
715
|
|
|
716
716
|
/** @deprecated */
|
|
717
|
-
const LinkButton = JSX(({ disabled, children, method = 'LINK', href, id,
|
|
717
|
+
const LinkButton = JSX(({ disabled, children, method = 'LINK', href, id, additionalHref, chance, ...rest }) => {
|
|
718
718
|
const [currentLink, setCurrentLink] = useState();
|
|
719
719
|
const handleFormSubmit = useFormSubmit({ method, href });
|
|
720
720
|
const linksStore = useLocalStore();
|
|
721
721
|
useEffect(() => {
|
|
722
|
-
|
|
722
|
+
additionalHref && saveLinksToStore({ linksStore, href, id, additionalHref, chance });
|
|
723
723
|
const adjustedHref = (linksStore.links || []).find((store) => store.id === id)?.lastLink;
|
|
724
724
|
setCurrentLink(adjustedHref ?? href);
|
|
725
|
-
}, [
|
|
725
|
+
}, [additionalHref, href]);
|
|
726
726
|
const link = useLink();
|
|
727
727
|
const adjustedProps = link({ onClick: handleFormSubmit, href: currentLink, ...rest });
|
|
728
728
|
const buttonInner = children ?? jsx(ButtonInner, { ...adjustedProps });
|
|
@@ -730,22 +730,22 @@
|
|
|
730
730
|
});
|
|
731
731
|
const RegularButton = JSX(({ className = '', href, rel, target, ariaLabel, version, rounded, onClick, type, data, children, text, }) => (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, rel: rel, target: target, "aria-label": ariaLabel || `Ссылка на ${text}`, role: href ? 'link' : 'button', onClick: onClick, type: type, ...getAspectsAttributes(data), children: children })));
|
|
732
732
|
const DisabledButton = JSX(({ className, ariaLabel, version, rounded, children }) => (jsx("button", { type: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: -1, className: getDisabledButtonClasses({ className, rounded, version }), children: children })));
|
|
733
|
-
const getRandomHref = (href = '',
|
|
734
|
-
const
|
|
735
|
-
return
|
|
733
|
+
const getRandomHref = (href = '', additionalHref = '', chance = 50) => {
|
|
734
|
+
const randomNumber = Math.random() * 100;
|
|
735
|
+
return randomNumber < chance ? additionalHref : href;
|
|
736
736
|
};
|
|
737
737
|
// Отсчитываем 7 длей с текущей даты
|
|
738
738
|
const getTimeAfter7days = () => Date.now() + 7 * 24 * 60 * 60 * 1000;
|
|
739
739
|
// Сохраняем или заменяем рандомную ссылку в localStorage
|
|
740
|
-
const saveLinksToStore = ({ linksStore, id, href,
|
|
740
|
+
const saveLinksToStore = ({ linksStore, id, href, additionalHref, chance }) => {
|
|
741
741
|
const buttonLinkStore = (linksStore.links || []).find((store) => store.id === id);
|
|
742
742
|
// Если хранилища вообще нет
|
|
743
743
|
if (!linksStore.links) {
|
|
744
744
|
linksStore.links = [];
|
|
745
745
|
}
|
|
746
|
-
if ((!buttonLinkStore || buttonLinkStore.nextDueAt <= Date.now()) &&
|
|
746
|
+
if ((!buttonLinkStore || buttonLinkStore.nextDueAt <= Date.now()) && additionalHref) {
|
|
747
747
|
// Получаем рандомную ссылку
|
|
748
|
-
const randomHref = getRandomHref(href,
|
|
748
|
+
const randomHref = getRandomHref(href, additionalHref, chance);
|
|
749
749
|
// При наличии ссылки для этой кнопки в хранилище удаляем этот элемент из массива ссылок
|
|
750
750
|
const updatedLinks = linksStore.links?.filter((item) => item.id !== id);
|
|
751
751
|
// Добавляем новый элемент
|
|
@@ -2049,7 +2049,7 @@
|
|
|
2049
2049
|
? Date.now() - Number.parseInt(sessionStore.surveyTimerStart)
|
|
2050
2050
|
: 0;
|
|
2051
2051
|
const isShowSurvey = !isSurveySkipped &&
|
|
2052
|
-
!isOtherLanguagePortal &&
|
|
2052
|
+
!isOtherLanguagePortal() &&
|
|
2053
2053
|
(!userSurveyStore.userSurvey || userSurveyStore.userSurvey?.nextDueAt <= Date.now());
|
|
2054
2054
|
const handleSkipSurvey = useCallback(() => {
|
|
2055
2055
|
sessionStore.isSurveySkipped = true;
|
|
@@ -10518,13 +10518,25 @@
|
|
|
10518
10518
|
'CREATE_APPLICATION_SHORT_SIGNAL',
|
|
10519
10519
|
'CREATE_APPLICATION_LOAN_V3_SIGNAL',
|
|
10520
10520
|
];
|
|
10521
|
+
const MESSAGE_NAMES$1 = [
|
|
10522
|
+
'CREATE_APPLICATION_SHORT_MESSAGE',
|
|
10523
|
+
// 'CREATE_APPLICATION_LOAN_MESSAGE',
|
|
10524
|
+
];
|
|
10521
10525
|
const CreditCardFormStatusTracker = JSX(() => {
|
|
10526
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
10522
10527
|
const [status, setStatus] = useState(STATUS_TYPE.process);
|
|
10523
10528
|
const { taskId } = useRetailFormStore();
|
|
10524
10529
|
useEffect(() => {
|
|
10525
10530
|
(async () => {
|
|
10526
|
-
|
|
10527
|
-
|
|
10531
|
+
if (isNewMicroservice) {
|
|
10532
|
+
for (const messageName of MESSAGE_NAMES$1) {
|
|
10533
|
+
await sendMessage({ messageName, taskId });
|
|
10534
|
+
}
|
|
10535
|
+
}
|
|
10536
|
+
else {
|
|
10537
|
+
for (const signalType of SIGNAL_TYPES$1) {
|
|
10538
|
+
await sendSignalToProcess({ signalType, taskId });
|
|
10539
|
+
}
|
|
10528
10540
|
}
|
|
10529
10541
|
})();
|
|
10530
10542
|
}, [taskId]);
|
|
@@ -10834,31 +10846,44 @@
|
|
|
10834
10846
|
: {};
|
|
10835
10847
|
};
|
|
10836
10848
|
|
|
10837
|
-
const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) =>
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
participants: [
|
|
10845
|
-
{
|
|
10846
|
-
id: participantId,
|
|
10847
|
-
profile: {
|
|
10848
|
-
id: profileId,
|
|
10849
|
-
},
|
|
10850
|
-
roleCd: {
|
|
10851
|
-
key: 'BORROWER',
|
|
10852
|
-
value: 'Заемщик',
|
|
10853
|
-
},
|
|
10854
|
-
...getCurrentStepData$2(step, formData),
|
|
10849
|
+
const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
10850
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
10851
|
+
const participantInfo = {
|
|
10852
|
+
id: participantId,
|
|
10853
|
+
...(!isNewMicroservice && {
|
|
10854
|
+
profile: {
|
|
10855
|
+
id: profileId,
|
|
10855
10856
|
},
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10860
|
-
|
|
10861
|
-
|
|
10857
|
+
}),
|
|
10858
|
+
roleCd: {
|
|
10859
|
+
key: 'BORROWER',
|
|
10860
|
+
value: 'Заемщик',
|
|
10861
|
+
},
|
|
10862
|
+
...getCurrentStepData$2(step, formData),
|
|
10863
|
+
};
|
|
10864
|
+
return {
|
|
10865
|
+
sendToBank: true,
|
|
10866
|
+
taskKind: 'UNITED',
|
|
10867
|
+
task: {
|
|
10868
|
+
id: taskId,
|
|
10869
|
+
...getOfficeCode$1(formData),
|
|
10870
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
10871
|
+
...(isNewMicroservice
|
|
10872
|
+
? {
|
|
10873
|
+
participant: participantInfo,
|
|
10874
|
+
}
|
|
10875
|
+
: {
|
|
10876
|
+
participants: [participantInfo],
|
|
10877
|
+
}),
|
|
10878
|
+
...getCardOptionsData(formData),
|
|
10879
|
+
...getDeliveryData$1(formData),
|
|
10880
|
+
esiaAccountTypeCd: {
|
|
10881
|
+
key: formData?.esiaAccountTypeCd?.key,
|
|
10882
|
+
},
|
|
10883
|
+
files: formData?.files,
|
|
10884
|
+
},
|
|
10885
|
+
};
|
|
10886
|
+
};
|
|
10862
10887
|
const getCurrentStepData$2 = (step, formData) => {
|
|
10863
10888
|
switch (step) {
|
|
10864
10889
|
case 0:
|
|
@@ -10901,7 +10926,7 @@
|
|
|
10901
10926
|
retailFormStore.leadForm = formData;
|
|
10902
10927
|
try {
|
|
10903
10928
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
10904
|
-
if (taskId
|
|
10929
|
+
if (taskId) {
|
|
10905
10930
|
const response = await updateUserTask(getCreditCardFormTaskData({
|
|
10906
10931
|
participantId,
|
|
10907
10932
|
taskId,
|
|
@@ -14563,7 +14588,7 @@
|
|
|
14563
14588
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14564
14589
|
});
|
|
14565
14590
|
|
|
14566
|
-
const packageVersion = "0.14.
|
|
14591
|
+
const packageVersion = "0.14.1057";
|
|
14567
14592
|
|
|
14568
14593
|
exports.Blocks = Blocks;
|
|
14569
14594
|
exports.ContentPage = ContentPage;
|