@atlaskit/flag 17.8.7 → 17.8.9
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-actions.js +1 -1
- package/dist/cjs/flag-group.js +1 -1
- package/dist/cjs/flag.js +2 -2
- package/dist/cjs/internal/expander.js +1 -1
- package/dist/es2019/auto-dismiss-flag.js +1 -1
- package/dist/es2019/flag-actions.js +1 -1
- package/dist/es2019/flag-group.js +1 -1
- package/dist/es2019/flag.js +2 -2
- package/dist/es2019/internal/expander.js +1 -1
- package/dist/esm/auto-dismiss-flag.js +1 -1
- package/dist/esm/flag-actions.js +1 -1
- package/dist/esm/flag-group.js +1 -1
- package/dist/esm/flag.js +2 -2
- package/dist/esm/internal/expander.js +1 -1
- package/flag.docs.tsx +58 -0
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -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 = "0.0.0-development";
|
|
18
18
|
var AUTO_DISMISS_SECONDS = exports.AUTO_DISMISS_SECONDS = 8;
|
|
19
19
|
|
|
20
20
|
/**
|
package/dist/cjs/flag-actions.js
CHANGED
package/dist/cjs/flag-group.js
CHANGED
package/dist/cjs/flag.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* flag.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* flag.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -41,7 +41,7 @@ var flagWrapperStyles = null;
|
|
|
41
41
|
var analyticsAttributes = {
|
|
42
42
|
componentName: 'flag',
|
|
43
43
|
packageName: "@atlaskit/flag",
|
|
44
|
-
packageVersion: "
|
|
44
|
+
packageVersion: "0.0.0-development"
|
|
45
45
|
};
|
|
46
46
|
var transitionStyles = null;
|
|
47
47
|
|
|
@@ -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 = "0.0.0-development";
|
|
9
9
|
export const AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* flag-actions.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* flag-actions.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
3
3
|
import "./flag-actions.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
package/dist/es2019/flag.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* flag.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* flag.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./flag.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -28,7 +28,7 @@ const flagWrapperStyles = null;
|
|
|
28
28
|
const analyticsAttributes = {
|
|
29
29
|
componentName: 'flag',
|
|
30
30
|
packageName: "@atlaskit/flag",
|
|
31
|
-
packageVersion: "
|
|
31
|
+
packageVersion: "0.0.0-development"
|
|
32
32
|
};
|
|
33
33
|
const transitionStyles = null;
|
|
34
34
|
|
|
@@ -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 = "0.0.0-development";
|
|
9
9
|
export var AUTO_DISMISS_SECONDS = 8;
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/esm/flag-actions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* flag-actions.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* flag-actions.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
3
3
|
import "./flag-actions.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
package/dist/esm/flag-group.js
CHANGED
package/dist/esm/flag.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* flag.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* flag.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -32,7 +32,7 @@ var flagWrapperStyles = null;
|
|
|
32
32
|
var analyticsAttributes = {
|
|
33
33
|
componentName: 'flag',
|
|
34
34
|
packageName: "@atlaskit/flag",
|
|
35
|
-
packageVersion: "
|
|
35
|
+
packageVersion: "0.0.0-development"
|
|
36
36
|
};
|
|
37
37
|
var transitionStyles = null;
|
|
38
38
|
|
package/flag.docs.tsx
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
|
|
3
|
+
import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
|
|
4
|
+
|
|
5
|
+
const documentation: ComponentStructuredContentSource[] = [
|
|
6
|
+
{
|
|
7
|
+
name: 'Flag',
|
|
8
|
+
description: 'A component for displaying brief messages.',
|
|
9
|
+
status: 'general-availability',
|
|
10
|
+
import: {
|
|
11
|
+
name: 'Flag',
|
|
12
|
+
package: '@atlaskit/flag',
|
|
13
|
+
type: 'default',
|
|
14
|
+
packagePath: path.resolve(__dirname),
|
|
15
|
+
packageJson: require('./package.json'),
|
|
16
|
+
},
|
|
17
|
+
usageGuidelines: [
|
|
18
|
+
'Use for confirmations and alerts needing minimal interaction',
|
|
19
|
+
'Position at bottom left; overlays content',
|
|
20
|
+
'Default: dismissible, event-driven (e.g. avatar update). Bold: not dismissible, severity (success/loading/warning/error), collapsed/expanded',
|
|
21
|
+
'Use Banner for critical/system messages; Inline message when action is required; Modal for immediate action',
|
|
22
|
+
],
|
|
23
|
+
contentGuidelines: [
|
|
24
|
+
'Be clear about what went wrong for errors',
|
|
25
|
+
'Provide specific steps to resolve issues',
|
|
26
|
+
'Use a helpful, non-threatening tone',
|
|
27
|
+
'Clearly state potential consequences for warnings',
|
|
28
|
+
'Confirm outcome then get out of the way for success messages',
|
|
29
|
+
'Information: inform, no action needed',
|
|
30
|
+
'Warning: before action, empathy, offer alternative',
|
|
31
|
+
'Error: explain what went wrong and next step; use "we" not "you"',
|
|
32
|
+
'Success: confirm outcome, then get out of the way; option to view details',
|
|
33
|
+
'Be clear and concise; use a helpful, non-threatening tone',
|
|
34
|
+
],
|
|
35
|
+
accessibilityGuidelines: [
|
|
36
|
+
'Keep copy concise for zoom and long words',
|
|
37
|
+
'Use h2 for title via `headingLevel` prop; maintain heading hierarchy',
|
|
38
|
+
'Do not stack dismissible and non-dismissible flags',
|
|
39
|
+
'Do not rely on color alone for severity',
|
|
40
|
+
'Avoid dead ends—always indicate how to proceed',
|
|
41
|
+
'Do not use auto-dismiss for critical messages',
|
|
42
|
+
'Use descriptive link text that describes the destination',
|
|
43
|
+
'Ensure flag content is announced by screen readers',
|
|
44
|
+
'Consider screen reader announcement conflicts',
|
|
45
|
+
],
|
|
46
|
+
examples: [
|
|
47
|
+
{
|
|
48
|
+
name: 'Flag',
|
|
49
|
+
description: 'Flag example',
|
|
50
|
+
source: path.resolve(__dirname, './examples/ai/flag.tsx'),
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
keywords: ['flag', 'message', 'notification', 'alert', 'toast'],
|
|
54
|
+
categories: ['feedback'],
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
export default documentation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/flag",
|
|
3
|
-
"version": "17.8.
|
|
3
|
+
"version": "17.8.9",
|
|
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/"
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
36
36
|
"@atlaskit/button": "^23.10.0",
|
|
37
37
|
"@atlaskit/css": "^0.19.0",
|
|
38
|
-
"@atlaskit/ds-lib": "^
|
|
38
|
+
"@atlaskit/ds-lib": "^6.0.0",
|
|
39
39
|
"@atlaskit/heading": "^5.3.0",
|
|
40
|
-
"@atlaskit/icon": "^
|
|
41
|
-
"@atlaskit/motion": "^5.
|
|
40
|
+
"@atlaskit/icon": "^33.0.0",
|
|
41
|
+
"@atlaskit/motion": "^5.4.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
43
43
|
"@atlaskit/portal": "^5.2.0",
|
|
44
44
|
"@atlaskit/primitives": "^18.0.0",
|
|
45
45
|
"@atlaskit/theme": "^22.0.0",
|
|
46
|
-
"@atlaskit/tokens": "^11.
|
|
46
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
47
47
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
|
-
"@compiled/react": "^0.
|
|
49
|
+
"@compiled/react": "^0.20.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^18.2.0"
|
|
@@ -55,13 +55,14 @@
|
|
|
55
55
|
"@af/accessibility-testing": "workspace:^",
|
|
56
56
|
"@af/integration-testing": "workspace:^",
|
|
57
57
|
"@af/visual-regression": "workspace:^",
|
|
58
|
-
"@atlaskit/docs": "^11.
|
|
59
|
-
"@atlaskit/drawer": "^
|
|
58
|
+
"@atlaskit/docs": "^11.7.0",
|
|
59
|
+
"@atlaskit/drawer": "^12.0.0",
|
|
60
60
|
"@atlaskit/link": "^3.3.0",
|
|
61
61
|
"@atlaskit/radio": "^8.4.0",
|
|
62
62
|
"@atlaskit/section-message": "^8.12.0",
|
|
63
63
|
"@atlaskit/spinner": "^19.0.0",
|
|
64
64
|
"@atlassian/ssr-tests": "workspace:^",
|
|
65
|
+
"@atlassian/structured-docs-types": "workspace:^",
|
|
65
66
|
"@testing-library/react": "^16.3.0",
|
|
66
67
|
"@testing-library/user-event": "^14.4.3",
|
|
67
68
|
"react-dom": "^18.2.0"
|