@atlaskit/logo 19.8.2 → 19.8.3
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 +8 -0
- package/dist/cjs/index.js +14 -2
- package/dist/cjs/logo-config.js +21 -6
- package/dist/es2019/index.js +15 -3
- package/dist/es2019/logo-config.js +16 -1
- package/dist/esm/index.js +15 -3
- package/dist/esm/logo-config.js +20 -5
- package/dist/types/index.d.ts +19 -2
- package/dist/types/logo-config.d.ts +12 -1
- package/dist/types-ts4.5/index.d.ts +19 -2
- package/dist/types-ts4.5/logo-config.d.ts +12 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/logo
|
|
2
2
|
|
|
3
|
+
## 19.8.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6bbf9c58510f8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6bbf9c58510f8) -
|
|
8
|
+
Internal update to support feature flagging updated logo design
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 19.8.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -111,6 +111,7 @@ var _projects = require("@atlaskit/temp-nav-app-icons/projects");
|
|
|
111
111
|
var _rovo = require("@atlaskit/temp-nav-app-icons/rovo");
|
|
112
112
|
var _rovoDev = require("@atlaskit/temp-nav-app-icons/rovo-dev");
|
|
113
113
|
var _rovoDevAgent = require("@atlaskit/temp-nav-app-icons/rovo-dev-agent");
|
|
114
|
+
var _rovoHex = require("@atlaskit/temp-nav-app-icons/rovo-hex");
|
|
114
115
|
var _search = require("@atlaskit/temp-nav-app-icons/search");
|
|
115
116
|
var _searchNew = require("@atlaskit/temp-nav-app-icons/search-new");
|
|
116
117
|
var _statuspage = require("@atlaskit/temp-nav-app-icons/statuspage");
|
|
@@ -928,11 +929,22 @@ var TrelloLogo = exports.TrelloLogo = (0, _logoConfig.createFeatureFlaggedCompon
|
|
|
928
929
|
*
|
|
929
930
|
* The Rovo icon without an accompanying wordmark.
|
|
930
931
|
*
|
|
932
|
+
* By default, with no feature flags turned on, this will display a flat hex design.
|
|
933
|
+
*
|
|
934
|
+
* A colorful hex logo will render if:
|
|
935
|
+
* - the feature flag `platform-logo-rebrand-rovo-hex` is set to true
|
|
936
|
+
* - the prop `shouldUseHexLogo` is set to true
|
|
937
|
+
*
|
|
938
|
+
* Finally, for backwards compatibility, if the prop `shouldUseNewLogoDesign` is set to true, or the following feature flags are set,
|
|
939
|
+
* a tile will be rendered:
|
|
940
|
+
* - `platform-logo-rebrand-servco`
|
|
941
|
+
* - `platform-logo-rebrand`
|
|
942
|
+
*
|
|
931
943
|
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
932
944
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
933
945
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
934
946
|
*/
|
|
935
|
-
var RovoIcon = exports.RovoIcon = (0, _logoConfig.
|
|
947
|
+
var RovoIcon = exports.RovoIcon = (0, _logoConfig.createFeatureFlaggedRovoComponent)(_rovo2.RovoIcon, _rovo.RovoIcon, _rovoHex.RovoHexIcon);
|
|
936
948
|
/**
|
|
937
949
|
* __Rovo logo__
|
|
938
950
|
*
|
|
@@ -942,7 +954,7 @@ var RovoIcon = exports.RovoIcon = (0, _logoConfig.createFeatureFlaggedServiceCol
|
|
|
942
954
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
943
955
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
944
956
|
*/
|
|
945
|
-
var RovoLogo = exports.RovoLogo = (0, _logoConfig.
|
|
957
|
+
var RovoLogo = exports.RovoLogo = (0, _logoConfig.createFeatureFlaggedRovoComponent)(_rovo2.RovoLogo, _rovo.RovoLogoCS, _rovoHex.RovoHexLogoCS);
|
|
946
958
|
|
|
947
959
|
/**
|
|
948
960
|
* __Guard icon__
|
package/dist/cjs/logo-config.js
CHANGED
|
@@ -4,14 +4,15 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.tempSizeWrapper = exports.teamEUFlaggedIcon = exports.logoDocsSchema = exports.createFeatureFlaggedServiceCollectionComponent = exports.createFeatureFlaggedComponent = exports.SHARED_LOGOS = exports.PROGRAM_LOGO_DOCS_ORDER = exports.NEW_ONLY_LOGOS = exports.LEGACY_ONLY_LOGOS = exports.APP_LOGO_DOCS_ORDER = exports.AGENT_LOGO_DOCS_ORDER = void 0;
|
|
7
|
+
exports.tempSizeWrapper = exports.teamEUFlaggedIcon = exports.logoDocsSchema = exports.createFeatureFlaggedServiceCollectionComponent = exports.createFeatureFlaggedRovoComponent = exports.createFeatureFlaggedComponent = exports.SHARED_LOGOS = exports.PROGRAM_LOGO_DOCS_ORDER = exports.NEW_ONLY_LOGOS = exports.LEGACY_ONLY_LOGOS = exports.APP_LOGO_DOCS_ORDER = exports.AGENT_LOGO_DOCS_ORDER = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
12
|
var _excluded = ["size", "shouldUseNewLogoDesign"],
|
|
13
13
|
_excluded2 = ["size", "shouldUseNewLogoDesign"],
|
|
14
|
-
_excluded3 = ["
|
|
14
|
+
_excluded3 = ["shouldUseHexLogo"],
|
|
15
|
+
_excluded4 = ["size"];
|
|
15
16
|
/**
|
|
16
17
|
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
17
18
|
* based on the platform-logo-rebrand feature flag.
|
|
@@ -65,6 +66,20 @@ var createFeatureFlaggedServiceCollectionComponent = exports.createFeatureFlagge
|
|
|
65
66
|
}, props));
|
|
66
67
|
};
|
|
67
68
|
};
|
|
69
|
+
var createFeatureFlaggedRovoComponent = exports.createFeatureFlaggedRovoComponent = function createFeatureFlaggedRovoComponent(LegacyComponent, NewComponent, NewHexComponent) {
|
|
70
|
+
var RovoHexWrapped = tempSizeWrapper(NewHexComponent);
|
|
71
|
+
var RovoServiceCollectionWrapped = createFeatureFlaggedServiceCollectionComponent(LegacyComponent, NewComponent);
|
|
72
|
+
return function (_ref3) {
|
|
73
|
+
var shouldUseHexLogo = _ref3.shouldUseHexLogo,
|
|
74
|
+
props = (0, _objectWithoutProperties2.default)(_ref3, _excluded3);
|
|
75
|
+
// Return hex logo if feature flag enabled. Otherwise revert to old set of components
|
|
76
|
+
if ((0, _platformFeatureFlags.fg)('platform-logo-rebrand-rovo-hex') || shouldUseHexLogo) {
|
|
77
|
+
return /*#__PURE__*/_react.default.createElement(RovoHexWrapped, props);
|
|
78
|
+
} else {
|
|
79
|
+
return /*#__PURE__*/_react.default.createElement(RovoServiceCollectionWrapped, props);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
};
|
|
68
83
|
|
|
69
84
|
/**
|
|
70
85
|
* Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
|
|
@@ -72,9 +87,9 @@ var createFeatureFlaggedServiceCollectionComponent = exports.createFeatureFlagge
|
|
|
72
87
|
* @param NewComponent - The new logo or icon component.
|
|
73
88
|
*/
|
|
74
89
|
var tempSizeWrapper = exports.tempSizeWrapper = function tempSizeWrapper(NewComponent) {
|
|
75
|
-
return function (
|
|
76
|
-
var size =
|
|
77
|
-
props = (0, _objectWithoutProperties2.default)(
|
|
90
|
+
return function (_ref4) {
|
|
91
|
+
var size = _ref4.size,
|
|
92
|
+
props = (0, _objectWithoutProperties2.default)(_ref4, _excluded4);
|
|
78
93
|
return /*#__PURE__*/_react.default.createElement(NewComponent, (0, _extends2.default)({
|
|
79
94
|
size: size || 'medium'
|
|
80
95
|
}, props));
|
|
@@ -135,7 +150,7 @@ var logoDocsSchema = exports.logoDocsSchema = [
|
|
|
135
150
|
category: 'app'
|
|
136
151
|
}, {
|
|
137
152
|
name: 'rovo',
|
|
138
|
-
type: '
|
|
153
|
+
type: 'rovo-hex',
|
|
139
154
|
category: 'app'
|
|
140
155
|
},
|
|
141
156
|
// Strategy collection
|
package/dist/es2019/index.js
CHANGED
|
@@ -30,6 +30,7 @@ import { ProjectsIcon as NewProjectsIcon, ProjectsLogoCS as NewProjectsLogo } fr
|
|
|
30
30
|
import { RovoIcon as NewRovoIcon, RovoLogoCS as NewRovoLogo } from '@atlaskit/temp-nav-app-icons/rovo';
|
|
31
31
|
import { RovoDevIcon as NewRovoDevIcon, RovoDevLogoCS as NewRovoDevLogo } from '@atlaskit/temp-nav-app-icons/rovo-dev';
|
|
32
32
|
import { RovoDevAgentIcon as NewRovoDevAgentIcon, RovoDevAgentLogoCS as NewRovoDevAgentLogo } from '@atlaskit/temp-nav-app-icons/rovo-dev-agent';
|
|
33
|
+
import { RovoHexIcon as NewRovoHexIcon, RovoHexLogoCS as NewRovoHexLogo } from '@atlaskit/temp-nav-app-icons/rovo-hex';
|
|
33
34
|
import { SearchIcon as OldSearchIcon, SearchLogoCS as OldSearchLogo } from '@atlaskit/temp-nav-app-icons/search';
|
|
34
35
|
import { SearchNewIcon, SearchNewLogoCS } from '@atlaskit/temp-nav-app-icons/search-new';
|
|
35
36
|
import { StatuspageIcon as NewStatuspageIcon, StatuspageLogoCS as NewStatuspageLogo } from '@atlaskit/temp-nav-app-icons/statuspage';
|
|
@@ -62,7 +63,7 @@ export { AtlassianAccessIcon, AtlassianAccessLogo } from './legacy-logos/atlassi
|
|
|
62
63
|
export { JiraWorkManagementLogo, JiraWorkManagementIcon } from './legacy-logos/jira-work-management';
|
|
63
64
|
export { AtlassianIcon, AtlassianLogo } from './legacy-logos/atlassian';
|
|
64
65
|
export { JiraSoftwareIcon, JiraSoftwareLogo } from './legacy-logos/jira-software';
|
|
65
|
-
import { createFeatureFlaggedComponent, createFeatureFlaggedServiceCollectionComponent, teamEUFlaggedIcon, tempSizeWrapper } from './logo-config';
|
|
66
|
+
import { createFeatureFlaggedComponent, createFeatureFlaggedRovoComponent, createFeatureFlaggedServiceCollectionComponent, teamEUFlaggedIcon, tempSizeWrapper } from './logo-config';
|
|
66
67
|
|
|
67
68
|
/**
|
|
68
69
|
* __Admin icon__
|
|
@@ -848,11 +849,22 @@ export const TrelloLogo = createFeatureFlaggedComponent(LegacyTrelloLogo, NewTre
|
|
|
848
849
|
*
|
|
849
850
|
* The Rovo icon without an accompanying wordmark.
|
|
850
851
|
*
|
|
852
|
+
* By default, with no feature flags turned on, this will display a flat hex design.
|
|
853
|
+
*
|
|
854
|
+
* A colorful hex logo will render if:
|
|
855
|
+
* - the feature flag `platform-logo-rebrand-rovo-hex` is set to true
|
|
856
|
+
* - the prop `shouldUseHexLogo` is set to true
|
|
857
|
+
*
|
|
858
|
+
* Finally, for backwards compatibility, if the prop `shouldUseNewLogoDesign` is set to true, or the following feature flags are set,
|
|
859
|
+
* a tile will be rendered:
|
|
860
|
+
* - `platform-logo-rebrand-servco`
|
|
861
|
+
* - `platform-logo-rebrand`
|
|
862
|
+
*
|
|
851
863
|
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
852
864
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
853
865
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
854
866
|
*/
|
|
855
|
-
export const RovoIcon =
|
|
867
|
+
export const RovoIcon = createFeatureFlaggedRovoComponent(LegacyRovoIcon, NewRovoIcon, NewRovoHexIcon);
|
|
856
868
|
/**
|
|
857
869
|
* __Rovo logo__
|
|
858
870
|
*
|
|
@@ -862,7 +874,7 @@ export const RovoIcon = createFeatureFlaggedServiceCollectionComponent(LegacyRov
|
|
|
862
874
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
863
875
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
864
876
|
*/
|
|
865
|
-
export const RovoLogo =
|
|
877
|
+
export const RovoLogo = createFeatureFlaggedRovoComponent(LegacyRovoLogo, NewRovoLogo, NewRovoHexLogo);
|
|
866
878
|
|
|
867
879
|
/**
|
|
868
880
|
* __Guard icon__
|
|
@@ -56,6 +56,21 @@ export const createFeatureFlaggedServiceCollectionComponent = (LegacyComponent,
|
|
|
56
56
|
}, props));
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
+
export const createFeatureFlaggedRovoComponent = (LegacyComponent, NewComponent, NewHexComponent) => {
|
|
60
|
+
const RovoHexWrapped = tempSizeWrapper(NewHexComponent);
|
|
61
|
+
const RovoServiceCollectionWrapped = createFeatureFlaggedServiceCollectionComponent(LegacyComponent, NewComponent);
|
|
62
|
+
return ({
|
|
63
|
+
shouldUseHexLogo,
|
|
64
|
+
...props
|
|
65
|
+
}) => {
|
|
66
|
+
// Return hex logo if feature flag enabled. Otherwise revert to old set of components
|
|
67
|
+
if (fg('platform-logo-rebrand-rovo-hex') || shouldUseHexLogo) {
|
|
68
|
+
return /*#__PURE__*/React.createElement(RovoHexWrapped, props);
|
|
69
|
+
} else {
|
|
70
|
+
return /*#__PURE__*/React.createElement(RovoServiceCollectionWrapped, props);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
};
|
|
59
74
|
|
|
60
75
|
/**
|
|
61
76
|
* Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
|
|
@@ -127,7 +142,7 @@ export const logoDocsSchema = [
|
|
|
127
142
|
category: 'app'
|
|
128
143
|
}, {
|
|
129
144
|
name: 'rovo',
|
|
130
|
-
type: '
|
|
145
|
+
type: 'rovo-hex',
|
|
131
146
|
category: 'app'
|
|
132
147
|
},
|
|
133
148
|
// Strategy collection
|
package/dist/esm/index.js
CHANGED
|
@@ -30,6 +30,7 @@ import { ProjectsIcon as NewProjectsIcon, ProjectsLogoCS as NewProjectsLogo } fr
|
|
|
30
30
|
import { RovoIcon as NewRovoIcon, RovoLogoCS as NewRovoLogo } from '@atlaskit/temp-nav-app-icons/rovo';
|
|
31
31
|
import { RovoDevIcon as NewRovoDevIcon, RovoDevLogoCS as NewRovoDevLogo } from '@atlaskit/temp-nav-app-icons/rovo-dev';
|
|
32
32
|
import { RovoDevAgentIcon as NewRovoDevAgentIcon, RovoDevAgentLogoCS as NewRovoDevAgentLogo } from '@atlaskit/temp-nav-app-icons/rovo-dev-agent';
|
|
33
|
+
import { RovoHexIcon as NewRovoHexIcon, RovoHexLogoCS as NewRovoHexLogo } from '@atlaskit/temp-nav-app-icons/rovo-hex';
|
|
33
34
|
import { SearchIcon as OldSearchIcon, SearchLogoCS as OldSearchLogo } from '@atlaskit/temp-nav-app-icons/search';
|
|
34
35
|
import { SearchNewIcon, SearchNewLogoCS } from '@atlaskit/temp-nav-app-icons/search-new';
|
|
35
36
|
import { StatuspageIcon as NewStatuspageIcon, StatuspageLogoCS as NewStatuspageLogo } from '@atlaskit/temp-nav-app-icons/statuspage';
|
|
@@ -62,7 +63,7 @@ export { AtlassianAccessIcon, AtlassianAccessLogo } from './legacy-logos/atlassi
|
|
|
62
63
|
export { JiraWorkManagementLogo, JiraWorkManagementIcon } from './legacy-logos/jira-work-management';
|
|
63
64
|
export { AtlassianIcon, AtlassianLogo } from './legacy-logos/atlassian';
|
|
64
65
|
export { JiraSoftwareIcon, JiraSoftwareLogo } from './legacy-logos/jira-software';
|
|
65
|
-
import { createFeatureFlaggedComponent, createFeatureFlaggedServiceCollectionComponent, teamEUFlaggedIcon, tempSizeWrapper } from './logo-config';
|
|
66
|
+
import { createFeatureFlaggedComponent, createFeatureFlaggedRovoComponent, createFeatureFlaggedServiceCollectionComponent, teamEUFlaggedIcon, tempSizeWrapper } from './logo-config';
|
|
66
67
|
|
|
67
68
|
/**
|
|
68
69
|
* __Admin icon__
|
|
@@ -848,11 +849,22 @@ export var TrelloLogo = createFeatureFlaggedComponent(LegacyTrelloLogo, NewTrell
|
|
|
848
849
|
*
|
|
849
850
|
* The Rovo icon without an accompanying wordmark.
|
|
850
851
|
*
|
|
852
|
+
* By default, with no feature flags turned on, this will display a flat hex design.
|
|
853
|
+
*
|
|
854
|
+
* A colorful hex logo will render if:
|
|
855
|
+
* - the feature flag `platform-logo-rebrand-rovo-hex` is set to true
|
|
856
|
+
* - the prop `shouldUseHexLogo` is set to true
|
|
857
|
+
*
|
|
858
|
+
* Finally, for backwards compatibility, if the prop `shouldUseNewLogoDesign` is set to true, or the following feature flags are set,
|
|
859
|
+
* a tile will be rendered:
|
|
860
|
+
* - `platform-logo-rebrand-servco`
|
|
861
|
+
* - `platform-logo-rebrand`
|
|
862
|
+
*
|
|
851
863
|
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
852
864
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
853
865
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
854
866
|
*/
|
|
855
|
-
export var RovoIcon =
|
|
867
|
+
export var RovoIcon = createFeatureFlaggedRovoComponent(LegacyRovoIcon, NewRovoIcon, NewRovoHexIcon);
|
|
856
868
|
/**
|
|
857
869
|
* __Rovo logo__
|
|
858
870
|
*
|
|
@@ -862,7 +874,7 @@ export var RovoIcon = createFeatureFlaggedServiceCollectionComponent(LegacyRovoI
|
|
|
862
874
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
863
875
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
864
876
|
*/
|
|
865
|
-
export var RovoLogo =
|
|
877
|
+
export var RovoLogo = createFeatureFlaggedRovoComponent(LegacyRovoLogo, NewRovoLogo, NewRovoHexLogo);
|
|
866
878
|
|
|
867
879
|
/**
|
|
868
880
|
* __Guard icon__
|
package/dist/esm/logo-config.js
CHANGED
|
@@ -2,7 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["size", "shouldUseNewLogoDesign"],
|
|
4
4
|
_excluded2 = ["size", "shouldUseNewLogoDesign"],
|
|
5
|
-
_excluded3 = ["
|
|
5
|
+
_excluded3 = ["shouldUseHexLogo"],
|
|
6
|
+
_excluded4 = ["size"];
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
/**
|
|
@@ -58,6 +59,20 @@ export var createFeatureFlaggedServiceCollectionComponent = function createFeatu
|
|
|
58
59
|
}, props));
|
|
59
60
|
};
|
|
60
61
|
};
|
|
62
|
+
export var createFeatureFlaggedRovoComponent = function createFeatureFlaggedRovoComponent(LegacyComponent, NewComponent, NewHexComponent) {
|
|
63
|
+
var RovoHexWrapped = tempSizeWrapper(NewHexComponent);
|
|
64
|
+
var RovoServiceCollectionWrapped = createFeatureFlaggedServiceCollectionComponent(LegacyComponent, NewComponent);
|
|
65
|
+
return function (_ref3) {
|
|
66
|
+
var shouldUseHexLogo = _ref3.shouldUseHexLogo,
|
|
67
|
+
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
68
|
+
// Return hex logo if feature flag enabled. Otherwise revert to old set of components
|
|
69
|
+
if (fg('platform-logo-rebrand-rovo-hex') || shouldUseHexLogo) {
|
|
70
|
+
return /*#__PURE__*/React.createElement(RovoHexWrapped, props);
|
|
71
|
+
} else {
|
|
72
|
+
return /*#__PURE__*/React.createElement(RovoServiceCollectionWrapped, props);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
};
|
|
61
76
|
|
|
62
77
|
/**
|
|
63
78
|
* Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
|
|
@@ -65,9 +80,9 @@ export var createFeatureFlaggedServiceCollectionComponent = function createFeatu
|
|
|
65
80
|
* @param NewComponent - The new logo or icon component.
|
|
66
81
|
*/
|
|
67
82
|
export var tempSizeWrapper = function tempSizeWrapper(NewComponent) {
|
|
68
|
-
return function (
|
|
69
|
-
var size =
|
|
70
|
-
props = _objectWithoutProperties(
|
|
83
|
+
return function (_ref4) {
|
|
84
|
+
var size = _ref4.size,
|
|
85
|
+
props = _objectWithoutProperties(_ref4, _excluded4);
|
|
71
86
|
return /*#__PURE__*/React.createElement(NewComponent, _extends({
|
|
72
87
|
size: size || 'medium'
|
|
73
88
|
}, props));
|
|
@@ -128,7 +143,7 @@ export var logoDocsSchema = [
|
|
|
128
143
|
category: 'app'
|
|
129
144
|
}, {
|
|
130
145
|
name: 'rovo',
|
|
131
|
-
type: '
|
|
146
|
+
type: 'rovo-hex',
|
|
132
147
|
category: 'app'
|
|
133
148
|
},
|
|
134
149
|
// Strategy collection
|
package/dist/types/index.d.ts
CHANGED
|
@@ -769,11 +769,25 @@ export declare const TrelloLogo: ({ size, shouldUseNewLogoDesign, ...props }: im
|
|
|
769
769
|
*
|
|
770
770
|
* The Rovo icon without an accompanying wordmark.
|
|
771
771
|
*
|
|
772
|
+
* By default, with no feature flags turned on, this will display a flat hex design.
|
|
773
|
+
*
|
|
774
|
+
* A colorful hex logo will render if:
|
|
775
|
+
* - the feature flag `platform-logo-rebrand-rovo-hex` is set to true
|
|
776
|
+
* - the prop `shouldUseHexLogo` is set to true
|
|
777
|
+
*
|
|
778
|
+
* Finally, for backwards compatibility, if the prop `shouldUseNewLogoDesign` is set to true, or the following feature flags are set,
|
|
779
|
+
* a tile will be rendered:
|
|
780
|
+
* - `platform-logo-rebrand-servco`
|
|
781
|
+
* - `platform-logo-rebrand`
|
|
782
|
+
*
|
|
772
783
|
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
773
784
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
774
785
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
775
786
|
*/
|
|
776
|
-
export declare const RovoIcon: ({
|
|
787
|
+
export declare const RovoIcon: ({ shouldUseHexLogo, ...props }: import("./types").LogoProps & {
|
|
788
|
+
shouldUseNewLogoDesign?: boolean;
|
|
789
|
+
shouldUseHexLogo?: boolean;
|
|
790
|
+
}) => import("react").JSX.Element;
|
|
777
791
|
/**
|
|
778
792
|
* __Rovo logo__
|
|
779
793
|
*
|
|
@@ -783,7 +797,10 @@ export declare const RovoIcon: ({ size, shouldUseNewLogoDesign, ...props }: impo
|
|
|
783
797
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
784
798
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
785
799
|
*/
|
|
786
|
-
export declare const RovoLogo: ({
|
|
800
|
+
export declare const RovoLogo: ({ shouldUseHexLogo, ...props }: import("./types").LogoProps & {
|
|
801
|
+
shouldUseNewLogoDesign?: boolean;
|
|
802
|
+
shouldUseHexLogo?: boolean;
|
|
803
|
+
}) => import("react").JSX.Element;
|
|
787
804
|
/**
|
|
788
805
|
* __Guard icon__
|
|
789
806
|
*
|
|
@@ -19,6 +19,17 @@ export declare const createFeatureFlaggedComponent: (LegacyComponent: React.Comp
|
|
|
19
19
|
* @returns A feature flagged component that renders the legacy logo or the new logo.
|
|
20
20
|
*/
|
|
21
21
|
export declare const createFeatureFlaggedServiceCollectionComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<TempLogoProps> | React.ComponentType<TempIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
|
|
22
|
+
export declare const createFeatureFlaggedRovoComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<TempLogoProps> | React.ComponentType<TempIconProps>, NewHexComponent: React.ComponentType<TempLogoProps> | React.ComponentType<TempIconProps>) => ({ shouldUseHexLogo, ...props }: LogoProps & {
|
|
23
|
+
/**
|
|
24
|
+
* When the feature flag `platform-logo-rebrand-rovo-hex` is set to false, this flag changes the rovo logo to a tile.
|
|
25
|
+
* After the hex design is rolled out, this prop will do nothing - it is maintained for now to enable backwards compatibility and safe roll-out
|
|
26
|
+
*/
|
|
27
|
+
shouldUseNewLogoDesign?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Forces the new rovo hex logo to be used.
|
|
30
|
+
*/
|
|
31
|
+
shouldUseHexLogo?: boolean;
|
|
32
|
+
}) => React.JSX.Element;
|
|
22
33
|
/**
|
|
23
34
|
* Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
|
|
24
35
|
*
|
|
@@ -28,7 +39,7 @@ export declare const tempSizeWrapper: (NewComponent: React.ComponentType<TempLog
|
|
|
28
39
|
export declare const teamEUFlaggedIcon: (LegacyComponent: React.ComponentType<TempIconProps> | React.ComponentType<TempLogoProps>, NewComponent: React.ComponentType<TempIconProps> | React.ComponentType<TempLogoProps>) => (props: LogoProps) => React.JSX.Element;
|
|
29
40
|
type LogoDocsSchema = {
|
|
30
41
|
name: string;
|
|
31
|
-
type: 'legacy' | 'migration' | 'new';
|
|
42
|
+
type: 'legacy' | 'migration' | 'new' | 'rovo-hex';
|
|
32
43
|
category: 'program' | 'app' | 'agent';
|
|
33
44
|
skipExample?: boolean;
|
|
34
45
|
deprecated?: boolean;
|
|
@@ -769,11 +769,25 @@ export declare const TrelloLogo: ({ size, shouldUseNewLogoDesign, ...props }: im
|
|
|
769
769
|
*
|
|
770
770
|
* The Rovo icon without an accompanying wordmark.
|
|
771
771
|
*
|
|
772
|
+
* By default, with no feature flags turned on, this will display a flat hex design.
|
|
773
|
+
*
|
|
774
|
+
* A colorful hex logo will render if:
|
|
775
|
+
* - the feature flag `platform-logo-rebrand-rovo-hex` is set to true
|
|
776
|
+
* - the prop `shouldUseHexLogo` is set to true
|
|
777
|
+
*
|
|
778
|
+
* Finally, for backwards compatibility, if the prop `shouldUseNewLogoDesign` is set to true, or the following feature flags are set,
|
|
779
|
+
* a tile will be rendered:
|
|
780
|
+
* - `platform-logo-rebrand-servco`
|
|
781
|
+
* - `platform-logo-rebrand`
|
|
782
|
+
*
|
|
772
783
|
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
773
784
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
774
785
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
775
786
|
*/
|
|
776
|
-
export declare const RovoIcon: ({
|
|
787
|
+
export declare const RovoIcon: ({ shouldUseHexLogo, ...props }: import("./types").LogoProps & {
|
|
788
|
+
shouldUseNewLogoDesign?: boolean;
|
|
789
|
+
shouldUseHexLogo?: boolean;
|
|
790
|
+
}) => import("react").JSX.Element;
|
|
777
791
|
/**
|
|
778
792
|
* __Rovo logo__
|
|
779
793
|
*
|
|
@@ -783,7 +797,10 @@ export declare const RovoIcon: ({ size, shouldUseNewLogoDesign, ...props }: impo
|
|
|
783
797
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
784
798
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
785
799
|
*/
|
|
786
|
-
export declare const RovoLogo: ({
|
|
800
|
+
export declare const RovoLogo: ({ shouldUseHexLogo, ...props }: import("./types").LogoProps & {
|
|
801
|
+
shouldUseNewLogoDesign?: boolean;
|
|
802
|
+
shouldUseHexLogo?: boolean;
|
|
803
|
+
}) => import("react").JSX.Element;
|
|
787
804
|
/**
|
|
788
805
|
* __Guard icon__
|
|
789
806
|
*
|
|
@@ -19,6 +19,17 @@ export declare const createFeatureFlaggedComponent: (LegacyComponent: React.Comp
|
|
|
19
19
|
* @returns A feature flagged component that renders the legacy logo or the new logo.
|
|
20
20
|
*/
|
|
21
21
|
export declare const createFeatureFlaggedServiceCollectionComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<TempLogoProps> | React.ComponentType<TempIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
|
|
22
|
+
export declare const createFeatureFlaggedRovoComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<TempLogoProps> | React.ComponentType<TempIconProps>, NewHexComponent: React.ComponentType<TempLogoProps> | React.ComponentType<TempIconProps>) => ({ shouldUseHexLogo, ...props }: LogoProps & {
|
|
23
|
+
/**
|
|
24
|
+
* When the feature flag `platform-logo-rebrand-rovo-hex` is set to false, this flag changes the rovo logo to a tile.
|
|
25
|
+
* After the hex design is rolled out, this prop will do nothing - it is maintained for now to enable backwards compatibility and safe roll-out
|
|
26
|
+
*/
|
|
27
|
+
shouldUseNewLogoDesign?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Forces the new rovo hex logo to be used.
|
|
30
|
+
*/
|
|
31
|
+
shouldUseHexLogo?: boolean;
|
|
32
|
+
}) => React.JSX.Element;
|
|
22
33
|
/**
|
|
23
34
|
* Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
|
|
24
35
|
*
|
|
@@ -28,7 +39,7 @@ export declare const tempSizeWrapper: (NewComponent: React.ComponentType<TempLog
|
|
|
28
39
|
export declare const teamEUFlaggedIcon: (LegacyComponent: React.ComponentType<TempIconProps> | React.ComponentType<TempLogoProps>, NewComponent: React.ComponentType<TempIconProps> | React.ComponentType<TempLogoProps>) => (props: LogoProps) => React.JSX.Element;
|
|
29
40
|
type LogoDocsSchema = {
|
|
30
41
|
name: string;
|
|
31
|
-
type: 'legacy' | 'migration' | 'new';
|
|
42
|
+
type: 'legacy' | 'migration' | 'new' | 'rovo-hex';
|
|
32
43
|
category: 'program' | 'app' | 'agent';
|
|
33
44
|
skipExample?: boolean;
|
|
34
45
|
deprecated?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/logo",
|
|
3
|
-
"version": "19.8.
|
|
3
|
+
"version": "19.8.3",
|
|
4
4
|
"description": "A logo is a visual representation of a brand or app. It can be a word, an image, or a combination of both.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/ds-lib": "^5.1.0",
|
|
31
31
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
32
|
-
"@atlaskit/temp-nav-app-icons": "^0.
|
|
32
|
+
"@atlaskit/temp-nav-app-icons": "^0.14.0",
|
|
33
33
|
"@atlaskit/theme": "^21.0.0",
|
|
34
34
|
"@atlaskit/tokens": "^6.4.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
@@ -100,6 +100,9 @@
|
|
|
100
100
|
},
|
|
101
101
|
"platform-logo-rebrand-team-eu": {
|
|
102
102
|
"type": "boolean"
|
|
103
|
+
},
|
|
104
|
+
"platform-logo-rebrand-rovo-hex": {
|
|
105
|
+
"type": "boolean"
|
|
103
106
|
}
|
|
104
107
|
},
|
|
105
108
|
"homepage": "https://atlassian.design/components/logo/"
|