progressive-share-button 1.0.4 → 1.0.5

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.
@@ -141,10 +141,12 @@ const ProgressiveShareButton = () => {
141
141
  "ProgressiveShareButton support initialized. This browser does not have Web Share API support."
142
142
  );
143
143
  }
144
- customElements.define(
145
- "progressive-share-button",
146
- ProgressiveShareButtonClass
147
- );
144
+ if (!customElements.get("progressive-share-button")) {
145
+ customElements.define(
146
+ "progressive-share-button",
147
+ ProgressiveShareButtonClass
148
+ );
149
+ }
148
150
  return true;
149
151
  };
150
152
  const androidShareIcon = '<svg part="shareIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 117 117" class="icon"><title>Share icon</title><desc>Circle with smaller circles radiating out</desc><path d="m78,74.75c-4.9,0-9.3,2.13-12.36,5.49l-24.05-13.5c1.06-2.19,1.67-4.64,1.67-7.24s-.58-4.91-1.58-7.06l25.06-14.09c2.98,2.72,6.93,4.4,11.27,4.4,9.24,0,16.75-7.51,16.75-16.75s-7.51-16.75-16.75-16.75-16.75,7.51-16.75,16.75c0,2.89.73,5.61,2.03,7.98l-24.73,13.91c-3.05-3.16-7.32-5.14-12.04-5.14-9.24,0-16.75,7.51-16.75,16.75s7.51,16.75,16.75,16.75c4.66,0,8.87-1.91,11.91-4.99l24.22,13.6c-.88,2.04-1.38,4.28-1.38,6.64,0,9.24,7.51,16.75,16.75,16.75s16.75-7.51,16.75-16.75-7.51-16.75-16.75-16.75Zm0-60c6.2,0,11.25,5.05,11.25,11.25s-5.05,11.25-11.25,11.25-11.25-5.05-11.25-11.25,5.05-11.25,11.25-11.25Zm-51.5,56c-6.2,0-11.25-5.05-11.25-11.25s5.05-11.25,11.25-11.25,11.25,5.05,11.25,11.25-5.05,11.25-11.25,11.25Zm51.5,32c-6.2,0-11.25-5.05-11.25-11.25s5.05-11.25,11.25-11.25,11.25,5.05,11.25,11.25-5.05,11.25-11.25,11.25Z"/></svg>';
@@ -145,10 +145,12 @@
145
145
  "ProgressiveShareButton support initialized. This browser does not have Web Share API support."
146
146
  );
147
147
  }
148
- customElements.define(
149
- "progressive-share-button",
150
- ProgressiveShareButtonClass
151
- );
148
+ if (!customElements.get("progressive-share-button")) {
149
+ customElements.define(
150
+ "progressive-share-button",
151
+ ProgressiveShareButtonClass
152
+ );
153
+ }
152
154
  return true;
153
155
  };
154
156
  const androidShareIcon = '<svg part="shareIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 117 117" class="icon"><title>Share icon</title><desc>Circle with smaller circles radiating out</desc><path d="m78,74.75c-4.9,0-9.3,2.13-12.36,5.49l-24.05-13.5c1.06-2.19,1.67-4.64,1.67-7.24s-.58-4.91-1.58-7.06l25.06-14.09c2.98,2.72,6.93,4.4,11.27,4.4,9.24,0,16.75-7.51,16.75-16.75s-7.51-16.75-16.75-16.75-16.75,7.51-16.75,16.75c0,2.89.73,5.61,2.03,7.98l-24.73,13.91c-3.05-3.16-7.32-5.14-12.04-5.14-9.24,0-16.75,7.51-16.75,16.75s7.51,16.75,16.75,16.75c4.66,0,8.87-1.91,11.91-4.99l24.22,13.6c-.88,2.04-1.38,4.28-1.38,6.64,0,9.24,7.51,16.75,16.75,16.75s16.75-7.51,16.75-16.75-7.51-16.75-16.75-16.75Zm0-60c6.2,0,11.25,5.05,11.25,11.25s-5.05,11.25-11.25,11.25-11.25-5.05-11.25-11.25,5.05-11.25,11.25-11.25Zm-51.5,56c-6.2,0-11.25-5.05-11.25-11.25s5.05-11.25,11.25-11.25,11.25,5.05,11.25,11.25-5.05,11.25-11.25,11.25Zm51.5,32c-6.2,0-11.25-5.05-11.25-11.25s5.05-11.25,11.25-11.25,11.25,5.05,11.25,11.25-5.05,11.25-11.25,11.25Z"/></svg>';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "progressive-share-button",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "A web componet that creates a OS-native share button.",
5
5
  "files": [
6
6
  "dist"