@atlaskit/editor-plugin-quick-insert 11.1.8 → 11.1.10
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 +12 -0
- package/package.json +2 -2
- package/quick-insert-plugin/package.json +1 -8
- package/quick-insert-plugin-type/package.json +1 -8
- package/dist/types-ts4.5/entry-points/quick-insert-plugin-type.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/quick-insert-plugin.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/commands/index.d.ts +0 -6
- package/dist/types-ts4.5/pm-plugins/experiences/quick-insert-open-experience.d.ts +0 -19
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/quickInsertPlugin.d.ts +0 -2
- package/dist/types-ts4.5/quickInsertPluginType.d.ts +0 -32
- package/dist/types-ts4.5/ui/ModalElementBrowser/ModalElementBrowser.d.ts +0 -23
- package/dist/types-ts4.5/ui/ModalElementBrowser/categories.d.ts +0 -5
- package/dist/types-ts4.5/ui/ModalElementBrowser/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/search.d.ts +0 -6
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.10",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/icon": "^35.4.0",
|
|
39
39
|
"@atlaskit/modal-dialog": "^15.3.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^103.0.0",
|
|
42
42
|
"@atlaskit/tokens": "^13.4.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1"
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/quick-insert-plugin.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/quick-insert-plugin.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/quick-insert-plugin.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/quick-insert-plugin-type.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/quick-insert-plugin-type.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/quick-insert-plugin-type.d.ts"
|
|
17
10
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { QuickInsertPlugin, QuickInsertSharedState, QuickInsertPluginOptions, } from '../quickInsertPluginType';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { quickInsertPlugin } from '../quickInsertPlugin';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { Command, EditorCommand } from '@atlaskit/editor-common/types';
|
|
4
|
-
export declare const openElementBrowserModal: EditorCommand;
|
|
5
|
-
export declare const closeElementBrowserModal: () => Command;
|
|
6
|
-
export declare const createInsertItem: (onInsert?: (item: QuickInsertItem) => void) => ((item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.ELEMENT_BROWSER) => Command);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
type QuickInsertOpenExperienceOptions = {
|
|
4
|
-
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
5
|
-
refs: {
|
|
6
|
-
popupsMountPoint?: HTMLElement;
|
|
7
|
-
wrapperElement?: HTMLElement;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* This experience tracks when the quick insert is opened.
|
|
12
|
-
*
|
|
13
|
-
* Start: When user types `/` to open quick insert or clicks the quick insert button
|
|
14
|
-
* Success: When the quick insert menu is added to the DOM within 500ms of start
|
|
15
|
-
* Failure: When 500ms passes without the quick insert menu being added to the DOM
|
|
16
|
-
* Abort: When user presses escape or backspace
|
|
17
|
-
*/
|
|
18
|
-
export declare const getQuickInsertOpenExperiencePlugin: ({ refs, dispatchAnalyticsEvent, }: QuickInsertOpenExperienceOptions) => SafePlugin;
|
|
19
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { Command, QuickInsertPluginOptions as CommonQuickInsertPluginOptions, QuickInsertSharedState as CommonQuickInsertSharedState, EditorCommand, NextEditorPlugin, OptionalPlugin, QuickInsertHandler, QuickInsertSearchOptions, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
-
import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
|
|
6
|
-
import type { MetricsPlugin } from '@atlaskit/editor-plugin-metrics';
|
|
7
|
-
import type { TypeAheadInputMethod, TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
8
|
-
export type QuickInsertSharedState = CommonQuickInsertSharedState & {
|
|
9
|
-
typeAheadHandler: TypeAheadHandler;
|
|
10
|
-
};
|
|
11
|
-
export type QuickInsertPluginOptions = CommonQuickInsertPluginOptions;
|
|
12
|
-
export type QuickInsertPlugin = NextEditorPlugin<'quickInsert', {
|
|
13
|
-
actions: {
|
|
14
|
-
getSuggestions: (searchOptions: QuickInsertSearchOptions) => QuickInsertItem[];
|
|
15
|
-
insertItem: (item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.ELEMENT_BROWSER) => Command;
|
|
16
|
-
openTypeAhead: (inputMethod: TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean) => boolean;
|
|
17
|
-
};
|
|
18
|
-
commands: {
|
|
19
|
-
addQuickInsertItem: (item: QuickInsertHandler) => EditorCommand;
|
|
20
|
-
openElementBrowserModal: EditorCommand;
|
|
21
|
-
removeQuickInsertItem: (key: string) => EditorCommand;
|
|
22
|
-
updateQuickInsertItem: (key: string, item: QuickInsertHandler) => EditorCommand;
|
|
23
|
-
};
|
|
24
|
-
dependencies: [
|
|
25
|
-
TypeAheadPlugin,
|
|
26
|
-
OptionalPlugin<ConnectivityPlugin>,
|
|
27
|
-
OptionalPlugin<MetricsPlugin>,
|
|
28
|
-
OptionalPlugin<AnalyticsPlugin>
|
|
29
|
-
];
|
|
30
|
-
pluginConfiguration: QuickInsertPluginOptions | undefined;
|
|
31
|
-
sharedState: QuickInsertSharedState | null;
|
|
32
|
-
}>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentType, type FC } from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
|
-
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
8
|
-
import type { EmptyStateHandler } from '@atlaskit/editor-common/types';
|
|
9
|
-
export declare const MODAL_WRAPPER_PADDING = 16;
|
|
10
|
-
export interface Props {
|
|
11
|
-
emptyStateHandler?: EmptyStateHandler;
|
|
12
|
-
getItems: (query?: string, category?: string) => QuickInsertItem[];
|
|
13
|
-
helpUrl?: string | undefined;
|
|
14
|
-
isOpen?: boolean;
|
|
15
|
-
onClose: () => void;
|
|
16
|
-
onCloseComplete: () => void;
|
|
17
|
-
onInsertItem: (item: QuickInsertItem) => void;
|
|
18
|
-
shouldReturnFocus?: boolean;
|
|
19
|
-
}
|
|
20
|
-
declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
21
|
-
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
22
|
-
};
|
|
23
|
-
export default _default_1;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { QuickInsertPlugin } from '../../quickInsertPluginType';
|
|
5
|
-
type Props = {
|
|
6
|
-
editorView: EditorView;
|
|
7
|
-
helpUrl: string | undefined;
|
|
8
|
-
pluginInjectionAPI: ExtractInjectionAPI<QuickInsertPlugin> | undefined;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: ({ editorView, helpUrl, pluginInjectionAPI }: Props) => React.JSX.Element;
|
|
11
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
-
import type { QuickInsertSearchOptions } from '@atlaskit/editor-common/types';
|
|
3
|
-
type GetQuickInsertSuggestions = (searchOptions: QuickInsertSearchOptions, lazyDefaultItems?: () => QuickInsertItem[], providedItems?: QuickInsertItem[]) => QuickInsertItem[];
|
|
4
|
-
export declare const withLayoutQuickInsertPrioritySorting: (prioritySortingFn?: QuickInsertSearchOptions["prioritySortingFn"]) => QuickInsertSearchOptions["prioritySortingFn"];
|
|
5
|
-
export declare const getQuickInsertSuggestions: GetQuickInsertSuggestions;
|
|
6
|
-
export {};
|