@webstudio-is/react-sdk 0.59.0 → 0.60.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/lib/app/custom-components/shared/remix-link.js +2 -2
- package/lib/app/index.js +0 -1
- package/lib/cjs/app/custom-components/shared/remix-link.js +2 -2
- package/lib/cjs/app/index.js +0 -1
- package/lib/cjs/components/__generated__/blockquote.props.js +5 -0
- package/lib/cjs/components/__generated__/body.props.js +5 -0
- package/lib/cjs/components/__generated__/bold.props.js +5 -0
- package/lib/cjs/components/__generated__/box.props.js +5 -0
- package/lib/cjs/components/__generated__/button.props.js +5 -1
- package/lib/cjs/components/__generated__/code.props.js +5 -0
- package/lib/cjs/components/__generated__/form.props.js +5 -0
- package/lib/cjs/components/__generated__/heading.props.js +5 -0
- package/lib/cjs/components/__generated__/image.props.js +5 -0
- package/lib/cjs/components/__generated__/input.props.js +11 -2
- package/lib/cjs/components/__generated__/italic.props.js +5 -0
- package/lib/cjs/components/__generated__/link-block.props.js +5 -1
- package/lib/cjs/components/__generated__/link.props.js +5 -1
- package/lib/cjs/components/__generated__/list-item.props.js +5 -0
- package/lib/cjs/components/__generated__/list.props.js +5 -0
- package/lib/cjs/components/__generated__/paragraph.props.js +5 -0
- package/lib/cjs/components/__generated__/rich-text-link.props.js +5 -1
- package/lib/cjs/components/__generated__/separator.props.js +5 -0
- package/lib/cjs/components/__generated__/span.props.js +5 -0
- package/lib/cjs/components/__generated__/subscript.props.js +5 -0
- package/lib/cjs/components/__generated__/superscript.props.js +5 -0
- package/lib/cjs/components/__generated__/text-block.props.js +5 -0
- package/lib/cjs/components/body.ws.js +0 -8
- package/lib/cjs/components/link.js +1 -1
- package/lib/components/__generated__/blockquote.props.js +5 -0
- package/lib/components/__generated__/body.props.js +5 -0
- package/lib/components/__generated__/bold.props.js +5 -0
- package/lib/components/__generated__/box.props.js +5 -0
- package/lib/components/__generated__/button.props.js +5 -1
- package/lib/components/__generated__/code.props.js +5 -0
- package/lib/components/__generated__/form.props.js +5 -0
- package/lib/components/__generated__/heading.props.js +5 -0
- package/lib/components/__generated__/image.props.js +5 -0
- package/lib/components/__generated__/input.props.js +11 -2
- package/lib/components/__generated__/italic.props.js +5 -0
- package/lib/components/__generated__/link-block.props.js +5 -1
- package/lib/components/__generated__/link.props.js +5 -1
- package/lib/components/__generated__/list-item.props.js +5 -0
- package/lib/components/__generated__/list.props.js +5 -0
- package/lib/components/__generated__/paragraph.props.js +5 -0
- package/lib/components/__generated__/rich-text-link.props.js +5 -1
- package/lib/components/__generated__/separator.props.js +5 -0
- package/lib/components/__generated__/span.props.js +5 -0
- package/lib/components/__generated__/subscript.props.js +5 -0
- package/lib/components/__generated__/superscript.props.js +5 -0
- package/lib/components/__generated__/text-block.props.js +5 -0
- package/lib/components/body.ws.js +0 -8
- package/lib/components/link.js +1 -1
- package/lib/types/app/index.d.ts +0 -1
- package/package.json +13 -17
- package/src/app/custom-components/shared/remix-link.tsx +2 -2
- package/src/app/index.ts +0 -1
- package/src/components/__generated__/blockquote.props.ts +5 -0
- package/src/components/__generated__/body.props.ts +5 -0
- package/src/components/__generated__/bold.props.ts +5 -0
- package/src/components/__generated__/box.props.ts +5 -0
- package/src/components/__generated__/button.props.ts +5 -1
- package/src/components/__generated__/code.props.ts +5 -0
- package/src/components/__generated__/form.props.ts +5 -0
- package/src/components/__generated__/heading.props.ts +5 -0
- package/src/components/__generated__/image.props.ts +5 -0
- package/src/components/__generated__/input.props.ts +11 -2
- package/src/components/__generated__/italic.props.ts +5 -0
- package/src/components/__generated__/link-block.props.ts +5 -1
- package/src/components/__generated__/link.props.ts +5 -1
- package/src/components/__generated__/list-item.props.ts +5 -0
- package/src/components/__generated__/list.props.ts +5 -0
- package/src/components/__generated__/paragraph.props.ts +5 -0
- package/src/components/__generated__/rich-text-link.props.ts +5 -1
- package/src/components/__generated__/separator.props.ts +5 -0
- package/src/components/__generated__/span.props.ts +5 -0
- package/src/components/__generated__/subscript.props.ts +5 -0
- package/src/components/__generated__/superscript.props.ts +5 -0
- package/src/components/__generated__/text-block.props.ts +5 -0
- package/src/components/body.ws.tsx +0 -10
- package/src/components/link.tsx +1 -1
- package/lib/app/handle-request.server.js +0 -16
- package/lib/cjs/app/handle-request.server.js +0 -36
- package/lib/types/app/handle-request.server.d.ts +0 -2
- package/src/app/handle-request.server.tsx +0 -21
|
@@ -18,6 +18,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
18
18
|
type: "boolean",
|
|
19
19
|
},
|
|
20
20
|
accessKey: { required: false, control: "text", type: "string" },
|
|
21
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
21
22
|
className: { required: false, control: "text", type: "string" },
|
|
22
23
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
23
24
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -26,6 +27,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
26
27
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
27
28
|
id: { required: false, control: "text", type: "string" },
|
|
28
29
|
lang: { required: false, control: "text", type: "string" },
|
|
30
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
29
31
|
placeholder: { required: false, control: "text", type: "string" },
|
|
30
32
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
31
33
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -38,11 +40,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
38
40
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
39
41
|
role: { required: false, control: "text", type: "string" },
|
|
40
42
|
about: { required: false, control: "text", type: "string" },
|
|
43
|
+
content: { required: false, control: "text", type: "string" },
|
|
41
44
|
datatype: { required: false, control: "text", type: "string" },
|
|
42
45
|
inlist: { required: false, control: "text", type: "string" },
|
|
43
46
|
prefix: { required: false, control: "text", type: "string" },
|
|
44
47
|
property: { required: false, control: "text", type: "string" },
|
|
48
|
+
rel: { required: false, control: "text", type: "string" },
|
|
45
49
|
resource: { required: false, control: "text", type: "string" },
|
|
50
|
+
rev: { required: false, control: "text", type: "string" },
|
|
46
51
|
typeof: { required: false, control: "text", type: "string" },
|
|
47
52
|
vocab: { required: false, control: "text", type: "string" },
|
|
48
53
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -25,6 +25,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
25
25
|
type: "boolean",
|
|
26
26
|
},
|
|
27
27
|
accessKey: { required: false, control: "text", type: "string" },
|
|
28
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
28
29
|
className: { required: false, control: "text", type: "string" },
|
|
29
30
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
30
31
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -33,6 +34,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
33
34
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
34
35
|
id: { required: false, control: "text", type: "string" },
|
|
35
36
|
lang: { required: false, control: "text", type: "string" },
|
|
37
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
36
38
|
placeholder: { required: false, control: "text", type: "string" },
|
|
37
39
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
38
40
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -45,11 +47,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
45
47
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
46
48
|
role: { required: false, control: "text", type: "string" },
|
|
47
49
|
about: { required: false, control: "text", type: "string" },
|
|
50
|
+
content: { required: false, control: "text", type: "string" },
|
|
48
51
|
datatype: { required: false, control: "text", type: "string" },
|
|
49
52
|
inlist: { required: false, control: "text", type: "string" },
|
|
50
53
|
prefix: { required: false, control: "text", type: "string" },
|
|
51
54
|
property: { required: false, control: "text", type: "string" },
|
|
55
|
+
rel: { required: false, control: "text", type: "string" },
|
|
52
56
|
resource: { required: false, control: "text", type: "string" },
|
|
57
|
+
rev: { required: false, control: "text", type: "string" },
|
|
53
58
|
typeof: { required: false, control: "text", type: "string" },
|
|
54
59
|
vocab: { required: false, control: "text", type: "string" },
|
|
55
60
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -17,6 +17,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
17
17
|
type: "boolean",
|
|
18
18
|
},
|
|
19
19
|
accessKey: { required: false, control: "text", type: "string" },
|
|
20
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
20
21
|
className: { required: false, control: "text", type: "string" },
|
|
21
22
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
22
23
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -25,6 +26,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
25
26
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
26
27
|
id: { required: false, control: "text", type: "string" },
|
|
27
28
|
lang: { required: false, control: "text", type: "string" },
|
|
29
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
28
30
|
placeholder: { required: false, control: "text", type: "string" },
|
|
29
31
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
30
32
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -37,11 +39,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
37
39
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
38
40
|
role: { required: false, control: "text", type: "string" },
|
|
39
41
|
about: { required: false, control: "text", type: "string" },
|
|
42
|
+
content: { required: false, control: "text", type: "string" },
|
|
40
43
|
datatype: { required: false, control: "text", type: "string" },
|
|
41
44
|
inlist: { required: false, control: "text", type: "string" },
|
|
42
45
|
prefix: { required: false, control: "text", type: "string" },
|
|
43
46
|
property: { required: false, control: "text", type: "string" },
|
|
47
|
+
rel: { required: false, control: "text", type: "string" },
|
|
44
48
|
resource: { required: false, control: "text", type: "string" },
|
|
49
|
+
rev: { required: false, control: "text", type: "string" },
|
|
45
50
|
typeof: { required: false, control: "text", type: "string" },
|
|
46
51
|
vocab: { required: false, control: "text", type: "string" },
|
|
47
52
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -58,6 +58,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
58
58
|
type: "boolean",
|
|
59
59
|
},
|
|
60
60
|
accessKey: { required: false, control: "text", type: "string" },
|
|
61
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
61
62
|
className: { required: false, control: "text", type: "string" },
|
|
62
63
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
63
64
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -66,6 +67,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
66
67
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
67
68
|
id: { required: false, control: "text", type: "string" },
|
|
68
69
|
lang: { required: false, control: "text", type: "string" },
|
|
70
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
69
71
|
placeholder: { required: false, control: "text", type: "string" },
|
|
70
72
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
71
73
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -78,11 +80,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
78
80
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
79
81
|
role: { required: false, control: "text", type: "string" },
|
|
80
82
|
about: { required: false, control: "text", type: "string" },
|
|
83
|
+
content: { required: false, control: "text", type: "string" },
|
|
81
84
|
datatype: { required: false, control: "text", type: "string" },
|
|
82
85
|
inlist: { required: false, control: "text", type: "string" },
|
|
83
86
|
prefix: { required: false, control: "text", type: "string" },
|
|
84
87
|
property: { required: false, control: "text", type: "string" },
|
|
88
|
+
rel: { required: false, control: "text", type: "string" },
|
|
85
89
|
resource: { required: false, control: "text", type: "string" },
|
|
90
|
+
rev: { required: false, control: "text", type: "string" },
|
|
86
91
|
typeof: { required: false, control: "text", type: "string" },
|
|
87
92
|
vocab: { required: false, control: "text", type: "string" },
|
|
88
93
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -9,10 +9,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
9
9
|
accept: { required: false, control: "text", type: "string" },
|
|
10
10
|
alt: { required: false, control: "text", type: "string" },
|
|
11
11
|
autoComplete: { required: false, control: "text", type: "string" },
|
|
12
|
-
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
13
12
|
capture: { required: false, control: "text", type: "string" },
|
|
14
13
|
checked: { required: false, control: "boolean", type: "boolean" },
|
|
15
|
-
crossOrigin: {
|
|
14
|
+
crossOrigin: {
|
|
15
|
+
required: false,
|
|
16
|
+
control: "radio",
|
|
17
|
+
type: "string",
|
|
18
|
+
options: ["", "anonymous", "use-credentials"],
|
|
19
|
+
},
|
|
16
20
|
disabled: { required: false, control: "boolean", type: "boolean" },
|
|
17
21
|
enterKeyHint: {
|
|
18
22
|
required: false,
|
|
@@ -56,6 +60,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
56
60
|
type: "boolean",
|
|
57
61
|
},
|
|
58
62
|
accessKey: { required: false, control: "text", type: "string" },
|
|
63
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
59
64
|
className: { required: false, control: "text", type: "string" },
|
|
60
65
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
61
66
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -64,6 +69,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
64
69
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
65
70
|
id: { required: false, control: "text", type: "string" },
|
|
66
71
|
lang: { required: false, control: "text", type: "string" },
|
|
72
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
67
73
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
68
74
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
69
75
|
translate: {
|
|
@@ -75,11 +81,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
75
81
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
76
82
|
role: { required: false, control: "text", type: "string" },
|
|
77
83
|
about: { required: false, control: "text", type: "string" },
|
|
84
|
+
content: { required: false, control: "text", type: "string" },
|
|
78
85
|
datatype: { required: false, control: "text", type: "string" },
|
|
79
86
|
inlist: { required: false, control: "text", type: "string" },
|
|
80
87
|
prefix: { required: false, control: "text", type: "string" },
|
|
81
88
|
property: { required: false, control: "text", type: "string" },
|
|
89
|
+
rel: { required: false, control: "text", type: "string" },
|
|
82
90
|
resource: { required: false, control: "text", type: "string" },
|
|
91
|
+
rev: { required: false, control: "text", type: "string" },
|
|
83
92
|
typeof: { required: false, control: "text", type: "string" },
|
|
84
93
|
vocab: { required: false, control: "text", type: "string" },
|
|
85
94
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -17,6 +17,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
17
17
|
type: "boolean",
|
|
18
18
|
},
|
|
19
19
|
accessKey: { required: false, control: "text", type: "string" },
|
|
20
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
20
21
|
className: { required: false, control: "text", type: "string" },
|
|
21
22
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
22
23
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -25,6 +26,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
25
26
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
26
27
|
id: { required: false, control: "text", type: "string" },
|
|
27
28
|
lang: { required: false, control: "text", type: "string" },
|
|
29
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
28
30
|
placeholder: { required: false, control: "text", type: "string" },
|
|
29
31
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
30
32
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -37,11 +39,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
37
39
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
38
40
|
role: { required: false, control: "text", type: "string" },
|
|
39
41
|
about: { required: false, control: "text", type: "string" },
|
|
42
|
+
content: { required: false, control: "text", type: "string" },
|
|
40
43
|
datatype: { required: false, control: "text", type: "string" },
|
|
41
44
|
inlist: { required: false, control: "text", type: "string" },
|
|
42
45
|
prefix: { required: false, control: "text", type: "string" },
|
|
43
46
|
property: { required: false, control: "text", type: "string" },
|
|
47
|
+
rel: { required: false, control: "text", type: "string" },
|
|
44
48
|
resource: { required: false, control: "text", type: "string" },
|
|
49
|
+
rev: { required: false, control: "text", type: "string" },
|
|
45
50
|
typeof: { required: false, control: "text", type: "string" },
|
|
46
51
|
vocab: { required: false, control: "text", type: "string" },
|
|
47
52
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -15,7 +15,6 @@ export const props: Record<string, PropMeta> = {
|
|
|
15
15
|
hrefLang: { required: false, control: "text", type: "string" },
|
|
16
16
|
media: { required: false, control: "text", type: "string" },
|
|
17
17
|
ping: { required: false, control: "text", type: "string" },
|
|
18
|
-
rel: { required: false, control: "text", type: "string" },
|
|
19
18
|
type: { required: false, control: "text", type: "string" },
|
|
20
19
|
referrerPolicy: {
|
|
21
20
|
required: false,
|
|
@@ -46,6 +45,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
46
45
|
type: "boolean",
|
|
47
46
|
},
|
|
48
47
|
accessKey: { required: false, control: "text", type: "string" },
|
|
48
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
49
49
|
className: { required: false, control: "text", type: "string" },
|
|
50
50
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
51
51
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -54,6 +54,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
54
54
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
55
55
|
id: { required: false, control: "text", type: "string" },
|
|
56
56
|
lang: { required: false, control: "text", type: "string" },
|
|
57
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
57
58
|
placeholder: { required: false, control: "text", type: "string" },
|
|
58
59
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
59
60
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -66,11 +67,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
66
67
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
67
68
|
role: { required: false, control: "text", type: "string" },
|
|
68
69
|
about: { required: false, control: "text", type: "string" },
|
|
70
|
+
content: { required: false, control: "text", type: "string" },
|
|
69
71
|
datatype: { required: false, control: "text", type: "string" },
|
|
70
72
|
inlist: { required: false, control: "text", type: "string" },
|
|
71
73
|
prefix: { required: false, control: "text", type: "string" },
|
|
72
74
|
property: { required: false, control: "text", type: "string" },
|
|
75
|
+
rel: { required: false, control: "text", type: "string" },
|
|
73
76
|
resource: { required: false, control: "text", type: "string" },
|
|
77
|
+
rev: { required: false, control: "text", type: "string" },
|
|
74
78
|
typeof: { required: false, control: "text", type: "string" },
|
|
75
79
|
vocab: { required: false, control: "text", type: "string" },
|
|
76
80
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -15,7 +15,6 @@ export const props: Record<string, PropMeta> = {
|
|
|
15
15
|
hrefLang: { required: false, control: "text", type: "string" },
|
|
16
16
|
media: { required: false, control: "text", type: "string" },
|
|
17
17
|
ping: { required: false, control: "text", type: "string" },
|
|
18
|
-
rel: { required: false, control: "text", type: "string" },
|
|
19
18
|
type: { required: false, control: "text", type: "string" },
|
|
20
19
|
referrerPolicy: {
|
|
21
20
|
required: false,
|
|
@@ -46,6 +45,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
46
45
|
type: "boolean",
|
|
47
46
|
},
|
|
48
47
|
accessKey: { required: false, control: "text", type: "string" },
|
|
48
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
49
49
|
className: { required: false, control: "text", type: "string" },
|
|
50
50
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
51
51
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -54,6 +54,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
54
54
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
55
55
|
id: { required: false, control: "text", type: "string" },
|
|
56
56
|
lang: { required: false, control: "text", type: "string" },
|
|
57
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
57
58
|
placeholder: { required: false, control: "text", type: "string" },
|
|
58
59
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
59
60
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -66,11 +67,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
66
67
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
67
68
|
role: { required: false, control: "text", type: "string" },
|
|
68
69
|
about: { required: false, control: "text", type: "string" },
|
|
70
|
+
content: { required: false, control: "text", type: "string" },
|
|
69
71
|
datatype: { required: false, control: "text", type: "string" },
|
|
70
72
|
inlist: { required: false, control: "text", type: "string" },
|
|
71
73
|
prefix: { required: false, control: "text", type: "string" },
|
|
72
74
|
property: { required: false, control: "text", type: "string" },
|
|
75
|
+
rel: { required: false, control: "text", type: "string" },
|
|
73
76
|
resource: { required: false, control: "text", type: "string" },
|
|
77
|
+
rev: { required: false, control: "text", type: "string" },
|
|
74
78
|
typeof: { required: false, control: "text", type: "string" },
|
|
75
79
|
vocab: { required: false, control: "text", type: "string" },
|
|
76
80
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -18,6 +18,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
18
18
|
type: "boolean",
|
|
19
19
|
},
|
|
20
20
|
accessKey: { required: false, control: "text", type: "string" },
|
|
21
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
21
22
|
className: { required: false, control: "text", type: "string" },
|
|
22
23
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
23
24
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -26,6 +27,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
26
27
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
27
28
|
id: { required: false, control: "text", type: "string" },
|
|
28
29
|
lang: { required: false, control: "text", type: "string" },
|
|
30
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
29
31
|
placeholder: { required: false, control: "text", type: "string" },
|
|
30
32
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
31
33
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -38,11 +40,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
38
40
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
39
41
|
role: { required: false, control: "text", type: "string" },
|
|
40
42
|
about: { required: false, control: "text", type: "string" },
|
|
43
|
+
content: { required: false, control: "text", type: "string" },
|
|
41
44
|
datatype: { required: false, control: "text", type: "string" },
|
|
42
45
|
inlist: { required: false, control: "text", type: "string" },
|
|
43
46
|
prefix: { required: false, control: "text", type: "string" },
|
|
44
47
|
property: { required: false, control: "text", type: "string" },
|
|
48
|
+
rel: { required: false, control: "text", type: "string" },
|
|
45
49
|
resource: { required: false, control: "text", type: "string" },
|
|
50
|
+
rev: { required: false, control: "text", type: "string" },
|
|
46
51
|
typeof: { required: false, control: "text", type: "string" },
|
|
47
52
|
vocab: { required: false, control: "text", type: "string" },
|
|
48
53
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -17,6 +17,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
17
17
|
type: "boolean",
|
|
18
18
|
},
|
|
19
19
|
accessKey: { required: false, control: "text", type: "string" },
|
|
20
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
20
21
|
className: { required: false, control: "text", type: "string" },
|
|
21
22
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
22
23
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -25,6 +26,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
25
26
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
26
27
|
id: { required: false, control: "text", type: "string" },
|
|
27
28
|
lang: { required: false, control: "text", type: "string" },
|
|
29
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
28
30
|
placeholder: { required: false, control: "text", type: "string" },
|
|
29
31
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
30
32
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -37,11 +39,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
37
39
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
38
40
|
role: { required: false, control: "text", type: "string" },
|
|
39
41
|
about: { required: false, control: "text", type: "string" },
|
|
42
|
+
content: { required: false, control: "text", type: "string" },
|
|
40
43
|
datatype: { required: false, control: "text", type: "string" },
|
|
41
44
|
inlist: { required: false, control: "text", type: "string" },
|
|
42
45
|
prefix: { required: false, control: "text", type: "string" },
|
|
43
46
|
property: { required: false, control: "text", type: "string" },
|
|
47
|
+
rel: { required: false, control: "text", type: "string" },
|
|
44
48
|
resource: { required: false, control: "text", type: "string" },
|
|
49
|
+
rev: { required: false, control: "text", type: "string" },
|
|
45
50
|
typeof: { required: false, control: "text", type: "string" },
|
|
46
51
|
vocab: { required: false, control: "text", type: "string" },
|
|
47
52
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -17,6 +17,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
17
17
|
type: "boolean",
|
|
18
18
|
},
|
|
19
19
|
accessKey: { required: false, control: "text", type: "string" },
|
|
20
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
20
21
|
className: { required: false, control: "text", type: "string" },
|
|
21
22
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
22
23
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -25,6 +26,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
25
26
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
26
27
|
id: { required: false, control: "text", type: "string" },
|
|
27
28
|
lang: { required: false, control: "text", type: "string" },
|
|
29
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
28
30
|
placeholder: { required: false, control: "text", type: "string" },
|
|
29
31
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
30
32
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -37,11 +39,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
37
39
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
38
40
|
role: { required: false, control: "text", type: "string" },
|
|
39
41
|
about: { required: false, control: "text", type: "string" },
|
|
42
|
+
content: { required: false, control: "text", type: "string" },
|
|
40
43
|
datatype: { required: false, control: "text", type: "string" },
|
|
41
44
|
inlist: { required: false, control: "text", type: "string" },
|
|
42
45
|
prefix: { required: false, control: "text", type: "string" },
|
|
43
46
|
property: { required: false, control: "text", type: "string" },
|
|
47
|
+
rel: { required: false, control: "text", type: "string" },
|
|
44
48
|
resource: { required: false, control: "text", type: "string" },
|
|
49
|
+
rev: { required: false, control: "text", type: "string" },
|
|
45
50
|
typeof: { required: false, control: "text", type: "string" },
|
|
46
51
|
vocab: { required: false, control: "text", type: "string" },
|
|
47
52
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -15,7 +15,6 @@ export const props: Record<string, PropMeta> = {
|
|
|
15
15
|
hrefLang: { required: false, control: "text", type: "string" },
|
|
16
16
|
media: { required: false, control: "text", type: "string" },
|
|
17
17
|
ping: { required: false, control: "text", type: "string" },
|
|
18
|
-
rel: { required: false, control: "text", type: "string" },
|
|
19
18
|
type: { required: false, control: "text", type: "string" },
|
|
20
19
|
referrerPolicy: {
|
|
21
20
|
required: false,
|
|
@@ -46,6 +45,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
46
45
|
type: "boolean",
|
|
47
46
|
},
|
|
48
47
|
accessKey: { required: false, control: "text", type: "string" },
|
|
48
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
49
49
|
className: { required: false, control: "text", type: "string" },
|
|
50
50
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
51
51
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -54,6 +54,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
54
54
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
55
55
|
id: { required: false, control: "text", type: "string" },
|
|
56
56
|
lang: { required: false, control: "text", type: "string" },
|
|
57
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
57
58
|
placeholder: { required: false, control: "text", type: "string" },
|
|
58
59
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
59
60
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -66,11 +67,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
66
67
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
67
68
|
role: { required: false, control: "text", type: "string" },
|
|
68
69
|
about: { required: false, control: "text", type: "string" },
|
|
70
|
+
content: { required: false, control: "text", type: "string" },
|
|
69
71
|
datatype: { required: false, control: "text", type: "string" },
|
|
70
72
|
inlist: { required: false, control: "text", type: "string" },
|
|
71
73
|
prefix: { required: false, control: "text", type: "string" },
|
|
72
74
|
property: { required: false, control: "text", type: "string" },
|
|
75
|
+
rel: { required: false, control: "text", type: "string" },
|
|
73
76
|
resource: { required: false, control: "text", type: "string" },
|
|
77
|
+
rev: { required: false, control: "text", type: "string" },
|
|
74
78
|
typeof: { required: false, control: "text", type: "string" },
|
|
75
79
|
vocab: { required: false, control: "text", type: "string" },
|
|
76
80
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -17,6 +17,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
17
17
|
type: "boolean",
|
|
18
18
|
},
|
|
19
19
|
accessKey: { required: false, control: "text", type: "string" },
|
|
20
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
20
21
|
className: { required: false, control: "text", type: "string" },
|
|
21
22
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
22
23
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -25,6 +26,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
25
26
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
26
27
|
id: { required: false, control: "text", type: "string" },
|
|
27
28
|
lang: { required: false, control: "text", type: "string" },
|
|
29
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
28
30
|
placeholder: { required: false, control: "text", type: "string" },
|
|
29
31
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
30
32
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -37,11 +39,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
37
39
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
38
40
|
role: { required: false, control: "text", type: "string" },
|
|
39
41
|
about: { required: false, control: "text", type: "string" },
|
|
42
|
+
content: { required: false, control: "text", type: "string" },
|
|
40
43
|
datatype: { required: false, control: "text", type: "string" },
|
|
41
44
|
inlist: { required: false, control: "text", type: "string" },
|
|
42
45
|
prefix: { required: false, control: "text", type: "string" },
|
|
43
46
|
property: { required: false, control: "text", type: "string" },
|
|
47
|
+
rel: { required: false, control: "text", type: "string" },
|
|
44
48
|
resource: { required: false, control: "text", type: "string" },
|
|
49
|
+
rev: { required: false, control: "text", type: "string" },
|
|
45
50
|
typeof: { required: false, control: "text", type: "string" },
|
|
46
51
|
vocab: { required: false, control: "text", type: "string" },
|
|
47
52
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -17,6 +17,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
17
17
|
type: "boolean",
|
|
18
18
|
},
|
|
19
19
|
accessKey: { required: false, control: "text", type: "string" },
|
|
20
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
20
21
|
className: { required: false, control: "text", type: "string" },
|
|
21
22
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
22
23
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -25,6 +26,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
25
26
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
26
27
|
id: { required: false, control: "text", type: "string" },
|
|
27
28
|
lang: { required: false, control: "text", type: "string" },
|
|
29
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
28
30
|
placeholder: { required: false, control: "text", type: "string" },
|
|
29
31
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
30
32
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -37,11 +39,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
37
39
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
38
40
|
role: { required: false, control: "text", type: "string" },
|
|
39
41
|
about: { required: false, control: "text", type: "string" },
|
|
42
|
+
content: { required: false, control: "text", type: "string" },
|
|
40
43
|
datatype: { required: false, control: "text", type: "string" },
|
|
41
44
|
inlist: { required: false, control: "text", type: "string" },
|
|
42
45
|
prefix: { required: false, control: "text", type: "string" },
|
|
43
46
|
property: { required: false, control: "text", type: "string" },
|
|
47
|
+
rel: { required: false, control: "text", type: "string" },
|
|
44
48
|
resource: { required: false, control: "text", type: "string" },
|
|
49
|
+
rev: { required: false, control: "text", type: "string" },
|
|
45
50
|
typeof: { required: false, control: "text", type: "string" },
|
|
46
51
|
vocab: { required: false, control: "text", type: "string" },
|
|
47
52
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -17,6 +17,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
17
17
|
type: "boolean",
|
|
18
18
|
},
|
|
19
19
|
accessKey: { required: false, control: "text", type: "string" },
|
|
20
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
20
21
|
className: { required: false, control: "text", type: "string" },
|
|
21
22
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
22
23
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -25,6 +26,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
25
26
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
26
27
|
id: { required: false, control: "text", type: "string" },
|
|
27
28
|
lang: { required: false, control: "text", type: "string" },
|
|
29
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
28
30
|
placeholder: { required: false, control: "text", type: "string" },
|
|
29
31
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
30
32
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -37,11 +39,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
37
39
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
38
40
|
role: { required: false, control: "text", type: "string" },
|
|
39
41
|
about: { required: false, control: "text", type: "string" },
|
|
42
|
+
content: { required: false, control: "text", type: "string" },
|
|
40
43
|
datatype: { required: false, control: "text", type: "string" },
|
|
41
44
|
inlist: { required: false, control: "text", type: "string" },
|
|
42
45
|
prefix: { required: false, control: "text", type: "string" },
|
|
43
46
|
property: { required: false, control: "text", type: "string" },
|
|
47
|
+
rel: { required: false, control: "text", type: "string" },
|
|
44
48
|
resource: { required: false, control: "text", type: "string" },
|
|
49
|
+
rev: { required: false, control: "text", type: "string" },
|
|
45
50
|
typeof: { required: false, control: "text", type: "string" },
|
|
46
51
|
vocab: { required: false, control: "text", type: "string" },
|
|
47
52
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -17,6 +17,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
17
17
|
type: "boolean",
|
|
18
18
|
},
|
|
19
19
|
accessKey: { required: false, control: "text", type: "string" },
|
|
20
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
20
21
|
className: { required: false, control: "text", type: "string" },
|
|
21
22
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
22
23
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -25,6 +26,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
25
26
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
26
27
|
id: { required: false, control: "text", type: "string" },
|
|
27
28
|
lang: { required: false, control: "text", type: "string" },
|
|
29
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
28
30
|
placeholder: { required: false, control: "text", type: "string" },
|
|
29
31
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
30
32
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -37,11 +39,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
37
39
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
38
40
|
role: { required: false, control: "text", type: "string" },
|
|
39
41
|
about: { required: false, control: "text", type: "string" },
|
|
42
|
+
content: { required: false, control: "text", type: "string" },
|
|
40
43
|
datatype: { required: false, control: "text", type: "string" },
|
|
41
44
|
inlist: { required: false, control: "text", type: "string" },
|
|
42
45
|
prefix: { required: false, control: "text", type: "string" },
|
|
43
46
|
property: { required: false, control: "text", type: "string" },
|
|
47
|
+
rel: { required: false, control: "text", type: "string" },
|
|
44
48
|
resource: { required: false, control: "text", type: "string" },
|
|
49
|
+
rev: { required: false, control: "text", type: "string" },
|
|
45
50
|
typeof: { required: false, control: "text", type: "string" },
|
|
46
51
|
vocab: { required: false, control: "text", type: "string" },
|
|
47
52
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -17,6 +17,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
17
17
|
type: "boolean",
|
|
18
18
|
},
|
|
19
19
|
accessKey: { required: false, control: "text", type: "string" },
|
|
20
|
+
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
20
21
|
className: { required: false, control: "text", type: "string" },
|
|
21
22
|
contentEditable: { required: false, control: "text", type: "string" },
|
|
22
23
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
@@ -25,6 +26,7 @@ export const props: Record<string, PropMeta> = {
|
|
|
25
26
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
26
27
|
id: { required: false, control: "text", type: "string" },
|
|
27
28
|
lang: { required: false, control: "text", type: "string" },
|
|
29
|
+
nonce: { required: false, control: "text", type: "string" },
|
|
28
30
|
placeholder: { required: false, control: "text", type: "string" },
|
|
29
31
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
30
32
|
tabIndex: { required: false, control: "number", type: "number" },
|
|
@@ -37,11 +39,14 @@ export const props: Record<string, PropMeta> = {
|
|
|
37
39
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
38
40
|
role: { required: false, control: "text", type: "string" },
|
|
39
41
|
about: { required: false, control: "text", type: "string" },
|
|
42
|
+
content: { required: false, control: "text", type: "string" },
|
|
40
43
|
datatype: { required: false, control: "text", type: "string" },
|
|
41
44
|
inlist: { required: false, control: "text", type: "string" },
|
|
42
45
|
prefix: { required: false, control: "text", type: "string" },
|
|
43
46
|
property: { required: false, control: "text", type: "string" },
|
|
47
|
+
rel: { required: false, control: "text", type: "string" },
|
|
44
48
|
resource: { required: false, control: "text", type: "string" },
|
|
49
|
+
rev: { required: false, control: "text", type: "string" },
|
|
45
50
|
typeof: { required: false, control: "text", type: "string" },
|
|
46
51
|
vocab: { required: false, control: "text", type: "string" },
|
|
47
52
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
@@ -15,11 +15,6 @@ const presetStyle = {
|
|
|
15
15
|
value: 100,
|
|
16
16
|
},
|
|
17
17
|
|
|
18
|
-
backgroundColor: {
|
|
19
|
-
type: "keyword",
|
|
20
|
-
value: "white",
|
|
21
|
-
},
|
|
22
|
-
|
|
23
18
|
fontFamily: {
|
|
24
19
|
type: "keyword",
|
|
25
20
|
value: "Arial",
|
|
@@ -36,11 +31,6 @@ const presetStyle = {
|
|
|
36
31
|
unit: "number",
|
|
37
32
|
value: 1.5,
|
|
38
33
|
},
|
|
39
|
-
|
|
40
|
-
color: {
|
|
41
|
-
type: "keyword",
|
|
42
|
-
value: "#232323",
|
|
43
|
-
},
|
|
44
34
|
},
|
|
45
35
|
} as const satisfies Record<typeof defaultTag, Style>;
|
|
46
36
|
|
package/src/components/link.tsx
CHANGED
|
@@ -23,7 +23,7 @@ export const Link = forwardRef<HTMLAnchorElement, Props>((props, ref) => {
|
|
|
23
23
|
|
|
24
24
|
switch (href?.type) {
|
|
25
25
|
case "page":
|
|
26
|
-
url = href.page.path;
|
|
26
|
+
url = href.page.path === "" ? "/" : href.page.path;
|
|
27
27
|
if (href.hash !== undefined) {
|
|
28
28
|
url += `#${href.hash}`;
|
|
29
29
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { renderToString } from "react-dom/server";
|
|
3
|
-
import { RemixServer } from "@remix-run/react";
|
|
4
|
-
const handleRequest = (request, responseStatusCode, responseHeaders, remixContext) => {
|
|
5
|
-
const markup = renderToString(
|
|
6
|
-
/* @__PURE__ */ jsx(RemixServer, { context: remixContext, url: request.url })
|
|
7
|
-
);
|
|
8
|
-
responseHeaders.set("Content-Type", "text/html");
|
|
9
|
-
return new Response(`<!DOCTYPE html>${markup}`, {
|
|
10
|
-
status: responseStatusCode,
|
|
11
|
-
headers: responseHeaders
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
handleRequest
|
|
16
|
-
};
|