@atlaskit/renderer 109.29.3 → 109.29.4
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 +9 -0
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- 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/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/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 +1 -1
- package/dist/types/react/nodes/decisionItem.d.ts +1 -1
- package/dist/types/react/nodes/emoji.d.ts +3 -3
- package/dist/types/react/nodes/extension.d.ts +5 -6
- package/dist/types/react/nodes/heading.d.ts +3 -3
- package/dist/types/react/nodes/paragraph.d.ts +1 -1
- package/dist/types/react/nodes/status.d.ts +1 -1
- package/dist/types/react/nodes/task-item-with-providers.d.ts +2 -2
- package/dist/types/react/nodes/taskItem.d.ts +3 -3
- package/dist/types/react/nodes/taskList.d.ts +1 -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/react/utils/performance/RenderTracking.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/RendererActionsContext/WithRendererActions.d.ts +2 -2
- package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
- package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +1 -1
- package/dist/types/ui/annotations/draft/dom.d.ts +1 -1
- package/dist/types/ui/annotations/draft/position.d.ts +1 -1
- package/dist/types/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-inline-comments-filter.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/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/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 +1 -1
- package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/extension.d.ts +5 -6
- package/dist/types-ts4.5/react/nodes/heading.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/paragraph.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/status.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/taskItem.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/taskList.d.ts +1 -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/react/utils/performance/RenderTracking.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/RendererActionsContext/WithRendererActions.d.ts +2 -2
- package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/draft/text.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/use-feature-flags.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EmojiAttributes } from '@atlaskit/adf-schema';
|
|
2
|
-
import { EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
1
|
+
import { type EmojiAttributes } from '@atlaskit/adf-schema';
|
|
2
|
+
import { type EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
3
3
|
import { PureComponent } from 'react';
|
|
4
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
+
import { type ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
export interface EmojiProps extends EmojiAttributes {
|
|
6
6
|
providers?: ProviderFactory;
|
|
7
7
|
resourceConfig?: EmojiResourceConfig;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { RendererContext } from '../types';
|
|
4
|
-
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
2
|
+
import { type Mark as PMMark, type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { type RendererContext } from '../types';
|
|
4
|
+
import { type ExtensionLayout } from '@atlaskit/adf-schema';
|
|
5
5
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
6
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
import { type ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
7
|
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
8
8
|
export interface Props {
|
|
9
9
|
extensionHandlers?: ExtensionHandlers;
|
|
@@ -64,8 +64,7 @@ declare const _default: {
|
|
|
64
64
|
UNSAFE_componentWillMount?(): void;
|
|
65
65
|
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
66
66
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
67
|
-
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
68
|
-
/** We keep rendering the default content */
|
|
67
|
+
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
69
68
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
70
69
|
};
|
|
71
70
|
new (props: Props, context: any): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { NodeProps } from '../types';
|
|
4
|
-
import { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
|
|
2
|
+
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { type NodeProps } from '../types';
|
|
4
|
+
import { type HeadingAnchorLinksProps } from '../../ui/Renderer/types';
|
|
5
5
|
export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
6
|
declare function Heading(props: NodeProps<{
|
|
7
7
|
level: HeadingLevels;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Component, ReactNode } from 'react';
|
|
1
|
+
import { Component, type ReactNode } from 'react';
|
|
2
2
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
3
|
+
import { type ContentRef, type TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
4
4
|
export interface Props {
|
|
5
5
|
taskId: string;
|
|
6
6
|
objectAri: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PureComponent, ReactNode } from 'react';
|
|
1
|
+
import { PureComponent, type ReactNode } from 'react';
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { RendererContext } from '../types';
|
|
4
|
-
import { NodeProps } from '../types';
|
|
3
|
+
import { type RendererContext } from '../types';
|
|
4
|
+
import { type NodeProps } from '../types';
|
|
5
5
|
export interface Props {
|
|
6
6
|
localId: string;
|
|
7
7
|
rendererContext?: RendererContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RendererAppearance } from '../../ui/Renderer/types';
|
|
1
|
+
import { type RendererAppearance } from '../../ui/Renderer/types';
|
|
2
2
|
export declare const isFullWidthAppearance: (appearance: RendererAppearance) => boolean;
|
|
3
3
|
export declare const isFullPageAppearance: (appearance: RendererAppearance) => boolean;
|
|
4
4
|
export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
|
|
1
|
+
import { type HeadingAnchorLinksProps } from '../../ui/Renderer/types';
|
|
2
2
|
export declare function isNestedHeaderLinksEnabled(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): boolean;
|
|
3
3
|
export declare function getActiveHeadingId(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import { type Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare function getListIndentLevel(path: Node[]): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AnalyticsEventPayload } from '../../../analytics/events';
|
|
2
|
-
import { ACTION_SUBJECT, ACTION } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { type ACTION_SUBJECT, type ACTION } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
export type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
|
|
4
4
|
type RenderActions = ACTION.RE_RENDERED;
|
|
5
5
|
type RenderActionSubjects = ACTION_SUBJECT.RENDERER;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Serializer } from './serializer';
|
|
1
|
+
import { type Serializer } from './serializer';
|
|
2
2
|
import type { ADFStage } from '@atlaskit/editor-common/validator';
|
|
3
3
|
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import { AnalyticsEventPayload } from './analytics/events';
|
|
6
|
-
import { RendererAppearance } from './ui/Renderer/types';
|
|
4
|
+
import { type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import { type AnalyticsEventPayload } from './analytics/events';
|
|
6
|
+
import { type RendererAppearance } from './ui/Renderer/types';
|
|
7
7
|
export interface RenderOutput<T> {
|
|
8
8
|
result: T;
|
|
9
9
|
stat: RenderOutputStat;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Fragment, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Serializer } from '../serializer';
|
|
1
|
+
import { type Fragment, type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { type Serializer } from '../serializer';
|
|
3
3
|
export default class TextSerializer implements Serializer<string> {
|
|
4
4
|
private schema;
|
|
5
5
|
constructor(schema: Schema);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import { type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export type NodeReducer = (node: PMNode, schema: Schema) => string;
|
|
3
3
|
export declare const reduce: NodeReducer;
|
|
4
4
|
export declare const nodeToReducerMapping: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import RendererActions from '../../actions/index';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type RendererActions from '../../actions/index';
|
|
3
3
|
export interface WithRendererActionsProps {
|
|
4
4
|
render(actions: RendererActions): ReactNode | null;
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import RendererActions from '../../actions/index';
|
|
3
3
|
export declare const RendererContext: React.Context<RendererActions>;
|
|
4
4
|
type RendererActionsContextProps = PropsWithChildren<{
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InsertDraftPosition, Position, TextPosition } from '../types';
|
|
1
|
+
import { InsertDraftPosition, type Position, type TextPosition } from '../types';
|
|
2
2
|
export declare const calcInsertDraftPositionOnText: ({ start: startTextPosition, end: endTextPosition }: TextPosition, position: Position) => InsertDraftPosition | false;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RendererContextProps } from './renderer-context';
|
|
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": "109.29.
|
|
3
|
+
"version": "109.29.4",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"runReact18": true
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-schema": "^36.
|
|
27
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
28
28
|
"@atlaskit/adf-utils": "^19.2.0",
|
|
29
29
|
"@atlaskit/analytics-listeners": "^8.9.0",
|
|
30
30
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
31
31
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
32
|
-
"@atlaskit/button": "^17.
|
|
32
|
+
"@atlaskit/button": "^17.16.0",
|
|
33
33
|
"@atlaskit/code": "^15.2.0",
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^81.0.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.13.0",
|
|
36
36
|
"@atlaskit/editor-palette": "1.6.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/media-ui": "^25.10.0",
|
|
48
48
|
"@atlaskit/media-viewer": "^48.5.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
50
|
-
"@atlaskit/smart-card": "^
|
|
50
|
+
"@atlaskit/smart-card": "^27.0.0",
|
|
51
51
|
"@atlaskit/status": "^1.4.0",
|
|
52
52
|
"@atlaskit/task-decision": "^17.10.0",
|
|
53
53
|
"@atlaskit/theme": "^12.8.0",
|