@abgov/adsp-sdk-mcp-server 1.11.0 → 1.12.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.
|
@@ -37,7 +37,7 @@ Keycloak uses FreeMarker files to build server-side webpages that then get serve
|
|
|
37
37
|
Probably the easiest way to build and test a new theme is:
|
|
38
38
|
|
|
39
39
|
- read the [keycloak guide](https://www.keycloak.org/docs/18.0/server_development/) for developing themes
|
|
40
|
-
- clone the
|
|
40
|
+
- clone the Access service repository, and
|
|
41
41
|
- follow the instructions in the repository to build, test, and deploy your new templates.
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
The Access service repository is maintained by the ADSP team in a private Government of Alberta organization, so you will need to request access before you can clone it. Please contact the ADSP team on slack (#adsp-connect) or email us at [ADSP Support](adsp@gov.ab.ca) to request access, or if you have any questions.
|
|
@@ -73,6 +73,21 @@ The tenant name will be extracted from the access token, and the feedback inform
|
|
|
73
73
|
|
|
74
74
|
Note: The service itself does not make a record of the user ID in the access token. If this is desired you can use the [correlation ID](#target-correlationid) for this purpose.
|
|
75
75
|
|
|
76
|
+
For applications that need to use Design Systems 2.0 components add a parameter `designSystemsVersion: '2.0'` in the initialize method as shown below:
|
|
77
|
+
|
|
78
|
+
```html
|
|
79
|
+
<body>
|
|
80
|
+
...
|
|
81
|
+
<script>
|
|
82
|
+
adspFeedback.initialize({
|
|
83
|
+
designSystemsVersion: '2.0',
|
|
84
|
+
getAccessToken: () => {<your getter method>}});
|
|
85
|
+
</script>
|
|
86
|
+
</body>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
By default the Feedback widget will show Design Systems 1.0 if the parameter `designSystemsVersion: '2.0'` is not provided.
|
|
90
|
+
|
|
76
91
|
#### Anonymous access
|
|
77
92
|
|
|
78
93
|
For anonymous access you must submit your tenant name directly, as follows:
|
|
@@ -27,6 +27,8 @@ Note: in some UI schemas you will see "ComponentProps" in the options element. C
|
|
|
27
27
|
|
|
28
28
|
Here are some out-of-the-box formats that not only render with the correct input widget, but ensure that the data provided by users is valid. NOTE: There is a known issue in jsonforms that allows an empty string to satisfy the required validation rule. To work around this, you should also add a minimum length of 1 to required string fields (see Limited text with required validation) below.
|
|
29
29
|
|
|
30
|
+
The Name, Address, and Email examples below reuse definitions from the [ADSP common schema](https://adsp.alberta.ca/common.v1.schema.json). Add the data schema property first, then add a UI schema control whose <code>scope</code> uses the same property name.
|
|
31
|
+
|
|
30
32
|
<table>
|
|
31
33
|
<tr>
|
|
32
34
|
<th>Format</th>
|
|
@@ -34,6 +36,57 @@ Here are some out-of-the-box formats that not only render with the correct input
|
|
|
34
36
|
<th>JSON schema</th>
|
|
35
37
|
<th>UI schema</th>
|
|
36
38
|
</tr>
|
|
39
|
+
<tr>
|
|
40
|
+
<td>Name</td>
|
|
41
|
+
<td>A structured name control with first name, optional middle name, and last name fields. The common definition includes validation and requires the first and last names.</td>
|
|
42
|
+
<td><pre><code>
|
|
43
|
+
{
|
|
44
|
+
"applicantName": {
|
|
45
|
+
"$ref": "https://adsp.alberta.ca/common.v1.schema.json#/definitions/personFullName"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
</code></pre></td>
|
|
49
|
+
<td><pre><code>
|
|
50
|
+
{
|
|
51
|
+
"type": "Control",
|
|
52
|
+
"scope": "#/properties/applicantName"
|
|
53
|
+
}
|
|
54
|
+
</code></pre></td>
|
|
55
|
+
</tr>
|
|
56
|
+
<tr>
|
|
57
|
+
<td>Address</td>
|
|
58
|
+
<td>A structured Alberta postal address control with address lookup. Use <code>postalAddressCanada</code> instead of <code>postalAddressAlberta</code> when addresses from any Canadian province or territory are allowed.</td>
|
|
59
|
+
<td><pre><code>
|
|
60
|
+
{
|
|
61
|
+
"mailingAddress": {
|
|
62
|
+
"$ref": "https://adsp.alberta.ca/common.v1.schema.json#/definitions/postalAddressAlberta"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
</code></pre></td>
|
|
66
|
+
<td><pre><code>
|
|
67
|
+
{
|
|
68
|
+
"type": "Control",
|
|
69
|
+
"scope": "#/properties/mailingAddress"
|
|
70
|
+
}
|
|
71
|
+
</code></pre></td>
|
|
72
|
+
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<td>Email</td>
|
|
75
|
+
<td>An email input with the common schema's email format validation and 100-character limit.</td>
|
|
76
|
+
<td><pre><code>
|
|
77
|
+
{
|
|
78
|
+
"contactEmail": {
|
|
79
|
+
"$ref": "https://adsp.alberta.ca/common.v1.schema.json#/definitions/email"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
</code></pre></td>
|
|
83
|
+
<td><pre><code>
|
|
84
|
+
{
|
|
85
|
+
"type": "Control",
|
|
86
|
+
"scope": "#/properties/contactEmail"
|
|
87
|
+
}
|
|
88
|
+
</code></pre></td>
|
|
89
|
+
</tr>
|
|
37
90
|
<tr>
|
|
38
91
|
<td>Date</td>
|
|
39
92
|
<td>A calendar date picker for selecting a date value in ISO format (YYYY-MM-DD).</td>
|
|
@@ -300,6 +353,7 @@ Here are some out-of-the-box formats that not only render with the correct input
|
|
|
300
353
|
}
|
|
301
354
|
</code></pre></td>
|
|
302
355
|
</tr>
|
|
356
|
+
|
|
303
357
|
<tr>
|
|
304
358
|
<td>Checkbox with required validation</td>
|
|
305
359
|
<td>A required checkbox that must be checked (confirmed) to satisfy the form requirement.</td>
|
|
@@ -635,6 +689,56 @@ For when the user must select from a limited set of answers.
|
|
|
635
689
|
}
|
|
636
690
|
</code></pre></td>
|
|
637
691
|
</tr>
|
|
692
|
+
<tr>
|
|
693
|
+
<td>Radio Button 2</td>
|
|
694
|
+
<td>Another way to provide a set/list radio buttons along with hint text</td>
|
|
695
|
+
<td>
|
|
696
|
+
<pre><code>
|
|
697
|
+
{
|
|
698
|
+
"carType": {
|
|
699
|
+
"type": "array",
|
|
700
|
+
"default": [],
|
|
701
|
+
"items": {
|
|
702
|
+
"type": "string",
|
|
703
|
+
"oneOf": [
|
|
704
|
+
{
|
|
705
|
+
"const": "Acura",
|
|
706
|
+
"title": "Acura SUV",
|
|
707
|
+
"description": "Acura SUv -- This is for hint text"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"const": "Toyota",
|
|
711
|
+
"title": "Toyota SUV",
|
|
712
|
+
"description": "Toyota SUV -- This is for hint text"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"const": "Mazda SUV",
|
|
716
|
+
"title": "Mazda SUV ",
|
|
717
|
+
"description": "Toyota SUV -- This is for hint text"
|
|
718
|
+
}
|
|
719
|
+
],
|
|
720
|
+
"uniqueItems": true
|
|
721
|
+
},
|
|
722
|
+
"minItems": 1,
|
|
723
|
+
"errorMessage": {
|
|
724
|
+
"minItems": "Choose all that apply is required"
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
</code></pre>
|
|
729
|
+
</td>
|
|
730
|
+
<td><pre><code>
|
|
731
|
+
{
|
|
732
|
+
"type": "Control",
|
|
733
|
+
"scope": "#/properties/carType",
|
|
734
|
+
"label": "Choose the car Type that best applies.",
|
|
735
|
+
"options": {
|
|
736
|
+
"format": "radio"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
</code></pre></td>
|
|
740
|
+
</tr>
|
|
741
|
+
|
|
638
742
|
<tr>
|
|
639
743
|
<td>Checkbox</td>
|
|
640
744
|
<td>A set of checkboxes for selecting multiple options from a list simultaneously.</td>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/adsp-sdk-mcp-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - MCP server for ADSP documentation and Node SDK reference lookup.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|