@atlaskit/flag 17.4.4 → 17.5.0
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 +7 -0
- package/dist/cjs/auto-dismiss-flag.js +1 -1
- package/dist/cjs/flag-group.js +3 -1
- package/dist/cjs/flag.js +1 -1
- package/dist/es2019/auto-dismiss-flag.js +1 -1
- package/dist/es2019/flag-group.js +3 -1
- package/dist/es2019/flag.js +1 -1
- package/dist/esm/auto-dismiss-flag.js +1 -1
- package/dist/esm/flag-group.js +3 -1
- package/dist/esm/flag.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/flag
|
|
2
2
|
|
|
3
|
+
## 17.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`1c7d57038910d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1c7d57038910d) -
|
|
8
|
+
Adds react-ufo out of band concept, and prevents flags from impacting visual complete calculations
|
|
9
|
+
|
|
3
10
|
## 17.4.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -14,7 +14,7 @@ var _flag = _interopRequireDefault(require("./flag"));
|
|
|
14
14
|
var _flagGroup = require("./flag-group");
|
|
15
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
16
|
var packageName = "@atlaskit/flag";
|
|
17
|
-
var packageVersion = "
|
|
17
|
+
var packageVersion = "17.4.4";
|
|
18
18
|
var AUTO_DISMISS_SECONDS = exports.AUTO_DISMISS_SECONDS = 8;
|
|
19
19
|
|
|
20
20
|
/**
|
package/dist/cjs/flag-group.js
CHANGED
|
@@ -88,7 +88,8 @@ var FlagGroup = function FlagGroup(props) {
|
|
|
88
88
|
return /*#__PURE__*/React.createElement("div", {
|
|
89
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
90
90
|
className: (0, _runtime.ax)([groupStyles.root, index === 0 && groupStyles.first, index === 1 && groupStyles.second, index >= 1 && groupStyles.nth, index >= 2 && groupStyles.hidden, isDismissAllowed && "_12a7luct", className]),
|
|
91
|
-
ref: ref
|
|
91
|
+
ref: ref,
|
|
92
|
+
"data-vc-oob": true
|
|
92
93
|
}, /*#__PURE__*/React.createElement(FlagGroupContext.Provider, {
|
|
93
94
|
value:
|
|
94
95
|
// Only the first flag should be able to be dismissed.
|
|
@@ -99,6 +100,7 @@ var FlagGroup = function FlagGroup(props) {
|
|
|
99
100
|
};
|
|
100
101
|
var flags = /*#__PURE__*/React.createElement("div", {
|
|
101
102
|
id: id,
|
|
103
|
+
"data-vc-oob": true,
|
|
102
104
|
className: (0, _runtime.ax)(["_kqsw1n9t _1pbyxejw _u7cooahv _1e021epz _1iafidpf _il0widpf"])
|
|
103
105
|
}, hasFlags ? /*#__PURE__*/React.createElement(_visuallyHidden.default, null, /*#__PURE__*/React.createElement(LabelTag, null, label)) : null, /*#__PURE__*/React.createElement(_motion.ExitingPersistence, {
|
|
104
106
|
appear: false
|
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 = "
|
|
8
|
+
const packageVersion = "17.4.4";
|
|
9
9
|
export const AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -73,7 +73,8 @@ const FlagGroup = props => {
|
|
|
73
73
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
74
74
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
75
75
|
className: ax([groupStyles.root, index === 0 && groupStyles.first, index === 1 && groupStyles.second, index >= 1 && groupStyles.nth, index >= 2 && groupStyles.hidden, isDismissAllowed && "_12a7luct", className]),
|
|
76
|
-
ref: ref
|
|
76
|
+
ref: ref,
|
|
77
|
+
"data-vc-oob": true
|
|
77
78
|
}, /*#__PURE__*/React.createElement(FlagGroupContext.Provider, {
|
|
78
79
|
value:
|
|
79
80
|
// Only the first flag should be able to be dismissed.
|
|
@@ -83,6 +84,7 @@ const FlagGroup = props => {
|
|
|
83
84
|
};
|
|
84
85
|
const flags = /*#__PURE__*/React.createElement("div", {
|
|
85
86
|
id: id,
|
|
87
|
+
"data-vc-oob": true,
|
|
86
88
|
className: ax(["_kqsw1n9t _1pbyxejw _u7cooahv _1e021epz _1iafidpf _il0widpf"])
|
|
87
89
|
}, hasFlags ? /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement(LabelTag, null, label)) : null, /*#__PURE__*/React.createElement(ExitingPersistence, {
|
|
88
90
|
appear: false
|
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 = "
|
|
8
|
+
var packageVersion = "17.4.4";
|
|
9
9
|
export var AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/esm/flag-group.js
CHANGED
|
@@ -78,7 +78,8 @@ var FlagGroup = function FlagGroup(props) {
|
|
|
78
78
|
return /*#__PURE__*/React.createElement("div", {
|
|
79
79
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
80
80
|
className: ax([groupStyles.root, index === 0 && groupStyles.first, index === 1 && groupStyles.second, index >= 1 && groupStyles.nth, index >= 2 && groupStyles.hidden, isDismissAllowed && "_12a7luct", className]),
|
|
81
|
-
ref: ref
|
|
81
|
+
ref: ref,
|
|
82
|
+
"data-vc-oob": true
|
|
82
83
|
}, /*#__PURE__*/React.createElement(FlagGroupContext.Provider, {
|
|
83
84
|
value:
|
|
84
85
|
// Only the first flag should be able to be dismissed.
|
|
@@ -89,6 +90,7 @@ var FlagGroup = function FlagGroup(props) {
|
|
|
89
90
|
};
|
|
90
91
|
var flags = /*#__PURE__*/React.createElement("div", {
|
|
91
92
|
id: id,
|
|
93
|
+
"data-vc-oob": true,
|
|
92
94
|
className: ax(["_kqsw1n9t _1pbyxejw _u7cooahv _1e021epz _1iafidpf _il0widpf"])
|
|
93
95
|
}, hasFlags ? /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement(LabelTag, null, label)) : null, /*#__PURE__*/React.createElement(ExitingPersistence, {
|
|
94
96
|
appear: false
|
package/dist/esm/flag.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/flag",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.5.0",
|
|
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/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/tokens": "^6.5.0",
|
|
47
47
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
|
-
"@compiled/react": "^0.18.
|
|
49
|
+
"@compiled/react": "^0.18.6"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^18.2.0"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@af/accessibility-testing": "workspace:^",
|
|
56
56
|
"@af/integration-testing": "workspace:^",
|
|
57
57
|
"@af/visual-regression": "workspace:^",
|
|
58
|
-
"@atlaskit/docs": "^11.
|
|
58
|
+
"@atlaskit/docs": "^11.2.0",
|
|
59
59
|
"@atlaskit/drawer": "^11.0.0",
|
|
60
60
|
"@atlaskit/link": "^3.2.0",
|
|
61
61
|
"@atlaskit/radio": "^8.3.0",
|