@codecademy/brand 0.17.2 → 0.17.4-alpha.e200498ed2.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/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +0 -1
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +11 -20
- package/dist/ScoreSummary/types.d.ts +0 -12
- package/dist/stories/Organisms/GlobalFooter.stories.d.ts +0 -1
- package/dist/stories/Organisms/GlobalFooter.stories.js +0 -7
- package/package.json +1 -1
|
@@ -8,5 +8,4 @@ export type CompanyLinksProps = {
|
|
|
8
8
|
referralRockUrls?: ReferralRockUrls;
|
|
9
9
|
isBusinessUser?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare const STUDENT_BEANS_BASE_URL = "https://connect.studentbeans.com/v4/hosted/codecademy/";
|
|
12
11
|
export declare const CompanyLinks: React.FC<CompanyLinksProps>;
|
|
@@ -7,14 +7,6 @@ import { FooterLinkItem, FooterLinkItems, FooterLinkItemWithAnchor } from '../Fo
|
|
|
7
7
|
import { ReferAFriendLinkWithModal } from './ReferralRock/ReferAFriendLinkWithModal';
|
|
8
8
|
import { SocialMediaLinks } from './SocialMediaLinks';
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
-
export const STUDENT_BEANS_BASE_URL = 'https://connect.studentbeans.com/v4/hosted/codecademy/';
|
|
11
|
-
const STUDENT_BEANS_GEOS = ['US', 'GB', 'CA'];
|
|
12
|
-
const getStudentBeansUrlByGeo = geo => {
|
|
13
|
-
if (geo === 'GB') {
|
|
14
|
-
return STUDENT_BEANS_BASE_URL + 'UK';
|
|
15
|
-
}
|
|
16
|
-
return STUDENT_BEANS_BASE_URL + geo;
|
|
17
|
-
};
|
|
18
10
|
export const CompanyLinks = _ref => {
|
|
19
11
|
let {
|
|
20
12
|
hidePricing,
|
|
@@ -73,18 +65,7 @@ export const CompanyLinks = _ref => {
|
|
|
73
65
|
}), referralRockUrls && userGeo === 'US' ? /*#__PURE__*/_jsx(ReferAFriendLinkWithModal, {
|
|
74
66
|
referralRockUrls: referralRockUrls,
|
|
75
67
|
onClick: onClick
|
|
76
|
-
}) : null
|
|
77
|
-
children: /*#__PURE__*/_jsx(Anchor, {
|
|
78
|
-
href: getStudentBeansUrlByGeo(userGeo),
|
|
79
|
-
onClick: event => onClick({
|
|
80
|
-
event,
|
|
81
|
-
target: 'student-beans'
|
|
82
|
-
}),
|
|
83
|
-
target: "_blank",
|
|
84
|
-
variant: "interface",
|
|
85
|
-
children: "Student Beans"
|
|
86
|
-
})
|
|
87
|
-
})]
|
|
68
|
+
}) : null]
|
|
88
69
|
})]
|
|
89
70
|
});
|
|
90
71
|
const company = /*#__PURE__*/_jsxs(_Fragment, {
|
|
@@ -121,6 +102,16 @@ export const CompanyLinks = _ref => {
|
|
|
121
102
|
variant: "interface",
|
|
122
103
|
children: "Affiliates"
|
|
123
104
|
})
|
|
105
|
+
}), /*#__PURE__*/_jsx(FooterLinkItem, {
|
|
106
|
+
children: /*#__PURE__*/_jsx(Anchor, {
|
|
107
|
+
href: "/pages/partnerships",
|
|
108
|
+
onClick: event => onClick({
|
|
109
|
+
event,
|
|
110
|
+
target: 'partnerships'
|
|
111
|
+
}),
|
|
112
|
+
variant: "interface",
|
|
113
|
+
children: "Partnerships"
|
|
114
|
+
})
|
|
124
115
|
}), /*#__PURE__*/_jsx(FooterLinkItem, {
|
|
125
116
|
children: /*#__PURE__*/_jsx(SocialMediaLinks, {})
|
|
126
117
|
})]
|
|
@@ -250,7 +250,6 @@ export interface AssessmentCodeSnippet {
|
|
|
250
250
|
text: string;
|
|
251
251
|
language: string;
|
|
252
252
|
}
|
|
253
|
-
export type TesterType = 'activeBatsTest' | 'batsTest' | 'codexSCT' | 'componentTest' | 'dartTest' | 'defaultFail' | 'defaultPass' | 'executeFileTest' | 'goTest' | 'junitTest' | 'junitMavenTest' | 'jestTest' | 'mochaTest' | 'passiveBatsTest' | 'phpunitTest' | 'pythonTest' | 'pythonUnitTest' | 'rScriptTest' | 'rspecTest' | 'webSCT';
|
|
254
253
|
export interface ContentTestOptions {
|
|
255
254
|
command?: string;
|
|
256
255
|
failure_message?: string;
|
|
@@ -258,16 +257,6 @@ export interface ContentTestOptions {
|
|
|
258
257
|
withBabel?: boolean;
|
|
259
258
|
includeFiles?: string[];
|
|
260
259
|
}
|
|
261
|
-
export interface Test {
|
|
262
|
-
/**
|
|
263
|
-
* @property Some tests, like Checkpoints, have an id
|
|
264
|
-
*/
|
|
265
|
-
id?: string;
|
|
266
|
-
test_type: TesterType;
|
|
267
|
-
test_code: string;
|
|
268
|
-
test_options: ContentTestOptions;
|
|
269
|
-
test_notes?: string;
|
|
270
|
-
}
|
|
271
260
|
export interface BaseAssessment {
|
|
272
261
|
id: string;
|
|
273
262
|
published: boolean;
|
|
@@ -280,7 +269,6 @@ export interface BaseAssessment {
|
|
|
280
269
|
url: string;
|
|
281
270
|
alt: string;
|
|
282
271
|
} | null;
|
|
283
|
-
test?: Test;
|
|
284
272
|
sourceId: string;
|
|
285
273
|
}
|
|
286
274
|
export type AssessmentFillInTheCode = BaseAssessment & {
|
|
@@ -17,13 +17,6 @@ export const HidePricing = {
|
|
|
17
17
|
}),
|
|
18
18
|
name: 'Hide Pricing'
|
|
19
19
|
};
|
|
20
|
-
export const StudentBeans = {
|
|
21
|
-
render: args => /*#__PURE__*/_jsx(GlobalFooter, {
|
|
22
|
-
...args,
|
|
23
|
-
userGeo: "US"
|
|
24
|
-
}),
|
|
25
|
-
name: 'Student Beans'
|
|
26
|
-
};
|
|
27
20
|
export const ClickableMadeIn = {
|
|
28
21
|
render: args => /*#__PURE__*/_jsx(GlobalFooter, {
|
|
29
22
|
...args,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/brand",
|
|
3
3
|
"description": "Brand component library for Codecademy",
|
|
4
|
-
"version": "0.17.
|
|
4
|
+
"version": "0.17.4-alpha.e200498ed2.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|