piral-core 1.9.1 → 1.9.2-beta.8388

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.
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import { RouteComponentProps } from 'react-router';
3
2
  /**
4
3
  * The props for the SetRoute component.
5
4
  */
@@ -13,7 +12,7 @@ export interface SetRouteProps<T extends {
13
12
  /**
14
13
  * The component to render.
15
14
  */
16
- component: React.ComponentType<RouteComponentProps<T>>;
15
+ component: React.ComponentType<any>;
17
16
  }
18
17
  /**
19
18
  * The component capable of setting a global route at mounting.
@@ -1 +1 @@
1
- {"version":3,"file":"SetRoute.js","sourceRoot":"","sources":["../../src/setters/SetRoute.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAgB5D;;GAEG;AACH,MAAM,UAAU,QAAQ,CAA6C,EACnE,IAAI,EACJ,SAAS,GACQ;IACjB,MAAM,EAAE,QAAQ,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAC7C,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IACxD,2CAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC"}
1
+ {"version":3,"file":"SetRoute.js","sourceRoot":"","sources":["../../src/setters/SetRoute.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAgB5D;;GAEG;AACH,MAAM,UAAU,QAAQ,CAA6C,EACnE,IAAI,EACJ,SAAS,GACQ;IACjB,MAAM,EAAE,QAAQ,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAC7C,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IACxD,2CAA2C;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -276,7 +276,7 @@ export interface PiralActions extends PiralCustomActions {
276
276
  */
277
277
  setRoute<T extends {
278
278
  [K in keyof T]?: string;
279
- } = {}>(path: string, component: ComponentType<RouteComponentProps<T>>): void;
279
+ } = {}>(path: string, component: ComponentType<any>): void;
280
280
  /**
281
281
  * Includes a new provider as a sub-provider to the current provider.
282
282
  * @param provider The provider to include.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-core",
3
- "version": "1.9.1",
3
+ "version": "1.9.2-beta.8388",
4
4
  "description": "The core library for creating a Piral instance.",
5
5
  "keywords": [
6
6
  "portal",
@@ -28,8 +28,8 @@
28
28
  "exports": {
29
29
  ".": "./lib/index.js",
30
30
  "./lib/*": {
31
- "import": "./lib/*",
32
- "types": "./lib/*.d.ts"
31
+ "types": "./lib/*.d.ts",
32
+ "import": "./lib/*"
33
33
  },
34
34
  "./app.codegen": "./app.codegen",
35
35
  "./package.json": "./package.json",
@@ -63,8 +63,8 @@
63
63
  "test": "echo \"Error: run tests from root\" && exit 1"
64
64
  },
65
65
  "dependencies": {
66
- "piral-base": "^1.9.1",
67
- "piral-debug-utils": "^1.9.1",
66
+ "piral-base": "1.9.2-beta.8388",
67
+ "piral-debug-utils": "1.9.2-beta.8388",
68
68
  "zustand": "^3.0.0"
69
69
  },
70
70
  "devDependencies": {
@@ -84,5 +84,5 @@
84
84
  "react-router-dom",
85
85
  "tslib"
86
86
  ],
87
- "gitHead": "be6854cdffa875d3319d0d24c293f751f018c24d"
87
+ "gitHead": "25023f913ae9423c9cecd23e44d70e959ff58c8a"
88
88
  }
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import { RouteComponentProps } from 'react-router';
3
2
  import { useGlobalStateContext, useSetter } from '../hooks';
4
3
 
5
4
  /**
@@ -13,7 +12,7 @@ export interface SetRouteProps<T extends { [K in keyof T]?: string } = {}> {
13
12
  /**
14
13
  * The component to render.
15
14
  */
16
- component: React.ComponentType<RouteComponentProps<T>>;
15
+ component: React.ComponentType<any>;
17
16
  }
18
17
 
19
18
  /**
@@ -309,10 +309,7 @@ export interface PiralActions extends PiralCustomActions {
309
309
  * @param path The name of the component.
310
310
  * @param component The component to use for rendering.
311
311
  */
312
- setRoute<T extends { [K in keyof T]?: string } = {}>(
313
- path: string,
314
- component: ComponentType<RouteComponentProps<T>>,
315
- ): void;
312
+ setRoute<T extends { [K in keyof T]?: string } = {}>(path: string, component: ComponentType<any>): void;
316
313
  /**
317
314
  * Includes a new provider as a sub-provider to the current provider.
318
315
  * @param provider The provider to include.