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>
26 lines
497 B
Text
26 lines
497 B
Text
/**
|
|
* @license
|
|
* Copyright 2024 Google Inc.
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
export const cssQuerySelector = (
|
|
root: Node,
|
|
selector: string,
|
|
): Element | null => {
|
|
// @ts-expect-error assume element root
|
|
return root.querySelector(selector);
|
|
};
|
|
/**
|
|
* @internal
|
|
*/
|
|
export const cssQuerySelectorAll = function (
|
|
root: Node,
|
|
selector: string,
|
|
): Iterable<Element> {
|
|
// @ts-expect-error assume element root
|
|
return root.querySelectorAll(selector);
|
|
};
|