@atlaskit/editor-plugin-text-formatting 10.2.0 → 10.2.2

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,19 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 10.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2c2360f6ef073`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c2360f6ef073) -
8
+ Move \_MarkdownModePluginStub to @atlaskit/editor-common
9
+ - Updated dependencies
10
+
11
+ ## 10.2.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 10.2.0
4
18
 
5
19
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- import type { NextEditorPlugin, OptionalPlugin, TextFormattingOptions as CommonTextFormattingOptions, TextFormattingState } from '@atlaskit/editor-common/types';
1
+ import type { NextEditorPlugin, OptionalPlugin, TextFormattingOptions as CommonTextFormattingOptions, TextFormattingState, _MarkdownModePluginStub } from '@atlaskit/editor-common/types';
2
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
3
  import type { BasePlugin } from '@atlaskit/editor-plugin-base';
4
4
  import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
@@ -7,43 +7,6 @@ import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
7
7
  import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
8
8
  import type { ToggleMarkEditorCommand } from './editor-commands/types';
9
9
  export type TextFormattingPluginOptions = CommonTextFormattingOptions;
10
- /**
11
- * Minimal duck-typed slice of `@atlassian/editor-plugin-markdown-mode`'s
12
- * `MarkdownModePlugin` covering only the surface this plugin uses (inline
13
- * source-view toggle actions + the inline format-state + `view` fields).
14
- *
15
- * We avoid importing the real type because `@atlaskit/editor-plugin-text-formatting`
16
- * publishes to public npm while `@atlassian/editor-plugin-markdown-mode` only
17
- * publishes to Atlassian's internal registry — re-exporting the cross-namespace
18
- * type in this package's `.d.ts` would leave the type unresolvable for external
19
- * consumers. TS structural typing means the real plugin (when loaded by the host)
20
- * satisfies this stub, so runtime calls are still type-correct.
21
- *
22
- * Maintenance: this stub is NOT compile-time checked against the source-of-truth
23
- * `MarkdownModePlugin` type. If markdown-mode renames, removes, or changes the
24
- * signature of any of the actions/shared-state fields listed below, the mismatch
25
- * surfaces only at runtime (stale toolbar state, no-op clicks). Keep the action
26
- * signatures and `sharedState` fields here in sync with
27
- * `@atlassian/editor-plugin-markdown-mode/src/markdownModePluginType.ts`.
28
- */
29
- type _MarkdownModePluginStub = NextEditorPlugin<'markdownMode', {
30
- actions: {
31
- toggleSourceBold: () => boolean;
32
- toggleSourceInlineCode: () => boolean;
33
- toggleSourceItalic: () => boolean;
34
- toggleSourceStrike: () => boolean;
35
- };
36
- sharedState: {
37
- sourceInlineFormatState: {
38
- boldActive: boolean;
39
- codeActive: boolean;
40
- inlineFormattingAvailable: boolean;
41
- italicActive: boolean;
42
- strikeActive: boolean;
43
- } | null;
44
- view: 'syntax' | 'split-view' | 'preview';
45
- } | undefined;
46
- }>;
47
10
  export type TextFormattingPlugin = NextEditorPlugin<'textFormatting', {
48
11
  commands: {
49
12
  toggleCode: ToggleMarkEditorCommand;
@@ -66,4 +29,3 @@ export type TextFormattingPlugin = NextEditorPlugin<'textFormatting', {
66
29
  pluginConfiguration: TextFormattingPluginOptions | undefined;
67
30
  sharedState: TextFormattingState | undefined;
68
31
  }>;
69
- export {};
@@ -1,4 +1,4 @@
1
- import type { NextEditorPlugin, OptionalPlugin, TextFormattingOptions as CommonTextFormattingOptions, TextFormattingState } from '@atlaskit/editor-common/types';
1
+ import type { NextEditorPlugin, OptionalPlugin, TextFormattingOptions as CommonTextFormattingOptions, TextFormattingState, _MarkdownModePluginStub } from '@atlaskit/editor-common/types';
2
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
3
  import type { BasePlugin } from '@atlaskit/editor-plugin-base';
4
4
  import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
@@ -7,43 +7,6 @@ import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
7
7
  import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
8
8
  import type { ToggleMarkEditorCommand } from './editor-commands/types';
9
9
  export type TextFormattingPluginOptions = CommonTextFormattingOptions;
10
- /**
11
- * Minimal duck-typed slice of `@atlassian/editor-plugin-markdown-mode`'s
12
- * `MarkdownModePlugin` covering only the surface this plugin uses (inline
13
- * source-view toggle actions + the inline format-state + `view` fields).
14
- *
15
- * We avoid importing the real type because `@atlaskit/editor-plugin-text-formatting`
16
- * publishes to public npm while `@atlassian/editor-plugin-markdown-mode` only
17
- * publishes to Atlassian's internal registry — re-exporting the cross-namespace
18
- * type in this package's `.d.ts` would leave the type unresolvable for external
19
- * consumers. TS structural typing means the real plugin (when loaded by the host)
20
- * satisfies this stub, so runtime calls are still type-correct.
21
- *
22
- * Maintenance: this stub is NOT compile-time checked against the source-of-truth
23
- * `MarkdownModePlugin` type. If markdown-mode renames, removes, or changes the
24
- * signature of any of the actions/shared-state fields listed below, the mismatch
25
- * surfaces only at runtime (stale toolbar state, no-op clicks). Keep the action
26
- * signatures and `sharedState` fields here in sync with
27
- * `@atlassian/editor-plugin-markdown-mode/src/markdownModePluginType.ts`.
28
- */
29
- type _MarkdownModePluginStub = NextEditorPlugin<'markdownMode', {
30
- actions: {
31
- toggleSourceBold: () => boolean;
32
- toggleSourceInlineCode: () => boolean;
33
- toggleSourceItalic: () => boolean;
34
- toggleSourceStrike: () => boolean;
35
- };
36
- sharedState: {
37
- sourceInlineFormatState: {
38
- boldActive: boolean;
39
- codeActive: boolean;
40
- inlineFormattingAvailable: boolean;
41
- italicActive: boolean;
42
- strikeActive: boolean;
43
- } | null;
44
- view: 'syntax' | 'split-view' | 'preview';
45
- } | undefined;
46
- }>;
47
10
  export type TextFormattingPlugin = NextEditorPlugin<'textFormatting', {
48
11
  commands: {
49
12
  toggleCode: ToggleMarkEditorCommand;
@@ -66,4 +29,3 @@ export type TextFormattingPlugin = NextEditorPlugin<'textFormatting', {
66
29
  pluginConfiguration: TextFormattingPluginOptions | undefined;
67
30
  sharedState: TextFormattingState | undefined;
68
31
  }>;
69
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "10.2.0",
3
+ "version": "10.2.2",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "@atlaskit/icon": "^35.3.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/prosemirror-input-rules": "^3.7.0",
49
- "@atlaskit/tmp-editor-statsig": "^84.2.0",
50
- "@atlaskit/tokens": "^13.0.0",
49
+ "@atlaskit/tmp-editor-statsig": "^85.0.0",
50
+ "@atlaskit/tokens": "^13.1.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^114.48.0",
55
+ "@atlaskit/editor-common": "^114.51.0",
56
56
  "react": "^18.2.0",
57
57
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
58
58
  },