@atlaskit/editor-plugin-text-formatting 0.3.2 → 0.4.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 +26 -0
- package/README.md +25 -4
- package/dist/cjs/plugin.js +4 -0
- package/dist/es2019/plugin.js +4 -0
- package/dist/esm/plugin.js +4 -0
- package/dist/types/plugin.d.ts +4 -0
- package/dist/types-ts4.5/plugin.d.ts +4 -0
- package/docs/0-intro.tsx +55 -0
- package/package.json +7 -7
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-formatting
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6acf9830b36`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6acf9830b36) - Update feature flags plugin
|
|
8
|
+
(@atlaskit/editor-plugin-feature-flags) to use a named export
|
|
9
|
+
rather than default export to match other plugins.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
// Before
|
|
13
|
+
import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
14
|
+
|
|
15
|
+
// After
|
|
16
|
+
import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 0.4.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating all plugins with minor version to correct issue with semver.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 0.3.2
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Editor plugin text formatting
|
|
2
2
|
|
|
3
|
-
Text
|
|
3
|
+
Text formatting plugin for @atlaskit/editor-core
|
|
4
|
+
|
|
5
|
+
**Note:** This component is designed for internal Atlassian development.
|
|
6
|
+
External contributors will be able to use this component but will not be able to submit issues.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
---
|
|
10
|
+
- **Install** - *yarn add @atlaskit/editor-plugin-text-formatting*
|
|
11
|
+
- **npm** - [@atlaskit/editor-plugin-text-formatting](https://www.npmjs.com/package/@atlaskit/editor-plugin-text-formatting)
|
|
12
|
+
- **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-text-formatting)
|
|
13
|
+
- **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-text-formatting/dist/)
|
|
4
14
|
|
|
5
15
|
## Usage
|
|
16
|
+
---
|
|
17
|
+
**Internal use only**
|
|
18
|
+
|
|
19
|
+
@atlaskit/editor-plugin-text-formatting is intended for internal use by the @atlaskit/editor-core and as a plugin dependency of the Editor within your product.
|
|
20
|
+
|
|
21
|
+
Direct use of this component is not supported.
|
|
6
22
|
|
|
7
|
-
|
|
23
|
+
Please see [Atlaskit - Editor plugin text formatting](https://atlaskit.atlassian.com/packages/editor/editor-plugin-text-formatting) for documentation and examples for this package.
|
|
8
24
|
|
|
9
|
-
|
|
25
|
+
## Support
|
|
26
|
+
---
|
|
27
|
+
For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
|
|
28
|
+
## License
|
|
29
|
+
---
|
|
30
|
+
Please see [Atlassian Frontend - License](https://developer.atlassian.com/cloud/framework/atlassian-frontend/#license) for more licensing information.
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -17,6 +17,10 @@ var _keymap = _interopRequireDefault(require("./pm-plugins/keymap"));
|
|
|
17
17
|
var _main = require("./pm-plugins/main");
|
|
18
18
|
var _smartInputRule = _interopRequireDefault(require("./pm-plugins/smart-input-rule"));
|
|
19
19
|
var _Toolbar = _interopRequireDefault(require("./ui/Toolbar"));
|
|
20
|
+
/**
|
|
21
|
+
* Text formatting plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
22
|
+
* from `@atlaskit/editor-core`.
|
|
23
|
+
*/
|
|
20
24
|
var textFormattingPlugin = function textFormattingPlugin(_ref) {
|
|
21
25
|
var _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics10, _api$analytics11, _api$analytics12, _api$analytics13;
|
|
22
26
|
var options = _ref.config,
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -10,6 +10,10 @@ import keymapPlugin from './pm-plugins/keymap';
|
|
|
10
10
|
import { plugin as pmPlugin, pluginKey as textFormattingPluginKey } from './pm-plugins/main';
|
|
11
11
|
import textFormattingSmartInputRulePlugin from './pm-plugins/smart-input-rule';
|
|
12
12
|
import Toolbar from './ui/Toolbar';
|
|
13
|
+
/**
|
|
14
|
+
* Text formatting plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
15
|
+
* from `@atlaskit/editor-core`.
|
|
16
|
+
*/
|
|
13
17
|
export const textFormattingPlugin = ({
|
|
14
18
|
config: options,
|
|
15
19
|
api
|
package/dist/esm/plugin.js
CHANGED
|
@@ -10,6 +10,10 @@ import keymapPlugin from './pm-plugins/keymap';
|
|
|
10
10
|
import { plugin as pmPlugin, pluginKey as textFormattingPluginKey } from './pm-plugins/main';
|
|
11
11
|
import textFormattingSmartInputRulePlugin from './pm-plugins/smart-input-rule';
|
|
12
12
|
import Toolbar from './ui/Toolbar';
|
|
13
|
+
/**
|
|
14
|
+
* Text formatting plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
15
|
+
* from `@atlaskit/editor-core`.
|
|
16
|
+
*/
|
|
13
17
|
export var textFormattingPlugin = function textFormattingPlugin(_ref) {
|
|
14
18
|
var _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics10, _api$analytics11, _api$analytics12, _api$analytics13;
|
|
15
19
|
var options = _ref.config,
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -15,4 +15,8 @@ export type TextFormattingPlugin = NextEditorPlugin<'textFormatting', {
|
|
|
15
15
|
};
|
|
16
16
|
sharedState: TextFormattingState | undefined;
|
|
17
17
|
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Text formatting plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
20
|
+
* from `@atlaskit/editor-core`.
|
|
21
|
+
*/
|
|
18
22
|
export declare const textFormattingPlugin: TextFormattingPlugin;
|
|
@@ -17,4 +17,8 @@ export type TextFormattingPlugin = NextEditorPlugin<'textFormatting', {
|
|
|
17
17
|
};
|
|
18
18
|
sharedState: TextFormattingState | undefined;
|
|
19
19
|
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Text formatting plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
22
|
+
* from `@atlaskit/editor-core`.
|
|
23
|
+
*/
|
|
20
24
|
export declare const textFormattingPlugin: TextFormattingPlugin;
|
package/docs/0-intro.tsx
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { AtlassianInternalWarning, code, md } from '@atlaskit/docs';
|
|
4
|
+
import { createEditorUseOnlyNotice } from '@atlaskit/editor-core/docs/editor-use-only';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
6
|
+
|
|
7
|
+
export default md`
|
|
8
|
+
|
|
9
|
+
${createEditorUseOnlyNotice('Editor Plugin Text Formatting', [
|
|
10
|
+
{ name: 'Editor Core', link: '/packages/editor/editor-core' },
|
|
11
|
+
])}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
${(
|
|
15
|
+
<div style={{ marginTop: token('space.100', '8px') }}>
|
|
16
|
+
<AtlassianInternalWarning />
|
|
17
|
+
</div>
|
|
18
|
+
)}
|
|
19
|
+
|
|
20
|
+
This package includes the text formatting plugin used by \`@atlaskit/editor-core\`.
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
The \`dependencies\`, \`configuration\`, \`state\`, \`actions\`, and \`commands\` of the plugin are defined
|
|
26
|
+
below:
|
|
27
|
+
|
|
28
|
+
${code`
|
|
29
|
+
type TextFormattingPlugin = NextEditorPlugin<
|
|
30
|
+
'textFormatting',
|
|
31
|
+
{
|
|
32
|
+
pluginConfiguration: TextFormattingOptions | undefined;
|
|
33
|
+
dependencies: [OptionalPlugin<typeof analyticsPlugin>];
|
|
34
|
+
commands: {
|
|
35
|
+
toggleSuperscript: ToggleMarkEditorCommand;
|
|
36
|
+
toggleSubscript: ToggleMarkEditorCommand;
|
|
37
|
+
toggleStrike: ToggleMarkEditorCommand;
|
|
38
|
+
toggleCode: ToggleMarkEditorCommand;
|
|
39
|
+
toggleUnderline: ToggleMarkEditorCommand;
|
|
40
|
+
toggleEm: ToggleMarkEditorCommand;
|
|
41
|
+
toggleStrong: ToggleMarkEditorCommand;
|
|
42
|
+
};
|
|
43
|
+
sharedState: TextFormattingState | undefined;
|
|
44
|
+
}
|
|
45
|
+
>;
|
|
46
|
+
`}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## Support
|
|
50
|
+
---
|
|
51
|
+
For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
|
|
52
|
+
## License
|
|
53
|
+
---
|
|
54
|
+
Please see [Atlassian Frontend - License](https://developer.atlassian.com/cloud/framework/atlassian-frontend/#license) for more licensing information.
|
|
55
|
+
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
|
-
"team": "Editor",
|
|
11
|
+
"team": "Editor: Scarlet",
|
|
12
12
|
"singleton": true,
|
|
13
13
|
"releaseModel": "continuous"
|
|
14
14
|
},
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "28.1.2",
|
|
35
|
-
"@atlaskit/editor-common": "^74.
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^0.
|
|
35
|
+
"@atlaskit/editor-common": "^74.56.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^0.2.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
38
38
|
"@atlaskit/editor-shared-styles": "^2.5.0",
|
|
39
39
|
"@atlaskit/editor-tables": "^2.3.0",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"react": "^16.8.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@atlaskit/editor-plugin-composition": "^0.0
|
|
51
|
-
"@atlaskit/editor-plugin-decorations": "^0.
|
|
52
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
50
|
+
"@atlaskit/editor-plugin-composition": "^0.1.0",
|
|
51
|
+
"@atlaskit/editor-plugin-decorations": "^0.2.0",
|
|
52
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
53
53
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
54
54
|
"@testing-library/react": "^12.1.5",
|
|
55
55
|
"typescript": "~4.9.5"
|
package/report.api.md
CHANGED
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export type TextFormattingPlugin = NextEditorPlugin<'textFormatting', {
|
|
|
28
28
|
sharedState: TextFormattingState | undefined;
|
|
29
29
|
}>;
|
|
30
30
|
|
|
31
|
-
// @public
|
|
31
|
+
// @public
|
|
32
32
|
export const textFormattingPlugin: TextFormattingPlugin;
|
|
33
33
|
|
|
34
34
|
// @public (undocumented)
|