o
    ÇÉhH  ã                   @   sF   d dl mZmZmZ d dlmZmZmZ eeef Z	G dd„ dƒZ
dS )é    )ÚAnyÚDictÚOptional)ÚHTMLÚElementÚTagc                   @   sŒ   e Zd ZdZeddedee defdd„ƒZ	ede
defd	d
„ƒZedededefdd„ƒZedede
fdd„ƒZedede
fdd„ƒZdS )Ú	DOMEnginez2
    Parent class of all DOM implementations.
    NÚtype_ÚattrÚreturnc                 C   ó   t ‚)zS
        Creates and returns a tree node of the given type and attributes.
        ©ÚNotImplementedError)r	   r
   © r   ú]/var/www/html/ndineBlogger/venv/lib/python3.10/site-packages/draftjs_exporter/engines/base.pyÚ
create_tag   ó   zDOMEngine.create_tagÚmarkupc                 C   r   )z¶
        Creates nodes based on the input html.
        Note: this method is used in component implementations only, and
        is not required for the exporter to operate.
        r   )r   r   r   r   Ú
parse_html   ó   zDOMEngine.parse_htmlÚeltÚchildc                 C   r   )zF
        Appends the given child node in the children of elt.
        r   )r   r   r   r   r   Úappend_child   r   zDOMEngine.append_childc                 C   r   )z2
        Renders a given element to HTML.
        r   ©r   r   r   r   Úrender$   r   zDOMEngine.renderc                 C   r   )z°
        Renders a given element to HTML.
        Note: this method is only used for draftjs_exporter's tests, and
        is not required for the exporter to operate.
        r   r   r   r   r   Úrender_debug+   r   zDOMEngine.render_debug)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ústaticmethodr   r   ÚAttrr   r   r   r   r   r   r   r   r   r   r   r   r      s    r   N)Útypingr   r   r   Údraftjs_exporter.typesr   r   r   Ústrr!   r   r   r   r   r   Ú<module>   s    