shinkansen-pantograph 1.3.131 → 1.3.133
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/package.json +7 -6
- package/src/index.d.cts +26 -1
- package/src/pantograph/index.mjs +5 -0
- package/tsconfig.json +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-pantograph",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.133",
|
|
4
4
|
"description": "Shinkansen Pantograph",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -42,17 +42,18 @@
|
|
|
42
42
|
"@babel/eslint-parser": "^7.23.10",
|
|
43
43
|
"@babel/preset-env": "^7.23.9",
|
|
44
44
|
"@babel/register": "^7.23.7",
|
|
45
|
-
"@modernpoacher/hooks": "^1.0.
|
|
45
|
+
"@modernpoacher/hooks": "^1.0.466",
|
|
46
46
|
"@sequencemedia/sinon-chai": "^0.0.6",
|
|
47
|
-
"@
|
|
48
|
-
"@typescript-eslint/
|
|
47
|
+
"@types/react": "^18.2.58",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^7.0.2",
|
|
49
|
+
"@typescript-eslint/parser": "^7.0.2",
|
|
49
50
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
50
51
|
"chai": "^5.1.0",
|
|
51
52
|
"core-js": "^3.36.0",
|
|
52
53
|
"cross-env": "^7.0.3",
|
|
53
|
-
"eslint": "^8.
|
|
54
|
+
"eslint": "^8.57.0",
|
|
54
55
|
"eslint-config-standard": "^17.1.0",
|
|
55
|
-
"eslint-config-standard-with-typescript": "
|
|
56
|
+
"eslint-config-standard-with-typescript": "^43.0.1",
|
|
56
57
|
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
57
58
|
"husky": "^9.0.11",
|
|
58
59
|
"mocha": "^10.3.0",
|
package/src/index.d.cts
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
declare module 'shinkansen-pantograph/pantograph' {
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
interface RouteType {
|
|
5
|
+
pathname: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const pantograph: Record<string, Record<string, string>>
|
|
9
|
+
|
|
10
|
+
export function getRedirectToAlpha (alpha: { alpha: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
|
|
11
|
+
export function getRedirectToOmega (omega: { omega: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
|
|
12
|
+
export function getRedirectToEmbark (embark: { embark: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
|
|
13
|
+
export function getRedirectToDebark (debark: { debark: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
|
|
14
|
+
export function getRedirectToConfirm (confirm: { confirm: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
|
|
15
|
+
export function getRedirectTo (to: {redirect?: Record<string, unknown>, route: RouteType}): React.JSX.Element | null
|
|
16
|
+
export function getRedirectFromAlpha (alpha: { state: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
|
|
17
|
+
export function getRedirectFromOmega (omega: { state: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
|
|
18
|
+
export function getRedirectFromEmbark (embark: { state: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
|
|
19
|
+
export function getRedirectFromDebark (debark: { state: Record<string, unknown>, route: string }): React.JSX.Element | null
|
|
20
|
+
export function getRedirectFromConfirm (confirm: { state: Record<string, unknown>, route: RouteType }): React.JSX.Element | null
|
|
21
|
+
export function graphite (params: { action: Record<string, unknown>, state: Record<string, unknown>, route: RouteType }): undefined
|
|
22
|
+
|
|
23
|
+
export default pantograph
|
|
24
|
+
}
|
|
25
|
+
|
|
1
26
|
declare module 'shinkansen-pantograph' {
|
|
2
|
-
export { default as Pantograph } from '
|
|
27
|
+
export { default as Pantograph } from 'shinkansen-pantograph/pantograph'
|
|
3
28
|
}
|
package/src/pantograph/index.mjs
CHANGED