@meduza/ui-kit-2 0.8.601 → 0.8.602

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.
@@ -16,4 +16,5 @@ export interface MetaProps {
16
16
  hasSource?: boolean;
17
17
  theme?: string;
18
18
  children: React.ReactNode;
19
+ type: string[] | string;
19
20
  }
@@ -966,9 +966,10 @@ const Meta = ({
966
966
  theme,
967
967
  children,
968
968
  onlyOn,
969
- styleContext
969
+ styleContext,
970
+ type
970
971
  }) => {
971
- let classNames = [[styles$s.root, true], [styles$s[theme], !!theme && !!styles$s[theme]], [styles$s[onlyOn], !!onlyOn], [styles$s.hasSource, hasSource]];
972
+ let classNames = [[styles$s.root, true], [styles$s[theme], !!theme && !!styles$s[theme]], [styles$s[onlyOn], !!onlyOn], [styles$s.hasSource, hasSource], [styles$s.isInDynamicBlock, type === 'isInDynamicBlock']];
972
973
  if (styleContext) {
973
974
  classNames = makeStyleContext(classNames, styleContext, styles$s);
974
975
  }
@@ -1828,7 +1829,8 @@ const MetaContainer = ({
1828
1829
  styleContext: context,
1829
1830
  theme: theme || themeColor,
1830
1831
  onlyOn: block.only_on,
1831
- hasSource: hasSource
1832
+ hasSource: hasSource,
1833
+ type: styleContext
1832
1834
  }, components.map(component => {
1833
1835
  switch (component.type) {
1834
1836
  case 'source_name':