@bigbinary/neeto-molecules 1.0.77-beta → 1.0.78-beta
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/Sidebar.cjs.js +41 -65
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +42 -66
- package/dist/Sidebar.js.map +1 -1
- package/package.json +1 -1
- package/types/EmailForm.d.ts +7 -1
- package/types/EmailFormProvider.d.ts +10 -4
- package/types/PublishBlock.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.78-beta",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
package/types/EmailForm.d.ts
CHANGED
|
@@ -9,7 +9,13 @@ type FieldOptions = {
|
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
12
|
-
* This is a component used to create or edit an email template. It includes fields
|
|
12
|
+
* This is a component used to create or edit an email template. It includes fields
|
|
13
|
+
*
|
|
14
|
+
* for defining the email subject, message, sender details, and recipient details.
|
|
15
|
+
*
|
|
16
|
+
* It also provides options to insert variables into the message and subject field,
|
|
17
|
+
*
|
|
18
|
+
* validate input, and handle save or cancel actions."
|
|
13
19
|
*
|
|
14
20
|
* 
|
|
15
21
|
*
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
|
-
* This is a container component for EmailForm that maintains the context values
|
|
4
|
+
* This is a container component for EmailForm that maintains the context values
|
|
5
|
+
*
|
|
6
|
+
* such as the Formik container. By using this context, EmailForm and its child
|
|
7
|
+
*
|
|
8
|
+
* components can easily access and manage form state, handle form submission, and
|
|
9
|
+
*
|
|
10
|
+
* perform form validation, among other operations.
|
|
5
11
|
*
|
|
6
12
|
* @example
|
|
7
13
|
*
|
|
@@ -11,9 +17,9 @@ import React from "react";
|
|
|
11
17
|
* const EmailComposer = () => {
|
|
12
18
|
* return (
|
|
13
19
|
* <EmailFormProvider>
|
|
14
|
-
* {({ values }) => (
|
|
15
|
-
*
|
|
16
|
-
* )}
|
|
20
|
+
* {({ values }) => ({
|
|
21
|
+
* children
|
|
22
|
+
* })}
|
|
17
23
|
* </EmailFormProvider>
|
|
18
24
|
* );
|
|
19
25
|
* };
|
package/types/PublishBlock.d.ts
CHANGED
|
@@ -69,7 +69,8 @@ interface PublishBlockProps {
|
|
|
69
69
|
* <PublishBlock.Alert
|
|
70
70
|
* isOpen={isResetDraftAlertOpen}
|
|
71
71
|
* message="Leaving this page will delete all unpublished changes."
|
|
72
|
-
* title="
|
|
72
|
+
* title="Discard changes?"
|
|
73
|
+
* submitButtonLabel="Discard changes"
|
|
73
74
|
* onClose={() => setIsResetDraftAlertOpen(false)}
|
|
74
75
|
* onSubmit={action("handleReset")}
|
|
75
76
|
* //other alert props can also be passed
|