@secondstaxorg/sscomp 2.0.63 → 2.0.65

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondstaxorg/sscomp",
3
- "version": "2.0.63",
3
+ "version": "2.0.65",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -41,16 +41,18 @@
41
41
  "@rollup/plugin-commonjs": "^23.0.7",
42
42
  "@rollup/plugin-node-resolve": "^15.0.1",
43
43
  "@rollup/plugin-typescript": "^9.0.2",
44
- "@storybook/addon-actions": "^8.1.10",
45
- "@storybook/addon-essentials": "^8.1.10",
46
- "@storybook/addon-interactions": "^8.1.10",
47
- "@storybook/addon-links": "^8.1.10",
48
- "@storybook/addon-mdx-gfm": "^8.1.10",
49
- "@storybook/addon-webpack5-compiler-babel": "3.0.3",
50
- "@storybook/react": "^8.1.10",
51
- "@storybook/react-webpack5": "^8.1.10",
44
+ "@storybook/addon-actions": "^8.4.7",
45
+ "@storybook/addon-essentials": "^8.4.7",
46
+ "@storybook/addon-interactions": "^8.4.7",
47
+ "@storybook/addon-links": "^8.4.7",
48
+ "@storybook/addon-mdx-gfm": "^8.4.7",
49
+ "@storybook/addon-webpack5-compiler-babel": "^3.0.3",
50
+ "@storybook/builder-vite": "^8.4.7",
51
+ "@storybook/react": "^8.4.7",
52
+ "@storybook/react-vite": "^8.4.7",
53
+ "@storybook/react-webpack5": "^8.4.7",
52
54
  "@storybook/storybook-deployer": "^2.8.16",
53
- "@storybook/test": "8.1.10",
55
+ "@storybook/test": "^8.4.7",
54
56
  "@types/google-libphonenumber": "^7.4.30",
55
57
  "@types/react": "^18.0.22",
56
58
  "@types/styled-components": "^5.1.26",
@@ -66,9 +68,10 @@
66
68
  "rollup-plugin-peer-deps-external": "^2.2.4",
67
69
  "rollup-plugin-postcss": "^4.0.2",
68
70
  "rollup-plugin-terser": "^7.0.2",
69
- "storybook": "^8.1.10",
71
+ "storybook": "^8.4.7",
70
72
  "styled-components": "^5.3.6",
71
73
  "typescript": "^4.8.4",
74
+ "vite": "^6.0.3",
72
75
  "webpack": "^5.74.0"
73
76
  },
74
77
  "dependencies": {
@@ -76,7 +79,7 @@
76
79
  "@rollup/plugin-image": "^3.0.2",
77
80
  "@rollup/plugin-json": "^6.0.0",
78
81
  "@rollup/plugin-sucrase": "^5.0.1",
79
- "@storybook/channels": "^8.1.10",
82
+ "@storybook/channels": "^8.4.7",
80
83
  "axios": "^1.4.0",
81
84
  "chart.js": "^3.9.1",
82
85
  "dayjs": "^1.11.10",
@@ -85,7 +88,6 @@
85
88
  "heroicons": "^2.0.12",
86
89
  "password-meter": "^3.10.2",
87
90
  "postcss": "^8.4.21",
88
- "react": "^18.2.0",
89
91
  "react-chartjs-2": "^4.3.1",
90
92
  "react-dom": "^18.2.0",
91
93
  "react-fast-marquee": "^1.3.5",
@@ -96,7 +98,7 @@
96
98
  "tippy.js": "^6.3.7"
97
99
  },
98
100
  "peerDependencies": {
99
- "pdfjs-dist": "^3.11.174",
101
+ "pdfjs-dist": "^4.4.168",
100
102
  "react": "^18.2.0",
101
103
  "react-dom": "^18.2.0",
102
104
  "react-pdf": "^7.5.1",
@@ -20,6 +20,10 @@ export interface PDFViewerProps {
20
20
  prevFile?: string;
21
21
  of?: string;
22
22
  };
23
+ /**
24
+ * Specify the array index of the file you want to jump to on load
25
+ */
26
+ jumpTo?: number;
23
27
  }
24
28
  export type filesType = {
25
29
  fileUrl: string;
@@ -7,7 +7,7 @@ export interface DropdownProps {
7
7
  value: string;
8
8
  }[];
9
9
  /**
10
- * Initial text to be displayed in the field. Ideal for when using an update form to display the current value of the field
10
+ * Initial text to be displayed in the field. Ideal for when using an Update form to display the current value of the field
11
11
  */
12
12
  initialText?: string;
13
13
  /**
@@ -41,4 +41,8 @@ export interface FileUploadProps {
41
41
  * If true, the "select file" button will be merged into the field
42
42
  */
43
43
  consolidateButton?: boolean;
44
+ /**
45
+ * Specify the file name to be displayed on load
46
+ */
47
+ initialFileName?: string;
44
48
  }
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export interface PopupModalProps {
2
3
  /**
3
4
  * Title of the modal
@@ -6,15 +7,15 @@ export interface PopupModalProps {
6
7
  /**
7
8
  * Content of the modal
8
9
  */
9
- content: string;
10
+ content?: string;
10
11
  /**
11
12
  * Function to be called when the primary button is clicked. The primary button is the one on the right.
12
13
  */
13
- primaryAction: () => void;
14
+ primaryAction?: () => void;
14
15
  /**
15
16
  * Text to be displayed on the primary button
16
17
  */
17
- primaryBtnText: string;
18
+ primaryBtnText?: string;
18
19
  /**
19
20
  * Function to be called when the secondary button is clicked. When this prop is not provided, only the primary button is displayed.
20
21
  */
@@ -31,4 +32,8 @@ export interface PopupModalProps {
31
32
  * Toggle to show or hide the modal based on boolean value passed to it
32
33
  */
33
34
  showModal: boolean;
35
+ /**
36
+ * Add custom JSX code to the content area of the modal. If provided, `content`, `primaryAction` and `primaryBtnText` are replaced
37
+ */
38
+ jsxCode?: React.ReactNode;
34
39
  }