@atlaskit/editor-plugin-help-dialog 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/Modal.js +1 -1
- package/dist/cjs/ui/ModalContent.js +1 -1
- package/dist/cjs/ui/ModalFooter.js +1 -1
- package/dist/cjs/ui/ModalHeader.js +1 -0
- package/dist/cjs/ui/index.js +2 -1
- package/dist/cjs/ui/utils.js +1 -1
- package/dist/es2019/ui/Modal.js +1 -1
- package/dist/es2019/ui/ModalContent.js +1 -1
- package/dist/es2019/ui/ModalFooter.js +1 -1
- package/dist/es2019/ui/ModalHeader.js +1 -0
- package/dist/es2019/ui/index.js +2 -1
- package/dist/es2019/ui/utils.js +1 -1
- package/dist/esm/ui/Modal.js +1 -1
- package/dist/esm/ui/ModalContent.js +1 -1
- package/dist/esm/ui/ModalFooter.js +1 -1
- package/dist/esm/ui/ModalHeader.js +1 -0
- package/dist/esm/ui/index.js +2 -1
- package/dist/esm/ui/utils.js +1 -1
- package/dist/types/pm-plugins/main.d.ts +1 -1
- package/dist/types/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/ui/HelpDialogLoader.d.ts +2 -1
- package/dist/types/ui/ModalHeader.d.ts +8 -3
- package/dist/types/ui/index.d.ts +9 -4
- package/dist/types/ui/styles.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/ui/HelpDialogLoader.d.ts +2 -1
- package/dist/types-ts4.5/ui/ModalHeader.d.ts +8 -3
- package/dist/types-ts4.5/ui/index.d.ts +9 -4
- package/dist/types-ts4.5/ui/styles.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/cjs/ui/Modal.js
CHANGED
|
@@ -11,7 +11,7 @@ var _ModalContent = require("./ModalContent");
|
|
|
11
11
|
* @jsxRuntime classic
|
|
12
12
|
* @jsx jsx
|
|
13
13
|
*/
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
15
15
|
|
|
16
16
|
var Modal = function Modal(_ref) {
|
|
17
17
|
var formatting = _ref.formatting;
|
|
@@ -23,7 +23,7 @@ var _utils = require("./utils");
|
|
|
23
23
|
*/
|
|
24
24
|
/** @jsxFrag */
|
|
25
25
|
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
27
27
|
|
|
28
28
|
var ModalContent = exports.ModalContent = function ModalContent(_ref) {
|
|
29
29
|
var formatting = _ref.formatting,
|
|
@@ -16,7 +16,7 @@ var _utils = require("./utils");
|
|
|
16
16
|
* @jsxRuntime classic
|
|
17
17
|
* @jsx jsx
|
|
18
18
|
*/
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
20
20
|
|
|
21
21
|
var ModalFooter = function ModalFooter() {
|
|
22
22
|
return (
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -71,4 +71,5 @@ var HelpDialog = function HelpDialog(_ref) {
|
|
|
71
71
|
formatting: formatting
|
|
72
72
|
})) : null);
|
|
73
73
|
};
|
|
74
|
-
var
|
|
74
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(HelpDialog);
|
|
75
|
+
var _default = exports.default = _default_1;
|
package/dist/cjs/ui/utils.js
CHANGED
|
@@ -13,7 +13,7 @@ var _styles = require("./styles");
|
|
|
13
13
|
* @jsxRuntime classic
|
|
14
14
|
* @jsx jsx
|
|
15
15
|
*/
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
17
17
|
|
|
18
18
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
19
19
|
|
package/dist/es2019/ui/Modal.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { useModal } from '@atlaskit/modal-dialog';
|
|
8
8
|
import { ModalContent } from './ModalContent';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/** @jsxFrag */
|
|
6
6
|
import { Fragment } from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
11
11
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { FormattedMessage } from 'react-intl-next';
|
|
9
9
|
import { openHelp } from '@atlaskit/editor-common/keymaps';
|
package/dist/es2019/ui/index.js
CHANGED
package/dist/es2019/ui/utils.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
package/dist/esm/ui/Modal.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { useModal } from '@atlaskit/modal-dialog';
|
|
8
8
|
import { ModalContent } from './ModalContent';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/** @jsxFrag */
|
|
6
6
|
import { Fragment } from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
11
11
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { FormattedMessage } from 'react-intl-next';
|
|
9
9
|
import { openHelp } from '@atlaskit/editor-common/keymaps';
|
package/dist/esm/ui/index.js
CHANGED
package/dist/esm/ui/utils.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
export declare function createPlugin(dispatch: Function, imageEnabled: boolean, aiEnabled: boolean): SafePlugin
|
|
2
|
+
export declare function createPlugin(dispatch: Function, imageEnabled: boolean, aiEnabled: boolean): SafePlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
export declare const pluginKey: PluginKey
|
|
2
|
+
export declare const pluginKey: PluginKey;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentType, PropsWithChildren } from 'react';
|
|
1
2
|
import Loadable from 'react-loadable';
|
|
2
3
|
import type { HelpDialogProps } from './index';
|
|
3
|
-
export declare const HelpDialogLoader:
|
|
4
|
+
export declare const HelpDialogLoader: ComponentType<PropsWithChildren<HelpDialogProps>> & Loadable.LoadableComponent;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import type { ComponentType, FC } from 'react';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
2
7
|
import { type OnCloseHandler } from '@atlaskit/modal-dialog';
|
|
3
8
|
interface ModalHeaderProps extends WrappedComponentProps {
|
|
4
9
|
onClose: OnCloseHandler | undefined;
|
|
5
10
|
}
|
|
6
|
-
declare const ModalHeader:
|
|
7
|
-
WrappedComponent:
|
|
11
|
+
declare const ModalHeader: FC<WithIntlProps<ModalHeaderProps>> & {
|
|
12
|
+
WrappedComponent: ComponentType<ModalHeaderProps>;
|
|
8
13
|
};
|
|
9
14
|
export default ModalHeader;
|
package/dist/types/ui/index.d.ts
CHANGED
|
@@ -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 { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
9
|
import type { HelpDialogPlugin } from '../helpDialogPluginType';
|
|
@@ -7,7 +12,7 @@ export interface HelpDialogProps {
|
|
|
7
12
|
pluginInjectionApi: ExtractInjectionAPI<HelpDialogPlugin> | undefined;
|
|
8
13
|
quickInsertEnabled?: boolean;
|
|
9
14
|
}
|
|
10
|
-
declare const
|
|
11
|
-
WrappedComponent:
|
|
15
|
+
declare const _default_1: FC<WithIntlProps<HelpDialogProps & WrappedComponentProps>> & {
|
|
16
|
+
WrappedComponent: ComponentType<HelpDialogProps & WrappedComponentProps>;
|
|
12
17
|
};
|
|
13
|
-
export default
|
|
18
|
+
export default _default_1;
|
|
@@ -14,8 +14,8 @@ export declare const row: SerializedStyles;
|
|
|
14
14
|
export declare const dialogHeader: {
|
|
15
15
|
'&': {
|
|
16
16
|
fontSize: string;
|
|
17
|
-
fontWeight:
|
|
18
|
-
color:
|
|
17
|
+
fontWeight: 'var(--ds-font-weight-regular)';
|
|
18
|
+
color: 'var(--ds-text-subtle)';
|
|
19
19
|
letterSpacing: string;
|
|
20
20
|
lineHeight: number;
|
|
21
21
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
export declare function createPlugin(dispatch: Function, imageEnabled: boolean, aiEnabled: boolean): SafePlugin
|
|
2
|
+
export declare function createPlugin(dispatch: Function, imageEnabled: boolean, aiEnabled: boolean): SafePlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
export declare const pluginKey: PluginKey
|
|
2
|
+
export declare const pluginKey: PluginKey;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentType, PropsWithChildren } from 'react';
|
|
1
2
|
import Loadable from 'react-loadable';
|
|
2
3
|
import type { HelpDialogProps } from './index';
|
|
3
|
-
export declare const HelpDialogLoader:
|
|
4
|
+
export declare const HelpDialogLoader: ComponentType<PropsWithChildren<HelpDialogProps>> & Loadable.LoadableComponent;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import type { ComponentType, FC } from 'react';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
2
7
|
import { type OnCloseHandler } from '@atlaskit/modal-dialog';
|
|
3
8
|
interface ModalHeaderProps extends WrappedComponentProps {
|
|
4
9
|
onClose: OnCloseHandler | undefined;
|
|
5
10
|
}
|
|
6
|
-
declare const ModalHeader:
|
|
7
|
-
WrappedComponent:
|
|
11
|
+
declare const ModalHeader: FC<WithIntlProps<ModalHeaderProps>> & {
|
|
12
|
+
WrappedComponent: ComponentType<ModalHeaderProps>;
|
|
8
13
|
};
|
|
9
14
|
export default ModalHeader;
|
|
@@ -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 { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
9
|
import type { HelpDialogPlugin } from '../helpDialogPluginType';
|
|
@@ -7,7 +12,7 @@ export interface HelpDialogProps {
|
|
|
7
12
|
pluginInjectionApi: ExtractInjectionAPI<HelpDialogPlugin> | undefined;
|
|
8
13
|
quickInsertEnabled?: boolean;
|
|
9
14
|
}
|
|
10
|
-
declare const
|
|
11
|
-
WrappedComponent:
|
|
15
|
+
declare const _default_1: FC<WithIntlProps<HelpDialogProps & WrappedComponentProps>> & {
|
|
16
|
+
WrappedComponent: ComponentType<HelpDialogProps & WrappedComponentProps>;
|
|
12
17
|
};
|
|
13
|
-
export default
|
|
18
|
+
export default _default_1;
|
|
@@ -14,8 +14,8 @@ export declare const row: SerializedStyles;
|
|
|
14
14
|
export declare const dialogHeader: {
|
|
15
15
|
'&': {
|
|
16
16
|
fontSize: string;
|
|
17
|
-
fontWeight:
|
|
18
|
-
color:
|
|
17
|
+
fontWeight: 'var(--ds-font-weight-regular)';
|
|
18
|
+
color: 'var(--ds-text-subtle)';
|
|
19
19
|
letterSpacing: string;
|
|
20
20
|
lineHeight: number;
|
|
21
21
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-help-dialog",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Help Dialog plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
40
|
"@atlaskit/primitives": "^18.0.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
|
"@atlaskit/tooltip": "^20.14.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|