diff --git a/package.json b/package.json index d5b322b..7692577 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@ons/design-system": "x" }, "devDependencies": { - "@ons/design-system": "^62.2.2", + "@ons/design-system": "^65.0.0", "jest": "^28.1.3" } } diff --git a/src/rendering/createRenderer.spec.js b/src/rendering/createRenderer.spec.js index 2f2710d..9ce8301 100644 --- a/src/rendering/createRenderer.spec.js +++ b/src/rendering/createRenderer.spec.js @@ -49,7 +49,7 @@ describe("createRenderer()", () => { await expect(renderer.renderString("{{ designSystemVersion }}")) .resolves - .toBe("62.2.2"); + .toBe("65.0.0"); }); it("adds a global to get the design system cdn base URL", async () => { @@ -65,7 +65,7 @@ describe("createRenderer()", () => { await expect(renderer.renderString("{{ designSystemCdnUrl }}")) .resolves - .toBe("https://cdn.ons.gov.uk/sdc/design-system/62.2.2"); + .toBe("https://cdn.ons.gov.uk/sdc/design-system/65.0.0"); }); it("is able to load templates from the design system", async () => { diff --git a/src/rendering/filters/htmlContentFilter.js b/src/rendering/filters/htmlContentFilter.js index 068ff11..f2d9027 100644 --- a/src/rendering/filters/htmlContentFilter.js +++ b/src/rendering/filters/htmlContentFilter.js @@ -21,7 +21,7 @@ export default function createHtmlContentFilter(data) { const otherAttributes = groups.linkAttributes.replace(/\s+(href|target|rel|class)="[^"]+"/g, ""); return ` - ${groups.linkText} ${groups.linkText}  (opens in a new tab) `; diff --git a/src/rendering/filters/htmlContentFilter.spec.js b/src/rendering/filters/htmlContentFilter.spec.js index e9d866e..969874f 100644 --- a/src/rendering/filters/htmlContentFilter.spec.js +++ b/src/rendering/filters/htmlContentFilter.spec.js @@ -32,7 +32,7 @@ describe("createHtmlContentFilter(site)", () => { const string = htmlContentFilter(`Some external cookies page`); expect(string).toBe(` - Some external cookies page Some external cookies page  (opens in a new tab) `); @@ -42,7 +42,7 @@ describe("createHtmlContentFilter(site)", () => { const string = htmlContentFilter(`Cookies page`); expect(string).toBe(` - Cookies page Cookies page  (opens in a new tab) `); diff --git a/yarn.lock b/yarn.lock index 2b78c41..2369cc4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -533,10 +533,10 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" -"@ons/design-system@^53.1.0": - version "53.1.0" - resolved "https://registry.yarnpkg.com/@ons/design-system/-/design-system-53.1.0.tgz#25943fb6be572ef2b2344af2e6216c24ae10bea6" - integrity sha512-Dn5kTe/7okvPdbeBvZC/mieSJH0bMTo13svcWiySzFenFemysdkIRuM8Xx+HlAV0nPSB+qx+GXcs5yHB+gbWPQ== +"@ons/design-system@^65.0.0": + version "65.0.0" + resolved "https://registry.yarnpkg.com/@ons/design-system/-/design-system-65.0.0.tgz#052057e6adb02ab1c66b8ffce3868021f8e6460c" + integrity sha512-5khkxMC4RSNUPlM/O4BaqZZB97ntOnDa3+2FPRBbqIp2g5FKeAfgD8zSgiBkUw6RPYBdu678YzYHwwrWA5P9TQ== "@sinclair/typebox@^0.24.1": version "0.24.20"