@atlaskit/editor-plugin-date 0.3.0 → 0.3.2

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,18 @@
1
1
  # @atlaskit/editor-plugin-date
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136) [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) - Move all plugin translations to editor-common
8
+ - Updated dependencies
9
+
10
+ ## 0.3.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152) [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) - Updating adf-schema version to 35.5.1
15
+
3
16
  ## 0.3.0
4
17
 
5
18
  ### Minor Changes
@@ -17,6 +17,7 @@ var _react = _interopRequireDefault(require("react"));
17
17
  var _react2 = require("@emotion/react");
18
18
  var _reactIntlNext = require("react-intl-next");
19
19
  var _analytics = require("@atlaskit/editor-common/analytics");
20
+ var _messages = require("@atlaskit/editor-common/messages");
20
21
  var _form = require("@atlaskit/form");
21
22
  var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
22
23
  var _formatParse = require("../../utils/formatParse");
@@ -27,14 +28,6 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
27
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; } }
28
29
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
29
30
  var dateTextFieldWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n padding: 22px;\n padding-bottom: ", ";\n"])), "var(--ds-space-150, 12px)");
30
- var messages = (0, _reactIntlNext.defineMessages)({
31
- invalidDateError: {
32
- id: 'fabric.editor.invalidDateError',
33
- defaultMessage: 'Enter a valid date',
34
- description: 'Error message when the date typed in is invalid, requesting they inputs a new date'
35
- }
36
- });
37
-
38
31
  // eslint-disable-next-line @repo/internal/react/no-class-components
39
32
  var DatePickerInput = /*#__PURE__*/function (_React$Component) {
40
33
  (0, _inherits2.default)(DatePickerInput, _React$Component);
@@ -220,7 +213,7 @@ var DatePickerInput = /*#__PURE__*/function (_React$Component) {
220
213
  spellCheck: false,
221
214
  autoComplete: "off",
222
215
  isInvalid: displayError
223
- }), displayError && (0, _react2.jsx)(_form.ErrorMessage, null, formatMessage(messages.invalidDateError)));
216
+ }), displayError && (0, _react2.jsx)(_form.ErrorMessage, null, formatMessage(_messages.dateMessages.invalidDateError)));
224
217
  }
225
218
  }, {
226
219
  key: "componentDidUpdate",
@@ -2,8 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /** @jsx jsx */
3
3
  import React from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
- import { defineMessages, injectIntl } from 'react-intl-next';
5
+ import { injectIntl } from 'react-intl-next';
6
6
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
7
+ import { dateMessages as messages } from '@atlaskit/editor-common/messages';
7
8
  import { ErrorMessage } from '@atlaskit/form';
8
9
  import TextField from '@atlaskit/textfield';
9
10
  import { formatDateType, parseDateType } from '../../utils/formatParse';
@@ -14,14 +15,6 @@ const dateTextFieldWrapper = css`
14
15
  padding: 22px;
15
16
  padding-bottom: ${"var(--ds-space-150, 12px)"};
16
17
  `;
17
- const messages = defineMessages({
18
- invalidDateError: {
19
- id: 'fabric.editor.invalidDateError',
20
- defaultMessage: 'Enter a valid date',
21
- description: 'Error message when the date typed in is invalid, requesting they inputs a new date'
22
- }
23
- });
24
-
25
18
  // eslint-disable-next-line @repo/internal/react/no-class-components
26
19
  class DatePickerInput extends React.Component {
27
20
  constructor(props) {
@@ -12,8 +12,9 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
12
12
  /** @jsx jsx */
13
13
  import React from 'react';
14
14
  import { css, jsx } from '@emotion/react';
15
- import { defineMessages, injectIntl } from 'react-intl-next';
15
+ import { injectIntl } from 'react-intl-next';
16
16
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
17
+ import { dateMessages as messages } from '@atlaskit/editor-common/messages';
17
18
  import { ErrorMessage } from '@atlaskit/form';
18
19
  import TextField from '@atlaskit/textfield';
19
20
  import { formatDateType, parseDateType } from '../../utils/formatParse';
@@ -21,14 +22,6 @@ import { adjustDate, findDateSegmentByPosition, isDatePossiblyValid } from '../.
21
22
 
22
23
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
23
24
  var dateTextFieldWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 22px;\n padding-bottom: ", ";\n"])), "var(--ds-space-150, 12px)");
24
- var messages = defineMessages({
25
- invalidDateError: {
26
- id: 'fabric.editor.invalidDateError',
27
- defaultMessage: 'Enter a valid date',
28
- description: 'Error message when the date typed in is invalid, requesting they inputs a new date'
29
- }
30
- });
31
-
32
25
  // eslint-disable-next-line @repo/internal/react/no-class-components
33
26
  var DatePickerInput = /*#__PURE__*/function (_React$Component) {
34
27
  _inherits(DatePickerInput, _React$Component);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-date",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
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.3.0",
35
+ "@atlaskit/adf-schema": "^35.5.1",
36
36
  "@atlaskit/calendar": "^14.0.3",
37
37
  "@atlaskit/date": "^0.10.0",
38
- "@atlaskit/editor-common": "^77.1.0",
38
+ "@atlaskit/editor-common": "^77.3.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
40
40
  "@atlaskit/editor-plugin-editor-disabled": "^0.2.0",
41
41
  "@atlaskit/editor-prosemirror": "1.1.0",
@@ -60,7 +60,7 @@
60
60
  "@atlaskit/editor-plugin-guideline": "^0.5.0",
61
61
  "@atlaskit/editor-plugin-quick-insert": "^0.2.0",
62
62
  "@atlaskit/editor-plugin-selection": "^0.2.0",
63
- "@atlaskit/editor-plugin-table": "^7.1.0",
63
+ "@atlaskit/editor-plugin-table": "^7.2.0",
64
64
  "@atlaskit/editor-plugin-tasks-and-decisions": "^0.3.0",
65
65
  "@atlaskit/editor-plugin-type-ahead": "^0.9.0",
66
66
  "@atlaskit/editor-plugin-width": "^0.2.0",