cec-nuxt-lib 0.11.3 → 0.11.4

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.03",
4
+ "version": "0.11.04",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -7,82 +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
10
  const doSearch = async () => {
87
11
  if (searchTerms.value) {
88
12
  await navigateTo(
@@ -92,11 +16,6 @@ const doSearch = async () => {
92
16
  }
93
17
  };
94
18
  onMounted(() => {
95
- try {
96
- CookieControl.load(config);
97
- } catch (ignore) {
98
- console.log("No cookie control");
99
- }
100
19
  let accordions = document.getElementsByClassName("access-acc-container");
101
20
  if (accordions.length) {
102
21
  let hash = window.location.hash;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.11.03",
2
+ "version": "0.11.04",
3
3
  "name": "cec-nuxt-lib",
4
4
  "description": "Nuxt components and assets",
5
5
  "license": "MIT",