@unlayer/types 1.495.0 → 1.497.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/containers/body.d.ts +3 -0
- package/dist/editor/export.d.ts +19 -0
- package/dist/editor/features.d.ts +1 -0
- package/dist/editor/intl.d.ts +39 -0
- package/dist/tools/table.d.ts +27 -3
- package/package.json +1 -1
|
@@ -118,6 +118,9 @@ type BodyValuesForPopup = BodyValuesBase & {
|
|
|
118
118
|
type BodyValuesForDocument = BodyValuesBase & {
|
|
119
119
|
backgroundColor: string;
|
|
120
120
|
contentAlign: "left" | "center" | "right" | "justify";
|
|
121
|
+
documentSize: string;
|
|
122
|
+
documentOrientation: string;
|
|
123
|
+
documentMargin: number | `${number}px` | `${number}%` | "auto";
|
|
121
124
|
backgroundImage: {
|
|
122
125
|
[x: string]: unknown;
|
|
123
126
|
url: string;
|
package/dist/editor/export.d.ts
CHANGED
|
@@ -93,7 +93,26 @@ export interface ExportImageFromApiOptions extends BaseExportFromApiOptions {
|
|
|
93
93
|
deviceScaleFactor?: number;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
export type DocumentOrientation =
|
|
97
|
+
| 'portrait'
|
|
98
|
+
| 'landscape';
|
|
99
|
+
|
|
100
|
+
export type PdfPageSize =
|
|
101
|
+
| 'Letter'
|
|
102
|
+
| 'Legal'
|
|
103
|
+
| 'Tabloid'
|
|
104
|
+
| 'Ledger'
|
|
105
|
+
| 'A0'
|
|
106
|
+
| 'A1'
|
|
107
|
+
| 'A2'
|
|
108
|
+
| 'A3'
|
|
109
|
+
| 'A4'
|
|
110
|
+
| 'A5'
|
|
111
|
+
| 'A6';
|
|
112
|
+
|
|
96
113
|
export interface ExportPdfFromApiOptions extends BaseExportFromApiOptions {
|
|
114
|
+
documentOrientation?: DocumentOrientation;
|
|
115
|
+
pageSize?: PdfPageSize;
|
|
97
116
|
}
|
|
98
117
|
|
|
99
118
|
export interface ExportZipFromApiOptions extends BaseExportFromApiOptions {
|
package/dist/editor/intl.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export type EditorTranslationKey =
|
|
|
85
85
|
| 'buttons.desktop'
|
|
86
86
|
| 'buttons.disable_amp'
|
|
87
87
|
| 'buttons.done'
|
|
88
|
+
| 'buttons.download_pdf'
|
|
88
89
|
| 'buttons.draw'
|
|
89
90
|
| 'buttons.drawing'
|
|
90
91
|
| 'buttons.duplicate'
|
|
@@ -174,6 +175,8 @@ export type EditorTranslationKey =
|
|
|
174
175
|
| 'content_tools.image'
|
|
175
176
|
| 'content_tools.menu'
|
|
176
177
|
| 'content_tools.page_break'
|
|
178
|
+
| 'content_tools.page_break.canvas_only_suffix'
|
|
179
|
+
| 'content_tools.page_break.canvas_only_tooltip'
|
|
177
180
|
| 'content_tools.paragraph'
|
|
178
181
|
| 'content_tools.social'
|
|
179
182
|
| 'content_tools.table'
|
|
@@ -225,6 +228,9 @@ export type EditorTranslationKey =
|
|
|
225
228
|
| 'editor.digits_font_size.label'
|
|
226
229
|
| 'editor.display_delay.label'
|
|
227
230
|
| 'editor.do_not_stack_on_mobile.label'
|
|
231
|
+
| 'editor.document.mirror.footer_tooltip'
|
|
232
|
+
| 'editor.document.mirror.header_tooltip'
|
|
233
|
+
| 'editor.document.mirror.suffix'
|
|
228
234
|
| 'editor.draggable.label'
|
|
229
235
|
| 'editor.duplicable.label'
|
|
230
236
|
| 'editor.end_time.label'
|
|
@@ -397,6 +403,7 @@ export type EditorTranslationKey =
|
|
|
397
403
|
| 'editor.margin.label'
|
|
398
404
|
| 'editor.mobile.description'
|
|
399
405
|
| 'editor.offline_mode_is_enabled'
|
|
406
|
+
| 'editor.orientation.label'
|
|
400
407
|
| 'editor.padding.label'
|
|
401
408
|
| 'editor.placeholder.drop_it_here'
|
|
402
409
|
| 'editor.placeholder.text'
|
|
@@ -413,6 +420,8 @@ export type EditorTranslationKey =
|
|
|
413
420
|
| 'editor.predefined_style.label'
|
|
414
421
|
| 'editor.preheader_text.description'
|
|
415
422
|
| 'editor.preheader_text.label'
|
|
423
|
+
| 'editor.repeat_footer_on_each_page.label'
|
|
424
|
+
| 'editor.repeat_header_on_each_page.label'
|
|
416
425
|
| 'editor.right.label'
|
|
417
426
|
| 'editor.rounded_border.label'
|
|
418
427
|
| 'editor.rows.label'
|
|
@@ -422,6 +431,7 @@ export type EditorTranslationKey =
|
|
|
422
431
|
| 'editor.select_image.label'
|
|
423
432
|
| 'editor.selectable.label'
|
|
424
433
|
| 'editor.separator.label'
|
|
434
|
+
| 'editor.size.label'
|
|
425
435
|
| 'editor.smart_buttons.enable_ai.heading'
|
|
426
436
|
| 'editor.smart_buttons.enable_ai.text'
|
|
427
437
|
| 'editor.smart_buttons.error.text'
|
|
@@ -467,6 +477,7 @@ export type EditorTranslationKey =
|
|
|
467
477
|
| 'editor.top_left.label'
|
|
468
478
|
| 'editor.top_right.label'
|
|
469
479
|
| 'editor.underline.label'
|
|
480
|
+
| 'editor.vertical_align.label'
|
|
470
481
|
| 'editor.vertical_alignment.label'
|
|
471
482
|
| 'editor.video.arrow_only'
|
|
472
483
|
| 'editor.video.video_camera'
|
|
@@ -653,13 +664,17 @@ export type EditorTranslationKey =
|
|
|
653
664
|
| 'labels.generate_ai'
|
|
654
665
|
| 'labels.generated_images'
|
|
655
666
|
| 'labels.generating'
|
|
667
|
+
| 'labels.generating_your_document'
|
|
656
668
|
| 'labels.google_fonts'
|
|
657
669
|
| 'labels.gradient'
|
|
658
670
|
| 'labels.header'
|
|
659
671
|
| 'labels.hide'
|
|
660
672
|
| 'labels.horizontal'
|
|
673
|
+
| 'labels.landscape'
|
|
661
674
|
| 'labels.language'
|
|
662
675
|
| 'labels.learn_more'
|
|
676
|
+
| 'labels.legal'
|
|
677
|
+
| 'labels.letter'
|
|
663
678
|
| 'labels.light_mode'
|
|
664
679
|
| 'labels.load_more'
|
|
665
680
|
| 'labels.loading'
|
|
@@ -671,15 +686,19 @@ export type EditorTranslationKey =
|
|
|
671
686
|
| 'labels.merge_tags'
|
|
672
687
|
| 'labels.mobile_preview'
|
|
673
688
|
| 'labels.more_images'
|
|
689
|
+
| 'labels.multi_language.plan_limit.tooltip'
|
|
674
690
|
| 'labels.new'
|
|
675
691
|
| 'labels.no_images'
|
|
676
692
|
| 'labels.no_results'
|
|
677
693
|
| 'labels.none'
|
|
678
694
|
| 'labels.not_supported'
|
|
679
695
|
| 'labels.objects'
|
|
696
|
+
| 'labels.orientation'
|
|
680
697
|
| 'labels.outline'
|
|
681
698
|
| 'labels.page'
|
|
699
|
+
| 'labels.page_size'
|
|
682
700
|
| 'labels.paste'
|
|
701
|
+
| 'labels.portrait'
|
|
683
702
|
| 'labels.position'
|
|
684
703
|
| 'labels.prompt'
|
|
685
704
|
| 'labels.radius'
|
|
@@ -705,6 +724,7 @@ export type EditorTranslationKey =
|
|
|
705
724
|
| 'labels.stock_photos_by'
|
|
706
725
|
| 'labels.stock_photos_license'
|
|
707
726
|
| 'labels.stop'
|
|
727
|
+
| 'labels.tabloid'
|
|
708
728
|
| 'labels.tags'
|
|
709
729
|
| 'labels.text_prompt'
|
|
710
730
|
| 'labels.text_style'
|
|
@@ -731,6 +751,10 @@ export type EditorTranslationKey =
|
|
|
731
751
|
| 'labels.usage_limit.features.inbox_preview'
|
|
732
752
|
| 'labels.vertical'
|
|
733
753
|
| 'labels.words'
|
|
754
|
+
| 'minimap.hide'
|
|
755
|
+
| 'minimap.label'
|
|
756
|
+
| 'minimap.page_aria'
|
|
757
|
+
| 'minimap.show'
|
|
734
758
|
| 'modals.category.invalid'
|
|
735
759
|
| 'modals.category.placeholder'
|
|
736
760
|
| 'modals.clipboard_warning.message'
|
|
@@ -740,6 +764,11 @@ export type EditorTranslationKey =
|
|
|
740
764
|
| 'modals.delete.title'
|
|
741
765
|
| 'modals.display_conditions.title'
|
|
742
766
|
| 'modals.preview.browser_preview.label'
|
|
767
|
+
| 'modals.preview.content_overflow_warning'
|
|
768
|
+
| 'modals.preview.download_pdf.downloaded'
|
|
769
|
+
| 'modals.preview.download_pdf.downloading'
|
|
770
|
+
| 'modals.preview.download_pdf.not_downloaded'
|
|
771
|
+
| 'modals.preview.download_pdf.subscription_expired'
|
|
743
772
|
| 'modals.preview.exit_preview'
|
|
744
773
|
| 'modals.preview.inbox_preview.button.check_status'
|
|
745
774
|
| 'modals.preview.inbox_preview.button.generate_again'
|
|
@@ -856,6 +885,7 @@ export type EditorTranslationKey =
|
|
|
856
885
|
| 'option_groups.countdown.title'
|
|
857
886
|
| 'option_groups.default.title'
|
|
858
887
|
| 'option_groups.display_condition.title'
|
|
888
|
+
| 'option_groups.document.title'
|
|
859
889
|
| 'option_groups.email_settings.title'
|
|
860
890
|
| 'option_groups.fields.title'
|
|
861
891
|
| 'option_groups.form.title'
|
|
@@ -924,12 +954,21 @@ export type EditorTranslationKey =
|
|
|
924
954
|
| 'tabs.audit.missing_tool_name'
|
|
925
955
|
| 'tabs.audit.rules.button.empty_links.description'
|
|
926
956
|
| 'tabs.audit.rules.button.empty_links.title'
|
|
957
|
+
| 'tabs.audit.rules.content.splits_pages.description'
|
|
958
|
+
| 'tabs.audit.rules.content.splits_pages.title'
|
|
959
|
+
| 'tabs.audit.rules.content.splits_pages.tooltip'
|
|
960
|
+
| 'tabs.audit.rules.header_footer.too_tall.description'
|
|
961
|
+
| 'tabs.audit.rules.header_footer.too_tall.title'
|
|
962
|
+
| 'tabs.audit.rules.header_footer.too_tall.tooltip'
|
|
927
963
|
| 'tabs.audit.rules.image.alt_text.description'
|
|
928
964
|
| 'tabs.audit.rules.image.alt_text.title'
|
|
929
965
|
| 'tabs.audit.rules.image.url.description'
|
|
930
966
|
| 'tabs.audit.rules.image.url.title'
|
|
931
967
|
| 'tabs.audit.rules.menu.empty_links.description'
|
|
932
968
|
| 'tabs.audit.rules.menu.empty_links.title'
|
|
969
|
+
| 'tabs.audit.rules.page_break.consecutive.description'
|
|
970
|
+
| 'tabs.audit.rules.page_break.consecutive.title'
|
|
971
|
+
| 'tabs.audit.rules.page_break.consecutive.tooltip'
|
|
933
972
|
| 'tabs.audit.take_me_to_fix'
|
|
934
973
|
| 'tones.bold'
|
|
935
974
|
| 'tones.friendly'
|
package/dist/tools/table.d.ts
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import type { DisplayMode, ExporterConfig, ExporterName } from '../editor/types';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
TDisplayMode extends DisplayMode | undefined = undefined,
|
|
7
|
-
> = {
|
|
5
|
+
type TableValuesBase = {
|
|
8
6
|
table: {
|
|
9
7
|
headers: {
|
|
10
8
|
cells: {
|
|
@@ -161,6 +159,32 @@ export type TableValues<
|
|
|
161
159
|
};
|
|
162
160
|
};
|
|
163
161
|
|
|
162
|
+
type TableValuesForEmail = TableValuesBase;
|
|
163
|
+
|
|
164
|
+
type TableValuesForWeb = TableValuesBase;
|
|
165
|
+
|
|
166
|
+
type TableValuesForPopup = TableValuesBase;
|
|
167
|
+
|
|
168
|
+
type TableValuesForDocument = TableValuesBase & {
|
|
169
|
+
repeatHeaderOnEachPage: boolean;
|
|
170
|
+
repeatFooterOnEachPage: boolean;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export type TableValues<
|
|
174
|
+
TDisplayMode extends DisplayMode | undefined = undefined,
|
|
175
|
+
> =
|
|
176
|
+
TDisplayMode extends undefined
|
|
177
|
+
? TableValuesForEmail & TableValuesForWeb & TableValuesForPopup & TableValuesForDocument
|
|
178
|
+
: TDisplayMode extends 'email'
|
|
179
|
+
? TableValuesForEmail
|
|
180
|
+
: TDisplayMode extends 'web'
|
|
181
|
+
? TableValuesForWeb
|
|
182
|
+
: TDisplayMode extends 'popup'
|
|
183
|
+
? TableValuesForPopup
|
|
184
|
+
: TDisplayMode extends 'document'
|
|
185
|
+
? TableValuesForDocument
|
|
186
|
+
: never;
|
|
187
|
+
|
|
164
188
|
import type { BodyValues } from '../containers/body';
|
|
165
189
|
import type { ColumnValues } from '../containers/column';
|
|
166
190
|
import type { ContentValues } from '../containers/content';
|