@total_onion/onion-library 1.0.117 → 1.0.119

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.
@@ -65,6 +65,15 @@
65
65
  }
66
66
  ]
67
67
  ],
68
+ "conditional_logic": [
69
+ [
70
+ {
71
+ "field": "field_6890b84053bf0",
72
+ "operator": "==",
73
+ "value": "post-info"
74
+ }
75
+ ]
76
+ ],
68
77
  "wrapper": {
69
78
  "width": "",
70
79
  "class": "",
@@ -135,6 +144,45 @@
135
144
  "min": "",
136
145
  "max": ""
137
146
  },
147
+ {
148
+ "key": "field_6890b82d53bef",
149
+ "label": "Taxonomy",
150
+ "name": "taxonomy",
151
+ "aria-label": "",
152
+ "type": "taxonomy",
153
+ "instructions": "",
154
+ "required": 0,
155
+ "conditional_logic": [
156
+ [
157
+ {
158
+ "field": "field_6890b84053bf0",
159
+ "operator": "==",
160
+ "value": "post-taxonomy"
161
+ }
162
+ ]
163
+ ],
164
+ "wrapper": {
165
+ "width": "",
166
+ "class": "",
167
+ "id": ""
168
+ },
169
+ "wpml_cf_preferences": 3,
170
+ "taxonomy": "product_category",
171
+ "add_term": 1,
172
+ "save_terms": 0,
173
+ "load_terms": 0,
174
+ "return_format": "id",
175
+ "field_type": "select",
176
+ "allow_null": 0,
177
+ "acfe_bidirectional": {
178
+ "acfe_bidirectional_enabled": "0"
179
+ },
180
+ "bidirectional": 0,
181
+ "multiple": 0,
182
+ "bidirectional_target": [],
183
+ "min": "",
184
+ "max": ""
185
+ },
138
186
  {
139
187
  "key": "field_686642953fa84",
140
188
  "label": "Post fields",
@@ -305,7 +353,6 @@
305
353
  "wpml_cf_preferences": 3,
306
354
  "clone": [
307
355
  "group_68822860bda9f"
308
- "group_68822860bda9f"
309
356
  ],
310
357
  "display": "seamless",
311
358
  "layout": "block",
@@ -423,11 +470,9 @@
423
470
  "wpml_cf_preferences": 3,
424
471
  "clone": [
425
472
  "group_68822860bda9f"
426
- "group_68822860bda9f"
427
473
  ],
428
474
  "display": "seamless",
429
475
  "layout": "block",
430
- "layout": "block",
431
476
  "prefix_label": 0,
432
477
  "prefix_name": 0,
433
478
  "acfe_seamless_style": 0,
@@ -542,7 +587,6 @@
542
587
  "wpml_cf_preferences": 3,
543
588
  "clone": [
544
589
  "group_68822860bda9f"
545
- "group_68822860bda9f"
546
590
  ],
547
591
  "display": "seamless",
548
592
  "layout": "block",
@@ -660,7 +704,6 @@
660
704
  "wpml_cf_preferences": 3,
661
705
  "clone": [
662
706
  "group_68822860bda9f"
663
- "group_68822860bda9f"
664
707
  ],
665
708
  "display": "seamless",
666
709
  "layout": "block",
@@ -756,7 +799,6 @@
756
799
  "id": ""
757
800
  },
758
801
  "wpml_cf_preferences": 3,
759
- "wpml_cf_preferences": 3,
760
802
  "placement": "top",
761
803
  "endpoint": 0,
762
804
  "no_preference": 0,
@@ -779,7 +821,6 @@
779
821
  "wpml_cf_preferences": 3,
780
822
  "clone": [
781
823
  "group_68822860bda9f"
782
- "group_68822860bda9f"
783
824
  ],
784
825
  "display": "seamless",
785
826
  "layout": "block",
@@ -806,7 +847,6 @@
806
847
  "id": ""
807
848
  },
808
849
  "wpml_cf_preferences": 3,
809
- "wpml_cf_preferences": 3,
810
850
  "placement": "top",
811
851
  "endpoint": 0,
812
852
  "no_preference": 0,
@@ -1016,7 +1056,6 @@
1016
1056
  "id": ""
1017
1057
  },
1018
1058
  "wpml_cf_preferences": 3,
1019
- "wpml_cf_preferences": 3,
1020
1059
  "placement": "top",
1021
1060
  "endpoint": 0,
1022
1061
  "no_preference": 0,
@@ -1081,7 +1120,6 @@
1081
1120
  "wpml_cf_preferences": 3,
1082
1121
  "clone": [
1083
1122
  "group_68822860bda9f"
1084
- "group_68822860bda9f"
1085
1123
  ],
1086
1124
  "display": "seamless",
1087
1125
  "layout": "block",
@@ -1952,5 +1990,5 @@
1952
1990
  "acfe_display_title": "",
1953
1991
  "acfe_meta": "",
1954
1992
  "acfe_note": "",
1955
- "modified": 1754307212
1993
+ "modified": 1754317399
1956
1994
  }
@@ -8,8 +8,15 @@
8
8
  {% set gridGapMults = include('components/grid-gap-mults.twig', { fields: fields, block: block }, with_context = false) %}
9
9
  {% set gridLayoutContainer = include('components/grid-layout-container.twig') %}
10
10
  {% set sectionStyles = styleEntryPoint ~ gridGapMults ~ gridLayoutContainer %}
11
- {# {% set post = get_post(fields.post) %} #}
12
- {% set post = get_term(fields.taxonomy) %}
11
+
12
+ {% if fields.post_info_type|ru == 'post-info' %}
13
+ {% set post = get_post(fields.post) %}
14
+ {% endif %}
15
+ {% if fields.post_info_type|ru == 'post-taxonomy' %}
16
+ {% set post = get_term(fields.taxonomy) %}
17
+ {% endif %}
18
+
19
+
13
20
  {% set postTypeFields = fields.post_fields %}
14
21
  {% set layout = fields.layout|ru %}
15
22
  {% set imageSizes = imageSizes %}
@@ -37,11 +37,8 @@
37
37
  "id": ""
38
38
  },
39
39
  "wpml_cf_preferences": 3,
40
- "user_roles": [
41
- "all"
42
- ],
43
40
  "clone": [
44
- "group_6504a88c17463"
41
+ "group_6882282e65bf2"
45
42
  ],
46
43
  "display": "seamless",
47
44
  "layout": "block",
@@ -165,7 +162,7 @@
165
162
  },
166
163
  "wpml_cf_preferences": 3,
167
164
  "clone": [
168
- "group_6504a81a0623c"
165
+ "group_68822860bda9f"
169
166
  ],
170
167
  "display": "seamless",
171
168
  "layout": "block",
@@ -262,7 +259,7 @@
262
259
  },
263
260
  "wpml_cf_preferences": 3,
264
261
  "clone": [
265
- "group_6504a81a0623c"
262
+ "group_68822860bda9f"
266
263
  ],
267
264
  "display": "seamless",
268
265
  "layout": "block",
@@ -359,7 +356,7 @@
359
356
  },
360
357
  "wpml_cf_preferences": 3,
361
358
  "clone": [
362
- "group_6504a81a0623c"
359
+ "group_68822860bda9f"
363
360
  ],
364
361
  "display": "seamless",
365
362
  "layout": "block",
@@ -456,7 +453,7 @@
456
453
  },
457
454
  "wpml_cf_preferences": 3,
458
455
  "clone": [
459
- "group_6504a81a0623c"
456
+ "group_68822860bda9f"
460
457
  ],
461
458
  "display": "seamless",
462
459
  "layout": "block",
@@ -573,7 +570,7 @@
573
570
  },
574
571
  "wpml_cf_preferences": 3,
575
572
  "clone": [
576
- "group_6504a81a0623c"
573
+ "group_68822860bda9f"
577
574
  ],
578
575
  "display": "seamless",
579
576
  "layout": "block",
@@ -670,7 +667,7 @@
670
667
  },
671
668
  "wpml_cf_preferences": 3,
672
669
  "clone": [
673
- "group_6504a81a0623c"
670
+ "group_68822860bda9f"
674
671
  ],
675
672
  "display": "seamless",
676
673
  "layout": "block",
@@ -754,7 +751,7 @@
754
751
  {
755
752
  "key": "field_686ceba801007",
756
753
  "label": "grid layout",
757
- "name": "grid_layout_copy",
754
+ "name": "grid_layout",
758
755
  "aria-label": "",
759
756
  "type": "clone",
760
757
  "instructions": "",
@@ -766,9 +763,7 @@
766
763
  "id": ""
767
764
  },
768
765
  "wpml_cf_preferences": 3,
769
- "clone": [
770
- "group_6504a81a0623c"
771
- ],
766
+ "clone": "",
772
767
  "display": "seamless",
773
768
  "layout": "block",
774
769
  "prefix_label": 0,
@@ -864,10 +859,10 @@
864
859
  },
865
860
  "wpml_cf_preferences": 3,
866
861
  "clone": [
867
- "group_6504a81a0623c"
862
+ "group_68822860bda9f"
868
863
  ],
869
864
  "display": "seamless",
870
- "layout": "",
865
+ "layout": "block",
871
866
  "prefix_label": 0,
872
867
  "prefix_name": 0,
873
868
  "acfe_seamless_style": 0,
@@ -961,7 +956,7 @@
961
956
  },
962
957
  "wpml_cf_preferences": 3,
963
958
  "clone": [
964
- "group_6504a81a0623c"
959
+ "group_68822860bda9f"
965
960
  ],
966
961
  "display": "seamless",
967
962
  "layout": "block",
@@ -1058,7 +1053,7 @@
1058
1053
  },
1059
1054
  "wpml_cf_preferences": 3,
1060
1055
  "clone": [
1061
- "group_6504a81a0623c"
1056
+ "group_68822860bda9f"
1062
1057
  ],
1063
1058
  "display": "seamless",
1064
1059
  "layout": "block",
@@ -1386,5 +1381,5 @@
1386
1381
  "acfe_display_title": "",
1387
1382
  "acfe_meta": "",
1388
1383
  "acfe_note": "",
1389
- "modified": 1754036824
1384
+ "modified": 1754316909
1390
1385
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "1.0.117",
3
+ "version": "1.0.119",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {