@gravity-ui/page-constructor 3.0.0-alpha.5 → 3.0.0-alpha.6

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 (126) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/build/cjs/components/BackgroundImage/BackgroundImage.js +2 -2
  3. package/build/cjs/components/BlockBase/BlockBase.d.ts +3 -2
  4. package/build/cjs/components/BlockBase/BlockBase.js +4 -2
  5. package/build/cjs/components/Image/Image.d.ts +1 -0
  6. package/build/cjs/components/Image/Image.js +2 -2
  7. package/build/cjs/containers/Loadable/Loadable.d.ts +2 -2
  8. package/build/cjs/containers/PageConstructor/PageConstructor.js +5 -3
  9. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +3 -2
  10. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
  11. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +5 -5
  12. package/build/cjs/context/innerContext/InnerContext.d.ts +2 -1
  13. package/build/cjs/customization/BlockDecoration.d.ts +3 -0
  14. package/build/cjs/customization/BlockDecoration.js +22 -0
  15. package/build/cjs/editor/Components/AddBlock/AddBlock.css +82 -0
  16. package/build/cjs/editor/Components/AddBlock/AddBlock.d.ts +7 -0
  17. package/build/cjs/editor/Components/AddBlock/AddBlock.js +43 -0
  18. package/build/cjs/editor/Components/EditBlock/EditBlock.css +47 -0
  19. package/build/cjs/editor/Components/EditBlock/EditBlock.d.ts +4 -0
  20. package/build/cjs/editor/Components/EditBlock/EditBlock.js +32 -0
  21. package/build/cjs/editor/Containers/Editor.d.ts +2 -0
  22. package/build/cjs/editor/Containers/Editor.js +24 -0
  23. package/build/cjs/editor/data/index.d.ts +13 -0
  24. package/build/cjs/editor/data/index.js +27 -0
  25. package/build/cjs/editor/data/previews/default-preview.d.ts +3 -0
  26. package/build/cjs/editor/data/previews/default-preview.js +18 -0
  27. package/build/cjs/editor/data/previews/header-block.d.ts +3 -0
  28. package/build/cjs/editor/data/previews/header-block.js +19 -0
  29. package/build/cjs/editor/index.d.ts +2 -0
  30. package/build/cjs/editor/index.js +7 -0
  31. package/build/cjs/editor/store/index.d.ts +15 -0
  32. package/build/cjs/editor/store/index.js +32 -0
  33. package/build/cjs/editor/store/reducer.d.ts +41 -0
  34. package/build/cjs/editor/store/reducer.js +59 -0
  35. package/build/cjs/editor/store/utils.d.ts +12 -0
  36. package/build/cjs/editor/store/utils.js +34 -0
  37. package/build/cjs/editor/styles/mixins.css +0 -0
  38. package/build/cjs/editor/styles/variables.css +0 -0
  39. package/build/cjs/editor/types/index.d.ts +17 -0
  40. package/build/cjs/editor/types/index.js +2 -0
  41. package/build/cjs/editor/utils/index.d.ts +11 -0
  42. package/build/cjs/editor/utils/index.js +12 -0
  43. package/build/cjs/hooks/useMetrika.js +0 -7
  44. package/build/cjs/models/constructor-items/blocks.d.ts +1 -11
  45. package/build/cjs/models/constructor-items/blocks.js +0 -2
  46. package/build/cjs/models/constructor-items/common.d.ts +1 -0
  47. package/build/cjs/models/constructor.d.ts +4 -1
  48. package/build/cjs/models/customization.d.ts +9 -0
  49. package/build/cjs/models/customization.js +2 -0
  50. package/build/cjs/models/index.d.ts +1 -0
  51. package/build/cjs/models/index.js +1 -0
  52. package/build/cjs/schema/index.js +0 -1
  53. package/build/cjs/sub-blocks/Content/Content.js +2 -2
  54. package/build/cjs/text-transform/transformers.js +2 -4
  55. package/build/cjs/utils/blocks.d.ts +4 -1
  56. package/build/cjs/utils/blocks.js +11 -1
  57. package/build/esm/components/BackgroundImage/BackgroundImage.js +2 -2
  58. package/build/esm/components/BlockBase/BlockBase.d.ts +3 -2
  59. package/build/esm/components/BlockBase/BlockBase.js +4 -2
  60. package/build/esm/components/Image/Image.d.ts +1 -0
  61. package/build/esm/components/Image/Image.js +2 -2
  62. package/build/esm/containers/Loadable/Loadable.d.ts +2 -2
  63. package/build/esm/containers/PageConstructor/PageConstructor.js +6 -4
  64. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +3 -2
  65. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
  66. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +5 -5
  67. package/build/esm/context/innerContext/InnerContext.d.ts +2 -1
  68. package/build/esm/customization/BlockDecoration.d.ts +3 -0
  69. package/build/esm/customization/BlockDecoration.js +17 -0
  70. package/build/esm/editor/Components/AddBlock/AddBlock.css +82 -0
  71. package/build/esm/editor/Components/AddBlock/AddBlock.d.ts +8 -0
  72. package/build/esm/editor/Components/AddBlock/AddBlock.js +41 -0
  73. package/build/esm/editor/Components/EditBlock/EditBlock.css +47 -0
  74. package/build/esm/editor/Components/EditBlock/EditBlock.d.ts +5 -0
  75. package/build/esm/editor/Components/EditBlock/EditBlock.js +30 -0
  76. package/build/esm/editor/Containers/Editor.d.ts +2 -0
  77. package/build/esm/editor/Containers/Editor.js +20 -0
  78. package/build/esm/editor/data/index.d.ts +13 -0
  79. package/build/esm/editor/data/index.js +24 -0
  80. package/build/esm/editor/data/previews/default-preview.d.ts +3 -0
  81. package/build/esm/editor/data/previews/default-preview.js +15 -0
  82. package/build/esm/editor/data/previews/header-block.d.ts +3 -0
  83. package/build/esm/editor/data/previews/header-block.js +16 -0
  84. package/build/esm/editor/index.d.ts +2 -0
  85. package/build/esm/editor/index.js +2 -0
  86. package/build/esm/editor/store/index.d.ts +15 -0
  87. package/build/esm/editor/store/index.js +28 -0
  88. package/build/esm/editor/store/reducer.d.ts +41 -0
  89. package/build/esm/editor/store/reducer.js +55 -0
  90. package/build/esm/editor/store/utils.d.ts +12 -0
  91. package/build/esm/editor/store/utils.js +26 -0
  92. package/build/esm/editor/styles/mixins.css +0 -0
  93. package/build/esm/editor/styles/variables.css +0 -0
  94. package/build/esm/editor/types/index.d.ts +17 -0
  95. package/build/esm/editor/types/index.js +1 -0
  96. package/build/esm/editor/utils/index.d.ts +11 -0
  97. package/build/esm/editor/utils/index.js +6 -0
  98. package/build/esm/hooks/useMetrika.js +0 -7
  99. package/build/esm/models/constructor-items/blocks.d.ts +1 -11
  100. package/build/esm/models/constructor-items/blocks.js +0 -2
  101. package/build/esm/models/constructor-items/common.d.ts +1 -0
  102. package/build/esm/models/constructor.d.ts +4 -1
  103. package/build/esm/models/customization.d.ts +9 -0
  104. package/build/esm/models/customization.js +1 -0
  105. package/build/esm/models/index.d.ts +1 -0
  106. package/build/esm/models/index.js +1 -0
  107. package/build/esm/schema/index.js +0 -1
  108. package/build/esm/sub-blocks/Content/Content.js +2 -3
  109. package/build/esm/text-transform/transformers.js +2 -4
  110. package/build/esm/utils/blocks.d.ts +4 -1
  111. package/build/esm/utils/blocks.js +7 -0
  112. package/package.json +4 -3
  113. package/server/models/constructor-items/blocks.d.ts +1 -11
  114. package/server/models/constructor-items/blocks.js +0 -2
  115. package/server/models/constructor-items/common.d.ts +1 -0
  116. package/server/models/constructor.d.ts +4 -1
  117. package/server/models/customization.d.ts +9 -0
  118. package/server/models/customization.js +2 -0
  119. package/server/models/index.d.ts +1 -0
  120. package/server/models/index.js +1 -0
  121. package/server/text-transform/transformers.js +2 -4
  122. package/server/utils/blocks.d.ts +4 -1
  123. package/server/utils/blocks.js +11 -1
  124. package/styles/styles.css +0 -196
  125. package/styles/styles.scss +0 -1
  126. package/styles/fonts.scss +0 -223
package/styles/fonts.scss DELETED
@@ -1,223 +0,0 @@
1
- @font-face {
2
- font-family: 'YS Display';
3
- src: url('https://yastatic.net/s3/home/fonts/ys/1/display-thin.woff2') format('woff2'),
4
- url('https://yastatic.net/s3/home/fonts/ys/1/display-thin.woff') format('woff');
5
- font-weight: 100;
6
- font-style: normal;
7
- font-display: swap;
8
- }
9
-
10
- @font-face {
11
- font-family: 'YS Display';
12
- src: url('https://yastatic.net/s3/home/fonts/ys/1/display-light.woff2') format('woff2'),
13
- url('https://yastatic.net/s3/home/fonts/ys/1/display-light.woff') format('woff');
14
- font-weight: 300;
15
- font-style: normal;
16
- font-display: swap;
17
- }
18
-
19
- @font-face {
20
- font-family: 'YS Display';
21
- src: url('https://yastatic.net/s3/home/fonts/ys/1/display-regular.woff2') format('woff2'),
22
- url('https://yastatic.net/s3/home/fonts/ys/1/display-regular.woff') format('woff');
23
- font-weight: 400;
24
- font-style: normal;
25
- font-display: swap;
26
- }
27
-
28
- @font-face {
29
- font-family: 'YS Display';
30
- src: url('https://yastatic.net/s3/home/fonts/ys/1/display-medium.woff2') format('woff2'),
31
- url('https://yastatic.net/s3/home/fonts/ys/1/display-medium.woff') format('woff');
32
- font-weight: 500;
33
- font-style: normal;
34
- font-display: swap;
35
- }
36
-
37
- @font-face {
38
- font-family: 'YS Display';
39
- src: url('https://yastatic.net/s3/home/fonts/ys/1/display-bold.woff2') format('woff2'),
40
- url('https://yastatic.net/s3/home/fonts/ys/1/display-bold.woff') format('woff');
41
- font-weight: 700;
42
- font-style: normal;
43
- font-display: swap;
44
- }
45
-
46
- @font-face {
47
- font-family: 'YS Display';
48
- src: url('https://yastatic.net/s3/home/fonts/ys/1/display-heavy.woff2') format('woff2'),
49
- url('https://yastatic.net/s3/home/fonts/ys/1/display-heavy.woff') format('woff');
50
- font-weight: 900;
51
- font-style: normal;
52
- font-display: swap;
53
- }
54
-
55
- @font-face {
56
- font-family: 'YS Text';
57
- src: url('https://yastatic.net/s3/home/fonts/ys/1/text-light.woff2') format('woff2'),
58
- url('https://yastatic.net/s3/home/fonts/ys/1/text-light.woff') format('woff');
59
- font-weight: 300;
60
- font-style: normal;
61
- font-display: swap;
62
- }
63
-
64
- @font-face {
65
- font-family: 'YS Text';
66
- src: url('https://yastatic.net/s3/home/fonts/ys/1/text-light-italic.woff2') format('woff2'),
67
- url('https://yastatic.net/s3/home/fonts/ys/1/text-light-italic.woff') format('woff');
68
- font-weight: 300;
69
- font-style: italic;
70
- font-display: swap;
71
- }
72
-
73
- @font-face {
74
- font-family: 'YS Text';
75
- src: url('https://yastatic.net/s3/home/fonts/ys/1/text-regular.woff2') format('woff2'),
76
- url('https://yastatic.net/s3/home/fonts/ys/1/text-regular.woff') format('woff');
77
- font-weight: 400;
78
- font-style: normal;
79
- font-display: swap;
80
- }
81
-
82
- @font-face {
83
- font-family: 'YS Text';
84
- src: url('https://yastatic.net/s3/home/fonts/ys/1/text-regular-italic.woff2') format('woff2'),
85
- url('https://yastatic.net/s3/home/fonts/ys/1/text-regular-italic.woff') format('woff');
86
- font-weight: 400;
87
- font-style: italic;
88
- font-display: swap;
89
- }
90
-
91
- @font-face {
92
- font-family: 'YS Text';
93
- src: url('https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff2') format('woff2'),
94
- url('https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff') format('woff');
95
- font-weight: 500;
96
- font-style: normal;
97
- font-display: swap;
98
- }
99
-
100
- @font-face {
101
- font-family: 'YS Text';
102
- src: url('https://yastatic.net/s3/home/fonts/ys/1/text-medium-italic.woff2') format('woff2'),
103
- url('https://yastatic.net/s3/home/fonts/ys/1/text-medium-italic.woff') format('woff');
104
- font-weight: 500;
105
- font-style: italic;
106
- font-display: swap;
107
- }
108
-
109
- @font-face {
110
- font-family: 'YS Text';
111
- src: url('https://yastatic.net/s3/home/fonts/ys/1/text-bold.woff2') format('woff2'),
112
- url('https://yastatic.net/s3/home/fonts/ys/1/text-bold.woff') format('woff');
113
- font-weight: 700;
114
- font-style: normal;
115
- font-display: swap;
116
- }
117
-
118
- @font-face {
119
- font-family: 'YS Text';
120
- src: url('https://yastatic.net/s3/home/fonts/ys/1/text-bold-italic.woff2') format('woff2'),
121
- url('https://yastatic.net/s3/home/fonts/ys/1/text-bold-italic.woff') format('woff');
122
- font-weight: 700;
123
- font-style: italic;
124
- font-display: swap;
125
- }
126
-
127
- .YSDisplay-Thin {
128
- font-family: 'YS Display', sans-serif;
129
- font-weight: 100;
130
- font-style: normal;
131
- font-stretch: normal;
132
- }
133
-
134
- .YSDisplay-Light {
135
- font-family: 'YS Display', sans-serif;
136
- font-weight: 300;
137
- font-style: normal;
138
- font-stretch: normal;
139
- }
140
-
141
- .YSDisplay-Regular {
142
- font-family: 'YS Display', sans-serif;
143
- font-weight: 400;
144
- font-style: normal;
145
- font-stretch: normal;
146
- }
147
-
148
- .YSDisplay-Medium {
149
- font-family: 'YS Display', sans-serif;
150
- font-weight: 500;
151
- font-style: normal;
152
- font-stretch: normal;
153
- }
154
-
155
- .YSDisplay-Bold {
156
- font-family: 'YS Display', sans-serif;
157
- font-weight: 700;
158
- font-style: normal;
159
- font-stretch: normal;
160
- }
161
-
162
- .YSDisplay-Heavy {
163
- font-family: 'YS Display', sans-serif;
164
- font-weight: 900;
165
- font-style: normal;
166
- font-stretch: normal;
167
- }
168
-
169
- .YSText-Light {
170
- font-family: 'YS Text', sans-serif;
171
- font-weight: 300;
172
- font-style: normal;
173
- font-stretch: normal;
174
- }
175
-
176
- .YSText-LightItalic {
177
- font-family: 'YS Text', sans-serif;
178
- font-weight: 300;
179
- font-style: italic;
180
- font-stretch: normal;
181
- }
182
-
183
- .YSText-Regular {
184
- font-family: 'YS Text', sans-serif;
185
- font-weight: 400;
186
- font-style: normal;
187
- font-stretch: normal;
188
- }
189
-
190
- .YSText-RegularItalic {
191
- font-family: 'YS Text', sans-serif;
192
- font-weight: 400;
193
- font-style: italic;
194
- font-stretch: normal;
195
- }
196
-
197
- .YSText-Medium {
198
- font-family: 'YS Text', sans-serif;
199
- font-weight: 500;
200
- font-style: normal;
201
- font-stretch: normal;
202
- }
203
-
204
- .YSText-MediumItalic {
205
- font-family: 'YS Text', sans-serif;
206
- font-weight: 500;
207
- font-style: italic;
208
- font-stretch: normal;
209
- }
210
-
211
- .YSText-Bold {
212
- font-family: 'YS Text', sans-serif;
213
- font-weight: 700;
214
- font-style: normal;
215
- font-stretch: normal;
216
- }
217
-
218
- .YSText-BoldItalic {
219
- font-family: 'YS Text', sans-serif;
220
- font-weight: 700;
221
- font-style: italic;
222
- font-stretch: normal;
223
- }