@atlaskit/logo 19.8.1 → 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 CHANGED
@@ -1,5 +1,22 @@
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
+
11
+ ## 19.8.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [`5f025f8437a46`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5f025f8437a46) -
16
+ Internal changes to support updates to `chat`, `search` and `studio` logos. These changes are
17
+ being tested behind a feature flag, and will be available in a future release.
18
+ - Updated dependencies
19
+
3
20
  ## 19.8.1
4
21
 
5
22
  ### Patch Changes
@@ -190,6 +190,12 @@ Object.defineProperty(exports, "rawIcons", {
190
190
  return _rawIcons.default;
191
191
  }
192
192
  });
193
+ Object.defineProperty(exports, "rovoDevAgentIcon", {
194
+ enumerable: true,
195
+ get: function get() {
196
+ return _rawIcons.rovoDevAgentIcon;
197
+ }
198
+ });
193
199
  Object.defineProperty(exports, "rovoIcon", {
194
200
  enumerable: true,
195
201
  get: function get() {
package/dist/cjs/index.js CHANGED
@@ -87,6 +87,7 @@ var _bamboo = require("@atlaskit/temp-nav-app-icons/bamboo");
87
87
  var _bitbucket = require("@atlaskit/temp-nav-app-icons/bitbucket");
88
88
  var _bitbucketDataCenter = require("@atlaskit/temp-nav-app-icons/bitbucket-data-center");
89
89
  var _chat = require("@atlaskit/temp-nav-app-icons/chat");
90
+ var _chatNew = require("@atlaskit/temp-nav-app-icons/chat-new");
90
91
  var _compass = require("@atlaskit/temp-nav-app-icons/compass");
91
92
  var _confluence = require("@atlaskit/temp-nav-app-icons/confluence");
92
93
  var _confluenceDataCenter = require("@atlaskit/temp-nav-app-icons/confluence-data-center");
@@ -110,9 +111,12 @@ var _projects = require("@atlaskit/temp-nav-app-icons/projects");
110
111
  var _rovo = require("@atlaskit/temp-nav-app-icons/rovo");
111
112
  var _rovoDev = require("@atlaskit/temp-nav-app-icons/rovo-dev");
112
113
  var _rovoDevAgent = require("@atlaskit/temp-nav-app-icons/rovo-dev-agent");
114
+ var _rovoHex = require("@atlaskit/temp-nav-app-icons/rovo-hex");
113
115
  var _search = require("@atlaskit/temp-nav-app-icons/search");
116
+ var _searchNew = require("@atlaskit/temp-nav-app-icons/search-new");
114
117
  var _statuspage = require("@atlaskit/temp-nav-app-icons/statuspage");
115
118
  var _studio = require("@atlaskit/temp-nav-app-icons/studio");
119
+ var _studioNew = require("@atlaskit/temp-nav-app-icons/studio-new");
116
120
  var _talent = require("@atlaskit/temp-nav-app-icons/talent");
117
121
  var _teams = require("@atlaskit/temp-nav-app-icons/teams");
118
122
  var _trello = require("@atlaskit/temp-nav-app-icons/trello");
@@ -212,7 +216,7 @@ var AssetsLogo = exports.AssetsLogo = (0, _logoConfig.tempSizeWrapper)(_assets.A
212
216
  * - [Code](https://atlassian.design/components/logo/code)
213
217
  * - [Usage](https://atlassian.design/components/logo/usage)
214
218
  */
215
- var ChatIcon = exports.ChatIcon = (0, _logoConfig.tempSizeWrapper)(_chat.ChatIcon);
219
+ var ChatIcon = exports.ChatIcon = (0, _logoConfig.teamEUFlaggedIcon)(_chat.ChatIcon, _chatNew.ChatNewIcon);
216
220
  /**
217
221
  * __Chat logo__
218
222
  *
@@ -222,7 +226,7 @@ var ChatIcon = exports.ChatIcon = (0, _logoConfig.tempSizeWrapper)(_chat.ChatIco
222
226
  * - [Code](https://atlassian.design/components/logo/code)
223
227
  * - [Usage](https://atlassian.design/components/logo/usage)
224
228
  */
225
- var ChatLogo = exports.ChatLogo = (0, _logoConfig.tempSizeWrapper)(_chat.ChatLogoCS);
229
+ var ChatLogo = exports.ChatLogo = (0, _logoConfig.teamEUFlaggedIcon)(_chat.ChatLogoCS, _chatNew.ChatNewLogoCS);
226
230
  /**
227
231
  * __Customer Service Management icon__
228
232
  *
@@ -372,7 +376,7 @@ var RovoDevAgentLogo = exports.RovoDevAgentLogo = (0, _logoConfig.tempSizeWrappe
372
376
  * - [Code](https://atlassian.design/components/logo/code)
373
377
  * - [Usage](https://atlassian.design/components/logo/usage)
374
378
  */
375
- var SearchIcon = exports.SearchIcon = (0, _logoConfig.tempSizeWrapper)(_search.SearchIcon);
379
+ var SearchIcon = exports.SearchIcon = (0, _logoConfig.teamEUFlaggedIcon)(_search.SearchIcon, _searchNew.SearchNewIcon);
376
380
  /**
377
381
  * __Search logo__
378
382
  *
@@ -382,7 +386,7 @@ var SearchIcon = exports.SearchIcon = (0, _logoConfig.tempSizeWrapper)(_search.S
382
386
  * - [Code](https://atlassian.design/components/logo/code)
383
387
  * - [Usage](https://atlassian.design/components/logo/usage)
384
388
  */
385
- var SearchLogo = exports.SearchLogo = (0, _logoConfig.tempSizeWrapper)(_search.SearchLogoCS);
389
+ var SearchLogo = exports.SearchLogo = (0, _logoConfig.teamEUFlaggedIcon)(_search.SearchLogoCS, _searchNew.SearchNewLogoCS);
386
390
  /**
387
391
  * __Studio icon__
388
392
  *
@@ -392,7 +396,7 @@ var SearchLogo = exports.SearchLogo = (0, _logoConfig.tempSizeWrapper)(_search.S
392
396
  * - [Code](https://atlassian.design/components/logo/code)
393
397
  * - [Usage](https://atlassian.design/components/logo/usage)
394
398
  */
395
- var StudioIcon = exports.StudioIcon = (0, _logoConfig.tempSizeWrapper)(_studio.StudioIcon);
399
+ var StudioIcon = exports.StudioIcon = (0, _logoConfig.teamEUFlaggedIcon)(_studio.StudioIcon, _studioNew.StudioNewIcon);
396
400
  /**
397
401
  * __Studio logo__
398
402
  *
@@ -402,7 +406,7 @@ var StudioIcon = exports.StudioIcon = (0, _logoConfig.tempSizeWrapper)(_studio.S
402
406
  * - [Code](https://atlassian.design/components/logo/code)
403
407
  * - [Usage](https://atlassian.design/components/logo/usage)
404
408
  */
405
- var StudioLogo = exports.StudioLogo = (0, _logoConfig.tempSizeWrapper)(_studio.StudioLogoCS);
409
+ var StudioLogo = exports.StudioLogo = (0, _logoConfig.teamEUFlaggedIcon)(_studio.StudioLogoCS, _studioNew.StudioNewLogoCS);
406
410
  /**
407
411
  * __Talent icon__
408
412
  *
@@ -925,11 +929,22 @@ var TrelloLogo = exports.TrelloLogo = (0, _logoConfig.createFeatureFlaggedCompon
925
929
  *
926
930
  * The Rovo icon without an accompanying wordmark.
927
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
+ *
928
943
  * - [Examples](https://atlassian.design/components/logo/examples)
929
944
  * - [Code](https://atlassian.design/components/logo/code)
930
945
  * - [Usage](https://atlassian.design/components/logo/usage)
931
946
  */
932
- var RovoIcon = exports.RovoIcon = (0, _logoConfig.createFeatureFlaggedServiceCollectionComponent)(_rovo2.RovoIcon, _rovo.RovoIcon);
947
+ var RovoIcon = exports.RovoIcon = (0, _logoConfig.createFeatureFlaggedRovoComponent)(_rovo2.RovoIcon, _rovo.RovoIcon, _rovoHex.RovoHexIcon);
933
948
  /**
934
949
  * __Rovo logo__
935
950
  *
@@ -939,7 +954,7 @@ var RovoIcon = exports.RovoIcon = (0, _logoConfig.createFeatureFlaggedServiceCol
939
954
  * - [Code](https://atlassian.design/components/logo/code)
940
955
  * - [Usage](https://atlassian.design/components/logo/usage)
941
956
  */
942
- var RovoLogo = exports.RovoLogo = (0, _logoConfig.createFeatureFlaggedServiceCollectionComponent)(_rovo2.RovoLogo, _rovo.RovoLogoCS);
957
+ var RovoLogo = exports.RovoLogo = (0, _logoConfig.createFeatureFlaggedRovoComponent)(_rovo2.RovoLogo, _rovo.RovoLogoCS, _rovoHex.RovoHexLogoCS);
943
958
 
944
959
  /**
945
960
  * __Guard icon__
@@ -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.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 = ["size"];
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,14 +87,20 @@ 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 (_ref3) {
76
- var size = _ref3.size,
77
- props = (0, _objectWithoutProperties2.default)(_ref3, _excluded3);
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));
81
96
  };
82
97
  };
98
+ var teamEUFlaggedIcon = exports.teamEUFlaggedIcon = function teamEUFlaggedIcon(LegacyComponent, NewComponent) {
99
+ return function (props) {
100
+ var Logo = (0, _platformFeatureFlags.fg)('platform-logo-rebrand-team-eu') ? tempSizeWrapper(NewComponent) : tempSizeWrapper(LegacyComponent);
101
+ return /*#__PURE__*/_react.default.createElement(Logo, props);
102
+ };
103
+ };
83
104
  var logoDocsSchema = exports.logoDocsSchema = [
84
105
  // Program logos
85
106
  {
@@ -129,7 +150,7 @@ var logoDocsSchema = exports.logoDocsSchema = [
129
150
  category: 'app'
130
151
  }, {
131
152
  name: 'rovo',
132
- type: 'migration',
153
+ type: 'rovo-hex',
133
154
  category: 'app'
134
155
  },
135
156
  // Strategy collection
@@ -1 +1 @@
1
- export { default as rawIcons, adminIcon, alignIcon, analyticsIcon, assetsIcon, bambooIcon, bitbucketDataCenterIcon, bitbucketIcon, chatIcon, companyHubIcon, compassIcon, confluenceDataCenterIcon, confluenceIcon, crowdIcon, customLinkIcon, customerServiceManagementIcon, focusIcon, goalsIcon, guardDetectIcon, guardIcon, homeIcon, hubIcon, jiraDataCenterIcon, jiraProductDiscoveryIcon, jiraServiceManagementIcon, jiraIcon, loomInternalIcon, loomIcon, moreAtlassianAppsIcon, opsgenieIcon, projectsIcon, rovoIcon, searchIcon, statuspageIcon, studioIcon, talentIcon, teamsIcon, trelloIcon } from '@atlaskit/temp-nav-app-icons/raw-icons';
1
+ export { default as rawIcons, adminIcon, alignIcon, analyticsIcon, assetsIcon, bambooIcon, bitbucketDataCenterIcon, bitbucketIcon, chatIcon, companyHubIcon, compassIcon, confluenceDataCenterIcon, confluenceIcon, crowdIcon, customLinkIcon, customerServiceManagementIcon, focusIcon, goalsIcon, guardDetectIcon, guardIcon, homeIcon, hubIcon, jiraDataCenterIcon, jiraProductDiscoveryIcon, jiraServiceManagementIcon, jiraIcon, loomInternalIcon, loomIcon, moreAtlassianAppsIcon, opsgenieIcon, projectsIcon, rovoDevAgentIcon, rovoIcon, searchIcon, statuspageIcon, studioIcon, talentIcon, teamsIcon, trelloIcon } from '@atlaskit/temp-nav-app-icons/raw-icons';
@@ -5,7 +5,8 @@ import { AssetsIcon as NewAssetsIcon, AssetsLogoCS as NewAssetsLogo } from '@atl
5
5
  import { BambooIcon as NewBambooIcon, BambooLogoCS as NewBambooLogo } from '@atlaskit/temp-nav-app-icons/bamboo';
6
6
  import { BitbucketIcon as NewBitbucketIcon, BitbucketLogoCS as NewBitbucketLogo } from '@atlaskit/temp-nav-app-icons/bitbucket';
7
7
  import { BitbucketDataCenterIcon as NewBitbucketDataCenterIcon, BitbucketDataCenterLogoCS as NewBitbucketDataCenterLogo } from '@atlaskit/temp-nav-app-icons/bitbucket-data-center';
8
- import { ChatIcon as NewChatIcon, ChatLogoCS as NewChatLogo } from '@atlaskit/temp-nav-app-icons/chat';
8
+ import { ChatIcon as OldChatIcon, ChatLogoCS as OldChatLogo } from '@atlaskit/temp-nav-app-icons/chat';
9
+ import { ChatNewIcon, ChatNewLogoCS } from '@atlaskit/temp-nav-app-icons/chat-new';
9
10
  import { CompassIcon as NewCompassIcon, CompassLogoCS as NewCompassLogo } from '@atlaskit/temp-nav-app-icons/compass';
10
11
  import { ConfluenceIcon as NewConfluenceIcon, ConfluenceLogoCS as NewConfluenceLogo } from '@atlaskit/temp-nav-app-icons/confluence';
11
12
  import { ConfluenceDataCenterIcon as NewConfluenceDataCenterIcon, ConfluenceDataCenterLogoCS as NewConfluenceDataCenterLogo } from '@atlaskit/temp-nav-app-icons/confluence-data-center';
@@ -29,9 +30,12 @@ import { ProjectsIcon as NewProjectsIcon, ProjectsLogoCS as NewProjectsLogo } fr
29
30
  import { RovoIcon as NewRovoIcon, RovoLogoCS as NewRovoLogo } from '@atlaskit/temp-nav-app-icons/rovo';
30
31
  import { RovoDevIcon as NewRovoDevIcon, RovoDevLogoCS as NewRovoDevLogo } from '@atlaskit/temp-nav-app-icons/rovo-dev';
31
32
  import { RovoDevAgentIcon as NewRovoDevAgentIcon, RovoDevAgentLogoCS as NewRovoDevAgentLogo } from '@atlaskit/temp-nav-app-icons/rovo-dev-agent';
32
- import { SearchIcon as NewSearchIcon, SearchLogoCS as NewSearchLogo } from '@atlaskit/temp-nav-app-icons/search';
33
+ import { RovoHexIcon as NewRovoHexIcon, RovoHexLogoCS as NewRovoHexLogo } from '@atlaskit/temp-nav-app-icons/rovo-hex';
34
+ import { SearchIcon as OldSearchIcon, SearchLogoCS as OldSearchLogo } from '@atlaskit/temp-nav-app-icons/search';
35
+ import { SearchNewIcon, SearchNewLogoCS } from '@atlaskit/temp-nav-app-icons/search-new';
33
36
  import { StatuspageIcon as NewStatuspageIcon, StatuspageLogoCS as NewStatuspageLogo } from '@atlaskit/temp-nav-app-icons/statuspage';
34
- import { StudioIcon as NewStudioIcon, StudioLogoCS as NewStudioLogo } from '@atlaskit/temp-nav-app-icons/studio';
37
+ import { StudioIcon as OldStudioIcon, StudioLogoCS as OldStudioLogo } from '@atlaskit/temp-nav-app-icons/studio';
38
+ import { StudioNewIcon, StudioNewLogoCS } from '@atlaskit/temp-nav-app-icons/studio-new';
35
39
  import { TalentIcon as NewTalentIcon, TalentLogoCS as NewTalentLogo } from '@atlaskit/temp-nav-app-icons/talent';
36
40
  import { TeamsIcon as NewTeamsIcon, TeamsLogoCS as NewTeamsLogo } from '@atlaskit/temp-nav-app-icons/teams';
37
41
  import { TrelloIcon as NewTrelloIcon, TrelloLogoCS as NewTrelloLogo } from '@atlaskit/temp-nav-app-icons/trello';
@@ -59,7 +63,7 @@ export { AtlassianAccessIcon, AtlassianAccessLogo } from './legacy-logos/atlassi
59
63
  export { JiraWorkManagementLogo, JiraWorkManagementIcon } from './legacy-logos/jira-work-management';
60
64
  export { AtlassianIcon, AtlassianLogo } from './legacy-logos/atlassian';
61
65
  export { JiraSoftwareIcon, JiraSoftwareLogo } from './legacy-logos/jira-software';
62
- import { createFeatureFlaggedComponent, createFeatureFlaggedServiceCollectionComponent, tempSizeWrapper } from './logo-config';
66
+ import { createFeatureFlaggedComponent, createFeatureFlaggedRovoComponent, createFeatureFlaggedServiceCollectionComponent, teamEUFlaggedIcon, tempSizeWrapper } from './logo-config';
63
67
 
64
68
  /**
65
69
  * __Admin icon__
@@ -132,7 +136,7 @@ export const AssetsLogo = tempSizeWrapper(NewAssetsLogo);
132
136
  * - [Code](https://atlassian.design/components/logo/code)
133
137
  * - [Usage](https://atlassian.design/components/logo/usage)
134
138
  */
135
- export const ChatIcon = tempSizeWrapper(NewChatIcon);
139
+ export const ChatIcon = teamEUFlaggedIcon(OldChatIcon, ChatNewIcon);
136
140
  /**
137
141
  * __Chat logo__
138
142
  *
@@ -142,7 +146,7 @@ export const ChatIcon = tempSizeWrapper(NewChatIcon);
142
146
  * - [Code](https://atlassian.design/components/logo/code)
143
147
  * - [Usage](https://atlassian.design/components/logo/usage)
144
148
  */
145
- export const ChatLogo = tempSizeWrapper(NewChatLogo);
149
+ export const ChatLogo = teamEUFlaggedIcon(OldChatLogo, ChatNewLogoCS);
146
150
  /**
147
151
  * __Customer Service Management icon__
148
152
  *
@@ -292,7 +296,7 @@ export const RovoDevAgentLogo = tempSizeWrapper(NewRovoDevAgentLogo);
292
296
  * - [Code](https://atlassian.design/components/logo/code)
293
297
  * - [Usage](https://atlassian.design/components/logo/usage)
294
298
  */
295
- export const SearchIcon = tempSizeWrapper(NewSearchIcon);
299
+ export const SearchIcon = teamEUFlaggedIcon(OldSearchIcon, SearchNewIcon);
296
300
  /**
297
301
  * __Search logo__
298
302
  *
@@ -302,7 +306,7 @@ export const SearchIcon = tempSizeWrapper(NewSearchIcon);
302
306
  * - [Code](https://atlassian.design/components/logo/code)
303
307
  * - [Usage](https://atlassian.design/components/logo/usage)
304
308
  */
305
- export const SearchLogo = tempSizeWrapper(NewSearchLogo);
309
+ export const SearchLogo = teamEUFlaggedIcon(OldSearchLogo, SearchNewLogoCS);
306
310
  /**
307
311
  * __Studio icon__
308
312
  *
@@ -312,7 +316,7 @@ export const SearchLogo = tempSizeWrapper(NewSearchLogo);
312
316
  * - [Code](https://atlassian.design/components/logo/code)
313
317
  * - [Usage](https://atlassian.design/components/logo/usage)
314
318
  */
315
- export const StudioIcon = tempSizeWrapper(NewStudioIcon);
319
+ export const StudioIcon = teamEUFlaggedIcon(OldStudioIcon, StudioNewIcon);
316
320
  /**
317
321
  * __Studio logo__
318
322
  *
@@ -322,7 +326,7 @@ export const StudioIcon = tempSizeWrapper(NewStudioIcon);
322
326
  * - [Code](https://atlassian.design/components/logo/code)
323
327
  * - [Usage](https://atlassian.design/components/logo/usage)
324
328
  */
325
- export const StudioLogo = tempSizeWrapper(NewStudioLogo);
329
+ export const StudioLogo = teamEUFlaggedIcon(OldStudioLogo, StudioNewLogoCS);
326
330
  /**
327
331
  * __Talent icon__
328
332
  *
@@ -845,11 +849,22 @@ export const TrelloLogo = createFeatureFlaggedComponent(LegacyTrelloLogo, NewTre
845
849
  *
846
850
  * The Rovo icon without an accompanying wordmark.
847
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
+ *
848
863
  * - [Examples](https://atlassian.design/components/logo/examples)
849
864
  * - [Code](https://atlassian.design/components/logo/code)
850
865
  * - [Usage](https://atlassian.design/components/logo/usage)
851
866
  */
852
- export const RovoIcon = createFeatureFlaggedServiceCollectionComponent(LegacyRovoIcon, NewRovoIcon);
867
+ export const RovoIcon = createFeatureFlaggedRovoComponent(LegacyRovoIcon, NewRovoIcon, NewRovoHexIcon);
853
868
  /**
854
869
  * __Rovo logo__
855
870
  *
@@ -859,7 +874,7 @@ export const RovoIcon = createFeatureFlaggedServiceCollectionComponent(LegacyRov
859
874
  * - [Code](https://atlassian.design/components/logo/code)
860
875
  * - [Usage](https://atlassian.design/components/logo/usage)
861
876
  */
862
- export const RovoLogo = createFeatureFlaggedServiceCollectionComponent(LegacyRovoLogo, NewRovoLogo);
877
+ export const RovoLogo = createFeatureFlaggedRovoComponent(LegacyRovoLogo, NewRovoLogo, NewRovoHexLogo);
863
878
 
864
879
  /**
865
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.
@@ -72,6 +87,12 @@ export const tempSizeWrapper = NewComponent => {
72
87
  }, props));
73
88
  };
74
89
  };
90
+ export const teamEUFlaggedIcon = (LegacyComponent, NewComponent) => {
91
+ return props => {
92
+ const Logo = fg('platform-logo-rebrand-team-eu') ? tempSizeWrapper(NewComponent) : tempSizeWrapper(LegacyComponent);
93
+ return /*#__PURE__*/React.createElement(Logo, props);
94
+ };
95
+ };
75
96
  export const logoDocsSchema = [
76
97
  // Program logos
77
98
  {
@@ -121,7 +142,7 @@ export const logoDocsSchema = [
121
142
  category: 'app'
122
143
  }, {
123
144
  name: 'rovo',
124
- type: 'migration',
145
+ type: 'rovo-hex',
125
146
  category: 'app'
126
147
  },
127
148
  // Strategy collection
@@ -1 +1 @@
1
- export { default as rawIcons, adminIcon, alignIcon, analyticsIcon, assetsIcon, bambooIcon, bitbucketDataCenterIcon, bitbucketIcon, chatIcon, companyHubIcon, compassIcon, confluenceDataCenterIcon, confluenceIcon, crowdIcon, customLinkIcon, customerServiceManagementIcon, focusIcon, goalsIcon, guardDetectIcon, guardIcon, homeIcon, hubIcon, jiraDataCenterIcon, jiraProductDiscoveryIcon, jiraServiceManagementIcon, jiraIcon, loomInternalIcon, loomIcon, moreAtlassianAppsIcon, opsgenieIcon, projectsIcon, rovoIcon, searchIcon, statuspageIcon, studioIcon, talentIcon, teamsIcon, trelloIcon } from '@atlaskit/temp-nav-app-icons/raw-icons';
1
+ export { default as rawIcons, adminIcon, alignIcon, analyticsIcon, assetsIcon, bambooIcon, bitbucketDataCenterIcon, bitbucketIcon, chatIcon, companyHubIcon, compassIcon, confluenceDataCenterIcon, confluenceIcon, crowdIcon, customLinkIcon, customerServiceManagementIcon, focusIcon, goalsIcon, guardDetectIcon, guardIcon, homeIcon, hubIcon, jiraDataCenterIcon, jiraProductDiscoveryIcon, jiraServiceManagementIcon, jiraIcon, loomInternalIcon, loomIcon, moreAtlassianAppsIcon, opsgenieIcon, projectsIcon, rovoDevAgentIcon, rovoIcon, searchIcon, statuspageIcon, studioIcon, talentIcon, teamsIcon, trelloIcon } from '@atlaskit/temp-nav-app-icons/raw-icons';
package/dist/esm/index.js CHANGED
@@ -5,7 +5,8 @@ import { AssetsIcon as NewAssetsIcon, AssetsLogoCS as NewAssetsLogo } from '@atl
5
5
  import { BambooIcon as NewBambooIcon, BambooLogoCS as NewBambooLogo } from '@atlaskit/temp-nav-app-icons/bamboo';
6
6
  import { BitbucketIcon as NewBitbucketIcon, BitbucketLogoCS as NewBitbucketLogo } from '@atlaskit/temp-nav-app-icons/bitbucket';
7
7
  import { BitbucketDataCenterIcon as NewBitbucketDataCenterIcon, BitbucketDataCenterLogoCS as NewBitbucketDataCenterLogo } from '@atlaskit/temp-nav-app-icons/bitbucket-data-center';
8
- import { ChatIcon as NewChatIcon, ChatLogoCS as NewChatLogo } from '@atlaskit/temp-nav-app-icons/chat';
8
+ import { ChatIcon as OldChatIcon, ChatLogoCS as OldChatLogo } from '@atlaskit/temp-nav-app-icons/chat';
9
+ import { ChatNewIcon, ChatNewLogoCS } from '@atlaskit/temp-nav-app-icons/chat-new';
9
10
  import { CompassIcon as NewCompassIcon, CompassLogoCS as NewCompassLogo } from '@atlaskit/temp-nav-app-icons/compass';
10
11
  import { ConfluenceIcon as NewConfluenceIcon, ConfluenceLogoCS as NewConfluenceLogo } from '@atlaskit/temp-nav-app-icons/confluence';
11
12
  import { ConfluenceDataCenterIcon as NewConfluenceDataCenterIcon, ConfluenceDataCenterLogoCS as NewConfluenceDataCenterLogo } from '@atlaskit/temp-nav-app-icons/confluence-data-center';
@@ -29,9 +30,12 @@ import { ProjectsIcon as NewProjectsIcon, ProjectsLogoCS as NewProjectsLogo } fr
29
30
  import { RovoIcon as NewRovoIcon, RovoLogoCS as NewRovoLogo } from '@atlaskit/temp-nav-app-icons/rovo';
30
31
  import { RovoDevIcon as NewRovoDevIcon, RovoDevLogoCS as NewRovoDevLogo } from '@atlaskit/temp-nav-app-icons/rovo-dev';
31
32
  import { RovoDevAgentIcon as NewRovoDevAgentIcon, RovoDevAgentLogoCS as NewRovoDevAgentLogo } from '@atlaskit/temp-nav-app-icons/rovo-dev-agent';
32
- import { SearchIcon as NewSearchIcon, SearchLogoCS as NewSearchLogo } from '@atlaskit/temp-nav-app-icons/search';
33
+ import { RovoHexIcon as NewRovoHexIcon, RovoHexLogoCS as NewRovoHexLogo } from '@atlaskit/temp-nav-app-icons/rovo-hex';
34
+ import { SearchIcon as OldSearchIcon, SearchLogoCS as OldSearchLogo } from '@atlaskit/temp-nav-app-icons/search';
35
+ import { SearchNewIcon, SearchNewLogoCS } from '@atlaskit/temp-nav-app-icons/search-new';
33
36
  import { StatuspageIcon as NewStatuspageIcon, StatuspageLogoCS as NewStatuspageLogo } from '@atlaskit/temp-nav-app-icons/statuspage';
34
- import { StudioIcon as NewStudioIcon, StudioLogoCS as NewStudioLogo } from '@atlaskit/temp-nav-app-icons/studio';
37
+ import { StudioIcon as OldStudioIcon, StudioLogoCS as OldStudioLogo } from '@atlaskit/temp-nav-app-icons/studio';
38
+ import { StudioNewIcon, StudioNewLogoCS } from '@atlaskit/temp-nav-app-icons/studio-new';
35
39
  import { TalentIcon as NewTalentIcon, TalentLogoCS as NewTalentLogo } from '@atlaskit/temp-nav-app-icons/talent';
36
40
  import { TeamsIcon as NewTeamsIcon, TeamsLogoCS as NewTeamsLogo } from '@atlaskit/temp-nav-app-icons/teams';
37
41
  import { TrelloIcon as NewTrelloIcon, TrelloLogoCS as NewTrelloLogo } from '@atlaskit/temp-nav-app-icons/trello';
@@ -59,7 +63,7 @@ export { AtlassianAccessIcon, AtlassianAccessLogo } from './legacy-logos/atlassi
59
63
  export { JiraWorkManagementLogo, JiraWorkManagementIcon } from './legacy-logos/jira-work-management';
60
64
  export { AtlassianIcon, AtlassianLogo } from './legacy-logos/atlassian';
61
65
  export { JiraSoftwareIcon, JiraSoftwareLogo } from './legacy-logos/jira-software';
62
- import { createFeatureFlaggedComponent, createFeatureFlaggedServiceCollectionComponent, tempSizeWrapper } from './logo-config';
66
+ import { createFeatureFlaggedComponent, createFeatureFlaggedRovoComponent, createFeatureFlaggedServiceCollectionComponent, teamEUFlaggedIcon, tempSizeWrapper } from './logo-config';
63
67
 
64
68
  /**
65
69
  * __Admin icon__
@@ -132,7 +136,7 @@ export var AssetsLogo = tempSizeWrapper(NewAssetsLogo);
132
136
  * - [Code](https://atlassian.design/components/logo/code)
133
137
  * - [Usage](https://atlassian.design/components/logo/usage)
134
138
  */
135
- export var ChatIcon = tempSizeWrapper(NewChatIcon);
139
+ export var ChatIcon = teamEUFlaggedIcon(OldChatIcon, ChatNewIcon);
136
140
  /**
137
141
  * __Chat logo__
138
142
  *
@@ -142,7 +146,7 @@ export var ChatIcon = tempSizeWrapper(NewChatIcon);
142
146
  * - [Code](https://atlassian.design/components/logo/code)
143
147
  * - [Usage](https://atlassian.design/components/logo/usage)
144
148
  */
145
- export var ChatLogo = tempSizeWrapper(NewChatLogo);
149
+ export var ChatLogo = teamEUFlaggedIcon(OldChatLogo, ChatNewLogoCS);
146
150
  /**
147
151
  * __Customer Service Management icon__
148
152
  *
@@ -292,7 +296,7 @@ export var RovoDevAgentLogo = tempSizeWrapper(NewRovoDevAgentLogo);
292
296
  * - [Code](https://atlassian.design/components/logo/code)
293
297
  * - [Usage](https://atlassian.design/components/logo/usage)
294
298
  */
295
- export var SearchIcon = tempSizeWrapper(NewSearchIcon);
299
+ export var SearchIcon = teamEUFlaggedIcon(OldSearchIcon, SearchNewIcon);
296
300
  /**
297
301
  * __Search logo__
298
302
  *
@@ -302,7 +306,7 @@ export var SearchIcon = tempSizeWrapper(NewSearchIcon);
302
306
  * - [Code](https://atlassian.design/components/logo/code)
303
307
  * - [Usage](https://atlassian.design/components/logo/usage)
304
308
  */
305
- export var SearchLogo = tempSizeWrapper(NewSearchLogo);
309
+ export var SearchLogo = teamEUFlaggedIcon(OldSearchLogo, SearchNewLogoCS);
306
310
  /**
307
311
  * __Studio icon__
308
312
  *
@@ -312,7 +316,7 @@ export var SearchLogo = tempSizeWrapper(NewSearchLogo);
312
316
  * - [Code](https://atlassian.design/components/logo/code)
313
317
  * - [Usage](https://atlassian.design/components/logo/usage)
314
318
  */
315
- export var StudioIcon = tempSizeWrapper(NewStudioIcon);
319
+ export var StudioIcon = teamEUFlaggedIcon(OldStudioIcon, StudioNewIcon);
316
320
  /**
317
321
  * __Studio logo__
318
322
  *
@@ -322,7 +326,7 @@ export var StudioIcon = tempSizeWrapper(NewStudioIcon);
322
326
  * - [Code](https://atlassian.design/components/logo/code)
323
327
  * - [Usage](https://atlassian.design/components/logo/usage)
324
328
  */
325
- export var StudioLogo = tempSizeWrapper(NewStudioLogo);
329
+ export var StudioLogo = teamEUFlaggedIcon(OldStudioLogo, StudioNewLogoCS);
326
330
  /**
327
331
  * __Talent icon__
328
332
  *
@@ -845,11 +849,22 @@ export var TrelloLogo = createFeatureFlaggedComponent(LegacyTrelloLogo, NewTrell
845
849
  *
846
850
  * The Rovo icon without an accompanying wordmark.
847
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
+ *
848
863
  * - [Examples](https://atlassian.design/components/logo/examples)
849
864
  * - [Code](https://atlassian.design/components/logo/code)
850
865
  * - [Usage](https://atlassian.design/components/logo/usage)
851
866
  */
852
- export var RovoIcon = createFeatureFlaggedServiceCollectionComponent(LegacyRovoIcon, NewRovoIcon);
867
+ export var RovoIcon = createFeatureFlaggedRovoComponent(LegacyRovoIcon, NewRovoIcon, NewRovoHexIcon);
853
868
  /**
854
869
  * __Rovo logo__
855
870
  *
@@ -859,7 +874,7 @@ export var RovoIcon = createFeatureFlaggedServiceCollectionComponent(LegacyRovoI
859
874
  * - [Code](https://atlassian.design/components/logo/code)
860
875
  * - [Usage](https://atlassian.design/components/logo/usage)
861
876
  */
862
- export var RovoLogo = createFeatureFlaggedServiceCollectionComponent(LegacyRovoLogo, NewRovoLogo);
877
+ export var RovoLogo = createFeatureFlaggedRovoComponent(LegacyRovoLogo, NewRovoLogo, NewRovoHexLogo);
863
878
 
864
879
  /**
865
880
  * __Guard icon__
@@ -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 = ["size"];
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,14 +80,20 @@ 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 (_ref3) {
69
- var size = _ref3.size,
70
- props = _objectWithoutProperties(_ref3, _excluded3);
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));
74
89
  };
75
90
  };
91
+ export var teamEUFlaggedIcon = function teamEUFlaggedIcon(LegacyComponent, NewComponent) {
92
+ return function (props) {
93
+ var Logo = fg('platform-logo-rebrand-team-eu') ? tempSizeWrapper(NewComponent) : tempSizeWrapper(LegacyComponent);
94
+ return /*#__PURE__*/React.createElement(Logo, props);
95
+ };
96
+ };
76
97
  export var logoDocsSchema = [
77
98
  // Program logos
78
99
  {
@@ -122,7 +143,7 @@ export var logoDocsSchema = [
122
143
  category: 'app'
123
144
  }, {
124
145
  name: 'rovo',
125
- type: 'migration',
146
+ type: 'rovo-hex',
126
147
  category: 'app'
127
148
  },
128
149
  // Strategy collection
@@ -1 +1 @@
1
- export { default as rawIcons, adminIcon, alignIcon, analyticsIcon, assetsIcon, bambooIcon, bitbucketDataCenterIcon, bitbucketIcon, chatIcon, companyHubIcon, compassIcon, confluenceDataCenterIcon, confluenceIcon, crowdIcon, customLinkIcon, customerServiceManagementIcon, focusIcon, goalsIcon, guardDetectIcon, guardIcon, homeIcon, hubIcon, jiraDataCenterIcon, jiraProductDiscoveryIcon, jiraServiceManagementIcon, jiraIcon, loomInternalIcon, loomIcon, moreAtlassianAppsIcon, opsgenieIcon, projectsIcon, rovoIcon, searchIcon, statuspageIcon, studioIcon, talentIcon, teamsIcon, trelloIcon, } from '@atlaskit/temp-nav-app-icons/raw-icons';
1
+ export { default as rawIcons, adminIcon, alignIcon, analyticsIcon, assetsIcon, bambooIcon, bitbucketDataCenterIcon, bitbucketIcon, chatIcon, companyHubIcon, compassIcon, confluenceDataCenterIcon, confluenceIcon, crowdIcon, customLinkIcon, customerServiceManagementIcon, focusIcon, goalsIcon, guardDetectIcon, guardIcon, homeIcon, hubIcon, jiraDataCenterIcon, jiraProductDiscoveryIcon, jiraServiceManagementIcon, jiraIcon, loomInternalIcon, loomIcon, moreAtlassianAppsIcon, opsgenieIcon, projectsIcon, rovoDevAgentIcon, rovoIcon, searchIcon, statuspageIcon, studioIcon, talentIcon, teamsIcon, trelloIcon, } from '@atlaskit/temp-nav-app-icons/raw-icons';
@@ -73,7 +73,7 @@ export declare const AssetsLogo: ({ size, ...props }: import("./types").LogoProp
73
73
  * - [Code](https://atlassian.design/components/logo/code)
74
74
  * - [Usage](https://atlassian.design/components/logo/usage)
75
75
  */
76
- export declare const ChatIcon: ({ size, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
76
+ export declare const ChatIcon: (props: import("./types").LogoProps) => import("react").JSX.Element;
77
77
  /**
78
78
  * __Chat logo__
79
79
  *
@@ -83,7 +83,7 @@ export declare const ChatIcon: ({ size, ...props }: import("./types").LogoProps)
83
83
  * - [Code](https://atlassian.design/components/logo/code)
84
84
  * - [Usage](https://atlassian.design/components/logo/usage)
85
85
  */
86
- export declare const ChatLogo: ({ size, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
86
+ export declare const ChatLogo: (props: import("./types").LogoProps) => import("react").JSX.Element;
87
87
  /**
88
88
  * __Customer Service Management icon__
89
89
  *
@@ -233,7 +233,7 @@ export declare const RovoDevAgentLogo: ({ size, ...props }: import("./types").Lo
233
233
  * - [Code](https://atlassian.design/components/logo/code)
234
234
  * - [Usage](https://atlassian.design/components/logo/usage)
235
235
  */
236
- export declare const SearchIcon: ({ size, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
236
+ export declare const SearchIcon: (props: import("./types").LogoProps) => import("react").JSX.Element;
237
237
  /**
238
238
  * __Search logo__
239
239
  *
@@ -243,7 +243,7 @@ export declare const SearchIcon: ({ size, ...props }: import("./types").LogoProp
243
243
  * - [Code](https://atlassian.design/components/logo/code)
244
244
  * - [Usage](https://atlassian.design/components/logo/usage)
245
245
  */
246
- export declare const SearchLogo: ({ size, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
246
+ export declare const SearchLogo: (props: import("./types").LogoProps) => import("react").JSX.Element;
247
247
  /**
248
248
  * __Studio icon__
249
249
  *
@@ -253,7 +253,7 @@ export declare const SearchLogo: ({ size, ...props }: import("./types").LogoProp
253
253
  * - [Code](https://atlassian.design/components/logo/code)
254
254
  * - [Usage](https://atlassian.design/components/logo/usage)
255
255
  */
256
- export declare const StudioIcon: ({ size, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
256
+ export declare const StudioIcon: (props: import("./types").LogoProps) => import("react").JSX.Element;
257
257
  /**
258
258
  * __Studio logo__
259
259
  *
@@ -263,7 +263,7 @@ export declare const StudioIcon: ({ size, ...props }: import("./types").LogoProp
263
263
  * - [Code](https://atlassian.design/components/logo/code)
264
264
  * - [Usage](https://atlassian.design/components/logo/usage)
265
265
  */
266
- export declare const StudioLogo: ({ size, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
266
+ export declare const StudioLogo: (props: import("./types").LogoProps) => import("react").JSX.Element;
267
267
  /**
268
268
  * __Talent icon__
269
269
  *
@@ -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: ({ size, shouldUseNewLogoDesign, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
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: ({ size, shouldUseNewLogoDesign, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
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,15 +19,27 @@ 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
  *
25
36
  * @param NewComponent - The new logo or icon component.
26
37
  */
27
38
  export declare const tempSizeWrapper: (NewComponent: React.ComponentType<TempLogoProps> | React.ComponentType<TempIconProps>) => ({ size, ...props }: LogoProps) => React.JSX.Element;
39
+ export declare const teamEUFlaggedIcon: (LegacyComponent: React.ComponentType<TempIconProps> | React.ComponentType<TempLogoProps>, NewComponent: React.ComponentType<TempIconProps> | React.ComponentType<TempLogoProps>) => (props: LogoProps) => React.JSX.Element;
28
40
  type LogoDocsSchema = {
29
41
  name: string;
30
- type: 'legacy' | 'migration' | 'new';
42
+ type: 'legacy' | 'migration' | 'new' | 'rovo-hex';
31
43
  category: 'program' | 'app' | 'agent';
32
44
  skipExample?: boolean;
33
45
  deprecated?: boolean;
@@ -1 +1 @@
1
- export { default as rawIcons, adminIcon, alignIcon, analyticsIcon, assetsIcon, bambooIcon, bitbucketDataCenterIcon, bitbucketIcon, chatIcon, companyHubIcon, compassIcon, confluenceDataCenterIcon, confluenceIcon, crowdIcon, customLinkIcon, customerServiceManagementIcon, focusIcon, goalsIcon, guardDetectIcon, guardIcon, homeIcon, hubIcon, jiraDataCenterIcon, jiraProductDiscoveryIcon, jiraServiceManagementIcon, jiraIcon, loomInternalIcon, loomIcon, moreAtlassianAppsIcon, opsgenieIcon, projectsIcon, rovoIcon, searchIcon, statuspageIcon, studioIcon, talentIcon, teamsIcon, trelloIcon, } from '@atlaskit/temp-nav-app-icons/raw-icons';
1
+ export { default as rawIcons, adminIcon, alignIcon, analyticsIcon, assetsIcon, bambooIcon, bitbucketDataCenterIcon, bitbucketIcon, chatIcon, companyHubIcon, compassIcon, confluenceDataCenterIcon, confluenceIcon, crowdIcon, customLinkIcon, customerServiceManagementIcon, focusIcon, goalsIcon, guardDetectIcon, guardIcon, homeIcon, hubIcon, jiraDataCenterIcon, jiraProductDiscoveryIcon, jiraServiceManagementIcon, jiraIcon, loomInternalIcon, loomIcon, moreAtlassianAppsIcon, opsgenieIcon, projectsIcon, rovoDevAgentIcon, rovoIcon, searchIcon, statuspageIcon, studioIcon, talentIcon, teamsIcon, trelloIcon, } from '@atlaskit/temp-nav-app-icons/raw-icons';
@@ -73,7 +73,7 @@ export declare const AssetsLogo: ({ size, ...props }: import("./types").LogoProp
73
73
  * - [Code](https://atlassian.design/components/logo/code)
74
74
  * - [Usage](https://atlassian.design/components/logo/usage)
75
75
  */
76
- export declare const ChatIcon: ({ size, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
76
+ export declare const ChatIcon: (props: import("./types").LogoProps) => import("react").JSX.Element;
77
77
  /**
78
78
  * __Chat logo__
79
79
  *
@@ -83,7 +83,7 @@ export declare const ChatIcon: ({ size, ...props }: import("./types").LogoProps)
83
83
  * - [Code](https://atlassian.design/components/logo/code)
84
84
  * - [Usage](https://atlassian.design/components/logo/usage)
85
85
  */
86
- export declare const ChatLogo: ({ size, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
86
+ export declare const ChatLogo: (props: import("./types").LogoProps) => import("react").JSX.Element;
87
87
  /**
88
88
  * __Customer Service Management icon__
89
89
  *
@@ -233,7 +233,7 @@ export declare const RovoDevAgentLogo: ({ size, ...props }: import("./types").Lo
233
233
  * - [Code](https://atlassian.design/components/logo/code)
234
234
  * - [Usage](https://atlassian.design/components/logo/usage)
235
235
  */
236
- export declare const SearchIcon: ({ size, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
236
+ export declare const SearchIcon: (props: import("./types").LogoProps) => import("react").JSX.Element;
237
237
  /**
238
238
  * __Search logo__
239
239
  *
@@ -243,7 +243,7 @@ export declare const SearchIcon: ({ size, ...props }: import("./types").LogoProp
243
243
  * - [Code](https://atlassian.design/components/logo/code)
244
244
  * - [Usage](https://atlassian.design/components/logo/usage)
245
245
  */
246
- export declare const SearchLogo: ({ size, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
246
+ export declare const SearchLogo: (props: import("./types").LogoProps) => import("react").JSX.Element;
247
247
  /**
248
248
  * __Studio icon__
249
249
  *
@@ -253,7 +253,7 @@ export declare const SearchLogo: ({ size, ...props }: import("./types").LogoProp
253
253
  * - [Code](https://atlassian.design/components/logo/code)
254
254
  * - [Usage](https://atlassian.design/components/logo/usage)
255
255
  */
256
- export declare const StudioIcon: ({ size, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
256
+ export declare const StudioIcon: (props: import("./types").LogoProps) => import("react").JSX.Element;
257
257
  /**
258
258
  * __Studio logo__
259
259
  *
@@ -263,7 +263,7 @@ export declare const StudioIcon: ({ size, ...props }: import("./types").LogoProp
263
263
  * - [Code](https://atlassian.design/components/logo/code)
264
264
  * - [Usage](https://atlassian.design/components/logo/usage)
265
265
  */
266
- export declare const StudioLogo: ({ size, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
266
+ export declare const StudioLogo: (props: import("./types").LogoProps) => import("react").JSX.Element;
267
267
  /**
268
268
  * __Talent icon__
269
269
  *
@@ -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: ({ size, shouldUseNewLogoDesign, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
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: ({ size, shouldUseNewLogoDesign, ...props }: import("./types").LogoProps) => import("react").JSX.Element;
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,15 +19,27 @@ 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
  *
25
36
  * @param NewComponent - The new logo or icon component.
26
37
  */
27
38
  export declare const tempSizeWrapper: (NewComponent: React.ComponentType<TempLogoProps> | React.ComponentType<TempIconProps>) => ({ size, ...props }: LogoProps) => React.JSX.Element;
39
+ export declare const teamEUFlaggedIcon: (LegacyComponent: React.ComponentType<TempIconProps> | React.ComponentType<TempLogoProps>, NewComponent: React.ComponentType<TempIconProps> | React.ComponentType<TempLogoProps>) => (props: LogoProps) => React.JSX.Element;
28
40
  type LogoDocsSchema = {
29
41
  name: string;
30
- type: 'legacy' | 'migration' | 'new';
42
+ type: 'legacy' | 'migration' | 'new' | 'rovo-hex';
31
43
  category: 'program' | 'app' | 'agent';
32
44
  skipExample?: boolean;
33
45
  deprecated?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/logo",
3
- "version": "19.8.1",
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.12.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",
@@ -97,6 +97,12 @@
97
97
  },
98
98
  "platform-logo-rebrand-servco": {
99
99
  "type": "boolean"
100
+ },
101
+ "platform-logo-rebrand-team-eu": {
102
+ "type": "boolean"
103
+ },
104
+ "platform-logo-rebrand-rovo-hex": {
105
+ "type": "boolean"
100
106
  }
101
107
  },
102
108
  "homepage": "https://atlassian.design/components/logo/"