react-shepherd 3.3.7 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,8 +2,9 @@ import React, { FunctionComponent } from 'react';
2
2
  import Shepherd from 'shepherd.js';
3
3
  import Step from 'shepherd.js/src/types/step';
4
4
  import Tour from 'shepherd.js/src/types/tour';
5
+ declare type StepType = 'back' | 'cancel' | 'next';
5
6
  export interface ShepherdButtonWithType extends Step.StepOptionsButton {
6
- type?: string;
7
+ type?: StepType;
7
8
  }
8
9
  export interface ShepherdOptionsWithType extends Step.StepOptions {
9
10
  buttons?: ReadonlyArray<Step.StepOptionsButton | ShepherdButtonWithType>;
@@ -11,6 +12,7 @@ export interface ShepherdOptionsWithType extends Step.StepOptions {
11
12
  interface ShepherdProps {
12
13
  steps: Array<ShepherdOptionsWithType>;
13
14
  tourOptions: Tour.TourOptions;
15
+ children?: React.ReactNode;
14
16
  }
15
17
  declare const ShepherdTourContext: React.Context<Shepherd.Tour | null>;
16
18
  declare const ShepherdTourContextConsumer: React.Consumer<Shepherd.Tour | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-shepherd",
3
- "version": "3.3.7",
3
+ "version": "4.1.0",
4
4
  "description": "A React wrapper for the site tour library Shepherd",
5
5
  "homepage": "https://shipshapecode.github.io/react-shepherd/",
6
6
  "repository": {
@@ -19,13 +19,12 @@
19
19
  "prebuild": "tsc --project ./tsconfig-declarations.json",
20
20
  "build": "rollup -c",
21
21
  "predeploy": "cd example && yarn && yarn build",
22
- "deploy": "gh-pages -d example/build",
23
22
  "prepare": "install-peers",
24
23
  "problems": "tsc --noEmit",
25
24
  "release": "release-it",
26
25
  "start": "rollup -c -w",
27
- "test": "cross-env CI=1 react-scripts test",
28
- "test:watch": "react-scripts test"
26
+ "test": "cross-env CI=1 jest",
27
+ "test:watch": "jest --watch"
29
28
  },
30
29
  "dependencies": {
31
30
  "shepherd.js": "^10.0.0"
@@ -51,41 +50,41 @@
51
50
  "@babel/plugin-syntax-import-meta": "^7.2.0",
52
51
  "@babel/preset-env": "^7.5.4",
53
52
  "@babel/preset-react": "^7.0.0",
54
- "@svgr/rollup": "^5.1.0",
55
- "@testing-library/react": "^10.0.0",
56
- "@types/jest": "^26.0.10",
57
- "@types/node": "^14.6.4",
58
- "@types/react": "^17.0.0",
59
- "@types/react-dom": "^17.0.0",
53
+ "@svgr/rollup": "^6.2.1",
54
+ "@testing-library/react": "^13.3.0",
55
+ "@types/jest": "^28.1.4",
56
+ "@types/node": "^18.0.3",
57
+ "@types/react": "^18.0.15",
58
+ "@types/react-dom": "^18.0.6",
60
59
  "cross-env": "^7.0.0",
61
60
  "eslint": "6.8.0",
62
61
  "eslint-config-standard": "^14.0.0",
63
62
  "eslint-config-standard-react": "^9.0.0",
64
63
  "eslint-plugin-import": "^2.18.0",
65
64
  "eslint-plugin-node": "^11.0.0",
66
- "eslint-plugin-promise": "^4.2.1",
65
+ "eslint-plugin-promise": "^6.0.0",
67
66
  "eslint-plugin-react": "^7.14.2",
68
67
  "eslint-plugin-standard": "^5.0.0",
69
- "gh-pages": "^2.0.1",
70
68
  "install-peers-cli": "^2.2.0",
71
- "react-scripts": "^3.4.3",
72
- "react-syntax-highlighter": "^15.3.0",
69
+ "jest": "^28.1.2",
70
+ "jest-environment-jsdom": "^28.1.2",
73
71
  "release-it": "^14.0.2",
74
- "release-it-lerna-changelog": "^3.1.0",
72
+ "release-it-lerna-changelog": "^4.0.1",
75
73
  "rollup": "^2.6.1",
76
74
  "rollup-plugin-babel": "^4.3.3",
77
75
  "rollup-plugin-commonjs": "^10.0.1",
78
76
  "rollup-plugin-node-resolve": "^5.2.0",
79
77
  "rollup-plugin-peer-deps-external": "^2.2.0",
80
- "rollup-plugin-postcss": "^3.1.1",
78
+ "rollup-plugin-postcss": "^4.0.2",
81
79
  "rollup-plugin-typescript": "^1.0.1",
82
80
  "rollup-plugin-url": "^3.0.0",
81
+ "ts-jest": "^28.0.5",
83
82
  "tslib": "^2.0.1",
84
- "typescript": "^4.0.2"
83
+ "typescript": "^4.7.4"
85
84
  },
86
85
  "peerDependencies": {
87
- "react": "^17.0.2",
88
- "react-dom": "^17.0.2"
86
+ "react": "^17.0.2 || 18.x",
87
+ "react-dom": "^17.0.2 || 18.x"
89
88
  },
90
89
  "engines": {
91
90
  "node": ">=14",