@gem-sdk/core 1.8.11 → 1.8.14
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.
- package/dist/cjs/helpers/compose-advance-style.js +7 -0
- package/dist/cjs/helpers/queries/get-collection.js +2 -0
- package/dist/cjs/helpers/queries/get-product-by-slug.js +3 -0
- package/dist/cjs/helpers/queries/get-product.js +3 -0
- package/dist/cjs/helpers/queries/get-products.js +1 -0
- package/dist/esm/helpers/compose-advance-style.js +8 -1
- package/dist/esm/helpers/queries/get-collection.js +2 -0
- package/dist/esm/helpers/queries/get-product-by-slug.js +3 -0
- package/dist/esm/helpers/queries/get-product.js +3 -0
- package/dist/esm/helpers/queries/get-products.js +1 -0
- package/package.json +1 -1
|
@@ -121,6 +121,13 @@ function composeAdvanceStyle(data, tag) {
|
|
|
121
121
|
if (attr === 'rounded') {
|
|
122
122
|
Object.assign(styles, radius.getCornerCSSFromGlobal(value));
|
|
123
123
|
}
|
|
124
|
+
if (attr === 'boxShadow') {
|
|
125
|
+
Object.assign(styles, shadow.getStyleShadow({
|
|
126
|
+
value: value,
|
|
127
|
+
styleAppliedFor: 'box-shadow',
|
|
128
|
+
isEnableShadow: data.hasBoxShadow
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
124
131
|
}
|
|
125
132
|
});
|
|
126
133
|
} else {
|
|
@@ -87,6 +87,7 @@ const loopFetchCollection = async (fetcher, arg)=>{
|
|
|
87
87
|
},
|
|
88
88
|
orderByProduct: productSortedByOrder(arg.orderBy),
|
|
89
89
|
whereProduct: {
|
|
90
|
+
status: 'ACTIVE',
|
|
90
91
|
...arg.isStorefront && {
|
|
91
92
|
isStorefront: arg.isStorefront
|
|
92
93
|
},
|
|
@@ -166,6 +167,7 @@ const fetchVariantsByBaseIds = async (fetcher, { ids , isSample , isStorefront
|
|
|
166
167
|
direction: 'DESC'
|
|
167
168
|
},
|
|
168
169
|
where: {
|
|
170
|
+
status: 'ACTIVE',
|
|
169
171
|
isSample,
|
|
170
172
|
...isStorefront && {
|
|
171
173
|
isStorefront
|
|
@@ -31,6 +31,7 @@ const fetchProduct = async (fetcher, handle, isStorefront)=>{
|
|
|
31
31
|
const variables = {
|
|
32
32
|
orderBy,
|
|
33
33
|
where: {
|
|
34
|
+
status: 'ACTIVE',
|
|
34
35
|
handle,
|
|
35
36
|
...isStorefront && {
|
|
36
37
|
isStorefront
|
|
@@ -47,6 +48,7 @@ const fetchVariants = async (fetcher, handle, isStorefront)=>{
|
|
|
47
48
|
const initVariables = {
|
|
48
49
|
orderBy,
|
|
49
50
|
where: {
|
|
51
|
+
status: 'ACTIVE',
|
|
50
52
|
handle,
|
|
51
53
|
...isStorefront && {
|
|
52
54
|
isStorefront
|
|
@@ -78,6 +80,7 @@ const fetchMedias = async (fetcher, handle, isStorefront)=>{
|
|
|
78
80
|
const initVariables = {
|
|
79
81
|
orderBy,
|
|
80
82
|
where: {
|
|
83
|
+
status: 'ACTIVE',
|
|
81
84
|
handle,
|
|
82
85
|
...isStorefront && {
|
|
83
86
|
isStorefront
|
|
@@ -43,6 +43,7 @@ const fetchProduct = async (fetcher, { id , isSample , isStorefront })=>{
|
|
|
43
43
|
const variables = {
|
|
44
44
|
orderBy,
|
|
45
45
|
where: {
|
|
46
|
+
status: 'ACTIVE',
|
|
46
47
|
isSample,
|
|
47
48
|
...isStorefront && {
|
|
48
49
|
isStorefront
|
|
@@ -62,6 +63,7 @@ const fetchVariants = async (fetcher, { id , isSample , isStorefront })=>{
|
|
|
62
63
|
const initVariables = {
|
|
63
64
|
orderBy,
|
|
64
65
|
where: {
|
|
66
|
+
status: 'ACTIVE',
|
|
65
67
|
isSample,
|
|
66
68
|
...isStorefront && {
|
|
67
69
|
isStorefront
|
|
@@ -96,6 +98,7 @@ const fetchMedias = async (fetcher, { id , isSample , isStorefront })=>{
|
|
|
96
98
|
const initVariables = {
|
|
97
99
|
orderBy,
|
|
98
100
|
where: {
|
|
101
|
+
status: 'ACTIVE',
|
|
99
102
|
isSample,
|
|
100
103
|
...isStorefront && {
|
|
101
104
|
isStorefront
|
|
@@ -2,7 +2,7 @@ import { handleConvertBorderStyle, handleConvertBorderWidth, handleConvertBorder
|
|
|
2
2
|
import { isColor } from './colors.js';
|
|
3
3
|
import { layoutComponent } from './constant.js';
|
|
4
4
|
import { composeRadius, getCornerCSSFromGlobal } from './radius.js';
|
|
5
|
-
import { getStyleShadowState } from './shadow.js';
|
|
5
|
+
import { getStyleShadowState, getStyleShadow } from './shadow.js';
|
|
6
6
|
|
|
7
7
|
const composeSpacing = ({ source , spacing , type , suffix ='' })=>{
|
|
8
8
|
const { top , left , bottom , right } = spacing;
|
|
@@ -119,6 +119,13 @@ function composeAdvanceStyle(data, tag) {
|
|
|
119
119
|
if (attr === 'rounded') {
|
|
120
120
|
Object.assign(styles, getCornerCSSFromGlobal(value));
|
|
121
121
|
}
|
|
122
|
+
if (attr === 'boxShadow') {
|
|
123
|
+
Object.assign(styles, getStyleShadow({
|
|
124
|
+
value: value,
|
|
125
|
+
styleAppliedFor: 'box-shadow',
|
|
126
|
+
isEnableShadow: data.hasBoxShadow
|
|
127
|
+
}));
|
|
128
|
+
}
|
|
122
129
|
}
|
|
123
130
|
});
|
|
124
131
|
} else {
|
|
@@ -85,6 +85,7 @@ const loopFetchCollection = async (fetcher, arg)=>{
|
|
|
85
85
|
},
|
|
86
86
|
orderByProduct: productSortedByOrder(arg.orderBy),
|
|
87
87
|
whereProduct: {
|
|
88
|
+
status: 'ACTIVE',
|
|
88
89
|
...arg.isStorefront && {
|
|
89
90
|
isStorefront: arg.isStorefront
|
|
90
91
|
},
|
|
@@ -164,6 +165,7 @@ const fetchVariantsByBaseIds = async (fetcher, { ids , isSample , isStorefront
|
|
|
164
165
|
direction: 'DESC'
|
|
165
166
|
},
|
|
166
167
|
where: {
|
|
168
|
+
status: 'ACTIVE',
|
|
167
169
|
isSample,
|
|
168
170
|
...isStorefront && {
|
|
169
171
|
isStorefront
|
|
@@ -29,6 +29,7 @@ const fetchProduct = async (fetcher, handle, isStorefront)=>{
|
|
|
29
29
|
const variables = {
|
|
30
30
|
orderBy,
|
|
31
31
|
where: {
|
|
32
|
+
status: 'ACTIVE',
|
|
32
33
|
handle,
|
|
33
34
|
...isStorefront && {
|
|
34
35
|
isStorefront
|
|
@@ -45,6 +46,7 @@ const fetchVariants = async (fetcher, handle, isStorefront)=>{
|
|
|
45
46
|
const initVariables = {
|
|
46
47
|
orderBy,
|
|
47
48
|
where: {
|
|
49
|
+
status: 'ACTIVE',
|
|
48
50
|
handle,
|
|
49
51
|
...isStorefront && {
|
|
50
52
|
isStorefront
|
|
@@ -76,6 +78,7 @@ const fetchMedias = async (fetcher, handle, isStorefront)=>{
|
|
|
76
78
|
const initVariables = {
|
|
77
79
|
orderBy,
|
|
78
80
|
where: {
|
|
81
|
+
status: 'ACTIVE',
|
|
79
82
|
handle,
|
|
80
83
|
...isStorefront && {
|
|
81
84
|
isStorefront
|
|
@@ -41,6 +41,7 @@ const fetchProduct = async (fetcher, { id , isSample , isStorefront })=>{
|
|
|
41
41
|
const variables = {
|
|
42
42
|
orderBy,
|
|
43
43
|
where: {
|
|
44
|
+
status: 'ACTIVE',
|
|
44
45
|
isSample,
|
|
45
46
|
...isStorefront && {
|
|
46
47
|
isStorefront
|
|
@@ -60,6 +61,7 @@ const fetchVariants = async (fetcher, { id , isSample , isStorefront })=>{
|
|
|
60
61
|
const initVariables = {
|
|
61
62
|
orderBy,
|
|
62
63
|
where: {
|
|
64
|
+
status: 'ACTIVE',
|
|
63
65
|
isSample,
|
|
64
66
|
...isStorefront && {
|
|
65
67
|
isStorefront
|
|
@@ -94,6 +96,7 @@ const fetchMedias = async (fetcher, { id , isSample , isStorefront })=>{
|
|
|
94
96
|
const initVariables = {
|
|
95
97
|
orderBy,
|
|
96
98
|
where: {
|
|
99
|
+
status: 'ACTIVE',
|
|
97
100
|
isSample,
|
|
98
101
|
...isStorefront && {
|
|
99
102
|
isStorefront
|