@atlaskit/editor-plugin-insert-block 4.2.0 → 4.2.2

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-insert-block
2
2
 
3
+ ## 4.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`2af42ad93c3e0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2af42ad93c3e0) -
14
+ Internal changes to use tokens for border radius.
15
+ - Updated dependencies
16
+
3
17
  ## 4.2.0
4
18
 
5
19
  ### Minor Changes
@@ -20,7 +20,6 @@ var _hooks = require("@atlaskit/editor-common/hooks");
20
20
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
21
21
  var _uiReact = require("@atlaskit/editor-common/ui-react");
22
22
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
23
- var _theme = require("@atlaskit/theme");
24
23
  var _colors = require("@atlaskit/theme/colors");
25
24
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
26
25
  var _excluded = ["children"];
@@ -251,8 +250,7 @@ var insertMenuWrapper = function insertMenuWrapper(height, isFullPageAppearance)
251
250
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
252
251
  height: "".concat(height, "px"),
253
252
  backgroundColor: "".concat("var(--ds-surface-overlay, ".concat(_colors.N0, ")")),
254
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
255
- borderRadius: "".concat((0, _theme.borderRadius)(), "px"),
253
+ borderRadius: "var(--ds-border-radius-100, 3px)",
256
254
  boxShadow: "".concat("var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N30A, ",\n 0 2px 1px ").concat(_colors.N30A, ",\n 0 0 20px -6px ").concat(_colors.N60A), ")"))
257
255
  });
258
256
  };
@@ -16,7 +16,6 @@ import { useSharedPluginState, sharedPluginStateHookMigratorFactory, useSharedPl
16
16
  import { messages, IconCode, IconDate, IconDecision, IconDivider, IconExpand, IconPanel, IconQuote, IconStatus } from '@atlaskit/editor-common/quick-insert';
17
17
  import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners as withOuterListeners } from '@atlaskit/editor-common/ui-react';
18
18
  import { fg } from '@atlaskit/platform-feature-flags';
19
- import { borderRadius } from '@atlaskit/theme';
20
19
  import { N0, N30A, N60A } from '@atlaskit/theme/colors';
21
20
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
22
21
  export const DEFAULT_HEIGHT = 560;
@@ -223,8 +222,7 @@ const insertMenuWrapper = (height, isFullPageAppearance) => {
223
222
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
224
223
  height: `${height}px`,
225
224
  backgroundColor: `${`var(--ds-surface-overlay, ${N0})`}`,
226
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
227
- borderRadius: `${borderRadius()}px`,
225
+ borderRadius: "var(--ds-border-radius-100, 3px)",
228
226
  boxShadow: `${`var(--ds-shadow-overlay, ${`0 0 0 1px ${N30A},
229
227
  0 2px 1px ${N30A},
230
228
  0 0 20px -6px ${N60A}`})`}`
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { INSERT_BLOCK_SECTION, TASK_LIST_GROUP, MEDIA_GROUP, TOOLBAR_RANK, TOOLBARS, INSERT_BLOCK_SECTION_RANK, TASK_LIST_BUTTON, TASK_LIST_GROUP_RANK, MEDIA_BUTTON, MENTION_GROUP, MEDIA_GROUP_RANK, MENTION_BUTTON, MENTION_GROUP_RANK, EMOJI_GROUP, EMOJI_BUTTON, EMOJI_GROUP_RANK, LAYOUT_GROUP, LAYOUT_BUTTON, LAYOUT_GROUP_RANK, TABLE_GROUP_RANK, TABLE_BUTTON, TABLE_GROUP, TABLE_SIZE_PICKER } from "@atlaskit/editor-common/toolbar";
2
+ import { INSERT_BLOCK_SECTION, TASK_LIST_GROUP, MEDIA_GROUP, TOOLBAR_RANK, TOOLBARS, INSERT_BLOCK_SECTION_RANK, TASK_LIST_BUTTON, TASK_LIST_GROUP_RANK, MEDIA_BUTTON, MENTION_GROUP, MEDIA_GROUP_RANK, MENTION_BUTTON, MENTION_GROUP_RANK, EMOJI_GROUP, EMOJI_BUTTON, EMOJI_GROUP_RANK, LAYOUT_GROUP, LAYOUT_BUTTON, LAYOUT_GROUP_RANK, TABLE_GROUP_RANK, TABLE_BUTTON, TABLE_GROUP, TABLE_SIZE_PICKER } from '@atlaskit/editor-common/toolbar';
3
3
  import { EmojiButton } from './toolbar-components/EmojiButton';
4
4
  import { ImageButton } from './toolbar-components/ImageButton';
5
5
  import { LayoutButton } from './toolbar-components/LayoutButton';
@@ -7,7 +7,7 @@ import { MediaButton } from './toolbar-components/MediaButton';
7
7
  import { MentionButton } from './toolbar-components/MentionButton';
8
8
  import { TableButton } from './toolbar-components/TableButton';
9
9
  import { TableSizePicker } from './toolbar-components/TableSizePicker';
10
- import { TaskListButton } from "./toolbar-components/TaskListButton";
10
+ import { TaskListButton } from './toolbar-components/TaskListButton';
11
11
  export const getToolbarComponents = ({
12
12
  api,
13
13
  tableSelectorSupported
@@ -23,7 +23,6 @@ import { useSharedPluginState, sharedPluginStateHookMigratorFactory, useSharedPl
23
23
  import { messages, IconCode, IconDate, IconDecision, IconDivider, IconExpand, IconPanel, IconQuote, IconStatus } from '@atlaskit/editor-common/quick-insert';
24
24
  import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners as withOuterListeners } from '@atlaskit/editor-common/ui-react';
25
25
  import { fg } from '@atlaskit/platform-feature-flags';
26
- import { borderRadius } from '@atlaskit/theme';
27
26
  import { N0, N30A, N60A } from '@atlaskit/theme/colors';
28
27
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
29
28
  export var DEFAULT_HEIGHT = 560;
@@ -248,8 +247,7 @@ var insertMenuWrapper = function insertMenuWrapper(height, isFullPageAppearance)
248
247
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
249
248
  height: "".concat(height, "px"),
250
249
  backgroundColor: "".concat("var(--ds-surface-overlay, ".concat(N0, ")")),
251
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
252
- borderRadius: "".concat(borderRadius(), "px"),
250
+ borderRadius: "var(--ds-border-radius-100, 3px)",
253
251
  boxShadow: "".concat("var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(N30A, ",\n 0 2px 1px ").concat(N30A, ",\n 0 0 20px -6px ").concat(N60A), ")"))
254
252
  });
255
253
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { INSERT_BLOCK_SECTION, TASK_LIST_GROUP, MEDIA_GROUP, TOOLBAR_RANK, TOOLBARS, INSERT_BLOCK_SECTION_RANK, TASK_LIST_BUTTON, TASK_LIST_GROUP_RANK, MEDIA_BUTTON, MENTION_GROUP, MEDIA_GROUP_RANK, MENTION_BUTTON, MENTION_GROUP_RANK, EMOJI_GROUP, EMOJI_BUTTON, EMOJI_GROUP_RANK, LAYOUT_GROUP, LAYOUT_BUTTON, LAYOUT_GROUP_RANK, TABLE_GROUP_RANK, TABLE_BUTTON, TABLE_GROUP, TABLE_SIZE_PICKER } from "@atlaskit/editor-common/toolbar";
2
+ import { INSERT_BLOCK_SECTION, TASK_LIST_GROUP, MEDIA_GROUP, TOOLBAR_RANK, TOOLBARS, INSERT_BLOCK_SECTION_RANK, TASK_LIST_BUTTON, TASK_LIST_GROUP_RANK, MEDIA_BUTTON, MENTION_GROUP, MEDIA_GROUP_RANK, MENTION_BUTTON, MENTION_GROUP_RANK, EMOJI_GROUP, EMOJI_BUTTON, EMOJI_GROUP_RANK, LAYOUT_GROUP, LAYOUT_BUTTON, LAYOUT_GROUP_RANK, TABLE_GROUP_RANK, TABLE_BUTTON, TABLE_GROUP, TABLE_SIZE_PICKER } from '@atlaskit/editor-common/toolbar';
3
3
  import { EmojiButton } from './toolbar-components/EmojiButton';
4
4
  import { ImageButton } from './toolbar-components/ImageButton';
5
5
  import { LayoutButton } from './toolbar-components/LayoutButton';
@@ -7,7 +7,7 @@ import { MediaButton } from './toolbar-components/MediaButton';
7
7
  import { MentionButton } from './toolbar-components/MentionButton';
8
8
  import { TableButton } from './toolbar-components/TableButton';
9
9
  import { TableSizePicker } from './toolbar-components/TableSizePicker';
10
- import { TaskListButton } from "./toolbar-components/TaskListButton";
10
+ import { TaskListButton } from './toolbar-components/TaskListButton';
11
11
  export var getToolbarComponents = function getToolbarComponents(_ref) {
12
12
  var api = _ref.api,
13
13
  tableSelectorSupported = _ref.tableSelectorSupported;
@@ -1,9 +1,9 @@
1
- import type { ExtractInjectionAPI } from "@atlaskit/editor-common/types";
2
- import type { RegisterComponent } from "@atlaskit/editor-toolbar-model";
3
- import type { InsertBlockPlugin } from "../insertBlockPluginType";
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
3
+ import type { InsertBlockPlugin } from '../insertBlockPluginType';
4
4
  type GetToolbarComponentsProps = {
5
5
  api?: ExtractInjectionAPI<InsertBlockPlugin>;
6
6
  tableSelectorSupported?: boolean;
7
7
  };
8
- export declare const getToolbarComponents: ({ api, tableSelectorSupported }: GetToolbarComponentsProps) => RegisterComponent[];
8
+ export declare const getToolbarComponents: ({ api, tableSelectorSupported, }: GetToolbarComponentsProps) => RegisterComponent[];
9
9
  export {};
@@ -1,9 +1,9 @@
1
- import type { ExtractInjectionAPI } from "@atlaskit/editor-common/types";
2
- import type { RegisterComponent } from "@atlaskit/editor-toolbar-model";
3
- import type { InsertBlockPlugin } from "../insertBlockPluginType";
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
3
+ import type { InsertBlockPlugin } from '../insertBlockPluginType';
4
4
  type GetToolbarComponentsProps = {
5
5
  api?: ExtractInjectionAPI<InsertBlockPlugin>;
6
6
  tableSelectorSupported?: boolean;
7
7
  };
8
- export declare const getToolbarComponents: ({ api, tableSelectorSupported }: GetToolbarComponentsProps) => RegisterComponent[];
8
+ export declare const getToolbarComponents: ({ api, tableSelectorSupported, }: GetToolbarComponentsProps) => RegisterComponent[];
9
9
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -57,20 +57,20 @@
57
57
  "@atlaskit/editor-plugin-status": "^4.1.0",
58
58
  "@atlaskit/editor-plugin-table": "^12.2.0",
59
59
  "@atlaskit/editor-plugin-tasks-and-decisions": "^6.3.0",
60
- "@atlaskit/editor-plugin-toolbar": "^0.2.0",
60
+ "@atlaskit/editor-plugin-toolbar": "^0.3.0",
61
61
  "@atlaskit/editor-plugin-type-ahead": "^3.1.0",
62
62
  "@atlaskit/editor-prosemirror": "7.0.0",
63
63
  "@atlaskit/editor-shared-styles": "^3.6.0",
64
64
  "@atlaskit/editor-toolbar": "^0.3.0",
65
65
  "@atlaskit/editor-toolbar-model": "^0.1.0",
66
- "@atlaskit/emoji": "^69.4.0",
66
+ "@atlaskit/emoji": "^69.5.0",
67
67
  "@atlaskit/heading": "^5.2.0",
68
68
  "@atlaskit/icon": "^27.12.0",
69
69
  "@atlaskit/icon-lab": "^5.6.0",
70
70
  "@atlaskit/platform-feature-flags": "^1.1.0",
71
71
  "@atlaskit/primitives": "^14.11.0",
72
72
  "@atlaskit/theme": "^19.0.0",
73
- "@atlaskit/tmp-editor-statsig": "^11.0.0",
73
+ "@atlaskit/tmp-editor-statsig": "^11.3.0",
74
74
  "@atlaskit/tokens": "^6.0.0",
75
75
  "@atlaskit/tooltip": "^20.4.0",
76
76
  "@babel/runtime": "^7.0.0",
@@ -81,7 +81,7 @@
81
81
  "react-virtualized": "^9.8.0"
82
82
  },
83
83
  "peerDependencies": {
84
- "@atlaskit/editor-common": "^107.25.0",
84
+ "@atlaskit/editor-common": "^107.26.0",
85
85
  "react": "^18.2.0",
86
86
  "react-dom": "^18.2.0",
87
87
  "react-intl-next": "npm:react-intl@^5.18.1"