veryfront 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ // Component type definitions
2
+ import type { ReactNode, HTMLAttributes, AnchorHTMLAttributes, ScriptHTMLAttributes, ImgHTMLAttributes } from 'react';
3
+
4
+ export interface HeadProps {
5
+ children?: ReactNode;
6
+ }
7
+
8
+ export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
9
+ href: string;
10
+ prefetch?: boolean;
11
+ replace?: boolean;
12
+ scroll?: boolean;
13
+ children?: ReactNode;
14
+ }
15
+
16
+ export interface ScriptProps extends ScriptHTMLAttributes<HTMLScriptElement> {
17
+ src?: string;
18
+ strategy?: 'beforeInteractive' | 'afterInteractive' | 'lazyOnload';
19
+ }
20
+
21
+ export interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
22
+ src: string;
23
+ alt: string;
24
+ width?: number;
25
+ height?: number;
26
+ priority?: boolean;
27
+ placeholder?: 'blur' | 'empty';
28
+ }
29
+
30
+ export declare function Head(props: HeadProps): JSX.Element;
31
+ export declare function Link(props: LinkProps): JSX.Element;
32
+ export declare function Script(props: ScriptProps): JSX.Element;
33
+ export declare function Image(props: ImageProps): JSX.Element;
@@ -525,7 +525,7 @@ var init_deno = __esm({
525
525
  "deno.json"() {
526
526
  deno_default = {
527
527
  name: "veryfront",
528
- version: "0.0.6",
528
+ version: "0.0.7",
529
529
  nodeModulesDir: "auto",
530
530
  workspace: [
531
531
  "./examples/async-worker-redis",