UNPKG

@tonyfreed/card-core

Version:

Core components and types for Ildex card system

34 lines 1.81 kB
/** * Card Selectors * Memoized selectors for accessing card state */ import type { CardState } from '../types'; import type { ICard, ICardSection, IProfile } from '../../types'; /** * Basic selectors */ export declare const selectCard: (state: CardState) => ICard | null; export declare const selectLanguage: (state: CardState) => import("../..").Language; export declare const selectTheme: (state: CardState) => import("../..").ThemeConfig; export declare const selectIsLoading: (state: CardState) => boolean; export declare const selectIsDirty: (state: CardState) => boolean; export declare const selectLastSaved: (state: CardState) => Date | null; /** * Derived selectors */ export declare const selectSections: (state: CardState) => ICardSection[]; export declare const selectProfileSection: (state: CardState) => IProfile | null; export declare const selectLinksSection: (state: CardState) => import("../..").IFooter | IProfile | import("../..").ILink[] | null; export declare const selectFooterSection: (state: CardState) => import("../..").IFooter | IProfile | import("../..").ILink[] | null; export declare const selectActiveSections: (state: CardState) => ICardSection[]; export declare const selectSectionById: (state: CardState, sectionId: string) => ICardSection | undefined; export declare const selectCardConfig: (state: CardState) => import("../..").ICardConfig | undefined; export declare const selectCardStatus: (state: CardState) => { published: boolean; lastModified: Date; version: string; } | undefined; export declare const selectIsCardPublished: (state: CardState) => boolean; export declare const selectCardVersion: (state: CardState) => string; export declare const selectLastModified: (state: CardState) => Date | null; //# sourceMappingURL=cardSelectors.d.ts.map