@atlaskit/icon-object 6.2.6 → 6.2.8

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,17 @@
1
1
  # @atlaskit/icon-object
2
2
 
3
+ ## 6.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades component types to support React 18.
8
+
9
+ ## 6.2.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`f0be7593aa3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f0be7593aa3) - Internal code change turning on new linting rules.
14
+
3
15
  ## 6.2.6
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,45 @@
1
+ import path from 'path';
2
+ import { build, createIconDocs, tidy } from '@af/icon-build-process';
3
+ import type { IconBuildConfig } from '@af/icon-build-process';
4
+ import pkgDir from 'pkg-dir';
5
+ import fs from 'fs-extra';
6
+
7
+ const root = pkgDir.sync();
8
+
9
+ const config16: IconBuildConfig = {
10
+ srcDir: path.resolve(root!, 'svgs_raw'),
11
+ processedDir: path.resolve(root!, 'svgs'),
12
+ destDir: path.resolve(root!, 'glyph'),
13
+ maxWidth: 16,
14
+ maxHeight: 16,
15
+ glob: '**/16.svg',
16
+ size: 'small',
17
+ baseIconEntryPoint: '@atlaskit/icon/base',
18
+ isColorsDisabled: true,
19
+ };
20
+
21
+ const config24: IconBuildConfig = {
22
+ srcDir: path.resolve(root!, 'svgs_raw'),
23
+ processedDir: path.resolve(root!, 'svgs'),
24
+ destDir: path.resolve(root!, 'glyph'),
25
+ maxWidth: 24,
26
+ maxHeight: 24,
27
+ glob: '**/24.svg',
28
+ size: 'medium',
29
+ baseIconEntryPoint: '@atlaskit/icon/base',
30
+ isColorsDisabled: true,
31
+ };
32
+
33
+ tidy(config16)
34
+ .then(() => Promise.all([build(config16), build(config24)]))
35
+ .then(([sixteen, twentyfour]) => {
36
+ const allIcons = [...sixteen, ...twentyfour];
37
+ const iconDocs = createIconDocs(allIcons, '@atlaskit/icon-object', {}, [
38
+ 'object',
39
+ 'icon-object',
40
+ ]);
41
+
42
+ console.log('@atlaskit-icon-object built');
43
+
44
+ return fs.outputFile(path.resolve(root!, 'src/metadata.ts'), iconDocs);
45
+ });
@@ -115,13 +115,11 @@ describe('Update imports', () => {
115
115
  import { metadata } from '@atlaskit/icon';
116
116
  import { metadata as objectIconMetadata } from '@atlaskit/icon-object';
117
117
  import { metadata as fileTypeIconMetadata } from '@atlaskit/icon-file-type';
118
- import { metadata as priorityIconMetadata } from '@atlaskit/icon-priority';
119
118
  `,
120
119
  `
121
120
  import { metadata } from '@atlaskit/icon';
122
121
  import objectIconMetadata from '@atlaskit/icon-object/metadata';
123
122
  import { metadata as fileTypeIconMetadata } from '@atlaskit/icon-file-type';
124
- import { metadata as priorityIconMetadata } from '@atlaskit/icon-priority';
125
123
  `,
126
124
  'should work as expected on a real-world case',
127
125
  );
@@ -1,3 +1,5 @@
1
1
  import IconObjectProps from '!!extract-react-types-loader!../../../icon/src/extract-react-types/glyph-no-color-size.tsx';
2
2
 
3
+ ## Props
4
+
3
5
  <PropsTable heading="" props={IconObjectProps} />
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -11,5 +10,4 @@ Object.defineProperty(exports, "default", {
11
10
  return _metadata.default;
12
11
  }
13
12
  });
14
-
15
13
  var _metadata = _interopRequireDefault(require("../metadata"));
package/dist/cjs/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -11,5 +10,4 @@ Object.defineProperty(exports, "default", {
11
10
  return _base.default;
12
11
  }
13
12
  });
14
-
15
13
  var _base = _interopRequireDefault(require("@atlaskit/icon/base"));
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /* eslint-disable global-require */
9
-
10
8
  /**
11
9
  * NOTE:
12
10
  *
@@ -16,6 +14,7 @@ exports.default = void 0;
16
14
  * To change the format of this file, modify build/icon/createIconDocs.js.
17
15
  * Add synonyms in icon/icons/synonyms.js.
18
16
  */
17
+
19
18
  var metaData = {
20
19
  'blog/16': {
21
20
  keywords: ['blog/16', 'blog16', 'object', 'icon-object'],
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/icon-object",
3
- "version": "6.2.6",
3
+ "version": "6.2.8",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable global-require */
2
-
3
2
  /**
4
3
  * NOTE:
5
4
  *
@@ -9,6 +8,7 @@
9
8
  * To change the format of this file, modify build/icon/createIconDocs.js.
10
9
  * Add synonyms in icon/icons/synonyms.js.
11
10
  */
11
+
12
12
  const metaData = {
13
13
  'blog/16': {
14
14
  keywords: ['blog/16', 'blog16', 'object', 'icon-object'],
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/icon-object",
3
- "version": "6.2.6",
3
+ "version": "6.2.8",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable global-require */
2
-
3
2
  /**
4
3
  * NOTE:
5
4
  *
@@ -9,6 +8,7 @@
9
8
  * To change the format of this file, modify build/icon/createIconDocs.js.
10
9
  * Add synonyms in icon/icons/synonyms.js.
11
10
  */
11
+
12
12
  var metaData = {
13
13
  'blog/16': {
14
14
  keywords: ['blog/16', 'blog16', 'object', 'icon-object'],
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/icon-object",
3
- "version": "6.2.6",
3
+ "version": "6.2.8",
4
4
  "sideEffects": false
5
5
  }
@@ -3,5 +3,13 @@
3
3
  "main": "../dist/cjs/entry-points/metadata.js",
4
4
  "module": "../dist/esm/entry-points/metadata.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/metadata.js",
6
- "types": "../dist/types/entry-points/metadata.d.ts"
6
+ "sideEffects": false,
7
+ "types": "../dist/types/entry-points/metadata.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/entry-points/metadata.d.ts"
12
+ ]
13
+ }
14
+ }
7
15
  }
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@atlaskit/icon-object",
3
- "version": "6.2.6",
3
+ "version": "6.2.8",
4
4
  "description": "An object icon is used to represent an Atlassian-specific content type.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
7
7
  },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
9
  "homepage": "https://atlassian.design/components/icon-object/",
10
10
  "author": "Atlassian Pty Ltd",
11
11
  "license": "Apache-2.0",
12
- "atlaskit:src": "src/index.ts",
12
+ "atlaskit:src": "src/index.tsx",
13
13
  "main": "dist/cjs/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "module:es2019": "dist/es2019/index.js",
@@ -19,19 +19,20 @@
19
19
  "team": "Design System Team",
20
20
  "releaseModel": "scheduled",
21
21
  "website": {
22
- "name": "Icon object"
22
+ "name": "Icon object",
23
+ "category": "Components"
23
24
  }
24
25
  },
25
26
  "af:exports": {
26
- "./metadata": "./src/entry-points/metadata.ts",
27
+ "./metadata": "./src/entry-points/metadata.tsx",
27
28
  "./glyph": "./glyph",
28
- ".": "./src/index.ts"
29
+ ".": "./src/index.tsx"
29
30
  },
30
31
  "scripts": {
31
- "build-glyphs": "ts-node --project ../../../tsconfig.node.json ./build/index.ts"
32
+ "build-glyphs": "ts-node --project ../../../tsconfig.node.json ./build/index.tsx"
32
33
  },
33
34
  "dependencies": {
34
- "@atlaskit/icon": "^21.10.0",
35
+ "@atlaskit/icon": "^21.11.0",
35
36
  "@babel/runtime": "^7.0.0"
36
37
  },
37
38
  "peerDependencies": {
@@ -39,18 +40,18 @@
39
40
  },
40
41
  "devDependencies": {
41
42
  "@af/icon-build-process": "^0.3.0",
42
- "@af/icon-explorer": "^0.0.2",
43
- "@atlaskit/button": "^16.2.0",
43
+ "@af/icon-explorer": "^0.0.16",
44
+ "@atlaskit/button": "^16.5.0",
44
45
  "@atlaskit/docs": "*",
45
- "@atlaskit/modal-dialog": "^12.2.0",
46
- "@atlaskit/section-message": "^6.1.0",
46
+ "@atlaskit/modal-dialog": "^12.4.0",
47
+ "@atlaskit/section-message": "^6.3.0",
47
48
  "@atlaskit/ssr": "*",
48
- "@atlaskit/textfield": "^5.0.0",
49
- "@atlaskit/theme": "^12.1.0",
50
- "@atlaskit/tooltip": "^17.5.0",
49
+ "@atlaskit/textfield": "^5.3.0",
50
+ "@atlaskit/theme": "^12.3.0",
51
+ "@atlaskit/tooltip": "^17.7.0",
51
52
  "@atlaskit/visual-regression": "*",
52
53
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
53
- "@emotion/styled": "^10.0.7",
54
+ "@emotion/styled": "^11.0.0",
54
55
  "enzyme": "^3.10.0",
55
56
  "fs-extra": "^4.0.2",
56
57
  "jscodeshift": "^0.13.0",
@@ -63,10 +64,15 @@
63
64
  ],
64
65
  "techstack": {
65
66
  "@repo/internal": {
66
- "theming": "tokens",
67
+ "design-system": "v1",
68
+ "dom-events": "use-bind-event-listener",
69
+ "design-tokens": [
70
+ "color"
71
+ ],
67
72
  "styling": [
68
- "static"
69
- ]
73
+ "emotion"
74
+ ],
75
+ "deprecation": "no-deprecated-imports"
70
76
  }
71
77
  },
72
78
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
package/report.api.md ADDED
@@ -0,0 +1,24 @@
1
+ <!-- API Report Version: 2.3 -->
2
+
3
+ ## API Report File for "@atlaskit/icon-object"
4
+
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
+
8
+ ### Table of contents
9
+
10
+ - [Main Entry Types](#main-entry-types)
11
+
12
+ ### Main Entry Types
13
+
14
+ <!--SECTION START: Main Entry Types-->
15
+
16
+ ```ts
17
+ import { default as default_2 } from '@atlaskit/icon/base';
18
+
19
+ export default default_2;
20
+
21
+ // (No @packageDocumentation comment for this package)
22
+ ```
23
+
24
+ <!--SECTION END: Main Entry Types-->