Commit Graph

24 Commits

Author SHA1 Message Date
Vladimir Gorej
cf9a3657cc chore(deps): replace @kyleshockey/* deps with originals
@kyleshockey/object-assign-deep - replaced by lodash/merge. If behavior
not be compatible well use lodash/mergeWith.

@kyleshockey/xml - by installing stream library directly, we can use origin
xml library without the fork.

Refs #7341
2021-11-03 09:49:50 +01:00
Vladimir Gorej
96cdf00adb fix(system): allow wrapping selectors in chain (#7304)
Refs #7157
2021-05-26 11:54:58 -07:00
Damien
516e666f1c feat(wrapComponents): new chain configuration option (#7236)
This commit provides a backward compatible mechanism to chain wrap 
an individual component multiple times

`Chain` mode: allow chaining of plugins on a given component
`Legacy` mode: last plugin to wrap a given component will supercede others

* chore: Add unit test for wrapComponent wrapping

* doc: Add documentation about the new pluginsOptions configuration

* doc: Add a sidenote on plugin-api page

Co-authored-by: Tim Lai <timothy.lai@gmail.com>
2021-05-20 15:41:11 -07:00
Tim Lai
38c6e127bf chore(deps): bump serialize-error from 2.1.0 to 8.1.0 (#7223)
* apply named imports, per v5.x breaking changes
2021-04-29 13:49:36 -07:00
kyle
ecfc23972a fix: inconsistent behavior with multiple invocations of SwaggerUI (via #4923)
* add narrow e2e tests
* add failing system unit test
* break plugin object inheritance in combinePlugins
* style: add braces to if block
* drop unused `lodash.repeat` import
* remove deep-freeze from lockfile
2018-10-04 18:00:38 -05:00
kyle
a2015ee08b Revert "initial perf, which gets stripped out in production (#4131)" (#4636)
This reverts commit 5ea2150ae7.
2018-06-08 23:18:55 -07:00
Josh Ponelat
5ea2150ae7 initial perf, which gets stripped out in production (#4131) 2018-05-30 13:44:19 -07:00
Juan J. Jimenez-Anca
bd41b736a8 feat: display last error when definition/config load fails
Contains a breaking internal API change to `errActions.newThrownErr`, which will require a MINOR version bump. Swagger-Editor does not depend on the old usage style.
2018-01-05 21:45:21 -06:00
Kyle Shockey
c601f9b0ca Add try/catch protection for statePlugin interfaces 2018-01-03 13:59:48 -06:00
Kyle Shockey
9d48c4751a Refactor afterLoad interface to expose raw plugin context 2017-12-28 16:26:18 -06:00
Kyle Shockey
c1ae4c133d Add afterLoad plugin interface 2017-12-14 21:01:37 -08:00
Kyle Shockey
dc9e5ad9cd Fix a core system issue blocking preset-plugin wrapComponents
cc: 3968
2017-12-05 18:30:39 -08:00
Kyle Shockey
a1da9d39b6 Inject React as a system function 2017-12-05 17:00:07 -08:00
Kyle Shockey
9400c91820 Merge branch 'master' of github.com:swagger-api/swagger-ui into ft/docs 2017-12-04 20:38:09 -08:00
Kyle Shockey
345c8dee57 WIP 2017-11-01 13:30:07 -07:00
Owen Conti
050f4d1918 Clean up OperationContainer props. 2017-08-20 17:02:51 -06:00
Kyle Shockey
4e80e292b2 Merge branch 'master' into ft/oas3 2017-07-04 23:50:00 -07:00
RVKen
d36f0a6dbd fix eslint issues 2017-06-29 04:37:19 +02:00
Kyle Shockey
88848d071b Extended getComponent: system availability 2017-05-23 14:55:28 -07:00
Kyle Shockey
614c1ae7f6 basic wrapComponent 2017-05-22 23:10:16 -07:00
Kyle Shockey
1f314ddca2 Add wrapSelectors functionality 2017-05-17 18:40:58 -07:00
Josh Ponelat
2cff912261 remove object-assign dep ( which was missing from package.json ) 2017-04-28 11:17:59 +02:00
Kyle Shockey
e1fcbfbf09 Linter error fixes 2017-03-23 16:36:45 -07:00
Ron
f22a628934 in with the new 2017-03-17 21:17:53 -07:00