@atlaskit/editor-plugin-copy-button 11.0.14 → 11.0.15

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,11 @@
1
1
  # @atlaskit/editor-plugin-copy-button
2
2
 
3
+ ## 11.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 11.0.14
4
10
 
5
11
  ### Patch Changes
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/copyButtonPlugin.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/copyButtonPlugin.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/copyButtonPlugin.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/copyButtonPlugin.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/copyButtonPlugin.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/copyButtonPluginType.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/copyButtonPluginType.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/copyButtonPluginType.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/copyButtonPluginType.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/copyButtonPluginType.d.ts"
15
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-copy-button",
3
- "version": "11.0.14",
3
+ "version": "11.0.15",
4
4
  "description": "editor-plugin-copy-button for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  "@atlaskit/editor-plugin-decorations": "^11.0.0",
33
33
  "@atlaskit/editor-prosemirror": "^7.3.0",
34
34
  "@atlaskit/icon": "^35.4.0",
35
- "@atlaskit/tmp-editor-statsig": "^102.0.0",
35
+ "@atlaskit/tmp-editor-statsig": "^103.0.0",
36
36
  "@babel/runtime": "^7.0.0"
37
37
  },
38
38
  "peerDependencies": {
@@ -1,2 +0,0 @@
1
- import type { CopyButtonPlugin } from './copyButtonPluginType';
2
- export declare const copyButtonPlugin: CopyButtonPlugin;
@@ -1,26 +0,0 @@
1
- import type { Command, FloatingToolbarItem, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
- import type { AccessibilityUtilsPlugin } from '@atlaskit/editor-plugin-accessibility-utils';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
- import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
5
- import type { MarkType } from '@atlaskit/editor-prosemirror/model';
6
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
7
- declare const processCopyButtonItemsWithAnalytics: (state: EditorState) => (items: Array<FloatingToolbarItem<Command>>, hoverDecoration: HoverDecorationHandler | undefined) => Array<FloatingToolbarItem<Command>>;
8
- export type CopyButtonPlugin = NextEditorPlugin<'copyButton', {
9
- actions: {
10
- afterCopy: (message: string) => void;
11
- processCopyButtonItems: typeof processCopyButtonItemsWithAnalytics;
12
- };
13
- dependencies: [
14
- OptionalPlugin<AnalyticsPlugin>,
15
- OptionalPlugin<AccessibilityUtilsPlugin>
16
- ];
17
- }>;
18
- export type CopyButtonPluginState = {
19
- copied: boolean;
20
- markSelection?: {
21
- end: number;
22
- markType: MarkType;
23
- start: number;
24
- };
25
- };
26
- export {};
@@ -1 +0,0 @@
1
- export { copyButtonPlugin } from '../copyButtonPlugin';
@@ -1 +0,0 @@
1
- export type { CopyButtonPlugin, CopyButtonPluginState } from '../copyButtonPluginType';
@@ -1,2 +0,0 @@
1
- export type { CopyButtonPlugin, CopyButtonPluginState } from './copyButtonPluginType';
2
- export { copyButtonPlugin } from './copyButtonPlugin';
@@ -1,11 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { ExtractInjectionAPI, Command, CommandDispatch } from '@atlaskit/editor-common/types';
3
- import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
4
- import type { MarkType, NodeType } from '@atlaskit/editor-prosemirror/model';
5
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
6
- import type { CopyButtonPlugin } from '../copyButtonPluginType';
7
- export declare function createToolbarCopyCommandForMark(markType: MarkType, editorAnalyticsApi: EditorAnalyticsAPI | undefined): Command;
8
- export declare function getProvideMarkVisualFeedbackForCopyButtonCommand(markType: MarkType): (state: EditorState, dispatch: CommandDispatch | undefined) => boolean;
9
- export declare function removeMarkVisualFeedbackForCopyButtonCommand(state: EditorState, dispatch: CommandDispatch | undefined): boolean;
10
- export declare const createToolbarCopyCommandForNode: (nodeType: NodeType | Array<NodeType>, editorAnalyticsApi: EditorAnalyticsAPI | undefined, api: ExtractInjectionAPI<CopyButtonPlugin> | undefined, onClickMessage?: string) => Command;
11
- export declare const resetCopiedState: (nodeType: NodeType | Array<NodeType>, hoverDecoration: HoverDecorationHandler | undefined, onMouseLeave?: Command) => Command;
@@ -1,12 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { MarkType, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
3
- import type { CopyButtonPluginState } from '../copyButtonPluginType';
4
- export declare function getMarkSelectionHelper({ $pos, markType, }: {
5
- $pos: ResolvedPos;
6
- markType: MarkType;
7
- }): false | {
8
- end: number;
9
- start: number;
10
- };
11
- export declare function copyButtonPlugin(): SafePlugin<CopyButtonPluginState>;
12
- export default copyButtonPlugin;
@@ -1,2 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export declare const copyButtonPluginKey: PluginKey;
@@ -1,16 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { ExtractInjectionAPI, Command, FloatingToolbarButton, FloatingToolbarItem, MarkOptions, NodeOptions } from '@atlaskit/editor-common/types';
3
- import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
4
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
- import type { CopyButtonPlugin } from '../copyButtonPluginType';
6
- /**
7
- * Performs the actions after a copy operation.
8
- * - Sets the copied state in the editor state
9
- * - Announces the copied message to the user
10
- */
11
- export declare const afterCopy: (api?: ExtractInjectionAPI<CopyButtonPlugin>) => (message: string) => void;
12
- export declare function getCopyButtonConfig(options: MarkOptions | NodeOptions, hoverDecoration: HoverDecorationHandler | undefined, editorAnalyticsApi: EditorAnalyticsAPI | undefined, api?: ExtractInjectionAPI<CopyButtonPlugin>): FloatingToolbarButton<Command>;
13
- /**
14
- * Process floatingToolbar items for copyButton
15
- */
16
- export declare const processCopyButtonItems: (editorAnalyticsApi?: EditorAnalyticsAPI | undefined, api?: ExtractInjectionAPI<CopyButtonPlugin>) => (state: EditorState) => (items: Array<FloatingToolbarItem<Command>>, hoverDecoration: HoverDecorationHandler | undefined) => Array<FloatingToolbarItem<Command>>;