zz-shopify-components 0.34.1-beta.13 → 0.34.1-beta.14

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.
@@ -75,7 +75,7 @@
75
75
  mb_poster: block.settings.poster_mb,
76
76
  lazy: true,
77
77
  class: 'image-video-box tw-w-full tw-h-auto ',
78
- autoplay: false,
78
+ autoplay: true,
79
79
  muted: true,
80
80
  module_id: block.settings.block_module_id
81
81
  %}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zz-shopify-components",
3
- "version": "0.34.1-beta.13",
3
+ "version": "0.34.1-beta.14",
4
4
  "description": "Reusable Shopify components for theme projects",
5
5
  "keywords": [
6
6
  "shopify",
@@ -59,6 +59,7 @@ size:按钮尺寸
59
59
  class: ' tw-w-full tw-h-auto',
60
60
  autoplay: false,
61
61
  loop: true,
62
+ module_id: 'video-btn-popup'
62
63
  %}
63
64
 
64
65
  </div>
@@ -49,8 +49,12 @@
49
49
  {% if controls %}
50
50
  controls
51
51
  {% endif %}
52
+ {% if module_id %}
53
+ data-track-zz-video='{{ module_id }}'
54
+ {% endif %}
52
55
  {% if lazy %}
53
56
  data-poster='{{video_poster | default: ''}}'
57
+ data-lazy='true'
54
58
  {% else %}
55
59
  poster='{{video_poster | default: ''}}'
56
60
  {% endif %}
@@ -101,8 +105,12 @@
101
105
  {% if controls %}
102
106
  controls
103
107
  {% endif %}
108
+ {% if module_id %}
109
+ data-track-zz-video='{{ module_id }}'
110
+ {% endif %}
104
111
  {% if lazy %}
105
112
  data-poster='{{mb_video_poster | default: ''}}'
113
+ data-lazy='true'
106
114
  {% else %}
107
115
  poster='{{mb_video_poster | default: ''}}'
108
116
  {% endif %}