@atlaskit/editor-common 68.0.2 → 69.1.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 +42 -0
- package/codemods/69.0.0-update-validator-imports.ts +7 -0
- package/codemods/migrates/entry-points.ts +37 -0
- package/dist/cjs/styles/index.js +15 -1
- package/dist/cjs/styles/shared/code-block.js +58 -0
- package/dist/cjs/styles/shared/emoji.js +2 -1
- package/dist/cjs/styles/shared/panel.js +2 -1
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +4 -2
- package/dist/cjs/ui/Popup/index.js +38 -1
- package/dist/cjs/ui/clear-next-sibling-margin-top.js +11 -4
- package/dist/cjs/ui/index.js +6 -0
- package/dist/cjs/utils/browser.js +4 -0
- package/dist/cjs/utils/index.js +0 -56
- package/dist/cjs/utils/performance/measure-render.js +52 -5
- package/dist/cjs/validator.js +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/styles/index.js +2 -1
- package/dist/es2019/styles/shared/code-block.js +94 -0
- package/dist/es2019/styles/shared/emoji.js +3 -2
- package/dist/es2019/styles/shared/panel.js +2 -1
- package/dist/es2019/ui/Mention/mention-with-profilecard.js +1 -1
- package/dist/es2019/ui/Popup/index.js +24 -1
- package/dist/es2019/ui/clear-next-sibling-margin-top.js +9 -1
- package/dist/es2019/ui/index.js +1 -1
- package/dist/es2019/utils/browser.js +4 -0
- package/dist/es2019/utils/index.js +0 -1
- package/dist/es2019/utils/performance/measure-render.js +52 -5
- package/dist/es2019/validator.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/styles/index.js +2 -1
- package/dist/esm/styles/shared/code-block.js +39 -0
- package/dist/esm/styles/shared/emoji.js +3 -2
- package/dist/esm/styles/shared/panel.js +2 -1
- package/dist/esm/ui/Mention/mention-with-profilecard.js +1 -1
- package/dist/esm/ui/Popup/index.js +40 -1
- package/dist/esm/ui/clear-next-sibling-margin-top.js +8 -2
- package/dist/esm/ui/index.js +1 -1
- package/dist/esm/utils/browser.js +4 -0
- package/dist/esm/utils/index.js +0 -1
- package/dist/esm/utils/performance/measure-render.js +52 -5
- package/dist/esm/validator.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/provider-factory/card-provider.d.ts +1 -1
- package/dist/types/styles/index.d.ts +1 -0
- package/dist/types/styles/shared/code-block.d.ts +8 -0
- package/dist/types/styles/shared/emoji.d.ts +1 -0
- package/dist/types/styles/shared/panel.d.ts +1 -0
- package/dist/types/ui/Popup/index.d.ts +4 -0
- package/dist/types/ui/clear-next-sibling-margin-top.d.ts +1 -0
- package/dist/types/ui/index.d.ts +1 -1
- package/dist/types/utils/browser.d.ts +1 -12
- package/dist/types/utils/index.d.ts +0 -2
- package/dist/types/utils/performance/measure-render.d.ts +28 -1
- package/dist/types/validator.d.ts +1 -1
- package/package.json +12 -11
- package/report.api.md +1 -1
|
@@ -2,6 +2,6 @@ import { CardAdf } from '@atlaskit/smart-card';
|
|
|
2
2
|
export declare type CardAppearance = 'inline' | 'block' | 'embed';
|
|
3
3
|
export type { CardAdf };
|
|
4
4
|
export interface CardProvider {
|
|
5
|
-
resolve(url: string, appearance: CardAppearance): Promise<CardAdf>;
|
|
5
|
+
resolve(url: string, appearance: CardAppearance, shouldForceAppearance?: boolean): Promise<CardAdf>;
|
|
6
6
|
findPattern(url: string): Promise<boolean>;
|
|
7
7
|
}
|
|
@@ -18,3 +18,4 @@ export { dateSharedStyle, DateSharedCssClassName } from './shared/date';
|
|
|
18
18
|
export { tasksAndDecisionsStyles, TaskDecisionSharedCssClassName, } from './shared/task-decision';
|
|
19
19
|
export { StatusSharedCssClassName } from './shared/status';
|
|
20
20
|
export { smartCardSharedStyles, SmartCardSharedCssClassName, } from './shared/smart-card';
|
|
21
|
+
export { CodeBlockSharedCssClassName, codeBlockSharedStyles, } from './shared/code-block';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ThemeProps } from '@atlaskit/theme/types';
|
|
2
|
+
export declare const CodeBlockSharedCssClassName: {
|
|
3
|
+
CODEBLOCK_CONTAINER: string;
|
|
4
|
+
CODEBLOCK_LINE_NUMBER_GUTTER: string;
|
|
5
|
+
CODEBLOCK_CONTENT: string;
|
|
6
|
+
DS_CODEBLOCK: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const codeBlockSharedStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
@@ -77,6 +77,7 @@ export declare const PanelSharedSelectors: {
|
|
|
77
77
|
searchEmoji: string;
|
|
78
78
|
orangeWarningIcon: string;
|
|
79
79
|
yellowWarningIcon: string;
|
|
80
|
+
copyButton: string;
|
|
80
81
|
};
|
|
81
82
|
export declare const getPanelTypeBackground: (panelType: Exclude<PanelType, PanelType.CUSTOM>, props?: ThemeProps) => string;
|
|
82
83
|
export declare const panelSharedStylesWithoutPrefix: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
@@ -19,6 +19,8 @@ export interface Props {
|
|
|
19
19
|
forcePlacement?: boolean;
|
|
20
20
|
allowOutOfBounds?: boolean;
|
|
21
21
|
rect?: DOMRect;
|
|
22
|
+
scheduleExtraLayoutUpdates?: boolean;
|
|
23
|
+
waitForExtraLayoutUpdates?: boolean;
|
|
22
24
|
}
|
|
23
25
|
export interface State {
|
|
24
26
|
popup?: HTMLElement;
|
|
@@ -28,6 +30,7 @@ export interface State {
|
|
|
28
30
|
export default class Popup extends React.Component<Props, State> {
|
|
29
31
|
scrollElement: undefined | false | HTMLElement;
|
|
30
32
|
scrollParentElement: undefined | false | HTMLElement;
|
|
33
|
+
rafIds: Set<number>;
|
|
31
34
|
static defaultProps: {
|
|
32
35
|
offset: number[];
|
|
33
36
|
allowOutOfBound: boolean;
|
|
@@ -46,6 +49,7 @@ export default class Popup extends React.Component<Props, State> {
|
|
|
46
49
|
*/
|
|
47
50
|
private initPopup;
|
|
48
51
|
private handleRef;
|
|
52
|
+
private cancelRequestAnimationFrames;
|
|
49
53
|
private scheduledUpdatePosition;
|
|
50
54
|
onResize: () => void;
|
|
51
55
|
UNSAFE_componentWillReceiveProps(newProps: Props): void;
|
package/dist/types/ui/index.d.ts
CHANGED
|
@@ -21,5 +21,5 @@ export { WithCreateAnalyticsEvent } from './WithCreateAnalyticsEvent';
|
|
|
21
21
|
export { messages as expandMessages, sharedExpandStyles, ExpandIconWrapper, expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, } from './Expand';
|
|
22
22
|
export type { StyleProps as ExpandStyleProps } from './Expand';
|
|
23
23
|
export { ErrorMessage, HelperMessage, ValidMessage } from './Messages';
|
|
24
|
-
export { clearNextSiblingMarginTopStyle } from './clear-next-sibling-margin-top';
|
|
24
|
+
export { clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle, } from './clear-next-sibling-margin-top';
|
|
25
25
|
export { IntlErrorBoundary, REACT_INTL_ERROR_MESSAGE, } from './IntlErrorBoundary';
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
declare const result: {
|
|
2
|
-
|
|
3
|
-
ie: boolean;
|
|
4
|
-
ie_version: number;
|
|
5
|
-
gecko: boolean;
|
|
6
|
-
chrome: boolean;
|
|
7
|
-
chrome_version: number;
|
|
8
|
-
android: boolean;
|
|
9
|
-
ios: boolean;
|
|
10
|
-
webkit: boolean;
|
|
11
|
-
safari: boolean;
|
|
12
|
-
supportsIntersectionObserver: boolean;
|
|
13
|
-
supportsResizeObserver: boolean;
|
|
2
|
+
[key: string]: any;
|
|
14
3
|
};
|
|
15
4
|
export default result;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export { canApplyAnnotationOnRange, getAnnotationIdsFromRange, } from './annotation';
|
|
2
2
|
export { getExtensionLozengeData } from './macro';
|
|
3
3
|
export type { Params } from './macro';
|
|
4
|
-
export { getMarksByOrder, getValidContent, getValidDocument, getValidMark, getValidNode, getValidUnknownNode, isSameMark, isSubSupType, markOrder, } from './validator';
|
|
5
|
-
export type { ADDoc, ADFStage, ADFStages, ADMark, ADMarkSimple, ADNode, } from './validator';
|
|
6
4
|
export { default as browser } from './browser';
|
|
7
5
|
export { default as ErrorReporter } from './error-reporter';
|
|
8
6
|
export type { ErrorReportingHandler } from './error-reporter';
|
|
@@ -11,4 +11,31 @@
|
|
|
11
11
|
* | javascript (framework) | style | layout | paint | composite | javascript | ...
|
|
12
12
|
* | startMark + scheduling rAF | | rAF callback, endMark
|
|
13
13
|
*/
|
|
14
|
-
export declare function measureRender(
|
|
14
|
+
export declare function measureRender(
|
|
15
|
+
/**
|
|
16
|
+
* Unique name for the measurement
|
|
17
|
+
*
|
|
18
|
+
* Important: if multiple measureRender events are fired at the same time
|
|
19
|
+
* with the same measure name -- the result will not be correct.
|
|
20
|
+
*/
|
|
21
|
+
measureName: string,
|
|
22
|
+
/**
|
|
23
|
+
* Call back fired when the measurement completes.
|
|
24
|
+
*
|
|
25
|
+
* Note: when this function is called when the Document.visibilityState is not
|
|
26
|
+
* visible -- the duration is likely to be misleading/inaccurate. This is due
|
|
27
|
+
* to the measurements use of the `requestAnimationFrame` api which only fires
|
|
28
|
+
* when the Document.visibilityState is visible.
|
|
29
|
+
*/
|
|
30
|
+
onMeasureComplete: ({ duration, startTime, distortedDuration, }: {
|
|
31
|
+
duration: number;
|
|
32
|
+
startTime: number;
|
|
33
|
+
/**
|
|
34
|
+
* Will be true when the measurement takes place in a background tab or some
|
|
35
|
+
* other case which results in the Document.visibilityState not being visible.
|
|
36
|
+
*
|
|
37
|
+
* When true -- the duration value is not useful to provide to consumers. See
|
|
38
|
+
* onMeasureComplete description for more details.
|
|
39
|
+
*/
|
|
40
|
+
distortedDuration: boolean;
|
|
41
|
+
}) => void): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getMarksByOrder, getValidContent, getValidDocument, getValidMark, getValidNode, getValidUnknownNode, isSameMark, isSubSupType, markOrder, } from './utils/validator';
|
|
1
|
+
export { getMarksByOrder, getValidContent, getValidDocument, getValidMark, getValidNode, getValidUnknownNode, isSameMark, isSubSupType, markOrder, ADFStages, } from './utils/validator';
|
|
2
2
|
export type { ADDoc, ADFStage, ADMark, ADMarkSimple, ADNode, } from './utils/validator';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "69.1.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,23 +44,24 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@atlaskit/activity-provider": "^2.3.0",
|
|
47
|
-
"@atlaskit/adf-schema": "^23.
|
|
47
|
+
"@atlaskit/adf-schema": "^23.3.0",
|
|
48
48
|
"@atlaskit/adf-utils": "^17.1.0",
|
|
49
49
|
"@atlaskit/analytics-namespaced-context": "^6.5.0",
|
|
50
50
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
51
51
|
"@atlaskit/code": "^14.3.0",
|
|
52
|
+
"@atlaskit/codemod-utils": "^4.1.0",
|
|
52
53
|
"@atlaskit/editor-json-transformer": "^8.7.0",
|
|
53
54
|
"@atlaskit/editor-shared-styles": "^2.1.0",
|
|
54
|
-
"@atlaskit/emoji": "^
|
|
55
|
+
"@atlaskit/emoji": "^65.1.0",
|
|
55
56
|
"@atlaskit/icon": "^21.10.0",
|
|
56
57
|
"@atlaskit/in-product-testing": "^0.1.0",
|
|
57
|
-
"@atlaskit/media-card": "^
|
|
58
|
-
"@atlaskit/media-client": "^17.
|
|
58
|
+
"@atlaskit/media-card": "^74.1.0",
|
|
59
|
+
"@atlaskit/media-client": "^17.1.0",
|
|
59
60
|
"@atlaskit/media-picker": "^63.0.0",
|
|
60
61
|
"@atlaskit/mention": "^21.0.0",
|
|
61
|
-
"@atlaskit/profilecard": "^16.
|
|
62
|
-
"@atlaskit/smart-card": "^
|
|
63
|
-
"@atlaskit/smart-user-picker": "^
|
|
62
|
+
"@atlaskit/profilecard": "^16.11.0",
|
|
63
|
+
"@atlaskit/smart-card": "^21.0.0",
|
|
64
|
+
"@atlaskit/smart-user-picker": "^6.0.0",
|
|
64
65
|
"@atlaskit/task-decision": "^17.4.0",
|
|
65
66
|
"@atlaskit/theme": "^12.1.0",
|
|
66
67
|
"@atlaskit/tokens": "^0.10.0",
|
|
@@ -85,16 +86,16 @@
|
|
|
85
86
|
"react-loadable": "^5.1.0"
|
|
86
87
|
},
|
|
87
88
|
"peerDependencies": {
|
|
88
|
-
"@atlaskit/media-core": "^33.0.
|
|
89
|
+
"@atlaskit/media-core": "^33.0.1",
|
|
89
90
|
"react": "^16.8.0",
|
|
90
91
|
"react-dom": "^16.8.0",
|
|
91
92
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
92
93
|
},
|
|
93
94
|
"devDependencies": {
|
|
94
95
|
"@atlaskit/editor-json-transformer": "^8.7.0",
|
|
95
|
-
"@atlaskit/editor-test-helpers": "^17.
|
|
96
|
+
"@atlaskit/editor-test-helpers": "^17.1.0",
|
|
96
97
|
"@atlaskit/media-core": "^33.0.0",
|
|
97
|
-
"@atlaskit/util-data-test": "^17.
|
|
98
|
+
"@atlaskit/util-data-test": "^17.5.0",
|
|
98
99
|
"@atlaskit/visual-regression": "*",
|
|
99
100
|
"@atlaskit/webdriver-runner": "*",
|
|
100
101
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
package/report.api.md
CHANGED