Samy Pessé
32a73b55d4
Version Packages ( #2403 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-25 15:12:18 +02:00
Samy Pessé
0426312d6c
Reset to first tab when tabs change in an InteractiveSection ( #2407 )
2024-07-25 15:09:21 +02:00
Samy Pessé
ede2335fb3
Fix x-codeSamples: false not working at the single operation level ( #2408 )
2024-07-25 14:59:30 +02:00
Amrit Kahlon
709f1a1ccb
Update Scalar Api Client to new version ( #2406 )
...
Co-authored-by: marclave <marc@scalar.com >
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-07-25 10:25:50 +02:00
Samy Pessé
24b785cbfb
Update shiki to fix diff code highlighting ( #2338 )
2024-07-25 09:33:42 +02:00
Samy Pessé
acc3f2f418
Fix Scalar proxy failing on Cloudflare ( #2402 )
2024-07-24 11:41:35 +02:00
Scott Cazan
d4a653d6a9
Use SpaceURL in getURL function to for cross-space searches ( #2399 )
2024-07-23 12:07:32 +02:00
Samy Pessé
7e74d25447
Version Packages ( #2397 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-22 16:26:53 +02:00
Samy Pessé
3445db41ce
Fix packages not including all files ( #2396 )
2024-07-22 16:20:06 +02:00
Samy Pessé
d1bd02a6f5
Version Packages ( #2395 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-22 15:43:27 +02:00
Samy Pessé
24cd72e088
Use a personal token for the changeset GitHub workflow ( #2394 )
2024-07-22 15:30:11 +02:00
github-actions[bot]
47f7558c38
Version Packages ( #2393 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-22 15:05:57 +02:00
Samy Pessé
de747b7b33
Better structure monorepo and publish JS files for react-openapi and react-math ( #2392 )
2024-07-22 15:02:04 +02:00
github-actions[bot]
e966e33e8f
Version Packages ( #2390 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-21 19:45:18 +02:00
Samy Pessé
bd0ca5babd
Fix @gitbook/react-openapi when react import are mandatory ( #2389 )
2024-07-21 19:43:50 +02:00
github-actions[bot]
ba2a523722
Version Packages ( #2387 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-19 08:28:14 +02:00
github-actions[bot]
7377928c8a
Version Packages ( #2385 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-18 21:05:22 +02:00
Samy Pessé
5f8a8fe9b1
Setup Changeset to publish packages to NPM ( #2384 )
2024-07-18 21:00:50 +02:00
Samy Pessé
b8c136e9c0
Fix render of one of when alternatives are primitives ( #2378 )
2024-07-15 10:15:42 +02:00
Samy Pessé
81b372f372
Fix response example when response example is a string ( #2377 )
2024-07-12 10:35:22 +02:00
Samy Pessé
aaf5793cb7
Use schema.example if defined, even if value is falsy ( #2370 )
2024-07-05 16:34:48 +02:00
Samy Pessé
8d38d000fd
Fix RND-4344 ( #2368 )
2024-07-04 17:04:35 +02:00
vibhanshub
106cbbd987
Add support for examples in OpenAPI block ( #2314 )
2024-06-20 16:02:58 +05:30
Taran Vohra
8ad0657159
Use site's share key as context while fetching site spaces ( #2341 )
2024-06-14 20:59:05 +05:30
Rodrigo Castro
3914f11150
Add Brazilian Portuguese translation ( #2285 )
...
Co-authored-by: taranvohra <taranvohra@outlook.com >
2024-06-13 14:54:47 +02:00
Taran Vohra
553f1f228f
Bump @gitbook/api to 0.48.0 ( #2328 )
2024-05-24 20:10:25 +05:30
Taran Vohra
30986528a7
bump @gitbook/api to 0.47 ( #2327 )
2024-05-24 19:07:54 +05:30
Marc Laventure
cf74d00758
chore: update scalar client ( #2316 )
2024-05-14 11:52:09 -07:00
Steven H
5db3cbc2ce
Render Embed blocks that can be handled by an integration in the Space. ( #2302 )
2024-04-25 15:25:53 +01:00
Taran Vohra
0c224861e3
Sites support ( #2262 )
2024-04-08 17:06:22 +05:30
Steven H
3076e96061
Fix an issue where OpenAPI blocks could not be fetched. ( #2267 )
2024-04-04 12:28:30 +02:00
Samy Pessé
c1ef7f2782
Fix display of parameter's description in OpenAPI block ( #2258 )
2024-04-02 00:35:59 +02:00
Samy Pessé
4f728c0137
Fix parsing of Swagger 2.0 when it can be patched ( #2254 )
2024-03-31 20:13:34 +02:00
Samy Pessé
0894a740ff
Fix crash when "required" is not an array in OpenAPI schemas ( #2247 )
2024-03-28 17:03:30 +01:00
Amrit Kahlon
ef8eb72364
fix: clear scalar api client response on close ( #318 )
...
* fix: clear scalar api client response on close
* bun install
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
2024-03-21 14:53:29 +01:00
Samy Pessé
37be6f3164
Support options in the OpenAPI spec to control the look and feel ( #306 )
...
* Don't show code-samples if x-codeSamples is defined
* Support x-hideTryItPanel to hide "Try it"
* Fix display of code samples
2024-03-19 16:32:15 +01:00
Marc Laventure
4f039ecb2b
feat: add scalar api client ( #180 )
...
* wip
* feat: add scalar api client
* fix: pr feedback
* feat: add scalar react client package, remove vueary
* feat: add scalar proxy
* Move dependencies to package
* Format once
* Rename prop
* Use react context and simplify lazy loading
* Add loading state
* Format
* Move styles
* bun install
* bun
* fix: remove extraneous api-reference package
* feat: make operation functional with spec in client
* fix: column bug and http request type wrapping
* fix: add scalar api reference package
* Format
* bun install
* fix: scrolling in scalar modal
* Lazy load operations data in component
* fix: change dependency from api-reference to oas-utils to reduce size
* bun install
* Log error in the worker proxy
* Cleanup
* Comment "mode"
* Without credentials and referrerPolicy
---------
Co-authored-by: Samy Pessé <samypesse@gmail.com >
Co-authored-by: Amrit <amrit@hockey-community.com >
2024-03-19 15:32:54 +01:00
Samy Pessé
6695de7b79
Fix inline math not displayed with KaTeX ( #304 )
...
* Fix mathjax loading
* Fix inline math not being displayed
* Format
2024-03-19 12:39:53 +01:00
Samy Pessé
cf958bacd1
Fallback to MathJax when KaTeX fails to compile math ( #303 )
...
* Start
* Use MathJax v3
* Format
* Improve font-size
* Lint
* Better handle loading
* Copy MathJax assets to public folder
* Attempt at using local assets for MathJax
* Use bun 1.0.31
* Try with bun 1.0.33
* Try fixing headers
* Simplify
* Simplify and not use suspense module
* Cleanup more
* Add test for Math
* Make math block scroll if needed
* Update packages/react-math/src/KaTeX.tsx
Co-authored-by: Greg Bergé <berge.greg@gmail.com >
* Use React.use
* Format
* Use exports
* Lint
* Disable cache in CI for lint
* Format
---------
Co-authored-by: Greg Bergé <berge.greg@gmail.com >
2024-03-19 11:34:53 +01:00
Steven H
d8ffa5d69c
Fix an issue where parsing an OpenAPI schema without securitySchemas would crash the page. ( #263 )
2024-03-15 10:27:23 +00:00
Scott Cazan
fc11ffdc8b
Don't try to render responses if none are defined by the user ( #255 )
...
* don't try to parse responses if none are defined
* don't try to render responses if none exists
* move logic back into component
2024-03-13 14:37:21 +01:00
Samy Pessé
cf4b1249a9
Optimize performances for reading revisions ( #251 )
...
* Optimize read of revisions with metadata=false when possible
* Format
* Fix
* Update src/components/AdminToolbar/AdminToolbar.tsx
Co-authored-by: Steven H <shne24@gmail.com >
---------
Co-authored-by: Steven H <shne24@gmail.com >
2024-03-13 12:54:32 +01:00
Scott Cazan
658eb4d13f
extra check for undefined in schema.items ( #250 )
2024-03-13 12:24:10 +01:00
Samy Pessé
55d1e538d9
More resilient caching and use of KV ( #222 )
...
* Add unit tests for "race"
* Reduce to 80s
* Implement a Cloudflare KV cache
* Format
* Lint
* Fix tagging of entries in KV
* No longer use HTTP cache tags
* Simplify tags to only keep 2
* Implement a blockFallback logic
* Improve the block fallback logic
* More tests
* Start introducing a always optional signal on all cache ops
* Correctly pass signal end to end
* Fix one more case and add tests
* Fix it
* Add test for error
* Fix error handling
* Simplify even more
* Improve logs
* Improve logs / measurements
* Fix timing
* Fix read cache duration and add minor tests
* Log redis time
* Change replication logic
* Fix redis errors
* Log more
* More logs and test memory first
* Improve tracing for cache backends
* Ignore all dependencies
* Log the key in the cache low level traces
2024-03-08 09:43:30 +01:00
Samy Pessé
f41b0c7ba1
Fix crash when resolving ref fails in an OpenAPI file ( #220 )
...
* Fix crash when resolving ref fails in an OpenAPI file
* Use static.gitbook.com for assets prefix
2024-03-06 18:09:34 +01:00
Samy Pessé
203e9103de
Fix crash when displaying invalid Swagger 2.0 block ( #214 )
...
* Ignore errors when converting Swagger 2 to OpenAPI 3
* Apply page-api-block only when a block is actually displayed
* Format
* Try to be more lax
2024-03-06 10:43:11 +01:00
Samy Pessé
44945f887a
Fix crash when no example can be generated for response of API ( #207 )
2024-03-05 15:51:40 +01:00
Samy Pessé
1e1d202b5a
Improve PDF export for tabs/expandables/api blocks ( #204 )
...
* Fix integrations blocks and text being too long
* Fix size of code blocks
* Open expandable by default on print mode
* Render tabs one after the other
* Adjust colors
* Open all in openapi when printing
* Fix title
* Format
* Fix TS
2024-02-29 19:49:03 +01:00
Samy Pessé
70c6c9df42
First pass at implementing ContentKit ( #69 )
...
* Start
* Try webframe
* Lint and format
* Move to package
* Continue
* Implement card and cleanup contexts
* Start code blocks
* Start rendering image
* Continue with card
* Start stack
* Start text
* Start modal
* Format
* Continue
* Fix TS errors
* Cleanup
* Make markdown work with server components
* Format
* Add visual test
* Lint and format
* Fix lifecycle
* Implement textinput
* Divider
* Remove console logs
* Remove listSpaceIntegrationsBlocks
2024-02-28 14:46:47 +01:00
Samy Pessé
a2d967e98e
Use Joypixels instead of native emojis ( #176 )
...
* fist test
* Use a font
* Cleanup
* Use right fallbacks for fonts
* Lint
* Cleanup and comment
* Add visual test
2024-02-20 13:54:57 +01:00