@liquidcars/atlas 0.1.50 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -472,3 +472,35 @@ In that fallback, Save opens a picker or downloads a copy because the selected
472
472
  files cannot be written in place.
473
473
  See `examples/hyperlinks` for two linked documents and an external Markdown
474
474
  information file.
475
+
476
+ ### Named models and cloud destinations
477
+
478
+ The optional `model` selector identifies a technical model key within the
479
+ destination document. Titles may change without changing the reference:
480
+
481
+ | Destination | Reference |
482
+ | --- | --- |
483
+ | Current document | `atlas:?model=process` |
484
+ | Local collection | `atlas:actors/dealer.atlas.md?model=inventory` |
485
+ | Current cloud publication | `atlas://cloud/DOCUMENT_ID@published?model=process` |
486
+ | Fixed cloud revision | `atlas://cloud/DOCUMENT_ID@r3?model=process` |
487
+ | Authorized cloud Draft | `atlas://cloud/DOCUMENT_ID@draft?model=process` |
488
+
489
+ Append `#entityId` to select an entity. URI-encode model keys and fragments.
490
+ Omitting `model` uses the destination document's `defaultModel`. A cloud origin
491
+ cannot resolve local document or content paths; a local origin may open cloud
492
+ documents through its host resolver.
493
+
494
+ The exported `atlasReferenceTarget(reference, from)` parses the document kind,
495
+ version and model selector. The resolver may return `context` alongside `uri`
496
+ and `model`; the runtime carries that context in history and navigation events.
497
+ Return a canonical revision URI when resolving `@published` to pin the visit.
498
+ Cloud history visits invoke the resolver again so the host can recheck access.
499
+ The runtime does not grant authorization or contact a cloud deployment itself.
500
+
501
+ Use `setNavigationGuard(async () => { ... })` to finish pending saves before
502
+ navigation. Resolution errors, missing models and missing entity fragments leave
503
+ the origin active. History retains 2D/3D mode, camera, diagram zoom and scroll,
504
+ selection, open containers and filters. Hosts that rebuild the component can use
505
+ `restoreNavigationState(state, { restorePresentation: true })` to restore its
506
+ presentation as well as its history.