zudoku 0.0.0-f865d81 → 0.0.0-fb7d300

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 (392) hide show
  1. package/dist/app/demo.js +0 -2
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/entry.client.js +14 -0
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.js +6 -6
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/app/main.d.ts +1 -1
  8. package/dist/app/main.js +2 -2
  9. package/dist/app/main.js.map +1 -1
  10. package/dist/app/standalone.js +0 -2
  11. package/dist/app/standalone.js.map +1 -1
  12. package/dist/cli/cli.js +1 -2
  13. package/dist/cli/cli.js.map +1 -1
  14. package/dist/codegen.d.ts +3 -0
  15. package/dist/codegen.js +45 -0
  16. package/dist/codegen.js.map +1 -0
  17. package/dist/config/validators/InputSidebarSchema.d.ts +10 -10
  18. package/dist/config/validators/validate.d.ts +125 -114
  19. package/dist/config/validators/validate.js +6 -5
  20. package/dist/config/validators/validate.js.map +1 -1
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +1 -1
  23. package/dist/index.js.map +1 -1
  24. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  25. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  26. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  27. package/dist/lib/authentication/authentication.d.ts +3 -3
  28. package/dist/lib/authentication/hook.d.ts +5 -4
  29. package/dist/lib/authentication/hook.js +1 -3
  30. package/dist/lib/authentication/hook.js.map +1 -1
  31. package/dist/lib/authentication/providers/auth0.js +12 -11
  32. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  33. package/dist/lib/authentication/providers/openid.d.ts +0 -1
  34. package/dist/lib/authentication/providers/openid.js +11 -26
  35. package/dist/lib/authentication/providers/openid.js.map +1 -1
  36. package/dist/lib/authentication/state.d.ts +25 -4
  37. package/dist/lib/authentication/state.js +28 -3
  38. package/dist/lib/authentication/state.js.map +1 -1
  39. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  40. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  41. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  42. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  43. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  44. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  45. package/dist/lib/components/Bootstrap.d.ts +3 -1
  46. package/dist/lib/components/Bootstrap.js +10 -4
  47. package/dist/lib/components/Bootstrap.js.map +1 -1
  48. package/dist/lib/components/ClientOnly.d.ts +4 -2
  49. package/dist/lib/components/ClientOnly.js +1 -1
  50. package/dist/lib/components/ClientOnly.js.map +1 -1
  51. package/dist/lib/components/DeveloperHint.js +2 -1
  52. package/dist/lib/components/DeveloperHint.js.map +1 -1
  53. package/dist/lib/components/Header.js +16 -10
  54. package/dist/lib/components/Header.js.map +1 -1
  55. package/dist/lib/components/Heading.d.ts +1 -1
  56. package/dist/lib/components/Layout.js +12 -4
  57. package/dist/lib/components/Layout.js.map +1 -1
  58. package/dist/lib/components/MobileTopNavigation.js +6 -7
  59. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  60. package/dist/lib/components/SyntaxHighlight.js +16 -12
  61. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  62. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  63. package/dist/lib/components/ThemeSwitch.js +13 -0
  64. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  65. package/dist/lib/components/TopNavigation.d.ts +2 -0
  66. package/dist/lib/components/TopNavigation.js +13 -7
  67. package/dist/lib/components/TopNavigation.js.map +1 -1
  68. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  69. package/dist/lib/components/{DevPortal.js → Zudoku.js} +13 -14
  70. package/dist/lib/components/Zudoku.js.map +1 -0
  71. package/dist/lib/components/context/ZudokuContext.d.ts +7 -7
  72. package/dist/lib/components/context/ZudokuContext.js +8 -13
  73. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  74. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  75. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  76. package/dist/lib/components/index.d.ts +18 -10
  77. package/dist/lib/components/index.js +2 -3
  78. package/dist/lib/components/index.js.map +1 -1
  79. package/dist/lib/components/navigation/Sidebar.js +1 -1
  80. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  81. package/dist/lib/components/navigation/utils.js +2 -2
  82. package/dist/lib/components/navigation/utils.js.map +1 -1
  83. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +3 -7
  84. package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
  85. package/dist/lib/core/ZudokuContext.js.map +1 -0
  86. package/dist/lib/core/plugins.d.ts +18 -12
  87. package/dist/lib/core/plugins.js.map +1 -1
  88. package/dist/lib/errors/ErrorAlert.js +1 -1
  89. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  90. package/dist/lib/oas/graphql/index.js +4 -4
  91. package/dist/lib/oas/graphql/index.js.map +1 -1
  92. package/dist/lib/oas/parser/upgrade/index.js +3 -1
  93. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  94. package/dist/lib/plugins/api-keys/index.d.ts +9 -9
  95. package/dist/lib/plugins/api-keys/index.js +3 -0
  96. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  97. package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
  98. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  99. package/dist/lib/plugins/markdown/index.d.ts +2 -2
  100. package/dist/lib/plugins/markdown/index.js.map +1 -1
  101. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  102. package/dist/lib/plugins/openapi/CollapsibleCode.js +24 -0
  103. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  104. package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
  105. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  106. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  107. package/dist/lib/plugins/openapi/Endpoint.js +5 -9
  108. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  109. package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
  110. package/dist/lib/plugins/openapi/OperationList.js +21 -22
  111. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  112. package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
  113. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  114. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
  115. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  116. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
  117. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  118. package/dist/lib/plugins/openapi/Route.d.ts +4 -4
  119. package/dist/lib/plugins/openapi/Route.js +2 -4
  120. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  121. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  122. package/dist/lib/plugins/openapi/Sidecar.js +35 -33
  123. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  124. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  125. package/dist/lib/plugins/openapi/client/GraphQLClient.js +102 -0
  126. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  127. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  128. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  129. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  130. package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
  131. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  132. package/dist/lib/plugins/openapi/client/useCreateQuery.js +13 -0
  133. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  134. package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
  135. package/dist/lib/plugins/openapi/client/worker.js +23 -14
  136. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  137. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  138. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  139. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  140. package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -51
  141. package/dist/lib/plugins/openapi/graphql/gql.js +4 -2
  142. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  143. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +32 -8
  144. package/dist/lib/plugins/openapi/graphql/graphql.js +194 -662
  145. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  146. package/dist/lib/plugins/openapi/index.d.ts +2 -2
  147. package/dist/lib/plugins/openapi/index.js +40 -53
  148. package/dist/lib/plugins/openapi/index.js.map +1 -1
  149. package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
  150. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  151. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  152. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
  153. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  154. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  155. package/dist/lib/plugins/openapi-worker.js +7 -1
  156. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  157. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  158. package/dist/lib/plugins/redirect/index.js +1 -1
  159. package/dist/lib/plugins/redirect/index.js.map +1 -1
  160. package/dist/lib/plugins/search-inkeep/index.d.ts +2 -2
  161. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  162. package/dist/lib/ui/ActionButton.d.ts +4 -0
  163. package/dist/lib/ui/ActionButton.js +10 -0
  164. package/dist/lib/ui/ActionButton.js.map +1 -0
  165. package/dist/lib/util/MdxComponents.d.ts +1 -1
  166. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  167. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  168. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  169. package/dist/lib/util/useOnScreen.d.ts +4 -0
  170. package/dist/lib/util/useOnScreen.js +19 -0
  171. package/dist/lib/util/useOnScreen.js.map +1 -0
  172. package/dist/vite/build.js +5 -1
  173. package/dist/vite/build.js.map +1 -1
  174. package/dist/vite/config.d.ts +2 -8
  175. package/dist/vite/config.js +13 -54
  176. package/dist/vite/config.js.map +1 -1
  177. package/dist/vite/html.js +0 -2
  178. package/dist/vite/html.js.map +1 -1
  179. package/dist/vite/output.d.ts +101 -0
  180. package/dist/vite/output.js +33 -0
  181. package/dist/vite/output.js.map +1 -0
  182. package/dist/vite/plugin-component.js +1 -1
  183. package/dist/vite/plugin-component.js.map +1 -1
  184. package/dist/vite/plugin-config.d.ts +2 -3
  185. package/dist/vite/plugin-config.js +2 -3
  186. package/dist/vite/plugin-config.js.map +1 -1
  187. package/dist/vite/plugin-mdx.d.ts +0 -6
  188. package/dist/vite/plugin-mdx.js +3 -2
  189. package/dist/vite/plugin-mdx.js.map +1 -1
  190. package/dist/vite/plugin.js +1 -3
  191. package/dist/vite/plugin.js.map +1 -1
  192. package/dist/vite/prerender.js +3 -2
  193. package/dist/vite/prerender.js.map +1 -1
  194. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  195. package/dist/vite/remarkStaticGeneration.js +125 -0
  196. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  197. package/lib/{AnchorLink-BbB2q-jx.js → AnchorLink-CDlhr8gL.js} +11 -10
  198. package/lib/{AnchorLink-BbB2q-jx.js.map → AnchorLink-CDlhr8gL.js.map} +1 -1
  199. package/lib/AuthenticationPlugin-D0Em0SwR.js +59 -0
  200. package/lib/{AuthenticationPlugin-C9BHGXlE.js.map → AuthenticationPlugin-D0Em0SwR.js.map} +1 -1
  201. package/lib/Button-jK0EsymC.js +48 -0
  202. package/lib/Button-jK0EsymC.js.map +1 -0
  203. package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
  204. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  205. package/lib/Markdown-ievDDhFT.js +15192 -0
  206. package/lib/Markdown-ievDDhFT.js.map +1 -0
  207. package/lib/{MdxPage-DKMH_t0f.js → MdxPage-Bwn-VSsH.js} +5 -5
  208. package/lib/{MdxPage-DKMH_t0f.js.map → MdxPage-Bwn-VSsH.js.map} +1 -1
  209. package/lib/OperationList-BwBl1xrD.js +4691 -0
  210. package/lib/OperationList-BwBl1xrD.js.map +1 -0
  211. package/lib/Route-DlG_HTMu.js +11 -0
  212. package/lib/Route-DlG_HTMu.js.map +1 -0
  213. package/lib/{Select-Bagt3Bme.js → Select-O9ZM3ZgX.js} +7 -7
  214. package/lib/Select-O9ZM3ZgX.js.map +1 -0
  215. package/lib/{Spinner-C6zroowC.js → SidebarBadge-DxFJcJ6V.js} +28 -17
  216. package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
  217. package/lib/SlotletProvider-DyomlzGx.js +252 -0
  218. package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
  219. package/lib/Spinner-3cQDBVGr.js +7 -0
  220. package/lib/Spinner-3cQDBVGr.js.map +1 -0
  221. package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
  222. package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
  223. package/lib/assets/{worker-Bf8vjASY.js → worker-CPsGZsve.js} +565 -561
  224. package/lib/assets/{worker-Bf8vjASY.js.map → worker-CPsGZsve.js.map} +1 -1
  225. package/lib/context-D1nXWxm7.js +22 -0
  226. package/lib/context-D1nXWxm7.js.map +1 -0
  227. package/lib/createServer-DK-g7kbB.js +16089 -0
  228. package/lib/createServer-DK-g7kbB.js.map +1 -0
  229. package/lib/{hook-sn0zMTkE.js → hook-hEqe7fPB.js} +12 -14
  230. package/lib/hook-hEqe7fPB.js.map +1 -0
  231. package/lib/index-Czzd9rjU.js +899 -0
  232. package/lib/index-Czzd9rjU.js.map +1 -0
  233. package/lib/index-DNxQ_rCt.js +1273 -0
  234. package/lib/index-DNxQ_rCt.js.map +1 -0
  235. package/lib/index-Yn8c3UWE.js +921 -0
  236. package/lib/index-Yn8c3UWE.js.map +1 -0
  237. package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
  238. package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
  239. package/lib/state-tsXBLONe.js +203 -0
  240. package/lib/{state-CsuHT8ZO.js.map → state-tsXBLONe.js.map} +1 -1
  241. package/lib/ui/ActionButton.js +25 -0
  242. package/lib/ui/ActionButton.js.map +1 -0
  243. package/lib/useExposedProps-CTPtylCV.js +10 -0
  244. package/lib/{useExposedProps-ChOIUaS4.js.map → useExposedProps-CTPtylCV.js.map} +1 -1
  245. package/lib/{ZudokuContext-BKXGJTmu.js → utils-DcpDOncX.js} +242 -246
  246. package/lib/utils-DcpDOncX.js.map +1 -0
  247. package/lib/zudoku.auth-auth0.js +24 -18
  248. package/lib/zudoku.auth-auth0.js.map +1 -1
  249. package/lib/zudoku.auth-clerk.js +2 -2
  250. package/lib/zudoku.auth-openid.js +124 -138
  251. package/lib/zudoku.auth-openid.js.map +1 -1
  252. package/lib/zudoku.components.js +1291 -1119
  253. package/lib/zudoku.components.js.map +1 -1
  254. package/lib/zudoku.openapi-worker.js +10 -16336
  255. package/lib/zudoku.openapi-worker.js.map +1 -1
  256. package/lib/zudoku.plugin-api-keys.js +41 -39
  257. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  258. package/lib/zudoku.plugin-custom-pages.js +2 -2
  259. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  260. package/lib/zudoku.plugin-markdown.js +1 -1
  261. package/lib/zudoku.plugin-markdown.js.map +1 -1
  262. package/lib/zudoku.plugin-openapi.js +5 -9
  263. package/lib/zudoku.plugin-openapi.js.map +1 -1
  264. package/lib/zudoku.plugin-redirect.js +2 -2
  265. package/lib/zudoku.plugin-redirect.js.map +1 -1
  266. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  267. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  268. package/package.json +15 -5
  269. package/src/app/demo.tsx +0 -3
  270. package/src/app/entry.client.tsx +14 -0
  271. package/src/app/entry.server.tsx +59 -53
  272. package/src/app/main.css +1 -1
  273. package/src/app/main.tsx +4 -4
  274. package/src/app/standalone.tsx +0 -3
  275. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  276. package/src/lib/authentication/authentication.ts +3 -3
  277. package/src/lib/authentication/hook.ts +1 -3
  278. package/src/lib/authentication/providers/auth0.tsx +17 -11
  279. package/src/lib/authentication/providers/openid.tsx +12 -30
  280. package/src/lib/authentication/state.ts +50 -9
  281. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  282. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  283. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  284. package/src/lib/components/Bootstrap.tsx +36 -14
  285. package/src/lib/components/ClientOnly.tsx +6 -3
  286. package/src/lib/components/DeveloperHint.tsx +6 -1
  287. package/src/lib/components/Header.tsx +68 -40
  288. package/src/lib/components/Layout.tsx +49 -37
  289. package/src/lib/components/MobileTopNavigation.tsx +15 -18
  290. package/src/lib/components/SyntaxHighlight.tsx +81 -46
  291. package/src/lib/components/ThemeSwitch.tsx +26 -0
  292. package/src/lib/components/TopNavigation.tsx +27 -19
  293. package/src/lib/components/Zudoku.tsx +108 -0
  294. package/src/lib/components/context/ZudokuContext.ts +11 -16
  295. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  296. package/src/lib/components/index.ts +2 -3
  297. package/src/lib/components/navigation/Sidebar.tsx +3 -3
  298. package/src/lib/components/navigation/utils.ts +2 -2
  299. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +3 -11
  300. package/src/lib/core/plugins.ts +20 -16
  301. package/src/lib/errors/ErrorAlert.tsx +2 -1
  302. package/src/lib/oas/graphql/index.ts +4 -4
  303. package/src/lib/oas/parser/upgrade/index.ts +3 -1
  304. package/src/lib/plugins/api-keys/index.tsx +12 -9
  305. package/src/lib/plugins/custom-pages/index.tsx +2 -2
  306. package/src/lib/plugins/markdown/index.tsx +2 -2
  307. package/src/lib/plugins/openapi/CollapsibleCode.tsx +80 -0
  308. package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
  309. package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
  310. package/src/lib/plugins/openapi/OperationList.tsx +20 -40
  311. package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
  312. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
  313. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
  314. package/src/lib/plugins/openapi/Route.tsx +11 -12
  315. package/src/lib/plugins/openapi/Sidecar.tsx +73 -59
  316. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +140 -0
  317. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  318. package/src/lib/plugins/openapi/client/createServer.ts +2 -0
  319. package/src/lib/plugins/openapi/client/useCreateQuery.ts +18 -0
  320. package/src/lib/plugins/openapi/client/worker.ts +38 -24
  321. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  322. package/src/lib/plugins/openapi/graphql/gql.ts +10 -27
  323. package/src/lib/plugins/openapi/graphql/graphql.ts +233 -665
  324. package/src/lib/plugins/openapi/index.tsx +42 -67
  325. package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
  326. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
  327. package/src/lib/plugins/openapi-worker.ts +11 -1
  328. package/src/lib/plugins/redirect/index.tsx +5 -9
  329. package/src/lib/plugins/search-inkeep/index.tsx +2 -2
  330. package/src/lib/ui/ActionButton.tsx +28 -0
  331. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  332. package/src/lib/util/useOnScreen.ts +32 -0
  333. package/dist/lib/components/DevPortal.js.map +0 -1
  334. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  335. package/dist/lib/components/context/ThemeContext.js +0 -7
  336. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  337. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  338. package/dist/lib/components/context/ThemeProvider.js +0 -23
  339. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  340. package/dist/lib/core/DevPortalContext.js.map +0 -1
  341. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  342. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  343. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  344. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  345. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  346. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  347. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  348. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  349. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  350. package/dist/lib/themeToggle.d.ts +0 -1
  351. package/dist/lib/themeToggle.js +0 -7
  352. package/dist/lib/themeToggle.js.map +0 -1
  353. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  354. package/dist/lib/util/createWaitForNotify.js +0 -15
  355. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  356. package/dist/vite/plugin-html-transform.d.ts +0 -2
  357. package/dist/vite/plugin-html-transform.js +0 -15
  358. package/dist/vite/plugin-html-transform.js.map +0 -1
  359. package/lib/AuthenticationPlugin-C9BHGXlE.js +0 -55
  360. package/lib/ClientOnly-CVN6leDu.js.map +0 -1
  361. package/lib/DeveloperHint-DHdLXGHA.js +0 -16
  362. package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
  363. package/lib/Markdown-BDcCAWwm.js +0 -18059
  364. package/lib/Markdown-BDcCAWwm.js.map +0 -1
  365. package/lib/OperationList-Tj7ubW_t.js +0 -604
  366. package/lib/OperationList-Tj7ubW_t.js.map +0 -1
  367. package/lib/Route-C3DGB6OS.js +0 -13
  368. package/lib/Route-C3DGB6OS.js.map +0 -1
  369. package/lib/Select-Bagt3Bme.js.map +0 -1
  370. package/lib/SlotletProvider-Da7eFgd2.js +0 -241
  371. package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
  372. package/lib/Spinner-C6zroowC.js.map +0 -1
  373. package/lib/StaggeredRender-DDHSzQKE.js +0 -17
  374. package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
  375. package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
  376. package/lib/hook-sn0zMTkE.js.map +0 -1
  377. package/lib/index-AjWCJNGC.js +0 -5690
  378. package/lib/index-AjWCJNGC.js.map +0 -1
  379. package/lib/index-CRo94sKK.js +0 -1783
  380. package/lib/index-CRo94sKK.js.map +0 -1
  381. package/lib/state-CsuHT8ZO.js +0 -183
  382. package/lib/urql-core-KJnLL26g.js +0 -1455
  383. package/lib/urql-core-KJnLL26g.js.map +0 -1
  384. package/lib/useExposedProps-ChOIUaS4.js +0 -9
  385. package/src/lib/components/DevPortal.tsx +0 -111
  386. package/src/lib/components/context/ThemeContext.tsx +0 -8
  387. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  388. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  389. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  390. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  391. package/src/lib/themeToggle.ts +0 -7
  392. package/src/lib/util/createWaitForNotify.ts +0 -18
@@ -1,26 +1,23 @@
1
- import { matchPath, useRouteError, type RouteObject } from "react-router-dom";
2
- import { Client as UrqlClient, cacheExchange, fetchExchange } from "urql";
3
- import { type DevPortalPlugin } from "../../core/plugins.js";
1
+ import { matchPath, type RouteObject } from "react-router-dom";
2
+ import { type ZudokuPlugin } from "../../core/plugins.js";
4
3
  import { graphql } from "./graphql/index.js";
5
4
 
6
5
  import { useQuery } from "@tanstack/react-query";
7
6
  import { CirclePlayIcon, LogInIcon } from "lucide-react";
8
- import { createClient } from "zudoku/openapi-worker";
9
7
  import type { SidebarItem } from "../../../config/validators/SidebarSchema.js";
10
8
  import { useAuth } from "../../authentication/hook.js";
11
- import { ErrorPage } from "../../components/ErrorPage.js";
12
9
  import { ColorMap } from "../../components/navigation/SidebarBadge.js";
13
- import { SyntaxHighlight } from "../../components/SyntaxHighlight.js";
14
10
  import { Button } from "../../ui/Button.js";
15
11
  import { joinPath } from "../../util/joinPath.js";
12
+ import { GraphQLClient } from "./client/GraphQLClient.js";
16
13
  import { OasPluginConfig } from "./interfaces.js";
17
14
  import type { PlaygroundContentProps } from "./playground/Playground.js";
18
15
  import { PlaygroundDialog } from "./playground/PlaygroundDialog.js";
19
- import { GetServerQuery } from "./Sidecar.js";
20
16
 
21
17
  const GetCategoriesQuery = graphql(`
22
18
  query GetCategories($input: JSON!, $type: SchemaType!) {
23
19
  schema(input: $input, type: $type) {
20
+ url
24
21
  tags {
25
22
  __typename
26
23
  name
@@ -38,20 +35,6 @@ const GetCategoriesQuery = graphql(`
38
35
  }
39
36
  `);
40
37
 
41
- const OpenApiErrorPage = () => {
42
- const error = useRouteError();
43
- const message =
44
- error instanceof Error ? (
45
- <SyntaxHighlight code={error.message} />
46
- ) : (
47
- "An unknown error occurred"
48
- );
49
-
50
- return (
51
- <ErrorPage category="Error" title="An error occurred" message={message} />
52
- );
53
- };
54
-
55
38
  type InternalOasPluginConfig = { inMemory?: boolean };
56
39
 
57
40
  const MethodColorMap: Record<string, keyof typeof ColorMap> = {
@@ -66,17 +49,10 @@ const MethodColorMap: Record<string, keyof typeof ColorMap> = {
66
49
 
67
50
  export type OpenApiPluginOptions = OasPluginConfig & InternalOasPluginConfig;
68
51
 
69
- export const openApiPlugin = (
70
- config: OpenApiPluginOptions,
71
- ): DevPortalPlugin => {
52
+ export const openApiPlugin = (config: OpenApiPluginOptions): ZudokuPlugin => {
72
53
  const basePath = joinPath(config.navigationId ?? "/reference");
73
54
 
74
- const client = config.server
75
- ? new UrqlClient({
76
- url: config.server,
77
- exchanges: [cacheExchange, fetchExchange],
78
- })
79
- : createClient({ useMemoryClient: config.inMemory ?? false });
55
+ const client = new GraphQLClient(config);
80
56
 
81
57
  return {
82
58
  getHead: () => {
@@ -104,15 +80,13 @@ export const openApiPlugin = (
104
80
  ...props
105
81
  }: Partial<PlaygroundContentProps> & { requireAuth: boolean }) => {
106
82
  const auth = useAuth();
83
+ // We don't have the GraphQL context here
107
84
  const serverQuery = useQuery({
108
- queryFn: async () => {
109
- const result = await client.query(GetServerQuery, {
85
+ queryFn: () =>
86
+ client.fetch(GetCategoriesQuery, {
110
87
  type: config.type,
111
88
  input: config.input,
112
- });
113
-
114
- return result.data;
115
- },
89
+ }),
116
90
  enabled: !server,
117
91
  queryKey: ["playground-server"],
118
92
  });
@@ -150,38 +124,40 @@ export const openApiPlugin = (
150
124
  return [];
151
125
  }
152
126
 
153
- const { data } = await client.query(GetCategoriesQuery, {
154
- input: config.input,
155
- type: config.type,
156
- });
157
-
158
- if (!data) return [];
159
-
160
- const categories = data.schema.tags
161
- .filter((tag) => tag.operations.length > 0)
162
- .map<SidebarItem>((tag) => ({
163
- type: "category",
164
- label: tag.name || "Other endpoints",
165
- collapsible: true,
166
- collapsed: false,
167
- items: tag.operations.map((operation) => ({
168
- type: "link",
169
- label: operation.summary ?? operation.path,
170
- href: `#${operation.slug}`,
171
- badge: {
172
- label: operation.method,
173
- color: MethodColorMap[operation.method.toLowerCase()]!,
174
- },
175
- })),
176
- }));
127
+ try {
128
+ const data = await client.fetch(GetCategoriesQuery, {
129
+ type: config.type,
130
+ input: config.input,
131
+ });
177
132
 
178
- categories.unshift({
179
- type: "link",
180
- label: "Overview",
181
- href: "#description",
182
- });
133
+ const categories = data.schema.tags
134
+ .filter((tag) => tag.operations.length > 0)
135
+ .map<SidebarItem>((tag) => ({
136
+ type: "category",
137
+ label: tag.name || "Other endpoints",
138
+ collapsible: true,
139
+ collapsed: false,
140
+ items: tag.operations.map((operation) => ({
141
+ type: "link",
142
+ label: operation.summary ?? operation.path,
143
+ href: `#${operation.slug}`,
144
+ badge: {
145
+ label: operation.method,
146
+ color: MethodColorMap[operation.method.toLowerCase()]!,
147
+ },
148
+ })),
149
+ }));
150
+
151
+ categories.unshift({
152
+ type: "link",
153
+ label: "Overview",
154
+ href: "#description",
155
+ });
183
156
 
184
- return categories;
157
+ return categories;
158
+ } catch {
159
+ return [];
160
+ }
185
161
  },
186
162
  getRoutes: () =>
187
163
  [
@@ -192,7 +168,6 @@ export const openApiPlugin = (
192
168
  element: <OpenApiRoute client={client} config={config} />,
193
169
  };
194
170
  },
195
- errorElement: <OpenApiErrorPage />,
196
171
  children: [
197
172
  {
198
173
  path: basePath,
@@ -67,10 +67,13 @@ export const SchemaView = ({
67
67
  }
68
68
  }
69
69
 
70
- if (schema.type === "object" && !schema.properties) {
70
+ if (
71
+ schema.type === "object" &&
72
+ (!schema.properties || Object.keys(schema.properties).length === 0)
73
+ ) {
71
74
  return (
72
75
  <Card className="p-4 flex gap-2 items-center">
73
- {"name" in schema && <>{schema.name}</>}
76
+ {"name" in schema && <>{schema.name as string}</>}
74
77
  <span className="text-sm text-muted-foreground">object</span>
75
78
  {schema.description && (
76
79
  <Markdown
@@ -1,72 +1,58 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any */
2
1
  import { type SchemaObject } from "../../../oas/graphql/index.js";
3
2
 
4
- export const isObject = (value: unknown): boolean =>
5
- typeof value === "object" && value !== null && !Array.isArray(value);
6
-
7
3
  export const generateSchemaExample = (
8
4
  schema: SchemaObject,
9
5
  name?: string,
6
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
7
  ): any => {
11
8
  // Directly return the example or default if they exist
12
9
  if (schema.example !== undefined) {
13
10
  return schema.example;
11
+ } else if (schema.examples) {
12
+ return Object.values(schema.examples)[0];
14
13
  } else if (schema.default !== undefined) {
15
14
  return schema.default;
16
15
  }
17
16
 
18
- // Process examples object
19
- if (schema.examples && isObject(schema.examples)) {
20
- return Object.values(schema.examples)[0];
21
- }
22
-
23
- // Recursively process objects and arrays
24
- return processComplexTypes(schema, name);
25
- };
17
+ if (schema.properties || schema.type === "object") {
18
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
+ const example: any = {};
26
20
 
27
- function processComplexTypes(schema: SchemaObject, name?: string): any {
28
- const properties = Object.entries(schema.properties ?? {}).concat(
29
- Object.entries(schema.additionalProperties ?? {}),
30
- );
31
- if (schema.type === "object" && properties.length > 0) {
32
- const obj: { [key: string]: any } = {};
33
- properties.forEach(([key, propSchema]) => {
34
- const value = generateSchemaExample(propSchema, key);
35
- if (value !== undefined) {
36
- obj[key] = value;
21
+ if (schema.properties) {
22
+ for (const [key, propSchema] of Object.entries(schema.properties)) {
23
+ example[key] = generateSchemaExample(propSchema as SchemaObject, key);
37
24
  }
38
- });
39
- return obj;
40
- } else if (schema.type === "array" && schema.items) {
41
- const value = generateSchemaExample(schema.items, name);
42
- if (value !== undefined) {
43
- return [value];
25
+ }
26
+ return example;
27
+ }
28
+
29
+ if (schema.type === "array") {
30
+ if (Array.isArray(schema.items)) {
31
+ return schema.items.map((itemSchema) =>
32
+ generateSchemaExample(itemSchema as SchemaObject),
33
+ );
34
+ } else if (schema.items) {
35
+ return [generateSchemaExample(schema.items as SchemaObject)];
44
36
  }
45
37
  return [];
46
38
  }
47
- // Fallback for missing or undefined types
48
- return undefined; //getDefaultForType(schema.type);
49
- }
50
39
 
51
- function getDefaultForType(type?: string | string[]): any {
52
- if (Array.isArray(type)) {
53
- return getDefaultForSingleType(type[0]);
40
+ if (schema.enum) {
41
+ return schema.enum[0];
54
42
  }
55
- return getDefaultForSingleType(type);
56
- }
57
43
 
58
- function getDefaultForSingleType(type?: string): any {
59
- switch (type) {
44
+ switch (schema.type) {
60
45
  case "string":
61
- return "";
46
+ return name || "string";
62
47
  case "number":
63
48
  case "integer":
64
49
  return 0;
65
50
  case "boolean":
66
- return false;
51
+ return true;
67
52
  case "null":
68
53
  return null;
54
+ case undefined:
69
55
  default:
70
- return "undefined";
56
+ return {};
71
57
  }
72
- }
58
+ };
@@ -1 +1,11 @@
1
- export { createClient } from "./openapi/client/createWorkerClient.js";
1
+ export const initializeWorker = () => {
2
+ const worker = new SharedWorker(
3
+ new URL("./openapi/client/worker.ts", import.meta.url),
4
+ { type: "module" },
5
+ );
6
+ // eslint-disable-next-line no-console
7
+ worker.onerror = (e) => console.error(e);
8
+ worker.port.start();
9
+
10
+ return worker;
11
+ };
@@ -1,19 +1,15 @@
1
1
  import { redirect } from "react-router-dom";
2
- import type { DevPortalPlugin } from "../../core/plugins.js";
3
-
4
- export type Redirect = {
5
- from: string;
6
- to: string;
7
- };
2
+ import { ZudokuRedirect } from "../../../config/validators/validate.js";
3
+ import type { ZudokuPlugin } from "../../core/plugins.js";
8
4
 
9
5
  export const redirectPlugin = (options: {
10
- redirects: Redirect[];
11
- }): DevPortalPlugin => {
6
+ redirects: ZudokuRedirect[];
7
+ }): ZudokuPlugin => {
12
8
  return {
13
9
  getRoutes: () =>
14
10
  options.redirects.map(({ from, to }) => ({
15
11
  path: from,
16
- loader: () => redirect(to),
12
+ loader: () => redirect(to, 301),
17
13
  })),
18
14
  };
19
15
  };
@@ -1,7 +1,7 @@
1
1
  import type { InkeepWidgetBaseSettings } from "@inkeep/widgets";
2
2
  import { lazy } from "react";
3
3
  import { ClientOnly } from "../../components/ClientOnly.js";
4
- import type { DevPortalPlugin } from "../../core/plugins.js";
4
+ import type { ZudokuPlugin } from "../../core/plugins.js";
5
5
  import { aiChatSettings, baseSettings } from "./inkeep.js";
6
6
 
7
7
  type PickedPluginInkeepBaseSettings =
@@ -44,7 +44,7 @@ const InkeepSearch = ({
44
44
 
45
45
  export const inkeepSearchPlugin = (
46
46
  settings: PluginInkeepBaseSettings,
47
- ): DevPortalPlugin => {
47
+ ): ZudokuPlugin => {
48
48
  return {
49
49
  renderSearch: ({
50
50
  isOpen,
@@ -0,0 +1,28 @@
1
+ import { forwardRef } from "react";
2
+ import { Button, type ButtonProps } from "zudoku/ui/Button.js";
3
+ import { Spinner } from "../components/Spinner.js";
4
+ import { cn } from "../util/cn.js";
5
+
6
+ type ActionButtonProps = ButtonProps & { isPending?: boolean };
7
+
8
+ export const ActionButton = forwardRef<HTMLButtonElement, ActionButtonProps>(
9
+ ({ isPending, children, className, ...props }: ActionButtonProps, ref) => {
10
+ return (
11
+ <Button
12
+ ref={ref}
13
+ disabled={isPending}
14
+ {...props}
15
+ className={cn("relative", className)}
16
+ >
17
+ {isPending && (
18
+ <div className="absolute inset-0 grid place-items-center">
19
+ <Spinner />
20
+ </div>
21
+ )}
22
+ <div className={cn(isPending && "invisible")}>{children}</div>
23
+ </Button>
24
+ );
25
+ },
26
+ );
27
+
28
+ ActionButton.displayName = "ActionButton";
@@ -0,0 +1,5 @@
1
+ import { useEffect, useLayoutEffect } from "react";
2
+ const useIsomorphicLayoutEffect =
3
+ typeof window !== "undefined" ? useLayoutEffect : useEffect;
4
+
5
+ export default useIsomorphicLayoutEffect;
@@ -0,0 +1,32 @@
1
+ import { useEffect, useRef, useState } from "react";
2
+
3
+ export const useOnScreen = ({
4
+ rootMargin = "0px",
5
+ threshold,
6
+ }: {
7
+ rootMargin?: string;
8
+ threshold?: number;
9
+ } = {}) => {
10
+ const [isVisible, setIsVisible] = useState(false);
11
+ const ref = useRef<HTMLElement | null>(null);
12
+
13
+ useEffect(() => {
14
+ const observer = new IntersectionObserver(
15
+ ([entry]) => {
16
+ if (!entry) return;
17
+ setIsVisible(entry.isIntersecting);
18
+ },
19
+ { rootMargin, threshold },
20
+ );
21
+
22
+ const currentElement = ref.current;
23
+
24
+ if (!currentElement) return;
25
+
26
+ observer.observe(currentElement);
27
+
28
+ return () => observer.unobserve(currentElement);
29
+ }, [rootMargin, threshold]);
30
+
31
+ return [ref, isVisible] as const;
32
+ };
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevPortal.js","sourceRoot":"","sources":["../../../src/lib/components/DevPortal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EACL,QAAQ,EACR,IAAI,EAEJ,UAAU,EACV,SAAS,EACT,OAAO,EACP,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EACL,gBAAgB,EAChB,WAAW,GAEZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,wCAAwC,CAAC;AAChD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,cAAc,GAAG,CAAC,EACtB,QAAQ,EACR,GAAG,KAAK,EACgC,EAAE,EAAE;IAC5C,MA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ACF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const ThemeContext: import("react").Context<readonly [boolean, () => void]>;
2
- export declare const useTheme: () => readonly [boolean, () => void];
@@ -1,7 +0,0 @@
1
- import { createContext, useContext } from "react";
2
- export const ThemeContext = createContext([
3
- false,
4
- () => { },
5
- ]);
6
- export const useTheme = () => useContext(ThemeContext);
7
- //# sourceMappingURL=ThemeContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemeContext.js","sourceRoot":"","sources":["../../../../src/lib/components/context/ThemeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAiC;IACxE,KAAK;IACL,GAAG,EAAE,GAAE,CAAC;CACT,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { ReactNode } from "react";
2
- export declare const ThemeProvider: (props: {
3
- children: ReactNode;
4
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useCallback, useEffect, useState } from "react";
3
- import { ThemeContext } from "./ThemeContext.js";
4
- export const ThemeProvider = (props) => {
5
- const [dark, setDark] = useState(false);
6
- // On mount, read the preferred theme from the persistence
7
- useEffect(() => {
8
- const theme = localStorage.getItem("theme");
9
- const prefersDark = window.matchMedia("(prefers-color-scheme: dark)");
10
- const isDark = theme === "dark" || (!theme && prefersDark.matches);
11
- setDark(isDark);
12
- }, [dark]);
13
- // To toggle between dark and light modes
14
- const toggle = useCallback(() => {
15
- const toggled = !dark;
16
- document.documentElement.classList.toggle("dark", toggled);
17
- localStorage.setItem("theme", toggled ? "dark" : "light");
18
- setDark(toggled);
19
- }, [dark]);
20
- const value = [dark, toggle];
21
- return _jsx(ThemeContext.Provider, { value: value, ...props });
22
- };
23
- //# sourceMappingURL=ThemeProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../../../../src/lib/components/context/ThemeProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAA8B,EAAE,EAAE;IAC9D,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAExC,0DAA0D;IAC1D,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,KAAK,KAAK,MAAM,IAAI,CAAC,CAAC,KAAK,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC;QAEnE,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,yCAAyC;IACzC,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,EAAE;QAC9B,MAAM,OAAO,GAAG,CAAC,IAAI,CAAC;QACtB,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC3D,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC1D,OAAO,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC,EAAE,CAAC,IAAI,CAAC,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CAAC,cAAc,EAAE,CAAC;QAE/D,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,WAAW,EAAE,CAAC,CAAC;QAE9D,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC;CACH"}
@@ -1,12 +0,0 @@
1
- import { CreateClientFunction } from "./interfaces.js";
2
- export type WorkerGraphQLMessage = {
3
- id: string;
4
- body: string;
5
- };
6
- /**
7
- * Creates an in memory Client that does not use Workers. This allows
8
- * developers to run the simple standalone version of zudoku using the CDN
9
- * hosted scripts. Worker's cannot be loaded cross domain so in this case
10
- * we sacrifice performance for making it work cross domain.
11
- */
12
- export declare const createClient: CreateClientFunction;
@@ -1,46 +0,0 @@
1
- /* eslint-disable no-console */
2
- import { cacheExchange, Client, fetchExchange, mapExchange } from "urql";
3
- import { createServer } from "./createServer.js";
4
- const localServer = createServer();
5
- /**
6
- * Creates an in memory Client that does not use Workers. This allows
7
- * developers to run the simple standalone version of zudoku using the CDN
8
- * hosted scripts. Worker's cannot be loaded cross domain so in this case
9
- * we sacrifice performance for making it work cross domain.
10
- */
11
- export const createClient = () => {
12
- return new Client({
13
- url: "/__z/graphql",
14
- // Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
15
- fetch: async (req, init) => {
16
- if (!init?.body)
17
- throw new Error("No body");
18
- const response = await localServer.fetch(new Request("http://localhost/__z/graphql", {
19
- method: "POST",
20
- body: init.body,
21
- headers: {
22
- "Content-Type": "application/json",
23
- },
24
- }));
25
- return response;
26
- // port.postMessage({
27
- // id: e.data.id,
28
- // body: await response.text(),
29
- // } satisfies WorkerGraphQLMessage);
30
- },
31
- exchanges: [
32
- cacheExchange,
33
- mapExchange({
34
- onError(error, operation) {
35
- console.error(error);
36
- console.groupCollapsed("Operation info");
37
- console.log("body", operation.query.loc?.source.body.trim());
38
- console.log("variables", operation.variables);
39
- console.groupEnd();
40
- },
41
- }),
42
- fetchExchange,
43
- ],
44
- });
45
- };
46
- //# sourceMappingURL=createMemoryClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createMemoryClient.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/createMemoryClient.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKjD,MAAM,WAAW,GAAG,YAAY,EAAE,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAyB,GAAG,EAAE;IACrD,OAAO,IAAI,MAAM,CAAC;QAChB,GAAG,EAAE,cAAc;QACnB,8GAA8G;QAC9G,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,IAAI,CAAC,IAAI,EAAE,IAAI;gBAAE,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;YAC5C,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CACtC,IAAI,OAAO,CAAC,8BAA8B,EAAE;gBAC1C,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;aACF,CAAC,CACH,CAAC;YACF,OAAO,QAAQ,CAAC;YAChB,qBAAqB;YACrB,mBAAmB;YACnB,iCAAiC;YACjC,qCAAqC;QACvC,CAAC;QACD,SAAS,EAAE;YACT,aAAa;YACb,WAAW,CAAC;gBACV,OAAO,CAAC,KAAK,EAAE,SAAS;oBACtB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBACrB,OAAO,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;oBACzC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;oBAC7D,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;oBAC9C,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACrB,CAAC;aACF,CAAC;YACF,aAAa;SACd;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import { CreateClientFunction } from "./interfaces.js";
2
- export type WorkerGraphQLMessage = {
3
- id: string;
4
- body: string;
5
- };
6
- /**
7
- * This loads the client from a worker and uses mess port to send requests
8
- * and responses between the main thread and the worker.
9
- */
10
- export declare const createClient: CreateClientFunction;
@@ -1,61 +0,0 @@
1
- /* eslint-disable no-console */
2
- import { monotonicFactory } from "ulidx";
3
- import { cacheExchange, Client, fetchExchange, mapExchange } from "urql";
4
- import { createWaitForNotify } from "../../../util/createWaitForNotify.js";
5
- import { createClient as createMemoryClient } from "./createMemoryClient.js";
6
- const ulid = monotonicFactory();
7
- /**
8
- * This loads the client from a worker and uses mess port to send requests
9
- * and responses between the main thread and the worker.
10
- */
11
- export const createClient = ({ useMemoryClient, }) => {
12
- if (useMemoryClient || typeof SharedWorker === "undefined") {
13
- return createMemoryClient({ useMemoryClient });
14
- }
15
- // NOTE: This URL needs to be inline with the SharedWorker otherwse
16
- // vite build does not recognize the worker file as a module.
17
- const worker = new SharedWorker(new URL("./worker.ts", import.meta.url), {
18
- type: "module",
19
- });
20
- worker.onerror = (e) => {
21
- console.error(e);
22
- };
23
- worker.port.start();
24
- const [waitFor, notify] = createWaitForNotify();
25
- worker.port.onmessage = (e) => {
26
- notify(e.data.id, e.data.body);
27
- };
28
- return new Client({
29
- url: "/__z/graphql",
30
- // Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
31
- fetch: async (_req, init) => {
32
- if (!init?.body)
33
- throw new Error("No body");
34
- const id = ulid();
35
- worker.port.postMessage({
36
- id,
37
- body: init.body,
38
- });
39
- const body = await waitFor(id);
40
- return new Response(body, {
41
- headers: {
42
- "Content-Type": "application/json",
43
- },
44
- });
45
- },
46
- exchanges: [
47
- cacheExchange,
48
- mapExchange({
49
- onError(error, operation) {
50
- console.error(error);
51
- console.groupCollapsed("Operation info");
52
- console.log("body", operation.query.loc?.source.body.trim());
53
- console.log("variables", operation.variables);
54
- console.groupEnd();
55
- },
56
- }),
57
- fetchExchange,
58
- ],
59
- });
60
- };
61
- //# sourceMappingURL=createWorkerClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createWorkerClient.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/createWorkerClient.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAI7E,MAAM,IAAI,GAAG,gBAAgB,EAAE,CAAC;AAEhC;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAyB,CAAC,EACjD,eAAe,GAGhB,EAAE,EAAE;IACH,IAAI,eAAe,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE,CAAC;QAC3D,OAAO,kBAAkB,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC;IACjD,CAAC;IACD,mEAAmE;IACnE,6DAA6D;IAC7D,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,IAAI,GAAG,CAAC,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QACvE,IAAI,EAAE,QAAQ;KACf,CAAC,CAAC;IAEH,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC,EAAE,EAAE;QACrB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,CAAC,IAAI,CAAC,KAAK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AE,CAAC;gBACrB,CAAC;aACF,CAAC;YACF,aAAa;SACd;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { Client } from "urql";
2
- export type CreateClientFunction = (config: {
3
- useMemoryClient: boolean;
4
- }) => Client;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/interfaces.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare const themeToggle: () => void;