@atlaskit/editor-core 219.9.8 → 219.9.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 +8 -0
- package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-compiled.compiled.css +17 -0
- package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +34 -0
- package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +37 -0
- package/dist/cjs/ui/ChromeCollapsed/index.js +10 -11
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-compiled.compiled.css +17 -0
- package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +23 -0
- package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +27 -0
- package/dist/es2019/ui/ChromeCollapsed/index.js +7 -13
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-compiled.compiled.css +17 -0
- package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +25 -0
- package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +29 -0
- package/dist/esm/ui/ChromeCollapsed/index.js +9 -13
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-compiled.d.ts +13 -0
- package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-emotion.d.ts +13 -0
- package/dist/types/ui/ChromeCollapsed/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/ChromeCollapsed/ChromeCollapsed-compiled.d.ts +13 -0
- package/dist/types-ts4.5/ui/ChromeCollapsed/ChromeCollapsed-emotion.d.ts +13 -0
- package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +0 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 219.9.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6ac4a00689c60`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6ac4a00689c60) -
|
|
8
|
+
Migrate ui/ChromeCollapsed styles
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 219.9.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
._19it19hj{border:1px solid var(--ds-border-input,#8c8f97)}
|
|
3
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
4
|
+
._1bsb1osq{width:100%}
|
|
5
|
+
._1dyzdjp5{letter-spacing:-.005em}
|
|
6
|
+
._1wyboxwj{font-size:.875rem}
|
|
7
|
+
._4t3i1ylp{height:40px}
|
|
8
|
+
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
9
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
10
|
+
._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
|
|
11
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
12
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}
|
|
13
|
+
._vchhusvi{box-sizing:border-box}
|
|
14
|
+
._vwz41aog{line-height:1.42857142857143}
|
|
15
|
+
._4cvxrsbi:hover{border-color:var(--ds-border-input,#8c8f97)}
|
|
16
|
+
._d0al1kdv:hover{cursor:text}
|
|
17
|
+
._irr3l4ek:hover{background-color:var(--ds-background-input-hovered,#f8f8f8)}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* ChromeCollapsed-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.ChromeCollapsedCompiled = void 0;
|
|
10
|
+
require("./ChromeCollapsed-compiled.compiled.css");
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
|
|
13
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
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
|
+
/**
|
|
17
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
18
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
19
|
+
*
|
|
20
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
21
|
+
*/
|
|
22
|
+
var inputCompiledStyles = {
|
|
23
|
+
root: "_19it19hj _2rkofajl _bfhk1j9a _vchhusvi _4t3i1ylp _19bvv47k _ca0qutpp _n3tdutpp _1wyboxwj _1bsb1osq _k48pi7a9 _vwz41aog _1dyzdjp5 _syaz1rpy _4cvxrsbi _irr3l4ek _d0al1kdv"
|
|
24
|
+
};
|
|
25
|
+
var ChromeCollapsedCompiled = exports.ChromeCollapsedCompiled = /*#__PURE__*/(0, _react.forwardRef)(
|
|
26
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
27
|
+
function (_ref, ref) {
|
|
28
|
+
var rest = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref));
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement("input", (0, _extends2.default)({
|
|
30
|
+
ref: ref
|
|
31
|
+
}, rest, {
|
|
32
|
+
className: (0, _runtime.ax)([inputCompiledStyles.root])
|
|
33
|
+
}));
|
|
34
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ChromeCollapsedEmotion = void 0;
|
|
8
|
+
var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _react = require("react");
|
|
11
|
+
var _react2 = require("@emotion/react");
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
/**
|
|
19
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
20
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
21
|
+
*
|
|
22
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
23
|
+
**/
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- intentional: emotion fallback for compiled migration
|
|
28
|
+
|
|
29
|
+
var ChromeCollapsedEmotion = exports.ChromeCollapsedEmotion = /*#__PURE__*/(0, _react.forwardRef)(
|
|
30
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- intentional: emotion fallback for compiled migration
|
|
31
|
+
function (_ref, ref) {
|
|
32
|
+
var rest = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref));
|
|
33
|
+
return (0, _react2.jsx)("input", (0, _extends2.default)({
|
|
34
|
+
ref: ref,
|
|
35
|
+
css: _styles.inputStyle
|
|
36
|
+
}, rest));
|
|
37
|
+
});
|
|
@@ -13,16 +13,18 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
13
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
|
-
var _react2 = require("@emotion/react");
|
|
17
16
|
var _reactIntl = require("react-intl");
|
|
17
|
+
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
18
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
|
+
var _ChromeCollapsedCompiled = require("./ChromeCollapsed-compiled");
|
|
20
|
+
var _ChromeCollapsedEmotion = require("./ChromeCollapsed-emotion");
|
|
18
21
|
var _messages = require("./messages");
|
|
19
|
-
var _styles = require("./styles");
|
|
20
22
|
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); }
|
|
21
23
|
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)); }
|
|
22
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
|
+
var InputMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
26
|
+
return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
27
|
+
}, _ChromeCollapsedCompiled.ChromeCollapsedCompiled, _ChromeCollapsedEmotion.ChromeCollapsedEmotion);
|
|
26
28
|
// Ignored via go/ees005
|
|
27
29
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
28
30
|
var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -57,11 +59,8 @@ var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
59
|
key: "render",
|
|
58
60
|
value: function render() {
|
|
59
61
|
var placeholder = this.props.text || this.props.intl.formatMessage(_messages.messages.chromeCollapsedPlaceholder);
|
|
60
|
-
return
|
|
61
|
-
"data-testid": "chrome-collapsed"
|
|
62
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
63
|
-
,
|
|
64
|
-
css: _styles.inputStyle,
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement(InputMigration, {
|
|
63
|
+
"data-testid": "chrome-collapsed",
|
|
65
64
|
ref: this.handleInputRef,
|
|
66
65
|
onFocus: this.focusHandler,
|
|
67
66
|
placeholder: placeholder,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
._19it19hj{border:1px solid var(--ds-border-input,#8c8f97)}
|
|
3
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
4
|
+
._1bsb1osq{width:100%}
|
|
5
|
+
._1dyzdjp5{letter-spacing:-.005em}
|
|
6
|
+
._1wyboxwj{font-size:.875rem}
|
|
7
|
+
._4t3i1ylp{height:40px}
|
|
8
|
+
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
9
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
10
|
+
._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
|
|
11
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
12
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}
|
|
13
|
+
._vchhusvi{box-sizing:border-box}
|
|
14
|
+
._vwz41aog{line-height:1.42857142857143}
|
|
15
|
+
._4cvxrsbi:hover{border-color:var(--ds-border-input,#8c8f97)}
|
|
16
|
+
._d0al1kdv:hover{cursor:text}
|
|
17
|
+
._irr3l4ek:hover{background-color:var(--ds-background-input-hovered,#f8f8f8)}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* ChromeCollapsed-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./ChromeCollapsed-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, { forwardRef } from 'react';
|
|
12
|
+
const inputCompiledStyles = {
|
|
13
|
+
root: "_19it19hj _2rkofajl _bfhk1j9a _vchhusvi _4t3i1ylp _19bvv47k _ca0qutpp _n3tdutpp _1wyboxwj _1bsb1osq _k48pi7a9 _vwz41aog _1dyzdjp5 _syaz1rpy _4cvxrsbi _irr3l4ek _d0al1kdv"
|
|
14
|
+
};
|
|
15
|
+
export const ChromeCollapsedCompiled = /*#__PURE__*/forwardRef(
|
|
16
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
17
|
+
({
|
|
18
|
+
...rest
|
|
19
|
+
}, ref) => /*#__PURE__*/React.createElement("input", _extends({
|
|
20
|
+
ref: ref
|
|
21
|
+
}, rest, {
|
|
22
|
+
className: ax([inputCompiledStyles.root])
|
|
23
|
+
})));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
/**
|
|
8
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
9
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
10
|
+
*
|
|
11
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
12
|
+
**/
|
|
13
|
+
|
|
14
|
+
import { forwardRef } from 'react';
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
16
|
+
import { jsx } from '@emotion/react';
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- intentional: emotion fallback for compiled migration
|
|
19
|
+
import { inputStyle } from './styles';
|
|
20
|
+
export const ChromeCollapsedEmotion = /*#__PURE__*/forwardRef(
|
|
21
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- intentional: emotion fallback for compiled migration
|
|
22
|
+
({
|
|
23
|
+
...rest
|
|
24
|
+
}, ref) => jsx("input", _extends({
|
|
25
|
+
ref: ref,
|
|
26
|
+
css: inputStyle
|
|
27
|
+
}, rest)));
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
2
|
import React, { PureComponent } from 'react';
|
|
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 { jsx } from '@emotion/react';
|
|
10
3
|
import { injectIntl } from 'react-intl';
|
|
4
|
+
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
5
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
|
+
import { ChromeCollapsedCompiled } from './ChromeCollapsed-compiled';
|
|
7
|
+
import { ChromeCollapsedEmotion } from './ChromeCollapsed-emotion';
|
|
11
8
|
import { messages } from './messages';
|
|
12
|
-
|
|
9
|
+
const InputMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), ChromeCollapsedCompiled, ChromeCollapsedEmotion);
|
|
13
10
|
// Ignored via go/ees005
|
|
14
11
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
15
12
|
class ChromeCollapsed extends PureComponent {
|
|
@@ -35,11 +32,8 @@ class ChromeCollapsed extends PureComponent {
|
|
|
35
32
|
}
|
|
36
33
|
render() {
|
|
37
34
|
const placeholder = this.props.text || this.props.intl.formatMessage(messages.chromeCollapsedPlaceholder);
|
|
38
|
-
return
|
|
39
|
-
"data-testid": "chrome-collapsed"
|
|
40
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
41
|
-
,
|
|
42
|
-
css: inputStyle,
|
|
35
|
+
return /*#__PURE__*/React.createElement(InputMigration, {
|
|
36
|
+
"data-testid": "chrome-collapsed",
|
|
43
37
|
ref: this.handleInputRef,
|
|
44
38
|
onFocus: this.focusHandler,
|
|
45
39
|
placeholder: placeholder,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "219.9.
|
|
2
|
+
export const version = "219.9.8";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
._19it19hj{border:1px solid var(--ds-border-input,#8c8f97)}
|
|
3
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
4
|
+
._1bsb1osq{width:100%}
|
|
5
|
+
._1dyzdjp5{letter-spacing:-.005em}
|
|
6
|
+
._1wyboxwj{font-size:.875rem}
|
|
7
|
+
._4t3i1ylp{height:40px}
|
|
8
|
+
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
9
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
10
|
+
._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
|
|
11
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
12
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}
|
|
13
|
+
._vchhusvi{box-sizing:border-box}
|
|
14
|
+
._vwz41aog{line-height:1.42857142857143}
|
|
15
|
+
._4cvxrsbi:hover{border-color:var(--ds-border-input,#8c8f97)}
|
|
16
|
+
._d0al1kdv:hover{cursor:text}
|
|
17
|
+
._irr3l4ek:hover{background-color:var(--ds-background-input-hovered,#f8f8f8)}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* ChromeCollapsed-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import "./ChromeCollapsed-compiled.compiled.css";
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
/**
|
|
7
|
+
* Compiled 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, { forwardRef } from 'react';
|
|
13
|
+
var inputCompiledStyles = {
|
|
14
|
+
root: "_19it19hj _2rkofajl _bfhk1j9a _vchhusvi _4t3i1ylp _19bvv47k _ca0qutpp _n3tdutpp _1wyboxwj _1bsb1osq _k48pi7a9 _vwz41aog _1dyzdjp5 _syaz1rpy _4cvxrsbi _irr3l4ek _d0al1kdv"
|
|
15
|
+
};
|
|
16
|
+
export var ChromeCollapsedCompiled = /*#__PURE__*/forwardRef(
|
|
17
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
18
|
+
function (_ref, ref) {
|
|
19
|
+
var rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
20
|
+
return /*#__PURE__*/React.createElement("input", _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, rest, {
|
|
23
|
+
className: ax([inputCompiledStyles.root])
|
|
24
|
+
}));
|
|
25
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
/**
|
|
9
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
10
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
11
|
+
*
|
|
12
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
13
|
+
**/
|
|
14
|
+
|
|
15
|
+
import { forwardRef } from 'react';
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
17
|
+
import { jsx } from '@emotion/react';
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- intentional: emotion fallback for compiled migration
|
|
20
|
+
import { inputStyle } from './styles';
|
|
21
|
+
export var ChromeCollapsedEmotion = /*#__PURE__*/forwardRef(
|
|
22
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- intentional: emotion fallback for compiled migration
|
|
23
|
+
function (_ref, ref) {
|
|
24
|
+
var rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
25
|
+
return jsx("input", _extends({
|
|
26
|
+
ref: ref,
|
|
27
|
+
css: inputStyle
|
|
28
|
+
}, rest));
|
|
29
|
+
});
|
|
@@ -6,17 +6,16 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
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
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
9
|
import React, { PureComponent } 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 { jsx } from '@emotion/react';
|
|
17
10
|
import { injectIntl } from 'react-intl';
|
|
11
|
+
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
12
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
|
+
import { ChromeCollapsedCompiled } from './ChromeCollapsed-compiled';
|
|
14
|
+
import { ChromeCollapsedEmotion } from './ChromeCollapsed-emotion';
|
|
18
15
|
import { messages } from './messages';
|
|
19
|
-
|
|
16
|
+
var InputMigration = componentWithCondition(function () {
|
|
17
|
+
return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
18
|
+
}, ChromeCollapsedCompiled, ChromeCollapsedEmotion);
|
|
20
19
|
// Ignored via go/ees005
|
|
21
20
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
22
21
|
var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -51,11 +50,8 @@ var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
|
|
|
51
50
|
key: "render",
|
|
52
51
|
value: function render() {
|
|
53
52
|
var placeholder = this.props.text || this.props.intl.formatMessage(messages.chromeCollapsedPlaceholder);
|
|
54
|
-
return
|
|
55
|
-
"data-testid": "chrome-collapsed"
|
|
56
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
57
|
-
,
|
|
58
|
-
css: inputStyle,
|
|
53
|
+
return /*#__PURE__*/React.createElement(InputMigration, {
|
|
54
|
+
"data-testid": "chrome-collapsed",
|
|
59
55
|
ref: this.handleInputRef,
|
|
60
56
|
onFocus: this.focusHandler,
|
|
61
57
|
placeholder: placeholder,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "219.9.
|
|
2
|
+
export var version = "219.9.8";
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
import type { InputHTMLAttributes } from 'react';
|
|
13
|
+
export declare const ChromeCollapsedCompiled: React.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
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 type { InputHTMLAttributes } from 'react';
|
|
13
|
+
export declare const ChromeCollapsedEmotion: React.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
import type { InputHTMLAttributes } from 'react';
|
|
13
|
+
export declare const ChromeCollapsedCompiled: React.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
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 type { InputHTMLAttributes } from 'react';
|
|
13
|
+
export declare const ChromeCollapsedEmotion: React.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|