@atlaskit/editor-plugin-media 1.10.0 → 1.10.1

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,12 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 1.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
8
+ - Updated dependencies
9
+
3
10
  ## 1.10.0
4
11
 
5
12
  ### Minor Changes
@@ -23,7 +23,7 @@ declare class MediaNodeView extends SelectionBasedNodeView<MediaNodeViewProps> {
23
23
  height: number;
24
24
  }) => void;
25
25
  renderMediaNodeWithState: (mediaProvider?: Promise<MediaProvider>, contextIdentifierProvider?: Promise<ContextIdentifierProvider>) => ({ width: editorWidth }: {
26
- width?: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
26
+ width?: WidthPluginState | undefined;
27
27
  }) => JSX.Element;
28
28
  renderMediaNodeWithProviders: ({ mediaProvider, contextIdentifierProvider, }: Providers) => JSX.Element;
29
29
  render(): JSX.Element;
@@ -7,7 +7,7 @@ export interface Props {
7
7
  isReducedSpacing?: boolean;
8
8
  api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
9
9
  }
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
11
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
10
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
11
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
12
12
  };
13
13
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { MediaEventPayload, MediaInputResizeTrackAction, MediaResizeTrackAction, MediaSwitchType } from '@atlaskit/editor-common/analytics';
2
2
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
- export declare const getMediaResizeAnalyticsEvent: <T extends MediaResizeTrackAction>(type: string, attributes: T["attributes"]) => MediaEventPayload | void;
4
- export declare const getMediaInputResizeAnalyticsEvent: <T extends MediaInputResizeTrackAction>(type: string, attributes: T["attributes"]) => MediaEventPayload | void;
3
+ export declare const getMediaResizeAnalyticsEvent: <T extends MediaResizeTrackAction>(type: string, attributes: T['attributes']) => MediaEventPayload | void;
4
+ export declare const getMediaInputResizeAnalyticsEvent: <T extends MediaInputResizeTrackAction>(type: string, attributes: T['attributes']) => MediaEventPayload | void;
5
5
  export declare const getChangeMediaAnalytics: (previousType: MediaSwitchType, newType: MediaSwitchType, changeFromLocation?: string) => MediaEventPayload;
6
6
  export declare function findChangeFromLocation(selection: Selection): string;
@@ -23,7 +23,7 @@ declare class MediaNodeView extends SelectionBasedNodeView<MediaNodeViewProps> {
23
23
  height: number;
24
24
  }) => void;
25
25
  renderMediaNodeWithState: (mediaProvider?: Promise<MediaProvider>, contextIdentifierProvider?: Promise<ContextIdentifierProvider>) => ({ width: editorWidth }: {
26
- width?: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
26
+ width?: WidthPluginState | undefined;
27
27
  }) => JSX.Element;
28
28
  renderMediaNodeWithProviders: ({ mediaProvider, contextIdentifierProvider, }: Providers) => JSX.Element;
29
29
  render(): JSX.Element;
@@ -7,7 +7,7 @@ export interface Props {
7
7
  isReducedSpacing?: boolean;
8
8
  api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
9
9
  }
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
11
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
10
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
11
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
12
12
  };
13
13
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { MediaEventPayload, MediaInputResizeTrackAction, MediaResizeTrackAction, MediaSwitchType } from '@atlaskit/editor-common/analytics';
2
2
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
- export declare const getMediaResizeAnalyticsEvent: <T extends MediaResizeTrackAction>(type: string, attributes: T["attributes"]) => MediaEventPayload | void;
4
- export declare const getMediaInputResizeAnalyticsEvent: <T extends MediaInputResizeTrackAction>(type: string, attributes: T["attributes"]) => MediaEventPayload | void;
3
+ export declare const getMediaResizeAnalyticsEvent: <T extends MediaResizeTrackAction>(type: string, attributes: T['attributes']) => MediaEventPayload | void;
4
+ export declare const getMediaInputResizeAnalyticsEvent: <T extends MediaInputResizeTrackAction>(type: string, attributes: T['attributes']) => MediaEventPayload | void;
5
5
  export declare const getChangeMediaAnalytics: (previousType: MediaSwitchType, newType: MediaSwitchType, changeFromLocation?: string) => MediaEventPayload;
6
6
  export declare function findChangeFromLocation(selection: Selection): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
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.9.0",
38
38
  "@atlaskit/analytics-next": "^9.2.0",
39
39
  "@atlaskit/button": "^17.7.0",
40
- "@atlaskit/editor-common": "^78.14.0",
41
- "@atlaskit/editor-palette": "1.5.2",
40
+ "@atlaskit/editor-common": "^78.17.0",
41
+ "@atlaskit/editor-palette": "1.5.3",
42
42
  "@atlaskit/editor-plugin-analytics": "^1.0.0",
43
- "@atlaskit/editor-plugin-annotation": "1.4.0",
43
+ "@atlaskit/editor-plugin-annotation": "1.4.1",
44
44
  "@atlaskit/editor-plugin-decorations": "^1.0.0",
45
45
  "@atlaskit/editor-plugin-editor-disabled": "^1.0.0",
46
46
  "@atlaskit/editor-plugin-floating-toolbar": "^1.2.0",
@@ -63,10 +63,10 @@
63
63
  "@atlaskit/media-ui": "^25.4.0",
64
64
  "@atlaskit/media-viewer": "^48.4.0",
65
65
  "@atlaskit/platform-feature-flags": "^0.2.0",
66
- "@atlaskit/primitives": "^5.0.0",
66
+ "@atlaskit/primitives": "^5.1.0",
67
67
  "@atlaskit/textfield": "^6.1.0",
68
68
  "@atlaskit/theme": "^12.6.0",
69
- "@atlaskit/tokens": "^1.41.0",
69
+ "@atlaskit/tokens": "^1.42.0",
70
70
  "@atlaskit/tooltip": "^18.1.0",
71
71
  "@babel/runtime": "^7.0.0",
72
72
  "@emotion/react": "^11.7.1",
@@ -78,7 +78,7 @@
78
78
  "devDependencies": {
79
79
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
80
80
  "react-dom": "^16.8.0",
81
- "typescript": "~4.9.5"
81
+ "typescript": "~5.4.2"
82
82
  },
83
83
  "peerDependencies": {
84
84
  "@atlaskit/media-core": "^34.2.0",
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/types.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/types.d.ts"
12
12
  ]