Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
693 B
Text
29 lines
693 B
Text
/**
|
|
* @license
|
|
* Copyright 2023 Google Inc.
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import type {PuppeteerInjectedUtil} from '../injected/injected.js';
|
|
|
|
import {QueryHandler} from './QueryHandler.js';
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
export class CSSQueryHandler extends QueryHandler {
|
|
static override querySelector = (
|
|
element: Node,
|
|
selector: string,
|
|
{cssQuerySelector}: PuppeteerInjectedUtil,
|
|
): Node | null => {
|
|
return cssQuerySelector(element, selector);
|
|
};
|
|
static override querySelectorAll = (
|
|
element: Node,
|
|
selector: string,
|
|
{cssQuerySelectorAll}: PuppeteerInjectedUtil,
|
|
): Iterable<Node> => {
|
|
return cssQuerySelectorAll(element, selector);
|
|
};
|
|
}
|