@zhead/schema
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -0,1 +1,28 @@ | ||
declare type Stringable = string | boolean | number | Date; | ||
interface BodyAttributes { | ||
/** | ||
* Any arbitrary keys such as `data-*`. | ||
*/ | ||
[key: string]: Stringable; | ||
} | ||
interface HtmlAttributes { | ||
/** | ||
* The lang global attribute helps define the language of an element: the language that non-editable elements are | ||
* written in, or the language that the editable elements should be written in by the user. | ||
* | ||
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang | ||
*/ | ||
lang: string; | ||
/** | ||
* The dir global attribute is an enumerated attribute that indicates the directionality of the element's text. | ||
*/ | ||
dir: 'ltr' | 'rtl' | 'auto'; | ||
/** | ||
* Any arbitrary keys such as `data-*`. | ||
*/ | ||
[key: string]: Stringable; | ||
} | ||
interface Link { | ||
@@ -122,3 +149,3 @@ /** | ||
declare type LinkEntries = Partial<Link & { | ||
[key: string]: string | boolean; | ||
[key: string]: Stringable; | ||
}>[]; | ||
@@ -749,3 +776,3 @@ | ||
declare type MetaEntries = Partial<Meta & { | ||
[key: string]: string | boolean; | ||
[key: string]: Stringable; | ||
}>[]; | ||
@@ -836,5 +863,19 @@ | ||
declare type ScriptEntries = Partial<Script & { | ||
[key: string]: string | boolean; | ||
[key: string]: Stringable; | ||
}>[]; | ||
interface Noscript { | ||
/** | ||
* @internal This property is used to dedupe the link tags | ||
*/ | ||
key: string; | ||
/** | ||
* @internal Content of the script tag | ||
*/ | ||
children: string; | ||
} | ||
declare type NoscriptEntries = Partial<Noscript & { | ||
[key: string]: Stringable; | ||
}>[]; | ||
interface Style { | ||
@@ -872,3 +913,3 @@ /** | ||
declare type StyleEntries = Partial<Style & { | ||
[key: string]: string | boolean; | ||
[key: string]: Stringable; | ||
}>[]; | ||
@@ -934,4 +975,23 @@ | ||
script?: ScriptEntries; | ||
/** | ||
* The <noscript> HTML element defines a section of HTML to be inserted if a script type on the page is unsupported | ||
* or if scripting is currently turned off in the browser. | ||
* | ||
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript | ||
*/ | ||
noscript?: NoscriptEntries; | ||
/** | ||
* Attributes for the <html> HTML element. | ||
* | ||
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html | ||
*/ | ||
htmlAttrs?: HtmlAttributes; | ||
/** | ||
* Attributes for the <body> HTML element. | ||
* | ||
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body | ||
*/ | ||
bodyAttrs?: BodyAttributes; | ||
} | ||
export { Base, Head, Link, LinkEntries, Meta, MetaEntries, MetaFlat, MetaFlatInput, Script, ScriptEntries, Style, StyleEntries }; | ||
export { Base, BodyAttributes, Head, HtmlAttributes, Link, LinkEntries, Meta, MetaEntries, MetaFlat, MetaFlatInput, Noscript, NoscriptEntries, Script, ScriptEntries, Style, StyleEntries }; |
{ | ||
"name": "@zhead/schema", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"packageManager": "pnpm@7.8.0", | ||
@@ -35,5 +35,2 @@ "author": "Harlan Wilton <harlan@harlanzw.com>", | ||
], | ||
"dependencies": { | ||
"zod": "^3.19.0" | ||
}, | ||
"scripts": { | ||
@@ -40,0 +37,0 @@ "build": "unbuild .", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41824
0
983
- Removedzod@^3.19.0
- Removedzod@3.23.8(transitive)