@atlaskit/editor-common 116.3.1 → 116.4.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,22 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 116.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`9054a4d9bd389`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9054a4d9bd389) -
8
+ Add markdown source editor line number and gutter layout
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 116.3.2
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 116.3.1
4
21
 
5
22
  ### Patch Changes
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
28
28
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
29
29
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
30
30
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
31
- var packageVersion = "116.3.1";
31
+ var packageVersion = "116.3.2";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "116.3.1";
27
+ var packageVersion = "116.3.2";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
14
14
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
15
15
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
16
16
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
17
- const packageVersion = "116.3.1";
17
+ const packageVersion = "116.3.2";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "116.3.1";
17
+ const packageVersion = "116.3.2";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
20
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
21
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
22
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "116.3.1";
23
+ var packageVersion = "116.3.2";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "116.3.1";
24
+ var packageVersion = "116.3.2";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -13,7 +13,7 @@ export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags } from './feat
13
13
  export type { Browsers, Range, DisableSpellcheckByBrowser } from './supported-browsers';
14
14
  export type { EditorContainerWidth, GetEditorContainerWidth } from './editor-container-width';
15
15
  export type { EmptyStateHandler, EmptyStateHandlerParams } from './empty-state-handler';
16
- export type { _MarkdownModePluginStub } from './markdown-mode-plugin-stub';
16
+ export type { _MarkdownModePluginStub, _MarkdownModePluginStateStub, } from './markdown-mode-plugin-stub';
17
17
  export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, ExtensionDropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogChildInfo, ConfirmDialogOptions, ConfirmationDialogProps, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarCustomRenderContext, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, typeOption, FloatingToolbarOverflowDropdown, FloatingToolbarOverflowDropdownOptions, OverflowDropdownHeading, OverflowDropdownOption, } from './floating-toolbar';
18
18
  export type { MarkOptions, NodeOptions } from './copy-button';
19
19
  export type { ContextPanelHandler } from './context-panel';
@@ -1,4 +1,31 @@
1
1
  import type { NextEditorPlugin } from './index';
2
+ export type _MarkdownModePluginStateStub = {
3
+ isMarkdownMode: boolean;
4
+ showSourceLineNumbers: boolean;
5
+ sourceBlockFormatState: {
6
+ headingLevel: number | null;
7
+ inBlockquote: boolean;
8
+ inCodeBlock: boolean;
9
+ } | null;
10
+ sourceInlineFormatState: {
11
+ boldActive: boolean;
12
+ codeActive: boolean;
13
+ inlineFormattingAvailable: boolean;
14
+ italicActive: boolean;
15
+ strikeActive: boolean;
16
+ } | null;
17
+ sourceListFormatState: {
18
+ inBulletList: boolean;
19
+ inOrderedList: boolean;
20
+ inTaskList: boolean;
21
+ } | null;
22
+ sourcePositionState: {
23
+ columnNumber: number;
24
+ lineCount: number;
25
+ lineNumber: number;
26
+ } | null;
27
+ view: 'syntax' | 'split-view' | 'preview';
28
+ };
2
29
  /**
3
30
  * Duck-typed mirror of `@atlassian/editor-plugin-markdown-mode`'s
4
31
  * `MarkdownModePlugin`, covering all actions and `sharedState` fields
@@ -22,10 +49,16 @@ export type _MarkdownModePluginStub = NextEditorPlugin<'markdownMode', {
22
49
  actions: {
23
50
  dispatchSourceCommand: (cmd: unknown) => boolean;
24
51
  registerSourceCommandDispatch: (dispatcher: ((cmd: unknown) => boolean) | null) => void;
52
+ setShowSourceLineNumbers: (showSourceLineNumbers: boolean) => void;
25
53
  setSourceBlockFormatState: (state: unknown) => void;
26
54
  setSourceFormatState: (state: unknown) => void;
27
55
  setSourceInlineFormatState: (state: unknown) => void;
28
56
  setSourceListFormatState: (state: unknown) => void;
57
+ setSourcePositionState: (state: {
58
+ columnNumber: number;
59
+ lineCount: number;
60
+ lineNumber: number;
61
+ } | null) => void;
29
62
  setView: (view: 'syntax' | 'split-view' | 'preview') => void;
30
63
  toggleSourceBlockquote: () => boolean;
31
64
  toggleSourceBold: () => boolean;
@@ -37,25 +70,5 @@ export type _MarkdownModePluginStub = NextEditorPlugin<'markdownMode', {
37
70
  toggleSourceStrike: () => boolean;
38
71
  toggleSourceTaskList: () => boolean;
39
72
  };
40
- sharedState: {
41
- isMarkdownMode: boolean;
42
- sourceBlockFormatState: {
43
- headingLevel: number | null;
44
- inBlockquote: boolean;
45
- inCodeBlock: boolean;
46
- } | null;
47
- sourceInlineFormatState: {
48
- boldActive: boolean;
49
- codeActive: boolean;
50
- inlineFormattingAvailable: boolean;
51
- italicActive: boolean;
52
- strikeActive: boolean;
53
- } | null;
54
- sourceListFormatState: {
55
- inBulletList: boolean;
56
- inOrderedList: boolean;
57
- inTaskList: boolean;
58
- } | null;
59
- view: 'syntax' | 'split-view' | 'preview';
60
- } | undefined;
73
+ sharedState: _MarkdownModePluginStateStub | undefined;
61
74
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "116.3.1",
3
+ "version": "116.4.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@atlaskit/activity-provider": "^3.0.0",
32
- "@atlaskit/adf-schema": "^55.2.0",
32
+ "@atlaskit/adf-schema": "^56.0.0",
33
33
  "@atlaskit/adf-utils": "^20.0.0",
34
34
  "@atlaskit/afm-i18n-platform-editor-editor-common": "2.158.0",
35
35
  "@atlaskit/analytics-listeners": "^11.0.0",
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/analytics-next": "^12.0.0",
38
38
  "@atlaskit/atlassian-context": "^1.0.0",
39
39
  "@atlaskit/browser-apis": "^1.0.0",
40
- "@atlaskit/button": "^24.0.0",
40
+ "@atlaskit/button": "^24.1.0",
41
41
  "@atlaskit/codemod-utils": "^5.0.0",
42
42
  "@atlaskit/css": "^1.0.0",
43
43
  "@atlaskit/custom-steps": "^1.0.0",
@@ -54,14 +54,14 @@
54
54
  "@atlaskit/link": "^4.0.0",
55
55
  "@atlaskit/link-datasource": "^6.0.0",
56
56
  "@atlaskit/link-picker": "^6.0.0",
57
- "@atlaskit/media-card": "^81.0.0",
57
+ "@atlaskit/media-card": "^81.1.0",
58
58
  "@atlaskit/media-client": "^37.0.0",
59
59
  "@atlaskit/media-client-react": "^6.0.0",
60
60
  "@atlaskit/media-common": "^14.0.0",
61
61
  "@atlaskit/media-file-preview": "^1.0.0",
62
62
  "@atlaskit/media-picker": "^72.0.0",
63
63
  "@atlaskit/media-ui": "^30.1.0",
64
- "@atlaskit/media-viewer": "^54.0.0",
64
+ "@atlaskit/media-viewer": "^54.1.0",
65
65
  "@atlaskit/mention": "^27.1.0",
66
66
  "@atlaskit/menu": "^9.0.0",
67
67
  "@atlaskit/object": "^2.0.0",
@@ -73,13 +73,13 @@
73
73
  "@atlaskit/prosemirror-history": "^1.0.0",
74
74
  "@atlaskit/react-ufo": "^7.1.0",
75
75
  "@atlaskit/section-message": "^9.0.0",
76
- "@atlaskit/smart-card": "^45.1.0",
76
+ "@atlaskit/smart-card": "^45.2.0",
77
77
  "@atlaskit/smart-user-picker": "^11.0.0",
78
78
  "@atlaskit/spinner": "^20.0.0",
79
79
  "@atlaskit/task-decision": "^21.1.0",
80
80
  "@atlaskit/teams-app-config": "^2.0.0",
81
81
  "@atlaskit/textfield": "^9.0.0",
82
- "@atlaskit/tmp-editor-statsig": "^107.1.0",
82
+ "@atlaskit/tmp-editor-statsig": "^108.3.0",
83
83
  "@atlaskit/tokens": "^14.0.0",
84
84
  "@atlaskit/tooltip": "^23.0.0",
85
85
  "@atlaskit/width-detector": "^6.0.0",