@tramvai/react 2.150.0 → 2.151.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/lib/di/context.d.ts +1 -0
- package/lib/di/di.test-types.d.ts +1 -0
- package/lib/di/hoc.d.ts +1 -0
- package/lib/di/hooks.d.ts +1 -0
- package/lib/error/UniversalErrorBoundary.d.ts +1 -0
- package/lib/error/component.d.ts +1 -0
- package/lib/error/fallback.d.ts +1 -0
- package/lib/error/hoc.d.ts +1 -0
- package/lib/error/tokens.d.ts +1 -0
- package/lib/lazy/lazy.d.ts +1 -0
- package/lib/react.d.ts +1 -0
- package/lib/typings/components.d.ts +1 -0
- package/package.json +2 -2
package/lib/di/context.d.ts
CHANGED
package/lib/di/hoc.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ import type { ProviderDeps, ProvideDepsIterator } from '@tinkoff/dippy';
|
|
|
3
3
|
export declare const withDi: <T extends ProviderDeps>(deps: T) => <C extends React.ComponentType<Partial<ProvideDepsIterator<T>> & {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
}>>(WrappedComponent: C) => C;
|
|
6
|
+
//# sourceMappingURL=hoc.d.ts.map
|
package/lib/di/hooks.d.ts
CHANGED
|
@@ -12,3 +12,4 @@ declare function useDi<T extends ProviderDep>(dep: T): T extends string ? any :
|
|
|
12
12
|
} ? OptionsType<OptionsToken, OptionsMulti, OptionsOptional> : T;
|
|
13
13
|
declare function useDi<T extends ProviderDep>(dep: T): T extends string ? any : T;
|
|
14
14
|
export { useDi };
|
|
15
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -42,3 +42,4 @@ export declare class UniversalErrorBoundary extends Component<Props, State> {
|
|
|
42
42
|
render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
43
43
|
}
|
|
44
44
|
export {};
|
|
45
|
+
//# sourceMappingURL=UniversalErrorBoundary.d.ts.map
|
package/lib/error/component.d.ts
CHANGED
package/lib/error/fallback.d.ts
CHANGED
package/lib/error/hoc.d.ts
CHANGED
package/lib/error/tokens.d.ts
CHANGED
package/lib/lazy/lazy.d.ts
CHANGED
|
@@ -12,3 +12,4 @@ interface Options {
|
|
|
12
12
|
export declare const __lazyErrorHandler: (error: any, load: () => Promise<any>) => Promise<any>;
|
|
13
13
|
export declare const lazy: <Props>(load: (props?: Props | undefined) => Promise<DefaultComponent<Props>>, options?: Options) => LoadableComponent<Props>;
|
|
14
14
|
export {};
|
|
15
|
+
//# sourceMappingURL=lazy.d.ts.map
|
package/lib/react.d.ts
CHANGED
|
@@ -34,3 +34,4 @@ export type NestedLayoutComponent = ComponentType<NestedLayoutComponentProps> &
|
|
|
34
34
|
export type ErrorBoundaryComponent = ComponentType<UniversalErrorBoundaryFallbackProps> & Partial<MetaComponentOptions>;
|
|
35
35
|
export type TramvaiComponent = PageComponent | LayoutComponent | NestedLayoutComponent | ErrorBoundaryComponent;
|
|
36
36
|
export type TramvaiComponentDecl = TramvaiComponent | LazyComponentWrapper<TramvaiComponent>;
|
|
37
|
+
//# sourceMappingURL=components.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.151.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/react.js",
|
|
6
6
|
"typings": "lib/react.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@loadable/component": "^5.15.2",
|
|
21
21
|
"@types/loadable__component": "^5.13.4",
|
|
22
|
-
"@tramvai/types-actions-state-context": "2.
|
|
22
|
+
"@tramvai/types-actions-state-context": "2.151.0",
|
|
23
23
|
"hoist-non-react-statics": "^3.3.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|