@sveltia/ui 0.89.3 → 0.91.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/components/dialog/dialog.svelte +149 -9
- package/dist/components/text-editor/constants.d.ts +40 -6
- package/dist/components/text-editor/constants.js +81 -7
- package/dist/components/text-editor/conversion/html/components.d.ts +16 -0
- package/dist/components/text-editor/conversion/html/components.js +87 -0
- package/dist/components/text-editor/conversion/html/export.d.ts +10 -0
- package/dist/components/text-editor/conversion/html/export.js +360 -0
- package/dist/components/text-editor/conversion/html/import-rules.d.ts +12 -0
- package/dist/components/text-editor/conversion/html/import-rules.js +234 -0
- package/dist/components/text-editor/conversion/html/index.d.ts +10 -0
- package/dist/components/text-editor/conversion/html/index.js +33 -0
- package/dist/components/text-editor/conversion/html/paragraph.d.ts +1 -0
- package/dist/components/text-editor/conversion/html/paragraph.js +123 -0
- package/dist/components/text-editor/conversion/html/task-list.d.ts +13 -0
- package/dist/components/text-editor/conversion/html/task-list.js +82 -0
- package/dist/components/text-editor/conversion/html/unsupported.d.ts +2 -0
- package/dist/components/text-editor/conversion/html/unsupported.js +122 -0
- package/dist/components/text-editor/conversion/html/utils.d.ts +6 -0
- package/dist/components/text-editor/conversion/html/utils.js +34 -0
- package/dist/components/text-editor/conversion/import.js +1 -1
- package/dist/components/text-editor/conversion/transformers/task-list.d.ts +24 -0
- package/dist/components/text-editor/conversion/transformers/task-list.js +53 -0
- package/dist/components/text-editor/conversion/update.js +1 -1
- package/dist/components/text-editor/core.js +4 -12
- package/dist/components/text-editor/editing/commands.js +9 -18
- package/dist/components/text-editor/editing/guards.d.ts +7 -0
- package/dist/components/text-editor/editing/guards.js +123 -0
- package/dist/components/text-editor/editing/raw-markdown.d.ts +4 -2
- package/dist/components/text-editor/editing/raw-markdown.js +22 -6
- package/dist/components/text-editor/editing/selection.js +6 -2
- package/dist/components/text-editor/lexical-root.svelte +40 -0
- package/dist/components/text-editor/shiki/version.d.ts +1 -1
- package/dist/components/text-editor/shiki/version.js +1 -1
- package/dist/components/text-editor/text-editor.svelte +7 -4
- package/dist/components/text-editor/text-editor.svelte.d.ts +4 -2
- package/dist/components/text-editor/toolbar/format-text-button.svelte +7 -1
- package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte +19 -8
- package/dist/components/text-editor/toolbar/toggle-block-menu-item.svelte +7 -14
- package/dist/components/util/modal.svelte +41 -12
- package/dist/locales/ar.yaml +2 -0
- package/dist/locales/bg.yaml +2 -0
- package/dist/locales/ca.yaml +2 -0
- package/dist/locales/cs.yaml +2 -0
- package/dist/locales/da.yaml +2 -0
- package/dist/locales/de.yaml +2 -0
- package/dist/locales/el.yaml +2 -0
- package/dist/locales/en-CA.yaml +2 -0
- package/dist/locales/en-GB.yaml +2 -0
- package/dist/locales/en-US.yaml +2 -0
- package/dist/locales/en-ZA.yaml +2 -0
- package/dist/locales/es-CO.yaml +2 -0
- package/dist/locales/es-ES.yaml +176 -0
- package/dist/locales/fa.yaml +2 -0
- package/dist/locales/fi.yaml +2 -0
- package/dist/locales/fr.yaml +2 -0
- package/dist/locales/he.yaml +2 -0
- package/dist/locales/hr.yaml +2 -0
- package/dist/locales/it.yaml +2 -0
- package/dist/locales/ja.yaml +2 -0
- package/dist/locales/ko.yaml +2 -0
- package/dist/locales/nl.yaml +2 -0
- package/dist/locales/pl.yaml +2 -0
- package/dist/locales/pt-BR.yaml +2 -0
- package/dist/locales/pt-PT.yaml +2 -0
- package/dist/locales/ru.yaml +2 -0
- package/dist/locales/sk.yaml +2 -0
- package/dist/locales/sv.yaml +2 -0
- package/dist/locales/tr.yaml +2 -0
- package/dist/locales/uk.yaml +2 -0
- package/dist/locales/vi.yaml +2 -0
- package/dist/locales/zh-CN.yaml +2 -0
- package/dist/locales/zh-TW.yaml +2 -0
- package/dist/typedefs.d.ts +33 -3
- package/dist/typedefs.js +19 -3
- package/package.json +13 -13
- package/dist/components/text-editor/conversion/html.d.ts +0 -30
- package/dist/components/text-editor/conversion/html.js +0 -719
package/dist/locales/de.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Überschrift 6
|
|
119
119
|
bulleted_list: Aufzählungsliste
|
|
120
120
|
numbered_list: Nummerierte Liste
|
|
121
|
+
task_list: Aufgabenliste
|
|
121
122
|
blockquote: Zitat
|
|
122
123
|
code_block: Code-Block
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Fett
|
|
125
126
|
italic: Kursiv
|
|
127
|
+
underline: Unterstrichen
|
|
126
128
|
strikethrough: Durchgestrichen
|
|
127
129
|
code: Code
|
|
128
130
|
link: Link
|
package/dist/locales/el.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Επικεφαλίδα 6
|
|
119
119
|
bulleted_list: Λίστα με κουκίδες
|
|
120
120
|
numbered_list: Αριθμημένη λίστα
|
|
121
|
+
task_list: Λίστα εργασιών
|
|
121
122
|
blockquote: Παράθεση
|
|
122
123
|
code_block: Μπλόκ κώδικα
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Έντονα
|
|
125
126
|
italic: Πλάγια
|
|
127
|
+
underline: Υπογράμμιση
|
|
126
128
|
strikethrough: Διακριτή διαγραφή
|
|
127
129
|
code: Κώδικας
|
|
128
130
|
link: Σύνδεσμος
|
package/dist/locales/en-CA.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Heading 6
|
|
119
119
|
bulleted_list: Bulleted List
|
|
120
120
|
numbered_list: Numbered List
|
|
121
|
+
task_list: Task List
|
|
121
122
|
blockquote: Block Quote
|
|
122
123
|
code_block: Code Block
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Bold
|
|
125
126
|
italic: Italic
|
|
127
|
+
underline: Underline
|
|
126
128
|
strikethrough: Strikethrough
|
|
127
129
|
code: Code
|
|
128
130
|
link: Link
|
package/dist/locales/en-GB.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Heading 6
|
|
119
119
|
bulleted_list: Bulleted List
|
|
120
120
|
numbered_list: Numbered List
|
|
121
|
+
task_list: Task List
|
|
121
122
|
blockquote: Block Quote
|
|
122
123
|
code_block: Code Block
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Bold
|
|
125
126
|
italic: Italic
|
|
127
|
+
underline: Underline
|
|
126
128
|
strikethrough: Strikethrough
|
|
127
129
|
code: Code
|
|
128
130
|
link: Link
|
package/dist/locales/en-US.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Heading 6
|
|
119
119
|
bulleted_list: Bulleted List
|
|
120
120
|
numbered_list: Numbered List
|
|
121
|
+
task_list: Task List
|
|
121
122
|
blockquote: Block Quote
|
|
122
123
|
code_block: Code Block
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Bold
|
|
125
126
|
italic: Italic
|
|
127
|
+
underline: Underline
|
|
126
128
|
strikethrough: Strikethrough
|
|
127
129
|
code: Code
|
|
128
130
|
link: Link
|
package/dist/locales/en-ZA.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Heading 6
|
|
119
119
|
bulleted_list: Bulleted List
|
|
120
120
|
numbered_list: Numbered List
|
|
121
|
+
task_list: Task List
|
|
121
122
|
blockquote: Block Quote
|
|
122
123
|
code_block: Code Block
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Bold
|
|
125
126
|
italic: Italic
|
|
127
|
+
underline: Underline
|
|
126
128
|
strikethrough: Strikethrough
|
|
127
129
|
code: Code
|
|
128
130
|
link: Link
|
package/dist/locales/es-CO.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Encabezado 6
|
|
119
119
|
bulleted_list: Lista con viñetas
|
|
120
120
|
numbered_list: Lista numerada
|
|
121
|
+
task_list: Lista de tareas
|
|
121
122
|
blockquote: Cita
|
|
122
123
|
code_block: Bloque de código
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Negrita
|
|
125
126
|
italic: Cursiva
|
|
127
|
+
underline: Subrayado
|
|
126
128
|
strikethrough: Tachado
|
|
127
129
|
code: Código
|
|
128
130
|
link: Enlace
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Dialog action button labels
|
|
2
|
+
ok: OK
|
|
3
|
+
cancel: Cancelar
|
|
4
|
+
close: Cerrar
|
|
5
|
+
|
|
6
|
+
# Button to clear content, e.g. search input or calendar date
|
|
7
|
+
clear: Limpiar
|
|
8
|
+
|
|
9
|
+
# Text editor dialog buttons for link/image insertion
|
|
10
|
+
insert: Insertar
|
|
11
|
+
update: Actualizar
|
|
12
|
+
remove: Quitar
|
|
13
|
+
|
|
14
|
+
# Combobox dropdown toggle button aria-labels
|
|
15
|
+
collapse: Contraer
|
|
16
|
+
expand: Expandir
|
|
17
|
+
|
|
18
|
+
# Infobar/toast dismiss button label
|
|
19
|
+
dismiss: Descartar
|
|
20
|
+
|
|
21
|
+
# Alert & infobar status, read out by screen readers before the message (visually hidden)
|
|
22
|
+
alert:
|
|
23
|
+
error: Error
|
|
24
|
+
warning: Advertencia
|
|
25
|
+
info: Información
|
|
26
|
+
success: Éxito
|
|
27
|
+
|
|
28
|
+
# Role descriptions, read out by screen readers in place of the generic “group” role
|
|
29
|
+
role_descriptions:
|
|
30
|
+
disclosure: sección desplegable
|
|
31
|
+
option_group: grupo de opciones
|
|
32
|
+
menu_item_group: grupo de elementos de menú
|
|
33
|
+
checkbox_group: grupo de casillas de verificación
|
|
34
|
+
table_head: encabezado de tabla
|
|
35
|
+
table_body: cuerpo de tabla
|
|
36
|
+
table_foot: pie de tabla
|
|
37
|
+
grid_head: encabezado de cuadrícula
|
|
38
|
+
grid_body: cuerpo de cuadrícula
|
|
39
|
+
grid_foot: pie de cuadrícula
|
|
40
|
+
|
|
41
|
+
# Emoji suggestion listbox aria-label, shared by the text fields and the text editor
|
|
42
|
+
emoji_suggestions: Sugerencias de emojis
|
|
43
|
+
|
|
44
|
+
# Calendar component
|
|
45
|
+
calendar:
|
|
46
|
+
# View switcher group aria-labels and navigation button aria-labels
|
|
47
|
+
year: Año
|
|
48
|
+
previous_decade: Década anterior
|
|
49
|
+
next_decade: Década siguiente
|
|
50
|
+
month: Mes
|
|
51
|
+
previous_month: Mes anterior
|
|
52
|
+
next_month: Mes siguiente
|
|
53
|
+
# “Today” button label in footer
|
|
54
|
+
today: Hoy
|
|
55
|
+
|
|
56
|
+
# Split button component
|
|
57
|
+
split_button:
|
|
58
|
+
# Wrapper aria-label, e.g. “Save Options” when primary button is “Save”
|
|
59
|
+
x_options: Opciones de {$name}
|
|
60
|
+
# Dropdown toggle aria-label
|
|
61
|
+
more_options: Más opciones
|
|
62
|
+
|
|
63
|
+
# Combobox component
|
|
64
|
+
combobox:
|
|
65
|
+
# Placeholder when no option is selected
|
|
66
|
+
select_an_option: Selecciona una opción…
|
|
67
|
+
# Filter input aria-label
|
|
68
|
+
filter_options: Filtrar opciones
|
|
69
|
+
# Empty state message when filter has no matches
|
|
70
|
+
no_matching_options: No se han encontrado opciones que coincidan
|
|
71
|
+
|
|
72
|
+
# Number input component
|
|
73
|
+
number_input:
|
|
74
|
+
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
|
+
increase: Aumentar
|
|
76
|
+
decrease: Disminuir
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: De {$min} a {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Mínimo {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Máximo {$max}
|
|
83
|
+
|
|
84
|
+
# Password input component
|
|
85
|
+
password_input:
|
|
86
|
+
# Visibility toggle button aria-labels
|
|
87
|
+
show_password: Mostrar la contraseña
|
|
88
|
+
hide_password: Ocultar la contraseña
|
|
89
|
+
|
|
90
|
+
# Secret input component (API keys, tokens, etc.)
|
|
91
|
+
secret_input:
|
|
92
|
+
# Visibility toggle button aria-labels
|
|
93
|
+
show_secret: Mostrar el secreto
|
|
94
|
+
hide_secret: Ocultar el secreto
|
|
95
|
+
|
|
96
|
+
# Select tags component (multi-select)
|
|
97
|
+
select_tags:
|
|
98
|
+
# Listbox aria-label
|
|
99
|
+
selected_options: Opciones seleccionadas
|
|
100
|
+
# Remove button aria-label, e.g. “Remove Option 1”
|
|
101
|
+
remove_x: Quitar {$name}
|
|
102
|
+
|
|
103
|
+
# Text editor component
|
|
104
|
+
text_editor:
|
|
105
|
+
# Toolbar aria-labels
|
|
106
|
+
text_editor: Editor de texto
|
|
107
|
+
code_editor: Editor de código
|
|
108
|
+
# Block style menu button and menu aria-labels
|
|
109
|
+
text_style_options: Opciones de estilo de texto
|
|
110
|
+
show_text_style_options: Mostrar las opciones de estilo de texto
|
|
111
|
+
# Block style menu items
|
|
112
|
+
paragraph: Párrafo
|
|
113
|
+
heading_1: Encabezado 1
|
|
114
|
+
heading_2: Encabezado 2
|
|
115
|
+
heading_3: Encabezado 3
|
|
116
|
+
heading_4: Encabezado 4
|
|
117
|
+
heading_5: Encabezado 5
|
|
118
|
+
heading_6: Encabezado 6
|
|
119
|
+
bulleted_list: Lista con viñetas
|
|
120
|
+
numbered_list: Lista numerada
|
|
121
|
+
task_list: Lista de tareas
|
|
122
|
+
blockquote: Cita
|
|
123
|
+
code_block: Bloque de código
|
|
124
|
+
# Inline style button aria-labels
|
|
125
|
+
bold: Negrita
|
|
126
|
+
italic: Cursiva
|
|
127
|
+
underline: Subrayado
|
|
128
|
+
strikethrough: Tachado
|
|
129
|
+
code: Código
|
|
130
|
+
link: Enlace
|
|
131
|
+
# Link dialog title
|
|
132
|
+
insert_link: Insertar enlace
|
|
133
|
+
# Floating link editor button aria-labels
|
|
134
|
+
edit_link: Editar enlace
|
|
135
|
+
remove_link: Quitar enlace
|
|
136
|
+
# Link dialog input field labels
|
|
137
|
+
text: Texto
|
|
138
|
+
url: URL
|
|
139
|
+
# Link dialog checkbox label and floating link editor button aria-label
|
|
140
|
+
open_in_new_tab: Abrir en una pestaña nueva
|
|
141
|
+
# Table dialog title
|
|
142
|
+
insert_table: Insertar tabla
|
|
143
|
+
# Table dialog input field labels
|
|
144
|
+
rows: Filas
|
|
145
|
+
columns: Columnas
|
|
146
|
+
# Table menu button and menu aria-labels
|
|
147
|
+
table_options: Opciones de tabla
|
|
148
|
+
show_table_options: Mostrar las opciones de tabla
|
|
149
|
+
# Table menu items
|
|
150
|
+
insert_row_above: Insertar fila arriba
|
|
151
|
+
insert_row_below: Insertar fila abajo
|
|
152
|
+
insert_column_left: Insertar columna a la izquierda
|
|
153
|
+
insert_column_right: Insertar columna a la derecha
|
|
154
|
+
delete_row: Eliminar fila
|
|
155
|
+
delete_column: Eliminar columna
|
|
156
|
+
delete_table: Eliminar tabla
|
|
157
|
+
# Horizontal rule button aria-label
|
|
158
|
+
insert_horizontal_rule: Insertar línea horizontal
|
|
159
|
+
# Alignment menu button and menu aria-labels
|
|
160
|
+
alignment_options: Opciones de alineación
|
|
161
|
+
show_alignment_options: Mostrar las opciones de alineación
|
|
162
|
+
# Alignment menu items
|
|
163
|
+
align_left: Alinear a la izquierda
|
|
164
|
+
align_center: Centrar
|
|
165
|
+
align_right: Alinear a la derecha
|
|
166
|
+
align_justify: Justificar
|
|
167
|
+
# Markdown mode toggle button aria-label
|
|
168
|
+
edit_in_markdown: Editar en Markdown
|
|
169
|
+
# HTML mode toggle button aria-label
|
|
170
|
+
edit_in_html: Editar en HTML
|
|
171
|
+
# Error message when rich text conversion fails
|
|
172
|
+
converter_error: No se ha podido activar el modo de texto enriquecido. Usa el editor de texto sin formato en su lugar.
|
|
173
|
+
# Language selector aria-label
|
|
174
|
+
language: Idioma
|
|
175
|
+
# Plain text mode option in language selector
|
|
176
|
+
plain_text: Texto sin formato
|
package/dist/locales/fa.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: سرتیتر ۶
|
|
119
119
|
bulleted_list: فهرست نشانهدار
|
|
120
120
|
numbered_list: فهرست شمارهدار
|
|
121
|
+
task_list: فهرست کارها
|
|
121
122
|
blockquote: نقلقول
|
|
122
123
|
code_block: بلوک کد
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: ضخیم
|
|
125
126
|
italic: مورب
|
|
127
|
+
underline: زیرخط
|
|
126
128
|
strikethrough: خطخورده
|
|
127
129
|
code: کد
|
|
128
130
|
link: پیوند
|
package/dist/locales/fi.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Otsikko 6
|
|
119
119
|
bulleted_list: Luettelomerkitty luettelo
|
|
120
120
|
numbered_list: Numeroitu luettelo
|
|
121
|
+
task_list: Tehtäväluettelo
|
|
121
122
|
blockquote: Lainaus
|
|
122
123
|
code_block: Koodilohko
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Lihavointi
|
|
125
126
|
italic: Kursivointi
|
|
127
|
+
underline: Alleviivaus
|
|
126
128
|
strikethrough: Yliviivaus
|
|
127
129
|
code: Koodi
|
|
128
130
|
link: Linkki
|
package/dist/locales/fr.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Titre 6
|
|
119
119
|
bulleted_list: Liste à puces
|
|
120
120
|
numbered_list: Liste numérotée
|
|
121
|
+
task_list: Liste de tâches
|
|
121
122
|
blockquote: Citation
|
|
122
123
|
code_block: Bloc de code
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Gras
|
|
125
126
|
italic: Italique
|
|
127
|
+
underline: Souligné
|
|
126
128
|
strikethrough: Barré
|
|
127
129
|
code: Code
|
|
128
130
|
link: Lien
|
package/dist/locales/he.yaml
CHANGED
|
@@ -123,11 +123,13 @@ text_editor:
|
|
|
123
123
|
heading_6: כותרת 6
|
|
124
124
|
bulleted_list: רשימת תבליטים
|
|
125
125
|
numbered_list: רשימה ממוספרת
|
|
126
|
+
task_list: רשימת משימות
|
|
126
127
|
blockquote: ציטוט
|
|
127
128
|
code_block: קטע קוד
|
|
128
129
|
# Inline style button aria-labels
|
|
129
130
|
bold: הדגשה
|
|
130
131
|
italic: הטיה
|
|
132
|
+
underline: קו תחתון
|
|
131
133
|
strikethrough: קו חוצה
|
|
132
134
|
code: קוד
|
|
133
135
|
link: קישור
|
package/dist/locales/hr.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Naslov 6
|
|
119
119
|
bulleted_list: Popis s grafičkim oznakama
|
|
120
120
|
numbered_list: Numerirani popis
|
|
121
|
+
task_list: Popis zadataka
|
|
121
122
|
blockquote: Citat
|
|
122
123
|
code_block: Blok koda
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Podebljano
|
|
125
126
|
italic: Kurziv
|
|
127
|
+
underline: Podcrtano
|
|
126
128
|
strikethrough: Precrtano
|
|
127
129
|
code: Kod
|
|
128
130
|
link: Poveznica
|
package/dist/locales/it.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Titolo 6
|
|
119
119
|
bulleted_list: Elenco Puntato
|
|
120
120
|
numbered_list: Elenco Numerato
|
|
121
|
+
task_list: Elenco Attività
|
|
121
122
|
blockquote: Citazione
|
|
122
123
|
code_block: Blocco di Codice
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Grassetto
|
|
125
126
|
italic: Corsivo
|
|
127
|
+
underline: Sottolineato
|
|
126
128
|
strikethrough: Barrato
|
|
127
129
|
code: Codice
|
|
128
130
|
link: Link
|
package/dist/locales/ja.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: 見出し 6
|
|
119
119
|
bulleted_list: 番号なしリスト
|
|
120
120
|
numbered_list: 番号付きリスト
|
|
121
|
+
task_list: タスクリスト
|
|
121
122
|
blockquote: ブロック引用
|
|
122
123
|
code_block: コードブロック
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: 太字
|
|
125
126
|
italic: 斜体
|
|
127
|
+
underline: 下線
|
|
126
128
|
strikethrough: 取り消し線
|
|
127
129
|
code: コード
|
|
128
130
|
link: リンク
|
package/dist/locales/ko.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: 제목 6
|
|
119
119
|
bulleted_list: 글머리 기호 목록
|
|
120
120
|
numbered_list: 번호 매기기 목록
|
|
121
|
+
task_list: 할 일 목록
|
|
121
122
|
blockquote: 인용 블록
|
|
122
123
|
code_block: 코드 블록
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: 굵게
|
|
125
126
|
italic: 기울임꼴
|
|
127
|
+
underline: 밑줄
|
|
126
128
|
strikethrough: 취소선
|
|
127
129
|
code: 코드
|
|
128
130
|
link: 링크
|
package/dist/locales/nl.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Kop 6
|
|
119
119
|
bulleted_list: Opsommingslijst
|
|
120
120
|
numbered_list: Genummerde lijst
|
|
121
|
+
task_list: Takenlijst
|
|
121
122
|
blockquote: Citaatblok
|
|
122
123
|
code_block: Codeblok
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Vet
|
|
125
126
|
italic: Cursief
|
|
127
|
+
underline: Onderstrepen
|
|
126
128
|
strikethrough: Doorhalen
|
|
127
129
|
code: Code
|
|
128
130
|
link: Link
|
package/dist/locales/pl.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Nagłówek 6
|
|
119
119
|
bulleted_list: Lista punktowana
|
|
120
120
|
numbered_list: Lista numerowana
|
|
121
|
+
task_list: Lista zadań
|
|
121
122
|
blockquote: Cytat blokowy
|
|
122
123
|
code_block: Blok kodu
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Pogrubienie
|
|
125
126
|
italic: Kursywa
|
|
127
|
+
underline: Podkreślenie
|
|
126
128
|
strikethrough: Przekreślenie
|
|
127
129
|
code: Kod
|
|
128
130
|
link: Odnośnik
|
package/dist/locales/pt-BR.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Título 6
|
|
119
119
|
bulleted_list: Lista com marcadores
|
|
120
120
|
numbered_list: Lista numerada
|
|
121
|
+
task_list: Lista de tarefas
|
|
121
122
|
blockquote: Citação
|
|
122
123
|
code_block: Bloco de código
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Negrito
|
|
125
126
|
italic: Itálico
|
|
127
|
+
underline: Sublinhado
|
|
126
128
|
strikethrough: Tachado
|
|
127
129
|
code: Código
|
|
128
130
|
link: Link
|
package/dist/locales/pt-PT.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Título 6
|
|
119
119
|
bulleted_list: Lista com marcas
|
|
120
120
|
numbered_list: Lista numerada
|
|
121
|
+
task_list: Lista de tarefas
|
|
121
122
|
blockquote: Citação
|
|
122
123
|
code_block: Bloco de código
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Negrito
|
|
125
126
|
italic: Itálico
|
|
127
|
+
underline: Sublinhado
|
|
126
128
|
strikethrough: Rasurado
|
|
127
129
|
code: Código
|
|
128
130
|
link: Ligação
|
package/dist/locales/ru.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Заголовок 6
|
|
119
119
|
bulleted_list: Маркированный список
|
|
120
120
|
numbered_list: Нумерованный список
|
|
121
|
+
task_list: Список задач
|
|
121
122
|
blockquote: Цитата
|
|
122
123
|
code_block: Блок кода
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Полужирный
|
|
125
126
|
italic: Курсив
|
|
127
|
+
underline: Подчёркнутый
|
|
126
128
|
strikethrough: Зачёркнутый
|
|
127
129
|
code: Код
|
|
128
130
|
link: Ссылка
|
package/dist/locales/sk.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Nadpis 6
|
|
119
119
|
bulleted_list: Zoznam s odrážkami
|
|
120
120
|
numbered_list: Číslovaný zoznam
|
|
121
|
+
task_list: Zoznam úloh
|
|
121
122
|
blockquote: Citácia
|
|
122
123
|
code_block: Blok kódu
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Tučné
|
|
125
126
|
italic: Kurzíva
|
|
127
|
+
underline: Podčiarknuté
|
|
126
128
|
strikethrough: Prečiarknuté
|
|
127
129
|
code: Kód
|
|
128
130
|
link: Odkaz
|
package/dist/locales/sv.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Rubrik 6
|
|
119
119
|
bulleted_list: Punktlista
|
|
120
120
|
numbered_list: Numrerad lista
|
|
121
|
+
task_list: Uppgiftslista
|
|
121
122
|
blockquote: Blockcitat
|
|
122
123
|
code_block: Kodblock
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Fet
|
|
125
126
|
italic: Kursiv
|
|
127
|
+
underline: Understruken
|
|
126
128
|
strikethrough: Genomstruken
|
|
127
129
|
code: Kod
|
|
128
130
|
link: Länk
|
package/dist/locales/tr.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Başlık 6
|
|
119
119
|
bulleted_list: Madde İşaretli Liste
|
|
120
120
|
numbered_list: Numaralı Liste
|
|
121
|
+
task_list: Görev Listesi
|
|
121
122
|
blockquote: Alıntı
|
|
122
123
|
code_block: Kod Bloğu
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Kalın
|
|
125
126
|
italic: İtalik
|
|
127
|
+
underline: Altı Çizili
|
|
126
128
|
strikethrough: Üstü Çizili
|
|
127
129
|
code: Kod
|
|
128
130
|
link: Bağlantı
|
package/dist/locales/uk.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Заголовок 6
|
|
119
119
|
bulleted_list: Маркований список
|
|
120
120
|
numbered_list: Нумерований список
|
|
121
|
+
task_list: Список завдань
|
|
121
122
|
blockquote: Цитата
|
|
122
123
|
code_block: Блок коду
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: Жирний
|
|
125
126
|
italic: Курсив
|
|
127
|
+
underline: Підкреслений
|
|
126
128
|
strikethrough: Закреслений
|
|
127
129
|
code: Код
|
|
128
130
|
link: Посилання
|
package/dist/locales/vi.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: Tiêu đề 6
|
|
119
119
|
bulleted_list: Dấu đầu dòng
|
|
120
120
|
numbered_list: Đánh số
|
|
121
|
+
task_list: Danh sách công việc
|
|
121
122
|
blockquote: Trích dẫn
|
|
122
123
|
code_block: Khối mã
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: In đậm
|
|
125
126
|
italic: In nghiêng
|
|
127
|
+
underline: Gạch chân
|
|
126
128
|
strikethrough: Gạch ngang
|
|
127
129
|
code: Mã
|
|
128
130
|
link: Liên kết
|
package/dist/locales/zh-CN.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: 六级标题
|
|
119
119
|
bulleted_list: 无序列表
|
|
120
120
|
numbered_list: 有序列表
|
|
121
|
+
task_list: 任务列表
|
|
121
122
|
blockquote: 引用块
|
|
122
123
|
code_block: 代码块
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: 加粗
|
|
125
126
|
italic: 斜体
|
|
127
|
+
underline: 下划线
|
|
126
128
|
strikethrough: 删除线
|
|
127
129
|
code: 代码
|
|
128
130
|
link: 链接
|
package/dist/locales/zh-TW.yaml
CHANGED
|
@@ -118,11 +118,13 @@ text_editor:
|
|
|
118
118
|
heading_6: 標題 6
|
|
119
119
|
bulleted_list: 項目符號清單
|
|
120
120
|
numbered_list: 編號清單
|
|
121
|
+
task_list: 待辦清單
|
|
121
122
|
blockquote: 引言區塊
|
|
122
123
|
code_block: 程式碼區塊
|
|
123
124
|
# Inline style button aria-labels
|
|
124
125
|
bold: 粗體
|
|
125
126
|
italic: 斜體
|
|
127
|
+
underline: 底線
|
|
126
128
|
strikethrough: 刪除線
|
|
127
129
|
code: 程式碼
|
|
128
130
|
link: 連結
|
package/dist/typedefs.d.ts
CHANGED
|
@@ -141,7 +141,16 @@ export type ModalProps = {
|
|
|
141
141
|
*/
|
|
142
142
|
open?: boolean | undefined;
|
|
143
143
|
/**
|
|
144
|
-
* Whether to show the
|
|
144
|
+
* Whether to show the `<dialog>` element as a modal, which makes the
|
|
145
|
+
* rest of the page `inert` until it’s closed. Default: `true`. If `false`, the page can still be
|
|
146
|
+
* scrolled and used while the dialog is open, and the Escape key only dismisses the dialog while
|
|
147
|
+
* the focus is within it. `lightDismiss` has no effect then, as clicks outside the content go to
|
|
148
|
+
* the page.
|
|
149
|
+
*/
|
|
150
|
+
modal?: boolean | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* Whether to show the backdrop. Default: `false` on a bare
|
|
153
|
+
* modal; components built on it, like `<Dialog>`, may choose another.
|
|
145
154
|
*/
|
|
146
155
|
showBackdrop?: boolean | undefined;
|
|
147
156
|
/**
|
|
@@ -230,6 +239,24 @@ export type DialogProps = {
|
|
|
230
239
|
* Whether to open the dialog.
|
|
231
240
|
*/
|
|
232
241
|
open?: boolean | undefined;
|
|
242
|
+
/**
|
|
243
|
+
* Whether to open the dialog as a modal, which makes the rest of the
|
|
244
|
+
* page `inert` and dims it with a backdrop. Default: `true`. If `false`, the page can still be
|
|
245
|
+
* scrolled and used while the dialog is open, so the user can refer to it before answering.
|
|
246
|
+
*/
|
|
247
|
+
modal?: boolean | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* Whether to dim the page behind the dialog. Default: the value
|
|
250
|
+
* of `modal`. A non-modal dialog can have one as well to make it stand out, while the page behind
|
|
251
|
+
* it can still be scrolled and used.
|
|
252
|
+
*/
|
|
253
|
+
showBackdrop?: boolean | undefined;
|
|
254
|
+
/**
|
|
255
|
+
* Whether the user can move the dialog around by dragging its header,
|
|
256
|
+
* so as to see what’s behind it. The dialog is kept within the viewport, and goes back to the
|
|
257
|
+
* center whenever it’s opened or the viewport is resized. Default: `false`.
|
|
258
|
+
*/
|
|
259
|
+
movable?: boolean | undefined;
|
|
233
260
|
/**
|
|
234
261
|
* Whether to show the Close button on the header.
|
|
235
262
|
*/
|
|
@@ -723,8 +750,11 @@ export type InputEventHandlers = {
|
|
|
723
750
|
};
|
|
724
751
|
export type PopupPosition = ("top-left" | "top-right" | "right-top" | "right-bottom" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom");
|
|
725
752
|
export type ToastPosition = "auto" | "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
726
|
-
export type TextEditorBlockType = "paragraph" | "heading-1" | "heading-2" | "heading-3" | "heading-4" | "heading-5" | "heading-6" | "bulleted-list" | "numbered-list" | "blockquote" | "code-block";
|
|
727
|
-
|
|
753
|
+
export type TextEditorBlockType = "paragraph" | "heading-1" | "heading-2" | "heading-3" | "heading-4" | "heading-5" | "heading-6" | "bulleted-list" | "numbered-list" | "task-list" | "blockquote" | "code-block";
|
|
754
|
+
/**
|
|
755
|
+
* Inline text format. `underline` is only available for HTML, as Markdown has no syntax for it.
|
|
756
|
+
*/
|
|
757
|
+
export type TextEditorFormatType = "bold" | "italic" | "underline" | "strikethrough" | "code";
|
|
728
758
|
export type TextEditorInlineType = TextEditorFormatType | "link";
|
|
729
759
|
export type TextEditorNodeType = TextEditorBlockType | TextEditorInlineType | "table" | "horizontal-rule" | "align";
|
|
730
760
|
export type TextEditorMode = "rich-text" | "plain-text";
|