@qld-gov-au/qgds-bootstrap5 2.1.12 → 2.1.13

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qld-gov-au/qgds-bootstrap5",
3
- "version": "2.1.12",
3
+ "version": "2.1.13",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -75,7 +75,7 @@
75
75
  "esbuild-plugin-copy": "^2.1.1",
76
76
  "esbuild-plugin-handlebars": "1.0.3",
77
77
  "esbuild-sass-plugin": "3.6.0",
78
- "eslint": "9.39.2",
78
+ "eslint": "10.0.0",
79
79
  "eslint-plugin-json": "^4.0.1",
80
80
  "eslint-plugin-storybook": "^10.1.10",
81
81
  "globals": "17.3.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qld-gov-au/qgds-bootstrap5",
3
- "version": "2.1.12",
3
+ "version": "2.1.13",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -75,7 +75,7 @@
75
75
  "esbuild-plugin-copy": "^2.1.1",
76
76
  "esbuild-plugin-handlebars": "1.0.3",
77
77
  "esbuild-sass-plugin": "3.6.0",
78
- "eslint": "9.39.2",
78
+ "eslint": "10.0.0",
79
79
  "eslint-plugin-json": "^4.0.1",
80
80
  "eslint-plugin-storybook": "^10.1.10",
81
81
  "globals": "17.3.0",
@@ -196,6 +196,14 @@ export async function showSuggestions(value = "", isDefault = false, form) {
196
196
  dynamicSuggestionsContainer.getAttribute("data-view-more");
197
197
 
198
198
  // Build the services HTML safely
199
+ const escapeHtmlAttr = (str) =>
200
+ String(str)
201
+ .replace(/&/g, "&")
202
+ .replace(/"/g, """)
203
+ .replace(/'/g, "'")
204
+ .replace(/</g, "&lt;")
205
+ .replace(/>/g, "&gt;");
206
+
199
207
  const servicesItems = fetchedServices.response.resultPacket.results
200
208
  .slice(0, 4)
201
209
  .map(
@@ -205,7 +213,7 @@ export async function showSuggestions(value = "", isDefault = false, form) {
205
213
  .join("");
206
214
 
207
215
  const viewMoreItem = viewMoreUrl
208
- ? `<li><a tabindex="0" href="${viewMoreUrl}" class="view-more">View more</a></li>`
216
+ ? `<li><a tabindex="0" href="${escapeHtmlAttr(viewMoreUrl)}" class="view-more">View more</a></li>`
209
217
  : "";
210
218
 
211
219
  dynamicSuggestionsContainer.innerHTML += `
@@ -13,7 +13,6 @@
13
13
  --sidenav-level-two-padding: 2rem;
14
14
  --sidenav-level-three-padding: 3.5rem;
15
15
  --sidenav-navlink-padding: 1rem;
16
-
17
16
  --sidenav-hover-bg: var(--#{$prefix}neutral-lightest);
18
17
  --sidenav-hover-color: var(--#{$prefix}light-action-primary);
19
18
  --sidenav-hover-underline-color: var(
@@ -149,7 +148,7 @@
149
148
  .nav-link {
150
149
  padding: var(--sidenav-navlink-padding);
151
150
  font-size: 0.875rem;
152
- color: var(--#{$prefix}light-text-text);
151
+ color: var(--qld-body-color);
153
152
  text-decoration: none;
154
153
  transition-duration: 0s;
155
154
  line-height: 1.25rem;
@@ -10,21 +10,21 @@ $color-default-color-dark-background-alt-shade: #000764 !default;
10
10
  $color-default-color-dark-background-alt: #001d74 !default;
11
11
  $color-default-color-dark-background-default-shade: #003e96 !default;
12
12
  $color-default-color-dark-background-default: #005eb8 !default;
13
- $color-default-color-dark-border-alt: #63b1ff !default;
13
+ $color-default-color-dark-border-alt: #73c2ff !default;
14
14
  $color-default-color-dark-border-default: #418fed !default;
15
15
  $color-default-color-dark-crest-fill: #ffffff !default;
16
16
  $color-default-color-dark-focus-default: #c6ffff !default;
17
17
  $color-default-color-dark-link-default: #ffffff !default;
18
18
  $color-default-color-dark-link-on-action: #001c37 !default;
19
- $color-default-color-dark-link-visited: #F2CDFF !default;
19
+ $color-default-color-dark-link-visited: #f2cdff !default;
20
20
  $color-default-color-dark-site-title: #ffffff !default;
21
21
  $color-default-color-dark-text-default: #ffffff !default;
22
22
  $color-default-color-dark-text-heading: #ffffff !default;
23
23
  $color-default-color-dark-text-lighter: #deebf9 !default;
24
24
  $color-default-color-dark-underline-default-hover: #ffffff !default;
25
25
  $color-default-color-dark-underline-default: #b5cce2 !default;
26
- $color-default-color-dark-underline-visited-hover: #F2CDFF !default;
27
- $color-default-color-dark-underline-visited: #C6AED9 !default;
26
+ $color-default-color-dark-underline-visited-hover: #f2cdff !default;
27
+ $color-default-color-dark-underline-visited: #c6aed9 !default;
28
28
 
29
29
  /* Light palettes */
30
30
  $color-default-color-light-accent-design-accent: #84d3ff !default;
@@ -79,7 +79,7 @@ The following core components are available in this library. Additional layout
79
79
  {componentList.map(component => (
80
80
  <a
81
81
  key={component.id}
82
- href={`/?path=${component.storyPath}`}
82
+ href={`/qgds-bootstrap5/?path=${component.storyPath}`}
83
83
  className="component-card"
84
84
  >
85
85
  <div className="component-card-title">{component.title}</div>
@@ -88,11 +88,14 @@ The following core components are available in this library. Additional layout
88
88
  </div>
89
89
 
90
90
 
91
- ## [How to use](?path=/docs/introduction-how-to-use--overview)
92
- > Use this guide to implement the QGDS Bootstrap 5 edition in your web page or application.
91
+ ## How to use
92
+ Use this guide to implement the QGDS Bootstrap 5 edition in your web page or application.<br /><br />
93
+ [How to use guide](?path=/docs/introduction-how-to-use--overview)
93
94
 
94
- ## [Project development](?path=/docs/introduction-development---overview)
95
- > Use this guide if working on or contributing to the QGDS Bootstrap 5 source code itself. It outlines the architecture, build processes, Github setup and repository forking.
95
+
96
+ ## How to contribute
97
+ Use this guide if working on or contributing to the QGDS Bootstrap 5 source code itself. It outlines the architecture, build processes, Github setup and repository forking.<br /><br />
98
+ [Project development guide](?path=/docs/introduction-development---overview)
96
99
 
97
100
 
98
101
  ## The QGDS Ecosystem