@contentful/app-sdk 4.0.0-alpha.34 → 4.0.0-alpha.35
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/CHANGELOG.md +7 -0
- package/dist/types/app.types.d.ts +2 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [4.0.0-alpha.35](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.34...v4.0.0-alpha.35) (2021-09-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* remove Promise<...> type from OnConfigureHandlerReturn ([#992](https://github.com/contentful/ui-extensions-sdk/issues/992)) ([19bbfbb](https://github.com/contentful/ui-extensions-sdk/commit/19bbfbb469cfb7904d05eb90df9e4f061e59f563))
|
|
7
|
+
|
|
1
8
|
# [4.0.0-alpha.34](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.33...v4.0.0-alpha.34) (2021-09-24)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -20,14 +20,11 @@ interface AppStateEditorInterfaceItem {
|
|
|
20
20
|
export interface AppState {
|
|
21
21
|
EditorInterface: Record<ContentType['sys']['id'], AppStateEditorInterfaceItem>;
|
|
22
22
|
}
|
|
23
|
-
export declare type OnConfigureHandlerReturn =
|
|
24
|
-
parameters?: KeyValueMap | null;
|
|
25
|
-
targetState?: AppState | null;
|
|
26
|
-
}> | {
|
|
23
|
+
export declare type OnConfigureHandlerReturn = {
|
|
27
24
|
parameters?: KeyValueMap | null;
|
|
28
25
|
targetState?: AppState | null;
|
|
29
26
|
} | false;
|
|
30
|
-
export declare type OnConfigureHandler = () => OnConfigureHandlerReturn
|
|
27
|
+
export declare type OnConfigureHandler = () => OnConfigureHandlerReturn | Promise<OnConfigureHandlerReturn>;
|
|
31
28
|
export interface AppConfigAPI {
|
|
32
29
|
/** Tells the web app that the app is loaded */
|
|
33
30
|
setReady: () => Promise<void>;
|
package/package.json
CHANGED