@total_onion/onion-library 1.0.131 → 1.0.133

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.
@@ -1055,6 +1055,26 @@
1055
1055
  "label": "Post text alternative style",
1056
1056
  "display": "block",
1057
1057
  "sub_fields": [
1058
+ {
1059
+ "key": "field_689205e155247",
1060
+ "label": "Grid Layout",
1061
+ "name": "",
1062
+ "aria-label": "",
1063
+ "type": "tab",
1064
+ "instructions": "",
1065
+ "required": 0,
1066
+ "conditional_logic": 0,
1067
+ "wrapper": {
1068
+ "width": "",
1069
+ "class": "",
1070
+ "id": ""
1071
+ },
1072
+ "wpml_cf_preferences": 3,
1073
+ "placement": "top",
1074
+ "endpoint": 0,
1075
+ "no_preference": 0,
1076
+ "selected": 0
1077
+ },
1058
1078
  {
1059
1079
  "key": "field_6866429555649",
1060
1080
  "label": "Grid layout",
@@ -1082,6 +1102,54 @@
1082
1102
  "acfe_clone_modal_close": 0,
1083
1103
  "acfe_clone_modal_button": "",
1084
1104
  "acfe_clone_modal_size": "large"
1105
+ },
1106
+ {
1107
+ "key": "field_689205ac55245",
1108
+ "label": "Style",
1109
+ "name": "",
1110
+ "aria-label": "",
1111
+ "type": "tab",
1112
+ "instructions": "",
1113
+ "required": 0,
1114
+ "conditional_logic": 0,
1115
+ "wrapper": {
1116
+ "width": "",
1117
+ "class": "",
1118
+ "id": ""
1119
+ },
1120
+ "wpml_cf_preferences": 3,
1121
+ "placement": "top",
1122
+ "endpoint": 0,
1123
+ "no_preference": 0,
1124
+ "selected": 0
1125
+ },
1126
+ {
1127
+ "key": "field_689205d355246",
1128
+ "label": "Text editor settings fields",
1129
+ "name": "text_editor_settings_fields",
1130
+ "aria-label": "",
1131
+ "type": "clone",
1132
+ "instructions": "",
1133
+ "required": 0,
1134
+ "conditional_logic": 0,
1135
+ "wrapper": {
1136
+ "width": "",
1137
+ "class": "",
1138
+ "id": ""
1139
+ },
1140
+ "wpml_cf_preferences": 3,
1141
+ "clone": [
1142
+ "group_687a4e2334e37"
1143
+ ],
1144
+ "display": "seamless",
1145
+ "layout": "block",
1146
+ "prefix_label": 0,
1147
+ "prefix_name": 0,
1148
+ "acfe_seamless_style": 0,
1149
+ "acfe_clone_modal": 0,
1150
+ "acfe_clone_modal_close": 0,
1151
+ "acfe_clone_modal_button": "",
1152
+ "acfe_clone_modal_size": "large"
1085
1153
  }
1086
1154
  ],
1087
1155
  "min": "",
@@ -1966,5 +2034,5 @@
1966
2034
  "acfe_display_title": "",
1967
2035
  "acfe_meta": "",
1968
2036
  "acfe_note": "",
1969
- "modified": 1754398374
2037
+ "modified": 1754400251
1970
2038
  }
@@ -1,9 +1,12 @@
1
- {% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
2
- {% set textStyle = include('components/text-style.twig', {field, post}) %}
3
- {% set elementStyles = gridLayoutElement ~ textStyle %}
1
+ {% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields: field, block: block }, with_context = false) %}
2
+ {% set textEditorStyleVars = include('components/text-editor-settings-variables-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
3
+ {% set textEditorContainerClasses = include('components/text-editor-settings-container-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
4
+ {% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
5
+ {% set elementType = field.element_type|ru %}
4
6
  <style>
5
- .{{blockClassName}}__post-name.{{block.id}} {
7
+ .{{blockClassName}}__post-name.{{block.id}}{
6
8
  {{elementStyles}}
9
+ {{gridLayoutElement}}
7
10
  }
8
11
  </style>
9
12
  <{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__post-name {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}" pattern-post_name>{{post.post_name}}</{{field.text_style.text_element_type|ru}}>
@@ -1,4 +1,4 @@
1
- {% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
1
+ {% set gridLayoutElement = include('components/grid-layout-element.twig-v3', { fields: field, block: block }, with_context = false) %}
2
2
  {% set textEditorStyleVars = include('components/text-editor-settings-variables-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
3
3
  {% set textEditorContainerClasses = include('components/text-editor-settings-container-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
4
4
  {% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
@@ -7,6 +7,7 @@
7
7
  <style>
8
8
  .{{blockClassName}}__post-tags.{{block.id}}{
9
9
  {{textEditorStyleVars}}
10
+ {{gridLayoutElement}}
10
11
  }
11
12
  </style>
12
13
  <div class="{{blockClassName}}__post-tags {{blockClassName}}__info-item {{block.id}}">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "1.0.131",
3
+ "version": "1.0.133",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,13 +0,0 @@
1
- {% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
2
- {% set textStyle = include('components/text-style.twig', {field, post}) %}
3
- {% set elementStyles = gridLayoutElement ~ textStyle %}
4
- <style>
5
- .{{blockClassName}}__bazaarvoice.{{block.id}} {
6
- {{elementStyles}}
7
- }
8
- </style>
9
- <div class="{{blockClassName}}__bazaarvoice {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">
10
- {% if post.product_bazaarvoice is defined and post.product_bazaarvoice is not empty %}
11
- {{function( 'do_shortcode', '[bazaarvoice bazaarvoice_product_id=' ~ post.product_bazaarvoice ~ ' type="inline_rating"]' )|raw}}
12
- {% endif %}
13
- </div>
@@ -1,501 +0,0 @@
1
- {
2
- "key": "group_64c29a6750b1c",
3
- "title": "Fields: Product Info - Library",
4
- "fields": [
5
- {
6
- "key": "field_64c29a675f572",
7
- "label": "Product logo",
8
- "name": "product_logo",
9
- "aria-label": "",
10
- "type": "image",
11
- "instructions": "",
12
- "required": 0,
13
- "conditional_logic": 0,
14
- "wrapper": {
15
- "width": "",
16
- "class": "",
17
- "id": ""
18
- },
19
- "wpml_cf_preferences": 3,
20
- "user_roles": [
21
- "all"
22
- ],
23
- "return_format": "id",
24
- "library": "all",
25
- "min_width": "",
26
- "min_height": "",
27
- "min_size": "",
28
- "max_width": "",
29
- "max_height": "",
30
- "max_size": "",
31
- "mime_types": "",
32
- "preview_size": "medium",
33
- "uploader": "",
34
- "acfe_thumbnail": 0,
35
- "upload_folder": ""
36
- },
37
- {
38
- "key": "field_65958c5954c49",
39
- "label": "Product Name",
40
- "name": "product_name",
41
- "aria-label": "",
42
- "type": "text",
43
- "instructions": "",
44
- "required": 0,
45
- "conditional_logic": 0,
46
- "wrapper": {
47
- "width": "",
48
- "class": "",
49
- "id": ""
50
- },
51
- "wpml_cf_preferences": 2,
52
- "user_roles": [
53
- "all"
54
- ],
55
- "default_value": "",
56
- "maxlength": "",
57
- "placeholder": "",
58
- "prepend": "",
59
- "append": ""
60
- },
61
- {
62
- "key": "field_64c29a675f5ba",
63
- "label": "Country",
64
- "name": "product_country",
65
- "aria-label": "",
66
- "type": "text",
67
- "instructions": "",
68
- "required": 0,
69
- "conditional_logic": 0,
70
- "wrapper": {
71
- "width": "",
72
- "class": "",
73
- "id": ""
74
- },
75
- "wpml_cf_preferences": 2,
76
- "user_roles": [
77
- "all"
78
- ],
79
- "default_value": "",
80
- "maxlength": "",
81
- "placeholder": "",
82
- "prepend": "",
83
- "append": ""
84
- },
85
- {
86
- "key": "field_64c29a675f602",
87
- "label": "Bazaarvoice ID",
88
- "name": "product_bazaarvoice",
89
- "aria-label": "",
90
- "type": "text",
91
- "instructions": "",
92
- "required": 0,
93
- "conditional_logic": 0,
94
- "wrapper": {
95
- "width": "",
96
- "class": "",
97
- "id": ""
98
- },
99
- "wpml_cf_preferences": 2,
100
- "user_roles": [
101
- "all"
102
- ],
103
- "default_value": "",
104
- "maxlength": "",
105
- "placeholder": "",
106
- "prepend": "",
107
- "append": ""
108
- },
109
- {
110
- "key": "field_64c3db7fde285",
111
- "label": "Shopify PIM ID",
112
- "name": "shopify_pim_id",
113
- "aria-label": "",
114
- "type": "text",
115
- "instructions": "",
116
- "required": 0,
117
- "conditional_logic": 0,
118
- "wrapper": {
119
- "width": "",
120
- "class": "",
121
- "id": ""
122
- },
123
- "wpml_cf_preferences": 2,
124
- "default_value": "",
125
- "maxlength": "",
126
- "placeholder": "",
127
- "prepend": "",
128
- "append": ""
129
- },
130
- {
131
- "key": "field_672227480fb15",
132
- "label": "Shopify Engraved PIM ID",
133
- "name": "shopify_engraved_pim_id",
134
- "aria-label": "",
135
- "type": "text",
136
- "instructions": "",
137
- "required": 0,
138
- "conditional_logic": 0,
139
- "wrapper": {
140
- "width": "",
141
- "class": "",
142
- "id": ""
143
- },
144
- "wpml_cf_preferences": 2,
145
- "default_value": "",
146
- "maxlength": "",
147
- "placeholder": "",
148
- "prepend": "",
149
- "append": ""
150
- },
151
- {
152
- "key": "field_64c29a675f64a",
153
- "label": "Age statement",
154
- "name": "product_age_statement",
155
- "aria-label": "",
156
- "type": "text",
157
- "instructions": "",
158
- "required": 0,
159
- "conditional_logic": 0,
160
- "wrapper": {
161
- "width": "",
162
- "class": "",
163
- "id": ""
164
- },
165
- "wpml_cf_preferences": 2,
166
- "user_roles": [
167
- "all"
168
- ],
169
- "default_value": "",
170
- "maxlength": "",
171
- "placeholder": "",
172
- "prepend": "",
173
- "append": ""
174
- },
175
- {
176
- "key": "field_6740b0399a35e",
177
- "label": "Price",
178
- "name": "product_price",
179
- "aria-label": "",
180
- "type": "text",
181
- "instructions": "",
182
- "required": 0,
183
- "conditional_logic": 0,
184
- "wrapper": {
185
- "width": "",
186
- "class": "",
187
- "id": ""
188
- },
189
- "wpml_cf_preferences": 2,
190
- "default_value": "",
191
- "maxlength": "",
192
- "placeholder": "",
193
- "prepend": "",
194
- "append": ""
195
- },
196
- {
197
- "key": "field_64c29a675f692",
198
- "label": "ABV",
199
- "name": "product_abv",
200
- "aria-label": "",
201
- "type": "text",
202
- "instructions": "",
203
- "required": 0,
204
- "conditional_logic": 0,
205
- "wrapper": {
206
- "width": "",
207
- "class": "",
208
- "id": ""
209
- },
210
- "wpml_cf_preferences": 2,
211
- "user_roles": [
212
- "all"
213
- ],
214
- "default_value": "",
215
- "maxlength": "",
216
- "placeholder": "",
217
- "prepend": "",
218
- "append": ""
219
- },
220
- {
221
- "key": "field_64c29a675f6d9",
222
- "label": "Whisky type",
223
- "name": "product_whisky_type",
224
- "aria-label": "",
225
- "type": "text",
226
- "instructions": "",
227
- "required": 0,
228
- "conditional_logic": 0,
229
- "wrapper": {
230
- "width": "",
231
- "class": "",
232
- "id": ""
233
- },
234
- "wpml_cf_preferences": 2,
235
- "user_roles": [
236
- "all"
237
- ],
238
- "default_value": "",
239
- "maxlength": "",
240
- "placeholder": "",
241
- "prepend": "",
242
- "append": ""
243
- },
244
- {
245
- "key": "field_64c29a9c8820a",
246
- "label": "Ingredients",
247
- "name": "ingredients",
248
- "aria-label": "",
249
- "type": "textarea",
250
- "instructions": "",
251
- "required": 0,
252
- "conditional_logic": 0,
253
- "wrapper": {
254
- "width": "",
255
- "class": "",
256
- "id": ""
257
- },
258
- "wpml_cf_preferences": 2,
259
- "user_roles": [
260
- "all"
261
- ],
262
- "default_value": "",
263
- "maxlength": "",
264
- "rows": "",
265
- "placeholder": "",
266
- "new_lines": "",
267
- "acfe_textarea_code": 0
268
- },
269
- {
270
- "key": "field_64c29a675f72e",
271
- "label": "Cask type",
272
- "name": "product_cask_type",
273
- "aria-label": "",
274
- "type": "text",
275
- "instructions": "",
276
- "required": 0,
277
- "conditional_logic": 0,
278
- "wrapper": {
279
- "width": "",
280
- "class": "",
281
- "id": ""
282
- },
283
- "wpml_cf_preferences": 2,
284
- "user_roles": [
285
- "all"
286
- ],
287
- "default_value": "",
288
- "maxlength": "",
289
- "placeholder": "",
290
- "prepend": "",
291
- "append": ""
292
- },
293
- {
294
- "key": "field_64c29a675f777",
295
- "label": "Nose",
296
- "name": "product_nose",
297
- "aria-label": "",
298
- "type": "text",
299
- "instructions": "",
300
- "required": 0,
301
- "conditional_logic": 0,
302
- "wrapper": {
303
- "width": "",
304
- "class": "",
305
- "id": ""
306
- },
307
- "wpml_cf_preferences": 2,
308
- "user_roles": [
309
- "all"
310
- ],
311
- "default_value": "Product Nose",
312
- "maxlength": "",
313
- "placeholder": "",
314
- "prepend": "",
315
- "append": ""
316
- },
317
- {
318
- "key": "field_64c29a675f7bf",
319
- "label": "Taste",
320
- "name": "product_taste",
321
- "aria-label": "",
322
- "type": "text",
323
- "instructions": "",
324
- "required": 0,
325
- "conditional_logic": 0,
326
- "wrapper": {
327
- "width": "",
328
- "class": "",
329
- "id": ""
330
- },
331
- "wpml_cf_preferences": 2,
332
- "user_roles": [
333
- "all"
334
- ],
335
- "default_value": "",
336
- "maxlength": "",
337
- "placeholder": "",
338
- "prepend": "",
339
- "append": ""
340
- },
341
- {
342
- "key": "field_64c29a675f801",
343
- "label": "Finish",
344
- "name": "product_finish",
345
- "aria-label": "",
346
- "type": "text",
347
- "instructions": "",
348
- "required": 0,
349
- "conditional_logic": 0,
350
- "wrapper": {
351
- "width": "",
352
- "class": "",
353
- "id": ""
354
- },
355
- "wpml_cf_preferences": 2,
356
- "user_roles": [
357
- "all"
358
- ],
359
- "default_value": "",
360
- "maxlength": "",
361
- "placeholder": "",
362
- "prepend": "",
363
- "append": ""
364
- },
365
- {
366
- "key": "field_64c29a675f850",
367
- "label": "History",
368
- "name": "product_history",
369
- "aria-label": "",
370
- "type": "textarea",
371
- "instructions": "",
372
- "required": 0,
373
- "conditional_logic": 0,
374
- "wrapper": {
375
- "width": "",
376
- "class": "",
377
- "id": ""
378
- },
379
- "wpml_cf_preferences": 2,
380
- "user_roles": [
381
- "all"
382
- ],
383
- "default_value": "",
384
- "maxlength": "",
385
- "rows": "",
386
- "placeholder": "",
387
- "new_lines": "",
388
- "acfe_textarea_code": 0
389
- },
390
- {
391
- "key": "field_64c29a675f898",
392
- "label": "SKU",
393
- "name": "sku",
394
- "aria-label": "",
395
- "type": "text",
396
- "instructions": "",
397
- "required": 0,
398
- "conditional_logic": 0,
399
- "wrapper": {
400
- "width": "",
401
- "class": "",
402
- "id": ""
403
- },
404
- "wpml_cf_preferences": 2,
405
- "user_roles": [
406
- "all"
407
- ],
408
- "default_value": "",
409
- "maxlength": "",
410
- "placeholder": "",
411
- "prepend": "",
412
- "append": ""
413
- },
414
- {
415
- "key": "field_64c29a675f8df",
416
- "label": "MPN",
417
- "name": "mpn",
418
- "aria-label": "",
419
- "type": "text",
420
- "instructions": "",
421
- "required": 0,
422
- "conditional_logic": 0,
423
- "wrapper": {
424
- "width": "",
425
- "class": "",
426
- "id": ""
427
- },
428
- "wpml_cf_preferences": 2,
429
- "user_roles": [
430
- "all"
431
- ],
432
- "default_value": "",
433
- "maxlength": "",
434
- "placeholder": "",
435
- "prepend": "",
436
- "append": ""
437
- },
438
- {
439
- "key": "field_66469130e72ef",
440
- "label": "Related Products",
441
- "name": "related_products",
442
- "aria-label": "",
443
- "type": "relationship",
444
- "instructions": "",
445
- "required": 0,
446
- "conditional_logic": 0,
447
- "wrapper": {
448
- "width": "",
449
- "class": "",
450
- "id": ""
451
- },
452
- "wpml_cf_preferences": 3,
453
- "post_type": [
454
- "product"
455
- ],
456
- "post_status": "",
457
- "taxonomy": "",
458
- "filters": [
459
- "search"
460
- ],
461
- "return_format": "object",
462
- "acfe_add_post": 0,
463
- "acfe_edit_post": 0,
464
- "acfe_bidirectional": {
465
- "acfe_bidirectional_enabled": "0"
466
- },
467
- "min": "",
468
- "max": "",
469
- "elements": "",
470
- "bidirectional": 0,
471
- "bidirectional_target": []
472
- }
473
- ],
474
- "location": [
475
- [
476
- {
477
- "param": "post_type",
478
- "operator": "==",
479
- "value": "product"
480
- }
481
- ]
482
- ],
483
- "menu_order": 0,
484
- "position": "normal",
485
- "style": "default",
486
- "label_placement": "top",
487
- "instruction_placement": "label",
488
- "hide_on_screen": "",
489
- "active": true,
490
- "description": "Library version - Do not modify in this project as any changes will be overwritten by future updates.",
491
- "show_in_rest": 0,
492
- "acfe_autosync": [
493
- "json"
494
- ],
495
- "acfml_field_group_mode": "localization",
496
- "acfe_form": 0,
497
- "acfe_display_title": "",
498
- "acfe_meta": "",
499
- "acfe_note": "",
500
- "modified": 1746891765
501
- }