@atlaskit/editor-plugin-text-formatting 8.1.8 → 8.1.10
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/es2019/ui/Toolbar/index.js +0 -1
- package/dist/esm/ui/Toolbar/index.js +0 -1
- package/dist/types/ui/FloatingToolbarComponent.d.ts +2 -2
- package/dist/types/ui/Toolbar/components/BoldButtonGroup.d.ts +3 -3
- package/dist/types/ui/Toolbar/components/TextFormattingGroupForInlineToolbar.d.ts +3 -3
- package/dist/types/ui/Toolbar/components/TextFormattingGroups.d.ts +3 -3
- package/dist/types/ui/Toolbar/components/TextFormattingMenuGroup.d.ts +3 -3
- package/dist/types/ui/Toolbar/components/UnderlineButtonGroup.d.ts +3 -3
- package/dist/types/ui/Toolbar/components/utils.d.ts +3 -3
- package/dist/types/ui/Toolbar/dropdown-menu.d.ts +1 -1
- package/dist/types/ui/Toolbar/hooks/formatting-icons.d.ts +2 -3
- package/dist/types/ui/Toolbar/hooks/responsive-toolbar-buttons.d.ts +1 -1
- package/dist/types/ui/Toolbar/index.d.ts +1 -5
- package/dist/types/ui/toolbar-components.d.ts +3 -3
- package/dist/types-ts4.5/ui/FloatingToolbarComponent.d.ts +2 -2
- package/dist/types-ts4.5/ui/Toolbar/components/BoldButtonGroup.d.ts +3 -3
- package/dist/types-ts4.5/ui/Toolbar/components/TextFormattingGroupForInlineToolbar.d.ts +3 -3
- package/dist/types-ts4.5/ui/Toolbar/components/TextFormattingGroups.d.ts +3 -3
- package/dist/types-ts4.5/ui/Toolbar/components/TextFormattingMenuGroup.d.ts +3 -3
- package/dist/types-ts4.5/ui/Toolbar/components/UnderlineButtonGroup.d.ts +3 -3
- package/dist/types-ts4.5/ui/Toolbar/components/utils.d.ts +3 -3
- package/dist/types-ts4.5/ui/Toolbar/dropdown-menu.d.ts +1 -1
- package/dist/types-ts4.5/ui/Toolbar/hooks/formatting-icons.d.ts +2 -3
- package/dist/types-ts4.5/ui/Toolbar/hooks/responsive-toolbar-buttons.d.ts +1 -1
- package/dist/types-ts4.5/ui/Toolbar/index.d.ts +1 -5
- package/dist/types-ts4.5/ui/toolbar-components.d.ts +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-formatting
|
|
2
2
|
|
|
3
|
+
## 8.1.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.1.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`86fd5ef0f1d07`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/86fd5ef0f1d07) -
|
|
14
|
+
Mechanical type-import autofix for text formatting editor plugins.
|
|
15
|
+
|
|
3
16
|
## 8.1.8
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -7,7 +7,6 @@ var _excluded = ["formattingIsPresent"];
|
|
|
7
7
|
* @jsx jsx
|
|
8
8
|
*/
|
|
9
9
|
import { useEffect, useMemo, useState } from 'react';
|
|
10
|
-
|
|
11
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
11
|
import { jsx } from '@emotion/react';
|
|
13
12
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
11
11
|
type FloatingToolbarComponentProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const boldButtonGroup: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const textFormattingGroupForInlineToolbar: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const textFormattingGroupForPrimaryToolbar: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const getFormatMenuItems: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
5
5
|
export declare const textFormattingMenuGroup: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const underlineButtonGroup: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
import type { Keymap } from '@atlaskit/editor-common/keymaps';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { IconComponent } from '@atlaskit/editor-toolbar';
|
|
5
5
|
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
|
|
6
6
|
import type { ToggleMarkWithAnalyticsEditorCommand, ClearFormattingWithAnalyticsEditorCommand } from '../../../editor-commands/types';
|
|
7
|
-
import {
|
|
7
|
+
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
8
8
|
import type { FormatOptions } from '../types';
|
|
9
9
|
export type FormatComponentProps = {
|
|
10
10
|
api?: ExtractInjectionAPI<TextFormattingPlugin>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import {
|
|
4
|
+
import type { MenuIconItem, ToolbarType } from './types';
|
|
5
5
|
type DropdownMenuProps = {
|
|
6
6
|
editorView: EditorView;
|
|
7
7
|
hasFormattingActive: boolean;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { TextFormattingState } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import type
|
|
5
|
-
import { IconTypes, type ToolbarType } from '../types';
|
|
4
|
+
import { type IconHookProps, type MenuIconItem, IconTypes, type ToolbarType } from '../types';
|
|
6
5
|
interface FormattingIconHookProps extends IconHookProps {
|
|
7
6
|
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
8
7
|
schema: Schema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { IconTypes, MenuIconItem } from '../types';
|
|
3
|
-
import {
|
|
3
|
+
import type { IconsPositions } from './use-icon-list';
|
|
4
4
|
export declare const useResponsiveIconTypeButtons: ({ toolbarSize, responsivenessEnabled, }: {
|
|
5
5
|
responsivenessEnabled: boolean;
|
|
6
6
|
toolbarSize: ToolbarSize;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentType, type FC } from 'react';
|
|
1
|
+
import type { ComponentType, FC } from 'react';
|
|
6
2
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
4
|
import type { ExtractInjectionAPI, TextFormattingState, ToolbarSize } from '@atlaskit/editor-common/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
4
4
|
export declare const getToolbarComponents: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
11
11
|
type FloatingToolbarComponentProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const boldButtonGroup: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const textFormattingGroupForInlineToolbar: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const textFormattingGroupForPrimaryToolbar: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const getFormatMenuItems: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
5
5
|
export declare const textFormattingMenuGroup: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
4
4
|
export declare const underlineButtonGroup: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
import type { Keymap } from '@atlaskit/editor-common/keymaps';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { IconComponent } from '@atlaskit/editor-toolbar';
|
|
5
5
|
import type { ToolbarComponentTypes } from '@atlaskit/editor-toolbar-model';
|
|
6
6
|
import type { ToggleMarkWithAnalyticsEditorCommand, ClearFormattingWithAnalyticsEditorCommand } from '../../../editor-commands/types';
|
|
7
|
-
import {
|
|
7
|
+
import type { TextFormattingPlugin } from '../../../textFormattingPluginType';
|
|
8
8
|
import type { FormatOptions } from '../types';
|
|
9
9
|
export type FormatComponentProps = {
|
|
10
10
|
api?: ExtractInjectionAPI<TextFormattingPlugin>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import {
|
|
4
|
+
import type { MenuIconItem, ToolbarType } from './types';
|
|
5
5
|
type DropdownMenuProps = {
|
|
6
6
|
editorView: EditorView;
|
|
7
7
|
hasFormattingActive: boolean;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { TextFormattingState } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import type
|
|
5
|
-
import { IconTypes, type ToolbarType } from '../types';
|
|
4
|
+
import { type IconHookProps, type MenuIconItem, IconTypes, type ToolbarType } from '../types';
|
|
6
5
|
interface FormattingIconHookProps extends IconHookProps {
|
|
7
6
|
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
8
7
|
schema: Schema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { IconTypes, MenuIconItem } from '../types';
|
|
3
|
-
import {
|
|
3
|
+
import type { IconsPositions } from './use-icon-list';
|
|
4
4
|
export declare const useResponsiveIconTypeButtons: ({ toolbarSize, responsivenessEnabled, }: {
|
|
5
5
|
responsivenessEnabled: boolean;
|
|
6
6
|
toolbarSize: ToolbarSize;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentType, type FC } from 'react';
|
|
1
|
+
import type { ComponentType, FC } from 'react';
|
|
6
2
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
4
|
import type { ExtractInjectionAPI, TextFormattingState, ToolbarSize } from '@atlaskit/editor-common/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
3
|
+
import type { TextFormattingPlugin } from '../textFormattingPluginType';
|
|
4
4
|
export declare const getToolbarComponents: (api?: ExtractInjectionAPI<TextFormattingPlugin>) => RegisterComponent[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.10",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
44
44
|
"@atlaskit/editor-toolbar": "^0.20.0",
|
|
45
45
|
"@atlaskit/editor-toolbar-model": "^0.4.0",
|
|
46
|
-
"@atlaskit/icon": "^33.
|
|
46
|
+
"@atlaskit/icon": "^33.1.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
50
|
-
"@atlaskit/tokens": "^11.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^47.0.0",
|
|
50
|
+
"@atlaskit/tokens": "^11.3.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@emotion/react": "^11.7.1",
|
|
53
53
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@atlaskit/editor-common": "^112.
|
|
56
|
+
"@atlaskit/editor-common": "^112.10.0",
|
|
57
57
|
"react": "^18.2.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|