@atlaskit/logo 19.6.2 → 19.7.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
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/logo
2
2
 
3
+ ## 19.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 19.7.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`46af0313b8e7a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/46af0313b8e7a) -
14
+ We are testing rebranded logos behind a feature flag. If this change is successful it will be
15
+ available in a later release.
16
+
3
17
  ## 19.6.2
4
18
 
5
19
  ### Patch Changes
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/wrapper.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/wrapper.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/legacy-logos/atlas/icon.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/legacy-logos/atlas/icon.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/exports/atlassian-icon.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/exports/atlassian-icon.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/exports/bitbucket-icon.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/exports/bitbucket-icon.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/exports/confluence-icon.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/exports/confluence-icon.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/constants.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/constants.d.ts"
14
14
  ]
package/dist/cjs/index.js CHANGED
@@ -744,7 +744,7 @@ var JiraProductDiscoveryLogo = exports.JiraProductDiscoveryLogo = (0, _logoConfi
744
744
  * - [Code](https://atlassian.design/components/logo/code)
745
745
  * - [Usage](https://atlassian.design/components/logo/usage)
746
746
  */
747
- var JiraServiceManagementIcon = exports.JiraServiceManagementIcon = (0, _logoConfig.createFeatureFlaggedComponent)(_jiraServiceManagement2.JiraServiceManagementIcon, _jiraServiceManagement.JiraServiceManagementIcon);
747
+ var JiraServiceManagementIcon = exports.JiraServiceManagementIcon = (0, _logoConfig.createFeatureFlaggedServiceCollectionComponent)(_jiraServiceManagement2.JiraServiceManagementIcon, _jiraServiceManagement.JiraServiceManagementIcon);
748
748
 
749
749
  /**
750
750
  * __Jira service management logo__
@@ -755,7 +755,7 @@ var JiraServiceManagementIcon = exports.JiraServiceManagementIcon = (0, _logoCon
755
755
  * - [Code](https://atlassian.design/components/logo/code)
756
756
  * - [Usage](https://atlassian.design/components/logo/usage)
757
757
  */
758
- var JiraServiceManagementLogo = exports.JiraServiceManagementLogo = (0, _logoConfig.createFeatureFlaggedComponent)(_jiraServiceManagement2.JiraServiceManagementLogo, _jiraServiceManagement.JiraServiceManagementLogoCS);
758
+ var JiraServiceManagementLogo = exports.JiraServiceManagementLogo = (0, _logoConfig.createFeatureFlaggedServiceCollectionComponent)(_jiraServiceManagement2.JiraServiceManagementLogo, _jiraServiceManagement.JiraServiceManagementLogoCS);
759
759
 
760
760
  /**
761
761
  * __Loom icon__
@@ -826,7 +826,7 @@ var LoomBlurpleIcon = exports.LoomBlurpleIcon = (0, _logoConfig.tempSizeWrapper)
826
826
  * - [Code](https://atlassian.design/components/logo/code)
827
827
  * - [Usage](https://atlassian.design/components/logo/usage)
828
828
  */
829
- var OpsgenieIcon = exports.OpsgenieIcon = (0, _logoConfig.createFeatureFlaggedComponent)(_opsgenie2.OpsgenieIcon, _opsgenie.OpsgenieIcon);
829
+ var OpsgenieIcon = exports.OpsgenieIcon = (0, _logoConfig.createFeatureFlaggedServiceCollectionComponent)(_opsgenie2.OpsgenieIcon, _opsgenie.OpsgenieIcon);
830
830
  /**
831
831
  * __Opsgenie logo__
832
832
  *
@@ -836,7 +836,7 @@ var OpsgenieIcon = exports.OpsgenieIcon = (0, _logoConfig.createFeatureFlaggedCo
836
836
  * - [Code](https://atlassian.design/components/logo/code)
837
837
  * - [Usage](https://atlassian.design/components/logo/usage)
838
838
  */
839
- var OpsgenieLogo = exports.OpsgenieLogo = (0, _logoConfig.createFeatureFlaggedComponent)(_opsgenie2.OpsgenieLogo, _opsgenie.OpsgenieLogoCS);
839
+ var OpsgenieLogo = exports.OpsgenieLogo = (0, _logoConfig.createFeatureFlaggedServiceCollectionComponent)(_opsgenie2.OpsgenieLogo, _opsgenie.OpsgenieLogoCS);
840
840
 
841
841
  /**
842
842
  * __Statuspage icon__
@@ -847,7 +847,7 @@ var OpsgenieLogo = exports.OpsgenieLogo = (0, _logoConfig.createFeatureFlaggedCo
847
847
  * - [Code](https://atlassian.design/components/logo/code)
848
848
  * - [Usage](https://atlassian.design/components/logo/usage)
849
849
  */
850
- var StatuspageIcon = exports.StatuspageIcon = (0, _logoConfig.createFeatureFlaggedComponent)(_statuspage2.StatuspageIcon, _statuspage.StatuspageIcon);
850
+ var StatuspageIcon = exports.StatuspageIcon = (0, _logoConfig.createFeatureFlaggedServiceCollectionComponent)(_statuspage2.StatuspageIcon, _statuspage.StatuspageIcon);
851
851
  /**
852
852
  * __Statuspage logo__
853
853
  *
@@ -857,7 +857,7 @@ var StatuspageIcon = exports.StatuspageIcon = (0, _logoConfig.createFeatureFlagg
857
857
  * - [Code](https://atlassian.design/components/logo/code)
858
858
  * - [Usage](https://atlassian.design/components/logo/usage)
859
859
  */
860
- var StatuspageLogo = exports.StatuspageLogo = (0, _logoConfig.createFeatureFlaggedComponent)(_statuspage2.StatuspageLogo, _statuspage.StatuspageLogoCS);
860
+ var StatuspageLogo = exports.StatuspageLogo = (0, _logoConfig.createFeatureFlaggedServiceCollectionComponent)(_statuspage2.StatuspageLogo, _statuspage.StatuspageLogoCS);
861
861
  /**
862
862
  * __Trello icon__
863
863
  *
@@ -887,7 +887,7 @@ var TrelloLogo = exports.TrelloLogo = (0, _logoConfig.createFeatureFlaggedCompon
887
887
  * - [Code](https://atlassian.design/components/logo/code)
888
888
  * - [Usage](https://atlassian.design/components/logo/usage)
889
889
  */
890
- var RovoIcon = exports.RovoIcon = (0, _logoConfig.createFeatureFlaggedComponent)(_rovo2.RovoIcon, _rovo.RovoIcon);
890
+ var RovoIcon = exports.RovoIcon = (0, _logoConfig.createFeatureFlaggedServiceCollectionComponent)(_rovo2.RovoIcon, _rovo.RovoIcon);
891
891
  /**
892
892
  * __Rovo logo__
893
893
  *
@@ -897,7 +897,7 @@ var RovoIcon = exports.RovoIcon = (0, _logoConfig.createFeatureFlaggedComponent)
897
897
  * - [Code](https://atlassian.design/components/logo/code)
898
898
  * - [Usage](https://atlassian.design/components/logo/usage)
899
899
  */
900
- var RovoLogo = exports.RovoLogo = (0, _logoConfig.createFeatureFlaggedComponent)(_rovo2.RovoLogo, _rovo.RovoLogoCS);
900
+ var RovoLogo = exports.RovoLogo = (0, _logoConfig.createFeatureFlaggedServiceCollectionComponent)(_rovo2.RovoLogo, _rovo.RovoLogoCS);
901
901
 
902
902
  /**
903
903
  * __Guard icon__
@@ -4,13 +4,14 @@ 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.createFeatureFlaggedComponent = exports.SHARED_LOGOS = exports.PROGRAM_LOGO_DOCS_ORDER = exports.NEW_ONLY_LOGOS = exports.LEGACY_ONLY_LOGOS = exports.APP_LOGO_DOCS_ORDER = void 0;
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 = 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
- _excluded2 = ["size"];
13
+ _excluded2 = ["size", "shouldUseNewLogoDesign"],
14
+ _excluded3 = ["size"];
14
15
  /**
15
16
  * Creates a feature flagged component that renders the legacy logo or the new logo
16
17
  * based on the platform-logo-rebrand feature flag.
@@ -39,14 +40,41 @@ var createFeatureFlaggedComponent = exports.createFeatureFlaggedComponent = func
39
40
  };
40
41
 
41
42
  /**
42
- * Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
43
+ * Creates a feature flagged component that renders the legacy logo or the new logo
44
+ * based on the platform-logo-rebrand-servco or platform-logo-rebrand feature flag.
43
45
  *
44
- * @param NewComponent - The new logo or icon component.
46
+ * @param LegacyComponent - The legacy logo component.
47
+ * @param NewComponent - The new logo component.
48
+ * @returns A feature flagged component that renders the legacy logo or the new logo.
45
49
  */
46
- var tempSizeWrapper = exports.tempSizeWrapper = function tempSizeWrapper(NewComponent) {
50
+ var createFeatureFlaggedServiceCollectionComponent = exports.createFeatureFlaggedServiceCollectionComponent = function createFeatureFlaggedServiceCollectionComponent(LegacyComponent, NewComponent) {
51
+ // Note: textColor and iconColor aren't supported on all new logos
52
+ // These props will be deprecated in the future
47
53
  return function (_ref2) {
48
54
  var size = _ref2.size,
55
+ shouldUseNewLogoDesign = _ref2.shouldUseNewLogoDesign,
49
56
  props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
57
+ if ((0, _platformFeatureFlags.fg)('platform-logo-rebrand-servco') || (0, _platformFeatureFlags.fg)('platform-logo-rebrand') || shouldUseNewLogoDesign) {
58
+ // Size defaults need to be set, as the temp library had different defaults
59
+ return /*#__PURE__*/_react.default.createElement(NewComponent, (0, _extends2.default)({
60
+ size: size || 'medium'
61
+ }, props));
62
+ }
63
+ return /*#__PURE__*/_react.default.createElement(LegacyComponent, (0, _extends2.default)({
64
+ size: size
65
+ }, props));
66
+ };
67
+ };
68
+
69
+ /**
70
+ * Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
71
+ *
72
+ * @param NewComponent - The new logo or icon component.
73
+ */
74
+ var tempSizeWrapper = exports.tempSizeWrapper = function tempSizeWrapper(NewComponent) {
75
+ return function (_ref3) {
76
+ var size = _ref3.size,
77
+ props = (0, _objectWithoutProperties2.default)(_ref3, _excluded3);
50
78
  return /*#__PURE__*/_react.default.createElement(NewComponent, (0, _extends2.default)({
51
79
  size: size || 'medium'
52
80
  }, props));
@@ -57,7 +57,7 @@ export { AtlassianAccessIcon, AtlassianAccessLogo } from './legacy-logos/atlassi
57
57
  export { JiraWorkManagementLogo, JiraWorkManagementIcon } from './legacy-logos/jira-work-management';
58
58
  export { AtlassianIcon, AtlassianLogo } from './legacy-logos/atlassian';
59
59
  export { JiraSoftwareIcon, JiraSoftwareLogo } from './legacy-logos/jira-software';
60
- import { createFeatureFlaggedComponent, tempSizeWrapper } from './logo-config';
60
+ import { createFeatureFlaggedComponent, createFeatureFlaggedServiceCollectionComponent, tempSizeWrapper } from './logo-config';
61
61
 
62
62
  /**
63
63
  * __Admin icon__
@@ -664,7 +664,7 @@ export const JiraProductDiscoveryLogo = createFeatureFlaggedComponent(LegacyJPDL
664
664
  * - [Code](https://atlassian.design/components/logo/code)
665
665
  * - [Usage](https://atlassian.design/components/logo/usage)
666
666
  */
667
- export const JiraServiceManagementIcon = createFeatureFlaggedComponent(LegacyJSMIcon, NewJSMIcon);
667
+ export const JiraServiceManagementIcon = createFeatureFlaggedServiceCollectionComponent(LegacyJSMIcon, NewJSMIcon);
668
668
 
669
669
  /**
670
670
  * __Jira service management logo__
@@ -675,7 +675,7 @@ export const JiraServiceManagementIcon = createFeatureFlaggedComponent(LegacyJSM
675
675
  * - [Code](https://atlassian.design/components/logo/code)
676
676
  * - [Usage](https://atlassian.design/components/logo/usage)
677
677
  */
678
- export const JiraServiceManagementLogo = createFeatureFlaggedComponent(LegacyJSMLogo, NewJSMLogo);
678
+ export const JiraServiceManagementLogo = createFeatureFlaggedServiceCollectionComponent(LegacyJSMLogo, NewJSMLogo);
679
679
 
680
680
  /**
681
681
  * __Loom icon__
@@ -746,7 +746,7 @@ export const LoomBlurpleIcon = tempSizeWrapper(NewLoomInternalIcon);
746
746
  * - [Code](https://atlassian.design/components/logo/code)
747
747
  * - [Usage](https://atlassian.design/components/logo/usage)
748
748
  */
749
- export const OpsgenieIcon = createFeatureFlaggedComponent(LegacyOpsgenieIcon, NewOpsgenieIcon);
749
+ export const OpsgenieIcon = createFeatureFlaggedServiceCollectionComponent(LegacyOpsgenieIcon, NewOpsgenieIcon);
750
750
  /**
751
751
  * __Opsgenie logo__
752
752
  *
@@ -756,7 +756,7 @@ export const OpsgenieIcon = createFeatureFlaggedComponent(LegacyOpsgenieIcon, Ne
756
756
  * - [Code](https://atlassian.design/components/logo/code)
757
757
  * - [Usage](https://atlassian.design/components/logo/usage)
758
758
  */
759
- export const OpsgenieLogo = createFeatureFlaggedComponent(LegacyOpsgenieLogo, NewOpsgenieLogo);
759
+ export const OpsgenieLogo = createFeatureFlaggedServiceCollectionComponent(LegacyOpsgenieLogo, NewOpsgenieLogo);
760
760
 
761
761
  /**
762
762
  * __Statuspage icon__
@@ -767,7 +767,7 @@ export const OpsgenieLogo = createFeatureFlaggedComponent(LegacyOpsgenieLogo, Ne
767
767
  * - [Code](https://atlassian.design/components/logo/code)
768
768
  * - [Usage](https://atlassian.design/components/logo/usage)
769
769
  */
770
- export const StatuspageIcon = createFeatureFlaggedComponent(LegacyStatuspageIcon, NewStatuspageIcon);
770
+ export const StatuspageIcon = createFeatureFlaggedServiceCollectionComponent(LegacyStatuspageIcon, NewStatuspageIcon);
771
771
  /**
772
772
  * __Statuspage logo__
773
773
  *
@@ -777,7 +777,7 @@ export const StatuspageIcon = createFeatureFlaggedComponent(LegacyStatuspageIcon
777
777
  * - [Code](https://atlassian.design/components/logo/code)
778
778
  * - [Usage](https://atlassian.design/components/logo/usage)
779
779
  */
780
- export const StatuspageLogo = createFeatureFlaggedComponent(LegacyStatuspageLogo, NewStatuspageLogo);
780
+ export const StatuspageLogo = createFeatureFlaggedServiceCollectionComponent(LegacyStatuspageLogo, NewStatuspageLogo);
781
781
  /**
782
782
  * __Trello icon__
783
783
  *
@@ -807,7 +807,7 @@ export const TrelloLogo = createFeatureFlaggedComponent(LegacyTrelloLogo, NewTre
807
807
  * - [Code](https://atlassian.design/components/logo/code)
808
808
  * - [Usage](https://atlassian.design/components/logo/usage)
809
809
  */
810
- export const RovoIcon = createFeatureFlaggedComponent(LegacyRovoIcon, NewRovoIcon);
810
+ export const RovoIcon = createFeatureFlaggedServiceCollectionComponent(LegacyRovoIcon, NewRovoIcon);
811
811
  /**
812
812
  * __Rovo logo__
813
813
  *
@@ -817,7 +817,7 @@ export const RovoIcon = createFeatureFlaggedComponent(LegacyRovoIcon, NewRovoIco
817
817
  * - [Code](https://atlassian.design/components/logo/code)
818
818
  * - [Usage](https://atlassian.design/components/logo/usage)
819
819
  */
820
- export const RovoLogo = createFeatureFlaggedComponent(LegacyRovoLogo, NewRovoLogo);
820
+ export const RovoLogo = createFeatureFlaggedServiceCollectionComponent(LegacyRovoLogo, NewRovoLogo);
821
821
 
822
822
  /**
823
823
  * __Guard icon__
@@ -29,6 +29,34 @@ export const createFeatureFlaggedComponent = (LegacyComponent, NewComponent) =>
29
29
  };
30
30
  };
31
31
 
32
+ /**
33
+ * Creates a feature flagged component that renders the legacy logo or the new logo
34
+ * based on the platform-logo-rebrand-servco or platform-logo-rebrand feature flag.
35
+ *
36
+ * @param LegacyComponent - The legacy logo component.
37
+ * @param NewComponent - The new logo component.
38
+ * @returns A feature flagged component that renders the legacy logo or the new logo.
39
+ */
40
+ export const createFeatureFlaggedServiceCollectionComponent = (LegacyComponent, NewComponent) => {
41
+ // Note: textColor and iconColor aren't supported on all new logos
42
+ // These props will be deprecated in the future
43
+ return ({
44
+ size,
45
+ shouldUseNewLogoDesign,
46
+ ...props
47
+ }) => {
48
+ if (fg('platform-logo-rebrand-servco') || fg('platform-logo-rebrand') || shouldUseNewLogoDesign) {
49
+ // Size defaults need to be set, as the temp library had different defaults
50
+ return /*#__PURE__*/React.createElement(NewComponent, _extends({
51
+ size: size || 'medium'
52
+ }, props));
53
+ }
54
+ return /*#__PURE__*/React.createElement(LegacyComponent, _extends({
55
+ size: size
56
+ }, props));
57
+ };
58
+ };
59
+
32
60
  /**
33
61
  * Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
34
62
  *
package/dist/esm/index.js CHANGED
@@ -57,7 +57,7 @@ export { AtlassianAccessIcon, AtlassianAccessLogo } from './legacy-logos/atlassi
57
57
  export { JiraWorkManagementLogo, JiraWorkManagementIcon } from './legacy-logos/jira-work-management';
58
58
  export { AtlassianIcon, AtlassianLogo } from './legacy-logos/atlassian';
59
59
  export { JiraSoftwareIcon, JiraSoftwareLogo } from './legacy-logos/jira-software';
60
- import { createFeatureFlaggedComponent, tempSizeWrapper } from './logo-config';
60
+ import { createFeatureFlaggedComponent, createFeatureFlaggedServiceCollectionComponent, tempSizeWrapper } from './logo-config';
61
61
 
62
62
  /**
63
63
  * __Admin icon__
@@ -664,7 +664,7 @@ export var JiraProductDiscoveryLogo = createFeatureFlaggedComponent(LegacyJPDLog
664
664
  * - [Code](https://atlassian.design/components/logo/code)
665
665
  * - [Usage](https://atlassian.design/components/logo/usage)
666
666
  */
667
- export var JiraServiceManagementIcon = createFeatureFlaggedComponent(LegacyJSMIcon, NewJSMIcon);
667
+ export var JiraServiceManagementIcon = createFeatureFlaggedServiceCollectionComponent(LegacyJSMIcon, NewJSMIcon);
668
668
 
669
669
  /**
670
670
  * __Jira service management logo__
@@ -675,7 +675,7 @@ export var JiraServiceManagementIcon = createFeatureFlaggedComponent(LegacyJSMIc
675
675
  * - [Code](https://atlassian.design/components/logo/code)
676
676
  * - [Usage](https://atlassian.design/components/logo/usage)
677
677
  */
678
- export var JiraServiceManagementLogo = createFeatureFlaggedComponent(LegacyJSMLogo, NewJSMLogo);
678
+ export var JiraServiceManagementLogo = createFeatureFlaggedServiceCollectionComponent(LegacyJSMLogo, NewJSMLogo);
679
679
 
680
680
  /**
681
681
  * __Loom icon__
@@ -746,7 +746,7 @@ export var LoomBlurpleIcon = tempSizeWrapper(NewLoomInternalIcon);
746
746
  * - [Code](https://atlassian.design/components/logo/code)
747
747
  * - [Usage](https://atlassian.design/components/logo/usage)
748
748
  */
749
- export var OpsgenieIcon = createFeatureFlaggedComponent(LegacyOpsgenieIcon, NewOpsgenieIcon);
749
+ export var OpsgenieIcon = createFeatureFlaggedServiceCollectionComponent(LegacyOpsgenieIcon, NewOpsgenieIcon);
750
750
  /**
751
751
  * __Opsgenie logo__
752
752
  *
@@ -756,7 +756,7 @@ export var OpsgenieIcon = createFeatureFlaggedComponent(LegacyOpsgenieIcon, NewO
756
756
  * - [Code](https://atlassian.design/components/logo/code)
757
757
  * - [Usage](https://atlassian.design/components/logo/usage)
758
758
  */
759
- export var OpsgenieLogo = createFeatureFlaggedComponent(LegacyOpsgenieLogo, NewOpsgenieLogo);
759
+ export var OpsgenieLogo = createFeatureFlaggedServiceCollectionComponent(LegacyOpsgenieLogo, NewOpsgenieLogo);
760
760
 
761
761
  /**
762
762
  * __Statuspage icon__
@@ -767,7 +767,7 @@ export var OpsgenieLogo = createFeatureFlaggedComponent(LegacyOpsgenieLogo, NewO
767
767
  * - [Code](https://atlassian.design/components/logo/code)
768
768
  * - [Usage](https://atlassian.design/components/logo/usage)
769
769
  */
770
- export var StatuspageIcon = createFeatureFlaggedComponent(LegacyStatuspageIcon, NewStatuspageIcon);
770
+ export var StatuspageIcon = createFeatureFlaggedServiceCollectionComponent(LegacyStatuspageIcon, NewStatuspageIcon);
771
771
  /**
772
772
  * __Statuspage logo__
773
773
  *
@@ -777,7 +777,7 @@ export var StatuspageIcon = createFeatureFlaggedComponent(LegacyStatuspageIcon,
777
777
  * - [Code](https://atlassian.design/components/logo/code)
778
778
  * - [Usage](https://atlassian.design/components/logo/usage)
779
779
  */
780
- export var StatuspageLogo = createFeatureFlaggedComponent(LegacyStatuspageLogo, NewStatuspageLogo);
780
+ export var StatuspageLogo = createFeatureFlaggedServiceCollectionComponent(LegacyStatuspageLogo, NewStatuspageLogo);
781
781
  /**
782
782
  * __Trello icon__
783
783
  *
@@ -807,7 +807,7 @@ export var TrelloLogo = createFeatureFlaggedComponent(LegacyTrelloLogo, NewTrell
807
807
  * - [Code](https://atlassian.design/components/logo/code)
808
808
  * - [Usage](https://atlassian.design/components/logo/usage)
809
809
  */
810
- export var RovoIcon = createFeatureFlaggedComponent(LegacyRovoIcon, NewRovoIcon);
810
+ export var RovoIcon = createFeatureFlaggedServiceCollectionComponent(LegacyRovoIcon, NewRovoIcon);
811
811
  /**
812
812
  * __Rovo logo__
813
813
  *
@@ -817,7 +817,7 @@ export var RovoIcon = createFeatureFlaggedComponent(LegacyRovoIcon, NewRovoIcon)
817
817
  * - [Code](https://atlassian.design/components/logo/code)
818
818
  * - [Usage](https://atlassian.design/components/logo/usage)
819
819
  */
820
- export var RovoLogo = createFeatureFlaggedComponent(LegacyRovoLogo, NewRovoLogo);
820
+ export var RovoLogo = createFeatureFlaggedServiceCollectionComponent(LegacyRovoLogo, NewRovoLogo);
821
821
 
822
822
  /**
823
823
  * __Guard icon__
@@ -1,7 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["size", "shouldUseNewLogoDesign"],
4
- _excluded2 = ["size"];
4
+ _excluded2 = ["size", "shouldUseNewLogoDesign"],
5
+ _excluded3 = ["size"];
5
6
  import React from 'react';
6
7
  import { fg } from '@atlaskit/platform-feature-flags';
7
8
  /**
@@ -32,14 +33,41 @@ export var createFeatureFlaggedComponent = function createFeatureFlaggedComponen
32
33
  };
33
34
 
34
35
  /**
35
- * Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
36
+ * Creates a feature flagged component that renders the legacy logo or the new logo
37
+ * based on the platform-logo-rebrand-servco or platform-logo-rebrand feature flag.
36
38
  *
37
- * @param NewComponent - The new logo or icon component.
39
+ * @param LegacyComponent - The legacy logo component.
40
+ * @param NewComponent - The new logo component.
41
+ * @returns A feature flagged component that renders the legacy logo or the new logo.
38
42
  */
39
- export var tempSizeWrapper = function tempSizeWrapper(NewComponent) {
43
+ export var createFeatureFlaggedServiceCollectionComponent = function createFeatureFlaggedServiceCollectionComponent(LegacyComponent, NewComponent) {
44
+ // Note: textColor and iconColor aren't supported on all new logos
45
+ // These props will be deprecated in the future
40
46
  return function (_ref2) {
41
47
  var size = _ref2.size,
48
+ shouldUseNewLogoDesign = _ref2.shouldUseNewLogoDesign,
42
49
  props = _objectWithoutProperties(_ref2, _excluded2);
50
+ if (fg('platform-logo-rebrand-servco') || fg('platform-logo-rebrand') || shouldUseNewLogoDesign) {
51
+ // Size defaults need to be set, as the temp library had different defaults
52
+ return /*#__PURE__*/React.createElement(NewComponent, _extends({
53
+ size: size || 'medium'
54
+ }, props));
55
+ }
56
+ return /*#__PURE__*/React.createElement(LegacyComponent, _extends({
57
+ size: size
58
+ }, props));
59
+ };
60
+ };
61
+
62
+ /**
63
+ * Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
64
+ *
65
+ * @param NewComponent - The new logo or icon component.
66
+ */
67
+ export var tempSizeWrapper = function tempSizeWrapper(NewComponent) {
68
+ return function (_ref3) {
69
+ var size = _ref3.size,
70
+ props = _objectWithoutProperties(_ref3, _excluded3);
43
71
  return /*#__PURE__*/React.createElement(NewComponent, _extends({
44
72
  size: size || 'medium'
45
73
  }, props));
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export { AtlasIcon, AtlasLogo } from './legacy-logos/atlas';
3
2
  export { AtlassianMarketplaceIcon, AtlassianMarketplaceLogo, } from './legacy-logos/atlassian-marketplace';
4
3
  export { AtlassianAccessIcon, AtlassianAccessLogo } from './legacy-logos/atlassian-access';
@@ -10,6 +10,15 @@ import { type LogoProps } from './types';
10
10
  * @returns A feature flagged component that renders the legacy logo or the new logo.
11
11
  */
12
12
  export declare const createFeatureFlaggedComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<TempLogoProps> | React.ComponentType<TempIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
13
+ /**
14
+ * Creates a feature flagged component that renders the legacy logo or the new logo
15
+ * based on the platform-logo-rebrand-servco or platform-logo-rebrand feature flag.
16
+ *
17
+ * @param LegacyComponent - The legacy logo component.
18
+ * @param NewComponent - The new logo component.
19
+ * @returns A feature flagged component that renders the legacy logo or the new logo.
20
+ */
21
+ export declare const createFeatureFlaggedServiceCollectionComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<TempLogoProps> | React.ComponentType<TempIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
13
22
  /**
14
23
  * Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
15
24
  *
@@ -2,7 +2,7 @@ type Appearance = 'brand' | 'neutral' | 'inverse';
2
2
  type Size = 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
3
  type BaseLogoProps = {
4
4
  /**
5
- * The size of the icon, uses the same sizing scheme as in `@atlaskit/icon`.
5
+ * The size of the icon.
6
6
  */
7
7
  size?: Size;
8
8
  /**
@@ -2,7 +2,6 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- /// <reference types="react" />
6
5
  import { type WrapperProps } from './constants';
7
6
  /**
8
7
  * __Wrapper__
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export { AtlasIcon, AtlasLogo } from './legacy-logos/atlas';
3
2
  export { AtlassianMarketplaceIcon, AtlassianMarketplaceLogo, } from './legacy-logos/atlassian-marketplace';
4
3
  export { AtlassianAccessIcon, AtlassianAccessLogo } from './legacy-logos/atlassian-access';
@@ -10,6 +10,15 @@ import { type LogoProps } from './types';
10
10
  * @returns A feature flagged component that renders the legacy logo or the new logo.
11
11
  */
12
12
  export declare const createFeatureFlaggedComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<TempLogoProps> | React.ComponentType<TempIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
13
+ /**
14
+ * Creates a feature flagged component that renders the legacy logo or the new logo
15
+ * based on the platform-logo-rebrand-servco or platform-logo-rebrand feature flag.
16
+ *
17
+ * @param LegacyComponent - The legacy logo component.
18
+ * @param NewComponent - The new logo component.
19
+ * @returns A feature flagged component that renders the legacy logo or the new logo.
20
+ */
21
+ export declare const createFeatureFlaggedServiceCollectionComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<TempLogoProps> | React.ComponentType<TempIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
13
22
  /**
14
23
  * Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
15
24
  *
@@ -2,7 +2,7 @@ type Appearance = 'brand' | 'neutral' | 'inverse';
2
2
  type Size = 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
3
  type BaseLogoProps = {
4
4
  /**
5
- * The size of the icon, uses the same sizing scheme as in `@atlaskit/icon`.
5
+ * The size of the icon.
6
6
  */
7
7
  size?: Size;
8
8
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @jsxRuntime classic
4
3
  * @jsx jsx
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/exports/jira-icon.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/exports/jira-icon.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/exports/jira-service-management-icon.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/exports/jira-service-management-icon.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/legacy-logos/jira-software/icon.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/legacy-logos/jira-software/icon.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/exports/opsgenie.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/exports/opsgenie.d.ts"
14
14
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/logo",
3
- "version": "19.6.2",
3
+ "version": "19.7.1",
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/"
@@ -30,8 +30,8 @@
30
30
  "@atlaskit/ds-lib": "^5.0.0",
31
31
  "@atlaskit/platform-feature-flags": "^1.1.0",
32
32
  "@atlaskit/temp-nav-app-icons": "^0.10.0",
33
- "@atlaskit/theme": "^19.0.0",
34
- "@atlaskit/tokens": "^6.0.0",
33
+ "@atlaskit/theme": "^20.0.0",
34
+ "@atlaskit/tokens": "^6.1.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "@compiled/react": "^0.18.3"
37
37
  },
@@ -45,15 +45,15 @@
45
45
  "@af/visual-regression": "workspace:^",
46
46
  "@atlaskit/code": "^17.2.0",
47
47
  "@atlaskit/docs": "^11.0.0",
48
- "@atlaskit/form": "^12.0.0",
48
+ "@atlaskit/form": "^12.2.0",
49
49
  "@atlaskit/link": "^3.2.0",
50
50
  "@atlaskit/lozenge": "^13.0.0",
51
- "@atlaskit/primitives": "^14.11.0",
52
- "@atlaskit/section-message": "^8.5.0",
51
+ "@atlaskit/primitives": "^14.12.0",
52
+ "@atlaskit/section-message": "^8.6.0",
53
53
  "@atlaskit/select": "^21.2.0",
54
54
  "@atlaskit/ssr": "workspace:^",
55
55
  "@atlassian/codegen": "^0.1.0",
56
- "@atlassian/ssr-tests": "^0.2.0",
56
+ "@atlassian/ssr-tests": "^0.3.0",
57
57
  "@testing-library/react": "^13.4.0",
58
58
  "fs-extra": "^4.0.2",
59
59
  "jscodeshift": "^17.0.0",
@@ -110,6 +110,9 @@
110
110
  "platform-feature-flags": {
111
111
  "platform-logo-rebrand": {
112
112
  "type": "boolean"
113
+ },
114
+ "platform-logo-rebrand-servco": {
115
+ "type": "boolean"
113
116
  }
114
117
  },
115
118
  "homepage": "https://atlassian.design/components/logo/"
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/exports/raw-icons.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/exports/raw-icons.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/exports/statuspage-icon.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/exports/statuspage-icon.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/exports/trello-icon.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/exports/trello-icon.d.ts"
14
14
  ]