Skip to content

Commit 43807c1

Browse files
authored
Merge pull request #302 from alvarotrigo/dev
Merging dev branch 0.1.22
2 parents e5d0cd7 + 20bd772 commit 43807c1

10 files changed

Lines changed: 34 additions & 19 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<p align="center">Official React wrapper for the <a target="_blank" href="https://github.com/alvarotrigo/fullPage.js/">fullpage.js library</a></p>
66

77
<p align="center">
8-
<img src="https://img.shields.io/badge/react--fullpage-v0.1.21-brightgreen.svg" alt="react-fullpage version" />
8+
<img src="https://img.shields.io/badge/react--fullpage-v0.1.22-brightgreen.svg" alt="react-fullpage version" />
99
</p>
1010

1111
- [Demo online](https://alvarotrigo.com/react-fullpage/) | [CodeSandbox](https://codesandbox.io/s/m34yq5q0qx)

dist/react-fullpage-umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-fullpage.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/gatsby/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"serve": "gatsby serve"
99
},
1010
"dependencies": {
11-
"@fullpage/react-fullpage": "^0.1.21",
11+
"@fullpage/react-fullpage": "^0.1.22",
1212
"gatsby": "^3.13.0",
1313
"react": "^17.0.2",
1414
"react-dom": "^17.0.2"

examples/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"author": "cmswalker",
1212
"license": "ISC",
1313
"dependencies": {
14-
"@fullpage/react-fullpage": "^0.1.21",
14+
"@fullpage/react-fullpage": "^0.1.22",
1515
"next": "^11.1.1",
1616
"react": "^17.0.2",
1717
"react-dom": "^17.0.2"

examples/react/dist/bundle.js

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

examples/react/src/hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState } from "react";
1+
import React, { useState } from 'react';
22
import ReactDOM from 'react-dom';
33
import ReactFullpage from '../../../components';
44
import Styles from './styles.css';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fullpage/react-fullpage",
3-
"version": "0.1.21",
3+
"version": "0.1.22",
44
"description": "Official react wrapper for fullPage.js",
55
"author": "cmswalker",
66
"contributors": [

types/index.d.ts

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
declare module '@fullpage/react-fullpage' {
22

3-
type Item = {
3+
export type Item = {
44
anchor: string | number,
55
index: number,
66
item: HTMLElement,
@@ -13,6 +13,22 @@ declare module '@fullpage/react-fullpage' {
1313
type InterlockedSlides = boolean | Array<number>;
1414
type bigSectionsDestination = "top" | "bottom" | null;
1515
type Parallax = boolean | "sections" | "slides";
16+
type DropEffect = boolean | "sections" | "slides";
17+
type WaterEffect = boolean | "sections" | "slides";
18+
type WaterEffectOptions = {
19+
animateContent: boolean
20+
animateOnMouseMove: boolean
21+
};
22+
type CardsOptions = {
23+
perspective: number
24+
fadeContent: boolean
25+
fadeBackground: boolean
26+
};
27+
type ParallaxOptions = {
28+
percentage?: number
29+
property?: "translate" | "background"
30+
type?: "reveal" | "cover"
31+
};
1632

1733
export interface fullpageOptions {
1834
anchors?: string[]
@@ -50,11 +66,7 @@ declare module '@fullpage/react-fullpage' {
5066
paddingBottom?: string
5167
paddingTop?: string
5268
parallax?: Parallax // true, false, 'sections', 'slides'
53-
parallaxOptions?: {
54-
percentage?: number
55-
property?: "translate" | "background"
56-
type?: "reveal" | "cover"
57-
}
69+
parallaxOptions?: ParallaxOptions
5870
recordHistory?: boolean
5971
resetSliders?: boolean
6072
responsive?: number
@@ -68,13 +80,17 @@ declare module '@fullpage/react-fullpage' {
6880
scrollOverflowOptions?: any
6981
scrollOverflowReset?: boolean
7082
scrollingSpeed?: number
71-
dropEffect?: true
83+
dropEffect?: DropEffect;
7284
dropEffectOptions?: any;
85+
waterEffect?: WaterEffect;
86+
waterEffectOptions?: WaterEffectOptions;
87+
cards: boolean;
88+
cardsOptions: CardsOptions;
7389
sectionSelector?: string
7490
sectionsColor?: string[]
7591
showActiveTooltip?: boolean
7692
slideSelector?: string
77-
slidesNavPosition?: string
93+
slidesNavPosition?: "top" | "bottom"
7894
slidesNavigation?: boolean
7995
touchSensitivity?: number
8096
v2compatible?: boolean

webpack.config.build.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ module.exports = [
2828
output: {
2929
path: path.join(__dirname, 'dist'),
3030
filename: 'react-fullpage.js',
31-
library: 'ReactFullpage',
3231
libraryTarget: 'commonjs2',
3332
},
3433
}),

0 commit comments

Comments
 (0)