UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

24 lines (23 loc) 949 B
import { PreviewSize } from "../preview"; import { ResolvedProperties, ResolvedProperty } from "../types"; /** * Build a readable label for a path and resolve the property * Supports map and array (including arrays of maps) */ export declare function buildPropertyLabelAndGetProperty(properties: ResolvedProperties, key: string): { label: string; property: ResolvedProperty | undefined; }; /** * Improved simple layout for nested changes: * - Map or Array-of-Map -> section header + indented rows * - Leaf or Array-of-Primitives -> single row with label and value */ export declare const PropertyCollectionView: ({ data, properties, baseKey, suppressHeader, size }: { data: any; properties: ResolvedProperties; baseKey?: string; suppressHeader?: boolean; size?: PreviewSize; }) => import("react/jsx-runtime").JSX.Element | null; export declare function buildDataFromPaths(values: object, paths: string[]): object;