@total_onion/onion-library 2.0.67 → 2.0.71

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 (20) hide show
  1. package/.github/workflows/npm-publish.yml +2 -2
  2. package/components/block-accent-image-v3/accent-image-v3.twig +2 -2
  3. package/components/block-form-selection-v3/form-selection-v3.twig +16 -1
  4. package/components/block-market-selector-v3/market-selector-v3.twig +1 -1
  5. package/components/block-modal-form-v3/modal-form-v3.twig +12 -12
  6. package/components/block-social-networks-v3/social-networks-v3.twig +5 -6
  7. package/components/component-athena-body-close-v3/athena-body-close-v3.twig +2 -2
  8. package/components/component-athena-head-v3/athena-head-v3.twig +11 -11
  9. package/components/component-core-body-close-v3/core-body-close-v3.twig +2 -0
  10. package/components/component-core-body-open-v3/core-body-open-v3.twig +32 -0
  11. package/components/component-core-head-v3/core-head-v3.twig +63 -0
  12. package/components/component-text-editor-settings-variables-v3/text-editor-settings-variables-v3.twig +1 -1
  13. package/components/entrypoint-entry-point-html-v3/entry-point-html-v3.twig +4 -7
  14. package/components/entrypoint-entry-point-style-v3/entry-point-style-v3.twig +2 -5
  15. package/components/fields-image-management-service-v3/group_677813165b633.json +149 -0
  16. package/package.json +1 -1
  17. package/components/component-modal-popup-content/modal-popup-content.twig +0 -18
  18. package/components/component-modal-popup-content-v3/modal-popup-content-v3.twig +0 -18
  19. package/components/fields-modal-popup-content/group_689876f1ee3fc.json +0 -390
  20. package/components/fields-modal-popup-content/modal-popup-content.twig +0 -18
@@ -16,7 +16,7 @@ jobs:
16
16
  - uses: actions/checkout@v2
17
17
  - uses: actions/setup-node@v2
18
18
  with:
19
- node-version: 16
19
+ node-version: 20
20
20
  - run: npm ci
21
21
 
22
22
  publish-npm:
@@ -26,7 +26,7 @@ jobs:
26
26
  - uses: actions/checkout@v2
27
27
  - uses: actions/setup-node@v2
28
28
  with:
29
- node-version: 16
29
+ node-version: 20
30
30
  registry-url: https://registry.npmjs.org/
31
31
  - run: npm ci
32
32
  - run: npm publish
@@ -2,7 +2,7 @@
2
2
  {% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
3
3
  {% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields: fields, block: block, blockClassName, blockClassName }, with_context = false) %}
4
4
  {% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
5
- {% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
5
+ {% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
6
6
  {% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
7
7
  {% set sectionStyles = styleEntryPoint %}
8
8
  {{previewEntryPoint}}
@@ -11,7 +11,7 @@
11
11
  {{sectionStyles}}
12
12
  }
13
13
  </style>
14
- <section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
14
+ <section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} cmpl-core-group-container-styles {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
15
15
  {% if fields.accent_image_v3.enable_accent_image_v3 %}
16
16
  {{ include('components/accent-image-v3.twig', {fields, block, blockClassName, is_preview}, with_context = false, ignore_missing = true) }}
17
17
  {% endif %}
@@ -2,7 +2,7 @@
2
2
  {% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
3
3
  {% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields: fields, block: block, blockClassName, blockClassName }, with_context = false) %}
4
4
  {% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
5
- {% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
5
+ {% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
6
6
  {% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
7
7
 
8
8
  {% set sectionStyles = styleEntryPoint %}
@@ -41,6 +41,21 @@
41
41
  {% if fields.enable_title %}
42
42
  {{ include('blocks/standard-content-v3.twig', { fields: fields.form_title, options, block, is_preview, current_post, nav_menus, site, market_settings, market_slug, cta_styles, languages, imageSizes}, with_context = false, ignore_missing = true) }}
43
43
  {% endif %}
44
+ {% if fields.title %}
45
+ <h2 class="{{ blockClassName }}__title">{{ fields.title }}</h2>
46
+ {% endif %}
47
+ {% if fields.description %}
48
+ <p class="{{ blockClassName }}__description">{{ fields.description }}</p>
49
+ {% endif %}
50
+ {% if fields.cta_text and fields.cta_type == 'text' %}
51
+ <p class="{{ blockClassName }}__cta-text">{{ fields.cta_text }}</p>
52
+ {% endif %}
53
+ {% if fields.cta_type == 'icon' and iconImage %}
54
+ <div class="{{ blockClassName }}__cta-icon">
55
+ {{ ctaContent|raw }}
56
+ </div>
57
+ {% endif %}
58
+
44
59
  <!-- inline-form -->
45
60
  {{function('do_shortcode', '[cdbform id=' ~ fields.form ~ ']')}}
46
61
  <!-- end-inline-form -->
@@ -3,7 +3,7 @@
3
3
  {% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields, block }, with_context = false) %}
4
4
  {% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields, block, blockClassName, options, cta_styles, environment, market_settings, is_preview, nav_menus, imageSizes }, with_context = false) %}
5
5
  {% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields, block }, with_context = false) %}
6
- {% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
6
+ {% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
7
7
  {% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
8
8
 
9
9
 
@@ -2,7 +2,7 @@
2
2
  {% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
3
3
  {% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields: fields, block: block, blockClassName, blockClassName }, with_context = false) %}
4
4
  {% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
5
- {% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
5
+ {% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
6
6
  {% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
7
7
 
8
8
  {% set sectionStyles = styleEntryPoint %}
@@ -11,18 +11,18 @@
11
11
 
12
12
  <section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" style="{{sectionStyles}}" data-pattern-form-selection data-renderdynamic={{renderDynamic}} data-formid="{{fields.form}}" data-assetkey="{{blockClassName}}">
13
13
 
14
- <div class="{{ blockClassName }}__container-inline">
15
- <div class="{{ blockClassName }}__inner">
16
- <div class="{{ blockClassName }}__wrapper">
17
- {% if fields.title %}
18
- {{ fields.title }}
19
- {% endif %}
20
- <!-- inline-form -->
21
- {{function('do_shortcode', '[cdbform id=' ~ fields.form ~ ']')}}
22
- <!-- end-inline-form -->
23
- </div>
14
+ <div class="{{ blockClassName }}__container-inline">
15
+ <div class="{{ blockClassName }}__inner">
16
+ <div class="{{ blockClassName }}__wrapper">
17
+ {% if fields.title %}
18
+ {{ fields.title }}
19
+ {% endif %}
20
+ <!-- inline-form -->
21
+ {{function('do_shortcode', '[cdbform id=' ~ fields.form ~ ']')}}
22
+ <!-- end-inline-form -->
24
23
  </div>
25
24
  </div>
25
+ </div>
26
26
 
27
27
  {{htmlEntryPoint}}
28
- </section>
28
+ </section>
@@ -1,9 +1,8 @@
1
-
2
1
  {% set blockClassName = "social-networks-v3" %}
3
2
  {% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
4
3
  {% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields: fields, block: block, blockClassName, blockClassName }, with_context = false) %}
5
4
  {% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
6
- {% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
5
+ {% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
7
6
  {% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
8
7
 
9
8
  {% set sectionStyles = styleEntryPoint %}
@@ -15,10 +14,10 @@
15
14
  }
16
15
  </style>
17
16
  <section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" style="{{sectionStyles}}" data-assetkey="{{blockClassName}}">
18
- {% if fields.wysiwyg_editor is not empty %}
19
- {{ include('components/wysiwyg-editor-v3.twig', { fields, block, blockClassName}, with_context = false, ignore_missing = true) }}
20
- {% endif %}
17
+ {% if fields.wysiwyg_editor is not empty %}
18
+ {{ include('components/wysiwyg-editor-v3.twig', { fields, block, blockClassName}, with_context = false, ignore_missing = true) }}
19
+ {% endif %}
21
20
 
22
- {{ include('components/social-networks-v3.twig', {fields, block, blockClassName, is_preview, market_settings, options}, with_context = false, ignore_missing = true) }}
21
+ {{ include('components/social-networks-v3.twig', {fields, block, blockClassName, is_preview, market_settings, options}, with_context = false, ignore_missing = true) }}
23
22
  {{htmlEntryPoint}}
24
23
  </section>
@@ -1,2 +1,2 @@
1
- {{ include('components/e-shop-settings.twig', ignore_missing = true) }}
2
- {{ include('components/modal-popup-content.twig', ignore_missing = true) }}
1
+ {{ include('components/e-shop-settings-v3.twig', ignore_missing = true) }}
2
+ {{ include('components/modal-popup-content-v3.twig', ignore_missing = true) }}
@@ -42,22 +42,22 @@
42
42
 
43
43
  <script type="speculationrules">
44
44
  {
45
- "prefetch": [
46
- {
47
- "where": { "href_matches": ["/"] },
48
- "eagerness": "eager"
49
- }
50
- ]
51
- }
45
+ "prefetch": [
46
+ {
47
+ "where": { "href_matches": ["/"] },
48
+ "eagerness": "eager"
49
+ }
50
+ ]
51
+ }
52
52
  </script>
53
53
  {# speculation api end #}
54
54
 
55
55
 
56
56
  {# core design settings #}
57
- {{function('core_critical_css').0}}
58
57
  {{function('core_design_settings_v3').0}}
58
+ {{function('core_site_global_v3').0}}
59
+ {{function('core_font_modifiers_v3').0}}
60
+ {{function('core_critical_css_v3').0}}
59
61
  {{function('core_typography_v3').0}}
60
- {{function('core_font_modifiers').0}}
61
- {{function('core_themes').0}}
62
- {{function('core_cta').0}}
62
+ {{function('core_themes_v3').0}}
63
63
  {# core design settings end #}
@@ -0,0 +1,2 @@
1
+ {{ include('components/e-shop-settings-v3.twig', ignore_missing = true) }}
2
+ {{ include('components/modal-popup-content-v3.twig', ignore_missing = true) }}
@@ -0,0 +1,32 @@
1
+ {{ include('components/background-image-body.twig', ignore_missing = true) }}
2
+ {{ include('components/background-video-body.twig', ignore_missing = true) }}
3
+
4
+ {% set pageProperties = include('components/page-properties.twig') %}
5
+ {% set bodyStyles = pageProperties %}
6
+
7
+ <style>
8
+ body {
9
+ {{bodyStyles}}
10
+ }
11
+ main {
12
+ --main-container-background-image: url({{get_image(options.main_container_background_image).src}});
13
+ }
14
+ </style>
15
+
16
+ {% if options.enable_global_content_max_width_on_main %}
17
+ <style>
18
+ @media(min-width: {{options.global_content_max_width_setting}}px) {
19
+ main {
20
+ --global-content-max-width-main: var(--global-content-max-width);
21
+ --screen-width: calc(var(--global-content-max-width-setting) * 1px);
22
+ --font-reference: calc(var(--global-content-max-width-setting) * 1px);
23
+ }
24
+ }
25
+ </style>
26
+ {% else %}
27
+ <style>
28
+ main {
29
+ --global-content-max-width-main: 100%;
30
+ }
31
+ </style>
32
+ {% endif %}
@@ -0,0 +1,63 @@
1
+ {# noscript #}
2
+ <noscript>
3
+ <style>
4
+ .lazy-fade {
5
+ opacity: 1 !important;
6
+ }
7
+ .js-enabled-hide {
8
+ display: block !important;
9
+ }
10
+ </style>
11
+ </noscript>
12
+ {# noscript end #}
13
+
14
+
15
+ {# Global Preload #}
16
+ {% for item in options.global_preload_options.dns_prefetch_items %}
17
+ {% if item.url is not empty %}
18
+ <link rel="dns-prefetch" href="{{item.url}}" crossorigin/>
19
+ {% endif %}
20
+ {% endfor %}
21
+
22
+ {% for item in options.global_preload_options.preconnect_items %}
23
+ {% if item.url is not empty %}
24
+ <link rel="preconnect" href="{{item.url}}"/>
25
+ {% endif %}
26
+ {% endfor %}
27
+
28
+ {% for item in options.global_preload_options.preload_items %}
29
+ {% if item.url is not empty %}
30
+ {% set type = item.type|ru %}
31
+ <link rel="preload" href="{{item.url}}" as={{type}} {{type == 'font' or type == 'fetch' ? 'crossorigin' : null}}/>
32
+ {% endif %}
33
+ {% endfor %}
34
+ {# Global Preload end #}
35
+
36
+ {# speculation api #}
37
+ {% set navLinksString = '' %}
38
+ {% for item in nav_menus.primary_menu.items %}
39
+ {% set navLinksString = navLinksString ~ '"' ~ item.url ~ '",' %}
40
+ {% endfor %}
41
+ {% set navLinksString = navLinksString|trim(',') %}
42
+
43
+ <script type="speculationrules">
44
+ {
45
+ "prefetch": [
46
+ {
47
+ "where": { "href_matches": ["/"] },
48
+ "eagerness": "eager"
49
+ }
50
+ ]
51
+ }
52
+ </script>
53
+ {# speculation api end #}
54
+
55
+
56
+ {# core design settings #}
57
+ {{function('core_design_settings_v3').0}}
58
+ {{function('core_site_global_v3').0}}
59
+ {{function('core_font_modifiers_v3').0}}
60
+ {{function('core_critical_css_v3').0}}
61
+ {{function('core_typography_v3').0}}
62
+ {{function('core_themes_v3').0}}
63
+ {# core design settings end #}
@@ -31,7 +31,7 @@
31
31
  {% set defaultFontWeightDesktop = '--default-font-weight-desktop: ' ~ fields.desktop_default_font_weight|ru ~ ';' %}
32
32
  {% endif %}
33
33
  {% set displaytype = 'grid' %}
34
- {% set responsiveShowHide = include('components/responsive-show-hide.twig', { fields, block, blockClassName, displaytype, is_preview }, with_context = false) %}
34
+ {% set responsiveShowHide = include('components/responsive-show-hide-v3.twig', { fields, block, blockClassName, displaytype, is_preview }, with_context = false) %}
35
35
  {% if fields.mobile_default_font_style %}
36
36
  {% set defaultFontStyleMobile = '--default-font-style-mobile: ' ~ fields.mobile_default_font_style|ru ~ ';' %}
37
37
  {% endif %}
@@ -1,11 +1,8 @@
1
1
  {% if fields.buy_now_button.enable_buy_now_button %}
2
- {{ include('components/buy-now-button.twig', {fields, block, blockClassName, options, environment}, with_context = false, ignore_missing = true) }}
2
+ {{ include('components/buy-now-button-v3.twig', {fields, block, blockClassName, options, environment}, with_context = false, ignore_missing = true) }}
3
3
  {% endif %}
4
4
  {% if fields.enable_scrolling_banner %}
5
- {{ include('components/scrolling-banner.twig', {fields, block, blockClassName}, with_context = false, ignore_missing = true) }}
6
- {% endif %}
7
- {% if fields.scrolling_posts.enable_scrolling_posts %}
8
- {{ include('components/scrolling-posts.twig', {fields, block, blockClassName}, with_context = false, ignore_missing = true) }}
5
+ {{ include('components/scrolling-banner-v3.twig', {fields, block, blockClassName}, with_context = false, ignore_missing = true) }}
9
6
  {% endif %}
10
7
  {% if fields.accent_image_v2.enable_accent_image_v2 %}
11
8
  {{ include('components/accent-image-v3.twig', {fields, block, blockClassName, is_preview}, with_context = false, ignore_missing = true) }}
@@ -20,10 +17,10 @@
20
17
  {{ include('components/content-box-v3.twig', { fields, block, options, market_settings, cta_styles, blockClassName, nav_menus, languages }, with_context = false) }}
21
18
  {% endif %}
22
19
  {% if fields.animations.enable_animations %}
23
- {{ include('components/animations-style.twig', { fields, block, blockClassName }, with_context = false) }}
20
+ {{ include('components/animations-style-v3.twig', { fields, block, blockClassName }, with_context = false) }}
24
21
  {% endif %}
25
22
  {% if fields.lottie_animations.enable_lottie_animations %}
26
- {{ include('components/lottie-animations.twig', { fields, block, blockClassName }, with_context = false) }}
23
+ {{ include('components/lottie-animations-v3.twig', { fields, block, blockClassName }, with_context = false) }}
27
24
  {% endif %}
28
25
  {% if fields.enable_gradient_overlay %}
29
26
  {{ include('components/gradient-overlay-v3.twig', { fields, block, blockClassName, type : 'html' }, with_context = false) }}
@@ -5,10 +5,7 @@
5
5
  {% if fields.block_overflow is defined or fields.block_background_colour %}
6
6
  {{ include('components/block-settings-v3.twig', {fields, block}, with_context = false, ignore_missing = true) }}
7
7
  {% endif %}
8
- {{ include('components/responsive-show-hide.twig', {fields, block, displaytype}, with_context = false, ignore_missing = true) }}
8
+ {{ include('components/responsive-show-hide-v3-v3.twig', {fields, block, displaytype}, with_context = false, ignore_missing = true) }}
9
9
  {% if fields.enable_global_content_max_width %}
10
- {{ include('components/global-content-max-width.twig', {fields, block, is_preview}, with_context = false, ignore_missing = true) }}
11
- {% endif %}
12
- {% if fields.enable_gradient_overlay %}
13
- {{ include('components/gradient-overlay.twig', {fields, block, is_preview, type : 'style'}, with_context = false, ignore_missing = true) }}
10
+ {{ include('components/global-content-max-width-v3.twig', {fields, block, is_preview}, with_context = false, ignore_missing = true) }}
14
11
  {% endif %}
@@ -0,0 +1,149 @@
1
+ {
2
+ "key": "group_677813165b633",
3
+ "title": "Fields: Image Management Service v3",
4
+ "fields": [
5
+ {
6
+ "key": "field_677813fc392b5",
7
+ "label": "Image management",
8
+ "name": "image_management",
9
+ "aria-label": "",
10
+ "type": "group",
11
+ "instructions": "",
12
+ "required": 0,
13
+ "conditional_logic": 0,
14
+ "wrapper": {
15
+ "width": "",
16
+ "class": "",
17
+ "id": ""
18
+ },
19
+ "wpml_cf_preferences": 1,
20
+ "layout": "block",
21
+ "acfe_seamless_style": 0,
22
+ "acfe_group_modal": 0,
23
+ "acfe_group_modal_close": 0,
24
+ "acfe_group_modal_button": "",
25
+ "acfe_group_modal_size": "large",
26
+ "sub_fields": [
27
+ {
28
+ "key": "field_677813171a4fa",
29
+ "label": "Enable image service",
30
+ "name": "enable_image_service",
31
+ "aria-label": "",
32
+ "type": "true_false",
33
+ "instructions": "",
34
+ "required": 0,
35
+ "conditional_logic": 0,
36
+ "wrapper": {
37
+ "width": "",
38
+ "class": "",
39
+ "id": ""
40
+ },
41
+ "wpml_cf_preferences": 1,
42
+ "message": "",
43
+ "default_value": 0,
44
+ "ui_on_text": "",
45
+ "ui_off_text": "",
46
+ "ui": 1,
47
+ "style": ""
48
+ },
49
+ {
50
+ "key": "field_6778137e1a4fb",
51
+ "label": "Image service",
52
+ "name": "image_service",
53
+ "aria-label": "",
54
+ "type": "select",
55
+ "instructions": "",
56
+ "required": 0,
57
+ "conditional_logic": [
58
+ [
59
+ {
60
+ "field": "field_677813171a4fa",
61
+ "operator": "==",
62
+ "value": "1"
63
+ }
64
+ ]
65
+ ],
66
+ "wrapper": {
67
+ "width": "",
68
+ "class": "",
69
+ "id": ""
70
+ },
71
+ "wpml_cf_preferences": 1,
72
+ "choices": {
73
+ "cloudflare": "Cloudflare",
74
+ "imagekit": "Imagekit"
75
+ },
76
+ "default_value": false,
77
+ "return_format": "value",
78
+ "multiple": 0,
79
+ "max": "",
80
+ "prepend": "",
81
+ "append": "",
82
+ "allow_null": 0,
83
+ "ui": 0,
84
+ "ajax": 0,
85
+ "placeholder": "",
86
+ "allow_custom": 0,
87
+ "search_placeholder": "",
88
+ "min": ""
89
+ },
90
+ {
91
+ "key": "field_6778255b88595",
92
+ "label": "Imagekit Endpoint",
93
+ "name": "imagekit_endpoint",
94
+ "aria-label": "",
95
+ "type": "text",
96
+ "instructions": "",
97
+ "required": 0,
98
+ "conditional_logic": [
99
+ [
100
+ {
101
+ "field": "field_6778137e1a4fb",
102
+ "operator": "==",
103
+ "value": "imagekit"
104
+ }
105
+ ]
106
+ ],
107
+ "wrapper": {
108
+ "width": "",
109
+ "class": "",
110
+ "id": ""
111
+ },
112
+ "wpml_cf_preferences": 2,
113
+ "default_value": "",
114
+ "maxlength": "",
115
+ "placeholder": "",
116
+ "prepend": "",
117
+ "append": ""
118
+ }
119
+ ]
120
+ }
121
+ ],
122
+ "location": [
123
+ [
124
+ {
125
+ "param": "options_page",
126
+ "operator": "==",
127
+ "value": "global-settings"
128
+ }
129
+ ]
130
+ ],
131
+ "menu_order": 0,
132
+ "position": "normal",
133
+ "style": "default",
134
+ "label_placement": "left",
135
+ "instruction_placement": "label",
136
+ "hide_on_screen": "",
137
+ "active": true,
138
+ "description": "",
139
+ "show_in_rest": 0,
140
+ "acfe_autosync": [
141
+ "json"
142
+ ],
143
+ "acfml_field_group_mode": "translation",
144
+ "acfe_form": 0,
145
+ "acfe_display_title": "",
146
+ "acfe_meta": "",
147
+ "acfe_note": "",
148
+ "modified": 1758121738
149
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "2.0.67",
3
+ "version": "2.0.71",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,18 +0,0 @@
1
- {% for item in market_settings.modal_popup_content.modal_popup_content_items %}
2
- {% set contentId = item.modal_popup_content_id|lower %}
3
- <div class="{{ contentId }}-popup" style="display: none;">
4
- <div class="{{ contentId }}__content" data-modalpopupcontent="{{ contentId }}">
5
- {% if item.acf_fc_layout == 'raw_html' %}
6
- {{item.raw_html}}
7
- {% endif %}
8
- {% if item.acf_fc_layout == 'form_selection' %}
9
- {% set data = {'title' : item.title, 'form' : item.form.ID} %}
10
- {{ include('blocks/modal-form-v3.twig', { fields: data, options, block, is_preview, current_post, nav_menus, site, market_settings, market_slug, cta_styles, languages, imageSizes}, with_context = false, ignore_missing = true) }}
11
- {% endif %}
12
- {% if item.acf_fc_layout == 'market_selector_v3' %}
13
- {% set data = {'heading_text' : item.heading_text, 'logo' : item.logo, 'selector_type': 'inline'} %}
14
- {{ include('blocks/market-selector-v3.twig', { fields: data, options, block, is_preview, current_post, nav_menus, site, market_settings, market_slug, cta_styles, languages, imageSizes}, with_context = false, ignore_missing = true) }}
15
- {% endif %}
16
- </div>
17
- </div>
18
- {% endfor %}
@@ -1,18 +0,0 @@
1
- {% for item in market_settings.modal_popup_content.modal_popup_content_items %}
2
- {% set contentId = item.modal_popup_content_id|lower %}
3
- <div class="{{ contentId }}-popup" style="display: none;">
4
- <div class="{{ contentId }}__content" data-modalpopupcontent="{{ contentId }}">
5
- {% if item.acf_fc_layout == 'raw_html' %}
6
- {{item.raw_html}}
7
- {% endif %}
8
- {% if item.acf_fc_layout == 'form_selection' %}
9
- {% set data = {'title' : item.title, 'form' : item.form.ID} %}
10
- {{ include('blocks/modal-form-v3.twig', { fields: data, options, block, is_preview, current_post, nav_menus, site, market_settings, market_slug, cta_styles, languages, imageSizes}, with_context = false, ignore_missing = true) }}
11
- {% endif %}
12
- {% if item.acf_fc_layout == 'market_selector_v3' %}
13
- {% set data = {'heading_text' : item.heading_text, 'logo' : item.logo, 'selector_type': 'inline'} %}
14
- {{ include('blocks/market-selector-v3.twig', { fields: data, options, block, is_preview, current_post, nav_menus, site, market_settings, market_slug, cta_styles, languages, imageSizes}, with_context = false, ignore_missing = true) }}
15
- {% endif %}
16
- </div>
17
- </div>
18
- {% endfor %}
@@ -1,390 +0,0 @@
1
- {
2
- "key": "group_689876f1ee3fc",
3
- "title": "Fields: Modal Popup Content",
4
- "fields": [
5
- {
6
- "key": "field_6898a645e88fd",
7
- "label": "Modal Popup Content",
8
- "name": "modal_popup_content",
9
- "aria-label": "",
10
- "type": "group",
11
- "instructions": "",
12
- "required": 0,
13
- "conditional_logic": 0,
14
- "wrapper": {
15
- "width": "",
16
- "class": "",
17
- "id": ""
18
- },
19
- "wpml_cf_preferences": 3,
20
- "layout": "block",
21
- "acfe_seamless_style": 0,
22
- "acfe_group_modal": 0,
23
- "acfe_group_modal_close": 0,
24
- "acfe_group_modal_button": "",
25
- "acfe_group_modal_size": "large",
26
- "sub_fields": [
27
- {
28
- "key": "field_689876f3d30ee",
29
- "label": "Modal Popup Content Items",
30
- "name": "modal_popup_content_items",
31
- "aria-label": "",
32
- "type": "flexible_content",
33
- "instructions": "",
34
- "required": 0,
35
- "conditional_logic": 0,
36
- "wrapper": {
37
- "width": "",
38
- "class": "",
39
- "id": ""
40
- },
41
- "wpml_cf_preferences": 3,
42
- "acfe_flexible_advanced": 1,
43
- "acfe_flexible_stylised_button": 1,
44
- "acfe_flexible_layouts_templates": 0,
45
- "acfe_flexible_layouts_placeholder": 0,
46
- "acfe_flexible_layouts_thumbnails": 0,
47
- "acfe_flexible_layouts_settings": 0,
48
- "acfe_flexible_layouts_locations": 0,
49
- "acfe_flexible_async": ["title", "layout"],
50
- "acfe_flexible_add_actions": ["copy", "lock", "close"],
51
- "acfe_flexible_remove_button": [],
52
- "acfe_flexible_layouts_state": "user",
53
- "acfe_flexible_modal_edit": {
54
- "acfe_flexible_modal_edit_enabled": "0",
55
- "acfe_flexible_modal_edit_size": "large"
56
- },
57
- "acfe_flexible_modal": {
58
- "acfe_flexible_modal_enabled": "0",
59
- "acfe_flexible_modal_title": false,
60
- "acfe_flexible_modal_size": "full",
61
- "acfe_flexible_modal_col": "4",
62
- "acfe_flexible_modal_categories": false
63
- },
64
- "acfe_flexible_grid": {
65
- "acfe_flexible_grid_enabled": "0",
66
- "acfe_flexible_grid_align": "center",
67
- "acfe_flexible_grid_valign": "stretch",
68
- "acfe_flexible_grid_wrap": false
69
- },
70
- "layouts": {
71
- "layout_6898774bed496": {
72
- "key": "layout_6898774bed496",
73
- "name": "raw_html",
74
- "label": "Raw Html",
75
- "display": "block",
76
- "sub_fields": [
77
- {
78
- "key": "field_6898a78431d84",
79
- "label": "Modal Popup Content ID",
80
- "name": "modal_popup_content_id",
81
- "aria-label": "",
82
- "type": "text",
83
- "instructions": "",
84
- "required": 0,
85
- "conditional_logic": 0,
86
- "wrapper": {
87
- "width": "",
88
- "class": "",
89
- "id": ""
90
- },
91
- "wpml_cf_preferences": 2,
92
- "default_value": "",
93
- "maxlength": "",
94
- "placeholder": "",
95
- "prepend": "",
96
- "append": ""
97
- },
98
- {
99
- "key": "field_6898776ad30f0",
100
- "label": "Raw Html",
101
- "name": "raw_html",
102
- "aria-label": "",
103
- "type": "acfe_code_editor",
104
- "instructions": "",
105
- "required": 0,
106
- "conditional_logic": 0,
107
- "wrapper": {
108
- "width": "",
109
- "class": "",
110
- "id": ""
111
- },
112
- "wpml_cf_preferences": 2,
113
- "default_value": "",
114
- "placeholder": "",
115
- "mode": "text/html",
116
- "lines": 1,
117
- "indent_unit": 4,
118
- "maxlength": "",
119
- "rows": 4,
120
- "max_rows": "",
121
- "return_format": []
122
- }
123
- ],
124
- "min": "",
125
- "max": "",
126
- "acfe_flexible_render_template": false,
127
- "acfe_flexible_render_style": false,
128
- "acfe_flexible_render_script": false,
129
- "acfe_flexible_thumbnail": false,
130
- "acfe_flexible_settings": false,
131
- "acfe_flexible_settings_size": "medium",
132
- "acfe_layout_locations": [],
133
- "acfe_flexible_modal_edit_size": false,
134
- "acfe_flexible_category": false,
135
- "acfe_layout_col": "auto",
136
- "acfe_layout_allowed_col": false
137
- },
138
- "layout_6898aed1ae16e": {
139
- "key": "layout_6898aed1ae16e",
140
- "name": "form_selection",
141
- "label": "Form selection",
142
- "display": "block",
143
- "sub_fields": [
144
- {
145
- "key": "field_6898afb6ffcd5",
146
- "label": "Modal Popup Content ID",
147
- "name": "modal_popup_content_id",
148
- "aria-label": "",
149
- "type": "text",
150
- "instructions": "",
151
- "required": 0,
152
- "conditional_logic": 0,
153
- "wrapper": {
154
- "width": "",
155
- "class": "",
156
- "id": ""
157
- },
158
- "default_value": "",
159
- "maxlength": "",
160
- "allow_in_bindings": 1,
161
- "placeholder": "",
162
- "prepend": "",
163
- "append": "",
164
- "wpml_cf_preferences": 2
165
- },
166
- {
167
- "key": "field_6898aee0ae170",
168
- "label": "Form",
169
- "name": "form",
170
- "aria-label": "",
171
- "type": "post_object",
172
- "instructions": "",
173
- "required": 0,
174
- "conditional_logic": 0,
175
- "wrapper": {
176
- "width": "",
177
- "class": "",
178
- "id": ""
179
- },
180
- "post_type": ["cdbform"],
181
- "post_status": "",
182
- "taxonomy": "",
183
- "return_format": "object",
184
- "multiple": 0,
185
- "save_custom": 0,
186
- "save_post_status": "publish",
187
- "acfe_add_post": 0,
188
- "acfe_edit_post": 0,
189
- "acfe_bidirectional": {
190
- "acfe_bidirectional_enabled": "0"
191
- },
192
- "max": "",
193
- "allow_null": 0,
194
- "allow_in_bindings": 1,
195
- "bidirectional": 0,
196
- "ui": 1,
197
- "bidirectional_target": [],
198
- "save_post_type": "",
199
- "min": "",
200
- "wpml_cf_preferences": 3
201
- },
202
- {
203
- "key": "field_689a187215a55",
204
- "label": "Enable Title",
205
- "name": "enable_title",
206
- "aria-label": "",
207
- "type": "true_false",
208
- "instructions": "",
209
- "required": 0,
210
- "conditional_logic": 0,
211
- "wrapper": {
212
- "width": "",
213
- "class": "",
214
- "id": ""
215
- },
216
- "message": "",
217
- "default_value": 0,
218
- "style": "",
219
- "allow_in_bindings": 0,
220
- "ui_on_text": "",
221
- "ui_off_text": "",
222
- "ui": 1,
223
- "wpml_cf_preferences": 3
224
- },
225
- {
226
- "key": "field_689a187e15a56",
227
- "label": "Title",
228
- "name": "title",
229
- "aria-label": "",
230
- "type": "wysiwyg",
231
- "instructions": "",
232
- "required": 0,
233
- "conditional_logic": [
234
- [
235
- {
236
- "field": "field_689a187215a55",
237
- "operator": "==",
238
- "value": "1"
239
- }
240
- ]
241
- ],
242
- "wrapper": {
243
- "width": "",
244
- "class": "",
245
- "id": ""
246
- },
247
- "default_value": "",
248
- "acfe_wysiwyg_height": 300,
249
- "acfe_wysiwyg_max_height": "",
250
- "acfe_wysiwyg_valid_elements": "",
251
- "acfe_wysiwyg_custom_style": "",
252
- "acfe_wysiwyg_disable_wp_style": 0,
253
- "acfe_wysiwyg_autoresize": 0,
254
- "acfe_wysiwyg_disable_resize": 0,
255
- "acfe_wysiwyg_remove_path": 0,
256
- "acfe_wysiwyg_menubar": 0,
257
- "acfe_wysiwyg_transparent": 0,
258
- "acfe_wysiwyg_merge_toolbar": 0,
259
- "acfe_wysiwyg_custom_toolbar": 0,
260
- "allow_in_bindings": 0,
261
- "tabs": "visual",
262
- "toolbar": "formatselect_align_bold_italic_underline_link_removeformat",
263
- "media_upload": 0,
264
- "delay": 0,
265
- "acfe_wysiwyg_auto_init": 0,
266
- "acfe_wysiwyg_min_height": 300,
267
- "acfe_wysiwyg_toolbar_buttons": [],
268
- "wpml_cf_preferences": 2
269
- }
270
- ],
271
- "min": "",
272
- "max": "",
273
- "acfe_flexible_render_template": false,
274
- "acfe_flexible_render_style": false,
275
- "acfe_flexible_render_script": false,
276
- "acfe_flexible_thumbnail": false,
277
- "acfe_flexible_settings": false,
278
- "acfe_flexible_settings_size": "medium",
279
- "acfe_layout_locations": [],
280
- "acfe_flexible_modal_edit_size": false,
281
- "acfe_flexible_category": false,
282
- "acfe_layout_col": "auto",
283
- "acfe_layout_allowed_col": false
284
- },
285
- "layout_68af324074c41": {
286
- "key": "layout_68af324074c41",
287
- "name": "market_selector_v3",
288
- "label": "Market Selector v3",
289
- "display": "block",
290
- "sub_fields": [
291
- {
292
- "key": "field_68af4c8575eaf",
293
- "label": "Modal Popup Content ID",
294
- "name": "modal_popup_content_id",
295
- "aria-label": "",
296
- "type": "text",
297
- "instructions": "",
298
- "required": 0,
299
- "conditional_logic": 0,
300
- "wrapper": {
301
- "width": "",
302
- "class": "",
303
- "id": ""
304
- },
305
- "wpml_cf_preferences": 2,
306
- "default_value": "",
307
- "maxlength": "",
308
- "placeholder": "",
309
- "prepend": "",
310
- "append": ""
311
- },
312
- {
313
- "key": "field_68af326a74c48",
314
- "label": "market selector fields",
315
- "name": "market_selector_fields",
316
- "aria-label": "",
317
- "type": "clone",
318
- "instructions": "",
319
- "required": 0,
320
- "conditional_logic": 0,
321
- "wrapper": {
322
- "width": "",
323
- "class": "",
324
- "id": ""
325
- },
326
- "wpml_cf_preferences": 3,
327
- "clone": ["group_68752075dd831"],
328
- "display": "seamless",
329
- "layout": "block",
330
- "prefix_label": 0,
331
- "prefix_name": 0,
332
- "acfe_seamless_style": 0,
333
- "acfe_clone_modal": 0,
334
- "acfe_clone_modal_close": 0,
335
- "acfe_clone_modal_button": "",
336
- "acfe_clone_modal_size": "large"
337
- }
338
- ],
339
- "min": "",
340
- "max": "",
341
- "acfe_flexible_render_template": false,
342
- "acfe_flexible_render_style": false,
343
- "acfe_flexible_render_script": false,
344
- "acfe_flexible_thumbnail": false,
345
- "acfe_flexible_settings": false,
346
- "acfe_flexible_settings_size": "medium",
347
- "acfe_layout_locations": [],
348
- "acfe_flexible_modal_edit_size": false,
349
- "acfe_flexible_category": false,
350
- "acfe_layout_col": "auto",
351
- "acfe_layout_allowed_col": false
352
- }
353
- },
354
- "min": "",
355
- "max": "",
356
- "button_label": "Add Row",
357
- "acfe_flexible_hide_empty_message": false,
358
- "acfe_flexible_empty_message": "",
359
- "acfe_flexible_layouts_previews": false,
360
- "acfe_flexible_grid_container": false
361
- }
362
- ]
363
- }
364
- ],
365
- "location": [
366
- [
367
- {
368
- "param": "options_page",
369
- "operator": "==",
370
- "value": "market-settings"
371
- }
372
- ]
373
- ],
374
- "menu_order": 0,
375
- "position": "normal",
376
- "style": "default",
377
- "label_placement": "left",
378
- "instruction_placement": "label",
379
- "hide_on_screen": "",
380
- "active": true,
381
- "description": "",
382
- "show_in_rest": 0,
383
- "acfe_autosync": ["json"],
384
- "acfml_field_group_mode": "localization",
385
- "acfe_form": 0,
386
- "acfe_display_title": "",
387
- "acfe_meta": "",
388
- "acfe_note": "",
389
- "modified": 1756318897
390
- }
@@ -1,18 +0,0 @@
1
- {% for item in market_settings.modal_popup_content.modal_popup_content_items %}
2
- {% set contentId = item.modal_popup_content_id|lower %}
3
- <div class="{{ contentId }}-popup" style="display: none;">
4
- <div class="{{ contentId }}__content" data-modalpopupcontent="{{ contentId }}">
5
- {% if item.acf_fc_layout == 'raw_html' %}
6
- {{item.raw_html}}
7
- {% endif %}
8
- {% if item.acf_fc_layout == 'form_selection' %}
9
- {% set data = {'title' : item.title, 'form' : item.form.ID} %}
10
- {{ include('blocks/modal-form-v3.twig', { fields: data, options, block, is_preview, current_post, nav_menus, site, market_settings, market_slug, cta_styles, languages, imageSizes}, with_context = false, ignore_missing = true) }}
11
- {% endif %}
12
- {% if item.acf_fc_layout == 'market_selector_v3' %}
13
- {% set data = {'heading_text' : item.heading_text, 'logo' : item.logo, 'selector_type': 'inline'} %}
14
- {{ include('blocks/market-selector-v3.twig', { fields: data, options, block, is_preview, current_post, nav_menus, site, market_settings, market_slug, cta_styles, languages, imageSizes}, with_context = false, ignore_missing = true) }}
15
- {% endif %}
16
- </div>
17
- </div>
18
- {% endfor %}