@gem-sdk/core 2.0.0-dev.695 → 2.0.0-dev.696
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.
|
@@ -33,6 +33,11 @@ const createShopStoreProvider = (data)=>zustand.createStore((set)=>({
|
|
|
33
33
|
layoutSettings
|
|
34
34
|
});
|
|
35
35
|
},
|
|
36
|
+
updatePriceWithCurrency: (isUseCurrency)=>{
|
|
37
|
+
set({
|
|
38
|
+
isUseCurrency
|
|
39
|
+
});
|
|
40
|
+
},
|
|
36
41
|
changeStorefrontInfo: ({ url, token })=>{
|
|
37
42
|
set({
|
|
38
43
|
storefrontUrl: url,
|
|
@@ -31,6 +31,11 @@ const createShopStoreProvider = (data)=>createStore((set)=>({
|
|
|
31
31
|
layoutSettings
|
|
32
32
|
});
|
|
33
33
|
},
|
|
34
|
+
updatePriceWithCurrency: (isUseCurrency)=>{
|
|
35
|
+
set({
|
|
36
|
+
isUseCurrency
|
|
37
|
+
});
|
|
38
|
+
},
|
|
34
39
|
changeStorefrontInfo: ({ url, token })=>{
|
|
35
40
|
set({
|
|
36
41
|
storefrontUrl: url,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7329,7 +7329,7 @@ type BuilderState = {
|
|
|
7329
7329
|
ROOT: BlockEntity;
|
|
7330
7330
|
} & SectionData;
|
|
7331
7331
|
type SectionData = Record<string, BuilderEntity>;
|
|
7332
|
-
type RenderMode = 'edit' | 'preview';
|
|
7332
|
+
type RenderMode = 'edit' | 'preview' | 'preview-post-purchase';
|
|
7333
7333
|
type DynamicProduct = {
|
|
7334
7334
|
productId?: string;
|
|
7335
7335
|
productHandle?: string;
|
|
@@ -34862,6 +34862,7 @@ type ShopContextProps = {
|
|
|
34862
34862
|
createThemeSectionCount?: number;
|
|
34863
34863
|
plan?: string;
|
|
34864
34864
|
timezone?: string;
|
|
34865
|
+
isUseCurrency?: boolean;
|
|
34865
34866
|
generateContentLimitation?: {
|
|
34866
34867
|
isAllow: boolean;
|
|
34867
34868
|
maxGenerateCount?: number;
|
|
@@ -34882,6 +34883,7 @@ type ShopContextProps = {
|
|
|
34882
34883
|
changeLayoutSettings: (layoutSettings: LayoutSettings) => void;
|
|
34883
34884
|
changeCreateThemeSectionCount: (count: number) => void;
|
|
34884
34885
|
changeShopPlan: (plan: string) => void;
|
|
34886
|
+
updatePriceWithCurrency: (isUseCurrency: boolean) => void;
|
|
34885
34887
|
changeLimitCreateThemeSection: (data: {
|
|
34886
34888
|
isLimit?: boolean;
|
|
34887
34889
|
total?: number;
|