@redneckz/wildless-cms-uni-blocks 0.14.233 → 0.14.235
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.169.js +84 -107
- package/bin/migration-scripts/0.14.213.js +178 -203
- package/bin/migration-scripts/0.14.224.js +1 -1
- package/bin/migration-scripts/0.14.234.js +17 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +4 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/bundle/model/ContentPageMeta.d.ts +2 -1
- package/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +3 -2
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/model/ContentPageMeta.d.ts +2 -1
- package/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +3 -2
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/model/ContentPageMeta.d.ts +2 -1
- package/mobile/bundle/bundle.umd.js +4 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/bundle/model/ContentPageMeta.d.ts +2 -1
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -2
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/model/ContentPageMeta.d.ts +2 -1
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -2
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/model/ContentPageMeta.d.ts +2 -1
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +1 -1
- package/mobile/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -1
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +7 -2
- package/mobile/src/model/ContentPageMeta.ts +3 -1
- package/package.json +1 -1
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +1 -1
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +1 -1
- package/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +7 -2
- package/src/model/ContentPageMeta.ts +3 -1
- package/bin/migration-scripts/0.10.10.js +0 -44
- package/bin/migration-scripts/0.10.2.js +0 -31
- package/bin/migration-scripts/0.10.3.js +0 -19
- package/bin/migration-scripts/0.6.32.js +0 -32
- package/bin/migration-scripts/0.8.15.js +0 -32
- package/bin/migration-scripts/0.8.17.js +0 -35
- package/bin/migration-scripts/0.8.23.js +0 -31
- package/bin/migration-scripts/0.8.24.js +0 -30
- package/bin/migration-scripts/0.9.8.js +0 -29
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
3
|
-
export declare function renderBackwardButton(version: LinkButtonVersion, handleClick: () => void): JSX.Element;
|
|
3
|
+
export declare function renderBackwardButton(version: LinkButtonVersion, handleClick: () => void, alwaysVisible?: boolean): JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare type RobotsProps = 'index' | 'noindex' | 'follow' | 'nofollow' | 'noarchive' | 'noyaca';
|
|
1
2
|
/**
|
|
2
3
|
* @title Meta/SEO
|
|
3
4
|
*/
|
|
@@ -19,7 +20,7 @@ export interface ContentPageMeta {
|
|
|
19
20
|
* @title Директивы Robots
|
|
20
21
|
* @uniqueItems true
|
|
21
22
|
*/
|
|
22
|
-
robots?: Array<
|
|
23
|
+
robots?: Array<RobotsProps>;
|
|
23
24
|
};
|
|
24
25
|
/** @title OpenGraph */
|
|
25
26
|
og?: {
|
|
@@ -11,7 +11,7 @@ exports.validatorObj = {
|
|
|
11
11
|
phone: validators_1.phoneValidator,
|
|
12
12
|
birthday: validators_1.defaultValidator,
|
|
13
13
|
email: validators_1.defaultValidator,
|
|
14
|
-
fullName: validators_1.
|
|
14
|
+
fullName: validators_1.nameValidator,
|
|
15
15
|
inn: validators_1.innValidator,
|
|
16
16
|
partnerComments: validators_1.defaultValidator,
|
|
17
17
|
collectionCount: validators_1.defaultValidator,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getObjectValidator.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/getObjectValidator.tsx"],"names":[],"mappings":";;AACA,8DAOuC;AAEvC,2DAAwD;AAE3C,QAAA,YAAY,GAA8B;IACrD,QAAQ,EAAE,6BAAgB;IAC1B,OAAO,EAAE,0BAAa;IACtB,IAAI,EAAE,0BAAa;IACnB,MAAM,EAAE,mCAAsB;IAC9B,aAAa,EAAE,mCAAsB;IACrC,KAAK,EAAE,2BAAc;IACrB,QAAQ,EAAE,6BAAgB;IAC1B,KAAK,EAAE,6BAAgB;IACvB,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"getObjectValidator.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/getObjectValidator.tsx"],"names":[],"mappings":";;AACA,8DAOuC;AAEvC,2DAAwD;AAE3C,QAAA,YAAY,GAA8B;IACrD,QAAQ,EAAE,6BAAgB;IAC1B,OAAO,EAAE,0BAAa;IACtB,IAAI,EAAE,0BAAa;IACnB,MAAM,EAAE,mCAAsB;IAC9B,aAAa,EAAE,mCAAsB;IACrC,KAAK,EAAE,2BAAc;IACrB,QAAQ,EAAE,6BAAgB;IAC1B,KAAK,EAAE,6BAAgB;IACvB,QAAQ,EAAE,0BAAa;IACvB,GAAG,EAAE,yBAAY;IACjB,eAAe,EAAE,6BAAgB;IACjC,eAAe,EAAE,6BAAgB;IACjC,OAAO,EAAE,6BAAgB;IACzB,aAAa,EAAE,mCAAsB;IACrC,WAAW,EAAE,mCAAsB;IACnC,qBAAqB,EAAE,8BAAiB;IACxC,aAAa,EAAE,6BAAgB;CAChC,CAAC;AAEK,MAAM,kBAAkB,GAAG,CAAC,MAAkB,EAA6B,EAAE;IAClF,MAAM,cAAc,GAAG,IAAA,qCAAiB,EACtC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAW,EAAE,EAAE,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CACvE,CAAC;IAEF,OAAO,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,oBAAY,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/E,CAAC,CAAC;AANW,QAAA,kBAAkB,sBAM7B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
3
|
-
export declare function renderBackwardButton(version: LinkButtonVersion, handleClick: () => void): JSX.Element;
|
|
3
|
+
export declare function renderBackwardButton(version: LinkButtonVersion, handleClick: () => void, alwaysVisible?: boolean): JSX.Element;
|
|
@@ -4,11 +4,12 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
5
5
|
const getRegularButtonClasses_1 = require("../../ui-kit/LinkButton/getRegularButtonClasses");
|
|
6
6
|
const LinkButton_1 = require("../../ui-kit/LinkButton/LinkButton");
|
|
7
|
-
|
|
7
|
+
const style_1 = require("../../utils/style");
|
|
8
|
+
function renderBackwardButton(version, handleClick, alwaysVisible = false) {
|
|
8
9
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
9
10
|
const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
|
|
10
11
|
const text = 'Вернуться назад';
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className:
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(alwaysVisible ? 'flex' : 'hidden sm:flex', 'items-center gap-s'), children: [(0, jsx_runtime_1.jsx)("div", { className: (0, getRegularButtonClasses_1.getRegularButtonClasses)({ className, version, rounded: true }), onClick: handleClick, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-4 h-4", image: {
|
|
12
13
|
icon: 'ArrowLeftIcon',
|
|
13
14
|
iconVersion: iconVersion,
|
|
14
15
|
} }) }), (0, jsx_runtime_1.jsx)(LinkButton_1.LinkButton, { version: "link", className: "group-data-secondary:text-white/80", text: text, ariaLabel: text, onClick: handleClick, type: "button" })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;AAC3C,6FAA0F;AAC1F,mEAAgE;
|
|
1
|
+
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;AAC3C,6FAA0F;AAC1F,mEAAgE;AAChE,6CAA0C;AAE1C,SAAgB,oBAAoB,CAClC,OAA0B,EAC1B,WAAuB,EACvB,aAAa,GAAG,KAAK;IAErB,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,SAAS,GAAG,8DAA8D,CAAC;IACjF,MAAM,IAAI,GAAG,iBAAiB,CAAC;IAE/B,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,aACpF,gCACE,SAAS,EAAE,IAAA,iDAAuB,EAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EACzE,OAAO,EAAE,WAAW,YAEpB,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE;wBACL,IAAI,EAAE,eAAe;wBACrB,WAAW,EAAE,WAAW;qBACzB,GACD,GACE,EACN,uBAAC,uBAAU,IACT,OAAO,EAAC,MAAM,EACd,SAAS,EAAC,oCAAoC,EAC9C,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,WAAW,EACpB,IAAI,EAAC,QAAQ,GACb,IACE,CACP,CAAC;AACJ,CAAC;AAjCD,oDAiCC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare type RobotsProps = 'index' | 'noindex' | 'follow' | 'nofollow' | 'noarchive' | 'noyaca';
|
|
1
2
|
/**
|
|
2
3
|
* @title Meta/SEO
|
|
3
4
|
*/
|
|
@@ -19,7 +20,7 @@ export interface ContentPageMeta {
|
|
|
19
20
|
* @title Директивы Robots
|
|
20
21
|
* @uniqueItems true
|
|
21
22
|
*/
|
|
22
|
-
robots?: Array<
|
|
23
|
+
robots?: Array<RobotsProps>;
|
|
23
24
|
};
|
|
24
25
|
/** @title OpenGraph */
|
|
25
26
|
og?: {
|
|
@@ -9,7 +9,7 @@ export const validatorObj = {
|
|
|
9
9
|
phone: phoneValidator,
|
|
10
10
|
birthday: defaultValidator,
|
|
11
11
|
email: defaultValidator,
|
|
12
|
-
fullName:
|
|
12
|
+
fullName: nameValidator,
|
|
13
13
|
inn: innValidator,
|
|
14
14
|
partnerComments: defaultValidator,
|
|
15
15
|
collectionCount: defaultValidator,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getObjectValidator.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/getObjectValidator.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,CAAC,MAAM,YAAY,GAA8B;IACrD,QAAQ,EAAE,gBAAgB;IAC1B,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,sBAAsB;IAC9B,aAAa,EAAE,sBAAsB;IACrC,KAAK,EAAE,cAAc;IACrB,QAAQ,EAAE,gBAAgB;IAC1B,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"getObjectValidator.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/getObjectValidator.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,CAAC,MAAM,YAAY,GAA8B;IACrD,QAAQ,EAAE,gBAAgB;IAC1B,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,sBAAsB;IAC9B,aAAa,EAAE,sBAAsB;IACrC,KAAK,EAAE,cAAc;IACrB,QAAQ,EAAE,gBAAgB;IAC1B,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,aAAa;IACvB,GAAG,EAAE,YAAY;IACjB,eAAe,EAAE,gBAAgB;IACjC,eAAe,EAAE,gBAAgB;IACjC,OAAO,EAAE,gBAAgB;IACzB,aAAa,EAAE,sBAAsB;IACrC,WAAW,EAAE,sBAAsB;IACnC,qBAAqB,EAAE,iBAAiB;IACxC,aAAa,EAAE,gBAAgB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAkB,EAA6B,EAAE;IAClF,MAAM,cAAc,GAAG,iBAAiB,CACtC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAW,EAAE,EAAE,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CACvE,CAAC;IAEF,OAAO,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/E,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
3
|
-
export declare function renderBackwardButton(version: LinkButtonVersion, handleClick: () => void): JSX.Element;
|
|
3
|
+
export declare function renderBackwardButton(version: LinkButtonVersion, handleClick: () => void, alwaysVisible?: boolean): JSX.Element;
|
|
@@ -2,11 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
3
3
|
import { getRegularButtonClasses } from '../../ui-kit/LinkButton/getRegularButtonClasses.js';
|
|
4
4
|
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton.js';
|
|
5
|
-
|
|
5
|
+
import { style } from '../../utils/style.js';
|
|
6
|
+
export function renderBackwardButton(version, handleClick, alwaysVisible = false) {
|
|
6
7
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
7
8
|
const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
|
|
8
9
|
const text = 'Вернуться назад';
|
|
9
|
-
return (_jsxs("div", { className:
|
|
10
|
+
return (_jsxs("div", { className: style(alwaysVisible ? 'flex' : 'hidden sm:flex', 'items-center gap-s'), children: [_jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: _jsx(Img, { className: "w-4 h-4", image: {
|
|
10
11
|
icon: 'ArrowLeftIcon',
|
|
11
12
|
iconVersion: iconVersion,
|
|
12
13
|
} }) }), _jsx(LinkButton, { version: "link", className: "group-data-secondary:text-white/80", text: text, ariaLabel: text, onClick: handleClick, type: "button" })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,UAAU,oBAAoB,CAClC,OAA0B,EAC1B,WAAuB,EACvB,aAAa,GAAG,KAAK;IAErB,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,SAAS,GAAG,8DAA8D,CAAC;IACjF,MAAM,IAAI,GAAG,iBAAiB,CAAC;IAE/B,OAAO,CACL,eAAK,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,aACpF,cACE,SAAS,EAAE,uBAAuB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EACzE,OAAO,EAAE,WAAW,YAEpB,KAAC,GAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE;wBACL,IAAI,EAAE,eAAe;wBACrB,WAAW,EAAE,WAAW;qBACzB,GACD,GACE,EACN,KAAC,UAAU,IACT,OAAO,EAAC,MAAM,EACd,SAAS,EAAC,oCAAoC,EAC9C,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,WAAW,EACpB,IAAI,EAAC,QAAQ,GACb,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare type RobotsProps = 'index' | 'noindex' | 'follow' | 'nofollow' | 'noarchive' | 'noyaca';
|
|
1
2
|
/**
|
|
2
3
|
* @title Meta/SEO
|
|
3
4
|
*/
|
|
@@ -19,7 +20,7 @@ export interface ContentPageMeta {
|
|
|
19
20
|
* @title Директивы Robots
|
|
20
21
|
* @uniqueItems true
|
|
21
22
|
*/
|
|
22
|
-
robots?: Array<
|
|
23
|
+
robots?: Array<RobotsProps>;
|
|
23
24
|
};
|
|
24
25
|
/** @title OpenGraph */
|
|
25
26
|
og?: {
|
|
@@ -19,7 +19,7 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
19
19
|
phone: phoneValidator,
|
|
20
20
|
birthday: defaultValidator,
|
|
21
21
|
email: defaultValidator,
|
|
22
|
-
fullName:
|
|
22
|
+
fullName: nameValidator,
|
|
23
23
|
inn: innValidator,
|
|
24
24
|
partnerComments: defaultValidator,
|
|
25
25
|
collectionCount: defaultValidator,
|
|
@@ -2,14 +2,19 @@ import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
|
2
2
|
import { Img } from '../../ui-kit/Img/Img';
|
|
3
3
|
import { getRegularButtonClasses } from '../../ui-kit/LinkButton/getRegularButtonClasses';
|
|
4
4
|
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
|
|
5
|
+
import { style } from '../../utils/style';
|
|
5
6
|
|
|
6
|
-
export function renderBackwardButton(
|
|
7
|
+
export function renderBackwardButton(
|
|
8
|
+
version: LinkButtonVersion,
|
|
9
|
+
handleClick: () => void,
|
|
10
|
+
alwaysVisible = false,
|
|
11
|
+
) {
|
|
7
12
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
8
13
|
const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
|
|
9
14
|
const text = 'Вернуться назад';
|
|
10
15
|
|
|
11
16
|
return (
|
|
12
|
-
<div className=
|
|
17
|
+
<div className={style(alwaysVisible ? 'flex' : 'hidden sm:flex', 'items-center gap-s')}>
|
|
13
18
|
<div
|
|
14
19
|
className={getRegularButtonClasses({ className, version, rounded: true })}
|
|
15
20
|
onClick={handleClick}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type RobotsProps = 'index' | 'noindex' | 'follow' | 'nofollow' | 'noarchive' | 'noyaca';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @title Meta/SEO
|
|
3
5
|
*/
|
|
@@ -19,7 +21,7 @@ export interface ContentPageMeta {
|
|
|
19
21
|
* @title Директивы Robots
|
|
20
22
|
* @uniqueItems true
|
|
21
23
|
*/
|
|
22
|
-
robots?: Array<
|
|
24
|
+
robots?: Array<RobotsProps>;
|
|
23
25
|
};
|
|
24
26
|
/** @title OpenGraph */
|
|
25
27
|
og?: {
|
package/package.json
CHANGED
|
@@ -346,7 +346,7 @@ export default {
|
|
|
346
346
|
sections={[
|
|
347
347
|
{
|
|
348
348
|
inputs: [
|
|
349
|
-
{ name: '
|
|
349
|
+
{ name: 'name', required: true, label: 'ФИО' },
|
|
350
350
|
{ name: 'region', required: true },
|
|
351
351
|
{ name: 'phone', required: true },
|
|
352
352
|
{ name: 'consentDataProcessing', required: true },
|
|
@@ -19,7 +19,7 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
19
19
|
phone: phoneValidator,
|
|
20
20
|
birthday: defaultValidator,
|
|
21
21
|
email: defaultValidator,
|
|
22
|
-
fullName:
|
|
22
|
+
fullName: nameValidator,
|
|
23
23
|
inn: innValidator,
|
|
24
24
|
partnerComments: defaultValidator,
|
|
25
25
|
collectionCount: defaultValidator,
|
|
@@ -2,14 +2,19 @@ import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
|
2
2
|
import { Img } from '../../ui-kit/Img/Img';
|
|
3
3
|
import { getRegularButtonClasses } from '../../ui-kit/LinkButton/getRegularButtonClasses';
|
|
4
4
|
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
|
|
5
|
+
import { style } from '../../utils/style';
|
|
5
6
|
|
|
6
|
-
export function renderBackwardButton(
|
|
7
|
+
export function renderBackwardButton(
|
|
8
|
+
version: LinkButtonVersion,
|
|
9
|
+
handleClick: () => void,
|
|
10
|
+
alwaysVisible = false,
|
|
11
|
+
) {
|
|
7
12
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
8
13
|
const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
|
|
9
14
|
const text = 'Вернуться назад';
|
|
10
15
|
|
|
11
16
|
return (
|
|
12
|
-
<div className=
|
|
17
|
+
<div className={style(alwaysVisible ? 'flex' : 'hidden sm:flex', 'items-center gap-s')}>
|
|
13
18
|
<div
|
|
14
19
|
className={getRegularButtonClasses({ className, version, rounded: true })}
|
|
15
20
|
onClick={handleClick}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type RobotsProps = 'index' | 'noindex' | 'follow' | 'nofollow' | 'noarchive' | 'noyaca';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @title Meta/SEO
|
|
3
5
|
*/
|
|
@@ -19,7 +21,7 @@ export interface ContentPageMeta {
|
|
|
19
21
|
* @title Директивы Robots
|
|
20
22
|
* @uniqueItems true
|
|
21
23
|
*/
|
|
22
|
-
robots?: Array<
|
|
24
|
+
robots?: Array<RobotsProps>;
|
|
23
25
|
};
|
|
24
26
|
/** @title OpenGraph */
|
|
25
27
|
og?: {
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export const description = 'v0.10.10';
|
|
2
|
-
|
|
3
|
-
export default (uniPath, content) => {
|
|
4
|
-
if (!content?.blocks) {
|
|
5
|
-
return content;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
for (const block of content.blocks) {
|
|
9
|
-
adjustCarouselRecommendationCardTitle(block, uniPath);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return { ...content };
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
function adjustCarouselRecommendationCardTitle(block, uniPath) {
|
|
16
|
-
if (!block.blocks) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const headlineBlock = block.blocks.find((b) => b.type === 'Headline');
|
|
20
|
-
const carouselBlock = block.blocks.find((b) => b.type === 'Carousel');
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
headlineBlock &&
|
|
24
|
-
headlineBlock.content &&
|
|
25
|
-
headlineBlock.content.title === 'Также интересуются' &&
|
|
26
|
-
carouselBlock &&
|
|
27
|
-
carouselBlock.blocks
|
|
28
|
-
) {
|
|
29
|
-
const investmentBlock = carouselBlock.blocks.find(
|
|
30
|
-
(b) =>
|
|
31
|
-
b.type === 'CarouselRecommendationCard' &&
|
|
32
|
-
b.content &&
|
|
33
|
-
b.content.title.startsWith('Инвестиции'),
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
if (investmentBlock) {
|
|
37
|
-
investmentBlock.content.title = 'Вклады и счета';
|
|
38
|
-
}
|
|
39
|
-
} else {
|
|
40
|
-
for (const childBlock of block.blocks) {
|
|
41
|
-
adjustCarouselRecommendationCardTitle(childBlock, uniPath);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export const description = 'v0.10.2';
|
|
2
|
-
|
|
3
|
-
export default (uniPath, content) => {
|
|
4
|
-
if (!content?.blocks) {
|
|
5
|
-
return content;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
for (const block of content.blocks) {
|
|
9
|
-
adjustLinkDocs(block);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return { ...content };
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
function adjustLinkDocs(block) {
|
|
16
|
-
if (block.blocks) {
|
|
17
|
-
for (const childBlock of block.blocks) {
|
|
18
|
-
adjustLinkDocs(childBlock);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (block.type === 'LinkDocs') {
|
|
23
|
-
const blockContent = block?.content;
|
|
24
|
-
if (blockContent?.orientation) {
|
|
25
|
-
Reflect.deleteProperty(blockContent, 'orientation');
|
|
26
|
-
}
|
|
27
|
-
if (blockContent?.hasBorder) {
|
|
28
|
-
Reflect.deleteProperty(blockContent, 'hasBorder');
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { renameProp } from '../utils.js';
|
|
2
|
-
|
|
3
|
-
export const description = 'v0.10.3';
|
|
4
|
-
|
|
5
|
-
const CALCULATOR_SCHEME_NAME = 'Калькулятора параметры.schema.json';
|
|
6
|
-
|
|
7
|
-
export default (unitPath, content) => {
|
|
8
|
-
if (
|
|
9
|
-
!content._schemaPath ||
|
|
10
|
-
!content._schemaPath.endsWith(CALCULATOR_SCHEME_NAME) ||
|
|
11
|
-
content.rateRows
|
|
12
|
-
) {
|
|
13
|
-
return content;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
renameProp(content, 'rows', 'rateRows');
|
|
17
|
-
|
|
18
|
-
return { ...content };
|
|
19
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export const description = 'v0.6.32';
|
|
2
|
-
|
|
3
|
-
export default (unitPath, content) => {
|
|
4
|
-
if (!content?.blocks) {
|
|
5
|
-
return content;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
for (const block of content.blocks) {
|
|
9
|
-
adjustContactsBlock(block);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return { ...content };
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
function adjustContactsBlock(block) {
|
|
16
|
-
if ('blocks' in block && Array.isArray(block.blocks)) {
|
|
17
|
-
for (const _block of block.blocks) {
|
|
18
|
-
adjustContactsBlock(_block);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
block.type !== 'ContactsBlock' ||
|
|
24
|
-
!block.content ||
|
|
25
|
-
!block.content.info ||
|
|
26
|
-
block.content.info.length <= 0 ||
|
|
27
|
-
Array.isArray(block.content.info[0])
|
|
28
|
-
) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
block.content.info = block.content.info.map((_) => [_]);
|
|
32
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export const description = 'v0.8.15';
|
|
2
|
-
|
|
3
|
-
export default (uniPath, content) => {
|
|
4
|
-
if (!content?.blocks) {
|
|
5
|
-
return content;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
for (const block of content.blocks) {
|
|
9
|
-
adjustStepsBlock(block);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return { ...content };
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
function adjustStepsBlock(block) {
|
|
16
|
-
if (block.blocks) {
|
|
17
|
-
for (const childBlock of block.blocks) {
|
|
18
|
-
adjustStepsBlock(childBlock);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (block.type !== 'StepsBlock') {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
if (block.content?.steps?.length) {
|
|
27
|
-
block.content.steps = block.content.steps.map((s) => ({
|
|
28
|
-
...s,
|
|
29
|
-
type: s.type ? s.type : 'default',
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { renameProp } from '../utils.js';
|
|
2
|
-
|
|
3
|
-
export const description = 'v0.8.17';
|
|
4
|
-
|
|
5
|
-
export default (uniPath, content) => {
|
|
6
|
-
if (!content?.blocks) {
|
|
7
|
-
return content;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
for (const block of content.blocks) {
|
|
11
|
-
adjustBonusBenefitsBlock(block);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return { ...content };
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
function adjustBonusBenefitsBlock(block) {
|
|
18
|
-
if (block.blocks) {
|
|
19
|
-
for (const childBlock of block.blocks) {
|
|
20
|
-
adjustBonusBenefitsBlock(childBlock);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (block.type === 'BonusBenefitsBlock') {
|
|
25
|
-
const bonusBenefits = block?.content?.bonusBenefits;
|
|
26
|
-
if (bonusBenefits) {
|
|
27
|
-
for (const benefit of bonusBenefits) {
|
|
28
|
-
if (benefit.label) {
|
|
29
|
-
renameProp(benefit, 'description', 'title');
|
|
30
|
-
renameProp(benefit, 'label', 'description');
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { renameProp } from '../utils.js';
|
|
2
|
-
|
|
3
|
-
export const description = 'v0.8.23';
|
|
4
|
-
|
|
5
|
-
export default (uniPath, content) => {
|
|
6
|
-
if (!content?.blocks) {
|
|
7
|
-
return content;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
for (const block of content.blocks) {
|
|
11
|
-
adjustTextBlock(block);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return { ...content };
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
function adjustTextBlock(block) {
|
|
18
|
-
if (block.blocks) {
|
|
19
|
-
for (const childBlock of block.blocks) {
|
|
20
|
-
adjustTextBlock(childBlock);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (block.type !== 'TextBlock') {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
if (block.content?.blockVersion) {
|
|
29
|
-
renameProp(block.content, 'blockVersion', 'version');
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { renameProp } from '../utils.js';
|
|
2
|
-
|
|
3
|
-
export const description = 'v0.8.24';
|
|
4
|
-
|
|
5
|
-
export default (uniPath, content) => {
|
|
6
|
-
if (!content?.blocks) {
|
|
7
|
-
return content;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
for (const block of content.blocks) {
|
|
11
|
-
adjustCarouselRecommendationCardBlock(block);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return { ...content };
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
function adjustCarouselRecommendationCardBlock(block) {
|
|
18
|
-
if (block.blocks) {
|
|
19
|
-
for (const childBlock of block.blocks) {
|
|
20
|
-
adjustCarouselRecommendationCardBlock(childBlock);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (block.type === 'CarouselRecommendationCard') {
|
|
25
|
-
const carouselRecommendationCard = block?.content;
|
|
26
|
-
if (carouselRecommendationCard?.image) {
|
|
27
|
-
renameProp(carouselRecommendationCard, 'image', 'icon');
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export const description = 'v0.9.8';
|
|
2
|
-
|
|
3
|
-
export default (unitPath, content) => {
|
|
4
|
-
if (!content?.blocks) {
|
|
5
|
-
return content;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
for (const block of content.blocks) {
|
|
9
|
-
adjustStepsBlock(block);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return { ...content };
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const adjustStepsBlock = (block) => {
|
|
16
|
-
if (block.blocks) {
|
|
17
|
-
for (const childBlock of block.blocks) {
|
|
18
|
-
adjustStepsBlock(childBlock);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (block.type !== 'StepsBlock') {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
if (block?.content?.button) {
|
|
26
|
-
block.content.buttons = [block?.content?.button];
|
|
27
|
-
Reflect.deleteProperty(block.content, 'button');
|
|
28
|
-
}
|
|
29
|
-
};
|