diff --git a/l10n/be/viewer.ftl b/l10n/be/viewer.ftl index c671f3bc0809c..1439bb586c14b 100644 --- a/l10n/be/viewer.ftl +++ b/l10n/be/viewer.ftl @@ -303,8 +303,6 @@ pdfjs-editor-ink-button-label = Маляваць pdfjs-editor-stamp-button = .title = Дадаць або змяніць выявы pdfjs-editor-stamp-button-label = Дадаць або змяніць выявы -pdfjs-editor-remove-button = - .title = Выдаліць pdfjs-editor-highlight-button = .title = Вылучэнне pdfjs-editor-highlight-button-label = Вылучэнне @@ -331,6 +329,10 @@ pdfjs-editor-ink-opacity-input = Непразрыстасць pdfjs-editor-stamp-add-image-button = .title = Дадаць выяву pdfjs-editor-stamp-add-image-button-label = Дадаць выяву +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Таўшчыня +pdfjs-editor-free-highlight-thickness-title = + .title = Змяняць таўшчыню пры вылучэнні іншых элементаў, акрамя тэксту pdfjs-free-text = .aria-label = Тэкставы рэдактар pdfjs-free-text-default-content = Пачніце набор тэксту… diff --git a/l10n/cy/viewer.ftl b/l10n/cy/viewer.ftl index 52fd91043c948..fb966b2ec486c 100644 --- a/l10n/cy/viewer.ftl +++ b/l10n/cy/viewer.ftl @@ -23,11 +23,11 @@ pdfjs-of-pages = o { $pagesCount } # $pagesCount (Number) - the total number of pages in the document pdfjs-page-of-pages = ({ $pageNumber } o { $pagesCount }) pdfjs-zoom-out-button = - .title = Chwyddo Allan -pdfjs-zoom-out-button-label = Chwyddo Allan + .title = Lleihau +pdfjs-zoom-out-button-label = Lleihau pdfjs-zoom-in-button = - .title = Chwyddo Mewn -pdfjs-zoom-in-button-label = Chwyddo Mewn + .title = Cynyddu +pdfjs-zoom-in-button-label = Cynyddu pdfjs-zoom-select = .title = Chwyddo pdfjs-presentation-mode-button = @@ -309,8 +309,6 @@ pdfjs-editor-ink-button-label = Lluniadu pdfjs-editor-stamp-button = .title = Ychwanegu neu olygu delweddau pdfjs-editor-stamp-button-label = Ychwanegu neu olygu delweddau -pdfjs-editor-remove-button = - .title = Tynnu pdfjs-editor-highlight-button = .title = Amlygu pdfjs-editor-highlight-button-label = Amlygu @@ -337,6 +335,10 @@ pdfjs-editor-ink-opacity-input = Didreiddedd pdfjs-editor-stamp-add-image-button = .title = Ychwanegu delwedd pdfjs-editor-stamp-add-image-button-label = Ychwanegu delwedd +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Trwch +pdfjs-editor-free-highlight-thickness-title = + .title = Newid trwch wrth amlygu eitemau heblaw testun pdfjs-free-text = .aria-label = Golygydd Testun pdfjs-free-text-default-content = Cychwyn teipio… diff --git a/l10n/de/viewer.ftl b/l10n/de/viewer.ftl index adfdb0063004a..254f0081fae86 100644 --- a/l10n/de/viewer.ftl +++ b/l10n/de/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Zeichnen pdfjs-editor-stamp-button = .title = Grafiken hinzufügen oder bearbeiten pdfjs-editor-stamp-button-label = Grafiken hinzufügen oder bearbeiten -pdfjs-editor-remove-button = - .title = Entfernen pdfjs-editor-highlight-button = .title = Hervorheben pdfjs-editor-highlight-button-label = Hervorheben @@ -324,11 +322,15 @@ pdfjs-editor-remove-highlight-button = pdfjs-editor-free-text-color-input = Farbe pdfjs-editor-free-text-size-input = Größe pdfjs-editor-ink-color-input = Farbe -pdfjs-editor-ink-thickness-input = Dicke +pdfjs-editor-ink-thickness-input = Linienstärke pdfjs-editor-ink-opacity-input = Deckkraft pdfjs-editor-stamp-add-image-button = .title = Grafik hinzufügen pdfjs-editor-stamp-add-image-button-label = Grafik hinzufügen +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Linienstärke +pdfjs-editor-free-highlight-thickness-title = + .title = Linienstärke beim Hervorheben anderer Elemente als Text ändern pdfjs-free-text = .aria-label = Texteditor pdfjs-free-text-default-content = Schreiben beginnen… diff --git a/l10n/dsb/viewer.ftl b/l10n/dsb/viewer.ftl index d7ec5c219b96c..4e7b89544dbec 100644 --- a/l10n/dsb/viewer.ftl +++ b/l10n/dsb/viewer.ftl @@ -305,8 +305,6 @@ pdfjs-editor-ink-button-label = Kresliś pdfjs-editor-stamp-button = .title = Wobraze pśidaś abo wobźěłaś pdfjs-editor-stamp-button-label = Wobraze pśidaś abo wobźěłaś -pdfjs-editor-remove-button = - .title = Wótwónoźeś pdfjs-editor-highlight-button = .title = Wuzwignuś pdfjs-editor-highlight-button-label = Wuzwignuś @@ -333,6 +331,10 @@ pdfjs-editor-ink-opacity-input = Opacita pdfjs-editor-stamp-add-image-button = .title = Wobraz pśidaś pdfjs-editor-stamp-add-image-button-label = Wobraz pśidaś +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Tłustosć +pdfjs-editor-free-highlight-thickness-title = + .title = Tłustosć změniś, gaž se zapiski wuzwiguju, kótarež tekst njejsu pdfjs-free-text = .aria-label = Tekstowy editor pdfjs-free-text-default-content = Zachopśo pisaś… diff --git a/l10n/el/viewer.ftl b/l10n/el/viewer.ftl index c4cdf2cac3a45..7bd8c4dd500d4 100644 --- a/l10n/el/viewer.ftl +++ b/l10n/el/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Σχέδιο pdfjs-editor-stamp-button = .title = Προσθήκη ή επεξεργασία εικόνων pdfjs-editor-stamp-button-label = Προσθήκη ή επεξεργασία εικόνων -pdfjs-editor-remove-button = - .title = Αφαίρεση pdfjs-editor-highlight-button = .title = Επισήμανση pdfjs-editor-highlight-button-label = Επισήμανση @@ -329,6 +327,8 @@ pdfjs-editor-ink-opacity-input = Αδιαφάνεια pdfjs-editor-stamp-add-image-button = .title = Προσθήκη εικόνας pdfjs-editor-stamp-add-image-button-label = Προσθήκη εικόνας +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Πάχος pdfjs-free-text = .aria-label = Επεξεργασία κειμένου pdfjs-free-text-default-content = Ξεκινήστε να πληκτρολογείτε… diff --git a/l10n/en-GB/viewer.ftl b/l10n/en-GB/viewer.ftl index 4d08a25c04738..00c377da37340 100644 --- a/l10n/en-GB/viewer.ftl +++ b/l10n/en-GB/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Draw pdfjs-editor-stamp-button = .title = Add or edit images pdfjs-editor-stamp-button-label = Add or edit images -pdfjs-editor-remove-button = - .title = Remove pdfjs-editor-highlight-button = .title = Highlight pdfjs-editor-highlight-button-label = Highlight @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Opacity pdfjs-editor-stamp-add-image-button = .title = Add image pdfjs-editor-stamp-add-image-button-label = Add image +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Thickness +pdfjs-editor-free-highlight-thickness-title = + .title = Change thickness when highlighting items other than text pdfjs-free-text = .aria-label = Text Editor pdfjs-free-text-default-content = Start typing… diff --git a/l10n/es-AR/viewer.ftl b/l10n/es-AR/viewer.ftl index 5d533a5fbfb31..34b7ea911fdd1 100644 --- a/l10n/es-AR/viewer.ftl +++ b/l10n/es-AR/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Dibujar pdfjs-editor-stamp-button = .title = Agregar o editar imágenes pdfjs-editor-stamp-button-label = Agregar o editar imágenes -pdfjs-editor-remove-button = - .title = Eliminar pdfjs-editor-highlight-button = .title = Resaltar pdfjs-editor-highlight-button-label = Resaltar @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Opacidad pdfjs-editor-stamp-add-image-button = .title = Agregar una imagen pdfjs-editor-stamp-add-image-button-label = Agregar una imagen +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Grosor +pdfjs-editor-free-highlight-thickness-title = + .title = Cambiar el grosor al resaltar elementos que no sean texto pdfjs-free-text = .aria-label = Editor de texto pdfjs-free-text-default-content = Empezar a tipear… diff --git a/l10n/es-CL/viewer.ftl b/l10n/es-CL/viewer.ftl index c985c3c47b9a3..c286aaee2564b 100644 --- a/l10n/es-CL/viewer.ftl +++ b/l10n/es-CL/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Dibujar pdfjs-editor-stamp-button = .title = Añadir o editar imágenes pdfjs-editor-stamp-button-label = Añadir o editar imágenes -pdfjs-editor-remove-button = - .title = Eliminar pdfjs-editor-highlight-button = .title = Destacar pdfjs-editor-highlight-button-label = Destacar @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Opacidad pdfjs-editor-stamp-add-image-button = .title = Añadir imagen pdfjs-editor-stamp-add-image-button-label = Añadir imagen +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Grosor +pdfjs-editor-free-highlight-thickness-title = + .title = Cambia el grosor al resaltar elementos que no sean texto pdfjs-free-text = .aria-label = Editor de texto pdfjs-free-text-default-content = Empieza a escribir… diff --git a/l10n/fi/viewer.ftl b/l10n/fi/viewer.ftl index 39658a9bbbd1b..e8e5d01e33b58 100644 --- a/l10n/fi/viewer.ftl +++ b/l10n/fi/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Piirros pdfjs-editor-stamp-button = .title = Lisää tai muokkaa kuvia pdfjs-editor-stamp-button-label = Lisää tai muokkaa kuvia -pdfjs-editor-remove-button = - .title = Poista pdfjs-editor-highlight-button = .title = Korostus pdfjs-editor-highlight-button-label = Korostus @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Peittävyys pdfjs-editor-stamp-add-image-button = .title = Lisää kuva pdfjs-editor-stamp-add-image-button-label = Lisää kuva +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Paksuus +pdfjs-editor-free-highlight-thickness-title = + .title = Muuta paksuutta korostaessasi muita kohteita kuin tekstiä pdfjs-free-text = .aria-label = Tekstimuokkain pdfjs-free-text-default-content = Aloita kirjoittaminen… diff --git a/l10n/fr/viewer.ftl b/l10n/fr/viewer.ftl index c3192ce2e14e4..9cd9a17a2190f 100644 --- a/l10n/fr/viewer.ftl +++ b/l10n/fr/viewer.ftl @@ -297,8 +297,6 @@ pdfjs-editor-ink-button-label = Dessiner pdfjs-editor-stamp-button = .title = Ajouter ou modifier des images pdfjs-editor-stamp-button-label = Ajouter ou modifier des images -pdfjs-editor-remove-button = - .title = Supprimer pdfjs-editor-highlight-button = .title = Surligner pdfjs-editor-highlight-button-label = Surligner @@ -325,6 +323,8 @@ pdfjs-editor-ink-opacity-input = Opacité pdfjs-editor-stamp-add-image-button = .title = Ajouter une image pdfjs-editor-stamp-add-image-button-label = Ajouter une image +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Épaisseur pdfjs-free-text = .aria-label = Éditeur de texte pdfjs-free-text-default-content = Commencer à écrire… diff --git a/l10n/fur/viewer.ftl b/l10n/fur/viewer.ftl index 5c6ba62baa258..3e4b97ffc6bc2 100644 --- a/l10n/fur/viewer.ftl +++ b/l10n/fur/viewer.ftl @@ -327,6 +327,8 @@ pdfjs-editor-ink-opacity-input = Opacitât pdfjs-editor-stamp-add-image-button = .title = Zonte imagjin pdfjs-editor-stamp-add-image-button-label = Zonte imagjin +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Spessôr pdfjs-free-text = .aria-label = Editôr di test pdfjs-free-text-default-content = Scomence a scrivi… diff --git a/l10n/fy-NL/viewer.ftl b/l10n/fy-NL/viewer.ftl index 5218d20455fad..78d25ac3b060f 100644 --- a/l10n/fy-NL/viewer.ftl +++ b/l10n/fy-NL/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Tekenje pdfjs-editor-stamp-button = .title = Ofbyldingen tafoegje of bewurkje pdfjs-editor-stamp-button-label = Ofbyldingen tafoegje of bewurkje -pdfjs-editor-remove-button = - .title = Fuortsmite pdfjs-editor-highlight-button = .title = Markearje pdfjs-editor-highlight-button-label = Markearje @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Transparânsje pdfjs-editor-stamp-add-image-button = .title = Ofbylding tafoegje pdfjs-editor-stamp-add-image-button-label = Ofbylding tafoegje +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Tsjokte +pdfjs-editor-free-highlight-thickness-title = + .title = Tsjokte wizigje by aksintuearring fan oare items as tekst pdfjs-free-text = .aria-label = Tekstbewurker pdfjs-free-text-default-content = Begjin mei typen… diff --git a/l10n/he/viewer.ftl b/l10n/he/viewer.ftl index 89badc55422fc..7f524ff128712 100644 --- a/l10n/he/viewer.ftl +++ b/l10n/he/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = ציור pdfjs-editor-stamp-button = .title = הוספה או עריכת תמונות pdfjs-editor-stamp-button-label = הוספה או עריכת תמונות -pdfjs-editor-remove-button = - .title = הסרה pdfjs-editor-highlight-button = .title = סימון pdfjs-editor-highlight-button-label = סימון @@ -329,6 +327,8 @@ pdfjs-editor-ink-opacity-input = אטימות pdfjs-editor-stamp-add-image-button = .title = הוספת תמונה pdfjs-editor-stamp-add-image-button-label = הוספת תמונה +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = עובי pdfjs-free-text = .aria-label = עורך טקסט pdfjs-free-text-default-content = להתחיל להקליד… diff --git a/l10n/hsb/viewer.ftl b/l10n/hsb/viewer.ftl index 257948d5b3b9c..638c2c2bc2a12 100644 --- a/l10n/hsb/viewer.ftl +++ b/l10n/hsb/viewer.ftl @@ -305,8 +305,6 @@ pdfjs-editor-ink-button-label = Rysować pdfjs-editor-stamp-button = .title = Wobrazy přidać abo wobdźěłać pdfjs-editor-stamp-button-label = Wobrazy přidać abo wobdźěłać -pdfjs-editor-remove-button = - .title = Wotstronić pdfjs-editor-highlight-button = .title = Wuzběhnyć pdfjs-editor-highlight-button-label = Wuzběhnyć @@ -333,6 +331,10 @@ pdfjs-editor-ink-opacity-input = Opacita pdfjs-editor-stamp-add-image-button = .title = Wobraz přidać pdfjs-editor-stamp-add-image-button-label = Wobraz přidać +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Tołstosć +pdfjs-editor-free-highlight-thickness-title = + .title = Tołstosć změnić, hdyž so zapiski wuzběhuja, kotrež tekst njejsu pdfjs-free-text = .aria-label = Tekstowy editor pdfjs-free-text-default-content = Započńće pisać… diff --git a/l10n/hu/viewer.ftl b/l10n/hu/viewer.ftl index e891158360de9..7d72f719ca715 100644 --- a/l10n/hu/viewer.ftl +++ b/l10n/hu/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Rajzolás pdfjs-editor-stamp-button = .title = Képek hozzáadása vagy szerkesztése pdfjs-editor-stamp-button-label = Képek hozzáadása vagy szerkesztése -pdfjs-editor-remove-button = - .title = Eltávolítás pdfjs-editor-highlight-button = .title = Kiemelés pdfjs-editor-highlight-button-label = Kiemelés @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Átlátszatlanság pdfjs-editor-stamp-add-image-button = .title = Kép hozzáadása pdfjs-editor-stamp-add-image-button-label = Kép hozzáadása +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Vastagság +pdfjs-editor-free-highlight-thickness-title = + .title = Vastagság módosítása, ha nem szöveges elemeket emel ki pdfjs-free-text = .aria-label = Szövegszerkesztő pdfjs-free-text-default-content = Kezdjen el gépelni… diff --git a/l10n/ia/viewer.ftl b/l10n/ia/viewer.ftl index 41372def05fd7..1f3e6ecc39aa4 100644 --- a/l10n/ia/viewer.ftl +++ b/l10n/ia/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Designar pdfjs-editor-stamp-button = .title = Adder o rediger imagines pdfjs-editor-stamp-button-label = Adder o rediger imagines -pdfjs-editor-remove-button = - .title = Remover pdfjs-editor-highlight-button = .title = Evidentia pdfjs-editor-highlight-button-label = Evidentia @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Opacitate pdfjs-editor-stamp-add-image-button = .title = Adder imagine pdfjs-editor-stamp-add-image-button-label = Adder imagine +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Spissor +pdfjs-editor-free-highlight-thickness-title = + .title = Cambiar spissor evidentiante elementos differente de texto pdfjs-free-text = .aria-label = Editor de texto pdfjs-free-text-default-content = Comenciar a scriber… diff --git a/l10n/is/viewer.ftl b/l10n/is/viewer.ftl index 0f2bf134e606d..7197d8aa95a3e 100644 --- a/l10n/is/viewer.ftl +++ b/l10n/is/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Teikna pdfjs-editor-stamp-button = .title = Bæta við eða breyta myndum pdfjs-editor-stamp-button-label = Bæta við eða breyta myndum -pdfjs-editor-remove-button = - .title = Fjarlægja pdfjs-editor-highlight-button = .title = Áherslulita pdfjs-editor-highlight-button-label = Áherslulita @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Ógegnsæi pdfjs-editor-stamp-add-image-button = .title = Bæta við mynd pdfjs-editor-stamp-add-image-button-label = Bæta við mynd +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Þykkt +pdfjs-editor-free-highlight-thickness-title = + .title = Breyta þykkt við áherslulitun annarra atriða en texta pdfjs-free-text = .aria-label = Textaritill pdfjs-free-text-default-content = Byrjaðu að skrifa… diff --git a/l10n/it/viewer.ftl b/l10n/it/viewer.ftl index 83eee8d60ac95..7daf38be60447 100644 --- a/l10n/it/viewer.ftl +++ b/l10n/it/viewer.ftl @@ -334,6 +334,9 @@ pdfjs-editor-stamp-add-image-button = pdfjs-editor-stamp-add-image-button-label = Aggiungi immagine # This refers to the thickness of the line used for free highlighting (not bound to text) pdfjs-editor-free-highlight-thickness-input = Spessore +pdfjs-editor-free-highlight-thickness-title = + .title = Modifica lo spessore della selezione per elementi non testuali + pdfjs-free-text = .aria-label = Editor di testo pdfjs-free-text-default-content = Inizia a digitare… diff --git a/l10n/ja/viewer.ftl b/l10n/ja/viewer.ftl index 406706601d598..a138baf3092a3 100644 --- a/l10n/ja/viewer.ftl +++ b/l10n/ja/viewer.ftl @@ -293,16 +293,17 @@ pdfjs-web-fonts-disabled = ウェブフォントが無効になっています: ## Editing pdfjs-editor-free-text-button = - .title = フリーテキスト注釈 + .title = フリーテキスト注釈を追加します pdfjs-editor-free-text-button-label = フリーテキスト注釈 pdfjs-editor-ink-button = - .title = インク注釈 + .title = インク注釈を追加します pdfjs-editor-ink-button-label = インク注釈 pdfjs-editor-stamp-button = .title = 画像を追加または編集します pdfjs-editor-stamp-button-label = 画像を追加または編集 -pdfjs-editor-remove-button = - .title = 削除 +pdfjs-editor-highlight-button = + .title = 強調します +pdfjs-editor-highlight-button-label = 強調 ## Remove button for the various kind of editor. @@ -326,6 +327,8 @@ pdfjs-editor-ink-opacity-input = 不透明度 pdfjs-editor-stamp-add-image-button = .title = 画像を追加します pdfjs-editor-stamp-add-image-button-label = 画像を追加 +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = 太さ pdfjs-free-text = .aria-label = フリーテキスト注釈エディター pdfjs-free-text-default-content = テキストを入力してください... diff --git a/l10n/kk/viewer.ftl b/l10n/kk/viewer.ftl index 8b2317db6afd7..604d2b827c2c2 100644 --- a/l10n/kk/viewer.ftl +++ b/l10n/kk/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Сурет салу pdfjs-editor-stamp-button = .title = Суреттерді қосу немесе түзету pdfjs-editor-stamp-button-label = Суреттерді қосу немесе түзету -pdfjs-editor-remove-button = - .title = Өшіру pdfjs-editor-highlight-button = .title = Ерекшелеу pdfjs-editor-highlight-button-label = Ерекшелеу @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Мөлдірсіздігі pdfjs-editor-stamp-add-image-button = .title = Суретті қосу pdfjs-editor-stamp-add-image-button-label = Суретті қосу +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Қалыңдығы +pdfjs-editor-free-highlight-thickness-title = + .title = Мәтіннен басқа элементтерді ерекшелеу кезінде қалыңдықты өзгерту pdfjs-free-text = .aria-label = Мәтін түзеткіші pdfjs-free-text-default-content = Теруді бастау… diff --git a/l10n/ko/viewer.ftl b/l10n/ko/viewer.ftl index a9d402e188603..161fe89b0a07f 100644 --- a/l10n/ko/viewer.ftl +++ b/l10n/ko/viewer.ftl @@ -293,8 +293,6 @@ pdfjs-editor-ink-button-label = 그리기 pdfjs-editor-stamp-button = .title = 이미지 추가 또는 편집 pdfjs-editor-stamp-button-label = 이미지 추가 또는 편집 -pdfjs-editor-remove-button = - .title = 제거 pdfjs-editor-highlight-button = .title = 강조 pdfjs-editor-highlight-button-label = 강조 @@ -321,6 +319,10 @@ pdfjs-editor-ink-opacity-input = 불투명도 pdfjs-editor-stamp-add-image-button = .title = 이미지 추가 pdfjs-editor-stamp-add-image-button-label = 이미지 추가 +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = 두께 +pdfjs-editor-free-highlight-thickness-title = + .title = 텍스트 이외의 항목을 강조 표시할 때 두께 변경 pdfjs-free-text = .aria-label = 텍스트 편집기 pdfjs-free-text-default-content = 입력하세요… diff --git a/l10n/nb-NO/viewer.ftl b/l10n/nb-NO/viewer.ftl index 10e64da28a5a8..244cbd4c33323 100644 --- a/l10n/nb-NO/viewer.ftl +++ b/l10n/nb-NO/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Tegn pdfjs-editor-stamp-button = .title = Legg til eller rediger bilder pdfjs-editor-stamp-button-label = Legg til eller rediger bilder -pdfjs-editor-remove-button = - .title = Fjern ## Remove button for the various kind of editor. @@ -326,6 +324,8 @@ pdfjs-editor-ink-opacity-input = Ugjennomsiktighet pdfjs-editor-stamp-add-image-button = .title = Legg til bilde pdfjs-editor-stamp-add-image-button-label = Legg til bilde +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Tykkelse pdfjs-free-text = .aria-label = Tekstredigering pdfjs-free-text-default-content = Begynn å skrive… diff --git a/l10n/nl/viewer.ftl b/l10n/nl/viewer.ftl index f6a31887134cb..1c6de2f4996cf 100644 --- a/l10n/nl/viewer.ftl +++ b/l10n/nl/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Tekenen pdfjs-editor-stamp-button = .title = Afbeeldingen toevoegen of bewerken pdfjs-editor-stamp-button-label = Afbeeldingen toevoegen of bewerken -pdfjs-editor-remove-button = - .title = Verwijderen pdfjs-editor-highlight-button = .title = Markeren pdfjs-editor-highlight-button-label = Markeren @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Opaciteit pdfjs-editor-stamp-add-image-button = .title = Afbeelding toevoegen pdfjs-editor-stamp-add-image-button-label = Afbeelding toevoegen +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Dikte +pdfjs-editor-free-highlight-thickness-title = + .title = Dikte wijzigen bij accentuering van andere items dan tekst pdfjs-free-text = .aria-label = Tekstbewerker pdfjs-free-text-default-content = Begin met typen… diff --git a/l10n/pa-IN/viewer.ftl b/l10n/pa-IN/viewer.ftl index 0fc4a49f04a47..90bbfb8de0e2c 100644 --- a/l10n/pa-IN/viewer.ftl +++ b/l10n/pa-IN/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = ਵਾਹੋ pdfjs-editor-stamp-button = .title = ਚਿੱਤਰ ਜੋੜੋ ਜਾਂ ਸੋਧੋ pdfjs-editor-stamp-button-label = ਚਿੱਤਰ ਜੋੜੋ ਜਾਂ ਸੋਧੋ -pdfjs-editor-remove-button = - .title = ਹਟਾਓ pdfjs-editor-highlight-button = .title = ਹਾਈਲਾਈਟ pdfjs-editor-highlight-button-label = ਹਾਈਲਾਈਟ @@ -329,6 +327,8 @@ pdfjs-editor-ink-opacity-input = ਧੁੰਦਲਾਪਨ pdfjs-editor-stamp-add-image-button = .title = ਚਿੱਤਰ ਜੋੜੋ pdfjs-editor-stamp-add-image-button-label = ਚਿੱਤਰ ਜੋੜੋ +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = ਮੋਟਾਈ pdfjs-free-text = .aria-label = ਲਿਖਤ ਐਡੀਟਰ pdfjs-free-text-default-content = …ਲਿਖਣਾ ਸ਼ੁਰੂ ਕਰੋ diff --git a/l10n/pt-BR/viewer.ftl b/l10n/pt-BR/viewer.ftl index e3eabe83f37d6..97bb65e9b756a 100644 --- a/l10n/pt-BR/viewer.ftl +++ b/l10n/pt-BR/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Desenho pdfjs-editor-stamp-button = .title = Adicionar ou editar imagens pdfjs-editor-stamp-button-label = Adicionar ou editar imagens -pdfjs-editor-remove-button = - .title = Remover pdfjs-editor-highlight-button = .title = Destaque pdfjs-editor-highlight-button-label = Destaque @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Opacidade pdfjs-editor-stamp-add-image-button = .title = Adicionar imagem pdfjs-editor-stamp-add-image-button-label = Adicionar imagem +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Espessura +pdfjs-editor-free-highlight-thickness-title = + .title = Mudar espessura ao destacar itens que não são texto pdfjs-free-text = .aria-label = Editor de texto pdfjs-free-text-default-content = Comece digitando… diff --git a/l10n/rm/viewer.ftl b/l10n/rm/viewer.ftl index e1f2d20b5376e..fc6388a070f26 100644 --- a/l10n/rm/viewer.ftl +++ b/l10n/rm/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Dissegnar pdfjs-editor-stamp-button = .title = Agiuntar u modifitgar maletgs pdfjs-editor-stamp-button-label = Agiuntar u modifitgar maletgs -pdfjs-editor-remove-button = - .title = Allontanar ## Remove button for the various kind of editor. @@ -326,6 +324,10 @@ pdfjs-editor-ink-opacity-input = Opacitad pdfjs-editor-stamp-add-image-button = .title = Agiuntar in maletg pdfjs-editor-stamp-add-image-button-label = Agiuntar in maletg +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Grossezza +pdfjs-editor-free-highlight-thickness-title = + .title = Midar la grossezza cun relevar elements betg textuals pdfjs-free-text = .aria-label = Editur da text pdfjs-free-text-default-content = Cumenzar a tippar… diff --git a/l10n/ru/viewer.ftl b/l10n/ru/viewer.ftl index 2603d3c0bb80d..4f058f3a4cca3 100644 --- a/l10n/ru/viewer.ftl +++ b/l10n/ru/viewer.ftl @@ -303,8 +303,6 @@ pdfjs-editor-ink-button-label = Рисовать pdfjs-editor-stamp-button = .title = Добавить или изменить изображения pdfjs-editor-stamp-button-label = Добавить или изменить изображения -pdfjs-editor-remove-button = - .title = Удалить pdfjs-editor-highlight-button = .title = Выделение pdfjs-editor-highlight-button-label = Выделение @@ -331,6 +329,10 @@ pdfjs-editor-ink-opacity-input = Прозрачность pdfjs-editor-stamp-add-image-button = .title = Добавить изображение pdfjs-editor-stamp-add-image-button-label = Добавить изображение +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Толщина +pdfjs-editor-free-highlight-thickness-title = + .title = Изменить толщину при выделении элементов, кроме текста pdfjs-free-text = .aria-label = Текстовый редактор pdfjs-free-text-default-content = Начните вводить… diff --git a/l10n/sk/viewer.ftl b/l10n/sk/viewer.ftl index 14b459aa7c32a..c0115afdf5f55 100644 --- a/l10n/sk/viewer.ftl +++ b/l10n/sk/viewer.ftl @@ -156,7 +156,7 @@ pdfjs-document-properties-page-size-dimension-name-string = { $width } × { $hei # The linearization status of the document; usually called "Fast Web View" in # English locales of Adobe software. -pdfjs-document-properties-linearized = Rýchle Web View: +pdfjs-document-properties-linearized = Rýchle zobrazovanie z webu: pdfjs-document-properties-linearized-yes = Áno pdfjs-document-properties-linearized-no = Nie pdfjs-document-properties-close-button = Zavrieť @@ -300,13 +300,11 @@ pdfjs-editor-free-text-button = .title = Text pdfjs-editor-free-text-button-label = Text pdfjs-editor-ink-button = - .title = Kreslenie + .title = Kresliť pdfjs-editor-ink-button-label = Kresliť pdfjs-editor-stamp-button = .title = Pridať alebo upraviť obrázky pdfjs-editor-stamp-button-label = Pridať alebo upraviť obrázky -pdfjs-editor-remove-button = - .title = Odstrániť pdfjs-editor-highlight-button = .title = Zvýrazniť pdfjs-editor-highlight-button-label = Zvýrazniť @@ -333,6 +331,10 @@ pdfjs-editor-ink-opacity-input = Priehľadnosť pdfjs-editor-stamp-add-image-button = .title = Pridať obrázok pdfjs-editor-stamp-add-image-button-label = Pridať obrázok +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Hrúbka +pdfjs-editor-free-highlight-thickness-title = + .title = Zmeňte hrúbku pre zvýrazňovanie iných položiek ako textu pdfjs-free-text = .aria-label = Textový editor pdfjs-free-text-default-content = Začnite písať… diff --git a/l10n/sv-SE/viewer.ftl b/l10n/sv-SE/viewer.ftl index 5007bd799551f..6fba504aa25d7 100644 --- a/l10n/sv-SE/viewer.ftl +++ b/l10n/sv-SE/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Rita pdfjs-editor-stamp-button = .title = Lägg till eller redigera bilder pdfjs-editor-stamp-button-label = Lägg till eller redigera bilder -pdfjs-editor-remove-button = - .title = Ta bort pdfjs-editor-highlight-button = .title = Markera pdfjs-editor-highlight-button-label = Markera @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Opacitet pdfjs-editor-stamp-add-image-button = .title = Lägg till bild pdfjs-editor-stamp-add-image-button-label = Lägg till bild +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Tjocklek +pdfjs-editor-free-highlight-thickness-title = + .title = Ändra tjocklek när du markerar andra objekt än text pdfjs-free-text = .aria-label = Textredigerare pdfjs-free-text-default-content = Börja skriva… diff --git a/l10n/th/viewer.ftl b/l10n/th/viewer.ftl index 5dd7bb2b1ca7d..2d3fb697588a2 100644 --- a/l10n/th/viewer.ftl +++ b/l10n/th/viewer.ftl @@ -293,8 +293,9 @@ pdfjs-editor-ink-button-label = รูปวาด pdfjs-editor-stamp-button = .title = เพิ่มหรือแก้ไขภาพ pdfjs-editor-stamp-button-label = เพิ่มหรือแก้ไขภาพ -pdfjs-editor-remove-button = - .title = เอาออก +pdfjs-editor-highlight-button = + .title = เน้น +pdfjs-editor-highlight-button-label = เน้น ## Remove button for the various kind of editor. diff --git a/l10n/tr/viewer.ftl b/l10n/tr/viewer.ftl index cd4c24856de5d..2dd85fa625402 100644 --- a/l10n/tr/viewer.ftl +++ b/l10n/tr/viewer.ftl @@ -301,8 +301,6 @@ pdfjs-editor-ink-button-label = Çiz pdfjs-editor-stamp-button = .title = Resim ekle veya düzenle pdfjs-editor-stamp-button-label = Resim ekle veya düzenle -pdfjs-editor-remove-button = - .title = Kaldır pdfjs-editor-highlight-button = .title = Vurgula pdfjs-editor-highlight-button-label = Vurgula @@ -329,6 +327,10 @@ pdfjs-editor-ink-opacity-input = Saydamlık pdfjs-editor-stamp-add-image-button = .title = Resim ekle pdfjs-editor-stamp-add-image-button-label = Resim ekle +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Kalınlık +pdfjs-editor-free-highlight-thickness-title = + .title = Metin dışındaki öğeleri vurgularken kalınlığı değiştir pdfjs-free-text = .aria-label = Metin düzenleyicisi pdfjs-free-text-default-content = Yazmaya başlayın… diff --git a/l10n/uk/viewer.ftl b/l10n/uk/viewer.ftl index d869948403ebb..06c665b2cc0eb 100644 --- a/l10n/uk/viewer.ftl +++ b/l10n/uk/viewer.ftl @@ -303,8 +303,6 @@ pdfjs-editor-ink-button-label = Малювати pdfjs-editor-stamp-button = .title = Додати чи редагувати зображення pdfjs-editor-stamp-button-label = Додати чи редагувати зображення -pdfjs-editor-remove-button = - .title = Вилучити pdfjs-editor-highlight-button = .title = Підсвітити pdfjs-editor-highlight-button-label = Підсвітити @@ -331,6 +329,10 @@ pdfjs-editor-ink-opacity-input = Прозорість pdfjs-editor-stamp-add-image-button = .title = Додати зображення pdfjs-editor-stamp-add-image-button-label = Додати зображення +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Товщина +pdfjs-editor-free-highlight-thickness-title = + .title = Змінюйте товщину під час підсвічування елементів, крім тексту pdfjs-free-text = .aria-label = Текстовий редактор pdfjs-free-text-default-content = Почніть вводити… @@ -360,14 +362,14 @@ pdfjs-editor-alt-text-textarea = ## Editor resizers ## This is used in an aria label to help to understand the role of the resizer. -pdfjs-editor-resizer-label-top-left = Верхній лівий кут — зміна розміру -pdfjs-editor-resizer-label-top-middle = Вгорі посередині — зміна розміру -pdfjs-editor-resizer-label-top-right = Верхній правий кут — зміна розміру -pdfjs-editor-resizer-label-middle-right = Праворуч посередині — зміна розміру -pdfjs-editor-resizer-label-bottom-right = Нижній правий кут — зміна розміру -pdfjs-editor-resizer-label-bottom-middle = Внизу посередині — зміна розміру -pdfjs-editor-resizer-label-bottom-left = Нижній лівий кут — зміна розміру -pdfjs-editor-resizer-label-middle-left = Ліворуч посередині — зміна розміру +pdfjs-editor-resizer-label-top-left = Верхній лівий кут – зміна розміру +pdfjs-editor-resizer-label-top-middle = Вгорі посередині – зміна розміру +pdfjs-editor-resizer-label-top-right = Верхній правий кут – зміна розміру +pdfjs-editor-resizer-label-middle-right = Праворуч посередині – зміна розміру +pdfjs-editor-resizer-label-bottom-right = Нижній правий кут – зміна розміру +pdfjs-editor-resizer-label-bottom-middle = Внизу посередині – зміна розміру +pdfjs-editor-resizer-label-bottom-left = Нижній лівий кут – зміна розміру +pdfjs-editor-resizer-label-middle-left = Ліворуч посередині – зміна розміру ## Color picker diff --git a/l10n/vi/viewer.ftl b/l10n/vi/viewer.ftl index 522ca76556ea5..f2fe79c688945 100644 --- a/l10n/vi/viewer.ftl +++ b/l10n/vi/viewer.ftl @@ -220,7 +220,7 @@ pdfjs-find-previous-button-label = Trước pdfjs-find-next-button = .title = Tìm cụm từ ở phần sau pdfjs-find-next-button-label = Tiếp -pdfjs-find-highlight-checkbox = Tô sáng tất cả +pdfjs-find-highlight-checkbox = Đánh dấu tất cả pdfjs-find-match-case-checkbox-label = Phân biệt hoa, thường pdfjs-find-match-diacritics-checkbox-label = Khớp dấu phụ pdfjs-find-entire-word-checkbox-label = Toàn bộ từ @@ -293,11 +293,9 @@ pdfjs-editor-ink-button-label = Vẽ pdfjs-editor-stamp-button = .title = Thêm hoặc chỉnh sửa hình ảnh pdfjs-editor-stamp-button-label = Thêm hoặc chỉnh sửa hình ảnh -pdfjs-editor-remove-button = - .title = Xóa pdfjs-editor-highlight-button = - .title = Tô sáng -pdfjs-editor-highlight-button-label = Tô sáng + .title = Đánh dấu +pdfjs-editor-highlight-button-label = Đánh dấu ## Remove button for the various kind of editor. @@ -321,6 +319,10 @@ pdfjs-editor-ink-opacity-input = Độ mờ pdfjs-editor-stamp-add-image-button = .title = Thêm hình ảnh pdfjs-editor-stamp-add-image-button-label = Thêm hình ảnh +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = Độ dày +pdfjs-editor-free-highlight-thickness-title = + .title = Thay đổi độ dày khi đánh dấu các mục không phải là văn bản pdfjs-free-text = .aria-label = Trình sửa văn bản pdfjs-free-text-default-content = Bắt đầu nhập… diff --git a/l10n/zh-CN/viewer.ftl b/l10n/zh-CN/viewer.ftl index 3d0ded62d0a73..b31107009a802 100644 --- a/l10n/zh-CN/viewer.ftl +++ b/l10n/zh-CN/viewer.ftl @@ -293,8 +293,6 @@ pdfjs-editor-ink-button-label = 绘图 pdfjs-editor-stamp-button = .title = 添加或编辑图像 pdfjs-editor-stamp-button-label = 添加或编辑图像 -pdfjs-editor-remove-button = - .title = 移除 pdfjs-editor-highlight-button = .title = 高亮 pdfjs-editor-highlight-button-label = 高亮 @@ -321,6 +319,8 @@ pdfjs-editor-ink-opacity-input = 不透明度 pdfjs-editor-stamp-add-image-button = .title = 添加图像 pdfjs-editor-stamp-add-image-button-label = 添加图像 +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = 粗细 pdfjs-free-text = .aria-label = 文本编辑器 pdfjs-free-text-default-content = 开始输入… diff --git a/l10n/zh-TW/viewer.ftl b/l10n/zh-TW/viewer.ftl index 4ae216337e245..65373654bc585 100644 --- a/l10n/zh-TW/viewer.ftl +++ b/l10n/zh-TW/viewer.ftl @@ -293,8 +293,6 @@ pdfjs-editor-ink-button-label = 繪圖 pdfjs-editor-stamp-button = .title = 新增或編輯圖片 pdfjs-editor-stamp-button-label = 新增或編輯圖片 -pdfjs-editor-remove-button = - .title = 移除 pdfjs-editor-highlight-button = .title = 強調 pdfjs-editor-highlight-button-label = 強調 @@ -321,6 +319,10 @@ pdfjs-editor-ink-opacity-input = 透​明度 pdfjs-editor-stamp-add-image-button = .title = 新增圖片 pdfjs-editor-stamp-add-image-button-label = 新增圖片 +# This refers to the thickness of the line used for free highlighting (not bound to text) +pdfjs-editor-free-highlight-thickness-input = 線條粗細 +pdfjs-editor-free-highlight-thickness-title = + .title = 更改強調文字以外的項目時的線條粗細 pdfjs-free-text = .aria-label = 文本編輯器 pdfjs-free-text-default-content = 開始打字… diff --git a/package-lock.json b/package-lock.json index a52e2d312eb54..35908f18204aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@jazzer.js/core": "^2.1.0", "autoprefixer": "^10.4.17", "babel-loader": "^9.1.3", - "caniuse-lite": "^1.0.30001580", + "caniuse-lite": "^1.0.30001585", "canvas": "^2.11.2", "core-js": "^3.35.1", "cross-env": "^7.0.3", @@ -31,11 +31,11 @@ "eslint-plugin-no-unsanitized": "^4.0.2", "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-sort-exports": "^0.9.1", - "eslint-plugin-unicorn": "^50.0.1", - "globals": "^13.24.0", + "eslint-plugin-unicorn": "^51.0.1", + "globals": "^14.0.0", "gulp": "^4.0.2", "gulp-cli": "^2.3.0", - "gulp-postcss": "^9.1.0", + "gulp-postcss": "^10.0.0", "gulp-rename": "^2.0.0", "gulp-replace": "^1.1.4", "gulp-zip": "^6.0.0", @@ -47,16 +47,16 @@ "needle": "^3.3.1", "path2d-polyfill": "^2.0.1", "pngjs": "^7.0.0", - "postcss": "^8.4.33", + "postcss": "^8.4.35", "postcss-dark-theme-class": "^1.1.0", "postcss-dir-pseudo-class": "^8.0.1", "postcss-discard-comments": "^6.0.1", "postcss-nesting": "^12.0.2", - "prettier": "^3.2.4", - "puppeteer": "^21.9.0", + "prettier": "^3.2.5", + "puppeteer": "^22.0.0", "rimraf": "^3.0.2", "streamqueue": "^1.1.2", - "stylelint": "^16.2.0", + "stylelint": "^16.2.1", "stylelint-prettier": "^5.0.0", "terser": "^5.27.0", "through2": "^4.0.2", @@ -65,7 +65,7 @@ "typescript": "^5.3.3", "typogr": "^0.6.8", "vinyl": "^3.0.0", - "webpack": "^5.90.0", + "webpack": "^5.90.1", "webpack-stream": "^7.0.0", "wintersmith": "^2.5.0", "yargs": "^17.7.2" @@ -2117,6 +2117,21 @@ } } }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@eslint/eslintrc/node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -2135,6 +2150,18 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@eslint/js": { "version": "8.56.0", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", @@ -2606,9 +2633,9 @@ } }, "node_modules/@puppeteer/browsers": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.9.1.tgz", - "integrity": "sha512-PuvK6xZzGhKPvlx3fpfdM2kYY3P/hB1URtK8wA7XUJ6prn6pp22zvJHu48th0SGcHL9SutbPHrFuQgfXTFobWA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.0.0.tgz", + "integrity": "sha512-3PS82/5+tnpEaUWonjAFFvlf35QHF15xqyGd34GBa5oP5EPVfFXRsbSxIGYf1M+vZlqBZ3oxT1kRg9OYhtt8ng==", "dev": true, "dependencies": { "debug": "4.3.4", @@ -2623,7 +2650,7 @@ "browsers": "lib/cjs/main-cli.js" }, "engines": { - "node": ">=16.3.0" + "node": ">=18" } }, "node_modules/@puppeteer/browsers/node_modules/debug": { @@ -3667,9 +3694,9 @@ } }, "node_modules/b4a": { - "version": "1.6.4", - "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz", - "integrity": "sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==", + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.6.tgz", + "integrity": "sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==", "dev": true }, "node_modules/babel-loader": { @@ -4147,9 +4174,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001580", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001580.tgz", - "integrity": "sha512-mtj5ur2FFPZcCEpXFy8ADXbDACuNFXg6mxVDqp7tqooX6l3zwm+d8EPoeOSIFRDvHs8qu7/SLFOGniULkcH2iA==", + "version": "1.0.30001585", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001585.tgz", + "integrity": "sha512-yr2BWR1yLXQ8fMpdS/4ZZXpseBgE7o4g41x3a6AJOqZuOi+iE/WdJYAuZ6Y95i4Ohd2Y+9MzIWRR+uGABH4s3Q==", "dev": true, "funding": [ { @@ -4314,13 +4341,13 @@ } }, "node_modules/chromium-bidi": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.4.tgz", - "integrity": "sha512-p9CdiHl0xNh4P7oVa44zXgJJw+pvnHXFDB+tVdo25xaPLgQDVf2kQO+TDxD2fp2Evqi7vs/vGRINMzl1qJrWiw==", + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.8.tgz", + "integrity": "sha512-blqh+1cEQbHBKmok3rVJkBlBxt9beKBgOsxbFgs7UJcoVbbeZ+K7+6liAsjgpc8l1Xd55cQUy14fXZdGSb4zIw==", "dev": true, "dependencies": { "mitt": "3.0.1", - "urlpattern-polyfill": "9.0.0" + "urlpattern-polyfill": "10.0.0" }, "peerDependencies": { "devtools-protocol": "*" @@ -6329,9 +6356,9 @@ } }, "node_modules/eslint-plugin-unicorn": { - "version": "50.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-50.0.1.tgz", - "integrity": "sha512-KxenCZxqSYW0GWHH18okDlOQcpezcitm5aOSz6EnobyJ6BIByiPDviQRjJIUAjG/tMN11958MxaQ+qCoU6lfDA==", + "version": "51.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-51.0.1.tgz", + "integrity": "sha512-MuR/+9VuB0fydoI0nIn2RDA5WISRn4AsJyNSaNKLVwie9/ONvQhxOBbkfSICBPnzKrB77Fh6CZZXjgTt/4Latw==", "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.22.20", @@ -6636,6 +6663,21 @@ "node": ">=10.13.0" } }, + "node_modules/eslint/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/eslint/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -6804,6 +6846,18 @@ "node": ">= 0.8.0" } }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/espree": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", @@ -7966,27 +8020,12 @@ } }, "node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globals/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -8266,9 +8305,9 @@ } }, "node_modules/gulp-postcss": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/gulp-postcss/-/gulp-postcss-9.1.0.tgz", - "integrity": "sha512-a843mcKPApfeI987uqQbc8l50xXeWIXBsiVvYxtCI5XtVAMzTi/HnU2qzQpGwkB/PAOfsLV8OsqDv2iJZ9qvdw==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/gulp-postcss/-/gulp-postcss-10.0.0.tgz", + "integrity": "sha512-z1RF2RJEX/BvFsKN11PXai8lRmihZTiHnlJf7Zu8uHaA/Q7Om4IeN8z1NtMAW5OiLwUY02H0DIFl9tHl0CNSgA==", "dev": true, "dependencies": { "fancy-log": "^2.0.0", @@ -13332,7 +13371,6 @@ }, "node_modules/npm/node_modules/lodash._baseindexof": { "version": "3.1.0", - "dev": true, "inBundle": true, "license": "MIT" }, @@ -13348,19 +13386,16 @@ }, "node_modules/npm/node_modules/lodash._bindcallback": { "version": "3.0.1", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/lodash._cacheindexof": { "version": "3.0.2", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/lodash._createcache": { "version": "3.1.2", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -13375,7 +13410,6 @@ }, "node_modules/npm/node_modules/lodash._getnative": { "version": "3.9.1", - "dev": true, "inBundle": true, "license": "MIT" }, @@ -13393,7 +13427,6 @@ }, "node_modules/npm/node_modules/lodash.restparam": { "version": "3.6.1", - "dev": true, "inBundle": true, "license": "MIT" }, @@ -16302,9 +16335,9 @@ } }, "node_modules/postcss": { - "version": "8.4.33", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz", - "integrity": "sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==", + "version": "8.4.35", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.35.tgz", + "integrity": "sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==", "dev": true, "funding": [ { @@ -16640,9 +16673,9 @@ } }, "node_modules/prettier": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.4.tgz", - "integrity": "sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" @@ -16967,38 +17000,38 @@ } }, "node_modules/puppeteer": { - "version": "21.9.0", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.9.0.tgz", - "integrity": "sha512-vcLR81Rp+MBrgqhiXZfpwEBbyKTa88Hd+8Al3+emWzcJb9evLLSfUYli0QUqhofPFrXsO2A/dAF9OunyOivL6w==", + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-22.0.0.tgz", + "integrity": "sha512-zYVnjwJngnSB4dbkWp7DHFSIc3nqHvZzrdHyo9+ugV1nq1Lm8obOMcmCFaGfR3PJs0EmYNz+/skBeO45yvASCQ==", "dev": true, "hasInstallScript": true, "dependencies": { - "@puppeteer/browsers": "1.9.1", + "@puppeteer/browsers": "2.0.0", "cosmiconfig": "9.0.0", - "puppeteer-core": "21.9.0" + "puppeteer-core": "22.0.0" }, "bin": { "puppeteer": "lib/esm/puppeteer/node/cli.js" }, "engines": { - "node": ">=16.13.2" + "node": ">=18" } }, "node_modules/puppeteer-core": { - "version": "21.9.0", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.9.0.tgz", - "integrity": "sha512-QgowcczLAoLWlV38s3y3VuEvjJGfKU5rR6Q23GUbiGOaiQi+QpaWQ+aXdzP9LHVSUPmHdAaWhcvMztYSw3f8gQ==", + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-22.0.0.tgz", + "integrity": "sha512-S3s91rLde0A86PWVeNY82h+P0fdS7CTiNWAicCVH/bIspRP4nS2PnO5j+VTFqCah0ZJizGzpVPAmxVYbLxTc9w==", "dev": true, "dependencies": { - "@puppeteer/browsers": "1.9.1", - "chromium-bidi": "0.5.4", + "@puppeteer/browsers": "2.0.0", + "chromium-bidi": "0.5.8", "cross-fetch": "4.0.0", "debug": "4.3.4", "devtools-protocol": "0.0.1232444", "ws": "8.16.0" }, "engines": { - "node": ">=16.13.2" + "node": ">=18" } }, "node_modules/puppeteer-core/node_modules/debug": { @@ -18608,9 +18641,9 @@ } }, "node_modules/stylelint": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.2.0.tgz", - "integrity": "sha512-gwqU5AkIb52wrAzzn+359S3NIJDMl02TXLUaV2tzA/L6jUdpTwNt+MCxHlc8+Hb2bUHlYVo92YeSIryF2gJthA==", + "version": "16.2.1", + "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.2.1.tgz", + "integrity": "sha512-SfIMGFK+4n7XVAyv50CpVfcGYWG4v41y6xG7PqOgQSY8M/PgdK0SQbjWFblxjJZlN9jNq879mB4BCZHJRIJ1hA==", "dev": true, "dependencies": { "@csstools/css-parser-algorithms": "^2.5.0", @@ -20238,9 +20271,9 @@ "dev": true }, "node_modules/urlpattern-polyfill": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-9.0.0.tgz", - "integrity": "sha512-WHN8KDQblxd32odxeIgo83rdVDE2bvdkb86it7bMhYZwWKJz0+O0RK/eZiHYnM+zgt/U7hAHOlCQGfjjvSkw2g==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.0.0.tgz", + "integrity": "sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg==", "dev": true }, "node_modules/use": { @@ -20503,9 +20536,9 @@ "dev": true }, "node_modules/webpack": { - "version": "5.90.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.90.0.tgz", - "integrity": "sha512-bdmyXRCXeeNIePv6R6tGPyy20aUobw4Zy8r0LUS2EWO+U+Ke/gYDgsCh7bl5rB6jPpr4r0SZa6dPxBxLooDT3w==", + "version": "5.90.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.90.1.tgz", + "integrity": "sha512-SstPdlAC5IvgFnhiRok8hqJo/+ArAbNv7rhU4fnWGHNVfN59HSQFaxZDSAL3IFG2YmqxuRs+IU33milSxbPlog==", "dev": true, "dependencies": { "@types/eslint-scope": "^3.7.3", diff --git a/package.json b/package.json index 7a6bc412bf063..ef68adcc753f3 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "@jazzer.js/core": "^2.1.0", "autoprefixer": "^10.4.17", "babel-loader": "^9.1.3", - "caniuse-lite": "^1.0.30001580", + "caniuse-lite": "^1.0.30001585", "canvas": "^2.11.2", "core-js": "^3.35.1", "cross-env": "^7.0.3", @@ -25,11 +25,11 @@ "eslint-plugin-no-unsanitized": "^4.0.2", "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-sort-exports": "^0.9.1", - "eslint-plugin-unicorn": "^50.0.1", - "globals": "^13.24.0", + "eslint-plugin-unicorn": "^51.0.1", + "globals": "^14.0.0", "gulp": "^4.0.2", "gulp-cli": "^2.3.0", - "gulp-postcss": "^9.1.0", + "gulp-postcss": "^10.0.0", "gulp-rename": "^2.0.0", "gulp-replace": "^1.1.4", "gulp-zip": "^6.0.0", @@ -41,16 +41,16 @@ "needle": "^3.3.1", "path2d-polyfill": "^2.0.1", "pngjs": "^7.0.0", - "postcss": "^8.4.33", + "postcss": "^8.4.35", "postcss-dark-theme-class": "^1.1.0", "postcss-dir-pseudo-class": "^8.0.1", "postcss-discard-comments": "^6.0.1", "postcss-nesting": "^12.0.2", - "prettier": "^3.2.4", - "puppeteer": "^21.9.0", + "prettier": "^3.2.5", + "puppeteer": "^22.0.0", "rimraf": "^3.0.2", "streamqueue": "^1.1.2", - "stylelint": "^16.2.0", + "stylelint": "^16.2.1", "stylelint-prettier": "^5.0.0", "terser": "^5.27.0", "through2": "^4.0.2", @@ -59,7 +59,7 @@ "typescript": "^5.3.3", "typogr": "^0.6.8", "vinyl": "^3.0.0", - "webpack": "^5.90.0", + "webpack": "^5.90.1", "webpack-stream": "^7.0.0", "wintersmith": "^2.5.0", "yargs": "^17.7.2" diff --git a/test/integration/annotation_spec.mjs b/test/integration/annotation_spec.mjs index 7c35b1e6ec23e..4b5ad229c6a9f 100644 --- a/test/integration/annotation_spec.mjs +++ b/test/integration/annotation_spec.mjs @@ -18,6 +18,7 @@ import { getQuerySelector, getSelector, loadAndWait, + waitForTimeout, } from "./test_utils.mjs"; describe("Annotation highlight", () => { @@ -140,7 +141,7 @@ describe("Checkbox annotation", () => { ); for (const selector of selectors) { await page.click(selector); - page.waitForTimeout(10); + await waitForTimeout(10); } for (const selector of selectors) { await page.waitForFunction( @@ -199,7 +200,7 @@ describe("Text widget", () => { pages.map(async ([browserName, page]) => { await page.type(getSelector("22R"), "a"); await page.keyboard.press("Tab"); - await page.waitForTimeout(10); + await waitForTimeout(10); const text = await page.$eval(getSelector("22R"), el => el.value); expect(text).withContext(`In ${browserName}`).toEqual("aHello World"); @@ -485,12 +486,12 @@ describe("ResetForm action", () => { `document.querySelector("[data-annotation-id='25R']").hidden === false` ); await page.click("#editorFreeText"); - await page.waitForTimeout(10); + await waitForTimeout(10); await page.waitForFunction( `document.querySelector("[data-annotation-id='25R']").hidden === true` ); await page.click("#editorFreeText"); - await page.waitForTimeout(10); + await waitForTimeout(10); await page.waitForFunction( `document.querySelector("[data-annotation-id='25R']").hidden === false` ); @@ -553,7 +554,7 @@ describe("ResetForm action", () => { expect(hidden).withContext(`In ${browserName}`).toEqual(true); await page.focus("[data-annotation-id='20R']"); await page.keyboard.press("Enter"); - await page.waitForTimeout(10); + await waitForTimeout(10); hidden = await page.$eval( "[data-annotation-id='21R']", el => el.hidden @@ -561,7 +562,7 @@ describe("ResetForm action", () => { expect(hidden).withContext(`In ${browserName}`).toEqual(false); await page.keyboard.press("Enter"); - await page.waitForTimeout(10); + await waitForTimeout(10); hidden = await page.$eval( "[data-annotation-id='21R']", el => el.hidden @@ -569,7 +570,7 @@ describe("ResetForm action", () => { expect(hidden).withContext(`In ${browserName}`).toEqual(true); await page.keyboard.press("Enter"); - await page.waitForTimeout(10); + await waitForTimeout(10); hidden = await page.$eval( "[data-annotation-id='21R']", el => el.hidden @@ -577,7 +578,7 @@ describe("ResetForm action", () => { expect(hidden).withContext(`In ${browserName}`).toEqual(false); await page.keyboard.press("Escape"); - await page.waitForTimeout(10); + await waitForTimeout(10); hidden = await page.$eval( "[data-annotation-id='21R']", el => el.hidden diff --git a/test/integration/freetext_editor_spec.mjs b/test/integration/freetext_editor_spec.mjs index 499d320112c2b..f3cff4cea8164 100644 --- a/test/integration/freetext_editor_spec.mjs +++ b/test/integration/freetext_editor_spec.mjs @@ -43,6 +43,7 @@ import { waitForSelectedEditor, waitForSerialized, waitForStorageEntries, + waitForTimeout, waitForUnselectedEditor, } from "./test_utils.mjs"; import { PNG } from "pngjs"; @@ -52,7 +53,7 @@ const copyPaste = async page => { await kbCopy(page); await promise; - await page.waitForTimeout(10); + await waitForTimeout(10); promise = waitForEvent(page, "paste"); await kbPaste(page); @@ -1137,7 +1138,7 @@ describe("FreeText Editor", () => { await kbUndo(page); // Nothing should happen, it's why we can't wait for something // specific! - await page.waitForTimeout(200); + await waitForTimeout(200); // We check that the editor hasn't been removed. editorIds = await getEditors(page, "freeText"); @@ -1343,7 +1344,7 @@ describe("FreeText Editor", () => { // Enter in editing mode. await switchToFreeText(page); - await page.waitForTimeout(200); + await waitForTimeout(200); // Disable editing mode. await page.click("#editorFreeText"); @@ -2373,7 +2374,7 @@ describe("FreeText Editor", () => { // The editor must be moved in the DOM and potentially the focus // will be lost, hence there's a callback will get back the focus. - await page.waitForTimeout(200); + await waitForTimeout(200); const focused = await page.evaluate(sel => { const editor = document.querySelector(sel); diff --git a/test/integration/scripting_spec.mjs b/test/integration/scripting_spec.mjs index daa572920ca65..5f29be1ef4547 100644 --- a/test/integration/scripting_spec.mjs +++ b/test/integration/scripting_spec.mjs @@ -27,6 +27,7 @@ import { loadAndWait, scrollIntoView, waitForEntryInStorage, + waitForTimeout, } from "./test_utils.mjs"; describe("Interaction", () => { @@ -1711,7 +1712,7 @@ describe("Interaction", () => { await clearInput(page, getSelector("27R")); await page.type(getSelector("27R"), exportValue); await page.click("[data-annotation-id='28R']"); - await page.waitForTimeout(10); + await waitForTimeout(10); value = await page.$eval(getSelector("24R"), el => el.value); expect(value).withContext(`In ${browserName}`).toEqual(exportValue); @@ -1758,7 +1759,7 @@ describe("Interaction", () => { await page.waitForFunction( `${getQuerySelector("30R")}.value !== "abc"` ); - await page.waitForTimeout(100); + await waitForTimeout(100); const focusedId = await page.evaluate(_ => window.document.activeElement.getAttribute("data-element-id") @@ -1854,7 +1855,7 @@ describe("Interaction", () => { expect(text).withContext(`In ${browserName}`).toEqual("00000000123"); await page.click(getSelector("26R")); - await page.waitForTimeout(10); + await waitForTimeout(10); text = await page.$eval(getSelector("25R"), el => el.value); expect(text).withContext(`In ${browserName}`).toEqual("00000000123"); @@ -1888,13 +1889,13 @@ describe("Interaction", () => { expect(text).withContext(`In ${browserName}`).toEqual("5,25"); await page.click(getSelector("22R")); - await page.waitForTimeout(10); + await waitForTimeout(10); text = await page.$eval(getSelector("22R"), el => el.value); expect(text).withContext(`In ${browserName}`).toEqual("5,25"); await page.click(getSelector("31R")); - await page.waitForTimeout(10); + await waitForTimeout(10); text = await page.$eval(getSelector("31R"), el => el.value); expect(text).withContext(`In ${browserName}`).toEqual("5.25"); @@ -1925,7 +1926,7 @@ describe("Interaction", () => { expect(text).withContext(`In ${browserName}`).toEqual(""); await page.select(getSelector("6R"), "Yes"); - await page.waitForTimeout(10); + await waitForTimeout(10); text = await page.$eval(getSelector("44R"), el => el.value); expect(text).withContext(`In ${browserName}`).toEqual("Yes"); @@ -1933,7 +1934,7 @@ describe("Interaction", () => { await clearInput(page, getSelector("44R")); await page.select(getSelector("6R"), "No"); - await page.waitForTimeout(10); + await waitForTimeout(10); text = await page.$eval(getSelector("44R"), el => el.value); expect(text).withContext(`In ${browserName}`).toEqual("No"); @@ -1990,14 +1991,14 @@ describe("Interaction", () => { await page.type(getSelector("26R"), "abcde", { delay: 10 }); await page.click(getSelector("23R")); - await page.waitForTimeout(10); + await waitForTimeout(10); await page.click(getSelector("26R")); await kbSelectAll(page); await page.keyboard.press("Backspace"); await page.click(getSelector("23R")); - await page.waitForTimeout(10); + await waitForTimeout(10); text = await page.$eval(getSelector("26R"), el => el.value); expect(text).withContext(`In ${browserName}`).toEqual(""); @@ -2093,7 +2094,7 @@ describe("Interaction", () => { expect(visibility).withContext(`In ${browserName}`).toEqual("hidden"); await page.click(getSelector("11R")); - await page.waitForTimeout(10); + await waitForTimeout(10); visibility = await page.$eval( getSelector("7R"), @@ -2139,28 +2140,28 @@ describe("Interaction", () => { ); expect(readonly).withContext(`In ${browserName}`).toEqual(true); await page.click(getSelector("334R")); - await page.waitForTimeout(10); + await waitForTimeout(10); readonly = await page.$eval(getSelector("353R"), el => el.disabled); expect(readonly).withContext(`In ${browserName}`).toEqual(true); await page.click(getSelector("351R")); - await page.waitForTimeout(10); + await waitForTimeout(10); readonly = await page.$eval(getSelector("353R"), el => el.disabled); expect(readonly).withContext(`In ${browserName}`).toEqual(true); await page.click(getSelector("352R")); - await page.waitForTimeout(10); + await waitForTimeout(10); readonly = await page.$eval(getSelector("353R"), el => el.disabled); expect(readonly).withContext(`In ${browserName}`).toEqual(false); await page.click(getSelector("353R")); - await page.waitForTimeout(10); + await waitForTimeout(10); let checked = await page.$eval(getSelector("353R"), el => el.checked); expect(checked).withContext(`In ${browserName}`).toEqual(true); await page.click(getSelector("334R")); - await page.waitForTimeout(10); + await waitForTimeout(10); readonly = await page.$eval(getSelector("353R"), el => el.disabled); expect(readonly).withContext(`In ${browserName}`).toEqual(true); @@ -2199,16 +2200,16 @@ describe("Interaction", () => { await page.click(getSelector("55R")); await page.type(getSelector("55R"), "Hello", { delay: 10 }); await page.click(getSelector("56R")); - await page.waitForTimeout(10); + await waitForTimeout(10); await page.click(getSelector("55R")); await page.type(getSelector("55R"), " World", { delay: 10 }); - await page.waitForTimeout(10); + await waitForTimeout(10); await otherPages[i].bringToFront(); - await otherPages[i].waitForTimeout(100); + await waitForTimeout(100); await page.bringToFront(); - await page.waitForTimeout(100); + await waitForTimeout(100); const text = await page.$eval(getSelector("55R"), el => el.value); expect(text).withContext(`In ${browserName}`).toEqual("Hello World"); @@ -2243,7 +2244,7 @@ describe("Interaction", () => { ); await page.click(getSelector("25R")); - await page.waitForTimeout(10); + await waitForTimeout(10); await page.click(getSelector("26R")); await page.waitForFunction( diff --git a/test/integration/test_utils.mjs b/test/integration/test_utils.mjs index 4705a2f49f33f..037b547a1d7e5 100644 --- a/test/integration/test_utils.mjs +++ b/test/integration/test_utils.mjs @@ -85,11 +85,27 @@ function closePages(pages) { ); } +function waitForTimeout(milliseconds) { + /** + * Wait for the given number of milliseconds. + * + * Note that waiting for an arbitrary time in tests is discouraged because it + * can easily cause intermittent failures, which is why this functionality is + * no longer provided by Puppeteer 22+ and we have to implement it ourselves + * for the remaining callers in the integration tests. We should avoid + * creating new usages of this function; instead please refer to the better + * alternatives at https://github.com/puppeteer/puppeteer/pull/11780. + */ + return new Promise(resolve => { + setTimeout(resolve, milliseconds); + }); +} + async function clearInput(page, selector) { await page.click(selector); await kbSelectAll(page); await page.keyboard.press("Backspace"); - await page.waitForTimeout(10); + await waitForTimeout(10); } function getSelector(id) { @@ -276,7 +292,7 @@ async function serializeBitmapDimensions(page) { async function dragAndDropAnnotation(page, startX, startY, tX, tY) { await page.mouse.move(startX, startY); await page.mouse.down(); - await page.waitForTimeout(10); + await waitForTimeout(10); await page.mouse.move(startX + tX, startY + tY); await page.mouse.up(); await page.waitForSelector("#viewer:not(.noUserSelect)"); @@ -487,5 +503,6 @@ export { waitForSerialized, waitForStorageEntries, waitForTextLayer, + waitForTimeout, waitForUnselectedEditor, }; diff --git a/test/test.mjs b/test/test.mjs index 26405e6fc07f7..8928546d461b6 100644 --- a/test/test.mjs +++ b/test/test.mjs @@ -892,9 +892,7 @@ async function startBrowser({ browserName, headless, startUrl }) { const options = { product: browserName, protocol: "cdp", - // Note that using `headless: true` gives a deprecation warning; see - // https://github.com/puppeteer/puppeteer#default-runtime-settings. - headless: headless === true ? "new" : false, + headless, defaultViewport: null, ignoreDefaultArgs: ["--disable-extensions"], // The timeout for individual protocol (CDP) calls should always be lower