@atlaskit/renderer 128.3.5 → 128.3.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.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/react/nodes/heading.js +2 -2
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +2 -2
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/heading.js +2 -2
- package/dist/es2019/react/utils/inject-props.js +0 -1
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +2 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/heading.js +2 -2
- package/dist/esm/react/utils/inject-props.js +0 -1
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +2 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/analytics/analyticsContext.d.ts +1 -1
- package/dist/types/react/hooks/use-bidi-warnings.d.ts +1 -1
- package/dist/types/react/index.d.ts +1 -1
- package/dist/types/react/marks/code.d.ts +2 -2
- package/dist/types/react/marks/confluence-inline-comment.d.ts +1 -1
- package/dist/types/react/marks/data-consumer.d.ts +2 -2
- package/dist/types/react/marks/em.d.ts +1 -1
- package/dist/types/react/marks/fontSize.d.ts +2 -2
- package/dist/types/react/marks/fragment.d.ts +2 -2
- package/dist/types/react/marks/indentation.d.ts +2 -2
- package/dist/types/react/marks/strike.d.ts +1 -1
- package/dist/types/react/marks/strong.d.ts +1 -1
- package/dist/types/react/marks/subsup.d.ts +2 -2
- package/dist/types/react/marks/underline.d.ts +1 -1
- package/dist/types/react/marks/unsupportedMark.d.ts +1 -1
- package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +1 -1
- package/dist/types/react/nodes/caption.d.ts +1 -1
- package/dist/types/react/nodes/date.d.ts +2 -2
- package/dist/types/react/nodes/decisionItem.d.ts +1 -1
- package/dist/types/react/nodes/emoji.d.ts +4 -4
- package/dist/types/react/nodes/extension.d.ts +4 -4
- package/dist/types/react/nodes/heading.d.ts +2 -2
- package/dist/types/react/nodes/inlineCard.d.ts +3 -7
- package/dist/types/react/nodes/mention.d.ts +1 -1
- package/dist/types/react/nodes/paragraph.d.ts +1 -1
- package/dist/types/react/nodes/status.d.ts +2 -2
- package/dist/types/react/nodes/table.d.ts +1 -1
- package/dist/types/react/nodes/task-item-with-providers.d.ts +3 -2
- package/dist/types/react/nodes/taskItem.d.ts +3 -2
- package/dist/types/react/nodes/taskList.d.ts +2 -1
- package/dist/types/react/utils/appearance.d.ts +1 -1
- package/dist/types/react/utils/inject-props.d.ts +1 -1
- package/dist/types/react/utils/links.d.ts +1 -1
- package/dist/types/react/utils/lists.d.ts +1 -1
- package/dist/types/render-document.d.ts +4 -4
- package/dist/types/serializer.d.ts +1 -1
- package/dist/types/text/index.d.ts +2 -2
- package/dist/types/text/nodes/blockquote.d.ts +1 -1
- package/dist/types/text/nodes/bulletList.d.ts +1 -1
- package/dist/types/text/nodes/date.d.ts +1 -1
- package/dist/types/text/nodes/decisionItem.d.ts +1 -1
- package/dist/types/text/nodes/hardBreak.d.ts +1 -1
- package/dist/types/text/nodes/heading.d.ts +1 -1
- package/dist/types/text/nodes/index.d.ts +1 -1
- package/dist/types/text/nodes/inlineCard.d.ts +1 -1
- package/dist/types/text/nodes/listItem.d.ts +1 -1
- package/dist/types/text/nodes/mediaGroup.d.ts +1 -1
- package/dist/types/text/nodes/mention.d.ts +1 -1
- package/dist/types/text/nodes/orderedList.d.ts +1 -1
- package/dist/types/text/nodes/panel.d.ts +1 -1
- package/dist/types/text/nodes/paragraph.d.ts +1 -1
- package/dist/types/text/nodes/rule.d.ts +1 -1
- package/dist/types/text/nodes/status.d.ts +1 -1
- package/dist/types/text/nodes/table.d.ts +1 -1
- package/dist/types/text/nodes/taskItem.d.ts +1 -1
- package/dist/types/text/nodes/unknown.d.ts +1 -1
- package/dist/types/ui/Renderer/RendererStyleContainer.d.ts +1 -1
- package/dist/types/ui/RendererActionsContext/WithRendererActions.d.ts +2 -1
- package/dist/types/ui/RendererActionsContext/index.d.ts +2 -1
- package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -1
- package/dist/types/ui/annotations/contexts/AnnotationManagerContext.d.ts +5 -3
- package/dist/types/ui/annotations/draft/dom.d.ts +1 -1
- package/dist/types/ui/annotations/draft/position.d.ts +2 -1
- package/dist/types/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types/ui/annotations/element/index.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/user-selection.d.ts +1 -1
- package/dist/types/ui/annotations/index.d.ts +1 -1
- package/dist/types/ui/annotations/view/index.d.ts +1 -1
- package/dist/types/use-feature-flags.d.ts +1 -1
- package/dist/types-ts4.5/analytics/analyticsContext.d.ts +1 -1
- package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +1 -1
- package/dist/types-ts4.5/react/index.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/code.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/data-consumer.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/em.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/fontSize.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/fragment.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/indentation.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/strike.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/strong.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/subsup.d.ts +2 -2
- package/dist/types-ts4.5/react/marks/underline.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/caption.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/date.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +4 -4
- package/dist/types-ts4.5/react/nodes/extension.d.ts +4 -4
- package/dist/types-ts4.5/react/nodes/heading.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +3 -7
- package/dist/types-ts4.5/react/nodes/mention.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/paragraph.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/status.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/table.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +3 -2
- package/dist/types-ts4.5/react/nodes/taskItem.d.ts +3 -2
- package/dist/types-ts4.5/react/nodes/taskList.d.ts +2 -1
- package/dist/types-ts4.5/react/utils/appearance.d.ts +1 -1
- package/dist/types-ts4.5/react/utils/inject-props.d.ts +1 -1
- package/dist/types-ts4.5/react/utils/links.d.ts +1 -1
- package/dist/types-ts4.5/react/utils/lists.d.ts +1 -1
- package/dist/types-ts4.5/render-document.d.ts +4 -4
- package/dist/types-ts4.5/serializer.d.ts +1 -1
- package/dist/types-ts4.5/text/index.d.ts +2 -2
- package/dist/types-ts4.5/text/nodes/blockquote.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/bulletList.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/date.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/decisionItem.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/hardBreak.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/heading.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/index.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/inlineCard.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/listItem.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/mediaGroup.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/mention.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/orderedList.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/panel.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/paragraph.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/rule.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/status.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/table.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/taskItem.d.ts +1 -1
- package/dist/types-ts4.5/text/nodes/unknown.d.ts +1 -1
- package/dist/types-ts4.5/ui/Renderer/RendererStyleContainer.d.ts +1 -1
- package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +2 -1
- package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -1
- package/dist/types-ts4.5/ui/annotations/contexts/AnnotationManagerContext.d.ts +5 -3
- package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +2 -1
- package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/element/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/hooks/user-selection.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/view/index.d.ts +1 -1
- package/dist/types-ts4.5/use-feature-flags.d.ts +1 -1
- package/package.json +6 -6
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
|
-
import {
|
|
6
|
+
import type { RendererWrapperProps } from './index';
|
|
7
7
|
export declare const textHighlightPaddingStyles: import("@emotion/utils").SerializedStyles;
|
|
8
8
|
type RendererStyleContainerProps = Pick<RendererWrapperProps, 'onClick' | 'onMouseDown' | 'appearance' | 'contentMode' | 'allowNestedHeaderLinks' | 'allowColumnSorting' | 'useBlockRenderForCodeBlock' | 'allowAnnotations' | 'allowTableResizing' | 'innerRef' | 'children' | 'allowRendererContainerStyles'> & {
|
|
9
9
|
testId?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithChildren } from 'react';
|
|
2
3
|
import RendererActions from '../../actions/index';
|
|
3
4
|
export declare const RendererContext: React.Context<RendererActions>;
|
|
4
5
|
type RendererActionsContextProps = PropsWithChildren<{
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
4
|
+
import type { AnnotationId } from '@atlaskit/adf-schema';
|
|
3
5
|
import type { AnnotationManager, ActionResult } from '@atlaskit/editor-common/annotation';
|
|
4
|
-
import {
|
|
6
|
+
import type { AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
|
|
5
7
|
interface AnnotationState {
|
|
6
8
|
id: AnnotationId;
|
|
7
9
|
markState: AnnotationMarkStates;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { InsertDraftPosition
|
|
1
|
+
import { InsertDraftPosition } from '../types';
|
|
2
|
+
import type { Position, TextPosition } from '../types';
|
|
2
3
|
export declare const calcInsertDraftPositionOnText: ({ start: startTextPosition, end: endTextPosition }: TextPosition, position: Position) => InsertDraftPosition | false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { TextPosition, Position } from '../types';
|
|
3
3
|
export declare const findTextString: (reactNode: React.ReactNode) => string | null;
|
|
4
4
|
type Offset = {
|
|
5
5
|
endOffset: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
3
|
type MarkElementProps = React.PropsWithChildren<{
|
|
4
4
|
annotationParentIds: AnnotationId[];
|
|
5
5
|
annotationType: AnnotationTypes;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RendererContextProps } from './renderer-context';
|
|
2
2
|
export declare const useFeatureFlags: () => RendererContextProps["featureFlags"] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "128.3.
|
|
3
|
+
"version": "128.3.7",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/editor-smart-link-draggable": "^0.2.0",
|
|
40
40
|
"@atlaskit/emoji": "^69.10.0",
|
|
41
41
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
42
|
-
"@atlaskit/icon": "^33.
|
|
42
|
+
"@atlaskit/icon": "^33.1.0",
|
|
43
43
|
"@atlaskit/link": "^3.3.0",
|
|
44
44
|
"@atlaskit/link-datasource": "^4.34.0",
|
|
45
45
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
57
57
|
"@atlaskit/react-ufo": "^5.5.0",
|
|
58
|
-
"@atlaskit/smart-card": "^43.
|
|
58
|
+
"@atlaskit/smart-card": "^43.28.0",
|
|
59
59
|
"@atlaskit/status": "^3.1.0",
|
|
60
60
|
"@atlaskit/task-decision": "^19.3.0",
|
|
61
61
|
"@atlaskit/theme": "^22.0.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
63
|
-
"@atlaskit/tokens": "^11.
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^47.0.0",
|
|
63
|
+
"@atlaskit/tokens": "^11.3.0",
|
|
64
64
|
"@atlaskit/tooltip": "^21.0.0",
|
|
65
65
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"uuid": "^3.1.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^112.
|
|
76
|
+
"@atlaskit/editor-common": "^112.10.0",
|
|
77
77
|
"@atlaskit/link-provider": "^4.3.0",
|
|
78
78
|
"@atlaskit/media-core": "^37.0.0",
|
|
79
79
|
"react": "^18.2.0",
|