@contrail/documents 1.4.2 → 1.5.0

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
@@ -7,10 +7,6 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## [1.4.1] - 2026-03-31
11
-
12
- - Publish new patch to include 1.3.29 changes and 1.4.0 minor update.
13
-
14
10
  ## [1.3.29] - 2026-03-30
15
11
 
16
12
  - Added `imageSize` and `imagePosition` to the `DocumentElement` interface to support the canvas thumbnail crop feature.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.uniqueElementsToUpdate = exports.DocumentAction = void 0;
3
+ exports.DocumentAction = void 0;
4
+ exports.uniqueElementsToUpdate = uniqueElementsToUpdate;
4
5
  const actions_1 = require("@contrail/actions");
5
6
  class DocumentAction extends actions_1.Action {
6
7
  constructor(change, undoChange = null) {
@@ -11,4 +12,3 @@ exports.DocumentAction = DocumentAction;
11
12
  function uniqueElementsToUpdate(elementsToUpdate, mainElementsToUpdate) {
12
13
  return elementsToUpdate.filter(({ change }) => mainElementsToUpdate.findIndex((elementToUpdate) => elementToUpdate.change.id === change.id) === -1);
13
14
  }
14
- exports.uniqueElementsToUpdate = uniqueElementsToUpdate;
@@ -5,10 +5,10 @@ var BackgroundSizeType;
5
5
  (function (BackgroundSizeType) {
6
6
  BackgroundSizeType["CONTAIN"] = "CONTAIN";
7
7
  BackgroundSizeType["COVER"] = "COVER";
8
- })(BackgroundSizeType = exports.BackgroundSizeType || (exports.BackgroundSizeType = {}));
8
+ })(BackgroundSizeType || (exports.BackgroundSizeType = BackgroundSizeType = {}));
9
9
  var LineType;
10
10
  (function (LineType) {
11
11
  LineType[LineType["STRAIGHT"] = 0] = "STRAIGHT";
12
12
  LineType[LineType["SQUARE"] = 1] = "SQUARE";
13
13
  LineType[LineType["CURVE"] = 2] = "CURVE";
14
- })(LineType = exports.LineType || (exports.LineType = {}));
14
+ })(LineType || (exports.LineType = LineType = {}));
@@ -9,4 +9,4 @@ var DocumentChangeType;
9
9
  DocumentChangeType["REORDER_ELEMENT"] = "REORDER_ELEMENT";
10
10
  DocumentChangeType["REGENERATE_LINEBOARD"] = "REGENERATE_LINEBOARD";
11
11
  DocumentChangeType["REBIND_MODEL"] = "REBIND_MODEL";
12
- })(DocumentChangeType = exports.DocumentChangeType || (exports.DocumentChangeType = {}));
12
+ })(DocumentChangeType || (exports.DocumentChangeType = DocumentChangeType = {}));
@@ -10,7 +10,7 @@ var DYNAMIC_TEXT_DATA_SOURCE;
10
10
  DYNAMIC_TEXT_DATA_SOURCE["BOARD"] = "board";
11
11
  DYNAMIC_TEXT_DATA_SOURCE["SHOWCASE"] = "showcase";
12
12
  DYNAMIC_TEXT_DATA_SOURCE["FRAME"] = "frame";
13
- })(DYNAMIC_TEXT_DATA_SOURCE = exports.DYNAMIC_TEXT_DATA_SOURCE || (exports.DYNAMIC_TEXT_DATA_SOURCE = {}));
13
+ })(DYNAMIC_TEXT_DATA_SOURCE || (exports.DYNAMIC_TEXT_DATA_SOURCE = DYNAMIC_TEXT_DATA_SOURCE = {}));
14
14
  var DynamicTextDisplayFunction;
15
15
  (function (DynamicTextDisplayFunction) {
16
16
  DynamicTextDisplayFunction["VALUE"] = "value";
@@ -22,7 +22,7 @@ var DynamicTextDisplayFunction;
22
22
  DynamicTextDisplayFunction["MAX"] = "max";
23
23
  DynamicTextDisplayFunction["AVERAGE"] = "average";
24
24
  DynamicTextDisplayFunction["SUM"] = "sum";
25
- })(DynamicTextDisplayFunction = exports.DynamicTextDisplayFunction || (exports.DynamicTextDisplayFunction = {}));
25
+ })(DynamicTextDisplayFunction || (exports.DynamicTextDisplayFunction = DynamicTextDisplayFunction = {}));
26
26
  exports.MOVE_TO_FRAME_TEXT = 'Move to a frame';
27
27
  exports.CLICK_TO_CONFIGURE = 'Click to configure';
28
28
  exports.HARD_CODED_TEXT = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "1.4.2",
3
+ "version": "1.5.0",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -38,11 +38,11 @@
38
38
  "testEnvironment": "node"
39
39
  },
40
40
  "dependencies": {
41
- "@contrail/actions": "^1.0.17",
42
- "@contrail/document-table": "^1.0.19",
43
- "@contrail/document-util": "^1.0.15",
44
- "@contrail/telemetry": "^1.0.2",
45
- "@contrail/types": "^3.1.4",
41
+ "@contrail/actions": "^1.0.18",
42
+ "@contrail/document-table": "^1.1.0",
43
+ "@contrail/document-util": "^1.2.0",
44
+ "@contrail/telemetry": "^2.0.0",
45
+ "@contrail/types": "^3.4.0",
46
46
  "reflect-metadata": "^0.1.13"
47
47
  }
48
48
  }