@atlaskit/editor-plugin-placeholder-text 10.0.0 → 11.1.0

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,31 @@
1
1
  # @atlaskit/editor-plugin-placeholder-text
2
2
 
3
+ ## 11.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`a94a013546f69`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a94a013546f69) -
8
+ Autofix: add explicit package exports (barrel removal)
9
+
10
+ ## 11.0.0
11
+
12
+ ### Major Changes
13
+
14
+ - [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
15
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
16
+
17
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
18
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
19
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
20
+
21
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
22
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
23
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
3
29
  ## 10.0.0
4
30
 
5
31
  ### Patch Changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ Object.defineProperty(exports, "placeholderTextPlugin", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _placeholderTextPlugin.default;
11
+ }
12
+ });
13
+ var _placeholderTextPlugin = _interopRequireDefault(require("../placeholderTextPlugin"));
@@ -12,7 +12,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
12
12
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
14
  var _react = _interopRequireDefault(require("react"));
15
- var _reactIntlNext = require("react-intl-next");
15
+ var _reactIntl = require("react-intl");
16
16
  var _messages = require("@atlaskit/editor-common/messages");
17
17
  var _ui = require("@atlaskit/editor-common/ui");
18
18
  var _FloatingToolbar = _interopRequireDefault(require("../FloatingToolbar"));
@@ -81,5 +81,5 @@ var PlaceholderFloatingToolbar = /*#__PURE__*/function (_React$Component) {
81
81
  }
82
82
  }]);
83
83
  }(_react.default.Component); // eslint-disable-next-line @typescript-eslint/ban-types
84
- var _default_1 = (0, _reactIntlNext.injectIntl)(PlaceholderFloatingToolbar);
84
+ var _default_1 = (0, _reactIntl.injectIntl)(PlaceholderFloatingToolbar);
85
85
  var _default = exports.default = _default_1;
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { default as placeholderTextPlugin } from '../placeholderTextPlugin';
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
- import { injectIntl } from 'react-intl-next';
3
+ import { injectIntl } from 'react-intl';
4
4
  import { placeholderTextMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { PanelTextInput } from '@atlaskit/editor-common/ui';
6
6
  import FloatingToolbar from '../FloatingToolbar';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { default as placeholderTextPlugin } from '../placeholderTextPlugin';
@@ -7,7 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
7
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  import React from 'react';
10
- import { injectIntl } from 'react-intl-next';
10
+ import { injectIntl } from 'react-intl';
11
11
  import { placeholderTextMessages as messages } from '@atlaskit/editor-common/messages';
12
12
  import { PanelTextInput } from '@atlaskit/editor-common/ui';
13
13
  import FloatingToolbar from '../FloatingToolbar';
@@ -0,0 +1 @@
1
+ export type { PlaceholderTextPlugin, PlaceholderTextPluginState, PlaceholderTextOptions, PlaceholderTextPluginOptions, PlaceholderTextPluginDependencies, } from '../placeholderTextPluginType';
@@ -0,0 +1 @@
1
+ export { default as placeholderTextPlugin } from '../placeholderTextPlugin';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { Coordinates } from '../FloatingToolbar';
4
4
  export interface Props {
5
5
  children?: React.ReactNode;
@@ -0,0 +1 @@
1
+ export type { PlaceholderTextPlugin, PlaceholderTextPluginState, PlaceholderTextOptions, PlaceholderTextPluginOptions, PlaceholderTextPluginDependencies, } from '../placeholderTextPluginType';
@@ -0,0 +1 @@
1
+ export { default as placeholderTextPlugin } from '../placeholderTextPlugin';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { Coordinates } from '../FloatingToolbar';
4
4
  export interface Props {
5
5
  children?: React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-placeholder-text",
3
- "version": "10.0.0",
3
+ "version": "11.1.0",
4
4
  "description": "placeholder text plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,23 +27,24 @@
27
27
  }
28
28
  },
29
29
  "dependencies": {
30
- "@atlaskit/adf-schema": "^52.5.0",
31
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
32
- "@atlaskit/editor-plugin-type-ahead": "^9.0.0",
30
+ "@atlaskit/adf-schema": "^52.11.0",
31
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
32
+ "@atlaskit/editor-plugin-type-ahead": "^10.0.0",
33
33
  "@atlaskit/editor-prosemirror": "^7.3.0",
34
- "@atlaskit/icon": "^34.2.0",
34
+ "@atlaskit/icon": "^34.5.0",
35
35
  "@atlaskit/tokens": "^13.0.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "@emotion/react": "^11.7.1"
38
38
  },
39
39
  "peerDependencies": {
40
- "@atlaskit/editor-common": "^113.0.0",
40
+ "@atlaskit/editor-common": "^114.30.0",
41
41
  "react": "^18.2.0",
42
42
  "react-dom": "^18.2.0",
43
- "react-intl-next": "npm:react-intl@^5.18.1"
43
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@testing-library/react": "^16.3.0",
47
+ "react-intl": "^6.6.2",
47
48
  "wait-for-expect": "^1.2.0"
48
49
  },
49
50
  "techstack": {
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-placeholder-text/placeholder-text-plugin",
3
+ "main": "../dist/cjs/entry-points/placeholder-text-plugin.js",
4
+ "module": "../dist/esm/entry-points/placeholder-text-plugin.js",
5
+ "module:es2019": "../dist/es2019/entry-points/placeholder-text-plugin.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/placeholder-text-plugin.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../dist/types-ts4.5/entry-points/placeholder-text-plugin.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-placeholder-text/placeholder-text-plugin-type",
3
+ "main": "../dist/cjs/entry-points/placeholder-text-plugin-type.js",
4
+ "module": "../dist/esm/entry-points/placeholder-text-plugin-type.js",
5
+ "module:es2019": "../dist/es2019/entry-points/placeholder-text-plugin-type.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/placeholder-text-plugin-type.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../dist/types-ts4.5/entry-points/placeholder-text-plugin-type.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
package/report.api.md CHANGED
@@ -71,7 +71,7 @@ const showPlaceholderFloatingToolbar: (
71
71
  ```json
72
72
  {
73
73
  "react": "^16.8.0",
74
- "react-intl-next": "npm:react-intl@^5.18.1"
74
+ "react-intl": "npm:react-intl@^5.18.1"
75
75
  }
76
76
  ```
77
77