@atlaskit/editor-plugin-quick-insert 8.0.0 → 8.0.1
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 +6 -0
- package/dist/cjs/ui/ModalElementBrowser/ModalElementBrowser.js +2 -1
- package/dist/es2019/ui/ModalElementBrowser/ModalElementBrowser.js +2 -1
- package/dist/esm/ui/ModalElementBrowser/ModalElementBrowser.js +2 -1
- package/dist/types/pm-plugins/commands/index.d.ts +1 -1
- package/dist/types/pm-plugins/experiences/quick-insert-open-experience.d.ts +1 -1
- package/dist/types/ui/ModalElementBrowser/ModalElementBrowser.d.ts +9 -4
- package/dist/types-ts4.5/pm-plugins/commands/index.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/experiences/quick-insert-open-experience.d.ts +1 -1
- package/dist/types-ts4.5/ui/ModalElementBrowser/ModalElementBrowser.d.ts +9 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -151,4 +151,5 @@ var HelpLink = function HelpLink(url, helpText) {
|
|
|
151
151
|
testId: "ModalElementBrowser__help-button"
|
|
152
152
|
}, helpText);
|
|
153
153
|
};
|
|
154
|
-
var
|
|
154
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(ModalElementBrowser);
|
|
155
|
+
var _default = exports.default = _default_1;
|
|
@@ -133,4 +133,5 @@ const HelpLink = (url, helpText) => jsx(Button, {
|
|
|
133
133
|
target: "_blank",
|
|
134
134
|
testId: "ModalElementBrowser__help-button"
|
|
135
135
|
}, helpText);
|
|
136
|
-
|
|
136
|
+
const _default_1 = injectIntl(ModalElementBrowser);
|
|
137
|
+
export default _default_1;
|
|
@@ -3,4 +3,4 @@ import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
|
3
3
|
import type { Command, EditorCommand } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const openElementBrowserModal: EditorCommand;
|
|
5
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;
|
|
6
|
+
export declare const createInsertItem: (onInsert?: (item: QuickInsertItem) => void) => ((item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.ELEMENT_BROWSER) => Command);
|
|
@@ -15,5 +15,5 @@ type QuickInsertOpenExperienceOptions = {
|
|
|
15
15
|
* Failure: When 500ms passes without the quick insert menu being added to the DOM
|
|
16
16
|
* Abort: When user presses escape or backspace
|
|
17
17
|
*/
|
|
18
|
-
export declare const getQuickInsertOpenExperiencePlugin: ({ refs, dispatchAnalyticsEvent, }: QuickInsertOpenExperienceOptions) => SafePlugin
|
|
18
|
+
export declare const getQuickInsertOpenExperiencePlugin: ({ refs, dispatchAnalyticsEvent, }: QuickInsertOpenExperienceOptions) => SafePlugin;
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ComponentType, type FC } from 'react';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
2
7
|
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
3
8
|
import type { EmptyStateHandler } from '@atlaskit/editor-common/types';
|
|
4
9
|
export declare const MODAL_WRAPPER_PADDING = 16;
|
|
@@ -12,7 +17,7 @@ export interface Props {
|
|
|
12
17
|
onInsertItem: (item: QuickInsertItem) => void;
|
|
13
18
|
shouldReturnFocus?: boolean;
|
|
14
19
|
}
|
|
15
|
-
declare const
|
|
16
|
-
WrappedComponent:
|
|
20
|
+
declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
21
|
+
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
17
22
|
};
|
|
18
|
-
export default
|
|
23
|
+
export default _default_1;
|
|
@@ -3,4 +3,4 @@ import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
|
3
3
|
import type { Command, EditorCommand } from '@atlaskit/editor-common/types';
|
|
4
4
|
export declare const openElementBrowserModal: EditorCommand;
|
|
5
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;
|
|
6
|
+
export declare const createInsertItem: (onInsert?: (item: QuickInsertItem) => void) => ((item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.ELEMENT_BROWSER) => Command);
|
|
@@ -15,5 +15,5 @@ type QuickInsertOpenExperienceOptions = {
|
|
|
15
15
|
* Failure: When 500ms passes without the quick insert menu being added to the DOM
|
|
16
16
|
* Abort: When user presses escape or backspace
|
|
17
17
|
*/
|
|
18
|
-
export declare const getQuickInsertOpenExperiencePlugin: ({ refs, dispatchAnalyticsEvent, }: QuickInsertOpenExperienceOptions) => SafePlugin
|
|
18
|
+
export declare const getQuickInsertOpenExperiencePlugin: ({ refs, dispatchAnalyticsEvent, }: QuickInsertOpenExperienceOptions) => SafePlugin;
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ComponentType, type FC } from 'react';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
2
7
|
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
3
8
|
import type { EmptyStateHandler } from '@atlaskit/editor-common/types';
|
|
4
9
|
export declare const MODAL_WRAPPER_PADDING = 16;
|
|
@@ -12,7 +17,7 @@ export interface Props {
|
|
|
12
17
|
onInsertItem: (item: QuickInsertItem) => void;
|
|
13
18
|
shouldReturnFocus?: boolean;
|
|
14
19
|
}
|
|
15
|
-
declare const
|
|
16
|
-
WrappedComponent:
|
|
20
|
+
declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
21
|
+
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
17
22
|
};
|
|
18
|
-
export default
|
|
23
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/modal-dialog": "^14.11.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
41
|
"@atlaskit/theme": "^22.0.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
43
43
|
"@atlaskit/tokens": "^11.1.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1"
|