@acuteinfo/common-screens 1.0.41 → 1.0.43

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,5 @@
1
1
  /// <reference types="react" />
2
- import { ResetPasswordFnType } from "pages/types";
2
+ import { OTPResendRequestFnType, ResetPasswordFnType, VerifyOtpFnType, VerifyUsernamePassFnType } from "pages/types";
3
3
  interface AuthControllerProps {
4
4
  bannerDetails: {
5
5
  bannerImg: string;
@@ -9,9 +9,9 @@ interface AuthControllerProps {
9
9
  logoUrl?: string;
10
10
  logoTitle?: string;
11
11
  loginFn: Function;
12
- veirfyUsernameandPassword: Function;
13
- verifyOTP: Function;
14
- OTPResendRequest: Function;
12
+ veirfyUsernameandPassword: VerifyUsernamePassFnType;
13
+ verifyOTP: VerifyOtpFnType;
14
+ OTPResendRequest: OTPResendRequestFnType;
15
15
  ResetPassword: ResetPasswordFnType;
16
16
  LanguageComponent?: React.ComponentType<any>;
17
17
  forgotPasswordEndpoint: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acuteinfo/common-screens",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "react",
@@ -81,6 +81,7 @@
81
81
  "devDependencies": {
82
82
  "@rollup/plugin-babel": "^6.0.4",
83
83
  "@rollup/plugin-commonjs": "^25.0.7",
84
+ "@rollup/plugin-image": "^3.0.3",
84
85
  "@rollup/plugin-node-resolve": "^15.2.3",
85
86
  "@rollup/plugin-terser": "^0.4.4",
86
87
  "@rollup/plugin-typescript": "^11.1.6",
package/rollup.config.mjs CHANGED
@@ -9,6 +9,7 @@ import url from "@rollup/plugin-url";
9
9
  import resolve from "@rollup/plugin-node-resolve";
10
10
  import commonjs from "@rollup/plugin-commonjs";
11
11
  import terser from "@rollup/plugin-terser";
12
+ import image from "@rollup/plugin-image";
12
13
 
13
14
  export default defineConfig({
14
15
  input: "src/index.ts",
@@ -41,21 +42,23 @@ export default defineConfig({
41
42
  "react-perfect-scrollbar",
42
43
  ],
43
44
  plugins: [
44
- // resolve(),
45
+ resolve(),
45
46
  // commonjs(),
46
47
  nodePolyfills(),
47
48
  typescript({ tsconfig: "tsconfig.json" }),
48
- // terser(),
49
+ terser(),
49
50
  postcss({
50
51
  minimize: true,
51
52
  extensions: [".css"],
52
53
  plugins: [simplevars(), nested()],
53
54
  }),
54
55
  url({
55
- include: ["**/*.png", "**/*.jpg", "**/*.jpeg", "**/*.gif", "**/*.svg"],
56
- limit: 0,
56
+ include: ["**/*.svg", "**/*.png", "**/*.jpg", "**/*.gif"],
57
+ limit: 0, // All assets will be copied to the output folder
57
58
  emitFiles: true,
58
59
  fileName: "[name][extname]",
60
+ destDir: "dist/assets",
59
61
  }),
62
+ image(),
60
63
  ],
61
64
  });
package/tsconfig.json CHANGED
@@ -21,5 +21,6 @@
21
21
  "baseUrl": "src",
22
22
  "allowUmdGlobalAccess": true
23
23
  },
24
- "include": ["src"]
24
+ "include": ["src"],
25
+ "exclude": ["node_modules"]
25
26
  }