Skip to content

Commit

Permalink
fix: add content to site propertyMap, allow more props on ICapability…
Browse files Browse the repository at this point in the history
…Config (#1508)
  • Loading branch information
dbouwman authored May 9, 2024
1 parent 8868f9a commit c947301
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/common/src/core/traits/ICapabilityConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IFilter, IHubCatalog } from "../../search/types/IHubCatalog";
import { IHubCatalog } from "../../search/types/IHubCatalog";

export type HubCapability =
| "events"
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/sites/_internal/getPropertyMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit c947301

Please sign in to comment.