@cocreate/pwa 1.19.3 → 1.20.0

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,24 @@
1
+ # [1.20.0](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.19.4...v1.20.0) (2024-11-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * observer taget has been renamed to selector ([9f13f9d](https://github.com/CoCreate-app/CoCreate-pwa/commit/9f13f9d8e259c790a5b37ba9cc2d1f563cc14484))
7
+ * pretier.config.js and file formating ([77421cc](https://github.com/CoCreate-app/CoCreate-pwa/commit/77421cc3636d3ddb56afc764443c596aaf26e5d9))
8
+
9
+
10
+ ### Features
11
+
12
+ * add prettier.config.js and format files ([2cb51a6](https://github.com/CoCreate-app/CoCreate-pwa/commit/2cb51a69aed9023c80102bc586f67916aec06ce3))
13
+
14
+ ## [1.19.4](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.19.3...v1.19.4) (2024-06-12)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * bump cocreate dependencies ([0477a4c](https://github.com/CoCreate-app/CoCreate-pwa/commit/0477a4c08c12cc3516a1927b5556bf40268f7c85))
20
+ * svg icon class ([a1cc6a2](https://github.com/CoCreate-app/CoCreate-pwa/commit/a1cc6a2bbad2c243263b7b9a4f7a58d079a4b32c))
21
+
1
22
  ## [1.19.3](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.19.2...v1.19.3) (2024-04-29)
2
23
 
3
24
 
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.3",
3
+ "version": "1.20.0",
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.14.3"
62
+ "@cocreate/local-storage": "^1.15.0"
63
63
  }
64
64
  }
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ tabWidth: 4,
3
+ semi: true,
4
+ trailingComma: "none",
5
+ bracketSameLine: true,
6
+ useTabs: true,
7
+ overrides: [
8
+ {
9
+ files: ["*.json", "*.yml", "*.yaml"],
10
+ options: {
11
+ tabWidth: 2,
12
+ useTabs: false
13
+ },
14
+ }
15
+ ],
16
+ };
package/src/index.js CHANGED
@@ -134,7 +134,7 @@ async function persistData() {
134
134
  observer.init({
135
135
  name: 'initPwa',
136
136
  observe: ['addedNodes'],
137
- target: '[actions="install"]',
137
+ selector: '[actions="install"]',
138
138
  callback: (mutation) => {
139
139
  init()
140
140
  }
package/src/web-share.js CHANGED
@@ -63,7 +63,7 @@ function share(element) {
63
63
  Observer.init({
64
64
  name: 'webshare',
65
65
  observe: ['addedNodes'],
66
- target: '[share]',
66
+ selector: '[share]',
67
67
  callback: (mutation) => {
68
68
  init(mutation.target)
69
69
  }