@unlayer/types 1.535.0 → 1.537.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/editor/editor.d.ts +8 -1
- package/dist/editor/intl.d.ts +154 -0
- package/dist/editor/utils.d.ts +6 -0
- package/package.json +1 -1
package/dist/editor/editor.d.ts
CHANGED
|
@@ -457,6 +457,13 @@ interface MessageData {
|
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
export interface FrameOptions {
|
|
460
|
+
/**
|
|
461
|
+
* Accessible name of the iframe (WCAG 4.1.2), set as its `aria-label`:
|
|
462
|
+
* screen reader users hear it when they reach the editor in the host page.
|
|
463
|
+
* Named after the `editor.title` option it usually comes from; it is never
|
|
464
|
+
* the iframe's `title`, which browsers show as a hover tooltip.
|
|
465
|
+
*/
|
|
466
|
+
iframeTitle?: string;
|
|
460
467
|
/**
|
|
461
468
|
* Background color painted on the iframe element + injected into the
|
|
462
469
|
* iframe document's `<html>` / `<body>` / `#editor` via an inline
|
|
@@ -495,7 +502,7 @@ declare class Frame {
|
|
|
495
502
|
capabilities: FrameCapabilities | null;
|
|
496
503
|
private capabilityListeners;
|
|
497
504
|
constructor(src: string, options?: FrameOptions);
|
|
498
|
-
createIframe(src: string, { iframeBackgroundColor, iframeTextColor }?: FrameOptions): HTMLIFrameElement;
|
|
505
|
+
createIframe(src: string, { iframeBackgroundColor, iframeTextColor, iframeTitle }?: FrameOptions): HTMLIFrameElement;
|
|
499
506
|
destroy: () => void;
|
|
500
507
|
/**
|
|
501
508
|
* Calls `listener` with the editor's capabilities once they are known, and
|
package/dist/editor/intl.d.ts
CHANGED
|
@@ -93,9 +93,11 @@ export type EditorTranslationKey =
|
|
|
93
93
|
| 'buttons.corners'
|
|
94
94
|
| 'buttons.crop'
|
|
95
95
|
| 'buttons.delete'
|
|
96
|
+
| 'buttons.delete_image_number'
|
|
96
97
|
| 'buttons.deselect'
|
|
97
98
|
| 'buttons.desktop'
|
|
98
99
|
| 'buttons.disable_amp'
|
|
100
|
+
| 'buttons.dismiss'
|
|
99
101
|
| 'buttons.done'
|
|
100
102
|
| 'buttons.download_pdf'
|
|
101
103
|
| 'buttons.draw'
|
|
@@ -150,8 +152,20 @@ export type EditorTranslationKey =
|
|
|
150
152
|
| 'buttons.use_prompt'
|
|
151
153
|
| 'buttons.use_this'
|
|
152
154
|
| 'buttons.zoom'
|
|
155
|
+
| 'canvas.design_label'
|
|
156
|
+
| 'canvas.editing_instructions_line'
|
|
157
|
+
| 'canvas.editing_instructions_table'
|
|
158
|
+
| 'canvas.editing_instructions_text'
|
|
159
|
+
| 'canvas.layer_with_columns'
|
|
160
|
+
| 'canvas.layer_with_states'
|
|
161
|
+
| 'canvas.layer_with_text'
|
|
162
|
+
| 'canvas.state_locked'
|
|
163
|
+
| 'canvas.state_page_warning'
|
|
164
|
+
| 'canvas.table_cell_label'
|
|
153
165
|
| 'collaboration.add_comment'
|
|
154
166
|
| 'collaboration.collaboration_mode'
|
|
167
|
+
| 'collaboration.comment_options'
|
|
168
|
+
| 'collaboration.edit_comment'
|
|
155
169
|
| 'collaboration.empty.subtitle'
|
|
156
170
|
| 'collaboration.empty.title'
|
|
157
171
|
| 'collaboration.empty_filtered.subtitle'
|
|
@@ -170,6 +184,8 @@ export type EditorTranslationKey =
|
|
|
170
184
|
| 'collaboration.replies.one'
|
|
171
185
|
| 'collaboration.resolve'
|
|
172
186
|
| 'collaboration.resolved'
|
|
187
|
+
| 'collaboration.send_comment'
|
|
188
|
+
| 'collaboration.send_reply'
|
|
173
189
|
| 'collaboration.types.feedback'
|
|
174
190
|
| 'collaboration.types.idea'
|
|
175
191
|
| 'collaboration.types.question'
|
|
@@ -198,12 +214,25 @@ export type EditorTranslationKey =
|
|
|
198
214
|
| 'dev_tab.info'
|
|
199
215
|
| 'dev_tab.loading_project'
|
|
200
216
|
| 'dev_tab.loading_project_info'
|
|
217
|
+
| 'dnd.cancelled'
|
|
218
|
+
| 'dnd.drop_target_in_column'
|
|
219
|
+
| 'dnd.drop_target_in_rows'
|
|
220
|
+
| 'dnd.dropped'
|
|
221
|
+
| 'dnd.dropped_outside'
|
|
222
|
+
| 'dnd.instructions'
|
|
223
|
+
| 'dnd.instructions_canvas'
|
|
224
|
+
| 'dnd.not_over'
|
|
225
|
+
| 'dnd.over'
|
|
226
|
+
| 'dnd.picked_up'
|
|
227
|
+
| 'dnd.row_number'
|
|
228
|
+
| 'dnd.rows'
|
|
201
229
|
| 'editor.accessibility_title.description'
|
|
202
230
|
| 'editor.action_type.label'
|
|
203
231
|
| 'editor.align.label'
|
|
204
232
|
| 'editor.alignment.label'
|
|
205
233
|
| 'editor.all_sides.label'
|
|
206
234
|
| 'editor.alternate_text.label'
|
|
235
|
+
| 'editor.anchor.amp_not_supported'
|
|
207
236
|
| 'editor.anchor.section_already_exists'
|
|
208
237
|
| 'editor.background_color.label'
|
|
209
238
|
| 'editor.background_image.container_width'
|
|
@@ -355,6 +384,7 @@ export type EditorTranslationKey =
|
|
|
355
384
|
| 'editor.link.call_phone'
|
|
356
385
|
| 'editor.link.close_popup'
|
|
357
386
|
| 'editor.link.email'
|
|
387
|
+
| 'editor.link.invalid_url'
|
|
358
388
|
| 'editor.link.mailto'
|
|
359
389
|
| 'editor.link.new_tab'
|
|
360
390
|
| 'editor.link.no_page_sections_found'
|
|
@@ -387,6 +417,7 @@ export type EditorTranslationKey =
|
|
|
387
417
|
| 'editor.magic_image.generating_images_for'
|
|
388
418
|
| 'editor.magic_image.modal_title'
|
|
389
419
|
| 'editor.magic_image.no_suggestions'
|
|
420
|
+
| 'editor.magic_image.prompt_label'
|
|
390
421
|
| 'editor.magic_image.prompt_placeholder'
|
|
391
422
|
| 'editor.magic_image.prompt_score_good'
|
|
392
423
|
| 'editor.magic_image.prompt_score_info'
|
|
@@ -419,6 +450,7 @@ export type EditorTranslationKey =
|
|
|
419
450
|
| 'editor.orientation.label'
|
|
420
451
|
| 'editor.padding.label'
|
|
421
452
|
| 'editor.placeholder.drop_it_here'
|
|
453
|
+
| 'editor.placeholder.keyboard_hint'
|
|
422
454
|
| 'editor.placeholder.text'
|
|
423
455
|
| 'editor.placeholder.text.left'
|
|
424
456
|
| 'editor.placeholder.text.small'
|
|
@@ -468,6 +500,25 @@ export type EditorTranslationKey =
|
|
|
468
500
|
| 'editor.smart_text.text_empty'
|
|
469
501
|
| 'editor.social_links.label'
|
|
470
502
|
| 'editor.space_between_fields.label'
|
|
503
|
+
| 'editor.status.ai_image_added'
|
|
504
|
+
| 'editor.status.ai_image_adding'
|
|
505
|
+
| 'editor.status.ai_image_replaced'
|
|
506
|
+
| 'editor.status.ai_image_reverted'
|
|
507
|
+
| 'editor.status.ai_images_added_to_prompt'
|
|
508
|
+
| 'editor.status.device_view'
|
|
509
|
+
| 'editor.status.hidden_on_device'
|
|
510
|
+
| 'editor.status.insert_locked'
|
|
511
|
+
| 'editor.status.insert_not_here'
|
|
512
|
+
| 'editor.status.insert_row_limit'
|
|
513
|
+
| 'editor.status.item_deleted'
|
|
514
|
+
| 'editor.status.item_duplicated'
|
|
515
|
+
| 'editor.status.item_inserted'
|
|
516
|
+
| 'editor.status.item_moved'
|
|
517
|
+
| 'editor.status.redo'
|
|
518
|
+
| 'editor.status.shown_on_device'
|
|
519
|
+
| 'editor.status.tools_panel_hidden'
|
|
520
|
+
| 'editor.status.tools_panel_shown'
|
|
521
|
+
| 'editor.status.undo'
|
|
471
522
|
| 'editor.striped_rows.label'
|
|
472
523
|
| 'editor.striped_rows_background_color.label'
|
|
473
524
|
| 'editor.submit_action.label'
|
|
@@ -589,6 +640,7 @@ export type EditorTranslationKey =
|
|
|
589
640
|
| 'labels.ai.assistant.protected_content_preserved'
|
|
590
641
|
| 'labels.ai.assistant.quick_actions'
|
|
591
642
|
| 'labels.ai.assistant.reorder_images'
|
|
643
|
+
| 'labels.ai.assistant.reorder_or_insert_images'
|
|
592
644
|
| 'labels.ai.assistant.scroll_to_bottom'
|
|
593
645
|
| 'labels.ai.assistant.select_a_component_to_run_ai'
|
|
594
646
|
| 'labels.ai.assistant.template_importer.choose_file'
|
|
@@ -630,6 +682,9 @@ export type EditorTranslationKey =
|
|
|
630
682
|
| 'labels.ai.image.continue_generating_new_image'
|
|
631
683
|
| 'labels.ai.image.edit_existing_image'
|
|
632
684
|
| 'labels.ai.image.generate_new_image'
|
|
685
|
+
| 'labels.ai.image_number'
|
|
686
|
+
| 'labels.ai.prompt'
|
|
687
|
+
| 'labels.ai.suggested_replies'
|
|
633
688
|
| 'labels.align_text'
|
|
634
689
|
| 'labels.alignment.bottom'
|
|
635
690
|
| 'labels.alignment.center'
|
|
@@ -639,22 +694,32 @@ export type EditorTranslationKey =
|
|
|
639
694
|
| 'labels.alignment.left'
|
|
640
695
|
| 'labels.alignment.right'
|
|
641
696
|
| 'labels.alignment.top'
|
|
697
|
+
| 'labels.alt_text_generation_failed'
|
|
698
|
+
| 'labels.amp_supported'
|
|
642
699
|
| 'labels.auto_off'
|
|
643
700
|
| 'labels.auto_on'
|
|
701
|
+
| 'labels.auto_width_item'
|
|
644
702
|
| 'labels.beta.feedback.buttons.send_feedback'
|
|
645
703
|
| 'labels.beta.feedback.errors.failed_to_send_feedback'
|
|
646
704
|
| 'labels.beta.feedback.footnote'
|
|
647
705
|
| 'labels.beta.feedback.intro_text'
|
|
648
706
|
| 'labels.beta.feedback.thank_you_for_your_feedback'
|
|
707
|
+
| 'labels.beta.feedback.your_feedback'
|
|
649
708
|
| 'labels.beta.feedback.your_feedback_here'
|
|
709
|
+
| 'labels.block_tile'
|
|
650
710
|
| 'labels.blocks.plan_limit.cta'
|
|
651
711
|
| 'labels.blocks.plan_limit.message'
|
|
652
712
|
| 'labels.blocks.plan_limit.title'
|
|
653
713
|
| 'labels.blur'
|
|
714
|
+
| 'labels.categories'
|
|
654
715
|
| 'labels.category'
|
|
716
|
+
| 'labels.cell_options'
|
|
655
717
|
| 'labels.change_language'
|
|
656
718
|
| 'labels.characters'
|
|
719
|
+
| 'labels.clear'
|
|
657
720
|
| 'labels.clear_formatting'
|
|
721
|
+
| 'labels.clear_item'
|
|
722
|
+
| 'labels.color'
|
|
658
723
|
| 'labels.color_picker'
|
|
659
724
|
| 'labels.comments'
|
|
660
725
|
| 'labels.contain'
|
|
@@ -674,14 +739,26 @@ export type EditorTranslationKey =
|
|
|
674
739
|
| 'labels.cut'
|
|
675
740
|
| 'labels.dark'
|
|
676
741
|
| 'labels.dark_mode'
|
|
742
|
+
| 'labels.date'
|
|
743
|
+
| 'labels.decrease'
|
|
744
|
+
| 'labels.decrease_item'
|
|
745
|
+
| 'labels.delete_item'
|
|
677
746
|
| 'labels.description'
|
|
678
747
|
| 'labels.desktop_preview'
|
|
679
748
|
| 'labels.device_override'
|
|
749
|
+
| 'labels.device_view'
|
|
680
750
|
| 'labels.disable_dark_mode'
|
|
681
751
|
| 'labels.dismiss'
|
|
682
752
|
| 'labels.display_conditions'
|
|
753
|
+
| 'labels.document_preview'
|
|
683
754
|
| 'labels.dynamic_content_enabled'
|
|
755
|
+
| 'labels.edit_block'
|
|
756
|
+
| 'labels.edit_item'
|
|
757
|
+
| 'labels.editing_instructions_field'
|
|
684
758
|
| 'labels.editor'
|
|
759
|
+
| 'labels.editor_actions'
|
|
760
|
+
| 'labels.editor_panels'
|
|
761
|
+
| 'labels.emojis'
|
|
685
762
|
| 'labels.enable_dark_mode'
|
|
686
763
|
| 'labels.error'
|
|
687
764
|
| 'labels.errors.failed_to_fetch_prompt_suggestions'
|
|
@@ -698,8 +775,16 @@ export type EditorTranslationKey =
|
|
|
698
775
|
| 'labels.google_fonts'
|
|
699
776
|
| 'labels.gradient'
|
|
700
777
|
| 'labels.header'
|
|
778
|
+
| 'labels.heading_level'
|
|
701
779
|
| 'labels.hide'
|
|
702
780
|
| 'labels.horizontal'
|
|
781
|
+
| 'labels.image'
|
|
782
|
+
| 'labels.image_credit'
|
|
783
|
+
| 'labels.image_editor'
|
|
784
|
+
| 'labels.image_preview_instructions'
|
|
785
|
+
| 'labels.increase'
|
|
786
|
+
| 'labels.increase_item'
|
|
787
|
+
| 'labels.item_actions'
|
|
703
788
|
| 'labels.landscape'
|
|
704
789
|
| 'labels.language'
|
|
705
790
|
| 'labels.learn_more'
|
|
@@ -713,16 +798,24 @@ export type EditorTranslationKey =
|
|
|
713
798
|
| 'labels.locked_live_mode.message'
|
|
714
799
|
| 'labels.menu.label'
|
|
715
800
|
| 'labels.menu.links'
|
|
801
|
+
| 'labels.menu_item_number'
|
|
716
802
|
| 'labels.merge_tags'
|
|
717
803
|
| 'labels.mobile_preview'
|
|
804
|
+
| 'labels.modified_for_device'
|
|
805
|
+
| 'labels.more_actions'
|
|
718
806
|
| 'labels.more_images'
|
|
807
|
+
| 'labels.move_item'
|
|
808
|
+
| 'labels.move_item_down'
|
|
809
|
+
| 'labels.move_item_up'
|
|
719
810
|
| 'labels.multi_language.plan_limit.tooltip'
|
|
811
|
+
| 'labels.name_with_instructions'
|
|
720
812
|
| 'labels.new'
|
|
721
813
|
| 'labels.no_images'
|
|
722
814
|
| 'labels.no_results'
|
|
723
815
|
| 'labels.none'
|
|
724
816
|
| 'labels.not_supported'
|
|
725
817
|
| 'labels.objects'
|
|
818
|
+
| 'labels.open_document_preview'
|
|
726
819
|
| 'labels.orientation'
|
|
727
820
|
| 'labels.outline'
|
|
728
821
|
| 'labels.page'
|
|
@@ -730,18 +823,27 @@ export type EditorTranslationKey =
|
|
|
730
823
|
| 'labels.paste'
|
|
731
824
|
| 'labels.portrait'
|
|
732
825
|
| 'labels.position'
|
|
826
|
+
| 'labels.preview'
|
|
733
827
|
| 'labels.prompt'
|
|
734
828
|
| 'labels.radius'
|
|
735
829
|
| 'labels.recents'
|
|
736
830
|
| 'labels.redo'
|
|
737
831
|
| 'labels.refresh'
|
|
738
832
|
| 'labels.refresh_results'
|
|
833
|
+
| 'labels.reset_item'
|
|
834
|
+
| 'labels.resize_table_column'
|
|
835
|
+
| 'labels.resize_table_row'
|
|
739
836
|
| 'labels.resolution'
|
|
837
|
+
| 'labels.row_layout_tile'
|
|
740
838
|
| 'labels.safe_search'
|
|
741
839
|
| 'labels.search'
|
|
840
|
+
| 'labels.search_blocks'
|
|
841
|
+
| 'labels.search_emojis'
|
|
742
842
|
| 'labels.search_images'
|
|
743
843
|
| 'labels.search_images_by_name'
|
|
844
|
+
| 'labels.search_stock_images'
|
|
744
845
|
| 'labels.section'
|
|
846
|
+
| 'labels.see_all_in_category'
|
|
745
847
|
| 'labels.select_tone'
|
|
746
848
|
| 'labels.shadow'
|
|
747
849
|
| 'labels.show'
|
|
@@ -754,18 +856,29 @@ export type EditorTranslationKey =
|
|
|
754
856
|
| 'labels.stock_photos_by'
|
|
755
857
|
| 'labels.stock_photos_license'
|
|
756
858
|
| 'labels.stop'
|
|
859
|
+
| 'labels.style'
|
|
860
|
+
| 'labels.success'
|
|
861
|
+
| 'labels.sync_block_synced'
|
|
862
|
+
| 'labels.sync_block_unsynced'
|
|
757
863
|
| 'labels.tabloid'
|
|
864
|
+
| 'labels.tabs_instructions_horizontal'
|
|
865
|
+
| 'labels.tabs_instructions_vertical'
|
|
758
866
|
| 'labels.tags'
|
|
867
|
+
| 'labels.text_formatting'
|
|
759
868
|
| 'labels.text_prompt'
|
|
760
869
|
| 'labels.text_style'
|
|
761
870
|
| 'labels.texture'
|
|
871
|
+
| 'labels.time'
|
|
762
872
|
| 'labels.timezone'
|
|
763
873
|
| 'labels.tip'
|
|
764
874
|
| 'labels.tone'
|
|
765
875
|
| 'labels.tools.custom.plan_limit.cta'
|
|
766
876
|
| 'labels.tools.custom.plan_limit.description'
|
|
767
877
|
| 'labels.tools.custom.plan_limit.title'
|
|
878
|
+
| 'labels.tools_panel'
|
|
879
|
+
| 'labels.transparent'
|
|
768
880
|
| 'labels.undo'
|
|
881
|
+
| 'labels.unit'
|
|
769
882
|
| 'labels.usage_limit.errors.credits_exhausted'
|
|
770
883
|
| 'labels.usage_limit.errors.credits_exhausted_claimable'
|
|
771
884
|
| 'labels.usage_limit.errors.credits_exhausted_claimable_billing'
|
|
@@ -779,7 +892,10 @@ export type EditorTranslationKey =
|
|
|
779
892
|
| 'labels.usage_limit.features.countdown_views'
|
|
780
893
|
| 'labels.usage_limit.features.export'
|
|
781
894
|
| 'labels.usage_limit.features.inbox_preview'
|
|
895
|
+
| 'labels.use_generated_image'
|
|
896
|
+
| 'labels.use_this_result'
|
|
782
897
|
| 'labels.vertical'
|
|
898
|
+
| 'labels.warning'
|
|
783
899
|
| 'labels.words'
|
|
784
900
|
| 'minimap.hide'
|
|
785
901
|
| 'minimap.label'
|
|
@@ -793,6 +909,9 @@ export type EditorTranslationKey =
|
|
|
793
909
|
| 'modals.delete.confirmation'
|
|
794
910
|
| 'modals.delete.title'
|
|
795
911
|
| 'modals.display_conditions.title'
|
|
912
|
+
| 'modals.preview.amp_error_count'
|
|
913
|
+
| 'modals.preview.amp_validation_link'
|
|
914
|
+
| 'modals.preview.amp_validation_passed'
|
|
796
915
|
| 'modals.preview.browser_preview.label'
|
|
797
916
|
| 'modals.preview.content_overflow_warning'
|
|
798
917
|
| 'modals.preview.download_pdf.downloaded'
|
|
@@ -885,6 +1004,7 @@ export type EditorTranslationKey =
|
|
|
885
1004
|
| 'modals.preview.inbox_preview.label.zoom_out'
|
|
886
1005
|
| 'modals.preview.inbox_preview.polling_status_timed_out'
|
|
887
1006
|
| 'modals.preview.inbox_preview.polling_timed_out'
|
|
1007
|
+
| 'modals.preview.inbox_preview.search_clients'
|
|
888
1008
|
| 'modals.preview.inbox_preview.settings_link'
|
|
889
1009
|
| 'modals.preview.inbox_preview.text.email_clients'
|
|
890
1010
|
| 'modals.preview.inbox_preview.text.generate_previews'
|
|
@@ -1041,6 +1161,7 @@ export type EditorTranslationKey =
|
|
|
1041
1161
|
| 'tools.form.update_field'
|
|
1042
1162
|
| 'tools.social.click_icons_to_add'
|
|
1043
1163
|
| 'tools.tabs.audit'
|
|
1164
|
+
| 'tools.tabs.audit_issue_count'
|
|
1044
1165
|
| 'tools.tabs.blocks'
|
|
1045
1166
|
| 'tools.tabs.body'
|
|
1046
1167
|
| 'tools.tabs.content'
|
|
@@ -1053,8 +1174,10 @@ export type EditorTranslationKey =
|
|
|
1053
1174
|
|
|
1054
1175
|
export type ImageEditorTranslationKey =
|
|
1055
1176
|
| 'image_editor.actions.reset'
|
|
1177
|
+
| 'image_editor.actions.reset_item'
|
|
1056
1178
|
| 'image_editor.ai_assistant.aborted'
|
|
1057
1179
|
| 'image_editor.ai_assistant.clarify_edit'
|
|
1180
|
+
| 'image_editor.ai_assistant.close'
|
|
1058
1181
|
| 'image_editor.ai_assistant.credits_exhausted.claimable_message'
|
|
1059
1182
|
| 'image_editor.ai_assistant.credits_exhausted.contact_owner_message'
|
|
1060
1183
|
| 'image_editor.ai_assistant.credits_exhausted.message'
|
|
@@ -1069,6 +1192,10 @@ export type ImageEditorTranslationKey =
|
|
|
1069
1192
|
| 'image_editor.ai_assistant.progress.analyzing'
|
|
1070
1193
|
| 'image_editor.ai_assistant.progress.applying'
|
|
1071
1194
|
| 'image_editor.ai_assistant.progress.finalizing'
|
|
1195
|
+
| 'image_editor.ai_assistant.prompt_label'
|
|
1196
|
+
| 'image_editor.ai_assistant.send'
|
|
1197
|
+
| 'image_editor.ai_assistant.show_less'
|
|
1198
|
+
| 'image_editor.ai_assistant.show_more'
|
|
1072
1199
|
| 'image_editor.ai_assistant.suggestions.black_white'
|
|
1073
1200
|
| 'image_editor.ai_assistant.suggestions.blur_background'
|
|
1074
1201
|
| 'image_editor.ai_assistant.suggestions.brightness'
|
|
@@ -1083,11 +1210,25 @@ export type ImageEditorTranslationKey =
|
|
|
1083
1210
|
| 'image_editor.arrange.bring_to_front'
|
|
1084
1211
|
| 'image_editor.arrange.send_backward'
|
|
1085
1212
|
| 'image_editor.arrange.send_to_back'
|
|
1213
|
+
| 'image_editor.canvas.instructions'
|
|
1214
|
+
| 'image_editor.canvas.label'
|
|
1215
|
+
| 'image_editor.colors.black'
|
|
1216
|
+
| 'image_editor.colors.blue'
|
|
1217
|
+
| 'image_editor.colors.green'
|
|
1218
|
+
| 'image_editor.colors.hex'
|
|
1219
|
+
| 'image_editor.colors.orange'
|
|
1220
|
+
| 'image_editor.colors.purple'
|
|
1221
|
+
| 'image_editor.colors.red'
|
|
1222
|
+
| 'image_editor.colors.white'
|
|
1223
|
+
| 'image_editor.colors.yellow'
|
|
1086
1224
|
| 'image_editor.corners.radius'
|
|
1087
1225
|
| 'image_editor.crop.aspect_free'
|
|
1088
1226
|
| 'image_editor.crop.aspect_original'
|
|
1089
1227
|
| 'image_editor.crop.aspect_ratio'
|
|
1090
1228
|
| 'image_editor.crop.aspect_square'
|
|
1229
|
+
| 'image_editor.crop.image_alt'
|
|
1230
|
+
| 'image_editor.crop.region_x'
|
|
1231
|
+
| 'image_editor.crop.region_y'
|
|
1091
1232
|
| 'image_editor.crop.rotate_flip'
|
|
1092
1233
|
| 'image_editor.crop.straighten'
|
|
1093
1234
|
| 'image_editor.draw.brush'
|
|
@@ -1147,6 +1288,12 @@ export type ImageEditorTranslationKey =
|
|
|
1147
1288
|
| 'image_editor.labels.shape'
|
|
1148
1289
|
| 'image_editor.labels.sticker'
|
|
1149
1290
|
| 'image_editor.labels.text'
|
|
1291
|
+
| 'image_editor.objects.actions'
|
|
1292
|
+
| 'image_editor.objects.deleted'
|
|
1293
|
+
| 'image_editor.objects.selected'
|
|
1294
|
+
| 'image_editor.objects.text'
|
|
1295
|
+
| 'image_editor.position.angle'
|
|
1296
|
+
| 'image_editor.position.title'
|
|
1150
1297
|
| 'image_editor.resize.height'
|
|
1151
1298
|
| 'image_editor.resize.lock_aspect'
|
|
1152
1299
|
| 'image_editor.resize.width'
|
|
@@ -1180,8 +1327,10 @@ export type ImageEditorTranslationKey =
|
|
|
1180
1327
|
| 'image_editor.shapes.shadow_offset_y'
|
|
1181
1328
|
| 'image_editor.shapes.shield'
|
|
1182
1329
|
| 'image_editor.shapes.star'
|
|
1330
|
+
| 'image_editor.shapes.tile_label'
|
|
1183
1331
|
| 'image_editor.shapes.transparent'
|
|
1184
1332
|
| 'image_editor.shapes.triangle'
|
|
1333
|
+
| 'image_editor.status.loading_image'
|
|
1185
1334
|
| 'image_editor.stickers.category.beach'
|
|
1186
1335
|
| 'image_editor.stickers.category.bubbles'
|
|
1187
1336
|
| 'image_editor.stickers.category.clouds'
|
|
@@ -1193,6 +1342,7 @@ export type ImageEditorTranslationKey =
|
|
|
1193
1342
|
| 'image_editor.stickers.empty'
|
|
1194
1343
|
| 'image_editor.stickers.less'
|
|
1195
1344
|
| 'image_editor.stickers.more'
|
|
1345
|
+
| 'image_editor.stickers.numbered'
|
|
1196
1346
|
| 'image_editor.stickers.search'
|
|
1197
1347
|
| 'image_editor.text.align'
|
|
1198
1348
|
| 'image_editor.text.align_center'
|
|
@@ -1200,6 +1350,7 @@ export type ImageEditorTranslationKey =
|
|
|
1200
1350
|
| 'image_editor.text.align_right'
|
|
1201
1351
|
| 'image_editor.text.background'
|
|
1202
1352
|
| 'image_editor.text.bold'
|
|
1353
|
+
| 'image_editor.text.content'
|
|
1203
1354
|
| 'image_editor.text.default_text'
|
|
1204
1355
|
| 'image_editor.text.font'
|
|
1205
1356
|
| 'image_editor.text.group.basic'
|
|
@@ -1228,9 +1379,11 @@ export type ImageEditorTranslationKey =
|
|
|
1228
1379
|
| 'image_editor.text.underline'
|
|
1229
1380
|
| 'image_editor.toolbar.cancel'
|
|
1230
1381
|
| 'image_editor.toolbar.close'
|
|
1382
|
+
| 'image_editor.toolbar.close_tool_panel'
|
|
1231
1383
|
| 'image_editor.toolbar.fit_to_screen'
|
|
1232
1384
|
| 'image_editor.toolbar.flatten'
|
|
1233
1385
|
| 'image_editor.toolbar.hide_chat'
|
|
1386
|
+
| 'image_editor.toolbar.label'
|
|
1234
1387
|
| 'image_editor.toolbar.redo'
|
|
1235
1388
|
| 'image_editor.toolbar.save'
|
|
1236
1389
|
| 'image_editor.toolbar.show_chat'
|
|
@@ -1242,6 +1395,7 @@ export type ImageEditorTranslationKey =
|
|
|
1242
1395
|
| 'image_editor.tools.draw'
|
|
1243
1396
|
| 'image_editor.tools.filter'
|
|
1244
1397
|
| 'image_editor.tools.frame'
|
|
1398
|
+
| 'image_editor.tools.label'
|
|
1245
1399
|
| 'image_editor.tools.resize'
|
|
1246
1400
|
| 'image_editor.tools.shapes'
|
|
1247
1401
|
| 'image_editor.tools.stickers'
|
package/dist/editor/utils.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ export interface EditorProps<Value, WidgetParams = object> {
|
|
|
20
20
|
deviceName: Device;
|
|
21
21
|
displayMode: DisplayMode;
|
|
22
22
|
label?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Id of the element that holds the label text. Reference it from the
|
|
25
|
+
* widget's control with `aria-labelledby` so assistive technology
|
|
26
|
+
* announces the control with its label.
|
|
27
|
+
*/
|
|
28
|
+
labelId?: string;
|
|
23
29
|
location: Location;
|
|
24
30
|
values: {
|
|
25
31
|
[key: string]: unknown;
|