@atlaskit/flag 15.8.13 → 15.8.15
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 +14 -0
- package/dist/cjs/auto-dismiss-flag.js +1 -1
- package/dist/cjs/flag-actions.js +1 -2
- package/dist/cjs/flag.js +1 -1
- package/dist/es2019/auto-dismiss-flag.js +1 -1
- package/dist/es2019/flag.js +1 -1
- package/dist/esm/auto-dismiss-flag.js +1 -1
- package/dist/esm/flag-actions.js +1 -2
- package/dist/esm/flag.js +1 -1
- package/package.json +11 -8
- package/__perf__/autodismiss.tsx +0 -18
- package/__perf__/default.tsx +0 -18
- package/__perf__/with-flag-group.tsx +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/flag
|
|
2
2
|
|
|
3
|
+
## 15.8.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#107176](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107176)
|
|
8
|
+
[`124bd21a27dae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/124bd21a27dae) -
|
|
9
|
+
Update dependencies.
|
|
10
|
+
|
|
11
|
+
## 15.8.14
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 15.8.13
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -15,7 +15,7 @@ var _flagGroup = require("./flag-group");
|
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
16
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
var packageName = "@atlaskit/flag";
|
|
18
|
-
var packageVersion = "15.8.
|
|
18
|
+
var packageVersion = "15.8.15";
|
|
19
19
|
var AUTO_DISMISS_SECONDS = exports.AUTO_DISMISS_SECONDS = 8;
|
|
20
20
|
|
|
21
21
|
/**
|
package/dist/cjs/flag-actions.js
CHANGED
|
@@ -78,7 +78,6 @@ var FlagActions = function FlagActions(props) {
|
|
|
78
78
|
separator: isBold ? undefined : '·',
|
|
79
79
|
testId: testId && "".concat(testId, "-actions")
|
|
80
80
|
}, actions.map(function (action, index) {
|
|
81
|
-
var _ref;
|
|
82
81
|
return (0, _react.jsx)(_customThemeButton.default, {
|
|
83
82
|
onClick: action.onClick,
|
|
84
83
|
href: action.href,
|
|
@@ -88,7 +87,7 @@ var FlagActions = function FlagActions(props) {
|
|
|
88
87
|
spacing: "compact",
|
|
89
88
|
testId: action.testId,
|
|
90
89
|
key: index,
|
|
91
|
-
style: (
|
|
90
|
+
style: (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.VAR_COLOR, _theme.actionTextColor[appearance]), _constants.VAR_BG_COLOR, _theme.actionBackgroundColor[appearance].default), _constants.VAR_BG_COLOR_HOVER, _theme.actionBackgroundColor[appearance].pressed), _constants.VAR_BG_COLOR_ACTIVE, _theme.actionBackgroundColor[appearance].active)
|
|
92
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
93
92
|
,
|
|
94
93
|
css: [buttonStyles, appearance === _constants.DEFAULT_APPEARANCE && appearanceNormalButtonStyles]
|
package/dist/cjs/flag.js
CHANGED
|
@@ -5,7 +5,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
5
5
|
import Flag from './flag';
|
|
6
6
|
import { useFlagGroup } from './flag-group';
|
|
7
7
|
const packageName = "@atlaskit/flag";
|
|
8
|
-
const packageVersion = "15.8.
|
|
8
|
+
const packageVersion = "15.8.15";
|
|
9
9
|
export const AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/es2019/flag.js
CHANGED
|
@@ -5,7 +5,7 @@ import noop from '@atlaskit/ds-lib/noop';
|
|
|
5
5
|
import Flag from './flag';
|
|
6
6
|
import { useFlagGroup } from './flag-group';
|
|
7
7
|
var packageName = "@atlaskit/flag";
|
|
8
|
-
var packageVersion = "15.8.
|
|
8
|
+
var packageVersion = "15.8.15";
|
|
9
9
|
export var AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/esm/flag-actions.js
CHANGED
|
@@ -70,7 +70,6 @@ var FlagActions = function FlagActions(props) {
|
|
|
70
70
|
separator: isBold ? undefined : '·',
|
|
71
71
|
testId: testId && "".concat(testId, "-actions")
|
|
72
72
|
}, actions.map(function (action, index) {
|
|
73
|
-
var _ref;
|
|
74
73
|
return jsx(Button, {
|
|
75
74
|
onClick: action.onClick,
|
|
76
75
|
href: action.href,
|
|
@@ -80,7 +79,7 @@ var FlagActions = function FlagActions(props) {
|
|
|
80
79
|
spacing: "compact",
|
|
81
80
|
testId: action.testId,
|
|
82
81
|
key: index,
|
|
83
|
-
style: (
|
|
82
|
+
style: _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, VAR_COLOR, actionTextColor[appearance]), VAR_BG_COLOR, actionBackgroundColor[appearance].default), VAR_BG_COLOR_HOVER, actionBackgroundColor[appearance].pressed), VAR_BG_COLOR_ACTIVE, actionBackgroundColor[appearance].active)
|
|
84
83
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
85
84
|
,
|
|
86
85
|
css: [buttonStyles, appearance === DEFAULT_APPEARANCE && appearanceNormalButtonStyles]
|
package/dist/esm/flag.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/flag",
|
|
3
|
-
"version": "15.8.
|
|
3
|
+
"version": "15.8.15",
|
|
4
4
|
"description": "A flag is used for confirmations, alerts, and acknowledgments that require minimal user interaction, often displayed using a flag group.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"./types": "./src/types.tsx"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@atlaskit/analytics-next": "^10.
|
|
47
|
+
"@atlaskit/analytics-next": "^10.2.0",
|
|
48
48
|
"@atlaskit/button": "^20.3.0",
|
|
49
49
|
"@atlaskit/ds-lib": "^3.3.0",
|
|
50
50
|
"@atlaskit/heading": "^4.0.0",
|
|
51
|
-
"@atlaskit/icon": "^23.
|
|
51
|
+
"@atlaskit/icon": "^23.4.0",
|
|
52
52
|
"@atlaskit/motion": "^1.9.0",
|
|
53
|
-
"@atlaskit/portal": "^4.
|
|
53
|
+
"@atlaskit/portal": "^4.10.0",
|
|
54
54
|
"@atlaskit/primitives": "^13.3.0",
|
|
55
55
|
"@atlaskit/theme": "^14.0.0",
|
|
56
|
-
"@atlaskit/tokens": "^2.
|
|
56
|
+
"@atlaskit/tokens": "^3.2.0",
|
|
57
57
|
"@atlaskit/visually-hidden": "^1.5.0",
|
|
58
58
|
"@babel/runtime": "^7.0.0",
|
|
59
59
|
"@emotion/react": "^11.7.1"
|
|
@@ -65,14 +65,17 @@
|
|
|
65
65
|
"@af/accessibility-testing": "*",
|
|
66
66
|
"@af/integration-testing": "*",
|
|
67
67
|
"@af/visual-regression": "*",
|
|
68
|
-
"@atlaskit/
|
|
68
|
+
"@atlaskit/docs": "*",
|
|
69
|
+
"@atlaskit/drawer": "^9.3.4",
|
|
70
|
+
"@atlaskit/link": "^2.0.2",
|
|
71
|
+
"@atlaskit/radio": "^7.0.0",
|
|
72
|
+
"@atlaskit/section-message": "*",
|
|
73
|
+
"@atlaskit/spinner": "^17.0.0",
|
|
69
74
|
"@atlaskit/ssr": "*",
|
|
70
75
|
"@atlaskit/visual-regression": "*",
|
|
71
76
|
"@emotion/jest": "^11.8.0",
|
|
72
77
|
"@testing-library/react": "^12.1.5",
|
|
73
|
-
"jest-emotion": "^10.0.32",
|
|
74
78
|
"react-dom": "^16.8.0",
|
|
75
|
-
"storybook-addon-performance": "^0.17.3",
|
|
76
79
|
"typescript": "~5.4.2"
|
|
77
80
|
},
|
|
78
81
|
"keywords": [
|
package/__perf__/autodismiss.tsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import InfoIcon from '@atlaskit/icon/glyph/info';
|
|
4
|
-
|
|
5
|
-
import { AutoDismissFlag } from '../src';
|
|
6
|
-
|
|
7
|
-
export default function FlagInfo() {
|
|
8
|
-
return (
|
|
9
|
-
<AutoDismissFlag
|
|
10
|
-
appearance="info"
|
|
11
|
-
icon={<InfoIcon label="Info" />}
|
|
12
|
-
id="info"
|
|
13
|
-
title="Where is everybody?"
|
|
14
|
-
description="There’s no one in this project. Add yourself or your team to get the party started."
|
|
15
|
-
actions={[]}
|
|
16
|
-
/>
|
|
17
|
-
);
|
|
18
|
-
}
|
package/__perf__/default.tsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import InfoIcon from '@atlaskit/icon/glyph/info';
|
|
4
|
-
|
|
5
|
-
import Flag from '../src';
|
|
6
|
-
|
|
7
|
-
export default function FlagInfo() {
|
|
8
|
-
return (
|
|
9
|
-
<Flag
|
|
10
|
-
appearance="info"
|
|
11
|
-
icon={<InfoIcon label="Info" />}
|
|
12
|
-
id="info"
|
|
13
|
-
title="Where is everybody?"
|
|
14
|
-
description="There’s no one in this project. Add yourself or your team to get the party started."
|
|
15
|
-
actions={[]}
|
|
16
|
-
/>
|
|
17
|
-
);
|
|
18
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import noop from '@atlaskit/ds-lib/noop';
|
|
4
|
-
import SuccessIcon from '@atlaskit/icon/glyph/check-circle';
|
|
5
|
-
import { token } from '@atlaskit/tokens';
|
|
6
|
-
|
|
7
|
-
import Flag, { FlagGroup } from '../src';
|
|
8
|
-
|
|
9
|
-
export default () => (
|
|
10
|
-
<FlagGroup>
|
|
11
|
-
<Flag
|
|
12
|
-
appearance="success"
|
|
13
|
-
icon={<SuccessIcon label="Success" secondaryColor={token('color.background.success.bold')} />}
|
|
14
|
-
id="success"
|
|
15
|
-
key="success"
|
|
16
|
-
title="Connected"
|
|
17
|
-
description="All wires now hooked up."
|
|
18
|
-
actions={[{ content: 'Alrighty then', onClick: noop }]}
|
|
19
|
-
/>
|
|
20
|
-
</FlagGroup>
|
|
21
|
-
);
|