@contrail/documents 2.4.0-alpha.ce67280 → 2.4.0-alpha.e296d62

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/CHANGELOG.md CHANGED
@@ -28,18 +28,6 @@ Also shipped on the 1.x line as 1.21.0.
28
28
  member into a different cell. Anything deciding what an element overlaps or sits on wants the
29
29
  scaled one.
30
30
 
31
- ### Removed
32
-
33
- - `DocumentContainerIndex.containerPathAtPoint`. It applied the anchor rule alone, because a bare
34
- point has nothing to compare against a container, and returned the same shape as `containerIdsOf`,
35
- so it read as a second way to ask one question. `containerPathFor(element, kind)` replaces it and
36
- applies every rule. Callers that hold a position pass the element with that position on it. This
37
- is the one removal a consumer has to act on.
38
- - `ContainerKind.layer`, `DocumentContainer.name` and `DocumentContainer.depth`, and
39
- `DocumentContainerIndex.maxDepth`. The container API has not shipped in a released version, so
40
- nothing outside this repository can be holding them. Read a container's name from
41
- `documentElement.name`.
42
-
43
31
  ### Deprecated
44
32
 
45
33
  - `isContainerBinding()` in favour of `DynamicTextUtil.takesValueFromContainer()`. Same rule, named
@@ -73,15 +61,6 @@ Also shipped on the 1.x line as 1.21.0.
73
61
  two containers that merely cross no longer both claim it.
74
62
  - `buildIndex` scans element types before measuring, so a document with no containers of the kinds
75
63
  asked for returns an empty index without a geometry pass.
76
- - **A section nests inside another only when it is drawn above it.** A section drawn over one it
77
- encloses hides it, so the hidden section holds nothing and a `section.count` on it reads zero.
78
- This changes existing boards wherever the outer section was drawn last.
79
- - `containerIdsOf` and `memberIdsOf` return copies. `readonly` is erased at runtime, and a caller
80
- sorting what it got back reordered the index's own list for every later read.
81
- - A member list is a set of ids, so two elements sharing an id count once.
82
- - `min` and `max` no longer read an empty member as zero, and `uniqueArray` no longer emits one as
83
- a blank entry. A text box narrower than its own padding measures without a fixed width.
84
- - A nullish entry in the element list is dropped rather than throwing.
85
64
 
86
65
  ## [2.3.0] - 2026-09-21
87
66
 
@@ -89,7 +89,7 @@ class DocumentContainerUtil {
89
89
  const start = ((_a = documentElement === null || documentElement === void 0 ? void 0 : documentElement.start) === null || _a === void 0 ? void 0 : _a.id) ? documentElementsById.get(documentElement.start.id) : undefined;
90
90
  const end = ((_b = documentElement === null || documentElement === void 0 ? void 0 : documentElement.end) === null || _b === void 0 ? void 0 : _b.id) ? documentElementsById.get(documentElement.end.id) : undefined;
91
91
  const { x, y, width, height } = document_element_factory_1.DocumentElementFactory.getBoundingClientRectScaled(documentElement, start, end);
92
- if (!width && !height && !x && !y) {
92
+ if (!width && !height && !documentElement.position) {
93
93
  return null;
94
94
  }
95
95
  return DocumentContainerUtil.toCoordinateBox(x, y, width, height);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "2.4.0-alpha.ce67280",
3
+ "version": "2.4.0-alpha.e296d62",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",