/** * Shared constants for the array-mapper pagination scroll behaviour. * * Two halves of the same contract live apart: `uidl-markers` stamps the * `data-*` attributes onto the UIDL, and `pagination-scroll-runtime` emits the * browser code that reads them back. Keeping the strings here is what stops the * two from drifting into a runtime that silently matches nothing. */ /** * UIDL element type of the container the GUI adds under a paginated array * mapper. It holds the previous/next `cms-navigation-button`s that * `teleport-plugin-next-data-source` wires to the mapper's page state. */ export declare const PAGINATION_ELEMENT_TYPE = "cms-pagination-node"; /** * UIDL element type of the search / sort / filter block an array mapper renders * ABOVE its rows. It is a sibling of the rows in the DOM, so the runtime has to * be able to tell it apart from the first row — see `LIST_CHROME_ATTR`. */ export declare const LIST_CONTROLS_ELEMENT_TYPE = "data-source-search-node"; /** Marks the pagination container. The runtime delegates off this attribute. */ export declare const PAGINATION_ATTR = "data-tq-pagination"; /** * Marks a sibling of the mapper's rows that is CHROME rather than a row, so the * runtime skips it when it looks for the first item to scroll to. */ export declare const LIST_CHROME_ATTR = "data-tq-list-chrome"; /** * Identifies which pagination control a node is, stamped by the builder and * read by `teleport-plugin-next-data-source` when it wires them. * * The runtime needs one of those values: `'load-more'`. Every other control * REPLACES the visible rows, so scrolling back to the top of the list is what * the visitor expects — but Load More APPENDS below what they are already * reading, and yanking them back to the first row would undo the click they * just made. */ export declare const PAGINATION_CONTROL_ATTR = "data-tq-pagination-control"; export declare const LOAD_MORE_CONTROL_VALUE = "load-more"; /** Emitted runtime path, relative to the generated project root. */ export declare const PAGINATION_SCROLL_RUNTIME_DIR: string[]; export declare const PAGINATION_SCROLL_RUNTIME_MODULE = "pagination-scroll"; /** Side-effect import spliced into `pages/_app`. */ export declare const PAGINATION_SCROLL_IMPORT: string; //# sourceMappingURL=constants.d.ts.map