MCPcopy Index your code
hub / github.com/shipshapecode/shepherd / parseExtraHighlights

Function parseExtraHighlights

shepherd.js/src/utils/general.ts:69–76  ·  view source on GitHub ↗
(step: Step)

Source from the content-addressed store, hash-verified

67 * Resolves the step's `extraHighlights` option, converting any locator values to HTMLElements.
68 */
69export function parseExtraHighlights(step: Step): HTMLElement[] {
70 if (step.options.extraHighlights) {
71 return step.options.extraHighlights.flatMap((highlight) => {
72 return Array.from(document.querySelectorAll(highlight)) as HTMLElement[];
73 });
74 }
75 return [];
76}
77
78/**
79 * Checks if the step should be centered or not. Does not trigger attachTo.element evaluation, making it a pure

Callers 2

general.spec.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected