@access-ci/ui 0.8.0-beta2 → 0.9.0-beta1
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/README.md +9 -1
- package/dist/access-ci-ui.bundle.js +12 -3
- package/dist/access-ci-ui.js +9 -8
- package/dist/access-ci-ui.umd.cjs +16 -27
- package/dist/access-qa-bot-Cq3q7AAP.js +1921 -0
- package/dist/{icon-l_WXz3VS.js → icon-Cp10d2Q2.js} +1 -1
- package/dist/{index-7DUt41Pg.js → index-BdTHsAiI.js} +693 -612
- package/dist/{resource-group-detail-BWQAjklP.js → resource-group-detail-CE_LUC5c.js} +2068 -2159
- package/dist/resource-home-Xq3HiR8e.js +260 -0
- package/package.json +3 -1
- package/dist/resource-home-itrfiwmu.js +0 -248
package/README.md
CHANGED
|
@@ -29,6 +29,7 @@ The library includes functions for rendering common ACCESS user interface compon
|
|
|
29
29
|
- `footerMenus`: Site-specific navigation menus above the footer
|
|
30
30
|
- `footer`: Universal footer
|
|
31
31
|
- `resourceCatalog`: ACCESS resource catalog
|
|
32
|
+
- `qaBot`: Question/answer bot
|
|
32
33
|
|
|
33
34
|
## Example
|
|
34
35
|
|
|
@@ -47,16 +48,18 @@ The library includes functions for rendering common ACCESS user interface compon
|
|
|
47
48
|
</div>
|
|
48
49
|
<div id="footer-menus"></div>
|
|
49
50
|
<div id="footer"></div>
|
|
51
|
+
<div id="qa-bot"></div>
|
|
50
52
|
<script type="module">
|
|
51
53
|
import {
|
|
52
54
|
footer,
|
|
53
55
|
footerMenus,
|
|
54
56
|
header,
|
|
57
|
+
qaBot,
|
|
55
58
|
siteMenus,
|
|
56
59
|
tableOfContents,
|
|
57
60
|
universalMenuItems,
|
|
58
61
|
universalMenus,
|
|
59
|
-
} from "https://esm.sh/@access-ci/ui@0.
|
|
62
|
+
} from "https://esm.sh/@access-ci/ui@0.8.0";
|
|
60
63
|
|
|
61
64
|
const siteItems = [
|
|
62
65
|
{
|
|
@@ -125,5 +128,10 @@ The library includes functions for rendering common ACCESS user interface compon
|
|
|
125
128
|
});
|
|
126
129
|
|
|
127
130
|
footer({ target: document.getElementById("footer") });
|
|
131
|
+
|
|
132
|
+
qaBot({
|
|
133
|
+
target: document.getElementById("qa-bot"),
|
|
134
|
+
apiKey: "my-api-key",
|
|
135
|
+
});
|
|
128
136
|
</script>
|
|
129
137
|
```
|