@atlaskit/editor-core 219.9.10 → 219.9.11
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/ui/WithFlash/index.js +8 -80
- package/dist/cjs/ui/WithFlash/withFlash-compiled.compiled.css +7 -0
- package/dist/cjs/ui/WithFlash/withFlash-compiled.js +58 -0
- package/dist/cjs/ui/WithFlash/withFlash-emotion.js +91 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/WithFlash/index.js +6 -69
- package/dist/es2019/ui/WithFlash/withFlash-compiled.compiled.css +7 -0
- package/dist/es2019/ui/WithFlash/withFlash-compiled.js +36 -0
- package/dist/es2019/ui/WithFlash/withFlash-emotion.js +75 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/WithFlash/index.js +8 -83
- package/dist/esm/ui/WithFlash/withFlash-compiled.compiled.css +7 -0
- package/dist/esm/ui/WithFlash/withFlash-compiled.js +52 -0
- package/dist/esm/ui/WithFlash/withFlash-emotion.js +88 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/WithFlash/index.d.ts +2 -9
- package/dist/types/ui/WithFlash/withFlash-compiled.d.ts +19 -0
- package/dist/types/ui/WithFlash/withFlash-emotion.d.ts +19 -0
- package/dist/types-ts4.5/ui/WithFlash/index.d.ts +2 -9
- package/dist/types-ts4.5/ui/WithFlash/withFlash-compiled.d.ts +19 -0
- package/dist/types-ts4.5/ui/WithFlash/withFlash-emotion.d.ts +19 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 219.9.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a90f47c1c8fe8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a90f47c1c8fe8) -
|
|
8
|
+
Migrate ui/withFlash styles
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 219.9.10
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,86 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.default = void 0;
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
17
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
18
|
-
* @jsxRuntime classic
|
|
19
|
-
* @jsx jsx
|
|
20
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
21
|
-
var pulseBackground = (0, _react2.keyframes)({
|
|
22
|
-
'50%': {
|
|
23
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
var pulseBackgroundReverse = (0, _react2.keyframes)({
|
|
27
|
-
'0%': {
|
|
28
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
29
|
-
},
|
|
30
|
-
'50%': {
|
|
31
|
-
backgroundColor: 'auto'
|
|
32
|
-
},
|
|
33
|
-
'100%': {
|
|
34
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
var flashWrapper = (0, _react2.css)({
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
|
-
'&.-flash > div': {
|
|
40
|
-
animationName: pulseBackgroundReverse,
|
|
41
|
-
animationDuration: '0.25s',
|
|
42
|
-
animationTimingFunction: 'ease-in-out'
|
|
43
|
-
},
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
45
|
-
'& > div': {
|
|
46
|
-
animation: "'none'"
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
var flashWrapperAnimated = (0, _react2.css)((0, _defineProperty2.default)({}, "".concat(flashWrapper, " & > div"), {
|
|
50
|
-
animationName: pulseBackground,
|
|
51
|
-
animationDuration: '0.25s',
|
|
52
|
-
animationTimingFunction: 'ease-in-out'
|
|
53
|
-
}));
|
|
54
|
-
// Ignored via go/ees005
|
|
55
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
56
|
-
var WithFlash = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
57
|
-
function WithFlash() {
|
|
58
|
-
var _this;
|
|
59
|
-
(0, _classCallCheck2.default)(this, WithFlash);
|
|
60
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
61
|
-
args[_key] = arguments[_key];
|
|
62
|
-
}
|
|
63
|
-
_this = _callSuper(this, WithFlash, [].concat(args));
|
|
64
|
-
(0, _defineProperty2.default)(_this, "toggle", false);
|
|
65
|
-
return _this;
|
|
66
|
-
}
|
|
67
|
-
(0, _inherits2.default)(WithFlash, _React$Component);
|
|
68
|
-
return (0, _createClass2.default)(WithFlash, [{
|
|
69
|
-
key: "render",
|
|
70
|
-
value: function render() {
|
|
71
|
-
var _this$props = this.props,
|
|
72
|
-
animate = _this$props.animate,
|
|
73
|
-
children = _this$props.children;
|
|
74
|
-
this.toggle = animate && !this.toggle;
|
|
75
|
-
return (
|
|
76
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
77
|
-
(0, _react2.jsx)("div", {
|
|
78
|
-
css: animate ? flashWrapperAnimated : flashWrapper
|
|
79
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
80
|
-
,
|
|
81
|
-
className: this.toggle ? '-flash' : ''
|
|
82
|
-
}, children)
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
}]);
|
|
86
|
-
}(_react.default.Component);
|
|
7
|
+
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
8
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
|
+
var _withFlashCompiled = require("./withFlash-compiled");
|
|
10
|
+
var _withFlashEmotion = require("./withFlash-emotion");
|
|
11
|
+
var WithFlash = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
12
|
+
return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
13
|
+
}, _withFlashCompiled.WithFlashCompiled, _withFlashEmotion.WithFlashEmotion);
|
|
14
|
+
var _default = exports.default = WithFlash;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
._16nrglyw>div{animation:none}
|
|
2
|
+
._1q4h1bej.-flash>div{animation-name:k8m8d1y}
|
|
3
|
+
._1q4hp6wo.-flash>div{animation-name:k1bd9ir4}
|
|
4
|
+
._4eh31doz.-flash>div{animation-duration:.25s}
|
|
5
|
+
._l0dz1ytf.-flash>div{animation-timing-function:ease-in-out}
|
|
6
|
+
@keyframes k1bd9ir4{0%{background-color:var(--ds-blanket-danger,#ef5c4814)}50%{background-color:auto}to{background-color:var(--ds-blanket-danger,#ef5c4814)}}
|
|
7
|
+
@keyframes k8m8d1y{50%{background-color:var(--ds-blanket-danger,#ef5c4814)}}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* withFlash-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.WithFlashCompiled = void 0;
|
|
9
|
+
require("./withFlash-compiled.compiled.css");
|
|
10
|
+
var _runtime = require("@compiled/react/runtime");
|
|
11
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
12
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
14
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
15
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
+
var _react = _interopRequireDefault(require("react"));
|
|
18
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
20
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
21
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
22
|
+
*
|
|
23
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
24
|
+
*/
|
|
25
|
+
var pulseBackground = null;
|
|
26
|
+
var pulseBackgroundReverse = null;
|
|
27
|
+
var compiledStyles = {
|
|
28
|
+
flashWrapper: "_16nrglyw _1q4hp6wo _4eh31doz _l0dz1ytf",
|
|
29
|
+
flashWrapperAnimated: "_1q4h1bej _4eh31doz _l0dz1ytf"
|
|
30
|
+
};
|
|
31
|
+
// Ignored via go/ees005
|
|
32
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
33
|
+
var WithFlashCompiled = exports.WithFlashCompiled = /*#__PURE__*/function (_React$Component) {
|
|
34
|
+
function WithFlashCompiled() {
|
|
35
|
+
var _this;
|
|
36
|
+
(0, _classCallCheck2.default)(this, WithFlashCompiled);
|
|
37
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
38
|
+
args[_key] = arguments[_key];
|
|
39
|
+
}
|
|
40
|
+
_this = _callSuper(this, WithFlashCompiled, [].concat(args));
|
|
41
|
+
(0, _defineProperty2.default)(_this, "toggle", false);
|
|
42
|
+
return _this;
|
|
43
|
+
}
|
|
44
|
+
(0, _inherits2.default)(WithFlashCompiled, _React$Component);
|
|
45
|
+
return (0, _createClass2.default)(WithFlashCompiled, [{
|
|
46
|
+
key: "render",
|
|
47
|
+
value: function render() {
|
|
48
|
+
var _this$props = this.props,
|
|
49
|
+
animate = _this$props.animate,
|
|
50
|
+
children = _this$props.children;
|
|
51
|
+
this.toggle = animate && !this.toggle;
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
54
|
+
className: (0, _runtime.ax)([animate ? compiledStyles.flashWrapperAnimated : compiledStyles.flashWrapper, this.toggle ? '-flash' : ''])
|
|
55
|
+
}, children);
|
|
56
|
+
}
|
|
57
|
+
}]);
|
|
58
|
+
}(_react.default.Component);
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.WithFlashEmotion = void 0;
|
|
8
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
11
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
var _react2 = require("@emotion/react");
|
|
16
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
17
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
* @jsx jsx
|
|
20
|
+
*/ /**
|
|
21
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
22
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
23
|
+
*
|
|
24
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
25
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
26
|
+
var pulseBackground = (0, _react2.keyframes)({
|
|
27
|
+
'50%': {
|
|
28
|
+
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
var pulseBackgroundReverse = (0, _react2.keyframes)({
|
|
32
|
+
'0%': {
|
|
33
|
+
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
34
|
+
},
|
|
35
|
+
'50%': {
|
|
36
|
+
backgroundColor: 'auto'
|
|
37
|
+
},
|
|
38
|
+
'100%': {
|
|
39
|
+
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var flashWrapper = (0, _react2.css)({
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
44
|
+
'&.-flash > div': {
|
|
45
|
+
animationName: pulseBackgroundReverse,
|
|
46
|
+
animationDuration: '0.25s',
|
|
47
|
+
animationTimingFunction: 'ease-in-out'
|
|
48
|
+
},
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
50
|
+
'& > div': {
|
|
51
|
+
animation: 'none'
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
var flashWrapperAnimated = (0, _react2.css)((0, _defineProperty2.default)({}, "&.-flash > div", {
|
|
55
|
+
animationName: pulseBackground,
|
|
56
|
+
animationDuration: '0.25s',
|
|
57
|
+
animationTimingFunction: 'ease-in-out'
|
|
58
|
+
}));
|
|
59
|
+
// Ignored via go/ees005
|
|
60
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
61
|
+
var WithFlashEmotion = exports.WithFlashEmotion = /*#__PURE__*/function (_React$Component) {
|
|
62
|
+
function WithFlashEmotion() {
|
|
63
|
+
var _this;
|
|
64
|
+
(0, _classCallCheck2.default)(this, WithFlashEmotion);
|
|
65
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
66
|
+
args[_key] = arguments[_key];
|
|
67
|
+
}
|
|
68
|
+
_this = _callSuper(this, WithFlashEmotion, [].concat(args));
|
|
69
|
+
(0, _defineProperty2.default)(_this, "toggle", false);
|
|
70
|
+
return _this;
|
|
71
|
+
}
|
|
72
|
+
(0, _inherits2.default)(WithFlashEmotion, _React$Component);
|
|
73
|
+
return (0, _createClass2.default)(WithFlashEmotion, [{
|
|
74
|
+
key: "render",
|
|
75
|
+
value: function render() {
|
|
76
|
+
var _this$props = this.props,
|
|
77
|
+
animate = _this$props.animate,
|
|
78
|
+
children = _this$props.children;
|
|
79
|
+
this.toggle = animate && !this.toggle;
|
|
80
|
+
return (
|
|
81
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
82
|
+
(0, _react2.jsx)("div", {
|
|
83
|
+
css: animate ? flashWrapperAnimated : flashWrapper
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
85
|
+
,
|
|
86
|
+
className: this.toggle ? '-flash' : ''
|
|
87
|
+
}, children)
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
}]);
|
|
91
|
+
}(_react.default.Component);
|
|
@@ -1,69 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
9
|
-
import { css, jsx, keyframes } from '@emotion/react';
|
|
10
|
-
const pulseBackground = keyframes({
|
|
11
|
-
'50%': {
|
|
12
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
const pulseBackgroundReverse = keyframes({
|
|
16
|
-
'0%': {
|
|
17
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
18
|
-
},
|
|
19
|
-
'50%': {
|
|
20
|
-
backgroundColor: 'auto'
|
|
21
|
-
},
|
|
22
|
-
'100%': {
|
|
23
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
const flashWrapper = css({
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
|
-
'&.-flash > div': {
|
|
29
|
-
animationName: pulseBackgroundReverse,
|
|
30
|
-
animationDuration: '0.25s',
|
|
31
|
-
animationTimingFunction: 'ease-in-out'
|
|
32
|
-
},
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
34
|
-
'& > div': {
|
|
35
|
-
animation: "'none'"
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
const flashWrapperAnimated = css({
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
|
-
[`${flashWrapper} & > div`]: {
|
|
41
|
-
animationName: pulseBackground,
|
|
42
|
-
animationDuration: '0.25s',
|
|
43
|
-
animationTimingFunction: 'ease-in-out'
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
// Ignored via go/ees005
|
|
47
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
48
|
-
export default class WithFlash extends React.Component {
|
|
49
|
-
constructor(...args) {
|
|
50
|
-
super(...args);
|
|
51
|
-
_defineProperty(this, "toggle", false);
|
|
52
|
-
}
|
|
53
|
-
render() {
|
|
54
|
-
const {
|
|
55
|
-
animate,
|
|
56
|
-
children
|
|
57
|
-
} = this.props;
|
|
58
|
-
this.toggle = animate && !this.toggle;
|
|
59
|
-
return (
|
|
60
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
61
|
-
jsx("div", {
|
|
62
|
-
css: animate ? flashWrapperAnimated : flashWrapper
|
|
63
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
64
|
-
,
|
|
65
|
-
className: this.toggle ? '-flash' : ''
|
|
66
|
-
}, children)
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
1
|
+
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
2
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
|
+
import { WithFlashCompiled } from './withFlash-compiled';
|
|
4
|
+
import { WithFlashEmotion } from './withFlash-emotion';
|
|
5
|
+
const WithFlash = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), WithFlashCompiled, WithFlashEmotion);
|
|
6
|
+
export default WithFlash;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
._16nrglyw>div{animation:none}
|
|
2
|
+
._1q4h1bej.-flash>div{animation-name:k8m8d1y}
|
|
3
|
+
._1q4hp6wo.-flash>div{animation-name:k1bd9ir4}
|
|
4
|
+
._4eh31doz.-flash>div{animation-duration:.25s}
|
|
5
|
+
._l0dz1ytf.-flash>div{animation-timing-function:ease-in-out}
|
|
6
|
+
@keyframes k1bd9ir4{0%{background-color:var(--ds-blanket-danger,#ef5c4814)}50%{background-color:auto}to{background-color:var(--ds-blanket-danger,#ef5c4814)}}
|
|
7
|
+
@keyframes k8m8d1y{50%{background-color:var(--ds-blanket-danger,#ef5c4814)}}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* withFlash-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import "./withFlash-compiled.compiled.css";
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
/**
|
|
6
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
const pulseBackground = null;
|
|
13
|
+
const pulseBackgroundReverse = null;
|
|
14
|
+
const compiledStyles = {
|
|
15
|
+
flashWrapper: "_16nrglyw _1q4hp6wo _4eh31doz _l0dz1ytf",
|
|
16
|
+
flashWrapperAnimated: "_1q4h1bej _4eh31doz _l0dz1ytf"
|
|
17
|
+
};
|
|
18
|
+
// Ignored via go/ees005
|
|
19
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
20
|
+
export class WithFlashCompiled extends React.Component {
|
|
21
|
+
constructor(...args) {
|
|
22
|
+
super(...args);
|
|
23
|
+
_defineProperty(this, "toggle", false);
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
const {
|
|
27
|
+
animate,
|
|
28
|
+
children
|
|
29
|
+
} = this.props;
|
|
30
|
+
this.toggle = animate && !this.toggle;
|
|
31
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
33
|
+
className: ax([animate ? compiledStyles.flashWrapperAnimated : compiledStyles.flashWrapper, this.toggle ? '-flash' : ''])
|
|
34
|
+
}, children);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
8
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
9
|
+
*
|
|
10
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
11
|
+
*/
|
|
12
|
+
import React from 'react';
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
15
|
+
import { css, jsx, keyframes } from '@emotion/react';
|
|
16
|
+
const pulseBackground = keyframes({
|
|
17
|
+
'50%': {
|
|
18
|
+
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
const pulseBackgroundReverse = keyframes({
|
|
22
|
+
'0%': {
|
|
23
|
+
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
24
|
+
},
|
|
25
|
+
'50%': {
|
|
26
|
+
backgroundColor: 'auto'
|
|
27
|
+
},
|
|
28
|
+
'100%': {
|
|
29
|
+
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const flashWrapper = css({
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
34
|
+
'&.-flash > div': {
|
|
35
|
+
animationName: pulseBackgroundReverse,
|
|
36
|
+
animationDuration: '0.25s',
|
|
37
|
+
animationTimingFunction: 'ease-in-out'
|
|
38
|
+
},
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
40
|
+
'& > div': {
|
|
41
|
+
animation: 'none'
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
const flashWrapperAnimated = css({
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
|
+
[`&.-flash > div`]: {
|
|
47
|
+
animationName: pulseBackground,
|
|
48
|
+
animationDuration: '0.25s',
|
|
49
|
+
animationTimingFunction: 'ease-in-out'
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
// Ignored via go/ees005
|
|
53
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
54
|
+
export class WithFlashEmotion extends React.Component {
|
|
55
|
+
constructor(...args) {
|
|
56
|
+
super(...args);
|
|
57
|
+
_defineProperty(this, "toggle", false);
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
const {
|
|
61
|
+
animate,
|
|
62
|
+
children
|
|
63
|
+
} = this.props;
|
|
64
|
+
this.toggle = animate && !this.toggle;
|
|
65
|
+
return (
|
|
66
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
67
|
+
jsx("div", {
|
|
68
|
+
css: animate ? flashWrapperAnimated : flashWrapper
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
70
|
+
,
|
|
71
|
+
className: this.toggle ? '-flash' : ''
|
|
72
|
+
}, children)
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "219.9.
|
|
2
|
+
export const version = "219.9.10";
|
|
@@ -1,83 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @jsxRuntime classic
|
|
11
|
-
* @jsx jsx
|
|
12
|
-
*/
|
|
13
|
-
import React from 'react';
|
|
14
|
-
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
16
|
-
import { css, jsx, keyframes } from '@emotion/react';
|
|
17
|
-
var pulseBackground = keyframes({
|
|
18
|
-
'50%': {
|
|
19
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
var pulseBackgroundReverse = keyframes({
|
|
23
|
-
'0%': {
|
|
24
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
25
|
-
},
|
|
26
|
-
'50%': {
|
|
27
|
-
backgroundColor: 'auto'
|
|
28
|
-
},
|
|
29
|
-
'100%': {
|
|
30
|
-
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
var flashWrapper = css({
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
|
-
'&.-flash > div': {
|
|
36
|
-
animationName: pulseBackgroundReverse,
|
|
37
|
-
animationDuration: '0.25s',
|
|
38
|
-
animationTimingFunction: 'ease-in-out'
|
|
39
|
-
},
|
|
40
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
|
-
'& > div': {
|
|
42
|
-
animation: "'none'"
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
var flashWrapperAnimated = css(_defineProperty({}, "".concat(flashWrapper, " & > div"), {
|
|
46
|
-
animationName: pulseBackground,
|
|
47
|
-
animationDuration: '0.25s',
|
|
48
|
-
animationTimingFunction: 'ease-in-out'
|
|
49
|
-
}));
|
|
50
|
-
// Ignored via go/ees005
|
|
51
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
52
|
-
var WithFlash = /*#__PURE__*/function (_React$Component) {
|
|
53
|
-
function WithFlash() {
|
|
54
|
-
var _this;
|
|
55
|
-
_classCallCheck(this, WithFlash);
|
|
56
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
57
|
-
args[_key] = arguments[_key];
|
|
58
|
-
}
|
|
59
|
-
_this = _callSuper(this, WithFlash, [].concat(args));
|
|
60
|
-
_defineProperty(_this, "toggle", false);
|
|
61
|
-
return _this;
|
|
62
|
-
}
|
|
63
|
-
_inherits(WithFlash, _React$Component);
|
|
64
|
-
return _createClass(WithFlash, [{
|
|
65
|
-
key: "render",
|
|
66
|
-
value: function render() {
|
|
67
|
-
var _this$props = this.props,
|
|
68
|
-
animate = _this$props.animate,
|
|
69
|
-
children = _this$props.children;
|
|
70
|
-
this.toggle = animate && !this.toggle;
|
|
71
|
-
return (
|
|
72
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
73
|
-
jsx("div", {
|
|
74
|
-
css: animate ? flashWrapperAnimated : flashWrapper
|
|
75
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
76
|
-
,
|
|
77
|
-
className: this.toggle ? '-flash' : ''
|
|
78
|
-
}, children)
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
}]);
|
|
82
|
-
}(React.Component);
|
|
83
|
-
export { WithFlash as default };
|
|
1
|
+
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
2
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
|
+
import { WithFlashCompiled } from './withFlash-compiled';
|
|
4
|
+
import { WithFlashEmotion } from './withFlash-emotion';
|
|
5
|
+
var WithFlash = componentWithCondition(function () {
|
|
6
|
+
return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
7
|
+
}, WithFlashCompiled, WithFlashEmotion);
|
|
8
|
+
export default WithFlash;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
._16nrglyw>div{animation:none}
|
|
2
|
+
._1q4h1bej.-flash>div{animation-name:k8m8d1y}
|
|
3
|
+
._1q4hp6wo.-flash>div{animation-name:k1bd9ir4}
|
|
4
|
+
._4eh31doz.-flash>div{animation-duration:.25s}
|
|
5
|
+
._l0dz1ytf.-flash>div{animation-timing-function:ease-in-out}
|
|
6
|
+
@keyframes k1bd9ir4{0%{background-color:var(--ds-blanket-danger,#ef5c4814)}50%{background-color:auto}to{background-color:var(--ds-blanket-danger,#ef5c4814)}}
|
|
7
|
+
@keyframes k8m8d1y{50%{background-color:var(--ds-blanket-danger,#ef5c4814)}}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* withFlash-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
+
import "./withFlash-compiled.compiled.css";
|
|
9
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
10
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
|
+
/**
|
|
13
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
14
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
15
|
+
*
|
|
16
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
17
|
+
*/
|
|
18
|
+
import React from 'react';
|
|
19
|
+
var pulseBackground = null;
|
|
20
|
+
var pulseBackgroundReverse = null;
|
|
21
|
+
var compiledStyles = {
|
|
22
|
+
flashWrapper: "_16nrglyw _1q4hp6wo _4eh31doz _l0dz1ytf",
|
|
23
|
+
flashWrapperAnimated: "_1q4h1bej _4eh31doz _l0dz1ytf"
|
|
24
|
+
};
|
|
25
|
+
// Ignored via go/ees005
|
|
26
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
27
|
+
export var WithFlashCompiled = /*#__PURE__*/function (_React$Component) {
|
|
28
|
+
function WithFlashCompiled() {
|
|
29
|
+
var _this;
|
|
30
|
+
_classCallCheck(this, WithFlashCompiled);
|
|
31
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
32
|
+
args[_key] = arguments[_key];
|
|
33
|
+
}
|
|
34
|
+
_this = _callSuper(this, WithFlashCompiled, [].concat(args));
|
|
35
|
+
_defineProperty(_this, "toggle", false);
|
|
36
|
+
return _this;
|
|
37
|
+
}
|
|
38
|
+
_inherits(WithFlashCompiled, _React$Component);
|
|
39
|
+
return _createClass(WithFlashCompiled, [{
|
|
40
|
+
key: "render",
|
|
41
|
+
value: function render() {
|
|
42
|
+
var _this$props = this.props,
|
|
43
|
+
animate = _this$props.animate,
|
|
44
|
+
children = _this$props.children;
|
|
45
|
+
this.toggle = animate && !this.toggle;
|
|
46
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
48
|
+
className: ax([animate ? compiledStyles.flashWrapperAnimated : compiledStyles.flashWrapper, this.toggle ? '-flash' : ''])
|
|
49
|
+
}, children);
|
|
50
|
+
}
|
|
51
|
+
}]);
|
|
52
|
+
}(React.Component);
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
4
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
15
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
16
|
+
*
|
|
17
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
18
|
+
*/
|
|
19
|
+
import React from 'react';
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
22
|
+
import { css, jsx, keyframes } from '@emotion/react';
|
|
23
|
+
var pulseBackground = keyframes({
|
|
24
|
+
'50%': {
|
|
25
|
+
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
var pulseBackgroundReverse = keyframes({
|
|
29
|
+
'0%': {
|
|
30
|
+
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
31
|
+
},
|
|
32
|
+
'50%': {
|
|
33
|
+
backgroundColor: 'auto'
|
|
34
|
+
},
|
|
35
|
+
'100%': {
|
|
36
|
+
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
var flashWrapper = css({
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
|
+
'&.-flash > div': {
|
|
42
|
+
animationName: pulseBackgroundReverse,
|
|
43
|
+
animationDuration: '0.25s',
|
|
44
|
+
animationTimingFunction: 'ease-in-out'
|
|
45
|
+
},
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
47
|
+
'& > div': {
|
|
48
|
+
animation: 'none'
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
var flashWrapperAnimated = css(_defineProperty({}, "&.-flash > div", {
|
|
52
|
+
animationName: pulseBackground,
|
|
53
|
+
animationDuration: '0.25s',
|
|
54
|
+
animationTimingFunction: 'ease-in-out'
|
|
55
|
+
}));
|
|
56
|
+
// Ignored via go/ees005
|
|
57
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
58
|
+
export var WithFlashEmotion = /*#__PURE__*/function (_React$Component) {
|
|
59
|
+
function WithFlashEmotion() {
|
|
60
|
+
var _this;
|
|
61
|
+
_classCallCheck(this, WithFlashEmotion);
|
|
62
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
63
|
+
args[_key] = arguments[_key];
|
|
64
|
+
}
|
|
65
|
+
_this = _callSuper(this, WithFlashEmotion, [].concat(args));
|
|
66
|
+
_defineProperty(_this, "toggle", false);
|
|
67
|
+
return _this;
|
|
68
|
+
}
|
|
69
|
+
_inherits(WithFlashEmotion, _React$Component);
|
|
70
|
+
return _createClass(WithFlashEmotion, [{
|
|
71
|
+
key: "render",
|
|
72
|
+
value: function render() {
|
|
73
|
+
var _this$props = this.props,
|
|
74
|
+
animate = _this$props.animate,
|
|
75
|
+
children = _this$props.children;
|
|
76
|
+
this.toggle = animate && !this.toggle;
|
|
77
|
+
return (
|
|
78
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
79
|
+
jsx("div", {
|
|
80
|
+
css: animate ? flashWrapperAnimated : flashWrapper
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
82
|
+
,
|
|
83
|
+
className: this.toggle ? '-flash' : ''
|
|
84
|
+
}, children)
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
}]);
|
|
88
|
+
}(React.Component);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "219.9.
|
|
2
|
+
export var version = "219.9.10";
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
1
|
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
2
|
export interface Props {
|
|
8
3
|
animate: boolean;
|
|
9
4
|
children?: React.ReactNode;
|
|
10
5
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
render(): jsx.JSX.Element;
|
|
14
|
-
}
|
|
6
|
+
declare const WithFlash: React.ComponentType<Props>;
|
|
7
|
+
export default WithFlash;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
export interface Props {
|
|
13
|
+
animate: boolean;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare class WithFlashCompiled extends React.Component<Props> {
|
|
17
|
+
private toggle;
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
export interface Props {
|
|
13
|
+
animate: boolean;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare class WithFlashEmotion extends React.Component<Props> {
|
|
17
|
+
private toggle;
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
|
+
}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
1
|
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
2
|
export interface Props {
|
|
8
3
|
animate: boolean;
|
|
9
4
|
children?: React.ReactNode;
|
|
10
5
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
render(): jsx.JSX.Element;
|
|
14
|
-
}
|
|
6
|
+
declare const WithFlash: React.ComponentType<Props>;
|
|
7
|
+
export default WithFlash;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
export interface Props {
|
|
13
|
+
animate: boolean;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare class WithFlashCompiled extends React.Component<Props> {
|
|
17
|
+
private toggle;
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
export interface Props {
|
|
13
|
+
animate: boolean;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare class WithFlashEmotion extends React.Component<Props> {
|
|
17
|
+
private toggle;
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "219.9.
|
|
3
|
+
"version": "219.9.11",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/editor-toolbar-model": "^0.5.0",
|
|
67
67
|
"@atlaskit/emoji": "^70.10.0",
|
|
68
68
|
"@atlaskit/feature-gate-js-client": "^5.7.0",
|
|
69
|
-
"@atlaskit/icon": "^35.
|
|
69
|
+
"@atlaskit/icon": "^35.3.0",
|
|
70
70
|
"@atlaskit/link": "^3.4.0",
|
|
71
71
|
"@atlaskit/media-card": "^80.5.0",
|
|
72
72
|
"@atlaskit/mention": "^26.0.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^6.1.0",
|
|
76
76
|
"@atlaskit/task-decision": "^20.1.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
77
|
+
"@atlaskit/tmp-editor-statsig": "^84.0.0",
|
|
78
78
|
"@atlaskit/tokens": "^13.0.0",
|
|
79
79
|
"@atlaskit/tooltip": "^22.3.0",
|
|
80
80
|
"@atlaskit/width-detector": "^5.1.0",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"@atlassian/editor-rovo-bridge": "^8.11.0",
|
|
133
133
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
134
134
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
135
|
-
"@atlassian/search-client": "^1.
|
|
135
|
+
"@atlassian/search-client": "^1.9.0",
|
|
136
136
|
"@atlassian/search-provider": "^11.1.0",
|
|
137
137
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
138
138
|
"@atlassian/user-profile-card": "^1.5.0",
|