@gem-sdk/core 2.1.27-staging.20 → 2.1.27-staging.23
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.
|
@@ -12,6 +12,7 @@ var RenderSection = require('./RenderSection.js');
|
|
|
12
12
|
|
|
13
13
|
const RenderPreview = ({ uid, ...passProps })=>{
|
|
14
14
|
const item = BuilderPreviewContext.useBuilderPreviewStore((s)=>s.getItem(uid));
|
|
15
|
+
BuilderPreviewContext.useBuilderPreviewStore((s)=>s.getState());
|
|
15
16
|
const Component = BuilderComponent.useBuilderComponent(item?.tag);
|
|
16
17
|
if (!item) return null;
|
|
17
18
|
if (item?.type === 'section') {
|
|
@@ -8,6 +8,7 @@ import RenderSectionMemo from './RenderSection.js';
|
|
|
8
8
|
|
|
9
9
|
const RenderPreview = ({ uid, ...passProps })=>{
|
|
10
10
|
const item = useBuilderPreviewStore((s)=>s.getItem(uid));
|
|
11
|
+
useBuilderPreviewStore((s)=>s.getState());
|
|
11
12
|
const Component = useBuilderComponent(item?.tag);
|
|
12
13
|
if (!item) return null;
|
|
13
14
|
if (item?.type === 'section') {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7490,7 +7490,7 @@ type StampedWidgetTypeV2 = 'main-widget' | 'product-rating-image' | 'badge-doubl
|
|
|
7490
7490
|
type LaiProductReviewsWidgetType = 'reviews_widget' | 'star_ratings' | 'homepage_reviews' | 'happy_customer_reviews' | 'star_ratings_in_list' | 'advanced_widget';
|
|
7491
7491
|
type LaiProductReviewsAdvancedWidgetType = 'cardCarousel' | 'testimonialCarousel' | 'mediaGallery' | 'cardGrid';
|
|
7492
7492
|
type YotpoReviewsWidgetType = 'reviews' | 'star-rating' | 'reviewHighlights';
|
|
7493
|
-
type BogosWidgetType = 'icon' | 'thumnail' | 'slider' | 'message' | 'classic-bundle' | 'quantity-break' | 'mix-match'
|
|
7493
|
+
type BogosWidgetType = 'icon' | 'thumnail' | 'slider' | 'message' | 'classic-bundle' | 'quantity-break' | 'mix-match';
|
|
7494
7494
|
type PreOrderNowWodWidgetType = 'app-block' | 'popups-block';
|
|
7495
7495
|
type TagShopWidgetType = 'homeLandingGalleries' | 'productGalleries' | 'tagGalleries';
|
|
7496
7496
|
type AirProductReview = 'review_box' | 'star_rating' | 'review_carousel';
|
|
@@ -35995,6 +35995,7 @@ type BuilderPreviewContextProps = {
|
|
|
35995
35995
|
group?: GroupPropType;
|
|
35996
35996
|
}) => void;
|
|
35997
35997
|
getItem: (id: string) => BuilderEntity | undefined;
|
|
35998
|
+
getState: () => BuilderState;
|
|
35998
35999
|
removeItem: (id: string) => void;
|
|
35999
36000
|
forceChangeState: (data: BuilderState) => void;
|
|
36000
36001
|
initState: (data: BuilderEntityNested | BuilderEntityNested[]) => void;
|