@atlaskit/editor-plugin-date 18.0.2 → 18.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-plugin-date
2
2
 
3
+ ## 18.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 18.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`d82ea790b5c1c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d82ea790b5c1c) -
14
+ Update registered slash-command menu icons, including the Jira datasource WorkItems icon, when the
15
+ `platform_editor_slash_command` experiment is enabled.
16
+ - Updated dependencies
17
+
3
18
  ## 18.0.2
4
19
 
5
20
  ### Patch Changes
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
@@ -9,8 +10,8 @@ var _react = _interopRequireWildcard(require("react"));
9
10
  var _reactIntl = require("react-intl");
10
11
  var _analytics = require("@atlaskit/editor-common/analytics");
11
12
  var _messages = require("@atlaskit/editor-common/messages");
12
- var _quickInsert = require("@atlaskit/editor-common/quick-insert");
13
13
  var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
14
+ var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/calendar"));
14
15
  var _actions = require("../../pm-plugins/actions");
15
16
  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
  var DateQuickInsertMenuItem = exports.DateQuickInsertMenuItem = function DateQuickInsertMenuItem(_ref) {
@@ -34,7 +35,9 @@ var DateQuickInsertMenuItem = exports.DateQuickInsertMenuItem = function DateQui
34
35
  return tr;
35
36
  }, [api]);
36
37
  return /*#__PURE__*/_react.default.createElement(_menuItem.QuickInsertMenuItem, {
37
- iconBefore: /*#__PURE__*/_react.default.createElement(_quickInsert.IconDate, null),
38
+ iconBefore: /*#__PURE__*/_react.default.createElement(_calendar.default, {
39
+ label: ""
40
+ }),
38
41
  onSelect: onSelect,
39
42
  shortcut: "//",
40
43
  title: formatMessage(_messages.toolbarInsertBlockMessages.date)
@@ -2,8 +2,8 @@ import React, { useCallback } from 'react';
2
2
  import { useIntl } from 'react-intl';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
- import { IconDate } from '@atlaskit/editor-common/quick-insert';
6
5
  import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
6
+ import CalendarIcon from '@atlaskit/icon/core/calendar';
7
7
  import { createDateAtTransaction } from '../../pm-plugins/actions';
8
8
  export const DateQuickInsertMenuItem = ({
9
9
  api
@@ -29,7 +29,9 @@ export const DateQuickInsertMenuItem = ({
29
29
  return tr;
30
30
  }, [api]);
31
31
  return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
32
- iconBefore: /*#__PURE__*/React.createElement(IconDate, null),
32
+ iconBefore: /*#__PURE__*/React.createElement(CalendarIcon, {
33
+ label: ""
34
+ }),
33
35
  onSelect: onSelect,
34
36
  shortcut: "//",
35
37
  title: formatMessage(messages.date)
@@ -2,8 +2,8 @@ import React, { useCallback } from 'react';
2
2
  import { useIntl } from 'react-intl';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
- import { IconDate } from '@atlaskit/editor-common/quick-insert';
6
5
  import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
6
+ import CalendarIcon from '@atlaskit/icon/core/calendar';
7
7
  import { createDateAtTransaction } from '../../pm-plugins/actions';
8
8
  export var DateQuickInsertMenuItem = function DateQuickInsertMenuItem(_ref) {
9
9
  var api = _ref.api;
@@ -26,7 +26,9 @@ export var DateQuickInsertMenuItem = function DateQuickInsertMenuItem(_ref) {
26
26
  return tr;
27
27
  }, [api]);
28
28
  return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
29
- iconBefore: /*#__PURE__*/React.createElement(IconDate, null),
29
+ iconBefore: /*#__PURE__*/React.createElement(CalendarIcon, {
30
+ label: ""
31
+ }),
30
32
  onSelect: onSelect,
31
33
  shortcut: "//",
32
34
  title: formatMessage(messages.date)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-date",
3
- "version": "18.0.2",
3
+ "version": "18.0.4",
4
4
  "description": "Date plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,9 +21,9 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^57.1.0",
24
+ "@atlaskit/adf-schema": "^57.2.0",
25
25
  "@atlaskit/calendar": "^19.1.0",
26
- "@atlaskit/css": "^1.0.0",
26
+ "@atlaskit/css": "^1.1.0",
27
27
  "@atlaskit/editor-plugin-analytics": "^16.0.0",
28
28
  "@atlaskit/editor-plugin-annotation": "^16.0.0",
29
29
  "@atlaskit/editor-plugin-editor-disabled": "^16.0.0",
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/platform-feature-experiments": "^0.3.0",
39
39
  "@atlaskit/platform-feature-flags": "^2.1.0",
40
40
  "@atlaskit/textfield": "^10.1.0",
41
- "@atlaskit/tmp-editor-statsig": "^162.0.0",
41
+ "@atlaskit/tmp-editor-statsig": "^163.0.0",
42
42
  "@atlaskit/tokens": "^16.8.0",
43
43
  "@atlaskit/visually-hidden": "^4.3.0",
44
44
  "@babel/runtime": "^7.0.0",
@@ -53,7 +53,7 @@
53
53
  "react-intl": "^7.0.0"
54
54
  },
55
55
  "peerDependencies": {
56
- "@atlaskit/editor-common": "^120.2.0",
56
+ "@atlaskit/editor-common": "^120.3.0",
57
57
  "react": "^18.2.0 || ^19.2.0",
58
58
  "react-dom": "^18.2.0 || ^19.2.0",
59
59
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"