@gem-sdk/pages 1.23.0-staging.387 → 1.23.0-staging.408

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.
@@ -48,10 +48,15 @@ const AddSectionImageToLayout = ({ editorImageToLayout })=>{
48
48
  const editingPageType = core.useShopStore((s)=>s.pageType);
49
49
  let ACTIONS_DATA = BASE_DATA;
50
50
  if (editingPageType === 'POST_PURCHASE') {
51
+ const dataIdNotPostPurchase = [
52
+ 'gps-add-section-bottom-from-url',
53
+ 'gps-add-section-bottom-from-image',
54
+ 'gps-add-section-bottom-from-library'
55
+ ];
51
56
  ACTIONS_DATA = [
52
57
  ...POST_PURCHASE_PAGE_DATA,
53
58
  ...BASE_DATA
54
- ].filter((item)=>item.id !== 'gps-add-section-bottom-from-url' && item.id !== 'gps-add-section-bottom-from-image');
59
+ ].filter((item)=>!dataIdNotPostPurchase.includes(item.id));
55
60
  }
56
61
  react.useEffect(()=>{
57
62
  if (!isInput || totalSection === 0) {
@@ -44,10 +44,15 @@ const AddSectionImageToLayout = ({ editorImageToLayout })=>{
44
44
  const editingPageType = useShopStore((s)=>s.pageType);
45
45
  let ACTIONS_DATA = BASE_DATA;
46
46
  if (editingPageType === 'POST_PURCHASE') {
47
+ const dataIdNotPostPurchase = [
48
+ 'gps-add-section-bottom-from-url',
49
+ 'gps-add-section-bottom-from-image',
50
+ 'gps-add-section-bottom-from-library'
51
+ ];
47
52
  ACTIONS_DATA = [
48
53
  ...POST_PURCHASE_PAGE_DATA,
49
54
  ...BASE_DATA
50
- ].filter((item)=>item.id !== 'gps-add-section-bottom-from-url' && item.id !== 'gps-add-section-bottom-from-image');
55
+ ].filter((item)=>!dataIdNotPostPurchase.includes(item.id));
51
56
  }
52
57
  useEffect(()=>{
53
58
  if (!isInput || totalSection === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "1.23.0-staging.387",
3
+ "version": "1.23.0-staging.408",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  "next-seo": "^6.0.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@gem-sdk/core": "1.23.0-staging.386",
28
+ "@gem-sdk/core": "1.23.0-staging.401",
29
29
  "@gem-sdk/plugin-cookie-bar": "1.23.0-staging.383",
30
30
  "@gem-sdk/plugin-quick-view": "1.23.0-staging.383",
31
31
  "@gem-sdk/plugin-sticky-add-to-cart": "1.23.0-staging.383"