@gem-sdk/core 2.0.0-dev.396 → 2.0.0-dev.403

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') {
@@ -257,6 +257,9 @@ const createBuilderPreviewProvider = (args, pageName, isThemeSectionEditor)=>zus
257
257
  getItem: (id)=>{
258
258
  return get().state[id];
259
259
  },
260
+ getState: ()=>{
261
+ return get().state;
262
+ },
260
263
  removeItem: (id)=>{
261
264
  if (id === 'ROOT') {
262
265
  set({
@@ -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') {
@@ -255,6 +255,9 @@ const createBuilderPreviewProvider = (args, pageName, isThemeSectionEditor)=>cre
255
255
  getItem: (id)=>{
256
256
  return get().state[id];
257
257
  },
258
+ getState: ()=>{
259
+ return get().state;
260
+ },
258
261
  removeItem: (id)=>{
259
262
  if (id === 'ROOT') {
260
263
  set({
@@ -34306,7 +34306,7 @@ type CornerRadius = {
34306
34306
  bbrr?: string;
34307
34307
  radiusType?: CornerRadiusType;
34308
34308
  };
34309
- type CornerRadiusType = 'none' | 'large' | 'medium' | 'small' | 'circle' | 'custom' | 'rounded';
34309
+ type CornerRadiusType = 'none' | 'large' | 'medium' | 'small' | 'circle' | 'custom' | 'rounded' | 'square';
34310
34310
  type ColorType$1 = NestedKeys<BrandColorObject> | NestedKeys<BackgroundColorObject> | NestedKeys<TextColorObject> | NestedKeys<LineColorObject> | NestedKeys<FuncColorObject>;
34311
34311
  type FontName = 'body' | 'heading' | 'code';
34312
34312
  type ColorKey = 'transparent' | 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray';
@@ -34348,7 +34348,7 @@ type ObjectDeviceGlobalType<T> = {
34348
34348
  mobile?: T;
34349
34349
  };
34350
34350
  type SpacingType = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
34351
- type RoundedSize = 'small' | 'medium' | 'large' | 'circle' | 'none' | 'custom' | 'rounded';
34351
+ type RoundedSize = 'small' | 'medium' | 'large' | 'circle' | 'none' | 'custom' | 'rounded' | 'square';
34352
34352
  type ContainerProp = 'width' | 'padding';
34353
34353
  type GlobalStyleResponsiveConfig = {
34354
34354
  color?: Partial<Record<ColorType$1, string>>;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "2.0.0-dev.396",
3
+ "version": "2.0.0-dev.403",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",