@formio/js 5.0.0-dev.5755.7a395f8 → 5.0.0-dev.5759.a3476ed

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.
@@ -7,7 +7,6 @@ declare const _default: ({
7
7
  placeholder: string;
8
8
  weight: number;
9
9
  conditional?: undefined;
10
- customConditional?: undefined;
11
10
  ignore?: undefined;
12
11
  } | {
13
12
  type: string;
@@ -24,7 +23,6 @@ declare const _default: ({
24
23
  };
25
24
  };
26
25
  weight: number;
27
- customConditional?: undefined;
28
26
  ignore?: undefined;
29
27
  } | {
30
28
  weight: number;
@@ -32,9 +30,6 @@ declare const _default: ({
32
30
  label: string;
33
31
  tooltip: string;
34
32
  key: string;
35
- customConditional: ({ options }: {
36
- options: any;
37
- }) => boolean;
38
33
  input: boolean;
39
34
  placeholder?: undefined;
40
35
  conditional?: undefined;
@@ -49,6 +44,5 @@ declare const _default: ({
49
44
  placeholder?: undefined;
50
45
  weight?: undefined;
51
46
  conditional?: undefined;
52
- customConditional?: undefined;
53
47
  })[];
54
48
  export default _default;
@@ -39,7 +39,6 @@ exports.default = [
39
39
  label: 'Keep Overlay Aspect Ratio',
40
40
  tooltip: 'If checked, the field will have the same aspect ratio as its preview.',
41
41
  key: 'keepOverlayRatio',
42
- customConditional: ({ options }) => { var _a; return (((_a = options === null || options === void 0 ? void 0 : options.editForm) === null || _a === void 0 ? void 0 : _a.display) === 'pdf'); },
43
42
  input: true
44
43
  },
45
44
  {
@@ -7,7 +7,6 @@ declare const _default: ({
7
7
  placeholder: string;
8
8
  weight: number;
9
9
  conditional?: undefined;
10
- customConditional?: undefined;
11
10
  ignore?: undefined;
12
11
  } | {
13
12
  type: string;
@@ -24,7 +23,6 @@ declare const _default: ({
24
23
  };
25
24
  };
26
25
  weight: number;
27
- customConditional?: undefined;
28
26
  ignore?: undefined;
29
27
  } | {
30
28
  weight: number;
@@ -32,9 +30,6 @@ declare const _default: ({
32
30
  label: string;
33
31
  tooltip: string;
34
32
  key: string;
35
- customConditional: ({ options }: {
36
- options: any;
37
- }) => boolean;
38
33
  input: boolean;
39
34
  placeholder?: undefined;
40
35
  conditional?: undefined;
@@ -49,6 +44,5 @@ declare const _default: ({
49
44
  placeholder?: undefined;
50
45
  weight?: undefined;
51
46
  conditional?: undefined;
52
- customConditional?: undefined;
53
47
  })[];
54
48
  export default _default;
@@ -37,7 +37,6 @@ export default [
37
37
  label: 'Keep Overlay Aspect Ratio',
38
38
  tooltip: 'If checked, the field will have the same aspect ratio as its preview.',
39
39
  key: 'keepOverlayRatio',
40
- customConditional: ({ options }) => (options?.editForm?.display === 'pdf'),
41
40
  input: true
42
41
  },
43
42
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5755.7a395f8",
3
+ "version": "5.0.0-dev.5759.a3476ed",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -56,10 +56,9 @@
56
56
  "dopublish": "npm run build && npm run tag && npm publish",
57
57
  "lint": "eslint ./src --fix",
58
58
  "serve": "jekyll serve --config _config.yml,_config.dev.yml",
59
- "test": "nyc --reporter=lcov --reporter=text --reporter=text-summary mocha src/**/*.unit.js",
59
+ "test": "mocha 'src/**/*.unit.js'",
60
60
  "test:updateRenders": "npm run lib && TZ=UTC node --require jsdom-global/register test/updateRenders.js",
61
- "test:e2e": "NODE_OPTIONS=\"--max-old-space-size=4096\" karma start --verbose --single-run",
62
- "show-coverage": "open coverage/lcov-report/index.html"
61
+ "test:e2e": "NODE_OPTIONS=\"--max-old-space-size=4096\" karma start --verbose --single-run"
63
62
  },
64
63
  "repository": {
65
64
  "type": "git",
@@ -156,7 +155,6 @@
156
155
  "mocha": "^10.3.0",
157
156
  "mock-local-storage": "^1.1.24",
158
157
  "natives": "^1.1.6",
159
- "nyc": "^17.0.0",
160
158
  "power-assert": "^1.6.1",
161
159
  "pre-commit": "^1.2.2",
162
160
  "pretty": "^2.0.0",
@@ -176,19 +174,5 @@
176
174
  "webpack-cli": "^5.1.1",
177
175
  "webpack-node-externals": "^3.0.0",
178
176
  "webpack-stream": "^7.0.0"
179
- },
180
- "nyc": {
181
- "check-coverage": true,
182
- "statements": 15,
183
- "branches": 18,
184
- "functions": 14,
185
- "lines": 15,
186
- "include": [
187
- "src/**/*.js"
188
- ],
189
- "exclude": [
190
- "src/**/fixtures"
191
- ],
192
- "all": true
193
177
  }
194
178
  }