@omniumretail/shared-resources 0.0.89 → 0.0.90
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/dist/bundle.js +1 -1
- package/dist/types/components/BottomDrawer/index.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts +1 -1
- package/dist/types/components/Footer/index.d.ts +1 -1
- package/dist/types/components/Form/FormInputField/index.d.ts +2 -2
- package/dist/types/components/Form/FormSelectField/index.d.ts +1 -1
- package/dist/types/components/Header/index.d.ts +1 -1
- package/dist/types/components/Link/index.d.ts +1 -1
- package/dist/types/components/Navigation/index.d.ts +1 -1
- package/dist/types/components/Page/index.d.ts +3 -3
- package/dist/types/components/SharedContextProvider/index.d.ts +1 -1
- package/dist/types/contexts/useStore.d.ts +1 -1
- package/dist/types/interfaces/ResponseList.d.ts +1 -1
- package/package.json +2 -5
- package/webpack.config.js +7 -31
- package/dist/bundle.js.gz +0 -0
|
@@ -5,5 +5,5 @@ interface BottomDrawerProps extends DrawerProps {
|
|
|
5
5
|
closeButtonName: string;
|
|
6
6
|
onReset?: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const BottomDrawer: ({ haveReset, resetButtonName, closeButtonName, onReset, ...restProps }: BottomDrawerProps) => JSX.Element;
|
|
8
|
+
export declare const BottomDrawer: ({ haveReset, resetButtonName, closeButtonName, onReset, ...restProps }: BottomDrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ButtonProps } from 'antd';
|
|
2
|
-
export declare const Button: (props: ButtonProps) => JSX.Element;
|
|
2
|
+
export declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,6 +3,6 @@ interface FormInputFieldProps extends Omit<FormItemProps, "name"> {
|
|
|
3
3
|
name: string;
|
|
4
4
|
inputProps?: InputProps;
|
|
5
5
|
}
|
|
6
|
-
export declare const InputField: (inputProps: InputProps) => JSX.Element;
|
|
7
|
-
export declare const FormInputField: ({ inputProps, ...itemProps }: FormInputFieldProps) => JSX.Element;
|
|
6
|
+
export declare const InputField: (inputProps: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const FormInputField: ({ inputProps, ...itemProps }: FormInputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -5,5 +5,5 @@ interface FormSelectFieldProps extends Omit<FormItemProps, "name"> {
|
|
|
5
5
|
options: LabeledValue[];
|
|
6
6
|
selectProps?: SelectProps<LabeledValue>;
|
|
7
7
|
}
|
|
8
|
-
export declare const FormSelectField: ({ options, selectProps, ...itemProps }: FormSelectFieldProps) => JSX.Element;
|
|
8
|
+
export declare const FormSelectField: ({ options, selectProps, ...itemProps }: FormSelectFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -3,4 +3,4 @@ export interface CustomLinkProps extends ButtonProps {
|
|
|
3
3
|
iconAlignRight?: boolean;
|
|
4
4
|
linkSecondary?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const Link: (props: CustomLinkProps) => JSX.Element;
|
|
6
|
+
export declare const Link: (props: CustomLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,8 +6,8 @@ interface PageBaseProps {
|
|
|
6
6
|
children?: React.ReactNode | React.ReactNode[];
|
|
7
7
|
}
|
|
8
8
|
export declare const Page: {
|
|
9
|
-
({ children }: PageBaseProps): JSX.Element;
|
|
10
|
-
Header: ({ children }: PageBaseProps) => JSX.Element;
|
|
11
|
-
Content: ({ children, isLoading }: PageContentProps) => JSX.Element;
|
|
9
|
+
({ children }: PageBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
Header: ({ children }: PageBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Content: ({ children, isLoading }: PageContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
@@ -4,4 +4,4 @@ export interface SharedContextProviderProps {
|
|
|
4
4
|
children?: React.ReactElement | React.ReactElement[];
|
|
5
5
|
disableInitialStoreRequest?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const SharedContextProvider: ({ children, disableInitialStoreRequest }: SharedContextProviderProps) => JSX.Element;
|
|
7
|
+
export declare const SharedContextProvider: ({ children, disableInitialStoreRequest }: SharedContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,6 +3,6 @@ import { Store } from '../interfaces/Store';
|
|
|
3
3
|
declare const StoreProvider: ({ children, disableInitialStoreRequest }: {
|
|
4
4
|
disableInitialStoreRequest?: boolean;
|
|
5
5
|
children: React.ReactElement | React.ReactElement[];
|
|
6
|
-
}) => JSX.Element;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const useStoreContext: () => Store;
|
|
8
8
|
export { StoreProvider, useStoreContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omniumretail/shared-resources",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.90",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared Components and services or utils to the frontend versions",
|
|
6
6
|
"main": "dist/bundle.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"typescript": "^4.8.3",
|
|
28
28
|
"url-loader": "^4.1.1",
|
|
29
29
|
"webpack": "^5.74.0",
|
|
30
|
-
"webpack-cli": "^
|
|
30
|
+
"webpack-cli": "^4.10.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
|
@@ -36,10 +36,7 @@
|
|
|
36
36
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
37
37
|
"@tanstack/react-query": "^4.29.19",
|
|
38
38
|
"antd": "^4.23.4",
|
|
39
|
-
"babel-plugin-import": "^1.13.8",
|
|
40
|
-
"babel-plugin-lodash": "^3.3.4",
|
|
41
39
|
"classnames": "^2.3.2",
|
|
42
|
-
"compression-webpack-plugin": "^10.0.0",
|
|
43
40
|
"date-fns": "^2.29.3",
|
|
44
41
|
"react": "^18.0.0",
|
|
45
42
|
"react-dom": "^18.0.0",
|
package/webpack.config.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
|
-
const CompressionWebpackPlugin = require('compression-webpack-plugin');
|
|
3
2
|
|
|
4
3
|
module.exports = {
|
|
5
4
|
mode: 'production',
|
|
@@ -23,50 +22,27 @@ module.exports = {
|
|
|
23
22
|
{
|
|
24
23
|
loader: 'css-loader',
|
|
25
24
|
options: {
|
|
26
|
-
modules: true
|
|
27
|
-
}
|
|
25
|
+
modules: true
|
|
26
|
+
}
|
|
28
27
|
},
|
|
29
|
-
{ loader: 'sass-loader' }
|
|
30
|
-
]
|
|
28
|
+
{ loader: 'sass-loader' }
|
|
29
|
+
]
|
|
31
30
|
},
|
|
32
31
|
{
|
|
33
32
|
test: /\.(png|svg|jpg|gif)$/,
|
|
34
33
|
loader: 'url-loader',
|
|
35
34
|
options: {
|
|
36
|
-
limit: Infinity
|
|
37
|
-
}
|
|
35
|
+
limit: Infinity // everything
|
|
36
|
+
}
|
|
38
37
|
},
|
|
39
38
|
{ test: /\.tsx?$/, use: 'ts-loader' },
|
|
40
|
-
{
|
|
41
|
-
test: /\.js$/,
|
|
42
|
-
exclude: /node_modules/,
|
|
43
|
-
use: {
|
|
44
|
-
loader: 'babel-loader',
|
|
45
|
-
options: {
|
|
46
|
-
plugins: [
|
|
47
|
-
['import', { libraryName: 'antd', style: 'css' }],
|
|
48
|
-
// Add other plugins if needed
|
|
49
|
-
],
|
|
50
|
-
presets: [['@babel/env', { 'targets': { 'node': 6 } }]],
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
39
|
],
|
|
55
40
|
},
|
|
56
|
-
plugins: [
|
|
57
|
-
new CompressionWebpackPlugin({
|
|
58
|
-
filename: '[path][base].gz',
|
|
59
|
-
algorithm: 'gzip',
|
|
60
|
-
test: /\.js$|\.css$|\.html$/,
|
|
61
|
-
threshold: 10240,
|
|
62
|
-
minRatio: 0.8,
|
|
63
|
-
}),
|
|
64
|
-
// ...other plugins...
|
|
65
|
-
],
|
|
66
41
|
externals: {
|
|
67
42
|
react: "react",
|
|
68
43
|
"react-dom": "react-dom",
|
|
69
44
|
"react-router-dom": "react-router-dom",
|
|
45
|
+
// "@tanstack/react-query": "@tanstack/react-query",
|
|
70
46
|
"@tanstack/query-core": "@tanstack/query-core",
|
|
71
47
|
},
|
|
72
48
|
};
|
package/dist/bundle.js.gz
DELETED
|
Binary file
|