Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 55ee594

Browse files
🔖 Tag v3.0.6
1 parent 4e2a417 commit 55ee594

29 files changed

+24778
-179
lines changed

.storybook/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ a[class^="share-network-"] {
2323
align-items: center;
2424
cursor: pointer;
2525
margin: 0 10px 10px 0;
26+
text-decoration: none;
2627
}
2728

2829
a[class^="share-network-"] .fah {

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<a name="3.0.6"></a>
2+
# [3.0.6](https://github.com/nicolasbeauvais/vue-social-sharing/compare/3.0.5...3.0.6) (2021-03-18)
3+
- Add share to Messenger
4+
15
<a name="3.0.5"></a>
26
# [3.0.5](https://github.com/nicolasbeauvais/vue-social-sharing/compare/3.0.4...3.0.5) (2021-02-15)
37
- Change SocialSharing nodes href attributes to `javascript:void(0)` to support Vue-router history

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1 align="center">Vue Social Sharing</h1>
22
<h4 align="center">A renderless components for sharing links on major social networks</h4>
3-
<h5 align="center">Less than 2.5kb gzipped</h5>
3+
<p align="center">Less than 2.5kb gzipped</p>
44

55
<p align="center">
66
<img width="580" src="https://user-images.githubusercontent.com/2951704/83863753-11f2af80-a724-11ea-9202-98b40cdbebe2.png">

dist/vue-social-sharing.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/iframe.html

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,41 @@
44
display: none;
55
}
66

7+
.sb-show-main.sb-main-centered {
8+
margin: 0;
9+
display: flex;
10+
align-items: center;
11+
min-height: 100vh;
12+
}
13+
14+
.sb-show-main.sb-main-centered #root {
15+
box-sizing: border-box;
16+
margin: auto;
17+
padding: 1rem;
18+
max-height: 100%; /* Hack for centering correctly in IE11 */
19+
}
20+
21+
/* Vertical centering fix for IE11 */
22+
@media screen and (-ms-high-contrast: none), (-ms-high-contrast: active) {
23+
.sb-show-main.sb-main-centered:after {
24+
content: '';
25+
min-height: inherit;
26+
font-size: 0;
27+
}
28+
}
29+
30+
.sb-show-main.sb-main-fullscreen {
31+
margin: 0;
32+
padding: 0;
33+
display: block;
34+
}
35+
36+
.sb-show-main.sb-main-padded {
37+
margin: 0;
38+
padding: 1rem;
39+
display: block;
40+
}
41+
742
.sb-wrapper {
843
position: fixed;
944
top: 0;
@@ -68,7 +103,31 @@
68103
} catch (e) {
69104
// eslint-disable-next-line no-console
70105
console.warn('unable to connect to top frame for connecting dev tools');
71-
}</script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" integrity="sha256-h20CPZ0QyXlBuAw7A+KluUYx/3pK+c7lYEpqLTlxjYQ=" crossorigin="anonymous"><style>#root[hidden],
106+
}
107+
108+
window.onerror = function onerror(message, source, line, column, err) {
109+
if (window.CONFIG_TYPE !== 'DEVELOPMENT') return;
110+
// eslint-disable-next-line no-var, vars-on-top
111+
var xhr = new window.XMLHttpRequest();
112+
xhr.open('POST', '/runtime-error');
113+
xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
114+
xhr.send(
115+
JSON.stringify({
116+
/* eslint-disable object-shorthand */
117+
message: message,
118+
source: source,
119+
line: line,
120+
column: column,
121+
error: err && { message: err.message, name: err.name, stack: err.stack },
122+
origin: 'preview',
123+
/* eslint-enable object-shorthand */
124+
})
125+
);
126+
};</script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" integrity="sha256-h20CPZ0QyXlBuAw7A+KluUYx/3pK+c7lYEpqLTlxjYQ=" crossorigin="anonymous"><style>#root[hidden],
72127
#docs-root[hidden] {
73128
display: none !important;
74-
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.5d2b1b12d3ed5679972c.bundle.js"></script><script src="vendors~main.5d2b1b12d3ed5679972c.bundle.js"></script><script src="main.5d2b1b12d3ed5679972c.bundle.js"></script></body></html>
129+
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script>window['LOGLEVEL'] = "info";
130+
131+
132+
133+
window['FRAMEWORK_OPTIONS'] = {};</script><script src="runtime~main.5c949075a5b592b23b75.bundle.js"></script><script src="vendors~main.5c949075a5b592b23b75.bundle.js"></script><script src="main.5c949075a5b592b23b75.bundle.js"></script></body></html>

docs/index.html

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
width: 100%;
55
margin: 0;
66
padding: 0;
7+
}
8+
9+
* {
10+
box-sizing: border-box;
711
}</style><script>/* globals window */
812
/* eslint-disable no-underscore-dangle */
913
try {
@@ -13,7 +17,39 @@
1317
} catch (e) {
1418
// eslint-disable-next-line no-console
1519
console.warn('unable to connect to top frame for connecting dev tools');
16-
}</script><style>#root[hidden],
20+
}
21+
22+
window.onerror = function onerror(message, source, line, column, err) {
23+
if (window.CONFIG_TYPE !== 'DEVELOPMENT') return;
24+
// eslint-disable-next-line no-var, vars-on-top
25+
var xhr = new window.XMLHttpRequest();
26+
xhr.open('POST', '/runtime-error');
27+
xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
28+
xhr.send(
29+
JSON.stringify({
30+
/* eslint-disable object-shorthand */
31+
message: message,
32+
source: source,
33+
line: line,
34+
column: column,
35+
error: err && { message: err.message, name: err.name, stack: err.stack },
36+
origin: 'manager',
37+
/* eslint-enable object-shorthand */
38+
})
39+
);
40+
};</script><style>#root[hidden],
1741
#docs-root[hidden] {
1842
display: none !important;
19-
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['DOCS_MODE'] = false;</script><script src="runtime~main.a70cae47b0d915ec6f24.bundle.js"></script><script src="vendors~main.8890fa61ed7ba4819dd2.bundle.js"></script><script src="main.74304a197dc4ecfc9ab7.bundle.js"></script></body></html>
43+
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['CONFIG_TYPE'] = "PRODUCTION";
44+
45+
46+
47+
window['LOGLEVEL'] = "info";
48+
49+
50+
51+
52+
53+
54+
55+
window['DOCS_MODE'] = false;</script><script src="runtime~main.870e8ee0658e83d05c6b.bundle.js"></script><script src="vendors~main.9891fe682c4a90327d6e.bundle.js"></script><script src="main.fb4a2747400d21ab4cc2.bundle.js"></script></body></html>

docs/main.5c949075a5b592b23b75.bundle.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.5c949075a5b592b23b75.bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.5d2b1b12d3ed5679972c.bundle.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/main.5d2b1b12d3ed5679972c.bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)