react-joyride
Advanced tools
Comparing version 2.2.1 to 2.3.0
138
package.json
{ | ||
"name": "react-joyride", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "Create guided tours for your apps", | ||
@@ -32,4 +32,4 @@ "author": "Gil Barbara <gilbarbara@gmail.com>", | ||
"peerDependencies": { | ||
"react": "^15.0.0 || ^16.0.0", | ||
"react-dom": "^15.0.0 || ^16.0.0", | ||
"react": "^15.0.0 || ^16.0.0 || ^17.0.0", | ||
"react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0", | ||
"prop-types": "^15.0.0" | ||
@@ -41,37 +41,37 @@ }, | ||
"exenv": "^1.2.2", | ||
"is-lite": "^0.6.0", | ||
"nested-property": "^1.0.2", | ||
"is-lite": "^0.8.0", | ||
"nested-property": "^4.0.0", | ||
"react-floater": "^0.7.2", | ||
"react-is": "^16.12.0", | ||
"react-is": "^16.13.1", | ||
"scroll": "^3.0.1", | ||
"scrollparent": "^2.0.1", | ||
"tree-changes": "^0.5.1" | ||
"tree-changes": "^0.6.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.7.5", | ||
"@babel/plugin-proposal-class-properties": "^7.7.4", | ||
"@babel/plugin-proposal-decorators": "^7.7.4", | ||
"@babel/plugin-proposal-do-expressions": "^7.7.4", | ||
"@babel/plugin-proposal-export-default-from": "^7.7.4", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.7.4", | ||
"@babel/plugin-proposal-function-sent": "^7.7.4", | ||
"@babel/plugin-proposal-json-strings": "^7.7.4", | ||
"@babel/plugin-proposal-logical-assignment-operators": "^7.7.4", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.7.4", | ||
"@babel/plugin-proposal-numeric-separator": "^7.7.4", | ||
"@babel/plugin-proposal-optional-chaining": "^7.7.5", | ||
"@babel/plugin-proposal-pipeline-operator": "^7.7.4", | ||
"@babel/plugin-proposal-throw-expressions": "^7.7.4", | ||
"@babel/plugin-syntax-dynamic-import": "^7.7.4", | ||
"@babel/plugin-syntax-import-meta": "^7.7.4", | ||
"@babel/plugin-transform-flow-strip-types": "^7.7.4", | ||
"@babel/plugin-transform-runtime": "^7.7.6", | ||
"@babel/preset-env": "^7.7.6", | ||
"@babel/preset-flow": "^7.7.4", | ||
"@babel/preset-react": "^7.7.4", | ||
"@size-limit/preset-big-lib": "^2.2.2", | ||
"@types/react": "^16.9.16", | ||
"@babel/core": "^7.12.10", | ||
"@babel/plugin-proposal-class-properties": "^7.12.1", | ||
"@babel/plugin-proposal-decorators": "^7.12.1", | ||
"@babel/plugin-proposal-do-expressions": "^7.12.1", | ||
"@babel/plugin-proposal-export-default-from": "^7.12.1", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.12.1", | ||
"@babel/plugin-proposal-function-sent": "^7.12.1", | ||
"@babel/plugin-proposal-json-strings": "^7.12.1", | ||
"@babel/plugin-proposal-logical-assignment-operators": "^7.12.1", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1", | ||
"@babel/plugin-proposal-numeric-separator": "^7.12.7", | ||
"@babel/plugin-proposal-optional-chaining": "^7.12.7", | ||
"@babel/plugin-proposal-pipeline-operator": "^7.12.1", | ||
"@babel/plugin-proposal-throw-expressions": "^7.12.1", | ||
"@babel/plugin-syntax-dynamic-import": "^7.8.3", | ||
"@babel/plugin-syntax-import-meta": "^7.10.4", | ||
"@babel/plugin-transform-flow-strip-types": "^7.12.10", | ||
"@babel/plugin-transform-runtime": "^7.12.10", | ||
"@babel/preset-env": "^7.12.10", | ||
"@babel/preset-flow": "^7.12.1", | ||
"@babel/preset-react": "^7.12.10", | ||
"@size-limit/preset-big-lib": "^4.9.1", | ||
"@types/react": "^16.14.2", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-eslint": "^10.0.3", | ||
"babel-jest": "^24.9.0", | ||
"babel-eslint": "^10.1.0", | ||
"babel-jest": "^26.6.3", | ||
"babel-plugin-array-includes": "^2.0.3", | ||
@@ -81,36 +81,39 @@ "babel-plugin-jsx-remove-data-test-id": "^2.1.3", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24", | ||
"cross-env": "^6.0.3", | ||
"dtslint": "^2.0.2", | ||
"enzyme": "^3.10.0", | ||
"enzyme-adapter-react-16": "^1.15.1", | ||
"eslint": "^6.7.2", | ||
"eslint-config-airbnb": "^18.0.1", | ||
"eslint-config-prettier": "^6.7.0", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-flowtype": "^4.5.2", | ||
"eslint-plugin-import": "^2.19.1", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"eslint-plugin-react": "^7.17.0", | ||
"flow-bin": "^0.110.0", | ||
"husky": "^3.1.0", | ||
"is-ci-cli": "^2.0.0", | ||
"jest": "^24.9.0", | ||
"jest-chain": "^1.1.2", | ||
"jest-environment-jsdom-global": "^1.2.0", | ||
"caniuse-lite": "^1.0.30001165", | ||
"cross-env": "^7.0.3", | ||
"dtslint": "^4.0.6", | ||
"enzyme": "^3.11.0", | ||
"enzyme-adapter-react-16": "^1.15.5", | ||
"eslint": "^7.15.0", | ||
"eslint-config-airbnb": "^18.2.1", | ||
"eslint-config-prettier": "^7.0.0", | ||
"eslint-plugin-babel": "^5.3.1", | ||
"eslint-plugin-flowtype": "^5.2.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-prettier": "^3.2.0", | ||
"eslint-plugin-react": "^7.21.5", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"flow-bin": "^0.110.1", | ||
"husky": "^4.3.5", | ||
"is-ci-cli": "^2.1.2", | ||
"jest": "^26.6.3", | ||
"jest-chain": "^1.1.5", | ||
"jest-environment-jsdom-global": "^2.0.4", | ||
"jest-enzyme": "^7.1.2", | ||
"jest-extended": "^0.11.2", | ||
"jest-watch-typeahead": "^0.4.2", | ||
"lint-staged": "^9.5.0", | ||
"prettier": "^1.19.1", | ||
"jest-extended": "^0.11.5", | ||
"jest-watch-typeahead": "^0.6.1", | ||
"lint-staged": "^10.5.3", | ||
"prettier": "^2.2.1", | ||
"prop-types": "^15.7.2", | ||
"react": "^16.12.0", | ||
"react-dom": "^16.12.0", | ||
"react": "^16.14.0", | ||
"react-dom": "^16.14.0", | ||
"repo-tools": "^0.2.0", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^1.27.13", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.34.2", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"typescript": "^3.7.3" | ||
"size-limit": "^4.9.1", | ||
"typescript": "^4.1.2" | ||
}, | ||
@@ -122,9 +125,9 @@ "scripts": { | ||
"clean": "rimraf es && rimraf lib", | ||
"lint": "eslint --ext .js --ext .jsx src test", | ||
"lint": "eslint --ext .js,.jsx src test", | ||
"test": "is-ci \"test:coverage\" \"test:watch\"", | ||
"test:coverage": "jest --bail --coverage", | ||
"test:watch": "jest --watch --verbose", | ||
"test:watch": "jest --watchAll --verbose", | ||
"format": "prettier \"**/*.{js,jsx,ts,tsx}\" --write", | ||
"validate": "npm run lint && npm run test:coverage && flow && npm run build && size-limit", | ||
"size": "npm run build && size-limit", | ||
"validate": "npm run lint && npm run test:coverage && flow && npm run build && npm run size", | ||
"size": "size-limit", | ||
"prepublishOnly": "npm run validate" | ||
@@ -135,7 +138,7 @@ }, | ||
"path": "./es/index.js", | ||
"limit": "30 kB" | ||
"limit": "32 kB" | ||
}, | ||
{ | ||
"path": "./lib/index.js", | ||
"limit": "30 kB" | ||
"limit": "32 kB" | ||
} | ||
@@ -152,6 +155,5 @@ ], | ||
"eslint --fix", | ||
"git add", | ||
"jest --findRelatedTests" | ||
], | ||
"*.(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)": [ | ||
"*.(css|graphql|js|json|jsx|less|md|mdx|scss|ts|tsx|yaml|yml)": [ | ||
"prettier --write", | ||
@@ -158,0 +160,0 @@ "git add" |
import * as React from 'react'; | ||
import { Props as FloaterType } from 'react-floater'; | ||
@@ -17,8 +18,4 @@ export type valueof<T> = T[keyof T]; | ||
| 'right-start' | ||
| 'right-end' | ||
| 'auto' | ||
| 'center'; | ||
| 'right-end'; | ||
export type PlacementBeacon = 'top' | 'bottom' | 'left' | 'right'; | ||
export interface StoreState { | ||
@@ -64,13 +61,2 @@ action: string; | ||
export interface GenericObject { | ||
[key: string]: any; | ||
} | ||
export interface FloaterProps { | ||
disableAnimation?: boolean; | ||
options?: GenericObject; | ||
styles?: GenericObject; | ||
wrapperOptions?: GenericObject; | ||
} | ||
export interface Styles { | ||
@@ -115,3 +101,3 @@ beacon?: React.CSSProperties; | ||
disableScrollParentFix?: boolean; | ||
floaterProps?: FloaterProps; | ||
floaterProps?: FloaterType; | ||
hideBackButton?: boolean; | ||
@@ -140,3 +126,3 @@ locale?: Locale; | ||
'data-action': string; | ||
onClick: () => void; | ||
onClick: (e: React.MouseEvent<HTMLElement>) => void; | ||
role: string; | ||
@@ -148,3 +134,3 @@ title: string; | ||
'data-action': string; | ||
onClick: () => void; | ||
onClick: (e: React.MouseEvent<HTMLElement>) => void; | ||
role: string; | ||
@@ -156,3 +142,3 @@ title: string; | ||
'data-action': string; | ||
onClick: () => void; | ||
onClick: (e: React.MouseEvent<HTMLElement>) => void; | ||
role: string; | ||
@@ -164,3 +150,3 @@ title: string; | ||
'data-action': string; | ||
onClick: () => void; | ||
onClick: (e: React.MouseEvent<HTMLElement>) => void; | ||
role: string; | ||
@@ -171,3 +157,3 @@ title: string; | ||
'aria-modal': boolean; | ||
ref: () => void; | ||
ref: React.RefCallback<HTMLElement>; | ||
role: string; | ||
@@ -181,3 +167,3 @@ }; | ||
event?: string; | ||
floaterProps?: FloaterProps; | ||
floaterProps?: FloaterType; | ||
hideCloseButton?: boolean; | ||
@@ -187,4 +173,4 @@ hideFooter?: boolean; | ||
offset?: number; | ||
placement?: Placement; | ||
placementBeacon?: PlacementBeacon; | ||
placement?: Placement | 'auto' | 'center'; | ||
placementBeacon?: Placement; | ||
target: string | HTMLElement; | ||
@@ -260,1 +246,3 @@ title?: React.ReactNode; | ||
export const STATUS: status; | ||
export type FloaterProps = FloaterType; |
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
187135
5219
67
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addednested-property@4.0.0(transitive)
+ Addedreact@17.0.2(transitive)
+ Addedreact-dom@17.0.2(transitive)
+ Addedscheduler@0.20.2(transitive)
+ Addedtree-changes@0.6.1(transitive)
- Removedis-lite@0.6.0(transitive)
- Removednested-property@1.0.11.0.4(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-dom@16.14.0(transitive)
- Removedscheduler@0.19.1(transitive)
- Removedtree-changes@0.5.1(transitive)
Updatedis-lite@^0.8.0
Updatednested-property@^4.0.0
Updatedreact-is@^16.13.1
Updatedtree-changes@^0.6.1