@atlaskit/icon-lab 2.1.1 → 2.3.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,29 @@
1
1
  # @atlaskit/icon-lab
2
2
 
3
+ ## 2.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
8
+ [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
9
+ Update `React` from v16 to v18
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 2.2.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#106661](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/106661)
20
+ [`ae05cafecb0fa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ae05cafecb0fa) -
21
+ [ux] This release adds icons in `@atlaskit/icon-lab`.
22
+
23
+ **`@atlaskit/icon-lab/core`**
24
+
25
+ - `page-live-doc`
26
+
3
27
  ## 2.1.1
4
28
 
5
29
  ### Patch Changes
package/build/index.tsx CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  buildNew as buildIcons,
8
8
  createDeprecatedIconDocs,
9
9
  createIconDocsNew,
10
+ createVRTest,
10
11
  type NewIconBuildConfig,
11
12
  } from '@af/icon-build-process';
12
13
 
@@ -58,4 +59,15 @@ buildIcons(config).then((icons) => {
58
59
  );
59
60
 
60
61
  fs.outputFile(path.resolve(root, 'src/deprecated-core.tsx'), deprecatedDocs);
62
+
63
+ // Generate VR tests
64
+ const [vrExampleCore, vrTestCore] = createVRTest(coreIconMetadata, '../../../..', 20, 'core');
65
+ fs.outputFile(
66
+ path.resolve(root, 'src/__tests__/vr-tests/examples/all-core-icons.tsx'),
67
+ vrExampleCore,
68
+ );
69
+ fs.outputFile(
70
+ path.resolve(root, 'src/__tests__/vr-tests/all-core-icons.test.vr.tsx'),
71
+ vrTestCore,
72
+ );
61
73
  });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::13529cb90a1eb85b200bb86f4d16927d>>
4
+ * @codegenCommand yarn build:icon-glyphs
5
+ */
6
+
7
+ import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
8
+
9
+ declare const PageLiveDocIcon: {
10
+ (props: NewCoreIconProps): JSX.Element;
11
+ displayName: string;
12
+ };
13
+ export default PageLiveDocIcon;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::ee01926a19fe58ce9b323b1b6690a3c3>>
4
+ * @codegenCommand yarn build:icon-glyphs
5
+ */
6
+ "use strict";
7
+
8
+ Object.defineProperty(exports, "__esModule", {
9
+ value: true
10
+ });
11
+ exports.default = void 0;
12
+ var _react = _interopRequireDefault(require("react"));
13
+ var _baseNew = _interopRequireDefault(require("@atlaskit/icon/base-new"));
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ /**
16
+ * ⚠️ EXPERIMENTAL ⚠️ - New icons are in alpha - and subject to change or removal in future minor or patch releases.
17
+ * Please reach out in #icon-contributions before using these in production.
18
+ *
19
+ * Icon: "PageLiveDoc".
20
+ * Category: single-purpose
21
+ * Location: @atlaskit/icon-lab
22
+ * Usage guidance: Reserved for Live docs in Confluence.
23
+ * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
24
+ * - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
25
+ */
26
+ const PageLiveDocIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
27
+ dangerouslySetGlyph: `<path stroke="currentcolor" stroke-width="1.5" d="M7.5 14.25H3c-.69 0-1.25-.56-1.25-1.25V3c0-.69.56-1.25 1.25-1.25h10c.69 0 1.25.56 1.25 1.25v4.5M4 5.25h8m-8 3.5h5"/><path fill="currentcolor" d="m8.59 12.207 3.093-4.488c.314-.456 1.026-.14.898.4l-.481 2.014a.25.25 0 0 0 .243.308h2.16a.5.5 0 0 1 .412.783l-3.093 4.489c-.315.455-1.027.138-.898-.4l.48-2.014a.25.25 0 0 0-.243-.308h-2.16a.5.5 0 0 1-.412-.784"/>`
28
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
29
+ }, props));
30
+ PageLiveDocIcon.displayName = 'PageLiveDocIcon';
31
+ var _default = exports.default = PageLiveDocIcon;
@@ -9,7 +9,7 @@ exports.default = void 0;
9
9
  *
10
10
  * To change the format of this file, modify `createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
11
11
  *
12
- * @codegen <<SignedSource::c58d65251363ddc99a001ca55c0335ec>>
12
+ * @codegen <<SignedSource::b459d54dd14852e34a063abb0db32fee>>
13
13
  * @codegenCommand yarn build:icon-glyphs
14
14
  */
15
15
 
@@ -95,6 +95,15 @@ var metadata = {
95
95
  usage: 'Reserved for inserting status lozenges in Editor.',
96
96
  team: 'Editor'
97
97
  },
98
+ 'page-live-doc': {
99
+ keywords: ['page-live-doc', 'pagelivedoc', 'icon', 'icon-lab', 'core', 'page', 'live edit', 'lightning bolt', 'multiplayer', 'document'],
100
+ componentName: 'PageLiveDocIcon',
101
+ package: '@atlaskit/icon-lab/core/page-live-doc',
102
+ type: 'core',
103
+ categorization: 'single-purpose',
104
+ usage: 'Reserved for Live docs in Confluence.',
105
+ team: 'Confluence Page Modes'
106
+ },
98
107
  'paint-brush': {
99
108
  keywords: ['paint-brush', 'paintbrush', 'icon', 'icon-lab', 'core', 'brush', 'appearance', 'paint'],
100
109
  componentName: 'PaintBrushIcon',
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * To change the format of this file, modify `createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
5
5
  *
6
- * @codegen <<SignedSource::c58d65251363ddc99a001ca55c0335ec>>
6
+ * @codegen <<SignedSource::b459d54dd14852e34a063abb0db32fee>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
 
@@ -89,6 +89,15 @@ const metadata = {
89
89
  usage: 'Reserved for inserting status lozenges in Editor.',
90
90
  team: 'Editor'
91
91
  },
92
+ 'page-live-doc': {
93
+ keywords: ['page-live-doc', 'pagelivedoc', 'icon', 'icon-lab', 'core', 'page', 'live edit', 'lightning bolt', 'multiplayer', 'document'],
94
+ componentName: 'PageLiveDocIcon',
95
+ package: '@atlaskit/icon-lab/core/page-live-doc',
96
+ type: 'core',
97
+ categorization: 'single-purpose',
98
+ usage: 'Reserved for Live docs in Confluence.',
99
+ team: 'Confluence Page Modes'
100
+ },
92
101
  'paint-brush': {
93
102
  keywords: ['paint-brush', 'paintbrush', 'icon', 'icon-lab', 'core', 'brush', 'appearance', 'paint'],
94
103
  componentName: 'PaintBrushIcon',
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * To change the format of this file, modify `createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
5
5
  *
6
- * @codegen <<SignedSource::c58d65251363ddc99a001ca55c0335ec>>
6
+ * @codegen <<SignedSource::b459d54dd14852e34a063abb0db32fee>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
 
@@ -89,6 +89,15 @@ var metadata = {
89
89
  usage: 'Reserved for inserting status lozenges in Editor.',
90
90
  team: 'Editor'
91
91
  },
92
+ 'page-live-doc': {
93
+ keywords: ['page-live-doc', 'pagelivedoc', 'icon', 'icon-lab', 'core', 'page', 'live edit', 'lightning bolt', 'multiplayer', 'document'],
94
+ componentName: 'PageLiveDocIcon',
95
+ package: '@atlaskit/icon-lab/core/page-live-doc',
96
+ type: 'core',
97
+ categorization: 'single-purpose',
98
+ usage: 'Reserved for Live docs in Confluence.',
99
+ team: 'Confluence Page Modes'
100
+ },
92
101
  'paint-brush': {
93
102
  keywords: ['paint-brush', 'paintbrush', 'icon', 'icon-lab', 'core', 'brush', 'appearance', 'paint'],
94
103
  componentName: 'PaintBrushIcon',
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * To change the format of this file, modify `createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
5
5
  *
6
- * @codegen <<SignedSource::c58d65251363ddc99a001ca55c0335ec>>
6
+ * @codegen <<SignedSource::b459d54dd14852e34a063abb0db32fee>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
  interface metadata {
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * To change the format of this file, modify `createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
5
5
  *
6
- * @codegen <<SignedSource::c58d65251363ddc99a001ca55c0335ec>>
6
+ * @codegen <<SignedSource::b459d54dd14852e34a063abb0db32fee>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
  interface metadata {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/icon-lab",
3
- "version": "2.1.1",
3
+ "version": "2.3.0",
4
4
  "description": "An icon package for public icon contributions",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,7 +32,7 @@
32
32
  "build-glyphs": "ts-node --project ../../../tsconfig.node.json ./build/index.tsx"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/icon": "^23.4.0",
35
+ "@atlaskit/icon": "^23.5.0",
36
36
  "@babel/runtime": "^7.0.0"
37
37
  },
38
38
  "peerDependencies": {
@@ -42,12 +42,13 @@
42
42
  "@af/icon-build-process": "^2.4.0",
43
43
  "@af/integration-testing": "*",
44
44
  "@af/visual-regression": "*",
45
- "@atlaskit/ds-lib": "^3.3.0",
45
+ "@atlaskit/css": "^0.8.0",
46
+ "@atlaskit/ds-lib": "^3.5.0",
46
47
  "@atlaskit/ssr": "*",
47
- "@testing-library/react": "^12.1.5",
48
+ "@testing-library/react": "^13.4.0",
48
49
  "fs-extra": "^4.0.2",
49
50
  "pkg-dir": "^4.2.0",
50
- "react-dom": "^16.8.0",
51
+ "react-dom": "^18.2.0",
51
52
  "ts-node": "^10.9.1",
52
53
  "typescript": "~5.4.2"
53
54
  },