@atlaskit/editor-plugin-block-menu 7.0.17 → 7.0.18
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 +8 -0
- package/dist/es2019/pm-plugins/experiences/experience-check-utils.js +0 -1
- package/dist/esm/pm-plugins/experiences/experience-check-utils.js +0 -1
- package/dist/types/editor-actions/isTransformToTargetDisabled.d.ts +1 -1
- package/dist/types/editor-commands/selection.d.ts +1 -1
- package/dist/types/editor-commands/transform-node-utils/transform.d.ts +1 -1
- package/dist/types/editor-commands/transform-node-utils/utils.d.ts +1 -1
- package/dist/types/editor-commands/transforms/layout-transforms.d.ts +1 -2
- package/dist/types/pm-plugins/experiences/block-menu-experiences.d.ts +1 -1
- package/dist/types/pm-plugins/experiences/experience-check-utils.d.ts +1 -1
- package/dist/types/ui/MenuSection.d.ts +1 -1
- package/dist/types/ui/utils/isNestedNode.d.ts +1 -1
- package/dist/types-ts4.5/editor-actions/isTransformToTargetDisabled.d.ts +1 -1
- package/dist/types-ts4.5/editor-commands/selection.d.ts +1 -1
- package/dist/types-ts4.5/editor-commands/transform-node-utils/transform.d.ts +1 -1
- package/dist/types-ts4.5/editor-commands/transform-node-utils/utils.d.ts +1 -1
- package/dist/types-ts4.5/editor-commands/transforms/layout-transforms.d.ts +1 -2
- package/dist/types-ts4.5/pm-plugins/experiences/block-menu-experiences.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/experiences/experience-check-utils.d.ts +1 -1
- package/dist/types-ts4.5/ui/MenuSection.d.ts +1 -1
- package/dist/types-ts4.5/ui/utils/isNestedNode.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-menu
|
|
2
2
|
|
|
3
|
+
## 7.0.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`88a7ee0806123`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88a7ee0806123) -
|
|
8
|
+
Mechanical type-import autofix for block, layout, and control packages.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 7.0.17
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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
|
|
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 {
|
|
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,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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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
|
|
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 {
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.18",
|
|
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.
|
|
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
|
+
"@atlaskit/tmp-editor-statsig": "^48.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^11.3.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.
|
|
53
|
+
"@atlaskit/editor-common": "^112.11.0",
|
|
54
54
|
"react": "^18.2.0",
|
|
55
55
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
56
56
|
},
|