Back to Plate

Slate DOM Legacy + Draft Contract Corpus

docs/slate-v2/ledgers/slate-dom-legacy-draft-contract-corpus.md

53.0.62.3 KB
Original Source

Slate DOM Legacy + Draft Contract Corpus

  • owner: packages/slate-dom
  • tranche: 5
  • rule: browser-boundary truth is kept only when backed by package proof and user-facing runtime value

Inputs

Draft contract rows:

Legacy pressure:

  • old DOMEditor/browser-boundary expectations in the legacy repo and docs
  • legacy behavior-bearing rows referenced through the draft file-review ledger

Current live owners:

  • .tmp/slate-v2/packages/slate-dom/src/index.ts
  • .tmp/slate-v2/packages/slate-dom/src/plugin/dom-editor.ts
  • .tmp/slate-v2/packages/slate-dom/src/plugin/with-dom.ts
  • .tmp/slate-v2/packages/slate-dom/src/utils/**
  • .tmp/slate-v2/packages/slate-dom/test/bridge.ts
  • .tmp/slate-v2/packages/slate-dom/test/bridge.test.ts
  • .tmp/slate-v2/packages/slate-dom/test/clipboard-boundary.ts
  • .tmp/slate-v2/packages/slate-dom/test/clipboard-boundary.test.ts

keep-now

  • bridge translation contract
  • clipboard boundary contract
  • DOM point/range/path mapping behavior that still belongs in the kept package claim

Immediate current proof owners to restore or keep alive:

  • .tmp/slate-v2/packages/slate-dom/test/bridge.ts
  • .tmp/slate-v2/packages/slate-dom/test/clipboard-boundary.ts

Current read:

  • bridge.ts is now restored as a direct package proof owner
  • clipboard-boundary.ts is now restored as a direct package proof owner

keep-later

  • any broader DOM helper or convenience surface not yet demanded by the merged browser/example corpus

explicit-cut

  • broad legacy DOMEditor baggage that the draft and current docs already treat as outside the kept package claim

post RC

  • EditContext or broader future DOM/input exploration

Immediate Execution Consequence

slate-dom should not be widened just because legacy had more DOM helpers.

But it also should not be declared done until the bridge and clipboard contracts from the draft/current proof owners are green in the live package.