RelayMark.DocumentXML (relay_mark_elixir v0.7.1)

Copy Markdown View Source

Canonical rich AST interchange with portable Yjs XML snapshots. Community Yjs/Yex/Yrs owns transactions and binary encodings. The host installs children in default and optional authored metadata in the relaymark map. This module never changes a live document or authorizes domain actions.

Summary

Functions

Canonical element names with authored block identity (not inline entity IDs).

Finite original snapshot conversion; canonical geometry is retained without a physical cut. No live admission or undo-history authority.

Finite identity-only historical XML import; caller applies the returned attributes to its existing CRDT owner.

Finite admitted AST kinds for content-free inventory, from the canonical projection grammar.

Normalize semantic text segmentation through the canonical XML/mark owner, preserving identities and metadata.

Prepares canonical XML and its strictly validated semantic inverse in one invocation.

Validates typing attributes through the existing canonical rich text/mark owner.

Functions

from_document(document)

identified_node_names()

Canonical element names with authored block identity (not inline entity IDs).

import_aggregate_settings_snapshot(snapshot)

Finite original snapshot conversion; canonical geometry is retained without a physical cut. No live admission or undo-history authority.

import_snapshot(snapshot, options \\ [])

Finite identity-only historical XML import; caller applies the returned attributes to its existing CRDT owner.

inventory_types()

Finite admitted AST kinds for content-free inventory, from the canonical projection grammar.

normalize_document(document)

Normalize semantic text segmentation through the canonical XML/mark owner, preserving identities and metadata.

project_document(document)

Prepares canonical XML and its strictly validated semantic inverse in one invocation.

to_document(snapshot)

validate_text_attributes(attributes)

Validates typing attributes through the existing canonical rich text/mark owner.