@gravity-ui/page-constructor 1.13.0-alpha.0 → 1.14.0-alpha.0
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/CHANGELOG.md +21 -1
- package/build/cjs/blocks/Banner/schema.d.ts +279 -99
- package/build/cjs/blocks/Media/schema.d.ts +93 -33
- package/build/cjs/blocks/Slider/Slider.d.ts +1 -6
- package/build/cjs/components/Author/Author.js +2 -2
- package/build/cjs/components/Author/__tests__/Author.test.d.ts +1 -0
- package/build/cjs/components/Author/__tests__/Author.test.js +49 -0
- package/build/cjs/components/Button/Button.js +6 -3
- package/build/cjs/components/CardBase/CardBase.d.ts +3 -2
- package/build/cjs/components/CardBase/CardBase.js +5 -2
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +5 -2
- package/build/cjs/components/Link/Link.js +5 -2
- package/build/cjs/components/YandexForm/YandexForm.d.ts +2 -0
- package/build/cjs/components/YandexForm/YandexForm.js +13 -2
- package/build/cjs/context/analyticsContext/analyticsContext.d.ts +6 -0
- package/build/cjs/context/analyticsContext/analyticsContext.js +6 -0
- package/build/cjs/context/analyticsContext/index.d.ts +1 -0
- package/build/cjs/context/analyticsContext/index.js +4 -0
- package/build/cjs/context/metrikaContext/metrikaContext.d.ts +7 -2
- package/build/cjs/grid/Grid/Grid.css +16 -16
- package/build/cjs/hooks/useAnalytics.d.ts +2 -0
- package/build/cjs/hooks/useAnalytics.js +15 -0
- package/build/cjs/hooks/useMetrika.d.ts +8 -3
- package/build/cjs/hooks/useMetrika.js +10 -10
- package/build/cjs/models/common.d.ts +31 -4
- package/build/cjs/models/common.js +3 -0
- package/build/cjs/models/constructor-items/common.d.ts +5 -22
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -1
- package/build/cjs/schema/validators/common.d.ts +198 -66
- package/build/cjs/schema/validators/common.js +10 -2
- package/build/cjs/schema/validators/event.d.ts +50 -0
- package/build/cjs/schema/validators/event.js +53 -0
- package/build/cjs/sub-blocks/HubspotForm/index.js +14 -2
- package/build/esm/blocks/Banner/schema.d.ts +279 -99
- package/build/esm/blocks/Media/schema.d.ts +93 -33
- package/build/esm/blocks/Slider/Slider.d.ts +1 -6
- package/build/esm/components/Author/Author.js +2 -2
- package/build/esm/components/Author/__tests__/Author.test.d.ts +1 -0
- package/build/esm/components/Author/__tests__/Author.test.js +46 -0
- package/build/esm/components/Button/Button.js +6 -3
- package/build/esm/components/CardBase/CardBase.d.ts +3 -2
- package/build/esm/components/CardBase/CardBase.js +5 -2
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +5 -2
- package/build/esm/components/Link/Link.js +5 -2
- package/build/esm/components/YandexForm/YandexForm.d.ts +2 -0
- package/build/esm/components/YandexForm/YandexForm.js +13 -2
- package/build/esm/context/analyticsContext/analyticsContext.d.ts +6 -0
- package/build/esm/context/analyticsContext/analyticsContext.js +2 -0
- package/build/esm/context/analyticsContext/index.d.ts +1 -0
- package/build/esm/context/analyticsContext/index.js +1 -0
- package/build/esm/context/metrikaContext/metrikaContext.d.ts +7 -2
- package/build/esm/grid/Grid/Grid.css +16 -16
- package/build/esm/hooks/useAnalytics.d.ts +2 -0
- package/build/esm/hooks/useAnalytics.js +11 -0
- package/build/esm/hooks/useMetrika.d.ts +8 -3
- package/build/esm/hooks/useMetrika.js +10 -10
- package/build/esm/models/common.d.ts +31 -4
- package/build/esm/models/common.js +3 -0
- package/build/esm/models/constructor-items/common.d.ts +5 -22
- package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -1
- package/build/esm/schema/validators/common.d.ts +198 -66
- package/build/esm/schema/validators/common.js +10 -2
- package/build/esm/schema/validators/event.d.ts +50 -0
- package/build/esm/schema/validators/event.js +50 -0
- package/build/esm/sub-blocks/HubspotForm/index.js +14 -2
- package/package.json +2 -3
- package/server/models/common.d.ts +31 -4
- package/server/models/common.js +3 -0
- package/server/models/constructor-items/common.d.ts +5 -22
- package/server/models/constructor-items/sub-blocks.d.ts +2 -1
- package/build/cjs/schema/validators/ga-events.d.ts +0 -47
- package/build/cjs/schema/validators/ga-events.js +0 -50
- package/build/esm/schema/validators/ga-events.d.ts +0 -47
- package/build/esm/schema/validators/ga-events.js +0 -47
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.13.0](https://github.com/gravity-ui/page-constructor/compare/v1.12.1...v1.13.0) (2023-01-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* remove matchMedia artefact ([#114](https://github.com/gravity-ui/page-constructor/issues/114)) ([8ff3117](https://github.com/gravity-ui/page-constructor/commit/8ff3117261f9681f0dbb452c3c722ee80845da80))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* delete unused dependency ([#112](https://github.com/gravity-ui/page-constructor/issues/112)) ([300085c](https://github.com/gravity-ui/page-constructor/commit/300085c456877ef617f4225a603fcc3d52393848))
|
|
14
|
+
|
|
15
|
+
## [1.12.1](https://github.com/gravity-ui/page-constructor/compare/v1.12.0...v1.12.1) (2023-01-11)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **BlockHeader:** add yfm to description, change styles ([#105](https://github.com/gravity-ui/page-constructor/issues/105)) ([f77fc5e](https://github.com/gravity-ui/page-constructor/commit/f77fc5e82f7aaf33dda8f56a9f17a87d61cc5cdd))
|
|
21
|
+
* contentBase import ([#109](https://github.com/gravity-ui/page-constructor/issues/109)) ([2136f7b](https://github.com/gravity-ui/page-constructor/commit/2136f7bbe340c6035c655ff5139ae69ee1b50d3e))
|
|
22
|
+
|
|
3
23
|
## [1.12.0](https://github.com/gravity-ui/page-constructor/compare/v1.11.1...v1.12.0) (2023-01-10)
|
|
4
24
|
|
|
5
25
|
|
|
@@ -534,7 +554,7 @@ In the `Content`, if the `text` block has no `title`, the `margin-top` property
|
|
|
534
554
|
### Breaking changes
|
|
535
555
|
|
|
536
556
|
- `PageConstructorProvider` is now a separate component. For the `PageConstructor` to run properly, wrap it in this provider.
|
|
537
|
-
For details, see the [readme](https://github.
|
|
557
|
+
For details, see the [readme](https://github.com/gravity-ui/page-constructor#getting-started) file.
|
|
538
558
|
|
|
539
559
|
- Deleted the `system` theme (the `light` theme is used instead by default).
|
|
540
560
|
|
|
@@ -173,52 +173,112 @@ export declare const BannerCardProps: {
|
|
|
173
173
|
};
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
type: string;
|
|
191
|
-
};
|
|
192
|
-
value: {
|
|
193
|
-
type: string;
|
|
194
|
-
};
|
|
195
|
-
groups: {
|
|
196
|
-
oneOf: ({
|
|
176
|
+
events: {
|
|
177
|
+
anyOf: ({
|
|
178
|
+
type: {
|
|
179
|
+
type: string;
|
|
180
|
+
additionalProperties: boolean;
|
|
181
|
+
required: string[];
|
|
182
|
+
properties: {
|
|
183
|
+
name: {
|
|
184
|
+
type: string;
|
|
185
|
+
};
|
|
186
|
+
type: {
|
|
187
|
+
type: string;
|
|
188
|
+
};
|
|
189
|
+
counters: {
|
|
197
190
|
type: string;
|
|
198
|
-
|
|
199
|
-
|
|
191
|
+
additionalProperties: boolean;
|
|
192
|
+
required: never[];
|
|
193
|
+
properties: {
|
|
194
|
+
include: {
|
|
195
|
+
type: string;
|
|
196
|
+
items: string;
|
|
197
|
+
};
|
|
198
|
+
exclude: {
|
|
199
|
+
type: string;
|
|
200
|
+
items: string;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
category: {
|
|
205
|
+
type: string;
|
|
206
|
+
};
|
|
207
|
+
label: {
|
|
208
|
+
type: string;
|
|
209
|
+
};
|
|
210
|
+
params: {
|
|
200
211
|
type: string;
|
|
201
212
|
items: {
|
|
202
213
|
type: string;
|
|
214
|
+
additionalProperties: boolean;
|
|
215
|
+
required: string[];
|
|
216
|
+
properties: {
|
|
217
|
+
key: {
|
|
218
|
+
type: string;
|
|
219
|
+
};
|
|
220
|
+
value: {
|
|
221
|
+
type: string;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
203
224
|
};
|
|
204
|
-
}
|
|
225
|
+
};
|
|
205
226
|
};
|
|
206
|
-
|
|
207
|
-
|
|
227
|
+
};
|
|
228
|
+
items?: undefined;
|
|
229
|
+
} | {
|
|
230
|
+
type: string;
|
|
231
|
+
items: {
|
|
232
|
+
type: string;
|
|
233
|
+
additionalProperties: boolean;
|
|
234
|
+
required: string[];
|
|
235
|
+
properties: {
|
|
236
|
+
name: {
|
|
237
|
+
type: string;
|
|
238
|
+
};
|
|
239
|
+
type: {
|
|
240
|
+
type: string;
|
|
241
|
+
};
|
|
242
|
+
counters: {
|
|
243
|
+
type: string;
|
|
244
|
+
additionalProperties: boolean;
|
|
245
|
+
required: never[];
|
|
246
|
+
properties: {
|
|
247
|
+
include: {
|
|
248
|
+
type: string;
|
|
249
|
+
items: string;
|
|
250
|
+
};
|
|
251
|
+
exclude: {
|
|
252
|
+
type: string;
|
|
253
|
+
items: string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
category: {
|
|
258
|
+
type: string;
|
|
259
|
+
};
|
|
260
|
+
label: {
|
|
208
261
|
type: string;
|
|
209
|
-
|
|
210
|
-
|
|
262
|
+
};
|
|
263
|
+
params: {
|
|
211
264
|
type: string;
|
|
212
265
|
items: {
|
|
213
266
|
type: string;
|
|
267
|
+
additionalProperties: boolean;
|
|
268
|
+
required: string[];
|
|
269
|
+
properties: {
|
|
270
|
+
key: {
|
|
271
|
+
type: string;
|
|
272
|
+
};
|
|
273
|
+
value: {
|
|
274
|
+
type: string;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
214
277
|
};
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
eventTimeout: {
|
|
218
|
-
type: string;
|
|
278
|
+
};
|
|
219
279
|
};
|
|
220
280
|
};
|
|
221
|
-
};
|
|
281
|
+
})[];
|
|
222
282
|
};
|
|
223
283
|
target: {
|
|
224
284
|
type: string;
|
|
@@ -422,52 +482,112 @@ export declare const BannerBlock: {
|
|
|
422
482
|
};
|
|
423
483
|
};
|
|
424
484
|
};
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
type: string;
|
|
437
|
-
};
|
|
438
|
-
eventLabel: {
|
|
439
|
-
type: string;
|
|
440
|
-
};
|
|
441
|
-
value: {
|
|
442
|
-
type: string;
|
|
443
|
-
};
|
|
444
|
-
groups: {
|
|
445
|
-
oneOf: ({
|
|
485
|
+
events: {
|
|
486
|
+
anyOf: ({
|
|
487
|
+
type: {
|
|
488
|
+
type: string;
|
|
489
|
+
additionalProperties: boolean;
|
|
490
|
+
required: string[];
|
|
491
|
+
properties: {
|
|
492
|
+
name: {
|
|
493
|
+
type: string;
|
|
494
|
+
};
|
|
495
|
+
type: {
|
|
446
496
|
type: string;
|
|
447
|
-
|
|
448
|
-
|
|
497
|
+
};
|
|
498
|
+
counters: {
|
|
499
|
+
type: string;
|
|
500
|
+
additionalProperties: boolean;
|
|
501
|
+
required: never[];
|
|
502
|
+
properties: {
|
|
503
|
+
include: {
|
|
504
|
+
type: string;
|
|
505
|
+
items: string;
|
|
506
|
+
};
|
|
507
|
+
exclude: {
|
|
508
|
+
type: string;
|
|
509
|
+
items: string;
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
category: {
|
|
514
|
+
type: string;
|
|
515
|
+
};
|
|
516
|
+
label: {
|
|
517
|
+
type: string;
|
|
518
|
+
};
|
|
519
|
+
params: {
|
|
449
520
|
type: string;
|
|
450
521
|
items: {
|
|
451
522
|
type: string;
|
|
523
|
+
additionalProperties: boolean;
|
|
524
|
+
required: string[];
|
|
525
|
+
properties: {
|
|
526
|
+
key: {
|
|
527
|
+
type: string;
|
|
528
|
+
};
|
|
529
|
+
value: {
|
|
530
|
+
type: string;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
452
533
|
};
|
|
453
|
-
}
|
|
534
|
+
};
|
|
454
535
|
};
|
|
455
|
-
|
|
456
|
-
|
|
536
|
+
};
|
|
537
|
+
items?: undefined;
|
|
538
|
+
} | {
|
|
539
|
+
type: string;
|
|
540
|
+
items: {
|
|
541
|
+
type: string;
|
|
542
|
+
additionalProperties: boolean;
|
|
543
|
+
required: string[];
|
|
544
|
+
properties: {
|
|
545
|
+
name: {
|
|
546
|
+
type: string;
|
|
547
|
+
};
|
|
548
|
+
type: {
|
|
549
|
+
type: string;
|
|
550
|
+
};
|
|
551
|
+
counters: {
|
|
552
|
+
type: string;
|
|
553
|
+
additionalProperties: boolean;
|
|
554
|
+
required: never[];
|
|
555
|
+
properties: {
|
|
556
|
+
include: {
|
|
557
|
+
type: string;
|
|
558
|
+
items: string;
|
|
559
|
+
};
|
|
560
|
+
exclude: {
|
|
561
|
+
type: string;
|
|
562
|
+
items: string;
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
category: {
|
|
567
|
+
type: string;
|
|
568
|
+
};
|
|
569
|
+
label: {
|
|
457
570
|
type: string;
|
|
458
|
-
|
|
459
|
-
|
|
571
|
+
};
|
|
572
|
+
params: {
|
|
460
573
|
type: string;
|
|
461
574
|
items: {
|
|
462
575
|
type: string;
|
|
576
|
+
additionalProperties: boolean;
|
|
577
|
+
required: string[];
|
|
578
|
+
properties: {
|
|
579
|
+
key: {
|
|
580
|
+
type: string;
|
|
581
|
+
};
|
|
582
|
+
value: {
|
|
583
|
+
type: string;
|
|
584
|
+
};
|
|
585
|
+
};
|
|
463
586
|
};
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
|
-
eventTimeout: {
|
|
467
|
-
type: string;
|
|
587
|
+
};
|
|
468
588
|
};
|
|
469
589
|
};
|
|
470
|
-
};
|
|
590
|
+
})[];
|
|
471
591
|
};
|
|
472
592
|
target: {
|
|
473
593
|
type: string;
|
|
@@ -672,52 +792,112 @@ export declare const BannerCard: {
|
|
|
672
792
|
};
|
|
673
793
|
};
|
|
674
794
|
};
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
795
|
+
events: {
|
|
796
|
+
anyOf: ({
|
|
797
|
+
type: {
|
|
798
|
+
type: string;
|
|
799
|
+
additionalProperties: boolean;
|
|
800
|
+
required: string[];
|
|
801
|
+
properties: {
|
|
802
|
+
name: {
|
|
803
|
+
type: string;
|
|
804
|
+
};
|
|
805
|
+
type: {
|
|
806
|
+
type: string;
|
|
807
|
+
};
|
|
808
|
+
counters: {
|
|
809
|
+
type: string;
|
|
810
|
+
additionalProperties: boolean;
|
|
811
|
+
required: never[];
|
|
812
|
+
properties: {
|
|
813
|
+
include: {
|
|
814
|
+
type: string;
|
|
815
|
+
items: string;
|
|
816
|
+
};
|
|
817
|
+
exclude: {
|
|
818
|
+
type: string;
|
|
819
|
+
items: string;
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
category: {
|
|
696
824
|
type: string;
|
|
697
|
-
|
|
698
|
-
|
|
825
|
+
};
|
|
826
|
+
label: {
|
|
827
|
+
type: string;
|
|
828
|
+
};
|
|
829
|
+
params: {
|
|
699
830
|
type: string;
|
|
700
831
|
items: {
|
|
701
832
|
type: string;
|
|
833
|
+
additionalProperties: boolean;
|
|
834
|
+
required: string[];
|
|
835
|
+
properties: {
|
|
836
|
+
key: {
|
|
837
|
+
type: string;
|
|
838
|
+
};
|
|
839
|
+
value: {
|
|
840
|
+
type: string;
|
|
841
|
+
};
|
|
842
|
+
};
|
|
702
843
|
};
|
|
703
|
-
}
|
|
844
|
+
};
|
|
704
845
|
};
|
|
705
|
-
|
|
706
|
-
|
|
846
|
+
};
|
|
847
|
+
items?: undefined;
|
|
848
|
+
} | {
|
|
849
|
+
type: string;
|
|
850
|
+
items: {
|
|
851
|
+
type: string;
|
|
852
|
+
additionalProperties: boolean;
|
|
853
|
+
required: string[];
|
|
854
|
+
properties: {
|
|
855
|
+
name: {
|
|
856
|
+
type: string;
|
|
857
|
+
};
|
|
858
|
+
type: {
|
|
859
|
+
type: string;
|
|
860
|
+
};
|
|
861
|
+
counters: {
|
|
862
|
+
type: string;
|
|
863
|
+
additionalProperties: boolean;
|
|
864
|
+
required: never[];
|
|
865
|
+
properties: {
|
|
866
|
+
include: {
|
|
867
|
+
type: string;
|
|
868
|
+
items: string;
|
|
869
|
+
};
|
|
870
|
+
exclude: {
|
|
871
|
+
type: string;
|
|
872
|
+
items: string;
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
category: {
|
|
707
877
|
type: string;
|
|
708
|
-
|
|
709
|
-
|
|
878
|
+
};
|
|
879
|
+
label: {
|
|
880
|
+
type: string;
|
|
881
|
+
};
|
|
882
|
+
params: {
|
|
710
883
|
type: string;
|
|
711
884
|
items: {
|
|
712
885
|
type: string;
|
|
886
|
+
additionalProperties: boolean;
|
|
887
|
+
required: string[];
|
|
888
|
+
properties: {
|
|
889
|
+
key: {
|
|
890
|
+
type: string;
|
|
891
|
+
};
|
|
892
|
+
value: {
|
|
893
|
+
type: string;
|
|
894
|
+
};
|
|
895
|
+
};
|
|
713
896
|
};
|
|
714
|
-
}
|
|
715
|
-
};
|
|
716
|
-
eventTimeout: {
|
|
717
|
-
type: string;
|
|
897
|
+
};
|
|
718
898
|
};
|
|
719
899
|
};
|
|
720
|
-
};
|
|
900
|
+
})[];
|
|
721
901
|
};
|
|
722
902
|
target: {
|
|
723
903
|
type: string;
|
|
@@ -426,52 +426,112 @@ export declare const MediaBlock: {
|
|
|
426
426
|
};
|
|
427
427
|
};
|
|
428
428
|
};
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
429
|
+
events: {
|
|
430
|
+
anyOf: ({
|
|
431
|
+
type: {
|
|
432
|
+
type: string;
|
|
433
|
+
additionalProperties: boolean;
|
|
434
|
+
required: string[];
|
|
435
|
+
properties: {
|
|
436
|
+
name: {
|
|
437
|
+
type: string;
|
|
438
|
+
};
|
|
439
|
+
type: {
|
|
440
|
+
type: string;
|
|
441
|
+
};
|
|
442
|
+
counters: {
|
|
443
|
+
type: string;
|
|
444
|
+
additionalProperties: boolean;
|
|
445
|
+
required: never[];
|
|
446
|
+
properties: {
|
|
447
|
+
include: {
|
|
448
|
+
type: string;
|
|
449
|
+
items: string;
|
|
450
|
+
};
|
|
451
|
+
exclude: {
|
|
452
|
+
type: string;
|
|
453
|
+
items: string;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
category: {
|
|
450
458
|
type: string;
|
|
451
|
-
|
|
452
|
-
|
|
459
|
+
};
|
|
460
|
+
label: {
|
|
461
|
+
type: string;
|
|
462
|
+
};
|
|
463
|
+
params: {
|
|
453
464
|
type: string;
|
|
454
465
|
items: {
|
|
455
466
|
type: string;
|
|
467
|
+
additionalProperties: boolean;
|
|
468
|
+
required: string[];
|
|
469
|
+
properties: {
|
|
470
|
+
key: {
|
|
471
|
+
type: string;
|
|
472
|
+
};
|
|
473
|
+
value: {
|
|
474
|
+
type: string;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
456
477
|
};
|
|
457
|
-
}
|
|
478
|
+
};
|
|
458
479
|
};
|
|
459
|
-
|
|
460
|
-
|
|
480
|
+
};
|
|
481
|
+
items?: undefined;
|
|
482
|
+
} | {
|
|
483
|
+
type: string;
|
|
484
|
+
items: {
|
|
485
|
+
type: string;
|
|
486
|
+
additionalProperties: boolean;
|
|
487
|
+
required: string[];
|
|
488
|
+
properties: {
|
|
489
|
+
name: {
|
|
490
|
+
type: string;
|
|
491
|
+
};
|
|
492
|
+
type: {
|
|
461
493
|
type: string;
|
|
462
|
-
|
|
463
|
-
|
|
494
|
+
};
|
|
495
|
+
counters: {
|
|
496
|
+
type: string;
|
|
497
|
+
additionalProperties: boolean;
|
|
498
|
+
required: never[];
|
|
499
|
+
properties: {
|
|
500
|
+
include: {
|
|
501
|
+
type: string;
|
|
502
|
+
items: string;
|
|
503
|
+
};
|
|
504
|
+
exclude: {
|
|
505
|
+
type: string;
|
|
506
|
+
items: string;
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
category: {
|
|
511
|
+
type: string;
|
|
512
|
+
};
|
|
513
|
+
label: {
|
|
514
|
+
type: string;
|
|
515
|
+
};
|
|
516
|
+
params: {
|
|
464
517
|
type: string;
|
|
465
518
|
items: {
|
|
466
519
|
type: string;
|
|
520
|
+
additionalProperties: boolean;
|
|
521
|
+
required: string[];
|
|
522
|
+
properties: {
|
|
523
|
+
key: {
|
|
524
|
+
type: string;
|
|
525
|
+
};
|
|
526
|
+
value: {
|
|
527
|
+
type: string;
|
|
528
|
+
};
|
|
529
|
+
};
|
|
467
530
|
};
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
eventTimeout: {
|
|
471
|
-
type: string;
|
|
531
|
+
};
|
|
472
532
|
};
|
|
473
533
|
};
|
|
474
|
-
};
|
|
534
|
+
})[];
|
|
475
535
|
};
|
|
476
536
|
target: {
|
|
477
537
|
type: string;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Settings } from 'react-slick';
|
|
2
2
|
import { Refable, SliderProps as SliderParams, ClassNameProps, WithChildren } from '../../models';
|
|
3
|
-
export interface SlickSliderFull extends SlickSlider {
|
|
4
|
-
innerSlider?: {
|
|
5
|
-
list: HTMLElement;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
3
|
export interface SliderProps extends Omit<SliderParams, 'children'>, Refable<HTMLDivElement>, ClassNameProps, Pick<Settings, 'lazyLoad'> {
|
|
9
4
|
type?: string;
|
|
10
5
|
anchorId?: string;
|
|
@@ -7,10 +7,10 @@ const models_1 = require("../../models");
|
|
|
7
7
|
const utils_1 = require("../../utils");
|
|
8
8
|
const b = (0, utils_1.block)('author');
|
|
9
9
|
const Author = (props) => {
|
|
10
|
-
const { author, className, authorContainerClassName, type = models_1.AuthorType.Column } = props;
|
|
10
|
+
const { author, className, authorContainerClassName, type = models_1.AuthorType.Column, dataQa } = props;
|
|
11
11
|
const { firstName, secondName, description, avatar } = author;
|
|
12
12
|
const name = secondName ? `${firstName} ${secondName}` : firstName;
|
|
13
|
-
return (react_1.default.createElement("div", { className: b({ type }, className) },
|
|
13
|
+
return (react_1.default.createElement("div", { className: b({ type }, className), "data-qa": dataQa },
|
|
14
14
|
avatar && (react_1.default.createElement("div", { className: b('avatar', authorContainerClassName) }, typeof avatar === 'string' ? react_1.default.createElement(index_1.Image, { src: avatar }) : avatar)),
|
|
15
15
|
react_1.default.createElement("div", { className: b('label') },
|
|
16
16
|
react_1.default.createElement("div", { className: b('name') }, name),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|