Plugin Directory

Changeset 3283244


Ignore:
Timestamp:
04/28/2025 09:27:33 AM (10 months ago)
Author:
onlyoffice
Message:

dev v3.1.0

Location:
onlyoffice-docspace/trunk
Files:
36 edited

Legend:

Unmodified
Added
Removed
  • onlyoffice-docspace/trunk/CHANGELOG.md

    r3268645 r3283244  
    11# 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
    210
    311## 3.0.1
  • onlyoffice-docspace/trunk/assets-onlyoffice-docspace/js/docspace-integration-sdk.js

    r3267772 r3283244  
    1919
    2020(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";
    2222
    2323    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  
    1414"X-Generator: Poedit 3.4.1\n"
    1515
    16 #: pages/settings/class-oodsp-settings-page.php:76
     16#: pages/settings/class-oodsp-settings-page.php:95
    1717msgid "ONLYOFFICE DocSpace Settings"
    1818msgstr "Einstellungen von ONLYOFFICE DocSpace"
     
    2626msgstr "Adresse des WordPress-Portals:"
    2727
    28 #: pages/settings/class-oodsp-settings-page.php:77
     28#: pages/settings/class-oodsp-settings-page.php:104
    2929#: onlyoffice-docspace-wordpress-block/build/index.js:1
    3030msgid "Settings"
     
    3737msgstr "Kennwort"
    3838
    39 #: pages/settings/class-oodsp-settings-page.php:209
     39#: pages/settings/class-oodsp-settings-page.php:225
    4040msgid "Settings saved"
    4141msgstr "Einstellungen gespeichert"
     
    204204msgstr "Stornieren"
    205205
    206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:108
     206#: pages/public-docspace/class-oodsp-public-docspace-page.php:110
    207207msgid "Add ONLYOFFICE DocSpace"
    208208msgstr "ONLYOFFICE DocSpace hinzufügen"
    209209
    210210#. translators: %1$s: opening link tag, %2$s: closing link tag
    211 #: pages/settings/class-oodsp-settings-page.php:189
     211#: pages/settings/class-oodsp-settings-page.php:205
    212212#: pages/settings/js/authorization.js:121
    213213msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s."
    214214msgstr "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."
    215215
    216 #: pages/settings/class-oodsp-settings-page.php:216
     216#: pages/settings/class-oodsp-settings-page.php:232
    217217#: pages/users/class-oodsp-users-page.php:541
    218218#: pages/settings/js/authorization.js:140
     
    220220msgstr "ONLYOFFICE DocSpace kann nicht erreicht werden"
    221221
    222 #: pages/settings/class-oodsp-settings-page.php:237
     222#: pages/settings/class-oodsp-settings-page.php:253
    223223msgid "ONLYOFFICE DocSpace successfully disconnected"
    224224msgstr "ONLYOFFICE DocSpace erfolgreich getrennt"
     
    402402msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s."
    403403msgstr "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
     406msgid "Background color"
     407msgstr "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  
    1414"X-Generator: Poedit 3.4.1\n"
    1515
    16 #: pages/settings/class-oodsp-settings-page.php:76
     16#: pages/settings/class-oodsp-settings-page.php:95
    1717msgid "ONLYOFFICE DocSpace Settings"
    1818msgstr "Ajustes de ONLYOFFICE DocSpace"
     
    2626msgstr "Dirección del portal de WordPress:"
    2727
    28 #: pages/settings/class-oodsp-settings-page.php:77
     28#: pages/settings/class-oodsp-settings-page.php:104
    2929#: onlyoffice-docspace-wordpress-block/build/index.js:1
    3030msgid "Settings"
     
    3737msgstr "Contraseña"
    3838
    39 #: pages/settings/class-oodsp-settings-page.php:209
     39#: pages/settings/class-oodsp-settings-page.php:225
    4040msgid "Settings saved"
    4141msgstr "Ajustes guardados"
     
    204204msgstr "Cancelar"
    205205
    206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:108
     206#: pages/public-docspace/class-oodsp-public-docspace-page.php:110
    207207msgid "Add ONLYOFFICE DocSpace"
    208208msgstr "Añadir ONLYOFFICE DocSpace"
    209209
    210210#. translators: %1$s: opening link tag, %2$s: closing link tag
    211 #: pages/settings/class-oodsp-settings-page.php:189
     211#: pages/settings/class-oodsp-settings-page.php:205
    212212#: pages/settings/js/authorization.js:121
    213213msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s."
    214214msgstr "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"
    215215
    216 #: pages/settings/class-oodsp-settings-page.php:216
     216#: pages/settings/class-oodsp-settings-page.php:232
    217217#: pages/users/class-oodsp-users-page.php:541
    218218#: pages/settings/js/authorization.js:140
     
    220220msgstr "ONLYOFFICE DocSpace no está disponible"
    221221
    222 #: pages/settings/class-oodsp-settings-page.php:237
     222#: pages/settings/class-oodsp-settings-page.php:253
    223223msgid "ONLYOFFICE DocSpace successfully disconnected"
    224224msgstr "ONLYOFFICE DocSpace se ha desconectado correctamente"
     
    402402msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s."
    403403msgstr "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
     406msgid "Background color"
     407msgstr "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  
    1414"X-Generator: Poedit 3.4.1\n"
    1515
    16 #: pages/settings/class-oodsp-settings-page.php:76
     16#: pages/settings/class-oodsp-settings-page.php:95
    1717msgid "ONLYOFFICE DocSpace Settings"
    1818msgstr "Paramètres d'ONLYOFFICE DocSpace"
     
    2626msgstr "Adresse du portail WordPress :"
    2727
    28 #: pages/settings/class-oodsp-settings-page.php:77
     28#: pages/settings/class-oodsp-settings-page.php:104
    2929#: onlyoffice-docspace-wordpress-block/build/index.js:1
    3030msgid "Settings"
     
    3737msgstr "Mot de passe"
    3838
    39 #: pages/settings/class-oodsp-settings-page.php:209
     39#: pages/settings/class-oodsp-settings-page.php:225
    4040msgid "Settings saved"
    4141msgstr "Paramètres enregistrés"
     
    204204msgstr "Annuler"
    205205
    206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:108
     206#: pages/public-docspace/class-oodsp-public-docspace-page.php:110
    207207msgid "Add ONLYOFFICE DocSpace"
    208208msgstr "Ajouter ONLYOFFICE DocSpace"
    209209
    210210#. translators: %1$s: opening link tag, %2$s: closing link tag
    211 #: pages/settings/class-oodsp-settings-page.php:189
     211#: pages/settings/class-oodsp-settings-page.php:205
    212212#: pages/settings/js/authorization.js:121
    213213msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s."
    214214msgstr "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."
    215215
    216 #: pages/settings/class-oodsp-settings-page.php:216
     216#: pages/settings/class-oodsp-settings-page.php:232
    217217#: pages/users/class-oodsp-users-page.php:541
    218218#: pages/settings/js/authorization.js:140
     
    220220msgstr "ONLYOFFICE DocSpace n'est pas joignable"
    221221
    222 #: pages/settings/class-oodsp-settings-page.php:237
     222#: pages/settings/class-oodsp-settings-page.php:253
    223223msgid "ONLYOFFICE DocSpace successfully disconnected"
    224224msgstr "ONLYOFFICE DocSpace déconnecté avec succès"
     
    402402msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s."
    403403msgstr "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
     406msgid "Background color"
     407msgstr "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  
    1414"X-Generator: Poedit 3.4.1\n"
    1515
    16 #: pages/settings/class-oodsp-settings-page.php:76
     16#: pages/settings/class-oodsp-settings-page.php:95
    1717msgid "ONLYOFFICE DocSpace Settings"
    1818msgstr "Impostazioni di ONLYOFFICE DocSpace"
     
    2626msgstr "Indirizzo del portale WordPress:"
    2727
    28 #: pages/settings/class-oodsp-settings-page.php:77
     28#: pages/settings/class-oodsp-settings-page.php:104
    2929#: onlyoffice-docspace-wordpress-block/build/index.js:1
    3030msgid "Settings"
     
    3737msgstr "Password"
    3838
    39 #: pages/settings/class-oodsp-settings-page.php:209
     39#: pages/settings/class-oodsp-settings-page.php:225
    4040msgid "Settings saved"
    4141msgstr "Impostazioni salvate"
     
    204204msgstr "Annulla"
    205205
    206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:108
     206#: pages/public-docspace/class-oodsp-public-docspace-page.php:110
    207207msgid "Add ONLYOFFICE DocSpace"
    208208msgstr "Aggiungi ONLYOFFICE DocSpace"
    209209
    210210#. translators: %1$s: opening link tag, %2$s: closing link tag
    211 #: pages/settings/class-oodsp-settings-page.php:189
     211#: pages/settings/class-oodsp-settings-page.php:205
    212212#: pages/settings/js/authorization.js:121
    213213msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s."
    214214msgstr "Il dominio attuale non è impostato nelle configurazioni della Content Security Policy (CSP). Aggiungilo tramite %1$la sezione Strumenti per sviluppatori%2$s."
    215215
    216 #: pages/settings/class-oodsp-settings-page.php:216
     216#: pages/settings/class-oodsp-settings-page.php:232
    217217#: pages/users/class-oodsp-users-page.php:541
    218218#: pages/settings/js/authorization.js:140
     
    220220msgstr "Impossibile raggiungere ONLYOFFICE DocSpace"
    221221
    222 #: pages/settings/class-oodsp-settings-page.php:237
     222#: pages/settings/class-oodsp-settings-page.php:253
    223223msgid "ONLYOFFICE DocSpace successfully disconnected"
    224224msgstr "ONLYOFFICE DocSpace disconnesso con successo"
     
    402402msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s."
    403403msgstr "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
     406msgid "Background color"
     407msgstr "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  
    1414"X-Generator: Poedit 3.4.1\n"
    1515
    16 #: pages/settings/class-oodsp-settings-page.php:76
     16#: pages/settings/class-oodsp-settings-page.php:95
    1717msgid "ONLYOFFICE DocSpace Settings"
    1818msgstr "Configurações do ONLYOFFICE DocSpace"
     
    2626msgstr "Endereço do portal WordPress:"
    2727
    28 #: pages/settings/class-oodsp-settings-page.php:77
     28#: pages/settings/class-oodsp-settings-page.php:104
    2929#: onlyoffice-docspace-wordpress-block/build/index.js:1
    3030msgid "Settings"
     
    3737msgstr "Senha"
    3838
    39 #: pages/settings/class-oodsp-settings-page.php:209
     39#: pages/settings/class-oodsp-settings-page.php:225
    4040msgid "Settings saved"
    4141msgstr "Configurações salvas"
     
    204204msgstr "Cancelar"
    205205
    206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:108
     206#: pages/public-docspace/class-oodsp-public-docspace-page.php:110
    207207msgid "Add ONLYOFFICE DocSpace"
    208208msgstr "Adicionar o ONLYOFFICE ao DocSpace"
    209209
    210210#. translators: %1$s: opening link tag, %2$s: closing link tag
    211 #: pages/settings/class-oodsp-settings-page.php:189
     211#: pages/settings/class-oodsp-settings-page.php:205
    212212#: pages/settings/js/authorization.js:121
    213213msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s."
    214214msgstr "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."
    215215
    216 #: pages/settings/class-oodsp-settings-page.php:216
     216#: pages/settings/class-oodsp-settings-page.php:232
    217217#: pages/users/class-oodsp-users-page.php:541
    218218#: pages/settings/js/authorization.js:140
     
    220220msgstr "O ONLYOFFICE DocSpace não pode ser acessado"
    221221
    222 #: pages/settings/class-oodsp-settings-page.php:237
     222#: pages/settings/class-oodsp-settings-page.php:253
    223223msgid "ONLYOFFICE DocSpace successfully disconnected"
    224224msgstr "O ONLYOFFICE DocSpace foi desconectado com sucesso"
     
    402402msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s."
    403403msgstr "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
     406msgid "Background color"
     407msgstr "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  
    1414"X-Generator: Poedit 3.4.1\n"
    1515
    16 #: pages/settings/class-oodsp-settings-page.php:76
     16#: pages/settings/class-oodsp-settings-page.php:95
    1717msgid "ONLYOFFICE DocSpace Settings"
    1818msgstr "Настройки ONLYOFFICE DocSpace"
     
    2626msgstr "Адрес портала WordPress:"
    2727
    28 #: pages/settings/class-oodsp-settings-page.php:77
     28#: pages/settings/class-oodsp-settings-page.php:104
    2929#: onlyoffice-docspace-wordpress-block/build/index.js:1
    3030msgid "Settings"
     
    3737msgstr "Пароль"
    3838
    39 #: pages/settings/class-oodsp-settings-page.php:209
     39#: pages/settings/class-oodsp-settings-page.php:225
    4040msgid "Settings saved"
    4141msgstr "Настройки сохранены"
     
    204204msgstr "Отменить"
    205205
    206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:108
     206#: pages/public-docspace/class-oodsp-public-docspace-page.php:110
    207207msgid "Add ONLYOFFICE DocSpace"
    208208msgstr "Добавить ONLYOFFICE DocSpace"
    209209
    210210#. translators: %1$s: opening link tag, %2$s: closing link tag
    211 #: pages/settings/class-oodsp-settings-page.php:189
     211#: pages/settings/class-oodsp-settings-page.php:205
    212212#: pages/settings/js/authorization.js:121
    213213msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s."
    214214msgstr "Текущий домен не установлен в настройках Политики безопасности контента (CSP). Пожалуйста, добавьте его через %1$sраздел Инструменты разработчика%2$s."
    215215
    216 #: pages/settings/class-oodsp-settings-page.php:216
     216#: pages/settings/class-oodsp-settings-page.php:232
    217217#: pages/users/class-oodsp-users-page.php:541
    218218#: pages/settings/js/authorization.js:140
     
    220220msgstr "ONLYOFFICE DocSpace недоступен"
    221221
    222 #: pages/settings/class-oodsp-settings-page.php:237
     222#: pages/settings/class-oodsp-settings-page.php:253
    223223msgid "ONLYOFFICE DocSpace successfully disconnected"
    224224msgstr "ONLYOFFICE DocSpace успешно отключен"
     
    402402msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s."
    403403msgstr "Экспорт не удался для %1$s пользователя(ей). Пользователи с указанными адресами электронной почты уже существуют в DocSpace: %2$s."
     404
     405#: onlyoffice-docspace-wordpress-block/build/index.js:1
     406msgid "Background color"
     407msgstr "Цвет фона"
  • 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  
    1414"X-Generator: Poedit 3.4.1\n"
    1515
    16 #: pages/settings/class-oodsp-settings-page.php:76
     16#: pages/settings/class-oodsp-settings-page.php:95
    1717msgid "ONLYOFFICE DocSpace Settings"
    1818msgstr "ONLYOFFICE 协作空间设置"
     
    2626msgstr "WordPress 门户地址:"
    2727
    28 #: pages/settings/class-oodsp-settings-page.php:77
     28#: pages/settings/class-oodsp-settings-page.php:104
    2929#: onlyoffice-docspace-wordpress-block/build/index.js:1
    3030msgid "Settings"
     
    3737msgstr "密码"
    3838
    39 #: pages/settings/class-oodsp-settings-page.php:209
     39#: pages/settings/class-oodsp-settings-page.php:225
    4040msgid "Settings saved"
    4141msgstr "设置已保存"
     
    204204msgstr "取消"
    205205
    206 #: pages/public-docspace/class-oodsp-public-docspace-page.php:108
     206#: pages/public-docspace/class-oodsp-public-docspace-page.php:110
    207207msgid "Add ONLYOFFICE DocSpace"
    208208msgstr "添加 ONLYOFFICE 协作空间"
    209209
    210210#. translators: %1$s: opening link tag, %2$s: closing link tag
    211 #: pages/settings/class-oodsp-settings-page.php:189
     211#: pages/settings/class-oodsp-settings-page.php:205
    212212#: pages/settings/js/authorization.js:121
    213213msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s."
    214214msgstr "当前域未在内容安全策略 (CSP) 设置中设置。请通过 %1$s 开发人员工具部分 %2$s 添加它。"
    215215
    216 #: pages/settings/class-oodsp-settings-page.php:216
     216#: pages/settings/class-oodsp-settings-page.php:232
    217217#: pages/users/class-oodsp-users-page.php:541
    218218#: pages/settings/js/authorization.js:140
     
    220220msgstr "无法访问 ONLYOFFICE 协作空间"
    221221
    222 #: pages/settings/class-oodsp-settings-page.php:237
     222#: pages/settings/class-oodsp-settings-page.php:253
    223223msgid "ONLYOFFICE DocSpace successfully disconnected"
    224224msgstr "ONLYOFFICE 协作空间已成功断开连接"
     
    402402msgid "Export failed for %1$s user(s). User(s) with the indicated email(s) already exist in DocSpace: %2$s."
    403403msgstr "%1$s 个用户的导出失败。协作空间中已存在具有指定电子邮件的用户: %2$s"
     404
     405#: onlyoffice-docspace-wordpress-block/build/index.js:1
     406msgid "Background color"
     407msgstr "背景颜色"
  • onlyoffice-docspace/trunk/languages/onlyoffice-docspace-plugin.pot

    r3267772 r3283244  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: ONLYOFFICE DocSpace 2.1.3\n"
     5"Project-Id-Version: ONLYOFFICE DocSpace 3.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/onlyoffice-docspace-wordpress\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-03-28T15:30:14+03:00\n"
     12"POT-Creation-Date: 2025-04-24T10:54:23+03:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    108108msgstr ""
    109109
    110 #: pages/public-docspace/class-oodsp-public-docspace-page.php:108
     110#: pages/public-docspace/class-oodsp-public-docspace-page.php:110
    111111msgid "Add ONLYOFFICE DocSpace"
    112112msgstr ""
    113113
    114 #: pages/settings/class-oodsp-settings-page.php:76
     114#: pages/settings/class-oodsp-settings-page.php:95
    115115msgid "ONLYOFFICE DocSpace Settings"
    116116msgstr ""
    117117
    118 #: pages/settings/class-oodsp-settings-page.php:77
     118#: pages/settings/class-oodsp-settings-page.php:104
    119119#: onlyoffice-docspace-wordpress-block/build/index.js:1
    120120msgid "Settings"
     
    122122
    123123#. translators: %1$s: opening link tag, %2$s: closing link tag
    124 #: pages/settings/class-oodsp-settings-page.php:189
     124#: pages/settings/class-oodsp-settings-page.php:205
    125125#: pages/settings/js/authorization.js:121
    126126msgid "The current domain is not set in the Content Security Policy (CSP) settings. Please add it via %1$sthe Developer Tools section%2$s."
    127127msgstr ""
    128128
    129 #: pages/settings/class-oodsp-settings-page.php:209
     129#: pages/settings/class-oodsp-settings-page.php:225
    130130msgid "Settings saved"
    131131msgstr ""
    132132
    133 #: pages/settings/class-oodsp-settings-page.php:216
     133#: pages/settings/class-oodsp-settings-page.php:232
    134134#: pages/users/class-oodsp-users-page.php:541
    135135#: pages/settings/js/authorization.js:140
     
    137137msgstr ""
    138138
    139 #: pages/settings/class-oodsp-settings-page.php:237
     139#: pages/settings/class-oodsp-settings-page.php:253
    140140msgid "ONLYOFFICE DocSpace successfully disconnected"
    141141msgstr ""
     
    393393
    394394#: onlyoffice-docspace-wordpress-block/build/index.js:1
     395msgid "Background color"
     396msgstr ""
     397
     398#: onlyoffice-docspace-wordpress-block/build/index.js:1
    395399msgid "Replace"
    396400msgstr ""
  • onlyoffice-docspace/trunk/onlyoffice-docspace-wordpress-block/build/block.json

    r3268645 r3283244  
    4343    "editorType": {
    4444      "type": "string"
     45    },
     46    "documentType": {
     47      "type": "string"
     48    },
     49    "slidePlayerBackground": {
     50      "type": "string"
    4551    }
    4652  },
  • 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  
    3434        "editorType": {
    3535            "type": "string"
     36        },
     37        "documentType": {
     38            "type": "string"
     39        },
     40        "slidePlayerBackground": {
     41            "type": "string"
    3642        }
    3743    },
  • onlyoffice-docspace/trunk/onlyoffice-docspace-wordpress-block/src/edit.js

    r3267772 r3283244  
    3636    Dropdown,
    3737    SelectControl,
     38    ColorPicker,
     39    FlexItem,
     40    Flex,
    3841} from '@wordpress/components';
    3942import { useState, useEffect } from '@wordpress/element';
     
    127130        Object.keys( attributes ).forEach( ( key ) => {
    128131            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 )
    132140            ) {
    133141                delete attributes[ key ];
     
    144152            name: event.title,
    145153            icon: event.icon,
     154            documentType: event.documentType,
    146155        } );
    147156
     
    310319                            />
    311320                            { 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                                        ''
    316382                                    ) }
    317                                     value={ attributes.editorType }
    318                                     options={ editorTypes }
    319                                     onChange={ ( value ) => {
    320                                         setAttributes( { editorType: value } );
    321                                     } }
    322                                 />
     383                                </>
    323384                            ) : (
    324385                                ''
  • onlyoffice-docspace/trunk/onlyoffice-docspace-wordpress.php

    r3268645 r3283244  
    88 * Plugin URI:        https://github.com/ONLYOFFICE/onlyoffice-docspace-wordpress
    99 * Description:       Add ONLYOFFICE DocSpace on page
    10  * Version:           3.0.1
     10 * Version:           3.1.0
    1111 * Requires at least: 5.7
    1212 * Requires PHP:      7.4
     
    4646 */
    4747define( 'OODSP_PLUGIN_NAME', 'onlyoffice-docspace-wordpress' );
    48 define( 'OODSP_VERSION', '3.0.1' );
     48define( 'OODSP_VERSION', '3.1.0' );
    4949define( 'OODSP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    5050define( 'OODSP_PLUGIN_FILE', __FILE__ );
  • onlyoffice-docspace/trunk/pages/class-oodsp-base-page.php

    r3267772 r3283244  
    107107     *
    108108     * @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.
    111109     * @param string $capability   The capability required for this menu.
    112110     * @param string $menu_slug    The slug name to refer to this menu.
     
    118116    public function __construct(
    119117        $parent_slug,
    120         $page_title,
    121         $menu_title,
    122118        $capability,
    123119        $menu_slug,
     
    128124    ) {
    129125        $this->parent_slug  = $parent_slug;
    130         $this->page_title   = $page_title;
    131         $this->menu_title   = $menu_title;
    132126        $this->capability   = $capability;
    133127        $this->menu_slug    = $menu_slug;
     
    152146        $hook = add_submenu_page(
    153147            $this->parent_slug,
    154             $this->page_title,
    155             $this->menu_title,
     148            $this->get_page_title(),
     149            $this->get_menu_title(),
    156150            $this->capability,
    157151            $this->menu_slug,
     
    246240        return false;
    247241    }
     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    }
    248260}
  • onlyoffice-docspace/trunk/pages/main/class-oodsp-main-page.php

    r3267772 r3283244  
    7777        parent::__construct(
    7878            'onlyoffice-docspace',
    79             'DocSpace',
    80             'DocSpace',
    8179            'upload_files',
    8280            'onlyoffice-docspace',
     
    9088        $this->oodsp_settings_manager = $oodsp_settings_manager;
    9189        $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';
    92108    }
    93109
  • onlyoffice-docspace/trunk/pages/public-docspace/class-oodsp-public-docspace-page.php

    r3267772 r3283244  
    246246        $config          = $this->map_attributes( $default_config, $attr_lower_case );
    247247
     248        if ( array_key_exists( 'requesttoken', $attr_lower_case ) ) {
     249            $config['requestToken'] = $attr_lower_case['requesttoken'];
     250        }
     251
    248252        if ( array_key_exists( 'roomid', $attr_lower_case ) ) {
    249253            $config['id']               = $attr_lower_case['roomid'];
    250254            $config['mode']             = 'manager';
    251255            $config['viewTableColumns'] = 'Name,Size,Type';
     256
     257            if ( array_key_exists( 'requestToken', $config ) ) {
     258                $config['mode']     = 'public-room';
     259                $config['rootPath'] = '/rooms/share';
     260            }
    252261        } elseif ( array_key_exists( 'fileid', $attr_lower_case ) ) {
    253262            $config['id']                  = $attr_lower_case['fileid'];
     
    259268                'integrationMode' => 'embed',
    260269            );
    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            }
    266277        }
    267278
  • onlyoffice-docspace/trunk/pages/public-docspace/js/index.js

    r3267772 r3283244  
    1818        );
    1919        const oodspConfigs = [];
     20        const oodspPublicConfigs = [];
    2021
    2122        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            }
    2331        }
    2432
    2533        const countElements = oodspConfigs.length;
    26 
    27         if ( countElements === 0 ) {
    28             return;
    29         }
    3034
    3135        DocspaceIntegrationSdk.initScript(
     
    3438        )
    3539            .then( function () {
     40                _initFrames( oodspPublicConfigs );
     41
    3642                for ( let i = 0; i < countElements; i++ ) {
    37                     oodspConfigs[ i ] = Object.assign(
    38                         oodspConfigs[ i ],
    39                         defaultConfig
    40                     );
    41 
    4243                    if ( i === 0 ) {
    4344                        if (
     
    4546                            ! _oodspDocspacePublic.docspaceUser
    4647                        ) {
    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;
    7650                        }
     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                        );
    7766                    } else {
    7867                        DocSpace.SDK.initSystem( {
     
    9079                console.error( error );
    9180
    92                 for ( const config of oodspConfigs ) {
     81                for ( const config of [
     82                    ...oodspConfigs,
     83                    ...oodspPublicConfigs,
     84                ] ) {
    9385                    oodsp.templates.docspaceUnavailable( config.frameId );
    9486                }
     
    9688    } );
    9789
    98     const _initAllFrames = ( oodspConfigs, requiredRequestToken ) => {
     90    const _initFrames = ( oodspConfigs ) => {
    9991        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;
    10893
    109                 oodsp.templates.docspaceUnauthorized( config.frameId );
     94            DocSpace.SDK.initFrame( config );
     95        }
     96    };
    11097
    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();
    112102            }
    113103
    114             config.src = DocSpace.SDK.src;
    115 
    116             DocSpace.SDK.frames[ config.frameId ].initFrame( config );
     104            oodsp.templates.docspaceUnauthorized( config.frameId );
    117105        }
    118106    };
  • onlyoffice-docspace/trunk/pages/settings/class-oodsp-settings-page.php

    r3267772 r3283244  
    7474        parent::__construct(
    7575            'onlyoffice-docspace',
    76             __( 'ONLYOFFICE DocSpace Settings', 'onlyoffice-docspace-plugin' ),
    77             __( 'Settings', 'onlyoffice-docspace-plugin' ),
    7876            'manage_options',
    7977            'onlyoffice-docspace-settings',
     
    8785        $this->oodsp_docspace_client  = $oodsp_docspace_client;
    8886        $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' );
    89105    }
    90106
  • onlyoffice-docspace/trunk/readme.txt

    r3268645 r3283244  
    33Tags: onlyoffice, integration, docspace
    44Requires at least: 6.2
    5 Tested up to: 6.7.2
    6 Stable tag: 3.0.1
     5Tested up to: 6.8
     6Stable tag: 3.1.0
    77Requires PHP: 8.0
    88License: GPLv2
     
    133133
    134134== 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
    135140= 3.0.1 =
    136141* 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.