@atlaskit/editor-plugin-block-menu 0.0.5 → 0.0.7

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-dev-agents/tsconfig.json +3 -0
  4. package/afm-jira/tsconfig.json +3 -0
  5. package/afm-passionfruit/tsconfig.json +3 -0
  6. package/afm-post-office/tsconfig.json +3 -0
  7. package/afm-rovo-extension/tsconfig.json +3 -0
  8. package/afm-townsquare/tsconfig.json +3 -0
  9. package/dist/cjs/blockMenuPlugin.js +1 -1
  10. package/dist/cjs/ui/block-menu-components.js +65 -37
  11. package/dist/cjs/ui/block-menu.js +25 -10
  12. package/dist/cjs/ui/copy-block.js +82 -0
  13. package/dist/cjs/ui/move-down.js +50 -0
  14. package/dist/cjs/ui/move-up.js +50 -0
  15. package/dist/es2019/blockMenuPlugin.js +1 -1
  16. package/dist/es2019/ui/block-menu-components.js +60 -36
  17. package/dist/es2019/ui/block-menu.js +27 -11
  18. package/dist/es2019/ui/copy-block.js +75 -0
  19. package/dist/es2019/ui/move-down.js +48 -0
  20. package/dist/es2019/ui/move-up.js +48 -0
  21. package/dist/esm/blockMenuPlugin.js +1 -1
  22. package/dist/esm/ui/block-menu-components.js +65 -37
  23. package/dist/esm/ui/block-menu.js +26 -11
  24. package/dist/esm/ui/copy-block.js +75 -0
  25. package/dist/esm/ui/move-down.js +43 -0
  26. package/dist/esm/ui/move-up.js +43 -0
  27. package/dist/types/blockMenuPluginType.d.ts +6 -1
  28. package/dist/types/ui/block-menu-components.d.ts +3 -1
  29. package/dist/types/ui/copy-block.d.ts +11 -0
  30. package/dist/types/ui/move-down.d.ts +11 -0
  31. package/dist/types/ui/move-up.d.ts +11 -0
  32. package/dist/types-ts4.5/blockMenuPluginType.d.ts +3 -1
  33. package/dist/types-ts4.5/ui/block-menu-components.d.ts +3 -1
  34. package/dist/types-ts4.5/ui/copy-block.d.ts +11 -0
  35. package/dist/types-ts4.5/ui/move-down.d.ts +11 -0
  36. package/dist/types-ts4.5/ui/move-up.d.ts +11 -0
  37. package/package.json +5 -4
  38. package/tsconfig.json +1 -4
@@ -1,2 +1,4 @@
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { BlockMenuPlugin } from '../blockMenuPluginType';
1
3
  import { type RegisterBlockMenuComponent } from '../blockMenuPluginType';
2
- export declare const getBlockMenuComponents: () => RegisterBlockMenuComponent[];
4
+ export declare const getBlockMenuComponents: (api: ExtractInjectionAPI<BlockMenuPlugin> | undefined) => RegisterBlockMenuComponent[];
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
+ import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
+ interface CopyBlockMenuItemProps {
6
+ api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
+ }
8
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<CopyBlockMenuItemProps & WrappedComponentProps>> & {
9
+ WrappedComponent: React.ComponentType<CopyBlockMenuItemProps & WrappedComponentProps>;
10
+ };
11
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
+ import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
+ type Props = {
6
+ api: ExtractInjectionAPI<BlockMenuPlugin>;
7
+ };
8
+ export declare const MoveDownDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
+ };
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
+ import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
+ type Props = {
6
+ api: ExtractInjectionAPI<BlockMenuPlugin>;
7
+ };
8
+ export declare const MoveUpDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
+ };
11
+ export {};
@@ -1,10 +1,12 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls';
3
+ import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
3
4
  import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
4
5
  export type BlockMenuPlugin = NextEditorPlugin<'blockMenu', {
5
6
  dependencies: [
6
7
  OptionalPlugin<BlockControlsPlugin>,
7
- OptionalPlugin<UserIntentPlugin>
8
+ OptionalPlugin<UserIntentPlugin>,
9
+ OptionalPlugin<SelectionPlugin>
8
10
  ];
9
11
  actions: {
10
12
  registerBlockMenuComponents: (blockMenuComponents: Array<RegisterBlockMenuComponent>) => void;
@@ -1,2 +1,4 @@
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { BlockMenuPlugin } from '../blockMenuPluginType';
1
3
  import { type RegisterBlockMenuComponent } from '../blockMenuPluginType';
2
- export declare const getBlockMenuComponents: () => RegisterBlockMenuComponent[];
4
+ export declare const getBlockMenuComponents: (api: ExtractInjectionAPI<BlockMenuPlugin> | undefined) => RegisterBlockMenuComponent[];
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
+ import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
+ interface CopyBlockMenuItemProps {
6
+ api: ExtractInjectionAPI<BlockMenuPlugin> | undefined;
7
+ }
8
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<CopyBlockMenuItemProps & WrappedComponentProps>> & {
9
+ WrappedComponent: React.ComponentType<CopyBlockMenuItemProps & WrappedComponentProps>;
10
+ };
11
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
+ import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
+ type Props = {
6
+ api: ExtractInjectionAPI<BlockMenuPlugin>;
7
+ };
8
+ export declare const MoveDownDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
+ };
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
+ import type { BlockMenuPlugin } from '../blockMenuPluginType';
5
+ type Props = {
6
+ api: ExtractInjectionAPI<BlockMenuPlugin>;
7
+ };
8
+ export declare const MoveUpDropdownItem: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
+ };
11
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,19 +33,20 @@
33
33
  "dependencies": {
34
34
  "@atlaskit/css": "^0.12.0",
35
35
  "@atlaskit/dropdown-menu": "^16.3.0",
36
- "@atlaskit/editor-plugin-block-controls": "^4.1.0",
36
+ "@atlaskit/editor-plugin-block-controls": "^4.2.0",
37
37
  "@atlaskit/editor-plugin-user-intent": "^1.1.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.6.0",
40
+ "@atlaskit/editor-tables": "^2.9.0",
40
41
  "@atlaskit/editor-toolbar": "^0.3.0",
41
- "@atlaskit/icon": "^27.12.0",
42
+ "@atlaskit/icon": "^28.0.0",
42
43
  "@atlaskit/icon-lab": "^5.6.0",
43
44
  "@atlaskit/primitives": "^14.11.0",
44
45
  "@atlaskit/tokens": "^6.0.0",
45
46
  "@babel/runtime": "^7.0.0"
46
47
  },
47
48
  "peerDependencies": {
48
- "@atlaskit/editor-common": "^107.24.0",
49
+ "@atlaskit/editor-common": "^107.26.0",
49
50
  "react": "^18.2.0",
50
51
  "react-intl-next": "npm:react-intl@^5.18.1"
51
52
  },
package/tsconfig.json CHANGED
@@ -1,8 +1,5 @@
1
1
  {
2
2
  "extends": "../../../tsconfig.json",
3
- "include": [
4
- "src/**/*.ts",
5
- "src/**/*.tsx"
6
- ],
3
+ "include": ["src/**/*.ts", "src/**/*.tsx", "../editor-common/src/block-menu/messages.ts"],
7
4
  "compilerOptions": {}
8
5
  }