@bigbinary/neeto-message-templates-frontend 0.4.3 → 0.4.5
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 +10 -0
- package/app/javascript/src/translations/en.json +1 -0
- package/dist/index.cjs.js +325 -274
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +326 -275
- package/dist/index.js.map +1 -1
- package/package.json +76 -73
- package/types.d.ts +2 -0
package/README.md
CHANGED
|
@@ -84,6 +84,8 @@ This component is used to manage message templates in your web application. It p
|
|
|
84
84
|
- `templateVariables`: (optional) To add dynamic variables to form body field.
|
|
85
85
|
- `ownerId`: (optional) To provide the `ID` of the owner if it is not an Organization model. If the owner is an Organization, this prop can be left unspecified.
|
|
86
86
|
- `breadcrumbs`: An array of objects that specify breadcrumbs for navigation.
|
|
87
|
+
- `isTestingTemplateDisabled`: A boolean indicating whether the test template button should be enabled or not.
|
|
88
|
+
- `manageTemplatesPaneCustomFields`: To add custom components to the manage templates pane.
|
|
87
89
|
|
|
88
90
|
##### Usage
|
|
89
91
|
```jsx
|
|
@@ -109,6 +111,12 @@ const App = () => {
|
|
|
109
111
|
},
|
|
110
112
|
];
|
|
111
113
|
|
|
114
|
+
const manageTemplatesPaneCustomFields = () => (
|
|
115
|
+
<Callout icon={Warning} style="warning">
|
|
116
|
+
Twilio integration is required for sending SMS. Please connect your Twilio account.
|
|
117
|
+
</Callout>
|
|
118
|
+
);
|
|
119
|
+
|
|
112
120
|
return (
|
|
113
121
|
<MessageTemplates
|
|
114
122
|
shouldIncludeTestTemplate
|
|
@@ -117,6 +125,8 @@ const App = () => {
|
|
|
117
125
|
isTestMessageLoading={isTestMessageLoading}
|
|
118
126
|
templateVariables={TEMPLATE_VARIABLES}
|
|
119
127
|
type={type}
|
|
128
|
+
isTestingTemplateDisabled={isTestingTemplateDisabled}
|
|
129
|
+
manageTemplatesPaneCustomFields={manageTemplatesPaneCustomFields()}
|
|
120
130
|
/>
|
|
121
131
|
);
|
|
122
132
|
};
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"filtersEmptyState": "There are no {{type, anyCase}} to show for applied filters.",
|
|
38
38
|
"preview": "Template Preview",
|
|
39
39
|
"resolveVariable": "Resolve {{type}} variables",
|
|
40
|
+
"phoneNumberHelpText": "Example: +918888888888",
|
|
40
41
|
"validation": {
|
|
41
42
|
"namePresence": "Name is required",
|
|
42
43
|
"subjectPresence": "Subject is required",
|