@atlaskit/editor-plugin-media 0.2.0
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/.eslintrc.js +5 -0
- package/CHANGELOG.md +7 -0
- package/LICENSE.md +13 -0
- package/README.md +30 -0
- package/dist/cjs/index.js +5 -0
- package/dist/cjs/types.js +5 -0
- package/dist/es2019/index.js +1 -0
- package/dist/es2019/types.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/types.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types.d.ts +118 -0
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/types.d.ts +118 -0
- package/package.json +122 -0
- package/report.api.md +36 -0
- package/tmp/api-report-tmp.d.ts +9 -0
- package/types/package.json +15 -0
package/.eslintrc.js
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @atlaskit/editor-plugin-media
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#40755](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40755) [`c1cd5ba7d38`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c1cd5ba7d38) - [ED-16733] Extraction Media Plugin: Add new placeholder package for media types.
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2023 Atlassian Pty Ltd
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Editor Plugin Media
|
|
2
|
+
|
|
3
|
+
Media plugin for @atlaskit/editor-core
|
|
4
|
+
|
|
5
|
+
**Note:** This component is designed for internal Atlassian development.
|
|
6
|
+
External contributors will be able to use this component but will not be able to submit issues.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
---
|
|
10
|
+
- **Install** - *yarn add @atlaskit/editor-plugin-media*
|
|
11
|
+
- **npm** - [@atlaskit/editor-plugin-media](https://www.npmjs.com/package/@atlaskit/editor-plugin-media)
|
|
12
|
+
- **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-media)
|
|
13
|
+
- **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-media/dist/)
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
---
|
|
17
|
+
**Internal use only**
|
|
18
|
+
|
|
19
|
+
@atlaskit/editor-plugin-media is intended for internal use by the @atlaskit/editor-core and as a plugin dependency of the Editor within your product.
|
|
20
|
+
|
|
21
|
+
Direct use of this component is not supported.
|
|
22
|
+
|
|
23
|
+
Please see [Atlaskit - Editor plugin type ahead](https://atlaskit.atlassian.com/packages/editor/editor-plugin-media) for documentation and examples for this package.
|
|
24
|
+
|
|
25
|
+
## Support
|
|
26
|
+
---
|
|
27
|
+
For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
|
|
28
|
+
## License
|
|
29
|
+
---
|
|
30
|
+
Please see [Atlassian Frontend - License](https://developer.atlassian.com/cloud/framework/atlassian-frontend/#license) for more licensing information.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { ProviderFactory, Providers } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
+
import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
|
|
3
|
+
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
+
import type { FileIdentifier } from '@atlaskit/media-client';
|
|
7
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
8
|
+
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
9
|
+
import type { MediaFile, UploadParams } from '@atlaskit/media-picker/types';
|
|
10
|
+
interface PlaceholderTextOptions {
|
|
11
|
+
allowInserting?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type MediaStateStatus = 'unknown' | 'ready' | 'cancelled' | 'preview' | 'error' | 'mobile-upload-end';
|
|
14
|
+
export type MediaSingleWithType = 'pixel' | 'percentage';
|
|
15
|
+
export interface MediaOptions {
|
|
16
|
+
provider?: Providers['mediaProvider'];
|
|
17
|
+
allowMediaSingle?: boolean | MediaSingleOptions;
|
|
18
|
+
allowMediaGroup?: boolean;
|
|
19
|
+
customDropzoneContainer?: HTMLElement;
|
|
20
|
+
customMediaPicker?: CustomMediaPicker;
|
|
21
|
+
allowResizing?: boolean;
|
|
22
|
+
allowResizingInTables?: boolean;
|
|
23
|
+
allowLinking?: boolean;
|
|
24
|
+
allowLazyLoading?: boolean;
|
|
25
|
+
allowBreakoutSnapPoints?: boolean;
|
|
26
|
+
allowAdvancedToolBarOptions?: boolean;
|
|
27
|
+
allowMediaSingleEditable?: boolean;
|
|
28
|
+
allowRemoteDimensionsFetch?: boolean;
|
|
29
|
+
allowDropzoneDropLine?: boolean;
|
|
30
|
+
allowMarkingUploadsAsIncomplete?: boolean;
|
|
31
|
+
fullWidthEnabled?: boolean;
|
|
32
|
+
uploadErrorHandler?: (state: MediaState) => void;
|
|
33
|
+
waitForMediaUpload?: boolean;
|
|
34
|
+
isCopyPasteEnabled?: boolean;
|
|
35
|
+
allowAltTextOnImages?: boolean;
|
|
36
|
+
enableDownloadButton?: boolean;
|
|
37
|
+
altTextValidator?: (value: string) => string[];
|
|
38
|
+
useForgePlugins?: boolean;
|
|
39
|
+
allowTemplatePlaceholders?: boolean | PlaceholderTextOptions;
|
|
40
|
+
alignLeftOnInsert?: boolean;
|
|
41
|
+
editorSelectionAPI?: EditorSelectionAPI;
|
|
42
|
+
featureFlags?: MediaFeatureFlags;
|
|
43
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
44
|
+
allowCaptions?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface MediaSingleOptions {
|
|
47
|
+
disableLayout?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface MediaState {
|
|
50
|
+
id: string;
|
|
51
|
+
status?: MediaStateStatus;
|
|
52
|
+
fileName?: string;
|
|
53
|
+
fileSize?: number;
|
|
54
|
+
fileMimeType?: string;
|
|
55
|
+
collection?: string;
|
|
56
|
+
dimensions?: {
|
|
57
|
+
width: number | undefined;
|
|
58
|
+
height: number | undefined;
|
|
59
|
+
};
|
|
60
|
+
scaleFactor?: number;
|
|
61
|
+
error?: {
|
|
62
|
+
name: string;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
/** still require to support Mobile */
|
|
66
|
+
publicId?: string;
|
|
67
|
+
contextId?: string;
|
|
68
|
+
}
|
|
69
|
+
export type Listener = (data: any) => void;
|
|
70
|
+
export interface CustomMediaPicker {
|
|
71
|
+
on(event: string, cb: Listener): void;
|
|
72
|
+
removeAllListeners(event: any): void;
|
|
73
|
+
emit(event: string, data: any): void;
|
|
74
|
+
destroy(): void;
|
|
75
|
+
setUploadParams(uploadParams: UploadParams): void;
|
|
76
|
+
}
|
|
77
|
+
export type MobileUploadEndEventPayload = {
|
|
78
|
+
readonly file: MediaFile & {
|
|
79
|
+
readonly collectionName?: string;
|
|
80
|
+
readonly publicId?: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
export type MediaEditorState = {
|
|
84
|
+
mediaClientConfig?: MediaClientConfig;
|
|
85
|
+
editor?: {
|
|
86
|
+
pos: number;
|
|
87
|
+
identifier: FileIdentifier;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export type MediaToolbarBaseConfig = {
|
|
91
|
+
title: string;
|
|
92
|
+
getDomRef?: (view: EditorView) => HTMLElement | undefined;
|
|
93
|
+
nodeType: NodeType | NodeType[];
|
|
94
|
+
};
|
|
95
|
+
export type MediaFloatingToolbarOptions = {
|
|
96
|
+
providerFactory?: ProviderFactory;
|
|
97
|
+
allowResizing?: boolean;
|
|
98
|
+
allowMediaInline?: boolean;
|
|
99
|
+
allowLinking?: boolean;
|
|
100
|
+
allowAdvancedToolBarOptions?: boolean;
|
|
101
|
+
allowResizingInTables?: boolean;
|
|
102
|
+
allowAltTextOnImages?: boolean;
|
|
103
|
+
altTextValidator?: (value: string) => string[];
|
|
104
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
105
|
+
fullWidthEnabled?: boolean;
|
|
106
|
+
};
|
|
107
|
+
export type MediaDecorationSpec = {
|
|
108
|
+
type: 'media';
|
|
109
|
+
selected: boolean;
|
|
110
|
+
};
|
|
111
|
+
export type ProsemirrorGetPosHandler = getPosHandlerNode;
|
|
112
|
+
export type getPosHandler = getPosHandlerNode;
|
|
113
|
+
export type getPosHandlerNode = () => number | undefined;
|
|
114
|
+
export interface ReactNodeProps {
|
|
115
|
+
selected: boolean;
|
|
116
|
+
}
|
|
117
|
+
export type ForwardRef = (node: HTMLElement | null) => void;
|
|
118
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { ProviderFactory, Providers } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
+
import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
|
|
3
|
+
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
+
import type { FileIdentifier } from '@atlaskit/media-client';
|
|
7
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
8
|
+
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
9
|
+
import type { MediaFile, UploadParams } from '@atlaskit/media-picker/types';
|
|
10
|
+
interface PlaceholderTextOptions {
|
|
11
|
+
allowInserting?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type MediaStateStatus = 'unknown' | 'ready' | 'cancelled' | 'preview' | 'error' | 'mobile-upload-end';
|
|
14
|
+
export type MediaSingleWithType = 'pixel' | 'percentage';
|
|
15
|
+
export interface MediaOptions {
|
|
16
|
+
provider?: Providers['mediaProvider'];
|
|
17
|
+
allowMediaSingle?: boolean | MediaSingleOptions;
|
|
18
|
+
allowMediaGroup?: boolean;
|
|
19
|
+
customDropzoneContainer?: HTMLElement;
|
|
20
|
+
customMediaPicker?: CustomMediaPicker;
|
|
21
|
+
allowResizing?: boolean;
|
|
22
|
+
allowResizingInTables?: boolean;
|
|
23
|
+
allowLinking?: boolean;
|
|
24
|
+
allowLazyLoading?: boolean;
|
|
25
|
+
allowBreakoutSnapPoints?: boolean;
|
|
26
|
+
allowAdvancedToolBarOptions?: boolean;
|
|
27
|
+
allowMediaSingleEditable?: boolean;
|
|
28
|
+
allowRemoteDimensionsFetch?: boolean;
|
|
29
|
+
allowDropzoneDropLine?: boolean;
|
|
30
|
+
allowMarkingUploadsAsIncomplete?: boolean;
|
|
31
|
+
fullWidthEnabled?: boolean;
|
|
32
|
+
uploadErrorHandler?: (state: MediaState) => void;
|
|
33
|
+
waitForMediaUpload?: boolean;
|
|
34
|
+
isCopyPasteEnabled?: boolean;
|
|
35
|
+
allowAltTextOnImages?: boolean;
|
|
36
|
+
enableDownloadButton?: boolean;
|
|
37
|
+
altTextValidator?: (value: string) => string[];
|
|
38
|
+
useForgePlugins?: boolean;
|
|
39
|
+
allowTemplatePlaceholders?: boolean | PlaceholderTextOptions;
|
|
40
|
+
alignLeftOnInsert?: boolean;
|
|
41
|
+
editorSelectionAPI?: EditorSelectionAPI;
|
|
42
|
+
featureFlags?: MediaFeatureFlags;
|
|
43
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
44
|
+
allowCaptions?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface MediaSingleOptions {
|
|
47
|
+
disableLayout?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface MediaState {
|
|
50
|
+
id: string;
|
|
51
|
+
status?: MediaStateStatus;
|
|
52
|
+
fileName?: string;
|
|
53
|
+
fileSize?: number;
|
|
54
|
+
fileMimeType?: string;
|
|
55
|
+
collection?: string;
|
|
56
|
+
dimensions?: {
|
|
57
|
+
width: number | undefined;
|
|
58
|
+
height: number | undefined;
|
|
59
|
+
};
|
|
60
|
+
scaleFactor?: number;
|
|
61
|
+
error?: {
|
|
62
|
+
name: string;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
/** still require to support Mobile */
|
|
66
|
+
publicId?: string;
|
|
67
|
+
contextId?: string;
|
|
68
|
+
}
|
|
69
|
+
export type Listener = (data: any) => void;
|
|
70
|
+
export interface CustomMediaPicker {
|
|
71
|
+
on(event: string, cb: Listener): void;
|
|
72
|
+
removeAllListeners(event: any): void;
|
|
73
|
+
emit(event: string, data: any): void;
|
|
74
|
+
destroy(): void;
|
|
75
|
+
setUploadParams(uploadParams: UploadParams): void;
|
|
76
|
+
}
|
|
77
|
+
export type MobileUploadEndEventPayload = {
|
|
78
|
+
readonly file: MediaFile & {
|
|
79
|
+
readonly collectionName?: string;
|
|
80
|
+
readonly publicId?: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
export type MediaEditorState = {
|
|
84
|
+
mediaClientConfig?: MediaClientConfig;
|
|
85
|
+
editor?: {
|
|
86
|
+
pos: number;
|
|
87
|
+
identifier: FileIdentifier;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export type MediaToolbarBaseConfig = {
|
|
91
|
+
title: string;
|
|
92
|
+
getDomRef?: (view: EditorView) => HTMLElement | undefined;
|
|
93
|
+
nodeType: NodeType | NodeType[];
|
|
94
|
+
};
|
|
95
|
+
export type MediaFloatingToolbarOptions = {
|
|
96
|
+
providerFactory?: ProviderFactory;
|
|
97
|
+
allowResizing?: boolean;
|
|
98
|
+
allowMediaInline?: boolean;
|
|
99
|
+
allowLinking?: boolean;
|
|
100
|
+
allowAdvancedToolBarOptions?: boolean;
|
|
101
|
+
allowResizingInTables?: boolean;
|
|
102
|
+
allowAltTextOnImages?: boolean;
|
|
103
|
+
altTextValidator?: (value: string) => string[];
|
|
104
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
105
|
+
fullWidthEnabled?: boolean;
|
|
106
|
+
};
|
|
107
|
+
export type MediaDecorationSpec = {
|
|
108
|
+
type: 'media';
|
|
109
|
+
selected: boolean;
|
|
110
|
+
};
|
|
111
|
+
export type ProsemirrorGetPosHandler = getPosHandlerNode;
|
|
112
|
+
export type getPosHandler = getPosHandlerNode;
|
|
113
|
+
export type getPosHandlerNode = () => number | undefined;
|
|
114
|
+
export interface ReactNodeProps {
|
|
115
|
+
selected: boolean;
|
|
116
|
+
}
|
|
117
|
+
export type ForwardRef = (node: HTMLElement | null) => void;
|
|
118
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: Lego",
|
|
12
|
+
"releaseModel": "continuous",
|
|
13
|
+
"singleton": true
|
|
14
|
+
},
|
|
15
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
16
|
+
"main": "dist/cjs/index.js",
|
|
17
|
+
"module": "dist/esm/index.js",
|
|
18
|
+
"module:es2019": "dist/es2019/index.js",
|
|
19
|
+
"types": "dist/types/index.d.ts",
|
|
20
|
+
"typesVersions": {
|
|
21
|
+
">=4.5 <4.9": {
|
|
22
|
+
"*": [
|
|
23
|
+
"dist/types-ts4.5/*",
|
|
24
|
+
"dist/types-ts4.5/index.d.ts"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"atlaskit:src": "src/index.ts",
|
|
30
|
+
"af:exports": {
|
|
31
|
+
".": "./src/index.ts",
|
|
32
|
+
"./types": "./src/types.ts"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@atlaskit/editor-common": "^76.1.5",
|
|
36
|
+
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
37
|
+
"@atlaskit/media-client": "^24.0.0",
|
|
38
|
+
"@atlaskit/media-common": "^9.0.0",
|
|
39
|
+
"@atlaskit/media-picker": "^66.2.0",
|
|
40
|
+
"@babel/runtime": "^7.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@af/visual-regression": "*",
|
|
44
|
+
"@atlaskit/adf-schema": "^32.0.0",
|
|
45
|
+
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
46
|
+
"@atlaskit/analytics-next": "^9.1.0",
|
|
47
|
+
"@atlaskit/button": "^16.10.0",
|
|
48
|
+
"@atlaskit/editor-palette": "1.5.1",
|
|
49
|
+
"@atlaskit/editor-plugin-width": "^0.2.0",
|
|
50
|
+
"@atlaskit/editor-shared-styles": "^2.6.0",
|
|
51
|
+
"@atlaskit/editor-tables": "^2.3.0",
|
|
52
|
+
"@atlaskit/form": "^8.11.0",
|
|
53
|
+
"@atlaskit/icon": "^21.12.0",
|
|
54
|
+
"@atlaskit/media-card": "^77.0.0",
|
|
55
|
+
"@atlaskit/media-filmstrip": "^47.0.0",
|
|
56
|
+
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
57
|
+
"@atlaskit/media-ui": "^25.0.0",
|
|
58
|
+
"@atlaskit/media-viewer": "^48.0.0",
|
|
59
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
60
|
+
"@atlaskit/ssr": "*",
|
|
61
|
+
"@atlaskit/textfield": "^5.6.0",
|
|
62
|
+
"@atlaskit/theme": "^12.6.0",
|
|
63
|
+
"@atlaskit/tokens": "^1.22.0",
|
|
64
|
+
"@atlaskit/tooltip": "^17.8.0",
|
|
65
|
+
"@atlaskit/visual-regression": "*",
|
|
66
|
+
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
67
|
+
"@atlassian/feature-flags-test-utils": "^0.1.1",
|
|
68
|
+
"@emotion/react": "^11.7.1",
|
|
69
|
+
"@testing-library/react": "^12.1.5",
|
|
70
|
+
"@testing-library/user-event": "^14.4.3",
|
|
71
|
+
"classnames": "^2.2.5",
|
|
72
|
+
"enzyme": "^3.10.0",
|
|
73
|
+
"lodash": "^4.17.21",
|
|
74
|
+
"memoize-one": "^6.0.0",
|
|
75
|
+
"react-dom": "^16.8.0",
|
|
76
|
+
"typescript": "~4.9.5",
|
|
77
|
+
"uuid": "^3.1.0",
|
|
78
|
+
"wait-for-expect": "^1.2.0"
|
|
79
|
+
},
|
|
80
|
+
"peerDependencies": {
|
|
81
|
+
"@atlaskit/media-core": "^34.1.2",
|
|
82
|
+
"react": "^16.8.0",
|
|
83
|
+
"react-dom": "^16.8.0",
|
|
84
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
85
|
+
},
|
|
86
|
+
"techstack": {
|
|
87
|
+
"@atlassian/frontend": {
|
|
88
|
+
"import-structure": [
|
|
89
|
+
"atlassian-conventions"
|
|
90
|
+
],
|
|
91
|
+
"circular-dependencies": [
|
|
92
|
+
"file-and-folder-level"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"@repo/internal": {
|
|
96
|
+
"dom-events": "use-bind-event-listener",
|
|
97
|
+
"analytics": [
|
|
98
|
+
"analytics-next"
|
|
99
|
+
],
|
|
100
|
+
"design-tokens": [
|
|
101
|
+
"color"
|
|
102
|
+
],
|
|
103
|
+
"theming": [
|
|
104
|
+
"react-context"
|
|
105
|
+
],
|
|
106
|
+
"ui-components": [
|
|
107
|
+
"lite-mode"
|
|
108
|
+
],
|
|
109
|
+
"deprecation": [
|
|
110
|
+
"no-deprecated-imports"
|
|
111
|
+
],
|
|
112
|
+
"styling": [
|
|
113
|
+
"static",
|
|
114
|
+
"emotion"
|
|
115
|
+
],
|
|
116
|
+
"imports": [
|
|
117
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
122
|
+
}
|
package/report.api.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<!-- API Report Version: 2.3 -->
|
|
2
|
+
|
|
3
|
+
## API Report File for "@atlaskit/editor-plugin-media"
|
|
4
|
+
|
|
5
|
+
> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
|
|
6
|
+
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
|
+
|
|
8
|
+
### Table of contents
|
|
9
|
+
|
|
10
|
+
- [Main Entry Types](#main-entry-types)
|
|
11
|
+
- [Peer Dependencies](#peer-dependencies)
|
|
12
|
+
|
|
13
|
+
### Main Entry Types
|
|
14
|
+
|
|
15
|
+
<!--SECTION START: Main Entry Types-->
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
// (No @packageDocumentation comment for this package)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
<!--SECTION END: Main Entry Types-->
|
|
22
|
+
|
|
23
|
+
### Peer Dependencies
|
|
24
|
+
|
|
25
|
+
<!--SECTION START: Peer Dependencies-->
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"@atlaskit/media-core": "^34.1.2",
|
|
30
|
+
"react": "^16.8.0",
|
|
31
|
+
"react-dom": "^16.8.0",
|
|
32
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
<!--SECTION END: Peer Dependencies-->
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-media/types",
|
|
3
|
+
"main": "../dist/cjs/types.js",
|
|
4
|
+
"module": "../dist/esm/types.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/types.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/types.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/types.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|