@atlaskit/editor-common 84.5.0 → 85.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 +34 -0
- package/afm-jira/tsconfig.json +3 -0
- package/dist/cjs/analytics/types/enums.js +2 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +27 -91
- package/dist/cjs/extensibility/extensionNodeView.js +1 -2
- package/dist/cjs/keymaps/keymap.js +25 -43
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +34 -9
- package/dist/cjs/link/ConfigureLinkOverlay/index.js +15 -5
- package/dist/cjs/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.js +46 -0
- package/dist/cjs/messages/table.js +30 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +2 -4
- package/dist/cjs/react-node-view/index.js +4 -10
- package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +2 -5
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +2 -0
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +7 -70
- package/dist/es2019/extensibility/extensionNodeView.js +1 -2
- package/dist/es2019/keymaps/keymap.js +25 -43
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +33 -7
- package/dist/es2019/link/ConfigureLinkOverlay/index.js +16 -5
- package/dist/es2019/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.js +39 -0
- package/dist/es2019/messages/table.js +30 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +2 -4
- package/dist/es2019/react-node-view/index.js +5 -7
- package/dist/es2019/selection-based-node-view/SelectionBasedNodeView.js +3 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +2 -0
- package/dist/esm/element-browser/components/ElementList/ElementList.js +27 -91
- package/dist/esm/extensibility/extensionNodeView.js +1 -2
- package/dist/esm/keymaps/keymap.js +25 -43
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +34 -9
- package/dist/esm/link/ConfigureLinkOverlay/index.js +15 -5
- package/dist/esm/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.js +40 -0
- package/dist/esm/messages/table.js +30 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +2 -4
- package/dist/esm/react-node-view/index.js +4 -10
- package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +3 -5
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +3 -1
- package/dist/types/extensibility/extensionNodeView.d.ts +1 -2
- package/dist/types/link/ConfigureLinkOverlay/Dropdown.d.ts +5 -4
- package/dist/types/link/ConfigureLinkOverlay/index.d.ts +2 -2
- package/dist/types/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.d.ts +5 -0
- package/dist/types/messages/table.d.ts +30 -0
- package/dist/types/react-node-view/index.d.ts +2 -5
- package/dist/types/selection-based-node-view/SelectionBasedNodeView.d.ts +1 -2
- package/dist/types/types/plugin-factory.d.ts +1 -2
- package/dist/types-ts4.5/analytics/types/enums.d.ts +3 -1
- package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +1 -2
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/Dropdown.d.ts +5 -4
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/index.d.ts +2 -2
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.d.ts +5 -0
- package/dist/types-ts4.5/messages/table.d.ts +30 -0
- package/dist/types-ts4.5/react-node-view/index.d.ts +2 -5
- package/dist/types-ts4.5/selection-based-node-view/SelectionBasedNodeView.d.ts +1 -2
- package/dist/types-ts4.5/types/plugin-factory.d.ts +1 -2
- package/package.json +6 -14
- package/dist/cjs/ui/PortalProvider/index.js +0 -235
- package/dist/es2019/ui/PortalProvider/index.js +0 -171
- package/dist/esm/ui/PortalProvider/index.js +0 -229
- package/dist/types/ui/PortalProvider/index.d.ts +0 -48
- package/dist/types-ts4.5/ui/PortalProvider/index.d.ts +0 -48
- package/portal-provider/package.json +0 -15
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import type { FireAnalyticsCallback } from '../../analytics';
|
|
4
|
-
import { EventDispatcher } from '../../event-dispatcher';
|
|
5
|
-
export type BasePortalProviderProps = {
|
|
6
|
-
render: (portalProviderAPI: LegacyPortalProviderAPI) => React.ReactChild | JSX.Element | null;
|
|
7
|
-
onAnalyticsEvent?: FireAnalyticsCallback;
|
|
8
|
-
useAnalyticsContext?: boolean;
|
|
9
|
-
} & WrappedComponentProps;
|
|
10
|
-
export type Portals = Map<HTMLElement, React.ReactChild>;
|
|
11
|
-
export type PortalRendererState = {
|
|
12
|
-
portals: Portals;
|
|
13
|
-
};
|
|
14
|
-
type MountedPortal = {
|
|
15
|
-
key: string;
|
|
16
|
-
children: () => React.ReactChild | null;
|
|
17
|
-
hasAnalyticsContext: boolean;
|
|
18
|
-
hasIntlContext: boolean;
|
|
19
|
-
};
|
|
20
|
-
export declare class LegacyPortalProviderAPI extends EventDispatcher {
|
|
21
|
-
portals: Map<HTMLElement, MountedPortal>;
|
|
22
|
-
context: any;
|
|
23
|
-
intl: IntlShape;
|
|
24
|
-
onAnalyticsEvent?: FireAnalyticsCallback;
|
|
25
|
-
useAnalyticsContext?: boolean;
|
|
26
|
-
constructor(intl: IntlShape, onAnalyticsEvent?: FireAnalyticsCallback, analyticsContext?: boolean);
|
|
27
|
-
setContext: (context: any) => void;
|
|
28
|
-
render(children: () => React.ReactChild | JSX.Element | null, container: HTMLElement, key: string, hasAnalyticsContext?: boolean, hasIntlContext?: boolean): void;
|
|
29
|
-
forceUpdate({ intl }: {
|
|
30
|
-
intl: IntlShape;
|
|
31
|
-
}): void;
|
|
32
|
-
remove(key: string, container: HTMLElement): void;
|
|
33
|
-
}
|
|
34
|
-
export declare const PortalProvider: React.FC<import("react-intl-next").WithIntlProps<BasePortalProviderProps>> & {
|
|
35
|
-
WrappedComponent: React.ComponentType<BasePortalProviderProps>;
|
|
36
|
-
};
|
|
37
|
-
type PortalProviderWithThemeProvidersProps = Omit<BasePortalProviderProps, 'intl' | 'themeMode'>;
|
|
38
|
-
export declare const PortalProviderWithThemeProviders: ({ onAnalyticsEvent, useAnalyticsContext, render, }: PortalProviderWithThemeProvidersProps) => JSX.Element;
|
|
39
|
-
export declare class PortalRenderer extends React.Component<{
|
|
40
|
-
portalProviderAPI: LegacyPortalProviderAPI;
|
|
41
|
-
}, PortalRendererState> {
|
|
42
|
-
constructor(props: {
|
|
43
|
-
portalProviderAPI: LegacyPortalProviderAPI;
|
|
44
|
-
});
|
|
45
|
-
handleUpdate: (portals: Portals) => void;
|
|
46
|
-
render(): JSX.Element;
|
|
47
|
-
}
|
|
48
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/editor-common/portal-provider",
|
|
3
|
-
"main": "../dist/cjs/ui/PortalProvider/index.js",
|
|
4
|
-
"module": "../dist/esm/ui/PortalProvider/index.js",
|
|
5
|
-
"module:es2019": "../dist/es2019/ui/PortalProvider/index.js",
|
|
6
|
-
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/ui/PortalProvider/index.d.ts",
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.4": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/ui/PortalProvider/index.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|