@atlaskit/editor-plugin-date 1.0.2 → 1.0.4
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 +13 -0
- package/dist/cjs/plugin.js +2 -2
- package/dist/cjs/ui/DatePicker/date-picker-input.js +1 -1
- package/dist/cjs/ui/DatePicker/index.js +7 -5
- package/dist/es2019/ui/DatePicker/index.js +6 -6
- package/dist/esm/ui/DatePicker/date-picker-input.js +1 -1
- package/dist/esm/ui/DatePicker/index.js +7 -4
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-date
|
|
2
2
|
|
|
3
|
+
## 1.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#80391](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80391) [`bf741c7ef44c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bf741c7ef44c) - Make @atlaskit/editor-plugin-table, @atlaskit/date, @atlaskit/editor-plugin-date React 18 compatible.
|
|
8
|
+
|
|
9
|
+
## 1.0.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#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
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 1.0.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -19,8 +19,8 @@ var _commands = require("./commands");
|
|
|
19
19
|
var _keymap = _interopRequireDefault(require("./pm-plugins/keymap"));
|
|
20
20
|
var _main = _interopRequireDefault(require("./pm-plugins/main"));
|
|
21
21
|
var _pluginKey = require("./pm-plugins/plugin-key");
|
|
22
|
-
function _getRequireWildcardCache(
|
|
23
|
-
function _interopRequireWildcard(
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
24
|
var DatePicker = (0, _reactLoadable.default)({
|
|
25
25
|
loader: function loader() {
|
|
26
26
|
return Promise.resolve().then(function () {
|
|
@@ -25,7 +25,7 @@ var _internal = require("../../utils/internal");
|
|
|
25
25
|
var _templateObject;
|
|
26
26
|
/** @jsx jsx */
|
|
27
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); }; }
|
|
28
|
-
function _isNativeReflectConstruct() {
|
|
28
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
29
29
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
30
30
|
var dateTextFieldWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n padding: 22px;\n padding-bottom: ", ";\n"])), "var(--ds-space-150, 12px)");
|
|
31
31
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -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() {
|
|
28
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @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) {
|
|
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
9
9
|
var _templateObject;
|
|
10
10
|
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
|
-
function _isNativeReflectConstruct() {
|
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
/** @jsx jsx */
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { css, jsx } from '@emotion/react';
|
|
@@ -5,10 +5,8 @@ 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
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
10
|
/** @jsx jsx */
|
|
13
11
|
import React from 'react';
|
|
14
12
|
import { css, jsx } from '@emotion/react';
|
|
@@ -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.4",
|
|
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.11.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.5.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",
|