@bpmn-io/form-js-viewer 1.17.0 → 1.19.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.
@@ -68,7 +68,7 @@
68
68
  --color-accent-readonly: var(--cds-border-strong, var(--cds-border-strong-01, var(--color-grey-225-10-55)));
69
69
  --color-datepicker-focused-day: var(--cds-button-primary, var(--color-grey-225-10-55));
70
70
  --color-shadow: var(--cds-shadow, var(--color-grey-225-10-85));
71
- --font-family: "IBM Plex Sans", sans-serif;
71
+ --font-family: 'IBM Plex Sans', sans-serif;
72
72
  --font-size-group: 15px;
73
73
  --font-size-base: 14px;
74
74
  --font-size-input: 14px;
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Ids = require('ids');
3
+ var ids$3 = require('ids');
4
4
  var minDash = require('min-dash');
5
5
  var Big = require('big.js');
6
6
  var classNames = require('classnames');
@@ -13,7 +13,7 @@ var flatpickr = require('flatpickr');
13
13
  var React = require('preact/compat');
14
14
  var DOMPurify = require('dompurify');
15
15
  var didi = require('didi');
16
- var feelin = require('feelin');
16
+ var feelin = require('@bpmn-io/feelin');
17
17
  var feelers = require('feelers');
18
18
  var marked = require('marked');
19
19
 
@@ -42,7 +42,7 @@ const getFlavouredFeelVariableNames = (feelString, feelFlavour = 'expression', o
42
42
  specialDepthAccessors = {}
43
43
  } = options;
44
44
  if (!['expression', 'unaryTest'].includes(feelFlavour)) return [];
45
- const tree = feelFlavour === 'expression' ? feelin.parseExpression(feelString) : feelin.parseUnaryTests(feelString);
45
+ const tree = feelFlavour === 'expression' ? feelin.parseExpression(feelString, {}, undefined) : feelin.parseUnaryTests(feelString, {}, undefined);
46
46
  const simpleExpressionTree = _buildSimpleFeelStructureTree(tree, feelString);
47
47
  const variables = function _unfoldVariables(node) {
48
48
  if (node.name === 'PathExpression') {
@@ -287,7 +287,9 @@ class FeelExpressionLanguage {
287
287
  return null;
288
288
  }
289
289
  try {
290
- const result = feelin.evaluate(expression.slice(1), data);
290
+ const {
291
+ value: result
292
+ } = feelin.evaluate(expression.slice(1), data);
291
293
  return result;
292
294
  } catch (error) {
293
295
  this._eventBus.fire('error', {
@@ -2014,7 +2016,7 @@ Checklist.config = {
2014
2016
  };
2015
2017
 
2016
2018
  const noop$1 = () => false;
2017
- const ids$2 = new Ids([32, 36, 1]);
2019
+ const ids$2 = new ids$3.Ids([32, 36, 1]);
2018
2020
  function FormField(props) {
2019
2021
  const instanceIdRef = hooks.useRef(ids$2.next());
2020
2022
  const {
@@ -5768,7 +5770,7 @@ function serializeCellData(cellData) {
5768
5770
  const FILE_PICKER_FILE_KEY_PREFIX = 'files::';
5769
5771
 
5770
5772
  const type$1 = 'filepicker';
5771
- const ids$1 = new Ids();
5773
+ const ids$1 = new ids$3.Ids();
5772
5774
  const EMPTY_ARRAY$1 = [];
5773
5775
 
5774
5776
  /**
@@ -6723,7 +6725,9 @@ class ConditionChecker {
6723
6725
  }
6724
6726
  try {
6725
6727
  // cut off initial '='
6726
- const result = feelin.unaryTest(condition.slice(1), data);
6728
+ const {
6729
+ value: result
6730
+ } = feelin.unaryTest(condition.slice(1), data);
6727
6731
  return result;
6728
6732
  } catch (error) {
6729
6733
  this._eventBus.fire('error', {
@@ -8941,7 +8945,7 @@ class FormLayouter {
8941
8945
  constructor(eventBus) {
8942
8946
  /** @type Array<FormRows> */
8943
8947
  this._rows = [];
8944
- this._ids = new Ids([32, 36, 1]);
8948
+ this._ids = new ids$3.Ids([32, 36, 1]);
8945
8949
  this._eventBus = eventBus;
8946
8950
  }
8947
8951
 
@@ -9069,7 +9073,7 @@ class FormFieldRegistry {
9069
9073
  this._eventBus = eventBus;
9070
9074
  this._formFields = {};
9071
9075
  eventBus.on('form.clear', () => this.clear());
9072
- this._ids = new Ids([32, 36, 1]);
9076
+ this._ids = new ids$3.Ids([32, 36, 1]);
9073
9077
  }
9074
9078
  add(formField) {
9075
9079
  const {
@@ -9400,7 +9404,7 @@ const CoreModule = {
9400
9404
  * @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
9401
9405
  */
9402
9406
 
9403
- const ids = new Ids([32, 36, 1]);
9407
+ const ids = new ids$3.Ids([32, 36, 1]);
9404
9408
 
9405
9409
  /**
9406
9410
  * The form.