@atlaskit/editor-plugin-media-insert 20.0.0 → 20.0.2
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 +16 -0
- package/README.md +16 -3
- package/dist/cjs/ui/MediaFromURL.js +1 -2
- package/dist/es2019/ui/MediaFromURL.js +1 -2
- package/dist/esm/ui/MediaFromURL.js +1 -2
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui/LocalMedia.d.ts +1 -1
- package/dist/types/ui/MediaCard.d.ts +1 -1
- package/dist/types/ui/MediaFromURL.d.ts +1 -1
- package/dist/types/ui/MediaInsertPicker.d.ts +1 -1
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/LocalMedia.d.ts +1 -1
- package/dist/types-ts4.5/ui/MediaCard.d.ts +1 -1
- package/dist/types-ts4.5/ui/MediaFromURL.d.ts +1 -1
- package/dist/types-ts4.5/ui/MediaInsertPicker.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media-insert
|
|
2
2
|
|
|
3
|
+
## 20.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7b7c52dff5d7d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b7c52dff5d7d) -
|
|
8
|
+
Fix eslint violations for type import syntax
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 20.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`14803a836f641`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/14803a836f641) -
|
|
16
|
+
Update README.md and 0-intro.tsx
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 20.0.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
# Editor
|
|
1
|
+
# Editor Plugin Media Insert
|
|
2
2
|
|
|
3
|
-
Media
|
|
3
|
+
Media Insert plugin for @atlaskit/editor-core
|
|
4
4
|
|
|
5
5
|
**Note:** This component is designed for internal Atlassian development.
|
|
6
6
|
External contributors will be able to use this component but will not be able to submit issues.
|
|
7
7
|
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
The Media Insert plugin provides a user interface for inserting media into the Atlassian Editor. It offers flexible options for adding media through local file uploads or external URLs, with support for customizable validation and configuration.
|
|
11
|
+
|
|
12
|
+
## Key features
|
|
13
|
+
|
|
14
|
+
- **Local file uploads** - Upload media files from your local device through an integrated file picker
|
|
15
|
+
- **External URL insertion** - Insert media using external URLs with optional upload to media service
|
|
16
|
+
- **Quick insert integration** - Access media insertion via the quick insert menu with keyword search support
|
|
17
|
+
- **Flexible configuration** - Configure URL-only mode, custom validation, and helper messages
|
|
18
|
+
- **Analytics tracking** - Track media insertion events and user interactions with the picker
|
|
19
|
+
- **Popup interface** - Intuitive tabbed interface for selecting insertion method
|
|
20
|
+
|
|
8
21
|
## Install
|
|
9
22
|
---
|
|
10
23
|
- **Install** - *yarn add @atlaskit/editor-plugin-media-insert*
|
|
@@ -27,4 +40,4 @@ Please see [Atlaskit - Editor plugin media-insert](https://atlaskit.atlassian.co
|
|
|
27
40
|
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
41
|
## License
|
|
29
42
|
---
|
|
30
|
-
Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#
|
|
43
|
+
Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Providers } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { UiComponentFactoryParams, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import {
|
|
4
|
+
import type { MediaState, MediaStateEventSubscriber } from '@atlaskit/editor-plugin-media/types';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import type { MediaInsertPlugin, MediaInsertPluginConfig } from '../mediaInsertPluginType';
|
|
7
7
|
export type InsertMediaSingle = (props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import {
|
|
4
|
+
import type { InsertFile } from '../types';
|
|
5
5
|
type Props = {
|
|
6
6
|
closeMediaInsertPicker: () => void;
|
|
7
7
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import {
|
|
3
|
+
import type { OnInsertAttrs } from './types';
|
|
4
4
|
type Props = {
|
|
5
5
|
attrs: Required<OnInsertAttrs>;
|
|
6
6
|
mediaProvider: MediaProvider;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import {
|
|
4
|
+
import type { CustomizedHelperMessage, InsertExternalMediaSingle, InsertMediaSingle } from '../types';
|
|
5
5
|
export declare const isValidUrl: (value: string) => boolean;
|
|
6
6
|
type Props = {
|
|
7
7
|
closeMediaInsertPicker: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { MediaInsertPickerProps } from '../types';
|
|
3
3
|
export declare const MediaInsertPicker: ({ api, editorView, dispatchAnalyticsEvent, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, closeMediaInsertPicker, insertMediaSingle, insertExternalMediaSingle, insertFile, isOnlyExternalLinks, customizedUrlValidation, customizedHelperMessage, }: MediaInsertPickerProps) => React.JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Providers } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { UiComponentFactoryParams, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import {
|
|
4
|
+
import type { MediaState, MediaStateEventSubscriber } from '@atlaskit/editor-plugin-media/types';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import type { MediaInsertPlugin, MediaInsertPluginConfig } from '../mediaInsertPluginType';
|
|
7
7
|
export type InsertMediaSingle = (props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import {
|
|
4
|
+
import type { InsertFile } from '../types';
|
|
5
5
|
type Props = {
|
|
6
6
|
closeMediaInsertPicker: () => void;
|
|
7
7
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import {
|
|
3
|
+
import type { OnInsertAttrs } from './types';
|
|
4
4
|
type Props = {
|
|
5
5
|
attrs: Required<OnInsertAttrs>;
|
|
6
6
|
mediaProvider: MediaProvider;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import {
|
|
4
|
+
import type { CustomizedHelperMessage, InsertExternalMediaSingle, InsertMediaSingle } from '../types';
|
|
5
5
|
export declare const isValidUrl: (value: string) => boolean;
|
|
6
6
|
type Props = {
|
|
7
7
|
closeMediaInsertPicker: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { MediaInsertPickerProps } from '../types';
|
|
3
3
|
export declare const MediaInsertPicker: ({ api, editorView, dispatchAnalyticsEvent, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, closeMediaInsertPicker, insertMediaSingle, insertExternalMediaSingle, insertFile, isOnlyExternalLinks, customizedUrlValidation, customizedHelperMessage, }: MediaInsertPickerProps) => React.JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media-insert",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.2",
|
|
4
4
|
"description": "Media Insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@atlaskit/editor-common": "^112.
|
|
45
|
+
"@atlaskit/editor-common": "^112.19.0",
|
|
46
46
|
"@atlaskit/tokens": "^12.0.0",
|
|
47
47
|
"react": "^18.2.0",
|
|
48
48
|
"react-dom": "^18.2.0"
|