dt-shared-front 2.2.53 → 2.2.56-alpha.1

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,10 +1,12 @@
1
1
  import React from 'react';
2
- import { PropsWithChildren } from "react";
2
+ import { PropsWithChildren } from 'react';
3
3
  declare type ISharedContextPrivate = {
4
4
  LinkComponent?: any;
5
+ isWbTheme?: boolean;
5
6
  };
6
7
  interface ISharedProviderProps {
7
8
  LinkComponent?: any;
9
+ isWbTheme?: boolean;
8
10
  }
9
11
  export declare const SharedProvider: ({ children, ...props }: PropsWithChildren<ISharedProviderProps>) => React.JSX.Element;
10
12
  export declare const useShared: () => ISharedContextPrivate;
@@ -1,2 +1,2 @@
1
- import { IAdapterFunction } from './service.types';
1
+ import type { IAdapterFunction } from './service.types';
2
2
  export declare const adapter: IAdapterFunction;
@@ -0,0 +1,3 @@
1
+ import type { AxiosError } from 'axios';
2
+ export declare type IResult<IResponse> = [IResponse | null, AxiosError | any | null];
3
+ export declare type IAdapterFunction = <IResponse, IData>(mapper: (res: IResponse) => IData) => ([res, err]: IResult<IResponse>) => IResult<IData>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-shared-front",
3
- "version": "2.2.53",
3
+ "version": "2.2.56-alpha.1",
4
4
  "description": "Shared components",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -31,6 +31,7 @@
31
31
  "@typescript-eslint/eslint-plugin": "5.30.7",
32
32
  "@typescript-eslint/parser": "5.30.7",
33
33
  "antd": "4.24.10",
34
+ "axios": "0.27.2",
34
35
  "babel-loader": "^8.2.5",
35
36
  "babel-plugin-inline-react-svg": "^1.1.2",
36
37
  "babel-plugin-react-css-modules": "^5.2.6",
@@ -47,7 +48,6 @@
47
48
  "lodash.debounce": "4.0.8",
48
49
  "mini-css-extract-plugin": "^1.6.2",
49
50
  "prettier": "2.7.1",
50
- "axios": "0.27.2",
51
51
  "react": "18.3.0",
52
52
  "react-dom": "18.3.0",
53
53
  "react-loading-skeleton": "^3.3.1",