progressive-share-button 1.0.2 → 1.0.3

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
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.3] - 2023-11-17
9
+
10
+ ## Added
11
+
12
+ - Added documentation for using the Progressive Share Button with the unpkg CDN.
13
+
8
14
  ## [1.0.2] - 2023-11-17
9
15
 
10
16
  ## Added
package/README.md CHANGED
@@ -66,12 +66,17 @@ customElements.define('my-share-button', ProgressiveShareButtonClass);
66
66
 
67
67
  ```
68
68
 
69
- ### CDN - not tested yet
69
+ ### CDN
70
70
 
71
- ~~Not Tested: You can also use the component directly from a CDN. The component is available on [unpkg](https://unpkg.com/progressive-share-button).~~
71
+ You can also use the component directly from a CDN. The component is available on [unpkg](https://unpkg.com/progressive-share-button). The following example shows how to use the component from unpkg. Note the use of `?module` at the end of the URL in the import statement.
72
72
 
73
73
  ```html
74
- <!-- script src="https://unpkg.com/progressive-share-button"></script --!>
74
+ <script type="module">
75
+ import { ProgressiveShareButton } from 'https://unpkg.com/progressive-share-button?module';
76
+ // Initialize the component
77
+ ProgressiveShareButton();
78
+ </script>
79
+ <progressive-share-button title="Hello World!" url="https://example.com" debug="true"></progressive-share-button>
75
80
  ```
76
81
 
77
82
  ## Typescript support
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: progressive-share-button
3
- * version: v1.0.2
3
+ * version: v1.0.3
4
4
  * description: A web componet that creates a OS-native share button.
5
5
  * author: John F. Morton <john@johnfmorton.com> (https://supergeekery.com)
6
6
  * repository: https://github.com/johnfmorton/progressive-share-button
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: progressive-share-button
3
- * version: v1.0.2
3
+ * version: v1.0.3
4
4
  * description: A web componet that creates a OS-native share button.
5
5
  * author: John F. Morton <john@johnfmorton.com> (https://supergeekery.com)
6
6
  * repository: https://github.com/johnfmorton/progressive-share-button
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "progressive-share-button",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A web componet that creates a OS-native share button.",
5
5
  "files": [
6
6
  "dist"