@redneckz/wildless-cms-uni-blocks 0.14.1087 → 0.14.1089
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +15 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/model/AspectsProps.d.ts +1 -9
- package/dist/components/LinkDocs/linkDocsContentExample.js +1 -8
- package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/dist/model/AspectsProps.d.ts +1 -9
- package/dist/retail/utils/getBaseUrl.js +14 -4
- package/dist/retail/utils/getBaseUrl.js.map +1 -1
- package/lib/components/LinkDocs/linkDocsContentExample.js +1 -8
- package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/model/AspectsProps.d.ts +1 -9
- package/lib/retail/utils/getBaseUrl.js +14 -4
- package/lib/retail/utils/getBaseUrl.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +15 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/model/AspectsProps.d.ts +1 -9
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +1 -8
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/dist/model/AspectsProps.d.ts +1 -9
- package/mobile/dist/retail/utils/getBaseUrl.js +14 -4
- package/mobile/dist/retail/utils/getBaseUrl.js.map +1 -1
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +1 -8
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/lib/model/AspectsProps.d.ts +1 -9
- package/mobile/lib/retail/utils/getBaseUrl.js +14 -4
- package/mobile/lib/retail/utils/getBaseUrl.js.map +1 -1
- package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +1 -8
- package/mobile/src/model/AspectsProps.ts +0 -10
- package/mobile/src/retail/utils/getBaseUrl.ts +15 -4
- package/package.json +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +0 -1
- package/src/components/GrantSupport/GrantSupport.fixture.mobile.tsx +0 -8
- package/src/components/GrantSupport/GrantSupport.fixture.tsx +0 -8
- package/src/components/LinkDocs/linkDocsContentExample.ts +1 -8
- package/src/model/AspectsProps.ts +0 -10
- package/src/retail/utils/getBaseUrl.ts +15 -4
|
@@ -15,14 +15,6 @@ export declare type YandexReachGoalAspect = {
|
|
|
15
15
|
aspectName: 'ymReachGoal';
|
|
16
16
|
params?: AspectData;
|
|
17
17
|
};
|
|
18
|
-
/**
|
|
19
|
-
* @title Отправить событие в Mindbox
|
|
20
|
-
* @default {"aspectName": "mindboxEvent", "params": {"eventAction": "", "eventCategory": "", "eventValueText": ""}}
|
|
21
|
-
*/
|
|
22
|
-
export declare type MindboxEventAspect = {
|
|
23
|
-
aspectName: 'mindboxEvent';
|
|
24
|
-
params?: AspectData;
|
|
25
|
-
};
|
|
26
18
|
/**
|
|
27
19
|
* @title Открыть чат-бот
|
|
28
20
|
* @default {"aspectName": "openChatBot"}
|
|
@@ -55,7 +47,7 @@ export declare type EmptyAspect = {
|
|
|
55
47
|
* @title Параметр
|
|
56
48
|
* @default { "aspectName": "" }
|
|
57
49
|
*/
|
|
58
|
-
export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect |
|
|
50
|
+
export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | SnowplowEventAspect | PartnersEventAspect | UserSurveyAspect;
|
|
59
51
|
export declare type AspectsProps = {
|
|
60
52
|
/** @title Дополнительные атрибуты */
|
|
61
53
|
data?: AspectsDef[];
|
|
@@ -10,14 +10,7 @@ exports.linkDocsContentExample = {
|
|
|
10
10
|
text: 'target self',
|
|
11
11
|
attachment: { src: '/abc1/cooldoc.doc/content?content' },
|
|
12
12
|
target: '_self',
|
|
13
|
-
data: [
|
|
14
|
-
{
|
|
15
|
-
aspectName: 'mindboxEvent',
|
|
16
|
-
params: {
|
|
17
|
-
eventvaluetext: 'test-mindbox',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
],
|
|
13
|
+
data: [],
|
|
21
14
|
},
|
|
22
15
|
{
|
|
23
16
|
docType: 'Link',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkDocsContentExample.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/linkDocsContentExample.ts"],"names":[],"mappings":";;AAEA,MAAM,IAAI,GAAG,+HAA+H,CAAC;AAChI,QAAA,sBAAsB,GAAoB;IACrD,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,oCAAoC;IACjD,SAAS,EAAE;QACT;YACE,OAAO,EAAE,YAAY;YACrB,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE,EAAE,GAAG,EAAE,mCAAmC,EAAE;YACxD,MAAM,EAAE,OAAO;YACf,IAAI,EAAE
|
|
1
|
+
{"version":3,"file":"linkDocsContentExample.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/linkDocsContentExample.ts"],"names":[],"mappings":";;AAEA,MAAM,IAAI,GAAG,+HAA+H,CAAC;AAChI,QAAA,sBAAsB,GAAoB;IACrD,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,oCAAoC;IACjD,SAAS,EAAE;QACT;YACE,OAAO,EAAE,YAAY;YACrB,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE,EAAE,GAAG,EAAE,mCAAmC,EAAE;YACxD,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,EAAE;SACT;QACD;YACE,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,eAAe;YACrB,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,QAAQ;SACjB;QACD,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,EAAE;QAClF,EAA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,6 @@ export declare type YandexReachGoalAspect = {
|
|
|
15
15
|
aspectName: 'ymReachGoal';
|
|
16
16
|
params?: AspectData;
|
|
17
17
|
};
|
|
18
|
-
/**
|
|
19
|
-
* @title Отправить событие в Mindbox
|
|
20
|
-
* @default {"aspectName": "mindboxEvent", "params": {"eventAction": "", "eventCategory": "", "eventValueText": ""}}
|
|
21
|
-
*/
|
|
22
|
-
export declare type MindboxEventAspect = {
|
|
23
|
-
aspectName: 'mindboxEvent';
|
|
24
|
-
params?: AspectData;
|
|
25
|
-
};
|
|
26
18
|
/**
|
|
27
19
|
* @title Открыть чат-бот
|
|
28
20
|
* @default {"aspectName": "openChatBot"}
|
|
@@ -55,7 +47,7 @@ export declare type EmptyAspect = {
|
|
|
55
47
|
* @title Параметр
|
|
56
48
|
* @default { "aspectName": "" }
|
|
57
49
|
*/
|
|
58
|
-
export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect |
|
|
50
|
+
export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | SnowplowEventAspect | PartnersEventAspect | UserSurveyAspect;
|
|
59
51
|
export declare type AspectsProps = {
|
|
60
52
|
/** @title Дополнительные атрибуты */
|
|
61
53
|
data?: AspectsDef[];
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.getBaseUrl = void 0;
|
|
3
3
|
const apiBaseUrl_1 = require("../api/apiBaseUrl");
|
|
4
|
+
const getProductType = () => {
|
|
5
|
+
const raw = globalThis.localStorage?.getItem('productType');
|
|
6
|
+
if (!raw) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
try {
|
|
10
|
+
return JSON.parse(raw);
|
|
11
|
+
}
|
|
12
|
+
catch {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
4
16
|
const getBaseUrl = () => {
|
|
5
17
|
const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
|
|
6
|
-
const productType =
|
|
7
|
-
const newRetailApi = productType === '
|
|
8
|
-
? apiBaseUrl_1.NEW_RETAIL_CREDIT_API_BASE_URI
|
|
9
|
-
: apiBaseUrl_1.NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
18
|
+
const productType = getProductType();
|
|
19
|
+
const newRetailApi = productType === 'credit' ? apiBaseUrl_1.NEW_RETAIL_CREDIT_API_BASE_URI : apiBaseUrl_1.NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
10
20
|
return isNewMicroservice ? newRetailApi : apiBaseUrl_1.RETAIL_API_BASE_URI;
|
|
11
21
|
};
|
|
12
22
|
exports.getBaseUrl = getBaseUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBaseUrl.js","sourceRoot":"","sources":["../../../src/retail/utils/getBaseUrl.ts"],"names":[],"mappings":";;AAAA,kDAI2B;
|
|
1
|
+
{"version":3,"file":"getBaseUrl.js","sourceRoot":"","sources":["../../../src/retail/utils/getBaseUrl.ts"],"names":[],"mappings":";;AAAA,kDAI2B;AAG3B,MAAM,cAAc,GAAG,GAAuB,EAAE;IAC9C,MAAM,GAAG,GAAG,UAAU,CAAC,YAAY,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAC5D,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,IAAI,CAAC;KACb;IACD,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;KACxB;IAAC,MAAM;QACN,OAAO,IAAI,CAAC;KACb;AACH,CAAC,CAAC;AAEK,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,MAAM,iBAAiB,GAAG,UAAU,CAAC,cAAc,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAClF,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,YAAY,GAChB,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,2CAA8B,CAAC,CAAC,CAAC,gDAAmC,CAAC;IAElG,OAAO,iBAAiB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,gCAAmB,CAAC;AAChE,CAAC,CAAC;AARW,QAAA,UAAU,cAQrB"}
|
|
@@ -8,14 +8,7 @@ export const linkDocsContentExample = {
|
|
|
8
8
|
text: 'target self',
|
|
9
9
|
attachment: { src: '/abc1/cooldoc.doc/content?content' },
|
|
10
10
|
target: '_self',
|
|
11
|
-
data: [
|
|
12
|
-
{
|
|
13
|
-
aspectName: 'mindboxEvent',
|
|
14
|
-
params: {
|
|
15
|
-
eventvaluetext: 'test-mindbox',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
],
|
|
11
|
+
data: [],
|
|
19
12
|
},
|
|
20
13
|
{
|
|
21
14
|
docType: 'Link',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkDocsContentExample.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/linkDocsContentExample.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAG,+HAA+H,CAAC;AAC7I,MAAM,CAAC,MAAM,sBAAsB,GAAoB;IACrD,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,oCAAoC;IACjD,SAAS,EAAE;QACT;YACE,OAAO,EAAE,YAAY;YACrB,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE,EAAE,GAAG,EAAE,mCAAmC,EAAE;YACxD,MAAM,EAAE,OAAO;YACf,IAAI,EAAE
|
|
1
|
+
{"version":3,"file":"linkDocsContentExample.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/linkDocsContentExample.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAG,+HAA+H,CAAC;AAC7I,MAAM,CAAC,MAAM,sBAAsB,GAAoB;IACrD,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,oCAAoC;IACjD,SAAS,EAAE;QACT;YACE,OAAO,EAAE,YAAY;YACrB,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE,EAAE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IAAI;YACZ,IAAI,EAAE,sCAAsC;YAC5C,MAAM,EAAE,OAAO;YACf,YAAY,EAAE;gBACZ,IAAI,EAAE,4DAA4D;aACnE;SACF;QACD;YACE,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,2CAA2C;YACjD,MAAM,EAAE,OAAO;YACf,YAAY,EAAE;gBACZ,IAAI,EAAE,4DAA4D;aACnE;SACF;KACF;CACF,CAAC"}
|
|
@@ -15,14 +15,6 @@ export declare type YandexReachGoalAspect = {
|
|
|
15
15
|
aspectName: 'ymReachGoal';
|
|
16
16
|
params?: AspectData;
|
|
17
17
|
};
|
|
18
|
-
/**
|
|
19
|
-
* @title Отправить событие в Mindbox
|
|
20
|
-
* @default {"aspectName": "mindboxEvent", "params": {"eventAction": "", "eventCategory": "", "eventValueText": ""}}
|
|
21
|
-
*/
|
|
22
|
-
export declare type MindboxEventAspect = {
|
|
23
|
-
aspectName: 'mindboxEvent';
|
|
24
|
-
params?: AspectData;
|
|
25
|
-
};
|
|
26
18
|
/**
|
|
27
19
|
* @title Открыть чат-бот
|
|
28
20
|
* @default {"aspectName": "openChatBot"}
|
|
@@ -55,7 +47,7 @@ export declare type EmptyAspect = {
|
|
|
55
47
|
* @title Параметр
|
|
56
48
|
* @default { "aspectName": "" }
|
|
57
49
|
*/
|
|
58
|
-
export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect |
|
|
50
|
+
export declare type AspectsDef = EmptyAspect | ChatBotAspect | YandexReachGoalAspect | SnowplowEventAspect | PartnersEventAspect | UserSurveyAspect;
|
|
59
51
|
export declare type AspectsProps = {
|
|
60
52
|
/** @title Дополнительные атрибуты */
|
|
61
53
|
data?: AspectsDef[];
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { NEW_RETAIL_CREDIT_API_BASE_URI, NEW_RETAIL_CREDIT_CARD_API_BASE_URI, RETAIL_API_BASE_URI, } from '../api/apiBaseUrl.js';
|
|
2
|
+
const getProductType = () => {
|
|
3
|
+
const raw = globalThis.localStorage?.getItem('productType');
|
|
4
|
+
if (!raw) {
|
|
5
|
+
return null;
|
|
6
|
+
}
|
|
7
|
+
try {
|
|
8
|
+
return JSON.parse(raw);
|
|
9
|
+
}
|
|
10
|
+
catch {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
2
14
|
export const getBaseUrl = () => {
|
|
3
15
|
const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
|
|
4
|
-
const productType =
|
|
5
|
-
const newRetailApi = productType === '
|
|
6
|
-
? NEW_RETAIL_CREDIT_API_BASE_URI
|
|
7
|
-
: NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
16
|
+
const productType = getProductType();
|
|
17
|
+
const newRetailApi = productType === 'credit' ? NEW_RETAIL_CREDIT_API_BASE_URI : NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
8
18
|
return isNewMicroservice ? newRetailApi : RETAIL_API_BASE_URI;
|
|
9
19
|
};
|
|
10
20
|
//# sourceMappingURL=getBaseUrl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBaseUrl.js","sourceRoot":"","sources":["../../../src/retail/utils/getBaseUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,EACnC,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"getBaseUrl.js","sourceRoot":"","sources":["../../../src/retail/utils/getBaseUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,EACnC,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAG3B,MAAM,cAAc,GAAG,GAAuB,EAAE;IAC9C,MAAM,GAAG,GAAG,UAAU,CAAC,YAAY,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAC5D,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,IAAI,CAAC;KACb;IACD,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;KACxB;IAAC,MAAM;QACN,OAAO,IAAI,CAAC;KACb;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,MAAM,iBAAiB,GAAG,UAAU,CAAC,cAAc,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAClF,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,YAAY,GAChB,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,mCAAmC,CAAC;IAElG,OAAO,iBAAiB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,mBAAmB,CAAC;AAChE,CAAC,CAAC"}
|
|
@@ -10,14 +10,7 @@ export const linkDocsContentExample: LinkDocsContent = {
|
|
|
10
10
|
text: 'target self',
|
|
11
11
|
attachment: { src: '/abc1/cooldoc.doc/content?content' },
|
|
12
12
|
target: '_self',
|
|
13
|
-
data: [
|
|
14
|
-
{
|
|
15
|
-
aspectName: 'mindboxEvent',
|
|
16
|
-
params: {
|
|
17
|
-
eventvaluetext: 'test-mindbox',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
],
|
|
13
|
+
data: [],
|
|
21
14
|
},
|
|
22
15
|
{
|
|
23
16
|
docType: 'Link',
|
|
@@ -18,15 +18,6 @@ export type YandexReachGoalAspect = {
|
|
|
18
18
|
params?: AspectData;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* @title Отправить событие в Mindbox
|
|
23
|
-
* @default {"aspectName": "mindboxEvent", "params": {"eventAction": "", "eventCategory": "", "eventValueText": ""}}
|
|
24
|
-
*/
|
|
25
|
-
export type MindboxEventAspect = {
|
|
26
|
-
aspectName: 'mindboxEvent';
|
|
27
|
-
params?: AspectData;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
21
|
/**
|
|
31
22
|
* @title Открыть чат-бот
|
|
32
23
|
* @default {"aspectName": "openChatBot"}
|
|
@@ -67,7 +58,6 @@ export type AspectsDef =
|
|
|
67
58
|
| EmptyAspect
|
|
68
59
|
| ChatBotAspect
|
|
69
60
|
| YandexReachGoalAspect
|
|
70
|
-
| MindboxEventAspect
|
|
71
61
|
| SnowplowEventAspect
|
|
72
62
|
| PartnersEventAspect
|
|
73
63
|
| UserSurveyAspect;
|
|
@@ -3,15 +3,26 @@ import {
|
|
|
3
3
|
NEW_RETAIL_CREDIT_CARD_API_BASE_URI,
|
|
4
4
|
RETAIL_API_BASE_URI,
|
|
5
5
|
} from '../api/apiBaseUrl';
|
|
6
|
+
import { type ProductType } from '../model/ApplicationLeadFormTypes';
|
|
7
|
+
|
|
8
|
+
const getProductType = (): ProductType | null => {
|
|
9
|
+
const raw = globalThis.localStorage?.getItem('productType');
|
|
10
|
+
if (!raw) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
return JSON.parse(raw);
|
|
15
|
+
} catch {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
6
19
|
|
|
7
20
|
export const getBaseUrl = () => {
|
|
8
21
|
const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
|
|
9
|
-
const productType =
|
|
22
|
+
const productType = getProductType();
|
|
10
23
|
|
|
11
24
|
const newRetailApi =
|
|
12
|
-
productType === '
|
|
13
|
-
? NEW_RETAIL_CREDIT_API_BASE_URI
|
|
14
|
-
: NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
25
|
+
productType === 'credit' ? NEW_RETAIL_CREDIT_API_BASE_URI : NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
15
26
|
|
|
16
27
|
return isNewMicroservice ? newRetailApi : RETAIL_API_BASE_URI;
|
|
17
28
|
};
|
package/package.json
CHANGED
|
@@ -77,7 +77,6 @@ export const CAROUSEL_RECOMMENDATION_CARD: CarouselRecommendationCardContent = {
|
|
|
77
77
|
__html: HTML,
|
|
78
78
|
icon: ICON,
|
|
79
79
|
socialMedia: SOCIAL_MEDIA_WITH_TEXT,
|
|
80
|
-
data: [{ aspectName: 'mindboxEvent', params: { test: 'test-mindbox' } }],
|
|
81
80
|
href: 'https://www.rshb.ru/',
|
|
82
81
|
};
|
|
83
82
|
|
|
@@ -10,14 +10,7 @@ export const linkDocsContentExample: LinkDocsContent = {
|
|
|
10
10
|
text: 'target self',
|
|
11
11
|
attachment: { src: '/abc1/cooldoc.doc/content?content' },
|
|
12
12
|
target: '_self',
|
|
13
|
-
data: [
|
|
14
|
-
{
|
|
15
|
-
aspectName: 'mindboxEvent',
|
|
16
|
-
params: {
|
|
17
|
-
eventvaluetext: 'test-mindbox',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
],
|
|
13
|
+
data: [],
|
|
21
14
|
},
|
|
22
15
|
{
|
|
23
16
|
docType: 'Link',
|
|
@@ -18,15 +18,6 @@ export type YandexReachGoalAspect = {
|
|
|
18
18
|
params?: AspectData;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* @title Отправить событие в Mindbox
|
|
23
|
-
* @default {"aspectName": "mindboxEvent", "params": {"eventAction": "", "eventCategory": "", "eventValueText": ""}}
|
|
24
|
-
*/
|
|
25
|
-
export type MindboxEventAspect = {
|
|
26
|
-
aspectName: 'mindboxEvent';
|
|
27
|
-
params?: AspectData;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
21
|
/**
|
|
31
22
|
* @title Открыть чат-бот
|
|
32
23
|
* @default {"aspectName": "openChatBot"}
|
|
@@ -67,7 +58,6 @@ export type AspectsDef =
|
|
|
67
58
|
| EmptyAspect
|
|
68
59
|
| ChatBotAspect
|
|
69
60
|
| YandexReachGoalAspect
|
|
70
|
-
| MindboxEventAspect
|
|
71
61
|
| SnowplowEventAspect
|
|
72
62
|
| PartnersEventAspect
|
|
73
63
|
| UserSurveyAspect;
|
|
@@ -3,15 +3,26 @@ import {
|
|
|
3
3
|
NEW_RETAIL_CREDIT_CARD_API_BASE_URI,
|
|
4
4
|
RETAIL_API_BASE_URI,
|
|
5
5
|
} from '../api/apiBaseUrl';
|
|
6
|
+
import { type ProductType } from '../model/ApplicationLeadFormTypes';
|
|
7
|
+
|
|
8
|
+
const getProductType = (): ProductType | null => {
|
|
9
|
+
const raw = globalThis.localStorage?.getItem('productType');
|
|
10
|
+
if (!raw) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
return JSON.parse(raw);
|
|
15
|
+
} catch {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
6
19
|
|
|
7
20
|
export const getBaseUrl = () => {
|
|
8
21
|
const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
|
|
9
|
-
const productType =
|
|
22
|
+
const productType = getProductType();
|
|
10
23
|
|
|
11
24
|
const newRetailApi =
|
|
12
|
-
productType === '
|
|
13
|
-
? NEW_RETAIL_CREDIT_API_BASE_URI
|
|
14
|
-
: NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
25
|
+
productType === 'credit' ? NEW_RETAIL_CREDIT_API_BASE_URI : NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
15
26
|
|
|
16
27
|
return isNewMicroservice ? newRetailApi : RETAIL_API_BASE_URI;
|
|
17
28
|
};
|