Skip to content

Commit

Permalink
fix: temporarily disable creating custom plugins functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
roberthebel committed Jul 29, 2020
1 parent 6d80f10 commit 971a5ac
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 187 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ You can access a clickable demo with many examples and a [live code editor](http
| [**breakpoints**](https://brainhubeu.github.io/react-carousel/docs/examples/responsive) | *Object* | `undefined` | All props can be set to different values on different screen resolutions |

### Plugins
You can extend react-carousel default behavior by applying plugins shipped within carousel or by creating and applying your own ones
You can extend react-carousel default behavior by applying plugins shipped within carousel

[**Plugins documentation**](https://brainhubeu.github.io/react-carousel/docs/api/plugins)
[**Plugins documentation**](https://brainhubeu.github.io/react-carousel/docs/plugins/plugins)

### Dots props

Expand Down
4 changes: 0 additions & 4 deletions docs-www/gatsby-docs-kit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
items:
- title: React-carousel plugins
file: plugins.md
- title: Creating custom plugin
file: creatingCustomPlugins.md
- title: Accessing and managing carousel state
file: accessingManagingState.md
- title: Examples
dir: examples
items:
Expand Down
72 changes: 0 additions & 72 deletions docs/plugins/accessingManagingState.md

This file was deleted.

86 changes: 0 additions & 86 deletions docs/plugins/creatingCustomPlugins.md

This file was deleted.

23 changes: 0 additions & 23 deletions react-carousel/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import centered from './plugins/centered';
import slidesToScroll from './plugins/slidesToScroll';
import arrows from './plugins/arrows';
import fastSwipe from './plugins/fastSwipe';
import STRATEGIES from './constants/carouselStrategies';
import * as slideAtoms from './state/atoms/slideAtoms';
import * as carouselAtoms from './state/atoms/carouselAtoms';
import * as carouselSelectors from './state/selectors/carouselSelectors';

export const slidesToShowPlugin = slidesToShow;
export const infinitePlugin = infinite;
Expand All @@ -25,24 +21,5 @@ export const slidesToScrollPlugin = slidesToScroll;
export const arrowsPlugin = arrows;
export const fastSwipePlugin = fastSwipe;

export const slideOffsetState = slideAtoms.slideOffsetState;
export const slidesState = slideAtoms.slidesState;
export const slideWidthState = slideAtoms.slideWidthState;
export const activeSlideIndexState = slideAtoms.activeSlideIndexState;

export const trackWidthState = carouselAtoms.trackWidthState;
export const trackStylesState = carouselAtoms.trackStylesState;
export const carouselValueState = carouselAtoms.carouselValueState;
export const slideMovementState = carouselAtoms.slideMovementState;
export const transitionEnabledState = carouselAtoms.transitionEnabledState;

export const transformOffsetSelector =
carouselSelectors.transformOffsetSelector;
export const nearestSlideSelector = carouselSelectors.nearestSlideSelector;
export const getCurrentValueSelector =
carouselSelectors.getCurrentValueSelector;

export const CAROUSEL_STRATEGIES = STRATEGIES;

export const Dots = CarouselDots;
export default Carousel;

0 comments on commit 971a5ac

Please sign in to comment.