From c947301d2090e9e3a8a520e92a2026544cf18e15 Mon Sep 17 00:00:00 2001 From: Dave Bouwman Date: Thu, 9 May 2024 08:46:27 -0600 Subject: [PATCH] fix: add content to site propertyMap, allow more props on ICapabilityConfig (#1508) --- .../common/src/core/traits/ICapabilityConfig.ts | 14 +++++++------- .../common/src/sites/_internal/getPropertyMap.ts | 1 + 2 files changed, 8 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 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({