@atlaskit/editor-plugin-paste 2.0.1 → 2.0.2

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,14 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 2.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#158691](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/158691)
8
+ [`70ef661bbbb4d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/70ef661bbbb4d) -
9
+ Update feature flag to gate
10
+ - Updated dependencies
11
+
3
12
  ## 2.0.1
4
13
 
5
14
  ### Patch Changes
@@ -33,7 +33,7 @@ function transformSliceForMedia(slice, schema) {
33
33
  var newSlice = slice;
34
34
  if ((0, _utils2.hasParentNodeOfType)([layoutSection, table, bulletList, orderedList, expand, nestedExpand])(selection)) {
35
35
  newSlice = (0, _utils.mapSlice)(newSlice, function (node) {
36
- var extendedOrLegacyAttrs = (0, _platformFeatureFlags.fg)('platform.editor.media.extended-resize-experience') ? {
36
+ var extendedOrLegacyAttrs = (0, _platformFeatureFlags.fg)('platform_editor_media_extended_resize_experience') ? {
37
37
  layout: node.attrs.layout,
38
38
  widthType: node.attrs.widthType,
39
39
  width: node.attrs.width
@@ -96,7 +96,7 @@ var transformSliceToMediaSingleWithNewExperience = exports.transformSliceToMedia
96
96
  // The duplication is in the following file:
97
97
  // packages/editor/editor-plugin-ai/src/prebuilt/content-transformers/markdown-to-pm/markdown-transformer.ts
98
98
  if (node.type === mediaSingle) {
99
- return (0, _platformFeatureFlags.fg)('platform.editor.media.extended-resize-experience') ? mediaSingle.createChecked({
99
+ return (0, _platformFeatureFlags.fg)('platform_editor_media_extended_resize_experience') ? mediaSingle.createChecked({
100
100
  width: node.attrs.width || _mediaSingle.DEFAULT_IMAGE_WIDTH,
101
101
  widthType: node.attrs.widthType || 'pixel',
102
102
  layout: node.attrs.layout
@@ -23,7 +23,7 @@ export function transformSliceForMedia(slice, schema) {
23
23
  let newSlice = slice;
24
24
  if (hasParentNodeOfType([layoutSection, table, bulletList, orderedList, expand, nestedExpand])(selection)) {
25
25
  newSlice = mapSlice(newSlice, node => {
26
- const extendedOrLegacyAttrs = fg('platform.editor.media.extended-resize-experience') ? {
26
+ const extendedOrLegacyAttrs = fg('platform_editor_media_extended_resize_experience') ? {
27
27
  layout: node.attrs.layout,
28
28
  widthType: node.attrs.widthType,
29
29
  width: node.attrs.width
@@ -91,7 +91,7 @@ export const transformSliceToMediaSingleWithNewExperience = (slice, schema) => {
91
91
  // The duplication is in the following file:
92
92
  // packages/editor/editor-plugin-ai/src/prebuilt/content-transformers/markdown-to-pm/markdown-transformer.ts
93
93
  if (node.type === mediaSingle) {
94
- return fg('platform.editor.media.extended-resize-experience') ? mediaSingle.createChecked({
94
+ return fg('platform_editor_media_extended_resize_experience') ? mediaSingle.createChecked({
95
95
  width: node.attrs.width || DEFAULT_IMAGE_WIDTH,
96
96
  widthType: node.attrs.widthType || 'pixel',
97
97
  layout: node.attrs.layout
@@ -25,7 +25,7 @@ export function transformSliceForMedia(slice, schema) {
25
25
  var newSlice = slice;
26
26
  if (hasParentNodeOfType([layoutSection, table, bulletList, orderedList, expand, nestedExpand])(selection)) {
27
27
  newSlice = mapSlice(newSlice, function (node) {
28
- var extendedOrLegacyAttrs = fg('platform.editor.media.extended-resize-experience') ? {
28
+ var extendedOrLegacyAttrs = fg('platform_editor_media_extended_resize_experience') ? {
29
29
  layout: node.attrs.layout,
30
30
  widthType: node.attrs.widthType,
31
31
  width: node.attrs.width
@@ -88,7 +88,7 @@ export var transformSliceToMediaSingleWithNewExperience = function transformSlic
88
88
  // The duplication is in the following file:
89
89
  // packages/editor/editor-plugin-ai/src/prebuilt/content-transformers/markdown-to-pm/markdown-transformer.ts
90
90
  if (node.type === mediaSingle) {
91
- return fg('platform.editor.media.extended-resize-experience') ? mediaSingle.createChecked({
91
+ return fg('platform_editor_media_extended_resize_experience') ? mediaSingle.createChecked({
92
92
  width: node.attrs.width || DEFAULT_IMAGE_WIDTH,
93
93
  widthType: node.attrs.widthType || 'pixel',
94
94
  layout: node.attrs.layout
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/editor-common": "^94.9.0",
34
+ "@atlaskit/editor-common": "^94.12.0",
35
35
  "@atlaskit/editor-markdown-transformer": "^5.13.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
37
37
  "@atlaskit/editor-plugin-annotation": "^1.23.0",
@@ -39,14 +39,14 @@
39
39
  "@atlaskit/editor-plugin-card": "^4.3.0",
40
40
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
41
41
  "@atlaskit/editor-plugin-list": "^3.9.0",
42
- "@atlaskit/editor-plugin-media": "^1.38.0",
42
+ "@atlaskit/editor-plugin-media": "^1.39.0",
43
43
  "@atlaskit/editor-plugin-mentions": "^2.10.0",
44
44
  "@atlaskit/editor-prosemirror": "6.0.0",
45
45
  "@atlaskit/editor-tables": "^2.8.0",
46
46
  "@atlaskit/media-client": "^28.0.0",
47
47
  "@atlaskit/media-common": "^11.7.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
- "@atlaskit/tmp-editor-statsig": "^2.10.0",
49
+ "@atlaskit/tmp-editor-statsig": "^2.11.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "lodash": "^4.17.21",
52
52
  "uuid": "^3.1.0"
@@ -109,7 +109,7 @@
109
109
  ]
110
110
  },
111
111
  "platform-feature-flags": {
112
- "platform.editor.media.extended-resize-experience": {
112
+ "platform_editor_media_extended_resize_experience": {
113
113
  "type": "boolean"
114
114
  },
115
115
  "editor_inline_comments_paste_insert_nodes": {