@janbox/storefront-builder 1.0.3 → 1.0.4

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.
@@ -3,8 +3,8 @@ import { SidebarProps } from './sidebar';
3
3
  import { Resolver } from '../../types';
4
4
  export type EditorProps = {
5
5
  theme: Theme;
6
- insert: SidebarProps['insert'];
7
- resolver: Resolver;
6
+ insert?: SidebarProps['insert'];
7
+ resolver?: Resolver;
8
8
  };
9
9
  export type { InsertElementGroup, InsertSectionGroup } from './sidebar/insert-action';
10
- export declare const Editor: ({ theme, insert }: EditorProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export declare const Editor: ({ theme, insert, resolver }: EditorProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { InsertActionProps } from './insert-action';
2
2
  export type SidebarProps = {
3
- insert: InsertActionProps;
3
+ insert?: InsertActionProps;
4
4
  };
5
5
  export declare const Sidebar: ({ insert }: SidebarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -20,8 +20,8 @@ export type InsertSectionGroup = {
20
20
  }[];
21
21
  };
22
22
  export interface InsertActionProps {
23
- elements: InsertElementGroup[];
24
- sections: InsertSectionGroup[];
23
+ elements?: InsertElementGroup[];
24
+ sections?: InsertSectionGroup[];
25
25
  }
26
26
  export declare const InsertAction: ({ elements, sections }: InsertActionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
27
27
  export declare const SectionInsertionGroup: ({ group }: {