Skip to content

Commit acbee9a

Browse files
authored
Merge pull request #23298 from Yoast/1239-switch-hero-icons-import-to-individual-esm-paths-for-editor-excluding-ai-features
1239 switch Heroicons imports to individual direct paths in related-keyphrase-suggestions and search-metadata-previews
2 parents 60980d9 + 419a5eb commit acbee9a

25 files changed

Lines changed: 86 additions & 52 deletions

File tree

packages/js/src/components/DefaultSeoDataAlert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import PropTypes from "prop-types";
2-
import { ExclamationCircleIcon } from "@heroicons/react/solid";
2+
import ExclamationCircleIcon from "@heroicons/react/solid/ExclamationCircleIcon";
33
import { select } from "@wordpress/data";
44
import { __, sprintf } from "@wordpress/i18n";
55
import { Fragment, useCallback, useMemo } from "@wordpress/element";

packages/js/src/components/WincherSEOPerformanceModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable complexity */
22
/* External dependencies */
3-
import { ChartBarIcon } from "@heroicons/react/solid";
3+
import ChartBarIcon from "@heroicons/react/solid/ChartBarIcon";
44
import { Fragment, useCallback } from "@wordpress/element";
55
import { __ } from "@wordpress/i18n";
66
import { useSvgAria } from "@yoast/ui-library/src";

packages/js/src/components/WooCommerceUpsell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { __, sprintf } from "@wordpress/i18n";
22
import PropTypes from "prop-types";
3-
import { LockOpenIcon } from "@heroicons/react/outline";
3+
import LockOpenIcon from "@heroicons/react/outline/LockOpenIcon";
44
import { Button, Root } from "@yoast/ui-library";
55

66
/**

packages/js/src/components/contentAnalysis/PremiumSeoAnalysisUpsellAd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { __, sprintf } from "@wordpress/i18n";
22
import { useSelect } from "@wordpress/data";
33
import { Title, useSvgAria, Button } from "@yoast/ui-library";
44
import { ReactComponent as CrownIcon } from "../../../images/icon-crown.svg";
5-
import { LockOpenIcon } from "@heroicons/react/outline";
5+
import LockOpenIcon from "@heroicons/react/outline/LockOpenIcon";
66
import { safeCreateInterpolateElement } from "../../helpers/i18n";
77
import { WooSeoAnalysisUpsellAd } from "./WooSeoAnalysisUpsellAd";
88

packages/js/src/components/contentAnalysis/Results.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ContentAnalysis } from "@yoast/analysis-report";
22
import { IconButtonToggle } from "@yoast/components";
33
import { Badge } from "@yoast/ui-library";
4-
import { LockClosedIcon } from "@heroicons/react/solid";
4+
import LockClosedIcon from "@heroicons/react/solid/LockClosedIcon";
55
import { __ } from "@wordpress/i18n";
66
import { Component, Fragment } from "@wordpress/element";
77
import { doAction } from "@wordpress/hooks";

packages/js/src/components/contentAnalysis/WooSeoAnalysisUpsellAd.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { __, sprintf } from "@wordpress/i18n";
22
import { Title, useSvgAria, Button } from "@yoast/ui-library";
3-
import { LockOpenIcon, PhotographIcon, TagIcon, IdentificationIcon } from "@heroicons/react/outline";
4-
import { ShoppingCartIcon } from "@heroicons/react/solid";
3+
import LockOpenIcon from "@heroicons/react/outline/LockOpenIcon";
4+
import PhotographIcon from "@heroicons/react/outline/PhotographIcon";
5+
import TagIcon from "@heroicons/react/outline/TagIcon";
6+
import IdentificationIcon from "@heroicons/react/outline/IdentificationIcon";
7+
import ShoppingCartIcon from "@heroicons/react/solid/ShoppingCartIcon";
58
import { useSelect } from "@wordpress/data";
69
import { getLocationKey } from "./PremiumSeoAnalysisUpsellAd";
710

packages/js/src/components/contentBlocks/AddBlockButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PlusIcon } from "@heroicons/react/outline";
1+
import PlusIcon from "@heroicons/react/outline/PlusIcon";
22
import { createBlock } from "@wordpress/blocks";
33
import { useDispatch, useSelect } from "@wordpress/data";
44
import { useCallback, useState } from "@wordpress/element";

packages/js/src/components/contentBlocks/BenefitItems.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import PropTypes from "prop-types";
22
import { __ } from "@wordpress/i18n";
3-
import { UserGroupIcon, CollectionIcon } from "@heroicons/react/outline";
3+
import UserGroupIcon from "@heroicons/react/outline/UserGroupIcon";
4+
import CollectionIcon from "@heroicons/react/outline/CollectionIcon";
45

56
import { PREMIUM_CONTENT_BLOCKS, getPremiumBlocksForPages } from "./ContentBlocks";
67

packages/js/src/components/contentBlocks/ContentBlock.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { LockClosedIcon } from "@heroicons/react/solid";
2-
import { CheckIcon } from "@heroicons/react/outline";
1+
import LockClosedIcon from "@heroicons/react/solid/LockClosedIcon";
2+
import CheckIcon from "@heroicons/react/outline/CheckIcon";
33
import { useSelect } from "@wordpress/data";
44
import { useEffect, useState } from "@wordpress/element";
55
import { SvgIcon } from "@yoast/components";

packages/js/src/components/contentBlocks/ContentBlocks.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { ClockIcon, LinkIcon, SparklesIcon, ViewListIcon } from "@heroicons/react/outline";
1+
import ClockIcon from "@heroicons/react/outline/ClockIcon";
2+
import LinkIcon from "@heroicons/react/outline/LinkIcon";
3+
import SparklesIcon from "@heroicons/react/outline/SparklesIcon";
4+
import ViewListIcon from "@heroicons/react/outline/ViewListIcon";
25
import { useCallback, useContext } from "@wordpress/element";
36
import { __ } from "@wordpress/i18n";
47
import { LocationContext } from "@yoast/externals/contexts";

0 commit comments

Comments
 (0)