@gem-sdk/components 2.0.0-dev.713 → 2.0.0-dev.715

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.
@@ -88,7 +88,7 @@ const HeroBannerItem = (props)=>{
88
88
  if (!common.showVideoType(background)) return;
89
89
  if (dataVideo?.videoType === 'html5' && !dataVideo.videoHtml5) return null;
90
90
  if (dataVideo?.videoType === 'youtube' && !dataVideo.video) return null;
91
- if (dataVideo?.videoType === 'html5' && dataVideo?.videoHtml5) {
91
+ if (dataVideo?.type === 'video' && dataVideo?.videoType === 'html5' && dataVideo?.videoHtml5) {
92
92
  return /*#__PURE__*/ jsxRuntime.jsx(HTML5Embed.default, {
93
93
  muted: true,
94
94
  loop: dataVideo?.loop,
@@ -104,7 +104,7 @@ const HeroBannerItem = (props)=>{
104
104
  const videoId = common$1.getYoutubeVideoId(youtubeUrl);
105
105
  const isLoop = dataVideo?.loop ? 1 : 0;
106
106
  const params = `&loop=${isLoop}&playlist=${videoId}&showinfo=0&rel=0&fs=0&enablejsapi=1`;
107
- if (dataVideo?.videoType === 'youtube' && videoId && common$1.youtubeVideoRegex.test(youtubeUrl)) {
107
+ if (dataVideo?.type === 'video' && dataVideo?.videoType === 'youtube' && videoId && common$1.youtubeVideoRegex.test(youtubeUrl)) {
108
108
  return /*#__PURE__*/ jsxRuntime.jsx(LiteYouTubeEmbed.default, {
109
109
  id: videoId,
110
110
  isHeroBanner: true,
@@ -114,7 +114,7 @@ const HeroBannerItem = (props)=>{
114
114
  const videoId = common$2.getYoutubeVideoId(youtubeUrl);
115
115
  const isLoop = false;
116
116
  const params = `&loop=${isLoop}&playlist=${videoId}&showinfo=0&rel=0&fs=0&enablejsapi=1`;
117
- if (dataVideo?.videoType === 'youtube' && videoId && common$2.youtubeVideoRegex.test(youtubeUrl)) {
117
+ if (dataVideo?.type === 'video' && dataVideo?.videoType === 'youtube' && videoId && common$2.youtubeVideoRegex.test(youtubeUrl)) {
118
118
  return LiteYouTubeEmbed_liquid.default({
119
119
  uid: builderProps?.uid,
120
120
  id: videoId,
@@ -10,6 +10,9 @@ const ImageSettings = [
10
10
  type: 'layout-selector',
11
11
  iconViewBox: '0 0 72 72',
12
12
  enableItemBackground: true,
13
+ popoverLabel: {
14
+ en: 'Style'
15
+ },
13
16
  itemPerRow: 2,
14
17
  itemSpacing: 'large',
15
18
  options: [
@@ -212,7 +212,8 @@ const SettingUIV2 = [
212
212
  },
213
213
  setting: {
214
214
  id: 'objectFit'
215
- }
215
+ },
216
+ conditionDisplay: 'shape.shape !== "original"'
216
217
  }
217
218
  ]
218
219
  },
@@ -24,7 +24,9 @@ const DeclineButtonSettings = [
24
24
  id: 'buttonType',
25
25
  type: 'layout-selector',
26
26
  label: 'Style',
27
- popoverLabel: 'Style',
27
+ popoverLabel: {
28
+ en: 'Style'
29
+ },
28
30
  iconViewBox: '0 0 80 48',
29
31
  enableItemBackground: true,
30
32
  itemPerRow: 2,
@@ -27,7 +27,9 @@ const ProductPropertiesSettingsV2 = [
27
27
  enableItemBackground: true,
28
28
  itemPerRow: 2,
29
29
  itemSpacing: 'large',
30
- popoverLabel: 'Type',
30
+ popoverLabel: {
31
+ en: 'Type'
32
+ },
31
33
  options: [
32
34
  {
33
35
  label: 'Text field',
@@ -66,7 +66,9 @@ const ProductQuantitySettings = [
66
66
  id: 'quantityLayout',
67
67
  label: 'Style',
68
68
  type: 'layout-selector',
69
- popoverLabel: 'Style',
69
+ popoverLabel: {
70
+ en: 'Style'
71
+ },
70
72
  iconViewBox: '0 0 80 48',
71
73
  enableItemBackground: true,
72
74
  itemPerRow: 2,
@@ -84,7 +84,7 @@ const HeroBannerItem = (props)=>{
84
84
  if (!showVideoType(background)) return;
85
85
  if (dataVideo?.videoType === 'html5' && !dataVideo.videoHtml5) return null;
86
86
  if (dataVideo?.videoType === 'youtube' && !dataVideo.video) return null;
87
- if (dataVideo?.videoType === 'html5' && dataVideo?.videoHtml5) {
87
+ if (dataVideo?.type === 'video' && dataVideo?.videoType === 'html5' && dataVideo?.videoHtml5) {
88
88
  return /*#__PURE__*/ jsx(HTML5Embed, {
89
89
  muted: true,
90
90
  loop: dataVideo?.loop,
@@ -100,7 +100,7 @@ const HeroBannerItem = (props)=>{
100
100
  const videoId = getYoutubeVideoId(youtubeUrl);
101
101
  const isLoop = dataVideo?.loop ? 1 : 0;
102
102
  const params = `&loop=${isLoop}&playlist=${videoId}&showinfo=0&rel=0&fs=0&enablejsapi=1`;
103
- if (dataVideo?.videoType === 'youtube' && videoId && youtubeVideoRegex.test(youtubeUrl)) {
103
+ if (dataVideo?.type === 'video' && dataVideo?.videoType === 'youtube' && videoId && youtubeVideoRegex.test(youtubeUrl)) {
104
104
  return /*#__PURE__*/ jsx(LiteYouTubeEmbed, {
105
105
  id: videoId,
106
106
  isHeroBanner: true,
@@ -110,7 +110,7 @@ const HeroBannerItem = (props)=>{
110
110
  const videoId = getYoutubeVideoId(youtubeUrl);
111
111
  const isLoop = false;
112
112
  const params = `&loop=${isLoop}&playlist=${videoId}&showinfo=0&rel=0&fs=0&enablejsapi=1`;
113
- if (dataVideo?.videoType === 'youtube' && videoId && youtubeVideoRegex.test(youtubeUrl)) {
113
+ if (dataVideo?.type === 'video' && dataVideo?.videoType === 'youtube' && videoId && youtubeVideoRegex.test(youtubeUrl)) {
114
114
  return LiteYouTubeEmbed({
115
115
  uid: builderProps?.uid,
116
116
  id: videoId,
@@ -8,6 +8,9 @@ const ImageSettings = [
8
8
  type: 'layout-selector',
9
9
  iconViewBox: '0 0 72 72',
10
10
  enableItemBackground: true,
11
+ popoverLabel: {
12
+ en: 'Style'
13
+ },
11
14
  itemPerRow: 2,
12
15
  itemSpacing: 'large',
13
16
  options: [
@@ -210,7 +210,8 @@ const SettingUIV2 = [
210
210
  },
211
211
  setting: {
212
212
  id: 'objectFit'
213
- }
213
+ },
214
+ conditionDisplay: 'shape.shape !== "original"'
214
215
  }
215
216
  ]
216
217
  },
@@ -22,7 +22,9 @@ const DeclineButtonSettings = [
22
22
  id: 'buttonType',
23
23
  type: 'layout-selector',
24
24
  label: 'Style',
25
- popoverLabel: 'Style',
25
+ popoverLabel: {
26
+ en: 'Style'
27
+ },
26
28
  iconViewBox: '0 0 80 48',
27
29
  enableItemBackground: true,
28
30
  itemPerRow: 2,
@@ -25,7 +25,9 @@ const ProductPropertiesSettingsV2 = [
25
25
  enableItemBackground: true,
26
26
  itemPerRow: 2,
27
27
  itemSpacing: 'large',
28
- popoverLabel: 'Type',
28
+ popoverLabel: {
29
+ en: 'Type'
30
+ },
29
31
  options: [
30
32
  {
31
33
  label: 'Text field',
@@ -64,7 +64,9 @@ const ProductQuantitySettings = [
64
64
  id: 'quantityLayout',
65
65
  label: 'Style',
66
66
  type: 'layout-selector',
67
- popoverLabel: 'Style',
67
+ popoverLabel: {
68
+ en: 'Style'
69
+ },
68
70
  iconViewBox: '0 0 80 48',
69
71
  enableItemBackground: true,
70
72
  itemPerRow: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.713",
3
+ "version": "2.0.0-dev.715",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",