@cocreate/pwa 1.19.2 → 1.19.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/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [1.19.4](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.19.3...v1.19.4) (2024-06-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump cocreate dependencies ([0477a4c](https://github.com/CoCreate-app/CoCreate-pwa/commit/0477a4c08c12cc3516a1927b5556bf40268f7c85))
7
+ * svg icon class ([a1cc6a2](https://github.com/CoCreate-app/CoCreate-pwa/commit/a1cc6a2bbad2c243263b7b9a4f7a58d079a4b32c))
8
+
9
+ ## [1.19.3](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.19.2...v1.19.3) (2024-04-29)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * bump cocreate dependencies ([f6a4ebb](https://github.com/CoCreate-app/CoCreate-pwa/commit/f6a4ebbd79744c48ea92cbceac314feb0d1a0afa))
15
+
1
16
  ## [1.19.2](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.19.1...v1.19.2) (2024-04-28)
2
17
 
3
18
 
package/docs/index.html CHANGED
@@ -37,41 +37,31 @@
37
37
  href="https://github.com/CoCreate-app/CoCreate-pwa"
38
38
  target="_blank"
39
39
  class="margin-right:15px"
40
- ><i
41
- class="height:20px fill:#505050"
42
- src="/assets/svg/github.svg"></i
40
+ ><i src="/assets/svg/github.svg"></i
43
41
  ></a>
44
42
  <a
45
43
  class="margin-right:15px share"
46
44
  share-network="twitter"
47
45
  title="Share on twitter"
48
- ><i
49
- class="height:20px fill:#505050"
50
- src="/assets/svg/twitter.svg"></i
46
+ ><i src="/assets/svg/twitter.svg"></i
51
47
  ></a>
52
48
  <a
53
49
  class="margin-right:15px share"
54
50
  share-network="facebook"
55
51
  title="Share on Facebook"
56
- ><i
57
- class="height:20px fill:#505050"
58
- src="/assets/svg/facebook.svg"></i
52
+ ><i src="/assets/svg/facebook.svg"></i
59
53
  ></a>
60
54
  <a
61
55
  class="margin-right:15px share"
62
56
  share-network="instagram"
63
57
  title="Share on instagram"
64
- ><i
65
- class="height:20px fill:#505050"
66
- src="/assets/svg/instagram.svg"></i
58
+ ><i src="/assets/svg/instagram.svg"></i
67
59
  ></a>
68
60
  <a
69
61
  class="margin-right:15px share"
70
62
  share-network="share"
71
63
  title="Share on share"
72
- ><i
73
- class="height:20px fill:#505050"
74
- src="/assets/svg/share-alt.svg"></i
64
+ ><i src="/assets/svg/share-alt.svg"></i
75
65
  ></a>
76
66
  </div>
77
67
  </div>
@@ -190,7 +180,7 @@
190
180
  toggle="code-height"
191
181
  toggle-selector="#demo-code"
192
182
  ><i
193
- class="height:18px fill:#505050"
183
+ class="height:18px"
194
184
  src="/assets/svg/eye.svg"></i
195
185
  ></a>
196
186
  <a
@@ -201,18 +191,14 @@
201
191
  hide="#eye-slash"
202
192
  toggle="code-height"
203
193
  toggle-selector="#demo-code"
204
- ><i
205
- class="height:20px fill:#505050"
206
- src="/assets/svg/eye-slash.svg"></i
194
+ ><i src="/assets/svg/eye-slash.svg"></i
207
195
  ></a>
208
196
  <a
209
197
  class="margin-right:10px"
210
198
  id="code"
211
199
  show="#code-slash"
212
200
  hide="#code, #demo-code"
213
- ><i
214
- class="height:20px fill:#505050"
215
- src="/assets/svg/code.svg"></i
201
+ ><i src="/assets/svg/code.svg"></i
216
202
  ></a>
217
203
  <a
218
204
  class="margin-right:10px"
@@ -221,7 +207,7 @@
221
207
  show="#code, #demo-code"
222
208
  hide="#code-slash"
223
209
  ><i
224
- class="display:flex height:18px fill:#505050"
210
+ class="height:18px"
225
211
  src="/assets/svg/code.svg"></i
226
212
  ></a>
227
213
  <a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/pwa",
3
- "version": "1.19.2",
3
+ "version": "1.19.4",
4
4
  "description": "A simple pwa component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "pwa",
@@ -59,6 +59,6 @@
59
59
  "webpack-log": "^3.0.1"
60
60
  },
61
61
  "dependencies": {
62
- "@cocreate/local-storage": "^1.12.0"
62
+ "@cocreate/local-storage": "^1.15.0"
63
63
  }
64
64
  }
@@ -23,7 +23,7 @@
23
23
  */
24
24
 
25
25
  const cacheName = "dynamic-v2";
26
- const updatedOn = new Date('2024-04-28T03:15:28.668Z');
26
+ const updatedOn = new Date('2024-04-29T14:05:43.414Z');
27
27
 
28
28
  let organization_id = ""
29
29
  let storage = true
@@ -37,8 +37,18 @@ self.addEventListener("install", (e) => {
37
37
  self.skipWaiting();
38
38
  });
39
39
 
40
- self.addEventListener("activate", async (e) => {
41
- e.waitUntil(clients.claim());
40
+ // self.addEventListener("activate", async (e) => {
41
+ // e.waitUntil(clients.claim());
42
+ // });
43
+
44
+ self.addEventListener('activate', event => {
45
+ event.waitUntil(
46
+ clients.claim().then(() => {
47
+ return clients.matchAll({ type: 'window' }).then(clients => {
48
+ clients.forEach(client => client.navigate(client.url));
49
+ });
50
+ })
51
+ );
42
52
  });
43
53
 
44
54
  self.addEventListener("fetch", async (e) => {