@contrail/documents 1.19.0-alpha.6e25ad5 → 1.19.0-alpha.75be757

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
@@ -39,10 +39,6 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
39
39
  feed membership meant its own text could choose its container: near an edge the two answers
40
40
  disagreed indefinitely, flipping between a value and "Move to a frame" on every read. Everything
41
41
  else still resolves on its centre.
42
- - A dynamic text is also exempt from the oversized-shape exclusion, which keeps a shape wider and
43
- taller than a container off it. That rule reads size too, so a dynamic text larger than its frame
44
- in both directions had two self-consistent answers and kept whichever it started from. The rule
45
- exists to keep a backdrop shape off a frame it covers, which is not what a dynamic text is doing.
46
42
  - `min` and `max` rendered an infinity sign when every member value was empty. The early return
47
43
  checked the list length before the empty values were filtered out, so `Math.min` of nothing
48
44
  reached the formatter. Both now fall through to `n/a`.
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DocumentContainerService = void 0;
4
4
  const document_element_factory_1 = require("../document-element-factory");
5
- const dynamic_text_util_1 = require("../util/dynamic-text/dynamic-text-util");
6
5
  const document_element_constants_1 = require("../document-element-constants");
7
6
  const container_kind_1 = require("./container-kind");
8
7
  const document_container_index_1 = require("./document-container-index");
@@ -127,8 +126,7 @@ class DocumentContainerService {
127
126
  }
128
127
  static candidateContainers(measured, containers) {
129
128
  const anchor = (0, document_container_1.anchorOf)(measured.documentElement, measured.box);
130
- const isShape = document_element_constants_1.SHAPE_ELEMENT_TYPES.includes(measured.documentElement.type) &&
131
- !dynamic_text_util_1.DynamicTextUtil.isDynamicText(measured.documentElement);
129
+ const isShape = document_element_constants_1.SHAPE_ELEMENT_TYPES.includes(measured.documentElement.type);
132
130
  return containers.filter((container) => {
133
131
  var _a;
134
132
  if (container.id === measured.documentElement.id || measured.drawOrder <= container.drawOrder) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "1.19.0-alpha.6e25ad5",
3
+ "version": "1.19.0-alpha.75be757",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",