@atlaskit/adf-schema 44.2.0 → 44.2.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
CHANGED
@@ -29,7 +29,7 @@ exports.textBackgroundColorPalette = void 0;
|
|
29
29
|
function hexToEditorBorderPaletteColor(hexColor) {
|
30
30
|
// Ts ignore was used to allow use of conditional return type
|
31
31
|
// (preferencing better type on consumption over safety in implementation)
|
32
|
-
return editorBorderPalette[hexColor.toUpperCase()];
|
32
|
+
return hexColor ? editorBorderPalette[hexColor.toUpperCase()] : undefined;
|
33
33
|
}
|
34
34
|
var editorBorderPalette = exports.editorBorderPalette = {
|
35
35
|
/** gray - subtle */
|
@@ -60,7 +60,7 @@ var editorBorderPalette = exports.editorBorderPalette = {
|
|
60
60
|
function hexToEditorTextPaletteColor(hexColor) {
|
61
61
|
// Ts ignore was used to allow use of conditional return type
|
62
62
|
// (preferencing better type on consumption over safety in implementation)
|
63
|
-
return editorTextPalette[hexColor.toUpperCase()];
|
63
|
+
return hexColor ? editorTextPalette[hexColor.toUpperCase()] : undefined;
|
64
64
|
}
|
65
65
|
var editorTextPalette = exports.editorTextPalette = {
|
66
66
|
/** blue - light */
|
@@ -127,7 +127,7 @@ var editorTextPalette = exports.editorTextPalette = {
|
|
127
127
|
function hexToEditorTextBackgroundPaletteColor(hexColor) {
|
128
128
|
// Ts ignore was used to allow use of conditional return type
|
129
129
|
// (preferring better type on consumption over safety in implementation)
|
130
|
-
return textBackgroundColorPalette[hexColor.toUpperCase()];
|
130
|
+
return hexColor ? textBackgroundColorPalette[hexColor.toUpperCase()] : undefined;
|
131
131
|
}
|
132
132
|
var textBackgroundColorPalette = exports.textBackgroundColorPalette = {
|
133
133
|
/** Gray - light */
|
@@ -159,7 +159,7 @@ var textBackgroundColorPalette = exports.textBackgroundColorPalette = {
|
|
159
159
|
function hexToEditorBackgroundPaletteRawValue(hexColor) {
|
160
160
|
// Ts ignore was used to allow use of conditional return type
|
161
161
|
// (preferencing better type on consumption over safety in implementation)
|
162
|
-
var tokenData = editorBackgroundPalette[hexColor.toUpperCase()];
|
162
|
+
var tokenData = hexColor ? editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
163
163
|
return tokenData ? tokenData.getValue(hexColor) : undefined;
|
164
164
|
}
|
165
165
|
/**
|
@@ -18,7 +18,7 @@
|
|
18
18
|
export function hexToEditorBorderPaletteColor(hexColor) {
|
19
19
|
// Ts ignore was used to allow use of conditional return type
|
20
20
|
// (preferencing better type on consumption over safety in implementation)
|
21
|
-
return editorBorderPalette[hexColor.toUpperCase()];
|
21
|
+
return hexColor ? editorBorderPalette[hexColor.toUpperCase()] : undefined;
|
22
22
|
}
|
23
23
|
export const editorBorderPalette = {
|
24
24
|
/** gray - subtle */
|
@@ -49,7 +49,7 @@ export const editorBorderPalette = {
|
|
49
49
|
export function hexToEditorTextPaletteColor(hexColor) {
|
50
50
|
// Ts ignore was used to allow use of conditional return type
|
51
51
|
// (preferencing better type on consumption over safety in implementation)
|
52
|
-
return editorTextPalette[hexColor.toUpperCase()];
|
52
|
+
return hexColor ? editorTextPalette[hexColor.toUpperCase()] : undefined;
|
53
53
|
}
|
54
54
|
export const editorTextPalette = {
|
55
55
|
/** blue - light */
|
@@ -116,7 +116,7 @@ export const editorTextPalette = {
|
|
116
116
|
export function hexToEditorTextBackgroundPaletteColor(hexColor) {
|
117
117
|
// Ts ignore was used to allow use of conditional return type
|
118
118
|
// (preferring better type on consumption over safety in implementation)
|
119
|
-
return textBackgroundColorPalette[hexColor.toUpperCase()];
|
119
|
+
return hexColor ? textBackgroundColorPalette[hexColor.toUpperCase()] : undefined;
|
120
120
|
}
|
121
121
|
export const textBackgroundColorPalette = {
|
122
122
|
/** Gray - light */
|
@@ -148,7 +148,7 @@ export const textBackgroundColorPalette = {
|
|
148
148
|
export function hexToEditorBackgroundPaletteRawValue(hexColor) {
|
149
149
|
// Ts ignore was used to allow use of conditional return type
|
150
150
|
// (preferencing better type on consumption over safety in implementation)
|
151
|
-
const tokenData = editorBackgroundPalette[hexColor.toUpperCase()];
|
151
|
+
const tokenData = hexColor ? editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
152
152
|
return tokenData ? tokenData.getValue(hexColor) : undefined;
|
153
153
|
}
|
154
154
|
/**
|
@@ -18,7 +18,7 @@
|
|
18
18
|
export function hexToEditorBorderPaletteColor(hexColor) {
|
19
19
|
// Ts ignore was used to allow use of conditional return type
|
20
20
|
// (preferencing better type on consumption over safety in implementation)
|
21
|
-
return editorBorderPalette[hexColor.toUpperCase()];
|
21
|
+
return hexColor ? editorBorderPalette[hexColor.toUpperCase()] : undefined;
|
22
22
|
}
|
23
23
|
export var editorBorderPalette = {
|
24
24
|
/** gray - subtle */
|
@@ -49,7 +49,7 @@ export var editorBorderPalette = {
|
|
49
49
|
export function hexToEditorTextPaletteColor(hexColor) {
|
50
50
|
// Ts ignore was used to allow use of conditional return type
|
51
51
|
// (preferencing better type on consumption over safety in implementation)
|
52
|
-
return editorTextPalette[hexColor.toUpperCase()];
|
52
|
+
return hexColor ? editorTextPalette[hexColor.toUpperCase()] : undefined;
|
53
53
|
}
|
54
54
|
export var editorTextPalette = {
|
55
55
|
/** blue - light */
|
@@ -116,7 +116,7 @@ export var editorTextPalette = {
|
|
116
116
|
export function hexToEditorTextBackgroundPaletteColor(hexColor) {
|
117
117
|
// Ts ignore was used to allow use of conditional return type
|
118
118
|
// (preferring better type on consumption over safety in implementation)
|
119
|
-
return textBackgroundColorPalette[hexColor.toUpperCase()];
|
119
|
+
return hexColor ? textBackgroundColorPalette[hexColor.toUpperCase()] : undefined;
|
120
120
|
}
|
121
121
|
export var textBackgroundColorPalette = {
|
122
122
|
/** Gray - light */
|
@@ -148,7 +148,7 @@ export var textBackgroundColorPalette = {
|
|
148
148
|
export function hexToEditorBackgroundPaletteRawValue(hexColor) {
|
149
149
|
// Ts ignore was used to allow use of conditional return type
|
150
150
|
// (preferencing better type on consumption over safety in implementation)
|
151
|
-
var tokenData = editorBackgroundPalette[hexColor.toUpperCase()];
|
151
|
+
var tokenData = hexColor ? editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
152
152
|
return tokenData ? tokenData.getValue(hexColor) : undefined;
|
153
153
|
}
|
154
154
|
/**
|
package/package.json
CHANGED