@atlaskit/editor-shared-styles 1.6.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 +114 -0
- package/build/tsconfig.json +17 -0
- package/consts/package.json +7 -0
- package/dist/cjs/consts/consts.js +277 -0
- package/dist/cjs/consts/consts.test.js +25 -0
- package/dist/cjs/consts/index.js +541 -0
- package/dist/cjs/consts/types.js +5 -0
- package/dist/cjs/index.js +563 -0
- package/dist/cjs/overflow-shadow/index.js +13 -0
- package/dist/cjs/overflow-shadow/overflow-shadow.js +22 -0
- package/dist/cjs/selection/index.js +27 -0
- package/dist/cjs/selection/types.js +21 -0
- package/dist/cjs/selection/utils.js +49 -0
- package/dist/cjs/version.json +5 -0
- package/dist/es2019/consts/consts.js +152 -0
- package/dist/es2019/consts/consts.test.js +20 -0
- package/dist/es2019/consts/index.js +1 -0
- package/dist/es2019/consts/types.js +1 -0
- package/dist/es2019/index.js +3 -0
- package/dist/es2019/overflow-shadow/index.js +1 -0
- package/dist/es2019/overflow-shadow/overflow-shadow.js +23 -0
- package/dist/es2019/selection/index.js +2 -0
- package/dist/es2019/selection/types.js +13 -0
- package/dist/es2019/selection/utils.js +61 -0
- package/dist/es2019/version.json +5 -0
- package/dist/esm/consts/consts.js +162 -0
- package/dist/esm/consts/consts.test.js +22 -0
- package/dist/esm/consts/index.js +1 -0
- package/dist/esm/consts/types.js +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/overflow-shadow/index.js +1 -0
- package/dist/esm/overflow-shadow/overflow-shadow.js +10 -0
- package/dist/esm/selection/index.js +2 -0
- package/dist/esm/selection/types.js +13 -0
- package/dist/esm/selection/utils.js +38 -0
- package/dist/esm/version.json +5 -0
- package/dist/types/consts/consts.d.ts +124 -0
- package/dist/types/consts/index.d.ts +2 -0
- package/dist/types/consts/types.d.ts +3 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/overflow-shadow/index.d.ts +1 -0
- package/dist/types/overflow-shadow/overflow-shadow.d.ts +5 -0
- package/dist/types/selection/index.d.ts +2 -0
- package/dist/types/selection/types.d.ts +11 -0
- package/dist/types/selection/utils.d.ts +13 -0
- package/package.json +46 -0
- package/selection/package.json +7 -0
- package/src/consts/consts.test.ts +21 -0
- package/src/consts/consts.ts +204 -0
- package/src/consts/index.ts +92 -0
- package/src/consts/types.ts +3 -0
- package/src/index.ts +99 -0
- package/src/overflow-shadow/index.ts +1 -0
- package/src/overflow-shadow/overflow-shadow.ts +29 -0
- package/src/selection/__tests__/unit/utils.ts +43 -0
- package/src/selection/index.ts +5 -0
- package/src/selection/types.ts +11 -0
- package/src/selection/utils.ts +71 -0
- package/tsconfig.json +11 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# @atlaskit/editor-shared-styles
|
|
2
|
+
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`1a07c1caf61`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1a07c1caf61) - CETI-93 - Fixed custom panel icon sizing and alignment when icon render as image
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 1.5.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [`c2c0160f566`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c2c0160f566) - Bump editor-shared-styles to pick up relativeFontSizeToBase16
|
|
18
|
+
|
|
19
|
+
## 1.4.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [`5c835144ef0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5c835144ef0) - [ME-741][me-743] Remove PX references in editor packages and modify code block font size.
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
26
|
+
## 1.4.0
|
|
27
|
+
|
|
28
|
+
### Minor Changes
|
|
29
|
+
|
|
30
|
+
- [`e2fb7440936`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e2fb7440936) - ED-12430: Fix issue with Editor showing double scrollbar when context panel is visible.Update context panel to have same height as editor content area when using position absolute styles
|
|
31
|
+
|
|
32
|
+
## 1.3.0
|
|
33
|
+
|
|
34
|
+
### Minor Changes
|
|
35
|
+
|
|
36
|
+
- [`511a91ad376`](https://bitbucket.org/atlassian/atlassian-frontend/commits/511a91ad376) - [ux] ED-12128: Update Context Panel to use set width of 320px and remove 'width' prop.
|
|
37
|
+
Remove 'width' prop from the Context Panel component as we no longer allow dynamic panel width to enforce consistency.
|
|
38
|
+
|
|
39
|
+
All references to this component can safely remove the 'wdith' prop as it is no longer part of the component props.
|
|
40
|
+
|
|
41
|
+
- [`007103b93e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/007103b93e6) - [ux] ED-11993 Change behaviour of context panel so it will not push content if there is enough space to slide out without overlapping.
|
|
42
|
+
Config panel will keep existing behaviour to push content if there isn't enough space to show without overlapping content. Also add width css transition to context panel content to mimic "slide in" animation.
|
|
43
|
+
|
|
44
|
+
Add new shared const of `akEditorFullWidthLayoutLineLength` which indicates the line length of a full-width editor
|
|
45
|
+
|
|
46
|
+
## 1.2.1
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- [`7d24194b639`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d24194b639) - EDM-1717: Fix Safari danger styles for inline smart links
|
|
51
|
+
|
|
52
|
+
## 1.2.0
|
|
53
|
+
|
|
54
|
+
### Minor Changes
|
|
55
|
+
|
|
56
|
+
- [`0615a2be97`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0615a2be97) - ED-10441: share overflow-shadow helper
|
|
57
|
+
|
|
58
|
+
## 1.1.7
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
63
|
+
|
|
64
|
+
## 1.1.6
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- [`d6c23f1886`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6c23f1886) - Added dark mode support to table cell background colors
|
|
69
|
+
|
|
70
|
+
## 1.1.5
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- [`7895bfa4f3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7895bfa4f3) - [ux] ED-10562 Update selection styles for unsupported content
|
|
75
|
+
|
|
76
|
+
Use background colour instead of blanket styling
|
|
77
|
+
Fix an issue on Safari where text inside unsupported content appeared selected when node was selected
|
|
78
|
+
|
|
79
|
+
## 1.1.4
|
|
80
|
+
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- [`34674fa4cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/34674fa4cd) - [ux] ED-10780 removed the threshold that enabled responsive changes
|
|
84
|
+
|
|
85
|
+
## 1.1.3
|
|
86
|
+
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- [`a2634b5390`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a2634b5390) - [ux] ED-10780 reduced the threshold for responcive toolbar oayout;fixed problem with italic button not working when it is in collapse menu.
|
|
90
|
+
|
|
91
|
+
## 1.1.2
|
|
92
|
+
|
|
93
|
+
### Patch Changes
|
|
94
|
+
|
|
95
|
+
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
96
|
+
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
97
|
+
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
98
|
+
|
|
99
|
+
## 1.1.1
|
|
100
|
+
|
|
101
|
+
### Patch Changes
|
|
102
|
+
|
|
103
|
+
- Updated dependencies
|
|
104
|
+
|
|
105
|
+
## 1.1.0
|
|
106
|
+
|
|
107
|
+
### Minor Changes
|
|
108
|
+
|
|
109
|
+
- [`fbc358206c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fbc358206c) - ED-9125 ED-8837 Export values for selected border and selected box shadow, and util to disable browser text selection
|
|
110
|
+
- [`4f217f1d92`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4f217f1d92) - ED-10168 Add new package @atlaskit/editor-shared-styles
|
|
111
|
+
|
|
112
|
+
### Patch Changes
|
|
113
|
+
|
|
114
|
+
- [`b9812b8b35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9812b8b35) - ED-10004 improved editor toolbar responsiveness
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"paths": {}
|
|
7
|
+
},
|
|
8
|
+
"include": [
|
|
9
|
+
"../src/**/*.ts",
|
|
10
|
+
"../src/**/*.tsx"
|
|
11
|
+
],
|
|
12
|
+
"exclude": [
|
|
13
|
+
"../src/**/__tests__/*",
|
|
14
|
+
"../src/**/*.test.*",
|
|
15
|
+
"../src/**/test.*"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.getTableCellBackgroundDarkModeColorCSS = getTableCellBackgroundDarkModeColorCSS;
|
|
9
|
+
exports.getTableCellBackgroundDarkModeColors = exports.akEditorMobileMaxWidth = exports.VIEWPORT_SIZES = exports.getAkEditorFullPageMaxWidth = exports.relativeFontSizeToBase16 = exports.relativeSize = exports.editorFontSize = exports.akEditorSelectedNodeClassName = exports.ATLASSIAN_NAVIGATION_HEIGHT = exports.DEFAULT_EMBED_CARD_HEIGHT = exports.DEFAULT_EMBED_CARD_WIDTH = exports.blockNodesVerticalMargin = exports.akEditorContextPanelWidth = exports.akEditorToolbarKeylineHeight = exports.akEditorRuleBorderRadius = exports.akEditorRuleBackground = exports.akEditorLineHeight = exports.akLayoutGutterOffset = exports.akRichMediaResizeZIndex = exports.breakoutWideScaleRatio = exports.gridMediumMaxWidth = exports.akEditorSwoopCubicBezier = exports.akEditorMediaResizeHandlerPadding = exports.akEditorMediaResizeHandlerPaddingWide = exports.akEditorTableLegacyCellMinWidth = exports.akEditorTableCellMinWidth = exports.akEditorMobileBreakoutPoint = exports.akEditorGutterPadding = exports.akEditorBreakoutPadding = exports.akEditorTableNumberColumnWidth = exports.akEditorFullWidthLayoutLineLength = exports.akEditorFullWidthLayoutWidth = exports.akEditorWideLayoutWidth = exports.akEditorDefaultLayoutWidth = exports.akEditorFullPageMaxWidth = exports.akEditorTableCellBackgroundOpacity = exports.akEditorTableBorderRadius = exports.akEditorTableToolbarDelete = exports.akEditorTableBorderDelete = exports.akEditorTableCellDelete = exports.akEditorTableBorderSelected = exports.akEditorTableToolbarSelected = exports.akEditorTableCellSelected = exports.akEditorTableFloatingControls = exports.akEditorTableToolbarDark = exports.akEditorTableToolbar = exports.akEditorTableBorderDark = exports.akEditorTableBorder = exports.akEditorTableToolbarSize = exports.akEditorMentionSelected = exports.akEditorFloatingOverlapPanelZIndex = exports.akEditorFloatingDialogZIndex = exports.akEditorFloatingPanelZIndex = exports.akEditorMenuZIndex = exports.akEditorGridLineZIndex = exports.akEditorSmallZIndex = exports.akEditorStickyHeaderZIndex = exports.akEditorShadowZIndex = exports.akEditorUnitZIndex = exports.akEditorSelectedBlanketOpacity = exports.akEditorSelectedBorderBoldSize = exports.akEditorSelectedIconColor = exports.akEditorSelectedBoxShadow = exports.akEditorSelectedBorder = exports.akEditorSelectedBorderSize = exports.akEditorSelectedBlanketColor = exports.akEditorSelectedBgColor = exports.akEditorSelectedBorderColor = exports.akEditorCustomIconSize = exports.akEditorDeleteIconColor = exports.akEditorDeleteBorder = exports.akEditorDeleteBackgroundWithOpacity = exports.akEditorDeleteBackgroundShaded = exports.akEditorDeleteBackground = exports.akEditorCodeInlinePadding = exports.akEditorCodeBlockPadding = exports.akEditorCodeBackground = exports.akEditorPrimaryButton = exports.akEditorPopupText = exports.akEditorPopupBackground = exports.akEditorDropdownActiveBackground = exports.akEditorBlockquoteBorderColor = exports.akEditorActiveForeground = exports.akEditorActiveBackground = exports.akEditorSubtleAccent = exports.akEditorFocus = exports.akEditorInactiveForeground = exports.akEditorCodeFontFamily = exports.akEditorFullPageDefaultFontSize = void 0;
|
|
10
|
+
|
|
11
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
+
|
|
13
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
14
|
+
|
|
15
|
+
var _constants = require("@atlaskit/theme/constants");
|
|
16
|
+
|
|
17
|
+
var akEditorFullPageDefaultFontSize = 16;
|
|
18
|
+
exports.akEditorFullPageDefaultFontSize = akEditorFullPageDefaultFontSize;
|
|
19
|
+
var akEditorCodeFontFamily = (0, _constants.codeFontFamily)();
|
|
20
|
+
exports.akEditorCodeFontFamily = akEditorCodeFontFamily;
|
|
21
|
+
var akEditorInactiveForeground = _colors.N500;
|
|
22
|
+
exports.akEditorInactiveForeground = akEditorInactiveForeground;
|
|
23
|
+
var akEditorFocus = _colors.B100;
|
|
24
|
+
exports.akEditorFocus = akEditorFocus;
|
|
25
|
+
var akEditorSubtleAccent = _colors.N40;
|
|
26
|
+
exports.akEditorSubtleAccent = akEditorSubtleAccent;
|
|
27
|
+
var akEditorActiveBackground = _colors.N500;
|
|
28
|
+
exports.akEditorActiveBackground = akEditorActiveBackground;
|
|
29
|
+
var akEditorActiveForeground = _colors.N0;
|
|
30
|
+
exports.akEditorActiveForeground = akEditorActiveForeground;
|
|
31
|
+
var akEditorBlockquoteBorderColor = _colors.N40;
|
|
32
|
+
exports.akEditorBlockquoteBorderColor = akEditorBlockquoteBorderColor;
|
|
33
|
+
var akEditorDropdownActiveBackground = _colors.N900;
|
|
34
|
+
exports.akEditorDropdownActiveBackground = akEditorDropdownActiveBackground;
|
|
35
|
+
var akEditorPopupBackground = _colors.N700;
|
|
36
|
+
exports.akEditorPopupBackground = akEditorPopupBackground;
|
|
37
|
+
var akEditorPopupText = _colors.B50;
|
|
38
|
+
exports.akEditorPopupText = akEditorPopupText;
|
|
39
|
+
var akEditorPrimaryButton = _colors.B400;
|
|
40
|
+
exports.akEditorPrimaryButton = akEditorPrimaryButton;
|
|
41
|
+
var akEditorCodeBackground = _colors.N20;
|
|
42
|
+
exports.akEditorCodeBackground = akEditorCodeBackground;
|
|
43
|
+
var akEditorCodeBlockPadding = '12px';
|
|
44
|
+
exports.akEditorCodeBlockPadding = akEditorCodeBlockPadding;
|
|
45
|
+
var akEditorCodeInlinePadding = '2px 4px';
|
|
46
|
+
exports.akEditorCodeInlinePadding = akEditorCodeInlinePadding;
|
|
47
|
+
var akEditorDeleteBackground = _colors.R50;
|
|
48
|
+
exports.akEditorDeleteBackground = akEditorDeleteBackground;
|
|
49
|
+
var akEditorDeleteBackgroundShaded = _colors.R50;
|
|
50
|
+
exports.akEditorDeleteBackgroundShaded = akEditorDeleteBackgroundShaded;
|
|
51
|
+
var akEditorDeleteBackgroundWithOpacity = 'rgba(255, 189, 173, 0.5)'; // R75 with 50% opacity
|
|
52
|
+
|
|
53
|
+
exports.akEditorDeleteBackgroundWithOpacity = akEditorDeleteBackgroundWithOpacity;
|
|
54
|
+
var akEditorDeleteBorder = _colors.R300;
|
|
55
|
+
exports.akEditorDeleteBorder = akEditorDeleteBorder;
|
|
56
|
+
var akEditorDeleteIconColor = _colors.R400;
|
|
57
|
+
exports.akEditorDeleteIconColor = akEditorDeleteIconColor;
|
|
58
|
+
var akEditorCustomIconSize = 20;
|
|
59
|
+
exports.akEditorCustomIconSize = akEditorCustomIconSize;
|
|
60
|
+
var akEditorSelectedBorderColor = _colors.B300;
|
|
61
|
+
exports.akEditorSelectedBorderColor = akEditorSelectedBorderColor;
|
|
62
|
+
var akEditorSelectedBgColor = _colors.B50;
|
|
63
|
+
exports.akEditorSelectedBgColor = akEditorSelectedBgColor;
|
|
64
|
+
var akEditorSelectedBlanketColor = _colors.B75;
|
|
65
|
+
exports.akEditorSelectedBlanketColor = akEditorSelectedBlanketColor;
|
|
66
|
+
var akEditorSelectedBorderSize = 1;
|
|
67
|
+
exports.akEditorSelectedBorderSize = akEditorSelectedBorderSize;
|
|
68
|
+
var akEditorSelectedBorder = "".concat(akEditorSelectedBorderSize, "px solid ").concat(akEditorSelectedBorderColor);
|
|
69
|
+
exports.akEditorSelectedBorder = akEditorSelectedBorder;
|
|
70
|
+
var akEditorSelectedBoxShadow = "0 0 0 ".concat(akEditorSelectedBorderSize, "px ").concat(akEditorSelectedBorderColor);
|
|
71
|
+
exports.akEditorSelectedBoxShadow = akEditorSelectedBoxShadow;
|
|
72
|
+
var akEditorSelectedIconColor = _colors.B400;
|
|
73
|
+
exports.akEditorSelectedIconColor = akEditorSelectedIconColor;
|
|
74
|
+
var akEditorSelectedBorderBoldSize = 2;
|
|
75
|
+
exports.akEditorSelectedBorderBoldSize = akEditorSelectedBorderBoldSize;
|
|
76
|
+
var akEditorSelectedBlanketOpacity = 0.3;
|
|
77
|
+
exports.akEditorSelectedBlanketOpacity = akEditorSelectedBlanketOpacity;
|
|
78
|
+
var akEditorUnitZIndex = 1;
|
|
79
|
+
exports.akEditorUnitZIndex = akEditorUnitZIndex;
|
|
80
|
+
var akEditorShadowZIndex = 2;
|
|
81
|
+
exports.akEditorShadowZIndex = akEditorShadowZIndex;
|
|
82
|
+
var akEditorStickyHeaderZIndex = 11; // filmstrip uses 10 for its shadow
|
|
83
|
+
|
|
84
|
+
exports.akEditorStickyHeaderZIndex = akEditorStickyHeaderZIndex;
|
|
85
|
+
var akEditorSmallZIndex = akEditorStickyHeaderZIndex + 1;
|
|
86
|
+
exports.akEditorSmallZIndex = akEditorSmallZIndex;
|
|
87
|
+
var akEditorGridLineZIndex = 9999; // z-index for main menu bar -
|
|
88
|
+
// this is highest as it should be above anything else in editor below.
|
|
89
|
+
|
|
90
|
+
exports.akEditorGridLineZIndex = akEditorGridLineZIndex;
|
|
91
|
+
|
|
92
|
+
var akEditorMenuZIndex = _constants.layers.blanket(); // z-index used for floating toolbars like code block, table etc
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
exports.akEditorMenuZIndex = akEditorMenuZIndex;
|
|
96
|
+
|
|
97
|
+
var akEditorFloatingPanelZIndex = _constants.layers.layer(); // z-index used for pickers (date, emoji, mentions) and type-aheads, hyperlinks
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
exports.akEditorFloatingPanelZIndex = akEditorFloatingPanelZIndex;
|
|
101
|
+
var akEditorFloatingDialogZIndex = akEditorFloatingPanelZIndex + 10; // z-index used for floating toolbars table cell menu which are above block toolbars
|
|
102
|
+
|
|
103
|
+
exports.akEditorFloatingDialogZIndex = akEditorFloatingDialogZIndex;
|
|
104
|
+
var akEditorFloatingOverlapPanelZIndex = akEditorFloatingPanelZIndex + 5;
|
|
105
|
+
exports.akEditorFloatingOverlapPanelZIndex = akEditorFloatingOverlapPanelZIndex;
|
|
106
|
+
var akEditorMentionSelected = _colors.N100;
|
|
107
|
+
exports.akEditorMentionSelected = akEditorMentionSelected;
|
|
108
|
+
var akEditorTableToolbarSize = 11;
|
|
109
|
+
exports.akEditorTableToolbarSize = akEditorTableToolbarSize;
|
|
110
|
+
var akEditorTableBorder = _colors.N50;
|
|
111
|
+
exports.akEditorTableBorder = akEditorTableBorder;
|
|
112
|
+
var akEditorTableBorderDark = _colors.DN70;
|
|
113
|
+
exports.akEditorTableBorderDark = akEditorTableBorderDark;
|
|
114
|
+
var akEditorTableToolbar = _colors.N20;
|
|
115
|
+
exports.akEditorTableToolbar = akEditorTableToolbar;
|
|
116
|
+
var akEditorTableToolbarDark = _colors.DN50;
|
|
117
|
+
exports.akEditorTableToolbarDark = akEditorTableToolbarDark;
|
|
118
|
+
var akEditorTableFloatingControls = _colors.N20;
|
|
119
|
+
exports.akEditorTableFloatingControls = akEditorTableFloatingControls;
|
|
120
|
+
var akEditorTableCellSelected = _colors.B75;
|
|
121
|
+
exports.akEditorTableCellSelected = akEditorTableCellSelected;
|
|
122
|
+
var akEditorTableToolbarSelected = _colors.B100;
|
|
123
|
+
exports.akEditorTableToolbarSelected = akEditorTableToolbarSelected;
|
|
124
|
+
var akEditorTableBorderSelected = _colors.B300;
|
|
125
|
+
exports.akEditorTableBorderSelected = akEditorTableBorderSelected;
|
|
126
|
+
var akEditorTableCellDelete = _colors.R50;
|
|
127
|
+
exports.akEditorTableCellDelete = akEditorTableCellDelete;
|
|
128
|
+
var akEditorTableBorderDelete = _colors.R300;
|
|
129
|
+
exports.akEditorTableBorderDelete = akEditorTableBorderDelete;
|
|
130
|
+
var akEditorTableToolbarDelete = _colors.R75;
|
|
131
|
+
exports.akEditorTableToolbarDelete = akEditorTableToolbarDelete;
|
|
132
|
+
var akEditorTableBorderRadius = '3px';
|
|
133
|
+
exports.akEditorTableBorderRadius = akEditorTableBorderRadius;
|
|
134
|
+
var akEditorTableCellBackgroundOpacity = 0.5;
|
|
135
|
+
exports.akEditorTableCellBackgroundOpacity = akEditorTableCellBackgroundOpacity;
|
|
136
|
+
var akEditorFullPageMaxWidth = 680;
|
|
137
|
+
exports.akEditorFullPageMaxWidth = akEditorFullPageMaxWidth;
|
|
138
|
+
var akEditorDefaultLayoutWidth = 760;
|
|
139
|
+
exports.akEditorDefaultLayoutWidth = akEditorDefaultLayoutWidth;
|
|
140
|
+
var akEditorWideLayoutWidth = 960;
|
|
141
|
+
exports.akEditorWideLayoutWidth = akEditorWideLayoutWidth;
|
|
142
|
+
var akEditorFullWidthLayoutWidth = 1800;
|
|
143
|
+
exports.akEditorFullWidthLayoutWidth = akEditorFullWidthLayoutWidth;
|
|
144
|
+
var akEditorFullWidthLayoutLineLength = 1792;
|
|
145
|
+
exports.akEditorFullWidthLayoutLineLength = akEditorFullWidthLayoutLineLength;
|
|
146
|
+
var akEditorTableNumberColumnWidth = 42;
|
|
147
|
+
exports.akEditorTableNumberColumnWidth = akEditorTableNumberColumnWidth;
|
|
148
|
+
var akEditorBreakoutPadding = 96;
|
|
149
|
+
exports.akEditorBreakoutPadding = akEditorBreakoutPadding;
|
|
150
|
+
var akEditorGutterPadding = 32;
|
|
151
|
+
exports.akEditorGutterPadding = akEditorGutterPadding;
|
|
152
|
+
var akEditorMobileBreakoutPoint = 720;
|
|
153
|
+
exports.akEditorMobileBreakoutPoint = akEditorMobileBreakoutPoint;
|
|
154
|
+
var akEditorTableCellMinWidth = 48;
|
|
155
|
+
exports.akEditorTableCellMinWidth = akEditorTableCellMinWidth;
|
|
156
|
+
var akEditorTableLegacyCellMinWidth = 128;
|
|
157
|
+
exports.akEditorTableLegacyCellMinWidth = akEditorTableLegacyCellMinWidth;
|
|
158
|
+
var akEditorMediaResizeHandlerPaddingWide = 12;
|
|
159
|
+
exports.akEditorMediaResizeHandlerPaddingWide = akEditorMediaResizeHandlerPaddingWide;
|
|
160
|
+
var akEditorMediaResizeHandlerPadding = 4;
|
|
161
|
+
exports.akEditorMediaResizeHandlerPadding = akEditorMediaResizeHandlerPadding;
|
|
162
|
+
var akEditorSwoopCubicBezier = "cubic-bezier(0.15, 1, 0.3, 1)";
|
|
163
|
+
exports.akEditorSwoopCubicBezier = akEditorSwoopCubicBezier;
|
|
164
|
+
var gridMediumMaxWidth = 1024;
|
|
165
|
+
exports.gridMediumMaxWidth = gridMediumMaxWidth;
|
|
166
|
+
var breakoutWideScaleRatio = 1.33;
|
|
167
|
+
exports.breakoutWideScaleRatio = breakoutWideScaleRatio;
|
|
168
|
+
var akRichMediaResizeZIndex = akEditorUnitZIndex * 99;
|
|
169
|
+
exports.akRichMediaResizeZIndex = akRichMediaResizeZIndex;
|
|
170
|
+
var akLayoutGutterOffset = (0, _constants.gridSize)() * 1.5;
|
|
171
|
+
exports.akLayoutGutterOffset = akLayoutGutterOffset;
|
|
172
|
+
var akEditorLineHeight = 1.714;
|
|
173
|
+
exports.akEditorLineHeight = akEditorLineHeight;
|
|
174
|
+
var akEditorRuleBackground = _colors.N30;
|
|
175
|
+
exports.akEditorRuleBackground = akEditorRuleBackground;
|
|
176
|
+
var akEditorRuleBorderRadius = '1px';
|
|
177
|
+
exports.akEditorRuleBorderRadius = akEditorRuleBorderRadius;
|
|
178
|
+
var akEditorToolbarKeylineHeight = 2;
|
|
179
|
+
exports.akEditorToolbarKeylineHeight = akEditorToolbarKeylineHeight;
|
|
180
|
+
var akEditorContextPanelWidth = 320; // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
181
|
+
|
|
182
|
+
exports.akEditorContextPanelWidth = akEditorContextPanelWidth;
|
|
183
|
+
var blockNodesVerticalMargin = '0.75rem';
|
|
184
|
+
exports.blockNodesVerticalMargin = blockNodesVerticalMargin;
|
|
185
|
+
var DEFAULT_EMBED_CARD_WIDTH = 680;
|
|
186
|
+
exports.DEFAULT_EMBED_CARD_WIDTH = DEFAULT_EMBED_CARD_WIDTH;
|
|
187
|
+
var DEFAULT_EMBED_CARD_HEIGHT = 480;
|
|
188
|
+
exports.DEFAULT_EMBED_CARD_HEIGHT = DEFAULT_EMBED_CARD_HEIGHT;
|
|
189
|
+
var ATLASSIAN_NAVIGATION_HEIGHT = '56px';
|
|
190
|
+
exports.ATLASSIAN_NAVIGATION_HEIGHT = ATLASSIAN_NAVIGATION_HEIGHT;
|
|
191
|
+
var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
192
|
+
exports.akEditorSelectedNodeClassName = akEditorSelectedNodeClassName;
|
|
193
|
+
|
|
194
|
+
var editorFontSize = function editorFontSize(_ref) {
|
|
195
|
+
var theme = _ref.theme;
|
|
196
|
+
return theme && theme.baseFontSize ? theme.baseFontSize : (0, _constants.fontSize)();
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
exports.editorFontSize = editorFontSize;
|
|
200
|
+
|
|
201
|
+
var relativeSize = function relativeSize(multiplier) {
|
|
202
|
+
return function (_ref2) {
|
|
203
|
+
var theme = _ref2.theme;
|
|
204
|
+
return editorFontSize({
|
|
205
|
+
theme: theme
|
|
206
|
+
}) * multiplier;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
exports.relativeSize = relativeSize;
|
|
211
|
+
|
|
212
|
+
var relativeFontSizeToBase16 = function relativeFontSizeToBase16(px) {
|
|
213
|
+
if (typeof px === 'string') {
|
|
214
|
+
px = parseInt(px);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (isNaN(px)) {
|
|
218
|
+
throw new Error("Invalid font size: '".concat(px, "'"));
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
return "".concat(px / 16, "rem");
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
exports.relativeFontSizeToBase16 = relativeFontSizeToBase16;
|
|
225
|
+
|
|
226
|
+
var getAkEditorFullPageMaxWidth = function getAkEditorFullPageMaxWidth() {
|
|
227
|
+
var allowDynamicTextSizing = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
228
|
+
return allowDynamicTextSizing ? akEditorFullPageMaxWidth : akEditorDefaultLayoutWidth;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
exports.getAkEditorFullPageMaxWidth = getAkEditorFullPageMaxWidth;
|
|
232
|
+
var VIEWPORT_SIZES = {
|
|
233
|
+
laptopHiDPI: {
|
|
234
|
+
width: 1440,
|
|
235
|
+
height: 900
|
|
236
|
+
},
|
|
237
|
+
laptopMDPI: {
|
|
238
|
+
width: 1280,
|
|
239
|
+
height: 800
|
|
240
|
+
},
|
|
241
|
+
tabletL: {
|
|
242
|
+
width: 1024,
|
|
243
|
+
height: 1366
|
|
244
|
+
},
|
|
245
|
+
tabletS: {
|
|
246
|
+
width: 768,
|
|
247
|
+
height: 1024
|
|
248
|
+
},
|
|
249
|
+
mobileM: {
|
|
250
|
+
width: 414,
|
|
251
|
+
height: 736
|
|
252
|
+
},
|
|
253
|
+
mobileS: {
|
|
254
|
+
width: 375,
|
|
255
|
+
height: 667
|
|
256
|
+
},
|
|
257
|
+
mobileXS: {
|
|
258
|
+
width: 320,
|
|
259
|
+
height: 568
|
|
260
|
+
}
|
|
261
|
+
}; // to be updated in ED-10790: this should be variable threshold based on how many buttons enabled on main toolbar
|
|
262
|
+
|
|
263
|
+
exports.VIEWPORT_SIZES = VIEWPORT_SIZES;
|
|
264
|
+
var akEditorMobileMaxWidth = 0;
|
|
265
|
+
exports.akEditorMobileMaxWidth = akEditorMobileMaxWidth;
|
|
266
|
+
var getTableCellBackgroundDarkModeColors = [['White', '#000000'], ['Light blue', '#0C294F'], ['Light teal', '#0C343B'], ['Light green', '#052E21'], ['Light yellow', '#484123'], ['Light red', '#441C13'], ['Light purple', '#282249'], ['Light gray', '#202328'], ['Blue', '#0B3165'], ['Teal', '#044853'], ['Green', '#053927'], ['Yellow', '#6F5C25'], ['Red', '#582013'], ['Purple', '#3E327B'], ['Gray', '#475262'], ['Dark blue', '#003884'], ['Dark teal', '#055866'], ['Dark green', '#044932'], ['Dark yellow', '#82641C'], ['Dark red', '#6B2A19'], ['Dark purple', '#4D38B2']].map(function (_ref3) {
|
|
267
|
+
var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
|
|
268
|
+
colorName = _ref4[0],
|
|
269
|
+
colorValue = _ref4[1];
|
|
270
|
+
|
|
271
|
+
return getTableCellBackgroundDarkModeColorCSS(colorName, colorValue);
|
|
272
|
+
}).join('\n');
|
|
273
|
+
exports.getTableCellBackgroundDarkModeColors = getTableCellBackgroundDarkModeColors;
|
|
274
|
+
|
|
275
|
+
function getTableCellBackgroundDarkModeColorCSS(colorName, colorValue) {
|
|
276
|
+
return "\n &[colorname=\"".concat(colorName, "\"] {\n background-color: ").concat(colorValue, " !important; // !important to override default style color\n }\n ");
|
|
277
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _consts = require("./consts");
|
|
4
|
+
|
|
5
|
+
describe('consts', function () {
|
|
6
|
+
describe('relativeFontSizeToBase16', function () {
|
|
7
|
+
it('relativeFontSizeToBase16 should return 1rem with a base font size of 16px', function () {
|
|
8
|
+
expect((0, _consts.relativeFontSizeToBase16)(16)).toBe('1rem');
|
|
9
|
+
});
|
|
10
|
+
it('relativeFontSizeToBase16 should return 0.875rem with a base font size of 14px', function () {
|
|
11
|
+
expect((0, _consts.relativeFontSizeToBase16)(14)).toBe('0.875rem');
|
|
12
|
+
});
|
|
13
|
+
it('relativeFontSizeToBase16 should return 0.875rem with a base font size (string) of 14px', function () {
|
|
14
|
+
expect((0, _consts.relativeFontSizeToBase16)('14')).toBe('0.875rem');
|
|
15
|
+
});
|
|
16
|
+
it('relativeFontSizeToBase16 should return 0.875rem with a base font size (string) of 14px', function () {
|
|
17
|
+
expect((0, _consts.relativeFontSizeToBase16)('14px')).toBe('0.875rem');
|
|
18
|
+
});
|
|
19
|
+
it('relativeFontSizeToBase16 should throw an error for invalid string', function () {
|
|
20
|
+
expect(function () {
|
|
21
|
+
return (0, _consts.relativeFontSizeToBase16)('px');
|
|
22
|
+
}).toThrowError();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "akEditorActiveBackground", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _consts.akEditorActiveBackground;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "akEditorActiveForeground", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _consts.akEditorActiveForeground;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "akEditorBlockquoteBorderColor", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _consts.akEditorBlockquoteBorderColor;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "akEditorBreakoutPadding", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _consts.akEditorBreakoutPadding;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "akEditorCodeBackground", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _consts.akEditorCodeBackground;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "akEditorCodeBlockPadding", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _consts.akEditorCodeBlockPadding;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "akEditorCodeFontFamily", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _consts.akEditorCodeFontFamily;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "akEditorCodeInlinePadding", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _consts.akEditorCodeInlinePadding;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "akEditorContextPanelWidth", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _consts.akEditorContextPanelWidth;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "akEditorDefaultLayoutWidth", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _consts.akEditorDefaultLayoutWidth;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "akEditorDeleteBackground", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _consts.akEditorDeleteBackground;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "akEditorDeleteBackgroundShaded", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _consts.akEditorDeleteBackgroundShaded;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "akEditorDeleteBackgroundWithOpacity", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function get() {
|
|
81
|
+
return _consts.akEditorDeleteBackgroundWithOpacity;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "akEditorDeleteBorder", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function get() {
|
|
87
|
+
return _consts.akEditorDeleteBorder;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "akEditorDeleteIconColor", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _consts.akEditorDeleteIconColor;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "akEditorDropdownActiveBackground", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function get() {
|
|
99
|
+
return _consts.akEditorDropdownActiveBackground;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "akEditorFloatingDialogZIndex", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function get() {
|
|
105
|
+
return _consts.akEditorFloatingDialogZIndex;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "akEditorFloatingOverlapPanelZIndex", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function get() {
|
|
111
|
+
return _consts.akEditorFloatingOverlapPanelZIndex;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "akEditorFloatingPanelZIndex", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function get() {
|
|
117
|
+
return _consts.akEditorFloatingPanelZIndex;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "akEditorFocus", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _consts.akEditorFocus;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "akEditorFullPageMaxWidth", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function get() {
|
|
129
|
+
return _consts.akEditorFullPageMaxWidth;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "akEditorFullPageDefaultFontSize", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function get() {
|
|
135
|
+
return _consts.akEditorFullPageDefaultFontSize;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "akEditorFullWidthLayoutWidth", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function get() {
|
|
141
|
+
return _consts.akEditorFullWidthLayoutWidth;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "akEditorFullWidthLayoutLineLength", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function get() {
|
|
147
|
+
return _consts.akEditorFullWidthLayoutLineLength;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "akEditorGridLineZIndex", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function get() {
|
|
153
|
+
return _consts.akEditorGridLineZIndex;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "akEditorGutterPadding", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function get() {
|
|
159
|
+
return _consts.akEditorGutterPadding;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "akEditorInactiveForeground", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function get() {
|
|
165
|
+
return _consts.akEditorInactiveForeground;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "akEditorMediaResizeHandlerPadding", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function get() {
|
|
171
|
+
return _consts.akEditorMediaResizeHandlerPadding;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "akEditorMediaResizeHandlerPaddingWide", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function get() {
|
|
177
|
+
return _consts.akEditorMediaResizeHandlerPaddingWide;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "akEditorMentionSelected", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function get() {
|
|
183
|
+
return _consts.akEditorMentionSelected;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "akEditorMenuZIndex", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function get() {
|
|
189
|
+
return _consts.akEditorMenuZIndex;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(exports, "akEditorStickyHeaderZIndex", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function get() {
|
|
195
|
+
return _consts.akEditorStickyHeaderZIndex;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "akEditorMobileBreakoutPoint", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function get() {
|
|
201
|
+
return _consts.akEditorMobileBreakoutPoint;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(exports, "akEditorPopupBackground", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function get() {
|
|
207
|
+
return _consts.akEditorPopupBackground;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "akEditorPopupText", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function get() {
|
|
213
|
+
return _consts.akEditorPopupText;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
Object.defineProperty(exports, "akEditorPrimaryButton", {
|
|
217
|
+
enumerable: true,
|
|
218
|
+
get: function get() {
|
|
219
|
+
return _consts.akEditorPrimaryButton;
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "akEditorSelectedBorderColor", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function get() {
|
|
225
|
+
return _consts.akEditorSelectedBorderColor;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
Object.defineProperty(exports, "akEditorSelectedBorderBoldSize", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function get() {
|
|
231
|
+
return _consts.akEditorSelectedBorderBoldSize;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "akEditorSelectedBorderSize", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function get() {
|
|
237
|
+
return _consts.akEditorSelectedBorderSize;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(exports, "akEditorSelectedBorder", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
get: function get() {
|
|
243
|
+
return _consts.akEditorSelectedBorder;
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(exports, "akEditorSelectedBoxShadow", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
get: function get() {
|
|
249
|
+
return _consts.akEditorSelectedBoxShadow;
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
Object.defineProperty(exports, "akEditorSelectedIconColor", {
|
|
253
|
+
enumerable: true,
|
|
254
|
+
get: function get() {
|
|
255
|
+
return _consts.akEditorSelectedIconColor;
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
Object.defineProperty(exports, "akEditorCustomIconSize", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function get() {
|
|
261
|
+
return _consts.akEditorCustomIconSize;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
Object.defineProperty(exports, "akEditorSelectedBlanketColor", {
|
|
265
|
+
enumerable: true,
|
|
266
|
+
get: function get() {
|
|
267
|
+
return _consts.akEditorSelectedBlanketColor;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(exports, "akEditorSelectedBgColor", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function get() {
|
|
273
|
+
return _consts.akEditorSelectedBgColor;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
Object.defineProperty(exports, "akEditorSelectedBlanketOpacity", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function get() {
|
|
279
|
+
return _consts.akEditorSelectedBlanketOpacity;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(exports, "akEditorSmallZIndex", {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function get() {
|
|
285
|
+
return _consts.akEditorSmallZIndex;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
Object.defineProperty(exports, "akEditorShadowZIndex", {
|
|
289
|
+
enumerable: true,
|
|
290
|
+
get: function get() {
|
|
291
|
+
return _consts.akEditorShadowZIndex;
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
Object.defineProperty(exports, "akEditorSubtleAccent", {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
get: function get() {
|
|
297
|
+
return _consts.akEditorSubtleAccent;
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
Object.defineProperty(exports, "akEditorSwoopCubicBezier", {
|
|
301
|
+
enumerable: true,
|
|
302
|
+
get: function get() {
|
|
303
|
+
return _consts.akEditorSwoopCubicBezier;
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
Object.defineProperty(exports, "akEditorTableBorder", {
|
|
307
|
+
enumerable: true,
|
|
308
|
+
get: function get() {
|
|
309
|
+
return _consts.akEditorTableBorder;
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
Object.defineProperty(exports, "akEditorTableBorderDark", {
|
|
313
|
+
enumerable: true,
|
|
314
|
+
get: function get() {
|
|
315
|
+
return _consts.akEditorTableBorderDark;
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
Object.defineProperty(exports, "akEditorTableBorderDelete", {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function get() {
|
|
321
|
+
return _consts.akEditorTableBorderDelete;
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
Object.defineProperty(exports, "akEditorTableBorderRadius", {
|
|
325
|
+
enumerable: true,
|
|
326
|
+
get: function get() {
|
|
327
|
+
return _consts.akEditorTableBorderRadius;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
Object.defineProperty(exports, "akEditorTableBorderSelected", {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
get: function get() {
|
|
333
|
+
return _consts.akEditorTableBorderSelected;
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
Object.defineProperty(exports, "akEditorTableCellBackgroundOpacity", {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function get() {
|
|
339
|
+
return _consts.akEditorTableCellBackgroundOpacity;
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
Object.defineProperty(exports, "akEditorTableCellDelete", {
|
|
343
|
+
enumerable: true,
|
|
344
|
+
get: function get() {
|
|
345
|
+
return _consts.akEditorTableCellDelete;
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
Object.defineProperty(exports, "akEditorTableCellMinWidth", {
|
|
349
|
+
enumerable: true,
|
|
350
|
+
get: function get() {
|
|
351
|
+
return _consts.akEditorTableCellMinWidth;
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
Object.defineProperty(exports, "akEditorTableCellSelected", {
|
|
355
|
+
enumerable: true,
|
|
356
|
+
get: function get() {
|
|
357
|
+
return _consts.akEditorTableCellSelected;
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
Object.defineProperty(exports, "akEditorTableFloatingControls", {
|
|
361
|
+
enumerable: true,
|
|
362
|
+
get: function get() {
|
|
363
|
+
return _consts.akEditorTableFloatingControls;
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
Object.defineProperty(exports, "akEditorTableLegacyCellMinWidth", {
|
|
367
|
+
enumerable: true,
|
|
368
|
+
get: function get() {
|
|
369
|
+
return _consts.akEditorTableLegacyCellMinWidth;
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
Object.defineProperty(exports, "akEditorTableNumberColumnWidth", {
|
|
373
|
+
enumerable: true,
|
|
374
|
+
get: function get() {
|
|
375
|
+
return _consts.akEditorTableNumberColumnWidth;
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
Object.defineProperty(exports, "akEditorTableToolbar", {
|
|
379
|
+
enumerable: true,
|
|
380
|
+
get: function get() {
|
|
381
|
+
return _consts.akEditorTableToolbar;
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
Object.defineProperty(exports, "akEditorTableToolbarDark", {
|
|
385
|
+
enumerable: true,
|
|
386
|
+
get: function get() {
|
|
387
|
+
return _consts.akEditorTableToolbarDark;
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
Object.defineProperty(exports, "akEditorTableToolbarDelete", {
|
|
391
|
+
enumerable: true,
|
|
392
|
+
get: function get() {
|
|
393
|
+
return _consts.akEditorTableToolbarDelete;
|
|
394
|
+
}
|
|
395
|
+
});
|
|
396
|
+
Object.defineProperty(exports, "akEditorTableToolbarSelected", {
|
|
397
|
+
enumerable: true,
|
|
398
|
+
get: function get() {
|
|
399
|
+
return _consts.akEditorTableToolbarSelected;
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
Object.defineProperty(exports, "akEditorTableToolbarSize", {
|
|
403
|
+
enumerable: true,
|
|
404
|
+
get: function get() {
|
|
405
|
+
return _consts.akEditorTableToolbarSize;
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
Object.defineProperty(exports, "akEditorUnitZIndex", {
|
|
409
|
+
enumerable: true,
|
|
410
|
+
get: function get() {
|
|
411
|
+
return _consts.akEditorUnitZIndex;
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
Object.defineProperty(exports, "akEditorWideLayoutWidth", {
|
|
415
|
+
enumerable: true,
|
|
416
|
+
get: function get() {
|
|
417
|
+
return _consts.akEditorWideLayoutWidth;
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
Object.defineProperty(exports, "akLayoutGutterOffset", {
|
|
421
|
+
enumerable: true,
|
|
422
|
+
get: function get() {
|
|
423
|
+
return _consts.akLayoutGutterOffset;
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
Object.defineProperty(exports, "akRichMediaResizeZIndex", {
|
|
427
|
+
enumerable: true,
|
|
428
|
+
get: function get() {
|
|
429
|
+
return _consts.akRichMediaResizeZIndex;
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
Object.defineProperty(exports, "blockNodesVerticalMargin", {
|
|
433
|
+
enumerable: true,
|
|
434
|
+
get: function get() {
|
|
435
|
+
return _consts.blockNodesVerticalMargin;
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
Object.defineProperty(exports, "breakoutWideScaleRatio", {
|
|
439
|
+
enumerable: true,
|
|
440
|
+
get: function get() {
|
|
441
|
+
return _consts.breakoutWideScaleRatio;
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
Object.defineProperty(exports, "editorFontSize", {
|
|
445
|
+
enumerable: true,
|
|
446
|
+
get: function get() {
|
|
447
|
+
return _consts.editorFontSize;
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
Object.defineProperty(exports, "gridMediumMaxWidth", {
|
|
451
|
+
enumerable: true,
|
|
452
|
+
get: function get() {
|
|
453
|
+
return _consts.gridMediumMaxWidth;
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
Object.defineProperty(exports, "getAkEditorFullPageMaxWidth", {
|
|
457
|
+
enumerable: true,
|
|
458
|
+
get: function get() {
|
|
459
|
+
return _consts.getAkEditorFullPageMaxWidth;
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
Object.defineProperty(exports, "relativeSize", {
|
|
463
|
+
enumerable: true,
|
|
464
|
+
get: function get() {
|
|
465
|
+
return _consts.relativeSize;
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
Object.defineProperty(exports, "relativeFontSizeToBase16", {
|
|
469
|
+
enumerable: true,
|
|
470
|
+
get: function get() {
|
|
471
|
+
return _consts.relativeFontSizeToBase16;
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
Object.defineProperty(exports, "DEFAULT_EMBED_CARD_HEIGHT", {
|
|
475
|
+
enumerable: true,
|
|
476
|
+
get: function get() {
|
|
477
|
+
return _consts.DEFAULT_EMBED_CARD_HEIGHT;
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
Object.defineProperty(exports, "DEFAULT_EMBED_CARD_WIDTH", {
|
|
481
|
+
enumerable: true,
|
|
482
|
+
get: function get() {
|
|
483
|
+
return _consts.DEFAULT_EMBED_CARD_WIDTH;
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
Object.defineProperty(exports, "akEditorLineHeight", {
|
|
487
|
+
enumerable: true,
|
|
488
|
+
get: function get() {
|
|
489
|
+
return _consts.akEditorLineHeight;
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
Object.defineProperty(exports, "akEditorRuleBackground", {
|
|
493
|
+
enumerable: true,
|
|
494
|
+
get: function get() {
|
|
495
|
+
return _consts.akEditorRuleBackground;
|
|
496
|
+
}
|
|
497
|
+
});
|
|
498
|
+
Object.defineProperty(exports, "akEditorRuleBorderRadius", {
|
|
499
|
+
enumerable: true,
|
|
500
|
+
get: function get() {
|
|
501
|
+
return _consts.akEditorRuleBorderRadius;
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
Object.defineProperty(exports, "akEditorSelectedNodeClassName", {
|
|
505
|
+
enumerable: true,
|
|
506
|
+
get: function get() {
|
|
507
|
+
return _consts.akEditorSelectedNodeClassName;
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
Object.defineProperty(exports, "akEditorToolbarKeylineHeight", {
|
|
511
|
+
enumerable: true,
|
|
512
|
+
get: function get() {
|
|
513
|
+
return _consts.akEditorToolbarKeylineHeight;
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
Object.defineProperty(exports, "VIEWPORT_SIZES", {
|
|
517
|
+
enumerable: true,
|
|
518
|
+
get: function get() {
|
|
519
|
+
return _consts.VIEWPORT_SIZES;
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
Object.defineProperty(exports, "akEditorMobileMaxWidth", {
|
|
523
|
+
enumerable: true,
|
|
524
|
+
get: function get() {
|
|
525
|
+
return _consts.akEditorMobileMaxWidth;
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
Object.defineProperty(exports, "getTableCellBackgroundDarkModeColors", {
|
|
529
|
+
enumerable: true,
|
|
530
|
+
get: function get() {
|
|
531
|
+
return _consts.getTableCellBackgroundDarkModeColors;
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
Object.defineProperty(exports, "ATLASSIAN_NAVIGATION_HEIGHT", {
|
|
535
|
+
enumerable: true,
|
|
536
|
+
get: function get() {
|
|
537
|
+
return _consts.ATLASSIAN_NAVIGATION_HEIGHT;
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
|
|
541
|
+
var _consts = require("./consts");
|