@next-degree/pickle-shared-js 0.12.4 → 0.12.6
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/{company_service_sanity-Br0R7m-A.d.cts → company_service_sanity-2J1ZuUnu.d.cts} +1 -1
- package/dist/{company_service_sanity-DF01qvTz.d.ts → company_service_sanity-KaAGfnNV.d.ts} +1 -1
- package/dist/components/jobCard/JobLocation.d.cts +1 -1
- package/dist/components/jobCard/JobLocation.d.ts +1 -1
- package/dist/components/jobPost/JobHeader.cjs +1 -1
- package/dist/components/jobPost/JobHeader.cjs.map +1 -1
- package/dist/components/jobPost/JobHeader.js +1 -1
- package/dist/components/jobPost/JobHeader.js.map +1 -1
- package/dist/components/jobPost/JobPost.cjs +24 -9
- package/dist/components/jobPost/JobPost.cjs.map +1 -1
- package/dist/components/jobPost/JobPost.d.cts +1 -1
- package/dist/components/jobPost/JobPost.d.ts +1 -1
- package/dist/components/jobPost/JobPost.js +24 -9
- package/dist/components/jobPost/JobPost.js.map +1 -1
- package/dist/components/primitives/command.d.cts +3 -3
- package/dist/components/primitives/command.d.ts +3 -3
- package/dist/components/primitives/input-otp.d.cts +2 -2
- package/dist/components/primitives/input-otp.d.ts +2 -2
- package/dist/components/ui/Button.d.cts +1 -1
- package/dist/components/ui/Button.d.ts +1 -1
- package/dist/components/ui/buttonShadcn.d.cts +1 -1
- package/dist/components/ui/buttonShadcn.d.ts +1 -1
- package/dist/{displayText-BDPndCI9.d.cts → displayText-DW0qiJqh.d.cts} +2 -2
- package/dist/{displayText-EpnIpZ38.d.ts → displayText-DahwdHdi.d.ts} +2 -2
- package/dist/hooks/useDisplayText.d.cts +3 -3
- package/dist/hooks/useDisplayText.d.ts +3 -3
- package/dist/index.cjs +5 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -10
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_sanity-BNQsNQs2.d.ts → job_posting_service_sanity-BKo9TBDT.d.ts} +40 -40
- package/dist/{job_posting_service_sanity-BN7XcVxU.d.cts → job_posting_service_sanity-BNq-Am9N.d.cts} +40 -40
- package/dist/lib/locations.d.cts +3 -3
- package/dist/lib/locations.d.ts +3 -3
- package/dist/lib/mappings.d.cts +3 -3
- package/dist/lib/mappings.d.ts +3 -3
- package/dist/lib/salaryRange.d.cts +1 -1
- package/dist/lib/salaryRange.d.ts +1 -1
- package/dist/services/displayText.d.cts +3 -3
- package/dist/services/displayText.d.ts +3 -3
- package/dist/types/data/job_posting_service_latest.d.cts +1 -1
- package/dist/types/data/job_posting_service_latest.d.ts +1 -1
- package/dist/types/data/shared_pickle_output_latest.d.cts +1 -1
- package/dist/types/data/shared_pickle_output_latest.d.ts +1 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/latest/custom/company_service_sanity.d.cts +2 -2
- package/dist/types/latest/custom/company_service_sanity.d.ts +2 -2
- package/dist/types/latest/custom/job_posting_service_sanity.d.cts +3 -3
- package/dist/types/latest/custom/job_posting_service_sanity.d.ts +3 -3
- package/dist/types/latest/job_posting_service_latest.d.cts +1 -1
- package/dist/types/latest/job_posting_service_latest.d.ts +1 -1
- package/dist/types/latest/shared_pickle_output_latest.d.cts +1 -1
- package/dist/types/latest/shared_pickle_output_latest.d.ts +1 -1
- package/package.json +1 -1
- package/dist/{job_posting_service_latest-B6Trs6sX.d.cts → job_posting_service_latest-C_TEBzCf.d.cts} +7 -7
- package/dist/{job_posting_service_latest-B6Trs6sX.d.ts → job_posting_service_latest-C_TEBzCf.d.ts} +7 -7
- package/dist/{job_posting_service_latest-BKz5U2Gp.d.cts → job_posting_service_latest-DdgK8Nnz.d.cts} +7 -7
- package/dist/{job_posting_service_latest-BKz5U2Gp.d.ts → job_posting_service_latest-DdgK8Nnz.d.ts} +7 -7
- package/dist/{shared_pickle_output_latest-DKOmTyYk.d.cts → shared_pickle_output_latest-CXBCG04N.d.cts} +4 -4
- package/dist/{shared_pickle_output_latest-DKOmTyYk.d.ts → shared_pickle_output_latest-CXBCG04N.d.ts} +4 -4
- package/dist/{shared_pickle_output_latest--XZhOUyE.d.cts → shared_pickle_output_latest-CtvHTPeX.d.cts} +4 -4
- package/dist/{shared_pickle_output_latest--XZhOUyE.d.ts → shared_pickle_output_latest-CtvHTPeX.d.ts} +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { J as JobPostModel } from '../../job_posting_service_latest-
|
|
3
|
+
import { J as JobPostModel } from '../../job_posting_service_latest-C_TEBzCf.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
type JobPostProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { J as JobPostModel } from '../../job_posting_service_latest-
|
|
3
|
+
import { J as JobPostModel } from '../../job_posting_service_latest-C_TEBzCf.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
type JobPostProps = {
|
|
@@ -696,7 +696,7 @@ function JobHeader({
|
|
|
696
696
|
/* @__PURE__ */ jsx14("span", { children: label })
|
|
697
697
|
]
|
|
698
698
|
},
|
|
699
|
-
name
|
|
699
|
+
`${name}-${label}`
|
|
700
700
|
))
|
|
701
701
|
}
|
|
702
702
|
)
|
|
@@ -1192,10 +1192,25 @@ function formattedAddress(address, isRemote = false) {
|
|
|
1192
1192
|
if (addressCountry) return `${addressCountry + remoteMessage}`;
|
|
1193
1193
|
return null;
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1196
|
-
const
|
|
1197
|
-
|
|
1198
|
-
|
|
1195
|
+
function getAddressList(jobPost) {
|
|
1196
|
+
const locations = [];
|
|
1197
|
+
if (jobPost.jobLocation) {
|
|
1198
|
+
const address = formattedAddress(jobPost.jobLocation, jobPost.isRemote);
|
|
1199
|
+
if (address) locations.push(address);
|
|
1200
|
+
}
|
|
1201
|
+
if (jobPost.applicableOffices && jobPost.applicableOffices.length > 0) {
|
|
1202
|
+
jobPost.applicableOffices.map((office) => {
|
|
1203
|
+
const address = formattedAddress(office?.geoLocation?.address, jobPost.isRemote);
|
|
1204
|
+
if (address && !locations.includes(address)) locations.push(address);
|
|
1205
|
+
});
|
|
1206
|
+
}
|
|
1207
|
+
if (jobPost.applicantLocationRequirements && jobPost.applicantLocationRequirements.length > 0) {
|
|
1208
|
+
jobPost.applicantLocationRequirements.map((place) => {
|
|
1209
|
+
const address = formattedAddress(place?.address, jobPost.isRemote);
|
|
1210
|
+
if (address && !locations.includes(address)) locations.push(address);
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
return locations;
|
|
1199
1214
|
}
|
|
1200
1215
|
|
|
1201
1216
|
// src/types/latest/company_service_latest.ts
|
|
@@ -1642,7 +1657,7 @@ function JobPost({
|
|
|
1642
1657
|
const formattedEmploymentType = useDisplayText("employmentType", job.employmentType);
|
|
1643
1658
|
const formattedEmploymentLevel = useDisplayText("employmentLevel", job.employmentLevel);
|
|
1644
1659
|
const formattedJobFunction = useDisplayText("jobFunction", job.jobFunction);
|
|
1645
|
-
const
|
|
1660
|
+
const formattedLocations = getAddressList(job);
|
|
1646
1661
|
const formattedSalary = salaryRange(job.estimatedSalary);
|
|
1647
1662
|
const formattedDate = DateFns.formatDistanceToNow(new Date(job.datePosted), {
|
|
1648
1663
|
addSuffix: true
|
|
@@ -1668,11 +1683,11 @@ function JobPost({
|
|
|
1668
1683
|
name: "jobFunction",
|
|
1669
1684
|
label: formattedJobFunction
|
|
1670
1685
|
},
|
|
1671
|
-
|
|
1686
|
+
...formattedLocations.map((label) => ({
|
|
1672
1687
|
icon: "map-pin",
|
|
1673
1688
|
name: "location",
|
|
1674
|
-
label
|
|
1675
|
-
}
|
|
1689
|
+
label
|
|
1690
|
+
}))
|
|
1676
1691
|
].filter((t) => !!t);
|
|
1677
1692
|
return /* @__PURE__ */ jsxs8(
|
|
1678
1693
|
"div",
|