react-joyride
Advanced tools
Comparing version 2.0.5 to 2.1.0
125
package.json
{ | ||
"name": "react-joyride", | ||
"version": "2.0.5", | ||
"version": "2.1.0", | ||
"description": "Create guided tours for your apps", | ||
@@ -13,3 +13,3 @@ "author": "Gil Barbara <gilbarbara@gmail.com>", | ||
}, | ||
"homepage": "https://gilbarbara.github.com/react-joyride/", | ||
"homepage": "https://react-joyride.com/", | ||
"keywords": [ | ||
@@ -39,9 +39,9 @@ "react", | ||
"deep-diff": "^1.0.2", | ||
"deepmerge": "^3.1.0", | ||
"deepmerge": "^4.0.0", | ||
"exenv": "^1.2.2", | ||
"is-lite": "^0.2.2", | ||
"nested-property": "^0.0.7", | ||
"is-lite": "^0.4.0", | ||
"nested-property": "^1.0.1", | ||
"react-floater": "^0.6.4", | ||
"react-is": "^16.8.1", | ||
"scroll": "^3.0.0", | ||
"react-is": "^16.8.6", | ||
"scroll": "^3.0.1", | ||
"scroll-doc": "^0.2.1", | ||
@@ -52,27 +52,27 @@ "scrollparent": "^2.0.1", | ||
"devDependencies": { | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-proposal-class-properties": "^7.3.0", | ||
"@babel/plugin-proposal-decorators": "^7.3.0", | ||
"@babel/plugin-proposal-do-expressions": "^7.2.0", | ||
"@babel/plugin-proposal-export-default-from": "^7.2.0", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.2.0", | ||
"@babel/plugin-proposal-function-sent": "^7.2.0", | ||
"@babel/core": "^7.5.4", | ||
"@babel/plugin-proposal-class-properties": "^7.5.0", | ||
"@babel/plugin-proposal-decorators": "^7.4.4", | ||
"@babel/plugin-proposal-do-expressions": "^7.5.0", | ||
"@babel/plugin-proposal-export-default-from": "^7.5.2", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.5.2", | ||
"@babel/plugin-proposal-function-sent": "^7.5.0", | ||
"@babel/plugin-proposal-json-strings": "^7.2.0", | ||
"@babel/plugin-proposal-logical-assignment-operators": "^7.2.0", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.2.0", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4", | ||
"@babel/plugin-proposal-numeric-separator": "^7.2.0", | ||
"@babel/plugin-proposal-optional-chaining": "^7.2.0", | ||
"@babel/plugin-proposal-pipeline-operator": "^7.3.2", | ||
"@babel/plugin-proposal-pipeline-operator": "^7.5.0", | ||
"@babel/plugin-proposal-throw-expressions": "^7.2.0", | ||
"@babel/plugin-syntax-dynamic-import": "^7.2.0", | ||
"@babel/plugin-syntax-import-meta": "^7.2.0", | ||
"@babel/plugin-transform-flow-strip-types": "^7.2.3", | ||
"@babel/plugin-transform-runtime": "^7.2.0", | ||
"@babel/preset-env": "^7.3.1", | ||
"@babel/plugin-transform-flow-strip-types": "^7.4.4", | ||
"@babel/plugin-transform-runtime": "^7.5.0", | ||
"@babel/preset-env": "^7.5.4", | ||
"@babel/preset-flow": "^7.0.0", | ||
"@babel/preset-react": "^7.0.0", | ||
"@types/react": "^16.8.2", | ||
"@types/react": "^16.8.23", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-eslint": "^10.0.1", | ||
"babel-jest": "^24.1.0", | ||
"babel-eslint": "^10.0.2", | ||
"babel-jest": "^24.8.0", | ||
"babel-plugin-array-includes": "^2.0.3", | ||
@@ -82,39 +82,39 @@ "babel-plugin-jsx-remove-data-test-id": "^2.0.0", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24", | ||
"bundlesize": "^0.17.1", | ||
"bundlesize": "^0.18.0", | ||
"chalk": "^2.4.2", | ||
"cross-env": "^5.2.0", | ||
"date-fns": "^1.30.1", | ||
"dtslint": "^0.4.2", | ||
"enzyme": "^3.8.0", | ||
"enzyme-adapter-react-16": "^1.9.1", | ||
"eslint": "^5.13.0", | ||
"eslint-config-airbnb": "^17.1.0", | ||
"eslint-config-prettier": "^4.0.0", | ||
"dtslint": "^0.8.0", | ||
"enzyme": "^3.10.0", | ||
"enzyme-adapter-react-16": "^1.14.0", | ||
"eslint": "^5.16.0", | ||
"eslint-config-airbnb": "^17.1.1", | ||
"eslint-config-prettier": "^5.1.0", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-flowtype": "^3.2.1", | ||
"eslint-plugin-import": "^2.16.0", | ||
"eslint-plugin-jsx-a11y": "^6.2.1", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"eslint-plugin-react": "^7.12.4", | ||
"flow-bin": "^0.92.1", | ||
"husky": "^1.3.1", | ||
"eslint-plugin-flowtype": "^3.11.1", | ||
"eslint-plugin-import": "^2.18.0", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-prettier": "^3.1.0", | ||
"eslint-plugin-react": "^7.14.2", | ||
"flow-bin": "^0.102.0", | ||
"husky": "^3.0.0", | ||
"is-ci-cli": "^1.1.1", | ||
"jest": "^24.1.0", | ||
"jest": "^24.8.0", | ||
"jest-chain": "^1.1.2", | ||
"jest-environment-jsdom-global": "^1.1.0", | ||
"jest-enzyme": "^7.0.1", | ||
"jest-extended": "^0.11.1", | ||
"jest-watch-typeahead": "^0.2.1", | ||
"lint-staged": "^8.1.3", | ||
"prettier": "^1.16.4", | ||
"jest-environment-jsdom-global": "^1.2.0", | ||
"jest-enzyme": "^7.0.2", | ||
"jest-extended": "^0.11.2", | ||
"jest-watch-typeahead": "^0.3.1", | ||
"lint-staged": "^9.2.0", | ||
"prettier": "^1.18.2", | ||
"prop-types": "^15.6.2", | ||
"react": "^16.8.1", | ||
"react-dom": "^16.8.1", | ||
"react": "^16.8.6", | ||
"react-dom": "^16.8.6", | ||
"rimraf": "^2.6.3", | ||
"rollup": "^1.1.2", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-commonjs": "^9.2.0", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"typescript": "^3.3.3", | ||
"yargs": "^12.0.5" | ||
"rollup": "^1.16.7", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-commonjs": "^10.0.1", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"typescript": "^3.5.3", | ||
"yargs": "^13.2.4" | ||
}, | ||
@@ -151,19 +151,12 @@ "scripts": { | ||
"lint-staged": { | ||
"linters": { | ||
"**/*.+(js|jsx)": [ | ||
"eslint --fix", | ||
"git add", | ||
"jest --findRelatedTests" | ||
], | ||
"**/*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
}, | ||
"ignore": [ | ||
"**/coverage/*", | ||
"**/es/*", | ||
"**/lib/*" | ||
"*.js?(x)": [ | ||
"eslint --fix", | ||
"git add", | ||
"jest --findRelatedTests" | ||
], | ||
"*.(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
} | ||
} |
import * as React from 'react'; | ||
export type placement = | ||
export type valueof<T> = T[keyof T]; | ||
export type Placement = | ||
| 'top' | ||
@@ -19,3 +21,3 @@ | 'top-start' | ||
export type placementBeacon = 'top' | 'bottom' | 'left' | 'right'; | ||
export type PlacementBeacon = 'top' | 'bottom' | 'left' | 'right'; | ||
@@ -33,7 +35,7 @@ export interface StoreState { | ||
close: () => void; | ||
go: () => void; | ||
go: (nextIndex: number) => void; | ||
info: () => StoreState; | ||
next: () => void; | ||
prev: () => void; | ||
reset: () => void; | ||
reset: (restart: boolean) => void; | ||
skip: () => void; | ||
@@ -56,3 +58,3 @@ } | ||
size: number; | ||
status: string; | ||
status: valueof<status>; | ||
step: Step; | ||
@@ -62,6 +64,11 @@ type: string; | ||
export interface GenericObject { | ||
[key: string]: any; | ||
} | ||
export interface FloaterProps { | ||
options?: object; | ||
styles?: object; | ||
wrapperOptions?: object; | ||
disableAnimation?: boolean; | ||
options?: GenericObject; | ||
styles?: GenericObject; | ||
wrapperOptions?: GenericObject; | ||
} | ||
@@ -85,2 +92,3 @@ | ||
textColor?: string; | ||
width?: string | number; | ||
zIndex?: number; | ||
@@ -101,6 +109,4 @@ }; | ||
export interface Step { | ||
beaconComponent?: (renderProps: BeaconRenderProps) => React.ReactNode; | ||
content: React.ReactNode; | ||
disableBeacon?: boolean; | ||
export interface CommonProps { | ||
beaconComponent?: React.ElementType<BeaconRenderProps>; | ||
disableCloseOnEsc?: boolean; | ||
@@ -111,12 +117,5 @@ disableOverlay?: boolean; | ||
disableScrollParentFix?: boolean; | ||
event?: string; | ||
floaterProps?: FloaterProps; | ||
hideBackButton?: boolean; | ||
hideCloseButton?: boolean; | ||
hideFooter?: boolean; | ||
isFixed?: boolean; | ||
locale?: Locale; | ||
offset?: number; | ||
placement?: placement; | ||
placementBeacon?: placementBeacon; | ||
showProgress?: boolean; | ||
@@ -127,5 +126,3 @@ showSkipButton?: boolean; | ||
styles?: Styles; | ||
target: string | HTMLElement; | ||
title?: React.ReactNode; | ||
tooltipComponent?: (renderProps: TooltipRenderProps) => React.ReactNode; | ||
tooltipComponent?: React.ElementType<TooltipRenderProps>; | ||
} | ||
@@ -178,27 +175,27 @@ | ||
export interface Props { | ||
beaconComponent?: (renderProps: BeaconRenderProps) => React.ReactNode; | ||
export interface Step extends CommonProps { | ||
content: React.ReactNode; | ||
disableBeacon?: boolean; | ||
event?: string; | ||
floaterProps?: FloaterProps; | ||
hideCloseButton?: boolean; | ||
hideFooter?: boolean; | ||
isFixed?: boolean; | ||
offset?: number; | ||
placement?: Placement; | ||
placementBeacon?: PlacementBeacon; | ||
target: string | HTMLElement; | ||
title?: React.ReactNode; | ||
} | ||
export interface Props extends CommonProps { | ||
callback?: (data: CallBackProps) => void; | ||
continuous?: boolean; | ||
debug?: boolean; | ||
disableCloseOnEsc?: boolean; | ||
disableOverlay?: boolean; | ||
disableOverlayClose?: boolean; | ||
disableScrolling?: boolean; | ||
disableScrollParentFix?: boolean; | ||
floaterProps?: FloaterProps; | ||
getHelpers?: () => StoreHelpers; | ||
hideBackButton?: boolean; | ||
locale?: Locale; | ||
getHelpers?: (helpers: StoreHelpers) => any; | ||
run?: boolean; | ||
scrollOffset?: number; | ||
scrollToFirstStep?: boolean; | ||
showProgress?: boolean; | ||
showSkipButton?: boolean; | ||
spotlightClicks?: boolean; | ||
spotlightPadding?: number; | ||
stepIndex?: number; | ||
steps: Array<Step>; | ||
styles?: Styles; | ||
tooltipComponent?: (renderProps: TooltipRenderProps) => React.ReactNode; | ||
} | ||
@@ -205,0 +202,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
188197
5372
0
4
+ Addednested-property@1.0.4(transitive)
- Removeddeepmerge@3.3.0(transitive)
- Removedis-lite@0.2.2(transitive)
Updateddeepmerge@^4.0.0
Updatedis-lite@^0.4.0
Updatednested-property@^1.0.1
Updatedreact-is@^16.8.6
Updatedscroll@^3.0.1