#include "editor/documentmanager.h"
#include <iostream>

using namespace blogi::webedit;

int main() {
    DocumentManager docMgr;
    QString uuid = docMgr.addElement("root", "Container", 0);
    std::cout << docMgr.getElementProperties(uuid).toStdString() << "\n";
    // Now set hidden to true
    docMgr.setElementProperties(uuid, "{\"properties\":{\"hidden\":true}}");
    std::cout << "After true: " << docMgr.getElementProperties(uuid).toStdString() << "\n";
    docMgr.setElementProperties(uuid, "{\"properties\":{\"hidden\":false}}");
    std::cout << "After false: " << docMgr.getElementProperties(uuid).toStdString() << "\n";
    return 0;
}
