@total_onion/onion-library 2.0.180 → 2.0.182

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.
@@ -289,11 +289,11 @@
289
289
  "class": "",
290
290
  "id": ""
291
291
  },
292
- "wpml_cf_preferences": 0,
293
- "choices": {
294
- "placeholder1": "Placeholder 1",
295
- "placeholder2": "Placeholder 2"
296
- },
292
+ "wpml_cf_preferences": 3,
293
+ "choices": [
294
+ "glass",
295
+ "shaker"
296
+ ],
297
297
  "default_value": "placeholder1",
298
298
  "return_format": "value",
299
299
  "multiple": 0,
@@ -424,6 +424,124 @@
424
424
  "parent_repeater": "field_68ffeea1ee9f4"
425
425
  }
426
426
  ]
427
+ },
428
+ {
429
+ "key": "field_6952b3602fd1e",
430
+ "label": "General",
431
+ "name": "",
432
+ "aria-label": "",
433
+ "type": "tab",
434
+ "instructions": "",
435
+ "required": 0,
436
+ "conditional_logic": 0,
437
+ "wrapper": {
438
+ "width": "",
439
+ "class": "",
440
+ "id": ""
441
+ },
442
+ "wpml_cf_preferences": 3,
443
+ "placement": "top",
444
+ "endpoint": 0,
445
+ "no_preference": 0,
446
+ "selected": 0
447
+ },
448
+ {
449
+ "key": "field_6952b6d4794e1",
450
+ "label": "Product",
451
+ "name": "product",
452
+ "aria-label": "",
453
+ "type": "post_object",
454
+ "instructions": "",
455
+ "required": 0,
456
+ "conditional_logic": 0,
457
+ "wrapper": {
458
+ "width": "33",
459
+ "class": "",
460
+ "id": ""
461
+ },
462
+ "wpml_cf_preferences": 0,
463
+ "post_type": [
464
+ "product"
465
+ ],
466
+ "post_status": "",
467
+ "taxonomy": "",
468
+ "return_format": "object",
469
+ "multiple": 0,
470
+ "max": "",
471
+ "save_custom": 0,
472
+ "save_post_status": "publish",
473
+ "acfe_add_post": 0,
474
+ "acfe_edit_post": 0,
475
+ "acfe_bidirectional": {
476
+ "acfe_bidirectional_enabled": "0"
477
+ },
478
+ "allow_null": 0,
479
+ "allow_in_bindings": 0,
480
+ "bidirectional": 0,
481
+ "ui": 1,
482
+ "bidirectional_target": [],
483
+ "save_post_type": "",
484
+ "min": ""
485
+ },
486
+ {
487
+ "key": "field_6952b553adb67",
488
+ "label": "Skill Level",
489
+ "name": "skill_level",
490
+ "aria-label": "",
491
+ "type": "select",
492
+ "instructions": "",
493
+ "required": 0,
494
+ "conditional_logic": 0,
495
+ "wrapper": {
496
+ "width": "33",
497
+ "class": "",
498
+ "id": ""
499
+ },
500
+ "wpml_cf_preferences": 3,
501
+ "choices": {
502
+ "beginner": "Beginner",
503
+ "Intermediate": "Intermediate",
504
+ "expert": "Expert"
505
+ },
506
+ "default_value": "Intermediate",
507
+ "return_format": "value",
508
+ "multiple": 0,
509
+ "max": "",
510
+ "prepend": "",
511
+ "append": "",
512
+ "allow_null": 0,
513
+ "allow_in_bindings": 0,
514
+ "ui": 0,
515
+ "ajax": 0,
516
+ "placeholder": "",
517
+ "create_options": 0,
518
+ "save_options": 0,
519
+ "allow_custom": 0,
520
+ "search_placeholder": "",
521
+ "min": ""
522
+ },
523
+ {
524
+ "key": "field_6952b66d4a602",
525
+ "label": "Time to make (minutes)",
526
+ "name": "time_to_make",
527
+ "aria-label": "",
528
+ "type": "range",
529
+ "instructions": "",
530
+ "required": 0,
531
+ "conditional_logic": 0,
532
+ "wrapper": {
533
+ "width": "33",
534
+ "class": "",
535
+ "id": ""
536
+ },
537
+ "wpml_cf_preferences": 3,
538
+ "default_value": "",
539
+ "min": 0,
540
+ "max": 30,
541
+ "allow_in_bindings": 0,
542
+ "step": "",
543
+ "prepend": "",
544
+ "append": ""
427
545
  }
428
546
  ],
429
547
  "location": [
@@ -453,5 +571,5 @@
453
571
  "acfe_display_title": "",
454
572
  "acfe_meta": "",
455
573
  "acfe_note": "",
456
- "modified": 1762286000
574
+ "modified": 1767028458
457
575
  }
@@ -0,0 +1,2 @@
1
+ //This Module is WIP
2
+ export function exampleFunction() {}
package/onion-utils.mjs CHANGED
@@ -13,14 +13,13 @@ export function ttfb() {
13
13
  const [pageNav] = entryList.getEntriesByType("navigation");
14
14
  const time = pageNav.responseStart;
15
15
  console.log(`TTFB: ${time} new`);
16
- pushData(time);
16
+ pushTTFBData(time);
17
17
  }).observe({ type: "navigation", buffered: true });
18
18
  }
19
19
 
20
- function pushData(time) {
20
+ function pushTTFBData(time) {
21
21
  window.dataLayer = window.dataLayer || [];
22
22
  window.dataLayer.push({ ttfb: time });
23
- console.log("ttfb sent");
24
23
  }
25
24
 
26
25
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "2.0.180",
3
+ "version": "2.0.182",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {