@onsvisual/svelte-components 1.1.48 → 1.1.49

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.
@@ -81,7 +81,6 @@
81
81
 
82
82
  let el; // Header HTML element
83
83
 
84
- let _page;
85
84
  let lang = "en";
86
85
  let baseurl = "https://www.ons.gov.uk";
87
86
  let baseother = "https://cy.ons.gov.uk";
@@ -120,8 +119,7 @@
120
119
  $: i18n = (text) => (lang === "cy" && texts[text] ? texts[text] : text);
121
120
 
122
121
  onMount(() => {
123
- _page = page || { url: document?.location };
124
- setPaths();
122
+ setPaths(page || { url: document?.location });
125
123
 
126
124
  if ((!compact && !legacy) || (title && Array.isArray(navLinks))) {
127
125
  const hasBodyClass = "className" in document?.body || {};
@@ -131,7 +129,7 @@
131
129
  initNav(el?.parentElement || document);
132
130
  }
133
131
  });
134
- $: setPaths(_page);
132
+ $: setPaths(page);
135
133
  </script>
136
134
 
137
135
  <header
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsvisual/svelte-components",
3
- "version": "1.1.48",
3
+ "version": "1.1.49",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "npm run build:package && npm run build:docs",