@bigbinary/neeto-email-notifications-frontend 2.2.13 → 2.2.15

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/types.d.ts CHANGED
@@ -20,7 +20,7 @@ type ValidationMap = {
20
20
 
21
21
  type SendToFieldPropsType = {
22
22
  options?: FieldOptions[];
23
- }
23
+ };
24
24
 
25
25
  type ReplyToFieldPropsType = {
26
26
  options?: FieldOptions[];
@@ -30,42 +30,56 @@ type ReplyToFieldPropsType = {
30
30
  type EmailFormProps = {
31
31
  messageVariables?: ContentVariables[];
32
32
  subjectVariables?: ContentVariables[];
33
- handleCancel: () => void;
33
+ handleCancel?: () => void;
34
+ handleResetToDefault?: () => void;
34
35
  isLoading?: boolean;
35
36
  isUpdating?: boolean;
36
37
  showFields?: boolean;
37
38
  className?: string;
38
- sendToFieldProps: SendToFieldPropsType;
39
- replyToFieldProps: ReplyToFieldPropsType;
39
+ sendToFieldProps?: SendToFieldPropsType;
40
+ replyToFieldProps?: ReplyToFieldPropsType;
41
+ showResetToDefaultButton?: boolean;
42
+ editorRef?: any;
43
+ editorAddons?: any[];
40
44
  };
41
45
 
42
46
  type EmailFormikProps = {
43
- showSendToField?: boolean;
44
- showReplyToField?: boolean;
45
- onSubmit: FormikConfig<T>["onSubmit"];
46
- initialValues: T;
47
- children: ReactNode;
48
- formikProps: { [key: string]: any };
49
- validationSchema?: ValidationMap;
47
+ onSubmit?: (values: any) => void;
48
+ initialValues?: any;
49
+ children?: React.ReactNode;
50
+ formikProps?: { [key: string]: any };
51
+ validationSchema?: AnySchema | ValidationMap;
50
52
  };
51
53
 
52
54
  type EmailPreviewProps = {
53
55
  to?: string[];
56
+ from?: string;
54
57
  subject?: string;
55
58
  body?: string;
56
- from?: string;
57
59
  logo?: string;
58
- productName?: string;
59
60
  actionButtonText?: string;
60
61
  className?: string;
62
+ customContent?: string;
63
+ formatBody?: (content: string, variables?: any) => string;
64
+ formatSubject?: (content: string, variables?: any) => string;
65
+ bodyVariables?: ContentVariables[];
66
+ subjectVariables?: ContentVariables[];
61
67
  };
62
68
 
63
69
  type EmailNotificationParams = {
64
- notificationHoldableId: string;
65
- notificationHoldableType: string;
70
+ notificationHolderType: string;
71
+ notificationHolderId: string;
66
72
  customFields?: { [key: string]: any };
67
73
  };
68
74
 
75
+ type FieldsVisibility = {
76
+ showBccField?: boolean;
77
+ showCcField?: boolean;
78
+ showReplyToField?: boolean;
79
+ showSendToAsRadio?: boolean;
80
+ showSendToField?: boolean;
81
+ };
82
+
69
83
  interface EmailNotificationProps {
70
84
  emailNotificationParams: EmailNotificationParams;
71
85
  emailFormProps?: EmailFormProps;
@@ -73,11 +87,14 @@ interface EmailNotificationProps {
73
87
  emailPreviewProps?: EmailPreviewProps;
74
88
  tooltipProps?: TooltipProps;
75
89
  title?: string;
76
- subTitle?: string;
90
+ notificationToggleLabel?: string;
77
91
  disabled?: boolean;
78
92
  blockNavigation?: boolean;
79
93
  children?: React.ReactNode;
80
94
  onSuccess?: Fn;
95
+ breadcrumbs?: Array<{ text: string; link?: string }>;
96
+ helpPopoverProps?: HelpPopoverProps;
97
+ fieldsVisibility?: FieldsVisibility;
81
98
  }
82
99
 
83
100
  export const NeetoEmailNotificationForm: React.FC<EmailNotificationProps>;