@atlaskit/editor-plugin-extension 3.1.4 → 3.1.5

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,11 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 3.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 3.1.4
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { ExtensionKey, ExtensionProvider, ExtensionType, Parameters } from '@atlaskit/editor-common/extensions';
3
3
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
4
4
  import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
@@ -18,4 +18,4 @@ export type PublicProps = {
18
18
  onCancel: () => void;
19
19
  api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
20
20
  };
21
- export default function FieldsLoader({ extensionType, extensionKey, nodeKey, extensionProvider, extensionParameters, parameters, autoSaveTrigger, autoSaveReject, closeOnEsc, showHeader, featureFlags, onChange, onCancel, api, }: PublicProps): JSX.Element;
21
+ export default function FieldsLoader({ extensionType, extensionKey, nodeKey, extensionProvider, extensionParameters, parameters, autoSaveTrigger, autoSaveReject, closeOnEsc, showHeader, featureFlags, onChange, onCancel, api, }: PublicProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { EnumField } from '@atlaskit/editor-common/extensions';
3
3
  import type { OnFieldChange } from '../types';
4
4
  export default function Enum({ name, field, autoFocus, onFieldChange, fieldDefaultValue, }: {
@@ -7,4 +7,4 @@ export default function Enum({ name, field, autoFocus, onFieldChange, fieldDefau
7
7
  autoFocus: boolean;
8
8
  onFieldChange: OnFieldChange;
9
9
  fieldDefaultValue?: string | string[];
10
- }): JSX.Element;
10
+ }): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { NumberField } from '@atlaskit/editor-common/extensions';
3
3
  import type { OnFieldChange } from '../types';
4
4
  export default function Number({ name, field, autoFocus, onFieldChange, placeholder, }: {
@@ -7,4 +7,4 @@ export default function Number({ name, field, autoFocus, onFieldChange, placehol
7
7
  autoFocus?: boolean;
8
8
  onFieldChange: OnFieldChange;
9
9
  placeholder?: string;
10
- }): JSX.Element;
10
+ }): React.JSX.Element;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { EnumRadioField } from '@atlaskit/editor-common/extensions';
3
3
  import type { OnFieldChange } from '../types';
4
4
  export default function RadioField({ name, field, onFieldChange, }: {
5
5
  name: string;
6
6
  field: EnumRadioField;
7
7
  onFieldChange: OnFieldChange;
8
- }): JSX.Element;
8
+ }): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { EnumSelectField } from '@atlaskit/editor-common/extensions';
3
3
  import type { OnFieldChange } from '../types';
4
4
  export default function SelectField({ name, field, onFieldChange, autoFocus, placeholder, fieldDefaultValue, }: {
@@ -8,4 +8,4 @@ export default function SelectField({ name, field, onFieldChange, autoFocus, pla
8
8
  autoFocus?: boolean;
9
9
  placeholder?: string;
10
10
  fieldDefaultValue?: string | string[];
11
- }): JSX.Element;
11
+ }): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { StringField } from '@atlaskit/editor-common/extensions';
3
3
  import type { OnFieldChange } from '../types';
4
4
  export default function String({ name, field, autoFocus, onFieldChange, placeholder, }: {
@@ -7,4 +7,4 @@ export default function String({ name, field, autoFocus, onFieldChange, placehol
7
7
  autoFocus?: boolean;
8
8
  onFieldChange: OnFieldChange;
9
9
  placeholder?: string;
10
- }): JSX.Element;
10
+ }): React.JSX.Element;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
3
3
  export default function ({ errorMessage }: {
4
4
  field: FieldDefinition;
5
5
  errorMessage: string;
6
- }): JSX.Element;
6
+ }): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { ExtensionManifest, UserField } from '@atlaskit/editor-common/extensions';
3
3
  import type { OnFieldChange } from '../types';
4
4
  export default function UserSelect({ name, autoFocus, extensionManifest, field, onFieldChange, }: {
@@ -7,4 +7,4 @@ export default function UserSelect({ name, autoFocus, extensionManifest, field,
7
7
  extensionManifest: ExtensionManifest;
8
8
  onFieldChange: OnFieldChange;
9
9
  autoFocus?: boolean;
10
- }): JSX.Element;
10
+ }): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { FieldComponentProps, FormContentProps } from './types';
3
- export declare function FieldComponent({ field, parameters, parentName, extensionManifest, firstVisibleFieldName, onFieldChange, featureFlags, }: FieldComponentProps): JSX.Element;
4
- export default function FormContent({ fields, parentName, parameters, extensionManifest, canRemoveFields, onClickRemove, onFieldChange, firstVisibleFieldName, contextIdentifierProvider, featureFlags, }: FormContentProps): JSX.Element;
3
+ export declare function FieldComponent({ field, parameters, parentName, extensionManifest, firstVisibleFieldName, onFieldChange, featureFlags, }: FieldComponentProps): React.JSX.Element;
4
+ export default function FormContent({ fields, parentName, parameters, extensionManifest, canRemoveFields, onClickRemove, onFieldChange, firstVisibleFieldName, contextIdentifierProvider, featureFlags, }: FormContentProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
3
3
  import type { Node } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
@@ -6,7 +6,7 @@ import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
6
6
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
7
  import type { ExtensionPlugin } from '../extensionPluginType';
8
8
  export declare const duplicateSelection: (selectionToDuplicate: Selection, doc: Node) => Selection | undefined;
9
- export declare const getContextPanel: (getEditorView?: () => EditorView | undefined) => (api: ExtractInjectionAPI<ExtensionPlugin> | undefined, featureFlags?: FeatureFlags) => (state: EditorState) => JSX.Element | undefined;
9
+ export declare const getContextPanel: (getEditorView?: () => EditorView | undefined) => (api: ExtractInjectionAPI<ExtensionPlugin> | undefined, featureFlags?: FeatureFlags) => (state: EditorState) => React.JSX.Element | undefined;
10
10
  interface Parameters {
11
11
  [key: string]: unknown;
12
12
  macroParams?: Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { ExtensionKey, ExtensionProvider, ExtensionType, Parameters } from '@atlaskit/editor-common/extensions';
3
3
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
4
4
  import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
@@ -18,4 +18,4 @@ export type PublicProps = {
18
18
  onCancel: () => void;
19
19
  api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
20
20
  };
21
- export default function FieldsLoader({ extensionType, extensionKey, nodeKey, extensionProvider, extensionParameters, parameters, autoSaveTrigger, autoSaveReject, closeOnEsc, showHeader, featureFlags, onChange, onCancel, api, }: PublicProps): JSX.Element;
21
+ export default function FieldsLoader({ extensionType, extensionKey, nodeKey, extensionProvider, extensionParameters, parameters, autoSaveTrigger, autoSaveReject, closeOnEsc, showHeader, featureFlags, onChange, onCancel, api, }: PublicProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { EnumField } from '@atlaskit/editor-common/extensions';
3
3
  import type { OnFieldChange } from '../types';
4
4
  export default function Enum({ name, field, autoFocus, onFieldChange, fieldDefaultValue, }: {
@@ -7,4 +7,4 @@ export default function Enum({ name, field, autoFocus, onFieldChange, fieldDefau
7
7
  autoFocus: boolean;
8
8
  onFieldChange: OnFieldChange;
9
9
  fieldDefaultValue?: string | string[];
10
- }): JSX.Element;
10
+ }): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { NumberField } from '@atlaskit/editor-common/extensions';
3
3
  import type { OnFieldChange } from '../types';
4
4
  export default function Number({ name, field, autoFocus, onFieldChange, placeholder, }: {
@@ -7,4 +7,4 @@ export default function Number({ name, field, autoFocus, onFieldChange, placehol
7
7
  autoFocus?: boolean;
8
8
  onFieldChange: OnFieldChange;
9
9
  placeholder?: string;
10
- }): JSX.Element;
10
+ }): React.JSX.Element;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { EnumRadioField } from '@atlaskit/editor-common/extensions';
3
3
  import type { OnFieldChange } from '../types';
4
4
  export default function RadioField({ name, field, onFieldChange, }: {
5
5
  name: string;
6
6
  field: EnumRadioField;
7
7
  onFieldChange: OnFieldChange;
8
- }): JSX.Element;
8
+ }): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { EnumSelectField } from '@atlaskit/editor-common/extensions';
3
3
  import type { OnFieldChange } from '../types';
4
4
  export default function SelectField({ name, field, onFieldChange, autoFocus, placeholder, fieldDefaultValue, }: {
@@ -8,4 +8,4 @@ export default function SelectField({ name, field, onFieldChange, autoFocus, pla
8
8
  autoFocus?: boolean;
9
9
  placeholder?: string;
10
10
  fieldDefaultValue?: string | string[];
11
- }): JSX.Element;
11
+ }): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { StringField } from '@atlaskit/editor-common/extensions';
3
3
  import type { OnFieldChange } from '../types';
4
4
  export default function String({ name, field, autoFocus, onFieldChange, placeholder, }: {
@@ -7,4 +7,4 @@ export default function String({ name, field, autoFocus, onFieldChange, placehol
7
7
  autoFocus?: boolean;
8
8
  onFieldChange: OnFieldChange;
9
9
  placeholder?: string;
10
- }): JSX.Element;
10
+ }): React.JSX.Element;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
3
3
  export default function ({ errorMessage }: {
4
4
  field: FieldDefinition;
5
5
  errorMessage: string;
6
- }): JSX.Element;
6
+ }): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { ExtensionManifest, UserField } from '@atlaskit/editor-common/extensions';
3
3
  import type { OnFieldChange } from '../types';
4
4
  export default function UserSelect({ name, autoFocus, extensionManifest, field, onFieldChange, }: {
@@ -7,4 +7,4 @@ export default function UserSelect({ name, autoFocus, extensionManifest, field,
7
7
  extensionManifest: ExtensionManifest;
8
8
  onFieldChange: OnFieldChange;
9
9
  autoFocus?: boolean;
10
- }): JSX.Element;
10
+ }): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { FieldComponentProps, FormContentProps } from './types';
3
- export declare function FieldComponent({ field, parameters, parentName, extensionManifest, firstVisibleFieldName, onFieldChange, featureFlags, }: FieldComponentProps): JSX.Element;
4
- export default function FormContent({ fields, parentName, parameters, extensionManifest, canRemoveFields, onClickRemove, onFieldChange, firstVisibleFieldName, contextIdentifierProvider, featureFlags, }: FormContentProps): JSX.Element;
3
+ export declare function FieldComponent({ field, parameters, parentName, extensionManifest, firstVisibleFieldName, onFieldChange, featureFlags, }: FieldComponentProps): React.JSX.Element;
4
+ export default function FormContent({ fields, parentName, parameters, extensionManifest, canRemoveFields, onClickRemove, onFieldChange, firstVisibleFieldName, contextIdentifierProvider, featureFlags, }: FormContentProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
3
3
  import type { Node } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
@@ -6,7 +6,7 @@ import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
6
6
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
7
  import type { ExtensionPlugin } from '../extensionPluginType';
8
8
  export declare const duplicateSelection: (selectionToDuplicate: Selection, doc: Node) => Selection | undefined;
9
- export declare const getContextPanel: (getEditorView?: () => EditorView | undefined) => (api: ExtractInjectionAPI<ExtensionPlugin> | undefined, featureFlags?: FeatureFlags) => (state: EditorState) => JSX.Element | undefined;
9
+ export declare const getContextPanel: (getEditorView?: () => EditorView | undefined) => (api: ExtractInjectionAPI<ExtensionPlugin> | undefined, featureFlags?: FeatureFlags) => (state: EditorState) => React.JSX.Element | undefined;
10
10
  interface Parameters {
11
11
  [key: string]: unknown;
12
12
  macroParams?: Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,14 +27,14 @@
27
27
  "@atlaskit/adf-utils": "^19.18.0",
28
28
  "@atlaskit/analytics-next": "^10.3.0",
29
29
  "@atlaskit/avatar": "^21.18.0",
30
- "@atlaskit/button": "^20.4.0",
30
+ "@atlaskit/button": "^20.5.0",
31
31
  "@atlaskit/checkbox": "^15.3.0",
32
32
  "@atlaskit/datetime-picker": "^15.12.0",
33
- "@atlaskit/editor-common": "^99.7.0",
33
+ "@atlaskit/editor-common": "^99.9.0",
34
34
  "@atlaskit/editor-json-transformer": "^8.22.0",
35
35
  "@atlaskit/editor-plugin-analytics": "^1.11.0",
36
36
  "@atlaskit/editor-plugin-context-identifier": "^1.3.0",
37
- "@atlaskit/editor-plugin-context-panel": "^1.5.0",
37
+ "@atlaskit/editor-plugin-context-panel": "^2.0.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^1.4.0",
39
39
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
40
40
  "@atlaskit/editor-plugin-width": "^2.0.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/empty-state": "^8.2.0",
45
45
  "@atlaskit/form": "^11.1.0",
46
46
  "@atlaskit/heading": "4.1.0",
47
- "@atlaskit/icon": "^23.6.0",
47
+ "@atlaskit/icon": "^23.7.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.0.0",
49
49
  "@atlaskit/primitives": "^13.4.0",
50
50
  "@atlaskit/radio": "^7.2.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/textarea": "^5.8.0",
57
57
  "@atlaskit/textfield": "^6.8.0",
58
58
  "@atlaskit/theme": "^14.1.0",
59
- "@atlaskit/tmp-editor-statsig": "^2.41.0",
59
+ "@atlaskit/tmp-editor-statsig": "^2.43.0",
60
60
  "@atlaskit/toggle": "^14.1.0",
61
61
  "@atlaskit/tokens": "^3.3.0",
62
62
  "@atlaskit/tooltip": "^19.1.0",