@atlaskit/editor-palette 1.3.0 → 1.4.1
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/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/background.d.ts +3 -3
- package/dist/types/border.d.ts +2 -2
- package/dist/types/table-charts.d.ts +3 -3
- package/dist/types/text.d.ts +2 -2
- package/package.json +12 -4
- package/report.api.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-palette
|
|
2
2
|
|
|
3
|
+
## 1.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
8
|
+
|
|
9
|
+
## 1.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
14
|
+
|
|
3
15
|
## 1.3.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function hexToEditorBackgroundPaletteColor<HexColor extends string>(hexColor: HexColor): HexColor extends EditorBackgroundPaletteKey ? EditorBackgroundPalette[HexColor]['token'] : string | undefined;
|
|
21
21
|
export declare function hexToEditorBackgroundPaletteColorTokenName<HexColor extends string>(hexColor: HexColor): HexColor extends EditorBackgroundPaletteKey ? EditorBackgroundPalette[HexColor]['tokenName'] : EditorBackgroundPaletteTokenNames | undefined;
|
|
22
|
-
|
|
23
|
-
export
|
|
22
|
+
type EditorBackgroundPalette = typeof editorBackgroundPalette;
|
|
23
|
+
export type EditorBackgroundPaletteKey = keyof EditorBackgroundPalette;
|
|
24
24
|
export declare const editorBackgroundPalette: {
|
|
25
25
|
/** blue - light */
|
|
26
26
|
"#DEEBFF": {
|
|
@@ -129,5 +129,5 @@ export declare const editorBackgroundPalette: {
|
|
|
129
129
|
};
|
|
130
130
|
};
|
|
131
131
|
declare const tokenNames: ("color.background.accent.blue.subtlest" | "color.background.accent.blue.subtler" | "color.background.accent.blue.subtle" | "color.background.accent.teal.subtlest" | "color.background.accent.teal.subtler" | "color.background.accent.teal.subtle" | "color.background.accent.green.subtlest" | "color.background.accent.green.subtler" | "color.background.accent.green.subtle" | "color.background.accent.yellow.subtlest" | "color.background.accent.yellow.subtler" | "color.background.accent.orange.subtle" | "color.background.accent.red.subtlest" | "color.background.accent.red.subtler" | "color.background.accent.red.subtle" | "color.background.accent.purple.subtlest" | "color.background.accent.purple.subtler" | "color.background.accent.purple.subtle" | "elevation.surface" | "color.background.accent.gray.subtlest" | "color.background.accent.gray.subtle")[];
|
|
132
|
-
export
|
|
132
|
+
export type EditorBackgroundPaletteTokenNames = (typeof tokenNames)[number];
|
|
133
133
|
export {};
|
package/dist/types/border.d.ts
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
|
|
17
17
|
*/
|
|
18
18
|
export declare function hexToEditorBorderPaletteColor<HexColor extends string>(hexColor: HexColor): HexColor extends EditorBorderPaletteKey ? EditorBorderPalette[HexColor] : string | undefined;
|
|
19
|
-
|
|
20
|
-
export
|
|
19
|
+
type EditorBorderPalette = typeof editorBorderPalette;
|
|
20
|
+
export type EditorBorderPaletteKey = keyof EditorBorderPalette;
|
|
21
21
|
export declare const editorBorderPalette: {
|
|
22
22
|
/** gray - subtle */
|
|
23
23
|
"#091E4224": "var(--ds-border, #091E4224)";
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function hexToEditorTableChartsPaletteColor<HexColor extends string>(hexColor: HexColor): HexColor extends EditorTableChartsPaletteKey ? EditorTableChartsPalette[HexColor]['token'] : string | undefined;
|
|
21
21
|
export declare function hexToEditorTableChartsPaletteColorTokenName<HexColor extends string>(hexColor: HexColor): HexColor extends EditorTableChartsPaletteKey ? EditorTableChartsPalette[HexColor]['tokenName'] : EditorBackgroundPaletteTokenNames | undefined;
|
|
22
|
-
|
|
23
|
-
export
|
|
22
|
+
type EditorTableChartsPalette = typeof editorTableChartsPalette;
|
|
23
|
+
export type EditorTableChartsPaletteKey = keyof EditorTableChartsPalette;
|
|
24
24
|
/**
|
|
25
25
|
* Tokenize hex codes into DST chart colors or
|
|
26
26
|
* into DST background.accent colors.
|
|
@@ -178,5 +178,5 @@ declare const editorTableChartsPalette: {
|
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
declare const tokenNames: ("color.background.accent.blue.subtle" | "color.background.accent.teal.subtle" | "color.background.accent.green.subtle" | "color.background.accent.orange.subtle" | "color.background.accent.red.subtle" | "color.background.accent.purple.subtle" | "color.background.accent.yellow.subtle" | "color.background.accent.magenta.subtle" | "color.background.accent.gray.subtler" | "color.chart.blue.bold" | "color.chart.teal.bold" | "color.chart.green.bold" | "color.chart.yellow.bold" | "color.chart.orange.bold" | "color.chart.red.bold" | "color.chart.magenta.bold" | "color.chart.purple.bold" | "color.chart.gray.bold" | "color.chart.blue.bolder" | "color.chart.teal.bolder" | "color.chart.green.bolder" | "color.chart.yellow.bolder" | "color.chart.orange.bolder" | "color.chart.red.bolder" | "color.chart.magenta.bolder" | "color.chart.purple.bolder" | "color.chart.gray.bolder" | "color.chart.blue.boldest" | "color.chart.teal.boldest" | "color.chart.green.boldest" | "color.chart.yellow.boldest" | "color.chart.orange.boldest" | "color.chart.red.boldest" | "color.chart.magenta.boldest" | "color.chart.purple.boldest" | "color.chart.gray.boldest")[];
|
|
181
|
-
export
|
|
181
|
+
export type EditorBackgroundPaletteTokenNames = (typeof tokenNames)[number];
|
|
182
182
|
export {};
|
package/dist/types/text.d.ts
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
|
|
17
17
|
*/
|
|
18
18
|
export declare function hexToEditorTextPaletteColor<HexColor extends string>(hexColor: HexColor): HexColor extends EditorTextPaletteKey ? EditorTextPalette[HexColor] : string | undefined;
|
|
19
|
-
|
|
20
|
-
export
|
|
19
|
+
type EditorTextPalette = typeof editorTextPalette;
|
|
20
|
+
export type EditorTextPaletteKey = keyof EditorTextPalette;
|
|
21
21
|
export declare const editorTextPalette: {
|
|
22
22
|
/** blue - light */
|
|
23
23
|
"#B3D4FF": "var(--ds-background-accent-blue-subtler, #B3D4FF)";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-palette",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "The editor palette",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,6 +19,14 @@
|
|
|
19
19
|
"module": "dist/esm/index.js",
|
|
20
20
|
"module:es2019": "dist/es2019/index.js",
|
|
21
21
|
"types": "dist/types/index.d.ts",
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
">=4.5 <4.9": {
|
|
24
|
+
"*": [
|
|
25
|
+
"dist/types-ts4.5/*",
|
|
26
|
+
"dist/types-ts4.5/index.d.ts"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
22
30
|
"sideEffects": false,
|
|
23
31
|
"atlaskit:src": "src/index.ts",
|
|
24
32
|
"af:exports": {
|
|
@@ -29,16 +37,16 @@
|
|
|
29
37
|
},
|
|
30
38
|
"devDependencies": {
|
|
31
39
|
"@atlaskit/docs": "*",
|
|
32
|
-
"@atlaskit/section-message": "^6.
|
|
40
|
+
"@atlaskit/section-message": "^6.4.0",
|
|
33
41
|
"@atlaskit/ssr": "*",
|
|
34
|
-
"@atlaskit/tokens": "^1.
|
|
42
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
35
43
|
"@atlaskit/visual-regression": "*",
|
|
36
44
|
"@atlaskit/webdriver-runner": "*",
|
|
37
45
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
38
46
|
"@testing-library/react": "^12.1.5",
|
|
39
47
|
"react": "^16.8.0",
|
|
40
48
|
"react-dom": "^16.8.0",
|
|
41
|
-
"typescript": "4.
|
|
49
|
+
"typescript": "~4.9.5",
|
|
42
50
|
"wait-for-expect": "^1.2.0"
|
|
43
51
|
},
|
|
44
52
|
"techstack": {
|
package/report.api.md
CHANGED
|
@@ -110,10 +110,10 @@ const editorBackgroundPalette: {
|
|
|
110
110
|
type EditorBackgroundPaletteKey = keyof EditorBackgroundPalette;
|
|
111
111
|
|
|
112
112
|
// @public (undocumented)
|
|
113
|
-
type EditorBackgroundPaletteTokenNames = typeof tokenNames[number];
|
|
113
|
+
type EditorBackgroundPaletteTokenNames = (typeof tokenNames)[number];
|
|
114
114
|
|
|
115
115
|
// @public (undocumented)
|
|
116
|
-
type EditorBackgroundPaletteTokenNames_2 = typeof tokenNames_2[number];
|
|
116
|
+
type EditorBackgroundPaletteTokenNames_2 = (typeof tokenNames_2)[number];
|
|
117
117
|
|
|
118
118
|
// @public (undocumented)
|
|
119
119
|
type EditorBorderPalette = typeof editorBorderPalette;
|