@storybook/react 7.0.0-alpha.6 → 7.0.0-alpha.60

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 (291) hide show
  1. package/dist/chunk-LSK4KSW4.mjs +1 -0
  2. package/dist/config.d.ts +22 -0
  3. package/dist/config.js +3 -0
  4. package/dist/config.mjs +3 -0
  5. package/dist/index.d.ts +193 -0
  6. package/dist/index.js +1 -0
  7. package/dist/index.mjs +1 -0
  8. package/dist/types-0a347bb9.d.ts +10 -0
  9. package/jest.config.js +7 -0
  10. package/package.json +47 -20
  11. package/preview.js +1 -1
  12. package/template/cli/.eslintrc.json +5 -0
  13. package/template/cli/js/Button.jsx +50 -0
  14. package/template/cli/js/Button.stories.js +39 -0
  15. package/template/cli/js/Header.jsx +59 -0
  16. package/template/cli/js/Header.stories.js +22 -0
  17. package/template/cli/js/Page.jsx +69 -0
  18. package/template/cli/js/Page.stories.js +25 -0
  19. package/template/cli/ts/Button.stories.ts +44 -0
  20. package/template/cli/ts/Button.tsx +48 -0
  21. package/template/cli/ts/Header.stories.ts +26 -0
  22. package/template/cli/ts/Header.tsx +56 -0
  23. package/template/cli/ts/Page.stories.ts +29 -0
  24. package/template/cli/ts/Page.tsx +73 -0
  25. package/template/cli/ts-legacy/Button.stories.ts +45 -0
  26. package/template/cli/ts-legacy/Button.tsx +48 -0
  27. package/template/cli/ts-legacy/Header.stories.ts +24 -0
  28. package/template/cli/ts-legacy/Header.tsx +56 -0
  29. package/template/cli/ts-legacy/Page.stories.ts +29 -0
  30. package/template/cli/ts-legacy/Page.tsx +73 -0
  31. package/template/components/Button.jsx +13 -0
  32. package/template/components/Form.jsx +36 -0
  33. package/template/components/Html.jsx +9 -0
  34. package/template/components/Pre.jsx +20 -0
  35. package/template/components/index.js +9 -0
  36. package/template/stories/decorators.stories.tsx +28 -0
  37. package/template/stories/docgen-components/10017-ts-union/argTypes.snapshot +36 -0
  38. package/template/stories/docgen-components/10017-ts-union/docgen.snapshot +34 -0
  39. package/template/stories/docgen-components/10017-ts-union/input.tsx +12 -0
  40. package/template/stories/docgen-components/10017-ts-union/properties.snapshot +32 -0
  41. package/template/stories/docgen-components/10278-ts-multiple-components/argTypes.snapshot +26 -0
  42. package/template/stories/docgen-components/10278-ts-multiple-components/docgen.snapshot +49 -0
  43. package/template/stories/docgen-components/10278-ts-multiple-components/input.tsx +27 -0
  44. package/template/stories/docgen-components/10278-ts-multiple-components/properties.snapshot +22 -0
  45. package/template/stories/docgen-components/8140-js-prop-types-oneof/argTypes.snapshot +127 -0
  46. package/template/stories/docgen-components/8140-js-prop-types-oneof/docgen.snapshot +97 -0
  47. package/template/stories/docgen-components/8140-js-prop-types-oneof/input.jsx +27 -0
  48. package/template/stories/docgen-components/8140-js-prop-types-oneof/properties.snapshot +89 -0
  49. package/template/stories/docgen-components/8143-ts-imported-types/argTypes.snapshot +27 -0
  50. package/template/stories/docgen-components/8143-ts-imported-types/docgen.snapshot +22 -0
  51. package/template/stories/docgen-components/8143-ts-imported-types/input.tsx +10 -0
  52. package/template/stories/docgen-components/8143-ts-imported-types/properties.snapshot +23 -0
  53. package/template/stories/docgen-components/8143-ts-imported-types/types.ts +3 -0
  54. package/template/stories/docgen-components/8143-ts-react-fc-generics/argTypes.snapshot +27 -0
  55. package/template/stories/docgen-components/8143-ts-react-fc-generics/docgen.snapshot +24 -0
  56. package/template/stories/docgen-components/8143-ts-react-fc-generics/input.tsx +10 -0
  57. package/template/stories/docgen-components/8143-ts-react-fc-generics/properties.snapshot +21 -0
  58. package/template/stories/docgen-components/8428-js-static-prop-types/argTypes.snapshot +25 -0
  59. package/template/stories/docgen-components/8428-js-static-prop-types/docgen.snapshot +39 -0
  60. package/template/stories/docgen-components/8428-js-static-prop-types/input.jsx +20 -0
  61. package/template/stories/docgen-components/8428-js-static-prop-types/properties.snapshot +21 -0
  62. package/template/stories/docgen-components/8740-ts-multi-props/argTypes.snapshot +27 -0
  63. package/template/stories/docgen-components/8740-ts-multi-props/docgen.snapshot +49 -0
  64. package/template/stories/docgen-components/8740-ts-multi-props/input.tsx +23 -0
  65. package/template/stories/docgen-components/8740-ts-multi-props/properties.snapshot +21 -0
  66. package/template/stories/docgen-components/8894-9511-ts-forward-ref/argTypes.snapshot +48 -0
  67. package/template/stories/docgen-components/8894-9511-ts-forward-ref/docgen.snapshot +39 -0
  68. package/template/stories/docgen-components/8894-9511-ts-forward-ref/input.tsx +31 -0
  69. package/template/stories/docgen-components/8894-9511-ts-forward-ref/properties.snapshot +34 -0
  70. package/template/stories/docgen-components/9023-js-hoc/argTypes.snapshot +89 -0
  71. package/template/stories/docgen-components/9023-js-hoc/docgen.snapshot +84 -0
  72. package/template/stories/docgen-components/9023-js-hoc/input.jsx +40 -0
  73. package/template/stories/docgen-components/9023-js-hoc/properties.snapshot +67 -0
  74. package/template/stories/docgen-components/9399-js-proptypes-shape/argTypes.snapshot +39 -0
  75. package/template/stories/docgen-components/9399-js-proptypes-shape/docgen.snapshot +48 -0
  76. package/template/stories/docgen-components/9399-js-proptypes-shape/input.jsx +16 -0
  77. package/template/stories/docgen-components/9399-js-proptypes-shape/properties.snapshot +35 -0
  78. package/template/stories/docgen-components/9465-ts-type-props/argTypes.snapshot +28 -0
  79. package/template/stories/docgen-components/9465-ts-type-props/docgen.snapshot +33 -0
  80. package/template/stories/docgen-components/9465-ts-type-props/input.tsx +12 -0
  81. package/template/stories/docgen-components/9465-ts-type-props/properties.snapshot +24 -0
  82. package/template/stories/docgen-components/9493-ts-display-name/argTypes.snapshot +62 -0
  83. package/template/stories/docgen-components/9493-ts-display-name/docgen.snapshot +50 -0
  84. package/template/stories/docgen-components/9493-ts-display-name/input.tsx +30 -0
  85. package/template/stories/docgen-components/9493-ts-display-name/properties.snapshot +52 -0
  86. package/template/stories/docgen-components/9556-ts-react-default-exports/argTypes.snapshot +28 -0
  87. package/template/stories/docgen-components/9556-ts-react-default-exports/docgen.snapshot +32 -0
  88. package/template/stories/docgen-components/9556-ts-react-default-exports/input.tsx +12 -0
  89. package/template/stories/docgen-components/9556-ts-react-default-exports/properties.snapshot +24 -0
  90. package/template/stories/docgen-components/9575-ts-camel-case/argTypes.snapshot +28 -0
  91. package/template/stories/docgen-components/9575-ts-camel-case/docgen.snapshot +38 -0
  92. package/template/stories/docgen-components/9575-ts-camel-case/input.tsx +26 -0
  93. package/template/stories/docgen-components/9575-ts-camel-case/properties.snapshot +24 -0
  94. package/template/stories/docgen-components/9586-js-react-memo/argTypes.snapshot +41 -0
  95. package/template/stories/docgen-components/9586-js-react-memo/docgen.snapshot +42 -0
  96. package/template/stories/docgen-components/9586-js-react-memo/input.jsx +15 -0
  97. package/template/stories/docgen-components/9586-js-react-memo/properties.snapshot +34 -0
  98. package/template/stories/docgen-components/9591-ts-import-types/Bar.tsx +3 -0
  99. package/template/stories/docgen-components/9591-ts-import-types/argTypes.snapshot +25 -0
  100. package/template/stories/docgen-components/9591-ts-import-types/docgen.snapshot +21 -0
  101. package/template/stories/docgen-components/9591-ts-import-types/input.tsx +10 -0
  102. package/template/stories/docgen-components/9591-ts-import-types/properties.snapshot +21 -0
  103. package/template/stories/docgen-components/9626-js-default-values/argTypes.snapshot +27 -0
  104. package/template/stories/docgen-components/9626-js-default-values/docgen.snapshot +25 -0
  105. package/template/stories/docgen-components/9626-js-default-values/input.jsx +5 -0
  106. package/template/stories/docgen-components/9626-js-default-values/properties.snapshot +21 -0
  107. package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/argTypes.snapshot +42 -0
  108. package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/docgen.snapshot +36 -0
  109. package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/input.jsx +13 -0
  110. package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/properties.snapshot +35 -0
  111. package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/argTypes.snapshot +53 -0
  112. package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/docgen.snapshot +45 -0
  113. package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/input.tsx +18 -0
  114. package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/properties.snapshot +43 -0
  115. package/template/stories/docgen-components/9764-ts-extend-props/argTypes.snapshot +72 -0
  116. package/template/stories/docgen-components/9764-ts-extend-props/docgen.snapshot +41 -0
  117. package/template/stories/docgen-components/9764-ts-extend-props/input.tsx +17 -0
  118. package/template/stories/docgen-components/9764-ts-extend-props/properties.snapshot +56 -0
  119. package/template/stories/docgen-components/9827-ts-default-values/argTypes.snapshot +72 -0
  120. package/template/stories/docgen-components/9827-ts-default-values/docgen.snapshot +52 -0
  121. package/template/stories/docgen-components/9827-ts-default-values/input.tsx +17 -0
  122. package/template/stories/docgen-components/9827-ts-default-values/properties.snapshot +56 -0
  123. package/template/stories/docgen-components/9832-ts-enum-export/argTypes.snapshot +3 -0
  124. package/template/stories/docgen-components/9832-ts-enum-export/docgen.snapshot +16 -0
  125. package/template/stories/docgen-components/9832-ts-enum-export/input.tsx +8 -0
  126. package/template/stories/docgen-components/9832-ts-enum-export/properties.snapshot +7 -0
  127. package/template/stories/docgen-components/9922-ts-component-props/argTypes.snapshot +25 -0
  128. package/template/stories/docgen-components/9922-ts-component-props/docgen.snapshot +35 -0
  129. package/template/stories/docgen-components/9922-ts-component-props/input.tsx +24 -0
  130. package/template/stories/docgen-components/9922-ts-component-props/properties.snapshot +21 -0
  131. package/template/stories/docgen-components/imported.js +1 -0
  132. package/template/stories/docgen-components/js-class-component/argTypes.snapshot +386 -0
  133. package/template/stories/docgen-components/js-class-component/docgen.snapshot +252 -0
  134. package/template/stories/docgen-components/js-class-component/input.jsx +57 -0
  135. package/template/stories/docgen-components/js-class-component/properties.snapshot +286 -0
  136. package/template/stories/docgen-components/js-function-component/argTypes.snapshot +386 -0
  137. package/template/stories/docgen-components/js-function-component/docgen.snapshot +236 -0
  138. package/template/stories/docgen-components/js-function-component/input.jsx +50 -0
  139. package/template/stories/docgen-components/js-function-component/properties.snapshot +286 -0
  140. package/template/stories/docgen-components/js-function-component-inline-defaults/argTypes.snapshot +386 -0
  141. package/template/stories/docgen-components/js-function-component-inline-defaults/docgen.snapshot +247 -0
  142. package/template/stories/docgen-components/js-function-component-inline-defaults/input.jsx +65 -0
  143. package/template/stories/docgen-components/js-function-component-inline-defaults/properties.snapshot +286 -0
  144. package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/argTypes.snapshot +237 -0
  145. package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/docgen.snapshot +124 -0
  146. package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/input.jsx +41 -0
  147. package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/properties.snapshot +151 -0
  148. package/template/stories/docgen-components/js-proptypes/docgen.snapshot +1770 -0
  149. package/template/stories/docgen-components/js-proptypes/ext.js +13 -0
  150. package/template/stories/docgen-components/js-proptypes/input.jsx +497 -0
  151. package/template/stories/docgen-components/jsdoc/argTypes.snapshot +969 -0
  152. package/template/stories/docgen-components/jsdoc/docgen.snapshot +548 -0
  153. package/template/stories/docgen-components/jsdoc/input.jsx +231 -0
  154. package/template/stories/docgen-components/jsdoc/properties.snapshot +857 -0
  155. package/template/stories/docgen-components/ts-function-component/argTypes.snapshot +396 -0
  156. package/template/stories/docgen-components/ts-function-component/docgen.snapshot +241 -0
  157. package/template/stories/docgen-components/ts-function-component/input.tsx +52 -0
  158. package/template/stories/docgen-components/ts-function-component/properties.snapshot +296 -0
  159. package/template/stories/docgen-components/ts-function-component-inline-defaults/argTypes.snapshot +279 -0
  160. package/template/stories/docgen-components/ts-function-component-inline-defaults/docgen.snapshot +151 -0
  161. package/template/stories/docgen-components/ts-function-component-inline-defaults/input.tsx +80 -0
  162. package/template/stories/docgen-components/ts-function-component-inline-defaults/properties.snapshot +177 -0
  163. package/template/stories/docgen-components/ts-html/argTypes.snapshot +3 -0
  164. package/template/stories/docgen-components/ts-html/docgen.snapshot +12 -0
  165. package/template/stories/docgen-components/ts-html/input.tsx +12 -0
  166. package/template/stories/docgen-components/ts-html/properties.snapshot +7 -0
  167. package/template/stories/docgen-components/ts-jsdoc/argTypes.snapshot +3 -0
  168. package/template/stories/docgen-components/ts-jsdoc/docgen.snapshot +21 -0
  169. package/template/stories/docgen-components/ts-jsdoc/input.tsx +27 -0
  170. package/template/stories/docgen-components/ts-jsdoc/properties.snapshot +7 -0
  171. package/template/stories/docgen-components/ts-types/argTypes.snapshot +656 -0
  172. package/template/stories/docgen-components/ts-types/docgen.snapshot +317 -0
  173. package/template/stories/docgen-components/ts-types/input.tsx +130 -0
  174. package/template/stories/docgen-components/ts-types/properties.snapshot +410 -0
  175. package/template/stories/errors.stories.tsx +37 -0
  176. package/template/stories/hooks.stories.tsx +17 -0
  177. package/template/stories/js-argtypes.stories.jsx +91 -0
  178. package/template/stories/react-mdx.stories.mdx +26 -0
  179. package/template/stories/ts-argtypes.stories.tsx +81 -0
  180. package/LICENSE +0 -21
  181. package/dist/cjs/config.js +0 -43
  182. package/dist/cjs/docs/config.js +0 -25
  183. package/dist/cjs/docs/extractArgTypes.js +0 -47
  184. package/dist/cjs/docs/extractProps.js +0 -57
  185. package/dist/cjs/docs/jsxDecorator.js +0 -210
  186. package/dist/cjs/docs/lib/captions.js +0 -18
  187. package/dist/cjs/docs/lib/componentTypes.js +0 -14
  188. package/dist/cjs/docs/lib/defaultValues/createDefaultValue.js +0 -86
  189. package/dist/cjs/docs/lib/defaultValues/createFromRawDefaultProp.js +0 -206
  190. package/dist/cjs/docs/lib/defaultValues/generateArray.js +0 -31
  191. package/dist/cjs/docs/lib/defaultValues/generateObject.js +0 -31
  192. package/dist/cjs/docs/lib/defaultValues/index.js +0 -31
  193. package/dist/cjs/docs/lib/defaultValues/prettyIdentifier.js +0 -38
  194. package/dist/cjs/docs/lib/generateCode.js +0 -74
  195. package/dist/cjs/docs/lib/index.js +0 -57
  196. package/dist/cjs/docs/lib/inspection/acornParser.js +0 -230
  197. package/dist/cjs/docs/lib/inspection/index.js +0 -31
  198. package/dist/cjs/docs/lib/inspection/inspectValue.js +0 -24
  199. package/dist/cjs/docs/lib/inspection/types.js +0 -19
  200. package/dist/cjs/docs/lib/isHtmlTag.js +0 -14
  201. package/dist/cjs/docs/propTypes/createType.js +0 -458
  202. package/dist/cjs/docs/propTypes/generateFuncSignature.js +0 -68
  203. package/dist/cjs/docs/propTypes/handleProp.js +0 -52
  204. package/dist/cjs/docs/propTypes/rawDefaultPropResolvers.js +0 -43
  205. package/dist/cjs/docs/propTypes/sortProps.js +0 -21
  206. package/dist/cjs/docs/react-argtypes.stories.js +0 -67
  207. package/dist/cjs/docs/typeScript/handleProp.js +0 -38
  208. package/dist/cjs/index.js +0 -98
  209. package/dist/cjs/preview/config.js +0 -19
  210. package/dist/cjs/preview/globals.js +0 -13
  211. package/dist/cjs/preview/index.js +0 -44
  212. package/dist/cjs/preview/render.js +0 -166
  213. package/dist/cjs/preview/types-6-0.js +0 -5
  214. package/dist/cjs/preview/types-6-3.js +0 -18
  215. package/dist/cjs/preview/types-7-0.js +0 -5
  216. package/dist/cjs/preview/types.js +0 -5
  217. package/dist/cjs/testing/index.js +0 -113
  218. package/dist/esm/config.js +0 -6
  219. package/dist/esm/docs/config.js +0 -12
  220. package/dist/esm/docs/extractArgTypes.js +0 -37
  221. package/dist/esm/docs/extractProps.js +0 -42
  222. package/dist/esm/docs/jsxDecorator.js +0 -170
  223. package/dist/esm/docs/lib/captions.js +0 -6
  224. package/dist/esm/docs/lib/componentTypes.js +0 -2
  225. package/dist/esm/docs/lib/defaultValues/createDefaultValue.js +0 -72
  226. package/dist/esm/docs/lib/defaultValues/createFromRawDefaultProp.js +0 -183
  227. package/dist/esm/docs/lib/defaultValues/generateArray.js +0 -21
  228. package/dist/esm/docs/lib/defaultValues/generateObject.js +0 -21
  229. package/dist/esm/docs/lib/defaultValues/index.js +0 -2
  230. package/dist/esm/docs/lib/defaultValues/prettyIdentifier.js +0 -26
  231. package/dist/esm/docs/lib/generateCode.js +0 -59
  232. package/dist/esm/docs/lib/index.js +0 -4
  233. package/dist/esm/docs/lib/inspection/acornParser.js +0 -211
  234. package/dist/esm/docs/lib/inspection/index.js +0 -2
  235. package/dist/esm/docs/lib/inspection/inspectValue.js +0 -15
  236. package/dist/esm/docs/lib/inspection/types.js +0 -12
  237. package/dist/esm/docs/lib/isHtmlTag.js +0 -4
  238. package/dist/esm/docs/propTypes/createType.js +0 -447
  239. package/dist/esm/docs/propTypes/generateFuncSignature.js +0 -57
  240. package/dist/esm/docs/propTypes/handleProp.js +0 -39
  241. package/dist/esm/docs/propTypes/rawDefaultPropResolvers.js +0 -31
  242. package/dist/esm/docs/propTypes/sortProps.js +0 -14
  243. package/dist/esm/docs/react-argtypes.stories.js +0 -54
  244. package/dist/esm/docs/typeScript/handleProp.js +0 -28
  245. package/dist/esm/index.js +0 -5
  246. package/dist/esm/preview/config.js +0 -1
  247. package/dist/esm/preview/globals.js +0 -8
  248. package/dist/esm/preview/index.js +0 -21
  249. package/dist/esm/preview/render.js +0 -142
  250. package/dist/esm/preview/types-6-0.js +0 -1
  251. package/dist/esm/preview/types-6-3.js +0 -10
  252. package/dist/esm/preview/types-7-0.js +0 -1
  253. package/dist/esm/preview/types.js +0 -1
  254. package/dist/esm/testing/index.js +0 -97
  255. package/dist/types/config.d.ts +0 -10
  256. package/dist/types/docs/config.d.ts +0 -10
  257. package/dist/types/docs/extractArgTypes.d.ts +0 -2
  258. package/dist/types/docs/extractProps.d.ts +0 -9
  259. package/dist/types/docs/jsxDecorator.d.ts +0 -23
  260. package/dist/types/docs/lib/captions.d.ts +0 -6
  261. package/dist/types/docs/lib/componentTypes.d.ts +0 -2
  262. package/dist/types/docs/lib/defaultValues/createDefaultValue.d.ts +0 -2
  263. package/dist/types/docs/lib/defaultValues/createFromRawDefaultProp.d.ts +0 -11
  264. package/dist/types/docs/lib/defaultValues/generateArray.d.ts +0 -3
  265. package/dist/types/docs/lib/defaultValues/generateObject.d.ts +0 -3
  266. package/dist/types/docs/lib/defaultValues/index.d.ts +0 -2
  267. package/dist/types/docs/lib/defaultValues/prettyIdentifier.d.ts +0 -4
  268. package/dist/types/docs/lib/generateCode.d.ts +0 -3
  269. package/dist/types/docs/lib/index.d.ts +0 -4
  270. package/dist/types/docs/lib/inspection/acornParser.d.ts +0 -7
  271. package/dist/types/docs/lib/inspection/index.d.ts +0 -2
  272. package/dist/types/docs/lib/inspection/inspectValue.d.ts +0 -2
  273. package/dist/types/docs/lib/inspection/types.d.ts +0 -50
  274. package/dist/types/docs/lib/isHtmlTag.d.ts +0 -1
  275. package/dist/types/docs/propTypes/createType.d.ts +0 -2
  276. package/dist/types/docs/propTypes/generateFuncSignature.d.ts +0 -4
  277. package/dist/types/docs/propTypes/handleProp.d.ts +0 -5
  278. package/dist/types/docs/propTypes/rawDefaultPropResolvers.d.ts +0 -1
  279. package/dist/types/docs/propTypes/sortProps.d.ts +0 -4
  280. package/dist/types/docs/react-argtypes.stories.d.ts +0 -1
  281. package/dist/types/docs/typeScript/handleProp.d.ts +0 -3
  282. package/dist/types/index.d.ts +0 -4
  283. package/dist/types/preview/config.d.ts +0 -1
  284. package/dist/types/preview/globals.d.ts +0 -1
  285. package/dist/types/preview/index.d.ts +0 -25
  286. package/dist/types/preview/render.d.ts +0 -5
  287. package/dist/types/preview/types-6-0.d.ts +0 -35
  288. package/dist/types/preview/types-6-3.d.ts +0 -40
  289. package/dist/types/preview/types-7-0.d.ts +0 -21
  290. package/dist/types/preview/types.d.ts +0 -16
  291. package/dist/types/testing/index.d.ts +0 -84
@@ -0,0 +1,969 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`react component properties jsdoc 1`] = `
4
+ Object {
5
+ "case1": Object {
6
+ "control": Object {
7
+ "type": "text",
8
+ },
9
+ "description": "simple description.",
10
+ "name": "case1",
11
+ "table": Object {
12
+ "defaultValue": null,
13
+ "jsDocTags": undefined,
14
+ "type": Object {
15
+ "detail": undefined,
16
+ "summary": "string",
17
+ },
18
+ },
19
+ "type": Object {
20
+ "name": "string",
21
+ "required": false,
22
+ },
23
+ },
24
+ "case10": Object {
25
+ "description": "param with name",
26
+ "name": "case10",
27
+ "table": Object {
28
+ "defaultValue": null,
29
+ "jsDocTags": Object {
30
+ "params": Array [
31
+ Object {
32
+ "description": null,
33
+ "name": "event",
34
+ },
35
+ ],
36
+ "returns": false,
37
+ },
38
+ "type": Object {
39
+ "detail": undefined,
40
+ "summary": "(event)",
41
+ },
42
+ },
43
+ "type": Object {
44
+ "name": "function",
45
+ "required": false,
46
+ },
47
+ },
48
+ "case11": Object {
49
+ "description": "param with name & type",
50
+ "name": "case11",
51
+ "table": Object {
52
+ "defaultValue": null,
53
+ "jsDocTags": Object {
54
+ "params": Array [
55
+ Object {
56
+ "description": null,
57
+ "name": "event",
58
+ },
59
+ ],
60
+ "returns": false,
61
+ },
62
+ "type": Object {
63
+ "detail": undefined,
64
+ "summary": "(event: SyntheticEvent)",
65
+ },
66
+ },
67
+ "type": Object {
68
+ "name": "function",
69
+ "required": false,
70
+ },
71
+ },
72
+ "case12": Object {
73
+ "description": "param with name, type & description",
74
+ "name": "case12",
75
+ "table": Object {
76
+ "defaultValue": null,
77
+ "jsDocTags": Object {
78
+ "params": Array [
79
+ Object {
80
+ "description": "React's original event",
81
+ "name": "event",
82
+ },
83
+ ],
84
+ "returns": false,
85
+ },
86
+ "type": Object {
87
+ "detail": undefined,
88
+ "summary": "(event: SyntheticEvent)",
89
+ },
90
+ },
91
+ "type": Object {
92
+ "name": "function",
93
+ "required": false,
94
+ },
95
+ },
96
+ "case13": Object {
97
+ "description": "param with type",
98
+ "name": "case13",
99
+ "table": Object {
100
+ "defaultValue": null,
101
+ "jsDocTags": Object {
102
+ "params": Array [
103
+ Object {
104
+ "description": null,
105
+ "name": "SyntheticEvent",
106
+ },
107
+ ],
108
+ "returns": false,
109
+ },
110
+ "type": Object {
111
+ "detail": undefined,
112
+ "summary": "(SyntheticEvent)",
113
+ },
114
+ },
115
+ "type": Object {
116
+ "name": "function",
117
+ "required": false,
118
+ },
119
+ },
120
+ "case14": Object {
121
+ "description": "param with type & description",
122
+ "name": "case14",
123
+ "table": Object {
124
+ "defaultValue": null,
125
+ "jsDocTags": undefined,
126
+ "type": Object {
127
+ "detail": undefined,
128
+ "summary": "func",
129
+ },
130
+ },
131
+ "type": Object {
132
+ "name": "function",
133
+ "required": false,
134
+ },
135
+ },
136
+ "case15": Object {
137
+ "description": "param with name & description",
138
+ "name": "case15",
139
+ "table": Object {
140
+ "defaultValue": null,
141
+ "jsDocTags": Object {
142
+ "params": Array [
143
+ Object {
144
+ "description": "React's original event",
145
+ "name": "event",
146
+ },
147
+ ],
148
+ "returns": false,
149
+ },
150
+ "type": Object {
151
+ "detail": undefined,
152
+ "summary": "(event)",
153
+ },
154
+ },
155
+ "type": Object {
156
+ "name": "function",
157
+ "required": false,
158
+ },
159
+ },
160
+ "case16": Object {
161
+ "description": "autofix event-",
162
+ "name": "case16",
163
+ "table": Object {
164
+ "defaultValue": null,
165
+ "jsDocTags": Object {
166
+ "params": Array [
167
+ Object {
168
+ "description": "React's original event",
169
+ "name": "event",
170
+ },
171
+ ],
172
+ "returns": false,
173
+ },
174
+ "type": Object {
175
+ "detail": undefined,
176
+ "summary": "(event)",
177
+ },
178
+ },
179
+ "type": Object {
180
+ "name": "function",
181
+ "required": false,
182
+ },
183
+ },
184
+ "case17": Object {
185
+ "description": "autofix event.",
186
+ "name": "case17",
187
+ "table": Object {
188
+ "defaultValue": null,
189
+ "jsDocTags": Object {
190
+ "params": Array [
191
+ Object {
192
+ "description": null,
193
+ "name": "event",
194
+ },
195
+ ],
196
+ "returns": Object {
197
+ "description": null,
198
+ },
199
+ },
200
+ "type": Object {
201
+ "detail": undefined,
202
+ "summary": "(event) => string",
203
+ },
204
+ },
205
+ "type": Object {
206
+ "name": "function",
207
+ "required": false,
208
+ },
209
+ },
210
+ "case18": Object {
211
+ "description": "with an empty param.",
212
+ "name": "case18",
213
+ "table": Object {
214
+ "defaultValue": null,
215
+ "jsDocTags": undefined,
216
+ "type": Object {
217
+ "detail": undefined,
218
+ "summary": "func",
219
+ },
220
+ },
221
+ "type": Object {
222
+ "name": "function",
223
+ "required": false,
224
+ },
225
+ },
226
+ "case19": Object {
227
+ "description": "with multiple empty params.",
228
+ "name": "case19",
229
+ "table": Object {
230
+ "defaultValue": null,
231
+ "jsDocTags": undefined,
232
+ "type": Object {
233
+ "detail": undefined,
234
+ "summary": "func",
235
+ },
236
+ },
237
+ "type": Object {
238
+ "name": "function",
239
+ "required": false,
240
+ },
241
+ },
242
+ "case2": Object {
243
+ "control": Object {
244
+ "type": "text",
245
+ },
246
+ "description": "multi
247
+ lines
248
+ description",
249
+ "name": "case2",
250
+ "table": Object {
251
+ "defaultValue": null,
252
+ "jsDocTags": undefined,
253
+ "type": Object {
254
+ "detail": undefined,
255
+ "summary": "string",
256
+ },
257
+ },
258
+ "type": Object {
259
+ "name": "string",
260
+ "required": false,
261
+ },
262
+ },
263
+ "case20": Object {
264
+ "description": "with arg alias.",
265
+ "name": "case20",
266
+ "table": Object {
267
+ "defaultValue": null,
268
+ "jsDocTags": Object {
269
+ "params": Array [
270
+ Object {
271
+ "description": null,
272
+ "name": "event",
273
+ },
274
+ ],
275
+ "returns": false,
276
+ },
277
+ "type": Object {
278
+ "detail": undefined,
279
+ "summary": "(event)",
280
+ },
281
+ },
282
+ "type": Object {
283
+ "name": "function",
284
+ "required": false,
285
+ },
286
+ },
287
+ "case21": Object {
288
+ "description": "with argument alias.",
289
+ "name": "case21",
290
+ "table": Object {
291
+ "defaultValue": null,
292
+ "jsDocTags": Object {
293
+ "params": Array [
294
+ Object {
295
+ "description": null,
296
+ "name": "event",
297
+ },
298
+ ],
299
+ "returns": false,
300
+ },
301
+ "type": Object {
302
+ "detail": undefined,
303
+ "summary": "(event)",
304
+ },
305
+ },
306
+ "type": Object {
307
+ "name": "function",
308
+ "required": false,
309
+ },
310
+ },
311
+ "case22": Object {
312
+ "description": "with multiple params.",
313
+ "name": "case22",
314
+ "table": Object {
315
+ "defaultValue": null,
316
+ "jsDocTags": Object {
317
+ "params": Array [
318
+ Object {
319
+ "description": null,
320
+ "name": "event",
321
+ },
322
+ Object {
323
+ "description": null,
324
+ "name": "stringValue",
325
+ },
326
+ Object {
327
+ "description": null,
328
+ "name": "numberValue",
329
+ },
330
+ ],
331
+ "returns": false,
332
+ },
333
+ "type": Object {
334
+ "detail": undefined,
335
+ "summary": "(event: SyntheticEvent, stringValue: string, numberValue: number)",
336
+ },
337
+ },
338
+ "type": Object {
339
+ "name": "function",
340
+ "required": false,
341
+ },
342
+ },
343
+ "case23": Object {
344
+ "description": "with an empty returns",
345
+ "name": "case23",
346
+ "table": Object {
347
+ "defaultValue": null,
348
+ "jsDocTags": undefined,
349
+ "type": Object {
350
+ "detail": undefined,
351
+ "summary": "func",
352
+ },
353
+ },
354
+ "type": Object {
355
+ "name": "function",
356
+ "required": false,
357
+ },
358
+ },
359
+ "case24": Object {
360
+ "description": "with a returns with a type",
361
+ "name": "case24",
362
+ "table": Object {
363
+ "defaultValue": null,
364
+ "jsDocTags": Object {
365
+ "params": false,
366
+ "returns": Object {
367
+ "description": null,
368
+ },
369
+ },
370
+ "type": Object {
371
+ "detail": undefined,
372
+ "summary": "() => SyntheticEvent",
373
+ },
374
+ },
375
+ "type": Object {
376
+ "name": "function",
377
+ "required": false,
378
+ },
379
+ },
380
+ "case25": Object {
381
+ "description": "with a returns with a type & description",
382
+ "name": "case25",
383
+ "table": Object {
384
+ "defaultValue": null,
385
+ "jsDocTags": Object {
386
+ "params": false,
387
+ "returns": Object {
388
+ "description": "React's original event",
389
+ },
390
+ },
391
+ "type": Object {
392
+ "detail": undefined,
393
+ "summary": "() => SyntheticEvent",
394
+ },
395
+ },
396
+ "type": Object {
397
+ "name": "function",
398
+ "required": false,
399
+ },
400
+ },
401
+ "case26": Object {
402
+ "description": "single param and a returns",
403
+ "name": "case26",
404
+ "table": Object {
405
+ "defaultValue": null,
406
+ "jsDocTags": Object {
407
+ "params": Array [
408
+ Object {
409
+ "description": null,
410
+ "name": "stringValue",
411
+ },
412
+ ],
413
+ "returns": Object {
414
+ "description": "React's original event",
415
+ },
416
+ },
417
+ "type": Object {
418
+ "detail": undefined,
419
+ "summary": "(stringValue: string) => SyntheticEvent",
420
+ },
421
+ },
422
+ "type": Object {
423
+ "name": "function",
424
+ "required": false,
425
+ },
426
+ },
427
+ "case27": Object {
428
+ "description": "multiple params and a returns",
429
+ "name": "case27",
430
+ "table": Object {
431
+ "defaultValue": null,
432
+ "jsDocTags": Object {
433
+ "params": Array [
434
+ Object {
435
+ "description": null,
436
+ "name": "stringValue",
437
+ },
438
+ Object {
439
+ "description": null,
440
+ "name": "numberValue",
441
+ },
442
+ ],
443
+ "returns": Object {
444
+ "description": "React's original event",
445
+ },
446
+ },
447
+ "type": Object {
448
+ "detail": undefined,
449
+ "summary": "(stringValue: string, numberValue: number) => SyntheticEvent",
450
+ },
451
+ },
452
+ "type": Object {
453
+ "name": "function",
454
+ "required": false,
455
+ },
456
+ },
457
+ "case28": Object {
458
+ "description": "multiple returns",
459
+ "name": "case28",
460
+ "table": Object {
461
+ "defaultValue": null,
462
+ "jsDocTags": Object {
463
+ "params": false,
464
+ "returns": Object {
465
+ "description": "Second returns",
466
+ },
467
+ },
468
+ "type": Object {
469
+ "detail": undefined,
470
+ "summary": "() => string",
471
+ },
472
+ },
473
+ "type": Object {
474
+ "name": "function",
475
+ "required": false,
476
+ },
477
+ },
478
+ "case29": Object {
479
+ "description": "param with unsupported JSDoc tags",
480
+ "name": "case29",
481
+ "table": Object {
482
+ "defaultValue": null,
483
+ "jsDocTags": Object {
484
+ "params": Array [
485
+ Object {
486
+ "description": "React's original event",
487
+ "name": "event",
488
+ },
489
+ ],
490
+ "returns": false,
491
+ },
492
+ "type": Object {
493
+ "detail": undefined,
494
+ "summary": "(event: SyntheticEvent)",
495
+ },
496
+ },
497
+ "type": Object {
498
+ "name": "function",
499
+ "required": false,
500
+ },
501
+ },
502
+ "case3": Object {
503
+ "control": Object {
504
+ "type": "text",
505
+ },
506
+ "description": "*description* **with** \`formatting\`",
507
+ "name": "case3",
508
+ "table": Object {
509
+ "defaultValue": null,
510
+ "jsDocTags": undefined,
511
+ "type": Object {
512
+ "detail": undefined,
513
+ "summary": "string",
514
+ },
515
+ },
516
+ "type": Object {
517
+ "name": "string",
518
+ "required": false,
519
+ },
520
+ },
521
+ "case30": Object {
522
+ "description": "param record type",
523
+ "name": "case30",
524
+ "table": Object {
525
+ "defaultValue": null,
526
+ "jsDocTags": Object {
527
+ "params": Array [
528
+ Object {
529
+ "description": null,
530
+ "name": "myType",
531
+ },
532
+ ],
533
+ "returns": false,
534
+ },
535
+ "type": Object {
536
+ "detail": undefined,
537
+ "summary": "(myType: ({a: number, b: string}))",
538
+ },
539
+ },
540
+ "type": Object {
541
+ "name": "function",
542
+ "required": false,
543
+ },
544
+ },
545
+ "case31": Object {
546
+ "description": "param array type",
547
+ "name": "case31",
548
+ "table": Object {
549
+ "defaultValue": null,
550
+ "jsDocTags": Object {
551
+ "params": Array [
552
+ Object {
553
+ "description": null,
554
+ "name": "myType",
555
+ },
556
+ ],
557
+ "returns": false,
558
+ },
559
+ "type": Object {
560
+ "detail": undefined,
561
+ "summary": "(myType: string[])",
562
+ },
563
+ },
564
+ "type": Object {
565
+ "name": "function",
566
+ "required": false,
567
+ },
568
+ },
569
+ "case32": Object {
570
+ "description": "param union type",
571
+ "name": "case32",
572
+ "table": Object {
573
+ "defaultValue": null,
574
+ "jsDocTags": Object {
575
+ "params": Array [
576
+ Object {
577
+ "description": null,
578
+ "name": "myType",
579
+ },
580
+ ],
581
+ "returns": false,
582
+ },
583
+ "type": Object {
584
+ "detail": undefined,
585
+ "summary": "(myType: (number|boolean))",
586
+ },
587
+ },
588
+ "type": Object {
589
+ "name": "function",
590
+ "required": false,
591
+ },
592
+ },
593
+ "case33": Object {
594
+ "description": "param any type",
595
+ "name": "case33",
596
+ "table": Object {
597
+ "defaultValue": null,
598
+ "jsDocTags": Object {
599
+ "params": Array [
600
+ Object {
601
+ "description": null,
602
+ "name": "myType",
603
+ },
604
+ ],
605
+ "returns": false,
606
+ },
607
+ "type": Object {
608
+ "detail": undefined,
609
+ "summary": "(myType: any)",
610
+ },
611
+ },
612
+ "type": Object {
613
+ "name": "function",
614
+ "required": false,
615
+ },
616
+ },
617
+ "case34": Object {
618
+ "description": "param repeatable type",
619
+ "name": "case34",
620
+ "table": Object {
621
+ "defaultValue": null,
622
+ "jsDocTags": Object {
623
+ "params": Array [
624
+ Object {
625
+ "description": null,
626
+ "name": "myType",
627
+ },
628
+ ],
629
+ "returns": false,
630
+ },
631
+ "type": Object {
632
+ "detail": undefined,
633
+ "summary": "(myType)",
634
+ },
635
+ },
636
+ "type": Object {
637
+ "name": "function",
638
+ "required": false,
639
+ },
640
+ },
641
+ "case35": Object {
642
+ "description": "optional param",
643
+ "name": "case35",
644
+ "table": Object {
645
+ "defaultValue": null,
646
+ "jsDocTags": Object {
647
+ "params": Array [
648
+ Object {
649
+ "description": null,
650
+ "name": "myType",
651
+ },
652
+ ],
653
+ "returns": false,
654
+ },
655
+ "type": Object {
656
+ "detail": undefined,
657
+ "summary": "(myType: number)",
658
+ },
659
+ },
660
+ "type": Object {
661
+ "name": "function",
662
+ "required": false,
663
+ },
664
+ },
665
+ "case36": Object {
666
+ "description": "optional param",
667
+ "name": "case36",
668
+ "table": Object {
669
+ "defaultValue": null,
670
+ "jsDocTags": Object {
671
+ "params": Array [
672
+ Object {
673
+ "description": null,
674
+ "name": "myType",
675
+ },
676
+ ],
677
+ "returns": false,
678
+ },
679
+ "type": Object {
680
+ "detail": undefined,
681
+ "summary": "(myType: number)",
682
+ },
683
+ },
684
+ "type": Object {
685
+ "name": "function",
686
+ "required": false,
687
+ },
688
+ },
689
+ "case37": Object {
690
+ "description": "dot in param name",
691
+ "name": "case37",
692
+ "table": Object {
693
+ "defaultValue": null,
694
+ "jsDocTags": Object {
695
+ "params": Array [
696
+ Object {
697
+ "description": null,
698
+ "name": "my.type",
699
+ },
700
+ ],
701
+ "returns": false,
702
+ },
703
+ "type": Object {
704
+ "detail": undefined,
705
+ "summary": "(my.type: number)",
706
+ },
707
+ },
708
+ "type": Object {
709
+ "name": "function",
710
+ "required": false,
711
+ },
712
+ },
713
+ "case38": Object {
714
+ "description": "returns record type",
715
+ "name": "case38",
716
+ "table": Object {
717
+ "defaultValue": null,
718
+ "jsDocTags": Object {
719
+ "params": false,
720
+ "returns": Object {
721
+ "description": null,
722
+ },
723
+ },
724
+ "type": Object {
725
+ "detail": undefined,
726
+ "summary": "() => ({a: number, b: string})",
727
+ },
728
+ },
729
+ "type": Object {
730
+ "name": "function",
731
+ "required": false,
732
+ },
733
+ },
734
+ "case39": Object {
735
+ "description": "returns array type",
736
+ "name": "case39",
737
+ "table": Object {
738
+ "defaultValue": null,
739
+ "jsDocTags": Object {
740
+ "params": false,
741
+ "returns": Object {
742
+ "description": null,
743
+ },
744
+ },
745
+ "type": Object {
746
+ "detail": undefined,
747
+ "summary": "() => string[]",
748
+ },
749
+ },
750
+ "type": Object {
751
+ "name": "function",
752
+ "required": false,
753
+ },
754
+ },
755
+ "case4": Object {
756
+ "control": Object {
757
+ "type": "text",
758
+ },
759
+ "description": "simple description and dummy JSDoc tag.",
760
+ "name": "case4",
761
+ "table": Object {
762
+ "defaultValue": null,
763
+ "jsDocTags": Object {
764
+ "params": Array [
765
+ Object {
766
+ "description": null,
767
+ "name": "event",
768
+ },
769
+ ],
770
+ "returns": false,
771
+ },
772
+ "type": Object {
773
+ "detail": undefined,
774
+ "summary": "string",
775
+ },
776
+ },
777
+ "type": Object {
778
+ "name": "string",
779
+ "required": false,
780
+ },
781
+ },
782
+ "case40": Object {
783
+ "description": "returns union type",
784
+ "name": "case40",
785
+ "table": Object {
786
+ "defaultValue": null,
787
+ "jsDocTags": Object {
788
+ "params": false,
789
+ "returns": Object {
790
+ "description": null,
791
+ },
792
+ },
793
+ "type": Object {
794
+ "detail": undefined,
795
+ "summary": "() => (number|boolean)",
796
+ },
797
+ },
798
+ "type": Object {
799
+ "name": "function",
800
+ "required": false,
801
+ },
802
+ },
803
+ "case41": Object {
804
+ "description": "returns any type",
805
+ "name": "case41",
806
+ "table": Object {
807
+ "defaultValue": null,
808
+ "jsDocTags": Object {
809
+ "params": false,
810
+ "returns": Object {
811
+ "description": null,
812
+ },
813
+ },
814
+ "type": Object {
815
+ "detail": undefined,
816
+ "summary": "() => any",
817
+ },
818
+ },
819
+ "type": Object {
820
+ "name": "function",
821
+ "required": false,
822
+ },
823
+ },
824
+ "case42": Object {
825
+ "description": "returns primitive",
826
+ "name": "case42",
827
+ "table": Object {
828
+ "defaultValue": null,
829
+ "jsDocTags": Object {
830
+ "params": false,
831
+ "returns": Object {
832
+ "description": null,
833
+ },
834
+ },
835
+ "type": Object {
836
+ "detail": undefined,
837
+ "summary": "() => string",
838
+ },
839
+ },
840
+ "type": Object {
841
+ "name": "function",
842
+ "required": false,
843
+ },
844
+ },
845
+ "case43": Object {
846
+ "description": "returns void",
847
+ "name": "case43",
848
+ "table": Object {
849
+ "defaultValue": null,
850
+ "jsDocTags": Object {
851
+ "params": false,
852
+ "returns": Object {
853
+ "description": null,
854
+ },
855
+ },
856
+ "type": Object {
857
+ "detail": undefined,
858
+ "summary": "() => void",
859
+ },
860
+ },
861
+ "type": Object {
862
+ "name": "function",
863
+ "required": false,
864
+ },
865
+ },
866
+ "case5": Object {
867
+ "control": Object {
868
+ "type": "text",
869
+ },
870
+ "description": "",
871
+ "name": "case5",
872
+ "table": Object {
873
+ "defaultValue": null,
874
+ "jsDocTags": Object {
875
+ "params": Array [
876
+ Object {
877
+ "description": null,
878
+ "name": "event",
879
+ },
880
+ ],
881
+ "returns": false,
882
+ },
883
+ "type": Object {
884
+ "detail": undefined,
885
+ "summary": "string",
886
+ },
887
+ },
888
+ "type": Object {
889
+ "name": "string",
890
+ "required": false,
891
+ },
892
+ },
893
+ "case6": Object {
894
+ "control": Object {
895
+ "type": "text",
896
+ },
897
+ "description": "simple description with a @.",
898
+ "name": "case6",
899
+ "table": Object {
900
+ "defaultValue": null,
901
+ "jsDocTags": undefined,
902
+ "type": Object {
903
+ "detail": undefined,
904
+ "summary": "string",
905
+ },
906
+ },
907
+ "type": Object {
908
+ "name": "string",
909
+ "required": false,
910
+ },
911
+ },
912
+ "case7": Object {
913
+ "description": "",
914
+ "name": "case7",
915
+ "table": Object {
916
+ "defaultValue": null,
917
+ "jsDocTags": undefined,
918
+ "type": Object {
919
+ "detail": undefined,
920
+ "summary": "func",
921
+ },
922
+ },
923
+ "type": Object {
924
+ "name": "function",
925
+ "required": false,
926
+ },
927
+ },
928
+ "case8": Object {
929
+ "description": "func with a simple description.",
930
+ "name": "case8",
931
+ "table": Object {
932
+ "defaultValue": null,
933
+ "jsDocTags": undefined,
934
+ "type": Object {
935
+ "detail": undefined,
936
+ "summary": "func",
937
+ },
938
+ },
939
+ "type": Object {
940
+ "name": "function",
941
+ "required": false,
942
+ },
943
+ },
944
+ "case9": Object {
945
+ "description": "",
946
+ "name": "case9",
947
+ "table": Object {
948
+ "defaultValue": null,
949
+ "jsDocTags": Object {
950
+ "params": Array [
951
+ Object {
952
+ "description": null,
953
+ "name": "event",
954
+ },
955
+ ],
956
+ "returns": false,
957
+ },
958
+ "type": Object {
959
+ "detail": undefined,
960
+ "summary": "(event)",
961
+ },
962
+ },
963
+ "type": Object {
964
+ "name": "function",
965
+ "required": false,
966
+ },
967
+ },
968
+ }
969
+ `;