@linyjs/plugin-docs 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 (252) hide show
  1. package/README.md +97 -0
  2. package/docs/api-reference/index.md +341 -0
  3. package/docs/best-practices/error-handling.md +462 -0
  4. package/docs/best-practices/naming-conventions.md +495 -0
  5. package/docs/best-practices/performance.md +532 -0
  6. package/docs/best-practices/security.md +620 -0
  7. package/docs/faq.md +323 -0
  8. package/docs/getting-started/first-plugin.md +358 -0
  9. package/docs/getting-started/installation.md +244 -0
  10. package/docs/getting-started/quick-start.md +174 -0
  11. package/docs/guides/client-module.md +598 -0
  12. package/docs/guides/data-persistence.md +536 -0
  13. package/docs/guides/permissions.md +440 -0
  14. package/docs/guides/server-module.md +371 -0
  15. package/docs/guides/ui-slots.md +475 -0
  16. package/docs/migration/v0-to-v1.md +354 -0
  17. package/examples/analytics-plugin/README.md +416 -0
  18. package/examples/analytics-plugin/dist/client/index.d.ts +36 -0
  19. package/examples/analytics-plugin/dist/client/index.js +173 -0
  20. package/examples/analytics-plugin/dist/index.d.ts +64 -0
  21. package/examples/analytics-plugin/dist/index.js +72 -0
  22. package/examples/analytics-plugin/dist/server/index.d.ts +119 -0
  23. package/examples/analytics-plugin/dist/server/index.js +313 -0
  24. package/examples/analytics-plugin/package.json +28 -0
  25. package/examples/analytics-plugin/src/client/index.tsx +410 -0
  26. package/examples/analytics-plugin/src/index.ts +71 -0
  27. package/examples/analytics-plugin/src/server/index.ts +348 -0
  28. package/examples/analytics-plugin/tsconfig.json +21 -0
  29. package/examples/blog-plugin/README.md +316 -0
  30. package/examples/blog-plugin/dist/client/index.d.ts +22 -0
  31. package/examples/blog-plugin/dist/client/index.js +197 -0
  32. package/examples/blog-plugin/dist/server/index.d.ts +5 -0
  33. package/examples/blog-plugin/dist/server/index.js +220 -0
  34. package/examples/blog-plugin/package.json +24 -0
  35. package/examples/blog-plugin/src/client/index.tsx +405 -0
  36. package/examples/blog-plugin/src/server/index.ts +240 -0
  37. package/examples/blog-plugin/tsconfig.json +16 -0
  38. package/examples/hello-world/README.md +101 -0
  39. package/examples/hello-world/dist/client/index.d.ts +5 -0
  40. package/examples/hello-world/dist/client/index.js +80 -0
  41. package/examples/hello-world/dist/server/index.d.ts +5 -0
  42. package/examples/hello-world/dist/server/index.js +38 -0
  43. package/examples/hello-world/node_modules/.package-lock.json +61 -0
  44. package/examples/hello-world/node_modules/@linyjs/client-module-interface/HOOKS_USAGE.md +281 -0
  45. package/examples/hello-world/node_modules/@linyjs/client-module-interface/IMPLEMENTATION_SUMMARY.md +166 -0
  46. package/examples/hello-world/node_modules/@linyjs/client-module-interface/QUICK_REFERENCE.md +130 -0
  47. package/examples/hello-world/node_modules/@linyjs/client-module-interface/README.md +214 -0
  48. package/examples/hello-world/node_modules/@linyjs/client-module-interface/package.json +26 -0
  49. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/application.ts +50 -0
  50. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/comparison-example.tsx +229 -0
  51. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/di.ts +127 -0
  52. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/domain.ts +52 -0
  53. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/hooks-example.tsx +275 -0
  54. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/hooks.ts +175 -0
  55. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/index.ts +87 -0
  56. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/interfaces.ts +117 -0
  57. package/examples/hello-world/node_modules/@linyjs/client-module-interface/src/router.ts +49 -0
  58. package/examples/hello-world/node_modules/@linyjs/client-module-interface/tsconfig.json +10 -0
  59. package/examples/hello-world/node_modules/@linyjs/server-module-interface/package.json +21 -0
  60. package/examples/hello-world/node_modules/@linyjs/server-module-interface/src/application.ts +21 -0
  61. package/examples/hello-world/node_modules/@linyjs/server-module-interface/src/di.ts +127 -0
  62. package/examples/hello-world/node_modules/@linyjs/server-module-interface/src/domain.ts +75 -0
  63. package/examples/hello-world/node_modules/@linyjs/server-module-interface/src/index.ts +55 -0
  64. package/examples/hello-world/node_modules/@linyjs/server-module-interface/src/interfaces.ts +58 -0
  65. package/examples/hello-world/node_modules/@linyjs/server-module-interface/tsconfig.json +8 -0
  66. package/examples/hello-world/node_modules/@types/react/LICENSE +21 -0
  67. package/examples/hello-world/node_modules/@types/react/README.md +15 -0
  68. package/examples/hello-world/node_modules/@types/react/canary.d.ts +129 -0
  69. package/examples/hello-world/node_modules/@types/react/compiler-runtime.d.ts +4 -0
  70. package/examples/hello-world/node_modules/@types/react/experimental.d.ts +184 -0
  71. package/examples/hello-world/node_modules/@types/react/global.d.ts +166 -0
  72. package/examples/hello-world/node_modules/@types/react/index.d.ts +4369 -0
  73. package/examples/hello-world/node_modules/@types/react/jsx-dev-runtime.d.ts +33 -0
  74. package/examples/hello-world/node_modules/@types/react/jsx-runtime.d.ts +24 -0
  75. package/examples/hello-world/node_modules/@types/react/package.json +210 -0
  76. package/examples/hello-world/node_modules/@types/react/ts5.0/canary.d.ts +129 -0
  77. package/examples/hello-world/node_modules/@types/react/ts5.0/experimental.d.ts +184 -0
  78. package/examples/hello-world/node_modules/@types/react/ts5.0/global.d.ts +166 -0
  79. package/examples/hello-world/node_modules/@types/react/ts5.0/index.d.ts +4356 -0
  80. package/examples/hello-world/node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts +33 -0
  81. package/examples/hello-world/node_modules/@types/react/ts5.0/jsx-runtime.d.ts +24 -0
  82. package/examples/hello-world/node_modules/csstype/LICENSE +19 -0
  83. package/examples/hello-world/node_modules/csstype/README.md +291 -0
  84. package/examples/hello-world/node_modules/csstype/index.d.ts +22569 -0
  85. package/examples/hello-world/node_modules/csstype/index.js.flow +6863 -0
  86. package/examples/hello-world/node_modules/csstype/package.json +70 -0
  87. package/examples/hello-world/node_modules/react/LICENSE +21 -0
  88. package/examples/hello-world/node_modules/react/README.md +37 -0
  89. package/examples/hello-world/node_modules/react/cjs/react-compiler-runtime.development.js +24 -0
  90. package/examples/hello-world/node_modules/react/cjs/react-compiler-runtime.production.js +16 -0
  91. package/examples/hello-world/node_modules/react/cjs/react-compiler-runtime.profiling.js +16 -0
  92. package/examples/hello-world/node_modules/react/cjs/react-jsx-dev-runtime.development.js +338 -0
  93. package/examples/hello-world/node_modules/react/cjs/react-jsx-dev-runtime.production.js +14 -0
  94. package/examples/hello-world/node_modules/react/cjs/react-jsx-dev-runtime.profiling.js +14 -0
  95. package/examples/hello-world/node_modules/react/cjs/react-jsx-dev-runtime.react-server.development.js +370 -0
  96. package/examples/hello-world/node_modules/react/cjs/react-jsx-dev-runtime.react-server.production.js +40 -0
  97. package/examples/hello-world/node_modules/react/cjs/react-jsx-runtime.development.js +352 -0
  98. package/examples/hello-world/node_modules/react/cjs/react-jsx-runtime.production.js +34 -0
  99. package/examples/hello-world/node_modules/react/cjs/react-jsx-runtime.profiling.js +34 -0
  100. package/examples/hello-world/node_modules/react/cjs/react-jsx-runtime.react-server.development.js +370 -0
  101. package/examples/hello-world/node_modules/react/cjs/react-jsx-runtime.react-server.production.js +40 -0
  102. package/examples/hello-world/node_modules/react/cjs/react.development.js +1284 -0
  103. package/examples/hello-world/node_modules/react/cjs/react.production.js +542 -0
  104. package/examples/hello-world/node_modules/react/cjs/react.react-server.development.js +848 -0
  105. package/examples/hello-world/node_modules/react/cjs/react.react-server.production.js +423 -0
  106. package/examples/hello-world/node_modules/react/compiler-runtime.js +14 -0
  107. package/examples/hello-world/node_modules/react/index.js +7 -0
  108. package/examples/hello-world/node_modules/react/jsx-dev-runtime.js +7 -0
  109. package/examples/hello-world/node_modules/react/jsx-dev-runtime.react-server.js +7 -0
  110. package/examples/hello-world/node_modules/react/jsx-runtime.js +7 -0
  111. package/examples/hello-world/node_modules/react/jsx-runtime.react-server.js +7 -0
  112. package/examples/hello-world/node_modules/react/package.json +51 -0
  113. package/examples/hello-world/node_modules/react/react.react-server.js +7 -0
  114. package/examples/hello-world/node_modules/typescript/LICENSE.txt +55 -0
  115. package/examples/hello-world/node_modules/typescript/README.md +50 -0
  116. package/examples/hello-world/node_modules/typescript/SECURITY.md +41 -0
  117. package/examples/hello-world/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
  118. package/examples/hello-world/node_modules/typescript/bin/tsc +2 -0
  119. package/examples/hello-world/node_modules/typescript/bin/tsserver +2 -0
  120. package/examples/hello-world/node_modules/typescript/lib/_tsc.js +133818 -0
  121. package/examples/hello-world/node_modules/typescript/lib/_tsserver.js +659 -0
  122. package/examples/hello-world/node_modules/typescript/lib/_typingsInstaller.js +222 -0
  123. package/examples/hello-world/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
  124. package/examples/hello-world/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
  125. package/examples/hello-world/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
  126. package/examples/hello-world/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
  127. package/examples/hello-world/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
  128. package/examples/hello-world/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
  129. package/examples/hello-world/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
  130. package/examples/hello-world/node_modules/typescript/lib/lib.d.ts +22 -0
  131. package/examples/hello-world/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
  132. package/examples/hello-world/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
  133. package/examples/hello-world/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
  134. package/examples/hello-world/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
  135. package/examples/hello-world/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
  136. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
  137. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
  138. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
  139. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
  140. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
  141. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
  142. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
  143. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
  144. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
  145. package/examples/hello-world/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  146. package/examples/hello-world/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
  147. package/examples/hello-world/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
  148. package/examples/hello-world/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
  149. package/examples/hello-world/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
  150. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
  151. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
  152. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
  153. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
  154. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
  155. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
  156. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
  157. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
  158. package/examples/hello-world/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
  159. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  160. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
  161. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
  162. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
  163. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
  164. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
  165. package/examples/hello-world/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
  166. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
  167. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
  168. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
  169. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
  170. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
  171. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
  172. package/examples/hello-world/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
  173. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
  174. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
  175. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
  176. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
  177. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
  178. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
  179. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
  180. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
  181. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
  182. package/examples/hello-world/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  183. package/examples/hello-world/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
  184. package/examples/hello-world/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
  185. package/examples/hello-world/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
  186. package/examples/hello-world/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
  187. package/examples/hello-world/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
  188. package/examples/hello-world/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
  189. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
  190. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
  191. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
  192. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
  193. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
  194. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
  195. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
  196. package/examples/hello-world/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
  197. package/examples/hello-world/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
  198. package/examples/hello-world/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
  199. package/examples/hello-world/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
  200. package/examples/hello-world/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
  201. package/examples/hello-world/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
  202. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
  203. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
  204. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
  205. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
  206. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
  207. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
  208. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
  209. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
  210. package/examples/hello-world/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
  211. package/examples/hello-world/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
  212. package/examples/hello-world/node_modules/typescript/lib/lib.es6.d.ts +23 -0
  213. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
  214. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
  215. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
  216. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
  217. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
  218. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
  219. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
  220. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
  221. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
  222. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
  223. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
  224. package/examples/hello-world/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
  225. package/examples/hello-world/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
  226. package/examples/hello-world/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
  227. package/examples/hello-world/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
  228. package/examples/hello-world/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
  229. package/examples/hello-world/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
  230. package/examples/hello-world/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
  231. package/examples/hello-world/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
  232. package/examples/hello-world/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
  233. package/examples/hello-world/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
  234. package/examples/hello-world/node_modules/typescript/lib/tsc.js +8 -0
  235. package/examples/hello-world/node_modules/typescript/lib/tsserver.js +8 -0
  236. package/examples/hello-world/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
  237. package/examples/hello-world/node_modules/typescript/lib/tsserverlibrary.js +21 -0
  238. package/examples/hello-world/node_modules/typescript/lib/typesMap.json +497 -0
  239. package/examples/hello-world/node_modules/typescript/lib/typescript.d.ts +11437 -0
  240. package/examples/hello-world/node_modules/typescript/lib/typescript.js +200276 -0
  241. package/examples/hello-world/node_modules/typescript/lib/typingsInstaller.js +8 -0
  242. package/examples/hello-world/node_modules/typescript/lib/watchGuard.js +53 -0
  243. package/examples/hello-world/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
  244. package/examples/hello-world/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
  245. package/examples/hello-world/node_modules/typescript/package.json +120 -0
  246. package/examples/hello-world/package-lock.json +74 -0
  247. package/examples/hello-world/package.json +23 -0
  248. package/examples/hello-world/src/client/index.tsx +110 -0
  249. package/examples/hello-world/src/server/index.ts +42 -0
  250. package/examples/hello-world/tsconfig.json +16 -0
  251. package/package.json +42 -0
  252. package/src/cli.ts +321 -0
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "csstype",
3
+ "version": "3.2.3",
4
+ "main": "",
5
+ "types": "index.d.ts",
6
+ "description": "Strict TypeScript and Flow types for style based on MDN data",
7
+ "repository": "https://github.com/frenic/csstype",
8
+ "author": "Fredrik Nicol <fredrik.nicol@gmail.com>",
9
+ "license": "MIT",
10
+ "devDependencies": {
11
+ "@babel/core": "^7.28.5",
12
+ "@babel/preset-env": "^7.28.5",
13
+ "@babel/preset-typescript": "^7.28.5",
14
+ "@eslint/js": "^9.39.1",
15
+ "@mdn/browser-compat-data": "7.1.21",
16
+ "@tsconfig/node24": "^24.0.2",
17
+ "@types/chokidar": "^2.1.7",
18
+ "@types/css-tree": "^2.3.11",
19
+ "@types/jest": "^30.0.0",
20
+ "@types/jsdom": "^27.0.0",
21
+ "@types/node": "^24.10.1",
22
+ "@types/prettier": "^3.0.0",
23
+ "@types/turndown": "^5.0.6",
24
+ "babel-jest": "^30.2.0",
25
+ "chalk": "^5.6.2",
26
+ "chokidar": "^4.0.3",
27
+ "css-tree": "^3.1.0",
28
+ "eslint-config-prettier": "^10.1.8",
29
+ "eslint-plugin-prettier": "^5.5.4",
30
+ "flow-bin": "^0.291.0",
31
+ "jest": "^30.2.0",
32
+ "jsdom": "^27.2.0",
33
+ "mdn-data": "2.25.0",
34
+ "prettier": "^3.6.2",
35
+ "release-it": "^19.0.6",
36
+ "tsx": "^4.20.6",
37
+ "turndown": "^7.2.2",
38
+ "typescript": "~5.9.3",
39
+ "typescript-eslint": "^8.46.4"
40
+ },
41
+ "overrides": {
42
+ "js-yaml": ">=4.1.1"
43
+ },
44
+ "scripts": {
45
+ "prepublish": "npm install --no-save --prefix __tests__ && npm install --no-save --prefix __tests__/__fixtures__",
46
+ "release": "release-it",
47
+ "update": "tsx update.ts",
48
+ "build": "tsx --inspect build.ts --start",
49
+ "watch": "tsx build.ts --watch",
50
+ "lint": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
51
+ "pretty": "prettier --write build.ts **/*.{ts,js,json,md}",
52
+ "lazy": "tsc && npm run lint",
53
+ "test": "jest --runInBand",
54
+ "test:src": "jest src.*.ts",
55
+ "test:dist": "jest dist.*.ts --runInBand"
56
+ },
57
+ "files": [
58
+ "index.d.ts",
59
+ "index.js.flow"
60
+ ],
61
+ "keywords": [
62
+ "css",
63
+ "style",
64
+ "typescript",
65
+ "flow",
66
+ "typings",
67
+ "types",
68
+ "definitions"
69
+ ]
70
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Meta Platforms, Inc. and affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,37 @@
1
+ # `react`
2
+
3
+ React is a JavaScript library for creating user interfaces.
4
+
5
+ The `react` package contains only the functionality necessary to define React components. It is typically used together with a React renderer like `react-dom` for the web, or `react-native` for the native environments.
6
+
7
+ **Note:** by default, React will be in development mode. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages. Don't forget to use the [production build](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build) when deploying your application.
8
+
9
+ ## Usage
10
+
11
+ ```js
12
+ import { useState } from 'react';
13
+ import { createRoot } from 'react-dom/client';
14
+
15
+ function Counter() {
16
+ const [count, setCount] = useState(0);
17
+ return (
18
+ <>
19
+ <h1>{count}</h1>
20
+ <button onClick={() => setCount(count + 1)}>
21
+ Increment
22
+ </button>
23
+ </>
24
+ );
25
+ }
26
+
27
+ const root = createRoot(document.getElementById('root'));
28
+ root.render(<Counter />);
29
+ ```
30
+
31
+ ## Documentation
32
+
33
+ See https://react.dev/
34
+
35
+ ## API
36
+
37
+ See https://react.dev/reference/react
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license React
3
+ * react-compiler-runtime.development.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ "use strict";
12
+ "production" !== process.env.NODE_ENV &&
13
+ (function () {
14
+ var ReactSharedInternals =
15
+ require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
16
+ exports.c = function (size) {
17
+ var dispatcher = ReactSharedInternals.H;
18
+ null === dispatcher &&
19
+ console.error(
20
+ "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
21
+ );
22
+ return dispatcher.useMemoCache(size);
23
+ };
24
+ })();
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license React
3
+ * react-compiler-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ "use strict";
12
+ var ReactSharedInternals =
13
+ require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
14
+ exports.c = function (size) {
15
+ return ReactSharedInternals.H.useMemoCache(size);
16
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license React
3
+ * react-compiler-runtime.profiling.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ "use strict";
12
+ var ReactSharedInternals =
13
+ require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
14
+ exports.c = function (size) {
15
+ return ReactSharedInternals.H.useMemoCache(size);
16
+ };
@@ -0,0 +1,338 @@
1
+ /**
2
+ * @license React
3
+ * react-jsx-dev-runtime.development.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ "use strict";
12
+ "production" !== process.env.NODE_ENV &&
13
+ (function () {
14
+ function getComponentNameFromType(type) {
15
+ if (null == type) return null;
16
+ if ("function" === typeof type)
17
+ return type.$$typeof === REACT_CLIENT_REFERENCE
18
+ ? null
19
+ : type.displayName || type.name || null;
20
+ if ("string" === typeof type) return type;
21
+ switch (type) {
22
+ case REACT_FRAGMENT_TYPE:
23
+ return "Fragment";
24
+ case REACT_PROFILER_TYPE:
25
+ return "Profiler";
26
+ case REACT_STRICT_MODE_TYPE:
27
+ return "StrictMode";
28
+ case REACT_SUSPENSE_TYPE:
29
+ return "Suspense";
30
+ case REACT_SUSPENSE_LIST_TYPE:
31
+ return "SuspenseList";
32
+ case REACT_ACTIVITY_TYPE:
33
+ return "Activity";
34
+ }
35
+ if ("object" === typeof type)
36
+ switch (
37
+ ("number" === typeof type.tag &&
38
+ console.error(
39
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
40
+ ),
41
+ type.$$typeof)
42
+ ) {
43
+ case REACT_PORTAL_TYPE:
44
+ return "Portal";
45
+ case REACT_CONTEXT_TYPE:
46
+ return type.displayName || "Context";
47
+ case REACT_CONSUMER_TYPE:
48
+ return (type._context.displayName || "Context") + ".Consumer";
49
+ case REACT_FORWARD_REF_TYPE:
50
+ var innerType = type.render;
51
+ type = type.displayName;
52
+ type ||
53
+ ((type = innerType.displayName || innerType.name || ""),
54
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
55
+ return type;
56
+ case REACT_MEMO_TYPE:
57
+ return (
58
+ (innerType = type.displayName || null),
59
+ null !== innerType
60
+ ? innerType
61
+ : getComponentNameFromType(type.type) || "Memo"
62
+ );
63
+ case REACT_LAZY_TYPE:
64
+ innerType = type._payload;
65
+ type = type._init;
66
+ try {
67
+ return getComponentNameFromType(type(innerType));
68
+ } catch (x) {}
69
+ }
70
+ return null;
71
+ }
72
+ function testStringCoercion(value) {
73
+ return "" + value;
74
+ }
75
+ function checkKeyStringCoercion(value) {
76
+ try {
77
+ testStringCoercion(value);
78
+ var JSCompiler_inline_result = !1;
79
+ } catch (e) {
80
+ JSCompiler_inline_result = !0;
81
+ }
82
+ if (JSCompiler_inline_result) {
83
+ JSCompiler_inline_result = console;
84
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
85
+ var JSCompiler_inline_result$jscomp$0 =
86
+ ("function" === typeof Symbol &&
87
+ Symbol.toStringTag &&
88
+ value[Symbol.toStringTag]) ||
89
+ value.constructor.name ||
90
+ "Object";
91
+ JSCompiler_temp_const.call(
92
+ JSCompiler_inline_result,
93
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
94
+ JSCompiler_inline_result$jscomp$0
95
+ );
96
+ return testStringCoercion(value);
97
+ }
98
+ }
99
+ function getTaskName(type) {
100
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
101
+ if (
102
+ "object" === typeof type &&
103
+ null !== type &&
104
+ type.$$typeof === REACT_LAZY_TYPE
105
+ )
106
+ return "<...>";
107
+ try {
108
+ var name = getComponentNameFromType(type);
109
+ return name ? "<" + name + ">" : "<...>";
110
+ } catch (x) {
111
+ return "<...>";
112
+ }
113
+ }
114
+ function getOwner() {
115
+ var dispatcher = ReactSharedInternals.A;
116
+ return null === dispatcher ? null : dispatcher.getOwner();
117
+ }
118
+ function UnknownOwner() {
119
+ return Error("react-stack-top-frame");
120
+ }
121
+ function hasValidKey(config) {
122
+ if (hasOwnProperty.call(config, "key")) {
123
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
124
+ if (getter && getter.isReactWarning) return !1;
125
+ }
126
+ return void 0 !== config.key;
127
+ }
128
+ function defineKeyPropWarningGetter(props, displayName) {
129
+ function warnAboutAccessingKey() {
130
+ specialPropKeyWarningShown ||
131
+ ((specialPropKeyWarningShown = !0),
132
+ console.error(
133
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
134
+ displayName
135
+ ));
136
+ }
137
+ warnAboutAccessingKey.isReactWarning = !0;
138
+ Object.defineProperty(props, "key", {
139
+ get: warnAboutAccessingKey,
140
+ configurable: !0
141
+ });
142
+ }
143
+ function elementRefGetterWithDeprecationWarning() {
144
+ var componentName = getComponentNameFromType(this.type);
145
+ didWarnAboutElementRef[componentName] ||
146
+ ((didWarnAboutElementRef[componentName] = !0),
147
+ console.error(
148
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
149
+ ));
150
+ componentName = this.props.ref;
151
+ return void 0 !== componentName ? componentName : null;
152
+ }
153
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
154
+ var refProp = props.ref;
155
+ type = {
156
+ $$typeof: REACT_ELEMENT_TYPE,
157
+ type: type,
158
+ key: key,
159
+ props: props,
160
+ _owner: owner
161
+ };
162
+ null !== (void 0 !== refProp ? refProp : null)
163
+ ? Object.defineProperty(type, "ref", {
164
+ enumerable: !1,
165
+ get: elementRefGetterWithDeprecationWarning
166
+ })
167
+ : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
168
+ type._store = {};
169
+ Object.defineProperty(type._store, "validated", {
170
+ configurable: !1,
171
+ enumerable: !1,
172
+ writable: !0,
173
+ value: 0
174
+ });
175
+ Object.defineProperty(type, "_debugInfo", {
176
+ configurable: !1,
177
+ enumerable: !1,
178
+ writable: !0,
179
+ value: null
180
+ });
181
+ Object.defineProperty(type, "_debugStack", {
182
+ configurable: !1,
183
+ enumerable: !1,
184
+ writable: !0,
185
+ value: debugStack
186
+ });
187
+ Object.defineProperty(type, "_debugTask", {
188
+ configurable: !1,
189
+ enumerable: !1,
190
+ writable: !0,
191
+ value: debugTask
192
+ });
193
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
194
+ return type;
195
+ }
196
+ function jsxDEVImpl(
197
+ type,
198
+ config,
199
+ maybeKey,
200
+ isStaticChildren,
201
+ debugStack,
202
+ debugTask
203
+ ) {
204
+ var children = config.children;
205
+ if (void 0 !== children)
206
+ if (isStaticChildren)
207
+ if (isArrayImpl(children)) {
208
+ for (
209
+ isStaticChildren = 0;
210
+ isStaticChildren < children.length;
211
+ isStaticChildren++
212
+ )
213
+ validateChildKeys(children[isStaticChildren]);
214
+ Object.freeze && Object.freeze(children);
215
+ } else
216
+ console.error(
217
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
218
+ );
219
+ else validateChildKeys(children);
220
+ if (hasOwnProperty.call(config, "key")) {
221
+ children = getComponentNameFromType(type);
222
+ var keys = Object.keys(config).filter(function (k) {
223
+ return "key" !== k;
224
+ });
225
+ isStaticChildren =
226
+ 0 < keys.length
227
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
228
+ : "{key: someKey}";
229
+ didWarnAboutKeySpread[children + isStaticChildren] ||
230
+ ((keys =
231
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
232
+ console.error(
233
+ 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
234
+ isStaticChildren,
235
+ children,
236
+ keys,
237
+ children
238
+ ),
239
+ (didWarnAboutKeySpread[children + isStaticChildren] = !0));
240
+ }
241
+ children = null;
242
+ void 0 !== maybeKey &&
243
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
244
+ hasValidKey(config) &&
245
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
246
+ if ("key" in config) {
247
+ maybeKey = {};
248
+ for (var propName in config)
249
+ "key" !== propName && (maybeKey[propName] = config[propName]);
250
+ } else maybeKey = config;
251
+ children &&
252
+ defineKeyPropWarningGetter(
253
+ maybeKey,
254
+ "function" === typeof type
255
+ ? type.displayName || type.name || "Unknown"
256
+ : type
257
+ );
258
+ return ReactElement(
259
+ type,
260
+ children,
261
+ maybeKey,
262
+ getOwner(),
263
+ debugStack,
264
+ debugTask
265
+ );
266
+ }
267
+ function validateChildKeys(node) {
268
+ isValidElement(node)
269
+ ? node._store && (node._store.validated = 1)
270
+ : "object" === typeof node &&
271
+ null !== node &&
272
+ node.$$typeof === REACT_LAZY_TYPE &&
273
+ ("fulfilled" === node._payload.status
274
+ ? isValidElement(node._payload.value) &&
275
+ node._payload.value._store &&
276
+ (node._payload.value._store.validated = 1)
277
+ : node._store && (node._store.validated = 1));
278
+ }
279
+ function isValidElement(object) {
280
+ return (
281
+ "object" === typeof object &&
282
+ null !== object &&
283
+ object.$$typeof === REACT_ELEMENT_TYPE
284
+ );
285
+ }
286
+ var React = require("react"),
287
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
288
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
289
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
290
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
291
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
292
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
293
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
294
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
295
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
296
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
297
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
298
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
299
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
300
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
301
+ ReactSharedInternals =
302
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
303
+ hasOwnProperty = Object.prototype.hasOwnProperty,
304
+ isArrayImpl = Array.isArray,
305
+ createTask = console.createTask
306
+ ? console.createTask
307
+ : function () {
308
+ return null;
309
+ };
310
+ React = {
311
+ react_stack_bottom_frame: function (callStackForError) {
312
+ return callStackForError();
313
+ }
314
+ };
315
+ var specialPropKeyWarningShown;
316
+ var didWarnAboutElementRef = {};
317
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
318
+ React,
319
+ UnknownOwner
320
+ )();
321
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
322
+ var didWarnAboutKeySpread = {};
323
+ exports.Fragment = REACT_FRAGMENT_TYPE;
324
+ exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) {
325
+ var trackActualOwner =
326
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
327
+ return jsxDEVImpl(
328
+ type,
329
+ config,
330
+ maybeKey,
331
+ isStaticChildren,
332
+ trackActualOwner
333
+ ? Error("react-stack-top-frame")
334
+ : unknownOwnerDebugStack,
335
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
336
+ );
337
+ };
338
+ })();
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license React
3
+ * react-jsx-dev-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ "use strict";
12
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
13
+ exports.Fragment = REACT_FRAGMENT_TYPE;
14
+ exports.jsxDEV = void 0;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license React
3
+ * react-jsx-dev-runtime.profiling.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ "use strict";
12
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
13
+ exports.Fragment = REACT_FRAGMENT_TYPE;
14
+ exports.jsxDEV = void 0;