zz-shopify-components 0.0.21 → 0.0.22

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 (73) hide show
  1. package/CHANGELOG.md +21 -21
  2. package/README.md +56 -56
  3. package/assets/ScrollTrigger.min.js +11 -11
  4. package/assets/gsap.min.js +11 -11
  5. package/assets/jquery.js +2 -2
  6. package/assets/lazy-video.js +2 -2
  7. package/assets/lazyload.min.js +1 -1
  8. package/assets/lozad.js +10 -10
  9. package/assets/site-jump.js +52 -52
  10. package/assets/site-jumpV2.js +35 -35
  11. package/assets/swiper-bundle.min.css +12 -12
  12. package/assets/swiper-bundle.min.js +13 -13
  13. package/assets/swiper.css +330 -330
  14. package/assets/zz-components.css +322 -322
  15. package/assets/zz-components.js +166 -166
  16. package/assets/zz-fade-in-content.js +169 -169
  17. package/blocks/zz-accessories-item.liquid +188 -188
  18. package/blocks/zz-accessories-swiper.liquid +223 -223
  19. package/blocks/zz-button.liquid +216 -216
  20. package/blocks/zz-content-description-html.liquid +201 -201
  21. package/blocks/zz-content-description.liquid +209 -209
  22. package/blocks/zz-flex-layout-bg-block.liquid +524 -524
  23. package/blocks/zz-flex-layout-block.liquid +548 -548
  24. package/blocks/zz-flex-layout-widget.liquid +321 -321
  25. package/blocks/zz-full-screen-swiper.liquid +447 -447
  26. package/blocks/zz-icon.liquid +46 -46
  27. package/blocks/zz-mail.liquid +135 -135
  28. package/blocks/zz-mb-swiper-pc-flex.liquid +273 -273
  29. package/blocks/zz-price-tag-mini.liquid +100 -106
  30. package/blocks/zz-price-tag.liquid +41 -41
  31. package/blocks/zz-ratio-image.liquid +181 -181
  32. package/blocks/zz-ratio-video.liquid +115 -115
  33. package/blocks/zz-responsive-width-image.liquid +222 -222
  34. package/blocks/zz-responsive-width-video.liquid +166 -166
  35. package/blocks/zz-scroll-animate-bg-text.liquid +268 -268
  36. package/blocks/zz-scroll-cover.liquid +67 -67
  37. package/blocks/zz-tag.liquid +50 -50
  38. package/blocks/zz-text.liquid +227 -227
  39. package/blocks/zz-title.liquid +287 -287
  40. package/blocks/zz-video-button.liquid +84 -84
  41. package/blocks/zz-video-swiper-perview-item.liquid +221 -221
  42. package/blocks/zz-video-swiper-perview.liquid +585 -585
  43. package/component.config.json +7 -7
  44. package/package.json +1 -1
  45. package/scripts/postinstall-v1.js +39 -39
  46. package/scripts/postinstall-v2.js +47 -47
  47. package/scripts/postinstall-v3.js +51 -51
  48. package/scripts/publish-npm.js +43 -43
  49. package/sections/zz-flex-layout-section.liquid +269 -269
  50. package/sections/zz-navigation-tab-v3.liquid +407 -407
  51. package/sections/zz-navigation-tab.liquid +411 -411
  52. package/sections/zz-shopping-card-list.liquid +399 -399
  53. package/sections/zz-video-collapse-swiper.liquid +522 -522
  54. package/sections/zz-video-tab-swiper.liquid +748 -748
  55. package/snippets/zz-button.liquid +70 -70
  56. package/snippets/zz-content-h3.liquid +15 -15
  57. package/snippets/zz-content-text.liquid +56 -56
  58. package/snippets/zz-h2.liquid +31 -31
  59. package/snippets/zz-h3.liquid +31 -31
  60. package/snippets/zz-h4.liquid +30 -30
  61. package/snippets/zz-h5.liquid +39 -39
  62. package/snippets/zz-h6.liquid +39 -39
  63. package/snippets/zz-icon-next.liquid +17 -17
  64. package/snippets/zz-icon-prev.liquid +17 -17
  65. package/snippets/zz-icon.liquid +74 -74
  66. package/snippets/zz-img.liquid +44 -44
  67. package/snippets/zz-prev-next-btn.liquid +62 -62
  68. package/snippets/zz-price-tag.liquid +22 -22
  69. package/snippets/zz-spoke.liquid +142 -142
  70. package/snippets/zz-tag.liquid +22 -22
  71. package/snippets/zz-video-button.liquid +54 -54
  72. package/snippets/zz-video-md.liquid +117 -117
  73. package/snippets/zz-video.liquid +117 -117
@@ -1,117 +1,117 @@
1
- {% comment %}
2
- pc_video: 视频地址
3
- pc_poster: 视频封面
4
- mb_video: 视频地址
5
- mb_poster: 视频封面
6
- lazy: 是否懒加载
7
- pc_posterWidth: 视频封面宽度
8
- mb_poster_width: 视频封面宽度
9
- class: 视频类名
10
- autoplay: 是否自动播放
11
- loop: 是否循环播放
12
- muted: 是否静音
13
- separate_display: 区分显示pc还是mb, true时 没有配置PC与mb将不会显示。不会使用PC的配置来配置mb
14
- {% endcomment %}
15
-
16
- {% if separate_display == true %}
17
- {% assign separate_display = true %}
18
- {% else %}
19
- {% assign separate_display = false %}
20
- {% endif %}
21
-
22
- {% if pc_video and pc_poster %}
23
- {% assign pc_src = pc_video %}
24
- {% if pc_video.media_type == 'video' %}
25
- {% assign pc_src = pc_video.sources[1].url %}
26
- {% endif %}
27
-
28
- {% assign video_poster_width = pc_posterWidth | default: 1500 %}
29
- {% assign video_poster = pc_poster
30
- | image_url: width: video_poster_width
31
- %}
32
- <video
33
- {% if class %}
34
- class='{{class}} lozad zz-video {% if autoplay %} video-play-pause {% endif %} {% if mb_video != blank and separate_display == false %} max-lg:tw-hidden {% endif %}'
35
- {% endif %}
36
- {% if autoplay %}
37
- autoplay
38
- {% endif %}
39
- {% if loop %}
40
- loop
41
- {% endif %}
42
- {% if muted %}
43
- muted
44
- {% endif %}
45
- {% if controls %}
46
- controls
47
- {% endif %}
48
- {% if lazy %}
49
- data-poster='{{video_poster | default: ''}}'
50
- {% else %}
51
- poster='{{video_poster | default: ''}}'
52
- {% endif %}
53
- webkit-playsinline
54
- playsinline
55
- x5-video-player-type='h5'
56
-
57
- >
58
- <source type='video/mp4'
59
- data-src='{{pc_src}}'
60
- {% if lazy %}
61
- data-src='{{pc_src}}'
62
- {% else %}
63
- src='{{ pc_src }}'
64
- {% endif %}
65
- >
66
-
67
- </video>
68
- {% endif %}
69
-
70
- {% if mb_video and mb_poster %}
71
- {% assign mb_src = mb_video %}
72
- {% if mb_video.media_type == 'video' %}
73
- {% assign mb_src = mb_video.sources[1].url %}
74
- {% endif %}
75
-
76
- {% assign mb_video_poster_width = mb_poster_width | default: 1500 %}
77
- {% assign mb_video_poster = mb_poster
78
- | image_url: width: mb_video_poster_width
79
- %}
80
- <video
81
- {% if class %}
82
- class='{{class}} lozad zz-video {% if autoplay %} video-play-pause {% endif %} lg:tw-hidden'
83
- {% endif %}
84
- {% if autoplay %}
85
- autoplay
86
- {% endif %}
87
- {% if loop %}
88
- loop
89
- {% endif %}
90
- {% if muted %}
91
- muted
92
- {% endif %}
93
- {% if controls %}
94
- controls
95
- {% endif %}
96
- {% if lazy %}
97
- data-poster='{{mb_video_poster | default: ''}}'
98
- {% else %}
99
- poster='{{mb_video_poster | default: ''}}'
100
- {% endif %}
101
- webkit-playsinline
102
- playsinline
103
- x5-video-player-type='h5'
104
-
105
- >
106
- <source type='video/mp4'
107
- data-src='{{mb_src}}'
108
- {% if lazy %}
109
- data-src='{{mb_src}}'
110
- {% else %}
111
- src='{{ mb_src }}'
112
- {% endif %}
113
- >
114
-
115
- </video>
116
- {% endif %}
117
-
1
+ {% comment %}
2
+ pc_video: 视频地址
3
+ pc_poster: 视频封面
4
+ mb_video: 视频地址
5
+ mb_poster: 视频封面
6
+ lazy: 是否懒加载
7
+ pc_posterWidth: 视频封面宽度
8
+ mb_poster_width: 视频封面宽度
9
+ class: 视频类名
10
+ autoplay: 是否自动播放
11
+ loop: 是否循环播放
12
+ muted: 是否静音
13
+ separate_display: 区分显示pc还是mb, true时 没有配置PC与mb将不会显示。不会使用PC的配置来配置mb
14
+ {% endcomment %}
15
+
16
+ {% if separate_display == true %}
17
+ {% assign separate_display = true %}
18
+ {% else %}
19
+ {% assign separate_display = false %}
20
+ {% endif %}
21
+
22
+ {% if pc_video and pc_poster %}
23
+ {% assign pc_src = pc_video %}
24
+ {% if pc_video.media_type == 'video' %}
25
+ {% assign pc_src = pc_video.sources[1].url %}
26
+ {% endif %}
27
+
28
+ {% assign video_poster_width = pc_posterWidth | default: 1500 %}
29
+ {% assign video_poster = pc_poster
30
+ | image_url: width: video_poster_width
31
+ %}
32
+ <video
33
+ {% if class %}
34
+ class='{{class}} lozad zz-video {% if autoplay %} video-play-pause {% endif %} {% if mb_video != blank and separate_display == false %} max-lg:tw-hidden {% endif %}'
35
+ {% endif %}
36
+ {% if autoplay %}
37
+ autoplay
38
+ {% endif %}
39
+ {% if loop %}
40
+ loop
41
+ {% endif %}
42
+ {% if muted %}
43
+ muted
44
+ {% endif %}
45
+ {% if controls %}
46
+ controls
47
+ {% endif %}
48
+ {% if lazy %}
49
+ data-poster='{{video_poster | default: ''}}'
50
+ {% else %}
51
+ poster='{{video_poster | default: ''}}'
52
+ {% endif %}
53
+ webkit-playsinline
54
+ playsinline
55
+ x5-video-player-type='h5'
56
+
57
+ >
58
+ <source type='video/mp4'
59
+ data-src='{{pc_src}}'
60
+ {% if lazy %}
61
+ data-src='{{pc_src}}'
62
+ {% else %}
63
+ src='{{ pc_src }}'
64
+ {% endif %}
65
+ >
66
+
67
+ </video>
68
+ {% endif %}
69
+
70
+ {% if mb_video and mb_poster %}
71
+ {% assign mb_src = mb_video %}
72
+ {% if mb_video.media_type == 'video' %}
73
+ {% assign mb_src = mb_video.sources[1].url %}
74
+ {% endif %}
75
+
76
+ {% assign mb_video_poster_width = mb_poster_width | default: 1500 %}
77
+ {% assign mb_video_poster = mb_poster
78
+ | image_url: width: mb_video_poster_width
79
+ %}
80
+ <video
81
+ {% if class %}
82
+ class='{{class}} lozad zz-video {% if autoplay %} video-play-pause {% endif %} lg:tw-hidden'
83
+ {% endif %}
84
+ {% if autoplay %}
85
+ autoplay
86
+ {% endif %}
87
+ {% if loop %}
88
+ loop
89
+ {% endif %}
90
+ {% if muted %}
91
+ muted
92
+ {% endif %}
93
+ {% if controls %}
94
+ controls
95
+ {% endif %}
96
+ {% if lazy %}
97
+ data-poster='{{mb_video_poster | default: ''}}'
98
+ {% else %}
99
+ poster='{{mb_video_poster | default: ''}}'
100
+ {% endif %}
101
+ webkit-playsinline
102
+ playsinline
103
+ x5-video-player-type='h5'
104
+
105
+ >
106
+ <source type='video/mp4'
107
+ data-src='{{mb_src}}'
108
+ {% if lazy %}
109
+ data-src='{{mb_src}}'
110
+ {% else %}
111
+ src='{{ mb_src }}'
112
+ {% endif %}
113
+ >
114
+
115
+ </video>
116
+ {% endif %}
117
+