@maily-to/core 0.1.3 → 0.2.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.
@@ -1,17 +1,49 @@
1
1
  import * as _tiptap_core from '@tiptap/core';
2
- import { Extension, Editor, Range, Node } from '@tiptap/core';
2
+ import { Editor, Extension, Range, Node } from '@tiptap/core';
3
+ import { ColorOptions } from '@tiptap/extension-color';
4
+ import * as _tiptap_extension_horizontal_rule from '@tiptap/extension-horizontal-rule';
5
+ import { Plugin, PluginKey } from '@tiptap/pm/state';
3
6
  import * as _tiptap_extension_link from '@tiptap/extension-link';
4
7
  import { LinkOptions } from '@tiptap/extension-link';
8
+ import * as _tiptap_extension_placeholder from '@tiptap/extension-placeholder';
5
9
  import { SuggestionOptions } from '@tiptap/suggestion';
6
- import { ColorOptions } from '@tiptap/extension-color';
7
- import * as _tiptap_extension_horizontal_rule from '@tiptap/extension-horizontal-rule';
8
10
  import * as _tiptap_react from '@tiptap/react';
9
11
  import * as _tiptap_extension_image from '@tiptap/extension-image';
10
12
  import { Node as Node$1 } from '@tiptap/pm/model';
11
- import { PluginKey } from '@tiptap/pm/state';
12
13
  import * as react from 'react';
13
- import { ComponentType } from 'react';
14
- import * as _tiptap_extension_placeholder from '@tiptap/extension-placeholder';
14
+
15
+ type ColorStorage = {
16
+ /**
17
+ * Last 5 used colors
18
+ */
19
+ colors: Set<string>;
20
+ };
21
+ declare const Color: _tiptap_core.Extension<ColorOptions, ColorStorage>;
22
+
23
+ declare const HorizontalRule: _tiptap_core.Node<_tiptap_extension_horizontal_rule.HorizontalRuleOptions, any>;
24
+
25
+ type ImageUploadPluginOptions = {
26
+ editor: Editor;
27
+ /**
28
+ * Allows you to define a list of allowed mime types for dropped or pasted images.
29
+ * @default ['image/jpeg', 'image/png', 'image/gif', 'image/webp', 'image/svg+xml']
30
+ */
31
+ allowedMimeTypes?: string[];
32
+ /**
33
+ * The onImageUpload callback that is called when an image is dropped or pasted.
34
+ * @param file the image file
35
+ * @returns Returns the image URL as a string.
36
+ */
37
+ onImageUpload?: (file: Blob) => Promise<string>;
38
+ };
39
+ declare function ImageUploadPlugin(options: ImageUploadPluginOptions): Plugin<any>;
40
+
41
+ type ImageUploadOptions = Omit<ImageUploadPluginOptions, 'editor'> & {};
42
+ type ImageUploadStorage = {
43
+ placeholderImages: Set<string>;
44
+ };
45
+ declare const ImageUploadExtension: Extension<Omit<ImageUploadPluginOptions, "editor">, any>;
46
+ declare function useImageUploadOptions(editor: Editor): ImageUploadOptions;
15
47
 
16
48
  declare module '@tiptap/core' {
17
49
  interface Commands<ReturnType> {
@@ -36,6 +68,8 @@ type MailyKitOptions = {
36
68
  };
37
69
  declare const MailyKit: Extension<MailyKitOptions, any>;
38
70
 
71
+ declare const PlaceholderExtension: _tiptap_core.Extension<_tiptap_extension_placeholder.PlaceholderOptions, any>;
72
+
39
73
  type SlashCommandOptions = {
40
74
  suggestion: Omit<SuggestionOptions, 'editor'>;
41
75
  };
@@ -72,62 +106,74 @@ type BlockGroupItem = {
72
106
 
73
107
  declare function getSlashCommandSuggestions(groups?: BlockGroupItem[]): Omit<SuggestionOptions, 'editor'>;
74
108
 
75
- type ColorStorage = {
76
- /**
77
- * Last 5 used colors
78
- */
79
- colors: Set<string>;
80
- };
81
- declare const Color: _tiptap_core.Extension<ColorOptions, ColorStorage>;
82
-
83
- declare const HorizontalRule: _tiptap_core.Node<_tiptap_extension_horizontal_rule.HorizontalRuleOptions, any>;
84
-
85
- interface FooterOptions {
86
- HTMLAttributes: Record<string, any>;
87
- }
88
- declare module '@tiptap/core' {
89
- interface Commands<ReturnType> {
90
- footer: {
91
- setFooter: () => ReturnType;
92
- };
93
- }
109
+ declare const allowedLogoSize: readonly ["sm", "md", "lg"];
110
+ type AllowedLogoSize = (typeof allowedLogoSize)[number];
111
+ declare const allowedLogoAlignment: readonly ["left", "center", "right"];
112
+ type AllowedLogoAlignment = (typeof allowedLogoAlignment)[number];
113
+ interface LogoOptions {
114
+ src: string;
115
+ alt?: string;
116
+ title?: string;
117
+ size?: AllowedLogoSize;
118
+ alignment?: AllowedLogoAlignment;
94
119
  }
95
- declare const Footer: Node<FooterOptions, any>;
96
-
97
- interface SpacerOptions {
98
- height: number;
120
+ interface LogoAttributes {
121
+ src?: string;
122
+ size?: AllowedLogoSize;
123
+ alignment?: AllowedLogoAlignment;
99
124
  showIfKey: string;
100
- HTMLAttributes: Record<string, any>;
125
+ isSrcVariable?: boolean;
101
126
  }
102
127
  declare module '@tiptap/core' {
103
128
  interface Commands<ReturnType> {
104
- spacer: {
105
- setSpacer: (options: {
106
- height: number;
107
- }) => ReturnType;
108
- setSpacerSize: (height: number) => ReturnType;
109
- setSpacerShowIfKey: (showIfKey: string) => ReturnType;
110
- unsetSpacer: () => ReturnType;
129
+ logo: {
130
+ setLogoImage: (options: LogoOptions) => ReturnType;
131
+ setLogoAttributes: (attributes: Partial<LogoAttributes>) => ReturnType;
111
132
  };
112
133
  }
113
134
  }
114
- declare const DEFAULT_SPACER_HEIGHT = 8;
115
- declare const Spacer: Node<SpacerOptions, any>;
135
+ declare const DEFAULT_LOGO_SIZE: AllowedLogoSize;
136
+ declare const logoSizes: Record<AllowedLogoSize, string>;
137
+ declare const LogoExtension: _tiptap_react.Node<_tiptap_extension_image.ImageOptions, any>;
116
138
 
117
- declare const DEFAULT_COLUMNS_GAP = 8;
118
- interface ColumnsAttributes {
139
+ declare const DEFAULT_BUTTON_ALIGNMENT: AllowedLogoAlignment;
140
+ declare const DEFAULT_BUTTON_VARIANT: AllowedButtonVariant;
141
+ declare const DEFAULT_BUTTON_BORDER_RADIUS: AllowedButtonBorderRadius;
142
+ declare const DEFAULT_BUTTON_BACKGROUND_COLOR = "#000000";
143
+ declare const DEFAULT_BUTTON_TEXT_COLOR = "#ffffff";
144
+ declare const DEFAULT_BUTTON_PADDING_TOP = 10;
145
+ declare const DEFAULT_BUTTON_PADDING_RIGHT = 32;
146
+ declare const DEFAULT_BUTTON_PADDING_BOTTOM = 10;
147
+ declare const DEFAULT_BUTTON_PADDING_LEFT = 32;
148
+ declare const allowedButtonVariant: readonly ["filled", "outline"];
149
+ type AllowedButtonVariant = (typeof allowedButtonVariant)[number];
150
+ declare const allowedButtonBorderRadius: readonly ["sharp", "smooth", "round"];
151
+ type AllowedButtonBorderRadius = (typeof allowedButtonBorderRadius)[number];
152
+ type ButtonAttributes = {
153
+ text: string;
154
+ isTextVariable: boolean;
155
+ url: string;
156
+ isUrlVariable: boolean;
157
+ alignment: AllowedLogoAlignment;
158
+ variant: AllowedButtonVariant;
159
+ borderRadius: AllowedButtonBorderRadius;
160
+ buttonColor: string;
161
+ textColor: string;
119
162
  showIfKey: string;
120
- gap: number;
121
- }
163
+ paddingTop: number;
164
+ paddingRight: number;
165
+ paddingBottom: number;
166
+ paddingLeft: number;
167
+ };
122
168
  declare module '@tiptap/core' {
123
169
  interface Commands<ReturnType> {
124
- columns: {
125
- setColumns: () => ReturnType;
126
- updateColumns: (attrs: Partial<ColumnsAttributes>) => ReturnType;
170
+ button: {
171
+ setButton: () => ReturnType;
172
+ updateButton: (attrs: Partial<ButtonAttributes>) => ReturnType;
127
173
  };
128
174
  }
129
175
  }
130
- declare const ColumnsExtension: Node<any, any>;
176
+ declare const ButtonExtension: Node<any, any>;
131
177
 
132
178
  declare const DEFAULT_COLUMN_WIDTH = "auto";
133
179
  type AllowedColumnVerticalAlign = 'top' | 'middle' | 'bottom';
@@ -154,6 +200,59 @@ declare module '@tiptap/core' {
154
200
  }
155
201
  declare const ColumnExtension: Node<any, any>;
156
202
 
203
+ declare const DEFAULT_COLUMNS_GAP = 8;
204
+ interface ColumnsAttributes {
205
+ showIfKey: string;
206
+ gap: number;
207
+ }
208
+ declare module '@tiptap/core' {
209
+ interface Commands<ReturnType> {
210
+ columns: {
211
+ setColumns: () => ReturnType;
212
+ updateColumns: (attrs: Partial<ColumnsAttributes>) => ReturnType;
213
+ };
214
+ }
215
+ }
216
+ declare const ColumnsExtension: Node<any, any>;
217
+
218
+ interface FooterOptions {
219
+ HTMLAttributes: Record<string, any>;
220
+ }
221
+ declare module '@tiptap/core' {
222
+ interface Commands<ReturnType> {
223
+ footer: {
224
+ setFooter: () => ReturnType;
225
+ };
226
+ }
227
+ }
228
+ declare const Footer: Node<FooterOptions, any>;
229
+
230
+ declare const ImageExtension: _tiptap_react.Node<_tiptap_extension_image.ImageOptions, any>;
231
+
232
+ declare module '@tiptap/core' {
233
+ interface Commands<ReturnType> {
234
+ customLink: {
235
+ setIsUrlVariable: (isUrlVariable: boolean) => ReturnType;
236
+ };
237
+ }
238
+ }
239
+ declare const LinkExtension: _tiptap_core.Mark<_tiptap_extension_link.LinkOptions, any>;
240
+
241
+ type RepeatAttributes = {
242
+ each: string;
243
+ isUpdatingKey: boolean;
244
+ showIfKey: string;
245
+ };
246
+ declare module '@tiptap/core' {
247
+ interface Commands<ReturnType> {
248
+ repeat: {
249
+ setRepeat: () => ReturnType;
250
+ updateRepeat: (attrs: Partial<RepeatAttributes>) => ReturnType;
251
+ };
252
+ }
253
+ }
254
+ declare const RepeatExtension: Node<any, any>;
255
+
157
256
  declare const DEFAULT_SECTION_BACKGROUND_COLOR = "#f7f7f7";
158
257
  declare const DEFAULT_SECTION_ALIGN = "left";
159
258
  declare const DEFAULT_SECTION_BORDER_WIDTH = 2;
@@ -194,100 +293,36 @@ declare module '@tiptap/core' {
194
293
  }
195
294
  declare const SectionExtension: Node<any, any>;
196
295
 
197
- type RepeatAttributes = {
198
- each: string;
199
- isUpdatingKey: boolean;
200
- showIfKey: string;
201
- };
202
- declare module '@tiptap/core' {
203
- interface Commands<ReturnType> {
204
- repeat: {
205
- setRepeat: () => ReturnType;
206
- updateRepeat: (attrs: Partial<RepeatAttributes>) => ReturnType;
207
- };
208
- }
209
- }
210
- declare const RepeatExtension: Node<any, any>;
211
-
212
- declare const allowedLogoSize: readonly ["sm", "md", "lg"];
213
- type AllowedLogoSize = (typeof allowedLogoSize)[number];
214
- declare const allowedLogoAlignment: readonly ["left", "center", "right"];
215
- type AllowedLogoAlignment = (typeof allowedLogoAlignment)[number];
216
- interface LogoOptions {
217
- src: string;
218
- alt?: string;
219
- title?: string;
220
- size?: AllowedLogoSize;
221
- alignment?: AllowedLogoAlignment;
222
- }
223
- interface LogoAttributes {
224
- src?: string;
225
- size?: AllowedLogoSize;
226
- alignment?: AllowedLogoAlignment;
296
+ interface SpacerOptions {
297
+ height: number;
227
298
  showIfKey: string;
228
- isSrcVariable?: boolean;
299
+ HTMLAttributes: Record<string, any>;
229
300
  }
230
301
  declare module '@tiptap/core' {
231
302
  interface Commands<ReturnType> {
232
- logo: {
233
- setLogoImage: (options: LogoOptions) => ReturnType;
234
- setLogoAttributes: (attributes: Partial<LogoAttributes>) => ReturnType;
303
+ spacer: {
304
+ setSpacer: (options: {
305
+ height: number;
306
+ }) => ReturnType;
307
+ setSpacerSize: (height: number) => ReturnType;
308
+ setSpacerShowIfKey: (showIfKey: string) => ReturnType;
309
+ unsetSpacer: () => ReturnType;
235
310
  };
236
311
  }
237
312
  }
238
- declare const DEFAULT_LOGO_SIZE: AllowedLogoSize;
239
- declare const logoSizes: Record<AllowedLogoSize, string>;
240
- declare const LogoExtension: _tiptap_react.Node<_tiptap_extension_image.ImageOptions, any>;
313
+ declare const DEFAULT_SPACER_HEIGHT = 8;
314
+ declare const Spacer: Node<SpacerOptions, any>;
241
315
 
242
- declare const DEFAULT_BUTTON_ALIGNMENT: AllowedLogoAlignment;
243
- declare const DEFAULT_BUTTON_VARIANT: AllowedButtonVariant;
244
- declare const DEFAULT_BUTTON_BORDER_RADIUS: AllowedButtonBorderRadius;
245
- declare const DEFAULT_BUTTON_BACKGROUND_COLOR = "#000000";
246
- declare const DEFAULT_BUTTON_TEXT_COLOR = "#ffffff";
247
- declare const DEFAULT_BUTTON_PADDING_TOP = 10;
248
- declare const DEFAULT_BUTTON_PADDING_RIGHT = 32;
249
- declare const DEFAULT_BUTTON_PADDING_BOTTOM = 10;
250
- declare const DEFAULT_BUTTON_PADDING_LEFT = 32;
251
- declare const allowedButtonVariant: readonly ["filled", "outline"];
252
- type AllowedButtonVariant = (typeof allowedButtonVariant)[number];
253
- declare const allowedButtonBorderRadius: readonly ["sharp", "smooth", "round"];
254
- type AllowedButtonBorderRadius = (typeof allowedButtonBorderRadius)[number];
255
- type ButtonAttributes = {
256
- text: string;
257
- isTextVariable: boolean;
258
- url: string;
259
- isUrlVariable: boolean;
260
- alignment: AllowedLogoAlignment;
261
- variant: AllowedButtonVariant;
262
- borderRadius: AllowedButtonBorderRadius;
263
- buttonColor: string;
264
- textColor: string;
265
- showIfKey: string;
266
- paddingTop: number;
267
- paddingRight: number;
268
- paddingBottom: number;
269
- paddingLeft: number;
316
+ type VariableSuggestionsPopoverProps = {
317
+ items: Variable[];
318
+ onSelectItem: (item: Variable) => void;
270
319
  };
271
- declare module '@tiptap/core' {
272
- interface Commands<ReturnType> {
273
- button: {
274
- setButton: () => ReturnType;
275
- updateButton: (attrs: Partial<ButtonAttributes>) => ReturnType;
276
- };
277
- }
278
- }
279
- declare const ButtonExtension: Node<any, any>;
280
-
281
- declare const ImageExtension: _tiptap_react.Node<_tiptap_extension_image.ImageOptions, any>;
282
-
283
- declare module '@tiptap/core' {
284
- interface Commands<ReturnType> {
285
- customLink: {
286
- setIsUrlVariable: (isUrlVariable: boolean) => ReturnType;
287
- };
288
- }
289
- }
290
- declare const LinkExtension: _tiptap_core.Mark<_tiptap_extension_link.LinkOptions, any>;
320
+ type VariableSuggestionsPopoverRef = {
321
+ moveUp: () => void;
322
+ moveDown: () => void;
323
+ select: () => void;
324
+ };
325
+ type VariableSuggestionsPopoverType = React.ForwardRefExoticComponent<VariableSuggestionsPopoverProps & React.RefAttributes<VariableSuggestionsPopoverRef>>;
291
326
 
292
327
  type Variable = {
293
328
  name: string;
@@ -301,15 +336,38 @@ type VariableFunctionOptions = {
301
336
  };
302
337
  type VariablesFunction = (opts: VariableFunctionOptions) => Array<Variable>;
303
338
  type Variables = Array<Variable> | VariablesFunction;
304
-
339
+ declare const DEFAULT_VARIABLE_TRIGGER_CHAR = "@";
340
+ declare const DEFAULT_VARIABLES: Variables;
341
+ declare const DEFAULT_RENDER_VARIABLE_FUNCTION: RenderVariableFunction;
342
+ declare const DEFAULT_VARIABLE_SUGGESTION_POPOVER: VariableSuggestionsPopoverType;
343
+ type RenderVariableOptions = {
344
+ variable: Variable;
345
+ fallback?: string;
346
+ editor: Editor;
347
+ from: 'content-variable' | 'bubble-variable' | 'button-variable';
348
+ };
349
+ type RenderVariableFunction = (opts: RenderVariableOptions) => JSX.Element | null;
305
350
  type VariableOptions = {
306
351
  renderLabel: (props: {
307
352
  options: VariableOptions;
308
353
  node: Node$1;
309
354
  }) => string;
310
355
  suggestion: Omit<SuggestionOptions, 'editor'>;
311
- variables?: Variables;
312
- triggerChar?: string;
356
+ /**
357
+ * Variables is the array of variables that will be used to render the variable pill.
358
+ */
359
+ variables: Variables;
360
+ /**
361
+ * Render variable is the function that will be used to render the variable pill.
362
+ * @default DefaultRenderVariable
363
+ */
364
+ renderVariable: RenderVariableFunction;
365
+ /**
366
+ * Variable suggestion popover is the component that will be used to render
367
+ * the variable suggestions for the content, bubble menu variables
368
+ * @default VariableSuggestionPopover
369
+ */
370
+ variableSuggestionsPopover: VariableSuggestionsPopoverType;
313
371
  };
314
372
  type VariableStorage = {
315
373
  popover: boolean;
@@ -323,10 +381,14 @@ type VariableListProps = {
323
381
  required: boolean;
324
382
  }) => void;
325
383
  items: Variable[];
326
- };
327
- declare const VariableList: react.ForwardRefExoticComponent<VariableListProps & react.RefAttributes<unknown>>;
328
- declare function getVariableSuggestions(variables?: Variables, char?: string, variableListComponent?: ComponentType<VariableListProps>): Omit<SuggestionOptions, 'editor'>;
329
-
330
- declare const PlaceholderExtension: _tiptap_core.Extension<_tiptap_extension_placeholder.PlaceholderOptions, any>;
384
+ } & SuggestionOptions;
385
+ declare const VariableList: react.ForwardRefExoticComponent<{
386
+ command: (params: {
387
+ id: string;
388
+ required: boolean;
389
+ }) => void;
390
+ items: Variable[];
391
+ } & SuggestionOptions<any, any> & react.RefAttributes<unknown>>;
392
+ declare function getVariableSuggestions(char?: string): Omit<SuggestionOptions, 'editor'>;
331
393
 
332
- export { type AllowedButtonBorderRadius, type AllowedButtonVariant, type AllowedColumnVerticalAlign, type AllowedLogoAlignment, type AllowedLogoSize, type ButtonAttributes, ButtonExtension, Color, ColumnExtension, ColumnsExtension, DEFAULT_BUTTON_ALIGNMENT, DEFAULT_BUTTON_BACKGROUND_COLOR, DEFAULT_BUTTON_BORDER_RADIUS, DEFAULT_BUTTON_PADDING_BOTTOM, DEFAULT_BUTTON_PADDING_LEFT, DEFAULT_BUTTON_PADDING_RIGHT, DEFAULT_BUTTON_PADDING_TOP, DEFAULT_BUTTON_TEXT_COLOR, DEFAULT_BUTTON_VARIANT, DEFAULT_COLUMNS_GAP, DEFAULT_COLUMN_VERTICAL_ALIGN, DEFAULT_COLUMN_WIDTH, DEFAULT_LOGO_SIZE, DEFAULT_SECTION_ALIGN, DEFAULT_SECTION_BACKGROUND_COLOR, DEFAULT_SECTION_BORDER_COLOR, DEFAULT_SECTION_BORDER_RADIUS, DEFAULT_SECTION_BORDER_WIDTH, DEFAULT_SECTION_MARGIN_BOTTOM, DEFAULT_SECTION_MARGIN_LEFT, DEFAULT_SECTION_MARGIN_RIGHT, DEFAULT_SECTION_MARGIN_TOP, DEFAULT_SECTION_PADDING_BOTTOM, DEFAULT_SECTION_PADDING_LEFT, DEFAULT_SECTION_PADDING_RIGHT, DEFAULT_SECTION_PADDING_TOP, DEFAULT_SECTION_SHOW_IF_KEY, DEFAULT_SPACER_HEIGHT, Footer, type FooterOptions, HorizontalRule, ImageExtension, LinkExtension, type LogoAttributes, LogoExtension, MailyKit, type MailyKitOptions, PlaceholderExtension, RepeatExtension, SectionExtension, SlashCommandExtension, type SlashCommandOptions, Spacer, type SpacerOptions, VariableExtension, VariableList, type VariableListProps, type VariableOptions, VariablePluginKey, type VariableStorage, allowedButtonBorderRadius, allowedButtonVariant, allowedLogoAlignment, allowedLogoSize, getSlashCommandSuggestions, getVariableSuggestions, logoSizes };
394
+ export { type AllowedButtonBorderRadius, type AllowedButtonVariant, type AllowedColumnVerticalAlign, type AllowedLogoAlignment, type AllowedLogoSize, type ButtonAttributes, ButtonExtension, Color, ColumnExtension, ColumnsExtension, DEFAULT_BUTTON_ALIGNMENT, DEFAULT_BUTTON_BACKGROUND_COLOR, DEFAULT_BUTTON_BORDER_RADIUS, DEFAULT_BUTTON_PADDING_BOTTOM, DEFAULT_BUTTON_PADDING_LEFT, DEFAULT_BUTTON_PADDING_RIGHT, DEFAULT_BUTTON_PADDING_TOP, DEFAULT_BUTTON_TEXT_COLOR, DEFAULT_BUTTON_VARIANT, DEFAULT_COLUMNS_GAP, DEFAULT_COLUMN_VERTICAL_ALIGN, DEFAULT_COLUMN_WIDTH, DEFAULT_LOGO_SIZE, DEFAULT_RENDER_VARIABLE_FUNCTION, DEFAULT_SECTION_ALIGN, DEFAULT_SECTION_BACKGROUND_COLOR, DEFAULT_SECTION_BORDER_COLOR, DEFAULT_SECTION_BORDER_RADIUS, DEFAULT_SECTION_BORDER_WIDTH, DEFAULT_SECTION_MARGIN_BOTTOM, DEFAULT_SECTION_MARGIN_LEFT, DEFAULT_SECTION_MARGIN_RIGHT, DEFAULT_SECTION_MARGIN_TOP, DEFAULT_SECTION_PADDING_BOTTOM, DEFAULT_SECTION_PADDING_LEFT, DEFAULT_SECTION_PADDING_RIGHT, DEFAULT_SECTION_PADDING_TOP, DEFAULT_SECTION_SHOW_IF_KEY, DEFAULT_SPACER_HEIGHT, DEFAULT_VARIABLES, DEFAULT_VARIABLE_SUGGESTION_POPOVER, DEFAULT_VARIABLE_TRIGGER_CHAR, Footer, type FooterOptions, HorizontalRule, ImageExtension, ImageUploadExtension, type ImageUploadOptions, ImageUploadPlugin, type ImageUploadPluginOptions, type ImageUploadStorage, LinkExtension, type LogoAttributes, LogoExtension, MailyKit, type MailyKitOptions, PlaceholderExtension, type RenderVariableFunction, type RenderVariableOptions, RepeatExtension, SectionExtension, SlashCommandExtension, type SlashCommandOptions, Spacer, type SpacerOptions, type Variable, VariableExtension, type VariableFunctionOptions, VariableList, type VariableListProps, type VariableOptions, VariablePluginKey, type VariableStorage, type Variables, type VariablesFunction, allowedButtonBorderRadius, allowedButtonVariant, allowedLogoAlignment, allowedLogoSize, getSlashCommandSuggestions, getVariableSuggestions, logoSizes, useImageUploadOptions };