@atlaskit/editor-plugin-synced-block 7.0.0 → 8.0.1

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,30 @@
1
1
  # @atlaskit/editor-plugin-synced-block
2
2
 
3
+ ## 8.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 8.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
14
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
15
+
16
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
17
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
18
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
19
+
20
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
21
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
22
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 7.0.0
4
29
 
5
30
  ### Patch Changes
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.CreateSyncedBlockButton = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _hooks = require("@atlaskit/editor-common/hooks");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
@@ -18,7 +18,7 @@ var _types = require("../types");
18
18
  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); }
19
19
  var CreateSyncedBlockButton = exports.CreateSyncedBlockButton = function CreateSyncedBlockButton(_ref) {
20
20
  var api = _ref.api;
21
- var intl = (0, _reactIntlNext.useIntl)();
21
+ var intl = (0, _reactIntl.useIntl)();
22
22
  var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['selection', 'connectivity'], function (states) {
23
23
  var _states$selectionStat, _states$connectivityS;
24
24
  return {
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.CreateOrCopySyncedBlockDropdownItem = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _analytics = require("@atlaskit/editor-common/analytics");
12
12
  var _hooks = require("@atlaskit/editor-common/hooks");
13
13
  var _messages = require("@atlaskit/editor-common/messages");
@@ -20,7 +20,7 @@ var _types = require("../types");
20
20
  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
21
  var CreateSyncedBlockDropdownItem = function CreateSyncedBlockDropdownItem(_ref) {
22
22
  var api = _ref.api;
23
- var _useIntl = (0, _reactIntlNext.useIntl)(),
23
+ var _useIntl = (0, _reactIntl.useIntl)(),
24
24
  formatMessage = _useIntl.formatMessage;
25
25
  var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['selection', 'blockControls', 'connectivity'], function (states) {
26
26
  var _states$selectionStat, _states$blockControls, _states$blockControls2, _states$connectivityS;
@@ -63,7 +63,7 @@ var CreateSyncedBlockDropdownItem = function CreateSyncedBlockDropdownItem(_ref)
63
63
  };
64
64
  var CopySyncedBlockDropdownItem = function CopySyncedBlockDropdownItem(_ref2) {
65
65
  var api = _ref2.api;
66
- var _useIntl2 = (0, _reactIntlNext.useIntl)(),
66
+ var _useIntl2 = (0, _reactIntl.useIntl)(),
67
67
  formatMessage = _useIntl2.formatMessage;
68
68
  var _useSharedPluginState2 = (0, _hooks.useSharedPluginStateWithSelector)(api, ['connectivity'], function (states) {
69
69
  var _states$connectivityS2;
@@ -13,7 +13,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
13
13
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
14
14
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
15
  var _react = _interopRequireWildcard(require("react"));
16
- var _reactIntlNext = require("react-intl-next");
16
+ var _reactIntl = require("react-intl");
17
17
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
18
18
  var _hooks = require("@atlaskit/editor-common/hooks");
19
19
  var _messages = require("@atlaskit/editor-common/messages");
@@ -104,7 +104,7 @@ var DeleteConfirmationModal = exports.DeleteConfirmationModal = function DeleteC
104
104
  mode = _useSharedPluginState.mode,
105
105
  bodiedSyncBlockDeletionStatus = _useSharedPluginState.bodiedSyncBlockDeletionStatus,
106
106
  activeFlag = _useSharedPluginState.activeFlag;
107
- var _useIntl = (0, _reactIntlNext.useIntl)(),
107
+ var _useIntl = (0, _reactIntl.useIntl)(),
108
108
  formatMessage = _useIntl.formatMessage;
109
109
  var resolverRef = _react.default.useRef(undefined);
110
110
  var handleClick = (0, _react.useCallback)(function (confirm) {
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.Flag = void 0;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
- var _reactIntlNext = require("react-intl-next");
11
+ var _reactIntl = require("react-intl");
12
12
  var _hooks = require("@atlaskit/editor-common/hooks");
13
13
  var _messages = require("@atlaskit/editor-common/messages");
14
14
  var _syncBlock = require("@atlaskit/editor-common/sync-block");
@@ -72,7 +72,7 @@ var Flag = exports.Flag = function Flag(_ref) {
72
72
  }),
73
73
  activeFlag = _useSharedPluginState.activeFlag,
74
74
  mode = _useSharedPluginState.mode;
75
- var _useIntl = (0, _reactIntlNext.useIntl)(),
75
+ var _useIntl = (0, _reactIntl.useIntl)(),
76
76
  formatMessage = _useIntl.formatMessage;
77
77
  if (!activeFlag) {
78
78
  return;
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.SyncBlockLabel = void 0;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
- var _reactIntlNext = require("react-intl-next");
11
+ var _reactIntl = require("react-intl");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _syncBlock = require("@atlaskit/editor-common/sync-block");
14
14
  var _blockSynced = _interopRequireDefault(require("@atlaskit/icon-lab/core/block-synced"));
@@ -25,7 +25,7 @@ var SyncBlockLabelComponent = function SyncBlockLabelComponent(_ref) {
25
25
  localId = _ref.localId,
26
26
  title = _ref.title,
27
27
  isUnsyncedBlock = _ref.isUnsyncedBlock;
28
- var intl = (0, _reactIntlNext.useIntl)();
28
+ var intl = (0, _reactIntl.useIntl)();
29
29
  var formatMessage = intl.formatMessage;
30
30
  var _useState = (0, _react.useState)(formatMessage(_messages.syncBlockMessages.defaultSyncBlockTooltip)),
31
31
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
4
4
  import { syncBlockMessages } from '@atlaskit/editor-common/messages';
5
5
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo } from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
5
5
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
@@ -2,7 +2,7 @@
2
2
  import "./DeleteConfirmationModal.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, useEffect, useState } from 'react';
5
- import { useIntl } from 'react-intl-next';
5
+ import { useIntl } from 'react-intl';
6
6
  import Button from '@atlaskit/button/new';
7
7
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
8
8
  import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
4
4
  import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block';
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useMemo, useState } from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
4
4
  import { SyncBlockLabelSharedCssClassName } from '@atlaskit/editor-common/sync-block';
5
5
  import BlockSyncedIcon from '@atlaskit/icon-lab/core/block-synced';
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
4
4
  import { syncBlockMessages } from '@atlaskit/editor-common/messages';
5
5
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo } from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
5
5
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
@@ -5,7 +5,7 @@ import "./DeleteConfirmationModal.compiled.css";
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import _regeneratorRuntime from "@babel/runtime/regenerator";
7
7
  import React, { useCallback, useEffect, useState } from 'react';
8
- import { useIntl } from 'react-intl-next';
8
+ import { useIntl } from 'react-intl';
9
9
  import Button from '@atlaskit/button/new';
10
10
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
11
11
  import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import React from 'react';
5
- import { useIntl } from 'react-intl-next';
5
+ import { useIntl } from 'react-intl';
6
6
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
7
7
  import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
8
8
  import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block';
@@ -1,6 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useCallback, useMemo, useState } from 'react';
3
- import { useIntl } from 'react-intl-next';
3
+ import { useIntl } from 'react-intl';
4
4
  import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { SyncBlockLabelSharedCssClassName } from '@atlaskit/editor-common/sync-block';
6
6
  import BlockSyncedIcon from '@atlaskit/icon-lab/core/block-synced';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { SyncBlockSourceInfo, SyncBlockStoreManager, ReferencesSourceInfo } from '@atlaskit/editor-synced-block-provider';
4
4
  import type { SyncedBlockPlugin } from '../syncedBlockPluginType';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { ExtractInjectionAPI, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
3
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
@@ -1,2 +1,2 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  export declare const formatElapsedTime: (isoDate: string, intl: IntlShape) => string;
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { SyncBlockSourceInfo, SyncBlockStoreManager, ReferencesSourceInfo } from '@atlaskit/editor-synced-block-provider';
4
4
  import type { SyncedBlockPlugin } from '../syncedBlockPluginType';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { ExtractInjectionAPI, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
3
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { SyncBlockStoreManager } from '@atlaskit/editor-synced-block-provider';
@@ -1,2 +1,2 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  export declare const formatElapsedTime: (isoDate: string, intl: IntlShape) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-synced-block",
3
- "version": "7.0.0",
3
+ "version": "8.0.1",
4
4
  "description": "SyncedBlock plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,19 +32,19 @@
32
32
  "@atlaskit/button": "23.11.3",
33
33
  "@atlaskit/dropdown-menu": "16.8.9",
34
34
  "@atlaskit/editor-json-transformer": "^8.31.0",
35
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
36
- "@atlaskit/editor-plugin-block-menu": "^8.0.0",
37
- "@atlaskit/editor-plugin-connectivity": "9.0.0",
38
- "@atlaskit/editor-plugin-content-format": "^3.0.0",
39
- "@atlaskit/editor-plugin-decorations": "^9.0.0",
40
- "@atlaskit/editor-plugin-floating-toolbar": "^11.0.0",
41
- "@atlaskit/editor-plugin-focus": "^8.0.0",
42
- "@atlaskit/editor-plugin-selection": "^9.0.0",
43
- "@atlaskit/editor-plugin-user-intent": "^7.0.0",
35
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
36
+ "@atlaskit/editor-plugin-block-menu": "^9.0.0",
37
+ "@atlaskit/editor-plugin-connectivity": "10.0.0",
38
+ "@atlaskit/editor-plugin-content-format": "^4.0.0",
39
+ "@atlaskit/editor-plugin-decorations": "^10.0.0",
40
+ "@atlaskit/editor-plugin-floating-toolbar": "^12.0.0",
41
+ "@atlaskit/editor-plugin-focus": "^9.0.0",
42
+ "@atlaskit/editor-plugin-selection": "^10.0.0",
43
+ "@atlaskit/editor-plugin-user-intent": "^8.0.0",
44
44
  "@atlaskit/editor-prosemirror": "^7.3.0",
45
45
  "@atlaskit/editor-shared-styles": "^3.10.0",
46
- "@atlaskit/editor-synced-block-provider": "^5.0.0",
47
- "@atlaskit/editor-toolbar": "^0.20.0",
46
+ "@atlaskit/editor-synced-block-provider": "^6.1.0",
47
+ "@atlaskit/editor-toolbar": "^1.0.0",
48
48
  "@atlaskit/flag": "^17.9.0",
49
49
  "@atlaskit/icon": "34.2.0",
50
50
  "@atlaskit/icon-lab": "^6.5.0",
@@ -54,21 +54,22 @@
54
54
  "@atlaskit/platform-feature-flags": "^1.1.0",
55
55
  "@atlaskit/primitives": "^19.0.0",
56
56
  "@atlaskit/spinner": "19.1.2",
57
- "@atlaskit/tmp-editor-statsig": "^62.4.0",
57
+ "@atlaskit/tmp-editor-statsig": "^63.0.0",
58
58
  "@atlaskit/tokens": "13.0.0",
59
59
  "@atlaskit/tooltip": "^21.1.0",
60
60
  "@atlaskit/visually-hidden": "^3.0.0",
61
61
  "@babel/runtime": "^7.0.0",
62
62
  "@compiled/react": "^0.20.0",
63
63
  "bind-event-listener": "^3.0.0",
64
- "date-fns": "^2.17.0",
65
- "react-intl-next": "npm:react-intl@^5.18.1"
64
+ "date-fns": "^2.17.0"
66
65
  },
67
66
  "peerDependencies": {
68
- "@atlaskit/editor-common": "^113.0.0",
69
- "react": "^18.2.0"
67
+ "@atlaskit/editor-common": "^114.2.0",
68
+ "react": "^18.2.0",
69
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
70
70
  },
71
71
  "devDependencies": {
72
+ "react-intl": "^6.6.2",
72
73
  "typescript": "5.9.2"
73
74
  },
74
75
  "techstack": {