@atlaskit/flag 15.2.22 → 15.2.24
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/auto-dismiss-flag.js +1 -1
- 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.js +1 -1
- package/dist/types/types.d.ts +6 -6
- package/dist/types-ts4.5/types.d.ts +6 -6
- package/package.json +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -15,7 +15,7 @@ var _flagGroup = require("./flag-group");
|
|
|
15
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var packageName = "@atlaskit/flag";
|
|
18
|
-
var packageVersion = "15.2.
|
|
18
|
+
var packageVersion = "15.2.24";
|
|
19
19
|
var AUTO_DISMISS_SECONDS = exports.AUTO_DISMISS_SECONDS = 8;
|
|
20
20
|
|
|
21
21
|
/**
|
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.2.
|
|
8
|
+
const packageVersion = "15.2.24";
|
|
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.2.
|
|
8
|
+
var packageVersion = "15.2.24";
|
|
9
9
|
export var AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/esm/flag.js
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ type AutoDismissFlagPropsWithoutId = {
|
|
|
31
31
|
*/
|
|
32
32
|
appearance?: AppearanceTypes;
|
|
33
33
|
/**
|
|
34
|
-
* The secondary content shown below the flag title
|
|
34
|
+
* The secondary content shown below the flag title.
|
|
35
35
|
*/
|
|
36
36
|
description?: ReactNode;
|
|
37
37
|
/**
|
|
@@ -72,7 +72,7 @@ type AutoDismissFlagPropsWithoutId = {
|
|
|
72
72
|
*/
|
|
73
73
|
testId?: string;
|
|
74
74
|
/**
|
|
75
|
-
* Additional information to be included in the `context` of analytics events that come from flag
|
|
75
|
+
* Additional information to be included in the `context` of analytics events that come from flag.
|
|
76
76
|
*/
|
|
77
77
|
analyticsContext?: Record<string, any>;
|
|
78
78
|
};
|
|
@@ -80,19 +80,19 @@ export interface AutoDismissFlagProps extends AutoDismissFlagPropsWithoutId, Fla
|
|
|
80
80
|
}
|
|
81
81
|
export interface FlagPropsWithoutId extends AutoDismissFlagPropsWithoutId, WithAnalyticsEventsProps {
|
|
82
82
|
/**
|
|
83
|
-
* Standard onBlur event, applied to Flag by AutoDismissFlag
|
|
83
|
+
* Standard onBlur event, applied to Flag by AutoDismissFlag.
|
|
84
84
|
*/
|
|
85
85
|
onBlur?: (e: React.FocusEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
86
86
|
/**
|
|
87
|
-
* Standard onFocus event, applied to Flag by AutoDismissFlag
|
|
87
|
+
* Standard onFocus event, applied to Flag by AutoDismissFlag.
|
|
88
88
|
*/
|
|
89
89
|
onFocus?: (e: React.FocusEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
90
90
|
/**
|
|
91
|
-
* Standard onMouseOut event, applied to Flag by AutoDismissFlag
|
|
91
|
+
* Standard onMouseOut event, applied to Flag by AutoDismissFlag.
|
|
92
92
|
*/
|
|
93
93
|
onMouseOut?: MouseEventHandler;
|
|
94
94
|
/**
|
|
95
|
-
* Standard onMouseOver event, applied to Flag by AutoDismissFlag
|
|
95
|
+
* Standard onMouseOver event, applied to Flag by AutoDismissFlag.
|
|
96
96
|
*/
|
|
97
97
|
onMouseOver?: MouseEventHandler;
|
|
98
98
|
}
|
|
@@ -31,7 +31,7 @@ type AutoDismissFlagPropsWithoutId = {
|
|
|
31
31
|
*/
|
|
32
32
|
appearance?: AppearanceTypes;
|
|
33
33
|
/**
|
|
34
|
-
* The secondary content shown below the flag title
|
|
34
|
+
* The secondary content shown below the flag title.
|
|
35
35
|
*/
|
|
36
36
|
description?: ReactNode;
|
|
37
37
|
/**
|
|
@@ -72,7 +72,7 @@ type AutoDismissFlagPropsWithoutId = {
|
|
|
72
72
|
*/
|
|
73
73
|
testId?: string;
|
|
74
74
|
/**
|
|
75
|
-
* Additional information to be included in the `context` of analytics events that come from flag
|
|
75
|
+
* Additional information to be included in the `context` of analytics events that come from flag.
|
|
76
76
|
*/
|
|
77
77
|
analyticsContext?: Record<string, any>;
|
|
78
78
|
};
|
|
@@ -80,19 +80,19 @@ export interface AutoDismissFlagProps extends AutoDismissFlagPropsWithoutId, Fla
|
|
|
80
80
|
}
|
|
81
81
|
export interface FlagPropsWithoutId extends AutoDismissFlagPropsWithoutId, WithAnalyticsEventsProps {
|
|
82
82
|
/**
|
|
83
|
-
* Standard onBlur event, applied to Flag by AutoDismissFlag
|
|
83
|
+
* Standard onBlur event, applied to Flag by AutoDismissFlag.
|
|
84
84
|
*/
|
|
85
85
|
onBlur?: (e: React.FocusEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
86
86
|
/**
|
|
87
|
-
* Standard onFocus event, applied to Flag by AutoDismissFlag
|
|
87
|
+
* Standard onFocus event, applied to Flag by AutoDismissFlag.
|
|
88
88
|
*/
|
|
89
89
|
onFocus?: (e: React.FocusEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
90
90
|
/**
|
|
91
|
-
* Standard onMouseOut event, applied to Flag by AutoDismissFlag
|
|
91
|
+
* Standard onMouseOut event, applied to Flag by AutoDismissFlag.
|
|
92
92
|
*/
|
|
93
93
|
onMouseOut?: MouseEventHandler;
|
|
94
94
|
/**
|
|
95
|
-
* Standard onMouseOver event, applied to Flag by AutoDismissFlag
|
|
95
|
+
* Standard onMouseOver event, applied to Flag by AutoDismissFlag.
|
|
96
96
|
*/
|
|
97
97
|
onMouseOver?: MouseEventHandler;
|
|
98
98
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/flag",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.24",
|
|
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/"
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"./types": "./src/types.tsx"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@atlaskit/analytics-next": "^9.
|
|
49
|
-
"@atlaskit/button": "^17.
|
|
50
|
-
"@atlaskit/ds-explorations": "^3.
|
|
48
|
+
"@atlaskit/analytics-next": "^9.2.0",
|
|
49
|
+
"@atlaskit/button": "^17.6.0",
|
|
50
|
+
"@atlaskit/ds-explorations": "^3.2.0",
|
|
51
51
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
52
52
|
"@atlaskit/focus-ring": "^1.3.0",
|
|
53
|
-
"@atlaskit/icon": "^22.
|
|
53
|
+
"@atlaskit/icon": "^22.1.0",
|
|
54
54
|
"@atlaskit/motion": "^1.5.0",
|
|
55
55
|
"@atlaskit/portal": "^4.4.0",
|
|
56
|
-
"@atlaskit/primitives": "^
|
|
56
|
+
"@atlaskit/primitives": "^3.0.0",
|
|
57
57
|
"@atlaskit/theme": "^12.6.0",
|
|
58
|
-
"@atlaskit/tokens": "^1.
|
|
58
|
+
"@atlaskit/tokens": "^1.38.0",
|
|
59
59
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|
|
61
61
|
"@emotion/react": "^11.7.1"
|
|
@@ -68,7 +68,6 @@
|
|
|
68
68
|
"@af/integration-testing": "*",
|
|
69
69
|
"@atlaskit/ssr": "*",
|
|
70
70
|
"@atlaskit/visual-regression": "*",
|
|
71
|
-
"@atlaskit/webdriver-runner": "*",
|
|
72
71
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
73
72
|
"@emotion/jest": "^11.8.0",
|
|
74
73
|
"@testing-library/react": "^12.1.5",
|