@atlaskit/editor-plugin-media 1.37.2 → 1.37.4

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.
@@ -1,62 +1,9 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
1
  import { jsx } from '@emotion/react';
7
- import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
8
- import type { GuidelineConfig, GuidelineSnapsReference, RelativeGuides } from '@atlaskit/editor-common/guideline';
9
- import type { Dimensions, HandleResize, HandleResizeStart, Position, Snap } from '@atlaskit/editor-common/resizer';
10
- import type { MediaClientConfig } from '@atlaskit/media-core';
11
2
  import type { Props } from './types';
12
- type State = {
13
- isVideoFile: boolean;
14
- isResizing: boolean;
15
- size: Dimensions;
16
- snaps: Snap;
17
- relativeGuides: RelativeGuides;
18
- guidelines: GuidelineConfig[];
19
- };
20
3
  export declare const resizerNextTestId = "mediaSingle.resizerNext.testid";
21
4
  type ResizableMediaSingleNextProps = Props & {
22
5
  showLegacyNotification?: boolean;
23
6
  };
24
- declare class ResizableMediaSingleNext extends React.Component<ResizableMediaSingleNextProps, State> {
25
- private lastSnappedGuidelineKeys;
26
- constructor(props: ResizableMediaSingleNextProps);
27
- componentDidUpdate(prevProps: Props): boolean;
28
- componentDidMount(): Promise<void>;
29
- UNSAFE_componentWillReceiveProps(nextProps: Props): void;
30
- get wrappedLayout(): boolean;
31
- get pos(): number | null;
32
- get $pos(): import("prosemirror-model").ResolvedPos | null;
33
- get aspectRatio(): number;
34
- get insideInlineLike(): boolean;
35
- get insideLayout(): boolean;
36
- get isGuidelineEnabled(): boolean;
37
- isNestedNode(): boolean;
38
- private getDefaultGuidelines;
39
- private updateGuidelines;
40
- checkVideoFile(viewMediaClientConfig?: MediaClientConfig): Promise<void>;
41
- calcNewLayout: (newWidth: number, stop: boolean) => MediaSingleLayout;
42
- calcUnwrappedLayout: (width: number, containerWidth: number, contentWidth: number, fullWidthMode?: boolean, isNestedNode?: boolean) => 'center' | 'wide' | 'full-width';
43
- calcPxHeight: (newWidth: number) => number;
44
- private displayGuideline;
45
- private setIsResizing;
46
- private updateSizeInPluginState;
47
- private calcMaxWidth;
48
- private calcMinWidth;
49
- private getRelativeGuides;
50
- updateActiveGuidelines: (width: number | undefined, guidelines: GuidelineConfig[], guidelineSnapsReference: GuidelineSnapsReference) => void;
51
- calculateSizeState: (size: Position & Dimensions, delta: Dimensions, onResizeStop?: boolean) => {
52
- width: number;
53
- height: number;
54
- layout: MediaSingleLayout;
55
- };
56
- selectCurrentMediaNode: () => void;
57
- handleResizeStart: HandleResizeStart;
58
- handleResize: HandleResize;
59
- handleResizeStop: HandleResize;
60
- render(): jsx.JSX.Element;
61
- }
62
- export default ResizableMediaSingleNext;
7
+ export declare const ResizableMediaSingleNextFunctional: (props: ResizableMediaSingleNextProps) => jsx.JSX.Element;
8
+ declare const ResizableMediaSingleToggle: ({ allowBreakoutSnapPoints, children, className, containerWidth, dataAttributes, disableHandles, dispatchAnalyticsEvent, editorAppearance, fullWidthMode, getPos, gridSize, handleMediaSingleRef, hasFallbackContainer, height, isInsideOfInlineExtension, isLoading, layout, lineLength, mediaSingleWidth, nodeType, pctWidth, pluginInjectionApi, selected, showLegacyNotification, size, updateSize, view, viewMediaClientConfig, width, }: ResizableMediaSingleNextProps) => jsx.JSX.Element;
9
+ export default ResizableMediaSingleToggle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "1.37.2",
3
+ "version": "1.37.4",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  "@atlaskit/analytics-namespaced-context": "^6.12.0",
37
37
  "@atlaskit/analytics-next": "^10.1.0",
38
38
  "@atlaskit/button": "^20.3.0",
39
- "@atlaskit/editor-common": "^94.2.0",
39
+ "@atlaskit/editor-common": "^94.4.0",
40
40
  "@atlaskit/editor-palette": "1.6.2",
41
41
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
42
42
  "@atlaskit/editor-plugin-annotation": "1.21.3",
@@ -50,23 +50,23 @@
50
50
  "@atlaskit/editor-plugin-selection": "^1.5.0",
51
51
  "@atlaskit/editor-plugin-width": "^1.3.0",
52
52
  "@atlaskit/editor-prosemirror": "6.0.0",
53
- "@atlaskit/editor-shared-styles": "^3.0.0",
53
+ "@atlaskit/editor-shared-styles": "^3.1.0",
54
54
  "@atlaskit/editor-tables": "^2.8.0",
55
55
  "@atlaskit/form": "^10.5.0",
56
56
  "@atlaskit/icon": "^22.24.0",
57
- "@atlaskit/media-card": "^78.8.0",
57
+ "@atlaskit/media-card": "^78.9.0",
58
58
  "@atlaskit/media-client": "^28.0.0",
59
59
  "@atlaskit/media-client-react": "^2.2.0",
60
- "@atlaskit/media-common": "^11.6.0",
60
+ "@atlaskit/media-common": "^11.7.0",
61
61
  "@atlaskit/media-filmstrip": "^47.4.0",
62
62
  "@atlaskit/media-picker": "^66.7.0",
63
- "@atlaskit/media-ui": "^25.16.0",
63
+ "@atlaskit/media-ui": "^26.0.0",
64
64
  "@atlaskit/media-viewer": "^49.2.0",
65
65
  "@atlaskit/platform-feature-flags": "^0.3.0",
66
66
  "@atlaskit/primitives": "^12.2.0",
67
67
  "@atlaskit/textfield": "^6.5.0",
68
68
  "@atlaskit/theme": "^14.0.0",
69
- "@atlaskit/tmp-editor-statsig": "^2.8.0",
69
+ "@atlaskit/tmp-editor-statsig": "^2.9.0",
70
70
  "@atlaskit/tokens": "^2.0.0",
71
71
  "@atlaskit/tooltip": "^18.8.0",
72
72
  "@babel/runtime": "^7.0.0",