@contrail/documents 1.15.1-alpha.c8c648c → 1.15.1

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
@@ -13,7 +13,11 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
13
13
 
14
14
  ### Changed
15
15
 
16
- - `getDynamicTextValue`'s fourth parameter is typed `DynamicTextContainer` rather than `{ name, id }`. This is source-compatible: `source` is optional and a container without one is treated as a frame, so existing callers need no change. Which kind of container is rendered is read from the binding (`frame.count` vs `section.count`); `source` records what the caller resolved.
16
+ - `getDynamicTextValue`'s fourth parameter is typed `DynamicTextContainer | null` rather than `{ name, id }`. This is source-compatible: `source` is optional and a container without one is treated as a frame, so existing callers need no change. Which kind of container is rendered is read from the binding (`frame.count` vs `section.count`); `source` records what the caller resolved. The parameter is now nullable to match what it always accepted, since callers pass `null` for an element in no container.
17
+
18
+ ### Removed
19
+
20
+ - A branch that cleared `property` for a container binding while handling a binding that names no container, which could never run.
17
21
 
18
22
  ## [1.15.0] - 2026-08-21
19
23
 
@@ -48,9 +48,9 @@ export declare const HARD_CODED_TEXT: {
48
48
  'section.itemOptionCount': string;
49
49
  'section.colorCount': string;
50
50
  };
51
- export declare function isContainerBinding(bindingProperty: string): boolean;
51
+ export declare function isContainerBinding(bindingProperty: string | null | undefined): boolean;
52
52
  export declare class DynamicTextUtil {
53
- static getDynamicTextValue(dynamicTextElement: DocumentElement, property: TypeProperty, propertyLevel: PropertyLevel, container: DynamicTextContainer, componentModels: any[], ownerReferenceModel?: any): string;
53
+ static getDynamicTextValue(dynamicTextElement: DocumentElement, property: TypeProperty, propertyLevel: PropertyLevel, container: DynamicTextContainer | null, componentModels: any[], ownerReferenceModel?: any): string;
54
54
  static calculateSize(dynamicTextElement: DocumentElement, entityType: any, text: string): import("../..").SizeDefinition;
55
55
  static getTextFromFrameMemberValues(displayFunction: string, property: any, memberValues: any[]): string;
56
56
  private static getItemCount;
@@ -104,9 +104,6 @@ class DynamicTextUtil {
104
104
  }
105
105
  }
106
106
  else {
107
- if (isContainerBinding(bindingProperty)) {
108
- property = null;
109
- }
110
107
  const frameMemberValues = [];
111
108
  if (propertyLevel) {
112
109
  componentModels = Array.from(new Map(componentModels
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "1.15.1-alpha.c8c648c",
3
+ "version": "1.15.1",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",