@atlaskit/editor-plugin-layout 1.12.4 → 1.12.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.
@@ -0,0 +1,48 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
7
+ import { css, jsx } from '@emotion/react';
8
+ import Icon from '@atlaskit/icon';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
10
+ var LayoutThreeWithRightSidebarsGlyph = function LayoutThreeWithRightSidebarsGlyph(props) {
11
+ if (fg('platform-visual-refresh-icons')) {
12
+ return jsx("svg", _extends({
13
+ width: "16",
14
+ height: "14",
15
+ viewBox: "0 0 16 14",
16
+ fill: "none",
17
+ xmlns: "http://www.w3.org/2000/svg"
18
+ }, props), jsx("path", {
19
+ fillRule: "evenodd",
20
+ clipRule: "evenodd",
21
+ d: "M8.5 1.375C8.5 0.615609 7.88439 0 7.125 0H6.375C5.61561 0 5 0.615608 5 1.375V12.625C5 13.3844 5.61561 14 6.375 14H7.125C7.88439 14 8.5 13.3844 8.5 12.625V1.375ZM7 1.5V12.5H6.5V1.5H7ZM16 1.37505C16 0.615655 15.3844 4.66853e-05 14.625 4.66853e-05H11.375C10.6156 4.66853e-05 10 0.615655 10 1.37505V12.625C10 13.3844 10.6156 14 11.375 14H14.625C15.3844 14 16 13.3844 16 12.625V1.37505ZM14.5 1.50005V12.5H11.5V1.50005H14.5ZM3.5 1.37505C3.5 0.615655 2.88439 4.66853e-05 2.125 4.66853e-05H1.375C0.615608 4.66853e-05 0 0.615655 0 1.37505V12.625C0 13.3844 0.615608 14 1.375 14H2.125C2.88439 14 3.5 13.3844 3.5 12.625V1.37505ZM2 1.50005V12.5H1.5V1.50005H2Z",
22
+ fill: "currentcolor"
23
+ }));
24
+ }
25
+ return jsx("svg", _extends({
26
+ width: "16",
27
+ height: "14",
28
+ viewBox: "0 0 16 14",
29
+ fill: "none",
30
+ xmlns: "http://www.w3.org/2000/svg"
31
+ }, props), jsx("path", {
32
+ fillRule: "evenodd",
33
+ clipRule: "evenodd",
34
+ d: "M11 0C11.2652 0 11.5196 0.105357 11.7071 0.292893C11.8946 0.48043 12 0.734784 12 1V13C12 13.2652 11.8946 13.5196 11.7071 13.7071C11.5196 13.8946 11.2652 14 11 14C10.7348 14 10.4804 13.8946 10.2929 13.7071C10.1054 13.5196 10 13.2652 10 13V1C10 0.734784 10.1054 0.48043 10.2929 0.292893C10.4804 0.105357 10.7348 0 11 0ZM1 0H7C7.26522 0 7.51957 0.105357 7.70711 0.292893C7.89464 0.48043 8 0.734784 8 1V13C8 13.2652 7.89464 13.5196 7.70711 13.7071C7.51957 13.8946 7.26522 14 7 14H1C0.734784 14 0.48043 13.8946 0.292893 13.7071C0.105357 13.5196 0 13.2652 0 13V1C0 0.734784 0.105357 0.48043 0.292893 0.292893C0.48043 0.105357 0.734784 0 1 0ZM15 0C15.2652 0 15.5196 0.105357 15.7071 0.292893C15.8946 0.48043 16 0.734784 16 1V13C16 13.2652 15.8946 13.5196 15.7071 13.7071C15.5196 13.8946 15.2652 14 15 14C14.7348 14 14.4804 13.8946 14.2929 13.7071C14.1054 13.5196 14 13.2652 14 13V1C14 0.734784 14.1054 0.48043 14.2929 0.292893C14.4804 0.105357 14.7348 0 15 0Z",
35
+ fill: "currentcolor"
36
+ }));
37
+ };
38
+ var floatingToolbarPadding = css({
39
+ paddingRight: "var(--ds-space-050, 4px)",
40
+ paddingLeft: "var(--ds-space-050, 4px)"
41
+ });
42
+ export var LayoutThreeWithRightSidebarsIcon = function LayoutThreeWithRightSidebarsIcon(props) {
43
+ return jsx("span", {
44
+ css: floatingToolbarPadding
45
+ }, jsx(Icon, _extends({
46
+ glyph: LayoutThreeWithRightSidebarsGlyph
47
+ }, props)));
48
+ };
@@ -7,8 +7,6 @@ import type { Change, PresetLayout } from './types';
7
7
  export declare const ONE_COL_LAYOUTS: PresetLayout[];
8
8
  export declare const TWO_COL_LAYOUTS: PresetLayout[];
9
9
  export declare const THREE_COL_LAYOUTS: PresetLayout[];
10
- export declare const FOUR_COL_LAYOUTS: PresetLayout[];
11
- export declare const FIVE_COL_LAYOUTS: PresetLayout[];
12
10
  /**
13
11
  * Finds layout preset based on the width attrs of all the layoutColumn nodes
14
12
  * inside the layoutSection node
@@ -6,7 +6,7 @@ export interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
6
6
  UNSAFE_allowSingleColumnLayout?: boolean;
7
7
  editorAppearance?: EditorAppearance;
8
8
  }
9
- export type PresetLayout = 'single' | 'two_equal' | 'three_equal' | 'two_right_sidebar' | 'two_left_sidebar' | 'three_with_sidebars' | 'four_equal' | 'five_equal';
9
+ export type PresetLayout = 'single' | 'two_equal' | 'three_equal' | 'two_right_sidebar' | 'two_left_sidebar' | 'three_with_sidebars' | 'three_left_sidebars' | 'three_right_sidebars' | 'four_equal' | 'five_equal';
10
10
  export interface Change {
11
11
  from: number;
12
12
  to: number;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { jsx } from '@emotion/react';
6
+ import { type IconProps } from '@atlaskit/icon';
7
+ export declare const LayoutThreeWithLeftSidebarsIcon: (props: Omit<IconProps, 'glyph'>) => jsx.JSX.Element;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { jsx } from '@emotion/react';
6
+ import { type IconProps } from '@atlaskit/icon';
7
+ export declare const LayoutThreeWithRightSidebarsIcon: (props: Omit<IconProps, 'glyph'>) => jsx.JSX.Element;
@@ -7,8 +7,6 @@ import type { Change, PresetLayout } from './types';
7
7
  export declare const ONE_COL_LAYOUTS: PresetLayout[];
8
8
  export declare const TWO_COL_LAYOUTS: PresetLayout[];
9
9
  export declare const THREE_COL_LAYOUTS: PresetLayout[];
10
- export declare const FOUR_COL_LAYOUTS: PresetLayout[];
11
- export declare const FIVE_COL_LAYOUTS: PresetLayout[];
12
10
  /**
13
11
  * Finds layout preset based on the width attrs of all the layoutColumn nodes
14
12
  * inside the layoutSection node
@@ -6,7 +6,7 @@ export interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
6
6
  UNSAFE_allowSingleColumnLayout?: boolean;
7
7
  editorAppearance?: EditorAppearance;
8
8
  }
9
- export type PresetLayout = 'single' | 'two_equal' | 'three_equal' | 'two_right_sidebar' | 'two_left_sidebar' | 'three_with_sidebars' | 'four_equal' | 'five_equal';
9
+ export type PresetLayout = 'single' | 'two_equal' | 'three_equal' | 'two_right_sidebar' | 'two_left_sidebar' | 'three_with_sidebars' | 'three_left_sidebars' | 'three_right_sidebars' | 'four_equal' | 'five_equal';
10
10
  export interface Change {
11
11
  from: number;
12
12
  to: number;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { jsx } from '@emotion/react';
6
+ import { type IconProps } from '@atlaskit/icon';
7
+ export declare const LayoutThreeWithLeftSidebarsIcon: (props: Omit<IconProps, 'glyph'>) => jsx.JSX.Element;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { jsx } from '@emotion/react';
6
+ import { type IconProps } from '@atlaskit/icon';
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": "1.12.4",
3
+ "version": "1.12.6",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,16 +31,16 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^44.2.0",
35
- "@atlaskit/editor-common": "^95.0.0",
34
+ "@atlaskit/adf-schema": "^46.1.0",
35
+ "@atlaskit/editor-common": "^95.7.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
37
37
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
38
38
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
39
39
  "@atlaskit/editor-plugin-width": "^1.3.0",
40
40
  "@atlaskit/editor-prosemirror": "6.0.0",
41
- "@atlaskit/icon": "^22.24.0",
41
+ "@atlaskit/icon": "^22.26.0",
42
42
  "@atlaskit/platform-feature-flags": "^0.3.0",
43
- "@atlaskit/tmp-editor-statsig": "^2.19.0",
43
+ "@atlaskit/tmp-editor-statsig": "^2.21.0",
44
44
  "@atlaskit/tokens": "^2.3.0",
45
45
  "@babel/runtime": "^7.0.0",
46
46
  "@emotion/react": "^11.7.1"
@@ -99,6 +99,9 @@
99
99
  },
100
100
  "platform_editor_advanced_layouts_breakout_resizing": {
101
101
  "type": "boolean"
102
+ },
103
+ "platform-visual-refresh-icons": {
104
+ "type": "boolean"
102
105
  }
103
106
  }
104
107
  }