@atlaskit/editor-core 187.32.1 → 187.32.3
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 +13 -0
- package/dist/cjs/labs/next/presets/universal.js +2 -1
- package/dist/cjs/plugins/index.js +0 -7
- package/dist/cjs/plugins/media/toolbar/index.js +2 -9
- package/dist/cjs/plugins/media/ui/PixelEntry/index.js +14 -25
- package/dist/cjs/plugins/media/utils/media-single.js +1 -1
- package/dist/cjs/ui/ContentStyles/index.js +13 -12
- package/dist/cjs/ui/styles.js +3 -5
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/labs/next/presets/universal.js +2 -1
- package/dist/es2019/plugins/index.js +0 -1
- package/dist/es2019/plugins/media/toolbar/index.js +2 -9
- package/dist/es2019/plugins/media/ui/PixelEntry/index.js +14 -25
- package/dist/es2019/plugins/media/utils/media-single.js +2 -2
- package/dist/es2019/ui/ContentStyles/index.js +25 -3
- package/dist/es2019/ui/styles.js +0 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/labs/next/presets/universal.js +2 -1
- package/dist/esm/plugins/index.js +0 -1
- package/dist/esm/plugins/media/toolbar/index.js +2 -9
- package/dist/esm/plugins/media/ui/PixelEntry/index.js +14 -25
- package/dist/esm/plugins/media/utils/media-single.js +2 -2
- package/dist/esm/ui/ContentStyles/index.js +6 -5
- package/dist/esm/ui/styles.js +2 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/plugins/media/ui/PixelEntry/index.d.ts +1 -1
- package/dist/types/plugins/media/ui/PixelEntry/types.d.ts +7 -2
- package/dist/types/ui/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/media/ui/PixelEntry/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/ui/PixelEntry/types.d.ts +7 -2
- package/dist/types-ts4.5/ui/styles.d.ts +0 -1
- package/package.json +2 -2
- package/dist/cjs/plugins/emoji/commands/insert-emoji.js +0 -47
- package/dist/cjs/plugins/emoji/index.js +0 -409
- package/dist/cjs/plugins/emoji/messages.js +0 -15
- package/dist/cjs/plugins/emoji/nodeviews/emoji.js +0 -34
- package/dist/cjs/plugins/emoji/pm-plugins/ascii-input-rules.js +0 -235
- package/dist/cjs/plugins/emoji/styles.js +0 -14
- package/dist/cjs/plugins/emoji/types.js +0 -5
- package/dist/cjs/plugins/emoji/ui/Emoji/index.js +0 -16
- package/dist/es2019/plugins/emoji/commands/insert-emoji.js +0 -40
- package/dist/es2019/plugins/emoji/index.js +0 -381
- package/dist/es2019/plugins/emoji/messages.js +0 -8
- package/dist/es2019/plugins/emoji/nodeviews/emoji.js +0 -29
- package/dist/es2019/plugins/emoji/pm-plugins/ascii-input-rules.js +0 -169
- package/dist/es2019/plugins/emoji/styles.js +0 -25
- package/dist/es2019/plugins/emoji/types.js +0 -1
- package/dist/es2019/plugins/emoji/ui/Emoji/index.js +0 -9
- package/dist/esm/plugins/emoji/commands/insert-emoji.js +0 -39
- package/dist/esm/plugins/emoji/index.js +0 -391
- package/dist/esm/plugins/emoji/messages.js +0 -8
- package/dist/esm/plugins/emoji/nodeviews/emoji.js +0 -27
- package/dist/esm/plugins/emoji/pm-plugins/ascii-input-rules.js +0 -225
- package/dist/esm/plugins/emoji/styles.js +0 -6
- package/dist/esm/plugins/emoji/types.js +0 -1
- package/dist/esm/plugins/emoji/ui/Emoji/index.js +0 -9
- package/dist/types/plugins/emoji/commands/insert-emoji.d.ts +0 -4
- package/dist/types/plugins/emoji/index.d.ts +0 -40
- package/dist/types/plugins/emoji/messages.d.ts +0 -7
- package/dist/types/plugins/emoji/nodeviews/emoji.d.ts +0 -7
- package/dist/types/plugins/emoji/pm-plugins/ascii-input-rules.d.ts +0 -10
- package/dist/types/plugins/emoji/styles.d.ts +0 -1
- package/dist/types/plugins/emoji/types.d.ts +0 -1
- package/dist/types/plugins/emoji/ui/Emoji/index.d.ts +0 -4
- package/dist/types-ts4.5/plugins/emoji/commands/insert-emoji.d.ts +0 -4
- package/dist/types-ts4.5/plugins/emoji/index.d.ts +0 -40
- package/dist/types-ts4.5/plugins/emoji/messages.d.ts +0 -7
- package/dist/types-ts4.5/plugins/emoji/nodeviews/emoji.d.ts +0 -7
- package/dist/types-ts4.5/plugins/emoji/pm-plugins/ascii-input-rules.d.ts +0 -10
- package/dist/types-ts4.5/plugins/emoji/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/emoji/types.d.ts +0 -1
- package/dist/types-ts4.5/plugins/emoji/ui/Emoji/index.d.ts +0 -4
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { EmojiDescription, EmojiProvider } from '@atlaskit/emoji';
|
|
5
|
-
import type { Command, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
6
|
-
import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
|
|
7
|
-
import type { TypeAheadItem } from '../type-ahead/types';
|
|
8
|
-
import type { EmojiPluginState } from './types';
|
|
9
|
-
export declare const emojiToTypeaheadItem: (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem;
|
|
10
|
-
export declare function memoize<ResultFn extends (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem>(fn: ResultFn): {
|
|
11
|
-
call: ResultFn;
|
|
12
|
-
clear(): void;
|
|
13
|
-
};
|
|
14
|
-
export declare const defaultListLimit = 50;
|
|
15
|
-
export declare const emojiPlugin: EmojiPlugin;
|
|
16
|
-
/**
|
|
17
|
-
* Actions
|
|
18
|
-
*/
|
|
19
|
-
export declare const ACTIONS: {
|
|
20
|
-
SET_PROVIDER: string;
|
|
21
|
-
SET_RESULTS: string;
|
|
22
|
-
SET_ASCII_MAP: string;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* Wrapper to call `onLimitReached` when a specified number of calls of that function
|
|
27
|
-
* have been made within a time period.
|
|
28
|
-
*
|
|
29
|
-
* Note: It does not rate limit
|
|
30
|
-
*
|
|
31
|
-
* @param fn Function to wrap
|
|
32
|
-
* @param limitTime Time limit in milliseconds
|
|
33
|
-
* @param limitCount Number of function calls before `onRateReached` is called (per time period)
|
|
34
|
-
* @returns Wrapped function
|
|
35
|
-
*/
|
|
36
|
-
export declare function createRateLimitReachedFunction<LimitedFunction extends (...args: any[]) => any>(fn: Function, limitTime: number, limitCount: number, onLimitReached: () => void): (...args: Parameters<LimitedFunction>) => ReturnType<LimitedFunction> | undefined;
|
|
37
|
-
export declare const setProvider: ((provider?: EmojiProvider) => Command) | undefined;
|
|
38
|
-
export declare const emojiPluginKey: PluginKey<EmojiPluginState>;
|
|
39
|
-
export declare function getEmojiPluginState(state: EditorState): EmojiPluginState;
|
|
40
|
-
export declare function createEmojiPlugin(pmPluginFactoryParams: PMPluginFactoryParams): SafePlugin<EmojiPluginState>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
4
|
-
export type Props = InlineNodeViewComponentProps & {
|
|
5
|
-
providerFactory: ProviderFactory;
|
|
6
|
-
};
|
|
7
|
-
export declare function EmojiNodeView(props: Props): JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
6
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
export declare function inputRulePlugin(schema: Schema, providerFactory: ProviderFactory, featureFlags: FeatureFlags, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin | undefined;
|
|
8
|
-
export declare const stateKey: PluginKey<any>;
|
|
9
|
-
declare const plugins: (schema: Schema, providerFactory: ProviderFactory, featureFlags: FeatureFlags, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => SafePlugin<any>[];
|
|
10
|
-
export default plugins;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const emojiStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { EmojiPluginState, EmojiPluginOptions, } from '@atlaskit/editor-plugin-emoji';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { EmojiId } from '@atlaskit/emoji';
|
|
2
|
-
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
export declare const insertEmoji: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (emojiId: EmojiId, inputMethod?: INPUT_METHOD.PICKER | INPUT_METHOD.ASCII | INPUT_METHOD.TYPEAHEAD) => EditorCommand;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { EmojiDescription, EmojiProvider } from '@atlaskit/emoji';
|
|
5
|
-
import type { Command, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
6
|
-
import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
|
|
7
|
-
import type { TypeAheadItem } from '../type-ahead/types';
|
|
8
|
-
import type { EmojiPluginState } from './types';
|
|
9
|
-
export declare const emojiToTypeaheadItem: (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem;
|
|
10
|
-
export declare function memoize<ResultFn extends (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem>(fn: ResultFn): {
|
|
11
|
-
call: ResultFn;
|
|
12
|
-
clear(): void;
|
|
13
|
-
};
|
|
14
|
-
export declare const defaultListLimit = 50;
|
|
15
|
-
export declare const emojiPlugin: EmojiPlugin;
|
|
16
|
-
/**
|
|
17
|
-
* Actions
|
|
18
|
-
*/
|
|
19
|
-
export declare const ACTIONS: {
|
|
20
|
-
SET_PROVIDER: string;
|
|
21
|
-
SET_RESULTS: string;
|
|
22
|
-
SET_ASCII_MAP: string;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* Wrapper to call `onLimitReached` when a specified number of calls of that function
|
|
27
|
-
* have been made within a time period.
|
|
28
|
-
*
|
|
29
|
-
* Note: It does not rate limit
|
|
30
|
-
*
|
|
31
|
-
* @param fn Function to wrap
|
|
32
|
-
* @param limitTime Time limit in milliseconds
|
|
33
|
-
* @param limitCount Number of function calls before `onRateReached` is called (per time period)
|
|
34
|
-
* @returns Wrapped function
|
|
35
|
-
*/
|
|
36
|
-
export declare function createRateLimitReachedFunction<LimitedFunction extends (...args: any[]) => any>(fn: Function, limitTime: number, limitCount: number, onLimitReached: () => void): (...args: Parameters<LimitedFunction>) => ReturnType<LimitedFunction> | undefined;
|
|
37
|
-
export declare const setProvider: ((provider?: EmojiProvider) => Command) | undefined;
|
|
38
|
-
export declare const emojiPluginKey: PluginKey<EmojiPluginState>;
|
|
39
|
-
export declare function getEmojiPluginState(state: EditorState): EmojiPluginState;
|
|
40
|
-
export declare function createEmojiPlugin(pmPluginFactoryParams: PMPluginFactoryParams): SafePlugin<EmojiPluginState>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
4
|
-
export type Props = InlineNodeViewComponentProps & {
|
|
5
|
-
providerFactory: ProviderFactory;
|
|
6
|
-
};
|
|
7
|
-
export declare function EmojiNodeView(props: Props): JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
6
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
export declare function inputRulePlugin(schema: Schema, providerFactory: ProviderFactory, featureFlags: FeatureFlags, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin | undefined;
|
|
8
|
-
export declare const stateKey: PluginKey<any>;
|
|
9
|
-
declare const plugins: (schema: Schema, providerFactory: ProviderFactory, featureFlags: FeatureFlags, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => SafePlugin<any>[];
|
|
10
|
-
export default plugins;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const emojiStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { EmojiPluginState, EmojiPluginOptions, } from '@atlaskit/editor-plugin-emoji';
|