@atlaskit/editor-plugin-copy-button 3.0.1 → 3.0.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,13 @@
1
1
  # @atlaskit/editor-plugin-copy-button
2
2
 
3
+ ## 3.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+ - Updated dependencies
10
+
3
11
  ## 3.0.1
4
12
 
5
13
  ### Patch Changes
@@ -4,17 +4,17 @@ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
4
  import type { MarkType } from '@atlaskit/editor-prosemirror/model';
5
5
  declare const processCopyButtonItemsWithAnalytics: (state: import("prosemirror-state").EditorState) => (items: Array<import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>>, hoverDecoration: import("@atlaskit/editor-plugin-decorations").HoverDecorationHandler | undefined) => Array<import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>>;
6
6
  export type CopyButtonPlugin = NextEditorPlugin<'copyButton', {
7
- dependencies: [OptionalPlugin<AnalyticsPlugin>, OptionalPlugin<AccessibilityUtilsPlugin>];
8
7
  actions: {
9
8
  processCopyButtonItems: typeof processCopyButtonItemsWithAnalytics;
10
9
  };
10
+ dependencies: [OptionalPlugin<AnalyticsPlugin>, OptionalPlugin<AccessibilityUtilsPlugin>];
11
11
  }>;
12
12
  export type CopyButtonPluginState = {
13
13
  copied: boolean;
14
14
  markSelection?: {
15
- start: number;
16
15
  end: number;
17
16
  markType: MarkType;
17
+ start: number;
18
18
  };
19
19
  };
20
20
  export {};
@@ -4,20 +4,20 @@ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
4
  import type { MarkType } from '@atlaskit/editor-prosemirror/model';
5
5
  declare const processCopyButtonItemsWithAnalytics: (state: import("prosemirror-state").EditorState) => (items: Array<import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>>, hoverDecoration: import("@atlaskit/editor-plugin-decorations").HoverDecorationHandler | undefined) => Array<import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>>;
6
6
  export type CopyButtonPlugin = NextEditorPlugin<'copyButton', {
7
+ actions: {
8
+ processCopyButtonItems: typeof processCopyButtonItemsWithAnalytics;
9
+ };
7
10
  dependencies: [
8
11
  OptionalPlugin<AnalyticsPlugin>,
9
12
  OptionalPlugin<AccessibilityUtilsPlugin>
10
13
  ];
11
- actions: {
12
- processCopyButtonItems: typeof processCopyButtonItemsWithAnalytics;
13
- };
14
14
  }>;
15
15
  export type CopyButtonPluginState = {
16
16
  copied: boolean;
17
17
  markSelection?: {
18
- start: number;
19
18
  end: number;
20
19
  markType: MarkType;
20
+ start: number;
21
21
  };
22
22
  };
23
23
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-copy-button",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "editor-plugin-copy-button for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,11 +36,11 @@
36
36
  "@atlaskit/editor-prosemirror": "7.0.0",
37
37
  "@atlaskit/icon": "^28.0.0",
38
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
39
- "@atlaskit/tmp-editor-statsig": "^11.3.0",
39
+ "@atlaskit/tmp-editor-statsig": "^11.5.0",
40
40
  "@babel/runtime": "^7.0.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@atlaskit/editor-common": "^107.26.0",
43
+ "@atlaskit/editor-common": "^107.28.0",
44
44
  "react": "^18.2.0",
45
45
  "react-dom": "^18.2.0"
46
46
  },