@gem-sdk/components 2.1.29 → 2.1.30

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: articleIds?.length ?? 50,
17
+ first: articleIds?.length || 50,
18
18
  where: {
19
19
  baseIDIn: [
20
20
  ...articleSetting?.articleIds ?? []
@@ -818,7 +818,7 @@ const config = {
818
818
  options: {
819
819
  tooltip: {
820
820
  icon: 'info-line-16',
821
- content: 'Note: this might not work properly on Safari for iOS versions below 16',
821
+ content: 'Note: this might not work properly on Safari for iOS versions below 17',
822
822
  iconClass: 'text-[#757575] hover:text-[#F9F9F9]'
823
823
  }
824
824
  },
@@ -6,7 +6,7 @@ var thirdParty = require('../helpers/thirdParty.js');
6
6
 
7
7
  const RechargeSubscriptions = ({ setting, advanced })=>{
8
8
  const { align, appBlockId } = setting ?? {};
9
- return thirdParty.getLiquidForAppBlock(appBlockId, align, advanced?.cssClass);
9
+ return thirdParty.getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''}!gp-block`);
10
10
  };
11
11
 
12
12
  exports.default = RechargeSubscriptions;
@@ -54,8 +54,11 @@ const config = {
54
54
  options: [
55
55
  {
56
56
  label: 'Subscription Widget',
57
- value: 'subscription-widget',
58
- maxOption: 1
57
+ value: 'subscription-widget'
58
+ },
59
+ {
60
+ label: 'Subscription Widget 2.0',
61
+ value: 'subscription-widget-v2'
59
62
  }
60
63
  ],
61
64
  default: 'subscription-widget'
@@ -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: articleIds?.length ?? 50,
13
+ first: articleIds?.length || 50,
14
14
  where: {
15
15
  baseIDIn: [
16
16
  ...articleSetting?.articleIds ?? []
@@ -814,7 +814,7 @@ const config = {
814
814
  options: {
815
815
  tooltip: {
816
816
  icon: 'info-line-16',
817
- content: 'Note: this might not work properly on Safari for iOS versions below 16',
817
+ content: 'Note: this might not work properly on Safari for iOS versions below 17',
818
818
  iconClass: 'text-[#757575] hover:text-[#F9F9F9]'
819
819
  }
820
820
  },
@@ -2,7 +2,7 @@ import { getLiquidForAppBlock } from '../helpers/thirdParty.js';
2
2
 
3
3
  const RechargeSubscriptions = ({ setting, advanced })=>{
4
4
  const { align, appBlockId } = setting ?? {};
5
- return getLiquidForAppBlock(appBlockId, align, advanced?.cssClass);
5
+ return getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''}!gp-block`);
6
6
  };
7
7
 
8
8
  export { RechargeSubscriptions as default };
@@ -50,8 +50,11 @@ const config = {
50
50
  options: [
51
51
  {
52
52
  label: 'Subscription Widget',
53
- value: 'subscription-widget',
54
- maxOption: 1
53
+ value: 'subscription-widget'
54
+ },
55
+ {
56
+ label: 'Subscription Widget 2.0',
57
+ value: 'subscription-widget-v2'
55
58
  }
56
59
  ],
57
60
  default: 'subscription-widget'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.1.29",
3
+ "version": "2.1.30",
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.24",
24
+ "@gem-sdk/core": "2.1.30",
25
25
  "@gem-sdk/styles": "2.1.27",
26
26
  "@types/react-transition-group": "^4.4.5"
27
27
  },