@atlaskit/share 6.16.17 → 6.16.18
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 +6 -0
- package/afm-jira/tsconfig.json +1 -1
- package/dist/cjs/components/CopyLinkButton.js +5 -0
- package/dist/cjs/components/CopyLinkButtonNext.js +6 -3
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/CopyLinkButton.js +6 -0
- package/dist/es2019/components/CopyLinkButtonNext.js +6 -3
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/components/CopyLinkButton.js +6 -0
- package/dist/esm/components/CopyLinkButtonNext.js +6 -3
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/types/components/CopyLinkButton.d.ts +5 -0
- package/dist/types-ts4.5/components/CopyLinkButton.d.ts +5 -0
- package/package.json +10 -7
package/CHANGELOG.md
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -204,6 +204,11 @@ var CopyLinkButtonInner = exports.CopyLinkButtonInner = /*#__PURE__*/function (_
|
|
|
204
204
|
}
|
|
205
205
|
}]);
|
|
206
206
|
}(_react.default.Component);
|
|
207
|
+
/**
|
|
208
|
+
* @deprecated
|
|
209
|
+
* ⚠️ DO NOT USE — This package has been replaced by @atlassian/jira-share-dialog.
|
|
210
|
+
* It will be removed once the switch-over is complete.
|
|
211
|
+
*/
|
|
207
212
|
var CopyLinkButton = exports.CopyLinkButton = function CopyLinkButton(props) {
|
|
208
213
|
return (0, _platformFeatureFlags.fg)('share-compiled-migration') ? (0, _react2.jsx)(_CopyLinkButtonNext.default, props) : (0, _react2.jsx)(CopyLinkButtonInner, props);
|
|
209
214
|
};
|
|
@@ -152,6 +152,9 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
|
|
|
152
152
|
var _this$props2 = this.props,
|
|
153
153
|
copyTooltipText = _this$props2.copyTooltipText,
|
|
154
154
|
copiedToClipboardText = _this$props2.copiedToClipboardText;
|
|
155
|
+
var shouldUpdateTooltipCssConfluence = (0, _platformFeatureFlags.fg)('jfind-copy-link-modal-invite-tooltip');
|
|
156
|
+
var shouldUpdateTooltipCssJira = (0, _platformFeatureFlags.fg)('jfind-copy-link-modal-invite-tooltip-jira');
|
|
157
|
+
var shouldUpdateTooltipCss = shouldUpdateTooltipCssConfluence || shouldUpdateTooltipCssJira;
|
|
155
158
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isSafari &&
|
|
156
159
|
/*#__PURE__*/
|
|
157
160
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -166,7 +169,7 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
|
|
|
166
169
|
zIndex: Z_INDEX,
|
|
167
170
|
autoFocus: false,
|
|
168
171
|
content: function content() {
|
|
169
|
-
return
|
|
172
|
+
return shouldUpdateTooltipCss ? null : /*#__PURE__*/_react.default.createElement(_compiled2.InlineDialogContentWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
170
173
|
xcss: (0, _css.cx)(styles.messageContainer),
|
|
171
174
|
testId: "message-container",
|
|
172
175
|
"aria-hidden": true
|
|
@@ -182,9 +185,9 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
|
|
|
182
185
|
onClose: this.handleDismissCopiedMessage,
|
|
183
186
|
placement: "top-start",
|
|
184
187
|
trigger: function trigger(triggerProps) {
|
|
185
|
-
return copyTooltipText && shouldShowCopiedMessage &&
|
|
188
|
+
return copyTooltipText && shouldShowCopiedMessage && shouldUpdateTooltipCss ? /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
186
189
|
content: copyTooltipText,
|
|
187
|
-
position: "bottom
|
|
190
|
+
position: "bottom"
|
|
188
191
|
}, _this2.renderTriggerButton(triggerProps)) : _this2.renderTriggerButton(triggerProps);
|
|
189
192
|
},
|
|
190
193
|
shouldRenderToParent: (0, _platformFeatureFlags.fg)('enable-appropriate-reading-order-in-share-dialog')
|
|
@@ -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: "
|
|
16
|
+
packageVersion: "0.0.0-development"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -176,5 +176,11 @@ export class CopyLinkButtonInner extends React.Component {
|
|
|
176
176
|
}));
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @deprecated
|
|
182
|
+
* ⚠️ DO NOT USE — This package has been replaced by @atlassian/jira-share-dialog.
|
|
183
|
+
* It will be removed once the switch-over is complete.
|
|
184
|
+
*/
|
|
179
185
|
export const CopyLinkButton = props => fg('share-compiled-migration') ? jsx(CopyLinkButtonNext, props) : jsx(CopyLinkButtonInner, props);
|
|
180
186
|
export default CopyLinkButton;
|
|
@@ -125,6 +125,9 @@ export class CopyLinkButton extends React.Component {
|
|
|
125
125
|
copyTooltipText,
|
|
126
126
|
copiedToClipboardText
|
|
127
127
|
} = this.props;
|
|
128
|
+
const shouldUpdateTooltipCssConfluence = fg('jfind-copy-link-modal-invite-tooltip');
|
|
129
|
+
const shouldUpdateTooltipCssJira = fg('jfind-copy-link-modal-invite-tooltip-jira');
|
|
130
|
+
const shouldUpdateTooltipCss = shouldUpdateTooltipCssConfluence || shouldUpdateTooltipCssJira;
|
|
128
131
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isSafari &&
|
|
129
132
|
/*#__PURE__*/
|
|
130
133
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -138,7 +141,7 @@ export class CopyLinkButton extends React.Component {
|
|
|
138
141
|
}), /*#__PURE__*/React.createElement(Popup, {
|
|
139
142
|
zIndex: Z_INDEX,
|
|
140
143
|
autoFocus: false,
|
|
141
|
-
content: () =>
|
|
144
|
+
content: () => shouldUpdateTooltipCss ? null : /*#__PURE__*/React.createElement(InlineDialogContentWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
142
145
|
xcss: cx(styles.messageContainer),
|
|
143
146
|
testId: "message-container",
|
|
144
147
|
"aria-hidden": true
|
|
@@ -152,9 +155,9 @@ export class CopyLinkButton extends React.Component {
|
|
|
152
155
|
isOpen: shouldShowCopiedMessage,
|
|
153
156
|
onClose: this.handleDismissCopiedMessage,
|
|
154
157
|
placement: "top-start",
|
|
155
|
-
trigger: triggerProps => copyTooltipText && shouldShowCopiedMessage &&
|
|
158
|
+
trigger: triggerProps => copyTooltipText && shouldShowCopiedMessage && shouldUpdateTooltipCss ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
156
159
|
content: copyTooltipText,
|
|
157
|
-
position: "bottom
|
|
160
|
+
position: "bottom"
|
|
158
161
|
}, this.renderTriggerButton(triggerProps)) : this.renderTriggerButton(triggerProps),
|
|
159
162
|
shouldRenderToParent: fg('enable-appropriate-reading-order-in-share-dialog')
|
|
160
163
|
}));
|
|
@@ -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: "
|
|
4
|
+
packageVersion: "0.0.0-development",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -200,6 +200,12 @@ export var CopyLinkButtonInner = /*#__PURE__*/function (_React$Component) {
|
|
|
200
200
|
}
|
|
201
201
|
}]);
|
|
202
202
|
}(React.Component);
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @deprecated
|
|
206
|
+
* ⚠️ DO NOT USE — This package has been replaced by @atlassian/jira-share-dialog.
|
|
207
|
+
* It will be removed once the switch-over is complete.
|
|
208
|
+
*/
|
|
203
209
|
export var CopyLinkButton = function CopyLinkButton(props) {
|
|
204
210
|
return fg('share-compiled-migration') ? jsx(CopyLinkButtonNext, props) : jsx(CopyLinkButtonInner, props);
|
|
205
211
|
};
|
|
@@ -145,6 +145,9 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
145
145
|
var _this$props2 = this.props,
|
|
146
146
|
copyTooltipText = _this$props2.copyTooltipText,
|
|
147
147
|
copiedToClipboardText = _this$props2.copiedToClipboardText;
|
|
148
|
+
var shouldUpdateTooltipCssConfluence = fg('jfind-copy-link-modal-invite-tooltip');
|
|
149
|
+
var shouldUpdateTooltipCssJira = fg('jfind-copy-link-modal-invite-tooltip-jira');
|
|
150
|
+
var shouldUpdateTooltipCss = shouldUpdateTooltipCssConfluence || shouldUpdateTooltipCssJira;
|
|
148
151
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isSafari &&
|
|
149
152
|
/*#__PURE__*/
|
|
150
153
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -159,7 +162,7 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
159
162
|
zIndex: Z_INDEX,
|
|
160
163
|
autoFocus: false,
|
|
161
164
|
content: function content() {
|
|
162
|
-
return
|
|
165
|
+
return shouldUpdateTooltipCss ? null : /*#__PURE__*/React.createElement(InlineDialogContentWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
163
166
|
xcss: cx(styles.messageContainer),
|
|
164
167
|
testId: "message-container",
|
|
165
168
|
"aria-hidden": true
|
|
@@ -175,9 +178,9 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
175
178
|
onClose: this.handleDismissCopiedMessage,
|
|
176
179
|
placement: "top-start",
|
|
177
180
|
trigger: function trigger(triggerProps) {
|
|
178
|
-
return copyTooltipText && shouldShowCopiedMessage &&
|
|
181
|
+
return copyTooltipText && shouldShowCopiedMessage && shouldUpdateTooltipCss ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
179
182
|
content: copyTooltipText,
|
|
180
|
-
position: "bottom
|
|
183
|
+
position: "bottom"
|
|
181
184
|
}, _this2.renderTriggerButton(triggerProps)) : _this2.renderTriggerButton(triggerProps);
|
|
182
185
|
},
|
|
183
186
|
shouldRenderToParent: fg('enable-appropriate-reading-order-in-share-dialog')
|
|
@@ -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: "
|
|
9
|
+
packageVersion: "0.0.0-development"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -39,5 +39,10 @@ export declare class CopyLinkButtonInner extends React.Component<Props, State> {
|
|
|
39
39
|
renderTriggerButton: (triggerProps: TriggerProps) => jsx.JSX.Element;
|
|
40
40
|
render(): jsx.JSX.Element;
|
|
41
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated
|
|
44
|
+
* ⚠️ DO NOT USE — This package has been replaced by @atlassian/jira-share-dialog.
|
|
45
|
+
* It will be removed once the switch-over is complete.
|
|
46
|
+
*/
|
|
42
47
|
export declare const CopyLinkButton: (props: Props) => jsx.JSX.Element;
|
|
43
48
|
export default CopyLinkButton;
|
|
@@ -39,5 +39,10 @@ export declare class CopyLinkButtonInner extends React.Component<Props, State> {
|
|
|
39
39
|
renderTriggerButton: (triggerProps: TriggerProps) => jsx.JSX.Element;
|
|
40
40
|
render(): jsx.JSX.Element;
|
|
41
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated
|
|
44
|
+
* ⚠️ DO NOT USE — This package has been replaced by @atlassian/jira-share-dialog.
|
|
45
|
+
* It will be removed once the switch-over is complete.
|
|
46
|
+
*/
|
|
42
47
|
export declare const CopyLinkButton: (props: Props) => jsx.JSX.Element;
|
|
43
48
|
export default CopyLinkButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "6.16.
|
|
3
|
+
"version": "6.16.18",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/afm-i18n-platform-elements-share": "2.7.0",
|
|
41
41
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
42
42
|
"@atlaskit/button": "^23.6.0",
|
|
43
|
-
"@atlaskit/css": "^0.
|
|
43
|
+
"@atlaskit/css": "^0.16.0",
|
|
44
44
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
45
45
|
"@atlaskit/form": "^14.2.0",
|
|
46
46
|
"@atlaskit/heading": "^5.2.0",
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
"@atlaskit/popper": "^7.1.0",
|
|
52
52
|
"@atlaskit/popup": "^4.6.0",
|
|
53
53
|
"@atlaskit/portal": "^5.1.0",
|
|
54
|
-
"@atlaskit/primitives": "^16.
|
|
54
|
+
"@atlaskit/primitives": "^16.2.0",
|
|
55
55
|
"@atlaskit/smart-user-picker": "^8.4.0",
|
|
56
56
|
"@atlaskit/spinner": "^19.0.0",
|
|
57
57
|
"@atlaskit/tabs": "^18.2.0",
|
|
58
|
-
"@atlaskit/textarea": "^8.
|
|
58
|
+
"@atlaskit/textarea": "^8.1.0",
|
|
59
59
|
"@atlaskit/theme": "^21.0.0",
|
|
60
|
-
"@atlaskit/tokens": "^8.
|
|
61
|
-
"@atlaskit/tooltip": "^20.
|
|
60
|
+
"@atlaskit/tokens": "^8.1.0",
|
|
61
|
+
"@atlaskit/tooltip": "^20.10.0",
|
|
62
62
|
"@atlaskit/ufo": "^0.4.0",
|
|
63
|
-
"@atlaskit/user-picker": "^11.
|
|
63
|
+
"@atlaskit/user-picker": "^11.15.0",
|
|
64
64
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
65
65
|
"@babel/runtime": "^7.0.0",
|
|
66
66
|
"@emotion/react": "^11.7.1",
|
|
@@ -142,6 +142,9 @@
|
|
|
142
142
|
},
|
|
143
143
|
"jfind-copy-link-modal-invite-tooltip": {
|
|
144
144
|
"type": "boolean"
|
|
145
|
+
},
|
|
146
|
+
"jfind-copy-link-modal-invite-tooltip-jira": {
|
|
147
|
+
"type": "boolean"
|
|
145
148
|
}
|
|
146
149
|
},
|
|
147
150
|
"sideEffects": [
|