@atlaskit/editor-common 114.50.3 → 114.51.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,16 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 114.51.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`2c2360f6ef073`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c2360f6ef073) -
8
+ Move \_MarkdownModePluginStub to @atlaskit/editor-common
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 114.50.3
4
15
 
5
16
  ### Patch Changes
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "114.50.2";
22
+ var packageVersion = "114.50.3";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -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 = "114.50.2";
27
+ var packageVersion = "114.50.3";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "114.50.2";
7
+ const packageVersion = "114.50.3";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -0,0 +1 @@
1
+ export {};
@@ -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 = "114.50.2";
17
+ const packageVersion = "114.50.3";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "114.50.2";
13
+ var packageVersion = "114.50.3";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -0,0 +1 @@
1
+ export {};
@@ -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 = "114.50.2";
24
+ var packageVersion = "114.50.3";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -13,6 +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
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';
17
18
  export type { MarkOptions, NodeOptions } from './copy-button';
18
19
  export type { ContextPanelHandler } from './context-panel';
@@ -0,0 +1,61 @@
1
+ import type { NextEditorPlugin } from './index';
2
+ /**
3
+ * Duck-typed mirror of `@atlassian/editor-plugin-markdown-mode`'s
4
+ * `MarkdownModePlugin`, covering all actions and `sharedState` fields
5
+ * declared by that plugin.
6
+ *
7
+ * We avoid importing the real type because `@atlaskit/editor-plugin-text-formatting`
8
+ * publishes to public npm while `@atlassian/editor-plugin-markdown-mode` only
9
+ * publishes to Atlassian's internal registry — re-exporting the cross-namespace
10
+ * type in this package's `.d.ts` would leave the type unresolvable for external
11
+ * consumers. TS structural typing means the real plugin (when loaded by the host)
12
+ * satisfies this stub, so runtime calls are still type-correct.
13
+ *
14
+ * Maintenance: this stub is NOT compile-time checked against the source-of-truth
15
+ * `MarkdownModePlugin` type. If markdown-mode renames, removes, or changes the
16
+ * signature of any of the actions/shared-state fields listed below, the mismatch
17
+ * surfaces only at runtime (stale toolbar state, no-op clicks). Keep the action
18
+ * signatures and `sharedState` fields here in sync with
19
+ * `@atlassian/editor-plugin-markdown-mode/src/markdownModePluginType.ts`.
20
+ */
21
+ export type _MarkdownModePluginStub = NextEditorPlugin<'markdownMode', {
22
+ actions: {
23
+ dispatchSourceCommand: (cmd: unknown) => boolean;
24
+ registerSourceCommandDispatch: (dispatcher: ((cmd: unknown) => boolean) | null) => void;
25
+ setSourceBlockFormatState: (state: unknown) => void;
26
+ setSourceFormatState: (state: unknown) => void;
27
+ setSourceInlineFormatState: (state: unknown) => void;
28
+ setSourceListFormatState: (state: unknown) => void;
29
+ setView: (view: 'syntax' | 'split-view' | 'preview') => void;
30
+ toggleSourceBlockquote: () => boolean;
31
+ toggleSourceBold: () => boolean;
32
+ toggleSourceBulletList: () => boolean;
33
+ toggleSourceHeading: (level: 1 | 2 | 3 | 4 | 5 | 6) => boolean;
34
+ toggleSourceInlineCode: () => boolean;
35
+ toggleSourceItalic: () => boolean;
36
+ toggleSourceOrderedList: () => boolean;
37
+ toggleSourceStrike: () => boolean;
38
+ toggleSourceTaskList: () => boolean;
39
+ };
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;
61
+ }>;
@@ -13,6 +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
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';
17
18
  export type { MarkOptions, NodeOptions } from './copy-button';
18
19
  export type { ContextPanelHandler } from './context-panel';
@@ -0,0 +1,61 @@
1
+ import type { NextEditorPlugin } from './index';
2
+ /**
3
+ * Duck-typed mirror of `@atlassian/editor-plugin-markdown-mode`'s
4
+ * `MarkdownModePlugin`, covering all actions and `sharedState` fields
5
+ * declared by that plugin.
6
+ *
7
+ * We avoid importing the real type because `@atlaskit/editor-plugin-text-formatting`
8
+ * publishes to public npm while `@atlassian/editor-plugin-markdown-mode` only
9
+ * publishes to Atlassian's internal registry — re-exporting the cross-namespace
10
+ * type in this package's `.d.ts` would leave the type unresolvable for external
11
+ * consumers. TS structural typing means the real plugin (when loaded by the host)
12
+ * satisfies this stub, so runtime calls are still type-correct.
13
+ *
14
+ * Maintenance: this stub is NOT compile-time checked against the source-of-truth
15
+ * `MarkdownModePlugin` type. If markdown-mode renames, removes, or changes the
16
+ * signature of any of the actions/shared-state fields listed below, the mismatch
17
+ * surfaces only at runtime (stale toolbar state, no-op clicks). Keep the action
18
+ * signatures and `sharedState` fields here in sync with
19
+ * `@atlassian/editor-plugin-markdown-mode/src/markdownModePluginType.ts`.
20
+ */
21
+ export type _MarkdownModePluginStub = NextEditorPlugin<'markdownMode', {
22
+ actions: {
23
+ dispatchSourceCommand: (cmd: unknown) => boolean;
24
+ registerSourceCommandDispatch: (dispatcher: ((cmd: unknown) => boolean) | null) => void;
25
+ setSourceBlockFormatState: (state: unknown) => void;
26
+ setSourceFormatState: (state: unknown) => void;
27
+ setSourceInlineFormatState: (state: unknown) => void;
28
+ setSourceListFormatState: (state: unknown) => void;
29
+ setView: (view: 'syntax' | 'split-view' | 'preview') => void;
30
+ toggleSourceBlockquote: () => boolean;
31
+ toggleSourceBold: () => boolean;
32
+ toggleSourceBulletList: () => boolean;
33
+ toggleSourceHeading: (level: 1 | 2 | 3 | 4 | 5 | 6) => boolean;
34
+ toggleSourceInlineCode: () => boolean;
35
+ toggleSourceItalic: () => boolean;
36
+ toggleSourceOrderedList: () => boolean;
37
+ toggleSourceStrike: () => boolean;
38
+ toggleSourceTaskList: () => boolean;
39
+ };
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;
61
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "114.50.3",
3
+ "version": "114.51.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/"
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/editor-tables": "^2.10.0",
58
58
  "@atlaskit/editor-toolbar": "^1.8.0",
59
59
  "@atlaskit/editor-toolbar-model": "^0.5.0",
60
- "@atlaskit/emoji": "^70.12.0",
60
+ "@atlaskit/emoji": "^70.13.0",
61
61
  "@atlaskit/icon": "^35.3.0",
62
62
  "@atlaskit/link": "^3.4.0",
63
63
  "@atlaskit/link-datasource": "^5.5.0",