@atlaskit/renderer 103.0.0 → 103.0.2
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 +27 -0
- package/dist/cjs/consts.js +2 -2
- package/dist/cjs/messages.js +1 -1
- package/dist/cjs/react/nodes/panel.js +19 -10
- package/dist/cjs/react/nodes/tableCell.js +8 -26
- package/dist/cjs/ui/ExtensionRenderer.js +9 -2
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/ui/Renderer/style.js +5 -3
- package/dist/cjs/ui/SortingIcon.js +55 -28
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/consts.js +2 -2
- package/dist/es2019/messages.js +1 -1
- package/dist/es2019/react/nodes/panel.js +16 -6
- package/dist/es2019/react/nodes/tableCell.js +8 -27
- package/dist/es2019/ui/ExtensionRenderer.js +7 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/style.js +308 -287
- package/dist/es2019/ui/SortingIcon.js +89 -32
- package/dist/es2019/version.json +1 -1
- package/dist/esm/consts.js +2 -2
- package/dist/esm/messages.js +1 -1
- package/dist/esm/react/nodes/panel.js +18 -10
- package/dist/esm/react/nodes/tableCell.js +8 -26
- package/dist/esm/ui/ExtensionRenderer.js +9 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Renderer/style.js +5 -4
- package/dist/esm/ui/SortingIcon.js +55 -27
- package/dist/esm/version.json +1 -1
- package/dist/types/consts.d.ts +2 -2
- package/dist/types/react/nodes/bodiedExtension.d.ts +2 -1
- package/dist/types/react/nodes/extension.d.ts +2 -1
- package/dist/types/react/nodes/inlineExtension.d.ts +2 -0
- package/dist/types/ui/ExtensionRenderer.d.ts +2 -0
- package/dist/types/ui/SortingIcon.d.ts +4 -1
- package/package.json +19 -23
- package/report.api.md +359 -255
- package/dist/types-ts4.0/actions/index.d.ts +0 -61
- package/dist/types-ts4.0/actions/matches-utils.d.ts +0 -7
- package/dist/types-ts4.0/actions.d.ts +0 -3
- package/dist/types-ts4.0/analytics/analyticsContext.d.ts +0 -6
- package/dist/types-ts4.0/analytics/enums.d.ts +0 -56
- package/dist/types-ts4.0/analytics/events.d.ts +0 -110
- package/dist/types-ts4.0/analytics/unsupported-content.d.ts +0 -10
- package/dist/types-ts4.0/consts.d.ts +0 -12
- package/dist/types-ts4.0/i18n/cs.d.ts +0 -20
- package/dist/types-ts4.0/i18n/da.d.ts +0 -20
- package/dist/types-ts4.0/i18n/de.d.ts +0 -20
- package/dist/types-ts4.0/i18n/en.d.ts +0 -20
- package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -20
- package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -20
- package/dist/types-ts4.0/i18n/es.d.ts +0 -20
- package/dist/types-ts4.0/i18n/et.d.ts +0 -8
- package/dist/types-ts4.0/i18n/fi.d.ts +0 -20
- package/dist/types-ts4.0/i18n/fr.d.ts +0 -20
- package/dist/types-ts4.0/i18n/hu.d.ts +0 -20
- package/dist/types-ts4.0/i18n/index.d.ts +0 -31
- package/dist/types-ts4.0/i18n/it.d.ts +0 -20
- package/dist/types-ts4.0/i18n/ja.d.ts +0 -20
- package/dist/types-ts4.0/i18n/ko.d.ts +0 -20
- package/dist/types-ts4.0/i18n/nb.d.ts +0 -20
- package/dist/types-ts4.0/i18n/nl.d.ts +0 -20
- package/dist/types-ts4.0/i18n/pl.d.ts +0 -20
- package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -20
- package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -8
- package/dist/types-ts4.0/i18n/ru.d.ts +0 -20
- package/dist/types-ts4.0/i18n/sk.d.ts +0 -8
- package/dist/types-ts4.0/i18n/sv.d.ts +0 -20
- package/dist/types-ts4.0/i18n/th.d.ts +0 -20
- package/dist/types-ts4.0/i18n/tr.d.ts +0 -20
- package/dist/types-ts4.0/i18n/uk.d.ts +0 -20
- package/dist/types-ts4.0/i18n/vi.d.ts +0 -20
- package/dist/types-ts4.0/i18n/zh.d.ts +0 -20
- package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -20
- package/dist/types-ts4.0/index.d.ts +0 -11
- package/dist/types-ts4.0/messages.d.ts +0 -61
- package/dist/types-ts4.0/react/hooks/use-bidi-warnings.d.ts +0 -10
- package/dist/types-ts4.0/react/hooks/use-in-viewport.d.ts +0 -5
- package/dist/types-ts4.0/react/hooks/use-observed-width.d.ts +0 -3
- package/dist/types-ts4.0/react/index.d.ts +0 -118
- package/dist/types-ts4.0/react/marks/alignment.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/annotation.d.ts +0 -6
- package/dist/types-ts4.0/react/marks/breakout.d.ts +0 -6
- package/dist/types-ts4.0/react/marks/code.d.ts +0 -16
- package/dist/types-ts4.0/react/marks/confluence-inline-comment.d.ts +0 -8
- package/dist/types-ts4.0/react/marks/data-consumer.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/em.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/fragment.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/indentation.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/index.d.ts +0 -21
- package/dist/types-ts4.0/react/marks/link.d.ts +0 -9
- package/dist/types-ts4.0/react/marks/strike.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/strong.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/subsup.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/textColor.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/underline.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/unsupportedMark.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/unsupportedNodeAttribute.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/blockCard.d.ts +0 -10
- package/dist/types-ts4.0/react/nodes/blockquote.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/bodiedExtension.d.ts +0 -23
- package/dist/types-ts4.0/react/nodes/bulletList.d.ts +0 -5
- package/dist/types-ts4.0/react/nodes/caption.d.ts +0 -4
- package/dist/types-ts4.0/react/nodes/codeBlock/codeBlock.d.ts +0 -14
- package/dist/types-ts4.0/react/nodes/codeBlock/components/codeBlockContainer.d.ts +0 -12
- package/dist/types-ts4.0/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +0 -9
- package/dist/types-ts4.0/react/nodes/codeBlock/windowedCodeBlock.d.ts +0 -4
- package/dist/types-ts4.0/react/nodes/codeBlockCopyButton.d.ts +0 -9
- package/dist/types-ts4.0/react/nodes/date.d.ts +0 -11
- package/dist/types-ts4.0/react/nodes/decisionItem.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/decisionList.d.ts +0 -7
- package/dist/types-ts4.0/react/nodes/doc.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/embedCard.d.ts +0 -17
- package/dist/types-ts4.0/react/nodes/emoji.d.ts +0 -10
- package/dist/types-ts4.0/react/nodes/extension.d.ts +0 -112
- package/dist/types-ts4.0/react/nodes/fallback.d.ts +0 -16
- package/dist/types-ts4.0/react/nodes/hardBreak.d.ts +0 -6
- package/dist/types-ts4.0/react/nodes/heading-anchor.d.ts +0 -14
- package/dist/types-ts4.0/react/nodes/heading.d.ts +0 -14
- package/dist/types-ts4.0/react/nodes/index.d.ts +0 -94
- package/dist/types-ts4.0/react/nodes/inline.d.ts +0 -1
- package/dist/types-ts4.0/react/nodes/inlineCard.d.ts +0 -65
- package/dist/types-ts4.0/react/nodes/inlineExtension.d.ts +0 -16
- package/dist/types-ts4.0/react/nodes/layoutColumn.d.ts +0 -6
- package/dist/types-ts4.0/react/nodes/layoutSection.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/listItem.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/media.d.ts +0 -27
- package/dist/types-ts4.0/react/nodes/mediaGroup.d.ts +0 -29
- package/dist/types-ts4.0/react/nodes/mediaInline.d.ts +0 -20
- package/dist/types-ts4.0/react/nodes/mediaSingle/index.d.ts +0 -23
- package/dist/types-ts4.0/react/nodes/mediaSingle/styles.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/mention.d.ts +0 -13
- package/dist/types-ts4.0/react/nodes/orderedList.d.ts +0 -6
- package/dist/types-ts4.0/react/nodes/panel.d.ts +0 -17
- package/dist/types-ts4.0/react/nodes/paragraph.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/placeholder.d.ts +0 -6
- package/dist/types-ts4.0/react/nodes/rule.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/status.d.ts +0 -10
- package/dist/types-ts4.0/react/nodes/table/colgroup.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/table/sticky.d.ts +0 -38
- package/dist/types-ts4.0/react/nodes/table/table.d.ts +0 -7
- package/dist/types-ts4.0/react/nodes/table/types.d.ts +0 -7
- package/dist/types-ts4.0/react/nodes/table.d.ts +0 -269
- package/dist/types-ts4.0/react/nodes/tableCell.d.ts +0 -81
- package/dist/types-ts4.0/react/nodes/tableRow.d.ts +0 -24
- package/dist/types-ts4.0/react/nodes/task-item-with-providers.d.ts +0 -29
- package/dist/types-ts4.0/react/nodes/taskItem.d.ts +0 -19
- package/dist/types-ts4.0/react/nodes/taskList.d.ts +0 -8
- package/dist/types-ts4.0/react/nodes/text-wrapper.d.ts +0 -8
- package/dist/types-ts4.0/react/nodes/unknownBlock.d.ts +0 -2
- package/dist/types-ts4.0/react/renderer-node.d.ts +0 -4
- package/dist/types-ts4.0/react/types.d.ts +0 -57
- package/dist/types-ts4.0/react/utils/clipboard.d.ts +0 -1
- package/dist/types-ts4.0/react/utils/element-selection.d.ts +0 -9
- package/dist/types-ts4.0/react/utils/getCardClickHandler.d.ts +0 -2
- package/dist/types-ts4.0/react/utils/inject-props.d.ts +0 -6
- package/dist/types-ts4.0/react/utils/links.d.ts +0 -3
- package/dist/types-ts4.0/react/utils/lists.d.ts +0 -2
- package/dist/types-ts4.0/react/utils/performance/RenderTracking.d.ts +0 -15
- package/dist/types-ts4.0/react/utils/use-select-all-trap.d.ts +0 -2
- package/dist/types-ts4.0/render-document.d.ts +0 -23
- package/dist/types-ts4.0/renderer-context.d.ts +0 -9
- package/dist/types-ts4.0/serializer.d.ts +0 -4
- package/dist/types-ts4.0/steps/index.d.ts +0 -14
- package/dist/types-ts4.0/text/index.d.ts +0 -8
- package/dist/types-ts4.0/text/nodes/blockquote.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/bulletList.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/date.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/decisionItem.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/hardBreak.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/heading.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/index.d.ts +0 -6
- package/dist/types-ts4.0/text/nodes/inlineCard.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/listItem.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/mediaGroup.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/mention.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/orderedList.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/panel.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/paragraph.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/rule.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/status.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/table.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/taskItem.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/unknown.d.ts +0 -3
- package/dist/types-ts4.0/text-serializer.d.ts +0 -1
- package/dist/types-ts4.0/types/i18n.d.ts +0 -5
- package/dist/types-ts4.0/types/mediaOptions.d.ts +0 -12
- package/dist/types-ts4.0/types/smartLinksOptions.d.ts +0 -3
- package/dist/types-ts4.0/ui/Expand.d.ts +0 -21
- package/dist/types-ts4.0/ui/ExtensionRenderer.d.ts +0 -40
- package/dist/types-ts4.0/ui/MediaCard.d.ts +0 -77
- package/dist/types-ts4.0/ui/Renderer/ErrorBoundary.d.ts +0 -24
- package/dist/types-ts4.0/ui/Renderer/breakout-ssr.d.ts +0 -11
- package/dist/types-ts4.0/ui/Renderer/click-to-edit.d.ts +0 -6
- package/dist/types-ts4.0/ui/Renderer/index.d.ts +0 -33
- package/dist/types-ts4.0/ui/Renderer/style.d.ts +0 -14
- package/dist/types-ts4.0/ui/Renderer/truncated-wrapper.d.ts +0 -12
- package/dist/types-ts4.0/ui/Renderer/types.d.ts +0 -16
- package/dist/types-ts4.0/ui/RendererActionsContext/WithRendererActions.d.ts +0 -6
- package/dist/types-ts4.0/ui/RendererActionsContext/index.d.ts +0 -9
- package/dist/types-ts4.0/ui/SmartCardStorage.d.ts +0 -60
- package/dist/types-ts4.0/ui/SortingIcon.d.ts +0 -20
- package/dist/types-ts4.0/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +0 -15
- package/dist/types-ts4.0/ui/TaskItemsFormatContext/index.d.ts +0 -2
- package/dist/types-ts4.0/ui/active-header-id-provider.d.ts +0 -18
- package/dist/types-ts4.0/ui/annotations/context.d.ts +0 -27
- package/dist/types-ts4.0/ui/annotations/draft/component.d.ts +0 -20
- package/dist/types-ts4.0/ui/annotations/draft/dom.d.ts +0 -7
- package/dist/types-ts4.0/ui/annotations/draft/index.d.ts +0 -2
- package/dist/types-ts4.0/ui/annotations/draft/position.d.ts +0 -2
- package/dist/types-ts4.0/ui/annotations/draft/text.d.ts +0 -11
- package/dist/types-ts4.0/ui/annotations/element/index.d.ts +0 -10
- package/dist/types-ts4.0/ui/annotations/element/mark.d.ts +0 -14
- package/dist/types-ts4.0/ui/annotations/hooks/index.d.ts +0 -3
- package/dist/types-ts4.0/ui/annotations/hooks/use-events.d.ts +0 -18
- package/dist/types-ts4.0/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +0 -1
- package/dist/types-ts4.0/ui/annotations/hooks/use-inline-comments-filter.d.ts +0 -9
- package/dist/types-ts4.0/ui/annotations/hooks/use-load-annotations.d.ts +0 -6
- package/dist/types-ts4.0/ui/annotations/hooks/user-selection.d.ts +0 -9
- package/dist/types-ts4.0/ui/annotations/hooks/utils.d.ts +0 -2
- package/dist/types-ts4.0/ui/annotations/index.d.ts +0 -5
- package/dist/types-ts4.0/ui/annotations/selection/index.d.ts +0 -1
- package/dist/types-ts4.0/ui/annotations/selection/mounter.d.ts +0 -20
- package/dist/types-ts4.0/ui/annotations/selection/range-validator.d.ts +0 -13
- package/dist/types-ts4.0/ui/annotations/selection/wrapper.d.ts +0 -8
- package/dist/types-ts4.0/ui/annotations/types.d.ts +0 -22
- package/dist/types-ts4.0/ui/annotations/view/index.d.ts +0 -7
- package/dist/types-ts4.0/ui/index.d.ts +0 -1
- package/dist/types-ts4.0/ui/renderer-props.d.ts +0 -100
- package/dist/types-ts4.0/use-feature-flags.d.ts +0 -2
- package/dist/types-ts4.0/utils.d.ts +0 -24
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
|
|
2
|
-
export declare function isNestedHeaderLinksEnabled(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): boolean;
|
|
3
|
-
export declare function getActiveHeadingId(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): string | undefined;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { AnalyticsEventPayload } from '../../../analytics/events';
|
|
2
|
-
import { ACTION_SUBJECT, ACTION } from '../../../analytics/enums';
|
|
3
|
-
export declare type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
|
|
4
|
-
declare type RenderActions = ACTION.RE_RENDERED;
|
|
5
|
-
declare type RenderActionSubjects = ACTION_SUBJECT.RENDERER;
|
|
6
|
-
export declare type RenderTrackingProps<ComponentProps> = {
|
|
7
|
-
componentProps: ComponentProps;
|
|
8
|
-
action: RenderActions;
|
|
9
|
-
actionSubject: RenderActionSubjects;
|
|
10
|
-
handleAnalyticsEvent: FireAnalyticsCallback;
|
|
11
|
-
propsToIgnore?: Array<keyof ComponentProps>;
|
|
12
|
-
useShallow?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare function RenderTracking<Props>(props: RenderTrackingProps<Props>): null;
|
|
15
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Serializer } from './serializer';
|
|
2
|
-
import type { ADFStage } from '@atlaskit/editor-common/validator';
|
|
3
|
-
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { Node as PMNode, Schema } from 'prosemirror-model';
|
|
5
|
-
import { AnalyticsEventPayload } from './analytics/events';
|
|
6
|
-
import { RendererAppearance } from './ui/Renderer/types';
|
|
7
|
-
export interface RenderOutput<T> {
|
|
8
|
-
result: T;
|
|
9
|
-
stat: RenderOutputStat;
|
|
10
|
-
pmDoc?: PMNode;
|
|
11
|
-
}
|
|
12
|
-
export interface RenderOutputStat {
|
|
13
|
-
buildTreeTime?: number;
|
|
14
|
-
sanitizeTime: number;
|
|
15
|
-
serializeTime?: number;
|
|
16
|
-
}
|
|
17
|
-
export interface ResultWithTime<T> {
|
|
18
|
-
output: T;
|
|
19
|
-
time: number;
|
|
20
|
-
}
|
|
21
|
-
declare type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
|
|
22
|
-
export declare const renderDocument: <T>(doc: any, serializer: Serializer<T>, schema?: Schema, adfStage?: ADFStage, useSpecBasedValidator?: boolean, rendererId?: string, dispatchAnalyticsEvent?: DispatchAnalyticsEvent | undefined, unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking | undefined, appearance?: RendererAppearance) => RenderOutput<T | null>;
|
|
23
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare type FeatureFlags = {
|
|
3
|
-
showHoverPreview?: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare type RendererContextProps = {
|
|
6
|
-
featureFlags?: FeatureFlags;
|
|
7
|
-
};
|
|
8
|
-
export declare const useRendererContext: () => RendererContextProps;
|
|
9
|
-
export declare const RendererContextProvider: React.Provider<{}>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Schema } from 'prosemirror-model';
|
|
2
|
-
import { AddMarkStep } from 'prosemirror-transform';
|
|
3
|
-
export declare function resolvePos(node: Node | null, offset: number): number | false;
|
|
4
|
-
interface AnnotationStepOptions {
|
|
5
|
-
schema: Schema;
|
|
6
|
-
annotationId: string;
|
|
7
|
-
annotationType: 'inlineComment';
|
|
8
|
-
}
|
|
9
|
-
export declare function getPosFromRange(range: Range): {
|
|
10
|
-
from: number;
|
|
11
|
-
to: number;
|
|
12
|
-
} | false;
|
|
13
|
-
export declare function createAnnotationStep(from: number, to: number, opts: AnnotationStepOptions): AddMarkStep<Schema<any, any>>;
|
|
14
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Fragment, Schema } from 'prosemirror-model';
|
|
2
|
-
import { Serializer } from '../serializer';
|
|
3
|
-
export default class TextSerializer implements Serializer<string> {
|
|
4
|
-
private schema;
|
|
5
|
-
constructor(schema: Schema);
|
|
6
|
-
serializeFragment(fragment: Fragment): string;
|
|
7
|
-
static fromSchema(schema?: Schema): TextSerializer;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TextSerializer } from './text';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
2
|
-
import { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
|
|
3
|
-
export declare type MediaSSR = {
|
|
4
|
-
mode: SSR;
|
|
5
|
-
config: MediaClientConfig;
|
|
6
|
-
};
|
|
7
|
-
export interface MediaOptions {
|
|
8
|
-
allowLinking?: boolean;
|
|
9
|
-
enableDownloadButton?: boolean;
|
|
10
|
-
featureFlags?: MediaFeatureFlags;
|
|
11
|
-
ssr?: MediaSSR;
|
|
12
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnalyticsEventPayload } from '../analytics/events';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
export declare type StyleProps = {
|
|
6
|
-
expanded?: boolean;
|
|
7
|
-
focused?: boolean;
|
|
8
|
-
'data-node-type'?: 'expand' | 'nestedExpand';
|
|
9
|
-
'data-title'?: string;
|
|
10
|
-
};
|
|
11
|
-
export interface ExpandProps {
|
|
12
|
-
title: string;
|
|
13
|
-
nodeType: 'expand' | 'nestedExpand';
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
16
|
-
nestedHeaderIds?: Array<string>;
|
|
17
|
-
}
|
|
18
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<ExpandProps & WrappedComponentProps<"intl">>> & {
|
|
19
|
-
WrappedComponent: React.ComponentType<ExpandProps & WrappedComponentProps<"intl">>;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RendererContext } from '../react/types';
|
|
3
|
-
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
4
|
-
import { getNodeRenderer } from '@atlaskit/editor-common/extensions';
|
|
5
|
-
import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
6
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
export interface Props {
|
|
8
|
-
type: 'extension' | 'inlineExtension' | 'bodiedExtension';
|
|
9
|
-
extensionHandlers?: ExtensionHandlers;
|
|
10
|
-
providers?: ProviderFactory;
|
|
11
|
-
rendererContext: RendererContext;
|
|
12
|
-
extensionType: string;
|
|
13
|
-
extensionKey: string;
|
|
14
|
-
text?: string;
|
|
15
|
-
parameters?: any;
|
|
16
|
-
content?: any;
|
|
17
|
-
layout?: ExtensionLayout;
|
|
18
|
-
localId?: string;
|
|
19
|
-
children: ({ result }: {
|
|
20
|
-
result?: JSX.Element | null;
|
|
21
|
-
}) => JSX.Element;
|
|
22
|
-
}
|
|
23
|
-
export interface State {
|
|
24
|
-
extensionProvider?: ExtensionProvider | null;
|
|
25
|
-
}
|
|
26
|
-
export default class ExtensionRenderer extends React.Component<Props, State> {
|
|
27
|
-
state: {
|
|
28
|
-
extensionProvider: null;
|
|
29
|
-
};
|
|
30
|
-
mounted: boolean;
|
|
31
|
-
UNSAFE_componentWillMount(): void;
|
|
32
|
-
componentWillUnmount(): void;
|
|
33
|
-
handleProvider: (name: keyof State, providerPromise?: Promise<any> | undefined) => void;
|
|
34
|
-
getNodeRenderer: import("memoize-one").MemoizedFn<typeof getNodeRenderer>;
|
|
35
|
-
renderExtensionNode: (extensionProvider?: ExtensionProvider<any> | null | undefined) => JSX.Element;
|
|
36
|
-
setupAndRenderExtensionNode: (providers: {
|
|
37
|
-
extensionProvider?: Promise<ExtensionProvider<any>> | undefined;
|
|
38
|
-
}) => JSX.Element;
|
|
39
|
-
render(): JSX.Element;
|
|
40
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
3
|
-
import { CardAppearance, CardDimensions, CardOnClickCallback, NumericalCardDimensions } from '@atlaskit/media-card';
|
|
4
|
-
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
5
|
-
import { ImageResizeMode, Identifier, FileState } from '@atlaskit/media-client';
|
|
6
|
-
import { MediaType } from '@atlaskit/adf-schema';
|
|
7
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
8
|
-
import type { ImageStatus } from '@atlaskit/editor-common/utils';
|
|
9
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
10
|
-
import { RendererAppearance } from './Renderer/types';
|
|
11
|
-
import { RendererContext } from '../react/types';
|
|
12
|
-
import { MediaSSR } from '../types/mediaOptions';
|
|
13
|
-
export declare type MediaProvider = {
|
|
14
|
-
viewMediaClientConfig: MediaClientConfig;
|
|
15
|
-
};
|
|
16
|
-
export interface MediaCardProps {
|
|
17
|
-
id?: string;
|
|
18
|
-
mediaProvider?: Promise<MediaProvider>;
|
|
19
|
-
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
20
|
-
eventHandlers?: {
|
|
21
|
-
media?: {
|
|
22
|
-
onClick?: CardOnClickCallback;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
shouldOpenMediaViewer?: boolean;
|
|
26
|
-
type: MediaType;
|
|
27
|
-
collection?: string;
|
|
28
|
-
url?: string;
|
|
29
|
-
cardDimensions?: CardDimensions;
|
|
30
|
-
originalDimensions?: NumericalCardDimensions;
|
|
31
|
-
resizeMode?: ImageResizeMode;
|
|
32
|
-
appearance?: CardAppearance;
|
|
33
|
-
rendererAppearance?: RendererAppearance;
|
|
34
|
-
occurrenceKey?: string;
|
|
35
|
-
imageStatus?: ImageStatus;
|
|
36
|
-
disableOverlay?: boolean;
|
|
37
|
-
useInlinePlayer?: boolean;
|
|
38
|
-
rendererContext?: RendererContext;
|
|
39
|
-
alt?: string;
|
|
40
|
-
featureFlags?: MediaFeatureFlags;
|
|
41
|
-
shouldEnableDownloadButton?: boolean;
|
|
42
|
-
ssr?: MediaSSR;
|
|
43
|
-
}
|
|
44
|
-
export interface State {
|
|
45
|
-
mediaClientConfig?: MediaClientConfig;
|
|
46
|
-
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
47
|
-
fileState?: FileState;
|
|
48
|
-
}
|
|
49
|
-
export declare const getListOfIdentifiersFromDoc: (doc?: ADFEntity | undefined) => Identifier[];
|
|
50
|
-
export declare class MediaCardInternal extends Component<MediaCardProps, State> {
|
|
51
|
-
state: State;
|
|
52
|
-
componentDidMount(): Promise<void>;
|
|
53
|
-
UNSAFE_componentWillReceiveProps(newProps: MediaCardProps): void;
|
|
54
|
-
componentWillUnmount(): void;
|
|
55
|
-
saveFileState: (id: string, mediaClientConfig: MediaClientConfig) => Promise<void>;
|
|
56
|
-
private renderLoadingCard;
|
|
57
|
-
private renderExternal;
|
|
58
|
-
/**
|
|
59
|
-
* We want to call provided `eventHandlers.media.onClick` when it's provided,
|
|
60
|
-
* but we also don't want to call it when it's a video and inline video player is enabled.
|
|
61
|
-
* This is due to consumers normally process this onClick call by opening media viewer and
|
|
62
|
-
* we don't want that to happened described above text.
|
|
63
|
-
*/
|
|
64
|
-
private getOnCardClickCallback;
|
|
65
|
-
render(): JSX.Element | null;
|
|
66
|
-
}
|
|
67
|
-
export declare const getClipboardAttrs: ({ id, alt, collection, contextIdentifierProvider, originalDimensions, fileState, }: {
|
|
68
|
-
id: string;
|
|
69
|
-
alt?: string | undefined;
|
|
70
|
-
collection?: string | undefined;
|
|
71
|
-
contextIdentifierProvider?: ContextIdentifierProvider | undefined;
|
|
72
|
-
originalDimensions?: NumericalCardDimensions | undefined;
|
|
73
|
-
fileState?: FileState | undefined;
|
|
74
|
-
}) => {
|
|
75
|
-
[key: string]: string | number | undefined;
|
|
76
|
-
};
|
|
77
|
-
export declare const MediaCard: React.ComponentClass<MediaCardProps & import("@atlaskit/editor-common/utils").ImageLoaderProps, any>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ComponentCrashErrorAEP } from '../../analytics/events';
|
|
3
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
-
interface ErrorBoundaryProps {
|
|
5
|
-
component: ComponentCrashErrorAEP['actionSubject'];
|
|
6
|
-
componentId?: ComponentCrashErrorAEP['actionSubjectId'];
|
|
7
|
-
fallbackComponent?: React.ReactNode;
|
|
8
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
9
|
-
rethrowError?: boolean;
|
|
10
|
-
}
|
|
11
|
-
interface ErrorBoundaryState {
|
|
12
|
-
errorCaptured: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
15
|
-
state: {
|
|
16
|
-
errorCaptured: boolean;
|
|
17
|
-
};
|
|
18
|
-
private fireAnalyticsEvent;
|
|
19
|
-
private hasFallback;
|
|
20
|
-
private shouldRecover;
|
|
21
|
-
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
22
|
-
render(): React.ReactNode;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* Inline Script that updates breakout node width on client side,
|
|
4
|
-
* before main JavaScript bundle is ready.
|
|
5
|
-
*
|
|
6
|
-
* More info: https://product-fabric.atlassian.net/wiki/spaces/E/pages/1216218119/Renderer+SSR+for+Breakout+Nodes
|
|
7
|
-
*/
|
|
8
|
-
export declare function BreakoutSSRInlineScript(): JSX.Element | null;
|
|
9
|
-
export declare function createBreakoutInlineScript(id: number): string;
|
|
10
|
-
export declare const breakoutInlineScriptContext: string;
|
|
11
|
-
export declare const calcLineLength: any;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if an element is interactive (or otherwise if clicking on it shouldn't transition the
|
|
3
|
-
* renderer to the editor in somewhere like the Jira description
|
|
4
|
-
* @param element
|
|
5
|
-
*/
|
|
6
|
-
export declare function isInteractiveElement(element: HTMLElement | HTMLLinkElement): boolean;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx } from '@emotion/react';
|
|
2
|
-
import { PureComponent } from 'react';
|
|
3
|
-
import { RendererProps } from '../renderer-props';
|
|
4
|
-
export declare const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
5
|
-
export declare const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
6
|
-
export interface Extension<T> {
|
|
7
|
-
extensionKey: string;
|
|
8
|
-
parameters?: T;
|
|
9
|
-
content?: any;
|
|
10
|
-
}
|
|
11
|
-
export type { RendererProps as Props };
|
|
12
|
-
export declare class Renderer extends PureComponent<RendererProps> {
|
|
13
|
-
private providerFactory;
|
|
14
|
-
private serializer;
|
|
15
|
-
private rafID?;
|
|
16
|
-
private editorRef;
|
|
17
|
-
private mouseDownSelection?;
|
|
18
|
-
private id?;
|
|
19
|
-
constructor(props: RendererProps);
|
|
20
|
-
private anchorLinkAnalytics;
|
|
21
|
-
componentDidMount(): void;
|
|
22
|
-
UNSAFE_componentWillReceiveProps(nextProps: RendererProps): void;
|
|
23
|
-
private deriveSerializerProps;
|
|
24
|
-
private featureFlags;
|
|
25
|
-
private fireAnalyticsEvent;
|
|
26
|
-
private getSchema;
|
|
27
|
-
private onMouseDownEditView;
|
|
28
|
-
private handleMouseTripleClickInTables;
|
|
29
|
-
render(): jsx.JSX.Element;
|
|
30
|
-
componentWillUnmount(): void;
|
|
31
|
-
}
|
|
32
|
-
declare const RendererWithAnnotationSelection: (props: RendererProps) => jsx.JSX.Element;
|
|
33
|
-
export default RendererWithAnnotationSelection;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@emotion/react';
|
|
2
|
-
import { RendererAppearance } from './types';
|
|
3
|
-
export declare const FullPagePadding = 32;
|
|
4
|
-
export declare type RendererWrapperProps = {
|
|
5
|
-
appearance?: RendererAppearance;
|
|
6
|
-
allowNestedHeaderLinks: boolean;
|
|
7
|
-
allowColumnSorting: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const headingSizes: {
|
|
10
|
-
[key: string]: {
|
|
11
|
-
[key: string]: number;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare const rendererStyles: (wrapperProps: RendererWrapperProps) => (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { Component } from 'react';
|
|
4
|
-
export interface TruncatedWrapperProps {
|
|
5
|
-
height?: number;
|
|
6
|
-
fadeHeight?: number;
|
|
7
|
-
backgroundColor?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class TruncatedWrapper extends Component<TruncatedWrapperProps, {}> {
|
|
10
|
-
constructor(props: TruncatedWrapperProps);
|
|
11
|
-
render(): jsx.JSX.Element;
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type RendererAppearance = 'comment' | 'full-page' | 'full-width' | 'mobile' | undefined;
|
|
3
|
-
export declare type StickyHeaderConfig = {
|
|
4
|
-
offsetTop?: number;
|
|
5
|
-
};
|
|
6
|
-
export declare type StickyHeaderProps = boolean | ({
|
|
7
|
-
show?: boolean;
|
|
8
|
-
} & StickyHeaderConfig);
|
|
9
|
-
export declare type HeadingAnchorLinksConfig = {
|
|
10
|
-
activeHeadingId?: string;
|
|
11
|
-
allowNestedHeaderLinks?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare type NodeComponentsProps = {
|
|
14
|
-
[key: string]: React.ComponentType<any>;
|
|
15
|
-
};
|
|
16
|
-
export declare type HeadingAnchorLinksProps = boolean | HeadingAnchorLinksConfig;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import RendererActions from '../../actions/index';
|
|
3
|
-
export interface WithRendererActionsProps {
|
|
4
|
-
render(actions: RendererActions): ReactNode | null;
|
|
5
|
-
}
|
|
6
|
-
export declare function WithRendererActions({ render }: WithRendererActionsProps): JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import RendererActions from '../../actions/index';
|
|
3
|
-
export declare const RendererContext: React.Context<RendererActions>;
|
|
4
|
-
declare type RendererActionsContextProps = PropsWithChildren<{
|
|
5
|
-
context?: RendererActions;
|
|
6
|
-
}>;
|
|
7
|
-
export declare function RendererActionsContext({ children, context, }: RendererActionsContextProps): JSX.Element;
|
|
8
|
-
export declare const RendererActionsContextConsumer: React.Consumer<RendererActions>;
|
|
9
|
-
export {};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Diff } from '@atlaskit/editor-common/utils';
|
|
3
|
-
export interface WithSmartCardStorageProps {
|
|
4
|
-
smartCardStorage: Map<string, string>;
|
|
5
|
-
}
|
|
6
|
-
export declare const Context: React.Context<Map<string, string>>;
|
|
7
|
-
export declare const Provider: React.FunctionComponent;
|
|
8
|
-
export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<Props>) => {
|
|
9
|
-
new (props: Readonly<Diff<Props, WithSmartCardStorageProps>>): {
|
|
10
|
-
render(): JSX.Element;
|
|
11
|
-
context: any;
|
|
12
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
13
|
-
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
14
|
-
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps>> & Readonly<{
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
}>;
|
|
17
|
-
state: Readonly<{}>;
|
|
18
|
-
refs: {
|
|
19
|
-
[key: string]: React.ReactInstance;
|
|
20
|
-
};
|
|
21
|
-
componentDidMount?(): void;
|
|
22
|
-
shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
23
|
-
componentWillUnmount?(): void;
|
|
24
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
25
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
|
|
26
|
-
componentDidUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
27
|
-
componentWillMount?(): void;
|
|
28
|
-
UNSAFE_componentWillMount?(): void;
|
|
29
|
-
componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
30
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
31
|
-
componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
32
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
33
|
-
};
|
|
34
|
-
new (props: Diff<Props, WithSmartCardStorageProps>, context?: any): {
|
|
35
|
-
render(): JSX.Element;
|
|
36
|
-
context: any;
|
|
37
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
38
|
-
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
39
|
-
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps>> & Readonly<{
|
|
40
|
-
children?: React.ReactNode;
|
|
41
|
-
}>;
|
|
42
|
-
state: Readonly<{}>;
|
|
43
|
-
refs: {
|
|
44
|
-
[key: string]: React.ReactInstance;
|
|
45
|
-
};
|
|
46
|
-
componentDidMount?(): void;
|
|
47
|
-
shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
48
|
-
componentWillUnmount?(): void;
|
|
49
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
50
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
|
|
51
|
-
componentDidUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
52
|
-
componentWillMount?(): void;
|
|
53
|
-
UNSAFE_componentWillMount?(): void;
|
|
54
|
-
componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
55
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
56
|
-
componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
57
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
58
|
-
};
|
|
59
|
-
contextType?: React.Context<any> | undefined;
|
|
60
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
export declare const TableSortIconDataUrl: string;
|
|
5
|
-
export declare enum StatusClassNames {
|
|
6
|
-
ASC = "sorting-icon-svg__asc",
|
|
7
|
-
DESC = "sorting-icon-svg__desc",
|
|
8
|
-
NO_ORDER = "sorting-icon-svg__no_order",
|
|
9
|
-
SORTING_NOT_ALLOWED = "sorting-icon-svg__not-allowed"
|
|
10
|
-
}
|
|
11
|
-
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<{
|
|
12
|
-
isSortingAllowed: boolean;
|
|
13
|
-
sortOrdered?: SortOrder | undefined;
|
|
14
|
-
} & WrappedComponentProps<"intl">>> & {
|
|
15
|
-
WrappedComponent: import("react").ComponentType<{
|
|
16
|
-
isSortingAllowed: boolean;
|
|
17
|
-
sortOrdered?: SortOrder | undefined;
|
|
18
|
-
} & WrappedComponentProps<"intl">>;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export declare type TaskItemsDone = boolean | undefined;
|
|
3
|
-
export declare type TaskItemsStateContext = [
|
|
4
|
-
TaskItemsDone,
|
|
5
|
-
React.Dispatch<TaskItemsFormatReducerAction>
|
|
6
|
-
];
|
|
7
|
-
export declare const TaskItemsFormatContext: React.Context<TaskItemsStateContext>;
|
|
8
|
-
export declare type TaskItemsFormatReducerAction = boolean | undefined;
|
|
9
|
-
export declare function TaskItemsFormatProvider({ children }: {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}): JSX.Element;
|
|
12
|
-
export declare function useTaskItemsFormatContext(): TaskItemsStateContext;
|
|
13
|
-
export declare function TaskItemsFormatConsumer({ children, }: {
|
|
14
|
-
children: ([isChecked, dispatch]: TaskItemsStateContext) => ReactNode;
|
|
15
|
-
}): JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const Provider: React.Provider<string | undefined>;
|
|
3
|
-
declare type Props = {
|
|
4
|
-
nestedHeaderIds: string[];
|
|
5
|
-
onNestedHeaderIdMatch: () => void;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* We need to expose this abstraction on top of the native Consumer in order to control when
|
|
9
|
-
* The consumer will get notified when a match has happened. If we use the Consumer directly in
|
|
10
|
-
* Expand components without this inner state, everytime a new prop comes in, and the `newActiveHeaderId`
|
|
11
|
-
* is the same as before, we will set the expand to true forever, until the active header id changes.
|
|
12
|
-
* Thus, the user won't be able to collapse the expand.
|
|
13
|
-
*
|
|
14
|
-
* By exposing `onNestedHeaderIdMatch` here we can control when will consumers be notified:
|
|
15
|
-
* only when a `newActiveHeaderId` comes in from the Provider and the list of header ids includes it.
|
|
16
|
-
*/
|
|
17
|
-
declare const ActiveHeaderIdConsumer: ({ nestedHeaderIds, onNestedHeaderIdMatch, }: Props) => JSX.Element;
|
|
18
|
-
export { Provider as ActiveHeaderIdProvider, ActiveHeaderIdConsumer };
|