@atlaskit/editor-plugin-media 1.29.2 → 1.29.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,15 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 1.29.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#131378](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/131378)
8
+ [`04848ee5982e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04848ee5982e0) -
9
+ Remove `reactContext` from `PMPluginFactoryParams` type. This was an unused property and so
10
+ shouldn't have any upgrade friction.
11
+ - Updated dependencies
12
+
3
13
  ## 1.29.2
4
14
 
5
15
  ### Patch Changes
@@ -140,7 +140,6 @@ var mediaPlugin = exports.mediaPlugin = function mediaPlugin(_ref2) {
140
140
  providerFactory = _ref5.providerFactory,
141
141
  errorReporter = _ref5.errorReporter,
142
142
  portalProviderAPI = _ref5.portalProviderAPI,
143
- reactContext = _ref5.reactContext,
144
143
  dispatchAnalyticsEvent = _ref5.dispatchAnalyticsEvent;
145
144
  return (0, _main.createPlugin)(schema, {
146
145
  providerFactory: providerFactory,
@@ -156,7 +155,7 @@ var mediaPlugin = exports.mediaPlugin = function mediaPlugin(_ref2) {
156
155
  customDropzoneContainer: options && options.customDropzoneContainer,
157
156
  customMediaPicker: options && options.customMediaPicker,
158
157
  allowResizing: !!(options && options.allowResizing)
159
- }, reactContext, getIntl, api, dispatch, options);
158
+ }, getIntl, api, dispatch, options);
160
159
  }
161
160
  }, {
162
161
  name: 'mediaKeymap',
@@ -732,7 +732,7 @@ var MediaPluginStateImplementation = exports.MediaPluginStateImplementation = /*
732
732
  var getMediaPluginState = exports.getMediaPluginState = function getMediaPluginState(state) {
733
733
  return _pluginKey.stateKey.getState(state);
734
734
  };
735
- var createPlugin = exports.createPlugin = function createPlugin(_schema, options, reactContext, getIntl, pluginInjectionApi, dispatch, mediaOptions, newInsertionBehaviour) {
735
+ var createPlugin = exports.createPlugin = function createPlugin(_schema, options, getIntl, pluginInjectionApi, dispatch, mediaOptions, newInsertionBehaviour) {
736
736
  var intl = getIntl();
737
737
  var dropPlaceholder = createDropPlaceholder(intl, mediaOptions && mediaOptions.allowDropzoneDropLine);
738
738
  return new _safePlugin.SafePlugin({
@@ -128,7 +128,6 @@ export const mediaPlugin = ({
128
128
  providerFactory,
129
129
  errorReporter,
130
130
  portalProviderAPI,
131
- reactContext,
132
131
  dispatchAnalyticsEvent
133
132
  }) => {
134
133
  return createPlugin(schema, {
@@ -145,7 +144,7 @@ export const mediaPlugin = ({
145
144
  customDropzoneContainer: options && options.customDropzoneContainer,
146
145
  customMediaPicker: options && options.customMediaPicker,
147
146
  allowResizing: !!(options && options.allowResizing)
148
- }, reactContext, getIntl, api, dispatch, options);
147
+ }, getIntl, api, dispatch, options);
149
148
  }
150
149
  }, {
151
150
  name: 'mediaKeymap',
@@ -615,7 +615,7 @@ export class MediaPluginStateImplementation {
615
615
  }
616
616
  }
617
617
  export const getMediaPluginState = state => stateKey.getState(state);
618
- export const createPlugin = (_schema, options, reactContext, getIntl, pluginInjectionApi, dispatch, mediaOptions, newInsertionBehaviour) => {
618
+ export const createPlugin = (_schema, options, getIntl, pluginInjectionApi, dispatch, mediaOptions, newInsertionBehaviour) => {
619
619
  const intl = getIntl();
620
620
  const dropPlaceholder = createDropPlaceholder(intl, mediaOptions && mediaOptions.allowDropzoneDropLine);
621
621
  return new SafePlugin({
@@ -128,7 +128,6 @@ export var mediaPlugin = function mediaPlugin(_ref2) {
128
128
  providerFactory = _ref5.providerFactory,
129
129
  errorReporter = _ref5.errorReporter,
130
130
  portalProviderAPI = _ref5.portalProviderAPI,
131
- reactContext = _ref5.reactContext,
132
131
  dispatchAnalyticsEvent = _ref5.dispatchAnalyticsEvent;
133
132
  return createPlugin(schema, {
134
133
  providerFactory: providerFactory,
@@ -144,7 +143,7 @@ export var mediaPlugin = function mediaPlugin(_ref2) {
144
143
  customDropzoneContainer: options && options.customDropzoneContainer,
145
144
  customMediaPicker: options && options.customMediaPicker,
146
145
  allowResizing: !!(options && options.allowResizing)
147
- }, reactContext, getIntl, api, dispatch, options);
146
+ }, getIntl, api, dispatch, options);
148
147
  }
149
148
  }, {
150
149
  name: 'mediaKeymap',
@@ -717,7 +717,7 @@ export var MediaPluginStateImplementation = /*#__PURE__*/function () {
717
717
  export var getMediaPluginState = function getMediaPluginState(state) {
718
718
  return stateKey.getState(state);
719
719
  };
720
- export var createPlugin = function createPlugin(_schema, options, reactContext, getIntl, pluginInjectionApi, dispatch, mediaOptions, newInsertionBehaviour) {
720
+ export var createPlugin = function createPlugin(_schema, options, getIntl, pluginInjectionApi, dispatch, mediaOptions, newInsertionBehaviour) {
721
721
  var intl = getIntl();
722
722
  var dropPlaceholder = createDropPlaceholder(intl, mediaOptions && mediaOptions.allowDropzoneDropLine);
723
723
  return new SafePlugin({
@@ -129,4 +129,4 @@ export declare class MediaPluginStateImplementation implements MediaPluginState
129
129
  updateAndDispatch(props: Partial<Pick<this, 'allowsUploads' | 'allUploadsFinished' | 'isFullscreen'>>): void;
130
130
  }
131
131
  export declare const getMediaPluginState: (state: EditorState) => MediaPluginState;
132
- export declare const createPlugin: (_schema: Schema, options: MediaPluginOptions, reactContext: () => {}, getIntl: () => IntlShape, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatch?: Dispatch, mediaOptions?: MediaOptions, newInsertionBehaviour?: boolean) => SafePlugin<MediaPluginState>;
132
+ export declare const createPlugin: (_schema: Schema, options: MediaPluginOptions, getIntl: () => IntlShape, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatch?: Dispatch, mediaOptions?: MediaOptions, newInsertionBehaviour?: boolean) => SafePlugin<MediaPluginState>;
@@ -129,4 +129,4 @@ export declare class MediaPluginStateImplementation implements MediaPluginState
129
129
  updateAndDispatch(props: Partial<Pick<this, 'allowsUploads' | 'allUploadsFinished' | 'isFullscreen'>>): void;
130
130
  }
131
131
  export declare const getMediaPluginState: (state: EditorState) => MediaPluginState;
132
- export declare const createPlugin: (_schema: Schema, options: MediaPluginOptions, reactContext: () => {}, getIntl: () => IntlShape, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatch?: Dispatch, mediaOptions?: MediaOptions, newInsertionBehaviour?: boolean) => SafePlugin<MediaPluginState>;
132
+ export declare const createPlugin: (_schema: Schema, options: MediaPluginOptions, getIntl: () => IntlShape, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatch?: Dispatch, mediaOptions?: MediaOptions, newInsertionBehaviour?: boolean) => SafePlugin<MediaPluginState>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "1.29.2",
3
+ "version": "1.29.3",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,10 +37,10 @@
37
37
  "@atlaskit/analytics-namespaced-context": "^6.11.0",
38
38
  "@atlaskit/analytics-next": "^10.1.0",
39
39
  "@atlaskit/button": "^20.1.0",
40
- "@atlaskit/editor-common": "^87.13.0",
40
+ "@atlaskit/editor-common": "^88.0.0",
41
41
  "@atlaskit/editor-palette": "1.6.0",
42
- "@atlaskit/editor-plugin-analytics": "^1.7.0",
43
- "@atlaskit/editor-plugin-annotation": "1.19.1",
42
+ "@atlaskit/editor-plugin-analytics": "^1.8.0",
43
+ "@atlaskit/editor-plugin-annotation": "1.19.2",
44
44
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
45
45
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
46
46
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/form": "^10.5.0",
57
57
  "@atlaskit/icon": "^22.14.0",
58
58
  "@atlaskit/media-card": "^78.1.0",
59
- "@atlaskit/media-client": "^27.4.0",
59
+ "@atlaskit/media-client": "^27.5.0",
60
60
  "@atlaskit/media-client-react": "^2.1.0",
61
61
  "@atlaskit/media-common": "^11.4.0",
62
62
  "@atlaskit/media-filmstrip": "^47.2.0",