Skip to content

Commit f902dcd

Browse files
shleewhiteshleewhite
andauthored
Remove ember-flight-icons (#2881)
Co-authored-by: shleewhite <[email protected]>
1 parent 6f792ec commit f902dcd

32 files changed

+10
-1917
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
1313
"updateInternalDependents": "always"
1414
},
15-
"ignore": ["@hashicorp/ember-flight-icons", "showcase", "website"],
15+
"ignore": ["showcase", "website"],
1616
"snapshot": {
1717
"useCalculatedVersion": true
1818
}

.github/labeler.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ packages/components:
66
- changed-files:
77
- any-glob-to-any-file:
88
- packages/components/**/*
9-
packages/ember-flight-icons:
10-
- changed-files:
11-
- any-glob-to-any-file:
12-
- packages/ember-flight-icons/**/*
139
packages/flight-icons:
1410
- changed-files:
1511
- any-glob-to-any-file:

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ Design System components in Ember.js
2424
- website: [https://helios.hashicorp.design/components](https://helios.hashicorp.design/components)
2525
- more info: see [components/README](packages/components/README.md) and [components/CONTRIBUTING](packages/components/CONTRIBUTING.md).
2626

27-
### `packages/ember-flight-icons` [![npm version](https://badge.fury.io/js/%40hashicorp%2Fember-flight-icons.svg)](https://badge.fury.io/js/%40hashicorp%2Fember-flight-icons)
28-
29-
Ember.js addon with `<FlightIcon />` component (deprecated)
30-
31-
- npm package: `@hashicorp/ember-flight-icons`
32-
- website: [https://helios.hashicorp.design/icons/library](https://helios.hashicorp.design/icons/library)
33-
- more info: see [ember-flight-icons/README](packages/ember-flight-icons/README.md) and [ember-flight-icons/CONTRIBUTING](packages/ember-flight-icons/CONTRIBUTING.md) for details on how to build and test the Ember.js addon.
34-
3527
### `packages/flight-icons` [![npm version](https://badge.fury.io/js/%40hashicorp%2Fflight-icons.svg)](https://badge.fury.io/js/%40hashicorp%2Fflight-icons)
3628

3729
- website: [https://helios.hashicorp.design/icons/library](https://helios.hashicorp.design/icons/library)

packages/components/addon-main.cjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ const flightIconSprite = require('@hashicorp/flight-icons/svg-sprite/svg-sprite-
99
module.exports = {
1010
...addonV1Shim(__dirname),
1111
contentFor(type, config) {
12+
const legacyLazyEmbed = config?.emberFlightIcons?.lazyEmbed;
13+
1214
if (
13-
!config.emberFlightIcons?.lazyEmbed &&
15+
!config.flightIconsSpriteLazyEmbed &&
16+
!legacyLazyEmbed &&
1417
!config.__flightIconsSpriteLoaded &&
1518
type === 'body-footer'
1619
) {

packages/components/src/instance-initializers/load-sprite.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
import config from 'ember-get-config';
77

88
export async function initialize() {
9+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
10+
const legacyLazyEmbed = config?.emberFlightIcons?.lazyEmbed;
11+
912
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
10-
if (config?.emberFlightIcons?.lazyEmbed) {
13+
if (config?.flightIconsSpriteLazyEmbed || legacyLazyEmbed) {
1114
const { default: svgSprite } = await import(
1215
'@hashicorp/flight-icons/svg-sprite/svg-sprite-module'
1316
);

packages/ember-flight-icons/.eslintignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/ember-flight-icons/.eslintrc.cjs

Lines changed: 0 additions & 57 deletions
This file was deleted.

packages/ember-flight-icons/.gitignore

Lines changed: 0 additions & 17 deletions
This file was deleted.

packages/ember-flight-icons/.npmignore

Lines changed: 0 additions & 27 deletions
This file was deleted.

packages/ember-flight-icons/.prettierignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)