@bigbinary/neeto-approvals-frontend 0.2.7 → 0.2.9
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/README.md +20 -1
- package/dist/index.cjs.js +427 -957
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +429 -960
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/src/translations/en.json +6 -11
- package/types.d.ts +13 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-approvals-frontend",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "To manage approvals across neeto products.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-approvals-frontend#readme",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@bigbinary/neeto-editor": "^1.28.8",
|
|
47
47
|
"@bigbinary/neeto-filters-frontend": "2.12.9",
|
|
48
48
|
"@bigbinary/neeto-icons": "1.17.2",
|
|
49
|
-
"@bigbinary/neeto-molecules": "1.
|
|
50
|
-
"@bigbinary/neetoui": "5.2.
|
|
49
|
+
"@bigbinary/neeto-molecules": "1.1.44",
|
|
50
|
+
"@bigbinary/neetoui": "5.2.21",
|
|
51
51
|
"@emotion/is-prop-valid": "^1.2.0",
|
|
52
52
|
"@faker-js/faker": "7.6.0",
|
|
53
53
|
"@honeybadger-io/react": "^2.0.1",
|
|
@@ -133,7 +133,8 @@
|
|
|
133
133
|
"webpack": "5.74.0",
|
|
134
134
|
"webpack-cli": "4.10.0",
|
|
135
135
|
"webpack-dev-server": "4.11.1",
|
|
136
|
-
"yup": "0.32.11"
|
|
136
|
+
"yup": "0.32.11",
|
|
137
|
+
"zustand": "4.3.2"
|
|
137
138
|
},
|
|
138
139
|
"peerDependencies": {
|
|
139
140
|
"@bigbinary/neeto-commons-frontend": "latest",
|
package/src/translations/en.json
CHANGED
|
@@ -16,8 +16,6 @@
|
|
|
16
16
|
"pending": "Pending",
|
|
17
17
|
"template_one": "Template",
|
|
18
18
|
"template_other": "Templates",
|
|
19
|
-
"approvalTemplate_one": "Approval template",
|
|
20
|
-
"approvalTemplate_other": "Approval templates",
|
|
21
19
|
"history": "History",
|
|
22
20
|
"approvalHistory": "Approval history",
|
|
23
21
|
"approver_one": "Approver",
|
|
@@ -27,6 +25,7 @@
|
|
|
27
25
|
"delete": "Delete",
|
|
28
26
|
"delete_": "Delete {{what}}?",
|
|
29
27
|
"add_": "Add {{what}}",
|
|
28
|
+
"addNew_": "Add new {{what}}",
|
|
30
29
|
"edit_": "Edit {{what}}",
|
|
31
30
|
"name": "Name",
|
|
32
31
|
"notFound_": "There are no {{what}} to show",
|
|
@@ -61,6 +60,9 @@
|
|
|
61
60
|
"sidebar": {
|
|
62
61
|
"description": "View and manage approvals."
|
|
63
62
|
},
|
|
63
|
+
"typography": {
|
|
64
|
+
"approvalRequest": "Approval request has been <strong>{{status}}</strong>."
|
|
65
|
+
},
|
|
64
66
|
"inputs": {
|
|
65
67
|
"labels": {
|
|
66
68
|
"firstName": "First name",
|
|
@@ -68,7 +70,8 @@
|
|
|
68
70
|
"description": "Description",
|
|
69
71
|
"approver": "Approver",
|
|
70
72
|
"variableMapping": "Variable mapping",
|
|
71
|
-
"message": "Message"
|
|
73
|
+
"message": "Message",
|
|
74
|
+
"additionalInfo": "Additional info"
|
|
72
75
|
},
|
|
73
76
|
"placeholders": {
|
|
74
77
|
"firstName": "Enter first name",
|
|
@@ -82,15 +85,7 @@
|
|
|
82
85
|
"add_": "Add {{what}}"
|
|
83
86
|
}
|
|
84
87
|
},
|
|
85
|
-
"typography": {
|
|
86
|
-
"newApprover": "Add new approver",
|
|
87
|
-
"editApprover": "Edit approver",
|
|
88
|
-
"approvalRequest": "Approval request has been <strong>{{status}}</strong>."
|
|
89
|
-
},
|
|
90
88
|
"select": {
|
|
91
|
-
"visibility": {
|
|
92
|
-
"everyone": "Everyone"
|
|
93
|
-
},
|
|
94
89
|
"approval": "Select approval"
|
|
95
90
|
},
|
|
96
91
|
"example": {
|
package/types.d.ts
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
label
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
interface Variable {
|
|
2
|
+
label?: string;
|
|
3
|
+
key: string;
|
|
4
|
+
value?: any;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
interface VariableCategory {
|
|
8
|
+
category_key: string;
|
|
9
|
+
category_label?: string;
|
|
10
|
+
variables?: Variable[];
|
|
11
|
+
}
|
|
5
12
|
|
|
6
13
|
type ApprovalsConfig = {
|
|
7
14
|
approvalsPath?: string;
|
|
8
15
|
requestUrl?: string;
|
|
9
|
-
visibilityOptions?: LabelValueObject[] | (() => LabelValueObject[]);
|
|
10
16
|
templateUrl?: string;
|
|
17
|
+
templatePlaceholders?: (VariableCategory | Variable)[];
|
|
11
18
|
helpDocUrl?: string;
|
|
12
19
|
};
|
|
13
20
|
|
|
@@ -18,6 +25,7 @@ export function Form(props: {
|
|
|
18
25
|
setIsPaneOpen: () => void;
|
|
19
26
|
onSubmit: () => void;
|
|
20
27
|
isLoading: boolean;
|
|
28
|
+
requestableId?: String;
|
|
21
29
|
}): JSX.Element;
|
|
22
30
|
|
|
23
31
|
export const Public: React.FC<>;
|