@webstudio-is/react-sdk 0.7.2 → 0.7.3

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 (329) hide show
  1. package/lib/arg-types/utils.js +3 -8
  2. package/lib/cjs/arg-types/utils.cjs +88 -0
  3. package/lib/cjs/arg-types/utils.d.ts +10 -0
  4. package/lib/cjs/arg-types/utils.d.ts.map +1 -0
  5. package/lib/cjs/components/body.cjs +8 -0
  6. package/lib/cjs/components/body.d.ts +3 -0
  7. package/lib/cjs/components/body.d.ts.map +1 -0
  8. package/lib/cjs/components/body.props.json +491 -0
  9. package/lib/cjs/components/body.stories.cjs +11 -0
  10. package/lib/cjs/components/body.stories.d.ts +7 -0
  11. package/lib/cjs/components/body.stories.d.ts.map +1 -0
  12. package/lib/cjs/components/body.ws.cjs +64 -0
  13. package/lib/cjs/components/body.ws.d.ts +5 -0
  14. package/lib/cjs/components/body.ws.d.ts.map +1 -0
  15. package/lib/cjs/components/bold.cjs +8 -0
  16. package/lib/cjs/components/bold.d.ts +3 -0
  17. package/lib/cjs/components/bold.d.ts.map +1 -0
  18. package/lib/cjs/components/bold.props.json +491 -0
  19. package/lib/cjs/components/bold.stories.cjs +14 -0
  20. package/lib/cjs/components/bold.stories.d.ts +6 -0
  21. package/lib/cjs/components/bold.stories.d.ts.map +1 -0
  22. package/lib/cjs/components/bold.ws.cjs +14 -0
  23. package/lib/cjs/components/bold.ws.d.ts +5 -0
  24. package/lib/cjs/components/bold.ws.d.ts.map +1 -0
  25. package/lib/cjs/components/box.cjs +9 -0
  26. package/lib/cjs/components/box.d.ts +8 -0
  27. package/lib/cjs/components/box.d.ts.map +1 -0
  28. package/lib/cjs/components/box.props.json +508 -0
  29. package/lib/cjs/components/box.stories.cjs +12 -0
  30. package/lib/cjs/components/box.stories.d.ts +10 -0
  31. package/lib/cjs/components/box.stories.d.ts.map +1 -0
  32. package/lib/cjs/components/box.ws.cjs +21 -0
  33. package/lib/cjs/components/box.ws.d.ts +5 -0
  34. package/lib/cjs/components/box.ws.d.ts.map +1 -0
  35. package/lib/cjs/components/button.cjs +11 -0
  36. package/lib/cjs/components/button.d.ts +3 -0
  37. package/lib/cjs/components/button.d.ts.map +1 -0
  38. package/lib/cjs/components/button.props.json +547 -0
  39. package/lib/cjs/components/button.stories.cjs +14 -0
  40. package/lib/cjs/components/button.stories.d.ts +6 -0
  41. package/lib/cjs/components/button.stories.d.ts.map +1 -0
  42. package/lib/cjs/components/button.ws.cjs +15 -0
  43. package/lib/cjs/components/button.ws.d.ts +5 -0
  44. package/lib/cjs/components/button.ws.d.ts.map +1 -0
  45. package/lib/cjs/components/component-type.cjs +28 -0
  46. package/lib/cjs/components/component-type.d.ts +17 -0
  47. package/lib/cjs/components/component-type.d.ts.map +1 -0
  48. package/lib/cjs/components/form.cjs +8 -0
  49. package/lib/cjs/components/form.d.ts +3 -0
  50. package/lib/cjs/components/form.d.ts.map +1 -0
  51. package/lib/cjs/components/form.props.json +531 -0
  52. package/lib/cjs/components/form.stories.cjs +12 -0
  53. package/lib/cjs/components/form.stories.d.ts +6 -0
  54. package/lib/cjs/components/form.stories.d.ts.map +1 -0
  55. package/lib/cjs/components/form.ws.cjs +26 -0
  56. package/lib/cjs/components/form.ws.d.ts +5 -0
  57. package/lib/cjs/components/form.ws.d.ts.map +1 -0
  58. package/lib/cjs/components/heading.cjs +9 -0
  59. package/lib/cjs/components/heading.d.ts +8 -0
  60. package/lib/cjs/components/heading.d.ts.map +1 -0
  61. package/lib/cjs/components/heading.props.json +497 -0
  62. package/lib/cjs/components/heading.stories.cjs +14 -0
  63. package/lib/cjs/components/heading.stories.d.ts +10 -0
  64. package/lib/cjs/components/heading.stories.d.ts.map +1 -0
  65. package/lib/cjs/components/heading.ws.cjs +15 -0
  66. package/lib/cjs/components/heading.ws.d.ts +5 -0
  67. package/lib/cjs/components/heading.ws.d.ts.map +1 -0
  68. package/lib/cjs/components/image.cjs +40 -0
  69. package/lib/cjs/components/image.d.ts +3 -0
  70. package/lib/cjs/components/image.d.ts.map +1 -0
  71. package/lib/cjs/components/image.props.json +575 -0
  72. package/lib/cjs/components/image.stories.cjs +12 -0
  73. package/lib/cjs/components/image.stories.d.ts +6 -0
  74. package/lib/cjs/components/image.stories.d.ts.map +1 -0
  75. package/lib/cjs/components/image.ws.cjs +29 -0
  76. package/lib/cjs/components/image.ws.d.ts +5 -0
  77. package/lib/cjs/components/image.ws.d.ts.map +1 -0
  78. package/lib/cjs/components/index.cjs +36 -0
  79. package/lib/cjs/components/index.d.ts +16 -0
  80. package/lib/cjs/components/index.d.ts.map +1 -0
  81. package/lib/cjs/components/index.test.cjs +33 -0
  82. package/lib/cjs/components/index.test.d.ts +2 -0
  83. package/lib/cjs/components/index.test.d.ts.map +1 -0
  84. package/lib/cjs/components/input.cjs +8 -0
  85. package/lib/cjs/components/input.d.ts +3 -0
  86. package/lib/cjs/components/input.d.ts.map +1 -0
  87. package/lib/cjs/components/input.props.json +657 -0
  88. package/lib/cjs/components/input.stories.cjs +12 -0
  89. package/lib/cjs/components/input.stories.d.ts +6 -0
  90. package/lib/cjs/components/input.stories.d.ts.map +1 -0
  91. package/lib/cjs/components/input.ws.cjs +14 -0
  92. package/lib/cjs/components/input.ws.d.ts +5 -0
  93. package/lib/cjs/components/input.ws.d.ts.map +1 -0
  94. package/lib/cjs/components/italic.cjs +8 -0
  95. package/lib/cjs/components/italic.d.ts +3 -0
  96. package/lib/cjs/components/italic.d.ts.map +1 -0
  97. package/lib/cjs/components/italic.props.json +491 -0
  98. package/lib/cjs/components/italic.stories.cjs +14 -0
  99. package/lib/cjs/components/italic.stories.d.ts +6 -0
  100. package/lib/cjs/components/italic.stories.d.ts.map +1 -0
  101. package/lib/cjs/components/italic.ws.cjs +14 -0
  102. package/lib/cjs/components/italic.ws.d.ts +5 -0
  103. package/lib/cjs/components/italic.ws.d.ts.map +1 -0
  104. package/lib/cjs/components/link.cjs +8 -0
  105. package/lib/cjs/components/link.d.ts +8 -0
  106. package/lib/cjs/components/link.d.ts.map +1 -0
  107. package/lib/cjs/components/link.props.json +547 -0
  108. package/lib/cjs/components/link.stories.cjs +14 -0
  109. package/lib/cjs/components/link.stories.d.ts +10 -0
  110. package/lib/cjs/components/link.stories.d.ts.map +1 -0
  111. package/lib/cjs/components/link.ws.cjs +27 -0
  112. package/lib/cjs/components/link.ws.d.ts +5 -0
  113. package/lib/cjs/components/link.ws.d.ts.map +1 -0
  114. package/lib/cjs/components/meta.cjs +40 -0
  115. package/lib/cjs/components/meta.d.ts +7479 -0
  116. package/lib/cjs/components/meta.d.ts.map +1 -0
  117. package/lib/cjs/components/paragraph.cjs +8 -0
  118. package/lib/cjs/components/paragraph.d.ts +3 -0
  119. package/lib/cjs/components/paragraph.d.ts.map +1 -0
  120. package/lib/cjs/components/paragraph.props.json +491 -0
  121. package/lib/cjs/components/paragraph.stories.cjs +14 -0
  122. package/lib/cjs/components/paragraph.stories.d.ts +6 -0
  123. package/lib/cjs/components/paragraph.stories.d.ts.map +1 -0
  124. package/lib/cjs/components/paragraph.ws.cjs +15 -0
  125. package/lib/cjs/components/paragraph.ws.d.ts +5 -0
  126. package/lib/cjs/components/paragraph.ws.d.ts.map +1 -0
  127. package/lib/cjs/components/span.cjs +8 -0
  128. package/lib/cjs/components/span.d.ts +3 -0
  129. package/lib/cjs/components/span.d.ts.map +1 -0
  130. package/lib/cjs/components/span.props.json +491 -0
  131. package/lib/cjs/components/span.stories.cjs +14 -0
  132. package/lib/cjs/components/span.stories.d.ts +6 -0
  133. package/lib/cjs/components/span.stories.d.ts.map +1 -0
  134. package/lib/cjs/components/span.ws.cjs +14 -0
  135. package/lib/cjs/components/span.ws.d.ts +5 -0
  136. package/lib/cjs/components/span.ws.d.ts.map +1 -0
  137. package/lib/cjs/components/subscript.cjs +8 -0
  138. package/lib/cjs/components/subscript.d.ts +3 -0
  139. package/lib/cjs/components/subscript.d.ts.map +1 -0
  140. package/lib/cjs/components/subscript.props.json +491 -0
  141. package/lib/cjs/components/subscript.stories.cjs +14 -0
  142. package/lib/cjs/components/subscript.stories.d.ts +6 -0
  143. package/lib/cjs/components/subscript.stories.d.ts.map +1 -0
  144. package/lib/cjs/components/subscript.ws.cjs +14 -0
  145. package/lib/cjs/components/subscript.ws.d.ts +5 -0
  146. package/lib/cjs/components/subscript.ws.d.ts.map +1 -0
  147. package/lib/cjs/components/superscript.cjs +8 -0
  148. package/lib/cjs/components/superscript.d.ts +3 -0
  149. package/lib/cjs/components/superscript.d.ts.map +1 -0
  150. package/lib/cjs/components/superscript.props.json +491 -0
  151. package/lib/cjs/components/superscript.stories.cjs +14 -0
  152. package/lib/cjs/components/superscript.stories.d.ts +6 -0
  153. package/lib/cjs/components/superscript.stories.d.ts.map +1 -0
  154. package/lib/cjs/components/superscript.ws.cjs +14 -0
  155. package/lib/cjs/components/superscript.ws.d.ts +5 -0
  156. package/lib/cjs/components/superscript.ws.d.ts.map +1 -0
  157. package/lib/cjs/components/text-block.cjs +8 -0
  158. package/lib/cjs/components/text-block.d.ts +3 -0
  159. package/lib/cjs/components/text-block.d.ts.map +1 -0
  160. package/lib/cjs/components/text-block.props.json +491 -0
  161. package/lib/cjs/components/text-block.stories.cjs +14 -0
  162. package/lib/cjs/components/text-block.stories.d.ts +6 -0
  163. package/lib/cjs/components/text-block.stories.d.ts.map +1 -0
  164. package/lib/cjs/components/text-block.ws.cjs +23 -0
  165. package/lib/cjs/components/text-block.ws.d.ts +5 -0
  166. package/lib/cjs/components/text-block.ws.d.ts.map +1 -0
  167. package/lib/cjs/css/breakpoints.cjs +9 -0
  168. package/lib/cjs/css/breakpoints.d.ts +4 -0
  169. package/lib/cjs/css/breakpoints.d.ts.map +1 -0
  170. package/lib/cjs/css/categories.cjs +229 -0
  171. package/lib/cjs/css/categories.d.ts +408 -0
  172. package/lib/cjs/css/categories.d.ts.map +1 -0
  173. package/lib/cjs/css/get-browser-style.cjs +48 -0
  174. package/lib/cjs/css/get-browser-style.d.ts +3 -0
  175. package/lib/cjs/css/get-browser-style.d.ts.map +1 -0
  176. package/lib/cjs/css/index.cjs +19 -0
  177. package/lib/cjs/css/index.d.ts +4 -0
  178. package/lib/cjs/css/index.d.ts.map +1 -0
  179. package/lib/cjs/db/index.cjs +18 -0
  180. package/lib/cjs/db/index.d.ts +3 -0
  181. package/lib/cjs/db/index.d.ts.map +1 -0
  182. package/lib/cjs/db/instance.cjs +21 -0
  183. package/lib/cjs/db/instance.d.ts +14 -0
  184. package/lib/cjs/db/instance.d.ts.map +1 -0
  185. package/lib/cjs/db/types.cjs +2 -0
  186. package/lib/cjs/db/types.d.ts +17 -0
  187. package/lib/cjs/db/types.d.ts.map +1 -0
  188. package/lib/cjs/index.cjs +37 -0
  189. package/lib/cjs/index.d.ts +9 -0
  190. package/lib/cjs/index.d.ts.map +1 -0
  191. package/lib/cjs/pubsub/create.cjs +66 -0
  192. package/lib/cjs/pubsub/create.d.ts +29 -0
  193. package/lib/cjs/pubsub/create.d.ts.map +1 -0
  194. package/lib/cjs/pubsub/index.cjs +17 -0
  195. package/lib/cjs/pubsub/index.d.ts +2 -0
  196. package/lib/cjs/pubsub/index.d.ts.map +1 -0
  197. package/lib/cjs/remix/handle-request.server.cjs +15 -0
  198. package/lib/cjs/remix/handle-request.server.d.ts +3 -0
  199. package/lib/cjs/remix/handle-request.server.d.ts.map +1 -0
  200. package/lib/cjs/remix/index.cjs +18 -0
  201. package/lib/cjs/remix/index.d.ts +3 -0
  202. package/lib/cjs/remix/index.d.ts.map +1 -0
  203. package/lib/cjs/remix/root.cjs +13 -0
  204. package/lib/cjs/remix/root.d.ts +8 -0
  205. package/lib/cjs/remix/root.d.ts.map +1 -0
  206. package/lib/cjs/tree/create-elements-tree.cjs +54 -0
  207. package/lib/cjs/tree/create-elements-tree.d.ts +19 -0
  208. package/lib/cjs/tree/create-elements-tree.d.ts.map +1 -0
  209. package/lib/cjs/tree/index.cjs +19 -0
  210. package/lib/cjs/tree/index.d.ts +4 -0
  211. package/lib/cjs/tree/index.d.ts.map +1 -0
  212. package/lib/cjs/tree/root.cjs +17 -0
  213. package/lib/cjs/tree/root.d.ts +18 -0
  214. package/lib/cjs/tree/root.d.ts.map +1 -0
  215. package/lib/cjs/tree/session-storage-polyfill.cjs +39 -0
  216. package/lib/cjs/tree/session-storage-polyfill.d.ts +2 -0
  217. package/lib/cjs/tree/session-storage-polyfill.d.ts.map +1 -0
  218. package/lib/cjs/tree/wrapper-component.cjs +53 -0
  219. package/lib/cjs/tree/wrapper-component.d.ts +12 -0
  220. package/lib/cjs/tree/wrapper-component.d.ts.map +1 -0
  221. package/lib/cjs/user-props/all-user-props.cjs +21 -0
  222. package/lib/cjs/user-props/all-user-props.d.ts +8 -0
  223. package/lib/cjs/user-props/all-user-props.d.ts.map +1 -0
  224. package/lib/cjs/user-props/index.cjs +20 -0
  225. package/lib/cjs/user-props/index.d.ts +5 -0
  226. package/lib/cjs/user-props/index.d.ts.map +1 -0
  227. package/lib/cjs/user-props/schema.cjs +33 -0
  228. package/lib/cjs/user-props/schema.d.ts +72 -0
  229. package/lib/cjs/user-props/schema.d.ts.map +1 -0
  230. package/lib/cjs/user-props/types.cjs +2 -0
  231. package/lib/cjs/user-props/types.d.ts +13 -0
  232. package/lib/cjs/user-props/types.d.ts.map +1 -0
  233. package/lib/cjs/user-props/use-user-props.cjs +33 -0
  234. package/lib/cjs/user-props/use-user-props.d.ts +12 -0
  235. package/lib/cjs/user-props/use-user-props.d.ts.map +1 -0
  236. package/lib/components/body.js +4 -7
  237. package/lib/components/body.stories.js +5 -9
  238. package/lib/components/body.ws.js +5 -7
  239. package/lib/components/bold.js +4 -7
  240. package/lib/components/bold.stories.js +7 -10
  241. package/lib/components/bold.ws.js +5 -7
  242. package/lib/components/box.js +4 -7
  243. package/lib/components/box.stories.js +7 -10
  244. package/lib/components/box.ws.js +5 -7
  245. package/lib/components/button.js +5 -8
  246. package/lib/components/button.stories.js +7 -10
  247. package/lib/components/button.ws.js +5 -7
  248. package/lib/components/component-type.js +11 -14
  249. package/lib/components/form.js +4 -7
  250. package/lib/components/form.stories.js +7 -10
  251. package/lib/components/form.ws.js +5 -7
  252. package/lib/components/heading.js +4 -7
  253. package/lib/components/heading.stories.js +7 -10
  254. package/lib/components/heading.ws.js +5 -7
  255. package/lib/components/image.d.ts +2 -10
  256. package/lib/components/image.d.ts.map +1 -1
  257. package/lib/components/image.js +6 -21
  258. package/lib/components/image.stories.d.ts +2 -10
  259. package/lib/components/image.stories.d.ts.map +1 -1
  260. package/lib/components/image.stories.js +7 -10
  261. package/lib/components/image.ws.js +5 -7
  262. package/lib/components/index.js +15 -36
  263. package/lib/components/index.test.js +3 -28
  264. package/lib/components/input.js +4 -7
  265. package/lib/components/input.stories.js +7 -10
  266. package/lib/components/input.ws.js +5 -7
  267. package/lib/components/italic.js +4 -7
  268. package/lib/components/italic.stories.js +7 -10
  269. package/lib/components/italic.ws.js +5 -7
  270. package/lib/components/link.js +4 -7
  271. package/lib/components/link.stories.js +7 -10
  272. package/lib/components/link.ws.js +5 -7
  273. package/lib/components/meta.d.ts +13 -4
  274. package/lib/components/meta.d.ts.map +1 -1
  275. package/lib/components/meta.js +32 -37
  276. package/lib/components/paragraph.js +4 -7
  277. package/lib/components/paragraph.stories.js +7 -10
  278. package/lib/components/paragraph.ws.js +5 -7
  279. package/lib/components/span.js +4 -7
  280. package/lib/components/span.stories.js +7 -10
  281. package/lib/components/span.ws.js +5 -7
  282. package/lib/components/subscript.js +4 -7
  283. package/lib/components/subscript.stories.js +7 -10
  284. package/lib/components/subscript.ws.js +5 -7
  285. package/lib/components/superscript.js +4 -7
  286. package/lib/components/superscript.stories.js +7 -10
  287. package/lib/components/superscript.ws.js +5 -7
  288. package/lib/components/text-block.js +4 -7
  289. package/lib/components/text-block.stories.js +7 -10
  290. package/lib/components/text-block.ws.js +5 -7
  291. package/lib/css/breakpoints.js +1 -4
  292. package/lib/css/categories.js +5 -8
  293. package/lib/css/get-browser-style.js +7 -11
  294. package/lib/css/index.js +3 -19
  295. package/lib/db/index.js +2 -18
  296. package/lib/db/instance.js +8 -12
  297. package/lib/db/types.d.ts +6 -0
  298. package/lib/db/types.d.ts.map +1 -1
  299. package/lib/db/types.js +1 -2
  300. package/lib/index.js +8 -37
  301. package/lib/pubsub/create.js +8 -15
  302. package/lib/pubsub/index.js +1 -17
  303. package/lib/remix/handle-request.server.js +5 -9
  304. package/lib/remix/index.js +2 -18
  305. package/lib/remix/root.js +5 -9
  306. package/lib/tree/create-elements-tree.js +7 -11
  307. package/lib/tree/index.js +3 -19
  308. package/lib/tree/root.js +7 -11
  309. package/lib/tree/session-storage-polyfill.js +2 -6
  310. package/lib/tree/wrapper-component.js +11 -39
  311. package/lib/tsconfig.tsbuildinfo +1 -0
  312. package/lib/user-props/all-user-props.js +7 -11
  313. package/lib/user-props/index.js +4 -20
  314. package/lib/user-props/schema.d.ts +41 -4
  315. package/lib/user-props/schema.d.ts.map +1 -1
  316. package/lib/user-props/schema.js +29 -10
  317. package/lib/user-props/types.js +1 -2
  318. package/lib/user-props/use-user-props.d.ts.map +1 -1
  319. package/lib/user-props/use-user-props.js +7 -11
  320. package/package.json +14 -9
  321. package/lib/component-utils/image.d.ts +0 -107
  322. package/lib/component-utils/image.d.ts.map +0 -1
  323. package/lib/component-utils/image.js +0 -198
  324. package/lib/component-utils/image.test.d.ts +0 -2
  325. package/lib/component-utils/image.test.d.ts.map +0 -1
  326. package/lib/component-utils/image.test.js +0 -132
  327. package/lib/components/image-dev.stories.d.ts +0 -36
  328. package/lib/components/image-dev.stories.d.ts.map +0 -1
  329. package/lib/components/image-dev.stories.js +0 -102
@@ -0,0 +1,575 @@
1
+ {
2
+ "slot": {
3
+ "defaultValue": null,
4
+ "required": false,
5
+ "type": "text"
6
+ },
7
+ "style": {
8
+ "defaultValue": null,
9
+ "required": false,
10
+ "type": "text"
11
+ },
12
+ "title": {
13
+ "defaultValue": null,
14
+ "required": false,
15
+ "type": "text"
16
+ },
17
+ "alt": {
18
+ "defaultValue": "",
19
+ "required": false,
20
+ "type": "text"
21
+ },
22
+ "crossOrigin": {
23
+ "defaultValue": null,
24
+ "options": ["\"\"", "anonymous", "use-credentials"],
25
+ "required": false,
26
+ "type": "radio"
27
+ },
28
+ "decoding": {
29
+ "defaultValue": null,
30
+ "options": ["async", "auto", "sync"],
31
+ "required": false,
32
+ "type": "radio"
33
+ },
34
+ "height": {
35
+ "defaultValue": "",
36
+ "required": false,
37
+ "type": "text"
38
+ },
39
+ "loading": {
40
+ "defaultValue": "lazy",
41
+ "options": ["eager", "lazy"],
42
+ "required": false,
43
+ "type": "radio"
44
+ },
45
+ "referrerPolicy": {
46
+ "defaultValue": null,
47
+ "options": [
48
+ "\"\"",
49
+ "no-referrer",
50
+ "no-referrer-when-downgrade",
51
+ "origin",
52
+ "origin-when-cross-origin",
53
+ "same-origin",
54
+ "strict-origin",
55
+ "strict-origin-when-cross-origin",
56
+ "unsafe-url"
57
+ ],
58
+ "required": false,
59
+ "type": "select"
60
+ },
61
+ "sizes": {
62
+ "defaultValue": null,
63
+ "required": false,
64
+ "type": "text"
65
+ },
66
+ "src": {
67
+ "defaultValue": "",
68
+ "required": false,
69
+ "type": "text"
70
+ },
71
+ "srcSet": {
72
+ "defaultValue": null,
73
+ "required": false,
74
+ "type": "text"
75
+ },
76
+ "useMap": {
77
+ "defaultValue": null,
78
+ "required": false,
79
+ "type": "text"
80
+ },
81
+ "width": {
82
+ "defaultValue": "",
83
+ "required": false,
84
+ "type": "text"
85
+ },
86
+ "defaultChecked": {
87
+ "defaultValue": null,
88
+ "required": false,
89
+ "type": "boolean"
90
+ },
91
+ "defaultValue": {
92
+ "defaultValue": null,
93
+ "required": false,
94
+ "type": "text"
95
+ },
96
+ "suppressContentEditableWarning": {
97
+ "defaultValue": null,
98
+ "required": false,
99
+ "type": "boolean"
100
+ },
101
+ "suppressHydrationWarning": {
102
+ "defaultValue": null,
103
+ "required": false,
104
+ "type": "boolean"
105
+ },
106
+ "accessKey": {
107
+ "defaultValue": null,
108
+ "required": false,
109
+ "type": "text"
110
+ },
111
+ "className": {
112
+ "defaultValue": null,
113
+ "required": false,
114
+ "type": "text"
115
+ },
116
+ "contentEditable": {
117
+ "defaultValue": null,
118
+ "required": false,
119
+ "type": "text"
120
+ },
121
+ "contextMenu": {
122
+ "defaultValue": null,
123
+ "required": false,
124
+ "type": "text"
125
+ },
126
+ "dir": {
127
+ "defaultValue": null,
128
+ "required": false,
129
+ "type": "text"
130
+ },
131
+ "draggable": {
132
+ "defaultValue": null,
133
+ "required": false,
134
+ "type": "boolean"
135
+ },
136
+ "hidden": {
137
+ "defaultValue": null,
138
+ "required": false,
139
+ "type": "boolean"
140
+ },
141
+ "id": {
142
+ "defaultValue": null,
143
+ "required": false,
144
+ "type": "text"
145
+ },
146
+ "lang": {
147
+ "defaultValue": null,
148
+ "required": false,
149
+ "type": "text"
150
+ },
151
+ "placeholder": {
152
+ "defaultValue": null,
153
+ "required": false,
154
+ "type": "text"
155
+ },
156
+ "spellCheck": {
157
+ "defaultValue": null,
158
+ "required": false,
159
+ "type": "boolean"
160
+ },
161
+ "tabIndex": {
162
+ "defaultValue": null,
163
+ "required": false,
164
+ "type": "number"
165
+ },
166
+ "translate": {
167
+ "defaultValue": null,
168
+ "options": ["yes", "no"],
169
+ "required": false,
170
+ "type": "radio"
171
+ },
172
+ "radioGroup": {
173
+ "defaultValue": null,
174
+ "required": false,
175
+ "type": "text"
176
+ },
177
+ "role": {
178
+ "defaultValue": null,
179
+ "required": false,
180
+ "type": "text"
181
+ },
182
+ "about": {
183
+ "defaultValue": null,
184
+ "required": false,
185
+ "type": "text"
186
+ },
187
+ "datatype": {
188
+ "defaultValue": null,
189
+ "required": false,
190
+ "type": "text"
191
+ },
192
+ "inlist": {
193
+ "defaultValue": null,
194
+ "required": false,
195
+ "type": "text"
196
+ },
197
+ "prefix": {
198
+ "defaultValue": null,
199
+ "required": false,
200
+ "type": "text"
201
+ },
202
+ "property": {
203
+ "defaultValue": null,
204
+ "required": false,
205
+ "type": "text"
206
+ },
207
+ "resource": {
208
+ "defaultValue": null,
209
+ "required": false,
210
+ "type": "text"
211
+ },
212
+ "typeof": {
213
+ "defaultValue": null,
214
+ "required": false,
215
+ "type": "text"
216
+ },
217
+ "vocab": {
218
+ "defaultValue": null,
219
+ "required": false,
220
+ "type": "text"
221
+ },
222
+ "autoCapitalize": {
223
+ "defaultValue": null,
224
+ "required": false,
225
+ "type": "text"
226
+ },
227
+ "autoCorrect": {
228
+ "defaultValue": null,
229
+ "required": false,
230
+ "type": "text"
231
+ },
232
+ "autoSave": {
233
+ "defaultValue": null,
234
+ "required": false,
235
+ "type": "text"
236
+ },
237
+ "color": {
238
+ "defaultValue": null,
239
+ "required": false,
240
+ "type": "color"
241
+ },
242
+ "itemProp": {
243
+ "defaultValue": null,
244
+ "required": false,
245
+ "type": "text"
246
+ },
247
+ "itemScope": {
248
+ "defaultValue": null,
249
+ "required": false,
250
+ "type": "boolean"
251
+ },
252
+ "itemType": {
253
+ "defaultValue": null,
254
+ "required": false,
255
+ "type": "text"
256
+ },
257
+ "itemID": {
258
+ "defaultValue": null,
259
+ "required": false,
260
+ "type": "text"
261
+ },
262
+ "itemRef": {
263
+ "defaultValue": null,
264
+ "required": false,
265
+ "type": "text"
266
+ },
267
+ "results": {
268
+ "defaultValue": null,
269
+ "required": false,
270
+ "type": "number"
271
+ },
272
+ "security": {
273
+ "defaultValue": null,
274
+ "required": false,
275
+ "type": "text"
276
+ },
277
+ "unselectable": {
278
+ "defaultValue": null,
279
+ "options": ["on", "off"],
280
+ "required": false,
281
+ "type": "radio"
282
+ },
283
+ "inputMode": {
284
+ "defaultValue": null,
285
+ "options": [
286
+ "text",
287
+ "none",
288
+ "search",
289
+ "tel",
290
+ "url",
291
+ "email",
292
+ "numeric",
293
+ "decimal"
294
+ ],
295
+ "required": false,
296
+ "type": "select"
297
+ },
298
+ "is": {
299
+ "defaultValue": null,
300
+ "required": false,
301
+ "type": "text"
302
+ },
303
+ "aria-activedescendant": {
304
+ "defaultValue": null,
305
+ "required": false,
306
+ "type": "text"
307
+ },
308
+ "aria-atomic": {
309
+ "defaultValue": null,
310
+ "required": false,
311
+ "type": "boolean"
312
+ },
313
+ "aria-autocomplete": {
314
+ "defaultValue": null,
315
+ "options": ["list", "none", "inline", "both"],
316
+ "required": false,
317
+ "type": "radio"
318
+ },
319
+ "aria-busy": {
320
+ "defaultValue": null,
321
+ "required": false,
322
+ "type": "boolean"
323
+ },
324
+ "aria-checked": {
325
+ "defaultValue": null,
326
+ "required": false,
327
+ "type": "text"
328
+ },
329
+ "aria-colcount": {
330
+ "defaultValue": null,
331
+ "required": false,
332
+ "type": "number"
333
+ },
334
+ "aria-colindex": {
335
+ "defaultValue": null,
336
+ "required": false,
337
+ "type": "number"
338
+ },
339
+ "aria-colspan": {
340
+ "defaultValue": null,
341
+ "required": false,
342
+ "type": "number"
343
+ },
344
+ "aria-controls": {
345
+ "defaultValue": null,
346
+ "required": false,
347
+ "type": "text"
348
+ },
349
+ "aria-current": {
350
+ "defaultValue": null,
351
+ "required": false,
352
+ "type": "text"
353
+ },
354
+ "aria-describedby": {
355
+ "defaultValue": null,
356
+ "required": false,
357
+ "type": "text"
358
+ },
359
+ "aria-details": {
360
+ "defaultValue": null,
361
+ "required": false,
362
+ "type": "text"
363
+ },
364
+ "aria-disabled": {
365
+ "defaultValue": null,
366
+ "required": false,
367
+ "type": "boolean"
368
+ },
369
+ "aria-dropeffect": {
370
+ "defaultValue": null,
371
+ "options": ["link", "none", "copy", "execute", "move", "popup"],
372
+ "required": false,
373
+ "type": "select"
374
+ },
375
+ "aria-errormessage": {
376
+ "defaultValue": null,
377
+ "required": false,
378
+ "type": "text"
379
+ },
380
+ "aria-expanded": {
381
+ "defaultValue": null,
382
+ "required": false,
383
+ "type": "boolean"
384
+ },
385
+ "aria-flowto": {
386
+ "defaultValue": null,
387
+ "required": false,
388
+ "type": "text"
389
+ },
390
+ "aria-grabbed": {
391
+ "defaultValue": null,
392
+ "required": false,
393
+ "type": "boolean"
394
+ },
395
+ "aria-haspopup": {
396
+ "defaultValue": null,
397
+ "required": false,
398
+ "type": "text"
399
+ },
400
+ "aria-hidden": {
401
+ "defaultValue": null,
402
+ "required": false,
403
+ "type": "boolean"
404
+ },
405
+ "aria-invalid": {
406
+ "defaultValue": null,
407
+ "required": false,
408
+ "type": "text"
409
+ },
410
+ "aria-keyshortcuts": {
411
+ "defaultValue": null,
412
+ "required": false,
413
+ "type": "text"
414
+ },
415
+ "aria-label": {
416
+ "defaultValue": null,
417
+ "required": false,
418
+ "type": "text"
419
+ },
420
+ "aria-labelledby": {
421
+ "defaultValue": null,
422
+ "required": false,
423
+ "type": "text"
424
+ },
425
+ "aria-level": {
426
+ "defaultValue": null,
427
+ "required": false,
428
+ "type": "number"
429
+ },
430
+ "aria-live": {
431
+ "defaultValue": null,
432
+ "options": ["off", "assertive", "polite"],
433
+ "required": false,
434
+ "type": "radio"
435
+ },
436
+ "aria-modal": {
437
+ "defaultValue": null,
438
+ "required": false,
439
+ "type": "boolean"
440
+ },
441
+ "aria-multiline": {
442
+ "defaultValue": null,
443
+ "required": false,
444
+ "type": "boolean"
445
+ },
446
+ "aria-multiselectable": {
447
+ "defaultValue": null,
448
+ "required": false,
449
+ "type": "boolean"
450
+ },
451
+ "aria-orientation": {
452
+ "defaultValue": null,
453
+ "options": ["horizontal", "vertical"],
454
+ "required": false,
455
+ "type": "radio"
456
+ },
457
+ "aria-owns": {
458
+ "defaultValue": null,
459
+ "required": false,
460
+ "type": "text"
461
+ },
462
+ "aria-placeholder": {
463
+ "defaultValue": null,
464
+ "required": false,
465
+ "type": "text"
466
+ },
467
+ "aria-posinset": {
468
+ "defaultValue": null,
469
+ "required": false,
470
+ "type": "number"
471
+ },
472
+ "aria-pressed": {
473
+ "defaultValue": null,
474
+ "required": false,
475
+ "type": "text"
476
+ },
477
+ "aria-readonly": {
478
+ "defaultValue": null,
479
+ "required": false,
480
+ "type": "boolean"
481
+ },
482
+ "aria-relevant": {
483
+ "defaultValue": null,
484
+ "options": [
485
+ "text",
486
+ "additions",
487
+ "additions removals",
488
+ "additions text",
489
+ "all",
490
+ "removals",
491
+ "removals additions",
492
+ "removals text",
493
+ "text additions",
494
+ "text removals"
495
+ ],
496
+ "required": false,
497
+ "type": "select"
498
+ },
499
+ "aria-required": {
500
+ "defaultValue": null,
501
+ "required": false,
502
+ "type": "boolean"
503
+ },
504
+ "aria-roledescription": {
505
+ "defaultValue": null,
506
+ "required": false,
507
+ "type": "text"
508
+ },
509
+ "aria-rowcount": {
510
+ "defaultValue": null,
511
+ "required": false,
512
+ "type": "number"
513
+ },
514
+ "aria-rowindex": {
515
+ "defaultValue": null,
516
+ "required": false,
517
+ "type": "number"
518
+ },
519
+ "aria-rowspan": {
520
+ "defaultValue": null,
521
+ "required": false,
522
+ "type": "number"
523
+ },
524
+ "aria-selected": {
525
+ "defaultValue": null,
526
+ "required": false,
527
+ "type": "boolean"
528
+ },
529
+ "aria-setsize": {
530
+ "defaultValue": null,
531
+ "required": false,
532
+ "type": "number"
533
+ },
534
+ "aria-sort": {
535
+ "defaultValue": null,
536
+ "options": ["none", "ascending", "descending", "other"],
537
+ "required": false,
538
+ "type": "radio"
539
+ },
540
+ "aria-valuemax": {
541
+ "defaultValue": null,
542
+ "required": false,
543
+ "type": "number"
544
+ },
545
+ "aria-valuemin": {
546
+ "defaultValue": null,
547
+ "required": false,
548
+ "type": "number"
549
+ },
550
+ "aria-valuenow": {
551
+ "defaultValue": null,
552
+ "required": false,
553
+ "type": "number"
554
+ },
555
+ "aria-valuetext": {
556
+ "defaultValue": null,
557
+ "required": false,
558
+ "type": "text"
559
+ },
560
+ "quality": {
561
+ "defaultValue": null,
562
+ "required": false,
563
+ "type": "number"
564
+ },
565
+ "loader": {
566
+ "defaultValue": null,
567
+ "required": false,
568
+ "type": "text"
569
+ },
570
+ "optimize": {
571
+ "defaultValue": null,
572
+ "required": false,
573
+ "type": "boolean"
574
+ }
575
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Image = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const image_1 = require("./image");
6
+ exports.default = {
7
+ title: "Components/Image",
8
+ component: image_1.Image,
9
+ };
10
+ const Template = (args) => ((0, jsx_runtime_1.jsx)(image_1.Image, { ...args }));
11
+ exports.Image = Template.bind({});
12
+ exports.Image.args = {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { ComponentMeta, ComponentStory } from "@storybook/react";
3
+ declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "key" | keyof import("react").ImgHTMLAttributes<HTMLImageElement>> & import("react").RefAttributes<HTMLImageElement>>>;
4
+ export default _default;
5
+ export declare const Image: ComponentStory<import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "key" | keyof import("react").ImgHTMLAttributes<HTMLImageElement>> & import("react").RefAttributes<HTMLImageElement>>>;
6
+ //# sourceMappingURL=image.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.stories.d.ts","sourceRoot":"","sources":["../../../src/components/image.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;AAGtE,wBAG0C;AAM1C,eAAO,MAAM,KAAK,gSAAoB,CAAC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const icons_1 = require("@webstudio-is/icons");
4
+ const image_1 = require("./image");
5
+ const defaultStyle = {
6
+ // Otherwise on new image insert onto canvas it can overfit screen size multiple times
7
+ maxWidth: {
8
+ type: "unit",
9
+ unit: "%",
10
+ value: 100,
11
+ },
12
+ // inline | inline-block is not suitable because without line-height: 0 on the parent you get unsuitable spaces/margins
13
+ // see https://stackoverflow.com/questions/24771194/is-the-margin-of-inline-block-4px-is-static-for-all-browsers
14
+ display: {
15
+ type: "keyword",
16
+ value: "block",
17
+ },
18
+ };
19
+ const meta = {
20
+ Icon: icons_1.ImageIcon,
21
+ Component: image_1.Image,
22
+ canAcceptChildren: false,
23
+ defaultStyle,
24
+ isContentEditable: false,
25
+ isInlineOnly: false,
26
+ isListed: true,
27
+ label: "Image",
28
+ };
29
+ exports.default = meta;
@@ -0,0 +1,5 @@
1
+ import type { WsComponentMeta } from "./component-type";
2
+ import { Image } from "./image";
3
+ declare const meta: WsComponentMeta<typeof Image>;
4
+ export default meta;
5
+ //# sourceMappingURL=image.ws.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.ws.d.ts","sourceRoot":"","sources":["../../../src/components/image.ws.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAiBhC,QAAA,MAAM,IAAI,EAAE,eAAe,CAAC,OAAO,KAAK,CASvC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Image = exports.Form = exports.Input = exports.Button = exports.Subscript = exports.Superscript = exports.Italic = exports.Bold = exports.Span = exports.Link = exports.Paragraph = exports.Heading = exports.TextBlock = exports.Box = exports.Body = void 0;
7
+ var body_ws_1 = require("./body.ws");
8
+ Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return __importDefault(body_ws_1).default; } });
9
+ var box_ws_1 = require("./box.ws");
10
+ Object.defineProperty(exports, "Box", { enumerable: true, get: function () { return __importDefault(box_ws_1).default; } });
11
+ var text_block_ws_1 = require("./text-block.ws");
12
+ Object.defineProperty(exports, "TextBlock", { enumerable: true, get: function () { return __importDefault(text_block_ws_1).default; } });
13
+ var heading_ws_1 = require("./heading.ws");
14
+ Object.defineProperty(exports, "Heading", { enumerable: true, get: function () { return __importDefault(heading_ws_1).default; } });
15
+ var paragraph_ws_1 = require("./paragraph.ws");
16
+ Object.defineProperty(exports, "Paragraph", { enumerable: true, get: function () { return __importDefault(paragraph_ws_1).default; } });
17
+ var link_ws_1 = require("./link.ws");
18
+ Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return __importDefault(link_ws_1).default; } });
19
+ var span_ws_1 = require("./span.ws");
20
+ Object.defineProperty(exports, "Span", { enumerable: true, get: function () { return __importDefault(span_ws_1).default; } });
21
+ var bold_ws_1 = require("./bold.ws");
22
+ Object.defineProperty(exports, "Bold", { enumerable: true, get: function () { return __importDefault(bold_ws_1).default; } });
23
+ var italic_ws_1 = require("./italic.ws");
24
+ Object.defineProperty(exports, "Italic", { enumerable: true, get: function () { return __importDefault(italic_ws_1).default; } });
25
+ var superscript_ws_1 = require("./superscript.ws");
26
+ Object.defineProperty(exports, "Superscript", { enumerable: true, get: function () { return __importDefault(superscript_ws_1).default; } });
27
+ var subscript_ws_1 = require("./subscript.ws");
28
+ Object.defineProperty(exports, "Subscript", { enumerable: true, get: function () { return __importDefault(subscript_ws_1).default; } });
29
+ var button_ws_1 = require("./button.ws");
30
+ Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return __importDefault(button_ws_1).default; } });
31
+ var input_ws_1 = require("./input.ws");
32
+ Object.defineProperty(exports, "Input", { enumerable: true, get: function () { return __importDefault(input_ws_1).default; } });
33
+ var form_ws_1 = require("./form.ws");
34
+ Object.defineProperty(exports, "Form", { enumerable: true, get: function () { return __importDefault(form_ws_1).default; } });
35
+ var image_ws_1 = require("./image.ws");
36
+ Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return __importDefault(image_ws_1).default; } });
@@ -0,0 +1,16 @@
1
+ export { default as Body } from "./body.ws";
2
+ export { default as Box } from "./box.ws";
3
+ export { default as TextBlock } from "./text-block.ws";
4
+ export { default as Heading } from "./heading.ws";
5
+ export { default as Paragraph } from "./paragraph.ws";
6
+ export { default as Link } from "./link.ws";
7
+ export { default as Span } from "./span.ws";
8
+ export { default as Bold } from "./bold.ws";
9
+ export { default as Italic } from "./italic.ws";
10
+ export { default as Superscript } from "./superscript.ws";
11
+ export { default as Subscript } from "./subscript.ws";
12
+ export { default as Button } from "./button.ws";
13
+ export { default as Input } from "./input.ws";
14
+ export { default as Form } from "./form.ws";
15
+ export { default as Image } from "./image.ws";
16
+ //# sourceMappingURL=index.d.ts.map