Joshua Whatley
82b9341a06
Changing word-break to follow standard
...
Changed "break-word" to "break-all" as this is standard across all
browsers and results with consistent behavior.
2017-09-13 21:23:49 -07:00
Owen Conti
840912cb56
Handle null value in createDeepLinkPath
2017-09-13 21:38:07 -06: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
Owen Conti
16364fb81e
Merge branch 'master' of github.com:swagger-api/swagger-ui into bug/3596-permalink-encoding
2017-09-13 17:25:38 -06:00
Owen Conti
430e2a970f
Fixes #3596
...
Wrap `isShownKey` values in a function that replaces spaces with underscores. When parsing the hash on route change, replace the spaces in the values with underscores again.
2017-09-13 17:20:37 -06:00
Owen Conti
cade5100e0
Merge branch 'master' of github.com:swagger-api/swagger-ui into bug/3032-wrong-properties-order
2017-09-12 23:07:36 -06:00
Owen Conti
a47cc284f7
Update response.jsx to use already existing, fromJSOrdered function
2017-09-12 23:06:24 -06:00
Kyle Shockey
277cc81a8c
OAS3 Accept header control: State-side
2017-09-12 19:39:52 -07:00
Kyle Shockey
26edaa5f0b
OAS3 Accept header control: Component-side
2017-09-12 17:22:51 -07:00
Owen Conti
7cd42992f2
Merge branch 'master' of github.com:swagger-api/swagger-ui
2017-09-12 17:14:39 -06:00
Owen Conti
408e038b2d
fromJS does not maintain order of object properties. Use a reviver function with fromJS inside the response.jsx component for the passed down schema prop.
2017-09-11 20:28:58 -06:00
Ron
b9be09709a
Merge branch 'master' into feature/request-url
2017-09-11 05:05:08 -07:00
Owen Conti
3f04d2dfc6
Merge branch 'master' into bug/3490-anyOf-oneOf-not
2017-09-09 13:56:22 -06:00
Owen Conti
12c96e3190
Add comment to array-model for to clarify change. Rework logic in Model.render() to fix bug with overriding name and schema from $ref definition.
2017-09-09 13:51:09 -06:00
Kyle Shockey
5bc096d32b
Fit linter and tests
2017-09-08 18:44:11 -07:00
Owen Conti
e9f46e6f5e
Working on refactoring of model.jsx
2017-09-08 17:59:41 -06:00
Joshua Whatley
63ee0a874c
break path if it would otherwise overflow
2017-09-08 16:53:43 -07:00
Owen Conti
3b9940567b
Fix property names being displayed in array models
2017-09-07 18:28:38 -06:00
Kyle Shockey
d14ae62aa5
Parse JSON requestBodies so Client can consume them correctly
2017-09-05 15:07:55 -07:00
Kyle Shockey
7a2c7d2cdc
Squash commit: OAS3 Try-It-Out changes
2017-09-05 13:59:31 -07:00
Mike Gilbode
d7ae284a0c
Add defaultModelRendering parameter.
2017-08-30 23:30:57 -04:00
Kyle
db4aa95d4a
Only polyfill Promise if it doesn't exist at all
2017-08-25 15:56:54 -07:00
Kyle Shockey
5da3843281
Refactor: use ternary operators at attribute level instead of element level
2017-08-25 12:06:11 -07:00
Surya
f63d2b1ae8
If deeplinking is disabled the anchor tag has no href attribute as a result the mouse pointer is not a pointer as it is no longer a hyperlink, setting the cursor explicitly to pointer.
2017-08-25 23:57:21 +05:30
Surya
f7efd58305
Removed href attribute from anchor tag if deeplinking is disabled
2017-08-25 23:43:56 +05:30
Kyle Shockey
a6944a279c
Remove getComponent call for RequestUrl
2017-08-21 17:21:48 -07:00
Kyle Shockey
39450f7364
Merge branch 'feature/request-url' of https://github.com/dalbani/swagger-ui into dalbani-feature/request-url
2017-08-21 17:19:17 -07:00
Kyle
56ff3afc5d
Merge pull request #3565 from owenconti/ft/map-state-to-props-for-components
...
`mapStateToProps` for container components
2017-08-21 17:09:00 -07:00
Owen Conti
cfb4625eb0
Add shouldComponentUpdate to response.jsx and live-response.jsx. Remove isShownKey from shouldComponentUpdate of OperationContainer. Moved response and request out to separate props for operation.jsx. Removed unused request prop from responses.jsx.
2017-08-20 18:50:49 -06:00
Owen Conti
017a26af1e
Merge branch 'ft/3584-operation-container-component' into ft/3598-responses-shouldComponentUpdate
2017-08-20 17:03:16 -06:00
Owen Conti
050f4d1918
Clean up OperationContainer props.
2017-08-20 17:02:51 -06:00
Owen Conti
bcefb6eb3e
Convert pathMethod prop to two separate props.
2017-08-20 15:25:13 -06:00
Owen Conti
8426dcdf7b
Fix failed test due to removed getConfigs
2017-08-20 08:16:02 -06:00
Owen Conti
2946baf2bd
Merge branch 'master' into ft/3584-operation-container-component
2017-08-20 08:07:15 -06:00
Owen Conti
0d90305550
Remove unnecessary div in app.jsx
2017-08-20 08:06:59 -06:00
Owen Conti
7cc9f9a4db
Update Operations component to call OperationContainer instead of Operation.jsx
2017-08-20 07:57:07 -06:00
Owen Conti
dd414534f9
Update Operation component to be dumb, update responses to accept Immutable prop types
2017-08-20 07:56:40 -06:00
Owen Conti
d4d66b80ca
Add OperationContainer component
2017-08-20 07:55:54 -06:00
Owen Conti
0b41c917d1
Revert Perf tool back to core/index.js
2017-08-19 13:59:24 -06:00
Owen Conti
ff2ed2584e
Revert Perf tool back to core/index.js
2017-08-19 13:59:09 -06:00
Owen Conti
e61c12fe18
Move performance debugging tools to app.jsx
2017-08-19 08:33:03 -06:00
Owen Conti
c0cfaabd7e
Remove unused getComponent as prop to <Execute
2017-08-19 08:32:21 -06:00
Øystein Sigholt
7287c74a3a
Remove domNode from deepExtend
2017-08-18 18:27:16 +02:00
Owen Conti
c0185ca6e2
Merge branch 'master' into ft/map-state-to-props-for-components
2017-08-14 18:46:11 -06:00
Mike Gilbode
087ed20384
Add support for requestInterceptor / responseInterceptor.
...
- Display mutated requests from request interceptor in curl output in UI.
Put this behind showMutatedRequest flag so that the mutation can be
silent.
- Document requestInterceptor, responseInterceptor and showMutatedRequest
in README.md
- Add tests
2017-08-13 01:14:41 -04:00
Kyle
04fb27b46d
Merge branch 'master' into array-model-markdown-description
2017-08-11 17:42:30 -07:00
Kyle
87f1a975f7
Merge branch 'master' into ft/react-perf-permanent
2017-08-11 17:34:00 -07:00
Kyle
08bb9fb7f3
Merge branch 'master' into xlink-deprecated
2017-08-11 16:45:53 -07:00
Owen Conti
d9b0632d16
Add ability for container components to register their own mapStateToProps function.
2017-08-11 16:01:01 -06:00
Owen Conti
c237f25638
Introduce React.Perf in all non-production builds.
2017-08-11 15:55:19 -06:00