@atlaskit/renderer 109.7.6 → 109.7.7

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/react/nodes/extensionFrame.js +0 -1
  3. package/dist/cjs/react/nodes/panel.js +2 -0
  4. package/dist/cjs/ui/Renderer/index.js +1 -1
  5. package/dist/cjs/ui/annotations/element/mark.js +1 -4
  6. package/dist/es2019/react/nodes/extensionFrame.js +0 -1
  7. package/dist/es2019/react/nodes/panel.js +2 -0
  8. package/dist/es2019/ui/Renderer/index.js +1 -1
  9. package/dist/es2019/ui/annotations/draft/component.js +0 -1
  10. package/dist/es2019/ui/annotations/element/mark.js +1 -2
  11. package/dist/esm/react/nodes/extensionFrame.js +0 -1
  12. package/dist/esm/react/nodes/panel.js +2 -0
  13. package/dist/esm/ui/Renderer/index.js +1 -1
  14. package/dist/esm/ui/annotations/draft/component.js +0 -1
  15. package/dist/esm/ui/annotations/element/mark.js +1 -2
  16. package/dist/types/react/nodes/extensionFrame.d.ts +4 -4
  17. package/dist/types/react/nodes/multiBodiedExtension.d.ts +3 -3
  18. package/dist/types/react/nodes/table/sticky.d.ts +3 -3
  19. package/dist/types/ui/annotations/draft/component.d.ts +2 -4
  20. package/dist/types/ui/annotations/element/index.d.ts +4 -4
  21. package/dist/types/ui/annotations/element/mark.d.ts +4 -4
  22. package/dist/types/ui/annotations/index.d.ts +3 -3
  23. package/dist/types/ui/annotations/types.d.ts +2 -2
  24. package/dist/types-ts4.5/react/nodes/extensionFrame.d.ts +4 -4
  25. package/dist/types-ts4.5/react/nodes/multiBodiedExtension.d.ts +3 -3
  26. package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +3 -3
  27. package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +2 -4
  28. package/dist/types-ts4.5/ui/annotations/element/index.d.ts +4 -4
  29. package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +4 -4
  30. package/dist/types-ts4.5/ui/annotations/index.d.ts +3 -3
  31. package/dist/types-ts4.5/ui/annotations/types.d.ts +2 -2
  32. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 109.7.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#80085](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80085) [`7febfed958dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7febfed958dd) - Update usage of `React.FC` to explicity include `children`
8
+
3
9
  ## 109.7.6
4
10
 
5
11
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.default = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _colors = require("@atlaskit/theme/colors");
11
- var _react2 = _interopRequireDefault(require("react"));
12
11
  var _templateObject;
13
12
  /** @jsx jsx */
14
13
  var ExtensionFrame = function ExtensionFrame(props) {
@@ -24,8 +24,10 @@ var PanelStyled = function PanelStyled(_ref) {
24
24
  var backgroundColor = _ref.backgroundColor,
25
25
  hasIcon = _ref.hasIcon,
26
26
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
27
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- nested css mixins are violations
27
28
  var styles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n &.", " {\n ", "\n\n &[data-panel-type=", "] {\n ", "\n }\n }\n "])), _panel.PanelSharedCssClassName.prefix, (0, _panel.panelSharedStylesWithoutPrefix)(), _adfSchema.PanelType.CUSTOM, hasIcon ? '' : 'padding-left: 12px;padding-right: 12px;');
28
29
  if (props['data-panel-type'] === _adfSchema.PanelType.CUSTOM && backgroundColor) {
30
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- nested css mixins are violations
29
31
  styles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n &.", " {\n ", "\n }\n\n &[data-panel-type=", "] {\n background-color: ", ";\n ", "\n }\n "])), _panel.PanelSharedCssClassName.prefix, (0, _panel.panelSharedStylesWithoutPrefix)(), _adfSchema.PanelType.CUSTOM, (0, _editorPalette.hexToEditorBackgroundPaletteColor)(backgroundColor) || backgroundColor, hasIcon ? '' : 'padding-left: 12px;padding-right: 12px;');
30
32
  }
31
33
  return (0, _react2.jsx)("div", (0, _extends2.default)({
@@ -55,7 +55,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
55
55
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
56
56
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
57
57
  var packageName = "@atlaskit/renderer";
58
- var packageVersion = "109.7.6";
58
+ var packageVersion = "109.7.7";
59
59
  var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
60
60
  (0, _inherits2.default)(Renderer, _PureComponent);
61
61
  var _super = _createSuper(Renderer);
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -10,14 +9,12 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
10
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
12
11
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
- var _react = _interopRequireWildcard(require("react"));
12
+ var _react = require("react");
14
13
  var _react2 = require("@emotion/react");
15
14
  var _styles = require("@atlaskit/editor-common/styles");
16
15
  var _adfSchema = require("@atlaskit/adf-schema");
17
16
  var _templateObject;
18
17
  /** @jsx jsx */
19
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
- 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; }
21
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
19
  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) { (0, _defineProperty2.default)(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; }
23
20
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState` is not object-safe
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { jsx, css } from '@emotion/react';
4
4
  import { N30 } from '@atlaskit/theme/colors';
5
- import React from 'react';
6
5
  const ExtensionFrame = props => {
7
6
  const containerCSS = css`
8
7
  border: 1px solid ${`var(--ds-border, ${N30})`};
@@ -14,6 +14,7 @@ const PanelStyled = ({
14
14
  hasIcon,
15
15
  ...props
16
16
  }) => {
17
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- nested css mixins are violations
17
18
  let styles = css`
18
19
  &.${PanelSharedCssClassName.prefix} {
19
20
  ${panelSharedStylesWithoutPrefix()}
@@ -24,6 +25,7 @@ const PanelStyled = ({
24
25
  }
25
26
  `;
26
27
  if (props['data-panel-type'] === PanelType.CUSTOM && backgroundColor) {
28
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- nested css mixins are violations
27
29
  styles = css`
28
30
  &.${PanelSharedCssClassName.prefix} {
29
31
  ${panelSharedStylesWithoutPrefix()}
@@ -36,7 +36,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
36
36
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
37
37
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
38
38
  const packageName = "@atlaskit/renderer";
39
- const packageVersion = "109.7.6";
39
+ const packageVersion = "109.7.7";
40
40
  export class Renderer extends PureComponent {
41
41
  constructor(props) {
42
42
  super(props);
@@ -1,6 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
-
4
3
  import React, { Fragment } from 'react';
5
4
  import { css, jsx } from '@emotion/react';
6
5
  import { InsertDraftPosition } from '../types';
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
-
4
- import React, { useMemo, useCallback } from 'react';
3
+ import { useMemo, useCallback } from 'react';
5
4
  import { css, jsx } from '@emotion/react';
6
5
  import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
7
6
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
@@ -4,7 +4,6 @@ var _templateObject;
4
4
 
5
5
  import { jsx, css } from '@emotion/react';
6
6
  import { N30 } from '@atlaskit/theme/colors';
7
- import React from 'react';
8
7
  var ExtensionFrame = function ExtensionFrame(props) {
9
8
  var containerCSS = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n min-height: 100px;\n "])), "var(--ds-border, ".concat(N30, ")"));
10
9
  return jsx("div", {
@@ -17,8 +17,10 @@ var PanelStyled = function PanelStyled(_ref) {
17
17
  var backgroundColor = _ref.backgroundColor,
18
18
  hasIcon = _ref.hasIcon,
19
19
  props = _objectWithoutProperties(_ref, _excluded);
20
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- nested css mixins are violations
20
21
  var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.", " {\n ", "\n\n &[data-panel-type=", "] {\n ", "\n }\n }\n "])), PanelSharedCssClassName.prefix, panelSharedStylesWithoutPrefix(), PanelType.CUSTOM, hasIcon ? '' : 'padding-left: 12px;padding-right: 12px;');
21
22
  if (props['data-panel-type'] === PanelType.CUSTOM && backgroundColor) {
23
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- nested css mixins are violations
22
24
  styles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &.", " {\n ", "\n }\n\n &[data-panel-type=", "] {\n background-color: ", ";\n ", "\n }\n "])), PanelSharedCssClassName.prefix, panelSharedStylesWithoutPrefix(), PanelType.CUSTOM, hexToEditorBackgroundPaletteColor(backgroundColor) || backgroundColor, hasIcon ? '' : 'padding-left: 12px;padding-right: 12px;');
23
25
  }
24
26
  return jsx("div", _extends({
@@ -46,7 +46,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
46
46
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
47
47
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
48
48
  var packageName = "@atlaskit/renderer";
49
- var packageVersion = "109.7.6";
49
+ var packageVersion = "109.7.7";
50
50
  export var Renderer = /*#__PURE__*/function (_PureComponent) {
51
51
  _inherits(Renderer, _PureComponent);
52
52
  var _super = _createSuper(Renderer);
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
3
  var _templateObject;
4
4
  /** @jsx jsx */
5
-
6
5
  import React, { Fragment } from 'react';
7
6
  import { css, jsx } from '@emotion/react';
8
7
  import { InsertDraftPosition } from '../types';
@@ -6,8 +6,7 @@ var _templateObject;
6
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
7
  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; }
8
8
  /** @jsx jsx */
9
-
10
- import React, { useMemo, useCallback } from 'react';
9
+ import { useMemo, useCallback } from 'react';
11
10
  import { css, jsx } from '@emotion/react';
12
11
  import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
13
12
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
@@ -1,13 +1,13 @@
1
1
  /** @jsx jsx */
2
+ /// <reference types="react" />
2
3
  import { jsx } from '@emotion/react';
3
- import React from 'react';
4
4
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { RendererContext } from '../types';
6
6
  import type { Serializer } from '../..';
7
7
  import type { ExtensionLayout } from '@atlaskit/adf-schema';
8
8
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
9
9
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
10
- export interface Props {
10
+ export type Props = React.PropsWithChildren<{
11
11
  serializer: Serializer<any>;
12
12
  extensionHandlers?: ExtensionHandlers;
13
13
  rendererContext: RendererContext;
@@ -20,6 +20,6 @@ export interface Props {
20
20
  content?: any;
21
21
  layout?: ExtensionLayout;
22
22
  localId?: string;
23
- }
24
- declare const ExtensionFrame: (props: React.PropsWithChildren<Props>) => jsx.JSX.Element;
23
+ }>;
24
+ declare const ExtensionFrame: (props: Props) => jsx.JSX.Element;
25
25
  export default ExtensionFrame;
@@ -7,7 +7,7 @@ import type { Serializer } from '../..';
7
7
  import type { ExtensionLayout } from '@atlaskit/adf-schema';
8
8
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
9
9
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
10
- export interface Props {
10
+ export type Props = React.PropsWithChildren<{
11
11
  serializer: Serializer<any>;
12
12
  extensionHandlers?: ExtensionHandlers;
13
13
  rendererContext: RendererContext;
@@ -21,6 +21,6 @@ export interface Props {
21
21
  layout?: ExtensionLayout;
22
22
  localId?: string;
23
23
  marks?: PMMark[];
24
- }
25
- declare const MultiBodiedExtension: (props: React.PropsWithChildren<Props>) => jsx.JSX.Element;
24
+ }>;
25
+ declare const MultiBodiedExtension: (props: Props) => jsx.JSX.Element;
26
26
  export default MultiBodiedExtension;
@@ -7,13 +7,13 @@ import type { TableLayout } from '@atlaskit/adf-schema';
7
7
  import type { RendererAppearance } from '../../../ui/Renderer/types';
8
8
  export type StickyMode = 'none' | 'stick' | 'pin-bottom';
9
9
  export declare const tableStickyPadding = 8;
10
- interface FixedProps {
10
+ type FixedProps = React.PropsWithChildren<{
11
11
  top?: number;
12
12
  wrapperWidth: number;
13
13
  mode: StickyMode;
14
14
  rendererAppearance: RendererAppearance;
15
- }
16
- export declare const FixedTableDiv: (props: React.PropsWithChildren<FixedProps>) => jsx.JSX.Element;
15
+ }>;
16
+ export declare const FixedTableDiv: (props: FixedProps) => jsx.JSX.Element;
17
17
  export type StickyTableProps = {
18
18
  left?: number;
19
19
  top?: number;
@@ -1,5 +1,4 @@
1
1
  /** @jsx jsx */
2
- import type { ReactNode } from 'react';
3
2
  import React from 'react';
4
3
  import { jsx } from '@emotion/react';
5
4
  import type { Position } from '../types';
@@ -14,10 +13,9 @@ type ApplyAnnotationsProps = {
14
13
  };
15
14
  export declare const getAnnotationIndex: (annotationPosition: InsertDraftPosition, fragmentCount: number) => number;
16
15
  export declare const applyAnnotationOnText: ({ texts, shouldApplyAnnotationAt, draftPosition, }: ApplyAnnotationsProps) => JSX.Element[];
17
- type Props = {
16
+ type Props = React.PropsWithChildren<{
18
17
  startPos: number;
19
18
  endPos: number;
20
- children: ReactNode;
21
- };
19
+ }>;
22
20
  export declare const TextWithAnnotationDraft: ({ startPos, endPos, children, }: Props) => jsx.JSX.Element;
23
21
  export {};
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema';
3
- type MarkElementProps = {
2
+ import { type AnnotationId, type AnnotationDataAttributes, type AnnotationTypes } from '@atlaskit/adf-schema';
3
+ type MarkElementProps = React.PropsWithChildren<{
4
4
  id: AnnotationId;
5
5
  annotationParentIds: AnnotationId[];
6
6
  dataAttributes: AnnotationDataAttributes;
7
7
  annotationType: AnnotationTypes;
8
- };
9
- declare const MarkElement: ({ annotationParentIds, children, dataAttributes, id, }: React.PropsWithChildren<MarkElementProps>) => JSX.Element;
8
+ }>;
9
+ declare const MarkElement: ({ annotationParentIds, children, dataAttributes, id, }: MarkElementProps) => JSX.Element;
10
10
  export { MarkElement };
@@ -1,15 +1,15 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { jsx } from '@emotion/react';
3
3
  import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
4
4
  import type { AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema';
5
5
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
6
- type MarkComponentProps = {
6
+ type MarkComponentProps = React.PropsWithChildren<{
7
7
  id: AnnotationId;
8
8
  annotationParentIds: AnnotationId[];
9
9
  dataAttributes: AnnotationDataAttributes;
10
10
  state: AnnotationMarkStates | null;
11
11
  hasFocus: boolean;
12
12
  onClick: (props: OnAnnotationClickPayload) => void;
13
- };
14
- export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, onClick, }: React.PropsWithChildren<MarkComponentProps>) => jsx.JSX.Element;
13
+ }>;
14
+ export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, onClick, }: MarkComponentProps) => jsx.JSX.Element;
15
15
  export {};
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { AnnotationsWrapperProps } from './types';
3
- export declare const AnnotationsWrapper: (props: React.PropsWithChildren<AnnotationsWrapperProps>) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { type AnnotationsWrapperProps } from './types';
3
+ export declare const AnnotationsWrapper: (props: AnnotationsWrapperProps) => JSX.Element;
4
4
  export { TextWithAnnotationDraft } from './draft';
5
5
  export { MarkElement as AnnotationMark } from './element';
@@ -11,11 +11,11 @@ export type Position = {
11
11
  from: number;
12
12
  to: number;
13
13
  };
14
- export type AnnotationsWrapperProps = {
14
+ export type AnnotationsWrapperProps = React.PropsWithChildren<{
15
15
  adfDocument: JSONDocNode;
16
16
  annotationProvider: AnnotationProviders | null | undefined;
17
17
  rendererRef: React.RefObject<HTMLDivElement>;
18
- };
18
+ }>;
19
19
  export type TextPosition = {
20
20
  start: number;
21
21
  end: number;
@@ -1,13 +1,13 @@
1
+ /// <reference types="react" />
1
2
  /** @jsx jsx */
2
3
  import { jsx } from '@emotion/react';
3
- import React from 'react';
4
4
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { RendererContext } from '../types';
6
6
  import type { Serializer } from '../..';
7
7
  import type { ExtensionLayout } from '@atlaskit/adf-schema';
8
8
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
9
9
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
10
- export interface Props {
10
+ export type Props = React.PropsWithChildren<{
11
11
  serializer: Serializer<any>;
12
12
  extensionHandlers?: ExtensionHandlers;
13
13
  rendererContext: RendererContext;
@@ -20,6 +20,6 @@ export interface Props {
20
20
  content?: any;
21
21
  layout?: ExtensionLayout;
22
22
  localId?: string;
23
- }
24
- declare const ExtensionFrame: (props: React.PropsWithChildren<Props>) => jsx.JSX.Element;
23
+ }>;
24
+ declare const ExtensionFrame: (props: Props) => jsx.JSX.Element;
25
25
  export default ExtensionFrame;
@@ -7,7 +7,7 @@ import type { Serializer } from '../..';
7
7
  import type { ExtensionLayout } from '@atlaskit/adf-schema';
8
8
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
9
9
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
10
- export interface Props {
10
+ export type Props = React.PropsWithChildren<{
11
11
  serializer: Serializer<any>;
12
12
  extensionHandlers?: ExtensionHandlers;
13
13
  rendererContext: RendererContext;
@@ -21,6 +21,6 @@ export interface Props {
21
21
  layout?: ExtensionLayout;
22
22
  localId?: string;
23
23
  marks?: PMMark[];
24
- }
25
- declare const MultiBodiedExtension: (props: React.PropsWithChildren<Props>) => jsx.JSX.Element;
24
+ }>;
25
+ declare const MultiBodiedExtension: (props: Props) => jsx.JSX.Element;
26
26
  export default MultiBodiedExtension;
@@ -7,13 +7,13 @@ import type { TableLayout } from '@atlaskit/adf-schema';
7
7
  import type { RendererAppearance } from '../../../ui/Renderer/types';
8
8
  export type StickyMode = 'none' | 'stick' | 'pin-bottom';
9
9
  export declare const tableStickyPadding = 8;
10
- interface FixedProps {
10
+ type FixedProps = React.PropsWithChildren<{
11
11
  top?: number;
12
12
  wrapperWidth: number;
13
13
  mode: StickyMode;
14
14
  rendererAppearance: RendererAppearance;
15
- }
16
- export declare const FixedTableDiv: (props: React.PropsWithChildren<FixedProps>) => jsx.JSX.Element;
15
+ }>;
16
+ export declare const FixedTableDiv: (props: FixedProps) => jsx.JSX.Element;
17
17
  export type StickyTableProps = {
18
18
  left?: number;
19
19
  top?: number;
@@ -1,5 +1,4 @@
1
1
  /** @jsx jsx */
2
- import type { ReactNode } from 'react';
3
2
  import React from 'react';
4
3
  import { jsx } from '@emotion/react';
5
4
  import type { Position } from '../types';
@@ -14,10 +13,9 @@ type ApplyAnnotationsProps = {
14
13
  };
15
14
  export declare const getAnnotationIndex: (annotationPosition: InsertDraftPosition, fragmentCount: number) => number;
16
15
  export declare const applyAnnotationOnText: ({ texts, shouldApplyAnnotationAt, draftPosition, }: ApplyAnnotationsProps) => JSX.Element[];
17
- type Props = {
16
+ type Props = React.PropsWithChildren<{
18
17
  startPos: number;
19
18
  endPos: number;
20
- children: ReactNode;
21
- };
19
+ }>;
22
20
  export declare const TextWithAnnotationDraft: ({ startPos, endPos, children, }: Props) => jsx.JSX.Element;
23
21
  export {};
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema';
3
- type MarkElementProps = {
2
+ import { type AnnotationId, type AnnotationDataAttributes, type AnnotationTypes } from '@atlaskit/adf-schema';
3
+ type MarkElementProps = React.PropsWithChildren<{
4
4
  id: AnnotationId;
5
5
  annotationParentIds: AnnotationId[];
6
6
  dataAttributes: AnnotationDataAttributes;
7
7
  annotationType: AnnotationTypes;
8
- };
9
- declare const MarkElement: ({ annotationParentIds, children, dataAttributes, id, }: React.PropsWithChildren<MarkElementProps>) => JSX.Element;
8
+ }>;
9
+ declare const MarkElement: ({ annotationParentIds, children, dataAttributes, id, }: MarkElementProps) => JSX.Element;
10
10
  export { MarkElement };
@@ -1,15 +1,15 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { jsx } from '@emotion/react';
3
3
  import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
4
4
  import type { AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema';
5
5
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
6
- type MarkComponentProps = {
6
+ type MarkComponentProps = React.PropsWithChildren<{
7
7
  id: AnnotationId;
8
8
  annotationParentIds: AnnotationId[];
9
9
  dataAttributes: AnnotationDataAttributes;
10
10
  state: AnnotationMarkStates | null;
11
11
  hasFocus: boolean;
12
12
  onClick: (props: OnAnnotationClickPayload) => void;
13
- };
14
- export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, onClick, }: React.PropsWithChildren<MarkComponentProps>) => jsx.JSX.Element;
13
+ }>;
14
+ export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, onClick, }: MarkComponentProps) => jsx.JSX.Element;
15
15
  export {};
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { AnnotationsWrapperProps } from './types';
3
- export declare const AnnotationsWrapper: (props: React.PropsWithChildren<AnnotationsWrapperProps>) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { type AnnotationsWrapperProps } from './types';
3
+ export declare const AnnotationsWrapper: (props: AnnotationsWrapperProps) => JSX.Element;
4
4
  export { TextWithAnnotationDraft } from './draft';
5
5
  export { MarkElement as AnnotationMark } from './element';
@@ -11,11 +11,11 @@ export type Position = {
11
11
  from: number;
12
12
  to: number;
13
13
  };
14
- export type AnnotationsWrapperProps = {
14
+ export type AnnotationsWrapperProps = React.PropsWithChildren<{
15
15
  adfDocument: JSONDocNode;
16
16
  annotationProvider: AnnotationProviders | null | undefined;
17
17
  rendererRef: React.RefObject<HTMLDivElement>;
18
- };
18
+ }>;
19
19
  export type TextPosition = {
20
20
  start: number;
21
21
  end: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "109.7.6",
3
+ "version": "109.7.7",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/analytics-next": "^9.2.0",
32
32
  "@atlaskit/button": "^17.7.0",
33
33
  "@atlaskit/code": "^15.1.0",
34
- "@atlaskit/editor-common": "^78.11.0",
34
+ "@atlaskit/editor-common": "^78.12.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.10.0",
36
36
  "@atlaskit/editor-palette": "1.5.2",
37
37
  "@atlaskit/editor-prosemirror": "3.0.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/status": "^1.4.0",
52
52
  "@atlaskit/task-decision": "^17.9.0",
53
53
  "@atlaskit/theme": "^12.6.0",
54
- "@atlaskit/tokens": "^1.40.0",
54
+ "@atlaskit/tokens": "^1.41.0",
55
55
  "@atlaskit/tooltip": "^18.1.0",
56
56
  "@babel/runtime": "^7.0.0",
57
57
  "@emotion/react": "^11.7.1",
@@ -71,7 +71,7 @@
71
71
  "@af/integration-testing": "*",
72
72
  "@af/visual-regression": "*",
73
73
  "@atlaskit/analytics-gas-types": "^5.1.0",
74
- "@atlaskit/css-reset": "^6.6.0",
74
+ "@atlaskit/css-reset": "^6.7.0",
75
75
  "@atlaskit/editor-test-helpers": "^18.14.0",
76
76
  "@atlaskit/link-provider": "^1.8.0",
77
77
  "@atlaskit/link-test-helpers": "^6.2.0",