@atlaskit/logo 17.0.0 → 18.1.0

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,23 @@
1
1
  # @atlaskit/logo
2
2
 
3
+ ## 18.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#154600](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/154600)
8
+ [`d573e939cabe3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d573e939cabe3) -
9
+ Adds 'xxsmall' size to Logo, that maps to the same size as 'xsmall'. In a future major bump of
10
+ this component, the 'xsmall' size will be updated to render logos at 20px height; please migrate
11
+ any usages before then.
12
+
13
+ ## 18.0.0
14
+
15
+ ### Major Changes
16
+
17
+ - [#146780](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/146780)
18
+ [`c1fa4405cb8c6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c1fa4405cb8c6) -
19
+ Remove deprecated default prop constants.
20
+
3
21
  ## 17.0.0
4
22
 
5
23
  ### Major Changes
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.legacyDefaultLogoParams = exports.defaultLogoParams = exports.DefaultProps = void 0;
6
+ exports.legacyDefaultLogoParams = exports.defaultLogoParams = void 0;
7
7
  /**
8
8
  * These are the default parameters for LogoProps if the user does not specify values.
9
9
  */
@@ -20,25 +20,4 @@ var legacyDefaultLogoParams = exports.legacyDefaultLogoParams = {
20
20
 
21
21
  /**
22
22
  * The props for the <Wrapper /> that takes the svg and turns it into a component.
23
- */
24
-
25
- /**
26
- * In order to pass linting rules, these props were renamed to be more descriptive i.e. props renamed to LogoProps and
27
- * defaultParams to defaultLogoParams. However, this is a breaking change as it is a file with public entry points. The code
28
- * below is here to keep Logo backwards compatible.
29
- * See the ticket here: https://product-fabric.atlassian.net/browse/DSP-4086.
30
- *
31
- * Note that some consumers are accessing this using like so: import { Props } from '@atlaskit/logo/constants', this should
32
- * still work despite `LogoProps` being in a different types.tsx file.
33
- *
34
- */
35
-
36
- /**
37
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-175 Internal documentation for deprecation (no external access)} This has been renamed, please import `LogoProps` instead.
38
- */
39
- // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
40
-
41
- /**
42
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-176 Internal documentation for deprecation (no external access)} This has been renamed, please import `defaultLogoParams` instead.
43
- */
44
- var DefaultProps = exports.DefaultProps = defaultLogoParams;
23
+ */
@@ -21,6 +21,7 @@ var CSS_VAR_FILL = '--logo-fill';
21
21
  var styles = {
22
22
  root: "_1e0c1o8l _kqswh2mm _syaz1vry _lswu1xf6 _vwz4kb7n _uiztglyw _o5724jg8 _zbji1osq _3se11kw7",
23
23
  stop: "_vc881r31",
24
+ xxsmall: "_4t3i7vkz",
24
25
  xsmall: "_4t3i7vkz",
25
26
  small: "_4t3i1tcg",
26
27
  medium: "_4t3izwfg",
@@ -14,25 +14,4 @@ export const legacyDefaultLogoParams = {
14
14
 
15
15
  /**
16
16
  * The props for the <Wrapper /> that takes the svg and turns it into a component.
17
- */
18
-
19
- /**
20
- * In order to pass linting rules, these props were renamed to be more descriptive i.e. props renamed to LogoProps and
21
- * defaultParams to defaultLogoParams. However, this is a breaking change as it is a file with public entry points. The code
22
- * below is here to keep Logo backwards compatible.
23
- * See the ticket here: https://product-fabric.atlassian.net/browse/DSP-4086.
24
- *
25
- * Note that some consumers are accessing this using like so: import { Props } from '@atlaskit/logo/constants', this should
26
- * still work despite `LogoProps` being in a different types.tsx file.
27
- *
28
- */
29
-
30
- /**
31
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-175 Internal documentation for deprecation (no external access)} This has been renamed, please import `LogoProps` instead.
32
- */
33
- // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
34
-
35
- /**
36
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-176 Internal documentation for deprecation (no external access)} This has been renamed, please import `defaultLogoParams` instead.
37
- */
38
- export const DefaultProps = defaultLogoParams;
17
+ */
@@ -8,6 +8,7 @@ const CSS_VAR_FILL = '--logo-fill';
8
8
  const styles = {
9
9
  root: "_1e0c1o8l _kqswh2mm _syaz1vry _lswu1xf6 _vwz4kb7n _uiztglyw _o5724jg8 _zbji1osq _3se11kw7",
10
10
  stop: "_vc881r31",
11
+ xxsmall: "_4t3i7vkz",
11
12
  xsmall: "_4t3i7vkz",
12
13
  small: "_4t3i1tcg",
13
14
  medium: "_4t3izwfg",
@@ -14,25 +14,4 @@ export var legacyDefaultLogoParams = {
14
14
 
15
15
  /**
16
16
  * The props for the <Wrapper /> that takes the svg and turns it into a component.
17
- */
18
-
19
- /**
20
- * In order to pass linting rules, these props were renamed to be more descriptive i.e. props renamed to LogoProps and
21
- * defaultParams to defaultLogoParams. However, this is a breaking change as it is a file with public entry points. The code
22
- * below is here to keep Logo backwards compatible.
23
- * See the ticket here: https://product-fabric.atlassian.net/browse/DSP-4086.
24
- *
25
- * Note that some consumers are accessing this using like so: import { Props } from '@atlaskit/logo/constants', this should
26
- * still work despite `LogoProps` being in a different types.tsx file.
27
- *
28
- */
29
-
30
- /**
31
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-175 Internal documentation for deprecation (no external access)} This has been renamed, please import `LogoProps` instead.
32
- */
33
- // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
34
-
35
- /**
36
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-176 Internal documentation for deprecation (no external access)} This has been renamed, please import `defaultLogoParams` instead.
37
- */
38
- export var DefaultProps = defaultLogoParams;
17
+ */
@@ -11,6 +11,7 @@ var CSS_VAR_FILL = '--logo-fill';
11
11
  var styles = {
12
12
  root: "_1e0c1o8l _kqswh2mm _syaz1vry _lswu1xf6 _vwz4kb7n _uiztglyw _o5724jg8 _zbji1osq _3se11kw7",
13
13
  stop: "_vc881r31",
14
+ xxsmall: "_4t3i7vkz",
14
15
  xsmall: "_4t3i7vkz",
15
16
  small: "_4t3i1tcg",
16
17
  medium: "_4t3izwfg",
@@ -14,21 +14,3 @@ export declare const legacyDefaultLogoParams: {
14
14
  export type WrapperProps = LogoProps & {
15
15
  svg: string;
16
16
  };
17
- /**
18
- * In order to pass linting rules, these props were renamed to be more descriptive i.e. props renamed to LogoProps and
19
- * defaultParams to defaultLogoParams. However, this is a breaking change as it is a file with public entry points. The code
20
- * below is here to keep Logo backwards compatible.
21
- * See the ticket here: https://product-fabric.atlassian.net/browse/DSP-4086.
22
- *
23
- * Note that some consumers are accessing this using like so: import { Props } from '@atlaskit/logo/constants', this should
24
- * still work despite `LogoProps` being in a different types.tsx file.
25
- *
26
- */
27
- /**
28
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-175 Internal documentation for deprecation (no external access)} This has been renamed, please import `LogoProps` instead.
29
- */
30
- export type Props = LogoProps;
31
- /**
32
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-176 Internal documentation for deprecation (no external access)} This has been renamed, please import `defaultLogoParams` instead.
33
- */
34
- export declare const DefaultProps: Partial<LogoProps>;
@@ -1,6 +1,6 @@
1
1
  type Appearance = 'brand' | 'neutral' | 'inverse';
2
- type Size = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
- export type LogoProps = {
2
+ type Size = 'xxsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
+ type BaseLogoProps = {
4
4
  /**
5
5
  * The size of the icon, uses the same sizing scheme as in `@atlaskit/icon`.
6
6
  */
@@ -27,6 +27,7 @@ export type LogoProps = {
27
27
  */
28
28
  testId?: string;
29
29
  };
30
+ export type LogoProps = BaseLogoProps;
30
31
  /**
31
32
  * Utility type to make an optional property required.
32
33
  * We use this to force new logos to use the appearance prop while older ones go through the deprecation process.
@@ -14,21 +14,3 @@ export declare const legacyDefaultLogoParams: {
14
14
  export type WrapperProps = LogoProps & {
15
15
  svg: string;
16
16
  };
17
- /**
18
- * In order to pass linting rules, these props were renamed to be more descriptive i.e. props renamed to LogoProps and
19
- * defaultParams to defaultLogoParams. However, this is a breaking change as it is a file with public entry points. The code
20
- * below is here to keep Logo backwards compatible.
21
- * See the ticket here: https://product-fabric.atlassian.net/browse/DSP-4086.
22
- *
23
- * Note that some consumers are accessing this using like so: import { Props } from '@atlaskit/logo/constants', this should
24
- * still work despite `LogoProps` being in a different types.tsx file.
25
- *
26
- */
27
- /**
28
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-175 Internal documentation for deprecation (no external access)} This has been renamed, please import `LogoProps` instead.
29
- */
30
- export type Props = LogoProps;
31
- /**
32
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-176 Internal documentation for deprecation (no external access)} This has been renamed, please import `defaultLogoParams` instead.
33
- */
34
- export declare const DefaultProps: Partial<LogoProps>;
@@ -1,6 +1,6 @@
1
1
  type Appearance = 'brand' | 'neutral' | 'inverse';
2
- type Size = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
- export type LogoProps = {
2
+ type Size = 'xxsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
+ type BaseLogoProps = {
4
4
  /**
5
5
  * The size of the icon, uses the same sizing scheme as in `@atlaskit/icon`.
6
6
  */
@@ -27,6 +27,7 @@ export type LogoProps = {
27
27
  */
28
28
  testId?: string;
29
29
  };
30
+ export type LogoProps = BaseLogoProps;
30
31
  /**
31
32
  * Utility type to make an optional property required.
32
33
  * We use this to force new logos to use the appearance prop while older ones go through the deprecation process.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/logo",
3
- "version": "17.0.0",
3
+ "version": "18.1.0",
4
4
  "description": "A logo is a visual representation of a brand or product. It can be a word or an image, or a combination of both.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@atlaskit/ds-lib": "^4.0.0",
29
29
  "@atlaskit/theme": "^18.0.0",
30
- "@atlaskit/tokens": "^4.8.0",
30
+ "@atlaskit/tokens": "^4.9.0",
31
31
  "@babel/runtime": "^7.0.0",
32
32
  "@compiled/react": "^0.18.3"
33
33
  },
@@ -38,14 +38,14 @@
38
38
  "@af/accessibility-testing": "workspace:^",
39
39
  "@af/integration-testing": "workspace:^",
40
40
  "@af/visual-regression": "workspace:^",
41
- "@atlaskit/code": "^17.1.0",
41
+ "@atlaskit/code": "^17.2.0",
42
42
  "@atlaskit/docs": "^10.0.0",
43
43
  "@atlaskit/form": "^12.0.0",
44
- "@atlaskit/link": "^3.1.0",
44
+ "@atlaskit/link": "^3.2.0",
45
45
  "@atlaskit/lozenge": "^12.2.0",
46
- "@atlaskit/primitives": "^14.6.0",
46
+ "@atlaskit/primitives": "^14.8.0",
47
47
  "@atlaskit/section-message": "^8.2.0",
48
- "@atlaskit/select": "^20.4.0",
48
+ "@atlaskit/select": "^20.6.0",
49
49
  "@atlaskit/ssr": "workspace:^",
50
50
  "@atlassian/ssr-tests": "^0.2.0",
51
51
  "@testing-library/react": "^13.4.0",