@routevn/creator-model 1.2.6 → 1.2.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/model.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routevn/creator-model",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/model.js CHANGED
@@ -3298,12 +3298,13 @@ const validateLayoutElementData = ({
3298
3298
 
3299
3299
  if (
3300
3300
  data.direction !== undefined &&
3301
+ data.direction !== "absolute" &&
3301
3302
  data.direction !== "horizontal" &&
3302
3303
  data.direction !== "vertical"
3303
3304
  ) {
3304
3305
  return invalidFromErrorFactory(
3305
3306
  errorFactory,
3306
- `${path}.direction must be 'horizontal' or 'vertical' when provided`,
3307
+ `${path}.direction must be 'absolute', 'horizontal' or 'vertical' when provided`,
3307
3308
  );
3308
3309
  }
3309
3310