From df5e7138fb81f3c250235768c966dd089f153f28 Mon Sep 17 00:00:00 2001 From: Dave Bouwman Date: Mon, 6 May 2024 14:23:13 -0600 Subject: [PATCH 1/2] fix: add property mapping for data.content for site --- packages/common/src/sites/_internal/getPropertyMap.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/common/src/sites/_internal/getPropertyMap.ts b/packages/common/src/sites/_internal/getPropertyMap.ts index 3856842cb02..dcb20d89d2c 100644 --- a/packages/common/src/sites/_internal/getPropertyMap.ts +++ b/packages/common/src/sites/_internal/getPropertyMap.ts @@ -35,6 +35,7 @@ export function getPropertyMap(): IPropertyMap[] { map.push({ entityKey: "events", storeKey: "data.events" }); map.push({ entityKey: "initiatives", storeKey: "data.initiatives" }); map.push({ entityKey: "projects", storeKey: "data.projects" }); + map.push({ entityKey: "content", storeKey: "data.content" }); // Deeper/Indirect mappings map.push({ From ec900b97fd36f5939703c22937615f24441a565c Mon Sep 17 00:00:00 2001 From: Dave Bouwman Date: Thu, 9 May 2024 08:10:21 -0600 Subject: [PATCH 2/2] fix: allow additional props on ICapabilityConfig to streamline prototyping --- .../common/src/core/traits/ICapabilityConfig.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/common/src/core/traits/ICapabilityConfig.ts b/packages/common/src/core/traits/ICapabilityConfig.ts index 13ccb7477ae..b715761cfd3 100644 --- a/packages/common/src/core/traits/ICapabilityConfig.ts +++ b/packages/common/src/core/traits/ICapabilityConfig.ts @@ -1,4 +1,4 @@ -import { IFilter, IHubCatalog } from "../../search/types/IHubCatalog"; +import { IHubCatalog } from "../../search/types/IHubCatalog"; export type HubCapability = | "events" @@ -14,16 +14,16 @@ export type HubCapability = */ export interface ICapabilityConfig { enabled: boolean; - /** - * If defined, the filter will be injected into - * the entitie's content catalog's scope when the gallery is - * rendered - */ - filter?: IFilter; + /** * If defined, this catalog is used to render the gallery */ catalog?: IHubCatalog; + + /** + * Enable extensibiliy as we prototype + */ + [key: string]: any; } /** * We intentionally want these interfaces to exist even if they are empty