Commit Graph

316 Commits

Author SHA1 Message Date
kyle
83232dc2d8 v3.12.0 (#4282)
* Use `parameterWithMeta` to get parameter data in <ParameterRow>

* Prefer specPath when fetching resolved subtrees in OperationContainer

* Add test for OAS3 callback rendering

* Remove debugger statement

* Pass base resolution URL directly to Swagger-Client subtree resolver

* Remove accidental comment

* Migrate additional options

* Don't default to empty Map when getting subtree

* fix(validateParam): check for ImList type before using count method

* Use `replaceState` to update `urls.primaryName`

This gives us the stateful URL we want, without:
(a) refreshing the page on update
(b) creating a long, useless history for the user
(c) implying that browser history is two-way bound
    to Swagger-UI (it isn't, we don't have a router)

* Add `fn.opsFilter` docs and internal API versioning note

* restrict `x-example` functionality to Swagger 2.0

* polish Authorize + Close buttons

* add tachyons; use it for padding the new Reset button

* v3.12.0

* rebuild dist
2018-03-02 21:13:00 -08:00
kyle
043e491f94 dependencies: zenscroll@4.0.0 -> zenscroll@4.0.1 (#4270) 2018-02-28 13:15:30 -08:00
kyle
e41067b4c1 v3.11.0 (#4254)
* v3.11.0

* Rebuild dist
2018-02-23 23:44:37 -08:00
Helder Sepulveda
558d054986 fix: package.json to reduce vulnerabilities (#4224)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/npm:lodash:20180130

Latest report for heldersepu/swagger-ui:
https://snyk.io/test/github/heldersepu/swagger-ui
2018-02-23 22:34:29 -08:00
kyle
ecf688171f feat: lazy resolver (#4249)
* default to empty `ImmutableMap` when grabbing op metadata
* pass `errors` into JsonSchema components
* Account for Immutable data structure in JavaScriptonSchema...
    ...and create empty Lists instead of Maps by default.
* Pass ImmutableList through to JsonSchema child components
* Add lazy resolving spec state extensions
* TEMPORARY: disable conventional resolved spec
* WIP
* Use resolveSubtree in Operation display
* Freebie: short-circuit Markdown component if it is given plaintext
* NEW DEFAULT BEHAVIOR: `defaultModelsExpandDepth: 1` does not expand individual models
* Render faked Model expander to trigger resolution
* Baseline support for Editor lifecycles
* Display operation summaries before the operation is resolved
* Test migrations
* WIP
* Swagger2 TIO Body params
* a bit of cleanup
* Debounce string param inputs
* Reach into unresolved operation for deprecated flag, if available
* Fire subtree request outside of render
* Remove debugging flags
* Fix logical errors in spec statePlugins
* TODOs become TODONEs!
* Migrate deeplinking feature to non-resolved spec action
* ESLint fixes
2018-02-23 01:12:53 -08:00
kyle
1013d16d9e v3.10.0 (#4210)
* v3.10.0

* Fix Execute styling issue

* Rebuild dist
2018-02-09 20:47:44 -08:00
kyle
9653258bc1 v3.9.3 (#4170)
* default to empty `ImmutableMap` when grabbing op metadata

* pass `errors` into JsonSchema components

* Account for Immutable data structure in JavaScriptonSchema...

...and create empty Lists instead of Maps by default.

* Pass ImmutableList through to JsonSchema child components

* v3.9.3
2018-01-26 19:38:41 -08:00
kyle
22ccdfff10 release: v3.9.2 (#4141)
* v3.9.2

* rebuild dist for v3.9.2
2018-01-20 02:05:59 -06:00
kyle
253573200a release: 3.9.1 (#4106)
* fix(core-components): make `onToggle` a non-required prop in ModelCollapse

* release: 3.9.1
2018-01-13 01:30:37 -06:00
kyle
0818882a90 v3.9.0 (#4078) 2018-01-06 02:27:11 -06:00
Kyle Shockey
248aeca0db v3.8.1 2017-12-30 01:33:23 -06:00
Kyle Shockey
9bad35ed85 Refactor specPath to Im data structures to avoid waste renders 2017-12-28 18:04:12 -06:00
Kyle Shockey
03f80dcc70 v3.8.0 2017-12-23 01:58:57 -06:00
Kyle Shockey
9b5accc17f v3.7.0 2017-12-16 00:10:01 -08:00
kyle
a94c6c0e7f Merge branch 'master' into feature/deeplink-zenscroll 2017-12-11 19:05:16 -08:00
Kyle Shockey
1f2ea4a8a3 v3.6.1 2017-12-09 10:49:24 -08:00
Liam Shaw
80ec610485 add zen scroll 2017-12-04 16:10:43 +02:00
Kyle Shockey
cdf3dfa075 v3.6.0 2017-12-01 23:50:48 -08:00
Kyle Shockey
23fd8a4d73 v3.5.0 2017-11-23 12:50:08 -06:00
Kyle Shockey
e2de882a16 v3.4.5 2017-11-17 22:33:47 -08:00
kyle
f6727b42b3 Merge branch 'master' into bug/3904-operation-not-updating 2017-11-17 14:16:48 -08:00
Kyle Shockey
dc7f15ea1b Add missing core-js to dependencies
Not related to this bug, but needed to be done to silence an
error thrown by Webpack.
2017-11-16 17:55:15 -08:00
Larry Gregory
91a3707c13 Update react-split-pane for React-16 support 2017-11-12 14:19:40 -05:00
Kyle Shockey
fadc522f56 v3.4.4 2017-11-10 23:16:51 -08:00
Larry Gregory
57a3be28b0 Update react-collapse and react-motion 2017-11-08 07:41:23 -05:00
Kyle Shockey
86db21515e Save nyc as a devDependency 2017-11-06 21:01:46 -08:00
Kyle Shockey
cca8ddb5d5 Add nyc coverage reporting 2017-11-06 14:39:21 -08:00
Kyle Shockey
4a76e6f2cd v3.4.3 2017-11-03 19:48:30 -07:00
kyle
dbc154b330 Merge branch 'master' into bug/3858-xml-formatting-perf 2017-11-02 15:23:11 -07:00
Kyle Shockey
17e6d81504 Format XML with xml-but-prettier 2017-11-02 15:13:10 -07:00
kyle
00105924b5 Merge branch 'master' into ft/react_15_6_2 2017-11-02 09:37:42 -07:00
Kyle Shockey
1c13649d02 v3.4.2 2017-10-30 18:45:37 -07:00
Kyle Shockey
afa615e01d Add URL sanitizer to avoid javascript: XSS attack vector 2017-10-30 17:43:23 -07:00
Kyle Shockey
bdc0435683 v3.4.1 2017-10-28 00:37:55 -07:00
Mike Gilbode
a07b276d23 Upgrade to react 15.6.2. 2017-10-23 15:02:41 -04:00
Kyle Shockey
fc11f7a556 Add ESLint rule that catches describe.only, it.only 2017-10-21 11:11:13 -07:00
Kyle Shockey
d6b9ace648 v3.4.0 2017-10-20 20:30:13 -07:00
Kyle Shockey
2c86cd5820 v3.3.2 2017-10-13 21:46:10 -07:00
Owen Conti
13aa95ff00 Merge branch 'master' of github.com:swagger-api/swagger-ui into test/3715-xss-unit-tests 2017-10-08 09:58:41 -06:00
Kyle Shockey
2f59c4a5f4 v3.3.1 2017-10-02 15:18:33 -07:00
Owen Conti
559b315d0d Initial test for Markdown <script> sanitization 2017-10-01 10:30:41 -06:00
Kyle Shockey
4ff629eddd v3.3.0 2017-09-29 18:43:21 -07:00
Kyle Shockey
a7acd9e004 Remove react-remarkable from package.json 2017-09-29 12:38:00 -07:00
Owen Conti
590819ad9b Fixes swagger-editor/#1502.
Change logic for markdown rendering to:

1. Convert source markdown to HTML
2. Sanitize HTML
3. Send sanitized HTML to markdown renderer
2017-09-27 18:05:12 -06:00
Kyle Shockey
c8a9ddbf94 v3.2.2 2017-09-23 00:02:10 -07:00
Kyle Shockey
a625177c38 v3.2.1 2017-09-15 21:15:21 -07:00
Kyle
fa312cb70d Merge branch 'master' into bug/oas3-accept-controls 2017-09-15 20:11:20 -07:00
Owen Conti
a6e070ac76 Replace spaces with underscores when setting the hash value and inserting the ID into the DOM. Escape the deep link path when querying for the DOM element on hash change. 2017-09-13 21:32:46 -06:00
Kyle Shockey
26edaa5f0b OAS3 Accept header control: Component-side 2017-09-12 17:22:51 -07:00
Kyle Shockey
560d566d7d v3.2.0 2017-09-09 13:10:34 -07:00