hazo_ui 2.2.3 → 2.3.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.d.cts CHANGED
@@ -1,16 +1,5 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
3
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
-
5
- /**
6
- * Example component demonstrating the structure for hazo_ui components
7
- * @param props - Component props
8
- * @returns React component
9
- */
10
- declare const ExampleComponent: React__default.FC<{
11
- children?: React__default.ReactNode;
12
- className?: string;
13
- }>;
2
+ import * as React from 'react';
14
3
 
15
4
  interface FilterField {
16
5
  value: string;
@@ -115,4 +104,62 @@ interface HazoUiFlexInputProps extends Omit<InputProps, "type"> {
115
104
  }
116
105
  declare const HazoUiFlexInput: React.ForwardRefExoticComponent<HazoUiFlexInputProps & React.RefAttributes<HTMLInputElement>>;
117
106
 
118
- export { ExampleComponent, type FilterConfig, type FilterField, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, type SortConfig, type SortField };
107
+ /**
108
+ * Hazo UI Rich Text Editor - Type Definitions
109
+ *
110
+ * Type definitions for the rich text editor component including
111
+ * attachments, variables, and editor output interfaces.
112
+ */
113
+ /**
114
+ * Represents a file attachment stored as base64
115
+ */
116
+ interface RteAttachment {
117
+ filename: string;
118
+ mime_type: string;
119
+ data: string;
120
+ }
121
+ /**
122
+ * Represents a template variable that can be inserted into the editor
123
+ */
124
+ interface RteVariable {
125
+ name: string;
126
+ description: string;
127
+ }
128
+ /**
129
+ * Output structure returned by the editor on change
130
+ */
131
+ interface RteOutput {
132
+ html: string;
133
+ plain_text: string;
134
+ attachments: RteAttachment[];
135
+ }
136
+ /**
137
+ * Props for the HazoUiRte component
138
+ */
139
+ interface HazoUiRteProps {
140
+ html?: string;
141
+ plain_text?: string;
142
+ attachments?: RteAttachment[];
143
+ variables?: RteVariable[];
144
+ on_change?: (output: RteOutput) => void;
145
+ placeholder?: string;
146
+ min_height?: string;
147
+ max_height?: string;
148
+ disabled?: boolean;
149
+ className?: string;
150
+ show_output_viewer?: boolean;
151
+ }
152
+
153
+ /**
154
+ * Hazo UI Rich Text Editor Component
155
+ *
156
+ * A comprehensive rich text editor for email template generation with
157
+ * variable insertion support, file attachments, and full formatting controls.
158
+ */
159
+
160
+ /**
161
+ * HazoUiRte - Rich Text Editor Component
162
+ */
163
+ declare const HazoUiRte: React.FC<HazoUiRteProps>;
164
+
165
+ export { type FilterConfig, type FilterField, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiRte, type HazoUiRteProps, type RteAttachment, type RteOutput, type RteVariable, type SortConfig, type SortField };
package/dist/index.d.ts CHANGED
@@ -1,16 +1,5 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
3
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
-
5
- /**
6
- * Example component demonstrating the structure for hazo_ui components
7
- * @param props - Component props
8
- * @returns React component
9
- */
10
- declare const ExampleComponent: React__default.FC<{
11
- children?: React__default.ReactNode;
12
- className?: string;
13
- }>;
2
+ import * as React from 'react';
14
3
 
15
4
  interface FilterField {
16
5
  value: string;
@@ -115,4 +104,62 @@ interface HazoUiFlexInputProps extends Omit<InputProps, "type"> {
115
104
  }
116
105
  declare const HazoUiFlexInput: React.ForwardRefExoticComponent<HazoUiFlexInputProps & React.RefAttributes<HTMLInputElement>>;
117
106
 
118
- export { ExampleComponent, type FilterConfig, type FilterField, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, type SortConfig, type SortField };
107
+ /**
108
+ * Hazo UI Rich Text Editor - Type Definitions
109
+ *
110
+ * Type definitions for the rich text editor component including
111
+ * attachments, variables, and editor output interfaces.
112
+ */
113
+ /**
114
+ * Represents a file attachment stored as base64
115
+ */
116
+ interface RteAttachment {
117
+ filename: string;
118
+ mime_type: string;
119
+ data: string;
120
+ }
121
+ /**
122
+ * Represents a template variable that can be inserted into the editor
123
+ */
124
+ interface RteVariable {
125
+ name: string;
126
+ description: string;
127
+ }
128
+ /**
129
+ * Output structure returned by the editor on change
130
+ */
131
+ interface RteOutput {
132
+ html: string;
133
+ plain_text: string;
134
+ attachments: RteAttachment[];
135
+ }
136
+ /**
137
+ * Props for the HazoUiRte component
138
+ */
139
+ interface HazoUiRteProps {
140
+ html?: string;
141
+ plain_text?: string;
142
+ attachments?: RteAttachment[];
143
+ variables?: RteVariable[];
144
+ on_change?: (output: RteOutput) => void;
145
+ placeholder?: string;
146
+ min_height?: string;
147
+ max_height?: string;
148
+ disabled?: boolean;
149
+ className?: string;
150
+ show_output_viewer?: boolean;
151
+ }
152
+
153
+ /**
154
+ * Hazo UI Rich Text Editor Component
155
+ *
156
+ * A comprehensive rich text editor for email template generation with
157
+ * variable insertion support, file attachments, and full formatting controls.
158
+ */
159
+
160
+ /**
161
+ * HazoUiRte - Rich Text Editor Component
162
+ */
163
+ declare const HazoUiRte: React.FC<HazoUiRteProps>;
164
+
165
+ export { type FilterConfig, type FilterField, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiRte, type HazoUiRteProps, type RteAttachment, type RteOutput, type RteVariable, type SortConfig, type SortField };