@vixoniccom/modules 2.20.0-dev.0 → 2.20.0-dev.2

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
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.20.0-dev.2](https://bitbucket.org/vixonic_dev/modules/compare/v2.20.0-dev.1...v2.20.0-dev.2) (2025-02-11)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * eval functions were removed and also a lot to imports no used were removed too ([f00db84](https://bitbucket.org/vixonic_dev/modules/commit/f00db8441836236756fc3a5517c3b4268f788a20))
11
+
12
+ ## [2.20.0-dev.1](https://bitbucket.org/vixonic_dev/modules/compare/v2.20.0-dev.0...v2.20.0-dev.1) (2025-01-29)
13
+
14
+
15
+ ### Features
16
+
17
+ * add description prop to RedirectButton component ([9d7dbce](https://bitbucket.org/vixonic_dev/modules/commit/9d7dbce06324c03320283984af28a8b991fbc23d))
18
+
5
19
  ## [2.20.0-dev.0](https://bitbucket.org/vixonic_dev/modules/compare/v2.17.0...v2.20.0-dev.0) (2025-01-29)
6
20
 
7
21
 
@@ -1,6 +1,6 @@
1
- import { InputValue } from "./inputs";
2
- import { ValueError } from "./errors";
3
- import { Configuration } from ".";
1
+ import { InputValue } from './inputs';
2
+ import { ValueError } from './errors';
3
+ import { Configuration } from '.';
4
4
  export interface IBaseElement {
5
5
  readonly id: string;
6
6
  readonly label: string;
@@ -1,5 +1,8 @@
1
1
  import { Input, IInput } from '../base';
2
2
  import { ValueError } from '../errors';
3
+ export interface IRedirectButton extends IInput {
4
+ description?: string;
5
+ }
3
6
  export declare namespace RedirectButton {
4
7
  type Error = ValueError.InvalidValue;
5
8
  type Value = string;
@@ -7,9 +10,10 @@ export declare namespace RedirectButton {
7
10
  export declare class RedirectButton extends Input<RedirectButton.Value> {
8
11
  static type: string;
9
12
  type: string;
10
- constructor(options: IInput);
13
+ readonly description?: string;
14
+ constructor(options: IRedirectButton);
11
15
  validateInput(value: RedirectButton.Value): ValueError.InvalidValue[];
12
16
  isValidValue(v: any): v is RedirectButton.Value;
13
- static fromJSON: (value: IInput) => RedirectButton;
17
+ static fromJSON: (value: IRedirectButton) => RedirectButton;
14
18
  valueTypeDef: () => string;
15
19
  }
@@ -26,6 +26,7 @@ var RedirectButton = /** @class */ (function (_super) {
26
26
  _this.valueTypeDef = function () {
27
27
  return 'string';
28
28
  };
29
+ _this.description = options.description;
29
30
  return _this;
30
31
  }
31
32
  RedirectButton.prototype.validateInput = function (value) {
@@ -1,4 +1,4 @@
1
- import { InputComponent } from "../index";
1
+ import { InputComponent } from '../index';
2
2
  export type TypeDefMap = {
3
3
  id: string;
4
4
  typeDef: string;
@@ -1,4 +1,4 @@
1
- import { ValueError } from "../errors";
1
+ import { ValueError } from '../errors';
2
2
  export declare namespace Validator {
3
3
  const required: (value: any, required: boolean | undefined, onlyUndefined?: boolean) => Array<ValueError.Required>;
4
4
  const min: (value: number, min: number | undefined) => Array<ValueError.Min>;
@@ -9,8 +9,8 @@ function shouldBeVisible(item, _values) {
9
9
  var regexp = new RegExp('{{(.*?)}}', 'ig');
10
10
  jsEval = jsEval.replace(regexp, "_values.$1");
11
11
  // tslint:disable-next-line
12
- var show = eval(jsEval);
13
- return show === true;
12
+ var show = new Function('_values', "return ".concat(jsEval, ";"))(_values);
13
+ return !!show;
14
14
  }
15
15
  catch (e) {
16
16
  console.warn('Unable to parse expression:', jsEval);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vixoniccom/modules",
3
- "version": "2.20.0-dev.0",
3
+ "version": "2.20.0-dev.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",