@atlaskit/editor-shared-styles 3.4.8 → 3.4.10
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 +14 -0
- package/afm-volt/tsconfig.json +30 -0
- package/dist/cjs/consts/consts.js +0 -3
- package/dist/cjs/index.js +6 -0
- package/dist/es2019/consts/consts.js +0 -3
- package/dist/es2019/index.js +1 -1
- package/dist/esm/consts/consts.js +0 -3
- package/dist/esm/index.js +1 -1
- package/dist/types/consts/consts.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/consts/consts.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +3 -6
- package/src/consts/consts.ts +0 -3
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-shared-styles
|
|
2
2
|
|
|
3
|
+
## 3.4.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.4.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#176901](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/176901)
|
|
14
|
+
[`501b9262a675a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/501b9262a675a) -
|
|
15
|
+
clean up feature flag live_pages_content_jump_mitigation
|
|
16
|
+
|
|
3
17
|
## 3.4.8
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.volt.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../volt/tsDist/@atlaskit__editor-shared-styles/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../platform/feature-flags/afm-volt/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../tmp-editor-statsig/afm-volt/tsconfig.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../design-system/tokens/afm-volt/tsconfig.json"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -111,9 +111,6 @@ var FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = exports.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT =
|
|
|
111
111
|
})) {
|
|
112
112
|
return "var(--ds-space-500, 40px)";
|
|
113
113
|
}
|
|
114
|
-
if ((0, _platformFeatureFlags.fg)('live_pages_content_jump_mitigation')) {
|
|
115
|
-
return '2.188rem';
|
|
116
|
-
}
|
|
117
114
|
return "var(--ds-space-500, 40px)";
|
|
118
115
|
};
|
|
119
116
|
var akEditorSelectedNodeClassName = exports.akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
package/dist/cjs/index.js
CHANGED
|
@@ -453,6 +453,12 @@ Object.defineProperty(exports, "editorFontSize", {
|
|
|
453
453
|
return _consts.editorFontSize;
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
|
+
Object.defineProperty(exports, "getHashCode", {
|
|
457
|
+
enumerable: true,
|
|
458
|
+
get: function get() {
|
|
459
|
+
return _utils.getHashCode;
|
|
460
|
+
}
|
|
461
|
+
});
|
|
456
462
|
Object.defineProperty(exports, "getParticipantColor", {
|
|
457
463
|
enumerable: true,
|
|
458
464
|
get: function get() {
|
|
@@ -98,9 +98,6 @@ export const FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = () => {
|
|
|
98
98
|
})) {
|
|
99
99
|
return "var(--ds-space-500, 40px)";
|
|
100
100
|
}
|
|
101
|
-
if (fg('live_pages_content_jump_mitigation')) {
|
|
102
|
-
return '2.188rem';
|
|
103
|
-
}
|
|
104
101
|
return "var(--ds-space-500, 40px)";
|
|
105
102
|
};
|
|
106
103
|
export const akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
package/dist/es2019/index.js
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
export { akEditorBlockquoteBorderColor, akEditorBreakoutPadding, akEditorCodeBackground, akEditorCodeBlockPadding, akEditorCodeFontFamily, akEditorCodeInlinePadding, akEditorContextPanelWidth, akEditorDefaultLayoutWidth, akEditorDeleteBackground, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorDeleteIconColor, akEditorFloatingDialogZIndex, akEditorFloatingOverlapPanelZIndex, akEditorFloatingPanelZIndex, akEditorFullPageMaxWidth, akEditorFullPageDefaultFontSize, akEditorFullWidthLayoutWidth, akEditorFullWidthLayoutLineLength, akEditorGridLineZIndex, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorMediaResizeHandlerPadding, akEditorMediaResizeHandlerPaddingWide, akEditorMenuZIndex, akEditorStickyHeaderZIndex, akEditorMobileBreakoutPoint, akEditorSelectedBoldBoxShadow, akEditorSelectedBorderColor, akEditorSelectedBorderBoldSize, akEditorSelectedBorderSize, akEditorSelectedBorder, akEditorSelectedBoxShadow, akEditorSelectedBlanketOpacity, akEditorSmallZIndex, akEditorShadowZIndex, akEditorSubtleAccent, akEditorSwoopCubicBezier, akEditorTableBorder, akEditorTableBorderRadius, akEditorTableBorderSelected, akEditorTableCellBackgroundOpacity, akEditorTableCellMinWidth, akEditorTableCellOnStickyHeaderZIndex, akEditorTableHeaderCellBackground, akEditorTableHeaderCellBackgroundDark, akEditorTableLegacyCellMinWidth, akEditorTableNumberColumnWidth, akEditorTableToolbar, akEditorTableToolbarSize, akEditorUnitZIndex, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorWideLayoutWidth, akLayoutGutterOffset, akRichMediaResizeZIndex, avatarColors, participantColors, blockNodesVerticalMargin, breakoutWideScaleRatio, editorFontSize, gridMediumMaxWidth, relativeSize, relativeFontSizeToBase16, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH, akEditorLineHeight, akEditorRuleBorderRadius, akEditorSelectedNodeClassName, akEditorToolbarKeylineHeight, MAX_BROWSER_SCROLLBAR_HEIGHT, VIEWPORT_SIZES, akEditorMobileMaxWidth, getTableCellBackgroundDarkModeColors, ATLASSIAN_NAVIGATION_HEIGHT, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, akEditorTableCellBlanketSelected, akEditorTableCellBlanketDeleted, akEditorWrappedNodeZIndex, layoutBreakpointWidth } from './consts';
|
|
5
5
|
export { SelectionStyle, getSelectionStyles, hideNativeBrowserTextSelectionStyles } from './selection';
|
|
6
6
|
export { overflowShadow } from './overflow-shadow/overflow-shadow';
|
|
7
|
-
export { getParticipantColor } from './utils';
|
|
7
|
+
export { getHashCode, getParticipantColor } from './utils';
|
|
@@ -102,9 +102,6 @@ export var FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = function FULL_PAGE_EDITOR_TOOLBAR_H
|
|
|
102
102
|
})) {
|
|
103
103
|
return "var(--ds-space-500, 40px)";
|
|
104
104
|
}
|
|
105
|
-
if (fg('live_pages_content_jump_mitigation')) {
|
|
106
|
-
return '2.188rem';
|
|
107
|
-
}
|
|
108
105
|
return "var(--ds-space-500, 40px)";
|
|
109
106
|
};
|
|
110
107
|
export var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
package/dist/esm/index.js
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
export { akEditorBlockquoteBorderColor, akEditorBreakoutPadding, akEditorCodeBackground, akEditorCodeBlockPadding, akEditorCodeFontFamily, akEditorCodeInlinePadding, akEditorContextPanelWidth, akEditorDefaultLayoutWidth, akEditorDeleteBackground, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorDeleteIconColor, akEditorFloatingDialogZIndex, akEditorFloatingOverlapPanelZIndex, akEditorFloatingPanelZIndex, akEditorFullPageMaxWidth, akEditorFullPageDefaultFontSize, akEditorFullWidthLayoutWidth, akEditorFullWidthLayoutLineLength, akEditorGridLineZIndex, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorMediaResizeHandlerPadding, akEditorMediaResizeHandlerPaddingWide, akEditorMenuZIndex, akEditorStickyHeaderZIndex, akEditorMobileBreakoutPoint, akEditorSelectedBoldBoxShadow, akEditorSelectedBorderColor, akEditorSelectedBorderBoldSize, akEditorSelectedBorderSize, akEditorSelectedBorder, akEditorSelectedBoxShadow, akEditorSelectedBlanketOpacity, akEditorSmallZIndex, akEditorShadowZIndex, akEditorSubtleAccent, akEditorSwoopCubicBezier, akEditorTableBorder, akEditorTableBorderRadius, akEditorTableBorderSelected, akEditorTableCellBackgroundOpacity, akEditorTableCellMinWidth, akEditorTableCellOnStickyHeaderZIndex, akEditorTableHeaderCellBackground, akEditorTableHeaderCellBackgroundDark, akEditorTableLegacyCellMinWidth, akEditorTableNumberColumnWidth, akEditorTableToolbar, akEditorTableToolbarSize, akEditorUnitZIndex, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorWideLayoutWidth, akLayoutGutterOffset, akRichMediaResizeZIndex, avatarColors, participantColors, blockNodesVerticalMargin, breakoutWideScaleRatio, editorFontSize, gridMediumMaxWidth, relativeSize, relativeFontSizeToBase16, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH, akEditorLineHeight, akEditorRuleBorderRadius, akEditorSelectedNodeClassName, akEditorToolbarKeylineHeight, MAX_BROWSER_SCROLLBAR_HEIGHT, VIEWPORT_SIZES, akEditorMobileMaxWidth, getTableCellBackgroundDarkModeColors, ATLASSIAN_NAVIGATION_HEIGHT, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT, akEditorTableCellBlanketSelected, akEditorTableCellBlanketDeleted, akEditorWrappedNodeZIndex, layoutBreakpointWidth } from './consts';
|
|
5
5
|
export { SelectionStyle, getSelectionStyles, hideNativeBrowserTextSelectionStyles } from './selection';
|
|
6
6
|
export { overflowShadow } from './overflow-shadow/overflow-shadow';
|
|
7
|
-
export { getParticipantColor } from './utils';
|
|
7
|
+
export { getHashCode, getParticipantColor } from './utils';
|
|
@@ -73,7 +73,7 @@ export declare const DEFAULT_EMBED_CARD_WIDTH = 680;
|
|
|
73
73
|
export declare const DEFAULT_EMBED_CARD_HEIGHT = 480;
|
|
74
74
|
export declare const MAX_BROWSER_SCROLLBAR_HEIGHT = 20;
|
|
75
75
|
export declare const ATLASSIAN_NAVIGATION_HEIGHT = "56px";
|
|
76
|
-
export declare const FULL_PAGE_EDITOR_TOOLBAR_HEIGHT: () => "var(--ds-space-500)"
|
|
76
|
+
export declare const FULL_PAGE_EDITOR_TOOLBAR_HEIGHT: () => "var(--ds-space-500)";
|
|
77
77
|
export declare const akEditorSelectedNodeClassName = "ak-editor-selected-node";
|
|
78
78
|
export declare const editorFontSize: ({ theme }: {
|
|
79
79
|
theme: {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { akEditorBlockquoteBorderColor, akEditorBreakoutPadding, akEditorCodeBac
|
|
|
2
2
|
export type { EditorTheme, ParticipantColor } from './consts';
|
|
3
3
|
export { SelectionStyle, getSelectionStyles, hideNativeBrowserTextSelectionStyles, } from './selection';
|
|
4
4
|
export { overflowShadow } from './overflow-shadow/overflow-shadow';
|
|
5
|
-
export { getParticipantColor } from './utils';
|
|
5
|
+
export { getHashCode, getParticipantColor } from './utils';
|
|
@@ -73,7 +73,7 @@ export declare const DEFAULT_EMBED_CARD_WIDTH = 680;
|
|
|
73
73
|
export declare const DEFAULT_EMBED_CARD_HEIGHT = 480;
|
|
74
74
|
export declare const MAX_BROWSER_SCROLLBAR_HEIGHT = 20;
|
|
75
75
|
export declare const ATLASSIAN_NAVIGATION_HEIGHT = "56px";
|
|
76
|
-
export declare const FULL_PAGE_EDITOR_TOOLBAR_HEIGHT: () => "var(--ds-space-500)"
|
|
76
|
+
export declare const FULL_PAGE_EDITOR_TOOLBAR_HEIGHT: () => "var(--ds-space-500)";
|
|
77
77
|
export declare const akEditorSelectedNodeClassName = "ak-editor-selected-node";
|
|
78
78
|
export declare const editorFontSize: ({ theme }: {
|
|
79
79
|
theme: {
|
|
@@ -2,4 +2,4 @@ export { akEditorBlockquoteBorderColor, akEditorBreakoutPadding, akEditorCodeBac
|
|
|
2
2
|
export type { EditorTheme, ParticipantColor } from './consts';
|
|
3
3
|
export { SelectionStyle, getSelectionStyles, hideNativeBrowserTextSelectionStyles, } from './selection';
|
|
4
4
|
export { overflowShadow } from './overflow-shadow/overflow-shadow';
|
|
5
|
-
export { getParticipantColor } from './utils';
|
|
5
|
+
export { getHashCode, getParticipantColor } from './utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-shared-styles",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.10",
|
|
4
4
|
"description": "Style values used in the editor/renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,9 +30,6 @@
|
|
|
30
30
|
"platform-feature-flags": {
|
|
31
31
|
"platform_editor_controls_increase_full_page_gutter": {
|
|
32
32
|
"type": "boolean"
|
|
33
|
-
},
|
|
34
|
-
"live_pages_content_jump_mitigation": {
|
|
35
|
-
"type": "boolean"
|
|
36
33
|
}
|
|
37
34
|
},
|
|
38
35
|
"af:exports": {
|
|
@@ -44,8 +41,8 @@
|
|
|
44
41
|
},
|
|
45
42
|
"dependencies": {
|
|
46
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
48
|
-
"@atlaskit/tokens": "^5.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^9.0.0",
|
|
45
|
+
"@atlaskit/tokens": "^5.4.0",
|
|
49
46
|
"@babel/runtime": "^7.0.0",
|
|
50
47
|
"@emotion/react": "^11.7.1"
|
|
51
48
|
},
|
package/src/consts/consts.ts
CHANGED
|
@@ -112,9 +112,6 @@ export const FULL_PAGE_EDITOR_TOOLBAR_HEIGHT = () => {
|
|
|
112
112
|
if (editorExperiment('platform_editor_controls', 'variant1', { exposure: true })) {
|
|
113
113
|
return token('space.500', '40px');
|
|
114
114
|
}
|
|
115
|
-
if (fg('live_pages_content_jump_mitigation')) {
|
|
116
|
-
return '2.188rem';
|
|
117
|
-
}
|
|
118
115
|
return token('space.500', '40px');
|
|
119
116
|
};
|
|
120
117
|
|
package/src/index.ts
CHANGED