@atlaskit/editor-plugin-layout 17.2.4 → 17.2.5
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 +6 -0
- package/dist/cjs/layoutPlugin.js +4 -4
- package/dist/es2019/layoutPlugin.js +2 -2
- package/dist/esm/layoutPlugin.js +2 -2
- package/dist/types/pm-plugins/actions.d.ts +1 -1
- package/dist/types/pm-plugins/consts.d.ts +1 -1
- package/dist/types/pm-plugins/utils/layout-column-selection.d.ts +1 -1
- package/dist/types/ui/LayoutColumnMenu/VerticalAlignDropdownItem.d.ts +1 -1
- package/dist/types/ui/LayoutColumnMenu/verticalAlignIcons.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/cjs/layoutPlugin.js
CHANGED
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.selectIntoLayoutSection = exports.layoutPlugin = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _layoutColumn = require("@atlaskit/adf-schema/nodes/layout-column");
|
|
10
|
+
var _layoutSection = require("@atlaskit/adf-schema/layout-section");
|
|
11
11
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
12
12
|
var _blockMenu = require("@atlaskit/editor-common/block-menu");
|
|
13
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
@@ -103,10 +103,10 @@ var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
|
|
|
103
103
|
nodes: function nodes() {
|
|
104
104
|
return [{
|
|
105
105
|
name: 'layoutSection',
|
|
106
|
-
node: (0, _editorExperiment.editorExperiment)('advanced_layouts', true) ? (0, _fg.fg)('platform_editor_adf_with_localid') ?
|
|
106
|
+
node: (0, _editorExperiment.editorExperiment)('advanced_layouts', true) ? (0, _fg.fg)('platform_editor_adf_with_localid') ? _layoutSection.layoutSectionWithSingleColumnLocalId : _layoutSection.layoutSectionWithSingleColumn : (0, _fg.fg)('platform_editor_adf_with_localid') ? _layoutSection.layoutSectionWithLocalId : _layoutSection.layoutSection
|
|
107
107
|
}, {
|
|
108
108
|
name: 'layoutColumn',
|
|
109
|
-
node: (0, _fg.fg)('platform_editor_adf_with_localid') ?
|
|
109
|
+
node: (0, _fg.fg)('platform_editor_adf_with_localid') ? _layoutColumn.layoutColumnWithLocalId : _layoutColumn.layoutColumn
|
|
110
110
|
}];
|
|
111
111
|
},
|
|
112
112
|
pmPlugins: function pmPlugins() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { layoutColumn, layoutColumnWithLocalId
|
|
3
|
-
import { layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId } from '@atlaskit/adf-schema/
|
|
2
|
+
import { layoutColumn, layoutColumnWithLocalId } from '@atlaskit/adf-schema/nodes/layout-column';
|
|
3
|
+
import { layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId } from '@atlaskit/adf-schema/layout-section';
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
6
6
|
import { layoutMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
package/dist/esm/layoutPlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { layoutColumn, layoutColumnWithLocalId
|
|
3
|
-
import { layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId } from '@atlaskit/adf-schema/
|
|
2
|
+
import { layoutColumn, layoutColumnWithLocalId } from '@atlaskit/adf-schema/nodes/layout-column';
|
|
3
|
+
import { layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId } from '@atlaskit/adf-schema/layout-section';
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu';
|
|
6
6
|
import { layoutMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Valign } from '@atlaskit/adf-schema/
|
|
1
|
+
import type { Valign } from '@atlaskit/adf-schema/valign';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { Command, EditorCommand, ExtractInjectionAPI, TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Valign } from '@atlaskit/adf-schema/
|
|
1
|
+
import type { Valign } from '@atlaskit/adf-schema/valign';
|
|
2
2
|
export declare const MAX_STANDARD_LAYOUT_COLUMNS = 3;
|
|
3
3
|
export declare const MAX_LAYOUT_COLUMNS = 5;
|
|
4
4
|
export declare const MIN_LAYOUT_COLUMN_WIDTH_PERCENT = 5;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Valign } from '@atlaskit/adf-schema/
|
|
1
|
+
import type { Valign } from '@atlaskit/adf-schema/valign';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { type Selection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
type FoundNode = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type MessageDescriptor } from 'react-intl';
|
|
3
|
-
import type { Valign } from '@atlaskit/adf-schema/
|
|
3
|
+
import type { Valign } from '@atlaskit/adf-schema/valign';
|
|
4
4
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { LayoutPlugin } from '../../layoutPluginType';
|
|
6
6
|
type VerticalAlignDropdownItemProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Valign } from '@atlaskit/adf-schema/
|
|
1
|
+
import type { Valign } from '@atlaskit/adf-schema/valign';
|
|
2
2
|
import AlignPositionTopIcon from '@atlaskit/icon-lab/core/align-position-top';
|
|
3
3
|
type VerticalAlignIcon = typeof AlignPositionTopIcon;
|
|
4
4
|
export declare const VERTICAL_ALIGN_ICONS: Record<Valign, VerticalAlignIcon>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-layout",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.5",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@atlaskit/css": "^1.1.0",
|
|
26
26
|
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
27
27
|
"@atlaskit/editor-plugin-block-controls": "^17.3.0",
|
|
28
|
-
"@atlaskit/editor-plugin-block-menu": "^15.
|
|
28
|
+
"@atlaskit/editor-plugin-block-menu": "^15.1.0",
|
|
29
29
|
"@atlaskit/editor-plugin-decorations": "^16.1.0",
|
|
30
30
|
"@atlaskit/editor-plugin-editor-disabled": "^16.1.0",
|
|
31
31
|
"@atlaskit/editor-plugin-guideline": "^16.1.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/icon-lab": "^7.7.0",
|
|
44
44
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^173.0.0",
|
|
47
47
|
"@atlaskit/tokens": "^16.11.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|