@atlaskit/editor-shared-styles 2.2.0 → 2.2.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 +12 -0
- package/consts/package.json +8 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/consts/consts.d.ts +1 -1
- package/package.json +8 -5
- package/report.api.md +197 -115
- package/scrollbar/package.json +8 -1
- package/selection/package.json +8 -1
- package/shortcut/package.json +8 -1
- package/src/consts/consts.ts +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-shared-styles
|
|
2
2
|
|
|
3
|
+
## 2.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
14
|
+
|
|
3
15
|
## 2.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/consts/package.json
CHANGED
|
@@ -4,5 +4,12 @@
|
|
|
4
4
|
"module": "../dist/esm/consts/index.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/consts/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/consts/index.d.ts"
|
|
7
|
+
"types": "../dist/types/consts/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.0 <4.5": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.0/consts/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
8
15
|
}
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -84,7 +84,7 @@ export declare const akEditorSelectedNodeClassName = "ak-editor-selected-node";
|
|
|
84
84
|
export declare const editorFontSize: ({ theme }: {
|
|
85
85
|
theme: EditorTheme;
|
|
86
86
|
}) => number;
|
|
87
|
-
export declare const relativeSize: (multiplier: number) => ({ theme
|
|
87
|
+
export declare const relativeSize: (multiplier: number) => ({ theme }: {
|
|
88
88
|
theme: EditorTheme;
|
|
89
89
|
}) => number;
|
|
90
90
|
export declare const relativeFontSizeToBase16: (px: number | string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-shared-styles",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "Style values used in the editor/renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/theme": "^12.2.0",
|
|
31
|
-
"@atlaskit/tokens": "^0.
|
|
31
|
+
"@atlaskit/tokens": "^0.11.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0",
|
|
33
33
|
"@emotion/react": "^11.7.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
38
|
-
"typescript": "4.
|
|
38
|
+
"typescript": "4.5.5"
|
|
39
39
|
},
|
|
40
40
|
"techstack": {
|
|
41
41
|
"@atlassian/frontend": {
|
|
@@ -46,8 +46,11 @@
|
|
|
46
46
|
},
|
|
47
47
|
"@repo/internal": {
|
|
48
48
|
"deprecation": "no-deprecated-imports",
|
|
49
|
-
"theming": "tokens"
|
|
49
|
+
"theming": "tokens",
|
|
50
|
+
"styling": [
|
|
51
|
+
"emotion"
|
|
52
|
+
]
|
|
50
53
|
}
|
|
51
54
|
},
|
|
52
55
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
53
|
-
}
|
|
56
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,204 +2,283 @@
|
|
|
2
2
|
|
|
3
3
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
4
|
|
|
5
|
+
<!--
|
|
6
|
+
Generated API Report version: 2.0
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
10
|
+
|
|
5
11
|
```ts
|
|
6
12
|
import { SerializedStyles } from '@emotion/react';
|
|
7
13
|
|
|
8
|
-
|
|
14
|
+
// @public (undocumented)
|
|
15
|
+
export const akEditorActiveBackground = '#42526E';
|
|
9
16
|
|
|
10
|
-
|
|
17
|
+
// @public (undocumented)
|
|
18
|
+
export const akEditorActiveForeground = '#FFFFFF';
|
|
11
19
|
|
|
12
|
-
|
|
20
|
+
// @public (undocumented)
|
|
21
|
+
export const akEditorBlockquoteBorderColor = '#DFE1E6';
|
|
13
22
|
|
|
14
|
-
|
|
23
|
+
// @public (undocumented)
|
|
24
|
+
export const akEditorBreakoutPadding = 96;
|
|
15
25
|
|
|
16
|
-
|
|
26
|
+
// @public (undocumented)
|
|
27
|
+
export const akEditorCodeBackground = '#F4F5F7';
|
|
17
28
|
|
|
18
|
-
|
|
29
|
+
// @public (undocumented)
|
|
30
|
+
export const akEditorCodeBlockPadding = '12px';
|
|
19
31
|
|
|
20
|
-
|
|
32
|
+
// @public (undocumented)
|
|
33
|
+
export const akEditorCodeFontFamily: string;
|
|
21
34
|
|
|
22
|
-
|
|
35
|
+
// @public (undocumented)
|
|
36
|
+
export const akEditorCodeInlinePadding = '2px 4px';
|
|
23
37
|
|
|
24
|
-
|
|
38
|
+
// @public (undocumented)
|
|
39
|
+
export const akEditorContextPanelWidth = 320;
|
|
25
40
|
|
|
26
|
-
|
|
41
|
+
// @public (undocumented)
|
|
42
|
+
export const akEditorDefaultLayoutWidth = 760;
|
|
27
43
|
|
|
28
|
-
|
|
44
|
+
// @public (undocumented)
|
|
45
|
+
export const akEditorDeleteBackground = '#FFEBE6';
|
|
29
46
|
|
|
30
|
-
|
|
47
|
+
// @public (undocumented)
|
|
48
|
+
export const akEditorDeleteBackgroundShaded = '#FFEBE6';
|
|
31
49
|
|
|
32
|
-
|
|
33
|
-
|
|
50
|
+
// @public (undocumented)
|
|
51
|
+
export const akEditorDeleteBackgroundWithOpacity = 'rgba(255, 189, 173, 0.5)';
|
|
34
52
|
|
|
35
|
-
|
|
53
|
+
// @public (undocumented)
|
|
54
|
+
export const akEditorDeleteBorder = '#FF5630';
|
|
36
55
|
|
|
37
|
-
|
|
56
|
+
// @public (undocumented)
|
|
57
|
+
export const akEditorDeleteIconColor = '#DE350B';
|
|
38
58
|
|
|
39
|
-
|
|
59
|
+
// @public (undocumented)
|
|
60
|
+
export const akEditorDropdownActiveBackground = '#091E42';
|
|
40
61
|
|
|
41
|
-
|
|
62
|
+
// @public (undocumented)
|
|
63
|
+
export const akEditorFloatingDialogZIndex: number;
|
|
42
64
|
|
|
43
|
-
|
|
65
|
+
// @public (undocumented)
|
|
66
|
+
export const akEditorFloatingOverlapPanelZIndex: number;
|
|
44
67
|
|
|
45
|
-
|
|
68
|
+
// @public (undocumented)
|
|
69
|
+
export const akEditorFloatingPanelZIndex: 400;
|
|
46
70
|
|
|
47
|
-
|
|
71
|
+
// @public (undocumented)
|
|
72
|
+
export const akEditorFocus = '#4C9AFF';
|
|
48
73
|
|
|
49
|
-
|
|
74
|
+
// @public (undocumented)
|
|
75
|
+
export const akEditorFullPageDefaultFontSize = 16;
|
|
50
76
|
|
|
51
|
-
|
|
77
|
+
// @public (undocumented)
|
|
78
|
+
export const akEditorFullPageMaxWidth = 680;
|
|
52
79
|
|
|
53
|
-
|
|
80
|
+
// @public (undocumented)
|
|
81
|
+
export const akEditorFullWidthLayoutLineLength = 1792;
|
|
54
82
|
|
|
55
|
-
|
|
83
|
+
// @public (undocumented)
|
|
84
|
+
export const akEditorFullWidthLayoutWidth = 1800;
|
|
56
85
|
|
|
57
|
-
|
|
86
|
+
// @public (undocumented)
|
|
87
|
+
export const akEditorGridLineZIndex = 9999;
|
|
58
88
|
|
|
59
|
-
|
|
89
|
+
// @public (undocumented)
|
|
90
|
+
export const akEditorGutterPadding = 32;
|
|
60
91
|
|
|
61
|
-
|
|
92
|
+
// @public (undocumented)
|
|
93
|
+
export const akEditorInactiveForeground = '#42526E';
|
|
62
94
|
|
|
63
|
-
|
|
95
|
+
// @public (undocumented)
|
|
96
|
+
export const akEditorLineHeight = 1.714;
|
|
64
97
|
|
|
65
|
-
|
|
98
|
+
// @public (undocumented)
|
|
99
|
+
export const akEditorMediaResizeHandlerPadding = 4;
|
|
66
100
|
|
|
67
|
-
|
|
101
|
+
// @public (undocumented)
|
|
102
|
+
export const akEditorMediaResizeHandlerPaddingWide = 12;
|
|
68
103
|
|
|
69
|
-
|
|
104
|
+
// @public (undocumented)
|
|
105
|
+
export const akEditorMentionSelected = '#7A869A';
|
|
70
106
|
|
|
71
|
-
|
|
107
|
+
// @public (undocumented)
|
|
108
|
+
export const akEditorMenuZIndex: 500;
|
|
72
109
|
|
|
73
|
-
|
|
110
|
+
// @public (undocumented)
|
|
111
|
+
export const akEditorMobileBreakoutPoint = 720;
|
|
74
112
|
|
|
75
|
-
|
|
113
|
+
// @public (undocumented)
|
|
114
|
+
export const akEditorMobileMaxWidth = 0;
|
|
76
115
|
|
|
77
|
-
|
|
116
|
+
// @public (undocumented)
|
|
117
|
+
export const akEditorPopupBackground = '#253858';
|
|
78
118
|
|
|
79
|
-
|
|
119
|
+
// @public (undocumented)
|
|
120
|
+
export const akEditorPopupText = '#DEEBFF';
|
|
80
121
|
|
|
81
|
-
|
|
122
|
+
// @public (undocumented)
|
|
123
|
+
export const akEditorPrimaryButton = '#0052CC';
|
|
82
124
|
|
|
83
|
-
|
|
125
|
+
// @public (undocumented)
|
|
126
|
+
export const akEditorRuleBackground = '#EBECF0';
|
|
84
127
|
|
|
85
|
-
|
|
128
|
+
// @public (undocumented)
|
|
129
|
+
export const akEditorRuleBorderRadius = '1px';
|
|
86
130
|
|
|
87
|
-
|
|
131
|
+
// @public (undocumented)
|
|
132
|
+
export const akEditorSelectedBgColor = '#DEEBFF';
|
|
88
133
|
|
|
89
|
-
|
|
134
|
+
// @public (undocumented)
|
|
135
|
+
export const akEditorSelectedBlanketColor = '#B3D4FF';
|
|
90
136
|
|
|
91
|
-
|
|
137
|
+
// @public (undocumented)
|
|
138
|
+
export const akEditorSelectedBlanketOpacity = 0.3;
|
|
92
139
|
|
|
93
|
-
|
|
140
|
+
// @public (undocumented)
|
|
141
|
+
export const akEditorSelectedBorder: string;
|
|
94
142
|
|
|
95
|
-
|
|
143
|
+
// @public (undocumented)
|
|
144
|
+
export const akEditorSelectedBorderBoldSize = 2;
|
|
96
145
|
|
|
97
|
-
|
|
146
|
+
// @public (undocumented)
|
|
147
|
+
export const akEditorSelectedBorderColor = '#0065FF';
|
|
98
148
|
|
|
99
|
-
|
|
149
|
+
// @public (undocumented)
|
|
150
|
+
export const akEditorSelectedBorderSize = 1;
|
|
100
151
|
|
|
101
|
-
|
|
152
|
+
// @public (undocumented)
|
|
153
|
+
export const akEditorSelectedBoxShadow: string;
|
|
102
154
|
|
|
103
|
-
|
|
155
|
+
// @public (undocumented)
|
|
156
|
+
export const akEditorSelectedIconColor = '#0052CC';
|
|
104
157
|
|
|
105
|
-
|
|
158
|
+
// @public (undocumented)
|
|
159
|
+
export const akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
106
160
|
|
|
107
|
-
|
|
161
|
+
// @public (undocumented)
|
|
162
|
+
export const akEditorShadowZIndex = 2;
|
|
108
163
|
|
|
109
|
-
|
|
164
|
+
// @public (undocumented)
|
|
165
|
+
export const akEditorSmallZIndex: number;
|
|
110
166
|
|
|
111
|
-
|
|
167
|
+
// @public (undocumented)
|
|
168
|
+
export const akEditorStickyHeaderZIndex = 11;
|
|
112
169
|
|
|
113
|
-
|
|
170
|
+
// @public (undocumented)
|
|
171
|
+
export const akEditorSubtleAccent = '#DFE1E6';
|
|
114
172
|
|
|
115
|
-
|
|
173
|
+
// @public (undocumented)
|
|
174
|
+
export const akEditorSwoopCubicBezier = 'cubic-bezier(0.15, 1, 0.3, 1)';
|
|
116
175
|
|
|
117
|
-
|
|
176
|
+
// @public (undocumented)
|
|
177
|
+
export const akEditorTableBorder = '#C1C7D0';
|
|
118
178
|
|
|
119
|
-
|
|
179
|
+
// @public (undocumented)
|
|
180
|
+
export const akEditorTableBorderDark = '#3B475C';
|
|
120
181
|
|
|
121
|
-
|
|
182
|
+
// @public (undocumented)
|
|
183
|
+
export const akEditorTableBorderDelete = '#FF5630';
|
|
122
184
|
|
|
123
|
-
|
|
185
|
+
// @public (undocumented)
|
|
186
|
+
export const akEditorTableBorderRadius = '3px';
|
|
124
187
|
|
|
125
|
-
|
|
188
|
+
// @public (undocumented)
|
|
189
|
+
export const akEditorTableBorderSelected = '#0065FF';
|
|
126
190
|
|
|
127
|
-
|
|
191
|
+
// @public (undocumented)
|
|
192
|
+
export const akEditorTableCellBackgroundOpacity = 0.5;
|
|
128
193
|
|
|
129
|
-
|
|
194
|
+
// @public (undocumented)
|
|
195
|
+
export const akEditorTableCellDelete = '#FFEBE6';
|
|
130
196
|
|
|
131
|
-
|
|
197
|
+
// @public (undocumented)
|
|
198
|
+
export const akEditorTableCellMinWidth = 48;
|
|
132
199
|
|
|
133
|
-
|
|
200
|
+
// @public (undocumented)
|
|
201
|
+
export const akEditorTableCellSelected = '#B3D4FF';
|
|
134
202
|
|
|
135
|
-
|
|
203
|
+
// @public (undocumented)
|
|
204
|
+
export const akEditorTableFloatingControls = '#F4F5F7';
|
|
136
205
|
|
|
137
|
-
|
|
206
|
+
// @public (undocumented)
|
|
207
|
+
export const akEditorTableLegacyCellMinWidth = 128;
|
|
138
208
|
|
|
139
|
-
|
|
209
|
+
// @public (undocumented)
|
|
210
|
+
export const akEditorTableNumberColumnWidth = 42;
|
|
140
211
|
|
|
141
|
-
|
|
212
|
+
// @public (undocumented)
|
|
213
|
+
export const akEditorTableToolbar = '#F4F5F7';
|
|
142
214
|
|
|
143
|
-
|
|
215
|
+
// @public (undocumented)
|
|
216
|
+
export const akEditorTableToolbarDark = '#283447';
|
|
144
217
|
|
|
145
|
-
|
|
218
|
+
// @public (undocumented)
|
|
219
|
+
export const akEditorTableToolbarDelete = '#FFBDAD';
|
|
146
220
|
|
|
147
|
-
|
|
221
|
+
// @public (undocumented)
|
|
222
|
+
export const akEditorTableToolbarSelected = '#4C9AFF';
|
|
148
223
|
|
|
149
|
-
|
|
224
|
+
// @public (undocumented)
|
|
225
|
+
export const akEditorTableToolbarSize = 11;
|
|
150
226
|
|
|
151
|
-
|
|
227
|
+
// @public (undocumented)
|
|
228
|
+
export const akEditorToolbarKeylineHeight = 2;
|
|
152
229
|
|
|
153
|
-
|
|
230
|
+
// @public (undocumented)
|
|
231
|
+
export const akEditorUnitZIndex = 1;
|
|
154
232
|
|
|
155
|
-
|
|
233
|
+
// @public (undocumented)
|
|
234
|
+
export const akEditorWideLayoutWidth = 960;
|
|
156
235
|
|
|
157
|
-
|
|
236
|
+
// @public (undocumented)
|
|
237
|
+
export const akLayoutGutterOffset: number;
|
|
158
238
|
|
|
159
|
-
|
|
239
|
+
// @public (undocumented)
|
|
240
|
+
export const akRichMediaResizeZIndex: number;
|
|
160
241
|
|
|
161
|
-
|
|
242
|
+
// @public (undocumented)
|
|
243
|
+
export const ATLASSIAN_NAVIGATION_HEIGHT = '56px';
|
|
162
244
|
|
|
163
|
-
|
|
245
|
+
// @public (undocumented)
|
|
246
|
+
export const blockNodesVerticalMargin = '0.75rem';
|
|
164
247
|
|
|
165
|
-
|
|
248
|
+
// @public (undocumented)
|
|
249
|
+
export const breakoutWideScaleRatio = 1.33;
|
|
166
250
|
|
|
167
|
-
|
|
251
|
+
// @public (undocumented)
|
|
252
|
+
export const DEFAULT_EMBED_CARD_HEIGHT = 480;
|
|
168
253
|
|
|
169
|
-
|
|
254
|
+
// @public (undocumented)
|
|
255
|
+
export const DEFAULT_EMBED_CARD_WIDTH = 680;
|
|
170
256
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}: {
|
|
174
|
-
theme: EditorTheme;
|
|
175
|
-
}) => number;
|
|
257
|
+
// @public (undocumented)
|
|
258
|
+
export const editorFontSize: ({ theme }: { theme: EditorTheme }) => number;
|
|
176
259
|
|
|
177
|
-
|
|
260
|
+
// @public (undocumented)
|
|
261
|
+
export type EditorTheme = {
|
|
178
262
|
baseFontSize?: number;
|
|
179
263
|
};
|
|
180
264
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
* Pass in which selection style properties you want and it will return css string of necessary styles
|
|
184
|
-
*
|
|
185
|
-
* eg.
|
|
186
|
-
* .expand.ak-editor-selected-node {
|
|
187
|
-
* ${getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket])}
|
|
188
|
-
* }
|
|
189
|
-
*
|
|
190
|
-
*/
|
|
191
|
-
export declare const getSelectionStyles: (
|
|
265
|
+
// @public
|
|
266
|
+
export const getSelectionStyles: (
|
|
192
267
|
selectionStyles: Array<SelectionStyle>,
|
|
193
268
|
) => string;
|
|
194
269
|
|
|
195
|
-
|
|
270
|
+
// @public (undocumented)
|
|
271
|
+
export const getTableCellBackgroundDarkModeColors: string;
|
|
196
272
|
|
|
197
|
-
|
|
273
|
+
// @public (undocumented)
|
|
274
|
+
export const gridMediumMaxWidth = 1024;
|
|
198
275
|
|
|
199
|
-
|
|
276
|
+
// @public (undocumented)
|
|
277
|
+
export const hideNativeBrowserTextSelectionStyles =
|
|
200
278
|
'\n ::selection,*::selection {\n background-color: transparent;\n }\n ::-moz-selection,*::-moz-selection {\n background-color: transparent;\n }\n';
|
|
201
279
|
|
|
202
|
-
|
|
280
|
+
// @public (undocumented)
|
|
281
|
+
export const overflowShadow: ({
|
|
203
282
|
background,
|
|
204
283
|
width,
|
|
205
284
|
}: {
|
|
@@ -207,25 +286,28 @@ export declare const overflowShadow: ({
|
|
|
207
286
|
width: string;
|
|
208
287
|
}) => SerializedStyles;
|
|
209
288
|
|
|
210
|
-
|
|
289
|
+
// @public (undocumented)
|
|
290
|
+
export const relativeFontSizeToBase16: (px: number | string) => string;
|
|
211
291
|
|
|
212
|
-
|
|
292
|
+
// @public (undocumented)
|
|
293
|
+
export const relativeSize: (
|
|
213
294
|
multiplier: number,
|
|
214
295
|
) => ({ theme }: { theme: EditorTheme }) => number;
|
|
215
296
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
* file in editor-core
|
|
220
|
-
*/
|
|
221
|
-
export declare enum SelectionStyle {
|
|
222
|
-
Border = 0,
|
|
223
|
-
BoxShadow = 1,
|
|
297
|
+
// @public
|
|
298
|
+
export enum SelectionStyle {
|
|
299
|
+
// (undocumented)
|
|
224
300
|
Background = 2,
|
|
301
|
+
// (undocumented)
|
|
225
302
|
Blanket = 3,
|
|
303
|
+
// (undocumented)
|
|
304
|
+
Border = 0,
|
|
305
|
+
// (undocumented)
|
|
306
|
+
BoxShadow = 1,
|
|
226
307
|
}
|
|
227
308
|
|
|
228
|
-
|
|
309
|
+
// @public (undocumented)
|
|
310
|
+
export const VIEWPORT_SIZES: {
|
|
229
311
|
laptopHiDPI: {
|
|
230
312
|
width: number;
|
|
231
313
|
height: number;
|
|
@@ -256,5 +338,5 @@ export declare const VIEWPORT_SIZES: {
|
|
|
256
338
|
};
|
|
257
339
|
};
|
|
258
340
|
|
|
259
|
-
|
|
341
|
+
// (No @packageDocumentation comment for this package)
|
|
260
342
|
```
|
package/scrollbar/package.json
CHANGED
|
@@ -4,5 +4,12 @@
|
|
|
4
4
|
"module": "../dist/esm/scrollbar-styles.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/scrollbar-styles.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/scrollbar-styles.d.ts"
|
|
7
|
+
"types": "../dist/types/scrollbar-styles.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.0 <4.5": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.0/scrollbar-styles.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
8
15
|
}
|
package/selection/package.json
CHANGED
|
@@ -4,5 +4,12 @@
|
|
|
4
4
|
"module": "../dist/esm/selection/index.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/selection/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/selection/index.d.ts"
|
|
7
|
+
"types": "../dist/types/selection/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.0 <4.5": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.0/selection/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
8
15
|
}
|
package/shortcut/package.json
CHANGED
|
@@ -4,5 +4,12 @@
|
|
|
4
4
|
"module": "../dist/esm/shortcut/index.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/shortcut/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/shortcut/index.d.ts"
|
|
7
|
+
"types": "../dist/types/shortcut/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.0 <4.5": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.0/shortcut/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
8
15
|
}
|
package/src/consts/consts.ts
CHANGED
|
@@ -134,11 +134,10 @@ export const akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
|
134
134
|
export const editorFontSize = ({ theme }: { theme: EditorTheme }) =>
|
|
135
135
|
theme && theme.baseFontSize ? theme.baseFontSize : defaultFontSize();
|
|
136
136
|
|
|
137
|
-
export const relativeSize =
|
|
138
|
-
|
|
139
|
-
}: {
|
|
140
|
-
|
|
141
|
-
}) => editorFontSize({ theme }) * multiplier;
|
|
137
|
+
export const relativeSize =
|
|
138
|
+
(multiplier: number) =>
|
|
139
|
+
({ theme }: { theme: EditorTheme }) =>
|
|
140
|
+
editorFontSize({ theme }) * multiplier;
|
|
142
141
|
|
|
143
142
|
export const relativeFontSizeToBase16 = (px: number | string) => {
|
|
144
143
|
if (typeof px === 'string') {
|