Skip to content

Commit 025a8a1

Browse files
authored
rename @guardian/commercial back to @guardian/commercial-core (#14230)
1 parent a16ebbc commit 025a8a1

File tree

12 files changed

+53
-737
lines changed

12 files changed

+53
-737
lines changed

dotcom-rendering/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@guardian/bridget": "8.5.1",
3232
"@guardian/browserslist-config": "6.1.0",
3333
"@guardian/cdk": "61.4.0",
34-
"@guardian/commercial": "26.1.2",
34+
"@guardian/commercial-core": "27.1.0",
3535
"@guardian/core-web-vitals": "7.0.0",
3636
"@guardian/eslint-config": "7.0.1",
3737
"@guardian/eslint-config-typescript": "9.0.1",

dotcom-rendering/src/client/sentryLoader/loadSentry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isAdBlockInUse } from '@guardian/commercial';
1+
import { isAdBlockInUse } from '@guardian/commercial-core';
22
import { log, startPerformanceMeasure } from '@guardian/libs';
33
import '../webpackPublicPath';
44
import type { ReportError } from '../../types/sentry';

dotcom-rendering/src/components/AdSlot.web.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { css, type Interpolation } from '@emotion/react';
2-
import type { SlotName } from '@guardian/commercial';
3-
import { adSizes } from '@guardian/commercial';
2+
import type { SlotName } from '@guardian/commercial-core';
3+
import { adSizes } from '@guardian/commercial-core';
44
import {
55
between,
66
breakpoints,

dotcom-rendering/src/components/Discussion/Comments.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const writeMutes = (mutes: string[]) => {
9696
storage.local.set('gu.prefs.discussion.mutes', mutes);
9797
};
9898

99-
/** Dispatches a custom event which is handled by @guardian/commercial */
99+
/** Dispatches a custom event which is handled by @guardian/commercial-core */
100100
const dispatchCommentsStateChange = () =>
101101
document.dispatchEvent(new CustomEvent('comments-state-change'));
102102

dotcom-rendering/src/components/HeaderAdSlot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { css, Global } from '@emotion/react';
2-
import { adSizes, constants } from '@guardian/commercial';
2+
import { adSizes, constants } from '@guardian/commercial-core';
33
import { space } from '@guardian/source/foundations';
44
import { palette } from '../palette';
55
import type { ServerSideTests } from '../types/config';

dotcom-rendering/src/components/Metrics.importable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
bypassCommercialMetricsSampling,
44
EventTimer,
55
initCommercialMetrics,
6-
} from '@guardian/commercial';
6+
} from '@guardian/commercial-core';
77
import {
88
bypassCoreWebVitalsSampling,
99
initCoreWebVitals,

dotcom-rendering/src/components/SlotBodyEnd.importable.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import type {
33
BrazeArticleContext,
44
BrazeMessagesInterface,
55
} from '@guardian/braze-components/logic';
6-
import { adSizes, type SizeMapping } from '@guardian/commercial';
6+
import { adSizes, type SizeMapping } from '@guardian/commercial-core';
77
import type { CountryCode } from '@guardian/libs';
88
import { isUndefined } from '@guardian/libs';
99
import { palette } from '@guardian/source/foundations';
10-
import type { WeeklyArticleHistory } from '@guardian/support-dotcom-components/dist/dotcom/types';
11-
import type { ModuleData } from '@guardian/support-dotcom-components/dist/dotcom/types';
10+
import type {
11+
ModuleData,
12+
WeeklyArticleHistory,
13+
} from '@guardian/support-dotcom-components/dist/dotcom/types';
1214
import type { EpicProps } from '@guardian/support-dotcom-components/dist/shared/types';
1315
import { useEffect, useState } from 'react';
1416
import { getArticleCounts } from '../lib/articleCount';

dotcom-rendering/src/components/YoutubeAtom/YoutubeAtomPlayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { css, Global } from '@emotion/react';
22
import type { Participations } from '@guardian/ab-core';
3-
import { buildImaAdTagUrl } from '@guardian/commercial';
3+
import { buildImaAdTagUrl } from '@guardian/commercial-core';
44
import type { ConsentState } from '@guardian/libs';
55
import { log } from '@guardian/libs';
66
import {

dotcom-rendering/src/experiments/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { bypassCommercialMetricsSampling } from '@guardian/commercial';
1+
import { bypassCommercialMetricsSampling } from '@guardian/commercial-core';
22
import { bypassCoreWebVitalsSampling } from '@guardian/core-web-vitals';
33

44
export const bypassMetricsSampling = (): void => {

dotcom-rendering/src/lib/adStyles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { css } from '@emotion/react';
2-
import { adSizes, constants } from '@guardian/commercial';
2+
import { adSizes, constants } from '@guardian/commercial-core';
33
import { from, space, textSans12, until } from '@guardian/source/foundations';
44
import { palette } from '../palette';
55

0 commit comments

Comments
 (0)