@atlaskit/editor-core 210.1.1 → 210.1.3

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-core
2
2
 
3
+ ## 210.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`760d547b4535a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/760d547b4535a) -
8
+ [ux] Update kebab case to camelCase for CSS values
9
+ - Updated dependencies
10
+
11
+ ## 210.1.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 210.1.1
4
18
 
5
19
  ### Patch Changes
@@ -226,7 +226,7 @@ function createUniversalPresetInternal(_ref) {
226
226
  }], Boolean(props.allowStatus)).maybeAdd(_indentation.indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(_scrollIntoView.scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([_toolbarListsIndentation.toolbarListsIndentationPlugin, {
227
227
  showIndentationButtons: !!props.showIndentationButtons,
228
228
  allowHeadingAndParagraphIndentation: !!props.allowIndentation
229
- }]).add([_insertBlock.insertBlockPlugin, {
229
+ }]).add([_insertBlock.insertBlockPlugin, _objectSpread({
230
230
  allowTables: !!props.allowTables,
231
231
  allowExpand: isExpandInsertionEnabled(props),
232
232
  insertMenuItems: props.insertMenuItems,
@@ -235,7 +235,7 @@ function createUniversalPresetInternal(_ref) {
235
235
  nativeStatusSupported: !statusMenuDisabled,
236
236
  showElementBrowserLink: props.elementBrowser && props.elementBrowser.showModal || false,
237
237
  appearance: appearance
238
- }]).maybeAdd([_beforePrimaryToolbar.beforePrimaryToolbarPlugin, {
238
+ }, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.insertBlockPlugin)]).maybeAdd([_beforePrimaryToolbar.beforePrimaryToolbarPlugin, {
239
239
  beforePrimaryToolbarComponents: // @ts-expect-error 2339: Property 'before' does not exist on type 'PrimaryToolbarComponents'.
240
240
  (_props$primaryToolbar = props.primaryToolbarComponents) === null || _props$primaryToolbar === void 0 ? void 0 : _props$primaryToolbar.before
241
241
  }], Boolean(hasBeforePrimaryToolbar(props.primaryToolbarComponents) && !featureFlags.twoLineEditorToolbar)).add([_avatarGroup.avatarGroupPlugin, {
@@ -31,7 +31,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
31
31
  * @jsx jsx
32
32
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
33
33
  var scrollbarStylesNew = (0, _react2.css)({
34
- '-ms-overflow-style': '-ms-autohiding-scrollbar',
34
+ msOverflowStyle: '-ms-autohiding-scrollbar',
35
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
36
36
  '&::-webkit-scrollbar-corner': {
37
37
  display: 'none'
@@ -46,7 +46,7 @@ var expandStyles = exports.expandStyles = (0, _react.css)({
46
46
  position: 'relative',
47
47
  // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel
48
48
  // in Safari. Looks like it's caused by user-select: all in the emoji element
49
- '-webkit-user-select': 'text',
49
+ WebkitUserSelect: 'text',
50
50
  '&::before': {
51
51
  position: 'absolute',
52
52
  content: "''",
@@ -52,9 +52,9 @@ var panelStyles = exports.panelStyles = (0, _react.css)({
52
52
  paddingRight: "var(--ds-space-100, 8px)",
53
53
  textAlign: 'center',
54
54
  userSelect: 'none',
55
- '-moz-user-select': 'none',
56
- '-webkit-user-select': 'none',
57
- '-ms-user-select': 'none',
55
+ MozUserSelect: 'none',
56
+ WebkitUserSelect: 'none',
57
+ msUserSelect: 'none',
58
58
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
59
59
  marginTop: '0.1em',
60
60
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
@@ -151,7 +151,7 @@ var panelStyles = exports.panelStyles = (0, _react.css)({
151
151
  position: 'relative',
152
152
  // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel
153
153
  // in Safari. Looks like it's caused by user-select: all in the emoji element
154
- '-webkit-user-select': 'text',
154
+ WebkitUserSelect: 'text',
155
155
  '&::before': {
156
156
  position: 'absolute',
157
157
  content: '""',
@@ -9,7 +9,7 @@ var _react = require("@emotion/react");
9
9
 
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
11
11
  var scrollbarStyles = exports.scrollbarStyles = (0, _react.css)({
12
- '-ms-overflow-style': '-ms-autohiding-scrollbar',
12
+ msOverflowStyle: '-ms-autohiding-scrollbar',
13
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
14
14
  '&::-webkit-scrollbar-corner': {
15
15
  display: 'none'
@@ -61,7 +61,7 @@ var blanketSelectionStyles = exports.blanketSelectionStyles = (0, _react.css)({
61
61
  position: 'relative',
62
62
  // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel
63
63
  // in Safari. Looks like it's caused by user-select: all in the emoji element
64
- '-webkit-user-select': 'text',
64
+ WebkitUserSelect: 'text',
65
65
  '&::before': {
66
66
  position: 'absolute',
67
67
  content: "''",
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "210.1.0";
8
+ var version = exports.version = "210.1.2";
@@ -234,7 +234,8 @@ export default function createUniversalPresetInternal({
234
234
  tableSelectorSupported: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableSelector) && isFullPage,
235
235
  nativeStatusSupported: !statusMenuDisabled,
236
236
  showElementBrowserLink: props.elementBrowser && props.elementBrowser.showModal || false,
237
- appearance
237
+ appearance,
238
+ ...(initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.insertBlockPlugin)
238
239
  }]).maybeAdd([beforePrimaryToolbarPlugin, {
239
240
  beforePrimaryToolbarComponents: // @ts-expect-error 2339: Property 'before' does not exist on type 'PrimaryToolbarComponents'.
240
241
  (_props$primaryToolbar = props.primaryToolbarComponents) === null || _props$primaryToolbar === void 0 ? void 0 : _props$primaryToolbar.before
@@ -18,7 +18,7 @@ import EditorContentContainer from '../EditorContentContainer/EditorContentConta
18
18
  import PluginSlot from '../PluginSlot';
19
19
  import WithFlash from '../WithFlash';
20
20
  const scrollbarStylesNew = css({
21
- '-ms-overflow-style': '-ms-autohiding-scrollbar',
21
+ msOverflowStyle: '-ms-autohiding-scrollbar',
22
22
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
23
23
  '&::-webkit-scrollbar-corner': {
24
24
  display: 'none'
@@ -39,7 +39,7 @@ export const expandStyles = css({
39
39
  position: 'relative',
40
40
  // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel
41
41
  // in Safari. Looks like it's caused by user-select: all in the emoji element
42
- '-webkit-user-select': 'text',
42
+ WebkitUserSelect: 'text',
43
43
  '&::before': {
44
44
  position: 'absolute',
45
45
  content: "''",
@@ -45,9 +45,9 @@ export const panelStyles = css({
45
45
  paddingRight: "var(--ds-space-100, 8px)",
46
46
  textAlign: 'center',
47
47
  userSelect: 'none',
48
- '-moz-user-select': 'none',
49
- '-webkit-user-select': 'none',
50
- '-ms-user-select': 'none',
48
+ MozUserSelect: 'none',
49
+ WebkitUserSelect: 'none',
50
+ msUserSelect: 'none',
51
51
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
52
52
  marginTop: '0.1em',
53
53
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
@@ -144,7 +144,7 @@ export const panelStyles = css({
144
144
  position: 'relative',
145
145
  // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel
146
146
  // in Safari. Looks like it's caused by user-select: all in the emoji element
147
- '-webkit-user-select': 'text',
147
+ WebkitUserSelect: 'text',
148
148
  '&::before': {
149
149
  position: 'absolute',
150
150
  content: '""',
@@ -2,7 +2,7 @@
2
2
  import { css } from '@emotion/react';
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
4
4
  export const scrollbarStyles = css({
5
- '-ms-overflow-style': '-ms-autohiding-scrollbar',
5
+ msOverflowStyle: '-ms-autohiding-scrollbar',
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
7
7
  '&::-webkit-scrollbar-corner': {
8
8
  display: 'none'
@@ -54,7 +54,7 @@ export const blanketSelectionStyles = css({
54
54
  position: 'relative',
55
55
  // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel
56
56
  // in Safari. Looks like it's caused by user-select: all in the emoji element
57
- '-webkit-user-select': 'text',
57
+ WebkitUserSelect: 'text',
58
58
  '&::before': {
59
59
  position: 'absolute',
60
60
  content: "''",
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "210.1.0";
2
+ export const version = "210.1.2";
@@ -219,7 +219,7 @@ export default function createUniversalPresetInternal(_ref) {
219
219
  }], Boolean(props.allowStatus)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
220
220
  showIndentationButtons: !!props.showIndentationButtons,
221
221
  allowHeadingAndParagraphIndentation: !!props.allowIndentation
222
- }]).add([insertBlockPlugin, {
222
+ }]).add([insertBlockPlugin, _objectSpread({
223
223
  allowTables: !!props.allowTables,
224
224
  allowExpand: isExpandInsertionEnabled(props),
225
225
  insertMenuItems: props.insertMenuItems,
@@ -228,7 +228,7 @@ export default function createUniversalPresetInternal(_ref) {
228
228
  nativeStatusSupported: !statusMenuDisabled,
229
229
  showElementBrowserLink: props.elementBrowser && props.elementBrowser.showModal || false,
230
230
  appearance: appearance
231
- }]).maybeAdd([beforePrimaryToolbarPlugin, {
231
+ }, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.insertBlockPlugin)]).maybeAdd([beforePrimaryToolbarPlugin, {
232
232
  beforePrimaryToolbarComponents: // @ts-expect-error 2339: Property 'before' does not exist on type 'PrimaryToolbarComponents'.
233
233
  (_props$primaryToolbar = props.primaryToolbarComponents) === null || _props$primaryToolbar === void 0 ? void 0 : _props$primaryToolbar.before
234
234
  }], Boolean(hasBeforePrimaryToolbar(props.primaryToolbarComponents) && !featureFlags.twoLineEditorToolbar)).add([avatarGroupPlugin, {
@@ -25,7 +25,7 @@ import EditorContentContainer from '../EditorContentContainer/EditorContentConta
25
25
  import PluginSlot from '../PluginSlot';
26
26
  import WithFlash from '../WithFlash';
27
27
  var scrollbarStylesNew = css({
28
- '-ms-overflow-style': '-ms-autohiding-scrollbar',
28
+ msOverflowStyle: '-ms-autohiding-scrollbar',
29
29
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
30
30
  '&::-webkit-scrollbar-corner': {
31
31
  display: 'none'
@@ -39,7 +39,7 @@ export var expandStyles = css({
39
39
  position: 'relative',
40
40
  // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel
41
41
  // in Safari. Looks like it's caused by user-select: all in the emoji element
42
- '-webkit-user-select': 'text',
42
+ WebkitUserSelect: 'text',
43
43
  '&::before': {
44
44
  position: 'absolute',
45
45
  content: "''",
@@ -45,9 +45,9 @@ export var panelStyles = css({
45
45
  paddingRight: "var(--ds-space-100, 8px)",
46
46
  textAlign: 'center',
47
47
  userSelect: 'none',
48
- '-moz-user-select': 'none',
49
- '-webkit-user-select': 'none',
50
- '-ms-user-select': 'none',
48
+ MozUserSelect: 'none',
49
+ WebkitUserSelect: 'none',
50
+ msUserSelect: 'none',
51
51
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
52
52
  marginTop: '0.1em',
53
53
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
@@ -144,7 +144,7 @@ export var panelStyles = css({
144
144
  position: 'relative',
145
145
  // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel
146
146
  // in Safari. Looks like it's caused by user-select: all in the emoji element
147
- '-webkit-user-select': 'text',
147
+ WebkitUserSelect: 'text',
148
148
  '&::before': {
149
149
  position: 'absolute',
150
150
  content: '""',
@@ -2,7 +2,7 @@
2
2
  import { css } from '@emotion/react';
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
4
4
  export var scrollbarStyles = css({
5
- '-ms-overflow-style': '-ms-autohiding-scrollbar',
5
+ msOverflowStyle: '-ms-autohiding-scrollbar',
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
7
7
  '&::-webkit-scrollbar-corner': {
8
8
  display: 'none'
@@ -54,7 +54,7 @@ export var blanketSelectionStyles = css({
54
54
  position: 'relative',
55
55
  // Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel
56
56
  // in Safari. Looks like it's caused by user-select: all in the emoji element
57
- '-webkit-user-select': 'text',
57
+ WebkitUserSelect: 'text',
58
58
  '&::before': {
59
59
  position: 'absolute',
60
60
  content: "''",
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "210.1.0";
2
+ export var version = "210.1.2";
@@ -36,6 +36,9 @@ export type InitialPluginConfiguration = {
36
36
  toolbarPlugin?: {
37
37
  disableSelectionToolbar?: boolean;
38
38
  };
39
+ insertBlockPlugin?: {
40
+ toolbarShowPlusInsertOnly?: boolean;
41
+ };
39
42
  };
40
43
  /**
41
44
  * Creates a preset with all of the available plugins.
@@ -36,6 +36,9 @@ export type InitialPluginConfiguration = {
36
36
  toolbarPlugin?: {
37
37
  disableSelectionToolbar?: boolean;
38
38
  };
39
+ insertBlockPlugin?: {
40
+ toolbarShowPlusInsertOnly?: boolean;
41
+ };
39
42
  };
40
43
  /**
41
44
  * Creates a preset with all of the available plugins.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "210.1.1",
3
+ "version": "210.1.3",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
46
46
  "@atlaskit/button": "^23.4.0",
47
47
  "@atlaskit/css": "^0.12.0",
48
- "@atlaskit/editor-json-transformer": "^8.26.0",
48
+ "@atlaskit/editor-json-transformer": "^8.27.0",
49
49
  "@atlaskit/editor-performance-metrics": "^2.1.0",
50
50
  "@atlaskit/editor-plugin-quick-insert": "^3.0.0",
51
51
  "@atlaskit/editor-plugin-user-preferences": "^1.2.0",
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/editor-toolbar": "^0.3.0",
56
56
  "@atlaskit/editor-toolbar-model": "^0.1.0",
57
57
  "@atlaskit/emoji": "^69.5.0",
58
- "@atlaskit/icon": "^27.12.0",
58
+ "@atlaskit/icon": "^28.0.0",
59
59
  "@atlaskit/link": "^3.2.0",
60
60
  "@atlaskit/media-card": "^79.5.0",
61
61
  "@atlaskit/mention": "^24.2.0",
@@ -63,7 +63,7 @@
63
63
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
64
64
  "@atlaskit/react-ufo": "^4.4.0",
65
65
  "@atlaskit/task-decision": "^19.2.0",
66
- "@atlaskit/tmp-editor-statsig": "^11.3.0",
66
+ "@atlaskit/tmp-editor-statsig": "^11.4.0",
67
67
  "@atlaskit/tokens": "^6.0.0",
68
68
  "@atlaskit/tooltip": "^20.4.0",
69
69
  "@atlaskit/width-detector": "^5.0.0",
@@ -80,7 +80,7 @@
80
80
  "uuid": "^3.1.0"
81
81
  },
82
82
  "peerDependencies": {
83
- "@atlaskit/editor-common": "^107.26.0",
83
+ "@atlaskit/editor-common": "^107.27.0",
84
84
  "@atlaskit/link-provider": "^3.7.0",
85
85
  "@atlaskit/media-core": "^37.0.0",
86
86
  "react": "^18.2.0",
@@ -92,7 +92,7 @@
92
92
  "@af/visual-regression": "workspace:^",
93
93
  "@atlaskit/adf-utils": "^19.21.0",
94
94
  "@atlaskit/analytics-listeners": "^9.0.0",
95
- "@atlaskit/collab-provider": "^11.2.0",
95
+ "@atlaskit/collab-provider": "^11.3.0",
96
96
  "@atlaskit/editor-plugin-annotation": "^3.3.0",
97
97
  "@atlaskit/editor-plugin-card": "^7.4.0",
98
98
  "@atlaskit/editor-plugin-list": "^5.1.0",
@@ -106,7 +106,7 @@
106
106
  "@atlaskit/primitives": "^14.11.0",
107
107
  "@atlaskit/renderer": "^120.4.0",
108
108
  "@atlaskit/section-message": "^8.5.0",
109
- "@atlaskit/smart-card": "^40.10.0",
109
+ "@atlaskit/smart-card": "^40.12.0",
110
110
  "@atlaskit/synchrony-test-helpers": "workspace:^",
111
111
  "@atlaskit/toggle": "^15.1.0",
112
112
  "@atlaskit/util-data-test": "^18.1.0",