@atlaskit/editor-common 78.30.2 → 78.31.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,15 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 78.31.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934) [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) - bumped editor-prosemirror version to 4.0.0
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 78.30.2
4
14
 
5
15
  ### Patch Changes
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
16
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "78.30.2";
19
+ var packageVersion = "78.31.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "78.30.2";
23
+ var packageVersion = "78.31.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "78.30.2";
3
+ const packageVersion = "78.31.0";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "78.30.2";
10
+ const packageVersion = "78.31.0";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "78.30.2";
9
+ var packageVersion = "78.31.0";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -15,7 +15,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
15
15
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
16
16
  import Layer from '../Layer';
17
17
  var packageName = "@atlaskit/editor-common";
18
- var packageVersion = "78.30.2";
18
+ var packageVersion = "78.31.0";
19
19
  var halfFocusRing = 1;
20
20
  var dropOffset = '0, 8';
21
21
  var DropList = /*#__PURE__*/function (_Component) {
@@ -15,7 +15,5 @@ interface Props {
15
15
  }
16
16
  declare const MemoizedElementSearchWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Props & WrappedComponentProps, "intl"> & {
17
17
  forwardedRef?: React.Ref<any> | undefined;
18
- } & {
19
- children?: React.ReactNode;
20
18
  } & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>>;
21
19
  export default MemoizedElementSearchWithAnalytics;
@@ -19,5 +19,19 @@ export type StatelessElementBrowserProps = {
19
19
  emptyStateHandler?: EmptyStateHandler;
20
20
  viewMoreItem?: QuickInsertItem;
21
21
  } & WithAnalyticsEventsProps;
22
- declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<StatelessElementBrowserProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "mode" | "analyticsContext" | "categories" | "onSelectCategory" | "selectedCategory" | "items" | "emptyStateHandler" | "searchTerm" | "onInsertItem" | "onSearch" | "onSelectItem" | "viewMoreItem" | "showCategories" | "showSearch"> & React.RefAttributes<any>>>;
22
+ declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<{
23
+ categories?: Category[] | undefined;
24
+ items: QuickInsertItem[];
25
+ onSearch: (searchTerm: string) => void;
26
+ onSelectCategory: (category: Category) => void;
27
+ onSelectItem?: ((item: QuickInsertItem) => void) | undefined;
28
+ onInsertItem: (item: QuickInsertItem) => void;
29
+ selectedCategory?: string | undefined;
30
+ showSearch: boolean;
31
+ showCategories: boolean;
32
+ mode: keyof typeof Modes;
33
+ searchTerm?: string | undefined;
34
+ emptyStateHandler?: EmptyStateHandler | undefined;
35
+ viewMoreItem?: QuickInsertItem | undefined;
36
+ } & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "mode" | "analyticsContext" | "categories" | "onSelectCategory" | "selectedCategory" | "items" | "emptyStateHandler" | "searchTerm" | "onInsertItem" | "onSearch" | "onSelectItem" | "viewMoreItem" | "showCategories" | "showSearch"> & React.RefAttributes<any>>>;
23
37
  export default MemoizedElementBrowser;
@@ -115,5 +115,5 @@ export declare class HyperlinkLinkAddToolbar extends PureComponent<Props, State>
115
115
  export declare const HyperlinkLinkAddToolbarWithIntl: React.FC<import("react-intl-next").WithIntlProps<HyperlinkLinkAddToolbarProps>> & {
116
116
  WrappedComponent: React.ComponentType<HyperlinkLinkAddToolbarProps>;
117
117
  };
118
- declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<HyperlinkLinkAddToolbarProps>>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
118
+ declare const _default: React.ForwardRefExoticComponent<Omit<import("react-intl-next").WithIntlProps<HyperlinkLinkAddToolbarProps>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
119
119
  export default _default;
@@ -3,29 +3,28 @@ import React from 'react';
3
3
  import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
4
  import type { PaletteColor, PaletteTooltipMessages } from '../../ui-color';
5
5
  import type { Position as PopupPosition } from '../../ui/Popup/utils';
6
- type Props = WithAnalyticsEventsProps & {
7
- currentColor?: string;
8
- title?: string;
9
- isAriaExpanded?: boolean;
10
- onChange?: (color: PaletteColor) => void;
6
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & {
7
+ currentColor?: string | undefined;
8
+ title?: string | undefined;
9
+ isAriaExpanded?: boolean | undefined;
10
+ onChange?: ((color: PaletteColor) => void) | undefined;
11
11
  colorPalette: PaletteColor[];
12
12
  placement: string;
13
- cols?: number;
14
- alignX?: 'left' | 'right' | 'center' | 'end';
13
+ cols?: number | undefined;
14
+ alignX?: "left" | "right" | "center" | "end" | undefined;
15
15
  size?: {
16
16
  width: string;
17
17
  height: string;
18
- };
19
- mountPoint?: HTMLElement;
20
- setDisableParentScroll?: (disable: boolean) => void;
21
- hexToPaletteColor?: (hexColor: string) => string | undefined;
22
- paletteColorTooltipMessages?: PaletteTooltipMessages;
18
+ } | undefined;
19
+ mountPoint?: HTMLElement | undefined;
20
+ setDisableParentScroll?: ((disable: boolean) => void) | undefined;
21
+ hexToPaletteColor?: ((hexColor: string) => string | undefined) | undefined;
22
+ paletteColorTooltipMessages?: PaletteTooltipMessages | undefined;
23
23
  /**
24
24
  * After picking the color the default behaviour is to focus the color picker button.
25
25
  * To prevent this use skipFocusButtonAfterPick.
26
26
  */
27
- skipFocusButtonAfterPick?: boolean;
28
- absoluteOffset?: PopupPosition;
29
- };
30
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "isAriaExpanded" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
27
+ skipFocusButtonAfterPick?: boolean | undefined;
28
+ absoluteOffset?: PopupPosition | undefined;
29
+ }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "isAriaExpanded" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
31
30
  export default _default;
@@ -15,7 +15,5 @@ interface Props {
15
15
  }
16
16
  declare const MemoizedElementSearchWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Props & WrappedComponentProps, "intl"> & {
17
17
  forwardedRef?: React.Ref<any> | undefined;
18
- } & {
19
- children?: React.ReactNode;
20
18
  } & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>>;
21
19
  export default MemoizedElementSearchWithAnalytics;
@@ -19,5 +19,19 @@ export type StatelessElementBrowserProps = {
19
19
  emptyStateHandler?: EmptyStateHandler;
20
20
  viewMoreItem?: QuickInsertItem;
21
21
  } & WithAnalyticsEventsProps;
22
- declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<StatelessElementBrowserProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "mode" | "analyticsContext" | "categories" | "onSelectCategory" | "selectedCategory" | "items" | "emptyStateHandler" | "searchTerm" | "onInsertItem" | "onSearch" | "onSelectItem" | "viewMoreItem" | "showCategories" | "showSearch"> & React.RefAttributes<any>>>;
22
+ declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<{
23
+ categories?: Category[] | undefined;
24
+ items: QuickInsertItem[];
25
+ onSearch: (searchTerm: string) => void;
26
+ onSelectCategory: (category: Category) => void;
27
+ onSelectItem?: ((item: QuickInsertItem) => void) | undefined;
28
+ onInsertItem: (item: QuickInsertItem) => void;
29
+ selectedCategory?: string | undefined;
30
+ showSearch: boolean;
31
+ showCategories: boolean;
32
+ mode: keyof typeof Modes;
33
+ searchTerm?: string | undefined;
34
+ emptyStateHandler?: EmptyStateHandler | undefined;
35
+ viewMoreItem?: QuickInsertItem | undefined;
36
+ } & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "mode" | "analyticsContext" | "categories" | "onSelectCategory" | "selectedCategory" | "items" | "emptyStateHandler" | "searchTerm" | "onInsertItem" | "onSearch" | "onSelectItem" | "viewMoreItem" | "showCategories" | "showSearch"> & React.RefAttributes<any>>>;
23
37
  export default MemoizedElementBrowser;
@@ -115,5 +115,5 @@ export declare class HyperlinkLinkAddToolbar extends PureComponent<Props, State>
115
115
  export declare const HyperlinkLinkAddToolbarWithIntl: React.FC<import("react-intl-next").WithIntlProps<HyperlinkLinkAddToolbarProps>> & {
116
116
  WrappedComponent: React.ComponentType<HyperlinkLinkAddToolbarProps>;
117
117
  };
118
- declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<HyperlinkLinkAddToolbarProps>>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
118
+ declare const _default: React.ForwardRefExoticComponent<Omit<import("react-intl-next").WithIntlProps<HyperlinkLinkAddToolbarProps>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
119
119
  export default _default;
@@ -3,29 +3,28 @@ import React from 'react';
3
3
  import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
4
  import type { PaletteColor, PaletteTooltipMessages } from '../../ui-color';
5
5
  import type { Position as PopupPosition } from '../../ui/Popup/utils';
6
- type Props = WithAnalyticsEventsProps & {
7
- currentColor?: string;
8
- title?: string;
9
- isAriaExpanded?: boolean;
10
- onChange?: (color: PaletteColor) => void;
6
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & {
7
+ currentColor?: string | undefined;
8
+ title?: string | undefined;
9
+ isAriaExpanded?: boolean | undefined;
10
+ onChange?: ((color: PaletteColor) => void) | undefined;
11
11
  colorPalette: PaletteColor[];
12
12
  placement: string;
13
- cols?: number;
14
- alignX?: 'left' | 'right' | 'center' | 'end';
13
+ cols?: number | undefined;
14
+ alignX?: "left" | "right" | "center" | "end" | undefined;
15
15
  size?: {
16
16
  width: string;
17
17
  height: string;
18
- };
19
- mountPoint?: HTMLElement;
20
- setDisableParentScroll?: (disable: boolean) => void;
21
- hexToPaletteColor?: (hexColor: string) => string | undefined;
22
- paletteColorTooltipMessages?: PaletteTooltipMessages;
18
+ } | undefined;
19
+ mountPoint?: HTMLElement | undefined;
20
+ setDisableParentScroll?: ((disable: boolean) => void) | undefined;
21
+ hexToPaletteColor?: ((hexColor: string) => string | undefined) | undefined;
22
+ paletteColorTooltipMessages?: PaletteTooltipMessages | undefined;
23
23
  /**
24
24
  * After picking the color the default behaviour is to focus the color picker button.
25
25
  * To prevent this use skipFocusButtonAfterPick.
26
26
  */
27
- skipFocusButtonAfterPick?: boolean;
28
- absoluteOffset?: PopupPosition;
29
- };
30
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "isAriaExpanded" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
27
+ skipFocusButtonAfterPick?: boolean | undefined;
28
+ absoluteOffset?: PopupPosition | undefined;
29
+ }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "isAriaExpanded" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
31
30
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "78.30.2",
3
+ "version": "78.31.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/"
@@ -99,22 +99,22 @@
99
99
  "@atlaskit/adf-utils": "^19.0.0",
100
100
  "@atlaskit/analytics-listeners": "^8.9.0",
101
101
  "@atlaskit/analytics-namespaced-context": "^6.9.0",
102
- "@atlaskit/analytics-next": "^9.2.0",
102
+ "@atlaskit/analytics-next": "^9.3.0",
103
103
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
104
- "@atlaskit/button": "^17.13.0",
104
+ "@atlaskit/button": "^17.14.0",
105
105
  "@atlaskit/code": "^15.1.0",
106
106
  "@atlaskit/codemod-utils": "^4.2.0",
107
- "@atlaskit/custom-steps": "^0.0.19",
108
- "@atlaskit/editor-json-transformer": "^8.10.0",
107
+ "@atlaskit/custom-steps": "^0.1.0",
108
+ "@atlaskit/editor-json-transformer": "^8.11.0",
109
109
  "@atlaskit/editor-palette": "1.5.3",
110
- "@atlaskit/editor-prosemirror": "3.0.0",
110
+ "@atlaskit/editor-prosemirror": "4.0.0",
111
111
  "@atlaskit/editor-shared-styles": "^2.9.0",
112
- "@atlaskit/editor-tables": "^2.6.0",
112
+ "@atlaskit/editor-tables": "^2.7.0",
113
113
  "@atlaskit/emoji": "^67.6.0",
114
114
  "@atlaskit/icon": "^22.1.0",
115
115
  "@atlaskit/icon-object": "^6.3.0",
116
116
  "@atlaskit/in-product-testing": "^0.2.0",
117
- "@atlaskit/link-datasource": "^1.28.0",
117
+ "@atlaskit/link-datasource": "^1.29.0",
118
118
  "@atlaskit/link-picker": "^1.35.0",
119
119
  "@atlaskit/media-card": "^77.11.0",
120
120
  "@atlaskit/media-client": "^26.3.0",