react-bricks 3.0.0 → 3.1.0-alpha.0

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.
package/react-bricks.d.ts CHANGED
@@ -154,6 +154,7 @@ declare namespace types {
154
154
  slug: string;
155
155
  meta: IMeta;
156
156
  customValues?: Props;
157
+ externalData?: Props;
157
158
  content: IContentBlock[];
158
159
  authorId?: string;
159
160
  author: Author;
@@ -253,6 +254,7 @@ declare namespace types {
253
254
  hideFromAddMenu?: boolean;
254
255
  sideEditProps?: Array<ISideEditProp | ISideGroup>;
255
256
  repeaterItems?: IRepeaterItem[];
257
+ mapExternalDataToProps?: (externalData: Props, brickProps?: Props) => Props;
256
258
  playgroundLinkUrl?: string;
257
259
  playgroundLinkLabel?: string;
258
260
  category?: string;
@@ -368,6 +370,7 @@ declare namespace types {
368
370
  defaultFeaturedImage?: string;
369
371
  getDefaultContent?: () => string[];
370
372
  customFields?: Array<ISideEditPropPage | ISideGroup>;
373
+ getExternalData?: (page: Page) => Promise<Props>;
371
374
  }
372
375
  /**
373
376
  * Structure returned by the cleanBlocks function
@@ -709,7 +712,7 @@ declare const useReactBricksContext: () => types.IReactBricksContext;
709
712
 
710
713
  declare const useAdminContext: () => types.IReadAdminContext;
711
714
 
712
- declare const fetchPage: (slug: string, apiKey: string, language?: string | undefined) => Promise<types.Page>;
715
+ declare const fetchPage: (slug: string, apiKey: string, language?: string | undefined, pageTypes?: types.IPageType[] | undefined) => Promise<types.Page>;
713
716
 
714
717
  /**
715
718
  * Values returned from fetchPages