@atlaskit/editor-core 198.2.1 → 198.3.0

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,35 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 198.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#147579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147579)
8
+ [`b08b21a69d62d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b08b21a69d62d) -
9
+ Introduce new CommentEditor and ChromelessEditor components that only include relevant apperarance
10
+ code to optimise bundle size and the required parameters.
11
+
12
+ These can be accessed like so:
13
+
14
+ ```ts
15
+ import { CommentEditor } from '@atlaskit/editor-core/appearance-editor-comment';
16
+ ```
17
+
18
+ and
19
+
20
+ ```ts
21
+ import { ChromelessEditor } from '@atlaskit/editor-core/appearance-editor-chromeless';
22
+ ```
23
+
24
+ ## 198.2.2
25
+
26
+ ### Patch Changes
27
+
28
+ - [#147660](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147660)
29
+ [`eeb74f2c973d9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eeb74f2c973d9) -
30
+ Clean up FF platform_editor_tables_sticky_scrollbar
31
+ - Updated dependencies
32
+
3
33
  ## 198.2.1
4
34
 
5
35
  ### Patch Changes
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/editor-core/appearance-editor-chromeless",
3
+ "main": "../dist/cjs/editor-appearances/ChromelessEditor.js",
4
+ "module": "../dist/esm/editor-appearances/ChromelessEditor.js",
5
+ "module:es2019": "../dist/es2019/editor-appearances/ChromelessEditor.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/editor-appearances/ChromelessEditor.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.4": {
10
+ "*": [
11
+ "../dist/types-ts4.5/editor-appearances/ChromelessEditor.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/editor-core/appearance-editor-comment",
3
+ "main": "../dist/cjs/editor-appearances/CommentEditor.js",
4
+ "module": "../dist/esm/editor-appearances/CommentEditor.js",
5
+ "module:es2019": "../dist/es2019/editor-appearances/CommentEditor.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/editor-appearances/CommentEditor.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.4": {
10
+ "*": [
11
+ "../dist/types-ts4.5/editor-appearances/CommentEditor.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -56,8 +56,7 @@ var commentEditorStyles = (0, _react2.css)({
56
56
  });
57
57
  var ContentArea = (0, _ContentStyles.createEditorContentStyle)((0, _react2.css)({
58
58
  flexGrow: 1,
59
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
60
- overflowX: (0, _platformFeatureFlags.fg)('platform.editor.table-sticky-scrollbar') ? 'clip' : 'hidden',
59
+ overflowX: 'clip',
61
60
  lineHeight: '24px',
62
61
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
63
62
  '.ProseMirror': {
@@ -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 = "198.2.1";
8
+ var version = exports.version = "198.3.0";
@@ -44,8 +44,7 @@ const commentEditorStyles = css({
44
44
  });
45
45
  const ContentArea = createEditorContentStyle(css({
46
46
  flexGrow: 1,
47
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
48
- overflowX: fg('platform.editor.table-sticky-scrollbar') ? 'clip' : 'hidden',
47
+ overflowX: 'clip',
49
48
  lineHeight: '24px',
50
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
51
50
  '.ProseMirror': {
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "198.2.1";
2
+ export const version = "198.3.0";
@@ -45,8 +45,7 @@ var commentEditorStyles = css({
45
45
  });
46
46
  var ContentArea = createEditorContentStyle(css({
47
47
  flexGrow: 1,
48
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
49
- overflowX: fg('platform.editor.table-sticky-scrollbar') ? 'clip' : 'hidden',
48
+ overflowX: 'clip',
50
49
  lineHeight: '24px',
51
50
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
52
51
  '.ProseMirror': {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "198.2.1";
2
+ export var version = "198.3.0";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type EditorNextProps } from '../types/editor-props';
3
- export type ChromelessEditorProps = Pick<EditorNextProps, 'preset'>;
3
+ export type ChromelessEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'performanceTracking' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders'>;
4
4
  /**
5
5
  * Editor component based on `ComposableEditor` which sets the `appearance` to "chromeless".
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type EditorNextProps } from '../types/editor-props';
3
- export type CommentEditorProps = Pick<EditorNextProps, 'preset'>;
3
+ export type CommentEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'performanceTracking' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders'>;
4
4
  /**
5
5
  * Editor component based on `ComposableEditor` which sets the `appearance` to "comment".
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type EditorNextProps } from '../types/editor-props';
3
- export type ChromelessEditorProps = Pick<EditorNextProps, 'preset'>;
3
+ export type ChromelessEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'performanceTracking' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders'>;
4
4
  /**
5
5
  * Editor component based on `ComposableEditor` which sets the `appearance` to "chromeless".
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type EditorNextProps } from '../types/editor-props';
3
- export type CommentEditorProps = Pick<EditorNextProps, 'preset'>;
3
+ export type CommentEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'performanceTracking' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders'>;
4
4
  /**
5
5
  * Editor component based on `ComposableEditor` which sets the `appearance` to "comment".
6
6
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "198.2.1",
3
+ "version": "198.3.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/analytics-next": "^10.1.0",
44
44
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
45
45
  "@atlaskit/button": "^20.2.0",
46
- "@atlaskit/editor-common": "^92.0.0",
46
+ "@atlaskit/editor-common": "^92.1.0",
47
47
  "@atlaskit/editor-json-transformer": "^8.18.0",
48
48
  "@atlaskit/editor-plugin-quick-insert": "1.4.4",
49
49
  "@atlaskit/editor-plugins": "^5.5.0",
@@ -84,7 +84,7 @@
84
84
  "@af/visual-regression": "*",
85
85
  "@atlaskit/adf-utils": "^19.8.0",
86
86
  "@atlaskit/analytics-listeners": "^8.11.0",
87
- "@atlaskit/collab-provider": "9.42.1",
87
+ "@atlaskit/collab-provider": "9.42.2",
88
88
  "@atlaskit/editor-plugin-annotation": "1.19.10",
89
89
  "@atlaskit/editor-plugin-card": "^3.4.0",
90
90
  "@atlaskit/editor-plugin-list": "^3.8.0",
@@ -97,7 +97,7 @@
97
97
  "@atlaskit/media-test-helpers": "^34.4.0",
98
98
  "@atlaskit/modal-dialog": "^12.17.0",
99
99
  "@atlaskit/primitives": "^12.2.0",
100
- "@atlaskit/renderer": "^111.0.0",
100
+ "@atlaskit/renderer": "^111.1.0",
101
101
  "@atlaskit/smart-card": "^29.0.0",
102
102
  "@atlaskit/synchrony-test-helpers": "^2.5.0",
103
103
  "@atlaskit/toggle": "^13.4.0",
@@ -162,9 +162,6 @@
162
162
  "type": "boolean",
163
163
  "referenceOnly": "true"
164
164
  },
165
- "platform.editor.table-sticky-scrollbar": {
166
- "type": "boolean"
167
- },
168
165
  "platform.editor.multi-bodied-extension_0rygg": {
169
166
  "type": "boolean",
170
167
  "referenceOnly": "true"
@@ -302,6 +299,8 @@
302
299
  "./preset-builder": "./src/preset-builder.ts",
303
300
  "./appearance-editor-full-page": "./src/editor-appearances/FullPageEditor.tsx",
304
301
  "./appearance-editor-full-width": "./src/editor-appearances/FullWidthEditor.tsx",
302
+ "./appearance-editor-comment": "./src/editor-appearances/CommentEditor.tsx",
303
+ "./appearance-editor-chromeless": "./src/editor-appearances/ChromelessEditor.tsx",
305
304
  "./version-wrapper": "./src/version-wrapper.ts"
306
305
  }
307
306
  }