@atlaskit/editor-plugin-date 1.0.2 → 1.0.3
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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-date
|
|
2
2
|
|
|
3
|
+
## 1.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224) [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) - ED-22219: adf-schema updated to 35.5.2
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 1.0.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -12,7 +12,6 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
12
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
16
15
|
var _react = _interopRequireDefault(require("react"));
|
|
17
16
|
var _react2 = require("@emotion/react");
|
|
18
17
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
@@ -25,13 +24,16 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
|
25
24
|
var _colors = require("@atlaskit/theme/colors");
|
|
26
25
|
var _constants = require("@atlaskit/theme/constants");
|
|
27
26
|
var _datePickerInput = _interopRequireDefault(require("./date-picker-input"));
|
|
28
|
-
var _templateObject;
|
|
29
|
-
/** @jsx jsx */
|
|
30
27
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
31
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
28
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
32
29
|
var PopupWithListeners = (0, _ui.withOuterListeners)(_ui.Popup);
|
|
33
30
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
34
|
-
var popupContentWrapper = (0, _react2.css)(
|
|
31
|
+
var popupContentWrapper = (0, _react2.css)({
|
|
32
|
+
padding: "var(--ds-space-025, 2px)",
|
|
33
|
+
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
34
|
+
boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N60A, ", 0 0 1px ").concat(_colors.N60A), ")"),
|
|
35
|
+
backgroundColor: "var(--ds-surface-overlay, ".concat(_colors.N0, ")")
|
|
36
|
+
});
|
|
35
37
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
36
38
|
var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
37
39
|
(0, _inherits2.default)(DatePicker, _React$Component);
|
|
@@ -15,12 +15,12 @@ const PopupWithListeners = withOuterListeners(Popup);
|
|
|
15
15
|
import DatePickerInput from './date-picker-input';
|
|
16
16
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
18
|
-
const popupContentWrapper = css
|
|
19
|
-
padding:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
const popupContentWrapper = css({
|
|
19
|
+
padding: "var(--ds-space-025, 2px)",
|
|
20
|
+
borderRadius: `${borderRadius()}px`,
|
|
21
|
+
boxShadow: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`,
|
|
22
|
+
backgroundColor: `var(--ds-surface-overlay, ${N0})`
|
|
23
|
+
});
|
|
24
24
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
25
25
|
class DatePicker extends React.Component {
|
|
26
26
|
constructor(props) {
|
|
@@ -5,8 +5,6 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
9
|
-
var _templateObject;
|
|
10
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
9
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
10
|
/** @jsx jsx */
|
|
@@ -25,7 +23,12 @@ var PopupWithListeners = withOuterListeners(Popup);
|
|
|
25
23
|
import DatePickerInput from './date-picker-input';
|
|
26
24
|
|
|
27
25
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
28
|
-
var popupContentWrapper = css(
|
|
26
|
+
var popupContentWrapper = css({
|
|
27
|
+
padding: "var(--ds-space-025, 2px)",
|
|
28
|
+
borderRadius: "".concat(borderRadius(), "px"),
|
|
29
|
+
boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"),
|
|
30
|
+
backgroundColor: "var(--ds-surface-overlay, ".concat(N0, ")")
|
|
31
|
+
});
|
|
29
32
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
30
33
|
var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
31
34
|
_inherits(DatePicker, _React$Component);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^35.5.
|
|
35
|
+
"@atlaskit/adf-schema": "^35.5.2",
|
|
36
36
|
"@atlaskit/calendar": "^14.0.3",
|
|
37
37
|
"@atlaskit/date": "^0.10.0",
|
|
38
|
-
"@atlaskit/editor-common": "^78.
|
|
38
|
+
"@atlaskit/editor-common": "^78.10.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-disabled": "^1.0.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/locale": "^2.6.0",
|
|
45
45
|
"@atlaskit/textfield": "6.0.1",
|
|
46
46
|
"@atlaskit/theme": "^12.6.0",
|
|
47
|
-
"@atlaskit/tokens": "^1.
|
|
47
|
+
"@atlaskit/tokens": "^1.39.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
|
50
50
|
"date-fns": "^2.17.0",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
60
60
|
"@atlaskit/editor-plugin-guideline": "^1.0.0",
|
|
61
61
|
"@atlaskit/editor-plugin-quick-insert": "^1.0.0",
|
|
62
|
-
"@atlaskit/editor-plugin-selection": "^1.
|
|
63
|
-
"@atlaskit/editor-plugin-table": "^7.
|
|
62
|
+
"@atlaskit/editor-plugin-selection": "^1.1.0",
|
|
63
|
+
"@atlaskit/editor-plugin-table": "^7.4.0",
|
|
64
64
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^1.0.0",
|
|
65
65
|
"@atlaskit/editor-plugin-type-ahead": "^1.0.0",
|
|
66
66
|
"@atlaskit/editor-plugin-width": "^1.0.0",
|