forgebook 0.0.0-stage → 0.1.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 (493) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +136 -2
  3. package/dist/bin/forgebook/catalogueVite.d.ts +16 -0
  4. package/dist/bin/forgebook/catalogueVite.d.ts.map +1 -0
  5. package/dist/bin/forgebook/catalogueVite.js +15 -0
  6. package/dist/bin/forgebook/catalogueVite.js.map +1 -0
  7. package/dist/bin/forgebook/forgebook.d.mts +3 -0
  8. package/dist/bin/forgebook/forgebook.d.mts.map +1 -0
  9. package/dist/bin/forgebook/forgebook.mjs +93 -0
  10. package/dist/bin/forgebook/forgebook.mjs.map +1 -0
  11. package/dist/bin/forgebook-docs/catalogueDocs.types.d.ts +90 -0
  12. package/dist/bin/forgebook-docs/catalogueDocs.types.d.ts.map +1 -0
  13. package/dist/bin/forgebook-docs/catalogueDocs.types.js +1 -0
  14. package/dist/bin/forgebook-docs/catalogueDocs.types.js.map +1 -0
  15. package/dist/bin/forgebook-docs/catalogueMarkdown.d.ts +9 -0
  16. package/dist/bin/forgebook-docs/catalogueMarkdown.d.ts.map +1 -0
  17. package/dist/bin/forgebook-docs/catalogueMarkdown.js +132 -0
  18. package/dist/bin/forgebook-docs/catalogueMarkdown.js.map +1 -0
  19. package/dist/bin/forgebook-docs/collectDocs.d.ts +17 -0
  20. package/dist/bin/forgebook-docs/collectDocs.d.ts.map +1 -0
  21. package/dist/bin/forgebook-docs/collectDocs.js +115 -0
  22. package/dist/bin/forgebook-docs/collectDocs.js.map +1 -0
  23. package/dist/bin/forgebook-docs/forgebook-docs.d.mts +3 -0
  24. package/dist/bin/forgebook-docs/forgebook-docs.d.mts.map +1 -0
  25. package/dist/bin/forgebook-docs/forgebook-docs.mjs +115 -0
  26. package/dist/bin/forgebook-docs/forgebook-docs.mjs.map +1 -0
  27. package/dist/bin/forgebook-docs/moduleDocs.d.ts +9 -0
  28. package/dist/bin/forgebook-docs/moduleDocs.d.ts.map +1 -0
  29. package/dist/bin/forgebook-docs/moduleDocs.js +62 -0
  30. package/dist/bin/forgebook-docs/moduleDocs.js.map +1 -0
  31. package/dist/bin/forgebook-docs/sassDocs.d.ts +20 -0
  32. package/dist/bin/forgebook-docs/sassDocs.d.ts.map +1 -0
  33. package/dist/bin/forgebook-docs/sassDocs.js +77 -0
  34. package/dist/bin/forgebook-docs/sassDocs.js.map +1 -0
  35. package/dist/bin/forgebook-texts/forgebook-texts.d.mts +3 -0
  36. package/dist/bin/forgebook-texts/forgebook-texts.d.mts.map +1 -0
  37. package/dist/bin/forgebook-texts/forgebook-texts.mjs +94 -0
  38. package/dist/bin/forgebook-texts/forgebook-texts.mjs.map +1 -0
  39. package/dist/bin/forgebook-texts/storyTextsReport.d.ts +26 -0
  40. package/dist/bin/forgebook-texts/storyTextsReport.d.ts.map +1 -0
  41. package/dist/bin/forgebook-texts/storyTextsReport.js +35 -0
  42. package/dist/bin/forgebook-texts/storyTextsReport.js.map +1 -0
  43. package/dist/bin/forgebook-texts/storyTextsReport.types.d.ts +25 -0
  44. package/dist/bin/forgebook-texts/storyTextsReport.types.d.ts.map +1 -0
  45. package/dist/bin/forgebook-texts/storyTextsReport.types.js +7 -0
  46. package/dist/bin/forgebook-texts/storyTextsReport.types.js.map +1 -0
  47. package/dist/src/a11y.d.ts +28 -0
  48. package/dist/src/a11y.d.ts.map +1 -0
  49. package/dist/src/a11y.js +29 -0
  50. package/dist/src/a11y.js.map +1 -0
  51. package/dist/src/argTypes.d.ts +114 -0
  52. package/dist/src/argTypes.d.ts.map +1 -0
  53. package/dist/src/argTypes.js +254 -0
  54. package/dist/src/argTypes.js.map +1 -0
  55. package/dist/src/backdrops.d.ts +88 -0
  56. package/dist/src/backdrops.d.ts.map +1 -0
  57. package/dist/src/backdrops.js +202 -0
  58. package/dist/src/backdrops.js.map +1 -0
  59. package/dist/src/catalogue.d.ts +120 -0
  60. package/dist/src/catalogue.d.ts.map +1 -0
  61. package/dist/src/catalogue.js +80 -0
  62. package/dist/src/catalogue.js.map +1 -0
  63. package/dist/src/componentDocs.d.ts +98 -0
  64. package/dist/src/componentDocs.d.ts.map +1 -0
  65. package/dist/src/componentDocs.js +47 -0
  66. package/dist/src/componentDocs.js.map +1 -0
  67. package/dist/src/frame/checkStory.d.ts +20 -0
  68. package/dist/src/frame/checkStory.d.ts.map +1 -0
  69. package/dist/src/frame/checkStory.js +31 -0
  70. package/dist/src/frame/checkStory.js.map +1 -0
  71. package/dist/src/frame/frame.css +51 -0
  72. package/dist/src/frame/frameClock.d.ts +53 -0
  73. package/dist/src/frame/frameClock.d.ts.map +1 -0
  74. package/dist/src/frame/frameClock.js +80 -0
  75. package/dist/src/frame/frameClock.js.map +1 -0
  76. package/dist/src/frame/frameStatus.d.ts +8 -0
  77. package/dist/src/frame/frameStatus.d.ts.map +1 -0
  78. package/dist/src/frame/frameStatus.js +8 -0
  79. package/dist/src/frame/frameStatus.js.map +1 -0
  80. package/dist/src/frame/frameView.d.ts +33 -0
  81. package/dist/src/frame/frameView.d.ts.map +1 -0
  82. package/dist/src/frame/frameView.js +134 -0
  83. package/dist/src/frame/frameView.js.map +1 -0
  84. package/dist/src/frame/matrixLayout.d.ts +36 -0
  85. package/dist/src/frame/matrixLayout.d.ts.map +1 -0
  86. package/dist/src/frame/matrixLayout.js +87 -0
  87. package/dist/src/frame/matrixLayout.js.map +1 -0
  88. package/dist/src/frame/measureTools.d.ts +24 -0
  89. package/dist/src/frame/measureTools.d.ts.map +1 -0
  90. package/dist/src/frame/measureTools.js +141 -0
  91. package/dist/src/frame/measureTools.js.map +1 -0
  92. package/dist/src/frame/mountFrame.d.ts +47 -0
  93. package/dist/src/frame/mountFrame.d.ts.map +1 -0
  94. package/dist/src/frame/mountFrame.js +229 -0
  95. package/dist/src/frame/mountFrame.js.map +1 -0
  96. package/dist/src/frame/playStory.d.ts +40 -0
  97. package/dist/src/frame/playStory.d.ts.map +1 -0
  98. package/dist/src/frame/playStory.js +55 -0
  99. package/dist/src/frame/playStory.js.map +1 -0
  100. package/dist/src/frame/renderer.d.ts +85 -0
  101. package/dist/src/frame/renderer.d.ts.map +1 -0
  102. package/dist/src/frame/renderer.js +18 -0
  103. package/dist/src/frame/renderer.js.map +1 -0
  104. package/dist/src/frame/settle.d.ts +24 -0
  105. package/dist/src/frame/settle.d.ts.map +1 -0
  106. package/dist/src/frame/settle.js +25 -0
  107. package/dist/src/frame/settle.js.map +1 -0
  108. package/dist/src/frame/staleModule.d.ts +40 -0
  109. package/dist/src/frame/staleModule.d.ts.map +1 -0
  110. package/dist/src/frame/staleModule.js +74 -0
  111. package/dist/src/frame/staleModule.js.map +1 -0
  112. package/dist/src/frame/storyCanvas.d.ts +21 -0
  113. package/dist/src/frame/storyCanvas.d.ts.map +1 -0
  114. package/dist/src/frame/storyCanvas.js +30 -0
  115. package/dist/src/frame/storyCanvas.js.map +1 -0
  116. package/dist/src/frame/storyHooks.d.ts +31 -0
  117. package/dist/src/frame/storyHooks.d.ts.map +1 -0
  118. package/dist/src/frame/storyHooks.js +59 -0
  119. package/dist/src/frame/storyHooks.js.map +1 -0
  120. package/dist/src/frame/storyModule.d.ts +104 -0
  121. package/dist/src/frame/storyModule.d.ts.map +1 -0
  122. package/dist/src/frame/storyModule.js +205 -0
  123. package/dist/src/frame/storyModule.js.map +1 -0
  124. package/dist/src/frame/storyRun.d.ts +96 -0
  125. package/dist/src/frame/storyRun.d.ts.map +1 -0
  126. package/dist/src/frame/storyRun.js +318 -0
  127. package/dist/src/frame/storyRun.js.map +1 -0
  128. package/dist/src/languages.d.ts +15 -0
  129. package/dist/src/languages.d.ts.map +1 -0
  130. package/dist/src/languages.js +8 -0
  131. package/dist/src/languages.js.map +1 -0
  132. package/dist/src/matrix.d.ts +56 -0
  133. package/dist/src/matrix.d.ts.map +1 -0
  134. package/dist/src/matrix.js +61 -0
  135. package/dist/src/matrix.js.map +1 -0
  136. package/dist/src/messages.d.ts +203 -0
  137. package/dist/src/messages.d.ts.map +1 -0
  138. package/dist/src/messages.js +193 -0
  139. package/dist/src/messages.js.map +1 -0
  140. package/dist/src/namedValues.d.ts +38 -0
  141. package/dist/src/namedValues.d.ts.map +1 -0
  142. package/dist/src/namedValues.js +48 -0
  143. package/dist/src/namedValues.js.map +1 -0
  144. package/dist/src/pageConfig.d.ts +23 -0
  145. package/dist/src/pageConfig.d.ts.map +1 -0
  146. package/dist/src/pageConfig.js +1 -0
  147. package/dist/src/pageConfig.js.map +1 -0
  148. package/dist/src/playTrace.d.ts +41 -0
  149. package/dist/src/playTrace.d.ts.map +1 -0
  150. package/dist/src/playTrace.js +35 -0
  151. package/dist/src/playTrace.js.map +1 -0
  152. package/dist/src/shell/A11yTab.d.ts +44 -0
  153. package/dist/src/shell/A11yTab.d.ts.map +1 -0
  154. package/dist/src/shell/A11yTab.js +30 -0
  155. package/dist/src/shell/A11yTab.js.map +1 -0
  156. package/dist/src/shell/ApiReference.d.ts +18 -0
  157. package/dist/src/shell/ApiReference.d.ts.map +1 -0
  158. package/dist/src/shell/ApiReference.js +41 -0
  159. package/dist/src/shell/ApiReference.js.map +1 -0
  160. package/dist/src/shell/ClockControls.d.ts +43 -0
  161. package/dist/src/shell/ClockControls.d.ts.map +1 -0
  162. package/dist/src/shell/ClockControls.js +53 -0
  163. package/dist/src/shell/ClockControls.js.map +1 -0
  164. package/dist/src/shell/Code.d.ts +16 -0
  165. package/dist/src/shell/Code.d.ts.map +1 -0
  166. package/dist/src/shell/Code.js +9 -0
  167. package/dist/src/shell/Code.js.map +1 -0
  168. package/dist/src/shell/CodeTab.d.ts +17 -0
  169. package/dist/src/shell/CodeTab.d.ts.map +1 -0
  170. package/dist/src/shell/CodeTab.js +17 -0
  171. package/dist/src/shell/CodeTab.js.map +1 -0
  172. package/dist/src/shell/CodeText.d.ts +16 -0
  173. package/dist/src/shell/CodeText.d.ts.map +1 -0
  174. package/dist/src/shell/CodeText.js +10 -0
  175. package/dist/src/shell/CodeText.js.map +1 -0
  176. package/dist/src/shell/ComponentPage.d.ts +38 -0
  177. package/dist/src/shell/ComponentPage.d.ts.map +1 -0
  178. package/dist/src/shell/ComponentPage.js +146 -0
  179. package/dist/src/shell/ComponentPage.js.map +1 -0
  180. package/dist/src/shell/Dock.d.ts +42 -0
  181. package/dist/src/shell/Dock.d.ts.map +1 -0
  182. package/dist/src/shell/Dock.js +90 -0
  183. package/dist/src/shell/Dock.js.map +1 -0
  184. package/dist/src/shell/EventsTab.d.ts +25 -0
  185. package/dist/src/shell/EventsTab.d.ts.map +1 -0
  186. package/dist/src/shell/EventsTab.js +26 -0
  187. package/dist/src/shell/EventsTab.js.map +1 -0
  188. package/dist/src/shell/FrameView.d.ts +49 -0
  189. package/dist/src/shell/FrameView.d.ts.map +1 -0
  190. package/dist/src/shell/FrameView.js +29 -0
  191. package/dist/src/shell/FrameView.js.map +1 -0
  192. package/dist/src/shell/HomePage.d.ts +39 -0
  193. package/dist/src/shell/HomePage.d.ts.map +1 -0
  194. package/dist/src/shell/HomePage.js +85 -0
  195. package/dist/src/shell/HomePage.js.map +1 -0
  196. package/dist/src/shell/InteractionsTab.d.ts +28 -0
  197. package/dist/src/shell/InteractionsTab.d.ts.map +1 -0
  198. package/dist/src/shell/InteractionsTab.js +17 -0
  199. package/dist/src/shell/InteractionsTab.js.map +1 -0
  200. package/dist/src/shell/MatrixPicker.d.ts +24 -0
  201. package/dist/src/shell/MatrixPicker.d.ts.map +1 -0
  202. package/dist/src/shell/MatrixPicker.js +29 -0
  203. package/dist/src/shell/MatrixPicker.js.map +1 -0
  204. package/dist/src/shell/PackageHtml.d.ts +17 -0
  205. package/dist/src/shell/PackageHtml.d.ts.map +1 -0
  206. package/dist/src/shell/PackageHtml.js +13 -0
  207. package/dist/src/shell/PackageHtml.js.map +1 -0
  208. package/dist/src/shell/PartsTab.d.ts +23 -0
  209. package/dist/src/shell/PartsTab.d.ts.map +1 -0
  210. package/dist/src/shell/PartsTab.js +23 -0
  211. package/dist/src/shell/PartsTab.js.map +1 -0
  212. package/dist/src/shell/PropFields.d.ts +31 -0
  213. package/dist/src/shell/PropFields.d.ts.map +1 -0
  214. package/dist/src/shell/PropFields.js +81 -0
  215. package/dist/src/shell/PropFields.js.map +1 -0
  216. package/dist/src/shell/PropsTab.d.ts +45 -0
  217. package/dist/src/shell/PropsTab.d.ts.map +1 -0
  218. package/dist/src/shell/PropsTab.js +81 -0
  219. package/dist/src/shell/PropsTab.js.map +1 -0
  220. package/dist/src/shell/SchemeSwitches.d.ts +24 -0
  221. package/dist/src/shell/SchemeSwitches.d.ts.map +1 -0
  222. package/dist/src/shell/SchemeSwitches.js +36 -0
  223. package/dist/src/shell/SchemeSwitches.js.map +1 -0
  224. package/dist/src/shell/Segmented.d.ts +41 -0
  225. package/dist/src/shell/Segmented.d.ts.map +1 -0
  226. package/dist/src/shell/Segmented.js +19 -0
  227. package/dist/src/shell/Segmented.js.map +1 -0
  228. package/dist/src/shell/Shell.d.ts +49 -0
  229. package/dist/src/shell/Shell.d.ts.map +1 -0
  230. package/dist/src/shell/Shell.js +279 -0
  231. package/dist/src/shell/Shell.js.map +1 -0
  232. package/dist/src/shell/Sidebar.d.ts +52 -0
  233. package/dist/src/shell/Sidebar.d.ts.map +1 -0
  234. package/dist/src/shell/Sidebar.js +132 -0
  235. package/dist/src/shell/Sidebar.js.map +1 -0
  236. package/dist/src/shell/SidebarHandle.d.ts +29 -0
  237. package/dist/src/shell/SidebarHandle.d.ts.map +1 -0
  238. package/dist/src/shell/SidebarHandle.js +46 -0
  239. package/dist/src/shell/SidebarHandle.js.map +1 -0
  240. package/dist/src/shell/Stage.d.ts +68 -0
  241. package/dist/src/shell/Stage.d.ts.map +1 -0
  242. package/dist/src/shell/Stage.js +218 -0
  243. package/dist/src/shell/Stage.js.map +1 -0
  244. package/dist/src/shell/StageTools.d.ts +27 -0
  245. package/dist/src/shell/StageTools.d.ts.map +1 -0
  246. package/dist/src/shell/StageTools.js +34 -0
  247. package/dist/src/shell/StageTools.js.map +1 -0
  248. package/dist/src/shell/StageViewport.d.ts +47 -0
  249. package/dist/src/shell/StageViewport.d.ts.map +1 -0
  250. package/dist/src/shell/StageViewport.js +174 -0
  251. package/dist/src/shell/StageViewport.js.map +1 -0
  252. package/dist/src/shell/StoryCodeBlock.d.ts +35 -0
  253. package/dist/src/shell/StoryCodeBlock.d.ts.map +1 -0
  254. package/dist/src/shell/StoryCodeBlock.js +27 -0
  255. package/dist/src/shell/StoryCodeBlock.js.map +1 -0
  256. package/dist/src/shell/StoryPicker.d.ts +26 -0
  257. package/dist/src/shell/StoryPicker.d.ts.map +1 -0
  258. package/dist/src/shell/StoryPicker.js +32 -0
  259. package/dist/src/shell/StoryPicker.js.map +1 -0
  260. package/dist/src/shell/Toolbar.d.ts +40 -0
  261. package/dist/src/shell/Toolbar.d.ts.map +1 -0
  262. package/dist/src/shell/Toolbar.js +125 -0
  263. package/dist/src/shell/Toolbar.js.map +1 -0
  264. package/dist/src/shell/WidthField.d.ts +24 -0
  265. package/dist/src/shell/WidthField.d.ts.map +1 -0
  266. package/dist/src/shell/WidthField.js +40 -0
  267. package/dist/src/shell/WidthField.js.map +1 -0
  268. package/dist/src/shell/catalogueContext.d.ts +6 -0
  269. package/dist/src/shell/catalogueContext.d.ts.map +1 -0
  270. package/dist/src/shell/catalogueContext.js +14 -0
  271. package/dist/src/shell/catalogueContext.js.map +1 -0
  272. package/dist/src/shell/codeTokens.d.ts +23 -0
  273. package/dist/src/shell/codeTokens.d.ts.map +1 -0
  274. package/dist/src/shell/codeTokens.js +48 -0
  275. package/dist/src/shell/codeTokens.js.map +1 -0
  276. package/dist/src/shell/codeWriter.d.ts +6 -0
  277. package/dist/src/shell/codeWriter.d.ts.map +1 -0
  278. package/dist/src/shell/codeWriter.js +14 -0
  279. package/dist/src/shell/codeWriter.js.map +1 -0
  280. package/dist/src/shell/compareVariants.d.ts +35 -0
  281. package/dist/src/shell/compareVariants.d.ts.map +1 -0
  282. package/dist/src/shell/compareVariants.js +68 -0
  283. package/dist/src/shell/compareVariants.js.map +1 -0
  284. package/dist/src/shell/dockTabs.d.ts +63 -0
  285. package/dist/src/shell/dockTabs.d.ts.map +1 -0
  286. package/dist/src/shell/dockTabs.js +140 -0
  287. package/dist/src/shell/dockTabs.js.map +1 -0
  288. package/dist/src/shell/icons.d.ts +47 -0
  289. package/dist/src/shell/icons.d.ts.map +1 -0
  290. package/dist/src/shell/icons.js +36 -0
  291. package/dist/src/shell/icons.js.map +1 -0
  292. package/dist/src/shell/keyboard.d.ts +35 -0
  293. package/dist/src/shell/keyboard.d.ts.map +1 -0
  294. package/dist/src/shell/keyboard.js +51 -0
  295. package/dist/src/shell/keyboard.js.map +1 -0
  296. package/dist/src/shell/mountShell.d.ts +22 -0
  297. package/dist/src/shell/mountShell.d.ts.map +1 -0
  298. package/dist/src/shell/mountShell.js +39 -0
  299. package/dist/src/shell/mountShell.js.map +1 -0
  300. package/dist/src/shell/shell.css +1831 -0
  301. package/dist/src/shell/strings.d.ts +184 -0
  302. package/dist/src/shell/strings.d.ts.map +1 -0
  303. package/dist/src/shell/strings.js +188 -0
  304. package/dist/src/shell/strings.js.map +1 -0
  305. package/dist/src/shell/switchView.d.ts +23 -0
  306. package/dist/src/shell/switchView.d.ts.map +1 -0
  307. package/dist/src/shell/switchView.js +19 -0
  308. package/dist/src/shell/switchView.js.map +1 -0
  309. package/dist/src/shell/treeSearch.d.ts +35 -0
  310. package/dist/src/shell/treeSearch.d.ts.map +1 -0
  311. package/dist/src/shell/treeSearch.js +60 -0
  312. package/dist/src/shell/treeSearch.js.map +1 -0
  313. package/dist/src/shell/useComponentDocs.d.ts +16 -0
  314. package/dist/src/shell/useComponentDocs.d.ts.map +1 -0
  315. package/dist/src/shell/useComponentDocs.js +25 -0
  316. package/dist/src/shell/useComponentDocs.js.map +1 -0
  317. package/dist/src/shell/useCopy.d.ts +10 -0
  318. package/dist/src/shell/useCopy.d.ts.map +1 -0
  319. package/dist/src/shell/useCopy.js +23 -0
  320. package/dist/src/shell/useCopy.js.map +1 -0
  321. package/dist/src/shell/useFrameMessages.d.ts +54 -0
  322. package/dist/src/shell/useFrameMessages.d.ts.map +1 -0
  323. package/dist/src/shell/useFrameMessages.js +90 -0
  324. package/dist/src/shell/useFrameMessages.js.map +1 -0
  325. package/dist/src/shell/useFrameQueue.d.ts +29 -0
  326. package/dist/src/shell/useFrameQueue.d.ts.map +1 -0
  327. package/dist/src/shell/useFrameQueue.js +72 -0
  328. package/dist/src/shell/useFrameQueue.js.map +1 -0
  329. package/dist/src/shell/useLiveView.d.ts +29 -0
  330. package/dist/src/shell/useLiveView.d.ts.map +1 -0
  331. package/dist/src/shell/useLiveView.js +51 -0
  332. package/dist/src/shell/useLiveView.js.map +1 -0
  333. package/dist/src/shell/useLoaded.d.ts +20 -0
  334. package/dist/src/shell/useLoaded.d.ts.map +1 -0
  335. package/dist/src/shell/useLoaded.js +40 -0
  336. package/dist/src/shell/useLoaded.js.map +1 -0
  337. package/dist/src/shell/usePageDoc.d.ts +20 -0
  338. package/dist/src/shell/usePageDoc.d.ts.map +1 -0
  339. package/dist/src/shell/usePageDoc.js +21 -0
  340. package/dist/src/shell/usePageDoc.js.map +1 -0
  341. package/dist/src/shell/usePopover.d.ts +23 -0
  342. package/dist/src/shell/usePopover.d.ts.map +1 -0
  343. package/dist/src/shell/usePopover.js +39 -0
  344. package/dist/src/shell/usePopover.js.map +1 -0
  345. package/dist/src/shell/useRecentPages.d.ts +21 -0
  346. package/dist/src/shell/useRecentPages.d.ts.map +1 -0
  347. package/dist/src/shell/useRecentPages.js +62 -0
  348. package/dist/src/shell/useRecentPages.js.map +1 -0
  349. package/dist/src/shell/useScrollMemory.d.ts +40 -0
  350. package/dist/src/shell/useScrollMemory.d.ts.map +1 -0
  351. package/dist/src/shell/useScrollMemory.js +69 -0
  352. package/dist/src/shell/useScrollMemory.js.map +1 -0
  353. package/dist/src/shell/useSidebarLayout.d.ts +14 -0
  354. package/dist/src/shell/useSidebarLayout.d.ts.map +1 -0
  355. package/dist/src/shell/useSidebarLayout.js +19 -0
  356. package/dist/src/shell/useSidebarLayout.js.map +1 -0
  357. package/dist/src/shell/useStored.d.ts +11 -0
  358. package/dist/src/shell/useStored.d.ts.map +1 -0
  359. package/dist/src/shell/useStored.js +68 -0
  360. package/dist/src/shell/useStored.js.map +1 -0
  361. package/dist/src/shell/useStoryCode.d.ts +14 -0
  362. package/dist/src/shell/useStoryCode.d.ts.map +1 -0
  363. package/dist/src/shell/useStoryCode.js +29 -0
  364. package/dist/src/shell/useStoryCode.js.map +1 -0
  365. package/dist/src/shell/useStoryHeights.d.ts +9 -0
  366. package/dist/src/shell/useStoryHeights.d.ts.map +1 -0
  367. package/dist/src/shell/useStoryHeights.js +31 -0
  368. package/dist/src/shell/useStoryHeights.js.map +1 -0
  369. package/dist/src/shell/useStoryIdsElement.d.ts +7 -0
  370. package/dist/src/shell/useStoryIdsElement.d.ts.map +1 -0
  371. package/dist/src/shell/useStoryIdsElement.js +29 -0
  372. package/dist/src/shell/useStoryIdsElement.js.map +1 -0
  373. package/dist/src/shell/useStoryKeys.d.ts +11 -0
  374. package/dist/src/shell/useStoryKeys.d.ts.map +1 -0
  375. package/dist/src/shell/useStoryKeys.js +40 -0
  376. package/dist/src/shell/useStoryKeys.js.map +1 -0
  377. package/dist/src/shell/useSystemDark.d.ts +3 -0
  378. package/dist/src/shell/useSystemDark.d.ts.map +1 -0
  379. package/dist/src/shell/useSystemDark.js +19 -0
  380. package/dist/src/shell/useSystemDark.js.map +1 -0
  381. package/dist/src/sourceFiles.d.ts +18 -0
  382. package/dist/src/sourceFiles.d.ts.map +1 -0
  383. package/dist/src/sourceFiles.js +22 -0
  384. package/dist/src/sourceFiles.js.map +1 -0
  385. package/dist/src/storyBackground.d.ts +21 -0
  386. package/dist/src/storyBackground.d.ts.map +1 -0
  387. package/dist/src/storyBackground.js +27 -0
  388. package/dist/src/storyBackground.js.map +1 -0
  389. package/dist/src/storyClock.d.ts +62 -0
  390. package/dist/src/storyClock.d.ts.map +1 -0
  391. package/dist/src/storyClock.js +51 -0
  392. package/dist/src/storyClock.js.map +1 -0
  393. package/dist/src/storyGlobals.d.ts +60 -0
  394. package/dist/src/storyGlobals.d.ts.map +1 -0
  395. package/dist/src/storyGlobals.js +117 -0
  396. package/dist/src/storyGlobals.js.map +1 -0
  397. package/dist/src/storyHeights.d.ts +37 -0
  398. package/dist/src/storyHeights.d.ts.map +1 -0
  399. package/dist/src/storyHeights.js +53 -0
  400. package/dist/src/storyHeights.js.map +1 -0
  401. package/dist/src/storyIdsElement.d.ts +9 -0
  402. package/dist/src/storyIdsElement.d.ts.map +1 -0
  403. package/dist/src/storyIdsElement.js +9 -0
  404. package/dist/src/storyIdsElement.js.map +1 -0
  405. package/dist/src/storyTexts.d.ts +43 -0
  406. package/dist/src/storyTexts.d.ts.map +1 -0
  407. package/dist/src/storyTexts.js +71 -0
  408. package/dist/src/storyTexts.js.map +1 -0
  409. package/dist/src/storyTree.d.ts +215 -0
  410. package/dist/src/storyTree.d.ts.map +1 -0
  411. package/dist/src/storyTree.js +308 -0
  412. package/dist/src/storyTree.js.map +1 -0
  413. package/dist/src/switches.d.ts +156 -0
  414. package/dist/src/switches.d.ts.map +1 -0
  415. package/dist/src/switches.js +193 -0
  416. package/dist/src/switches.js.map +1 -0
  417. package/dist/src/viewState.d.ts +194 -0
  418. package/dist/src/viewState.d.ts.map +1 -0
  419. package/dist/src/viewState.js +303 -0
  420. package/dist/src/viewState.js.map +1 -0
  421. package/dist/src/vite/adapter.d.ts +70 -0
  422. package/dist/src/vite/adapter.d.ts.map +1 -0
  423. package/dist/src/vite/adapter.js +22 -0
  424. package/dist/src/vite/adapter.js.map +1 -0
  425. package/dist/src/vite/autoTitle.d.ts +28 -0
  426. package/dist/src/vite/autoTitle.d.ts.map +1 -0
  427. package/dist/src/vite/autoTitle.js +44 -0
  428. package/dist/src/vite/autoTitle.js.map +1 -0
  429. package/dist/src/vite/componentPage.d.ts +34 -0
  430. package/dist/src/vite/componentPage.d.ts.map +1 -0
  431. package/dist/src/vite/componentPage.js +94 -0
  432. package/dist/src/vite/componentPage.js.map +1 -0
  433. package/dist/src/vite/config.d.ts +72 -0
  434. package/dist/src/vite/config.d.ts.map +1 -0
  435. package/dist/src/vite/config.js +25 -0
  436. package/dist/src/vite/config.js.map +1 -0
  437. package/dist/src/vite/configFile.d.ts +76 -0
  438. package/dist/src/vite/configFile.d.ts.map +1 -0
  439. package/dist/src/vite/configFile.js +190 -0
  440. package/dist/src/vite/configFile.js.map +1 -0
  441. package/dist/src/vite/docsExtractor.d.ts +46 -0
  442. package/dist/src/vite/docsExtractor.d.ts.map +1 -0
  443. package/dist/src/vite/docsExtractor.js +88 -0
  444. package/dist/src/vite/docsExtractor.js.map +1 -0
  445. package/dist/src/vite/docsProgram.d.ts +42 -0
  446. package/dist/src/vite/docsProgram.d.ts.map +1 -0
  447. package/dist/src/vite/docsProgram.js +144 -0
  448. package/dist/src/vite/docsProgram.js.map +1 -0
  449. package/dist/src/vite/docsWorker.d.ts +2 -0
  450. package/dist/src/vite/docsWorker.d.ts.map +1 -0
  451. package/dist/src/vite/docsWorker.js +68 -0
  452. package/dist/src/vite/docsWorker.js.map +1 -0
  453. package/dist/src/vite/forcedStates.d.ts +27 -0
  454. package/dist/src/vite/forcedStates.d.ts.map +1 -0
  455. package/dist/src/vite/forcedStates.js +60 -0
  456. package/dist/src/vite/forcedStates.js.map +1 -0
  457. package/dist/src/vite/forgebookPlugin.d.ts +28 -0
  458. package/dist/src/vite/forgebookPlugin.d.ts.map +1 -0
  459. package/dist/src/vite/forgebookPlugin.js +375 -0
  460. package/dist/src/vite/forgebookPlugin.js.map +1 -0
  461. package/dist/src/vite/highlightCode.d.ts +16 -0
  462. package/dist/src/vite/highlightCode.d.ts.map +1 -0
  463. package/dist/src/vite/highlightCode.js +82 -0
  464. package/dist/src/vite/highlightCode.js.map +1 -0
  465. package/dist/src/vite/indexStoryFile.d.ts +35 -0
  466. package/dist/src/vite/indexStoryFile.d.ts.map +1 -0
  467. package/dist/src/vite/indexStoryFile.js +458 -0
  468. package/dist/src/vite/indexStoryFile.js.map +1 -0
  469. package/dist/src/vite/pages.d.ts +49 -0
  470. package/dist/src/vite/pages.d.ts.map +1 -0
  471. package/dist/src/vite/pages.js +171 -0
  472. package/dist/src/vite/pages.js.map +1 -0
  473. package/dist/src/vite/prebundled.d.ts +30 -0
  474. package/dist/src/vite/prebundled.d.ts.map +1 -0
  475. package/dist/src/vite/prebundled.js +81 -0
  476. package/dist/src/vite/prebundled.js.map +1 -0
  477. package/dist/src/vite/storyCode.d.ts +28 -0
  478. package/dist/src/vite/storyCode.d.ts.map +1 -0
  479. package/dist/src/vite/storyCode.js +80 -0
  480. package/dist/src/vite/storyCode.js.map +1 -0
  481. package/dist/src/vite/storyFilesModule.d.ts +17 -0
  482. package/dist/src/vite/storyFilesModule.d.ts.map +1 -0
  483. package/dist/src/vite/storyFilesModule.js +64 -0
  484. package/dist/src/vite/storyFilesModule.js.map +1 -0
  485. package/dist/src/vite/storyMeta.d.ts +34 -0
  486. package/dist/src/vite/storyMeta.d.ts.map +1 -0
  487. package/dist/src/vite/storyMeta.js +74 -0
  488. package/dist/src/vite/storyMeta.js.map +1 -0
  489. package/dist/src/vite/typeScriptPieces.d.ts +23 -0
  490. package/dist/src/vite/typeScriptPieces.d.ts.map +1 -0
  491. package/dist/src/vite/typeScriptPieces.js +236 -0
  492. package/dist/src/vite/typeScriptPieces.js.map +1 -0
  493. package/package.json +202 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/frame/renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEjF,8FAA8F;AAC9F,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAEpF,iEAAiE;AACjE,MAAM,MAAM,YAAY,GAAG;IACzB,yBAAyB;IACzB,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,sEAAsE;IACtE,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,yGAAyG;IACzG,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,qGAAqG;IACrG,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,wFAAwF;IACxF,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,SAAS,eAAe,EAAE,CAAC;IAChD,wFAAwF;IACxF,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnD,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACpD,CAAC;AAEF,yDAAyD;AACzD,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;IACjD,4CAA4C;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAEF,yCAAyC;AACzC,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,CACd,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,KAC5B,YAAY,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,CAAC;CAC5D,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,KAAK,MAAM,CAAC;AAE7E,mHAAmH;AACnH,eAAO,MAAM,YAAY,EAAE,YAK1B,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The contract between Forgebook and a framework: how the frame draws one story in one canvas, draws it again with
3
+ * other args and takes it away, and how the shell writes a story drawn from its args as code.
4
+ *
5
+ * @remarks
6
+ * The frame owns everything a framework does not need to know: the address and the view, the messages with the
7
+ * shell, the style sheets, the play function, Replay, the matrix's layout, the story clock and the error shown in
8
+ * place of a story. A framework package (`@forgebook/react`) implements this type and hands it to the frame; another
9
+ * framework implements the same type. A story's decorators, providers and error capture are the framework's, since
10
+ * they return or catch the framework's own output.
11
+ *
12
+ * @module
13
+ */
14
+ /** The `step` a render and a decorator receive: outside a play there is no trace, so a step only runs its part. */
15
+ export const untracedStep = async (_label, run) => {
16
+ await run();
17
+ };
18
+ //# sourceMappingURL=renderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../../src/frame/renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAkFH,mHAAmH;AACnH,MAAM,CAAC,MAAM,YAAY,GAAiB,KAAK,EAC7C,MAAc,EACd,GAA+B,EAChB,EAAE;IACjB,MAAM,GAAG,EAAE,CAAC;AACd,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Waiting for a story's animations to end, for the Replay control's exit.
3
+ *
4
+ * @remarks
5
+ * An endless animation (a loading shimmer, a spinner) never finishes, so waiting for every animation of the document
6
+ * would never return: only the animations with an end are awaited.
7
+ *
8
+ * @module
9
+ */
10
+ /** An animation as the wait reads it: its timing, and the promise of its end. */
11
+ export type SettlingAnimation = Pick<Animation, "effect" | "finished">;
12
+ /**
13
+ * The animations that end: every one but the endless ones.
14
+ *
15
+ * @param animations - the document's animations.
16
+ */
17
+ export declare const endingAnimations: <TAnimation extends SettlingAnimation>(animations: readonly TAnimation[]) => TAnimation[];
18
+ /**
19
+ * Resolves once every animation of the document that ends has finished or been cancelled, a frame after the call.
20
+ *
21
+ * @param document - the frame's document.
22
+ */
23
+ export declare const animationsSettled: (document: Document) => Promise<void>;
24
+ //# sourceMappingURL=settle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settle.d.ts","sourceRoot":"","sources":["../../../src/frame/settle.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,iFAAiF;AACjF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,GAAG,UAAU,CAAC,CAAC;AAEvE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,SAAS,iBAAiB,EACnE,YAAY,SAAS,UAAU,EAAE,KAChC,UAAU,EAA6F,CAAC;AAE3G;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAU,UAAU,QAAQ,KAAG,OAAO,CAAC,IAAI,CAGxE,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Waiting for a story's animations to end, for the Replay control's exit.
3
+ *
4
+ * @remarks
5
+ * An endless animation (a loading shimmer, a spinner) never finishes, so waiting for every animation of the document
6
+ * would never return: only the animations with an end are awaited.
7
+ *
8
+ * @module
9
+ */
10
+ /**
11
+ * The animations that end: every one but the endless ones.
12
+ *
13
+ * @param animations - the document's animations.
14
+ */
15
+ export const endingAnimations = (animations) => animations.filter((animation) => animation.effect?.getTiming().iterations !== Infinity);
16
+ /**
17
+ * Resolves once every animation of the document that ends has finished or been cancelled, a frame after the call.
18
+ *
19
+ * @param document - the frame's document.
20
+ */
21
+ export const animationsSettled = async (document) => {
22
+ await new Promise((resolve) => requestAnimationFrame(resolve));
23
+ await Promise.allSettled(endingAnimations(document.getAnimations()).map((animation) => animation.finished));
24
+ };
25
+ //# sourceMappingURL=settle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settle.js","sourceRoot":"","sources":["../../../src/frame/settle.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,UAAiC,EACnB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC;AAE3G;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EAAE,QAAkB,EAAiB,EAAE;IAC3E,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/D,MAAM,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC9G,CAAC,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * A frame's one retry when its story's module is stale: after the dev server prepared its dependencies again (a new
3
+ * dependency arrived) or a new build replaced the files, a dynamic import of the old module fails, and reloading the
4
+ * frame fetches the new one.
5
+ *
6
+ * @remarks
7
+ * The frame reloads once per address; the mark lives in `sessionStorage`, so a second failure shows the error instead
8
+ * of reloading forever. Where the storage is unavailable (a private window, blocked site data) the frame does not
9
+ * retry and shows the error.
10
+ *
11
+ * @module
12
+ */
13
+ /**
14
+ * Whether an error message is a dynamic import that failed to load.
15
+ *
16
+ * @param message - the error's message.
17
+ */
18
+ export declare const isStaleModuleError: (message: string) => boolean;
19
+ /**
20
+ * Marks an address as retried, unless it already is.
21
+ *
22
+ * @param storage - the session storage, or `undefined` where it is unavailable.
23
+ * @param address - the frame's address.
24
+ * @returns whether the frame should reload: `false` when it already did, or when there is nowhere to remember it.
25
+ */
26
+ export declare const markRetry: (storage: Storage | undefined, address: string) => boolean;
27
+ /**
28
+ * Forgets an address's retry once its story rendered, so a later stale module gets its retry too.
29
+ *
30
+ * @param storage - the session storage, or `undefined` where it is unavailable.
31
+ * @param address - the frame's address.
32
+ */
33
+ export declare const clearRetry: (storage: Storage | undefined, address: string) => void;
34
+ /**
35
+ * The window's session storage, or `undefined` where reading it throws.
36
+ *
37
+ * @param target - the frame's window.
38
+ */
39
+ export declare const sessionStorageOf: (target: Window) => Storage | undefined;
40
+ //# sourceMappingURL=staleModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staleModule.d.ts","sourceRoot":"","sources":["../../../src/frame/staleModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAYH;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,SAAS,MAAM,KAAG,OACW,CAAC;AAEjE;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,SAAS,OAAO,GAAG,SAAS,EAAE,SAAS,MAAM,KAAG,OASzE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,SAAS,OAAO,GAAG,SAAS,EAAE,SAAS,MAAM,KAAG,IAM1E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,OAAO,GAAG,SAM3D,CAAC"}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * A frame's one retry when its story's module is stale: after the dev server prepared its dependencies again (a new
3
+ * dependency arrived) or a new build replaced the files, a dynamic import of the old module fails, and reloading the
4
+ * frame fetches the new one.
5
+ *
6
+ * @remarks
7
+ * The frame reloads once per address; the mark lives in `sessionStorage`, so a second failure shows the error instead
8
+ * of reloading forever. Where the storage is unavailable (a private window, blocked site data) the frame does not
9
+ * retry and shows the error.
10
+ *
11
+ * @module
12
+ */
13
+ /** How each engine words a dynamic import that failed to load: Chromium, Firefox, WebKit. */
14
+ const STALE_MODULE_MESSAGES = [
15
+ "Failed to fetch dynamically imported module",
16
+ "error loading dynamically imported module",
17
+ "Importing a module script failed"
18
+ ];
19
+ /** The key of a frame address's retry mark. */
20
+ const markKey = (address) => `forgebook:reloaded:${address}`;
21
+ /**
22
+ * Whether an error message is a dynamic import that failed to load.
23
+ *
24
+ * @param message - the error's message.
25
+ */
26
+ export const isStaleModuleError = (message) => STALE_MODULE_MESSAGES.some((stale) => message.includes(stale));
27
+ /**
28
+ * Marks an address as retried, unless it already is.
29
+ *
30
+ * @param storage - the session storage, or `undefined` where it is unavailable.
31
+ * @param address - the frame's address.
32
+ * @returns whether the frame should reload: `false` when it already did, or when there is nowhere to remember it.
33
+ */
34
+ export const markRetry = (storage, address) => {
35
+ if (storage === undefined)
36
+ return false;
37
+ try {
38
+ if (storage.getItem(markKey(address)) !== null)
39
+ return false;
40
+ storage.setItem(markKey(address), "1");
41
+ return true;
42
+ }
43
+ catch {
44
+ return false;
45
+ }
46
+ };
47
+ /**
48
+ * Forgets an address's retry once its story rendered, so a later stale module gets its retry too.
49
+ *
50
+ * @param storage - the session storage, or `undefined` where it is unavailable.
51
+ * @param address - the frame's address.
52
+ */
53
+ export const clearRetry = (storage, address) => {
54
+ try {
55
+ storage?.removeItem(markKey(address));
56
+ }
57
+ catch {
58
+ // nothing to forget where the storage refuses access
59
+ }
60
+ };
61
+ /**
62
+ * The window's session storage, or `undefined` where reading it throws.
63
+ *
64
+ * @param target - the frame's window.
65
+ */
66
+ export const sessionStorageOf = (target) => {
67
+ try {
68
+ return target.sessionStorage;
69
+ }
70
+ catch {
71
+ return undefined;
72
+ }
73
+ };
74
+ //# sourceMappingURL=staleModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staleModule.js","sourceRoot":"","sources":["../../../src/frame/staleModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,6FAA6F;AAC7F,MAAM,qBAAqB,GAAG;IAC5B,6CAA6C;IAC7C,2CAA2C;IAC3C,kCAAkC;CACnC,CAAC;AAEF,+CAA+C;AAC/C,MAAM,OAAO,GAAG,CAAC,OAAe,EAAU,EAAE,CAAC,sBAAsB,OAAO,EAAE,CAAC;AAE7E;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,OAAe,EAAW,EAAE,CAC7D,qBAAqB,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;AAEjE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,OAA4B,EAAE,OAAe,EAAW,EAAE;IAClF,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxC,IAAI,CAAC;QACH,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC;QAC7D,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC;QACvC,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAA4B,EAAE,OAAe,EAAQ,EAAE;IAChF,IAAI,CAAC;QACH,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IACxC,CAAC;IAAC,MAAM,CAAC;QACP,qDAAqD;IACvD,CAAC;AACH,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAc,EAAuB,EAAE;IACtE,IAAI,CAAC;QACH,OAAO,MAAM,CAAC,cAAc,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The element a story is drawn in, as the frame prepares it for any framework: its layout and the states it forces.
3
+ *
4
+ * @module
5
+ */
6
+ import type { LoadedStory } from "./storyModule.ts";
7
+ /**
8
+ * A new canvas for the story alone: padded, centred or the whole frame, with its forced states.
9
+ *
10
+ * @param document - the frame's document.
11
+ * @param story - the story.
12
+ */
13
+ export declare const storyCanvas: (document: Document, story: LoadedStory) => HTMLElement;
14
+ /**
15
+ * Sets the attribute that forces the story's states on an element, when it forces any.
16
+ *
17
+ * @param element - the story's canvas, or a cell of its matrix.
18
+ * @param story - the story.
19
+ */
20
+ export declare const forceStates: (element: HTMLElement, story: LoadedStory) => void;
21
+ //# sourceMappingURL=storyCanvas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyCanvas.d.ts","sourceRoot":"","sources":["../../../src/frame/storyCanvas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,UAAU,QAAQ,EAAE,OAAO,WAAW,KAAG,WAMpE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,SAAS,WAAW,EAAE,OAAO,WAAW,KAAG,IAEtE,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The element a story is drawn in, as the frame prepares it for any framework: its layout and the states it forces.
3
+ *
4
+ * @module
5
+ */
6
+ import { FORCE_ATTRIBUTE } from "../vite/forcedStates.js";
7
+ /**
8
+ * A new canvas for the story alone: padded, centred or the whole frame, with its forced states.
9
+ *
10
+ * @param document - the frame's document.
11
+ * @param story - the story.
12
+ */
13
+ export const storyCanvas = (document, story) => {
14
+ const canvas = document.createElement("div");
15
+ canvas.className = "forgebook-frame";
16
+ canvas.dataset["layout"] = story.layout;
17
+ forceStates(canvas, story);
18
+ return canvas;
19
+ };
20
+ /**
21
+ * Sets the attribute that forces the story's states on an element, when it forces any.
22
+ *
23
+ * @param element - the story's canvas, or a cell of its matrix.
24
+ * @param story - the story.
25
+ */
26
+ export const forceStates = (element, story) => {
27
+ if (story.forceState.length > 0)
28
+ element.setAttribute(FORCE_ATTRIBUTE, story.forceState.join(" "));
29
+ };
30
+ //# sourceMappingURL=storyCanvas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyCanvas.js","sourceRoot":"","sources":["../../../src/frame/storyCanvas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,QAAkB,EAAE,KAAkB,EAAe,EAAE;IACjF,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC7C,MAAM,CAAC,SAAS,GAAG,iBAAiB,CAAC;IACrC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;IACxC,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC3B,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAoB,EAAE,KAAkB,EAAQ,EAAE;IAC5E,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,CAAC,YAAY,CAAC,eAAe,EAAE,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACrG,CAAC,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * What runs before a story is drawn, as CSF orders it: its loaders, then its set-ups (`beforeEach`), each set-up's
3
+ * cleanup kept to run when the story is mounted again or left. The frame and the server tests prepare a story the same
4
+ * way.
5
+ *
6
+ * @remarks
7
+ * The loaders run at once and their results merge in their order (the preview's, the meta's, the story's: a later key
8
+ * wins); the set-ups run one after another, after the loaders, and see what they loaded. A set-up that throws undoes
9
+ * the ones before it, so a failed story leaves nothing behind.
10
+ *
11
+ * @module
12
+ */
13
+ import type { StoryHookContext } from "@forgebook/story-format/csf";
14
+ import type { LoadedArgs, LoadedStory } from "./storyModule.ts";
15
+ /** A story ready to be drawn: what its loaders returned, and how to undo its set-ups. */
16
+ export type PreparedStory = {
17
+ /** What the loaders returned, merged: the story's `context.loaded`. */
18
+ readonly loaded: Readonly<Record<string, unknown>>;
19
+ /** Runs the set-ups' cleanups, the last set-up's first. */
20
+ readonly cleanup: () => Promise<void>;
21
+ };
22
+ /**
23
+ * Runs a story's loaders and set-ups.
24
+ *
25
+ * @param story - the story.
26
+ * @param context - its args and what it is shown with; `loaded` is filled in here.
27
+ * @returns what it loaded and how to undo its set-ups.
28
+ * @throws What a loader or a set-up throws, after undoing the set-ups that ran.
29
+ */
30
+ export declare const prepareStory: (story: Pick<LoadedStory, "loaders" | "beforeEach">, context: Omit<StoryHookContext<LoadedArgs>, "loaded">) => Promise<PreparedStory>;
31
+ //# sourceMappingURL=storyHooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyHooks.d.ts","sourceRoot":"","sources":["../../../src/frame/storyHooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEhE,yFAAyF;AACzF,MAAM,MAAM,aAAa,GAAG;IAC1B,uEAAuE;IACvE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACnD,2DAA2D;IAC3D,QAAQ,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC,CAAC;AAwBF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,YAAY,CAAC,EAClD,SAAS,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,KACpD,OAAO,CAAC,aAAa,CAcvB,CAAC"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * What runs before a story is drawn, as CSF orders it: its loaders, then its set-ups (`beforeEach`), each set-up's
3
+ * cleanup kept to run when the story is mounted again or left. The frame and the server tests prepare a story the same
4
+ * way.
5
+ *
6
+ * @remarks
7
+ * The loaders run at once and their results merge in their order (the preview's, the meta's, the story's: a later key
8
+ * wins); the set-ups run one after another, after the loaders, and see what they loaded. A set-up that throws undoes
9
+ * the ones before it, so a failed story leaves nothing behind.
10
+ *
11
+ * @module
12
+ */
13
+ /** Whether a loader's result is an object whose keys reach `context.loaded`. */
14
+ const isLoaded = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
15
+ /**
16
+ * Runs cleanups, the last one first; every one runs even when an earlier one throws, and the first error is thrown
17
+ * after them.
18
+ *
19
+ * @param cleanups - the cleanups, in the order their set-ups ran.
20
+ */
21
+ const runCleanups = async (cleanups) => {
22
+ const errors = [];
23
+ for (const cleanup of [...cleanups].reverse()) {
24
+ try {
25
+ await cleanup();
26
+ }
27
+ catch (error) {
28
+ errors.push(error);
29
+ }
30
+ }
31
+ if (errors.length > 0)
32
+ throw errors[0];
33
+ };
34
+ /**
35
+ * Runs a story's loaders and set-ups.
36
+ *
37
+ * @param story - the story.
38
+ * @param context - its args and what it is shown with; `loaded` is filled in here.
39
+ * @returns what it loaded and how to undo its set-ups.
40
+ * @throws What a loader or a set-up throws, after undoing the set-ups that ran.
41
+ */
42
+ export const prepareStory = async (story, context) => {
43
+ const results = await Promise.all(story.loaders.map((loader) => loader({ ...context, loaded: {} })));
44
+ const loaded = Object.assign({}, ...results.filter(isLoaded));
45
+ const cleanups = [];
46
+ try {
47
+ for (const beforeEach of story.beforeEach) {
48
+ const cleanup = await beforeEach({ ...context, loaded });
49
+ if (typeof cleanup === "function")
50
+ cleanups.push(cleanup);
51
+ }
52
+ }
53
+ catch (error) {
54
+ await runCleanups(cleanups);
55
+ throw error;
56
+ }
57
+ return { loaded, cleanup: () => runCleanups(cleanups) };
58
+ };
59
+ //# sourceMappingURL=storyHooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyHooks.js","sourceRoot":"","sources":["../../../src/frame/storyHooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAcH,gFAAgF;AAChF,MAAM,QAAQ,GAAG,CAAC,KAAc,EAA8C,EAAE,CAC9E,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,WAAW,GAAG,KAAK,EAAE,QAAiD,EAAiB,EAAE;IAC7F,MAAM,MAAM,GAAc,EAAE,CAAC;IAC7B,KAAK,MAAM,OAAO,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;QAC9C,IAAI,CAAC;YACH,MAAM,OAAO,EAAE,CAAC;QAClB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,MAAM,CAAC,CAAC,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAC/B,KAAkD,EAClD,OAAqD,EAC7B,EAAE;IAC1B,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACrG,MAAM,MAAM,GAAsC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjG,MAAM,QAAQ,GAAmC,EAAE,CAAC;IACpD,IAAI,CAAC;QACH,KAAK,MAAM,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;YAC1C,MAAM,OAAO,GAAG,MAAM,UAAU,CAAC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;YACzD,IAAI,OAAO,OAAO,KAAK,UAAU;gBAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC5B,MAAM,KAAK,CAAC;IACd,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC;AAC1D,CAAC,CAAC"}
@@ -0,0 +1,104 @@
1
+ /**
2
+ * A loaded story file read safely: the module is code the catalogue did not type-check against its own types, so
3
+ * every part the frame uses is checked before use.
4
+ *
5
+ * @remarks
6
+ * Objects, strings and lists are checked for their shape; a function's parameters cannot be checked at run time, so a
7
+ * function is taken with the signature CSF gives it (a render, a play function, a decorator). What a render and a
8
+ * decorator return is the framework's (`unknown` here); its renderer draws it. The meta's component is the framework's
9
+ * too: a function, or an object some frameworks make one of (React's `memo` and `forwardRef`), so the frame passes on
10
+ * whatever the meta names and the renderer reads it.
11
+ *
12
+ * A story is an object (CSF 3) or a function (CSF 2: the function is its render, its args and parameters are
13
+ * properties assigned to it). The meta may give the render and the play function every story without its own uses.
14
+ *
15
+ * @module
16
+ */
17
+ import type { ForcedState, ReplayMode, StoryBeforeEach, StoryContext, StoryLoader, StoryParameters, StoryPlayContext } from "@forgebook/story-format/csf";
18
+ import type { StoryControlsSetting } from "@forgebook/story-format/source";
19
+ /** Args as the frame handles them: whatever the story's component takes. */
20
+ export type LoadedArgs = Readonly<Record<string, unknown>>;
21
+ /** A component of the loaded file, as the framework makes one: a function, or an object (React's `memo`). */
22
+ export type LoadedComponent = NonNullable<unknown>;
23
+ /** A decorator of the loaded file. */
24
+ export type LoadedDecorator = (story: () => unknown, context: StoryContext<LoadedArgs>) => unknown;
25
+ /** A loader of the loaded file or the preview. */
26
+ export type LoadedLoader = StoryLoader<LoadedArgs>;
27
+ /** A `beforeEach` of the loaded file or the preview. */
28
+ export type LoadedBeforeEach = StoryBeforeEach<LoadedArgs>;
29
+ /** What the frame renders: the meta and one story, merged. */
30
+ export type LoadedStory = {
31
+ /** The component, when the meta names one. */
32
+ readonly component: LoadedComponent | undefined;
33
+ /** The meta's args, then the story's. */
34
+ readonly args: LoadedArgs;
35
+ /** The story's render, or the meta's, when either has one. */
36
+ readonly render: ((args: LoadedArgs, context: StoryContext<LoadedArgs>) => unknown) | undefined;
37
+ /** The story's play function, or the meta's. */
38
+ readonly play: ((context: StoryPlayContext<LoadedArgs>) => Promise<void> | void) | undefined;
39
+ /** The story's decorators first (innermost), then the meta's. */
40
+ readonly decorators: readonly LoadedDecorator[];
41
+ /** The loaders: the preview's, then the meta's, then the story's. */
42
+ readonly loaders: readonly LoadedLoader[];
43
+ /** The set-ups, in the order they run: the preview's, then the meta's, then the story's. */
44
+ readonly beforeEach: readonly LoadedBeforeEach[];
45
+ /** The states forced on the story's root. */
46
+ readonly forceState: readonly ForcedState[];
47
+ /** The replay, when declared. */
48
+ readonly replay: ReplayMode | undefined;
49
+ /** The `globals` of the meta and the story, the story's over the meta's: what it fixes of the view. */
50
+ readonly globals: Readonly<Record<string, unknown>>;
51
+ /** The `argTypes` of the meta and the story, merged by arg (the story's fields over the meta's). */
52
+ readonly argTypes: Readonly<Record<string, Readonly<Record<string, unknown>>>>;
53
+ /** The props the panel can set: every adjustable one, or only these (none for fixed examples). */
54
+ readonly controls: StoryControlsSetting;
55
+ /** The parameters: the preview's, under the meta's, under the story's. */
56
+ readonly parameters: Readonly<Record<string, unknown>>;
57
+ /** The layout in the frame. */
58
+ readonly layout: NonNullable<StoryParameters["layout"]>;
59
+ /** A Live story's clock start, in ms since the Unix epoch (`parameters.clock`); none for a still (D-504). */
60
+ readonly clockStart: number | undefined;
61
+ };
62
+ /**
63
+ * The meta and one story of a loaded module, merged.
64
+ *
65
+ * @param module - the module, as `import()` gave it.
66
+ * @param exportName - the story's named export.
67
+ * @param preview - the catalogue's preview: its parameters under the meta's and the story's, its loaders and set-ups
68
+ * before theirs (its decorators are the renderer's to put outside); none by default.
69
+ * @returns what the frame renders, or why it cannot.
70
+ */
71
+ export declare const readStory: (module: unknown, exportName: string, preview?: LoadedPreview) => LoadedStory | string;
72
+ /** A catalogue's preview, read: its decorators, its parameters, its setup, its loaders and set-ups. */
73
+ export type LoadedPreview = {
74
+ /** Its decorators, innermost first. */
75
+ readonly decorators: readonly LoadedDecorator[];
76
+ /** Its loaders, before every story's. */
77
+ readonly loaders: readonly LoadedLoader[];
78
+ /** Its set-ups, before every story's. */
79
+ readonly beforeEach: readonly LoadedBeforeEach[];
80
+ /** Its args, under every meta's (Storybook's project args). */
81
+ readonly args: LoadedArgs;
82
+ /** Its `argTypes`, under every meta's. */
83
+ readonly argTypes: Readonly<Record<string, unknown>>;
84
+ /** Its parameters, under every meta's. */
85
+ readonly parameters: Readonly<Record<string, unknown>>;
86
+ /** What runs once before any story renders; nothing when it has none. */
87
+ readonly setup: (() => Promise<void>) | undefined;
88
+ };
89
+ /** The preview of a catalogue that has none. */
90
+ export declare const NO_PREVIEW: LoadedPreview;
91
+ /**
92
+ * A catalogue's preview read safely, as a story file is: from the default export of its module, or the module itself.
93
+ *
94
+ * @param module - the preview's module, as `import()` gave it; none for a catalogue without one.
95
+ */
96
+ export declare const readPreview: (module: unknown) => LoadedPreview;
97
+ /**
98
+ * Previews read one after another, as a catalogue's presets and its own: decorators of the later ones outside the
99
+ * earlier ones', parameters of the later ones over the earlier ones', every setup, loader and set-up in order.
100
+ *
101
+ * @param previews - the previews, the catalogue's own last.
102
+ */
103
+ export declare const mergedPreviews: (previews: readonly LoadedPreview[]) => LoadedPreview;
104
+ //# sourceMappingURL=storyModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyModule.d.ts","sourceRoot":"","sources":["../../../src/frame/storyModule.ts"],"names":[],"mappings":"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"}