@atlaskit/share 6.16.16 → 6.16.17

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
+ ## 6.16.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 6.16.16
4
10
 
5
11
  ### Patch Changes
@@ -130,7 +130,7 @@ var CopyLinkButtonInner = exports.CopyLinkButtonInner = /*#__PURE__*/function (_
130
130
  xcss: isExtendedShareDialogEnabled ? [boxWrapperStyle, copyIconContainerStyles] : boxWrapperStyle
131
131
  }, (0, _react2.jsx)(_linkLinkFilled.default, {
132
132
  LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)", " 0 0"),
133
- color: isExtendedShareDialogEnabled ? "var(--ds-text-subtle, #44546F)" : 'currentColor',
133
+ color: isExtendedShareDialogEnabled ? "var(--ds-text-subtle, #505258)" : 'currentColor',
134
134
  label: "",
135
135
  LEGACY_size: "medium"
136
136
  })),
@@ -140,7 +140,7 @@ var CopyLinkButtonInner = exports.CopyLinkButtonInner = /*#__PURE__*/function (_
140
140
  theme: isExtendedShareDialogEnabled ? function (current, themeProps) {
141
141
  return {
142
142
  buttonStyles: _objectSpread(_objectSpread({}, current(themeProps).buttonStyles), {}, {
143
- color: "var(--ds-text, #172B4D)",
143
+ color: "var(--ds-text, #292A2E)",
144
144
  font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
145
145
  alignItems: 'center'
146
146
  }),
@@ -117,7 +117,7 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
117
117
  xcss: (0, _css.cx)(isExtendedShareDialogEnabled ? styles.copyIconContainerStyles : styles.boxWrapper)
118
118
  }, /*#__PURE__*/_react.default.createElement(_linkLinkFilled.default, {
119
119
  LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)", " 0 0"),
120
- color: isExtendedShareDialogEnabled ? "var(--ds-text-subtle, #44546F)" : 'currentColor',
120
+ color: isExtendedShareDialogEnabled ? "var(--ds-text-subtle, #505258)" : 'currentColor',
121
121
  label: "",
122
122
  LEGACY_size: "medium"
123
123
  })),
@@ -127,7 +127,7 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
127
127
  theme: isExtendedShareDialogEnabled ? function (current, themeProps) {
128
128
  return {
129
129
  buttonStyles: _objectSpread(_objectSpread({}, current(themeProps).buttonStyles), {}, {
130
- color: "var(--ds-text, #172B4D)",
130
+ color: "var(--ds-text, #292A2E)",
131
131
  font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
132
132
  alignItems: 'center'
133
133
  }),
@@ -166,23 +166,23 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
166
166
  zIndex: Z_INDEX,
167
167
  autoFocus: false,
168
168
  content: function content() {
169
- return /*#__PURE__*/_react.default.createElement(_compiled2.InlineDialogContentWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
169
+ return (0, _platformFeatureFlags.fg)('jfind-copy-link-modal-invite-tooltip') ? null : /*#__PURE__*/_react.default.createElement(_compiled2.InlineDialogContentWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
170
170
  xcss: (0, _css.cx)(styles.messageContainer),
171
171
  testId: "message-container",
172
172
  "aria-hidden": true
173
- }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_statusSuccessCheckCircle.default, {
173
+ }, /*#__PURE__*/_react.default.createElement(_statusSuccessCheckCircle.default, {
174
174
  spacing: "spacious",
175
175
  label: "",
176
176
  color: "var(--ds-icon-success, ".concat(_colors.G300, ")")
177
177
  }), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
178
178
  xcss: (0, _css.cx)(styles.messageText)
179
- }, copiedToClipboardText))));
179
+ }, copiedToClipboardText)));
180
180
  },
181
181
  isOpen: shouldShowCopiedMessage,
182
182
  onClose: this.handleDismissCopiedMessage,
183
183
  placement: "top-start",
184
184
  trigger: function trigger(triggerProps) {
185
- return copyTooltipText ? /*#__PURE__*/_react.default.createElement(_tooltip.default, {
185
+ return copyTooltipText && shouldShowCopiedMessage && (0, _platformFeatureFlags.fg)('jfind-copy-link-modal-invite-tooltip') ? /*#__PURE__*/_react.default.createElement(_tooltip.default, {
186
186
  content: copyTooltipText,
187
187
  position: "bottom-start"
188
188
  }, _this2.renderTriggerButton(triggerProps)) : _this2.renderTriggerButton(triggerProps);
@@ -17,5 +17,5 @@
17
17
  ._otyr196n{margin-bottom:var(--ds-space-negative-075,-6px)}
18
18
  ._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
19
19
  ._otyrutpp{margin-bottom:var(--ds-space-150,9pt)}
20
- ._syaz1fxt{color:var(--ds-text,#172b4d)}
21
- ._syaz1n3s{color:var(--ds-text-subtle,#5e6c84)}
20
+ ._syaz1n3s{color:var(--ds-text-subtle,#5e6c84)}
21
+ ._syazi7uo{color:var(--ds-text,#292a2e)}
@@ -52,7 +52,7 @@ var styles = {
52
52
  integrationWrapperStyles: "_1e0c1txw _4cvr1h6o",
53
53
  integrationIconWrapperStyles: "_otyr196n _2hwx1b66",
54
54
  requiredFieldInfoStyles: "_11c81o8v _otyrpxbi _syaz1n3s",
55
- menuGroupContainerStyles: "_2rko12b0 _1moux0bf _195g10v4 _syaz1fxt _4cvr1y6m _1bsb1w81"
55
+ menuGroupContainerStyles: "_2rko12b0 _1moux0bf _195g10v4 _syazi7uo _4cvr1y6m _1bsb1w81"
56
56
  };
57
57
  var integrationTabText = function integrationTabText(integrationName) {
58
58
  return /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.shareInIntegrationButtonText, {
@@ -13,7 +13,7 @@ var buildAttributes = function buildAttributes() {
13
13
  var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
14
  return _objectSpread({
15
15
  packageName: "@atlaskit/share",
16
- packageVersion: "0.0.0-development"
16
+ packageVersion: "6.16.16"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -112,7 +112,7 @@ export class CopyLinkButtonInner extends React.Component {
112
112
  xcss: isExtendedShareDialogEnabled ? [boxWrapperStyle, copyIconContainerStyles] : boxWrapperStyle
113
113
  }, jsx(LinkFilledIcon, {
114
114
  LEGACY_margin: `0 ${"var(--ds-space-negative-025, -2px)"} 0 0`,
115
- color: isExtendedShareDialogEnabled ? "var(--ds-text-subtle, #44546F)" : 'currentColor',
115
+ color: isExtendedShareDialogEnabled ? "var(--ds-text-subtle, #505258)" : 'currentColor',
116
116
  label: "",
117
117
  LEGACY_size: "medium"
118
118
  })),
@@ -122,7 +122,7 @@ export class CopyLinkButtonInner extends React.Component {
122
122
  theme: isExtendedShareDialogEnabled ? (current, themeProps) => ({
123
123
  buttonStyles: {
124
124
  ...current(themeProps).buttonStyles,
125
- color: "var(--ds-text, #172B4D)",
125
+ color: "var(--ds-text, #292A2E)",
126
126
  font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
127
127
  alignItems: 'center'
128
128
  },
@@ -95,7 +95,7 @@ export class CopyLinkButton extends React.Component {
95
95
  xcss: cx(isExtendedShareDialogEnabled ? styles.copyIconContainerStyles : styles.boxWrapper)
96
96
  }, /*#__PURE__*/React.createElement(LinkFilledIcon, {
97
97
  LEGACY_margin: `0 ${"var(--ds-space-negative-025, -2px)"} 0 0`,
98
- color: isExtendedShareDialogEnabled ? "var(--ds-text-subtle, #44546F)" : 'currentColor',
98
+ color: isExtendedShareDialogEnabled ? "var(--ds-text-subtle, #505258)" : 'currentColor',
99
99
  label: "",
100
100
  LEGACY_size: "medium"
101
101
  })),
@@ -105,7 +105,7 @@ export class CopyLinkButton extends React.Component {
105
105
  theme: isExtendedShareDialogEnabled ? (current, themeProps) => ({
106
106
  buttonStyles: {
107
107
  ...current(themeProps).buttonStyles,
108
- color: "var(--ds-text, #172B4D)",
108
+ color: "var(--ds-text, #292A2E)",
109
109
  font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
110
110
  alignItems: 'center'
111
111
  },
@@ -138,21 +138,21 @@ export class CopyLinkButton extends React.Component {
138
138
  }), /*#__PURE__*/React.createElement(Popup, {
139
139
  zIndex: Z_INDEX,
140
140
  autoFocus: false,
141
- content: () => /*#__PURE__*/React.createElement(InlineDialogContentWrapper, null, /*#__PURE__*/React.createElement(Box, {
141
+ content: () => fg('jfind-copy-link-modal-invite-tooltip') ? null : /*#__PURE__*/React.createElement(InlineDialogContentWrapper, null, /*#__PURE__*/React.createElement(Box, {
142
142
  xcss: cx(styles.messageContainer),
143
143
  testId: "message-container",
144
144
  "aria-hidden": true
145
- }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CheckCircleIcon, {
145
+ }, /*#__PURE__*/React.createElement(CheckCircleIcon, {
146
146
  spacing: "spacious",
147
147
  label: "",
148
148
  color: `var(--ds-icon-success, ${G300})`
149
149
  }), /*#__PURE__*/React.createElement(Box, {
150
150
  xcss: cx(styles.messageText)
151
- }, copiedToClipboardText)))),
151
+ }, copiedToClipboardText))),
152
152
  isOpen: shouldShowCopiedMessage,
153
153
  onClose: this.handleDismissCopiedMessage,
154
154
  placement: "top-start",
155
- trigger: triggerProps => copyTooltipText ? /*#__PURE__*/React.createElement(Tooltip, {
155
+ trigger: triggerProps => copyTooltipText && shouldShowCopiedMessage && fg('jfind-copy-link-modal-invite-tooltip') ? /*#__PURE__*/React.createElement(Tooltip, {
156
156
  content: copyTooltipText,
157
157
  position: "bottom-start"
158
158
  }, this.renderTriggerButton(triggerProps)) : this.renderTriggerButton(triggerProps),
@@ -17,5 +17,5 @@
17
17
  ._otyr196n{margin-bottom:var(--ds-space-negative-075,-6px)}
18
18
  ._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
19
19
  ._otyrutpp{margin-bottom:var(--ds-space-150,9pt)}
20
- ._syaz1fxt{color:var(--ds-text,#172b4d)}
21
- ._syaz1n3s{color:var(--ds-text-subtle,#5e6c84)}
20
+ ._syaz1n3s{color:var(--ds-text-subtle,#5e6c84)}
21
+ ._syazi7uo{color:var(--ds-text,#292a2e)}
@@ -34,7 +34,7 @@ const styles = {
34
34
  integrationWrapperStyles: "_1e0c1txw _4cvr1h6o",
35
35
  integrationIconWrapperStyles: "_otyr196n _2hwx1b66",
36
36
  requiredFieldInfoStyles: "_11c81o8v _otyrpxbi _syaz1n3s",
37
- menuGroupContainerStyles: "_2rko12b0 _1moux0bf _195g10v4 _syaz1fxt _4cvr1y6m _1bsb1w81"
37
+ menuGroupContainerStyles: "_2rko12b0 _1moux0bf _195g10v4 _syazi7uo _4cvr1y6m _1bsb1w81"
38
38
  };
39
39
  const integrationTabText = integrationName => /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.shareInIntegrationButtonText, {
40
40
  values: {
@@ -1,7 +1,7 @@
1
1
  import { isEmail, isExternalUser, isGroup, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "0.0.0-development",
4
+ packageVersion: "6.16.16",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -126,7 +126,7 @@ export var CopyLinkButtonInner = /*#__PURE__*/function (_React$Component) {
126
126
  xcss: isExtendedShareDialogEnabled ? [boxWrapperStyle, copyIconContainerStyles] : boxWrapperStyle
127
127
  }, jsx(LinkFilledIcon, {
128
128
  LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)", " 0 0"),
129
- color: isExtendedShareDialogEnabled ? "var(--ds-text-subtle, #44546F)" : 'currentColor',
129
+ color: isExtendedShareDialogEnabled ? "var(--ds-text-subtle, #505258)" : 'currentColor',
130
130
  label: "",
131
131
  LEGACY_size: "medium"
132
132
  })),
@@ -136,7 +136,7 @@ export var CopyLinkButtonInner = /*#__PURE__*/function (_React$Component) {
136
136
  theme: isExtendedShareDialogEnabled ? function (current, themeProps) {
137
137
  return {
138
138
  buttonStyles: _objectSpread(_objectSpread({}, current(themeProps).buttonStyles), {}, {
139
- color: "var(--ds-text, #172B4D)",
139
+ color: "var(--ds-text, #292A2E)",
140
140
  font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
141
141
  alignItems: 'center'
142
142
  }),
@@ -110,7 +110,7 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
110
110
  xcss: cx(isExtendedShareDialogEnabled ? styles.copyIconContainerStyles : styles.boxWrapper)
111
111
  }, /*#__PURE__*/React.createElement(LinkFilledIcon, {
112
112
  LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)", " 0 0"),
113
- color: isExtendedShareDialogEnabled ? "var(--ds-text-subtle, #44546F)" : 'currentColor',
113
+ color: isExtendedShareDialogEnabled ? "var(--ds-text-subtle, #505258)" : 'currentColor',
114
114
  label: "",
115
115
  LEGACY_size: "medium"
116
116
  })),
@@ -120,7 +120,7 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
120
120
  theme: isExtendedShareDialogEnabled ? function (current, themeProps) {
121
121
  return {
122
122
  buttonStyles: _objectSpread(_objectSpread({}, current(themeProps).buttonStyles), {}, {
123
- color: "var(--ds-text, #172B4D)",
123
+ color: "var(--ds-text, #292A2E)",
124
124
  font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
125
125
  alignItems: 'center'
126
126
  }),
@@ -159,23 +159,23 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
159
159
  zIndex: Z_INDEX,
160
160
  autoFocus: false,
161
161
  content: function content() {
162
- return /*#__PURE__*/React.createElement(InlineDialogContentWrapper, null, /*#__PURE__*/React.createElement(Box, {
162
+ return fg('jfind-copy-link-modal-invite-tooltip') ? null : /*#__PURE__*/React.createElement(InlineDialogContentWrapper, null, /*#__PURE__*/React.createElement(Box, {
163
163
  xcss: cx(styles.messageContainer),
164
164
  testId: "message-container",
165
165
  "aria-hidden": true
166
- }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CheckCircleIcon, {
166
+ }, /*#__PURE__*/React.createElement(CheckCircleIcon, {
167
167
  spacing: "spacious",
168
168
  label: "",
169
169
  color: "var(--ds-icon-success, ".concat(G300, ")")
170
170
  }), /*#__PURE__*/React.createElement(Box, {
171
171
  xcss: cx(styles.messageText)
172
- }, copiedToClipboardText))));
172
+ }, copiedToClipboardText)));
173
173
  },
174
174
  isOpen: shouldShowCopiedMessage,
175
175
  onClose: this.handleDismissCopiedMessage,
176
176
  placement: "top-start",
177
177
  trigger: function trigger(triggerProps) {
178
- return copyTooltipText ? /*#__PURE__*/React.createElement(Tooltip, {
178
+ return copyTooltipText && shouldShowCopiedMessage && fg('jfind-copy-link-modal-invite-tooltip') ? /*#__PURE__*/React.createElement(Tooltip, {
179
179
  content: copyTooltipText,
180
180
  position: "bottom-start"
181
181
  }, _this2.renderTriggerButton(triggerProps)) : _this2.renderTriggerButton(triggerProps);
@@ -17,5 +17,5 @@
17
17
  ._otyr196n{margin-bottom:var(--ds-space-negative-075,-6px)}
18
18
  ._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
19
19
  ._otyrutpp{margin-bottom:var(--ds-space-150,9pt)}
20
- ._syaz1fxt{color:var(--ds-text,#172b4d)}
21
- ._syaz1n3s{color:var(--ds-text-subtle,#5e6c84)}
20
+ ._syaz1n3s{color:var(--ds-text-subtle,#5e6c84)}
21
+ ._syazi7uo{color:var(--ds-text,#292a2e)}
@@ -43,7 +43,7 @@ var styles = {
43
43
  integrationWrapperStyles: "_1e0c1txw _4cvr1h6o",
44
44
  integrationIconWrapperStyles: "_otyr196n _2hwx1b66",
45
45
  requiredFieldInfoStyles: "_11c81o8v _otyrpxbi _syaz1n3s",
46
- menuGroupContainerStyles: "_2rko12b0 _1moux0bf _195g10v4 _syaz1fxt _4cvr1y6m _1bsb1w81"
46
+ menuGroupContainerStyles: "_2rko12b0 _1moux0bf _195g10v4 _syazi7uo _4cvr1y6m _1bsb1w81"
47
47
  };
48
48
  var integrationTabText = function integrationTabText(integrationName) {
49
49
  return /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.shareInIntegrationButtonText, {
@@ -6,7 +6,7 @@ var buildAttributes = function buildAttributes() {
6
6
  var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7
7
  return _objectSpread({
8
8
  packageName: "@atlaskit/share",
9
- packageVersion: "0.0.0-development"
9
+ packageVersion: "6.16.16"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "6.16.16",
3
+ "version": "6.16.17",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/dropdown-menu": "^16.3.0",
45
45
  "@atlaskit/form": "^14.2.0",
46
46
  "@atlaskit/heading": "^5.2.0",
47
- "@atlaskit/icon": "^28.5.0",
47
+ "@atlaskit/icon": "^29.0.0",
48
48
  "@atlaskit/link": "^3.2.0",
49
49
  "@atlaskit/menu": "^8.4.0",
50
50
  "@atlaskit/platform-feature-flags": "^1.1.0",
@@ -139,6 +139,9 @@
139
139
  },
140
140
  "jira-warepil-track-sharing-to-email-disabled": {
141
141
  "type": "boolean"
142
+ },
143
+ "jfind-copy-link-modal-invite-tooltip": {
144
+ "type": "boolean"
142
145
  }
143
146
  },
144
147
  "sideEffects": [