@chaibuilder/sdk 2.0.0-beta.29 → 2.0.0-beta.30

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/dist/core.d.ts CHANGED
@@ -229,10 +229,10 @@ export declare interface ChaiBuilderEditorProps {
229
229
  fallbackLang?: string;
230
230
  languages?: Array<string>;
231
231
  /**
232
- * Collections props
232
+ * Page Types props
233
233
  */
234
- collections?: Collection[];
235
- searchCollectionItems?: (collectionKey: string, query: string) => Promise<CollectionItem[] | Error>;
234
+ pageTypes?: PageType[];
235
+ searchPageTypeItems?: (pageTypeKey: string, query: string) => Promise<PageTypeItem[] | Error>;
236
236
  }
237
237
 
238
238
  declare type ChaiBuilderInstance = {
@@ -270,17 +270,6 @@ declare type CodeEditorProps = {
270
270
  placeholder?: string;
271
271
  };
272
272
 
273
- declare type Collection = {
274
- key: string;
275
- name: string;
276
- };
277
-
278
- declare type CollectionItem = {
279
- id: string;
280
- name: string;
281
- slug?: string;
282
- };
283
-
284
273
  declare type CopiedValue = string | null;
285
274
 
286
275
  declare type CopyFn = (text: string) => Promise<boolean>;
@@ -345,6 +334,17 @@ declare type OutlineMenuItem = {
345
334
 
346
335
  declare type OutlineMenuItems = OutlineMenuItem[];
347
336
 
337
+ declare type PageType = {
338
+ key: string;
339
+ name: string;
340
+ };
341
+
342
+ declare type PageTypeItem = {
343
+ id: string;
344
+ name: string;
345
+ slug?: string;
346
+ };
347
+
348
348
  declare type ReactComponentType = React_3.ComponentType<any>;
349
349
 
350
350
  export { registerChaiBlock }