@atlaskit/editor-plugin-media 8.4.4 → 8.4.5

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-media
2
2
 
3
+ ## 8.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9f7ed79776010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f7ed79776010) -
8
+ [EDF-2767] Better documentation on features that cannot be rolled back - starting on attribute
9
+ allowPixelResizing
10
+ - Updated dependencies
11
+
3
12
  ## 8.4.4
4
13
 
5
14
  ### Patch Changes
@@ -35,17 +35,17 @@ export interface MediaPluginOptions {
35
35
  allowMediaInlineImages?: boolean;
36
36
  allowMediaSingle?: boolean | MediaSingleOptions;
37
37
  allowMediaSingleEditable?: boolean;
38
+ /**
39
+ * @caution
40
+ * This attribute is used to enable the pixel resizing experience.
41
+ * When enabled it cannot be rolled back -> see PIR-27544 https://ops.internal.atlassian.com/jira/browse/PIR-27544
42
+ * Rollback action causes dataloss, no way to retrieve the original width, as fallback will always be 100
43
+ */
38
44
  allowPixelResizing?: boolean;
39
45
  allowRemoteDimensionsFetch?: boolean;
40
46
  allowResizing?: boolean;
41
47
  allowResizingInTables?: boolean;
42
48
  allowTemplatePlaceholders?: boolean | PlaceholderTextOptions;
43
- /**
44
- * When enabled, prevents automatic focus/selection of media nodes after upload completion.
45
- * The existing focus will be preserved instead of switching to the uploaded media.
46
- * @default false
47
- */
48
- preventAutoFocusOnUpload?: boolean;
49
49
  altTextValidator?: (value: string) => string[];
50
50
  customDropzoneContainer?: HTMLElement;
51
51
  customMediaPicker?: CustomMediaPicker;
@@ -77,6 +77,12 @@ export interface MediaPluginOptions {
77
77
  isExternalMediaUploadDisabled?: boolean;
78
78
  mediaShallowCopyScope?: MediaCopyScope;
79
79
  onCommentButtonMount?: () => void;
80
+ /**
81
+ * When enabled, prevents automatic focus/selection of media nodes after upload completion.
82
+ * The existing focus will be preserved instead of switching to the uploaded media.
83
+ * @default false
84
+ */
85
+ preventAutoFocusOnUpload?: boolean;
80
86
  provider?: Providers['mediaProvider'];
81
87
  syncProvider?: MediaProvider;
82
88
  uploadErrorHandler?: (state: MediaState) => void;
@@ -146,6 +152,12 @@ export type MediaFloatingToolbarOptions = {
146
152
  allowLinking?: boolean;
147
153
  allowMediaInline?: boolean;
148
154
  allowMediaInlineImages?: boolean;
155
+ /**
156
+ * @caution
157
+ * This attribute is used to enable the pixel resizing experience.
158
+ * When enabled it cannot be rolled back -> see PIR-27544 https://ops.internal.atlassian.com/jira/browse/PIR-27544
159
+ * Rollback action causes dataloss, no way to retrieve the original width, as fallback will always be 100
160
+ **/
149
161
  allowPixelResizing?: boolean;
150
162
  allowResizing?: boolean;
151
163
  allowResizingInTables?: boolean;
@@ -35,17 +35,17 @@ export interface MediaPluginOptions {
35
35
  allowMediaInlineImages?: boolean;
36
36
  allowMediaSingle?: boolean | MediaSingleOptions;
37
37
  allowMediaSingleEditable?: boolean;
38
+ /**
39
+ * @caution
40
+ * This attribute is used to enable the pixel resizing experience.
41
+ * When enabled it cannot be rolled back -> see PIR-27544 https://ops.internal.atlassian.com/jira/browse/PIR-27544
42
+ * Rollback action causes dataloss, no way to retrieve the original width, as fallback will always be 100
43
+ */
38
44
  allowPixelResizing?: boolean;
39
45
  allowRemoteDimensionsFetch?: boolean;
40
46
  allowResizing?: boolean;
41
47
  allowResizingInTables?: boolean;
42
48
  allowTemplatePlaceholders?: boolean | PlaceholderTextOptions;
43
- /**
44
- * When enabled, prevents automatic focus/selection of media nodes after upload completion.
45
- * The existing focus will be preserved instead of switching to the uploaded media.
46
- * @default false
47
- */
48
- preventAutoFocusOnUpload?: boolean;
49
49
  altTextValidator?: (value: string) => string[];
50
50
  customDropzoneContainer?: HTMLElement;
51
51
  customMediaPicker?: CustomMediaPicker;
@@ -77,6 +77,12 @@ export interface MediaPluginOptions {
77
77
  isExternalMediaUploadDisabled?: boolean;
78
78
  mediaShallowCopyScope?: MediaCopyScope;
79
79
  onCommentButtonMount?: () => void;
80
+ /**
81
+ * When enabled, prevents automatic focus/selection of media nodes after upload completion.
82
+ * The existing focus will be preserved instead of switching to the uploaded media.
83
+ * @default false
84
+ */
85
+ preventAutoFocusOnUpload?: boolean;
80
86
  provider?: Providers['mediaProvider'];
81
87
  syncProvider?: MediaProvider;
82
88
  uploadErrorHandler?: (state: MediaState) => void;
@@ -146,6 +152,12 @@ export type MediaFloatingToolbarOptions = {
146
152
  allowLinking?: boolean;
147
153
  allowMediaInline?: boolean;
148
154
  allowMediaInlineImages?: boolean;
155
+ /**
156
+ * @caution
157
+ * This attribute is used to enable the pixel resizing experience.
158
+ * When enabled it cannot be rolled back -> see PIR-27544 https://ops.internal.atlassian.com/jira/browse/PIR-27544
159
+ * Rollback action causes dataloss, no way to retrieve the original width, as fallback will always be 100
160
+ **/
149
161
  allowPixelResizing?: boolean;
150
162
  allowResizing?: boolean;
151
163
  allowResizingInTables?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "8.4.4",
3
+ "version": "8.4.5",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -53,7 +53,7 @@
53
53
  "@atlaskit/editor-tables": "^2.9.0",
54
54
  "@atlaskit/form": "^14.2.0",
55
55
  "@atlaskit/icon": "^28.5.0",
56
- "@atlaskit/icon-lab": "^5.10.0",
56
+ "@atlaskit/icon-lab": "^5.11.0",
57
57
  "@atlaskit/media-card": "^79.6.0",
58
58
  "@atlaskit/media-client": "^35.5.0",
59
59
  "@atlaskit/media-client-react": "^4.1.0",
@@ -63,12 +63,12 @@
63
63
  "@atlaskit/media-ui": "^28.7.0",
64
64
  "@atlaskit/media-viewer": "^52.4.0",
65
65
  "@atlaskit/platform-feature-flags": "^1.1.0",
66
- "@atlaskit/primitives": "^16.0.0",
66
+ "@atlaskit/primitives": "^16.1.0",
67
67
  "@atlaskit/textfield": "^8.0.0",
68
68
  "@atlaskit/theme": "^21.0.0",
69
- "@atlaskit/tmp-editor-statsig": "^13.19.0",
70
- "@atlaskit/tokens": "^7.0.0",
71
- "@atlaskit/tooltip": "^20.6.0",
69
+ "@atlaskit/tmp-editor-statsig": "^13.26.0",
70
+ "@atlaskit/tokens": "^7.1.0",
71
+ "@atlaskit/tooltip": "^20.7.0",
72
72
  "@babel/runtime": "^7.0.0",
73
73
  "@emotion/react": "^11.7.1",
74
74
  "bind-event-listener": "^3.0.0",
@@ -78,7 +78,7 @@
78
78
  "uuid": "^3.1.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "@atlaskit/editor-common": "^110.18.0",
81
+ "@atlaskit/editor-common": "^110.22.0",
82
82
  "@atlaskit/media-core": "^37.0.0",
83
83
  "react": "^18.2.0",
84
84
  "react-dom": "^18.2.0",