@atlaskit/editor-plugin-block-menu 7.0.17 → 7.0.19

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-block-menu
2
2
 
3
+ ## 7.0.19
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 7.0.18
10
+
11
+ ### Patch Changes
12
+
13
+ - [`88a7ee0806123`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88a7ee0806123) -
14
+ Mechanical type-import autofix for block, layout, and control packages.
15
+ - Updated dependencies
16
+
3
17
  ## 7.0.17
4
18
 
5
19
  ### Patch Changes
@@ -1,6 +1,5 @@
1
1
  import { BLOCK_MENU_TEST_ID } from '@atlaskit/editor-common/block-menu';
2
2
  import { popupWithNestedElement } from '@atlaskit/editor-common/experiences';
3
-
4
3
  /**
5
4
  * Checks if the given element or any of its ancestors is a drag handle element.
6
5
  *
@@ -4,7 +4,6 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
4
4
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
5
  import { BLOCK_MENU_TEST_ID } from '@atlaskit/editor-common/block-menu';
6
6
  import { popupWithNestedElement } from '@atlaskit/editor-common/experiences';
7
-
8
7
  /**
9
8
  * Checks if the given element or any of its ancestors is a drag handle element.
10
9
  *
@@ -1,6 +1,6 @@
1
1
  import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
- import { type NodeTypeName } from '../editor-commands/transform-node-utils/types';
3
+ import type { NodeTypeName } from '../editor-commands/transform-node-utils/types';
4
4
  type TransformDisabledArgs = {
5
5
  selection: Selection;
6
6
  targetNodeTypeAttrs?: Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
1
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { TransfromNodeTargetType } from './transforms/types';
3
3
  /**
4
4
  * Sets the appropriate selection after transforming a node to a target type
@@ -1,4 +1,4 @@
1
- import { type Node as PMNode, type NodeType, type Schema } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { NodeTypeName } from './types';
3
3
  interface GetOutputNodesArgs {
4
4
  isNested: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { NodeRange, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
- import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
3
+ import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
4
4
  import type { NodeTypeName } from './types';
5
5
  /**
6
6
  * Determines if a node is a text node (heading or paragraph).
@@ -1,6 +1,5 @@
1
1
  import type { TransformContext } from '@atlaskit/editor-common/transforms';
2
- import type { Mark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import { type Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import { type Mark, type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
4
3
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
5
4
  export declare const createDefaultLayoutSection: (schema: Schema, content: PMNode, marks?: readonly Mark[]) => PMNode;
6
5
  export declare const convertToLayout: (context: TransformContext) => Transaction;
@@ -1,4 +1,4 @@
1
- import { type DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
1
+ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  type ExperienceOptions = {
4
4
  dispatchAnalyticsEvent: DispatchAnalyticsEvent;
@@ -1,4 +1,4 @@
1
- import { type ExperienceCheckResult } from '@atlaskit/editor-common/experiences';
1
+ import type { ExperienceCheckResult } from '@atlaskit/editor-common/experiences';
2
2
  /**
3
3
  * Checks if the given element or any of its ancestors is a drag handle element.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type MessageDescriptor } from 'react-intl-next';
2
+ import type { MessageDescriptor } from 'react-intl-next';
3
3
  type MenuSectionProps = {
4
4
  children?: React.ReactNode;
5
5
  hasSeparator?: boolean;
@@ -1,4 +1,4 @@
1
- import { type Selection } from '@atlaskit/editor-prosemirror/state';
1
+ import type { Selection } from '@atlaskit/editor-prosemirror/state';
2
2
  /**
3
3
  * Determines if a node is nested (not at top-level) based on its depth and context.
4
4
  *
@@ -1,6 +1,6 @@
1
1
  import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
- import { type NodeTypeName } from '../editor-commands/transform-node-utils/types';
3
+ import type { NodeTypeName } from '../editor-commands/transform-node-utils/types';
4
4
  type TransformDisabledArgs = {
5
5
  selection: Selection;
6
6
  targetNodeTypeAttrs?: Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
1
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { TransfromNodeTargetType } from './transforms/types';
3
3
  /**
4
4
  * Sets the appropriate selection after transforming a node to a target type
@@ -1,4 +1,4 @@
1
- import { type Node as PMNode, type NodeType, type Schema } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { NodeTypeName } from './types';
3
3
  interface GetOutputNodesArgs {
4
4
  isNested: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { NodeRange, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
- import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
3
+ import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
4
4
  import type { NodeTypeName } from './types';
5
5
  /**
6
6
  * Determines if a node is a text node (heading or paragraph).
@@ -1,6 +1,5 @@
1
1
  import type { TransformContext } from '@atlaskit/editor-common/transforms';
2
- import type { Mark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import { type Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import { type Mark, type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
4
3
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
5
4
  export declare const createDefaultLayoutSection: (schema: Schema, content: PMNode, marks?: readonly Mark[]) => PMNode;
6
5
  export declare const convertToLayout: (context: TransformContext) => Transaction;
@@ -1,4 +1,4 @@
1
- import { type DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
1
+ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  type ExperienceOptions = {
4
4
  dispatchAnalyticsEvent: DispatchAnalyticsEvent;
@@ -1,4 +1,4 @@
1
- import { type ExperienceCheckResult } from '@atlaskit/editor-common/experiences';
1
+ import type { ExperienceCheckResult } from '@atlaskit/editor-common/experiences';
2
2
  /**
3
3
  * Checks if the given element or any of its ancestors is a drag handle element.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type MessageDescriptor } from 'react-intl-next';
2
+ import type { MessageDescriptor } from 'react-intl-next';
3
3
  type MenuSectionProps = {
4
4
  children?: React.ReactNode;
5
5
  hasSeparator?: boolean;
@@ -1,4 +1,4 @@
1
- import { type Selection } from '@atlaskit/editor-prosemirror/state';
1
+ import type { Selection } from '@atlaskit/editor-prosemirror/state';
2
2
  /**
3
3
  * Determines if a node is nested (not at top-level) based on its depth and context.
4
4
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "7.0.17",
3
+ "version": "7.0.19",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,18 +39,18 @@
39
39
  "@atlaskit/editor-shared-styles": "^3.10.0",
40
40
  "@atlaskit/editor-tables": "^2.9.0",
41
41
  "@atlaskit/editor-toolbar": "^0.20.0",
42
- "@atlaskit/flag": "^17.8.0",
42
+ "@atlaskit/flag": "^17.9.0",
43
43
  "@atlaskit/icon": "^33.1.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/primitives": "^18.1.0",
46
46
  "@atlaskit/prosemirror-history": "^0.2.0",
47
- "@atlaskit/tmp-editor-statsig": "^47.0.0",
48
- "@atlaskit/tokens": "^11.3.0",
47
+ "@atlaskit/tmp-editor-statsig": "^49.0.0",
48
+ "@atlaskit/tokens": "^11.4.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "bind-event-listener": "^3.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^112.10.0",
53
+ "@atlaskit/editor-common": "^112.13.0",
54
54
  "react": "^18.2.0",
55
55
  "react-intl-next": "npm:react-intl@^5.18.1"
56
56
  },