@atlaskit/editor-plugin-placeholder 6.5.2 → 6.5.3

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,13 @@
1
1
  # @atlaskit/editor-plugin-placeholder
2
2
 
3
+ ## 6.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`41a91a916c125`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41a91a916c125) -
8
+ EDITOR-2846 Change platform_synced_block to use editorExperiment and add Jira experiment
9
+ - Updated dependencies
10
+
3
11
  ## 6.5.2
4
12
 
5
13
  ### Patch Changes
@@ -19,7 +19,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
19
19
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
20
20
  var _view = require("@atlaskit/editor-prosemirror/view");
21
21
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
23
22
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
24
23
  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; }
25
24
  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) { (0, _defineProperty2.default)(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; }
@@ -370,7 +369,7 @@ function createPlaceHolderStateFrom(_ref5) {
370
369
  userHadTyped: userHadTyped
371
370
  });
372
371
  }
373
- if (nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && (0, _expValEquals.expValEquals)('platform_synced_block', 'isEnabled', true)) {
372
+ if (nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && (0, _experiments.editorExperiment)('platform_synced_block', true)) {
374
373
  return setPlaceHolderState({
375
374
  placeholderText: intl.formatMessage(_messages.placeholderTextMessages.syncBlockPlaceholderText),
376
375
  pos: $from.pos,
@@ -8,7 +8,6 @@ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
8
8
  import { findParentNode } from '@atlaskit/editor-prosemirror/utils';
9
9
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
10
10
  import { fg } from '@atlaskit/platform-feature-flags';
11
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
11
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
13
12
  // Typewriter animation timing constants
14
13
  const TYPEWRITER_TYPE_DELAY = 50; // Delay between typing each character
@@ -351,7 +350,7 @@ function createPlaceHolderStateFrom({
351
350
  userHadTyped
352
351
  });
353
352
  }
354
- if (nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && expValEquals('platform_synced_block', 'isEnabled', true)) {
353
+ if (nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && editorExperiment('platform_synced_block', true)) {
355
354
  return setPlaceHolderState({
356
355
  placeholderText: intl.formatMessage(messages.syncBlockPlaceholderText),
357
356
  pos: $from.pos,
@@ -11,7 +11,6 @@ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
11
11
  import { findParentNode } from '@atlaskit/editor-prosemirror/utils';
12
12
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
14
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
15
14
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
16
15
  // Typewriter animation timing constants
17
16
  var TYPEWRITER_TYPE_DELAY = 50; // Delay between typing each character
@@ -360,7 +359,7 @@ function createPlaceHolderStateFrom(_ref5) {
360
359
  userHadTyped: userHadTyped
361
360
  });
362
361
  }
363
- if (nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && expValEquals('platform_synced_block', 'isEnabled', true)) {
362
+ if (nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && editorExperiment('platform_synced_block', true)) {
364
363
  return setPlaceHolderState({
365
364
  placeholderText: intl.formatMessage(messages.syncBlockPlaceholderText),
366
365
  pos: $from.pos,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-placeholder",
3
- "version": "6.5.2",
3
+ "version": "6.5.3",
4
4
  "description": "Placeholder plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/editor-plugin-type-ahead": "^6.5.0",
35
35
  "@atlaskit/editor-prosemirror": "7.0.0",
36
36
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
- "@atlaskit/tmp-editor-statsig": "^14.0.0",
37
+ "@atlaskit/tmp-editor-statsig": "^14.1.0",
38
38
  "@atlaskit/tokens": "^8.4.0",
39
39
  "@babel/runtime": "^7.0.0"
40
40
  },