@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 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 plugin media insert
1
+ # Editor Plugin Media Insert
2
2
 
3
- Media insert plugin for @atlaskit/editor-core
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#Platform-License) for more licensing information.
43
+ Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.
@@ -68,8 +68,7 @@ var isValidUrl = exports.isValidUrl = function isValidUrl(value) {
68
68
  return false;
69
69
  }
70
70
  new URL(value);
71
- } catch (e) {
72
- // eslint-disable-line no-unused-vars
71
+ } catch (_unused) {
73
72
  return false;
74
73
  }
75
74
  return (0, _adfSchema.isSafeUrl)(value);
@@ -51,8 +51,7 @@ export const isValidUrl = value => {
51
51
  return false;
52
52
  }
53
53
  new URL(value);
54
- } catch (e) {
55
- // eslint-disable-line no-unused-vars
54
+ } catch {
56
55
  return false;
57
56
  }
58
57
  return isSafeUrl(value);
@@ -59,8 +59,7 @@ export var isValidUrl = function isValidUrl(value) {
59
59
  return false;
60
60
  }
61
61
  new URL(value);
62
- } catch (e) {
63
- // eslint-disable-line no-unused-vars
62
+ } catch (_unused) {
64
63
  return false;
65
64
  }
66
65
  return isSafeUrl(value);
@@ -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 { type MediaState, type MediaStateEventSubscriber } from '@atlaskit/editor-plugin-media/types';
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 { type InsertFile } from '../types';
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 { type OnInsertAttrs } from './types';
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 { type CustomizedHelperMessage, type InsertExternalMediaSingle, type InsertMediaSingle } from '../types';
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 { type MediaInsertPickerProps } from '../types';
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 { type MediaState, type MediaStateEventSubscriber } from '@atlaskit/editor-plugin-media/types';
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 { type InsertFile } from '../types';
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 { type OnInsertAttrs } from './types';
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 { type CustomizedHelperMessage, type InsertExternalMediaSingle, type InsertMediaSingle } from '../types';
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 { type MediaInsertPickerProps } from '../types';
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.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.18.0",
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"