Commit Graph

370 Commits

Author SHA1 Message Date
Roman Hotsiy
eae11682b8
chore: sections/markdown refactor 2018-08-16 09:56:47 +03:00
Roman Hotsiy
8218a2694d
fix: broken rendering of code blocks with language in markdown 2018-08-11 23:15:05 +03:00
Roman Hotsiy
e660517a2a
fix: broken rendering of headings with regexp characters 2018-08-11 23:14:09 +03:00
Roman Hotsiy
d13fe13eb8
fix: fix auth requirements font size 2018-08-09 08:53:35 +03:00
Roman Hotsiy
58ae668f64
fix: crash on any backticks code block without lang specified 2018-08-09 08:44:01 +03:00
Roman Hotsiy
334f9047a8
fix: download button downloads index.html instead of spec with CLI
fixes #594
2018-08-08 12:03:55 +03:00
Roman Hotsiy
23559fbece
fix: preserve md heading level in description 2018-08-08 11:42:07 +03:00
Roman Hotsiy
97e16208d5
fix: schemes without type: object are not expandable
fixes #599
2018-08-08 11:41:53 +03:00
Roman Hotsiy
597688e720
fix: add some spacing between operation description and parameters 2018-08-07 18:08:43 +03:00
Roman Hotsiy
9e69eedea0
chore: fix lint issues in tests 2018-08-07 18:08:43 +03:00
Roman Hotsiy
90ed717bb5
fix: description is not rendered if doesn't containt markdown headings
fixes #591
2018-08-07 18:08:43 +03:00
Roman Hotsiy
2ecc8bc58e
fix: fix Authentication section is not rendered
fixes #590
2018-08-07 18:08:43 +03:00
Roman Hotsiy
8fb9cd6bac
fix: fix linebreaks in multiparagraph field descriptions 2018-08-07 18:08:43 +03:00
Matthias Mohr
f70ac081fe fix: render additionalProperties set to true (#597)
fixes #596
2018-08-07 13:02:39 +03:00
Sheila Kelly
568ce74077 feat: Add x-logo alt text support (#584)
Fixes #546
2018-08-02 15:27:38 +03:00
Roman Hotsiy
00bd966797
feat: support label for x-code-samples
fixes #586
2018-08-01 10:20:16 +03:00
Roman Hotsiy
7a35a4d0de
chore: tests crash fix after refactor 2018-07-31 16:58:44 +03:00
Roman Hotsiy
ba22b1e352
fix: show examples for response headers
fixes #575
2018-07-31 16:55:06 +03:00
Roman Hotsiy
15dfe44d4e
fix: allow word-break in code strings in md 2018-07-31 16:45:56 +03:00
Roman Hotsiy
d99e9188fd
fix: long endpoint url overflow 2018-07-31 16:14:12 +03:00
Roman Hotsiy
a4f79bf8c2
chore: refactor, separate active and expanded state for menu items 2018-07-31 15:55:35 +03:00
Roman Hotsiy
5ebab5f942
chore: perfect scrollbar wrapper to maintain initial offset 2018-07-31 15:36:30 +03:00
Roman Hotsiy
35ba10f759
chore: refactor, unify markdown headings 2018-07-31 15:35:35 +03:00
Roman Hotsiy
d731518c8c
chore: refactor, rename StoreProvider to StoreBuilder 2018-07-30 12:51:50 +03:00
Roman Hotsiy
873fe05a5d
chore: SideMenu accept className 2018-07-26 18:00:30 +03:00
Roman Hotsiy
d74578dc9b
fix: remove break-all from code samples 2018-07-26 17:51:47 +03:00
Roman Hotsiy
9361ead8c4
chore: refactor, simplify AppStore 2018-07-26 17:51:10 +03:00
Roman Hotsiy
f96c481b34
fix: wrong display when combining multiple auth requirements
fies #577
2018-07-25 13:11:26 +03:00
Roman Hotsiy
b5d0aca9ae
chore: fix lint issues 2018-07-23 13:22:24 +03:00
Roman Hotsiy
9d6b30c55a
feat: simple variable substitution support
fixes #565
2018-07-23 12:00:30 +03:00
Roman Hotsiy
59e05fbe75
chore: fix typo SecurityRequirement
fixes #571
2018-07-23 11:20:56 +03:00
Roman Hotsiy
21f34b1e59
chore: minor typings fix 2018-07-23 11:19:13 +03:00
Roman Hotsiy
2ff726649c
chore: run prettier 2018-07-23 11:17:31 +03:00
Roman Hotsiy
b41b181dd0
fix: server url contains spec name if not specified in the spec 2018-07-23 11:16:54 +03:00
Roman Hotsiy
cbfc226fa9
chore: minor css improvements 2018-07-19 17:12:31 +03:00
Roman Hotsiy
8c9304a719
Fix: unify code samples and json styling, stop using injectGlobal for prism
fixes #491
2018-07-19 17:07:11 +03:00
Roman Hotsiy
58bddc8811
feat: big theme update 2018-07-19 14:33:51 +03:00
Roman Hotsiy
7e5b6d9029
fix: properly host oneOf inside allOf
fixes #507
fixes #528
2018-07-18 13:03:42 +03:00
Roman Hotsiy
89aa754063
fix: different output of cli bundle and redoc
fixes #547
2018-07-18 11:51:34 +03:00
Roman Hotsiy
dcca44a92d
fix: fix non-scalar query/path/header params are not expandable
fixes #561
2018-07-17 15:50:14 +03:00
SeungWoon Maz Lee
8817d9c9db fix: use original tag name when slugified one is not valid (#553)
* use original tag name when slugified one is not valid

* use wrapper function when using slugify
2018-07-17 15:21:03 +03:00
Roman Hotsiy
c35925a332
fix: fix Download button url when spec as object was provided
+ do not output huge base64 encoded link when SSR, instead use button handler

fixes #462
related #540
2018-07-17 12:22:27 +03:00
Roman Hotsiy
edc77a2017
chore: update ts and enable noUnusedLocals 2018-07-17 12:15:22 +03:00
Roman Hotsiy
d4ab5adc17
feat: new option disableSearch 2018-07-17 11:07:49 +03:00
Roman Hotsiy
c7b3e47366
chore: remove unused imports after fix in TS@2.9.1 2018-07-16 18:28:36 +03:00
Roman Hotsiy
c0c44bc4fe
fix: regression - broken urls for operations without operationId 2018-07-14 18:16:35 +03:00
Roman Hotsiy
9f0252e12e
chore: update security-requirement ui 2018-07-14 17:11:29 +03:00
Roman Hotsiy
e6ebdb7095
chore: refactor MediaTypesSwitch 2018-07-14 16:37:36 +03:00
Roman Hotsiy
e1c9e19fbc
fix: inline markdown regression 2018-06-30 00:41:31 +03:00
Roman Hotsiy
55bd8535b4
feat: theme hooks experimental hooks 2018-06-29 23:49:53 +03:00
Roman Hotsiy
c3da0a01d4
chore: minor refactor 2018-06-28 20:26:14 +03:00
Roman Hotsiy
06ef51c08c
feat: experimental temporary support for tags in md 2018-06-28 20:25:12 +03:00
Roman Hotsiy
aaaa8999bf
fix: fix link colors in json samples 2018-06-28 20:25:11 +03:00
Roman Hotsiy
78fa31225a
feat: display Value instead of Enum for one-item enum 2018-06-28 20:25:11 +03:00
Roman Hotsiy
1812775cd0
chore: remove unused EmptyDarkRightPanel 2018-06-28 20:25:11 +03:00
Roman Hotsiy
0d45cc26f1
fix: do not uppercase menu items by default 2018-06-26 09:46:16 +03:00
Roman Hotsiy
11947ed68e
fix: change default font weight to 400 2018-06-26 09:36:39 +03:00
Roman Hotsiy
49feddaa10
chore: update snapshots 2018-06-25 14:00:08 +03:00
Roman Hotsiy
761a2c1251
chore: fix lint issues 2018-06-25 13:59:11 +03:00
Roman Hotsiy
16313b8293
feat: pass error in init callback + onLoaded for RedocStandalone 2018-06-25 13:48:51 +03:00
Roman Hotsiy
637b493b41
chore: refactor StoreProvider to not use componentWillReceiveProps 2018-06-25 12:47:09 +03:00
Roman Hotsiy
4e5282e206
fix: default false not displaying
fixes #544
2018-06-25 09:10:44 +03:00
Roman Hotsiy
83fca7d9ff
fix: use pushState instead of hash replace
fixes #542
2018-06-21 13:47:53 +03:00
Jérémy Derussé
4694b6f9ca fix: Use item's title in array definition (#526) 2018-06-21 13:10:10 +03:00
Roman Hotsiy
4c76d52cc6
fix: fix subsections ids so subsections with the same name are allowed
fixes #529
2018-06-20 19:57:52 +03:00
Roman Hotsiy
c8a5f36f17
fix: fix IE11 crash + remove unused polyfills
fixes #448
2018-06-20 19:57:52 +03:00
Roman Hotsiy
5dae267a54
fix: discriminator field doesn't change in examples
fixes #524
2018-06-20 19:57:52 +03:00
Oleg Vaskevich
133f9f0d12 chore: Add x-code-samples to TS types (#533) 2018-06-20 19:09:16 +03:00
Lev Pachmanov
070dc5c0a8 feat: support for x-discriminator-value for 2.0 as alternative to mapping (#534)
Add vendor extension `x-discriminator-value `used by swagger-codegen for Swagger 2.0 as an alternative to OpenAPI 3.0 mapping feature.
2018-06-20 19:08:19 +03:00
Jérémy Derussé
35f83e491a chore: escape HTML (#527) 2018-06-18 15:58:26 +03:00
Roman Hotsiy
c0b0cd49b5
fix: support wildcard status codes
fixes #531
2018-06-18 15:56:31 +03:00
Roman Hotsiy
d38f2f2a5a
fix: add ReDoc attribution link which was present in 1.x 2018-06-01 19:44:34 +03:00
Roman Hotsiy
209c6caca0
fix: non-json sample crash in some cases
fixes #456
2018-06-01 18:20:28 +03:00
Roman Hotsiy
63ae2e8e94
feat: support x-summary for response objects
fixes #500
2018-06-01 16:50:07 +03:00
Roman Hotsiy
bde08f1283
fix: fix vertical line misaligned in firefox
closes #503
2018-05-31 15:41:57 +03:00
Roman Hotsiy
d957ad762d
fix: fix typings on npm 2018-05-31 15:41:57 +03:00
Jérémy Derussé
47b2177f58 fix: MergeAll takes items into account (#511) 2018-05-31 12:59:55 +03:00
Roman Hotsiy
2eb1952875
fix: HEAD http verb support in menu badges
fixes #493
2018-05-29 18:58:37 +03:00
Roman Hotsiy
3698598d60
chore: update deps 2018-05-29 18:44:03 +03:00
Roman Hotsiy
3c6de2cafc
fix: more descriptive message for wrong discriminator use
fixes #505
2018-05-29 17:58:57 +03:00
Roman Hotsiy
aaff311a3e
feat: support x-discriminator for OpenAPI 2
related to #496
2018-05-29 17:51:50 +03:00
Roman Hotsiy
6ea2b7b0e6
fix: fix font-weight inconsistency
fixes #506
2018-05-29 17:51:50 +03:00
Roman Hotsiy
d162babe19
feat: add new experimental option unstable_ignoreMimeParameters 2018-05-29 17:51:50 +03:00
Roman Hotsiy
64801b039f
fix: specify caption-side
fixes #509
2018-05-28 21:54:02 +03:00
Roman Hotsiy
57a32ba116
chore: update deps 2018-05-28 21:50:26 +03:00
Roman Hotsiy
f8b793d2dc
feat: new theme colors: code and codeBg 2018-05-28 21:47:37 +03:00
Roman Hotsiy
782ef77080
feat: new theme option: nestingSpacing 2018-05-28 21:45:34 +03:00
Roman Hotsiy
6b1e8e75b0
fix: replace "oops" with field name 🙈 2018-05-18 17:30:21 +03:00
Roman Hotsiy
a1fa4b47a8
fix: reduce search index size 2018-05-18 15:13:46 +03:00
Roman Hotsiy
8afae474c7
chore: fix declarations 2018-05-18 15:10:55 +03:00
Roman Hotsiy
e13d172502
chore: allow for children in MenuItemTitle 2018-05-18 15:09:30 +03:00
Roman Hotsiy
59571596c0
refactor: move styled.d.ts patch to typings 2018-05-18 13:47:35 +03:00
Roman Hotsiy
2654cefd75
refactor: minor refactor 2018-05-17 11:41:51 +03:00
Roman Hotsiy
08253ee1b1
chore: enable tslint for test files 2018-05-16 13:08:27 +03:00
Roman Hotsiy
9115be8378
feat: export TypeScript typings 2018-05-16 12:44:44 +03:00
Roman Hotsiy
0d6deff8c8
feat: display scope description as markdown, fixes #466 2018-05-14 11:48:11 +03:00
Roman Hotsiy
2cf4c3cd7b
fix: path parameters are not correctly override, fixes #481 2018-05-14 11:37:19 +03:00
Roman Hotsiy
6d1a9e589c
fix: limit height of discriminator dropdown, fixes #484 2018-05-14 11:04:56 +03:00
Roman Hotsiy
3829aca046
chore: fix lint issues 2018-05-14 11:00:43 +03:00
Roman Hotsiy
42cf18edb3
fix: fix prism lang dependencies, fixes #467 2018-05-14 09:51:57 +03:00
Roman Hotsiy
afb11d6a4f
fix: fix @observer on PureComponent warning 2018-05-14 09:50:35 +03:00
Roman Hotsiy
126c6a689a
fix: change look of additionalProperties 2018-05-14 09:33:09 +03:00
Morgan Terry
64119c44d4 fix: fix spelling in error message (#455) 2018-04-17 08:51:07 +03:00
Roman Hotsiy
1aa7d5d279
tests: add JsonViewer basic unit tests 2018-03-26 23:09:09 +03:00
Roman Hotsiy
04251a581a
tests: move tests to parent folder 2018-03-26 22:33:46 +03:00
Roman Hotsiy
29a7f299a1
tests: workaround perfectscroll importing issue in jest 2018-03-26 22:24:47 +03:00
Roman Hotsiy
83af48112c
tests: add standalone component test 2018-03-26 22:24:39 +03:00
Roman Hotsiy
deffdc548e
chore: remove worker from main bundle for browser/standalone build 2018-03-26 18:24:19 +03:00
Roman Hotsiy
33eaf77dc5
refactor: rename isBrowser to IS_BROWSER + use only it for detection 2018-03-26 18:15:54 +03:00
Roman Hotsiy
5cab571f78
chore: fix lint issues 2018-03-26 13:58:20 +03:00
Roman Hotsiy
d5286fc5bb
chore: exclude some rarely-used langs for APIs (-4Kb) 2018-03-26 13:57:39 +03:00
Roman Hotsiy
09cbe884b5
fix: disable chrome tap-highlight on mobiile 2018-03-23 16:17:01 +02:00
Roman Hotsiy
fefe571d29
chore: add babel-plugin-styled-components (smaller bundle size) 2018-03-23 16:16:29 +02:00
Roman Hotsiy
384c883bb8
fix: fix logo width 2018-03-22 18:50:31 +02:00
Roman Hotsiy
4b15a1702d
chore: run prettier 2018-03-22 18:23:32 +02:00
Roman Hotsiy
d92ed428f9
chore: fix deme on mobile 2018-03-22 18:22:11 +02:00
Roman Hotsiy
d1d80422a4
fix: scroll to section sooner when SSR + simplify item ids 2018-03-22 17:46:30 +02:00
Roman Hotsiy
a0845325d9
fix: fix second-level heading in description 2018-03-21 19:59:55 +02:00
Roman Hotsiy
d27e61a1f7
fix: make field type color more dark (closes #439) 2018-03-20 16:18:25 +02:00
Roman Hotsiy
cbce28aec3
feat: add more options to theme 2018-03-20 16:15:36 +02:00
Roman Hotsiy
5f1e553ef4
chore: fix lint issues 2018-03-20 11:52:08 +02:00
Roman Hotsiy
05403a7aa9
fix: css fix + update theme 2018-03-20 11:17:59 +02:00
Roman Hotsiy
5b136c1a2f
tests: prefer attributes over classes in e2e tests 2018-03-19 16:33:26 +02:00
Roman Hotsiy
cb39a4b6cd
chore: try deploying cli from Travis 2018-03-18 11:40:15 +02:00
Roman Hotsiy
ed20ac1298
fix: prefer extend of styled to make styles more predictable 2018-03-18 11:13:08 +02:00
Roman Hotsiy
9026795b9f
tests: add MarkerService tests 2018-03-17 23:23:14 +02:00
Roman Hotsiy
e0223494c2
feat: use new Context API for options 2018-03-17 22:04:37 +02:00
Roman Hotsiy
2c320d229b
chore: setup coverage + coveralls 2018-03-17 20:57:45 +02:00
Roman Hotsiy
6c70d1a345
chore: migrate to webpack 4 2018-03-17 17:58:28 +02:00
Roman Hotsiy
e27d421f8a
chore: migrate to ts-loader 2018-03-17 15:16:56 +02:00
Roman Hotsiy
053248e8ab
chore: update to the latest react-hot-loader@4 2018-03-17 14:17:09 +02:00
Roman Hotsiy
d3655161fc
chore: fix lint issues 2018-03-16 23:58:25 +02:00
Roman Hotsiy
6018042180
fix: fix broken css after installing polished 2018-03-16 23:56:53 +02:00
Roman Hotsiy
1df690a964
feat: more advanced theme engine 2018-03-16 17:07:49 +02:00
Roman Hotsiy
7769ba84fd
fix: fix CLI crash + build it on travis 2018-03-15 22:26:07 +02:00
Roman Hotsiy
fe3245a7a6
feat: arrow navigation in search results 2018-03-15 20:50:26 +02:00
David Revay
5dc21af281 fix: A couple minor bug fixes (#436)
* Fix so deref always returns an object.
* Fix SelectOnClick so it does not crash
* chore: fix demo's webpack.config.ts
* Fix space
2018-03-14 08:05:57 +02:00
Roman Hotsiy
390f6c1324
feat: ReDoc CLI 2018-03-13 16:56:38 +02:00
Roman Hotsiy
21447d22a1
chore: fix lint issues 2018-03-13 13:04:55 +02:00
Roman Hotsiy
28f239114b
fix: add logo width to the theme 2018-03-13 12:57:38 +02:00
Roman Hotsiy
0cb0af2cae
fix: make ReactStandalone react on props changes 2018-03-09 21:11:28 +02:00
Roman Hotsiy
18ec3ac17b
fix: align logo by center 2018-03-09 21:10:28 +02:00
Roman Hotsiy
49c23c9345
chore: ts-ignore import issue + fix lint errors 2018-03-09 12:10:08 +02:00
Roman Hotsiy
8dbe938195
feat: add hideDownloadButton option 2018-03-07 17:21:17 +02:00
Roman Hotsiy
0658b8ea67
chore: export hydrate from standalone build 2018-03-07 17:14:23 +02:00
Roman Hotsiy
8757fa510a
fix: add extra null-check + warning 2018-03-07 16:43:56 +02:00
Roman Hotsiy
a78f9ab688
fix: fix right-panel blinking when scrolling + css improvements 2018-03-07 13:00:03 +02:00
Roman Hotsiy
4896346998
fix: fix worker import 2018-03-06 14:20:44 +02:00
Roman Hotsiy
29b0846e57
chore: add dead-simple example of SSR 2018-03-06 13:16:03 +02:00
Roman Hotsiy
1428fb52e0
fix: fix search-indexing for SSR 2018-03-06 13:12:14 +02:00