@sveltia/ui 0.81.3 → 0.82.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.
Files changed (68) hide show
  1. package/dist/components/drawer/drawer.svelte.d.ts +2 -2
  2. package/dist/components/text-editor/alignment.d.ts +2 -0
  3. package/dist/components/text-editor/alignment.js +40 -0
  4. package/dist/components/text-editor/block.d.ts +4 -0
  5. package/dist/components/text-editor/block.js +65 -0
  6. package/dist/components/text-editor/constants.d.ts +22 -2
  7. package/dist/components/text-editor/constants.js +40 -1
  8. package/dist/components/text-editor/core.d.ts +7 -0
  9. package/dist/components/text-editor/core.js +61 -7
  10. package/dist/components/text-editor/floating-link-editor.svelte +58 -6
  11. package/dist/components/text-editor/html.js +21 -4
  12. package/dist/components/text-editor/lexical-root.svelte +27 -0
  13. package/dist/components/text-editor/shiki/version.d.ts +1 -1
  14. package/dist/components/text-editor/shiki/version.js +1 -1
  15. package/dist/components/text-editor/table-cell-menu-button.svelte +228 -0
  16. package/dist/components/text-editor/table-cell-menu-button.svelte.d.ts +12 -0
  17. package/dist/components/text-editor/table.d.ts +18 -0
  18. package/dist/components/text-editor/table.js +277 -0
  19. package/dist/components/text-editor/text-editor.svelte +5 -0
  20. package/dist/components/text-editor/toolbar/align-menu-button.svelte +84 -0
  21. package/dist/components/text-editor/toolbar/align-menu-button.svelte.d.ts +10 -0
  22. package/dist/components/text-editor/toolbar/insert-horizontal-rule-button.svelte +65 -0
  23. package/dist/components/text-editor/toolbar/insert-horizontal-rule-button.svelte.d.ts +30 -0
  24. package/dist/components/text-editor/toolbar/insert-link-button.svelte +17 -1
  25. package/dist/components/text-editor/toolbar/insert-table-button.svelte +209 -0
  26. package/dist/components/text-editor/toolbar/insert-table-button.svelte.d.ts +24 -0
  27. package/dist/components/text-editor/toolbar/menu.d.ts +1 -0
  28. package/dist/components/text-editor/toolbar/menu.js +32 -0
  29. package/dist/components/text-editor/toolbar/table-action-menu.svelte +96 -0
  30. package/dist/components/text-editor/toolbar/table-action-menu.svelte.d.ts +21 -0
  31. package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte +75 -7
  32. package/dist/components/text-editor/transformers/hr.d.ts +5 -0
  33. package/dist/components/text-editor/transformers/hr.js +7 -1
  34. package/dist/components/text-editor/transformers/table.js +3 -2
  35. package/dist/locales/ar.yaml +28 -0
  36. package/dist/locales/bg.yaml +28 -0
  37. package/dist/locales/ca.yaml +28 -0
  38. package/dist/locales/cs.yaml +28 -0
  39. package/dist/locales/da.yaml +28 -0
  40. package/dist/locales/de.yaml +28 -0
  41. package/dist/locales/el.yaml +28 -0
  42. package/dist/locales/en-CA.yaml +28 -0
  43. package/dist/locales/en-GB.yaml +28 -0
  44. package/dist/locales/en-US.yaml +28 -0
  45. package/dist/locales/es-CO.yaml +28 -0
  46. package/dist/locales/fa.yaml +28 -0
  47. package/dist/locales/fi.yaml +28 -0
  48. package/dist/locales/fr.yaml +28 -0
  49. package/dist/locales/he.yaml +28 -0
  50. package/dist/locales/hr.yaml +28 -0
  51. package/dist/locales/it.yaml +28 -0
  52. package/dist/locales/ja.yaml +28 -0
  53. package/dist/locales/ko.yaml +28 -0
  54. package/dist/locales/nl.yaml +28 -0
  55. package/dist/locales/pl.yaml +28 -0
  56. package/dist/locales/pt-BR.yaml +28 -0
  57. package/dist/locales/pt-PT.yaml +28 -0
  58. package/dist/locales/ru.yaml +28 -0
  59. package/dist/locales/sk.yaml +28 -0
  60. package/dist/locales/sv.yaml +28 -0
  61. package/dist/locales/tr.yaml +28 -0
  62. package/dist/locales/uk.yaml +28 -0
  63. package/dist/locales/vi.yaml +28 -0
  64. package/dist/locales/zh-CN.yaml +28 -0
  65. package/dist/locales/zh-TW.yaml +28 -0
  66. package/dist/typedefs.d.ts +10 -1
  67. package/dist/typedefs.js +5 -1
  68. package/package.json +1 -1
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: 텍스트
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: 새 탭에서 열기
139
+ # Table dialog title
140
+ insert_table: 표 삽입
141
+ # Table dialog input field labels
142
+ rows: 행
143
+ columns: 열
144
+ # Table menu button and menu aria-labels
145
+ table_options: 표 옵션
146
+ show_table_options: 표 옵션 표시
147
+ # Table menu items
148
+ insert_row_above: 위에 행 삽입
149
+ insert_row_below: 아래에 행 삽입
150
+ insert_column_left: 왼쪽에 열 삽입
151
+ insert_column_right: 오른쪽에 열 삽입
152
+ delete_row: 행 삭제
153
+ delete_column: 열 삭제
154
+ delete_table: 표 삭제
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: 가로줄 삽입
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: 정렬 옵션
159
+ show_alignment_options: 정렬 옵션 표시
160
+ # Alignment menu items
161
+ align_left: 왼쪽 정렬
162
+ align_center: 가운데 정렬
163
+ align_right: 오른쪽 정렬
164
+ align_justify: 양쪽 정렬
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: 마크다운으로 편집
139
167
  # HTML mode toggle button aria-label
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: Tekst
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: Openen in nieuw tabblad
139
+ # Table dialog title
140
+ insert_table: Tabel invoegen
141
+ # Table dialog input field labels
142
+ rows: Rijen
143
+ columns: Kolommen
144
+ # Table menu button and menu aria-labels
145
+ table_options: Tabelopties
146
+ show_table_options: Tabelopties tonen
147
+ # Table menu items
148
+ insert_row_above: Rij erboven invoegen
149
+ insert_row_below: Rij eronder invoegen
150
+ insert_column_left: Kolom links invoegen
151
+ insert_column_right: Kolom rechts invoegen
152
+ delete_row: Rij verwijderen
153
+ delete_column: Kolom verwijderen
154
+ delete_table: Tabel verwijderen
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: Horizontale lijn invoegen
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: Uitlijningsopties
159
+ show_alignment_options: Uitlijningsopties tonen
160
+ # Alignment menu items
161
+ align_left: Links uitlijnen
162
+ align_center: Centreren
163
+ align_right: Rechts uitlijnen
164
+ align_justify: Uitvullen
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: Bewerken in Markdown
139
167
  # HTML mode toggle button aria-label
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: Tekst
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: Otwórz w nowej karcie
139
+ # Table dialog title
140
+ insert_table: Wstaw tabelę
141
+ # Table dialog input field labels
142
+ rows: Wiersze
143
+ columns: Kolumny
144
+ # Table menu button and menu aria-labels
145
+ table_options: Opcje tabeli
146
+ show_table_options: Pokaż opcje tabeli
147
+ # Table menu items
148
+ insert_row_above: Wstaw wiersz powyżej
149
+ insert_row_below: Wstaw wiersz poniżej
150
+ insert_column_left: Wstaw kolumnę po lewej
151
+ insert_column_right: Wstaw kolumnę po prawej
152
+ delete_row: Usuń wiersz
153
+ delete_column: Usuń kolumnę
154
+ delete_table: Usuń tabelę
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: Wstaw linię poziomą
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: Opcje wyrównania
159
+ show_alignment_options: Pokaż opcje wyrównania
160
+ # Alignment menu items
161
+ align_left: Wyrównaj do lewej
162
+ align_center: Wyśrodkuj
163
+ align_right: Wyrównaj do prawej
164
+ align_justify: Wyjustuj
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: Edytuj w Markdown
139
167
  # HTML mode toggle button aria-label
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: Texto
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: Abrir em uma nova guia
139
+ # Table dialog title
140
+ insert_table: Inserir tabela
141
+ # Table dialog input field labels
142
+ rows: Linhas
143
+ columns: Colunas
144
+ # Table menu button and menu aria-labels
145
+ table_options: Opções de tabela
146
+ show_table_options: Mostrar opções de tabela
147
+ # Table menu items
148
+ insert_row_above: Inserir linha acima
149
+ insert_row_below: Inserir linha abaixo
150
+ insert_column_left: Inserir coluna à esquerda
151
+ insert_column_right: Inserir coluna à direita
152
+ delete_row: Excluir linha
153
+ delete_column: Excluir coluna
154
+ delete_table: Excluir tabela
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: Inserir linha horizontal
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: Opções de alinhamento
159
+ show_alignment_options: Mostrar opções de alinhamento
160
+ # Alignment menu items
161
+ align_left: Alinhar à esquerda
162
+ align_center: Centralizar
163
+ align_right: Alinhar à direita
164
+ align_justify: Justificar
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: Editar em Markdown
139
167
  # HTML mode toggle button aria-label
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: Texto
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: Abrir num novo separador
139
+ # Table dialog title
140
+ insert_table: Inserir tabela
141
+ # Table dialog input field labels
142
+ rows: Linhas
143
+ columns: Colunas
144
+ # Table menu button and menu aria-labels
145
+ table_options: Opções de tabela
146
+ show_table_options: Mostrar opções de tabela
147
+ # Table menu items
148
+ insert_row_above: Inserir linha acima
149
+ insert_row_below: Inserir linha abaixo
150
+ insert_column_left: Inserir coluna à esquerda
151
+ insert_column_right: Inserir coluna à direita
152
+ delete_row: Eliminar linha
153
+ delete_column: Eliminar coluna
154
+ delete_table: Eliminar tabela
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: Inserir linha horizontal
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: Opções de alinhamento
159
+ show_alignment_options: Mostrar opções de alinhamento
160
+ # Alignment menu items
161
+ align_left: Alinhar à esquerda
162
+ align_center: Centrar
163
+ align_right: Alinhar à direita
164
+ align_justify: Justificar
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: Editar em Markdown
139
167
  # HTML mode toggle button aria-label
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: Текст
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: Открыть в новой вкладке
139
+ # Table dialog title
140
+ insert_table: Вставить таблицу
141
+ # Table dialog input field labels
142
+ rows: Строки
143
+ columns: Столбцы
144
+ # Table menu button and menu aria-labels
145
+ table_options: Параметры таблицы
146
+ show_table_options: Показать параметры таблицы
147
+ # Table menu items
148
+ insert_row_above: Вставить строку выше
149
+ insert_row_below: Вставить строку ниже
150
+ insert_column_left: Вставить столбец слева
151
+ insert_column_right: Вставить столбец справа
152
+ delete_row: Удалить строку
153
+ delete_column: Удалить столбец
154
+ delete_table: Удалить таблицу
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: Вставить горизонтальную линию
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: Параметры выравнивания
159
+ show_alignment_options: Показать параметры выравнивания
160
+ # Alignment menu items
161
+ align_left: По левому краю
162
+ align_center: По центру
163
+ align_right: По правому краю
164
+ align_justify: По ширине
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: Редактировать в Markdown
139
167
  # HTML mode toggle button aria-label
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: Text
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: Otvoriť na novej karte
139
+ # Table dialog title
140
+ insert_table: Vložiť tabuľku
141
+ # Table dialog input field labels
142
+ rows: Riadky
143
+ columns: Stĺpce
144
+ # Table menu button and menu aria-labels
145
+ table_options: Možnosti tabuľky
146
+ show_table_options: Zobraziť možnosti tabuľky
147
+ # Table menu items
148
+ insert_row_above: Vložiť riadok nad
149
+ insert_row_below: Vložiť riadok pod
150
+ insert_column_left: Vložiť stĺpec vľavo
151
+ insert_column_right: Vložiť stĺpec vpravo
152
+ delete_row: Odstrániť riadok
153
+ delete_column: Odstrániť stĺpec
154
+ delete_table: Odstrániť tabuľku
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: Vložiť vodorovnú čiaru
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: Možnosti zarovnania
159
+ show_alignment_options: Zobraziť možnosti zarovnania
160
+ # Alignment menu items
161
+ align_left: Zarovnať doľava
162
+ align_center: Zarovnať na stred
163
+ align_right: Zarovnať doprava
164
+ align_justify: Zarovnať do bloku
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: Upraviť v Markdowne
139
167
  # HTML mode toggle button aria-label
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: Text
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: Öppna i ny flik
139
+ # Table dialog title
140
+ insert_table: Infoga tabell
141
+ # Table dialog input field labels
142
+ rows: Rader
143
+ columns: Kolumner
144
+ # Table menu button and menu aria-labels
145
+ table_options: Tabellinställningar
146
+ show_table_options: Visa tabellinställningar
147
+ # Table menu items
148
+ insert_row_above: Infoga rad ovanför
149
+ insert_row_below: Infoga rad nedanför
150
+ insert_column_left: Infoga kolumn till vänster
151
+ insert_column_right: Infoga kolumn till höger
152
+ delete_row: Ta bort rad
153
+ delete_column: Ta bort kolumn
154
+ delete_table: Ta bort tabell
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: Infoga horisontell linje
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: Justeringsinställningar
159
+ show_alignment_options: Visa justeringsinställningar
160
+ # Alignment menu items
161
+ align_left: Vänsterjustera
162
+ align_center: Centrera
163
+ align_right: Högerjustera
164
+ align_justify: Marginaljustera
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: Redigera som Markdown
139
167
  # HTML mode toggle button aria-label
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: Metin
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: Yeni Sekmede Aç
139
+ # Table dialog title
140
+ insert_table: Tablo Ekle
141
+ # Table dialog input field labels
142
+ rows: Satırlar
143
+ columns: Sütunlar
144
+ # Table menu button and menu aria-labels
145
+ table_options: Tablo Seçenekleri
146
+ show_table_options: Tablo Seçeneklerini Göster
147
+ # Table menu items
148
+ insert_row_above: Üste Satır Ekle
149
+ insert_row_below: Alta Satır Ekle
150
+ insert_column_left: Sola Sütun Ekle
151
+ insert_column_right: Sağa Sütun Ekle
152
+ delete_row: Satırı Sil
153
+ delete_column: Sütunu Sil
154
+ delete_table: Tabloyu Sil
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: Yatay Çizgi Ekle
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: Hizalama Seçenekleri
159
+ show_alignment_options: Hizalama Seçeneklerini Göster
160
+ # Alignment menu items
161
+ align_left: Sola Hizala
162
+ align_center: Ortala
163
+ align_right: Sağa Hizala
164
+ align_justify: İki Yana Yasla
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: Markdown ile Düzenle
139
167
  # HTML mode toggle button aria-label
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: Текст
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: Відкрити в новій вкладці
139
+ # Table dialog title
140
+ insert_table: Вставити таблицю
141
+ # Table dialog input field labels
142
+ rows: Рядки
143
+ columns: Стовпці
144
+ # Table menu button and menu aria-labels
145
+ table_options: Параметри таблиці
146
+ show_table_options: Показати параметри таблиці
147
+ # Table menu items
148
+ insert_row_above: Вставити рядок вище
149
+ insert_row_below: Вставити рядок нижче
150
+ insert_column_left: Вставити стовпець ліворуч
151
+ insert_column_right: Вставити стовпець праворуч
152
+ delete_row: Видалити рядок
153
+ delete_column: Видалити стовпець
154
+ delete_table: Видалити таблицю
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: Вставити горизонтальну лінію
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: Параметри вирівнювання
159
+ show_alignment_options: Показати параметри вирівнювання
160
+ # Alignment menu items
161
+ align_left: За лівим краєм
162
+ align_center: По центру
163
+ align_right: За правим краєм
164
+ align_justify: За шириною
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: Редагувати в Markdown
139
167
  # HTML mode toggle button aria-label
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: Văn bản
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: Mở trong thẻ mới
139
+ # Table dialog title
140
+ insert_table: Chèn bảng
141
+ # Table dialog input field labels
142
+ rows: Số hàng
143
+ columns: Số cột
144
+ # Table menu button and menu aria-labels
145
+ table_options: Tùy chọn bảng
146
+ show_table_options: Hiện tùy chọn bảng
147
+ # Table menu items
148
+ insert_row_above: Chèn hàng phía trên
149
+ insert_row_below: Chèn hàng phía dưới
150
+ insert_column_left: Chèn cột bên trái
151
+ insert_column_right: Chèn cột bên phải
152
+ delete_row: Xóa hàng
153
+ delete_column: Xóa cột
154
+ delete_table: Xóa bảng
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: Chèn đường kẻ ngang
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: Tùy chọn căn lề
159
+ show_alignment_options: Hiện tùy chọn căn lề
160
+ # Alignment menu items
161
+ align_left: Căn trái
162
+ align_center: Căn giữa
163
+ align_right: Căn phải
164
+ align_justify: Căn đều
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: Chỉnh sửa bằng Markdown
139
167
  # HTML mode toggle button aria-label
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: 文字
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: 在新标签页中打开
139
+ # Table dialog title
140
+ insert_table: 插入表格
141
+ # Table dialog input field labels
142
+ rows: 行数
143
+ columns: 列数
144
+ # Table menu button and menu aria-labels
145
+ table_options: 表格选项
146
+ show_table_options: 显示表格选项
147
+ # Table menu items
148
+ insert_row_above: 在上方插入行
149
+ insert_row_below: 在下方插入行
150
+ insert_column_left: 在左侧插入列
151
+ insert_column_right: 在右侧插入列
152
+ delete_row: 删除行
153
+ delete_column: 删除列
154
+ delete_table: 删除表格
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: 插入水平线
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: 对齐选项
159
+ show_alignment_options: 显示对齐选项
160
+ # Alignment menu items
161
+ align_left: 左对齐
162
+ align_center: 居中对齐
163
+ align_right: 右对齐
164
+ align_justify: 两端对齐
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: 以 Markdown 编辑
139
167
  # HTML mode toggle button aria-label
@@ -134,6 +134,34 @@ text_editor:
134
134
  # Link dialog input field labels
135
135
  text: 文字
136
136
  url: URL
137
+ # Link dialog checkbox label and floating link editor button aria-label
138
+ open_in_new_tab: 在新分頁中開啟
139
+ # Table dialog title
140
+ insert_table: 插入表格
141
+ # Table dialog input field labels
142
+ rows: 列數
143
+ columns: 欄數
144
+ # Table menu button and menu aria-labels
145
+ table_options: 表格選項
146
+ show_table_options: 顯示表格選項
147
+ # Table menu items
148
+ insert_row_above: 在上方插入列
149
+ insert_row_below: 在下方插入列
150
+ insert_column_left: 在左側插入欄
151
+ insert_column_right: 在右側插入欄
152
+ delete_row: 刪除列
153
+ delete_column: 刪除欄
154
+ delete_table: 刪除表格
155
+ # Horizontal rule button aria-label
156
+ insert_horizontal_rule: 插入水平線
157
+ # Alignment menu button and menu aria-labels
158
+ alignment_options: 對齊選項
159
+ show_alignment_options: 顯示對齊選項
160
+ # Alignment menu items
161
+ align_left: 靠左對齊
162
+ align_center: 置中對齊
163
+ align_right: 靠右對齊
164
+ align_justify: 左右對齊
137
165
  # Markdown mode toggle button aria-label
138
166
  edit_in_markdown: 以 Markdown 編輯
139
167
  # HTML mode toggle button aria-label
@@ -726,7 +726,7 @@ export type ToastPosition = "auto" | "top-left" | "top-center" | "top-right" | "
726
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
727
  export type TextEditorFormatType = "bold" | "italic" | "strikethrough" | "code";
728
728
  export type TextEditorInlineType = TextEditorFormatType | "link";
729
- export type TextEditorNodeType = TextEditorBlockType | TextEditorInlineType;
729
+ export type TextEditorNodeType = TextEditorBlockType | TextEditorInlineType | "table" | "horizontal-rule" | "align";
730
730
  export type TextEditorMode = "rich-text" | "plain-text";
731
731
  export type TextEditorValueFormat = "markdown" | "html";
732
732
  export type TextEditorComponent = {
@@ -998,6 +998,15 @@ export type TextEditorSelectionState = {
998
998
  * Inline level types of the current selection.
999
999
  */
1000
1000
  inlineTypes: TextEditorInlineType[];
1001
+ /**
1002
+ * Key of the table cell the selection is in, if any.
1003
+ */
1004
+ tableCellKey?: string | null | undefined;
1005
+ /**
1006
+ * Text alignment of the block the
1007
+ * selection is in. An empty string means the default alignment.
1008
+ */
1009
+ alignment?: import("lexical").ElementFormatType | undefined;
1001
1010
  };
1002
1011
  export type TextEditorStore = {
1003
1012
  /**
package/dist/typedefs.js CHANGED
@@ -300,7 +300,8 @@
300
300
  */
301
301
 
302
302
  /**
303
- * @typedef {TextEditorBlockType | TextEditorInlineType} TextEditorNodeType
303
+ * @typedef {TextEditorBlockType | TextEditorInlineType | 'table' | 'horizontal-rule' | 'align'}
304
+ * TextEditorNodeType
304
305
  */
305
306
 
306
307
  /**
@@ -435,6 +436,9 @@
435
436
  * @property {?string} blockNodeKey Block level node key.
436
437
  * @property {TextEditorBlockType} blockType Block level type of the current selection.
437
438
  * @property {TextEditorInlineType[]} inlineTypes Inline level types of the current selection.
439
+ * @property {?string} [tableCellKey] Key of the table cell the selection is in, if any.
440
+ * @property {import('lexical').ElementFormatType} [alignment] Text alignment of the block the
441
+ * selection is in. An empty string means the default alignment.
438
442
  */
439
443
 
440
444
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.81.3",
3
+ "version": "0.82.0",
4
4
  "description": "A collection of Svelte components and utilities for building user interfaces.",
5
5
  "repository": {
6
6
  "type": "git",