@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/{CodeEditor-funqCist.cjs → CodeEditor-TiCZr6Ta.cjs} +1 -1
- package/dist/{Topbar-80aquFk1.cjs → Topbar-Rar8liE-.cjs} +1 -1
- package/dist/core.cjs +3 -3
- package/dist/core.d.ts +14 -14
- package/dist/core.js +148 -142
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +108 -100
- package/package.json +1 -1
- package/dist/{CodeEditor-NoUXWcBN.js → CodeEditor-4lhmWkV8.js} +1 -1
- package/dist/{Topbar-XOJDIb13.js → Topbar-iARshVmF.js} +1 -1
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
|
-
*
|
|
232
|
+
* Page Types props
|
|
233
233
|
*/
|
|
234
|
-
|
|
235
|
-
|
|
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 }
|