@atlaskit/share 3.0.8 → 3.0.9

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,5 +1,11 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 3.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`da84c14aa89`](https://bitbucket.org/atlassian/atlassian-frontend/commits/da84c14aa89) - Custom footer display in stein fix. Connected analytics event fire fix
8
+
3
9
  ## 3.0.8
4
10
 
5
11
  ### Patch Changes
@@ -76,8 +76,10 @@ var allowEmails = function allowEmails(config) {
76
76
  exports.allowEmails = allowEmails;
77
77
 
78
78
  var resolveShareFooter = function resolveShareFooter(integrationMode, tabIndex, customFooter) {
79
- if (integrationMode === 'tabs' && tabIndex === 0 && customFooter) {
80
- return customFooter;
79
+ if (customFooter) {
80
+ if (integrationMode !== 'tabs' || tabIndex === 0) {
81
+ return customFooter;
82
+ }
81
83
  }
82
84
  };
83
85
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.0.8"
3
+ "version": "3.0.9"
4
4
  }
@@ -51,7 +51,9 @@ export const optionDataToUsers = optionDataArray => optionDataArray.map(optionDa
51
51
  });
52
52
  export const allowEmails = config => !(config && config.disableSharingToEmails);
53
53
  export const resolveShareFooter = (integrationMode, tabIndex, customFooter) => {
54
- if (integrationMode === 'tabs' && tabIndex === 0 && customFooter) {
55
- return customFooter;
54
+ if (customFooter) {
55
+ if (integrationMode !== 'tabs' || tabIndex === 0) {
56
+ return customFooter;
57
+ }
56
58
  }
57
59
  };
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.0.8"
3
+ "version": "3.0.9"
4
4
  }
@@ -55,7 +55,9 @@ export var allowEmails = function allowEmails(config) {
55
55
  return !(config && config.disableSharingToEmails);
56
56
  };
57
57
  export var resolveShareFooter = function resolveShareFooter(integrationMode, tabIndex, customFooter) {
58
- if (integrationMode === 'tabs' && tabIndex === 0 && customFooter) {
59
- return customFooter;
58
+ if (customFooter) {
59
+ if (integrationMode !== 'tabs' || tabIndex === 0) {
60
+ return customFooter;
61
+ }
60
62
  }
61
63
  };
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.0.8"
3
+ "version": "3.0.9"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"