@meduza/ui-kit-2 0.1.5 → 0.1.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.
@@ -1168,26 +1168,24 @@ var EmbedBlock = function EmbedBlock(_ref) {
1168
1168
  })));
1169
1169
  }
1170
1170
  }
1171
- }; // Убираем из контекста все, что не начинается с приставки isIn,
1172
- // чтобы не применились лишние модификаторы
1173
- // TODO: в w6 модификаторы должны передаваться явно
1174
-
1175
-
1176
- var filteredContext = Object.keys(styleContext).filter(function (key) {
1177
- return key.startsWith('isIn') && styles$h[key];
1178
- }).reduce(function (acc, key) {
1179
- acc.push([styles$h[key], true]);
1180
- return acc;
1181
- }, []);
1171
+ };
1182
1172
 
1183
1173
  if (isProportional) {
1184
1174
  style.paddingBottom = block.data.height / block.data.width * 100 + "%";
1185
1175
  style.height = 0;
1186
1176
  }
1187
1177
 
1188
- var classNames = [[styles$h.root, true], [styles$h.cc, cc], [styles$h[display], !!display && styles$h[display]], [styles$h[provider], !!provider && !!styles$h[provider]], [styles$h[onlyOn], !!onlyOn && styles$h[onlyOn]], [styles$h.mobileFullwidth, mobileFullwidth], [styles$h.proportional, isProportional]];
1178
+ var classNames = [[styles$h.root, true], [styles$h.cc, cc], [styles$h[display], !!display && styles$h[display]], [styles$h[provider], !!provider && !!styles$h[provider]], [styles$h[onlyOn], !!onlyOn && styles$h[onlyOn]], [styles$h.mobileFullwidth, mobileFullwidth], [styles$h.proportional, isProportional]]; // Убираем из контекста все, что не начинается с приставки isIn,
1179
+ // чтобы не применились лишние модификаторы
1180
+ // TODO: в w6 модификаторы должны передаваться явно
1189
1181
 
1190
1182
  if (styleContext) {
1183
+ var filteredContext = Object.keys(styleContext).filter(function (key) {
1184
+ return key.startsWith('isIn') && styles$h[key];
1185
+ }).reduce(function (acc, key) {
1186
+ acc.push([styles$h[key], true]);
1187
+ return acc;
1188
+ }, []);
1191
1189
  classNames = makeStyleContext(classNames, filteredContext, styles$h);
1192
1190
  }
1193
1191
 
@@ -2177,10 +2175,12 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
2177
2175
 
2178
2176
  case 'spoiler':
2179
2177
  {
2180
- return React__default.createElement(Spoiler, {
2178
+ return React__default.createElement(BlockProvider, {
2179
+ value: context
2180
+ }, React__default.createElement(Spoiler, {
2181
2181
  block: block,
2182
2182
  styleContext: styleContext
2183
- });
2183
+ }));
2184
2184
  }
2185
2185
 
2186
2186
  case 'cover':