Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add content to site propertyMap, allow more props on ICapabilityConfig #1508

Merged
merged 2 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading