Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Resolved conflicts by taking GitHub versions for: - .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml Kept deploy.sh updated to: - Pull from GitHub (primary source) - Push to Gitea (push-mirror) - Build from site/ directory (GitHub structure) Co-Authored-By: Paperclip <noreply@paperclip.ing>
25 lines
923 B
TypeScript
25 lines
923 B
TypeScript
import React, { type JSX } from 'react';
|
|
import type { ScriptHTMLAttributes } from 'react';
|
|
export interface ScriptProps extends ScriptHTMLAttributes<HTMLScriptElement> {
|
|
strategy?: 'afterInteractive' | 'lazyOnload' | 'beforeInteractive' | 'worker';
|
|
id?: string;
|
|
onLoad?: (e: any) => void;
|
|
onReady?: () => void | null;
|
|
onError?: (e: any) => void;
|
|
children?: React.ReactNode;
|
|
stylesheets?: string[];
|
|
}
|
|
/**
|
|
* @deprecated Use `ScriptProps` instead.
|
|
*/
|
|
export type Props = ScriptProps;
|
|
export declare function handleClientScriptLoad(props: ScriptProps): void;
|
|
export declare function initScriptLoader(scriptLoaderItems: ScriptProps[]): void;
|
|
/**
|
|
* Load a third-party scripts in an optimized way.
|
|
*
|
|
* Read more: [Next.js Docs: `next/script`](https://nextjs.org/docs/app/api-reference/components/script)
|
|
*/
|
|
declare function Script(props: ScriptProps): JSX.Element | null;
|
|
export default Script;
|