@mpen/jsxhtml 0.2.2 → 0.4.0
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.
- package/dist/classnames.d.ts +11 -0
- package/dist/classnames.test.d.ts +1 -0
- package/dist/css-escape.d.ts +25 -0
- package/dist/custom/C.d.ts +6 -0
- package/dist/custom/Checkbox.d.ts +5 -0
- package/dist/custom/ColorInput.d.ts +5 -0
- package/dist/custom/DateInput.d.ts +5 -0
- package/dist/custom/DocType.d.ts +6 -0
- package/dist/custom/EmailInput.d.ts +5 -0
- package/dist/custom/Empty.d.ts +4 -0
- package/dist/custom/FileInput.d.ts +5 -0
- package/dist/custom/HtmlDocument.d.ts +5 -0
- package/dist/custom/NumberInput.d.ts +5 -0
- package/dist/custom/PasswordInput.d.ts +5 -0
- package/dist/custom/RadioButton.d.ts +5 -0
- package/dist/custom/RangeInput.d.ts +5 -0
- package/dist/custom/RawHtml.d.ts +6 -0
- package/dist/custom/SearchInput.d.ts +5 -0
- package/dist/custom/TelephoneInput.d.ts +5 -0
- package/dist/custom/TextInput.d.ts +5 -0
- package/dist/custom/TimeInput.d.ts +5 -0
- package/dist/custom/UrlInput.d.ts +5 -0
- package/dist/custom/WeekInput.d.ts +5 -0
- package/dist/custom/index.d.ts +20 -0
- package/dist/custom-components.d.ts +1 -23
- package/dist/htmlspec/IntrinsicElements.d.ts +568 -147
- package/dist/htmlspec/attributes/AriaAttributes.d.ts +11 -0
- package/dist/htmlspec/attributes/ElementAttributes.d.ts +28 -0
- package/dist/htmlspec/attributes/EventHandlers.d.ts +102 -0
- package/dist/htmlspec/attributes/GlobalAttributes.d.ts +11 -0
- package/dist/htmlspec/{GlobalAttributes.d.ts → attributes/StandardGlobalAttributes.d.ts} +26 -37
- package/dist/htmlspec/attributes/index.d.ts +7 -0
- package/dist/htmlspec/elements/a.d.ts +71 -0
- package/dist/htmlspec/elements/abbr.d.ts +4 -0
- package/dist/htmlspec/elements/address.d.ts +4 -0
- package/dist/htmlspec/elements/area.d.ts +66 -0
- package/dist/htmlspec/elements/article.d.ts +4 -0
- package/dist/htmlspec/elements/aside.d.ts +4 -0
- package/dist/htmlspec/elements/audio.d.ts +45 -0
- package/dist/htmlspec/elements/b.d.ts +4 -0
- package/dist/htmlspec/elements/base.d.ts +18 -0
- package/dist/htmlspec/elements/bdi.d.ts +4 -0
- package/dist/htmlspec/elements/bdo.d.ts +4 -0
- package/dist/htmlspec/elements/blockquote.d.ts +8 -0
- package/dist/htmlspec/elements/body.d.ts +92 -0
- package/dist/htmlspec/elements/br.d.ts +4 -0
- package/dist/htmlspec/elements/button.d.ts +103 -0
- package/dist/htmlspec/elements/canvas.d.ts +13 -0
- package/dist/htmlspec/elements/caption.d.ts +4 -0
- package/dist/htmlspec/elements/cite.d.ts +4 -0
- package/dist/htmlspec/elements/code.d.ts +4 -0
- package/dist/htmlspec/elements/col.d.ts +9 -0
- package/dist/htmlspec/elements/colgroup.d.ts +9 -0
- package/dist/htmlspec/elements/data.d.ts +9 -0
- package/dist/htmlspec/elements/datalist.d.ts +4 -0
- package/dist/htmlspec/elements/dd.d.ts +4 -0
- package/dist/htmlspec/elements/del.d.ts +12 -0
- package/dist/htmlspec/elements/details.d.ts +12 -0
- package/dist/htmlspec/elements/dfn.d.ts +4 -0
- package/dist/htmlspec/elements/dialog.d.ts +17 -0
- package/dist/htmlspec/elements/div.d.ts +4 -0
- package/dist/htmlspec/elements/dl.d.ts +4 -0
- package/dist/htmlspec/elements/dt.d.ts +4 -0
- package/dist/htmlspec/elements/element-types.d.ts +1 -0
- package/dist/htmlspec/elements/em.d.ts +4 -0
- package/dist/htmlspec/elements/embed.d.ts +21 -0
- package/dist/htmlspec/elements/fencedframe.d.ts +23 -0
- package/dist/htmlspec/elements/fieldset.d.ts +16 -0
- package/dist/htmlspec/elements/figcaption.d.ts +4 -0
- package/dist/htmlspec/elements/figure.d.ts +4 -0
- package/dist/htmlspec/elements/footer.d.ts +4 -0
- package/dist/htmlspec/elements/form.d.ts +61 -0
- package/dist/htmlspec/elements/h1.d.ts +4 -0
- package/dist/htmlspec/elements/h2.d.ts +4 -0
- package/dist/htmlspec/elements/h3.d.ts +4 -0
- package/dist/htmlspec/elements/h4.d.ts +4 -0
- package/dist/htmlspec/elements/h5.d.ts +4 -0
- package/dist/htmlspec/elements/h6.d.ts +4 -0
- package/dist/htmlspec/elements/head.d.ts +4 -0
- package/dist/htmlspec/elements/header.d.ts +4 -0
- package/dist/htmlspec/elements/hgroup.d.ts +4 -0
- package/dist/htmlspec/elements/hr.d.ts +4 -0
- package/dist/htmlspec/elements/html.d.ts +8 -0
- package/dist/htmlspec/elements/i.d.ts +4 -0
- package/dist/htmlspec/elements/iframe.d.ts +82 -0
- package/dist/htmlspec/elements/img.d.ts +90 -0
- package/dist/htmlspec/elements/index.d.ts +114 -0
- package/dist/htmlspec/elements/input.d.ts +189 -0
- package/dist/htmlspec/elements/ins.d.ts +12 -0
- package/dist/htmlspec/elements/kbd.d.ts +4 -0
- package/dist/htmlspec/elements/label.d.ts +8 -0
- package/dist/htmlspec/elements/legend.d.ts +4 -0
- package/dist/htmlspec/elements/li.d.ts +19 -0
- package/dist/htmlspec/elements/link.d.ts +77 -0
- package/dist/htmlspec/elements/main.d.ts +4 -0
- package/dist/htmlspec/elements/map.d.ts +8 -0
- package/dist/htmlspec/elements/mark.d.ts +4 -0
- package/dist/htmlspec/elements/menu.d.ts +4 -0
- package/dist/htmlspec/elements/meta.d.ts +24 -0
- package/dist/htmlspec/elements/meter.d.ts +29 -0
- package/dist/htmlspec/elements/nav.d.ts +4 -0
- package/dist/htmlspec/elements/noscript.d.ts +4 -0
- package/dist/htmlspec/elements/object.d.ts +29 -0
- package/dist/htmlspec/elements/ol.d.ts +24 -0
- package/dist/htmlspec/elements/optgroup.d.ts +12 -0
- package/dist/htmlspec/elements/option.d.ts +21 -0
- package/dist/htmlspec/elements/output.d.ts +16 -0
- package/dist/htmlspec/elements/p.d.ts +4 -0
- package/dist/htmlspec/elements/picture.d.ts +4 -0
- package/dist/htmlspec/elements/pre.d.ts +4 -0
- package/dist/htmlspec/elements/progress.d.ts +13 -0
- package/dist/htmlspec/elements/q.d.ts +8 -0
- package/dist/htmlspec/elements/rp.d.ts +4 -0
- package/dist/htmlspec/elements/rt.d.ts +4 -0
- package/dist/htmlspec/elements/ruby.d.ts +4 -0
- package/dist/htmlspec/elements/s.d.ts +4 -0
- package/dist/htmlspec/elements/samp.d.ts +4 -0
- package/dist/htmlspec/elements/script.d.ts +57 -0
- package/dist/htmlspec/elements/search.d.ts +4 -0
- package/dist/htmlspec/elements/section.d.ts +4 -0
- package/dist/htmlspec/elements/select.d.ts +37 -0
- package/dist/htmlspec/elements/selectedcontent.d.ts +7 -0
- package/dist/htmlspec/elements/slot.d.ts +8 -0
- package/dist/htmlspec/elements/small.d.ts +4 -0
- package/dist/htmlspec/elements/source.d.ts +33 -0
- package/dist/htmlspec/elements/span.d.ts +4 -0
- package/dist/htmlspec/elements/strong.d.ts +4 -0
- package/dist/htmlspec/elements/style.d.ts +21 -0
- package/dist/htmlspec/elements/sub.d.ts +4 -0
- package/dist/htmlspec/elements/summary.d.ts +4 -0
- package/dist/htmlspec/elements/sup.d.ts +4 -0
- package/dist/htmlspec/elements/table.d.ts +4 -0
- package/dist/htmlspec/elements/tbody.d.ts +4 -0
- package/dist/htmlspec/elements/td.d.ts +17 -0
- package/dist/htmlspec/elements/template.d.ts +29 -0
- package/dist/htmlspec/elements/textarea.d.ts +66 -0
- package/dist/htmlspec/elements/tfoot.d.ts +4 -0
- package/dist/htmlspec/elements/th.d.ts +31 -0
- package/dist/htmlspec/elements/thead.d.ts +4 -0
- package/dist/htmlspec/elements/time.d.ts +8 -0
- package/dist/htmlspec/elements/title.d.ts +4 -0
- package/dist/htmlspec/elements/tr.d.ts +4 -0
- package/dist/htmlspec/elements/track.d.ts +31 -0
- package/dist/htmlspec/elements/u.d.ts +4 -0
- package/dist/htmlspec/elements/ul.d.ts +12 -0
- package/dist/htmlspec/elements/var.d.ts +4 -0
- package/dist/htmlspec/elements/video.d.ts +66 -0
- package/dist/htmlspec/elements/wbr.d.ts +4 -0
- package/dist/index.cjs +144 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +114 -9
- package/dist/internal/dev.d.ts +1 -0
- package/dist/internal/kitchen-sink-dev.d.ts +7 -0
- package/dist/internal/kitchen-sink.d.ts +2 -0
- package/dist/internal/log.d.ts +2 -0
- package/dist/internal/type-assert.d.ts +39 -0
- package/dist/jsx-dev-runtime.cjs +3 -2
- package/dist/jsx-dev-runtime.mjs +2 -3
- package/dist/{jsx-runtime-DpEMYmD9.js → jsx-runtime-BQPDXeiv.js} +675 -32
- package/dist/{jsx-runtime-CsQM2fQb.js → jsx-runtime-DlHYwToA.js} +672 -33
- package/dist/jsx-runtime.cjs +3 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/jsx-types.d.ts +6 -24
- package/dist/jsx.d.ts +3 -2
- package/dist/jsx.test.d.ts +1 -0
- package/dist/template-strings.d.ts +12 -0
- package/dist/template-strings.test.d.ts +6 -0
- package/package.json +93 -82
- package/dist/htmlspec/AnchorElement.d.ts +0 -83
package/dist/jsx-runtime.cjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var jsxRuntime = require("./jsx-runtime-
|
|
3
|
+
var jsxRuntime = require("./jsx-runtime-BQPDXeiv.js");
|
|
4
4
|
|
|
5
5
|
exports.Fragment = jsxRuntime.Fragment;
|
|
6
6
|
|
|
7
|
+
exports.JSX = jsxRuntime.JSX;
|
|
8
|
+
|
|
7
9
|
exports.jsx = jsxRuntime.jsx;
|
|
8
10
|
|
|
9
11
|
exports.jsxs = jsxRuntime.jsxs;
|
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { F as Fragment,
|
|
1
|
+
export { F as Fragment, m as JSX, j as jsx, a as jsxs } from "./jsx-runtime-DlHYwToA.js";
|
package/dist/jsx-types.d.ts
CHANGED
|
@@ -1,34 +1,16 @@
|
|
|
1
1
|
import type { JsxNode } from './jsx-node';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
export interface Stringable {
|
|
5
|
-
toString(): string;
|
|
6
|
-
}
|
|
2
|
+
import type { AnyAttributes, AttrArr, AttrKvPair, AttrObj, AttributeValue, Attributes, ClassNames, CommonAttributes, JsxChildren, JsxRenderable, SpecialAttributes, Stringable, StyleObject } from './htmlspec/attributes/ElementAttributes';
|
|
3
|
+
export type { Stringable };
|
|
7
4
|
export type PlainObject = Record<PropertyKey, unknown>;
|
|
8
|
-
export type ClassNames
|
|
9
|
-
export type StyleObject = import('csstype').Properties | import('csstype').PropertiesHyphen;
|
|
10
|
-
export type AttributeValue = Stringable | StyleObject | ClassNames;
|
|
11
|
-
export type AttrKvPair = [name: string, value: AttributeValue];
|
|
12
|
-
export type AttrArr = AttrKvPair[];
|
|
13
|
-
export type AttrObj = Record<string, AttributeValue>;
|
|
14
|
-
export type Attributes = AttrObj | AttrArr;
|
|
5
|
+
export type { ClassNames, StyleObject, AttributeValue, AttrKvPair, AttrArr, AttrObj, Attributes };
|
|
15
6
|
export type UnkFn = (...args: unknown[]) => unknown;
|
|
16
7
|
export type AnyFn = (...args: any[]) => any;
|
|
17
8
|
export type HtmlSafe = {
|
|
18
9
|
__html: string;
|
|
19
10
|
};
|
|
20
|
-
export type JsxRenderable
|
|
21
|
-
export type
|
|
22
|
-
export type
|
|
23
|
-
children?: JsxChildren;
|
|
24
|
-
style?: StyleObject | string;
|
|
25
|
-
/**
|
|
26
|
-
* CSS class.
|
|
27
|
-
*/
|
|
28
|
-
class?: ClassNames;
|
|
29
|
-
};
|
|
30
|
-
export type CommonProps = Override<AllGlobalAttributes, SpecialProps>;
|
|
31
|
-
export type AnyAttributes = Override<AttrObj, CommonProps>;
|
|
11
|
+
export type { JsxRenderable, JsxChildren };
|
|
12
|
+
export type { SpecialAttributes };
|
|
13
|
+
export type { CommonAttributes, AnyAttributes };
|
|
32
14
|
export type JsxComponent<P = AnyAttributes> = ((props: P) => JsxNode) & {
|
|
33
15
|
displayName?: string;
|
|
34
16
|
name?: string;
|
package/dist/jsx.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference no-default-lib="true"/>
|
|
2
|
-
import { JsxNode } from './jsx-node';
|
|
3
|
-
import * as instrinsic from './htmlspec/IntrinsicElements';
|
|
2
|
+
import type { JsxNode } from './jsx-node';
|
|
3
|
+
import type * as instrinsic from './htmlspec/IntrinsicElements';
|
|
4
4
|
export type ComponentType<P = {}> = FunctionComponent<P>;
|
|
5
5
|
export type JsxChild = string | number | boolean | null | undefined | JsxNode | JsxNode[];
|
|
6
6
|
export interface FunctionComponent<P = {}> {
|
|
@@ -31,3 +31,4 @@ export declare namespace JSX {
|
|
|
31
31
|
interface IntrinsicElements extends instrinsic.IntrinsicElements {
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
export declare const JSX: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class JsFrag {
|
|
2
|
+
private readonly str;
|
|
3
|
+
constructor(str: string);
|
|
4
|
+
toString(): string;
|
|
5
|
+
}
|
|
6
|
+
export declare function js(strings: TemplateStringsArray, ...values: any[]): JsFrag;
|
|
7
|
+
export declare class CssFrag {
|
|
8
|
+
private readonly str;
|
|
9
|
+
constructor(str: string);
|
|
10
|
+
toString(): string;
|
|
11
|
+
}
|
|
12
|
+
export declare function css(strings: TemplateStringsArray, ...values: any[]): CssFrag;
|
package/package.json
CHANGED
|
@@ -1,86 +1,97 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
"name": "@mpen/jsxhtml",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"packageManager": "bun@1.3.7",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"import": "./dist/index.mjs",
|
|
8
|
+
"require": "./dist/index.cjs",
|
|
9
|
+
"types": "./dist/index.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"./jsx-runtime": {
|
|
12
|
+
"import": "./dist/jsx-runtime.mjs",
|
|
13
|
+
"require": "./dist/jsx-runtime.cjs",
|
|
14
|
+
"types": "./dist/jsx-runtime.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./jsx-dev-runtime": {
|
|
17
|
+
"import": "./dist/jsx-dev-runtime.mjs",
|
|
18
|
+
"require": "./dist/jsx-dev-runtime.cjs",
|
|
19
|
+
"types": "./dist/jsx-dev-runtime.d.ts"
|
|
20
|
+
}
|
|
10
21
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
22
|
+
"type": "module",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"private": false,
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "Mark Penner",
|
|
30
|
+
"email": "npm@mpen.ca",
|
|
31
|
+
"url": "https://github.com/mnpenner"
|
|
15
32
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"optionalDependencies": {
|
|
81
|
-
"elysia": ">=1.2.25"
|
|
82
|
-
},
|
|
83
|
-
"dependencies": {
|
|
84
|
-
"classcat": "^5.0.5"
|
|
85
|
-
}
|
|
33
|
+
"keywords": [
|
|
34
|
+
"jsx",
|
|
35
|
+
"tsx",
|
|
36
|
+
"html",
|
|
37
|
+
"render",
|
|
38
|
+
"server",
|
|
39
|
+
"ssr"
|
|
40
|
+
],
|
|
41
|
+
"scripts": {
|
|
42
|
+
"_dev:build": "rollup -cw",
|
|
43
|
+
"_dev:serve": "serve -l tcp://0.0.0.0:8080",
|
|
44
|
+
"dev": "run-p \"dev:**\"",
|
|
45
|
+
"dev:run": "NODE_ENV=production bun --watch run --jsx=react-jsx --jsx-import-source=. src/internal/dev.tsx",
|
|
46
|
+
"dev:build": "NODE_ENV=production bun --watch --no-clear-screen build src/internal/dev.tsx --outdir=dist --packages=external --external '*'",
|
|
47
|
+
"typecheck": "tsc --noEmit src/internal/dev.tsx --jsx react-jsx --jsxImportSource . --moduleResolution bundler --module esnext --lib dom,esnext --target esnext",
|
|
48
|
+
"test:types": "tsc --noEmit && echo \"tsc: no errors\"",
|
|
49
|
+
"test:unit": "NODE_ENV=production bun test --jsx-import-source=@mpen/jsxhtml",
|
|
50
|
+
"test": "run-p 'test:*'",
|
|
51
|
+
"bundle:clean": "rm -rf dist/",
|
|
52
|
+
"bundle:build": "NODE_ENV=production rollup -c",
|
|
53
|
+
"bundle": "run-s bundle:clean bundle:build",
|
|
54
|
+
"commit": "VER=$(jq -r '.version' package.json) && hg ci -m \"Commit v$VER\" && hg tag \"v$VER\"",
|
|
55
|
+
"bumpver": "npm version patch",
|
|
56
|
+
"release": "run-s test bundle bumpver commit && npm publish --access=public && hg pushall",
|
|
57
|
+
"lint": "bun run --bun eslint --fix --"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@mpen/is-type": "^0.1.15",
|
|
61
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
62
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
63
|
+
"@rollup/plugin-replace": "^5.0.7",
|
|
64
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
65
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
66
|
+
"@types/eslint": "^8.56.12",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^8.29.1",
|
|
68
|
+
"@typescript-eslint/parser": "^8.29.1",
|
|
69
|
+
"bun-types": "^1.2.15",
|
|
70
|
+
"elysia": "^1.2.25",
|
|
71
|
+
"eslint": "^8.57.1",
|
|
72
|
+
"eslint-plugin-react-compiler": "^19.0.0-beta-e993439-20250405",
|
|
73
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
74
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
75
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
76
|
+
"js-serialize": "^0.6.0",
|
|
77
|
+
"npm-run-all": "^4.1.5",
|
|
78
|
+
"rimraf": "^5.0.10",
|
|
79
|
+
"rollup": "^4.40.0",
|
|
80
|
+
"serve": "^14.2.4",
|
|
81
|
+
"tslib": "^2.8.1",
|
|
82
|
+
"typescript": "^5.8.3"
|
|
83
|
+
},
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"csstype": "3.x",
|
|
86
|
+
"elysia": "1.x"
|
|
87
|
+
},
|
|
88
|
+
"peerDependenciesMeta": {
|
|
89
|
+
"elysia": {
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
"csstype": {
|
|
93
|
+
"optional": false
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"dependencies": {}
|
|
86
97
|
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export type AnchorElement = {
|
|
2
|
-
/**
|
|
3
|
-
* Causes the browser to treat the linked URL as a download. Can be used with or without a filename value:
|
|
4
|
-
*
|
|
5
|
-
* - Without a value, the browser will suggest a filename/extension, generated from various sources:
|
|
6
|
-
* - The `Content-Disposition` HTTP header
|
|
7
|
-
* - The final segment in the URL path
|
|
8
|
-
* - The media type (from the Content-Type header, the start of a data: URL, or Blob.type for a blob: URL)
|
|
9
|
-
* - `filename`: defining a value suggests it as the filename. / and \ characters are converted to underscores
|
|
10
|
-
* (_). Filesystems may forbid other characters in filenames, so browsers will adjust the suggested name if
|
|
11
|
-
* necessary.
|
|
12
|
-
*/
|
|
13
|
-
download?: true | string;
|
|
14
|
-
/**
|
|
15
|
-
* The URL that the hyperlink points to. Links are not restricted to HTTP-based URLs — they can use any URL scheme
|
|
16
|
-
* supported by browsers:
|
|
17
|
-
*
|
|
18
|
-
* - Sections of a page with document fragments
|
|
19
|
-
* - Specific text portions with text fragments
|
|
20
|
-
* - Pieces of media files with media fragments
|
|
21
|
-
* - Telephone numbers with tel: URLs
|
|
22
|
-
* - Email addresses with mailto: URLs
|
|
23
|
-
* - SMS text messages with sms: URLs
|
|
24
|
-
* - While web browsers may not support other URL schemes, websites can with registerProtocolHandler()
|
|
25
|
-
*/
|
|
26
|
-
href?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Hints at the human language of the linked URL. No built-in functionality. Allowed values are the same as the
|
|
29
|
-
* global lang attribute.
|
|
30
|
-
*/
|
|
31
|
-
hreflang?: string;
|
|
32
|
-
/**
|
|
33
|
-
* A space-separated list of URLs. When the link is followed, the browser will send POST requests with the body
|
|
34
|
-
* PING to the URLs. Typically for tracking.
|
|
35
|
-
*/
|
|
36
|
-
ping?: string;
|
|
37
|
-
/**
|
|
38
|
-
* How much of the referrer to send when following the link.
|
|
39
|
-
*/
|
|
40
|
-
referrerpolicy?: ReferrerPolicy | string;
|
|
41
|
-
/**
|
|
42
|
-
* The relationship of the linked URL as space-separated link types.
|
|
43
|
-
*/
|
|
44
|
-
rel?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Where to display the linked URL, as the name for a browsing context (a tab, window, or <iframe>).
|
|
47
|
-
*/
|
|
48
|
-
target?: '_self' | '_blank' | '_parent' | '_top' | string;
|
|
49
|
-
/**
|
|
50
|
-
* Hints at the linked URL's format with a MIME type. No built-in functionality.
|
|
51
|
-
*/
|
|
52
|
-
type?: string;
|
|
53
|
-
/**
|
|
54
|
-
* @deprecated
|
|
55
|
-
*/
|
|
56
|
-
charset?: string;
|
|
57
|
-
/**
|
|
58
|
-
* @deprecated
|
|
59
|
-
*/
|
|
60
|
-
coords?: string;
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated
|
|
63
|
-
*/
|
|
64
|
-
name?: string;
|
|
65
|
-
/**
|
|
66
|
-
* @deprecated
|
|
67
|
-
*/
|
|
68
|
-
rev?: string;
|
|
69
|
-
/**
|
|
70
|
-
* @deprecated
|
|
71
|
-
*/
|
|
72
|
-
shape?: string;
|
|
73
|
-
};
|
|
74
|
-
export declare const enum ReferrerPolicy {
|
|
75
|
-
NoReferrer = "no-referrer",
|
|
76
|
-
NoReferrerWhenDowngrade = "no-referrer-when-downgrade",
|
|
77
|
-
Origin = "origin",
|
|
78
|
-
OriginWhenCrossOrigin = "origin-when-cross-origin",
|
|
79
|
-
SameOrigin = "same-origin",
|
|
80
|
-
StrictOrigin = "strict-origin",
|
|
81
|
-
StrictOriginWhenCrossOrigin = "strict-origin-when-cross-origin",
|
|
82
|
-
UnsafeUrl = "unsafe-url"
|
|
83
|
-
}
|