@total_onion/onion-library 2.0.6 → 2.0.9

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.
@@ -32,7 +32,7 @@
32
32
  {{sectionStyles}}
33
33
  }
34
34
  </style>
35
- <{{blockElementType}} {{block.anchor ? "id=" ~ block.anchor : ''}} class="group-container-v3 cmpl-core-group-container {{blockClassName}} {{block.className}} {{classNameEntryPoint}} lazy-fade {{block.id}}" data-blockid="{{block.id}}" {{dataAttributeEntryPoint}} data-assetkey="group-container-v3" data-render-dynamic="{{renderDynamic}}" data-render-dynamic-suffix="{{renderDynamicSuffix}}">
35
+ <{{blockElementType}} {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} cmpl-core-group-container-styles {{classNameEntryPoint}} lazy-fade {{block.id}}" data-blockid="{{block.id}}" {{dataAttributeEntryPoint}} data-assetkey="group-container-v3" data-render-dynamic="{{renderDynamic}}" data-render-dynamic-suffix="{{renderDynamicSuffix}}">
36
36
 
37
37
  {% if block %}
38
38
  {% set block = block|merge({'videoIdPrefix' : block.id }) %}
@@ -57,7 +57,7 @@
57
57
  {% if fields.show_block_numbers and is_preview %}
58
58
  <div class="{{blockClassName}}__block-number">{{ loop.index }}</div>
59
59
  {% endif %}
60
- {{ include('blocks/' ~ (section.acf_fc_layout|replace({ '_': '-' })) ~ '.twig', { fields: section, options, block, is_preview, current_post, nav_menus, site, market_settings, market_slug, cta_styles, languages, imageSizes, loop: loop.index}, with_context = false, ignore_missing = true) }}
60
+ {{ include('blocks/' ~ (section.acf_fc_layout|replace({ '_': '-' })) ~ '.twig', { fields: section, options, block, is_preview, current_post, nav_menus, site, global_settings, market_settings, market_slug, cta_styles, languages, imageSizes, loop: loop.index}, with_context = false, ignore_missing = true) }}
61
61
  </div>
62
62
  {% endfor %}
63
63
  </div>
@@ -0,0 +1,2 @@
1
+ .site-copyright-notice-v3 {
2
+ }
@@ -2,7 +2,7 @@
2
2
  {% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields, block }, with_context = false) %}
3
3
  {% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields, block, blockClassName, options, cta_styles, environment, is_preview, nav_menus }, with_context = false) %}
4
4
  {% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields, block }, with_context = false) %}
5
- {% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
5
+ {% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
6
6
  {% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields: fields, block: block, displaytype: displaytype, is_preview: is_preview }, with_context = false) %}
7
7
  {% set imageSizes = '(min-width: 1440px) ' ~ (100 / fields.grid_layout.grid_columns_desktop|default(1))|round ~ 'vw, (min-width: 1024px) ' ~ (100 / fields.grid_layout.grid_columns_desktop|default(1))|round ~ 'vw, (min-width: 768px) ' ~ (100 / fields.grid_layout.grid_columns_portrait|default(1))|round ~ 'vw, (min-width: 300px) ' ~(100 / fields.grid_layout.grid_columns_mobile|default(1))|round ~ 'vw, 100vw' %}
8
8
  {% set layoutType = fields.layout_type|ru|default('grid') %}
@@ -27,7 +27,7 @@
27
27
  }
28
28
  </style>
29
29
 
30
- <{{blockElementType}} {{block.anchor ? "id=" ~ block.anchor : ''}} class="sub-group-container-v3 {{blockClassName}} {{block.className}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-jsload="false" data-assetkey="sub-group-container-v3" data-render-dynamic="{{renderDynamic}}" data-render-dynamic-suffix="{{renderDynamicSuffix}}">
30
+ <{{blockElementType}} {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-jsload="false" data-assetkey="sub-group-container-v3" data-render-dynamic="{{renderDynamic}}" data-render-dynamic-suffix="{{renderDynamicSuffix}}">
31
31
  {% if block %}
32
32
  {% set block = block|merge({'videoIdPrefix' : block.id }) %}
33
33
  {% endif %}
@@ -48,7 +48,7 @@
48
48
  }
49
49
  </style>
50
50
  <div class="{{blockClassName}}__block-container {{block.id}}">
51
- {{ include('blocks/' ~ (section.acf_fc_layout|replace({ '_': '-' })) ~ '.twig', { fields: section, options, block, is_preview, current, nav_menus, site, cta_styles, market_settings, languages, imageSizes, loop: loop.index }, with_context = false, ignore_missing = true) }}
51
+ {{ include('blocks/' ~ (section.acf_fc_layout|replace({ '_': '-' })) ~ '.twig', { fields: section, options, block, is_preview, current, nav_menus, site, cta_styles, global_settings, market_settings, languages, imageSizes, loop: loop.index }, with_context = false, ignore_missing = true) }}
52
52
  </div>
53
53
  {% endfor %}
54
54
  </div>
@@ -131,7 +131,7 @@ axios.post(parentURL, data, headers).then(function (response) {
131
131
  regEx,
132
132
  `${newBlockName.toLowerCase().replaceAll(/( |-)/g, '')}`
133
133
  )
134
- .replaceAll(`group-container-v3`, `${newBlockName}`);
134
+ .replace(/(?<!sub-)group-container-v3/g, `${newBlockName}`);
135
135
  fs.writeFile(
136
136
  `${themePath}/views/blocks/${newBlockName}.twig`,
137
137
  replaced,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "2.0.6",
3
+ "version": "2.0.9",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {