piral-core 0.15.0-alpha.4027 → 0.15.0-alpha.4034

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,33 +1,33 @@
1
1
  import * as React from 'react';
2
- import { ComponentsState, ErrorInfoProps, LoadingIndicatorProps, RouterProps, LayoutProps, RouteSwitchProps } from '../types';
2
+ import { ComponentsState } from '../types';
3
3
  export declare function getPiralComponent<TKey extends keyof ComponentsState>(name: TKey): ComponentsState[TKey];
4
4
  /**
5
5
  * Gets the currently registered ErrorInfo component.
6
6
  * By default the DefaultErrorInfo component is used.
7
7
  */
8
- export declare const PiralError: React.ComponentType<ErrorInfoProps>;
8
+ export declare const PiralError: React.ComponentType<import("../types").ErrorInfoProps>;
9
9
  /**
10
10
  * Gets the currently registered LoadingIndicator component.
11
11
  * By default only Loading is rendered.
12
12
  */
13
- export declare const PiralLoadingIndicator: React.ComponentType<LoadingIndicatorProps>;
13
+ export declare const PiralLoadingIndicator: React.ComponentType<import("../types").LoadingIndicatorProps>;
14
14
  /**
15
15
  * Gets the currently registered Router component.
16
16
  * By default the BrowserRouter is used.
17
17
  */
18
- export declare const PiralRouter: React.ComponentType<RouterProps>;
18
+ export declare const PiralRouter: React.ComponentType<import("../types").RouterProps>;
19
19
  /**
20
20
  * Gets the currently registered Route Switch component.
21
21
  * By default the DefaultRouteSwitch component is used.
22
22
  */
23
- export declare const PiralRouteSwitch: React.ComponentType<RouteSwitchProps>;
23
+ export declare const PiralRouteSwitch: React.ComponentType<import("../types").RouteSwitchProps>;
24
24
  /**
25
25
  * Gets the currently registered Layout component.
26
26
  * By default the children are rendered.
27
27
  */
28
- export declare const PiralLayout: React.ComponentType<LayoutProps>;
28
+ export declare const PiralLayout: React.ComponentType<import("../types").LayoutProps>;
29
29
  /**
30
30
  * Gets the currently registered Debug component.
31
31
  * By default nothing is used.
32
32
  */
33
- export declare const PiralDebug: React.ComponentType;
33
+ export declare const PiralDebug: React.ComponentType<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/components/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAU1C,MAAM,UAAU,iBAAiB,CAAqC,IAAU;IAC9E,OAAO,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5D,2CAA2C;QAC3C,OAAO,SAAS,CAAC,CAAC,CAAC,oBAAC,SAAS,oBAAK,KAAK,EAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACrD,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAwC,iBAAiB,CAAC,WAAW,CAAC,CAAC;AAE9F;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA+C,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;AAEvH;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAqC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAEzF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA0C,iBAAiB,CAAC,aAAa,CAAC,CAAC;AAExG;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAqC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAEzF;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAwB,iBAAiB,CAAC,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/components/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,MAAM,UAAU,iBAAiB,CAAqC,IAAU;IAC9E,OAAO,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5D,2CAA2C;QAC3C,OAAO,SAAS,CAAC,CAAC,CAAC,oBAAC,SAAS,oBAAK,KAAK,EAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACrD,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;AAEzD;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;AAE3E;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAC;AAEjE;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC"}
@@ -1,33 +1,33 @@
1
1
  import * as React from 'react';
2
- import { ComponentsState, ErrorInfoProps, LoadingIndicatorProps, RouterProps, LayoutProps, RouteSwitchProps } from '../types';
2
+ import { ComponentsState } from '../types';
3
3
  export declare function getPiralComponent<TKey extends keyof ComponentsState>(name: TKey): ComponentsState[TKey];
4
4
  /**
5
5
  * Gets the currently registered ErrorInfo component.
6
6
  * By default the DefaultErrorInfo component is used.
7
7
  */
8
- export declare const PiralError: React.ComponentType<ErrorInfoProps>;
8
+ export declare const PiralError: React.ComponentType<import("../types").ErrorInfoProps>;
9
9
  /**
10
10
  * Gets the currently registered LoadingIndicator component.
11
11
  * By default only Loading is rendered.
12
12
  */
13
- export declare const PiralLoadingIndicator: React.ComponentType<LoadingIndicatorProps>;
13
+ export declare const PiralLoadingIndicator: React.ComponentType<import("../types").LoadingIndicatorProps>;
14
14
  /**
15
15
  * Gets the currently registered Router component.
16
16
  * By default the BrowserRouter is used.
17
17
  */
18
- export declare const PiralRouter: React.ComponentType<RouterProps>;
18
+ export declare const PiralRouter: React.ComponentType<import("../types").RouterProps>;
19
19
  /**
20
20
  * Gets the currently registered Route Switch component.
21
21
  * By default the DefaultRouteSwitch component is used.
22
22
  */
23
- export declare const PiralRouteSwitch: React.ComponentType<RouteSwitchProps>;
23
+ export declare const PiralRouteSwitch: React.ComponentType<import("../types").RouteSwitchProps>;
24
24
  /**
25
25
  * Gets the currently registered Layout component.
26
26
  * By default the children are rendered.
27
27
  */
28
- export declare const PiralLayout: React.ComponentType<LayoutProps>;
28
+ export declare const PiralLayout: React.ComponentType<import("../types").LayoutProps>;
29
29
  /**
30
30
  * Gets the currently registered Debug component.
31
31
  * By default nothing is used.
32
32
  */
33
- export declare const PiralDebug: React.ComponentType;
33
+ export declare const PiralDebug: React.ComponentType<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/components/components.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,oCAA0C;AAU1C,SAAgB,iBAAiB,CAAqC,IAAU;IAC9E,OAAO,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,SAAS,GAAG,IAAA,sBAAc,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5D,2CAA2C;QAC3C,OAAO,SAAS,CAAC,CAAC,CAAC,oBAAC,SAAS,oBAAK,KAAK,EAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACrD,CAAC,CAAC;AACJ,CAAC;AAND,8CAMC;AAED;;;GAGG;AACU,QAAA,UAAU,GAAwC,iBAAiB,CAAC,WAAW,CAAC,CAAC;AAE9F;;;GAGG;AAC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AAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-core",
3
- "version": "0.15.0-alpha.4027",
3
+ "version": "0.15.0-alpha.4034",
4
4
  "description": "The core library for creating a Piral instance.",
5
5
  "keywords": [
6
6
  "portal",
@@ -48,8 +48,8 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@dbeining/react-atom": "^4.0.0",
51
- "piral-base": "0.15.0-alpha.4027",
52
- "piral-debug-utils": "0.15.0-alpha.4027"
51
+ "piral-base": "0.15.0-alpha.4034",
52
+ "piral-debug-utils": "0.15.0-alpha.4034"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "react": ">=16.8.0",
@@ -79,5 +79,5 @@
79
79
  "@libre/atom",
80
80
  "@dbeining/react-atom"
81
81
  ],
82
- "gitHead": "324ff88850415188d0015efc509346705224a4dc"
82
+ "gitHead": "7f9158d7fd10d640ba9c092564275e4cc426dff9"
83
83
  }
@@ -1,13 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { useGlobalState } from '../hooks';
3
- import {
4
- ComponentsState,
5
- ErrorInfoProps,
6
- LoadingIndicatorProps,
7
- RouterProps,
8
- LayoutProps,
9
- RouteSwitchProps,
10
- } from '../types';
3
+ import { ComponentsState } from '../types';
11
4
 
12
5
  export function getPiralComponent<TKey extends keyof ComponentsState>(name: TKey): ComponentsState[TKey] {
13
6
  return (props) => {
@@ -21,34 +14,34 @@ export function getPiralComponent<TKey extends keyof ComponentsState>(name: TKey
21
14
  * Gets the currently registered ErrorInfo component.
22
15
  * By default the DefaultErrorInfo component is used.
23
16
  */
24
- export const PiralError: React.ComponentType<ErrorInfoProps> = getPiralComponent('ErrorInfo');
17
+ export const PiralError = getPiralComponent('ErrorInfo');
25
18
 
26
19
  /**
27
20
  * Gets the currently registered LoadingIndicator component.
28
21
  * By default only Loading is rendered.
29
22
  */
30
- export const PiralLoadingIndicator: React.ComponentType<LoadingIndicatorProps> = getPiralComponent('LoadingIndicator');
23
+ export const PiralLoadingIndicator = getPiralComponent('LoadingIndicator');
31
24
 
32
25
  /**
33
26
  * Gets the currently registered Router component.
34
27
  * By default the BrowserRouter is used.
35
28
  */
36
- export const PiralRouter: React.ComponentType<RouterProps> = getPiralComponent('Router');
29
+ export const PiralRouter = getPiralComponent('Router');
37
30
 
38
31
  /**
39
32
  * Gets the currently registered Route Switch component.
40
33
  * By default the DefaultRouteSwitch component is used.
41
34
  */
42
- export const PiralRouteSwitch: React.ComponentType<RouteSwitchProps> = getPiralComponent('RouteSwitch');
35
+ export const PiralRouteSwitch = getPiralComponent('RouteSwitch');
43
36
 
44
37
  /**
45
38
  * Gets the currently registered Layout component.
46
39
  * By default the children are rendered.
47
40
  */
48
- export const PiralLayout: React.ComponentType<LayoutProps> = getPiralComponent('Layout');
41
+ export const PiralLayout = getPiralComponent('Layout');
49
42
 
50
43
  /**
51
44
  * Gets the currently registered Debug component.
52
45
  * By default nothing is used.
53
46
  */
54
- export const PiralDebug: React.ComponentType = getPiralComponent('Debug');
47
+ export const PiralDebug = getPiralComponent('Debug');