@gem-sdk/core 2.0.0-dev.393 → 2.0.0-dev.402
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.
|
@@ -13,6 +13,7 @@ var RenderSection = require('./RenderSection.js');
|
|
|
13
13
|
|
|
14
14
|
const RenderPreview = ({ uid, ...passProps })=>{
|
|
15
15
|
const item = BuilderPreviewContext.useBuilderPreviewStore((s)=>s.getItem(uid));
|
|
16
|
+
BuilderPreviewContext.useBuilderPreviewStore((s)=>s.getState());
|
|
16
17
|
const Component = BuilderComponent.useBuilderComponent(item?.tag);
|
|
17
18
|
if (!item) return null;
|
|
18
19
|
if (item?.type === 'section') {
|
|
@@ -9,6 +9,7 @@ import RenderSectionMemo from './RenderSection.js';
|
|
|
9
9
|
|
|
10
10
|
const RenderPreview = ({ uid, ...passProps })=>{
|
|
11
11
|
const item = useBuilderPreviewStore((s)=>s.getItem(uid));
|
|
12
|
+
useBuilderPreviewStore((s)=>s.getState());
|
|
12
13
|
const Component = useBuilderComponent(item?.tag);
|
|
13
14
|
if (!item) return null;
|
|
14
15
|
if (item?.type === 'section') {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -34618,6 +34618,7 @@ type BuilderPreviewContextProps = {
|
|
|
34618
34618
|
group?: GroupPropType;
|
|
34619
34619
|
}) => void;
|
|
34620
34620
|
getItem: (id: string) => BuilderEntity | undefined;
|
|
34621
|
+
getState: () => BuilderState;
|
|
34621
34622
|
removeItem: (id: string) => void;
|
|
34622
34623
|
forceChangeState: (data: BuilderState) => void;
|
|
34623
34624
|
initState: (data: BuilderEntityNested | BuilderEntityNested[]) => void;
|
|
@@ -36155,6 +36156,7 @@ type TextareaControlType<T> = SharedControlType<T> & {
|
|
|
36155
36156
|
autoHeight?: boolean;
|
|
36156
36157
|
defaultRows?: number;
|
|
36157
36158
|
showPlusBtn?: boolean;
|
|
36159
|
+
isFocusToBottom?: boolean;
|
|
36158
36160
|
isFallback?: boolean;
|
|
36159
36161
|
suggestContents?: {
|
|
36160
36162
|
message: string;
|