@atlaskit/editor-plugin-layout 3.1.4 → 3.1.6

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,20 @@
1
1
  # @atlaskit/editor-plugin-layout
2
2
 
3
+ ## 3.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.1.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#195965](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195965)
14
+ [`3a58e5cf3f7c4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a58e5cf3f7c4) -
15
+ EDITOR-1104 Add localId attribute to layout nodes behind platform_editor_adf_with_localid
16
+ - Updated dependencies
17
+
3
18
  ## 3.1.4
4
19
 
5
20
  ### Patch Changes
@@ -61,10 +61,10 @@ var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
61
61
  nodes: function nodes() {
62
62
  return [{
63
63
  name: 'layoutSection',
64
- node: (0, _experiments.editorExperiment)('advanced_layouts', true) ? _schema.layoutSectionWithSingleColumn : _adfSchema.layoutSection
64
+ node: (0, _experiments.editorExperiment)('advanced_layouts', true) ? (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _schema.layoutSectionWithSingleColumnLocalId : _schema.layoutSectionWithSingleColumn : _adfSchema.layoutSection
65
65
  }, {
66
66
  name: 'layoutColumn',
67
- node: _adfSchema.layoutColumn
67
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.layoutColumnWithLocalId : _adfSchema.layoutColumn
68
68
  }];
69
69
  },
70
70
  pmPlugins: function pmPlugins() {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { layoutColumn, layoutSection } from '@atlaskit/adf-schema';
3
- import { layoutSectionWithSingleColumn } from '@atlaskit/adf-schema/schema';
2
+ import { layoutColumn, layoutSection, layoutColumnWithLocalId } from '@atlaskit/adf-schema';
3
+ import { layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId } from '@atlaskit/adf-schema/schema';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { layoutMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
6
6
  import { IconFiveColumnLayout, IconFourColumnLayout, IconLayout, IconOneColumnLayout, IconThreeColumnLayout, IconTwoColumnLayout } from '@atlaskit/editor-common/quick-insert';
@@ -54,10 +54,10 @@ export const layoutPlugin = ({
54
54
  nodes() {
55
55
  return [{
56
56
  name: 'layoutSection',
57
- node: editorExperiment('advanced_layouts', true) ? layoutSectionWithSingleColumn : layoutSection
57
+ node: editorExperiment('advanced_layouts', true) ? fg('platform_editor_adf_with_localid') ? layoutSectionWithSingleColumnLocalId : layoutSectionWithSingleColumn : layoutSection
58
58
  }, {
59
59
  name: 'layoutColumn',
60
- node: layoutColumn
60
+ node: fg('platform_editor_adf_with_localid') ? layoutColumnWithLocalId : layoutColumn
61
61
  }];
62
62
  },
63
63
  pmPlugins() {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { layoutColumn, layoutSection } from '@atlaskit/adf-schema';
3
- import { layoutSectionWithSingleColumn } from '@atlaskit/adf-schema/schema';
2
+ import { layoutColumn, layoutSection, layoutColumnWithLocalId } from '@atlaskit/adf-schema';
3
+ import { layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId } from '@atlaskit/adf-schema/schema';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { layoutMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
6
6
  import { IconFiveColumnLayout, IconFourColumnLayout, IconLayout, IconOneColumnLayout, IconThreeColumnLayout, IconTwoColumnLayout } from '@atlaskit/editor-common/quick-insert';
@@ -55,10 +55,10 @@ export var layoutPlugin = function layoutPlugin(_ref) {
55
55
  nodes: function nodes() {
56
56
  return [{
57
57
  name: 'layoutSection',
58
- node: editorExperiment('advanced_layouts', true) ? layoutSectionWithSingleColumn : layoutSection
58
+ node: editorExperiment('advanced_layouts', true) ? fg('platform_editor_adf_with_localid') ? layoutSectionWithSingleColumnLocalId : layoutSectionWithSingleColumn : layoutSection
59
59
  }, {
60
60
  name: 'layoutColumn',
61
- node: layoutColumn
61
+ node: fg('platform_editor_adf_with_localid') ? layoutColumnWithLocalId : layoutColumn
62
62
  }];
63
63
  },
64
64
  pmPlugins: function pmPlugins() {
@@ -4,4 +4,4 @@
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
6
  import { type IconProps } from '@atlaskit/icon';
7
- export declare const LayoutThreeWithLeftSidebarsIcon: (props: Omit<IconProps, 'glyph'>) => jsx.JSX.Element;
7
+ export declare const LayoutThreeWithLeftSidebarsIcon: (props: Omit<IconProps, "glyph">) => jsx.JSX.Element;
@@ -4,4 +4,4 @@
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
6
  import { type IconProps } from '@atlaskit/icon';
7
- export declare const LayoutThreeWithRightSidebarsIcon: (props: Omit<IconProps, 'glyph'>) => jsx.JSX.Element;
7
+ export declare const LayoutThreeWithRightSidebarsIcon: (props: Omit<IconProps, "glyph">) => jsx.JSX.Element;
@@ -4,4 +4,4 @@
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
6
  import { type IconProps } from '@atlaskit/icon';
7
- export declare const LayoutThreeWithLeftSidebarsIcon: (props: Omit<IconProps, 'glyph'>) => jsx.JSX.Element;
7
+ export declare const LayoutThreeWithLeftSidebarsIcon: (props: Omit<IconProps, "glyph">) => jsx.JSX.Element;
@@ -4,4 +4,4 @@
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
6
  import { type IconProps } from '@atlaskit/icon';
7
- export declare const LayoutThreeWithRightSidebarsIcon: (props: Omit<IconProps, 'glyph'>) => jsx.JSX.Element;
7
+ export declare const LayoutThreeWithRightSidebarsIcon: (props: Omit<IconProps, "glyph">) => jsx.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "3.1.4",
3
+ "version": "3.1.6",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -41,23 +41,20 @@
41
41
  "@atlaskit/editor-plugin-selection": "^3.0.0",
42
42
  "@atlaskit/editor-plugin-width": "^4.0.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
- "@atlaskit/editor-shared-styles": "^3.5.0",
45
- "@atlaskit/icon": "^27.9.0",
46
- "@atlaskit/icon-lab": "^5.3.0",
44
+ "@atlaskit/editor-shared-styles": "^3.6.0",
45
+ "@atlaskit/icon": "^27.12.0",
46
+ "@atlaskit/icon-lab": "^5.6.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/tmp-editor-statsig": "^9.22.0",
48
+ "@atlaskit/tmp-editor-statsig": "^10.0.0",
49
49
  "@atlaskit/tokens": "^6.0.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1"
52
52
  },
53
53
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^107.16.0",
54
+ "@atlaskit/editor-common": "^107.25.0",
55
55
  "react": "^18.2.0",
56
56
  "react-intl-next": "npm:react-intl@^5.18.1"
57
57
  },
58
- "devDependencies": {
59
- "typescript": "~5.4.2"
60
- },
61
58
  "techstack": {
62
59
  "@atlassian/frontend": {
63
60
  "code-structure": [
@@ -108,6 +105,9 @@
108
105
  },
109
106
  "platform_editor_column_count_analytics": {
110
107
  "type": "boolean"
108
+ },
109
+ "platform_editor_adf_with_localid": {
110
+ "type": "boolean"
111
111
  }
112
112
  }
113
113
  }