@atlaskit/flag 15.7.1 → 15.7.2
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 +8 -0
- package/dist/cjs/auto-dismiss-flag.js +1 -1
- package/dist/cjs/flag.js +1 -1
- package/dist/cjs/internal/dismiss-button.js +5 -2
- package/dist/es2019/auto-dismiss-flag.js +1 -1
- package/dist/es2019/flag.js +1 -1
- package/dist/es2019/internal/dismiss-button.js +5 -2
- package/dist/esm/auto-dismiss-flag.js +1 -1
- package/dist/esm/flag.js +1 -1
- package/dist/esm/internal/dismiss-button.js +5 -2
- package/dist/types/internal/dismiss-button.d.ts +2 -2
- package/dist/types-ts4.5/internal/dismiss-button.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/flag
|
|
2
2
|
|
|
3
|
+
## 15.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#120049](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/120049)
|
|
8
|
+
[`77504ff274f72`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/77504ff274f72) -
|
|
9
|
+
DSP-19576: Assign names to anonymous default exports
|
|
10
|
+
|
|
3
11
|
## 15.7.1
|
|
4
12
|
|
|
5
13
|
### 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 && Object.prototype.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.7.
|
|
18
|
+
var packageVersion = "15.7.2";
|
|
19
19
|
var AUTO_DISMISS_SECONDS = exports.AUTO_DISMISS_SECONDS = 8;
|
|
20
20
|
|
|
21
21
|
/**
|
package/dist/cjs/flag.js
CHANGED
|
@@ -27,7 +27,7 @@ var buttonStyles = (0, _primitives.xcss)({
|
|
|
27
27
|
cursor: 'pointer',
|
|
28
28
|
whiteSpace: 'nowrap'
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var DismissButtonComponent = function DismissButtonComponent(_ref) {
|
|
31
31
|
var appearance = _ref.appearance,
|
|
32
32
|
onClick = _ref.onClick,
|
|
33
33
|
isBold = _ref.isBold,
|
|
@@ -54,4 +54,7 @@ var DismissButton = function DismissButton(_ref) {
|
|
|
54
54
|
primaryColor: _theme.flagTextColorToken[appearance]
|
|
55
55
|
}));
|
|
56
56
|
};
|
|
57
|
-
var
|
|
57
|
+
var DismissButton = /*#__PURE__*/(0, _react.memo)(DismissButtonComponent);
|
|
58
|
+
|
|
59
|
+
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
60
|
+
var _default = exports.default = DismissButton;
|
|
@@ -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.7.
|
|
8
|
+
const packageVersion = "15.7.2";
|
|
9
9
|
export const AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/es2019/flag.js
CHANGED
|
@@ -17,7 +17,7 @@ const buttonStyles = xcss({
|
|
|
17
17
|
cursor: 'pointer',
|
|
18
18
|
whiteSpace: 'nowrap'
|
|
19
19
|
});
|
|
20
|
-
const
|
|
20
|
+
const DismissButtonComponent = ({
|
|
21
21
|
appearance,
|
|
22
22
|
onClick,
|
|
23
23
|
isBold,
|
|
@@ -45,4 +45,7 @@ const DismissButton = ({
|
|
|
45
45
|
primaryColor: flagTextColorToken[appearance]
|
|
46
46
|
}));
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
const DismissButton = /*#__PURE__*/memo(DismissButtonComponent);
|
|
49
|
+
|
|
50
|
+
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
51
|
+
export default DismissButton;
|
|
@@ -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.7.
|
|
8
|
+
var packageVersion = "15.7.2";
|
|
9
9
|
export var AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/esm/flag.js
CHANGED
|
@@ -17,7 +17,7 @@ var buttonStyles = xcss({
|
|
|
17
17
|
cursor: 'pointer',
|
|
18
18
|
whiteSpace: 'nowrap'
|
|
19
19
|
});
|
|
20
|
-
var
|
|
20
|
+
var DismissButtonComponent = function DismissButtonComponent(_ref) {
|
|
21
21
|
var appearance = _ref.appearance,
|
|
22
22
|
onClick = _ref.onClick,
|
|
23
23
|
isBold = _ref.isBold,
|
|
@@ -44,4 +44,7 @@ var DismissButton = function DismissButton(_ref) {
|
|
|
44
44
|
primaryColor: flagTextColorToken[appearance]
|
|
45
45
|
}));
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
var DismissButton = /*#__PURE__*/memo(DismissButtonComponent);
|
|
48
|
+
|
|
49
|
+
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
50
|
+
export default DismissButton;
|
|
@@ -7,5 +7,5 @@ interface DismissButtonProps {
|
|
|
7
7
|
isBold: boolean;
|
|
8
8
|
testId?: string;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
10
|
+
declare const DismissButton: React.MemoExoticComponent<({ appearance, onClick, isBold, isExpanded, testId, }: DismissButtonProps) => JSX.Element>;
|
|
11
|
+
export default DismissButton;
|
|
@@ -7,5 +7,5 @@ interface DismissButtonProps {
|
|
|
7
7
|
isBold: boolean;
|
|
8
8
|
testId?: string;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
10
|
+
declare const DismissButton: React.MemoExoticComponent<({ appearance, onClick, isBold, isExpanded, testId, }: DismissButtonProps) => JSX.Element>;
|
|
11
|
+
export default DismissButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/flag",
|
|
3
|
-
"version": "15.7.
|
|
3
|
+
"version": "15.7.2",
|
|
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/"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
50
|
-
"@atlaskit/button": "^18.
|
|
50
|
+
"@atlaskit/button": "^18.4.0",
|
|
51
51
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
52
52
|
"@atlaskit/heading": "^2.4.0",
|
|
53
53
|
"@atlaskit/icon": "^22.6.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/portal": "^4.6.0",
|
|
56
56
|
"@atlaskit/primitives": "^11.0.0",
|
|
57
57
|
"@atlaskit/theme": "^12.11.0",
|
|
58
|
-
"@atlaskit/tokens": "^1.
|
|
58
|
+
"@atlaskit/tokens": "^1.54.0",
|
|
59
59
|
"@atlaskit/visually-hidden": "^1.4.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|
|
61
61
|
"@emotion/react": "^11.7.1"
|