@atlaskit/editor-plugin-toolbar 4.1.11 → 4.1.12
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar
|
|
2
2
|
|
|
3
|
+
## 4.1.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fb3129f46e923`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fb3129f46e923) -
|
|
8
|
+
Update config options
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 4.1.11
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -30,7 +30,8 @@ export type ToolbarPlugin = NextEditorPlugin<'toolbar', {
|
|
|
30
30
|
* @returns The active contextual formatting mode:
|
|
31
31
|
* - `always-inline`: Formatting controls appear in a floating toolbar near selected text
|
|
32
32
|
* - `always-pinned`: Formatting controls are pinned to the top toolbar (default)
|
|
33
|
-
* - `controlled`: Both inline and primary toolbars are available
|
|
33
|
+
* - `controlled`: Both inline and primary toolbars are available - this option requires editor-plugin-selection-toolbar to be configured with
|
|
34
|
+
* userPreferencesProvider to control the toolbar pinning.
|
|
34
35
|
*/
|
|
35
36
|
contextualFormattingMode: () => ContextualFormattingEnabledOptions;
|
|
36
37
|
/**
|
|
@@ -10,12 +10,21 @@ export type ToolbarPluginOptions = {
|
|
|
10
10
|
* Controls which toolbars are available for in the editor.
|
|
11
11
|
*
|
|
12
12
|
* The contextual formatting toolbar provides text formatting options (bold, italic, links, etc.)
|
|
13
|
-
* that appear contextually based on user selection
|
|
13
|
+
* that appear contextually based on user selection.
|
|
14
|
+
*
|
|
15
|
+
* **Notes:**
|
|
16
|
+
* - The inline text toolbar has only been tested to work in the full-page and chromless editor appearances.
|
|
17
|
+
*
|
|
18
|
+
* **Options:**
|
|
19
|
+
* - `always-inline`: Formatting controls appear in a floating toolbar near selected text
|
|
20
|
+
* - `always-pinned`: Formatting controls are pinned to the top toolbar (default)
|
|
21
|
+
* - `controlled`: Both inline and primary toolbars are available - this option requires editor-plugin-selection-toolbar to be configured with
|
|
22
|
+
* userPreferencesProvider to control the toolbar pinning.
|
|
14
23
|
*
|
|
15
24
|
* @remarks
|
|
16
25
|
* This option determines where and when the formatting toolbar is displayed:
|
|
17
|
-
* - **Primary
|
|
18
|
-
* - **Inline
|
|
26
|
+
* - **Primary toolbar**: The toolbar mounted at the top of the editor that is always visible
|
|
27
|
+
* - **Inline text toolbar**: A floating toolbar that appears near the selected text
|
|
19
28
|
*
|
|
20
29
|
* @example
|
|
21
30
|
* ```tsx
|
|
@@ -35,6 +44,7 @@ export type ToolbarPluginOptions = {
|
|
|
35
44
|
*
|
|
36
45
|
* @example
|
|
37
46
|
* ```tsx
|
|
47
|
+
* // Must have editor-plugin-selection-toolbar configured with userPreferencesProvider
|
|
38
48
|
* // Allow dynamic control of toolbar placement (both inline and primary available)
|
|
39
49
|
* const toolbarPlugin = createToolbarPlugin({
|
|
40
50
|
* contextualFormattingEnabled: 'controlled',
|
|
@@ -30,7 +30,8 @@ export type ToolbarPlugin = NextEditorPlugin<'toolbar', {
|
|
|
30
30
|
* @returns The active contextual formatting mode:
|
|
31
31
|
* - `always-inline`: Formatting controls appear in a floating toolbar near selected text
|
|
32
32
|
* - `always-pinned`: Formatting controls are pinned to the top toolbar (default)
|
|
33
|
-
* - `controlled`: Both inline and primary toolbars are available
|
|
33
|
+
* - `controlled`: Both inline and primary toolbars are available - this option requires editor-plugin-selection-toolbar to be configured with
|
|
34
|
+
* userPreferencesProvider to control the toolbar pinning.
|
|
34
35
|
*/
|
|
35
36
|
contextualFormattingMode: () => ContextualFormattingEnabledOptions;
|
|
36
37
|
/**
|
|
@@ -10,12 +10,21 @@ export type ToolbarPluginOptions = {
|
|
|
10
10
|
* Controls which toolbars are available for in the editor.
|
|
11
11
|
*
|
|
12
12
|
* The contextual formatting toolbar provides text formatting options (bold, italic, links, etc.)
|
|
13
|
-
* that appear contextually based on user selection
|
|
13
|
+
* that appear contextually based on user selection.
|
|
14
|
+
*
|
|
15
|
+
* **Notes:**
|
|
16
|
+
* - The inline text toolbar has only been tested to work in the full-page and chromless editor appearances.
|
|
17
|
+
*
|
|
18
|
+
* **Options:**
|
|
19
|
+
* - `always-inline`: Formatting controls appear in a floating toolbar near selected text
|
|
20
|
+
* - `always-pinned`: Formatting controls are pinned to the top toolbar (default)
|
|
21
|
+
* - `controlled`: Both inline and primary toolbars are available - this option requires editor-plugin-selection-toolbar to be configured with
|
|
22
|
+
* userPreferencesProvider to control the toolbar pinning.
|
|
14
23
|
*
|
|
15
24
|
* @remarks
|
|
16
25
|
* This option determines where and when the formatting toolbar is displayed:
|
|
17
|
-
* - **Primary
|
|
18
|
-
* - **Inline
|
|
26
|
+
* - **Primary toolbar**: The toolbar mounted at the top of the editor that is always visible
|
|
27
|
+
* - **Inline text toolbar**: A floating toolbar that appears near the selected text
|
|
19
28
|
*
|
|
20
29
|
* @example
|
|
21
30
|
* ```tsx
|
|
@@ -35,6 +44,7 @@ export type ToolbarPluginOptions = {
|
|
|
35
44
|
*
|
|
36
45
|
* @example
|
|
37
46
|
* ```tsx
|
|
47
|
+
* // Must have editor-plugin-selection-toolbar configured with userPreferencesProvider
|
|
38
48
|
* // Allow dynamic control of toolbar placement (both inline and primary available)
|
|
39
49
|
* const toolbarPlugin = createToolbarPlugin({
|
|
40
50
|
* contextualFormattingEnabled: 'controlled',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.12",
|
|
4
4
|
"description": "Toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
40
40
|
"@atlaskit/editor-toolbar-model": "^0.3.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^22.0.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"bind-event-listener": "^3.0.0",
|
|
45
45
|
"react-intl-next": "npm:react-intl@^5.18.1"
|