cec-nuxt-lib 0.11.0 → 0.11.2

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.00",
4
+ "version": "0.11.02",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -7,85 +7,6 @@ const baseUrl = useState("baseUrl");
7
7
  const page = useState("page");
8
8
  const path = useState("path");
9
9
  const regex = /^https:\/\/digital-core\.cheshireeast\.gov\.uk(?!.*(?:&pagePath|&pageTitle|login)).*$/;
10
- const config = {
11
- apiKey: "c1a902dfad207b122cca32738e623af375e1d2ee",
12
- product: "PRO_MULTISITE",
13
- mode: "gdpr",
14
- consentCookieExpiry: "365",
15
- statement: {
16
- description: "For more information visit our",
17
- name: "Cookies page",
18
- url: "/council_and_democracy/council_information/website_information/website_information.aspx",
19
- updated: "08/09/2020"
20
- },
21
- accessibility: {
22
- outline: true
23
- },
24
- optionalCookies: [
25
- {
26
- name: "analytics",
27
- label: "Analytics cookies",
28
- description: "We would like to set Google Analytics cookies. This helps us to improve our website by collecting and reporting information on its usage and is done in a way that does not directly identify anyone.",
29
- cookies: [
30
- "_ga",
31
- "_gid",
32
- "__utma",
33
- "__utmt",
34
- "__utmb",
35
- "__utmc",
36
- "__utmz",
37
- "__utm.gif"
38
- ],
39
- onAccept: function() {
40
- dataLayer.push({
41
- event: "analytics_consent_given"
42
- });
43
- },
44
- onRevoke: function() {
45
- }
46
- },
47
- {
48
- name: "marketing",
49
- label: "Marketing cookies",
50
- description: "We would like to embed Facebook feeds. In return they use marketing cookies to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.",
51
- cookies: ["guest_id", "personalization_id"],
52
- onAccept: function() {
53
- !function(d, s, id) {
54
- var js, fjs2 = d.getElementsByTagName(s)[0];
55
- if (d.getElementById(id)) return;
56
- js = d.createElement(s);
57
- js.id = id;
58
- js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.3";
59
- fjs2.parentNode.insertBefore(js, fjs2);
60
- }(document, "script", "facebook-jssdk");
61
- },
62
- onRevoke: function() {
63
- fjs("consent", "revoke");
64
- }
65
- }
66
- ],
67
- position: "LEFT",
68
- theme: "DARK",
69
- branding: {
70
- fontColor: "#FFF",
71
- fontSizeTitle: "1.2em",
72
- fontSizeIntro: "1em",
73
- fontSizeHeaders: "1em",
74
- fontSize: "1em",
75
- backgroundColor: "#206c49",
76
- toggleText: "#fff",
77
- toggleColor: "#68907e",
78
- toggleBackground: "#144a31",
79
- buttonIcon: null,
80
- buttonIconWidth: "64px",
81
- buttonIconHeight: "64px",
82
- removeIcon: false,
83
- removeAbout: true
84
- }
85
- };
86
- let updateToggleText = () => {
87
- console.log("no op");
88
- };
89
10
  const doSearch = async () => {
90
11
  if (searchTerms.value) {
91
12
  await navigateTo(
@@ -95,25 +16,6 @@ const doSearch = async () => {
95
16
  }
96
17
  };
97
18
  onMounted(() => {
98
- updateToggleText = () => {
99
- const x = document.getElementById("baToggleText");
100
- if (x.innerText === "Listen and translate") {
101
- x.innerText = "Close listen and translate";
102
- } else {
103
- x.innerText = "Listen and translate";
104
- }
105
- BrowseAloud.panel.toggleBar();
106
- };
107
- try {
108
- CookieControl.load(config);
109
- } catch (ignore) {
110
- console.log("No cookie control");
111
- }
112
- try {
113
- BrowseAloud.disableBrowsealoudAnalytics();
114
- } catch (ignore) {
115
- console.log("No reachdeck.");
116
- }
117
19
  let accordions = document.getElementsByClassName("access-acc-container");
118
20
  if (accordions.length) {
119
21
  let hash = window.location.hash;
@@ -306,7 +208,6 @@ onMounted(() => {
306
208
  >
307
209
  </div>
308
210
  </div>
309
- <div id="__ba_panel"></div>
310
211
  <header class="cec-header">
311
212
  <div class="container">
312
213
  <div class="float-start">
@@ -329,47 +230,6 @@ onMounted(() => {
329
230
  </div>
330
231
  <div class="float-end icon-bank">
331
232
  <ul class="mb-2 mb-lg-0 ps-0 ms-auto d-inline list-unstyled">
332
- <li class="nav-item d-inline text-end">
333
- <div class="ba_listenTranslateToggle d-inline">
334
- <a
335
- class="nav-link pe-0 d-inline ps-0"
336
- @click="updateToggleText()"
337
- href="#"
338
- >
339
- <i role="img" aria-label="Listen">
340
- <svg
341
- class="d-inline"
342
- xmlns="http://www.w3.org/2000/svg"
343
- width="22"
344
- height="22"
345
- viewBox="0 0 24 24"
346
- >
347
- <path
348
- d="M22 0v24l-11-6v-2.278l9 4.909v-17.262l-9 4.91v-2.279l11-6zm-13 6v12h-7v-12h7z"
349
- ></path>
350
- <title>Audio icon</title>
351
- </svg>
352
- </i>
353
- <i role="img" aria-label="Translate">
354
- <svg
355
- class="d-inline"
356
- xmlns="http://www.w3.org/2000/svg"
357
- width="24"
358
- height="24"
359
- viewBox="0 0 24 24"
360
- >
361
- <path
362
- d="M17.246 4.042c-3.36 0-3.436-2.895-7.337-2.895-2.108 0-4.075.98-4.909 1.694v-2.841h-2v24h2v-9.073c1.184-.819 2.979-1.681 4.923-1.681 3.684 0 4.201 2.754 7.484 2.754 2.122 0 3.593-1.359 3.593-1.359v-12.028s-1.621 1.429-3.754 1.429zm1.754 9.544c-.4.207-.959.414-1.593.414-.972 0-1.498-.363-2.371-.964-1.096-.755-2.596-1.79-5.113-1.79-1.979 0-3.71.679-4.923 1.339v-7.488c1.019-.902 2.865-1.949 4.909-1.949 1.333 0 1.894.439 2.741 1.103.966.756 2.288 1.792 4.596 1.792.627 0 1.215-.086 1.754-.223v7.766z"
363
- ></path>
364
- <title>Translate icon</title>
365
- </svg>
366
- </i>
367
- <span id="baToggleText" class="d-none d-lg-inline"
368
- >Listen and translate</span
369
- >
370
- </a>
371
- </div>
372
- </li>
373
233
  <li class="nav-item d-inline text-end">
374
234
  <a
375
235
  class="nav-link d-inline pe-0"
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.11.00",
2
+ "version": "0.11.02",
3
3
  "name": "cec-nuxt-lib",
4
4
  "description": "Nuxt components and assets",
5
5
  "license": "MIT",