fix(home): restore CI by fixing loader and exposing widget dataRef
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
This commit is contained in:
@@ -47,7 +47,13 @@ export const HomepageWidgetBlueprint: ExtensionBlueprint<{
|
||||
inputs: {};
|
||||
config: {};
|
||||
configInput: {};
|
||||
dataRefs: never;
|
||||
dataRefs: {
|
||||
widget: ConfigurableExtensionDataRef<
|
||||
HomePageWidgetData,
|
||||
'home.widget.data',
|
||||
{}
|
||||
>;
|
||||
};
|
||||
}>;
|
||||
|
||||
// @alpha (undocumented)
|
||||
|
||||
@@ -75,6 +75,9 @@ const DEFAULT_WIDGET_ATTACH_POINT = {
|
||||
export const HomepageWidgetBlueprint = createExtensionBlueprint({
|
||||
kind: 'home-widget',
|
||||
attachTo: DEFAULT_WIDGET_ATTACH_POINT,
|
||||
dataRefs: {
|
||||
widget: homePageWidgetDataRef,
|
||||
},
|
||||
output: [homePageWidgetDataRef],
|
||||
*factory(params: HomepageWidgetBlueprintParams, { node }) {
|
||||
const isCustomizable = params.settings?.schema !== undefined;
|
||||
|
||||
@@ -62,10 +62,10 @@ const homePage = PageBlueprint.makeWithOverrides({
|
||||
routeRef: rootRouteRef,
|
||||
loader: () =>
|
||||
import('./components/').then(m => (
|
||||
<m.HomepageCompositionRoot
|
||||
children={inputs.props?.get(coreExtensionData.reactElement)}
|
||||
title={inputs.props?.get(coreExtensionData.title)}
|
||||
/>,
|
||||
<m.HomepageCompositionRoot
|
||||
children={inputs.props?.get(coreExtensionData.reactElement)}
|
||||
title={inputs.props?.get(coreExtensionData.title)}
|
||||
/>
|
||||
)),
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user