@atlaskit/editor-plugin-placeholder-text 2.1.4 → 2.2.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,24 @@
1
1
  # @atlaskit/editor-plugin-placeholder-text
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#139139](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139139)
8
+ [`7f6b665d778dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f6b665d778dd) -
9
+ [https://product-fabric.atlassian.net/browse/ED-27499](ED-27499) - the new
10
+ `@atlassian/confluence-presets` package with Confluence `full-page` preset is created
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
16
+ ## 2.1.5
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 2.1.4
4
23
 
5
24
  ### Patch Changes
@@ -14,7 +14,7 @@ var _messages = require("@atlaskit/editor-common/messages");
14
14
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
15
15
  var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _state = require("@atlaskit/editor-prosemirror/state");
17
- var _text = _interopRequireDefault(require("@atlaskit/icon/glyph/media-services/text"));
17
+ var _text = _interopRequireDefault(require("@atlaskit/icon/core/text"));
18
18
  var _actions = require("./editor-actions/actions");
19
19
  var _cursor = require("./pm-plugins/fake-text-cursor/cursor");
20
20
  var _placeholderTextNodeview = require("./pm-plugins/placeholder-text-nodeview");
@@ -6,7 +6,7 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
6
6
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
7
  import { isNodeEmpty } from '@atlaskit/editor-common/utils';
8
8
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
9
- import MediaServicesTextIcon from '@atlaskit/icon/glyph/media-services/text';
9
+ import TextIcon from '@atlaskit/icon/core/text';
10
10
  import { hidePlaceholderFloatingToolbar, insertPlaceholderTextAtSelection, showPlaceholderFloatingToolbar } from './editor-actions/actions';
11
11
  import { drawFakeTextCursor, FakeTextCursorSelection } from './pm-plugins/fake-text-cursor/cursor';
12
12
  import { PlaceholderTextNodeView } from './pm-plugins/placeholder-text-nodeview';
@@ -221,7 +221,7 @@ const decorateWithPluginOptions = (plugin, options, api) => {
221
221
  description: formatMessage(messages.placeholderTextDescription),
222
222
  priority: 1400,
223
223
  keywords: ['placeholder'],
224
- icon: () => /*#__PURE__*/React.createElement(MediaServicesTextIcon, {
224
+ icon: () => /*#__PURE__*/React.createElement(TextIcon, {
225
225
  label: ""
226
226
  }),
227
227
  action(insert, state) {
@@ -6,7 +6,7 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
6
6
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
7
  import { isNodeEmpty } from '@atlaskit/editor-common/utils';
8
8
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
9
- import MediaServicesTextIcon from '@atlaskit/icon/glyph/media-services/text';
9
+ import TextIcon from '@atlaskit/icon/core/text';
10
10
  import { hidePlaceholderFloatingToolbar, insertPlaceholderTextAtSelection, showPlaceholderFloatingToolbar } from './editor-actions/actions';
11
11
  import { drawFakeTextCursor, FakeTextCursorSelection } from './pm-plugins/fake-text-cursor/cursor';
12
12
  import { PlaceholderTextNodeView } from './pm-plugins/placeholder-text-nodeview';
@@ -229,7 +229,7 @@ var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, optio
229
229
  priority: 1400,
230
230
  keywords: ['placeholder'],
231
231
  icon: function icon() {
232
- return /*#__PURE__*/React.createElement(MediaServicesTextIcon, {
232
+ return /*#__PURE__*/React.createElement(TextIcon, {
233
233
  label: ""
234
234
  });
235
235
  },
@@ -1,2 +1,2 @@
1
1
  export { default as placeholderTextPlugin } from './placeholderTextPlugin';
2
- export type { PlaceholderTextPlugin, PlaceholderTextPluginState, PlaceholderTextOptions, } from './placeholderTextPluginType';
2
+ export type { PlaceholderTextPlugin, PlaceholderTextPluginState, PlaceholderTextOptions, PlaceholderTextPluginOptions, } from './placeholderTextPluginType';
@@ -2,9 +2,15 @@ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/t
2
2
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
3
  import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
4
4
  import type { showPlaceholderFloatingToolbar } from './editor-actions/actions';
5
- export interface PlaceholderTextOptions {
5
+ export interface PlaceholderTextPluginOptions {
6
6
  allowInserting?: boolean;
7
7
  }
8
+ /**
9
+ * @private
10
+ * @deprecated Use {@link PlaceholderTextPluginOptions} instead.
11
+ * @see https://product-fabric.atlassian.net/browse/ED-27496
12
+ */
13
+ export type PlaceholderTextOptions = PlaceholderTextPluginOptions;
8
14
  export interface PlaceholderTextPluginState {
9
15
  showInsertPanelAt: number | null;
10
16
  allowInserting: boolean;
@@ -15,7 +21,7 @@ export type PlaceholderTextPluginDependencies = [
15
21
  ];
16
22
  export type PlaceholderTextPlugin = NextEditorPlugin<'placeholderText', {
17
23
  dependencies: PlaceholderTextPluginDependencies;
18
- pluginConfiguration: PlaceholderTextOptions;
24
+ pluginConfiguration: PlaceholderTextPluginOptions;
19
25
  sharedState: PlaceholderTextPluginState | undefined;
20
26
  actions: {
21
27
  showPlaceholderFloatingToolbar: typeof showPlaceholderFloatingToolbar;
@@ -1,2 +1,2 @@
1
1
  export { default as placeholderTextPlugin } from './placeholderTextPlugin';
2
- export type { PlaceholderTextPlugin, PlaceholderTextPluginState, PlaceholderTextOptions, } from './placeholderTextPluginType';
2
+ export type { PlaceholderTextPlugin, PlaceholderTextPluginState, PlaceholderTextOptions, PlaceholderTextPluginOptions, } from './placeholderTextPluginType';
@@ -2,9 +2,15 @@ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/t
2
2
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
3
  import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
4
4
  import type { showPlaceholderFloatingToolbar } from './editor-actions/actions';
5
- export interface PlaceholderTextOptions {
5
+ export interface PlaceholderTextPluginOptions {
6
6
  allowInserting?: boolean;
7
7
  }
8
+ /**
9
+ * @private
10
+ * @deprecated Use {@link PlaceholderTextPluginOptions} instead.
11
+ * @see https://product-fabric.atlassian.net/browse/ED-27496
12
+ */
13
+ export type PlaceholderTextOptions = PlaceholderTextPluginOptions;
8
14
  export interface PlaceholderTextPluginState {
9
15
  showInsertPanelAt: number | null;
10
16
  allowInserting: boolean;
@@ -15,7 +21,7 @@ export type PlaceholderTextPluginDependencies = [
15
21
  ];
16
22
  export type PlaceholderTextPlugin = NextEditorPlugin<'placeholderText', {
17
23
  dependencies: PlaceholderTextPluginDependencies;
18
- pluginConfiguration: PlaceholderTextOptions;
24
+ pluginConfiguration: PlaceholderTextPluginOptions;
19
25
  sharedState: PlaceholderTextPluginState | undefined;
20
26
  actions: {
21
27
  showPlaceholderFloatingToolbar: typeof showPlaceholderFloatingToolbar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-placeholder-text",
3
- "version": "2.1.4",
3
+ "version": "2.2.0",
4
4
  "description": "placeholder text plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,14 +29,14 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@atlaskit/adf-schema": "^47.6.0",
32
- "@atlaskit/editor-common": "^102.4.0",
33
- "@atlaskit/editor-plugin-analytics": "^2.1.0",
34
- "@atlaskit/editor-plugin-type-ahead": "^2.1.0",
32
+ "@atlaskit/editor-common": "^103.4.0",
33
+ "@atlaskit/editor-plugin-analytics": "^2.2.0",
34
+ "@atlaskit/editor-plugin-type-ahead": "^2.3.0",
35
35
  "@atlaskit/editor-prosemirror": "7.0.0",
36
36
  "@atlaskit/editor-shared-styles": "^3.4.0",
37
- "@atlaskit/icon": "^25.0.0",
37
+ "@atlaskit/icon": "^25.5.0",
38
38
  "@atlaskit/theme": "^18.0.0",
39
- "@atlaskit/tokens": "^4.4.0",
39
+ "@atlaskit/tokens": "^4.7.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "@emotion/react": "^11.7.1"
42
42
  },
@@ -48,7 +48,7 @@
48
48
  "devDependencies": {
49
49
  "@af/visual-regression": "^1.3.0",
50
50
  "@atlaskit/analytics-next": "^11.0.0",
51
- "@atlaskit/editor-plugin-floating-toolbar": "^3.2.0",
51
+ "@atlaskit/editor-plugin-floating-toolbar": "^3.6.0",
52
52
  "@atlaskit/ssr": "^0.4.0",
53
53
  "@atlaskit/visual-regression": "^0.10.0",
54
54
  "@testing-library/react": "^13.4.0",