@atlaskit/editor-core 187.32.2 → 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.
Files changed (61) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/labs/next/presets/universal.js +2 -1
  3. package/dist/cjs/plugins/index.js +0 -7
  4. package/dist/cjs/ui/ContentStyles/index.js +13 -12
  5. package/dist/cjs/ui/styles.js +3 -5
  6. package/dist/cjs/version-wrapper.js +1 -1
  7. package/dist/es2019/labs/next/presets/universal.js +2 -1
  8. package/dist/es2019/plugins/index.js +0 -1
  9. package/dist/es2019/ui/ContentStyles/index.js +25 -3
  10. package/dist/es2019/ui/styles.js +0 -3
  11. package/dist/es2019/version-wrapper.js +1 -1
  12. package/dist/esm/labs/next/presets/universal.js +2 -1
  13. package/dist/esm/plugins/index.js +0 -1
  14. package/dist/esm/ui/ContentStyles/index.js +6 -5
  15. package/dist/esm/ui/styles.js +2 -3
  16. package/dist/esm/version-wrapper.js +1 -1
  17. package/dist/types/plugins/index.d.ts +0 -1
  18. package/dist/types/ui/styles.d.ts +0 -1
  19. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  20. package/dist/types-ts4.5/ui/styles.d.ts +0 -1
  21. package/package.json +2 -2
  22. package/dist/cjs/plugins/emoji/commands/insert-emoji.js +0 -47
  23. package/dist/cjs/plugins/emoji/index.js +0 -409
  24. package/dist/cjs/plugins/emoji/messages.js +0 -15
  25. package/dist/cjs/plugins/emoji/nodeviews/emoji.js +0 -34
  26. package/dist/cjs/plugins/emoji/pm-plugins/ascii-input-rules.js +0 -235
  27. package/dist/cjs/plugins/emoji/styles.js +0 -14
  28. package/dist/cjs/plugins/emoji/types.js +0 -5
  29. package/dist/cjs/plugins/emoji/ui/Emoji/index.js +0 -16
  30. package/dist/es2019/plugins/emoji/commands/insert-emoji.js +0 -40
  31. package/dist/es2019/plugins/emoji/index.js +0 -381
  32. package/dist/es2019/plugins/emoji/messages.js +0 -8
  33. package/dist/es2019/plugins/emoji/nodeviews/emoji.js +0 -29
  34. package/dist/es2019/plugins/emoji/pm-plugins/ascii-input-rules.js +0 -169
  35. package/dist/es2019/plugins/emoji/styles.js +0 -25
  36. package/dist/es2019/plugins/emoji/types.js +0 -1
  37. package/dist/es2019/plugins/emoji/ui/Emoji/index.js +0 -9
  38. package/dist/esm/plugins/emoji/commands/insert-emoji.js +0 -39
  39. package/dist/esm/plugins/emoji/index.js +0 -391
  40. package/dist/esm/plugins/emoji/messages.js +0 -8
  41. package/dist/esm/plugins/emoji/nodeviews/emoji.js +0 -27
  42. package/dist/esm/plugins/emoji/pm-plugins/ascii-input-rules.js +0 -225
  43. package/dist/esm/plugins/emoji/styles.js +0 -6
  44. package/dist/esm/plugins/emoji/types.js +0 -1
  45. package/dist/esm/plugins/emoji/ui/Emoji/index.js +0 -9
  46. package/dist/types/plugins/emoji/commands/insert-emoji.d.ts +0 -4
  47. package/dist/types/plugins/emoji/index.d.ts +0 -40
  48. package/dist/types/plugins/emoji/messages.d.ts +0 -7
  49. package/dist/types/plugins/emoji/nodeviews/emoji.d.ts +0 -7
  50. package/dist/types/plugins/emoji/pm-plugins/ascii-input-rules.d.ts +0 -10
  51. package/dist/types/plugins/emoji/styles.d.ts +0 -1
  52. package/dist/types/plugins/emoji/types.d.ts +0 -1
  53. package/dist/types/plugins/emoji/ui/Emoji/index.d.ts +0 -4
  54. package/dist/types-ts4.5/plugins/emoji/commands/insert-emoji.d.ts +0 -4
  55. package/dist/types-ts4.5/plugins/emoji/index.d.ts +0 -40
  56. package/dist/types-ts4.5/plugins/emoji/messages.d.ts +0 -7
  57. package/dist/types-ts4.5/plugins/emoji/nodeviews/emoji.d.ts +0 -7
  58. package/dist/types-ts4.5/plugins/emoji/pm-plugins/ascii-input-rules.d.ts +0 -10
  59. package/dist/types-ts4.5/plugins/emoji/styles.d.ts +0 -1
  60. package/dist/types-ts4.5/plugins/emoji/types.d.ts +0 -1
  61. 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
- export declare const messages: {
2
- emojiNodeLabel: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- };
@@ -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
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import type { EmojiProps } from '@atlaskit/editor-common/emoji';
4
- export default function EmojiNode(props: EmojiProps): jsx.JSX.Element;
@@ -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
- export declare const messages: {
2
- emojiNodeLabel: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- };
@@ -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
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import type { EmojiProps } from '@atlaskit/editor-common/emoji';
4
- export default function EmojiNode(props: EmojiProps): jsx.JSX.Element;