@gravity-ui/page-constructor 8.15.0 → 8.16.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.
Files changed (40) hide show
  1. package/README.md +31 -9
  2. package/build/docs/INDEX.md +191 -0
  3. package/build/docs/blocks/Banner.md +59 -0
  4. package/build/docs/blocks/CardLayout.md +79 -0
  5. package/build/docs/blocks/Companies.md +67 -0
  6. package/build/docs/blocks/ContentLayout.md +54 -0
  7. package/build/docs/blocks/ExtendedFeatures.md +74 -0
  8. package/build/docs/blocks/FilterBlock.md +112 -0
  9. package/build/docs/blocks/FoldableList.md +78 -0
  10. package/build/docs/blocks/Footer.md +110 -0
  11. package/build/docs/blocks/Form.md +89 -0
  12. package/build/docs/blocks/Header.md +70 -0
  13. package/build/docs/blocks/HeaderSlider.md +70 -0
  14. package/build/docs/blocks/Hero.md +67 -0
  15. package/build/docs/blocks/Icons.md +61 -0
  16. package/build/docs/blocks/Info.md +73 -0
  17. package/build/docs/blocks/Map.md +81 -0
  18. package/build/docs/blocks/Media.md +63 -0
  19. package/build/docs/blocks/PromoFeaturesBlock.md +74 -0
  20. package/build/docs/blocks/Questions.md +78 -0
  21. package/build/docs/blocks/Share.md +45 -0
  22. package/build/docs/blocks/Slider.md +89 -0
  23. package/build/docs/blocks/SliderOld.md +63 -0
  24. package/build/docs/blocks/Table.md +64 -0
  25. package/build/docs/blocks/Tabs.md +92 -0
  26. package/build/docs/guides/data-preparation-ru.md +257 -0
  27. package/build/docs/guides/data-preparation.md +259 -0
  28. package/build/docs/sub-blocks/BackgroundCard.md +63 -0
  29. package/build/docs/sub-blocks/BannerCard.md +57 -0
  30. package/build/docs/sub-blocks/BasicCard.md +60 -0
  31. package/build/docs/sub-blocks/Content.md +58 -0
  32. package/build/docs/sub-blocks/Divider.md +47 -0
  33. package/build/docs/sub-blocks/HubspotForm.md +47 -0
  34. package/build/docs/sub-blocks/ImageCard.md +59 -0
  35. package/build/docs/sub-blocks/LayoutItem.md +70 -0
  36. package/build/docs/sub-blocks/MediaCard.md +66 -0
  37. package/build/docs/sub-blocks/PriceCard.md +60 -0
  38. package/build/docs/sub-blocks/PriceDetailed.md +74 -0
  39. package/build/docs/sub-blocks/Quote.md +74 -0
  40. package/package.json +3 -2
@@ -0,0 +1,74 @@
1
+ # PriceDetailed
2
+
3
+ > ⚠️ **Deprecated.** This sub-block is deprecated and will be removed in a future major release. Prefer [`PriceCard`](./PriceCard.md) for pricing cards.
4
+
5
+ Renders a detailed pricing comparison table: each item has a title, a per-unit description, an optional label, and a list of details (either a marked list or a settings list). Supports combined or separate layout, foldable details, and per-color default label text.
6
+
7
+ ## Sub-block type
8
+
9
+ `type: 'price-detailed'`
10
+
11
+ ## Used in
12
+
13
+ Accepted as `children` by `CardLayout`, `Slider`, `SliderOld`.
14
+
15
+ ## Example
16
+
17
+ ```json
18
+ {
19
+ "type": "price-detailed",
20
+ "priceType": "settings",
21
+ "description": {"titleSize": "l", "descriptionSize": "m", "titleColor": "cornflower"},
22
+ "details": {"titleSize": "s", "descriptionSize": "m"},
23
+ "items": [
24
+ {
25
+ "title": "Free",
26
+ "detailedTitle": "",
27
+ "description": "For use by individuals and small teams",
28
+ "label": {"color": "blue", "text": "Free", "size": "s"},
29
+ "items": [{"title": "up to 5 users", "description": "up to 5 users"}]
30
+ }
31
+ ]
32
+ }
33
+ ```
34
+
35
+ ## Properties
36
+
37
+ | Property | Type | Default | Description |
38
+ | ----------------------------- | ----------------------------------------- | -------------- | ----------------------------------------------------------------------------- |
39
+ | `type` _required_ | `'price-detailed'` | — | Sub-block discriminator. |
40
+ | `when` | `string` | — | Conditional rendering expression. |
41
+ | `animated` | `boolean` | — | Enables scroll-triggered entrance animation. |
42
+ | `items` _required_ | `PriceItem[]` | — | Pricing columns/rows. See below. |
43
+ | `description` | `object` | — | Sizing/color overrides for the description block. |
44
+ | `description.titleSize` | `'xs' \| 's' \| 'sm' \| 'm' \| 'l'` | `'l'` | Description title size. |
45
+ | `description.descriptionSize` | `'xs' \| 's' \| 'sm' \| 'm' \| 'l'` | `'m'` | Description body size. |
46
+ | `description.titleColor` | `'cornflower' \| 'black'` | `'cornflower'` | Description title color. |
47
+ | `details` | `object` | — | Sizing overrides for the details block. |
48
+ | `details.titleSize` | `'xs' \| 's' \| 'sm' \| 'm' \| 'l'` | `'s'` | Details title size. |
49
+ | `details.descriptionSize` | `'xs' \| 's' \| 'sm' \| 'm' \| 'l'` | `'m'` | Details body size. |
50
+ | `priceType` | `'marked-list' \| 'settings'` | `'settings'` | Layout of each item's `items` list. |
51
+ | `numberGroupItems` | `3 \| 4 \| 5` | — | Items per row in the combined layout. |
52
+ | `isCombined` | `boolean` | `false` | Use the combined grid layout instead of separate columns. |
53
+ | `useMixedView` | `boolean` | `false` | Mix list item views (extended details on desktop, collapse on tablet/mobile). |
54
+ | `foldable` | `{title*required, size?, titleColor?}` | — | Makes the details section collapsible with a toggle. |
55
+ | `labelsDefaultText` | `{blue?, green?, yellow?, purple?, red?}` | — | Default text used for each label color when an item label has no `text`. |
56
+
57
+ ### `PriceItem` object
58
+
59
+ | Property | Type | Default | Description |
60
+ | ------------------------ | ---------------------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- |
61
+ | `title` _required_ | `string` | — | Plan title (e.g. `"Free"`, `"100$"`). |
62
+ | `description` _required_ | `string` (YFM) | — | Plan description. |
63
+ | `detailedTitle` | `string` | — | Suffix/qualifier shown next to the title (e.g. `"/ month*"`). |
64
+ | `label` | `{color*required, text?, size?}` | — | Colored label badge. `color`: `'blue' \| 'green' \| 'yellow' \| 'purple' \| 'red'`. `size`: `'xs' \| 's' \| 'sm' \| 'm' \| 'l'`. |
65
+ | `items` | `PriceDetailsList[] \| PriceDetailsSettings[]` | — | Detail list. With `priceType: 'marked-list'` each item requires `text`; with `'settings'` each requires `title` + `description`. |
66
+ | `analyticsEvents` | `AnalyticsEvent \| AnalyticsEvent[]` | — | Analytics events. |
67
+
68
+ ## Themed values
69
+
70
+ This sub-block does not consume themed media; sizing/color controls above are explicit.
71
+
72
+ ## Storybook
73
+
74
+ [PriceDetailed](https://preview.gravity-ui.com/page-constructor/?path=/docs/components-cards-pricedetailed-deprecated--docs)
@@ -0,0 +1,74 @@
1
+ # Quote
2
+
3
+ Renders a customer testimonial / quote card: a logo, the quote body, an optional author (name + avatar + description), and an optional CTA button. Paired with a large image on the side.
4
+
5
+ ## Sub-block type
6
+
7
+ `type: 'quote'`
8
+
9
+ ## Used in
10
+
11
+ Accepted as `children` by `CardLayout`, `Slider`, `SliderOld`; also usable as a card payload in `FilterBlock` items.
12
+
13
+ ## Example
14
+
15
+ ```json
16
+ {
17
+ "type": "quote",
18
+ "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
19
+ "quoteType": "chevron",
20
+ "theme": "light",
21
+ "image": {
22
+ "light": {"src": "/assets/img_6-12_light.png"},
23
+ "dark": {"src": "/assets/img_8-12_dark.png"}
24
+ },
25
+ "logo": {"src": "/assets/logo.png", "alt": "Company logo"},
26
+ "author": {
27
+ "firstName": "Lorem",
28
+ "secondName": "ipsum",
29
+ "description": "CEO, Acme",
30
+ "avatar": "/assets/avatar.png"
31
+ },
32
+ "button": {
33
+ "text": "Read the case study",
34
+ "theme": "outlined",
35
+ "url": "https://example.com"
36
+ }
37
+ }
38
+ ```
39
+
40
+ ## Properties
41
+
42
+ | Property | Type | Default | Description |
43
+ | ------------------ | ------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
44
+ | `type` _required_ | `'quote'` | — | Sub-block discriminator. |
45
+ | `when` | `string` | — | Conditional rendering expression. |
46
+ | `text` | `string` | — | Quote body (plain text). Prefer `yfmText` for Markdown. |
47
+ | `yfmText` | `string` (YFM) | — | Quote body in YFM Markdown (overrides `text` when set). |
48
+ | `image` _required_ | `ImageProps \| {light, dark}` | — | Large side image. Themed: `T \| {light: T, dark: T}`. |
49
+ | `logo` _required_ | `ImageProps` | — | Company/personal logo shown above the quote. |
50
+ | `color` | `string` | — | Custom card background color. |
51
+ | `url` | `string` | — | Link URL for the CTA. Deprecated, prefer `button`. |
52
+ | `urlTitle` | `string` | — | Title/tooltip for the CTA link. Deprecated, prefer `button`. |
53
+ | `buttonText` | `string` | — | CTA button text. Deprecated, prefer `button`. |
54
+ | `button` | `ButtonProps` | — | Full button configuration (preferred over `url` / `urlTitle` / `buttonText`). Available on the component model; not part of the JSON schema. |
55
+ | `theme` | `'light' \| 'dark'` | `'light'` | Text color theme. |
56
+ | `quoteType` | `'chevron' \| 'english-double'` | `'chevron'` | Quotation mark style. `chevron` renders `« »`, `english-double` renders `“ ”`. |
57
+ | `author` | `object` | — | Author block. See below. |
58
+
59
+ ### `author` object
60
+
61
+ | Property | Type | Default | Description |
62
+ | ----------------------- | ----------------------------- | ------- | -------------------------- |
63
+ | `firstName` _required_ | `string` | — | Author first name. |
64
+ | `secondName` _required_ | `string` | — | Author second name. |
65
+ | `avatar` | `ImageProps \| {light, dark}` | — | Avatar image (themed). |
66
+ | `description` | `string` (YFM) | — | Author role / description. |
67
+
68
+ ## Themed values
69
+
70
+ `image` and `author.avatar` accept `T | {light: T, dark: T}` and are resolved at runtime via the active theme.
71
+
72
+ ## Storybook
73
+
74
+ [Quote](https://preview.gravity-ui.com/page-constructor/?path=/docs/components-cards-quote--docs)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "8.15.0",
3
+ "version": "8.16.0",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -137,8 +137,9 @@
137
137
  "@commitlint/config-conventional": "^19.6.0",
138
138
  "@diplodoc/transform": "^4.57.1",
139
139
  "@gravity-ui/eslint-config": "^3.2.0",
140
- "@gravity-ui/gulp-utils": "^1.0.3",
140
+ "@gravity-ui/gulp-utils": "^1.1.1",
141
141
  "@gravity-ui/prettier-config": "^1.1.0",
142
+ "@gravity-ui/readme-validator": "^1.3.0",
142
143
  "@gravity-ui/stylelint-config": "^4.0.1",
143
144
  "@gravity-ui/tsconfig": "^1.0.0",
144
145
  "@gravity-ui/uikit": "^7.13.1",