Skip to content

Commit 97f2863

Browse files
author
Francisco
committed
Merge branch 'master' of https://github.com/janis-commerce/view-schema-validator into JMV-3719-add-link-dashboard-charts
2 parents 1b19030 + 5685b9b commit 97f2863

File tree

7 files changed

+78
-49
lines changed

7 files changed

+78
-49
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [2.153.0] - 2025-04-03
11+
12+
### Added
13+
14+
- includes name for new conditional
15+
16+
## [2.152.0] - 2025-03-14
17+
18+
### Added
19+
20+
- Link key in graphs
21+
22+
## [2.151.0] - 2025-03-14
23+
24+
### Added
25+
26+
- Browse section support for settings page
27+
1028
## [2.150.0] - 2025-02-27
1129

1230
### Added

lib/schemas/common/conditions/names.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ module.exports = [
1212
'greaterThan',
1313
'greaterOrEqualThan',
1414
'lowerThan',
15-
'lowerOrEqualThan'
15+
'lowerOrEqualThan',
16+
'includes'
1617
];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
'use strict';
22

3-
module.exports = ['FormSection', 'MultiSection', 'RemoteSection'];
3+
module.exports = ['FormSection', 'MultiSection', 'RemoteSection', 'BrowseSection'];

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@janiscommerce/view-schema-validator",
3-
"version": "2.150.0",
3+
"version": "2.153.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

tests/mocks/schemas/edit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ sections:
434434
- test
435435
- name
436436
referenceValue: true
437+
- - name: includes
438+
field: test
439+
referenceValue: value
437440

438441
- name: descriptionTwo
439442
component: Textarea

tests/mocks/schemas/expected/edit.json

Lines changed: 52 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
]
364364
}
365365
},
366-
{
366+
{
367367
"name": "testActionFour",
368368
"icon": "agenda",
369369
"color": "blue",
@@ -374,7 +374,7 @@
374374
"service": "id",
375375
"namespace": "user-temporal-password",
376376
"method": "post",
377-
"resolve": false
377+
"resolve": false
378378
},
379379
"endpointParameters": [
380380
{
@@ -385,49 +385,49 @@
385385
}
386386
}
387387
],
388-
"modalTitle": "testModalTitle",
389-
"fields": [
390-
{
391-
"attributes": {
392-
"initialSortDirection": "desc",
393-
"isDefaultSort": false,
394-
"isStatus": false,
395-
"sortable": false
396-
},
397-
"name": "password",
398-
"label": "login.field.temporaryPassword",
399-
"component": "FieldList",
400-
"componentAttributes": {
401-
"direction": "horizontal",
402-
"fields": [
403-
{
404-
"attributes": {
405-
"initialSortDirection": "desc",
406-
"isDefaultSort": false,
407-
"isStatus": false,
408-
"sortable": false
409-
},
410-
"name": "temporalPassword",
411-
"component": "Text",
412-
"componentAttributes": {
413-
"fontWeight": "normal"
414-
}
415-
},
416-
{
417-
"attributes": {
418-
"initialSortDirection": "desc",
419-
"isDefaultSort": false,
420-
"isStatus": false,
421-
"sortable": false
422-
},
423-
"component": "CopyToClipboardButton",
424-
"componentAttributes": {},
425-
"name": "temporalPassword"
426-
}
427-
]
428-
}
429-
}
430-
]
388+
"modalTitle": "testModalTitle",
389+
"fields": [
390+
{
391+
"attributes": {
392+
"initialSortDirection": "desc",
393+
"isDefaultSort": false,
394+
"isStatus": false,
395+
"sortable": false
396+
},
397+
"name": "password",
398+
"label": "login.field.temporaryPassword",
399+
"component": "FieldList",
400+
"componentAttributes": {
401+
"direction": "horizontal",
402+
"fields": [
403+
{
404+
"attributes": {
405+
"initialSortDirection": "desc",
406+
"isDefaultSort": false,
407+
"isStatus": false,
408+
"sortable": false
409+
},
410+
"name": "temporalPassword",
411+
"component": "Text",
412+
"componentAttributes": {
413+
"fontWeight": "normal"
414+
}
415+
},
416+
{
417+
"attributes": {
418+
"initialSortDirection": "desc",
419+
"isDefaultSort": false,
420+
"isStatus": false,
421+
"sortable": false
422+
},
423+
"component": "CopyToClipboardButton",
424+
"componentAttributes": {},
425+
"name": "temporalPassword"
426+
}
427+
]
428+
}
429+
}
430+
]
431431
}
432432
}
433433
]
@@ -714,6 +714,13 @@
714714
"field": ["test", "name"],
715715
"referenceValue": true
716716
}
717+
],
718+
[
719+
{
720+
"name": "includes",
721+
"field": "test",
722+
"referenceValue": "value"
723+
}
717724
]
718725
]
719726
},

0 commit comments

Comments
 (0)