Changeset 3283244
- Timestamp:
- 04/28/2025 09:27:33 AM (10 months ago)
- Location:
- onlyoffice-docspace/trunk
- Files:
-
- 36 edited
-
CHANGELOG.md (modified) (1 diff)
-
assets-onlyoffice-docspace/js/docspace-integration-sdk.js (modified) (1 diff)
-
languages/onlyoffice-docspace-plugin-de_DE-93edf268056602020e97c3a56d0516e5.json (modified) (1 diff)
-
languages/onlyoffice-docspace-plugin-de_DE.mo (modified) (previous)
-
languages/onlyoffice-docspace-plugin-de_DE.po (modified) (6 diffs)
-
languages/onlyoffice-docspace-plugin-es_ES-93edf268056602020e97c3a56d0516e5.json (modified) (1 diff)
-
languages/onlyoffice-docspace-plugin-es_ES.mo (modified) (previous)
-
languages/onlyoffice-docspace-plugin-es_ES.po (modified) (6 diffs)
-
languages/onlyoffice-docspace-plugin-fr_FR-93edf268056602020e97c3a56d0516e5.json (modified) (1 diff)
-
languages/onlyoffice-docspace-plugin-fr_FR.mo (modified) (previous)
-
languages/onlyoffice-docspace-plugin-fr_FR.po (modified) (6 diffs)
-
languages/onlyoffice-docspace-plugin-it_IT-93edf268056602020e97c3a56d0516e5.json (modified) (1 diff)
-
languages/onlyoffice-docspace-plugin-it_IT.mo (modified) (previous)
-
languages/onlyoffice-docspace-plugin-it_IT.po (modified) (6 diffs)
-
languages/onlyoffice-docspace-plugin-pt_BR-93edf268056602020e97c3a56d0516e5.json (modified) (1 diff)
-
languages/onlyoffice-docspace-plugin-pt_BR.mo (modified) (previous)
-
languages/onlyoffice-docspace-plugin-pt_BR.po (modified) (6 diffs)
-
languages/onlyoffice-docspace-plugin-ru_RU-93edf268056602020e97c3a56d0516e5.json (modified) (1 diff)
-
languages/onlyoffice-docspace-plugin-ru_RU.mo (modified) (previous)
-
languages/onlyoffice-docspace-plugin-ru_RU.po (modified) (6 diffs)
-
languages/onlyoffice-docspace-plugin-zh_CN-93edf268056602020e97c3a56d0516e5.json (modified) (1 diff)
-
languages/onlyoffice-docspace-plugin-zh_CN.mo (modified) (previous)
-
languages/onlyoffice-docspace-plugin-zh_CN.po (modified) (6 diffs)
-
languages/onlyoffice-docspace-plugin.pot (modified) (6 diffs)
-
onlyoffice-docspace-wordpress-block/build/block.json (modified) (1 diff)
-
onlyoffice-docspace-wordpress-block/build/index.asset.php (modified) (1 diff)
-
onlyoffice-docspace-wordpress-block/build/index.js (modified) (1 diff)
-
onlyoffice-docspace-wordpress-block/src/block.json (modified) (1 diff)
-
onlyoffice-docspace-wordpress-block/src/edit.js (modified) (4 diffs)
-
onlyoffice-docspace-wordpress.php (modified) (2 diffs)
-
pages/class-oodsp-base-page.php (modified) (5 diffs)
-
pages/main/class-oodsp-main-page.php (modified) (2 diffs)
-
pages/public-docspace/class-oodsp-public-docspace-page.php (modified) (2 diffs)
-
pages/public-docspace/js/index.js (modified) (5 diffs)
-
pages/settings/class-oodsp-settings-page.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
onlyoffice-docspace/trunk/CHANGELOG.md
r3268645 r3283244 1 1 # Change Log 2 3 ## 3.1.0 4 ## Added 5 - presentation background color selector 6 7 ## Changed 8 - docspace-sdk-js v2.0.0 9 - improved loading speed of public room 2 10 3 11 ## 3.0.1 -
onlyoffice-docspace/trunk/assets-onlyoffice-docspace/js/docspace-integration-sdk.js
r3267772 r3283244 19 19 20 20 (function () { 21 const DOCSPACE_API_URL = "static/scripts/sdk/ 1.0.1/api.js";21 const DOCSPACE_API_URL = "static/scripts/sdk/2.0.0/api.js"; 22 22 23 23 const initScript = async (id, url) => { -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-de_DE-93edf268056602020e97c3a56d0516e5.json
r3267772 r3283244 1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de_DE","plural-forms":"nplurals=2; plural=(n != 1);"},"Settings":["Einstellungen"],"Width":["Breite"],"Height":["H\u00f6he"],"Replace":["Ersetzen"],"Select room":["Raum w\u00e4hlen"],"Select file":["Datei w\u00e4hlen"],"Room":["Raum"],"File":["Datei"],"Pick room or media file from your DocSpace":["W\u00e4hlen Sie einen Raum oder eine Mediendatei aus Ihrem DocSpace"],"Theme":["Thema"],"Light":["Hell"],"Dark":["Dunkel"],"View":["Ansicht"],"Embedded":["Eingebettete"],"Editor":["Editor"],"ONLYOFFICE DocSpace":["ONLYOFFICE DocSpace"] }}}1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de_DE","plural-forms":"nplurals=2; plural=(n != 1);"},"Settings":["Einstellungen"],"Width":["Breite"],"Height":["H\u00f6he"],"Replace":["Ersetzen"],"Select room":["Raum w\u00e4hlen"],"Select file":["Datei w\u00e4hlen"],"Room":["Raum"],"File":["Datei"],"Pick room or media file from your DocSpace":["W\u00e4hlen Sie einen Raum oder eine Mediendatei aus Ihrem DocSpace"],"Theme":["Thema"],"Light":["Hell"],"Dark":["Dunkel"],"View":["Ansicht"],"Embedded":["Eingebettete"],"Editor":["Editor"],"ONLYOFFICE DocSpace":["ONLYOFFICE DocSpace"],"Background color":["Hintergrundfarbe"]}}} -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-de_DE.po
r3267772 r3283244 14 14 "X-Generator: Poedit 3.4.1\n" 15 15 16 #: pages/settings/class-oodsp-settings-page.php: 7616 #: pages/settings/class-oodsp-settings-page.php:95 17 17 msgid "ONLYOFFICE DocSpace Settings" 18 18 msgstr "Einstellungen von ONLYOFFICE DocSpace" … … 26 26 msgstr "Adresse des WordPress-Portals:" 27 27 28 #: pages/settings/class-oodsp-settings-page.php: 7728 #: pages/settings/class-oodsp-settings-page.php:104 29 29 #: onlyoffice-docspace-wordpress-block/build/index.js:1 30 30 msgid "Settings" … … 37 37 msgstr "Kennwort" 38 38 39 #: pages/settings/class-oodsp-settings-page.php:2 0939 #: pages/settings/class-oodsp-settings-page.php:225 40 40 msgid "Settings saved" 41 41 msgstr "Einstellungen gespeichert" … … 204 204 msgstr "Stornieren" 205 205 206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:1 08206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:110 207 207 msgid "Add ONLYOFFICE DocSpace" 208 208 msgstr "ONLYOFFICE DocSpace hinzufügen" 209 209 210 210 #. translators: %1$s: opening link tag, %2$s: closing link tag 211 #: pages/settings/class-oodsp-settings-page.php: 189211 #: pages/settings/class-oodsp-settings-page.php:205 212 212 #: pages/settings/js/authorization.js:121 213 213 msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s." 214 214 msgstr "Die aktuelle Domäne ist in den Content Security Policy (CSP)-Einstellungen nicht festgelegt. Bitte fügen Sie sie über den %1$sAbschnitt Entwicklertools%2$s hinzu." 215 215 216 #: pages/settings/class-oodsp-settings-page.php:2 16216 #: pages/settings/class-oodsp-settings-page.php:232 217 217 #: pages/users/class-oodsp-users-page.php:541 218 218 #: pages/settings/js/authorization.js:140 … … 220 220 msgstr "ONLYOFFICE DocSpace kann nicht erreicht werden" 221 221 222 #: pages/settings/class-oodsp-settings-page.php:2 37222 #: pages/settings/class-oodsp-settings-page.php:253 223 223 msgid "ONLYOFFICE DocSpace successfully disconnected" 224 224 msgstr "ONLYOFFICE DocSpace erfolgreich getrennt" … … 402 402 msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s." 403 403 msgstr "Der Export für %1$s Benutzer ist fehlgeschlagen. Benutzer mit den angegebenen E-Mail-Adressen sind bereits in DocSpace vorhanden: %2$s." 404 405 #: onlyoffice-docspace-wordpress-block/build/index.js:1 406 msgid "Background color" 407 msgstr "Hintergrundfarbe" -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-es_ES-93edf268056602020e97c3a56d0516e5.json
r3267772 r3283244 1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"es_ES","plural-forms":"nplurals=2; plural=(n != 1);"},"Settings":["Ajustes"],"Width":["Ancho"],"Height":["Altura"],"Replace":["Reemplazar"],"Select room":["Seleccionar sala"],"Select file":["Seleccionar archivo"],"Room":["Sala"],"File":["Archivo"],"Pick room or media file from your DocSpace":["Elija una sala o un archivo multimedia de su DocSpace"],"Theme":["Tema"],"Light":["Claro"],"Dark":["Oscuro"],"View":["Vista"],"Embedded":["Incorporada"],"Editor":["Editor"],"ONLYOFFICE DocSpace":["ONLYOFFICE DocSpace"] }}}1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"es_ES","plural-forms":"nplurals=2; plural=(n != 1);"},"Settings":["Ajustes"],"Width":["Ancho"],"Height":["Altura"],"Replace":["Reemplazar"],"Select room":["Seleccionar sala"],"Select file":["Seleccionar archivo"],"Room":["Sala"],"File":["Archivo"],"Pick room or media file from your DocSpace":["Elija una sala o un archivo multimedia de su DocSpace"],"Theme":["Tema"],"Light":["Claro"],"Dark":["Oscuro"],"View":["Vista"],"Embedded":["Incorporada"],"Editor":["Editor"],"ONLYOFFICE DocSpace":["ONLYOFFICE DocSpace"],"Background color":["Color del fondo"]}}} -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-es_ES.po
r3267772 r3283244 14 14 "X-Generator: Poedit 3.4.1\n" 15 15 16 #: pages/settings/class-oodsp-settings-page.php: 7616 #: pages/settings/class-oodsp-settings-page.php:95 17 17 msgid "ONLYOFFICE DocSpace Settings" 18 18 msgstr "Ajustes de ONLYOFFICE DocSpace" … … 26 26 msgstr "Dirección del portal de WordPress:" 27 27 28 #: pages/settings/class-oodsp-settings-page.php: 7728 #: pages/settings/class-oodsp-settings-page.php:104 29 29 #: onlyoffice-docspace-wordpress-block/build/index.js:1 30 30 msgid "Settings" … … 37 37 msgstr "Contraseña" 38 38 39 #: pages/settings/class-oodsp-settings-page.php:2 0939 #: pages/settings/class-oodsp-settings-page.php:225 40 40 msgid "Settings saved" 41 41 msgstr "Ajustes guardados" … … 204 204 msgstr "Cancelar" 205 205 206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:1 08206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:110 207 207 msgid "Add ONLYOFFICE DocSpace" 208 208 msgstr "Añadir ONLYOFFICE DocSpace" 209 209 210 210 #. translators: %1$s: opening link tag, %2$s: closing link tag 211 #: pages/settings/class-oodsp-settings-page.php: 189211 #: pages/settings/class-oodsp-settings-page.php:205 212 212 #: pages/settings/js/authorization.js:121 213 213 msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s." 214 214 msgstr "El dominio actual no está establecido en la configuración de la Política de seguridad de contenidos (CSP). Por favor, añádalo a través de la sección %1$Herramientas de desarrollo%2$s" 215 215 216 #: pages/settings/class-oodsp-settings-page.php:2 16216 #: pages/settings/class-oodsp-settings-page.php:232 217 217 #: pages/users/class-oodsp-users-page.php:541 218 218 #: pages/settings/js/authorization.js:140 … … 220 220 msgstr "ONLYOFFICE DocSpace no está disponible" 221 221 222 #: pages/settings/class-oodsp-settings-page.php:2 37222 #: pages/settings/class-oodsp-settings-page.php:253 223 223 msgid "ONLYOFFICE DocSpace successfully disconnected" 224 224 msgstr "ONLYOFFICE DocSpace se ha desconectado correctamente" … … 402 402 msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s." 403 403 msgstr "Error de exportación para %1$s usuarios. Los usuarios con los correos indicados ya existen en DocSpace: %2$s." 404 405 #: onlyoffice-docspace-wordpress-block/build/index.js:1 406 msgid "Background color" 407 msgstr "Color del fondo" -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-fr_FR-93edf268056602020e97c3a56d0516e5.json
r3267772 r3283244 1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr_FR","plural-forms":"nplurals=2; plural=(n > 1);"},"Settings":["Param\u00e8tres"],"Width":["Largeur"],"Height":["Hauteur"],"Replace":["Remplacer"],"Select room":["S\u00e9lectionner salle"],"Select file":["S\u00e9lectionner fichier"],"Room":["Salle"],"File":["Fichier"],"Pick room or media file from your DocSpace":["Choisissez une salle ou un fichier multim\u00e9dia dans votre DocSpace"],"Theme":["Th\u00e8me"],"Light":["Clair"],"Dark":["Sombre"],"View":["Affichage"],"Embedded":["Incorpor\u00e9"],"Editor":["\u00c9diteur"],"ONLYOFFICE DocSpace":["ONLYOFFICE DocSpace"] }}}1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr_FR","plural-forms":"nplurals=2; plural=(n > 1);"},"Settings":["Param\u00e8tres"],"Width":["Largeur"],"Height":["Hauteur"],"Replace":["Remplacer"],"Select room":["S\u00e9lectionner salle"],"Select file":["S\u00e9lectionner fichier"],"Room":["Salle"],"File":["Fichier"],"Pick room or media file from your DocSpace":["Choisissez une salle ou un fichier multim\u00e9dia dans votre DocSpace"],"Theme":["Th\u00e8me"],"Light":["Clair"],"Dark":["Sombre"],"View":["Affichage"],"Embedded":["Incorpor\u00e9"],"Editor":["\u00c9diteur"],"ONLYOFFICE DocSpace":["ONLYOFFICE DocSpace"],"Background color":["Couleur d'arri\u00e8re-plan"]}}} -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-fr_FR.po
r3267772 r3283244 14 14 "X-Generator: Poedit 3.4.1\n" 15 15 16 #: pages/settings/class-oodsp-settings-page.php: 7616 #: pages/settings/class-oodsp-settings-page.php:95 17 17 msgid "ONLYOFFICE DocSpace Settings" 18 18 msgstr "Paramètres d'ONLYOFFICE DocSpace" … … 26 26 msgstr "Adresse du portail WordPress :" 27 27 28 #: pages/settings/class-oodsp-settings-page.php: 7728 #: pages/settings/class-oodsp-settings-page.php:104 29 29 #: onlyoffice-docspace-wordpress-block/build/index.js:1 30 30 msgid "Settings" … … 37 37 msgstr "Mot de passe" 38 38 39 #: pages/settings/class-oodsp-settings-page.php:2 0939 #: pages/settings/class-oodsp-settings-page.php:225 40 40 msgid "Settings saved" 41 41 msgstr "Paramètres enregistrés" … … 204 204 msgstr "Annuler" 205 205 206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:1 08206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:110 207 207 msgid "Add ONLYOFFICE DocSpace" 208 208 msgstr "Ajouter ONLYOFFICE DocSpace" 209 209 210 210 #. translators: %1$s: opening link tag, %2$s: closing link tag 211 #: pages/settings/class-oodsp-settings-page.php: 189211 #: pages/settings/class-oodsp-settings-page.php:205 212 212 #: pages/settings/js/authorization.js:121 213 213 msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s." 214 214 msgstr "Le domaine actuel n'est pas défini dans les paramètres de la politique de sécurité du contenu (CSP). Veuillez l'ajouter via %1$la section Outils de développement%2$s." 215 215 216 #: pages/settings/class-oodsp-settings-page.php:2 16216 #: pages/settings/class-oodsp-settings-page.php:232 217 217 #: pages/users/class-oodsp-users-page.php:541 218 218 #: pages/settings/js/authorization.js:140 … … 220 220 msgstr "ONLYOFFICE DocSpace n'est pas joignable" 221 221 222 #: pages/settings/class-oodsp-settings-page.php:2 37222 #: pages/settings/class-oodsp-settings-page.php:253 223 223 msgid "ONLYOFFICE DocSpace successfully disconnected" 224 224 msgstr "ONLYOFFICE DocSpace déconnecté avec succès" … … 402 402 msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s." 403 403 msgstr "L'exportation a échoué pour %1$s utilisateur(s). Le(s) utilisateur(s) avec le(s) e-mail(s) indiqué(s) existe(nt) déjà dans DocSpace: %2$s." 404 405 #: onlyoffice-docspace-wordpress-block/build/index.js:1 406 msgid "Background color" 407 msgstr "Couleur d'arrière-plan" -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-it_IT-93edf268056602020e97c3a56d0516e5.json
r3267772 r3283244 1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"it_IT","plural-forms":"nplurals=2; plural=(n != 1);"},"Settings":["Impostazioni"],"Width":["Larghezza"],"Height":["Altezza"],"Replace":["Sostituisci"],"Select room":["Seleziona stanza"],"Select file":["Seleziona file"],"Room":["Stanza"],"File":["File"],"Pick room or media file from your DocSpace":["Scegli la stanza virtuale o il file multimediale dal tuo DocSpace"],"Theme":["Tema"],"Light":["Chiaro"],"Dark":["Scuro"],"View":["Visualizzazione"],"Embedded":["Incorporata"],"Editor":["Editor"],"ONLYOFFICE DocSpace":["ONLYOFFICE DocSpace"] }}}1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"it_IT","plural-forms":"nplurals=2; plural=(n != 1);"},"Settings":["Impostazioni"],"Width":["Larghezza"],"Height":["Altezza"],"Replace":["Sostituisci"],"Select room":["Seleziona stanza"],"Select file":["Seleziona file"],"Room":["Stanza"],"File":["File"],"Pick room or media file from your DocSpace":["Scegli la stanza virtuale o il file multimediale dal tuo DocSpace"],"Theme":["Tema"],"Light":["Chiaro"],"Dark":["Scuro"],"View":["Visualizzazione"],"Embedded":["Incorporata"],"Editor":["Editor"],"ONLYOFFICE DocSpace":["ONLYOFFICE DocSpace"],"Background color":["Colore di sfondo"]}}} -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-it_IT.po
r3267772 r3283244 14 14 "X-Generator: Poedit 3.4.1\n" 15 15 16 #: pages/settings/class-oodsp-settings-page.php: 7616 #: pages/settings/class-oodsp-settings-page.php:95 17 17 msgid "ONLYOFFICE DocSpace Settings" 18 18 msgstr "Impostazioni di ONLYOFFICE DocSpace" … … 26 26 msgstr "Indirizzo del portale WordPress:" 27 27 28 #: pages/settings/class-oodsp-settings-page.php: 7728 #: pages/settings/class-oodsp-settings-page.php:104 29 29 #: onlyoffice-docspace-wordpress-block/build/index.js:1 30 30 msgid "Settings" … … 37 37 msgstr "Password" 38 38 39 #: pages/settings/class-oodsp-settings-page.php:2 0939 #: pages/settings/class-oodsp-settings-page.php:225 40 40 msgid "Settings saved" 41 41 msgstr "Impostazioni salvate" … … 204 204 msgstr "Annulla" 205 205 206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:1 08206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:110 207 207 msgid "Add ONLYOFFICE DocSpace" 208 208 msgstr "Aggiungi ONLYOFFICE DocSpace" 209 209 210 210 #. translators: %1$s: opening link tag, %2$s: closing link tag 211 #: pages/settings/class-oodsp-settings-page.php: 189211 #: pages/settings/class-oodsp-settings-page.php:205 212 212 #: pages/settings/js/authorization.js:121 213 213 msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s." 214 214 msgstr "Il dominio attuale non è impostato nelle configurazioni della Content Security Policy (CSP). Aggiungilo tramite %1$la sezione Strumenti per sviluppatori%2$s." 215 215 216 #: pages/settings/class-oodsp-settings-page.php:2 16216 #: pages/settings/class-oodsp-settings-page.php:232 217 217 #: pages/users/class-oodsp-users-page.php:541 218 218 #: pages/settings/js/authorization.js:140 … … 220 220 msgstr "Impossibile raggiungere ONLYOFFICE DocSpace" 221 221 222 #: pages/settings/class-oodsp-settings-page.php:2 37222 #: pages/settings/class-oodsp-settings-page.php:253 223 223 msgid "ONLYOFFICE DocSpace successfully disconnected" 224 224 msgstr "ONLYOFFICE DocSpace disconnesso con successo" … … 402 402 msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s." 403 403 msgstr "Esportazione non riuscita per %1$s utente(i). Gli utenti con le email indicate esistono già in DocSpace: %2$s." 404 405 #: onlyoffice-docspace-wordpress-block/build/index.js:1 406 msgid "Background color" 407 msgstr "Colore di sfondo" -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-pt_BR-93edf268056602020e97c3a56d0516e5.json
r3267772 r3283244 1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_BR","plural-forms":"nplurals=2; plural=(n > 1);"},"Settings":["Configura\u00e7\u00f5es"],"Width":["Largura"],"Height":["Altura"],"Replace":["Substituir"],"Select room":["Selecione o quarto"],"Select file":["Selecionar arquivo"],"Room":["Sala"],"File":["Arquivo"],"Pick room or media file from your DocSpace":["Escolha uma sala ou arquivo de m\u00eddia do seu DocSpace"],"Theme":["Tema"],"Light":["Claro"],"Dark":["Escuro"],"View":["Ver"],"Embedded":["Incorporado"],"Editor":["Editor"],"ONLYOFFICE DocSpace":["ONLYOFFICE DocSpace"] }}}1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt_BR","plural-forms":"nplurals=2; plural=(n > 1);"},"Settings":["Configura\u00e7\u00f5es"],"Width":["Largura"],"Height":["Altura"],"Replace":["Substituir"],"Select room":["Selecione o quarto"],"Select file":["Selecionar arquivo"],"Room":["Sala"],"File":["Arquivo"],"Pick room or media file from your DocSpace":["Escolha uma sala ou arquivo de m\u00eddia do seu DocSpace"],"Theme":["Tema"],"Light":["Claro"],"Dark":["Escuro"],"View":["Ver"],"Embedded":["Incorporado"],"Editor":["Editor"],"ONLYOFFICE DocSpace":["ONLYOFFICE DocSpace"],"Background color":["Cor de fundo"]}}} -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-pt_BR.po
r3267772 r3283244 14 14 "X-Generator: Poedit 3.4.1\n" 15 15 16 #: pages/settings/class-oodsp-settings-page.php: 7616 #: pages/settings/class-oodsp-settings-page.php:95 17 17 msgid "ONLYOFFICE DocSpace Settings" 18 18 msgstr "Configurações do ONLYOFFICE DocSpace" … … 26 26 msgstr "Endereço do portal WordPress:" 27 27 28 #: pages/settings/class-oodsp-settings-page.php: 7728 #: pages/settings/class-oodsp-settings-page.php:104 29 29 #: onlyoffice-docspace-wordpress-block/build/index.js:1 30 30 msgid "Settings" … … 37 37 msgstr "Senha" 38 38 39 #: pages/settings/class-oodsp-settings-page.php:2 0939 #: pages/settings/class-oodsp-settings-page.php:225 40 40 msgid "Settings saved" 41 41 msgstr "Configurações salvas" … … 204 204 msgstr "Cancelar" 205 205 206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:1 08206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:110 207 207 msgid "Add ONLYOFFICE DocSpace" 208 208 msgstr "Adicionar o ONLYOFFICE ao DocSpace" 209 209 210 210 #. translators: %1$s: opening link tag, %2$s: closing link tag 211 #: pages/settings/class-oodsp-settings-page.php: 189211 #: pages/settings/class-oodsp-settings-page.php:205 212 212 #: pages/settings/js/authorization.js:121 213 213 msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s." 214 214 msgstr "O domínio atual não está definido nas configurações da Política de Segurança de Conteúdo (CSP). Adicione-o por meio da %1$s seção Ferramentas do Desenvolvedor%2$s." 215 215 216 #: pages/settings/class-oodsp-settings-page.php:2 16216 #: pages/settings/class-oodsp-settings-page.php:232 217 217 #: pages/users/class-oodsp-users-page.php:541 218 218 #: pages/settings/js/authorization.js:140 … … 220 220 msgstr "O ONLYOFFICE DocSpace não pode ser acessado" 221 221 222 #: pages/settings/class-oodsp-settings-page.php:2 37222 #: pages/settings/class-oodsp-settings-page.php:253 223 223 msgid "ONLYOFFICE DocSpace successfully disconnected" 224 224 msgstr "O ONLYOFFICE DocSpace foi desconectado com sucesso" … … 402 402 msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s." 403 403 msgstr "Exportação falhou para %2$s usuário(s). Usuário(s) com o(s) e-mail(s) indicado(s) já existem no DocSpace: %2$s." 404 405 #: onlyoffice-docspace-wordpress-block/build/index.js:1 406 msgid "Background color" 407 msgstr "Cor de fundo" -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-ru_RU-93edf268056602020e97c3a56d0516e5.json
r3267772 r3283244 1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"ru","plural-forms":"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);"},"Settings":["\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"],"Width":["\u0428\u0438\u0440\u0438\u043d\u0430"],"Height":["\u0412\u044b\u0441\u043e\u0442\u0430"],"Replace":["\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c"],"Select room":["\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043c\u043d\u0430\u0442\u0443"],"Select file":["\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0444\u0430\u0439\u043b"],"Room":["\u041a\u043e\u043c\u043d\u0430\u0442\u0430"],"File":["\u0424\u0430\u0439\u043b"],"Pick room or media file from your DocSpace":["\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043a\u043e\u043c\u043d\u0430\u0442\u0443 \u0438\u043b\u0438 \u043c\u0435\u0434\u0438\u0430\u0444\u0430\u0439\u043b \u0438\u0437 DocSpace "],"Theme":["\u0422\u0435\u043c\u0430"],"Light":["\u0421\u0432\u0435\u0442\u043b\u0430\u044f"],"Dark":["\u0422\u0435\u043c\u043d\u0430\u044f"],"View":["\u0412\u0438\u0434"],"Embedded":["\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439"],"Editor":["\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440"],"ONLYOFFICE DocSpace":["ONLYOFFICE DocSpace"] }}}1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"ru","plural-forms":"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);"},"Settings":["\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"],"Width":["\u0428\u0438\u0440\u0438\u043d\u0430"],"Height":["\u0412\u044b\u0441\u043e\u0442\u0430"],"Replace":["\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c"],"Select room":["\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043c\u043d\u0430\u0442\u0443"],"Select file":["\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0444\u0430\u0439\u043b"],"Room":["\u041a\u043e\u043c\u043d\u0430\u0442\u0430"],"File":["\u0424\u0430\u0439\u043b"],"Pick room or media file from your DocSpace":["\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043a\u043e\u043c\u043d\u0430\u0442\u0443 \u0438\u043b\u0438 \u043c\u0435\u0434\u0438\u0430\u0444\u0430\u0439\u043b \u0438\u0437 DocSpace "],"Theme":["\u0422\u0435\u043c\u0430"],"Light":["\u0421\u0432\u0435\u0442\u043b\u0430\u044f"],"Dark":["\u0422\u0435\u043c\u043d\u0430\u044f"],"View":["\u0412\u0438\u0434"],"Embedded":["\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439"],"Editor":["\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440"],"ONLYOFFICE DocSpace":["ONLYOFFICE DocSpace"],"Background color":["\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430"]}}} -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-ru_RU.po
r3267772 r3283244 14 14 "X-Generator: Poedit 3.4.1\n" 15 15 16 #: pages/settings/class-oodsp-settings-page.php: 7616 #: pages/settings/class-oodsp-settings-page.php:95 17 17 msgid "ONLYOFFICE DocSpace Settings" 18 18 msgstr "Настройки ONLYOFFICE DocSpace" … … 26 26 msgstr "Адрес портала WordPress:" 27 27 28 #: pages/settings/class-oodsp-settings-page.php: 7728 #: pages/settings/class-oodsp-settings-page.php:104 29 29 #: onlyoffice-docspace-wordpress-block/build/index.js:1 30 30 msgid "Settings" … … 37 37 msgstr "Пароль" 38 38 39 #: pages/settings/class-oodsp-settings-page.php:2 0939 #: pages/settings/class-oodsp-settings-page.php:225 40 40 msgid "Settings saved" 41 41 msgstr "Настройки сохранены" … … 204 204 msgstr "Отменить" 205 205 206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:1 08206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:110 207 207 msgid "Add ONLYOFFICE DocSpace" 208 208 msgstr "Добавить ONLYOFFICE DocSpace" 209 209 210 210 #. translators: %1$s: opening link tag, %2$s: closing link tag 211 #: pages/settings/class-oodsp-settings-page.php: 189211 #: pages/settings/class-oodsp-settings-page.php:205 212 212 #: pages/settings/js/authorization.js:121 213 213 msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s." 214 214 msgstr "Текущий домен не установлен в настройках Политики безопасности контента (CSP). Пожалуйста, добавьте его через %1$sраздел Инструменты разработчика%2$s." 215 215 216 #: pages/settings/class-oodsp-settings-page.php:2 16216 #: pages/settings/class-oodsp-settings-page.php:232 217 217 #: pages/users/class-oodsp-users-page.php:541 218 218 #: pages/settings/js/authorization.js:140 … … 220 220 msgstr "ONLYOFFICE DocSpace недоступен" 221 221 222 #: pages/settings/class-oodsp-settings-page.php:2 37222 #: pages/settings/class-oodsp-settings-page.php:253 223 223 msgid "ONLYOFFICE DocSpace successfully disconnected" 224 224 msgstr "ONLYOFFICE DocSpace успешно отключен" … … 402 402 msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s." 403 403 msgstr "Экспорт не удался для %1$s пользователя(ей). Пользователи с указанными адресами электронной почты уже существуют в DocSpace: %2$s." 404 405 #: onlyoffice-docspace-wordpress-block/build/index.js:1 406 msgid "Background color" 407 msgstr "Цвет фона" -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-zh_CN-93edf268056602020e97c3a56d0516e5.json
r3267772 r3283244 1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"zh_CN","plural-forms":"nplurals=1; plural=0;"},"Settings":["\u8bbe\u7f6e"],"Width":["\u5bbd\u5ea6"],"Height":["\u9ad8\u5ea6"],"Replace":["\u66ff\u6362"],"Select room":["\u9009\u62e9\u623f\u95f4"],"Select file":["\u9009\u62e9\u6587\u4ef6"],"Room":["\u623f\u95f4"],"File":["\u6587\u4ef6"],"Pick room or media file from your DocSpace":["\u5728\u534f\u4f5c\u7a7a\u95f4\u4e2d\u9009\u62e9\u623f\u95f4\u6216\u5a92\u4f53\u6587\u4ef6"],"Theme":["\u4e3b\u984c"],"Light":["\u6dfa\u8272\u4e3b\u984c"],"Dark":["\u6df1\u8272\u7684"],"View":["\u89c6\u56fe"],"Embedded":["\u5d4c\u5165\u5f0f"],"Editor":["\u7f16\u8f91\u5668"],"ONLYOFFICE DocSpace":["ONLYOFFICE \u534f\u4f5c\u7a7a\u95f4"] }}}1 {"translation-revision-date":"","generator":"WP-CLI\/2.11.0","source":"onlyoffice-docspace-wordpress-block\/build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"zh_CN","plural-forms":"nplurals=1; plural=0;"},"Settings":["\u8bbe\u7f6e"],"Width":["\u5bbd\u5ea6"],"Height":["\u9ad8\u5ea6"],"Replace":["\u66ff\u6362"],"Select room":["\u9009\u62e9\u623f\u95f4"],"Select file":["\u9009\u62e9\u6587\u4ef6"],"Room":["\u623f\u95f4"],"File":["\u6587\u4ef6"],"Pick room or media file from your DocSpace":["\u5728\u534f\u4f5c\u7a7a\u95f4\u4e2d\u9009\u62e9\u623f\u95f4\u6216\u5a92\u4f53\u6587\u4ef6"],"Theme":["\u4e3b\u984c"],"Light":["\u6dfa\u8272\u4e3b\u984c"],"Dark":["\u6df1\u8272\u7684"],"View":["\u89c6\u56fe"],"Embedded":["\u5d4c\u5165\u5f0f"],"Editor":["\u7f16\u8f91\u5668"],"ONLYOFFICE DocSpace":["ONLYOFFICE \u534f\u4f5c\u7a7a\u95f4"],"Background color":["\u80cc\u666f\u989c\u8272"]}}} -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin-zh_CN.po
r3267772 r3283244 14 14 "X-Generator: Poedit 3.4.1\n" 15 15 16 #: pages/settings/class-oodsp-settings-page.php: 7616 #: pages/settings/class-oodsp-settings-page.php:95 17 17 msgid "ONLYOFFICE DocSpace Settings" 18 18 msgstr "ONLYOFFICE 协作空间设置" … … 26 26 msgstr "WordPress 门户地址:" 27 27 28 #: pages/settings/class-oodsp-settings-page.php: 7728 #: pages/settings/class-oodsp-settings-page.php:104 29 29 #: onlyoffice-docspace-wordpress-block/build/index.js:1 30 30 msgid "Settings" … … 37 37 msgstr "密码" 38 38 39 #: pages/settings/class-oodsp-settings-page.php:2 0939 #: pages/settings/class-oodsp-settings-page.php:225 40 40 msgid "Settings saved" 41 41 msgstr "设置已保存" … … 204 204 msgstr "取消" 205 205 206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:1 08206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:110 207 207 msgid "Add ONLYOFFICE DocSpace" 208 208 msgstr "添加 ONLYOFFICE 协作空间" 209 209 210 210 #. translators: %1$s: opening link tag, %2$s: closing link tag 211 #: pages/settings/class-oodsp-settings-page.php: 189211 #: pages/settings/class-oodsp-settings-page.php:205 212 212 #: pages/settings/js/authorization.js:121 213 213 msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s." 214 214 msgstr "当前域未在内容安全策略 (CSP) 设置中设置。请通过 %1$s 开发人员工具部分 %2$s 添加它。" 215 215 216 #: pages/settings/class-oodsp-settings-page.php:2 16216 #: pages/settings/class-oodsp-settings-page.php:232 217 217 #: pages/users/class-oodsp-users-page.php:541 218 218 #: pages/settings/js/authorization.js:140 … … 220 220 msgstr "无法访问 ONLYOFFICE 协作空间" 221 221 222 #: pages/settings/class-oodsp-settings-page.php:2 37222 #: pages/settings/class-oodsp-settings-page.php:253 223 223 msgid "ONLYOFFICE DocSpace successfully disconnected" 224 224 msgstr "ONLYOFFICE 协作空间已成功断开连接" … … 402 402 msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s." 403 403 msgstr "%1$s 个用户的导出失败。协作空间中已存在具有指定电子邮件的用户: %2$s" 404 405 #: onlyoffice-docspace-wordpress-block/build/index.js:1 406 msgid "Background color" 407 msgstr "背景颜色" -
onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin.pot
r3267772 r3283244 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: ONLYOFFICE DocSpace 2.1.3\n"5 "Project-Id-Version: ONLYOFFICE DocSpace 3.0.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/onlyoffice-docspace-wordpress\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 3-28T15:30:14+03:00\n"12 "POT-Creation-Date: 2025-04-24T10:54:23+03:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 108 108 msgstr "" 109 109 110 #: pages/public-docspace/class-oodsp-public-docspace-page.php:1 08110 #: pages/public-docspace/class-oodsp-public-docspace-page.php:110 111 111 msgid "Add ONLYOFFICE DocSpace" 112 112 msgstr "" 113 113 114 #: pages/settings/class-oodsp-settings-page.php: 76114 #: pages/settings/class-oodsp-settings-page.php:95 115 115 msgid "ONLYOFFICE DocSpace Settings" 116 116 msgstr "" 117 117 118 #: pages/settings/class-oodsp-settings-page.php: 77118 #: pages/settings/class-oodsp-settings-page.php:104 119 119 #: onlyoffice-docspace-wordpress-block/build/index.js:1 120 120 msgid "Settings" … … 122 122 123 123 #. translators: %1$s: opening link tag, %2$s: closing link tag 124 #: pages/settings/class-oodsp-settings-page.php: 189124 #: pages/settings/class-oodsp-settings-page.php:205 125 125 #: pages/settings/js/authorization.js:121 126 126 msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s." 127 127 msgstr "" 128 128 129 #: pages/settings/class-oodsp-settings-page.php:2 09129 #: pages/settings/class-oodsp-settings-page.php:225 130 130 msgid "Settings saved" 131 131 msgstr "" 132 132 133 #: pages/settings/class-oodsp-settings-page.php:2 16133 #: pages/settings/class-oodsp-settings-page.php:232 134 134 #: pages/users/class-oodsp-users-page.php:541 135 135 #: pages/settings/js/authorization.js:140 … … 137 137 msgstr "" 138 138 139 #: pages/settings/class-oodsp-settings-page.php:2 37139 #: pages/settings/class-oodsp-settings-page.php:253 140 140 msgid "ONLYOFFICE DocSpace successfully disconnected" 141 141 msgstr "" … … 393 393 394 394 #: onlyoffice-docspace-wordpress-block/build/index.js:1 395 msgid "Background color" 396 msgstr "" 397 398 #: onlyoffice-docspace-wordpress-block/build/index.js:1 395 399 msgid "Replace" 396 400 msgstr "" -
onlyoffice-docspace/trunk/onlyoffice-docspace-wordpress-block/build/block.json
r3268645 r3283244 43 43 "editorType": { 44 44 "type": "string" 45 }, 46 "documentType": { 47 "type": "string" 48 }, 49 "slidePlayerBackground": { 50 "type": "string" 45 51 } 46 52 }, -
onlyoffice-docspace/trunk/onlyoffice-docspace-wordpress-block/build/index.asset.php
r3268645 r3283244 1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => ' cb035eb41f73bc8499e7');1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '5cd23f2ad51a2f81738b'); -
onlyoffice-docspace/trunk/onlyoffice-docspace-wordpress-block/build/index.js
r3268645 r3283244 1 (()=>{"use strict";var e={d:(t,l)=>{for(var o in l)e.o(l,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:l[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};e.d({},{y:()=>m});const t=window.React,l=window.wp.blocks,o=JSON.parse('{"UU":"onlyoffice-docspace-wordpress/onlyoffice-docspace","uK":{"fileId":{"type":["number","string"]},"roomId":{"type":["number","string"]},"name":{"type":"string"},"icon":{"type":"string"},"width":{"type":"string"},"height":{"type":"string"},"requestToken":{"type":"string"},"theme":{"type":"string"},"editorType":{"type":"string"} }}'),n=window.wp.blockEditor,a=window.wp.components,c=window.wp.element,r=window.wp.i18n,i=(0,t.createElement)("svg",{width:"96",height:"96",viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"2",y:"2",width:"92",height:"92",rx:"10",stroke:"black",strokeOpacity:"0.17",strokeWidth:"4"}),(0,t.createElement)("rect",{x:"18",y:"18",width:"25",height:"25",rx:"3",fill:"white"}),(0,t.createElement)("rect",{x:"18",y:"54",width:"25",height:"25",rx:"3",fill:"white"}),(0,t.createElement)("rect",{x:"53",y:"54",width:"25",height:"25",rx:"3",fill:"white"}),(0,t.createElement)("rect",{x:"53",y:"18",width:"25",height:"25",rx:"3",fill:"white"})),s=(0,t.createElement)("svg",{width:"97",height:"96",viewBox:"0 0 97 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M10.5 1H57.5L86.5 30V95H10.5V1Z",fill:"white"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 95H86.5V30L57.5 1H10.5V95ZM57.5 0H9.5V96H87.5V30L57.5 0Z",fill:"url(#paint0_linear_3527_59860)"}),(0,t.createElement)("path",{d:"M33.5 67H39.5V73H33.5V67Z",fill:"#BFBFBF"}),(0,t.createElement)("path",{d:"M45.5 67H51.5V73H45.5V67Z",fill:"#BFBFBF"}),(0,t.createElement)("path",{d:"M63.5 67H57.5V73H63.5V67Z",fill:"#BFBFBF"}),(0,t.createElement)("path",{opacity:"0.3",d:"M56.5 30V1H57.5V29H86.5L87.5 30H56.5Z",fill:"black"}),(0,t.createElement)("defs",null,(0,t.createElement)("linearGradient",{id:"paint0_linear_3527_59860",x1:"48.5",y1:"94.25",x2:"48.5",y2:"1.21299e-06",gradientUnits:"userSpaceOnUse"},(0,t.createElement)("stop",{stopColor:"#A8A8A8"}),(0,t.createElement)("stop",{offset:"1",stopColor:"#DADADA"})))),d=(0,t.createElement)("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M8.5 10.4197V4.58032C8.5 4.22147 8.69229 3.89012 9.00386 3.71208L14.0039 0.854937C14.6705 0.47399 15.5 0.955357 15.5 1.72318V13.2768C15.5 14.0446 14.6705 14.526 14.0039 14.1451L9.00386 11.2879C8.69229 11.1099 8.5 10.7785 8.5 10.4197Z",fill:"#333333"}),(0,t.createElement)("rect",{x:"1.5",y:"4",width:"6",height:"7",rx:"1",fill:"#333333"}),(0,t.createElement)("path",{d:"M4.38184 12L5.60542 14.4472C5.85241 14.9411 6.45308 15.1414 6.94706 14.8944C7.44104 14.6474 7.64126 14.0467 7.39427 13.5527L6.6179 12H4.38184Z",fill:"#333333"})),p=(0,t.createElement)("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M8.5 10.4197V4.58032C8.5 4.22147 8.69229 3.89012 9.00386 3.71208L14.0039 0.854937C14.6705 0.47399 15.5 0.955357 15.5 1.72318V13.2768C15.5 14.0446 14.6705 14.526 14.0039 14.1451L9.00386 11.2879C8.69229 11.1099 8.5 10.7785 8.5 10.4197Z",fill:"white"}),(0,t.createElement)("rect",{x:"1.5",y:"4",width:"6",height:"7",rx:"1",fill:"white"}),(0,t.createElement)("path",{d:"M4.38184 12L5.60542 14.4472C5.85241 14.9411 6.45308 15.1414 6.94706 14.8944C7.44104 14.6474 7.64126 14.0467 7.39427 13.5527L6.6179 12H4.38184Z",fill:"white"})),m=(0,t.createElement)("svg",{width:"66",height:"60",viewBox:"0 0 66 60",fill:"black",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M28.9406 59.2644L2.20792 46.9066C-0.0693069 45.8277 -0.0693069 44.1604 2.20792 43.1796L11.5148 38.8642L28.8416 46.9066C31.1188 47.9854 34.7822 47.9854 36.9604 46.9066L54.2871 38.8642L63.5941 43.1796C65.8713 44.2585 65.8713 45.9258 63.5941 46.9066L36.8614 59.2644C34.7822 60.2452 31.1188 60.2452 28.9406 59.2644Z",fill:"black"}),(0,t.createElement)("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M28.9406 44.0606L2.20792 31.7028C-0.069307 30.6239 -0.069307 28.9566 2.20792 27.9758L11.3168 23.7584L28.9406 31.8989C31.2178 32.9778 34.8812 32.9778 37.0594 31.8989L54.6832 23.7584L63.7921 27.9758C66.0693 29.0547 66.0693 30.722 63.7921 31.7028L37.0594 44.0606C34.7822 45.1395 31.1188 45.1395 28.9406 44.0606Z",fill:"black"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.9406 29.2518L2.20792 16.8939C-0.069307 15.8151 -0.069307 14.1478 2.20792 13.167L28.9406 0.809144C31.2178 -0.269715 34.8812 -0.269715 37.0594 0.809144L63.7921 13.167C66.0693 14.2458 66.0693 15.9132 63.7921 16.8939L37.0594 29.2518C34.7822 30.2325 31.1188 30.2325 28.9406 29.2518Z",fill:"black"}));(0,l.registerBlockType)(o.UU,{icon:m,edit:({attributes:e,setAttributes:l})=>{const[o,f]=(0,c.useState)(!1),[h,u]=(0,c.useState)(),[g,w]=(0,c.useState)({}),[y,E]=(0,c.useState)(!1),_={height:"500px",background:"#a2ccef"},C=[{label:(0,r.__)("Light","onlyoffice-docspace-plugin"),value:"Base"},{label:(0,r.__)("Dark","onlyoffice-docspace-plugin"),value:"Dark"}],v=[{label:(0,r.__)("Embedded","onlyoffice-docspace-plugin"),value:"embedded"},{label:(0,r.__)("Editor","onlyoffice-docspace-plugin"),value:"desktop"}];(0,c.useEffect)((()=>{o&&oodsp.main.loadDocspace("oodsp-selector-frame",(function(){DocSpace.SDK.initFrame(Object.assign(g,{src:DocSpace.SDK.src}))}))}),[o,g]);const b=t=>{Object.keys(e).forEach((t=>{["roomId","fileId","name","icon","requestToken","editorType"].includes(t)&&delete e[t]}));const o=t[0].requestTokens,n=o?o[0].requestToken:null;l({roomId:new String(t[0].id),name:t[0].label,icon:t[0].icon}),n&&l({requestToken:n}),DocSpace.SDK.frames["oodsp-selector-frame"].destroyFrame(),f(!1)},k=t=>{Object.keys(e).forEach((t=>{["roomId","fileId","name","icon","requestToken"].includes(t)&&delete e[t]}));const o=t.requestTokens,n=o?o[0].requestToken:null;l({fileId:new String(t.id),name:t.title,icon:t.icon}),n&&l({requestToken:n}),DocSpace.SDK.frames["oodsp-selector-frame"].destroyFrame(),f(!1)},S=()=>{DocSpace.SDK.frames["oodsp-selector-frame"].destroyFrame(),f(!1)},L=e=>{const t=e.target.dataset.mode||null;let l=null;switch(t){case"room-selector":l=b;break;case"file-selector":l=k}u((0,r.__)("ONLYOFFICE DocSpace","onlyoffice-docspace-plugin")),w({frameId:"oodsp-selector-frame",width:"100%",height:"100%",mode:t,selectorType:"roomsOnly",theme:"Base",locale:_oodspMain.locale,events:{onAppReady:()=>{u(e.target.dataset.title||"")},onSelectCallback:l,onCloseCallback:S}}),f(!0)};e.hasOwnProperty("width")&&e.width.length>0&&(_.width=e.width),e.hasOwnProperty("height")&&e.height.length>0&&(_.height=e.height);let x=!0;"full"===e.align&&(delete _.width,x=!1);const D=!e.roomId&&!e.fileId,F=!D&&e.roomId?"room":"file",M=!D&&e.roomId?(0,r.__)("Room","onlyoffice-docspace-plugin"):(0,r.__)("File","onlyoffice-docspace-plugin"),B=(e=>{switch(e){case"room":return i;case"file":return s;default:return null}})(F),T=e.hasOwnProperty("requestToken")&&e.requestToken.length>0?(e=>{switch(e){case"room":return d;case"file":return p;default:return null}})(F):"",H=D?null:_,I=(0,n.useBlockProps)({style:H});return(0,t.createElement)("div",{...I},D?(0,t.createElement)(t.Fragment,null,(0,t.createElement)(a.Placeholder,{icon:m,label:"ONLYOFFICE DocSpace",instructions:(0,r.__)("Pick room or media file from your DocSpace","onlyoffice-docspace-plugin")},(0,t.createElement)(a.Button,{variant:"primary","data-title":(0,r.__)("Select room","onlyoffice-docspace-plugin"),"data-mode":"room-selector",onClick:L},(0,r.__)("Select room","onlyoffice-docspace-plugin")),(0,t.createElement)(a.Button,{variant:"primary","data-title":(0,r.__)("Select file","onlyoffice-docspace-plugin"),"data-mode":"file-selector",onClick:L},(0,r.__)("Select file","onlyoffice-docspace-plugin")))):(0,t.createElement)(t.Fragment,null,(0,t.createElement)(n.InspectorControls,{key:"setting"},(0,t.createElement)(a.PanelBody,{title:(0,r.__)("Settings","onlyoffice-docspace-plugin")},x?(0,t.createElement)(n.HeightControl,{label:(0,r.__)("Width","onlyoffice-docspace-plugin"),value:e.width,onChange:e=>l({width:e})}):"",(0,t.createElement)(n.HeightControl,{label:(0,r.__)("Height","onlyoffice-docspace-plugin"),value:e.height,onChange:e=>l({height:e})}),(0,t.createElement)(a.SelectControl,{label:(0,r.__)("Theme","onlyoffice-docspace-plugin"),value:e.theme,options:C,onChange:e=>{l({theme:e})}}),e.fileId?(0,t.createElement)(a.SelectControl,{label:(0,r.__)("View","onlyoffice-docspace-plugin"),value:e.editorType,options:v,onChange:e=>{l({editorType:e})}}):"")),(0,t.createElement)("div",{className:`wp-block-onlyoffice-docspace-wordpress-onlyoffice-docspace__editor ${F}`},(0,t.createElement)("tbody",null,(0,t.createElement)("tr",null,(0,t.createElement)("td",{valign:"middle"},(0,t.createElement)("div",{className:"entity-icon"},e.icon&&!y?(0,t.createElement)("img",{alt:"",src:(e=>{const t=_oodspMain.docspaceUrl.endsWith("/")?_oodspMain.docspaceUrl.slice(0,-1):_oodspMain.docspaceUrl;let l;if(!t||""===t)return e;if(e.startsWith("http://")||e.startsWith("https://")){const o=new URL(e).origin;l=new URL(e.replace(o,t))}else l=new URL(t),l.pathname=e;return l.toString()})(e.icon),onError:()=>{E(!0)}}):(0,t.createElement)(t.Fragment,null,B))),(0,t.createElement)("td",{className:"entity-info"},(0,t.createElement)("p",{className:"entity-info-label"},"DocSpace ",M," ",T),(0,t.createElement)("p",null,(0,t.createElement)("span",{style:{fontWeight:500}},(0,r.__)("Name"),":")," ",e.name||""))))),(0,t.createElement)(n.BlockControls,null,(0,t.createElement)(a.ToolbarGroup,null,(0,t.createElement)(a.Dropdown,{popoverProps:{variant:"toolbar"},renderToggle:({isOpenDropdown:e,onToggle:l})=>(0,t.createElement)(a.ToolbarButton,{"aria-expanded":e,"aria-haspopup":"true",onClick:l},(0,r.__)("Replace","onlyoffice-docspace-plugin")),renderContent:({onClose:e})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(a.NavigableMenu,null,(0,t.createElement)(a.MenuItem,{onClick:t=>{t.target.dataset.title=(0,r.__)("Select room","onlyoffice-docspace-plugin"),t.target.dataset.mode="room-selector",L(t),e()}},(0,r.__)("Room","onlyoffice-docspace-plugin")),(0,t.createElement)(a.MenuItem,{onClick:t=>{t.target.dataset.title=(0,r.__)("Select file","onlyoffice-docspace-plugin"),t.target.dataset.mode="file-selector",L(t),e()}},(0,r.__)("File","onlyoffice-docspace-plugin"))))})))),o&&(0,t.createElement)(a.Modal,{title:h,onRequestClose:()=>{f(!1),DocSpace&&DocSpace.SDK.frames["oodsp-selector-frame"].destroyFrame()},focusOnMount:!1},(0,t.createElement)("div",{className:"oodsp-selector-frame-modal"},(0,t.createElement)("div",{id:"oodsp-selector-frame"}))))},save:({attributes:e})=>{if(!e.roomId&&!e.fileId)return"";let l="";for(const t of Object.keys(o.uK))null===(n=e[t])||"string"==typeof n&&0===n.trim().length||(l+=t+"="+e[t]+" ");var n;return(0,t.createElement)(c.RawHTML,null,`[onlyoffice-docspace ${l} /]`)}})})();1 (()=>{"use strict";var e={d:(t,l)=>{for(var o in l)e.o(l,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:l[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};e.d({},{y:()=>m});const t=window.React,l=window.wp.blocks,o=JSON.parse('{"UU":"onlyoffice-docspace-wordpress/onlyoffice-docspace","uK":{"fileId":{"type":["number","string"]},"roomId":{"type":["number","string"]},"name":{"type":"string"},"icon":{"type":"string"},"width":{"type":"string"},"height":{"type":"string"},"requestToken":{"type":"string"},"theme":{"type":"string"},"editorType":{"type":"string"},"documentType":{"type":"string"},"slidePlayerBackground":{"type":"string"}}}'),n=window.wp.blockEditor,a=window.wp.components,r=window.wp.element,c=window.wp.i18n,i=(0,t.createElement)("svg",{width:"96",height:"96",viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"2",y:"2",width:"92",height:"92",rx:"10",stroke:"black",strokeOpacity:"0.17",strokeWidth:"4"}),(0,t.createElement)("rect",{x:"18",y:"18",width:"25",height:"25",rx:"3",fill:"white"}),(0,t.createElement)("rect",{x:"18",y:"54",width:"25",height:"25",rx:"3",fill:"white"}),(0,t.createElement)("rect",{x:"53",y:"54",width:"25",height:"25",rx:"3",fill:"white"}),(0,t.createElement)("rect",{x:"53",y:"18",width:"25",height:"25",rx:"3",fill:"white"})),s=(0,t.createElement)("svg",{width:"97",height:"96",viewBox:"0 0 97 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M10.5 1H57.5L86.5 30V95H10.5V1Z",fill:"white"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 95H86.5V30L57.5 1H10.5V95ZM57.5 0H9.5V96H87.5V30L57.5 0Z",fill:"url(#paint0_linear_3527_59860)"}),(0,t.createElement)("path",{d:"M33.5 67H39.5V73H33.5V67Z",fill:"#BFBFBF"}),(0,t.createElement)("path",{d:"M45.5 67H51.5V73H45.5V67Z",fill:"#BFBFBF"}),(0,t.createElement)("path",{d:"M63.5 67H57.5V73H63.5V67Z",fill:"#BFBFBF"}),(0,t.createElement)("path",{opacity:"0.3",d:"M56.5 30V1H57.5V29H86.5L87.5 30H56.5Z",fill:"black"}),(0,t.createElement)("defs",null,(0,t.createElement)("linearGradient",{id:"paint0_linear_3527_59860",x1:"48.5",y1:"94.25",x2:"48.5",y2:"1.21299e-06",gradientUnits:"userSpaceOnUse"},(0,t.createElement)("stop",{stopColor:"#A8A8A8"}),(0,t.createElement)("stop",{offset:"1",stopColor:"#DADADA"})))),d=(0,t.createElement)("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M8.5 10.4197V4.58032C8.5 4.22147 8.69229 3.89012 9.00386 3.71208L14.0039 0.854937C14.6705 0.47399 15.5 0.955357 15.5 1.72318V13.2768C15.5 14.0446 14.6705 14.526 14.0039 14.1451L9.00386 11.2879C8.69229 11.1099 8.5 10.7785 8.5 10.4197Z",fill:"#333333"}),(0,t.createElement)("rect",{x:"1.5",y:"4",width:"6",height:"7",rx:"1",fill:"#333333"}),(0,t.createElement)("path",{d:"M4.38184 12L5.60542 14.4472C5.85241 14.9411 6.45308 15.1414 6.94706 14.8944C7.44104 14.6474 7.64126 14.0467 7.39427 13.5527L6.6179 12H4.38184Z",fill:"#333333"})),p=(0,t.createElement)("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M8.5 10.4197V4.58032C8.5 4.22147 8.69229 3.89012 9.00386 3.71208L14.0039 0.854937C14.6705 0.47399 15.5 0.955357 15.5 1.72318V13.2768C15.5 14.0446 14.6705 14.526 14.0039 14.1451L9.00386 11.2879C8.69229 11.1099 8.5 10.7785 8.5 10.4197Z",fill:"white"}),(0,t.createElement)("rect",{x:"1.5",y:"4",width:"6",height:"7",rx:"1",fill:"white"}),(0,t.createElement)("path",{d:"M4.38184 12L5.60542 14.4472C5.85241 14.9411 6.45308 15.1414 6.94706 14.8944C7.44104 14.6474 7.64126 14.0467 7.39427 13.5527L6.6179 12H4.38184Z",fill:"white"})),m=(0,t.createElement)("svg",{width:"66",height:"60",viewBox:"0 0 66 60",fill:"black",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M28.9406 59.2644L2.20792 46.9066C-0.0693069 45.8277 -0.0693069 44.1604 2.20792 43.1796L11.5148 38.8642L28.8416 46.9066C31.1188 47.9854 34.7822 47.9854 36.9604 46.9066L54.2871 38.8642L63.5941 43.1796C65.8713 44.2585 65.8713 45.9258 63.5941 46.9066L36.8614 59.2644C34.7822 60.2452 31.1188 60.2452 28.9406 59.2644Z",fill:"black"}),(0,t.createElement)("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M28.9406 44.0606L2.20792 31.7028C-0.069307 30.6239 -0.069307 28.9566 2.20792 27.9758L11.3168 23.7584L28.9406 31.8989C31.2178 32.9778 34.8812 32.9778 37.0594 31.8989L54.6832 23.7584L63.7921 27.9758C66.0693 29.0547 66.0693 30.722 63.7921 31.7028L37.0594 44.0606C34.7822 45.1395 31.1188 45.1395 28.9406 44.0606Z",fill:"black"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.9406 29.2518L2.20792 16.8939C-0.069307 15.8151 -0.069307 14.1478 2.20792 13.167L28.9406 0.809144C31.2178 -0.269715 34.8812 -0.269715 37.0594 0.809144L63.7921 13.167C66.0693 14.2458 66.0693 15.9132 63.7921 16.8939L37.0594 29.2518C34.7822 30.2325 31.1188 30.2325 28.9406 29.2518Z",fill:"black"}));(0,l.registerBlockType)(o.UU,{icon:m,edit:({attributes:e,setAttributes:l})=>{const[o,f]=(0,r.useState)(!1),[u,h]=(0,r.useState)(),[g,y]=(0,r.useState)({}),[w,E]=(0,r.useState)(!1),_={height:"500px",background:"#a2ccef"},k=[{label:(0,c.__)("Light","onlyoffice-docspace-plugin"),value:"Base"},{label:(0,c.__)("Dark","onlyoffice-docspace-plugin"),value:"Dark"}],C=[{label:(0,c.__)("Embedded","onlyoffice-docspace-plugin"),value:"embedded"},{label:(0,c.__)("Editor","onlyoffice-docspace-plugin"),value:"desktop"}];(0,r.useEffect)((()=>{o&&oodsp.main.loadDocspace("oodsp-selector-frame",(function(){DocSpace.SDK.initFrame(Object.assign(g,{src:DocSpace.SDK.src}))}))}),[o,g]);const b=t=>{Object.keys(e).forEach((t=>{["roomId","fileId","name","icon","requestToken","editorType"].includes(t)&&delete e[t]}));const o=t[0].requestTokens,n=o?o[0].requestToken:null;l({roomId:new String(t[0].id),name:t[0].label,icon:t[0].icon}),n&&l({requestToken:n}),DocSpace.SDK.frames["oodsp-selector-frame"].destroyFrame(),f(!1)},v=t=>{Object.keys(e).forEach((t=>{["roomId","fileId","name","icon","requestToken","documentType"].includes(t)&&delete e[t]}));const o=t.requestTokens,n=o?o[0].requestToken:null;l({fileId:new String(t.id),name:t.title,icon:t.icon,documentType:t.documentType}),n&&l({requestToken:n}),DocSpace.SDK.frames["oodsp-selector-frame"].destroyFrame(),f(!1)},S=()=>{DocSpace.SDK.frames["oodsp-selector-frame"].destroyFrame(),f(!1)},x=e=>{const t=e.target.dataset.mode||null;let l=null;switch(t){case"room-selector":l=b;break;case"file-selector":l=v}h((0,c.__)("ONLYOFFICE DocSpace","onlyoffice-docspace-plugin")),y({frameId:"oodsp-selector-frame",width:"100%",height:"100%",mode:t,selectorType:"roomsOnly",theme:"Base",locale:_oodspMain.locale,events:{onAppReady:()=>{h(e.target.dataset.title||"")},onSelectCallback:l,onCloseCallback:S}}),f(!0)};e.hasOwnProperty("width")&&e.width.length>0&&(_.width=e.width),e.hasOwnProperty("height")&&e.height.length>0&&(_.height=e.height);let L=!0;"full"===e.align&&(delete _.width,L=!1);const B=!e.roomId&&!e.fileId,F=!B&&e.roomId?"room":"file",T=!B&&e.roomId?(0,c.__)("Room","onlyoffice-docspace-plugin"):(0,c.__)("File","onlyoffice-docspace-plugin"),D=(e=>{switch(e){case"room":return i;case"file":return s;default:return null}})(F),M=e.hasOwnProperty("requestToken")&&e.requestToken.length>0?(e=>{switch(e){case"room":return d;case"file":return p;default:return null}})(F):"",I=B?null:_,H=(0,n.useBlockProps)({style:I});return(0,t.createElement)("div",{...H},B?(0,t.createElement)(t.Fragment,null,(0,t.createElement)(a.Placeholder,{icon:m,label:"ONLYOFFICE DocSpace",instructions:(0,c.__)("Pick room or media file from your DocSpace","onlyoffice-docspace-plugin")},(0,t.createElement)(a.Button,{variant:"primary","data-title":(0,c.__)("Select room","onlyoffice-docspace-plugin"),"data-mode":"room-selector",onClick:x},(0,c.__)("Select room","onlyoffice-docspace-plugin")),(0,t.createElement)(a.Button,{variant:"primary","data-title":(0,c.__)("Select file","onlyoffice-docspace-plugin"),"data-mode":"file-selector",onClick:x},(0,c.__)("Select file","onlyoffice-docspace-plugin")))):(0,t.createElement)(t.Fragment,null,(0,t.createElement)(n.InspectorControls,{key:"setting"},(0,t.createElement)(a.PanelBody,{title:(0,c.__)("Settings","onlyoffice-docspace-plugin")},L?(0,t.createElement)(n.HeightControl,{label:(0,c.__)("Width","onlyoffice-docspace-plugin"),value:e.width,onChange:e=>l({width:e})}):"",(0,t.createElement)(n.HeightControl,{label:(0,c.__)("Height","onlyoffice-docspace-plugin"),value:e.height,onChange:e=>l({height:e})}),(0,t.createElement)(a.SelectControl,{label:(0,c.__)("Theme","onlyoffice-docspace-plugin"),value:e.theme,options:k,onChange:e=>{l({theme:e})}}),e.fileId?(0,t.createElement)(t.Fragment,null,(0,t.createElement)(a.SelectControl,{label:(0,c.__)("View","onlyoffice-docspace-plugin"),value:e.editorType,options:C,onChange:e=>{l({editorType:e})}}),"slide"===e.documentType?(0,t.createElement)("div",null,(0,t.createElement)(a.Flex,{direction:"column",style:{height:"unset"}},(0,t.createElement)(a.FlexItem,null,(0,t.createElement)("label",{htmlFor:"slidePlayerBackground",style:{fontSize:"11px",fontWeight:"500",lineHeight:"1.4",textTransform:"uppercase",boxSizing:"border-box",display:"block"}},(0,c.__)("Background color","onlyoffice-docspace-plugin"))),(0,t.createElement)(a.FlexItem,null,(0,t.createElement)(a.ColorPicker,{id:"slidePlayerBackground",defaultValue:e.slidePlayerBackground||"#000000",onChange:e=>{l({slidePlayerBackground:e})}})))):""):"")),(0,t.createElement)("div",{className:`wp-block-onlyoffice-docspace-wordpress-onlyoffice-docspace__editor ${F}`},(0,t.createElement)("tbody",null,(0,t.createElement)("tr",null,(0,t.createElement)("td",{valign:"middle"},(0,t.createElement)("div",{className:"entity-icon"},e.icon&&!w?(0,t.createElement)("img",{alt:"",src:(e=>{const t=_oodspMain.docspaceUrl.endsWith("/")?_oodspMain.docspaceUrl.slice(0,-1):_oodspMain.docspaceUrl;let l;if(!t||""===t)return e;if(e.startsWith("http://")||e.startsWith("https://")){const o=new URL(e).origin;l=new URL(e.replace(o,t))}else l=new URL(t),l.pathname=e;return l.toString()})(e.icon),onError:()=>{E(!0)}}):(0,t.createElement)(t.Fragment,null,D))),(0,t.createElement)("td",{className:"entity-info"},(0,t.createElement)("p",{className:"entity-info-label"},"DocSpace ",T," ",M),(0,t.createElement)("p",null,(0,t.createElement)("span",{style:{fontWeight:500}},(0,c.__)("Name"),":")," ",e.name||""))))),(0,t.createElement)(n.BlockControls,null,(0,t.createElement)(a.ToolbarGroup,null,(0,t.createElement)(a.Dropdown,{popoverProps:{variant:"toolbar"},renderToggle:({isOpenDropdown:e,onToggle:l})=>(0,t.createElement)(a.ToolbarButton,{"aria-expanded":e,"aria-haspopup":"true",onClick:l},(0,c.__)("Replace","onlyoffice-docspace-plugin")),renderContent:({onClose:e})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(a.NavigableMenu,null,(0,t.createElement)(a.MenuItem,{onClick:t=>{t.target.dataset.title=(0,c.__)("Select room","onlyoffice-docspace-plugin"),t.target.dataset.mode="room-selector",x(t),e()}},(0,c.__)("Room","onlyoffice-docspace-plugin")),(0,t.createElement)(a.MenuItem,{onClick:t=>{t.target.dataset.title=(0,c.__)("Select file","onlyoffice-docspace-plugin"),t.target.dataset.mode="file-selector",x(t),e()}},(0,c.__)("File","onlyoffice-docspace-plugin"))))})))),o&&(0,t.createElement)(a.Modal,{title:u,onRequestClose:()=>{f(!1),DocSpace&&DocSpace.SDK.frames["oodsp-selector-frame"].destroyFrame()},focusOnMount:!1},(0,t.createElement)("div",{className:"oodsp-selector-frame-modal"},(0,t.createElement)("div",{id:"oodsp-selector-frame"}))))},save:({attributes:e})=>{if(!e.roomId&&!e.fileId)return"";let l="";for(const t of Object.keys(o.uK))null===(n=e[t])||"string"==typeof n&&0===n.trim().length||(l+=t+"="+e[t]+" ");var n;return(0,t.createElement)(r.RawHTML,null,`[onlyoffice-docspace ${l} /]`)}})})(); -
onlyoffice-docspace/trunk/onlyoffice-docspace-wordpress-block/src/block.json
r3268645 r3283244 34 34 "editorType": { 35 35 "type": "string" 36 }, 37 "documentType": { 38 "type": "string" 39 }, 40 "slidePlayerBackground": { 41 "type": "string" 36 42 } 37 43 }, -
onlyoffice-docspace/trunk/onlyoffice-docspace-wordpress-block/src/edit.js
r3267772 r3283244 36 36 Dropdown, 37 37 SelectControl, 38 ColorPicker, 39 FlexItem, 40 Flex, 38 41 } from '@wordpress/components'; 39 42 import { useState, useEffect } from '@wordpress/element'; … … 127 130 Object.keys( attributes ).forEach( ( key ) => { 128 131 if ( 129 [ 'roomId', 'fileId', 'name', 'icon', 'requestToken' ].includes( 130 key 131 ) 132 [ 133 'roomId', 134 'fileId', 135 'name', 136 'icon', 137 'requestToken', 138 'documentType', 139 ].includes( key ) 132 140 ) { 133 141 delete attributes[ key ]; … … 144 152 name: event.title, 145 153 icon: event.icon, 154 documentType: event.documentType, 146 155 } ); 147 156 … … 310 319 /> 311 320 { attributes.fileId ? ( 312 <SelectControl 313 label={ __( 314 'View', 315 'onlyoffice-docspace-plugin' 321 <> 322 <SelectControl 323 label={ __( 324 'View', 325 'onlyoffice-docspace-plugin' 326 ) } 327 value={ attributes.editorType } 328 options={ editorTypes } 329 onChange={ ( value ) => { 330 setAttributes( { 331 editorType: value, 332 } ); 333 } } 334 /> 335 { attributes.documentType === 'slide' ? ( 336 <div> 337 <Flex 338 direction="column" 339 style={ { height: 'unset' } } 340 > 341 <FlexItem> 342 <label 343 htmlFor="slidePlayerBackground" 344 style={ { 345 fontSize: '11px', 346 fontWeight: '500', 347 lineHeight: '1.4', 348 textTransform: 349 'uppercase', 350 boxSizing: 351 'border-box', 352 display: 'block', 353 } } 354 > 355 { __( 356 'Background color', 357 'onlyoffice-docspace-plugin' 358 ) } 359 </label> 360 </FlexItem> 361 <FlexItem> 362 <ColorPicker 363 id="slidePlayerBackground" 364 defaultValue={ 365 attributes.slidePlayerBackground || 366 '#000000' 367 } 368 onChange={ ( 369 color 370 ) => { 371 setAttributes( { 372 slidePlayerBackground: 373 color, 374 } ); 375 } } 376 /> 377 </FlexItem> 378 </Flex> 379 </div> 380 ) : ( 381 '' 316 382 ) } 317 value={ attributes.editorType } 318 options={ editorTypes } 319 onChange={ ( value ) => { 320 setAttributes( { editorType: value } ); 321 } } 322 /> 383 </> 323 384 ) : ( 324 385 '' -
onlyoffice-docspace/trunk/onlyoffice-docspace-wordpress.php
r3268645 r3283244 8 8 * Plugin URI: https://github.com/ONLYOFFICE/onlyoffice-docspace-wordpress 9 9 * Description: Add ONLYOFFICE DocSpace on page 10 * Version: 3. 0.110 * Version: 3.1.0 11 11 * Requires at least: 5.7 12 12 * Requires PHP: 7.4 … … 46 46 */ 47 47 define( 'OODSP_PLUGIN_NAME', 'onlyoffice-docspace-wordpress' ); 48 define( 'OODSP_VERSION', '3. 0.1' );48 define( 'OODSP_VERSION', '3.1.0' ); 49 49 define( 'OODSP_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 50 50 define( 'OODSP_PLUGIN_FILE', __FILE__ ); -
onlyoffice-docspace/trunk/pages/class-oodsp-base-page.php
r3267772 r3283244 107 107 * 108 108 * @param string $parent_slug The slug name for the parent menu. 109 * @param string $page_title The text to be displayed in the title tags.110 * @param string $menu_title The text to be used for the menu.111 109 * @param string $capability The capability required for this menu. 112 110 * @param string $menu_slug The slug name to refer to this menu. … … 118 116 public function __construct( 119 117 $parent_slug, 120 $page_title,121 $menu_title,122 118 $capability, 123 119 $menu_slug, … … 128 124 ) { 129 125 $this->parent_slug = $parent_slug; 130 $this->page_title = $page_title;131 $this->menu_title = $menu_title;132 126 $this->capability = $capability; 133 127 $this->menu_slug = $menu_slug; … … 152 146 $hook = add_submenu_page( 153 147 $this->parent_slug, 154 $this-> page_title,155 $this-> menu_title,148 $this->get_page_title(), 149 $this->get_menu_title(), 156 150 $this->capability, 157 151 $this->menu_slug, … … 246 240 return false; 247 241 } 242 243 /** 244 * Get the page title. 245 * 246 * @return string The page title. 247 */ 248 protected function get_page_title() { 249 return ''; 250 } 251 252 /** 253 * Get the menu title. 254 * 255 * @return string The menu title. 256 */ 257 protected function get_menu_title() { 258 return ''; 259 } 248 260 } -
onlyoffice-docspace/trunk/pages/main/class-oodsp-main-page.php
r3267772 r3283244 77 77 parent::__construct( 78 78 'onlyoffice-docspace', 79 'DocSpace',80 'DocSpace',81 79 'upload_files', 82 80 'onlyoffice-docspace', … … 90 88 $this->oodsp_settings_manager = $oodsp_settings_manager; 91 89 $this->oodsp_user_service = $oodsp_user_service; 90 } 91 92 /** 93 * Get the page title. 94 * 95 * @return string The page title. 96 */ 97 protected function get_page_title(): string { 98 return 'DocSpace'; 99 } 100 101 /** 102 * Get the menu title. 103 * 104 * @return string The menu title. 105 */ 106 protected function get_menu_title(): string { 107 return 'DocSpace'; 92 108 } 93 109 -
onlyoffice-docspace/trunk/pages/public-docspace/class-oodsp-public-docspace-page.php
r3267772 r3283244 246 246 $config = $this->map_attributes( $default_config, $attr_lower_case ); 247 247 248 if ( array_key_exists( 'requesttoken', $attr_lower_case ) ) { 249 $config['requestToken'] = $attr_lower_case['requesttoken']; 250 } 251 248 252 if ( array_key_exists( 'roomid', $attr_lower_case ) ) { 249 253 $config['id'] = $attr_lower_case['roomid']; 250 254 $config['mode'] = 'manager'; 251 255 $config['viewTableColumns'] = 'Name,Size,Type'; 256 257 if ( array_key_exists( 'requestToken', $config ) ) { 258 $config['mode'] = 'public-room'; 259 $config['rootPath'] = '/rooms/share'; 260 } 252 261 } elseif ( array_key_exists( 'fileid', $attr_lower_case ) ) { 253 262 $config['id'] = $attr_lower_case['fileid']; … … 259 268 'integrationMode' => 'embed', 260 269 ); 261 } 262 263 if ( array_key_exists( 'requesttoken', $attr_lower_case ) ) { 264 $config['requestToken'] = $attr_lower_case['requesttoken']; 265 $config['rootPath'] = '/rooms/share'; 270 271 if ( ! empty( $attr_lower_case['documenttype'] ) 272 && 'slide' === $attr_lower_case['documenttype'] 273 && ! empty( $attr_lower_case['slideplayerbackground'] ) 274 ) { 275 $config['editorCustomization']['slidePlayerBackground'] = $attr_lower_case['slideplayerbackground']; 276 } 266 277 } 267 278 -
onlyoffice-docspace/trunk/pages/public-docspace/js/index.js
r3267772 r3283244 18 18 ); 19 19 const oodspConfigs = []; 20 const oodspPublicConfigs = []; 20 21 21 22 for ( const frame of frames ) { 22 oodspConfigs.push( JSON.parse( frame.dataset.config ) ); 23 let config = JSON.parse( frame.dataset.config ); 24 config = Object.assign( config, defaultConfig ); 25 26 if ( config.requestToken && config.requestToken.length > 0 ) { 27 oodspPublicConfigs.push( config ); 28 } else { 29 oodspConfigs.push( config ); 30 } 23 31 } 24 32 25 33 const countElements = oodspConfigs.length; 26 27 if ( countElements === 0 ) {28 return;29 }30 34 31 35 DocspaceIntegrationSdk.initScript( … … 34 38 ) 35 39 .then( function () { 40 _initFrames( oodspPublicConfigs ); 41 36 42 for ( let i = 0; i < countElements; i++ ) { 37 oodspConfigs[ i ] = Object.assign(38 oodspConfigs[ i ],39 defaultConfig40 );41 42 43 if ( i === 0 ) { 43 44 if ( … … 45 46 ! _oodspDocspacePublic.docspaceUser 46 47 ) { 47 DocspaceIntegrationSdk.logout( 48 oodspConfigs[ 0 ].frameId, 49 function () { 50 _initAllFrames( oodspConfigs, true ); 51 } 52 ); 53 } else { 54 DocspaceIntegrationSdk.loginByPasswordHash( 55 oodspConfigs[ 0 ].frameId, 56 _oodspDocspacePublic.docspaceUser.user_name, 57 function () { 58 return _oodspDocspacePublic.docspaceUser 59 .password_hash; 60 }, 61 function () { 62 _initAllFrames( oodspConfigs, false ); 63 }, 64 function () { 65 DocspaceIntegrationSdk.logout( 66 oodspConfigs[ 0 ].frameId, 67 function () { 68 _initAllFrames( 69 oodspConfigs, 70 true 71 ); 72 } 73 ); 74 } 75 ); 48 _showUnauthorizedTemplates( oodspConfigs ); 49 return; 76 50 } 51 52 DocspaceIntegrationSdk.loginByPasswordHash( 53 oodspConfigs[ 0 ].frameId, 54 _oodspDocspacePublic.docspaceUser.user_name, 55 function () { 56 return _oodspDocspacePublic.docspaceUser 57 .password_hash; 58 }, 59 function () { 60 _initFrames( oodspConfigs ); 61 }, 62 function () { 63 _showUnauthorizedTemplates( oodspConfigs ); 64 } 65 ); 77 66 } else { 78 67 DocSpace.SDK.initSystem( { … … 90 79 console.error( error ); 91 80 92 for ( const config of oodspConfigs ) { 81 for ( const config of [ 82 ...oodspConfigs, 83 ...oodspPublicConfigs, 84 ] ) { 93 85 oodsp.templates.docspaceUnavailable( config.frameId ); 94 86 } … … 96 88 } ); 97 89 98 const _init AllFrames = ( oodspConfigs, requiredRequestToken) => {90 const _initFrames = ( oodspConfigs ) => { 99 91 for ( const config of oodspConfigs ) { 100 if ( 101 requiredRequestToken && 102 ( ! config.hasOwnProperty( 'requestToken' ) || 103 config.requestToken.length <= 0 ) 104 ) { 105 if ( DocSpace.SDK.frames[ config.frameId ] !== null ) { 106 DocSpace.SDK.frames[ config.frameId ].destroyFrame(); 107 } 92 config.src = DocSpace.SDK.src; 108 93 109 oodsp.templates.docspaceUnauthorized( config.frameId ); 94 DocSpace.SDK.initFrame( config ); 95 } 96 }; 110 97 111 continue; 98 const _showUnauthorizedTemplates = ( oodspConfigs ) => { 99 for ( const config of oodspConfigs ) { 100 if ( DocSpace.SDK.frames[ config.frameId ] ) { 101 DocSpace.SDK.frames[ config.frameId ].destroyFrame(); 112 102 } 113 103 114 config.src = DocSpace.SDK.src; 115 116 DocSpace.SDK.frames[ config.frameId ].initFrame( config ); 104 oodsp.templates.docspaceUnauthorized( config.frameId ); 117 105 } 118 106 }; -
onlyoffice-docspace/trunk/pages/settings/class-oodsp-settings-page.php
r3267772 r3283244 74 74 parent::__construct( 75 75 'onlyoffice-docspace', 76 __( 'ONLYOFFICE DocSpace Settings', 'onlyoffice-docspace-plugin' ),77 __( 'Settings', 'onlyoffice-docspace-plugin' ),78 76 'manage_options', 79 77 'onlyoffice-docspace-settings', … … 87 85 $this->oodsp_docspace_client = $oodsp_docspace_client; 88 86 $this->oodsp_user_service = $oodsp_user_service; 87 } 88 89 /** 90 * Get the page title. 91 * 92 * @return string The page title. 93 */ 94 protected function get_page_title() { 95 return __( 'ONLYOFFICE DocSpace Settings', 'onlyoffice-docspace-plugin' ); 96 } 97 98 /** 99 * Get the menu title. 100 * 101 * @return string The menu title. 102 */ 103 protected function get_menu_title() { 104 return __( 'Settings', 'onlyoffice-docspace-plugin' ); 89 105 } 90 106 -
onlyoffice-docspace/trunk/readme.txt
r3268645 r3283244 3 3 Tags: onlyoffice, integration, docspace 4 4 Requires at least: 6.2 5 Tested up to: 6. 7.26 Stable tag: 3. 0.15 Tested up to: 6.8 6 Stable tag: 3.1.0 7 7 Requires PHP: 8.0 8 8 License: GPLv2 … … 133 133 134 134 == Changelog == 135 = 3.1.0 = 136 * presentation background color selector 137 * docspace-sdk-js v2.0.0 138 * improved loading speed of public room 139 135 140 = 3.0.1 = 136 141 * fixed compatibility of the Gutenberg editor element, ONLYOFFICE DocSpace between versions of the plugin 2.x and 3.x
Note: See TracChangeset
for help on using the changeset viewer.