@atlaskit/share 3.5.8 → 3.5.10
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 +12 -0
- package/dist/cjs/components/CopyLinkButton.js +1 -3
- package/dist/cjs/components/IntegrationButton.js +1 -3
- package/dist/cjs/components/ShareForm.js +1 -3
- package/dist/cjs/components/SplitButton.js +1 -3
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/CopyLinkButton.js +1 -2
- package/dist/es2019/components/IntegrationButton.js +1 -2
- package/dist/es2019/components/ShareForm.js +1 -2
- package/dist/es2019/components/SplitButton.js +1 -2
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/CopyLinkButton.js +1 -2
- package/dist/esm/components/IntegrationButton.js +1 -2
- package/dist/esm/components/ShareForm.js +1 -2
- package/dist/esm/components/SplitButton.js +1 -2
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 3.5.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
|
|
8
|
+
|
|
9
|
+
## 3.5.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 3.5.8
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -39,8 +39,6 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
39
39
|
|
|
40
40
|
var _constants = require("@atlaskit/theme/constants");
|
|
41
41
|
|
|
42
|
-
var _tokens = require("@atlaskit/tokens");
|
|
43
|
-
|
|
44
42
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
45
43
|
|
|
46
44
|
var _styled = require("./ShareFormWrapper/styled");
|
|
@@ -182,7 +180,7 @@ var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
182
180
|
"data-testid": "message-container"
|
|
183
181
|
}, (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_checkCircle.default, {
|
|
184
182
|
label: "",
|
|
185
|
-
primaryColor: (
|
|
183
|
+
primaryColor: "var(--ds-icon-success, ".concat(_colors.G300, ")")
|
|
186
184
|
}), (0, _react2.jsx)("div", {
|
|
187
185
|
css: messageTextStyle
|
|
188
186
|
}, copiedToClipboardText))));
|
|
@@ -19,8 +19,6 @@ var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom
|
|
|
19
19
|
|
|
20
20
|
var _colors = require("@atlaskit/theme/colors");
|
|
21
21
|
|
|
22
|
-
var _tokens = require("@atlaskit/tokens");
|
|
23
|
-
|
|
24
22
|
var _excluded = ["text", "textColor", "IntegrationIcon"];
|
|
25
23
|
|
|
26
24
|
var _templateObject, _templateObject2;
|
|
@@ -36,7 +34,7 @@ var IntegrationButton = function IntegrationButton(props) {
|
|
|
36
34
|
return (0, _react2.jsx)(_customThemeButton.default, restProps, (0, _react2.jsx)("span", {
|
|
37
35
|
css: integrationButtonCopyWrapperStyle,
|
|
38
36
|
style: {
|
|
39
|
-
color: textColor || (
|
|
37
|
+
color: textColor || "var(--ds-text, ".concat(_colors.N500, ")")
|
|
40
38
|
}
|
|
41
39
|
}, (0, _react2.jsx)("span", {
|
|
42
40
|
css: integrationIconWrapperStyle
|
|
@@ -47,8 +47,6 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
47
47
|
|
|
48
48
|
var _constants = require("@atlaskit/theme/constants");
|
|
49
49
|
|
|
50
|
-
var _tokens = require("@atlaskit/tokens");
|
|
51
|
-
|
|
52
50
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
53
51
|
|
|
54
52
|
var _i18n = require("../i18n");
|
|
@@ -209,7 +207,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
209
207
|
position: "top"
|
|
210
208
|
}, (0, _react2.jsx)(_error.default, {
|
|
211
209
|
label: formatMessage(_i18n.messages.shareFailureIconLabel),
|
|
212
|
-
primaryColor: (
|
|
210
|
+
primaryColor: "var(--ds-icon-danger, ".concat(_colors.R400, ")")
|
|
213
211
|
}))), (0, _react2.jsx)(_customThemeButton.default, {
|
|
214
212
|
appearance: buttonAppearance,
|
|
215
213
|
type: "submit",
|
|
@@ -31,8 +31,6 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
31
31
|
|
|
32
32
|
var _constants = require("@atlaskit/theme/constants");
|
|
33
33
|
|
|
34
|
-
var _tokens = require("@atlaskit/tokens");
|
|
35
|
-
|
|
36
34
|
var _i18n = require("../i18n");
|
|
37
35
|
|
|
38
36
|
var _analytics = require("./analytics/analytics");
|
|
@@ -106,7 +104,7 @@ var SplitButtonDropdown = function SplitButtonDropdown(props) {
|
|
|
106
104
|
}, (0, _react2.jsx)("span", {
|
|
107
105
|
css: dropDownIntegrationButtonWrapperStyles
|
|
108
106
|
}, (0, _react2.jsx)(_IntegrationButton.default, {
|
|
109
|
-
textColor: (
|
|
107
|
+
textColor: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
110
108
|
appearance: "subtle",
|
|
111
109
|
onClick: function onClick() {
|
|
112
110
|
return onIntegrationButtonClick(integration);
|
|
@@ -19,7 +19,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
19
19
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
20
20
|
return _objectSpread({
|
|
21
21
|
packageName: "@atlaskit/share",
|
|
22
|
-
packageVersion: "3.5.
|
|
22
|
+
packageVersion: "3.5.10"
|
|
23
23
|
}, attributes);
|
|
24
24
|
};
|
|
25
25
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -9,7 +9,6 @@ import LinkFilledIcon from '@atlaskit/icon/glyph/link-filled';
|
|
|
9
9
|
import Popup from '@atlaskit/popup';
|
|
10
10
|
import { G300 } from '@atlaskit/theme/colors';
|
|
11
11
|
import { layers } from '@atlaskit/theme/constants';
|
|
12
|
-
import { token } from '@atlaskit/tokens';
|
|
13
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
13
|
import { InlineDialogContentWrapper } from './ShareFormWrapper/styled';
|
|
15
14
|
import Button from './styles';
|
|
@@ -127,7 +126,7 @@ export class CopyLinkButton extends React.Component {
|
|
|
127
126
|
"data-testid": "message-container"
|
|
128
127
|
}, jsx(React.Fragment, null, jsx(CheckCircleIcon, {
|
|
129
128
|
label: "",
|
|
130
|
-
primaryColor:
|
|
129
|
+
primaryColor: `var(--ds-icon-success, ${G300})`
|
|
131
130
|
}), jsx("div", {
|
|
132
131
|
css: messageTextStyle
|
|
133
132
|
}, copiedToClipboardText)))),
|
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
5
|
import { N500 } from '@atlaskit/theme/colors';
|
|
6
|
-
import { token } from '@atlaskit/tokens';
|
|
7
6
|
const integrationButtonCopyWrapperStyle = css`
|
|
8
7
|
display: flex;
|
|
9
8
|
justify-content: left;
|
|
@@ -22,7 +21,7 @@ const IntegrationButton = props => {
|
|
|
22
21
|
return jsx(Button, restProps, jsx("span", {
|
|
23
22
|
css: integrationButtonCopyWrapperStyle,
|
|
24
23
|
style: {
|
|
25
|
-
color: textColor ||
|
|
24
|
+
color: textColor || `var(--ds-text, ${N500})`
|
|
26
25
|
}
|
|
27
26
|
}, jsx("span", {
|
|
28
27
|
css: integrationIconWrapperStyle
|
|
@@ -12,7 +12,6 @@ import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
|
12
12
|
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
13
13
|
import { R400 } from '@atlaskit/theme/colors';
|
|
14
14
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
15
|
-
import { token } from '@atlaskit/tokens';
|
|
16
15
|
import Tooltip from '@atlaskit/tooltip';
|
|
17
16
|
import { messages } from '../i18n';
|
|
18
17
|
import { TabType } from '../types';
|
|
@@ -172,7 +171,7 @@ class InternalForm extends React.PureComponent {
|
|
|
172
171
|
position: "top"
|
|
173
172
|
}, jsx(ErrorIcon, {
|
|
174
173
|
label: formatMessage(messages.shareFailureIconLabel),
|
|
175
|
-
primaryColor:
|
|
174
|
+
primaryColor: `var(--ds-icon-danger, ${R400})`
|
|
176
175
|
}))), jsx(Button, {
|
|
177
176
|
appearance: buttonAppearance,
|
|
178
177
|
type: "submit",
|
|
@@ -9,7 +9,6 @@ import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdow
|
|
|
9
9
|
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
10
10
|
import { N800 } from '@atlaskit/theme/colors';
|
|
11
11
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
12
|
-
import { token } from '@atlaskit/tokens';
|
|
13
12
|
import { messages } from '../i18n';
|
|
14
13
|
import { shareIntegrationButtonEvent } from './analytics/analytics';
|
|
15
14
|
import IntegrationButton from './IntegrationButton';
|
|
@@ -90,7 +89,7 @@ const SplitButtonDropdown = props => {
|
|
|
90
89
|
}, jsx("span", {
|
|
91
90
|
css: dropDownIntegrationButtonWrapperStyles
|
|
92
91
|
}, jsx(IntegrationButton, {
|
|
93
|
-
textColor:
|
|
92
|
+
textColor: `var(--ds-text, ${N800})`,
|
|
94
93
|
appearance: "subtle",
|
|
95
94
|
onClick: () => onIntegrationButtonClick(integration),
|
|
96
95
|
shouldFitContainer: true,
|
package/dist/es2019/version.json
CHANGED
|
@@ -22,7 +22,6 @@ import LinkFilledIcon from '@atlaskit/icon/glyph/link-filled';
|
|
|
22
22
|
import Popup from '@atlaskit/popup';
|
|
23
23
|
import { G300 } from '@atlaskit/theme/colors';
|
|
24
24
|
import { layers } from '@atlaskit/theme/constants';
|
|
25
|
-
import { token } from '@atlaskit/tokens';
|
|
26
25
|
import Tooltip from '@atlaskit/tooltip';
|
|
27
26
|
import { InlineDialogContentWrapper } from './ShareFormWrapper/styled';
|
|
28
27
|
import Button from './styles';
|
|
@@ -155,7 +154,7 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
155
154
|
"data-testid": "message-container"
|
|
156
155
|
}, jsx(React.Fragment, null, jsx(CheckCircleIcon, {
|
|
157
156
|
label: "",
|
|
158
|
-
primaryColor:
|
|
157
|
+
primaryColor: "var(--ds-icon-success, ".concat(G300, ")")
|
|
159
158
|
}), jsx("div", {
|
|
160
159
|
css: messageTextStyle
|
|
161
160
|
}, copiedToClipboardText))));
|
|
@@ -9,7 +9,6 @@ import React from 'react';
|
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
11
11
|
import { N500 } from '@atlaskit/theme/colors';
|
|
12
|
-
import { token } from '@atlaskit/tokens';
|
|
13
12
|
var integrationButtonCopyWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: left;\n"])));
|
|
14
13
|
var integrationIconWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 1px 8px 0 0;\n"])));
|
|
15
14
|
|
|
@@ -22,7 +21,7 @@ var IntegrationButton = function IntegrationButton(props) {
|
|
|
22
21
|
return jsx(Button, restProps, jsx("span", {
|
|
23
22
|
css: integrationButtonCopyWrapperStyle,
|
|
24
23
|
style: {
|
|
25
|
-
color: textColor ||
|
|
24
|
+
color: textColor || "var(--ds-text, ".concat(N500, ")")
|
|
26
25
|
}
|
|
27
26
|
}, jsx("span", {
|
|
28
27
|
css: integrationIconWrapperStyle
|
|
@@ -29,7 +29,6 @@ import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
|
29
29
|
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
30
30
|
import { R400 } from '@atlaskit/theme/colors';
|
|
31
31
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
32
|
-
import { token } from '@atlaskit/tokens';
|
|
33
32
|
import Tooltip from '@atlaskit/tooltip';
|
|
34
33
|
import { messages } from '../i18n';
|
|
35
34
|
import { TabType } from '../types';
|
|
@@ -168,7 +167,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
168
167
|
position: "top"
|
|
169
168
|
}, jsx(ErrorIcon, {
|
|
170
169
|
label: formatMessage(messages.shareFailureIconLabel),
|
|
171
|
-
primaryColor:
|
|
170
|
+
primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
|
|
172
171
|
}))), jsx(Button, {
|
|
173
172
|
appearance: buttonAppearance,
|
|
174
173
|
type: "submit",
|
|
@@ -14,7 +14,6 @@ import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdow
|
|
|
14
14
|
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
15
15
|
import { N800 } from '@atlaskit/theme/colors';
|
|
16
16
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
17
|
-
import { token } from '@atlaskit/tokens';
|
|
18
17
|
import { messages } from '../i18n';
|
|
19
18
|
import { shareIntegrationButtonEvent } from './analytics/analytics';
|
|
20
19
|
import IntegrationButton from './IntegrationButton';
|
|
@@ -78,7 +77,7 @@ var SplitButtonDropdown = function SplitButtonDropdown(props) {
|
|
|
78
77
|
}, jsx("span", {
|
|
79
78
|
css: dropDownIntegrationButtonWrapperStyles
|
|
80
79
|
}, jsx(IntegrationButton, {
|
|
81
|
-
textColor:
|
|
80
|
+
textColor: "var(--ds-text, ".concat(N800, ")"),
|
|
82
81
|
appearance: "subtle",
|
|
83
82
|
onClick: function onClick() {
|
|
84
83
|
return onIntegrationButtonClick(integration);
|
|
@@ -10,7 +10,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
10
10
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
11
11
|
return _objectSpread({
|
|
12
12
|
packageName: "@atlaskit/share",
|
|
13
|
-
packageVersion: "3.5.
|
|
13
|
+
packageVersion: "3.5.10"
|
|
14
14
|
}, attributes);
|
|
15
15
|
};
|
|
16
16
|
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.10",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/tabs": "^13.3.0",
|
|
43
43
|
"@atlaskit/textarea": "^4.5.0",
|
|
44
44
|
"@atlaskit/theme": "^12.2.0",
|
|
45
|
-
"@atlaskit/tokens": "^0.
|
|
45
|
+
"@atlaskit/tokens": "^0.13.0",
|
|
46
46
|
"@atlaskit/tooltip": "^17.6.0",
|
|
47
47
|
"@atlaskit/ufo": "^0.1.0",
|
|
48
48
|
"@atlaskit/user-picker": "^9.7.0",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@atlaskit/docs": "^9.0.0",
|
|
64
|
-
"@atlaskit/editor-test-helpers": "^
|
|
64
|
+
"@atlaskit/editor-test-helpers": "^18.0.0",
|
|
65
65
|
"@atlaskit/flag": "^15.0.0",
|
|
66
66
|
"@atlaskit/section-message": "^6.3.0",
|
|
67
|
-
"@atlaskit/select": "^16.
|
|
67
|
+
"@atlaskit/select": "^16.1.0",
|
|
68
68
|
"@atlaskit/toggle": "^12.5.0",
|
|
69
69
|
"@atlaskit/util-data-test": "^17.6.0",
|
|
70
70
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|