@atlaskit/renderer 109.53.3 → 110.0.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 +12 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/react/hooks/use-in-viewport.js +3 -3
- package/dist/cjs/react/index.js +2 -2
- package/dist/cjs/react/marks/backgroundColor.js +1 -1
- package/dist/cjs/react/marks/confluence-inline-comment.js +2 -2
- package/dist/cjs/react/marks/index.js +1 -1
- package/dist/cjs/react/marks/link.js +1 -1
- package/dist/cjs/react/marks/textColor.js +1 -1
- package/dist/cjs/react/nodes/blockCard.js +16 -25
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/cjs/react/nodes/date.js +1 -1
- package/dist/cjs/react/nodes/decisionList.js +2 -2
- package/dist/cjs/react/nodes/embedCard.js +1 -4
- package/dist/cjs/react/nodes/fallback.js +6 -6
- package/dist/cjs/react/nodes/heading-anchor.js +1 -1
- package/dist/cjs/react/nodes/index.js +1 -1
- package/dist/cjs/react/nodes/media/index.js +2 -2
- package/dist/cjs/react/nodes/mediaGroup.js +2 -2
- package/dist/cjs/react/nodes/mediaInline.js +3 -3
- package/dist/cjs/react/nodes/mediaSingle/index.js +1 -1
- package/dist/cjs/react/nodes/mention.js +1 -1
- package/dist/cjs/react/nodes/multiBodiedExtension.js +1 -1
- package/dist/cjs/react/nodes/status.js +1 -1
- package/dist/cjs/react/nodes/table.js +5 -5
- package/dist/cjs/react/nodes/tableRow.js +1 -1
- package/dist/cjs/react/nodes/taskItem.js +2 -2
- package/dist/cjs/react/nodes/taskList.js +2 -2
- package/dist/cjs/react/utils/EditorMediaClientProvider.js +1 -1
- package/dist/cjs/react/utils/segment-text.js +3 -3
- package/dist/cjs/ui/Expand.js +2 -5
- package/dist/cjs/ui/ExtensionRenderer.js +1 -1
- package/dist/cjs/ui/MediaCard.js +4 -6
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +3 -3
- package/dist/cjs/ui/Renderer/style.js +2 -2
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +1 -1
- package/dist/cjs/ui/RendererActionsContext/index.js +1 -1
- package/dist/cjs/ui/SmartCardStorage.js +1 -1
- package/dist/cjs/ui/active-header-id-provider.js +1 -1
- package/dist/cjs/ui/annotations/context.js +2 -2
- package/dist/cjs/ui/annotations/contexts/AnnotationHoverContext.js +1 -1
- package/dist/cjs/ui/annotations/contexts/AnnotationRangeContext.js +1 -1
- package/dist/cjs/ui/annotations/draft/component.js +1 -1
- package/dist/cjs/ui/annotations/draft/text.js +3 -3
- package/dist/cjs/ui/annotations/element/index.js +1 -1
- package/dist/cjs/ui/annotations/hover/mounter.js +1 -1
- package/dist/cjs/ui/annotations/hover/range-validator.js +1 -1
- package/dist/cjs/ui/annotations/selection/mounter.js +1 -1
- package/dist/cjs/ui/annotations/selection/range-validator.js +1 -1
- package/dist/cjs/ui/annotations/view/index.js +1 -1
- package/dist/cjs/ui/annotations/wrapper.js +1 -1
- package/dist/cjs/ui/index.js +1 -1
- package/dist/cjs/utils.js +1 -7
- package/dist/es2019/react/index.js +2 -2
- package/dist/es2019/react/nodes/blockCard.js +1 -7
- package/dist/es2019/react/nodes/embedCard.js +2 -3
- package/dist/es2019/react/nodes/mediaInline.js +2 -2
- package/dist/es2019/react/nodes/table.js +1 -1
- package/dist/es2019/ui/Expand.js +2 -3
- package/dist/es2019/ui/MediaCard.js +2 -4
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/style.js +1 -1
- package/dist/es2019/utils.js +0 -6
- package/dist/esm/react/hooks/use-in-viewport.js +3 -3
- package/dist/esm/react/index.js +2 -2
- package/dist/esm/react/marks/confluence-inline-comment.js +1 -1
- package/dist/esm/react/nodes/blockCard.js +1 -9
- package/dist/esm/react/nodes/decisionList.js +1 -1
- package/dist/esm/react/nodes/embedCard.js +2 -5
- package/dist/esm/react/nodes/fallback.js +6 -6
- package/dist/esm/react/nodes/heading-anchor.js +1 -1
- package/dist/esm/react/nodes/media/index.js +1 -1
- package/dist/esm/react/nodes/mediaGroup.js +1 -1
- package/dist/esm/react/nodes/mediaInline.js +2 -2
- package/dist/esm/react/nodes/table.js +5 -5
- package/dist/esm/react/nodes/tableRow.js +1 -1
- package/dist/esm/react/nodes/taskItem.js +1 -1
- package/dist/esm/react/nodes/taskList.js +1 -1
- package/dist/esm/react/utils/segment-text.js +3 -3
- package/dist/esm/ui/Expand.js +2 -5
- package/dist/esm/ui/MediaCard.js +3 -5
- package/dist/esm/ui/Renderer/ErrorBoundary.js +1 -1
- package/dist/esm/ui/Renderer/index.js +2 -2
- package/dist/esm/ui/Renderer/style.js +1 -1
- package/dist/esm/ui/Renderer/truncated-wrapper.js +1 -1
- package/dist/esm/ui/SmartCardStorage.js +1 -1
- package/dist/esm/ui/annotations/context.js +1 -1
- package/dist/esm/ui/annotations/draft/text.js +3 -3
- package/dist/esm/utils.js +0 -6
- package/dist/types/react/nodes/blockCard.d.ts +4 -0
- package/dist/types/ui/Renderer/types.d.ts +1 -1
- package/dist/types/utils.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/blockCard.d.ts +4 -0
- package/dist/types-ts4.5/ui/Renderer/types.d.ts +1 -1
- package/dist/types-ts4.5/utils.d.ts +0 -2
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export type RendererAppearance = 'comment' | 'full-page' | 'full-width' |
|
|
2
|
+
export type RendererAppearance = 'comment' | 'full-page' | 'full-width' | undefined;
|
|
3
3
|
export type StickyHeaderConfig = {
|
|
4
4
|
offsetTop?: number;
|
|
5
5
|
};
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import type { ADNode } from '@atlaskit/editor-common/validator';
|
|
|
3
3
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import type { Transformer } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
-
import type { RendererAppearance } from './ui/Renderer/types';
|
|
7
6
|
export type TransformerProvider<T> = (schema: Schema) => Transformer<T>;
|
|
8
7
|
export declare class ADFEncoder<T> {
|
|
9
8
|
encode: (value: T) => any;
|
|
@@ -11,7 +10,6 @@ export declare class ADFEncoder<T> {
|
|
|
11
10
|
}
|
|
12
11
|
export declare const getText: (node: PMNode | ADNode) => string;
|
|
13
12
|
export declare const getEventHandler: (eventHandlers?: EventHandlers, type?: keyof EventHandlers, eventName?: string) => any;
|
|
14
|
-
export declare const getPlatform: (rendererAppearance: RendererAppearance) => "web" | "mobile";
|
|
15
13
|
/**
|
|
16
14
|
* Traverse through parent elements of element. Return element for which evaluate(element) returns
|
|
17
15
|
* true. If topElement is reached before evaluate returns true, return false. Does not run evaluate
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export type RendererAppearance = 'comment' | 'full-page' | 'full-width' |
|
|
2
|
+
export type RendererAppearance = 'comment' | 'full-page' | 'full-width' | undefined;
|
|
3
3
|
export type StickyHeaderConfig = {
|
|
4
4
|
offsetTop?: number;
|
|
5
5
|
};
|
|
@@ -3,7 +3,6 @@ import type { ADNode } from '@atlaskit/editor-common/validator';
|
|
|
3
3
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import type { Transformer } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
-
import type { RendererAppearance } from './ui/Renderer/types';
|
|
7
6
|
export type TransformerProvider<T> = (schema: Schema) => Transformer<T>;
|
|
8
7
|
export declare class ADFEncoder<T> {
|
|
9
8
|
encode: (value: T) => any;
|
|
@@ -11,7 +10,6 @@ export declare class ADFEncoder<T> {
|
|
|
11
10
|
}
|
|
12
11
|
export declare const getText: (node: PMNode | ADNode) => string;
|
|
13
12
|
export declare const getEventHandler: (eventHandlers?: EventHandlers, type?: keyof EventHandlers, eventName?: string) => any;
|
|
14
|
-
export declare const getPlatform: (rendererAppearance: RendererAppearance) => "web" | "mobile";
|
|
15
13
|
/**
|
|
16
14
|
* Traverse through parent elements of element. Return element for which evaluate(element) returns
|
|
17
15
|
* true. If topElement is reached before evaluate returns true, return false. Does not run evaluate
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "110.0.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
30
30
|
"@atlaskit/button": "^20.1.0",
|
|
31
31
|
"@atlaskit/code": "^15.6.0",
|
|
32
|
-
"@atlaskit/editor-common": "^
|
|
32
|
+
"@atlaskit/editor-common": "^89.0.0",
|
|
33
33
|
"@atlaskit/editor-json-transformer": "^8.18.0",
|
|
34
34
|
"@atlaskit/editor-palette": "1.6.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "5.0.1",
|