@atlaskit/editor-plugin-quick-insert 3.0.7 → 3.0.9

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,19 @@
1
1
  # @atlaskit/editor-plugin-quick-insert
2
2
 
3
+ ## 3.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.0.8
10
+
11
+ ### Patch Changes
12
+
13
+ - [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
14
+ Sorted type and interface props to improve Atlaskit docs
15
+ - Updated dependencies
16
+
3
17
  ## 3.0.7
4
18
 
5
19
  ### Patch Changes
@@ -9,20 +9,20 @@ export type QuickInsertSharedState = CommonQuickInsertSharedState & {
9
9
  };
10
10
  export type QuickInsertPluginOptions = CommonQuickInsertPluginOptions;
11
11
  export type QuickInsertPlugin = NextEditorPlugin<'quickInsert', {
12
- pluginConfiguration: QuickInsertPluginOptions | undefined;
13
- dependencies: [
14
- TypeAheadPlugin,
15
- OptionalPlugin<ConnectivityPlugin>,
16
- OptionalPlugin<MetricsPlugin>
17
- ];
18
- sharedState: QuickInsertSharedState | null;
19
12
  actions: {
20
- openTypeAhead: (inputMethod: TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean) => boolean;
21
- insertItem: (item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => Command;
22
13
  getSuggestions: (searchOptions: QuickInsertSearchOptions) => QuickInsertItem[];
14
+ insertItem: (item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => Command;
15
+ openTypeAhead: (inputMethod: TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean) => boolean;
23
16
  };
24
17
  commands: {
25
- openElementBrowserModal: EditorCommand;
26
18
  addQuickInsertItem: (item: QuickInsertHandler) => EditorCommand;
19
+ openElementBrowserModal: EditorCommand;
27
20
  };
21
+ dependencies: [
22
+ TypeAheadPlugin,
23
+ OptionalPlugin<ConnectivityPlugin>,
24
+ OptionalPlugin<MetricsPlugin>
25
+ ];
26
+ pluginConfiguration: QuickInsertPluginOptions | undefined;
27
+ sharedState: QuickInsertSharedState | null;
28
28
  }>;
@@ -8,13 +8,13 @@ import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
8
8
  import type { EmptyStateHandler } from '@atlaskit/editor-common/types';
9
9
  export declare const MODAL_WRAPPER_PADDING = 16;
10
10
  export interface Props {
11
+ emptyStateHandler?: EmptyStateHandler;
11
12
  getItems: (query?: string, category?: string) => QuickInsertItem[];
12
- onInsertItem: (item: QuickInsertItem) => void;
13
+ helpUrl?: string | undefined;
13
14
  isOpen?: boolean;
14
15
  onClose: () => void;
15
16
  onCloseComplete: () => void;
16
- helpUrl?: string | undefined;
17
- emptyStateHandler?: EmptyStateHandler;
17
+ onInsertItem: (item: QuickInsertItem) => void;
18
18
  shouldReturnFocus?: boolean;
19
19
  }
20
20
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
@@ -9,20 +9,20 @@ export type QuickInsertSharedState = CommonQuickInsertSharedState & {
9
9
  };
10
10
  export type QuickInsertPluginOptions = CommonQuickInsertPluginOptions;
11
11
  export type QuickInsertPlugin = NextEditorPlugin<'quickInsert', {
12
- pluginConfiguration: QuickInsertPluginOptions | undefined;
13
- dependencies: [
14
- TypeAheadPlugin,
15
- OptionalPlugin<ConnectivityPlugin>,
16
- OptionalPlugin<MetricsPlugin>
17
- ];
18
- sharedState: QuickInsertSharedState | null;
19
12
  actions: {
20
- openTypeAhead: (inputMethod: TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean) => boolean;
21
- insertItem: (item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => Command;
22
13
  getSuggestions: (searchOptions: QuickInsertSearchOptions) => QuickInsertItem[];
14
+ insertItem: (item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => Command;
15
+ openTypeAhead: (inputMethod: TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean) => boolean;
23
16
  };
24
17
  commands: {
25
- openElementBrowserModal: EditorCommand;
26
18
  addQuickInsertItem: (item: QuickInsertHandler) => EditorCommand;
19
+ openElementBrowserModal: EditorCommand;
27
20
  };
21
+ dependencies: [
22
+ TypeAheadPlugin,
23
+ OptionalPlugin<ConnectivityPlugin>,
24
+ OptionalPlugin<MetricsPlugin>
25
+ ];
26
+ pluginConfiguration: QuickInsertPluginOptions | undefined;
27
+ sharedState: QuickInsertSharedState | null;
28
28
  }>;
@@ -8,13 +8,13 @@ import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
8
8
  import type { EmptyStateHandler } from '@atlaskit/editor-common/types';
9
9
  export declare const MODAL_WRAPPER_PADDING = 16;
10
10
  export interface Props {
11
+ emptyStateHandler?: EmptyStateHandler;
11
12
  getItems: (query?: string, category?: string) => QuickInsertItem[];
12
- onInsertItem: (item: QuickInsertItem) => void;
13
+ helpUrl?: string | undefined;
13
14
  isOpen?: boolean;
14
15
  onClose: () => void;
15
16
  onCloseComplete: () => void;
16
- helpUrl?: string | undefined;
17
- emptyStateHandler?: EmptyStateHandler;
17
+ onInsertItem: (item: QuickInsertItem) => void;
18
18
  shouldReturnFocus?: boolean;
19
19
  }
20
20
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-quick-insert",
3
- "version": "3.0.7",
3
+ "version": "3.0.9",
4
4
  "description": "Quick insert plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,17 +37,17 @@
37
37
  "@atlaskit/editor-plugin-metrics": "^4.0.0",
38
38
  "@atlaskit/editor-plugin-type-ahead": "^3.1.0",
39
39
  "@atlaskit/editor-prosemirror": "7.0.0",
40
- "@atlaskit/icon": "^28.0.0",
40
+ "@atlaskit/icon": "^28.1.0",
41
41
  "@atlaskit/modal-dialog": "^14.3.0",
42
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
43
- "@atlaskit/theme": "^19.0.0",
44
- "@atlaskit/tmp-editor-statsig": "^11.3.0",
45
- "@atlaskit/tokens": "^6.0.0",
43
+ "@atlaskit/theme": "^20.0.0",
44
+ "@atlaskit/tmp-editor-statsig": "^11.8.0",
45
+ "@atlaskit/tokens": "^6.1.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@emotion/react": "^11.7.1"
48
48
  },
49
49
  "peerDependencies": {
50
- "@atlaskit/editor-common": "^107.26.0",
50
+ "@atlaskit/editor-common": "^107.31.0",
51
51
  "react": "^18.2.0",
52
52
  "react-dom": "^18.2.0",
53
53
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -55,7 +55,6 @@
55
55
  "devDependencies": {
56
56
  "@af/visual-regression": "workspace:^",
57
57
  "@atlaskit/ssr": "workspace:^",
58
- "@atlaskit/visual-regression": "workspace:^",
59
58
  "@testing-library/react": "^13.4.0",
60
59
  "wait-for-expect": "^1.2.0"
61
60
  },