@webstudio-is/react-sdk 0.59.0 → 0.61.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.
Files changed (163) hide show
  1. package/lib/app/custom-components/shared/remix-link.js +2 -2
  2. package/lib/app/index.js +0 -1
  3. package/lib/cjs/app/custom-components/shared/remix-link.js +2 -2
  4. package/lib/cjs/app/index.js +0 -1
  5. package/lib/cjs/components/__generated__/blockquote.props.js +5 -0
  6. package/lib/cjs/components/__generated__/body.props.js +5 -0
  7. package/lib/cjs/components/__generated__/bold.props.js +5 -0
  8. package/lib/cjs/components/__generated__/box.props.js +5 -0
  9. package/lib/cjs/components/__generated__/button.props.js +5 -1
  10. package/lib/cjs/components/__generated__/code.props.js +5 -0
  11. package/lib/cjs/components/__generated__/form.props.js +5 -0
  12. package/lib/cjs/components/__generated__/heading.props.js +5 -0
  13. package/lib/cjs/components/__generated__/image.props.js +5 -0
  14. package/lib/cjs/components/__generated__/input.props.js +11 -2
  15. package/lib/cjs/components/__generated__/italic.props.js +5 -0
  16. package/lib/cjs/components/__generated__/link-block.props.js +5 -1
  17. package/lib/cjs/components/__generated__/link.props.js +5 -1
  18. package/lib/cjs/components/__generated__/list-item.props.js +5 -0
  19. package/lib/cjs/components/__generated__/list.props.js +5 -0
  20. package/lib/cjs/components/__generated__/paragraph.props.js +5 -0
  21. package/lib/cjs/components/__generated__/rich-text-link.props.js +5 -1
  22. package/lib/cjs/components/__generated__/separator.props.js +5 -0
  23. package/lib/cjs/components/__generated__/span.props.js +5 -0
  24. package/lib/cjs/components/__generated__/subscript.props.js +5 -0
  25. package/lib/cjs/components/__generated__/superscript.props.js +5 -0
  26. package/lib/cjs/components/__generated__/text-block.props.js +5 -0
  27. package/lib/cjs/components/blockquote.ws.js +36 -48
  28. package/lib/cjs/components/body.ws.js +19 -24
  29. package/lib/cjs/components/button.ws.js +1 -1
  30. package/lib/cjs/components/code.ws.js +20 -28
  31. package/lib/cjs/components/component-meta.js +2 -1
  32. package/lib/cjs/components/form.ws.js +14 -7
  33. package/lib/cjs/components/heading.ws.js +1 -1
  34. package/lib/cjs/components/image.ws.js +8 -9
  35. package/lib/cjs/components/italic.ws.js +5 -5
  36. package/lib/cjs/components/link-block.ws.js +5 -5
  37. package/lib/cjs/components/link.js +1 -1
  38. package/lib/cjs/components/link.ws.js +9 -10
  39. package/lib/cjs/components/list-item.ws.js +1 -1
  40. package/lib/cjs/components/list.ws.js +22 -22
  41. package/lib/cjs/components/paragraph.ws.js +1 -1
  42. package/lib/cjs/components/separator.ws.js +20 -20
  43. package/lib/cjs/components/text-block.ws.js +6 -7
  44. package/lib/cjs/css/css.js +6 -9
  45. package/lib/cjs/css/normalize.js +166 -185
  46. package/lib/cjs/css/presets.js +14 -34
  47. package/lib/cjs/css/style-rules.js +17 -0
  48. package/lib/cjs/embed-template.js +160 -0
  49. package/lib/cjs/index.js +1 -0
  50. package/lib/components/__generated__/blockquote.props.js +5 -0
  51. package/lib/components/__generated__/body.props.js +5 -0
  52. package/lib/components/__generated__/bold.props.js +5 -0
  53. package/lib/components/__generated__/box.props.js +5 -0
  54. package/lib/components/__generated__/button.props.js +5 -1
  55. package/lib/components/__generated__/code.props.js +5 -0
  56. package/lib/components/__generated__/form.props.js +5 -0
  57. package/lib/components/__generated__/heading.props.js +5 -0
  58. package/lib/components/__generated__/image.props.js +5 -0
  59. package/lib/components/__generated__/input.props.js +11 -2
  60. package/lib/components/__generated__/italic.props.js +5 -0
  61. package/lib/components/__generated__/link-block.props.js +5 -1
  62. package/lib/components/__generated__/link.props.js +5 -1
  63. package/lib/components/__generated__/list-item.props.js +5 -0
  64. package/lib/components/__generated__/list.props.js +5 -0
  65. package/lib/components/__generated__/paragraph.props.js +5 -0
  66. package/lib/components/__generated__/rich-text-link.props.js +5 -1
  67. package/lib/components/__generated__/separator.props.js +5 -0
  68. package/lib/components/__generated__/span.props.js +5 -0
  69. package/lib/components/__generated__/subscript.props.js +5 -0
  70. package/lib/components/__generated__/superscript.props.js +5 -0
  71. package/lib/components/__generated__/text-block.props.js +5 -0
  72. package/lib/components/blockquote.ws.js +36 -48
  73. package/lib/components/body.ws.js +19 -24
  74. package/lib/components/button.ws.js +1 -1
  75. package/lib/components/code.ws.js +20 -28
  76. package/lib/components/component-meta.js +2 -1
  77. package/lib/components/form.ws.js +14 -7
  78. package/lib/components/heading.ws.js +1 -1
  79. package/lib/components/image.ws.js +8 -9
  80. package/lib/components/italic.ws.js +5 -5
  81. package/lib/components/link-block.ws.js +5 -5
  82. package/lib/components/link.js +1 -1
  83. package/lib/components/link.ws.js +9 -10
  84. package/lib/components/list-item.ws.js +1 -1
  85. package/lib/components/list.ws.js +22 -22
  86. package/lib/components/paragraph.ws.js +1 -1
  87. package/lib/components/separator.ws.js +20 -20
  88. package/lib/components/text-block.ws.js +6 -7
  89. package/lib/css/css.js +8 -11
  90. package/lib/css/normalize.js +166 -185
  91. package/lib/css/presets.js +14 -34
  92. package/lib/css/style-rules.js +17 -0
  93. package/lib/embed-template.js +140 -0
  94. package/lib/index.js +1 -0
  95. package/lib/types/app/index.d.ts +0 -1
  96. package/lib/types/components/box.stories.d.ts +2 -2
  97. package/lib/types/components/component-meta.d.ts +20 -5
  98. package/lib/types/components/components-utils.d.ts +1 -1
  99. package/lib/types/css/normalize.d.ts +8786 -2286
  100. package/lib/types/css/presets.d.ts +2 -38
  101. package/lib/types/css/style-rules.d.ts +11 -9
  102. package/lib/types/embed-template.d.ts +1725 -0
  103. package/lib/types/embed-template.test.d.ts +1 -0
  104. package/lib/types/index.d.ts +1 -0
  105. package/package.json +16 -19
  106. package/src/app/custom-components/shared/remix-link.tsx +2 -2
  107. package/src/app/index.ts +0 -1
  108. package/src/components/__generated__/blockquote.props.ts +5 -0
  109. package/src/components/__generated__/body.props.ts +5 -0
  110. package/src/components/__generated__/bold.props.ts +5 -0
  111. package/src/components/__generated__/box.props.ts +5 -0
  112. package/src/components/__generated__/button.props.ts +5 -1
  113. package/src/components/__generated__/code.props.ts +5 -0
  114. package/src/components/__generated__/form.props.ts +5 -0
  115. package/src/components/__generated__/heading.props.ts +5 -0
  116. package/src/components/__generated__/image.props.ts +5 -0
  117. package/src/components/__generated__/input.props.ts +11 -2
  118. package/src/components/__generated__/italic.props.ts +5 -0
  119. package/src/components/__generated__/link-block.props.ts +5 -1
  120. package/src/components/__generated__/link.props.ts +5 -1
  121. package/src/components/__generated__/list-item.props.ts +5 -0
  122. package/src/components/__generated__/list.props.ts +5 -0
  123. package/src/components/__generated__/paragraph.props.ts +5 -0
  124. package/src/components/__generated__/rich-text-link.props.ts +5 -1
  125. package/src/components/__generated__/separator.props.ts +5 -0
  126. package/src/components/__generated__/span.props.ts +5 -0
  127. package/src/components/__generated__/subscript.props.ts +5 -0
  128. package/src/components/__generated__/superscript.props.ts +5 -0
  129. package/src/components/__generated__/text-block.props.ts +5 -0
  130. package/src/components/blockquote.ws.tsx +42 -52
  131. package/src/components/body.ws.tsx +25 -32
  132. package/src/components/bold.ws.tsx +6 -3
  133. package/src/components/box.ws.ts +6 -3
  134. package/src/components/button.ws.tsx +7 -4
  135. package/src/components/code.ws.tsx +26 -32
  136. package/src/components/component-meta.ts +5 -3
  137. package/src/components/form.ws.tsx +19 -9
  138. package/src/components/heading.ws.tsx +7 -4
  139. package/src/components/image.ws.tsx +14 -12
  140. package/src/components/input.ws.tsx +6 -3
  141. package/src/components/italic.ws.tsx +11 -8
  142. package/src/components/link-block.ws.tsx +11 -8
  143. package/src/components/link.tsx +1 -1
  144. package/src/components/link.ws.tsx +15 -13
  145. package/src/components/list-item.ws.tsx +7 -4
  146. package/src/components/list.ws.tsx +28 -25
  147. package/src/components/paragraph.ws.tsx +7 -4
  148. package/src/components/separator.ws.tsx +26 -25
  149. package/src/components/span.ws.tsx +6 -3
  150. package/src/components/subscript.ws.tsx +6 -3
  151. package/src/components/superscript.ws.tsx +6 -3
  152. package/src/components/text-block.ws.tsx +12 -11
  153. package/src/css/css.ts +8 -11
  154. package/src/css/normalize.ts +165 -188
  155. package/src/css/presets.ts +15 -37
  156. package/src/css/style-rules.ts +24 -0
  157. package/src/embed-template.test.ts +210 -0
  158. package/src/embed-template.ts +187 -0
  159. package/src/index.ts +1 -0
  160. package/lib/app/handle-request.server.js +0 -16
  161. package/lib/cjs/app/handle-request.server.js +0 -36
  162. package/lib/types/app/handle-request.server.d.ts +0 -2
  163. package/src/app/handle-request.server.tsx +0 -21
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var embed_template_exports = {};
20
+ __export(embed_template_exports, {
21
+ EmbedTemplateInstance: () => EmbedTemplateInstance,
22
+ EmbedTemplateStyleDecl: () => EmbedTemplateStyleDecl,
23
+ WsEmbedTemplate: () => WsEmbedTemplate,
24
+ generateDataFromEmbedTemplate: () => generateDataFromEmbedTemplate
25
+ });
26
+ module.exports = __toCommonJS(embed_template_exports);
27
+ var import_zod = require("zod");
28
+ var import_nanoid = require("nanoid");
29
+ var import_css_data = require("@webstudio-is/css-data");
30
+ const EmbedTemplateText = import_zod.z.object({
31
+ type: import_zod.z.literal("text"),
32
+ value: import_zod.z.string()
33
+ });
34
+ const EmbedTemplateProp = import_zod.z.union([
35
+ import_zod.z.object({
36
+ type: import_zod.z.literal("number"),
37
+ name: import_zod.z.string(),
38
+ value: import_zod.z.number()
39
+ }),
40
+ import_zod.z.object({
41
+ type: import_zod.z.literal("string"),
42
+ name: import_zod.z.string(),
43
+ value: import_zod.z.string()
44
+ }),
45
+ import_zod.z.object({
46
+ type: import_zod.z.literal("boolean"),
47
+ name: import_zod.z.string(),
48
+ value: import_zod.z.boolean()
49
+ }),
50
+ import_zod.z.object({
51
+ type: import_zod.z.literal("string[]"),
52
+ name: import_zod.z.string(),
53
+ value: import_zod.z.array(import_zod.z.string())
54
+ })
55
+ ]);
56
+ const EmbedTemplateStyleDecl = import_zod.z.object({
57
+ state: import_zod.z.optional(import_zod.z.string()),
58
+ property: import_zod.z.string(),
59
+ value: import_css_data.StyleValue
60
+ });
61
+ const EmbedTemplateInstance = import_zod.z.lazy(
62
+ () => import_zod.z.object({
63
+ type: import_zod.z.literal("instance"),
64
+ component: import_zod.z.string(),
65
+ props: import_zod.z.optional(import_zod.z.array(EmbedTemplateProp)),
66
+ styles: import_zod.z.optional(import_zod.z.array(EmbedTemplateStyleDecl)),
67
+ children: WsEmbedTemplate
68
+ })
69
+ );
70
+ const WsEmbedTemplate = import_zod.z.lazy(
71
+ () => import_zod.z.array(import_zod.z.union([EmbedTemplateInstance, EmbedTemplateText]))
72
+ );
73
+ const createInstancesFromTemplate = (treeTemplate, instances, props, styleSourceSelections, styleSources, styles, defaultBreakpointId) => {
74
+ const parentChildren = [];
75
+ for (const item of treeTemplate) {
76
+ if (item.type === "instance") {
77
+ const instanceId = (0, import_nanoid.nanoid)();
78
+ if (item.props) {
79
+ for (const prop of item.props) {
80
+ props.push({
81
+ id: (0, import_nanoid.nanoid)(),
82
+ instanceId,
83
+ ...prop
84
+ });
85
+ }
86
+ }
87
+ if (item.styles) {
88
+ const styleSourceId = (0, import_nanoid.nanoid)();
89
+ styleSources.push({
90
+ type: "local",
91
+ id: styleSourceId
92
+ });
93
+ styleSourceSelections.push({
94
+ instanceId,
95
+ values: [styleSourceId]
96
+ });
97
+ for (const styleDecl of item.styles) {
98
+ styles.push({
99
+ breakpointId: defaultBreakpointId,
100
+ styleSourceId,
101
+ state: styleDecl.state,
102
+ property: styleDecl.property,
103
+ value: styleDecl.value
104
+ });
105
+ }
106
+ }
107
+ const instance = {
108
+ type: "instance",
109
+ id: instanceId,
110
+ component: item.component,
111
+ children: []
112
+ };
113
+ instances.push(instance);
114
+ instance.children = createInstancesFromTemplate(
115
+ item.children,
116
+ instances,
117
+ props,
118
+ styleSourceSelections,
119
+ styleSources,
120
+ styles,
121
+ defaultBreakpointId
122
+ );
123
+ parentChildren.push({
124
+ type: "id",
125
+ value: instanceId
126
+ });
127
+ }
128
+ if (item.type === "text") {
129
+ parentChildren.push({
130
+ type: "text",
131
+ value: item.value
132
+ });
133
+ }
134
+ }
135
+ return parentChildren;
136
+ };
137
+ const generateDataFromEmbedTemplate = (treeTemplate, defaultBreakpointId) => {
138
+ const instances = [];
139
+ const props = [];
140
+ const styleSourceSelections = [];
141
+ const styleSources = [];
142
+ const styles = [];
143
+ const children = createInstancesFromTemplate(
144
+ treeTemplate,
145
+ instances,
146
+ props,
147
+ styleSourceSelections,
148
+ styleSources,
149
+ styles,
150
+ defaultBreakpointId
151
+ );
152
+ return {
153
+ children,
154
+ instances,
155
+ props,
156
+ styleSourceSelections,
157
+ styleSources,
158
+ styles
159
+ };
160
+ };
package/lib/cjs/index.js CHANGED
@@ -34,3 +34,4 @@ __reExport(src_exports, require("./components/components"), module.exports);
34
34
  __reExport(src_exports, require("./components/components-utils"), module.exports);
35
35
  var import_custom_components = require("./app/custom-components");
36
36
  var import_component_meta = require("./components/component-meta");
37
+ __reExport(src_exports, require("./embed-template"), module.exports);
@@ -16,6 +16,7 @@ const props = {
16
16
  type: "boolean"
17
17
  },
18
18
  accessKey: { required: false, control: "text", type: "string" },
19
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
19
20
  className: { required: false, control: "text", type: "string" },
20
21
  contentEditable: { required: false, control: "text", type: "string" },
21
22
  contextMenu: { required: false, control: "text", type: "string" },
@@ -24,6 +25,7 @@ const props = {
24
25
  hidden: { required: false, control: "boolean", type: "boolean" },
25
26
  id: { required: false, control: "text", type: "string" },
26
27
  lang: { required: false, control: "text", type: "string" },
28
+ nonce: { required: false, control: "text", type: "string" },
27
29
  placeholder: { required: false, control: "text", type: "string" },
28
30
  spellCheck: { required: false, control: "boolean", type: "boolean" },
29
31
  tabIndex: { required: false, control: "number", type: "number" },
@@ -36,11 +38,14 @@ const props = {
36
38
  radioGroup: { required: false, control: "text", type: "string" },
37
39
  role: { required: false, control: "text", type: "string" },
38
40
  about: { required: false, control: "text", type: "string" },
41
+ content: { required: false, control: "text", type: "string" },
39
42
  datatype: { required: false, control: "text", type: "string" },
40
43
  inlist: { required: false, control: "text", type: "string" },
41
44
  prefix: { required: false, control: "text", type: "string" },
42
45
  property: { required: false, control: "text", type: "string" },
46
+ rel: { required: false, control: "text", type: "string" },
43
47
  resource: { required: false, control: "text", type: "string" },
48
+ rev: { required: false, control: "text", type: "string" },
44
49
  typeof: { required: false, control: "text", type: "string" },
45
50
  vocab: { required: false, control: "text", type: "string" },
46
51
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -15,6 +15,7 @@ const props = {
15
15
  type: "boolean"
16
16
  },
17
17
  accessKey: { required: false, control: "text", type: "string" },
18
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
18
19
  className: { required: false, control: "text", type: "string" },
19
20
  contentEditable: { required: false, control: "text", type: "string" },
20
21
  contextMenu: { required: false, control: "text", type: "string" },
@@ -23,6 +24,7 @@ const props = {
23
24
  hidden: { required: false, control: "boolean", type: "boolean" },
24
25
  id: { required: false, control: "text", type: "string" },
25
26
  lang: { required: false, control: "text", type: "string" },
27
+ nonce: { required: false, control: "text", type: "string" },
26
28
  placeholder: { required: false, control: "text", type: "string" },
27
29
  spellCheck: { required: false, control: "boolean", type: "boolean" },
28
30
  tabIndex: { required: false, control: "number", type: "number" },
@@ -35,11 +37,14 @@ const props = {
35
37
  radioGroup: { required: false, control: "text", type: "string" },
36
38
  role: { required: false, control: "text", type: "string" },
37
39
  about: { required: false, control: "text", type: "string" },
40
+ content: { required: false, control: "text", type: "string" },
38
41
  datatype: { required: false, control: "text", type: "string" },
39
42
  inlist: { required: false, control: "text", type: "string" },
40
43
  prefix: { required: false, control: "text", type: "string" },
41
44
  property: { required: false, control: "text", type: "string" },
45
+ rel: { required: false, control: "text", type: "string" },
42
46
  resource: { required: false, control: "text", type: "string" },
47
+ rev: { required: false, control: "text", type: "string" },
43
48
  typeof: { required: false, control: "text", type: "string" },
44
49
  vocab: { required: false, control: "text", type: "string" },
45
50
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -15,6 +15,7 @@ const props = {
15
15
  type: "boolean"
16
16
  },
17
17
  accessKey: { required: false, control: "text", type: "string" },
18
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
18
19
  className: { required: false, control: "text", type: "string" },
19
20
  contentEditable: { required: false, control: "text", type: "string" },
20
21
  contextMenu: { required: false, control: "text", type: "string" },
@@ -23,6 +24,7 @@ const props = {
23
24
  hidden: { required: false, control: "boolean", type: "boolean" },
24
25
  id: { required: false, control: "text", type: "string" },
25
26
  lang: { required: false, control: "text", type: "string" },
27
+ nonce: { required: false, control: "text", type: "string" },
26
28
  placeholder: { required: false, control: "text", type: "string" },
27
29
  spellCheck: { required: false, control: "boolean", type: "boolean" },
28
30
  tabIndex: { required: false, control: "number", type: "number" },
@@ -35,11 +37,14 @@ const props = {
35
37
  radioGroup: { required: false, control: "text", type: "string" },
36
38
  role: { required: false, control: "text", type: "string" },
37
39
  about: { required: false, control: "text", type: "string" },
40
+ content: { required: false, control: "text", type: "string" },
38
41
  datatype: { required: false, control: "text", type: "string" },
39
42
  inlist: { required: false, control: "text", type: "string" },
40
43
  prefix: { required: false, control: "text", type: "string" },
41
44
  property: { required: false, control: "text", type: "string" },
45
+ rel: { required: false, control: "text", type: "string" },
42
46
  resource: { required: false, control: "text", type: "string" },
47
+ rev: { required: false, control: "text", type: "string" },
43
48
  typeof: { required: false, control: "text", type: "string" },
44
49
  vocab: { required: false, control: "text", type: "string" },
45
50
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -15,6 +15,7 @@ const props = {
15
15
  type: "boolean"
16
16
  },
17
17
  accessKey: { required: false, control: "text", type: "string" },
18
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
18
19
  className: { required: false, control: "text", type: "string" },
19
20
  contentEditable: { required: false, control: "text", type: "string" },
20
21
  contextMenu: { required: false, control: "text", type: "string" },
@@ -23,6 +24,7 @@ const props = {
23
24
  hidden: { required: false, control: "boolean", type: "boolean" },
24
25
  id: { required: false, control: "text", type: "string" },
25
26
  lang: { required: false, control: "text", type: "string" },
27
+ nonce: { required: false, control: "text", type: "string" },
26
28
  placeholder: { required: false, control: "text", type: "string" },
27
29
  spellCheck: { required: false, control: "boolean", type: "boolean" },
28
30
  tabIndex: { required: false, control: "number", type: "number" },
@@ -35,11 +37,14 @@ const props = {
35
37
  radioGroup: { required: false, control: "text", type: "string" },
36
38
  role: { required: false, control: "text", type: "string" },
37
39
  about: { required: false, control: "text", type: "string" },
40
+ content: { required: false, control: "text", type: "string" },
38
41
  datatype: { required: false, control: "text", type: "string" },
39
42
  inlist: { required: false, control: "text", type: "string" },
40
43
  prefix: { required: false, control: "text", type: "string" },
41
44
  property: { required: false, control: "text", type: "string" },
45
+ rel: { required: false, control: "text", type: "string" },
42
46
  resource: { required: false, control: "text", type: "string" },
47
+ rev: { required: false, control: "text", type: "string" },
43
48
  typeof: { required: false, control: "text", type: "string" },
44
49
  vocab: { required: false, control: "text", type: "string" },
45
50
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -3,7 +3,6 @@ const props = {
3
3
  slot: { required: false, control: "text", type: "string" },
4
4
  style: { required: false, control: "text", type: "string" },
5
5
  title: { required: false, control: "text", type: "string" },
6
- autoFocus: { required: false, control: "boolean", type: "boolean" },
7
6
  disabled: { required: false, control: "boolean", type: "boolean" },
8
7
  formAction: { required: false, control: "text", type: "string" },
9
8
  formEncType: { required: false, control: "text", type: "string" },
@@ -32,6 +31,7 @@ const props = {
32
31
  type: "boolean"
33
32
  },
34
33
  accessKey: { required: false, control: "text", type: "string" },
34
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
35
35
  className: { required: false, control: "text", type: "string" },
36
36
  contentEditable: { required: false, control: "text", type: "string" },
37
37
  contextMenu: { required: false, control: "text", type: "string" },
@@ -40,6 +40,7 @@ const props = {
40
40
  hidden: { required: false, control: "boolean", type: "boolean" },
41
41
  id: { required: false, control: "text", type: "string" },
42
42
  lang: { required: false, control: "text", type: "string" },
43
+ nonce: { required: false, control: "text", type: "string" },
43
44
  placeholder: { required: false, control: "text", type: "string" },
44
45
  spellCheck: { required: false, control: "boolean", type: "boolean" },
45
46
  tabIndex: { required: false, control: "number", type: "number" },
@@ -52,11 +53,14 @@ const props = {
52
53
  radioGroup: { required: false, control: "text", type: "string" },
53
54
  role: { required: false, control: "text", type: "string" },
54
55
  about: { required: false, control: "text", type: "string" },
56
+ content: { required: false, control: "text", type: "string" },
55
57
  datatype: { required: false, control: "text", type: "string" },
56
58
  inlist: { required: false, control: "text", type: "string" },
57
59
  prefix: { required: false, control: "text", type: "string" },
58
60
  property: { required: false, control: "text", type: "string" },
61
+ rel: { required: false, control: "text", type: "string" },
59
62
  resource: { required: false, control: "text", type: "string" },
63
+ rev: { required: false, control: "text", type: "string" },
60
64
  typeof: { required: false, control: "text", type: "string" },
61
65
  vocab: { required: false, control: "text", type: "string" },
62
66
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -16,6 +16,7 @@ const props = {
16
16
  type: "boolean"
17
17
  },
18
18
  accessKey: { required: false, control: "text", type: "string" },
19
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
19
20
  className: { required: false, control: "text", type: "string" },
20
21
  contentEditable: { required: false, control: "text", type: "string" },
21
22
  contextMenu: { required: false, control: "text", type: "string" },
@@ -24,6 +25,7 @@ const props = {
24
25
  hidden: { required: false, control: "boolean", type: "boolean" },
25
26
  id: { required: false, control: "text", type: "string" },
26
27
  lang: { required: false, control: "text", type: "string" },
28
+ nonce: { required: false, control: "text", type: "string" },
27
29
  placeholder: { required: false, control: "text", type: "string" },
28
30
  spellCheck: { required: false, control: "boolean", type: "boolean" },
29
31
  tabIndex: { required: false, control: "number", type: "number" },
@@ -36,11 +38,14 @@ const props = {
36
38
  radioGroup: { required: false, control: "text", type: "string" },
37
39
  role: { required: false, control: "text", type: "string" },
38
40
  about: { required: false, control: "text", type: "string" },
41
+ content: { required: false, control: "text", type: "string" },
39
42
  datatype: { required: false, control: "text", type: "string" },
40
43
  inlist: { required: false, control: "text", type: "string" },
41
44
  prefix: { required: false, control: "text", type: "string" },
42
45
  property: { required: false, control: "text", type: "string" },
46
+ rel: { required: false, control: "text", type: "string" },
43
47
  resource: { required: false, control: "text", type: "string" },
48
+ rev: { required: false, control: "text", type: "string" },
44
49
  typeof: { required: false, control: "text", type: "string" },
45
50
  vocab: { required: false, control: "text", type: "string" },
46
51
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -23,6 +23,7 @@ const props = {
23
23
  type: "boolean"
24
24
  },
25
25
  accessKey: { required: false, control: "text", type: "string" },
26
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
26
27
  className: { required: false, control: "text", type: "string" },
27
28
  contentEditable: { required: false, control: "text", type: "string" },
28
29
  contextMenu: { required: false, control: "text", type: "string" },
@@ -31,6 +32,7 @@ const props = {
31
32
  hidden: { required: false, control: "boolean", type: "boolean" },
32
33
  id: { required: false, control: "text", type: "string" },
33
34
  lang: { required: false, control: "text", type: "string" },
35
+ nonce: { required: false, control: "text", type: "string" },
34
36
  placeholder: { required: false, control: "text", type: "string" },
35
37
  spellCheck: { required: false, control: "boolean", type: "boolean" },
36
38
  tabIndex: { required: false, control: "number", type: "number" },
@@ -43,11 +45,14 @@ const props = {
43
45
  radioGroup: { required: false, control: "text", type: "string" },
44
46
  role: { required: false, control: "text", type: "string" },
45
47
  about: { required: false, control: "text", type: "string" },
48
+ content: { required: false, control: "text", type: "string" },
46
49
  datatype: { required: false, control: "text", type: "string" },
47
50
  inlist: { required: false, control: "text", type: "string" },
48
51
  prefix: { required: false, control: "text", type: "string" },
49
52
  property: { required: false, control: "text", type: "string" },
53
+ rel: { required: false, control: "text", type: "string" },
50
54
  resource: { required: false, control: "text", type: "string" },
55
+ rev: { required: false, control: "text", type: "string" },
51
56
  typeof: { required: false, control: "text", type: "string" },
52
57
  vocab: { required: false, control: "text", type: "string" },
53
58
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -15,6 +15,7 @@ const props = {
15
15
  type: "boolean"
16
16
  },
17
17
  accessKey: { required: false, control: "text", type: "string" },
18
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
18
19
  className: { required: false, control: "text", type: "string" },
19
20
  contentEditable: { required: false, control: "text", type: "string" },
20
21
  contextMenu: { required: false, control: "text", type: "string" },
@@ -23,6 +24,7 @@ const props = {
23
24
  hidden: { required: false, control: "boolean", type: "boolean" },
24
25
  id: { required: false, control: "text", type: "string" },
25
26
  lang: { required: false, control: "text", type: "string" },
27
+ nonce: { required: false, control: "text", type: "string" },
26
28
  placeholder: { required: false, control: "text", type: "string" },
27
29
  spellCheck: { required: false, control: "boolean", type: "boolean" },
28
30
  tabIndex: { required: false, control: "number", type: "number" },
@@ -35,11 +37,14 @@ const props = {
35
37
  radioGroup: { required: false, control: "text", type: "string" },
36
38
  role: { required: false, control: "text", type: "string" },
37
39
  about: { required: false, control: "text", type: "string" },
40
+ content: { required: false, control: "text", type: "string" },
38
41
  datatype: { required: false, control: "text", type: "string" },
39
42
  inlist: { required: false, control: "text", type: "string" },
40
43
  prefix: { required: false, control: "text", type: "string" },
41
44
  property: { required: false, control: "text", type: "string" },
45
+ rel: { required: false, control: "text", type: "string" },
42
46
  resource: { required: false, control: "text", type: "string" },
47
+ rev: { required: false, control: "text", type: "string" },
43
48
  typeof: { required: false, control: "text", type: "string" },
44
49
  vocab: { required: false, control: "text", type: "string" },
45
50
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -56,6 +56,7 @@ const props = {
56
56
  type: "boolean"
57
57
  },
58
58
  accessKey: { required: false, control: "text", type: "string" },
59
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
59
60
  className: { required: false, control: "text", type: "string" },
60
61
  contentEditable: { required: false, control: "text", type: "string" },
61
62
  contextMenu: { required: false, control: "text", type: "string" },
@@ -64,6 +65,7 @@ const props = {
64
65
  hidden: { required: false, control: "boolean", type: "boolean" },
65
66
  id: { required: false, control: "text", type: "string" },
66
67
  lang: { required: false, control: "text", type: "string" },
68
+ nonce: { required: false, control: "text", type: "string" },
67
69
  placeholder: { required: false, control: "text", type: "string" },
68
70
  spellCheck: { required: false, control: "boolean", type: "boolean" },
69
71
  tabIndex: { required: false, control: "number", type: "number" },
@@ -76,11 +78,14 @@ const props = {
76
78
  radioGroup: { required: false, control: "text", type: "string" },
77
79
  role: { required: false, control: "text", type: "string" },
78
80
  about: { required: false, control: "text", type: "string" },
81
+ content: { required: false, control: "text", type: "string" },
79
82
  datatype: { required: false, control: "text", type: "string" },
80
83
  inlist: { required: false, control: "text", type: "string" },
81
84
  prefix: { required: false, control: "text", type: "string" },
82
85
  property: { required: false, control: "text", type: "string" },
86
+ rel: { required: false, control: "text", type: "string" },
83
87
  resource: { required: false, control: "text", type: "string" },
88
+ rev: { required: false, control: "text", type: "string" },
84
89
  typeof: { required: false, control: "text", type: "string" },
85
90
  vocab: { required: false, control: "text", type: "string" },
86
91
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -7,10 +7,14 @@ const props = {
7
7
  accept: { required: false, control: "text", type: "string" },
8
8
  alt: { required: false, control: "text", type: "string" },
9
9
  autoComplete: { required: false, control: "text", type: "string" },
10
- autoFocus: { required: false, control: "boolean", type: "boolean" },
11
10
  capture: { required: false, control: "text", type: "string" },
12
11
  checked: { required: false, control: "boolean", type: "boolean" },
13
- crossOrigin: { required: false, control: "text", type: "string" },
12
+ crossOrigin: {
13
+ required: false,
14
+ control: "radio",
15
+ type: "string",
16
+ options: ["", "anonymous", "use-credentials"]
17
+ },
14
18
  disabled: { required: false, control: "boolean", type: "boolean" },
15
19
  enterKeyHint: {
16
20
  required: false,
@@ -54,6 +58,7 @@ const props = {
54
58
  type: "boolean"
55
59
  },
56
60
  accessKey: { required: false, control: "text", type: "string" },
61
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
57
62
  className: { required: false, control: "text", type: "string" },
58
63
  contentEditable: { required: false, control: "text", type: "string" },
59
64
  contextMenu: { required: false, control: "text", type: "string" },
@@ -62,6 +67,7 @@ const props = {
62
67
  hidden: { required: false, control: "boolean", type: "boolean" },
63
68
  id: { required: false, control: "text", type: "string" },
64
69
  lang: { required: false, control: "text", type: "string" },
70
+ nonce: { required: false, control: "text", type: "string" },
65
71
  spellCheck: { required: false, control: "boolean", type: "boolean" },
66
72
  tabIndex: { required: false, control: "number", type: "number" },
67
73
  translate: {
@@ -73,11 +79,14 @@ const props = {
73
79
  radioGroup: { required: false, control: "text", type: "string" },
74
80
  role: { required: false, control: "text", type: "string" },
75
81
  about: { required: false, control: "text", type: "string" },
82
+ content: { required: false, control: "text", type: "string" },
76
83
  datatype: { required: false, control: "text", type: "string" },
77
84
  inlist: { required: false, control: "text", type: "string" },
78
85
  prefix: { required: false, control: "text", type: "string" },
79
86
  property: { required: false, control: "text", type: "string" },
87
+ rel: { required: false, control: "text", type: "string" },
80
88
  resource: { required: false, control: "text", type: "string" },
89
+ rev: { required: false, control: "text", type: "string" },
81
90
  typeof: { required: false, control: "text", type: "string" },
82
91
  vocab: { required: false, control: "text", type: "string" },
83
92
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -15,6 +15,7 @@ const props = {
15
15
  type: "boolean"
16
16
  },
17
17
  accessKey: { required: false, control: "text", type: "string" },
18
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
18
19
  className: { required: false, control: "text", type: "string" },
19
20
  contentEditable: { required: false, control: "text", type: "string" },
20
21
  contextMenu: { required: false, control: "text", type: "string" },
@@ -23,6 +24,7 @@ const props = {
23
24
  hidden: { required: false, control: "boolean", type: "boolean" },
24
25
  id: { required: false, control: "text", type: "string" },
25
26
  lang: { required: false, control: "text", type: "string" },
27
+ nonce: { required: false, control: "text", type: "string" },
26
28
  placeholder: { required: false, control: "text", type: "string" },
27
29
  spellCheck: { required: false, control: "boolean", type: "boolean" },
28
30
  tabIndex: { required: false, control: "number", type: "number" },
@@ -35,11 +37,14 @@ const props = {
35
37
  radioGroup: { required: false, control: "text", type: "string" },
36
38
  role: { required: false, control: "text", type: "string" },
37
39
  about: { required: false, control: "text", type: "string" },
40
+ content: { required: false, control: "text", type: "string" },
38
41
  datatype: { required: false, control: "text", type: "string" },
39
42
  inlist: { required: false, control: "text", type: "string" },
40
43
  prefix: { required: false, control: "text", type: "string" },
41
44
  property: { required: false, control: "text", type: "string" },
45
+ rel: { required: false, control: "text", type: "string" },
42
46
  resource: { required: false, control: "text", type: "string" },
47
+ rev: { required: false, control: "text", type: "string" },
43
48
  typeof: { required: false, control: "text", type: "string" },
44
49
  vocab: { required: false, control: "text", type: "string" },
45
50
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -13,7 +13,6 @@ const props = {
13
13
  hrefLang: { required: false, control: "text", type: "string" },
14
14
  media: { required: false, control: "text", type: "string" },
15
15
  ping: { required: false, control: "text", type: "string" },
16
- rel: { required: false, control: "text", type: "string" },
17
16
  type: { required: false, control: "text", type: "string" },
18
17
  referrerPolicy: {
19
18
  required: false,
@@ -44,6 +43,7 @@ const props = {
44
43
  type: "boolean"
45
44
  },
46
45
  accessKey: { required: false, control: "text", type: "string" },
46
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
47
47
  className: { required: false, control: "text", type: "string" },
48
48
  contentEditable: { required: false, control: "text", type: "string" },
49
49
  contextMenu: { required: false, control: "text", type: "string" },
@@ -52,6 +52,7 @@ const props = {
52
52
  hidden: { required: false, control: "boolean", type: "boolean" },
53
53
  id: { required: false, control: "text", type: "string" },
54
54
  lang: { required: false, control: "text", type: "string" },
55
+ nonce: { required: false, control: "text", type: "string" },
55
56
  placeholder: { required: false, control: "text", type: "string" },
56
57
  spellCheck: { required: false, control: "boolean", type: "boolean" },
57
58
  tabIndex: { required: false, control: "number", type: "number" },
@@ -64,11 +65,14 @@ const props = {
64
65
  radioGroup: { required: false, control: "text", type: "string" },
65
66
  role: { required: false, control: "text", type: "string" },
66
67
  about: { required: false, control: "text", type: "string" },
68
+ content: { required: false, control: "text", type: "string" },
67
69
  datatype: { required: false, control: "text", type: "string" },
68
70
  inlist: { required: false, control: "text", type: "string" },
69
71
  prefix: { required: false, control: "text", type: "string" },
70
72
  property: { required: false, control: "text", type: "string" },
73
+ rel: { required: false, control: "text", type: "string" },
71
74
  resource: { required: false, control: "text", type: "string" },
75
+ rev: { required: false, control: "text", type: "string" },
72
76
  typeof: { required: false, control: "text", type: "string" },
73
77
  vocab: { required: false, control: "text", type: "string" },
74
78
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -13,7 +13,6 @@ const props = {
13
13
  hrefLang: { required: false, control: "text", type: "string" },
14
14
  media: { required: false, control: "text", type: "string" },
15
15
  ping: { required: false, control: "text", type: "string" },
16
- rel: { required: false, control: "text", type: "string" },
17
16
  type: { required: false, control: "text", type: "string" },
18
17
  referrerPolicy: {
19
18
  required: false,
@@ -44,6 +43,7 @@ const props = {
44
43
  type: "boolean"
45
44
  },
46
45
  accessKey: { required: false, control: "text", type: "string" },
46
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
47
47
  className: { required: false, control: "text", type: "string" },
48
48
  contentEditable: { required: false, control: "text", type: "string" },
49
49
  contextMenu: { required: false, control: "text", type: "string" },
@@ -52,6 +52,7 @@ const props = {
52
52
  hidden: { required: false, control: "boolean", type: "boolean" },
53
53
  id: { required: false, control: "text", type: "string" },
54
54
  lang: { required: false, control: "text", type: "string" },
55
+ nonce: { required: false, control: "text", type: "string" },
55
56
  placeholder: { required: false, control: "text", type: "string" },
56
57
  spellCheck: { required: false, control: "boolean", type: "boolean" },
57
58
  tabIndex: { required: false, control: "number", type: "number" },
@@ -64,11 +65,14 @@ const props = {
64
65
  radioGroup: { required: false, control: "text", type: "string" },
65
66
  role: { required: false, control: "text", type: "string" },
66
67
  about: { required: false, control: "text", type: "string" },
68
+ content: { required: false, control: "text", type: "string" },
67
69
  datatype: { required: false, control: "text", type: "string" },
68
70
  inlist: { required: false, control: "text", type: "string" },
69
71
  prefix: { required: false, control: "text", type: "string" },
70
72
  property: { required: false, control: "text", type: "string" },
73
+ rel: { required: false, control: "text", type: "string" },
71
74
  resource: { required: false, control: "text", type: "string" },
75
+ rev: { required: false, control: "text", type: "string" },
72
76
  typeof: { required: false, control: "text", type: "string" },
73
77
  vocab: { required: false, control: "text", type: "string" },
74
78
  autoCapitalize: { required: false, control: "text", type: "string" },
@@ -16,6 +16,7 @@ const props = {
16
16
  type: "boolean"
17
17
  },
18
18
  accessKey: { required: false, control: "text", type: "string" },
19
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
19
20
  className: { required: false, control: "text", type: "string" },
20
21
  contentEditable: { required: false, control: "text", type: "string" },
21
22
  contextMenu: { required: false, control: "text", type: "string" },
@@ -24,6 +25,7 @@ const props = {
24
25
  hidden: { required: false, control: "boolean", type: "boolean" },
25
26
  id: { required: false, control: "text", type: "string" },
26
27
  lang: { required: false, control: "text", type: "string" },
28
+ nonce: { required: false, control: "text", type: "string" },
27
29
  placeholder: { required: false, control: "text", type: "string" },
28
30
  spellCheck: { required: false, control: "boolean", type: "boolean" },
29
31
  tabIndex: { required: false, control: "number", type: "number" },
@@ -36,11 +38,14 @@ const props = {
36
38
  radioGroup: { required: false, control: "text", type: "string" },
37
39
  role: { required: false, control: "text", type: "string" },
38
40
  about: { required: false, control: "text", type: "string" },
41
+ content: { required: false, control: "text", type: "string" },
39
42
  datatype: { required: false, control: "text", type: "string" },
40
43
  inlist: { required: false, control: "text", type: "string" },
41
44
  prefix: { required: false, control: "text", type: "string" },
42
45
  property: { required: false, control: "text", type: "string" },
46
+ rel: { required: false, control: "text", type: "string" },
43
47
  resource: { required: false, control: "text", type: "string" },
48
+ rev: { required: false, control: "text", type: "string" },
44
49
  typeof: { required: false, control: "text", type: "string" },
45
50
  vocab: { required: false, control: "text", type: "string" },
46
51
  autoCapitalize: { required: false, control: "text", type: "string" },