@doyourjob/gravity-ui-page-constructor 5.31.186 → 5.31.188
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/build/cjs/blocks/CardLayout/schema.d.ts +6 -0
- package/build/cjs/blocks/ContentLayout/schema.d.ts +3 -0
- package/build/cjs/blocks/EventsSection/schema.d.ts +3 -0
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +3 -0
- package/build/cjs/blocks/FilterBlock/schema.d.ts +6 -0
- package/build/cjs/blocks/FilterCardLayout/schema.d.ts +3 -0
- package/build/cjs/blocks/Form/schema.d.ts +6 -0
- package/build/cjs/blocks/Info/schema.d.ts +6 -0
- package/build/cjs/blocks/LinkTable/schema.d.ts +3 -0
- package/build/cjs/blocks/LogoRotator/schema.d.ts +3 -0
- package/build/cjs/blocks/Map/schema.d.ts +3 -0
- package/build/cjs/blocks/Media/schema.d.ts +6 -0
- package/build/cjs/blocks/MiniCase/schema.d.ts +3 -0
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
- package/build/cjs/blocks/Questions/schema.d.ts +3 -0
- package/build/cjs/blocks/RelevantPosts/schema.d.ts +3 -0
- package/build/cjs/blocks/RelevantReports/schema.d.ts +3 -0
- package/build/cjs/blocks/RelevantReportsCards/schema.d.ts +3 -0
- package/build/cjs/blocks/Reports/schema.d.ts +3 -0
- package/build/cjs/blocks/ReportsCards/schema.d.ts +3 -0
- package/build/cjs/blocks/ReportsSections/schema.d.ts +3 -0
- package/build/cjs/blocks/Slider/schema.d.ts +3 -0
- package/build/cjs/blocks/SliderNew/schema.d.ts +3 -0
- package/build/cjs/blocks/TabLinks/schema.d.ts +3 -0
- package/build/cjs/blocks/Tabs/schema.d.ts +6 -0
- package/build/cjs/blocks/TabsHighlightTable/schema.d.ts +3 -0
- package/build/cjs/components/Title/Title.css +3 -0
- package/build/cjs/components/Title/Title.js +3 -3
- package/build/cjs/models/constructor-items/common.d.ts +1 -0
- package/build/cjs/schema/constants.d.ts +21 -0
- package/build/cjs/schema/validators/common.d.ts +6 -0
- package/build/cjs/schema/validators/common.js +3 -0
- package/build/cjs/sub-blocks/AttachmentCard/schema.d.ts +3 -0
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +3 -0
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +3 -0
- package/build/cjs/sub-blocks/Content/schema.d.ts +6 -0
- package/build/cjs/sub-blocks/ContentLayoutCard/schema.d.ts +3 -0
- package/build/cjs/sub-blocks/EventPersonCard/schema.d.ts +3 -0
- package/build/cjs/sub-blocks/ImageCard/schema.d.ts +3 -0
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +3 -0
- package/build/cjs/sub-blocks/StoryCard/schema.d.ts +3 -0
- package/build/cjs/text-transform/config.d.ts +1 -0
- package/build/esm/blocks/CardLayout/schema.d.ts +6 -0
- package/build/esm/blocks/ContentLayout/schema.d.ts +3 -0
- package/build/esm/blocks/EventsSection/schema.d.ts +3 -0
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +3 -0
- package/build/esm/blocks/FilterBlock/schema.d.ts +6 -0
- package/build/esm/blocks/FilterCardLayout/schema.d.ts +3 -0
- package/build/esm/blocks/Form/schema.d.ts +6 -0
- package/build/esm/blocks/Info/schema.d.ts +6 -0
- package/build/esm/blocks/LinkTable/schema.d.ts +3 -0
- package/build/esm/blocks/LogoRotator/schema.d.ts +3 -0
- package/build/esm/blocks/Map/schema.d.ts +3 -0
- package/build/esm/blocks/Media/schema.d.ts +6 -0
- package/build/esm/blocks/MiniCase/schema.d.ts +3 -0
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
- package/build/esm/blocks/Questions/schema.d.ts +3 -0
- package/build/esm/blocks/RelevantPosts/schema.d.ts +3 -0
- package/build/esm/blocks/RelevantReports/schema.d.ts +3 -0
- package/build/esm/blocks/RelevantReportsCards/schema.d.ts +3 -0
- package/build/esm/blocks/Reports/schema.d.ts +3 -0
- package/build/esm/blocks/ReportsCards/schema.d.ts +3 -0
- package/build/esm/blocks/ReportsSections/schema.d.ts +3 -0
- package/build/esm/blocks/Slider/schema.d.ts +3 -0
- package/build/esm/blocks/SliderNew/schema.d.ts +3 -0
- package/build/esm/blocks/TabLinks/schema.d.ts +3 -0
- package/build/esm/blocks/Tabs/schema.d.ts +6 -0
- package/build/esm/blocks/TabsHighlightTable/schema.d.ts +3 -0
- package/build/esm/components/Title/Title.css +3 -0
- package/build/esm/components/Title/Title.js +3 -3
- package/build/esm/models/constructor-items/common.d.ts +1 -0
- package/build/esm/schema/constants.d.ts +21 -0
- package/build/esm/schema/validators/common.d.ts +6 -0
- package/build/esm/schema/validators/common.js +3 -0
- package/build/esm/sub-blocks/AttachmentCard/schema.d.ts +3 -0
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +3 -0
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +3 -0
- package/build/esm/sub-blocks/Content/schema.d.ts +6 -0
- package/build/esm/sub-blocks/ContentLayoutCard/schema.d.ts +3 -0
- package/build/esm/sub-blocks/EventPersonCard/schema.d.ts +3 -0
- package/build/esm/sub-blocks/ImageCard/schema.d.ts +3 -0
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +3 -0
- package/build/esm/sub-blocks/StoryCard/schema.d.ts +3 -0
- package/build/esm/text-transform/config.d.ts +1 -0
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/common.d.ts +1 -0
- package/server/text-transform/config.d.ts +1 -0
- package/widget/index.js +1 -1
|
@@ -252,6 +252,9 @@ export declare const CardLayoutProps: {
|
|
|
252
252
|
type: string;
|
|
253
253
|
enum: string[];
|
|
254
254
|
};
|
|
255
|
+
centered: {
|
|
256
|
+
type: string;
|
|
257
|
+
};
|
|
255
258
|
url: {
|
|
256
259
|
type: string;
|
|
257
260
|
};
|
|
@@ -664,6 +667,9 @@ export declare const CardLayoutBlock: {
|
|
|
664
667
|
type: string;
|
|
665
668
|
enum: string[];
|
|
666
669
|
};
|
|
670
|
+
centered: {
|
|
671
|
+
type: string;
|
|
672
|
+
};
|
|
667
673
|
url: {
|
|
668
674
|
type: string;
|
|
669
675
|
};
|
|
@@ -204,6 +204,9 @@ export declare const FilterProps: {
|
|
|
204
204
|
type: string;
|
|
205
205
|
enum: string[];
|
|
206
206
|
};
|
|
207
|
+
centered: {
|
|
208
|
+
type: string;
|
|
209
|
+
};
|
|
207
210
|
url: {
|
|
208
211
|
type: string;
|
|
209
212
|
};
|
|
@@ -541,6 +544,9 @@ export declare const FilterBlock: {
|
|
|
541
544
|
type: string;
|
|
542
545
|
enum: string[];
|
|
543
546
|
};
|
|
547
|
+
centered: {
|
|
548
|
+
type: string;
|
|
549
|
+
};
|
|
544
550
|
url: {
|
|
545
551
|
type: string;
|
|
546
552
|
};
|
|
@@ -221,6 +221,9 @@ export declare const FormBlock: {
|
|
|
221
221
|
type: string;
|
|
222
222
|
enum: string[];
|
|
223
223
|
};
|
|
224
|
+
centered: {
|
|
225
|
+
type: string;
|
|
226
|
+
};
|
|
224
227
|
url: {
|
|
225
228
|
type: string;
|
|
226
229
|
};
|
|
@@ -446,6 +449,9 @@ export declare const FormBlock: {
|
|
|
446
449
|
type: string;
|
|
447
450
|
enum: string[];
|
|
448
451
|
};
|
|
452
|
+
centered: {
|
|
453
|
+
type: string;
|
|
454
|
+
};
|
|
449
455
|
url: {
|
|
450
456
|
type: string;
|
|
451
457
|
};
|
|
@@ -189,6 +189,9 @@ export declare const InfoBlock: {
|
|
|
189
189
|
type: string;
|
|
190
190
|
enum: string[];
|
|
191
191
|
};
|
|
192
|
+
centered: {
|
|
193
|
+
type: string;
|
|
194
|
+
};
|
|
192
195
|
url: {
|
|
193
196
|
type: string;
|
|
194
197
|
};
|
|
@@ -414,6 +417,9 @@ export declare const InfoBlock: {
|
|
|
414
417
|
type: string;
|
|
415
418
|
enum: string[];
|
|
416
419
|
};
|
|
420
|
+
centered: {
|
|
421
|
+
type: string;
|
|
422
|
+
};
|
|
417
423
|
url: {
|
|
418
424
|
type: string;
|
|
419
425
|
};
|
|
@@ -640,6 +640,9 @@ export declare const MediaBlockBaseProps: {
|
|
|
640
640
|
type: string;
|
|
641
641
|
enum: string[];
|
|
642
642
|
};
|
|
643
|
+
centered: {
|
|
644
|
+
type: string;
|
|
645
|
+
};
|
|
643
646
|
url: {
|
|
644
647
|
type: string;
|
|
645
648
|
};
|
|
@@ -1507,6 +1510,9 @@ export declare const MediaBlock: {
|
|
|
1507
1510
|
type: string;
|
|
1508
1511
|
enum: string[];
|
|
1509
1512
|
};
|
|
1513
|
+
centered: {
|
|
1514
|
+
type: string;
|
|
1515
|
+
};
|
|
1510
1516
|
url: {
|
|
1511
1517
|
type: string;
|
|
1512
1518
|
};
|
|
@@ -622,6 +622,9 @@ export declare const tabsItem: {
|
|
|
622
622
|
type: string;
|
|
623
623
|
enum: string[];
|
|
624
624
|
};
|
|
625
|
+
centered: {
|
|
626
|
+
type: string;
|
|
627
|
+
};
|
|
625
628
|
url: {
|
|
626
629
|
type: string;
|
|
627
630
|
};
|
|
@@ -871,6 +874,9 @@ export declare const TabsBlock: {
|
|
|
871
874
|
type: string;
|
|
872
875
|
enum: string[];
|
|
873
876
|
};
|
|
877
|
+
centered: {
|
|
878
|
+
type: string;
|
|
879
|
+
};
|
|
874
880
|
url: {
|
|
875
881
|
type: string;
|
|
876
882
|
};
|
|
@@ -13,11 +13,11 @@ const Title = ({ title, subtitle, subtitleBold, link, className, colSizes = { al
|
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
15
|
const _a = !title || typeof title === 'string' ? { text: title } : title, { text } = _a, titleProps = tslib_1.__rest(_a, ["text"]);
|
|
16
|
-
return (react_1.default.createElement("div", { className: b(
|
|
17
|
-
text && (react_1.default.createElement(grid_1.Col, { reset: true, sizes: colSizes, className: b('title') },
|
|
16
|
+
return (react_1.default.createElement("div", { className: b({ centered: titleProps.centered }, className), id: id },
|
|
17
|
+
text && (react_1.default.createElement(grid_1.Col, { reset: true, sizes: titleProps.centered ? { all: 12 } : colSizes, className: b('title') },
|
|
18
18
|
react_1.default.createElement(TitleItem_1.default, Object.assign({ text: text }, titleProps)),
|
|
19
19
|
link && react_1.default.createElement(__1.Link, Object.assign({}, link, { className: b('link'), theme: "normal", arrow: true })))),
|
|
20
|
-
subtitle && (react_1.default.createElement(grid_1.Col, { reset: true, sizes: colSizes },
|
|
20
|
+
subtitle && (react_1.default.createElement(grid_1.Col, { reset: true, sizes: titleProps.centered ? { all: 12 } : colSizes },
|
|
21
21
|
react_1.default.createElement("div", { className: b('description', {
|
|
22
22
|
titleSize: titleProps === null || titleProps === void 0 ? void 0 : titleProps.textSize,
|
|
23
23
|
bold: subtitleBold,
|
|
@@ -282,6 +282,7 @@ export interface TitleItemProps extends Justifyable, TitleItemBaseProps {
|
|
|
282
282
|
export interface TitleItemBaseProps {
|
|
283
283
|
text: string;
|
|
284
284
|
textSize?: TitleTextSize;
|
|
285
|
+
centered?: boolean;
|
|
285
286
|
url?: string;
|
|
286
287
|
urlTitle?: string;
|
|
287
288
|
custom?: string | ReactNode;
|
|
@@ -140,6 +140,9 @@ export declare const cardSchemas: {
|
|
|
140
140
|
type: string;
|
|
141
141
|
enum: string[];
|
|
142
142
|
};
|
|
143
|
+
centered: {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
143
146
|
url: {
|
|
144
147
|
type: string;
|
|
145
148
|
};
|
|
@@ -528,6 +531,9 @@ export declare const cardSchemas: {
|
|
|
528
531
|
type: string;
|
|
529
532
|
enum: string[];
|
|
530
533
|
};
|
|
534
|
+
centered: {
|
|
535
|
+
type: string;
|
|
536
|
+
};
|
|
531
537
|
url: {
|
|
532
538
|
type: string;
|
|
533
539
|
};
|
|
@@ -750,6 +756,9 @@ export declare const cardSchemas: {
|
|
|
750
756
|
type: string;
|
|
751
757
|
enum: string[];
|
|
752
758
|
};
|
|
759
|
+
centered: {
|
|
760
|
+
type: string;
|
|
761
|
+
};
|
|
753
762
|
url: {
|
|
754
763
|
type: string;
|
|
755
764
|
};
|
|
@@ -1299,6 +1308,9 @@ export declare const cardSchemas: {
|
|
|
1299
1308
|
type: string;
|
|
1300
1309
|
enum: string[];
|
|
1301
1310
|
};
|
|
1311
|
+
centered: {
|
|
1312
|
+
type: string;
|
|
1313
|
+
};
|
|
1302
1314
|
url: {
|
|
1303
1315
|
type: string;
|
|
1304
1316
|
};
|
|
@@ -1884,6 +1896,9 @@ export declare const cardSchemas: {
|
|
|
1884
1896
|
type: string;
|
|
1885
1897
|
enum: string[];
|
|
1886
1898
|
};
|
|
1899
|
+
centered: {
|
|
1900
|
+
type: string;
|
|
1901
|
+
};
|
|
1887
1902
|
url: {
|
|
1888
1903
|
type: string;
|
|
1889
1904
|
};
|
|
@@ -2526,6 +2541,9 @@ export declare const cardSchemas: {
|
|
|
2526
2541
|
type: string;
|
|
2527
2542
|
enum: string[];
|
|
2528
2543
|
};
|
|
2544
|
+
centered: {
|
|
2545
|
+
type: string;
|
|
2546
|
+
};
|
|
2529
2547
|
url: {
|
|
2530
2548
|
type: string;
|
|
2531
2549
|
};
|
|
@@ -3127,6 +3145,9 @@ export declare const cardSchemas: {
|
|
|
3127
3145
|
type: string;
|
|
3128
3146
|
enum: string[];
|
|
3129
3147
|
};
|
|
3148
|
+
centered: {
|
|
3149
|
+
type: string;
|
|
3150
|
+
};
|
|
3130
3151
|
url: {
|
|
3131
3152
|
type: string;
|
|
3132
3153
|
};
|
|
@@ -1024,6 +1024,9 @@ export declare const TitleProps: {
|
|
|
1024
1024
|
type: string;
|
|
1025
1025
|
enum: string[];
|
|
1026
1026
|
};
|
|
1027
|
+
centered: {
|
|
1028
|
+
type: string;
|
|
1029
|
+
};
|
|
1027
1030
|
url: {
|
|
1028
1031
|
type: string;
|
|
1029
1032
|
};
|
|
@@ -1742,6 +1745,9 @@ export declare const BlockHeaderProps: {
|
|
|
1742
1745
|
type: string;
|
|
1743
1746
|
enum: string[];
|
|
1744
1747
|
};
|
|
1748
|
+
centered: {
|
|
1749
|
+
type: string;
|
|
1750
|
+
};
|
|
1745
1751
|
url: {
|
|
1746
1752
|
type: string;
|
|
1747
1753
|
};
|
|
@@ -186,6 +186,9 @@ export declare const ContentBase: {
|
|
|
186
186
|
type: string;
|
|
187
187
|
enum: string[];
|
|
188
188
|
};
|
|
189
|
+
centered: {
|
|
190
|
+
type: string;
|
|
191
|
+
};
|
|
189
192
|
url: {
|
|
190
193
|
type: string;
|
|
191
194
|
};
|
|
@@ -415,6 +418,9 @@ export declare const ContentBlock: {
|
|
|
415
418
|
type: string;
|
|
416
419
|
enum: string[];
|
|
417
420
|
};
|
|
421
|
+
centered: {
|
|
422
|
+
type: string;
|
|
423
|
+
};
|
|
418
424
|
url: {
|
|
419
425
|
type: string;
|
|
420
426
|
};
|
|
@@ -9,6 +9,7 @@ export declare const blockHeaderTransformer: ({
|
|
|
9
9
|
anchor?: string | undefined;
|
|
10
10
|
justify?: import("../models").Justify | undefined;
|
|
11
11
|
textSize?: import("../models").TitleTextSize | undefined;
|
|
12
|
+
centered?: boolean | undefined;
|
|
12
13
|
url?: string | undefined;
|
|
13
14
|
urlTitle?: string | undefined;
|
|
14
15
|
custom?: import("react").ReactNode;
|
|
@@ -252,6 +252,9 @@ export declare const CardLayoutProps: {
|
|
|
252
252
|
type: string;
|
|
253
253
|
enum: string[];
|
|
254
254
|
};
|
|
255
|
+
centered: {
|
|
256
|
+
type: string;
|
|
257
|
+
};
|
|
255
258
|
url: {
|
|
256
259
|
type: string;
|
|
257
260
|
};
|
|
@@ -664,6 +667,9 @@ export declare const CardLayoutBlock: {
|
|
|
664
667
|
type: string;
|
|
665
668
|
enum: string[];
|
|
666
669
|
};
|
|
670
|
+
centered: {
|
|
671
|
+
type: string;
|
|
672
|
+
};
|
|
667
673
|
url: {
|
|
668
674
|
type: string;
|
|
669
675
|
};
|