@bigbinary/neeto-message-templates-frontend 0.6.7 → 0.7.0

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/index.js CHANGED
@@ -3602,7 +3602,9 @@ var Whatsapp = function Whatsapp(_ref) {
3602
3602
  handleSubmit = _ref.handleSubmit,
3603
3603
  customFields = _ref.customFields,
3604
3604
  customFieldsInitialValues = _ref.customFieldsInitialValues,
3605
- customFieldsValidationSchema = _ref.customFieldsValidationSchema;
3605
+ customFieldsValidationSchema = _ref.customFieldsValidationSchema,
3606
+ _ref$helpDocUrl = _ref.helpDocUrl,
3607
+ helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl;
3606
3608
  var _useTranslation = useTranslation(),
3607
3609
  t = _useTranslation.t;
3608
3610
  var getInitialVariableComponents = function getInitialVariableComponents(variables) {
@@ -3631,6 +3633,15 @@ var Whatsapp = function Whatsapp(_ref) {
3631
3633
  if (isEmpty(templates)) {
3632
3634
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Typography, null, t("neetoMessageTemplate.template.emptyState", {
3633
3635
  type: t("neetoMessageTemplate.template.whatsappTemplates")
3636
+ }), " ", helpDocUrl && /*#__PURE__*/React.createElement(Trans, {
3637
+ i18nKey: "neetoMessageTemplate.template.whatsapp.helpDocText",
3638
+ components: {
3639
+ Link: /*#__PURE__*/React.createElement(Button, {
3640
+ size: "large",
3641
+ style: "link",
3642
+ to: helpDocUrl
3643
+ })
3644
+ }
3634
3645
  })), /*#__PURE__*/React.createElement(Pane.Footer, {
3635
3646
  className: "absolute bottom-0 left-0"
3636
3647
  }, /*#__PURE__*/React.createElement(Button, {
@@ -3731,7 +3742,9 @@ var SendMessagePane = function SendMessagePane(_ref) {
3731
3742
  _ref$templateVariable = _ref.templateVariables,
3732
3743
  templateVariables = _ref$templateVariable === void 0 ? {} : _ref$templateVariable,
3733
3744
  _ref$ownerId = _ref.ownerId,
3734
- ownerId = _ref$ownerId === void 0 ? "" : _ref$ownerId;
3745
+ ownerId = _ref$ownerId === void 0 ? "" : _ref$ownerId,
3746
+ _ref$helpDocUrl = _ref.helpDocUrl,
3747
+ helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl;
3735
3748
  var _useTranslation = useTranslation(),
3736
3749
  t = _useTranslation.t;
3737
3750
  var initialFocusField = useRef();
@@ -3762,6 +3775,7 @@ var SendMessagePane = function SendMessagePane(_ref) {
3762
3775
  customFieldsInitialValues: customFieldsInitialValues,
3763
3776
  customFieldsValidationSchema: customFieldsValidationSchema,
3764
3777
  handleSubmit: handleSubmit,
3778
+ helpDocUrl: helpDocUrl,
3765
3779
  onClose: onClose,
3766
3780
  templates: templates
3767
3781
  }) : /*#__PURE__*/React.createElement(EmailAndSms, {