@atlaskit/editor-plugin-placeholder 12.0.9 → 12.0.10

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,15 @@
1
1
  # @atlaskit/editor-plugin-placeholder
2
2
 
3
+ ## 12.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a8c135d0b7bfb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a8c135d0b7bfb) -
8
+ Cleanup experiment `confluence_load_editor_title_on_transition`. The placeholder loading spinner
9
+ and the collab-not-ready placeholder skip during transitions are now always enabled, and the
10
+ experiment definition has been removed from the editor statsig config.
11
+ - Updated dependencies
12
+
3
13
  ## 12.0.9
4
14
 
5
15
  ### Patch Changes
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = createPlugin;
7
7
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
8
  var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
10
9
  var _placeholderPlugin = require("../placeholderPlugin");
11
10
  var _constants = require("./constants");
@@ -96,11 +95,9 @@ function createPlugin(intl, defaultPlaceholderText, bracketPlaceholderText, empt
96
95
  props: {
97
96
  decorations: function decorations(editorState) {
98
97
  var _api$composition, _api$showDiff;
99
- if ((0, _expValEquals.expValEquals)('confluence_load_editor_title_on_transition', 'contentPlaceholder', true)) {
100
- // @ts-ignore quick fix which needs follow up to use standard apis
101
- if (editorState.collabEditPlugin$ && editorState.collabEditPlugin$.isReady !== true) {
102
- return;
103
- }
98
+ // @ts-ignore quick fix which needs follow up to use standard apis
99
+ if (editorState.collabEditPlugin$ && editorState.collabEditPlugin$.isReady !== true) {
100
+ return;
104
101
  }
105
102
  var _getPlaceholderState = (0, _utils.getPlaceholderState)(editorState),
106
103
  hasPlaceholder = _getPlaceholderState.hasPlaceholder,
@@ -1,5 +1,4 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
2
  import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
4
3
  import { EMPTY_PARAGRAPH_TIMEOUT_DELAY, pluginKey } from '../placeholderPlugin';
5
4
  import { TYPEWRITER_TYPED_AND_DELETED_DELAY } from './constants';
@@ -89,11 +88,9 @@ export default function createPlugin(intl, defaultPlaceholderText, bracketPlaceh
89
88
  props: {
90
89
  decorations(editorState) {
91
90
  var _api$composition, _api$showDiff, _api$showDiff$sharedS;
92
- if (expValEquals('confluence_load_editor_title_on_transition', 'contentPlaceholder', true)) {
93
- // @ts-ignore quick fix which needs follow up to use standard apis
94
- if (editorState.collabEditPlugin$ && editorState.collabEditPlugin$.isReady !== true) {
95
- return;
96
- }
91
+ // @ts-ignore quick fix which needs follow up to use standard apis
92
+ if (editorState.collabEditPlugin$ && editorState.collabEditPlugin$.isReady !== true) {
93
+ return;
97
94
  }
98
95
  const {
99
96
  hasPlaceholder,
@@ -1,5 +1,4 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
2
  import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
4
3
  import { EMPTY_PARAGRAPH_TIMEOUT_DELAY, pluginKey } from '../placeholderPlugin';
5
4
  import { TYPEWRITER_TYPED_AND_DELETED_DELAY } from './constants';
@@ -90,11 +89,9 @@ export default function createPlugin(intl, defaultPlaceholderText, bracketPlaceh
90
89
  props: {
91
90
  decorations: function decorations(editorState) {
92
91
  var _api$composition, _api$showDiff;
93
- if (expValEquals('confluence_load_editor_title_on_transition', 'contentPlaceholder', true)) {
94
- // @ts-ignore quick fix which needs follow up to use standard apis
95
- if (editorState.collabEditPlugin$ && editorState.collabEditPlugin$.isReady !== true) {
96
- return;
97
- }
92
+ // @ts-ignore quick fix which needs follow up to use standard apis
93
+ if (editorState.collabEditPlugin$ && editorState.collabEditPlugin$.isReady !== true) {
94
+ return;
98
95
  }
99
96
  var _getPlaceholderState = getPlaceholderState(editorState),
100
97
  hasPlaceholder = _getPlaceholderState.hasPlaceholder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-placeholder",
3
- "version": "12.0.9",
3
+ "version": "12.0.10",
4
4
  "description": "Placeholder plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,12 +29,12 @@
29
29
  "@atlaskit/platform-feature-flags": "^2.0.0",
30
30
  "@atlaskit/primitives": "^20.0.0",
31
31
  "@atlaskit/spinner": "^20.0.0",
32
- "@atlaskit/tmp-editor-statsig": "^113.0.0",
32
+ "@atlaskit/tmp-editor-statsig": "^114.0.0",
33
33
  "@atlaskit/tokens": "^15.0.0",
34
34
  "@babel/runtime": "^7.0.0"
35
35
  },
36
36
  "peerDependencies": {
37
- "@atlaskit/editor-common": "^116.12.0",
37
+ "@atlaskit/editor-common": "^116.13.0",
38
38
  "react": "^18.2.0",
39
39
  "react-dom": "^18.2.0",
40
40
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"