@gem-sdk/components 2.1.13-staging.17 → 2.1.13-staging.19

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.
@@ -14,7 +14,7 @@ const ArticleList = ({ styles, setting, className, children, builderProps })=>{
14
14
  const { articleSetting, numberOfArticle } = setting ?? {};
15
15
  const { articleIds, articlePickType } = articleSetting ?? {};
16
16
  const articlesQuery = {
17
- first: 10,
17
+ first: articleIds?.length ?? 50,
18
18
  where: {
19
19
  baseIDIn: [
20
20
  ...articleSetting?.articleIds ?? []
@@ -46,7 +46,6 @@ const MarqueeBase = ({ style = {}, autoFill = false, play = true, pauseOnHover =
46
46
  };
47
47
  return core.template`
48
48
  <div
49
-
50
49
  style="${containerStyle()}"
51
50
  class="rfm-marquee-container"
52
51
  >
@@ -55,35 +54,17 @@ const MarqueeBase = ({ style = {}, autoFill = false, play = true, pauseOnHover =
55
54
  style="${marqueeStyle()}"
56
55
  >
57
56
  <div class="rfm-initial-child-container">
58
-
59
- ${core.template`
60
- <div style="${childStyle()}" class="${`rfm-child`}">
61
- ${children}
62
- </div>
63
- `}
64
- </div>
65
- <div class="rfm-child-placeholder">
66
- ${core.template`
67
- <div style="${childStyle()}" class="${`rfm-child`}">
68
- ${children}
69
- </div>
70
- `}
71
- </div>
72
- <div class="rfm-child-placeholder">
73
-
74
- ${core.template`
75
- <div style="${childStyle()}" class="${`rfm-child`}">
76
- ${children}
77
- </div>
78
- `}
57
+ ${core.template`
58
+ <div style="${childStyle()}" class="${`rfm-child`}">
59
+ ${children}
60
+ </div>
61
+ `}
79
62
  </div>
80
63
  </div>
81
- <div
64
+ <div
82
65
  class="rfm-marquee placeholder-marquee"
83
66
  style="${marqueeStyle()}"
84
- >
85
-
86
- </div>
67
+ ></div>
87
68
  </div>
88
69
  `;
89
70
  };
@@ -10,7 +10,7 @@ const ArticleList = ({ styles, setting, className, children, builderProps })=>{
10
10
  const { articleSetting, numberOfArticle } = setting ?? {};
11
11
  const { articleIds, articlePickType } = articleSetting ?? {};
12
12
  const articlesQuery = {
13
- first: 10,
13
+ first: articleIds?.length ?? 50,
14
14
  where: {
15
15
  baseIDIn: [
16
16
  ...articleSetting?.articleIds ?? []
@@ -42,7 +42,6 @@ const MarqueeBase = ({ style = {}, autoFill = false, play = true, pauseOnHover =
42
42
  };
43
43
  return template`
44
44
  <div
45
-
46
45
  style="${containerStyle()}"
47
46
  class="rfm-marquee-container"
48
47
  >
@@ -51,35 +50,17 @@ const MarqueeBase = ({ style = {}, autoFill = false, play = true, pauseOnHover =
51
50
  style="${marqueeStyle()}"
52
51
  >
53
52
  <div class="rfm-initial-child-container">
54
-
55
- ${template`
56
- <div style="${childStyle()}" class="${`rfm-child`}">
57
- ${children}
58
- </div>
59
- `}
60
- </div>
61
- <div class="rfm-child-placeholder">
62
- ${template`
63
- <div style="${childStyle()}" class="${`rfm-child`}">
64
- ${children}
65
- </div>
66
- `}
67
- </div>
68
- <div class="rfm-child-placeholder">
69
-
70
- ${template`
71
- <div style="${childStyle()}" class="${`rfm-child`}">
72
- ${children}
73
- </div>
74
- `}
53
+ ${template`
54
+ <div style="${childStyle()}" class="${`rfm-child`}">
55
+ ${children}
56
+ </div>
57
+ `}
75
58
  </div>
76
59
  </div>
77
- <div
60
+ <div
78
61
  class="rfm-marquee placeholder-marquee"
79
62
  style="${marqueeStyle()}"
80
- >
81
-
82
- </div>
63
+ ></div>
83
64
  </div>
84
65
  `;
85
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.1.13-staging.17",
3
+ "version": "2.1.13-staging.19",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -21,7 +21,7 @@
21
21
  "format": "prettier --write \"./src/**/*.{ts,tsx}\""
22
22
  },
23
23
  "devDependencies": {
24
- "@gem-sdk/core": "2.1.13-staging.16",
24
+ "@gem-sdk/core": "2.1.13-staging.18",
25
25
  "@gem-sdk/styles": "2.1.0",
26
26
  "@types/react-transition-group": "^4.4.5"
27
27
  },