@atlaskit/editor-plugin-media-insert 20.0.1 → 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,13 @@
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
+
3
11
  ## 20.0.1
4
12
 
5
13
  ### Patch Changes
@@ -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.1",
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"