@atlaskit/editor-core 204.6.1 → 204.6.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,24 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 204.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#127093](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127093)
8
+ [`1378ea7a99ce1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1378ea7a99ce1) -
9
+ Upgrades `jscodeshift` to handle generics properly.
10
+ - Updated dependencies
11
+
12
+ ## 204.6.2
13
+
14
+ ### Patch Changes
15
+
16
+ - [#128664](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128664)
17
+ [`abca3266336d9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/abca3266336d9) -
18
+ [ED-23250] Remove form element from MediaFromUrl and consolidate experiments and feature flags in
19
+ prepartion for jira release
20
+ - Updated dependencies
21
+
3
22
  ## 204.6.1
4
23
 
5
24
  ### Patch Changes
@@ -56,6 +56,7 @@ var _tasksAndDecisions = require("@atlaskit/editor-plugins/tasks-and-decisions")
56
56
  var _textColor = require("@atlaskit/editor-plugins/text-color");
57
57
  var _toolbarListsIndentation = require("@atlaskit/editor-plugins/toolbar-lists-indentation");
58
58
  var _ufo = require("@atlaskit/editor-plugins/ufo");
59
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
59
60
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
60
61
  var _isFullPage = require("../utils/is-full-page");
61
62
  var _versionWrapper = require("../version-wrapper");
@@ -136,7 +137,7 @@ function createUniversalPresetInternal(_ref) {
136
137
  isCopyPasteEnabled: true,
137
138
  alignLeftOnInsert: typeof ((_props$media5 = props.media) === null || _props$media5 === void 0 ? void 0 : _props$media5.alignLeftOnInsert) !== 'undefined' ? (_props$media6 = props.media) === null || _props$media6 === void 0 ? void 0 : _props$media6.alignLeftOnInsert : isComment,
138
139
  getEditorFeatureFlags: getEditorFeatureFlags
139
- })], Boolean(props.media)).maybeAdd(_mediaInsert.mediaInsertPlugin, Boolean(props.media && (0, _experiments.editorExperiment)('add-media-from-url', true))).maybeAdd(_caption.captionPlugin, Boolean((_props$media7 = props.media) === null || _props$media7 === void 0 ? void 0 : _props$media7.allowCaptions)).maybeAdd([_mentions.mentionsPlugin, _objectSpread({
140
+ })], Boolean(props.media)).maybeAdd(_mediaInsert.mediaInsertPlugin, Boolean(props.media && (0, _platformFeatureFlags.fg)('platform_editor_add_media_from_url_rollout'))).maybeAdd(_caption.captionPlugin, Boolean((_props$media7 = props.media) === null || _props$media7 === void 0 ? void 0 : _props$media7.allowCaptions)).maybeAdd([_mentions.mentionsPlugin, _objectSpread({
140
141
  sanitizePrivateContent: props.sanitizePrivateContent,
141
142
  insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
142
143
  allowZeroWidthSpaceAfter: true,
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "204.6.1";
8
+ var version = exports.version = "204.6.3";
@@ -46,6 +46,7 @@ import { tasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-deci
46
46
  import { textColorPlugin } from '@atlaskit/editor-plugins/text-color';
47
47
  import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugins/toolbar-lists-indentation';
48
48
  import { ufoPlugin } from '@atlaskit/editor-plugins/ufo';
49
+ import { fg } from '@atlaskit/platform-feature-flags';
49
50
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
50
51
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
51
52
  import { version as coreVersion } from '../version-wrapper';
@@ -127,7 +128,7 @@ export default function createUniversalPresetInternal({
127
128
  isCopyPasteEnabled: true,
128
129
  alignLeftOnInsert: typeof ((_props$media5 = props.media) === null || _props$media5 === void 0 ? void 0 : _props$media5.alignLeftOnInsert) !== 'undefined' ? (_props$media6 = props.media) === null || _props$media6 === void 0 ? void 0 : _props$media6.alignLeftOnInsert : isComment,
129
130
  getEditorFeatureFlags
130
- }], Boolean(props.media)).maybeAdd(mediaInsertPlugin, Boolean(props.media && editorExperiment('add-media-from-url', true))).maybeAdd(captionPlugin, Boolean((_props$media7 = props.media) === null || _props$media7 === void 0 ? void 0 : _props$media7.allowCaptions)).maybeAdd([mentionsPlugin, {
131
+ }], Boolean(props.media)).maybeAdd(mediaInsertPlugin, Boolean(props.media && fg('platform_editor_add_media_from_url_rollout'))).maybeAdd(captionPlugin, Boolean((_props$media7 = props.media) === null || _props$media7 === void 0 ? void 0 : _props$media7.allowCaptions)).maybeAdd([mentionsPlugin, {
131
132
  sanitizePrivateContent: props.sanitizePrivateContent,
132
133
  insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
133
134
  allowZeroWidthSpaceAfter: true,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "204.6.1";
2
+ export const version = "204.6.3";
@@ -50,6 +50,7 @@ import { tasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-deci
50
50
  import { textColorPlugin } from '@atlaskit/editor-plugins/text-color';
51
51
  import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugins/toolbar-lists-indentation';
52
52
  import { ufoPlugin } from '@atlaskit/editor-plugins/ufo';
53
+ import { fg } from '@atlaskit/platform-feature-flags';
53
54
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
54
55
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
55
56
  import { version as coreVersion } from '../version-wrapper';
@@ -129,7 +130,7 @@ export default function createUniversalPresetInternal(_ref) {
129
130
  isCopyPasteEnabled: true,
130
131
  alignLeftOnInsert: typeof ((_props$media5 = props.media) === null || _props$media5 === void 0 ? void 0 : _props$media5.alignLeftOnInsert) !== 'undefined' ? (_props$media6 = props.media) === null || _props$media6 === void 0 ? void 0 : _props$media6.alignLeftOnInsert : isComment,
131
132
  getEditorFeatureFlags: getEditorFeatureFlags
132
- })], Boolean(props.media)).maybeAdd(mediaInsertPlugin, Boolean(props.media && editorExperiment('add-media-from-url', true))).maybeAdd(captionPlugin, Boolean((_props$media7 = props.media) === null || _props$media7 === void 0 ? void 0 : _props$media7.allowCaptions)).maybeAdd([mentionsPlugin, _objectSpread({
133
+ })], Boolean(props.media)).maybeAdd(mediaInsertPlugin, Boolean(props.media && fg('platform_editor_add_media_from_url_rollout'))).maybeAdd(captionPlugin, Boolean((_props$media7 = props.media) === null || _props$media7 === void 0 ? void 0 : _props$media7.allowCaptions)).maybeAdd([mentionsPlugin, _objectSpread({
133
134
  sanitizePrivateContent: props.sanitizePrivateContent,
134
135
  insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
135
136
  allowZeroWidthSpaceAfter: true,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "204.6.1";
2
+ export var version = "204.6.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "204.6.1",
3
+ "version": "204.6.3",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -60,7 +60,7 @@
60
60
  "@atlaskit/platform-feature-flags": "^1.1.0",
61
61
  "@atlaskit/react-ufo": "^3.4.0",
62
62
  "@atlaskit/task-decision": "^19.1.0",
63
- "@atlaskit/tmp-editor-statsig": "^4.2.0",
63
+ "@atlaskit/tmp-editor-statsig": "^4.3.0",
64
64
  "@atlaskit/tokens": "^4.5.0",
65
65
  "@atlaskit/tooltip": "^20.0.0",
66
66
  "@atlaskit/width-detector": "^5.0.0",
@@ -117,7 +117,7 @@
117
117
  "@types/is-number": "^7.0.0",
118
118
  "diff": "^4.0.1",
119
119
  "enzyme": "^3.10.0",
120
- "jscodeshift": "^0.13.0",
120
+ "jscodeshift": "^0.16.1",
121
121
  "mockdate": "^3.0.5",
122
122
  "raf-stub": "^2.0.1",
123
123
  "react": "^18.2.0",
@@ -307,10 +307,6 @@
307
307
  "type": "boolean",
308
308
  "referenceOnly": true
309
309
  },
310
- "platform_editor_hide_external_media_badge": {
311
- "type": "boolean",
312
- "referenceOnly": true
313
- },
314
310
  "platform_editor_set_alignment_when_resized": {
315
311
  "type": "boolean",
316
312
  "referenceOnly": true
@@ -343,10 +339,6 @@
343
339
  "type": "boolean",
344
340
  "referenceOnly": true
345
341
  },
346
- "platform_editor_support_media_badge_visibility": {
347
- "type": "boolean",
348
- "referenceOnly": true
349
- },
350
342
  "platform_editor_disable_context_panel_animation": {
351
343
  "type": "boolean",
352
344
  "referenceOnly": true
@@ -548,6 +540,9 @@
548
540
  "platform_nested_nbm_analytics_location": {
549
541
  "type": "boolean"
550
542
  },
543
+ "platform_editor_add_media_from_url_rollout": {
544
+ "type": "boolean"
545
+ },
551
546
  "platform_editor_transaction_skip_validation": {
552
547
  "type": "boolean"
553
548
  },