@atlaskit/editor-core 188.1.0 → 188.2.0

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 (50) hide show
  1. package/CHANGELOG.md +10 -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/WithHelpTrigger/index.js +3 -7
  5. package/dist/cjs/version-wrapper.js +1 -1
  6. package/dist/es2019/labs/next/presets/universal.js +2 -1
  7. package/dist/es2019/plugins/index.js +0 -1
  8. package/dist/es2019/ui/WithHelpTrigger/index.js +2 -7
  9. package/dist/es2019/version-wrapper.js +1 -1
  10. package/dist/esm/labs/next/presets/universal.js +2 -1
  11. package/dist/esm/plugins/index.js +0 -1
  12. package/dist/esm/ui/WithHelpTrigger/index.js +2 -7
  13. package/dist/esm/version-wrapper.js +1 -1
  14. package/dist/types/plugins/index.d.ts +0 -1
  15. package/dist/types/ui/WithHelpTrigger/index.d.ts +0 -4
  16. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  17. package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +0 -4
  18. package/package.json +5 -5
  19. package/report.api.md +1 -1
  20. package/tmp/api-report-tmp.d.ts +1 -1
  21. package/dist/cjs/plugins/help-dialog/commands.js +0 -19
  22. package/dist/cjs/plugins/help-dialog/index.js +0 -138
  23. package/dist/cjs/plugins/help-dialog/plugin-key.js +0 -8
  24. package/dist/cjs/plugins/help-dialog/ui/HelpDialogLoader.js +0 -24
  25. package/dist/cjs/plugins/help-dialog/ui/index.js +0 -563
  26. package/dist/cjs/plugins/help-dialog/ui/styles.js +0 -50
  27. package/dist/es2019/plugins/help-dialog/commands.js +0 -13
  28. package/dist/es2019/plugins/help-dialog/index.js +0 -125
  29. package/dist/es2019/plugins/help-dialog/plugin-key.js +0 -2
  30. package/dist/es2019/plugins/help-dialog/ui/HelpDialogLoader.js +0 -6
  31. package/dist/es2019/plugins/help-dialog/ui/index.js +0 -441
  32. package/dist/es2019/plugins/help-dialog/ui/styles.js +0 -110
  33. package/dist/esm/plugins/help-dialog/commands.js +0 -13
  34. package/dist/esm/plugins/help-dialog/index.js +0 -130
  35. package/dist/esm/plugins/help-dialog/plugin-key.js +0 -2
  36. package/dist/esm/plugins/help-dialog/ui/HelpDialogLoader.js +0 -12
  37. package/dist/esm/plugins/help-dialog/ui/index.js +0 -552
  38. package/dist/esm/plugins/help-dialog/ui/styles.js +0 -40
  39. package/dist/types/plugins/help-dialog/commands.d.ts +0 -3
  40. package/dist/types/plugins/help-dialog/index.d.ts +0 -5
  41. package/dist/types/plugins/help-dialog/plugin-key.d.ts +0 -2
  42. package/dist/types/plugins/help-dialog/ui/HelpDialogLoader.d.ts +0 -4
  43. package/dist/types/plugins/help-dialog/ui/index.d.ts +0 -27
  44. package/dist/types/plugins/help-dialog/ui/styles.d.ts +0 -33
  45. package/dist/types-ts4.5/plugins/help-dialog/commands.d.ts +0 -3
  46. package/dist/types-ts4.5/plugins/help-dialog/index.d.ts +0 -5
  47. package/dist/types-ts4.5/plugins/help-dialog/plugin-key.d.ts +0 -2
  48. package/dist/types-ts4.5/plugins/help-dialog/ui/HelpDialogLoader.d.ts +0 -4
  49. package/dist/types-ts4.5/plugins/help-dialog/ui/index.d.ts +0 -27
  50. package/dist/types-ts4.5/plugins/help-dialog/ui/styles.d.ts +0 -33
@@ -1,40 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
3
- import { css } from '@emotion/react';
4
- import { borderRadius } from '@atlaskit/theme/constants';
5
- import * as colors from '@atlaskit/theme/colors';
6
- import { akEditorUnitZIndex, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
7
- import { N400 } from '@atlaskit/theme/colors';
8
- export var header = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n z-index: ", ";\n min-height: 24px;\n padding: 20px 40px;\n font-size: ", ";\n display: flex;\n justify-content: space-between;\n align-items: center;\n box-shadow: 'none';\n color: ", ";\n background-color: ", ";\n border-radius: ", "px;\n"])), akEditorUnitZIndex, relativeFontSizeToBase16(24), "var(--ds-text, ".concat(colors.N400, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N0, ")"), borderRadius());
9
- export var footer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n z-index: ", ";\n font-size: ", ";\n line-height: 20px;\n color: ", ";\n padding: 24px;\n text-align: right;\n box-shadow: 'none';\n"])), akEditorUnitZIndex, relativeFontSizeToBase16(14), "var(--ds-text-subtlest, ".concat(colors.N300, ")"));
10
- export var contentWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 20px 44px;\n border-bottom-right-radius: ", "px;\n overflow: auto;\n position: relative;\n color: ", ";\n background-color: ", ";\n"])), borderRadius(), "var(--ds-text-subtle, ".concat(colors.N400, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N0, ")"));
11
- export var line = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background: ", ";\n content: '';\n display: block;\n height: 2px;\n left: 0;\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n min-width: 604px;\n"])), "var(--ds-background-neutral-subtle, #fff)");
12
- export var content = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n min-width: 524px;\n width: 100%;\n position: relative;\n display: flex;\n justify-content: space-between;\n"])));
13
- export var column = {
14
- width: '44%',
15
- '& > ul': {
16
- padding: 0
17
- }
18
- };
19
- export var row = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 20px 0;\n display: flex;\n justify-content: space-between;\n"])));
20
- export var dialogHeader = {
21
- '&': {
22
- fontSize: relativeFontSizeToBase16(24),
23
- fontWeight: 400,
24
- color: "var(--ds-text-subtle, ".concat(N400, ")"),
25
- letterSpacing: 'normal',
26
- lineHeight: 1.42857142857143
27
- }
28
- };
29
- export var title = {
30
- '&': {
31
- fontSize: relativeFontSizeToBase16(18),
32
- fontWeight: 400,
33
- color: "var(--ds-text-subtle, ".concat(N400, ")"),
34
- letterSpacing: 'normal',
35
- lineHeight: 1.42857142857143
36
- }
37
- };
38
- export var codeSm = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n background-color: ", ";\n border-radius: ", "px;\n width: 24px;\n display: inline-block;\n height: 24px;\n line-height: 24px;\n text-align: center;\n"])), "var(--ds-background-neutral, ".concat(colors.N20, ")"), borderRadius());
39
- export var codeMd = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n height: 24px;\n line-height: 24px;\n width: 50px;\n text-align: center;\n"])), "var(--ds-background-neutral, ".concat(colors.N20, ")"), borderRadius());
40
- export var codeLg = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n height: 24px;\n line-height: 24px;\n padding: 0 10px;\n text-align: center;\n"])), "var(--ds-background-neutral, ".concat(colors.N20, ")"), borderRadius());
@@ -1,3 +0,0 @@
1
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
- export declare const openHelpCommand: (tr: Transaction, dispatch?: Function) => boolean;
3
- export declare const closeHelpCommand: (tr: Transaction, dispatch: Function) => void;
@@ -1,5 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { HelpDialogPlugin } from '@atlaskit/editor-plugin-help-dialog';
3
- export declare function createPlugin(dispatch: Function, imageEnabled: boolean): SafePlugin<any>;
4
- declare const helpDialog: HelpDialogPlugin;
5
- export default helpDialog;
@@ -1,2 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export declare const pluginKey: PluginKey<any>;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import Loadable from 'react-loadable';
3
- import type { HelpDialogProps } from './index';
4
- export declare const HelpDialogLoader: import("react").ComponentType<HelpDialogProps> & Loadable.LoadableComponent;
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- import { jsx } from '@emotion/react';
3
- import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
4
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { Keymap } from '@atlaskit/editor-common/keymaps';
7
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
- import type helpDialogPlugin from '..';
9
- export interface Format {
10
- name: string;
11
- type: string;
12
- keymap?: Function;
13
- autoFormatting?: Function;
14
- imageEnabled?: boolean;
15
- }
16
- export declare const formatting: (intl: IntlShape) => Format[];
17
- export declare const getSupportedFormatting: (schema: Schema, intl: IntlShape, imageEnabled?: boolean, quickInsertEnabled?: boolean) => Format[];
18
- export declare const getComponentFromKeymap: (keymap: Keymap) => jsx.JSX.Element;
19
- export interface HelpDialogProps {
20
- pluginInjectionApi: ExtractInjectionAPI<typeof helpDialogPlugin> | undefined;
21
- editorView: EditorView;
22
- quickInsertEnabled?: boolean;
23
- }
24
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<HelpDialogProps & WrappedComponentProps<"intl">>> & {
25
- WrappedComponent: import("react").ComponentType<HelpDialogProps & WrappedComponentProps<"intl">>;
26
- };
27
- export default _default;
@@ -1,33 +0,0 @@
1
- export declare const header: import("@emotion/react").SerializedStyles;
2
- export declare const footer: import("@emotion/react").SerializedStyles;
3
- export declare const contentWrapper: import("@emotion/react").SerializedStyles;
4
- export declare const line: import("@emotion/react").SerializedStyles;
5
- export declare const content: import("@emotion/react").SerializedStyles;
6
- export declare const column: {
7
- width: string;
8
- '& > ul': {
9
- padding: number;
10
- };
11
- };
12
- export declare const row: import("@emotion/react").SerializedStyles;
13
- export declare const dialogHeader: {
14
- '&': {
15
- fontSize: string;
16
- fontWeight: number;
17
- color: "var(--ds-text-subtle)";
18
- letterSpacing: string;
19
- lineHeight: number;
20
- };
21
- };
22
- export declare const title: {
23
- '&': {
24
- fontSize: string;
25
- fontWeight: number;
26
- color: "var(--ds-text-subtle)";
27
- letterSpacing: string;
28
- lineHeight: number;
29
- };
30
- };
31
- export declare const codeSm: import("@emotion/react").SerializedStyles;
32
- export declare const codeMd: import("@emotion/react").SerializedStyles;
33
- export declare const codeLg: import("@emotion/react").SerializedStyles;
@@ -1,3 +0,0 @@
1
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
- export declare const openHelpCommand: (tr: Transaction, dispatch?: Function) => boolean;
3
- export declare const closeHelpCommand: (tr: Transaction, dispatch: Function) => void;
@@ -1,5 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { HelpDialogPlugin } from '@atlaskit/editor-plugin-help-dialog';
3
- export declare function createPlugin(dispatch: Function, imageEnabled: boolean): SafePlugin<any>;
4
- declare const helpDialog: HelpDialogPlugin;
5
- export default helpDialog;
@@ -1,2 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export declare const pluginKey: PluginKey<any>;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import Loadable from 'react-loadable';
3
- import type { HelpDialogProps } from './index';
4
- export declare const HelpDialogLoader: import("react").ComponentType<HelpDialogProps> & Loadable.LoadableComponent;
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- import { jsx } from '@emotion/react';
3
- import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
4
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { Keymap } from '@atlaskit/editor-common/keymaps';
7
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
- import type helpDialogPlugin from '..';
9
- export interface Format {
10
- name: string;
11
- type: string;
12
- keymap?: Function;
13
- autoFormatting?: Function;
14
- imageEnabled?: boolean;
15
- }
16
- export declare const formatting: (intl: IntlShape) => Format[];
17
- export declare const getSupportedFormatting: (schema: Schema, intl: IntlShape, imageEnabled?: boolean, quickInsertEnabled?: boolean) => Format[];
18
- export declare const getComponentFromKeymap: (keymap: Keymap) => jsx.JSX.Element;
19
- export interface HelpDialogProps {
20
- pluginInjectionApi: ExtractInjectionAPI<typeof helpDialogPlugin> | undefined;
21
- editorView: EditorView;
22
- quickInsertEnabled?: boolean;
23
- }
24
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<HelpDialogProps & WrappedComponentProps<"intl">>> & {
25
- WrappedComponent: import("react").ComponentType<HelpDialogProps & WrappedComponentProps<"intl">>;
26
- };
27
- export default _default;
@@ -1,33 +0,0 @@
1
- export declare const header: import("@emotion/react").SerializedStyles;
2
- export declare const footer: import("@emotion/react").SerializedStyles;
3
- export declare const contentWrapper: import("@emotion/react").SerializedStyles;
4
- export declare const line: import("@emotion/react").SerializedStyles;
5
- export declare const content: import("@emotion/react").SerializedStyles;
6
- export declare const column: {
7
- width: string;
8
- '& > ul': {
9
- padding: number;
10
- };
11
- };
12
- export declare const row: import("@emotion/react").SerializedStyles;
13
- export declare const dialogHeader: {
14
- '&': {
15
- fontSize: string;
16
- fontWeight: number;
17
- color: "var(--ds-text-subtle)";
18
- letterSpacing: string;
19
- lineHeight: number;
20
- };
21
- };
22
- export declare const title: {
23
- '&': {
24
- fontSize: string;
25
- fontWeight: number;
26
- color: "var(--ds-text-subtle)";
27
- letterSpacing: string;
28
- lineHeight: number;
29
- };
30
- };
31
- export declare const codeSm: import("@emotion/react").SerializedStyles;
32
- export declare const codeMd: import("@emotion/react").SerializedStyles;
33
- export declare const codeLg: import("@emotion/react").SerializedStyles;