cec-nuxt-lib 0.11.10 → 0.11.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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cec-nuxt-lib",
3
3
  "configKey": "cec-nuxt-lib",
4
- "version": "0.11.10",
4
+ "version": "0.11.13",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { onMounted } from "vue";
3
- import { useState, navigateTo, useScript } from "#app";
3
+ import { useState, navigateTo } from "#app";
4
4
  const searchTerms = useState("searchTerms");
5
5
  const questions = useState("questions");
6
6
  const baseUrl = useState("baseUrl");
@@ -91,15 +91,19 @@ const doSearch = async () => {
91
91
  );
92
92
  }
93
93
  };
94
- useScript("https://cc.cdn.civiccomputing.com/9/cookieControl-9.x.min.js");
95
94
  onMounted(() => {
96
- setTimeout(() => {
95
+ let i = 0;
96
+ let interval = setInterval(() => {
97
+ i += 1;
97
98
  try {
98
99
  CookieControl.load(config);
100
+ clearInterval(interval);
99
101
  } catch (err) {
100
- console.log("No cookie control");
102
+ if (i > 50) {
103
+ clearInterval(interval);
104
+ }
101
105
  }
102
- }, 50);
106
+ }, 10);
103
107
  let accordions = document.getElementsByClassName("access-acc-container");
104
108
  if (accordions.length) {
105
109
  let hash = window.location.hash;
@@ -214,11 +218,11 @@ onMounted(() => {
214
218
  let display2 = document.getElementById(id + "_display");
215
219
  let breadcrumb = document.getElementById(`${id}_breadcrumb`);
216
220
  breadcrumb.innerHTML = "";
217
- qTop.stack.forEach((el, i) => {
221
+ qTop.stack.forEach((el, i2) => {
218
222
  let li = document.createElement("LI");
219
223
  li.classList.add("breadcrumb-item");
220
224
  li.innerHTML = qTop.question[el].question;
221
- if (i !== qTop.stack.length - 1 || display2.innerText.length) {
225
+ if (i2 !== qTop.stack.length - 1 || display2.innerText.length) {
222
226
  li.classList.add("fakeLink");
223
227
  li.onclick = () => goto(id, el, false);
224
228
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.11.10",
2
+ "version": "0.11.13",
3
3
  "name": "cec-nuxt-lib",
4
4
  "description": "Nuxt components and assets",
5
5
  "license": "MIT",
@@ -33,8 +33,7 @@
33
33
  "link": "npm link"
34
34
  },
35
35
  "dependencies": {
36
- "@nuxt/kit": "^3.16.2",
37
- "@nuxt/scripts": "^0.11.8"
36
+ "@nuxt/kit": "^3.16.2"
38
37
  },
39
38
  "devDependencies": {
40
39
  "@nuxt/devtools": "^2.4.0",