@doyourjob/gravity-ui-page-constructor 5.31.224 → 5.31.226

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.
Files changed (161) hide show
  1. package/build/cjs/blocks/Audio/schema.d.ts +3 -0
  2. package/build/cjs/blocks/BannerMinify/schema.d.ts +3 -0
  3. package/build/cjs/blocks/Benchmark/schema.d.ts +3 -0
  4. package/build/cjs/blocks/CardLayout/schema.d.ts +6 -0
  5. package/build/cjs/blocks/Cat/schema.d.ts +3 -0
  6. package/build/cjs/blocks/ContentLayout/ContentLayout.js +2 -3
  7. package/build/cjs/blocks/ContentLayout/schema.d.ts +12 -1
  8. package/build/cjs/blocks/ContentLayout/schema.js +3 -0
  9. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +3 -0
  10. package/build/cjs/blocks/FilterBlock/schema.d.ts +6 -0
  11. package/build/cjs/blocks/FilterCardLayout/schema.d.ts +3 -0
  12. package/build/cjs/blocks/Form/schema.d.ts +3 -0
  13. package/build/cjs/blocks/Header/schema.d.ts +3 -0
  14. package/build/cjs/blocks/HeaderMinify/schema.d.ts +3 -0
  15. package/build/cjs/blocks/HeaderSlider/schema.d.ts +3 -0
  16. package/build/cjs/blocks/HighlightTable/schema.d.ts +3 -0
  17. package/build/cjs/blocks/Icons/schema.d.ts +6 -0
  18. package/build/cjs/blocks/Layout/schema.d.ts +3 -0
  19. package/build/cjs/blocks/Map/schema.d.ts +3 -0
  20. package/build/cjs/blocks/Media/schema.d.ts +6 -0
  21. package/build/cjs/blocks/OnetrustCookieList/schema.d.ts +3 -0
  22. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
  23. package/build/cjs/blocks/Questions/schema.d.ts +3 -0
  24. package/build/cjs/blocks/Scroller/Scroller.css +4 -19
  25. package/build/cjs/blocks/Scroller/Scroller.js +6 -8
  26. package/build/cjs/blocks/Scroller/schema.d.ts +0 -6
  27. package/build/cjs/blocks/Scroller/schema.js +1 -5
  28. package/build/cjs/blocks/SidebarWidget/schema.d.ts +3 -0
  29. package/build/cjs/blocks/Slider/schema.d.ts +3 -0
  30. package/build/cjs/blocks/SliderNew/schema.d.ts +3 -0
  31. package/build/cjs/blocks/TabLinks/schema.d.ts +3 -0
  32. package/build/cjs/blocks/Table/schema.d.ts +3 -0
  33. package/build/cjs/blocks/Tabs/schema.d.ts +3 -0
  34. package/build/cjs/blocks/TabsHighlightTable/schema.d.ts +3 -0
  35. package/build/cjs/blocks/UnicornCards/Item/Item.d.ts +1 -1
  36. package/build/cjs/blocks/UnicornCards/Item/Item.js +3 -3
  37. package/build/cjs/blocks/UnicornCards/UnicornCards.js +2 -2
  38. package/build/cjs/blocks/UnicornCards/schema.d.ts +6 -0
  39. package/build/cjs/blocks/UnicornCards/schema.js +2 -1
  40. package/build/cjs/blocks/WhatsNew/WhatsNew.css +83 -0
  41. package/build/cjs/blocks/WhatsNew/WhatsNew.d.ts +4 -0
  42. package/build/cjs/blocks/WhatsNew/WhatsNew.js +21 -0
  43. package/build/cjs/blocks/WhatsNew/schema.d.ts +365 -0
  44. package/build/cjs/blocks/WhatsNew/schema.js +53 -0
  45. package/build/cjs/blocks/YFM/schema.d.ts +3 -0
  46. package/build/cjs/blocks/index.d.ts +1 -0
  47. package/build/cjs/blocks/index.js +3 -1
  48. package/build/cjs/blocks/validators.d.ts +1 -0
  49. package/build/cjs/blocks/validators.js +1 -0
  50. package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.js +4 -3
  51. package/build/cjs/components/UnicornScene/UnicornScene.d.ts +5 -0
  52. package/build/cjs/components/UnicornScene/UnicornScene.js +12 -0
  53. package/build/cjs/components/index.d.ts +2 -0
  54. package/build/cjs/components/index.js +3 -1
  55. package/build/cjs/constructor-items.d.ts +2 -0
  56. package/build/cjs/constructor-items.js +2 -0
  57. package/build/cjs/models/constructor-items/blocks.d.ts +22 -6
  58. package/build/cjs/models/constructor-items/blocks.js +1 -0
  59. package/build/cjs/models/constructor-items/sub-blocks.d.ts +14 -1
  60. package/build/cjs/models/constructor-items/sub-blocks.js +1 -0
  61. package/build/cjs/schema/constants.d.ts +47 -0
  62. package/build/cjs/schema/constants.js +4 -2
  63. package/build/cjs/schema/validators/blocks.d.ts +1 -0
  64. package/build/cjs/schema/validators/blocks.js +1 -0
  65. package/build/cjs/schema/validators/common.d.ts +3 -0
  66. package/build/cjs/schema/validators/common.js +2 -0
  67. package/build/cjs/schema/validators/sub-blocks.d.ts +1 -0
  68. package/build/cjs/schema/validators/sub-blocks.js +1 -0
  69. package/build/cjs/sub-blocks/ContentLayoutCard/schema.d.ts +9 -0
  70. package/build/cjs/sub-blocks/NewsCard/NewsCard.css +61 -0
  71. package/build/cjs/sub-blocks/NewsCard/NewsCard.d.ts +3 -0
  72. package/build/cjs/sub-blocks/NewsCard/NewsCard.js +16 -0
  73. package/build/cjs/sub-blocks/NewsCard/schema.d.ts +37 -0
  74. package/build/cjs/sub-blocks/NewsCard/schema.js +28 -0
  75. package/build/cjs/sub-blocks/StoryCard/schema.d.ts +3 -0
  76. package/build/cjs/sub-blocks/index.d.ts +1 -0
  77. package/build/cjs/sub-blocks/index.js +3 -1
  78. package/build/esm/blocks/Audio/schema.d.ts +3 -0
  79. package/build/esm/blocks/BannerMinify/schema.d.ts +3 -0
  80. package/build/esm/blocks/Benchmark/schema.d.ts +3 -0
  81. package/build/esm/blocks/CardLayout/schema.d.ts +6 -0
  82. package/build/esm/blocks/Cat/schema.d.ts +3 -0
  83. package/build/esm/blocks/ContentLayout/ContentLayout.js +3 -4
  84. package/build/esm/blocks/ContentLayout/schema.d.ts +12 -1
  85. package/build/esm/blocks/ContentLayout/schema.js +3 -0
  86. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +3 -0
  87. package/build/esm/blocks/FilterBlock/schema.d.ts +6 -0
  88. package/build/esm/blocks/FilterCardLayout/schema.d.ts +3 -0
  89. package/build/esm/blocks/Form/schema.d.ts +3 -0
  90. package/build/esm/blocks/Header/schema.d.ts +3 -0
  91. package/build/esm/blocks/HeaderMinify/schema.d.ts +3 -0
  92. package/build/esm/blocks/HeaderSlider/schema.d.ts +3 -0
  93. package/build/esm/blocks/HighlightTable/schema.d.ts +3 -0
  94. package/build/esm/blocks/Icons/schema.d.ts +6 -0
  95. package/build/esm/blocks/Layout/schema.d.ts +3 -0
  96. package/build/esm/blocks/Map/schema.d.ts +3 -0
  97. package/build/esm/blocks/Media/schema.d.ts +6 -0
  98. package/build/esm/blocks/OnetrustCookieList/schema.d.ts +3 -0
  99. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
  100. package/build/esm/blocks/Questions/schema.d.ts +3 -0
  101. package/build/esm/blocks/Scroller/Scroller.css +4 -19
  102. package/build/esm/blocks/Scroller/Scroller.js +6 -8
  103. package/build/esm/blocks/Scroller/schema.d.ts +0 -6
  104. package/build/esm/blocks/Scroller/schema.js +1 -5
  105. package/build/esm/blocks/SidebarWidget/schema.d.ts +3 -0
  106. package/build/esm/blocks/Slider/schema.d.ts +3 -0
  107. package/build/esm/blocks/SliderNew/schema.d.ts +3 -0
  108. package/build/esm/blocks/TabLinks/schema.d.ts +3 -0
  109. package/build/esm/blocks/Table/schema.d.ts +3 -0
  110. package/build/esm/blocks/Tabs/schema.d.ts +3 -0
  111. package/build/esm/blocks/TabsHighlightTable/schema.d.ts +3 -0
  112. package/build/esm/blocks/UnicornCards/Item/Item.d.ts +1 -1
  113. package/build/esm/blocks/UnicornCards/Item/Item.js +3 -3
  114. package/build/esm/blocks/UnicornCards/UnicornCards.js +2 -2
  115. package/build/esm/blocks/UnicornCards/schema.d.ts +6 -0
  116. package/build/esm/blocks/UnicornCards/schema.js +2 -1
  117. package/build/esm/blocks/WhatsNew/WhatsNew.css +83 -0
  118. package/build/esm/blocks/WhatsNew/WhatsNew.d.ts +5 -0
  119. package/build/esm/blocks/WhatsNew/WhatsNew.js +19 -0
  120. package/build/esm/blocks/WhatsNew/schema.d.ts +365 -0
  121. package/build/esm/blocks/WhatsNew/schema.js +50 -0
  122. package/build/esm/blocks/YFM/schema.d.ts +3 -0
  123. package/build/esm/blocks/index.d.ts +1 -0
  124. package/build/esm/blocks/index.js +1 -0
  125. package/build/esm/blocks/validators.d.ts +1 -0
  126. package/build/esm/blocks/validators.js +1 -0
  127. package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.js +4 -3
  128. package/build/esm/components/UnicornScene/UnicornScene.d.ts +5 -0
  129. package/build/esm/components/UnicornScene/UnicornScene.js +9 -0
  130. package/build/esm/components/index.d.ts +2 -0
  131. package/build/esm/components/index.js +1 -0
  132. package/build/esm/constructor-items.d.ts +2 -0
  133. package/build/esm/constructor-items.js +4 -2
  134. package/build/esm/models/constructor-items/blocks.d.ts +22 -6
  135. package/build/esm/models/constructor-items/blocks.js +1 -0
  136. package/build/esm/models/constructor-items/sub-blocks.d.ts +14 -1
  137. package/build/esm/models/constructor-items/sub-blocks.js +1 -0
  138. package/build/esm/schema/constants.d.ts +47 -0
  139. package/build/esm/schema/constants.js +6 -4
  140. package/build/esm/schema/validators/blocks.d.ts +1 -0
  141. package/build/esm/schema/validators/blocks.js +1 -0
  142. package/build/esm/schema/validators/common.d.ts +3 -0
  143. package/build/esm/schema/validators/common.js +2 -0
  144. package/build/esm/schema/validators/sub-blocks.d.ts +1 -0
  145. package/build/esm/schema/validators/sub-blocks.js +1 -0
  146. package/build/esm/sub-blocks/ContentLayoutCard/schema.d.ts +9 -0
  147. package/build/esm/sub-blocks/NewsCard/NewsCard.css +61 -0
  148. package/build/esm/sub-blocks/NewsCard/NewsCard.d.ts +4 -0
  149. package/build/esm/sub-blocks/NewsCard/NewsCard.js +14 -0
  150. package/build/esm/sub-blocks/NewsCard/schema.d.ts +37 -0
  151. package/build/esm/sub-blocks/NewsCard/schema.js +25 -0
  152. package/build/esm/sub-blocks/StoryCard/schema.d.ts +3 -0
  153. package/build/esm/sub-blocks/index.d.ts +1 -0
  154. package/build/esm/sub-blocks/index.js +1 -0
  155. package/package.json +2 -2
  156. package/schema/index.js +1 -1
  157. package/server/models/constructor-items/blocks.d.ts +22 -6
  158. package/server/models/constructor-items/blocks.js +1 -0
  159. package/server/models/constructor-items/sub-blocks.d.ts +14 -1
  160. package/server/models/constructor-items/sub-blocks.js +1 -0
  161. package/widget/index.js +1 -1
@@ -99,6 +99,9 @@ export declare const AudioBlock: {
99
99
  blockUnicorn: {
100
100
  type: string;
101
101
  };
102
+ blockUnicornSdkUrl: {
103
+ type: string;
104
+ };
102
105
  blockBackground: {
103
106
  oneOf: ({
104
107
  type: string;
@@ -127,6 +127,9 @@ export declare const BannerMinifyBlock: {
127
127
  blockUnicorn: {
128
128
  type: string;
129
129
  };
130
+ blockUnicornSdkUrl: {
131
+ type: string;
132
+ };
130
133
  blockBackground: {
131
134
  oneOf: ({
132
135
  type: string;
@@ -129,6 +129,9 @@ export declare const BenchmarkBlock: {
129
129
  blockUnicorn: {
130
130
  type: string;
131
131
  };
132
+ blockUnicornSdkUrl: {
133
+ type: string;
134
+ };
132
135
  blockBackground: {
133
136
  oneOf: ({
134
137
  type: string;
@@ -371,6 +371,9 @@ export declare const CardLayoutProps: {
371
371
  blockUnicorn: {
372
372
  type: string;
373
373
  };
374
+ blockUnicornSdkUrl: {
375
+ type: string;
376
+ };
374
377
  blockBackground: {
375
378
  oneOf: ({
376
379
  type: string;
@@ -794,6 +797,9 @@ export declare const CardLayoutBlock: {
794
797
  blockUnicorn: {
795
798
  type: string;
796
799
  };
800
+ blockUnicornSdkUrl: {
801
+ type: string;
802
+ };
797
803
  blockBackground: {
798
804
  oneOf: ({
799
805
  type: string;
@@ -105,6 +105,9 @@ export declare const CatBlock: {
105
105
  blockUnicorn: {
106
106
  type: string;
107
107
  };
108
+ blockUnicornSdkUrl: {
109
+ type: string;
110
+ };
108
111
  blockBackground: {
109
112
  oneOf: ({
110
113
  type: string;
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ContentLayoutBlock = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importStar(require("react"));
6
- const unicornstudio_react_1 = tslib_1.__importDefault(require("unicornstudio-react"));
7
6
  const components_1 = require("../../components");
8
7
  const mobileContext_1 = require("../../context/mobileContext");
9
8
  const theme_1 = require("../../context/theme");
@@ -33,7 +32,7 @@ function getTextWidth(size) {
33
32
  }
34
33
  const ContentLayoutBlock = (props) => {
35
34
  const isMobile = (0, react_1.useContext)(mobileContext_1.MobileContext);
36
- const { animated, textContent, fileContent, tags, size = 'l', background, unicorn, centered, theme = 'default', textWidth = 'm', } = props;
35
+ const { animated, textContent, fileContent, tags, size = 'l', background, unicorn, unicornSdkUrl, centered, theme = 'default', textWidth = 'm', } = props;
37
36
  const colSizes = (0, react_1.useMemo)(() => getTextWidth(textWidth), [textWidth]);
38
37
  const globalTheme = (0, theme_1.useTheme)();
39
38
  const themedBackground = (0, utils_1.getThemedValue)(background, globalTheme);
@@ -45,7 +44,7 @@ const ContentLayoutBlock = (props) => {
45
44
  background && (react_1.default.createElement("div", { className: b('background') },
46
45
  react_1.default.createElement(components_1.BackgroundImage, Object.assign({ className: b('background-item') }, themedBackground, { hide: isMobile })))),
47
46
  unicorn && (react_1.default.createElement("div", { className: b('background') },
48
- react_1.default.createElement(unicornstudio_react_1.default, { className: b('background-item'), jsonFilePath: unicorn, width: "100%" }))))));
47
+ react_1.default.createElement(components_1.UnicornScene, { className: b('background-item'), jsonFilePath: unicorn, sdkUrl: unicornSdkUrl, width: "100%" }))))));
49
48
  };
50
49
  exports.ContentLayoutBlock = ContentLayoutBlock;
51
50
  exports.default = exports.ContentLayoutBlock;
@@ -90,6 +90,9 @@ export declare const ContentLayoutBlock: {
90
90
  unicorn: {
91
91
  type: string;
92
92
  };
93
+ unicornSdkUrl: {
94
+ type: string;
95
+ };
93
96
  centered: {
94
97
  type: string;
95
98
  };
@@ -283,7 +286,9 @@ export declare const ContentLayoutBlock: {
283
286
  contentType: string;
284
287
  };
285
288
  size: {
286
- type: string;
289
+ type: string; /**
290
+ * @deprecated Use params on top level instead
291
+ */
287
292
  enum: string[];
288
293
  };
289
294
  links: {
@@ -446,6 +451,9 @@ export declare const ContentLayoutBlock: {
446
451
  unicorn: {
447
452
  type: string;
448
453
  };
454
+ unicornSdkUrl: {
455
+ type: string;
456
+ };
449
457
  centered: {
450
458
  type: string;
451
459
  };
@@ -559,6 +567,9 @@ export declare const ContentLayoutBlock: {
559
567
  blockUnicorn: {
560
568
  type: string;
561
569
  };
570
+ blockUnicornSdkUrl: {
571
+ type: string;
572
+ };
562
573
  blockBackground: {
563
574
  oneOf: ({
564
575
  type: string;
@@ -14,6 +14,9 @@ const ContentLayoutBlockProperties = {
14
14
  unicorn: {
15
15
  type: 'string',
16
16
  },
17
+ unicornSdkUrl: {
18
+ type: 'string',
19
+ },
17
20
  centered: {
18
21
  type: 'boolean',
19
22
  },
@@ -464,6 +464,9 @@ export declare const ExtendedFeaturesBlock: {
464
464
  blockUnicorn: {
465
465
  type: string;
466
466
  };
467
+ blockUnicornSdkUrl: {
468
+ type: string;
469
+ };
467
470
  blockBackground: {
468
471
  oneOf: ({
469
472
  type: string;
@@ -323,6 +323,9 @@ export declare const FilterProps: {
323
323
  blockUnicorn: {
324
324
  type: string;
325
325
  };
326
+ blockUnicornSdkUrl: {
327
+ type: string;
328
+ };
326
329
  blockBackground: {
327
330
  oneOf: ({
328
331
  type: string;
@@ -671,6 +674,9 @@ export declare const FilterBlock: {
671
674
  blockUnicorn: {
672
675
  type: string;
673
676
  };
677
+ blockUnicornSdkUrl: {
678
+ type: string;
679
+ };
674
680
  blockBackground: {
675
681
  oneOf: ({
676
682
  type: string;
@@ -292,6 +292,9 @@ export declare const FilterCardLayoutBlock: {
292
292
  blockUnicorn: {
293
293
  type: string;
294
294
  };
295
+ blockUnicornSdkUrl: {
296
+ type: string;
297
+ };
295
298
  blockBackground: {
296
299
  oneOf: ({
297
300
  type: string;
@@ -766,6 +766,9 @@ export declare const FormBlock: {
766
766
  blockUnicorn: {
767
767
  type: string;
768
768
  };
769
+ blockUnicornSdkUrl: {
770
+ type: string;
771
+ };
769
772
  blockBackground: {
770
773
  oneOf: ({
771
774
  type: string;
@@ -1820,6 +1820,9 @@ export declare const HeaderBlock: {
1820
1820
  blockUnicorn: {
1821
1821
  type: string;
1822
1822
  };
1823
+ blockUnicornSdkUrl: {
1824
+ type: string;
1825
+ };
1823
1826
  blockBackground: {
1824
1827
  oneOf: ({
1825
1828
  type: string;
@@ -165,6 +165,9 @@ export declare const HeaderMinifyBlock: {
165
165
  blockUnicorn: {
166
166
  type: string;
167
167
  };
168
+ blockUnicornSdkUrl: {
169
+ type: string;
170
+ };
168
171
  blockBackground: {
169
172
  oneOf: ({
170
173
  type: string;
@@ -855,6 +855,9 @@ export declare const HeaderSliderBlock: {
855
855
  blockUnicorn: {
856
856
  type: string;
857
857
  };
858
+ blockUnicornSdkUrl: {
859
+ type: string;
860
+ };
858
861
  blockBackground: {
859
862
  oneOf: ({
860
863
  type: string;
@@ -286,6 +286,9 @@ export declare const HighlightTableBlock: {
286
286
  blockUnicorn: {
287
287
  type: string;
288
288
  };
289
+ blockUnicornSdkUrl: {
290
+ type: string;
291
+ };
289
292
  blockBackground: {
290
293
  oneOf: ({
291
294
  type: string;
@@ -368,6 +368,9 @@ export declare const IconsProps: {
368
368
  blockUnicorn: {
369
369
  type: string;
370
370
  };
371
+ blockUnicornSdkUrl: {
372
+ type: string;
373
+ };
371
374
  blockBackground: {
372
375
  oneOf: ({
373
376
  type: string;
@@ -788,6 +791,9 @@ export declare const IconsBlock: {
788
791
  blockUnicorn: {
789
792
  type: string;
790
793
  };
794
+ blockUnicornSdkUrl: {
795
+ type: string;
796
+ };
791
797
  blockBackground: {
792
798
  oneOf: ({
793
799
  type: string;
@@ -109,6 +109,9 @@ export declare const LayoutBlock: {
109
109
  blockUnicorn: {
110
110
  type: string;
111
111
  };
112
+ blockUnicornSdkUrl: {
113
+ type: string;
114
+ };
112
115
  blockBackground: {
113
116
  oneOf: ({
114
117
  type: string;
@@ -611,6 +611,9 @@ export declare const MapBlock: {
611
611
  blockUnicorn: {
612
612
  type: string;
613
613
  };
614
+ blockUnicornSdkUrl: {
615
+ type: string;
616
+ };
614
617
  blockBackground: {
615
618
  oneOf: ({
616
619
  type: string;
@@ -814,6 +814,9 @@ export declare const MediaBlockBaseProps: {
814
814
  blockUnicorn: {
815
815
  type: string;
816
816
  };
817
+ blockUnicornSdkUrl: {
818
+ type: string;
819
+ };
817
820
  blockBackground: {
818
821
  oneOf: ({
819
822
  type: string;
@@ -1692,6 +1695,9 @@ export declare const MediaBlock: {
1692
1695
  blockUnicorn: {
1693
1696
  type: string;
1694
1697
  };
1698
+ blockUnicornSdkUrl: {
1699
+ type: string;
1700
+ };
1695
1701
  blockBackground: {
1696
1702
  oneOf: ({
1697
1703
  type: string;
@@ -95,6 +95,9 @@ export declare const OnetrustCookieListBlock: {
95
95
  blockUnicorn: {
96
96
  type: string;
97
97
  };
98
+ blockUnicornSdkUrl: {
99
+ type: string;
100
+ };
98
101
  blockBackground: {
99
102
  oneOf: ({
100
103
  type: string;
@@ -599,6 +599,9 @@ export declare const PromoFeaturesBlock: {
599
599
  blockUnicorn: {
600
600
  type: string;
601
601
  };
602
+ blockUnicornSdkUrl: {
603
+ type: string;
604
+ };
602
605
  blockBackground: {
603
606
  oneOf: ({
604
607
  type: string;
@@ -328,6 +328,9 @@ export declare const QuestionsBlock: {
328
328
  blockUnicorn: {
329
329
  type: string;
330
330
  };
331
+ blockUnicornSdkUrl: {
332
+ type: string;
333
+ };
331
334
  blockBackground: {
332
335
  oneOf: ({
333
336
  type: string;
@@ -13,36 +13,21 @@ unpredictable css rules order in build */
13
13
  transition-delay: 0s;
14
14
  }
15
15
  }
16
- .pc-scroller-block__header {
17
- margin-bottom: 72px;
18
- }
19
- .pc-scroller-block__title {
20
- color: #001a2b;
21
- font-size: 48px;
22
- line-height: 52px;
23
- font-weight: 600;
24
- text-align: center;
25
- }
26
- .pc-scroller-block__text {
27
- color: #001a2b;
28
- margin-top: 16px;
29
- font-size: 24px;
30
- line-height: 28px;
31
- text-align: center;
32
- }
33
16
  .pc-scroller-block__content {
34
17
  position: relative;
35
18
  gap: 16px;
36
19
  display: flex;
37
20
  flex-wrap: nowrap;
38
- width: 100vw;
39
- overflow: scroll;
21
+ overflow-x: auto;
40
22
  -webkit-overflow-scrolling: touch;
41
23
  scrollbar-width: none;
42
24
  }
43
25
  .pc-scroller-block__content::-webkit-scrollbar {
44
26
  display: none;
45
27
  }
28
+ .pc-scroller-block__content_fullWidth {
29
+ width: 100vw;
30
+ }
46
31
  .pc-scroller-block__content_gapLong {
47
32
  gap: 48px;
48
33
  }
@@ -7,16 +7,17 @@ const components_1 = require("../../components");
7
7
  const utils_1 = require("../../utils");
8
8
  const b = (0, utils_1.block)('scroller-block');
9
9
  const ScrollerBlock = (props) => {
10
- const { animated, title, text, widths, gapLong, children } = props;
10
+ const { animated, widths, gapLong, fullWidth, children } = props;
11
11
  const rootRef = (0, react_1.useRef)(null);
12
12
  const contentRef = (0, react_1.useRef)(null);
13
13
  (0, react_1.useEffect)(() => {
14
14
  const updateSize = () => {
15
- if (contentRef.current && rootRef.current) {
15
+ if (contentRef.current && rootRef.current && fullWidth) {
16
16
  const space = (window.innerWidth - rootRef.current.clientWidth) / 2;
17
17
  contentRef.current.style.setProperty('padding-left', `${space}px`);
18
18
  contentRef.current.style.setProperty('padding-right', `${space}px`);
19
19
  contentRef.current.style.setProperty('left', `${-space}px`);
20
+ contentRef.current.style.setProperty('width', `calc(100% + ${2 * space}px)`);
20
21
  }
21
22
  };
22
23
  updateSize();
@@ -24,13 +25,10 @@ const ScrollerBlock = (props) => {
24
25
  return () => {
25
26
  window.removeEventListener('resize', updateSize);
26
27
  };
27
- }, []);
28
- return (react_1.default.createElement(components_1.AnimateBlock, { className: b(), animate: animated },
28
+ }, [fullWidth]);
29
+ return (react_1.default.createElement(components_1.AnimateBlock, { className: b({ fullWidth }), animate: animated },
29
30
  react_1.default.createElement("div", { className: b('root'), ref: rootRef },
30
- (title || text) && (react_1.default.createElement("div", { className: b('header') },
31
- title && react_1.default.createElement("div", { className: b('title') }, title),
32
- text && react_1.default.createElement("div", { className: b('text') }, text))),
33
- react_1.default.createElement("div", { className: b('content', { gapLong }), ref: contentRef }, react_1.default.Children.map(children, (child, index) => (react_1.default.createElement("div", { key: index, className: b('item'), style: { width: (widths === null || widths === void 0 ? void 0 : widths[index]) || '100%' } }, child)))))));
31
+ react_1.default.createElement("div", { className: b('content', { gapLong, fullWidth }), ref: contentRef }, react_1.default.Children.map(children, (child, index) => (react_1.default.createElement("div", { key: index, className: b('item'), style: { width: (widths === null || widths === void 0 ? void 0 : widths[index]) || 'auto' } }, child)))))));
34
32
  };
35
33
  exports.ScrollerBlock = ScrollerBlock;
36
34
  exports.default = exports.ScrollerBlock;
@@ -3,12 +3,6 @@ export declare const ScrollerBlock: {
3
3
  additionalProperties: boolean;
4
4
  required: boolean;
5
5
  properties: {
6
- title: {
7
- type: string;
8
- };
9
- text: {
10
- type: string;
11
- };
12
6
  widths: {
13
7
  type: string;
14
8
  items: {
@@ -6,11 +6,7 @@ exports.ScrollerBlock = {
6
6
  'scroller-block': {
7
7
  additionalProperties: false,
8
8
  required: false,
9
- properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { title: {
10
- type: 'string',
11
- }, text: {
12
- type: 'string',
13
- }, widths: {
9
+ properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { widths: {
14
10
  type: 'array',
15
11
  items: {
16
12
  type: 'string',
@@ -110,6 +110,9 @@ export declare const SidebarWidgetBlock: {
110
110
  blockUnicorn: {
111
111
  type: string;
112
112
  };
113
+ blockUnicornSdkUrl: {
114
+ type: string;
115
+ };
113
116
  blockBackground: {
114
117
  oneOf: ({
115
118
  type: string;
@@ -410,6 +410,9 @@ export declare const SliderBlock: {
410
410
  blockUnicorn: {
411
411
  type: string;
412
412
  };
413
+ blockUnicornSdkUrl: {
414
+ type: string;
415
+ };
413
416
  blockBackground: {
414
417
  oneOf: ({
415
418
  type: string;
@@ -446,6 +446,9 @@ export declare const SliderNewBlock: {
446
446
  blockUnicorn: {
447
447
  type: string;
448
448
  };
449
+ blockUnicornSdkUrl: {
450
+ type: string;
451
+ };
449
452
  blockBackground: {
450
453
  oneOf: ({
451
454
  type: string;
@@ -280,6 +280,9 @@ export declare const TabLinksBlock: {
280
280
  blockUnicorn: {
281
281
  type: string;
282
282
  };
283
+ blockUnicornSdkUrl: {
284
+ type: string;
285
+ };
283
286
  blockBackground: {
284
287
  oneOf: ({
285
288
  type: string;
@@ -178,6 +178,9 @@ export declare const TableBlock: {
178
178
  blockUnicorn: {
179
179
  type: string;
180
180
  };
181
+ blockUnicornSdkUrl: {
182
+ type: string;
183
+ };
181
184
  blockBackground: {
182
185
  oneOf: ({
183
186
  type: string;
@@ -994,6 +994,9 @@ export declare const TabsBlock: {
994
994
  blockUnicorn: {
995
995
  type: string;
996
996
  };
997
+ blockUnicornSdkUrl: {
998
+ type: string;
999
+ };
997
1000
  blockBackground: {
998
1001
  oneOf: ({
999
1002
  type: string;
@@ -269,6 +269,9 @@ export declare const TabsHighlightTableBlock: {
269
269
  blockUnicorn: {
270
270
  type: string;
271
271
  };
272
+ blockUnicornSdkUrl: {
273
+ type: string;
274
+ };
272
275
  blockBackground: {
273
276
  oneOf: ({
274
277
  type: string;
@@ -1,3 +1,3 @@
1
1
  import { UnicornCardsItemProps } from '../../../models';
2
- export declare const Item: ({ title, text, unicorn }: UnicornCardsItemProps) => JSX.Element;
2
+ export declare const Item: ({ title, text, unicorn, unicornSdkUrl }: UnicornCardsItemProps) => JSX.Element;
3
3
  export default Item;
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Item = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
- const unicornstudio_react_1 = tslib_1.__importDefault(require("unicornstudio-react"));
6
+ const components_1 = require("../../../components");
7
7
  const utils_1 = require("../../../utils");
8
8
  const b = (0, utils_1.block)('unicorn-cards-item');
9
- const Item = ({ title, text, unicorn }) => {
9
+ const Item = ({ title, text, unicorn, unicornSdkUrl }) => {
10
10
  return (react_1.default.createElement("div", { className: b() },
11
11
  title && react_1.default.createElement("div", { className: b('title') }, title),
12
12
  text && react_1.default.createElement("div", { className: b('text') }, text),
13
13
  unicorn && (react_1.default.createElement("div", { className: b('background') },
14
- react_1.default.createElement(unicornstudio_react_1.default, { className: b('background-item'), jsonFilePath: unicorn, width: "100%" })))));
14
+ react_1.default.createElement(components_1.UnicornScene, { className: b('background-item'), jsonFilePath: unicorn, sdkUrl: unicornSdkUrl, width: "100%" })))));
15
15
  };
16
16
  exports.Item = Item;
17
17
  exports.default = exports.Item;
@@ -11,7 +11,7 @@ const Item_1 = tslib_1.__importDefault(require("./Item/Item"));
11
11
  const b = (0, utils_1.block)('unicorn-cards-block');
12
12
  const colSizes = { all: 12, xl: 3, lg: 4, md: 6 };
13
13
  const UnicornCardsBlock = (props) => {
14
- const { animated, title, items } = props;
14
+ const { animated, title, items, unicornSdkUrl } = props;
15
15
  const titleProps = !title || typeof title === 'string'
16
16
  ? { text: title, textSize: 'l' }
17
17
  : title;
@@ -21,7 +21,7 @@ const UnicornCardsBlock = (props) => {
21
21
  hasTitle && (react_1.default.createElement(components_1.Title, { title: titleProps, className: b('title'), colSizes: { all: 12 } })),
22
22
  react_1.default.createElement(grid_1.Grid, null,
23
23
  react_1.default.createElement(grid_1.Row, { className: b('items') }, items === null || items === void 0 ? void 0 : items.map((item, index) => (react_1.default.createElement(grid_1.Col, { key: index, sizes: colSizes },
24
- react_1.default.createElement(Item_1.default, Object.assign({}, item))))))))));
24
+ react_1.default.createElement(Item_1.default, Object.assign({ unicornSdkUrl: unicornSdkUrl }, item))))))))));
25
25
  };
26
26
  exports.UnicornCardsBlock = UnicornCardsBlock;
27
27
  exports.default = exports.UnicornCardsBlock;
@@ -159,6 +159,9 @@ export declare const UnicornCardsBlock: {
159
159
  contentType?: undefined;
160
160
  })[];
161
161
  };
162
+ unicornSdkUrl: {
163
+ type: string;
164
+ };
162
165
  items: {
163
166
  type: string;
164
167
  items: {
@@ -175,6 +178,9 @@ export declare const UnicornCardsBlock: {
175
178
  unicorn: {
176
179
  type: string;
177
180
  };
181
+ unicornSdkUrl: {
182
+ type: string;
183
+ };
178
184
  };
179
185
  };
180
186
  };
@@ -15,7 +15,7 @@ exports.UnicornCardsBlock = {
15
15
  },
16
16
  Object.assign(Object.assign({}, common_1.TitleProps), { optionName: 'options' }),
17
17
  ],
18
- }, items: {
18
+ }, unicornSdkUrl: { type: 'string' }, items: {
19
19
  type: 'array',
20
20
  items: {
21
21
  type: 'object',
@@ -25,6 +25,7 @@ exports.UnicornCardsBlock = {
25
25
  title: { type: 'string' },
26
26
  text: { type: 'string' },
27
27
  unicorn: { type: 'string' },
28
+ unicornSdkUrl: { type: 'string' },
28
29
  },
29
30
  },
30
31
  } }),