UNPKG

@mikezimm/npmfunctions

Version:
65 lines (51 loc) 2.71 kB
export const changeRelated1 = [ 'related1heading', 'related1showItems' , 'related1isExpanded' , 'related1web' , 'related1listTitle', 'related1restFilter', 'related1linkProp', 'related1displayProp', 'relatedStyle' ]; export const changeRelated2 = [ 'related2heading', 'related2showItems' , 'related2isExpanded' , 'related2web' , 'related2listTitle', 'related2restFilter', 'related2linkProp', 'related2displayProp' ]; export interface IMinRelatedWPProps { [key: string]: string | boolean | undefined; relatedStyle: string; related1heading?: string; related1showItems?: boolean; related1isExpanded?: boolean; related1web?: string; related1listTitle?: string; related1AreFiles?: boolean; // Used to include ServerRedirectedEmbedUrl in fetch for alt-click related1restFilter?: string; related1linkProp?: string; // aka FileLeaf to open file name, if empty, will just show the value related1displayProp?: string; related2heading?: string; related2showItems?: boolean; related2isExpanded?: boolean; related2web?: string; related2listTitle?: string; related2AreFiles?: boolean; // Used to include ServerRedirectedEmbedUrl in fetch for alt-click related2restFilter?: string; related2linkProp?: string; // aka FileLeaf to open file name, if empty, will just show the value related2displayProp?: string; //Only added these as optional to pass typing in buildRelatedItemsPropsGroup pageLinksshowItems?: boolean; } export const changePageLinks = [ 'pageLinksheading', 'pageLinksshowItems' , 'pageLinksisExpanded' , 'pageLinksweb' , 'pageLinkslistTitle', 'pageLinksrestFilter', 'pageLinkslinkProp', 'pageLinksdisplayProp', 'canvasLinks', 'canvasImgs', 'linkSearchBox' ]; export interface IMinPageLinksProps { [key: string]: string | boolean | undefined; relatedStyle: string; pageLinksheading?: string; pageLinksshowItems?: boolean; pageLinksisExpanded?: boolean; pageLinksweb?: string; pageLinkslistTitle?: string; pageLinksrestFilter?: string; pageLinkslinkProp?: string; // aka FileLeaf to open file name, if empty, will just show the value pageLinksdisplayProp?: string; canvasLinks?: boolean; canvasImgs?: boolean; //Address https://github.com/mikezimm/PageInfo/issues/79 ignoreDefaultImages?: boolean; //This was added to auto-ignore certain images which always show up as empty... have default in url. linkSearchBox?: boolean; //Only added these as optional to pass typing in buildRelatedItemsPropsGroup related1showItems?: boolean; related2showItems?: boolean; }