@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
package/dist/index.d.cts
CHANGED
|
@@ -35,8 +35,8 @@ export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.cjs';
|
|
|
35
35
|
export { useDisplayText } from './hooks/useDisplayText.cjs';
|
|
36
36
|
export { useWindowHistory } from './hooks/useWindowHistory.cjs';
|
|
37
37
|
export { c as CompanyService } from './company_service_latest-CITz7F53.cjs';
|
|
38
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
39
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
38
|
+
export { j as JobPostService } from './job_posting_service_latest-C_TEBzCf.cjs';
|
|
39
|
+
export { s as SharedService } from './shared_pickle_output_latest-CXBCG04N.cjs';
|
|
40
40
|
import 'cva/types';
|
|
41
41
|
import 'react/jsx-runtime';
|
|
42
42
|
import 'cva';
|
|
@@ -49,9 +49,9 @@ import './components/primitives/radio-group.cjs';
|
|
|
49
49
|
import '@radix-ui/react-radio-group';
|
|
50
50
|
import 'next/link';
|
|
51
51
|
import '@radix-ui/react-tabs';
|
|
52
|
-
import './shared_pickle_output_latest
|
|
52
|
+
import './shared_pickle_output_latest-CtvHTPeX.cjs';
|
|
53
53
|
import 'zod';
|
|
54
54
|
import 'clsx';
|
|
55
55
|
import './lib/icons.cjs';
|
|
56
|
-
import './job_posting_service_latest-
|
|
57
|
-
import './displayText-
|
|
56
|
+
import './job_posting_service_latest-DdgK8Nnz.cjs';
|
|
57
|
+
import './displayText-DW0qiJqh.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.js';
|
|
|
35
35
|
export { useDisplayText } from './hooks/useDisplayText.js';
|
|
36
36
|
export { useWindowHistory } from './hooks/useWindowHistory.js';
|
|
37
37
|
export { c as CompanyService } from './company_service_latest-CITz7F53.js';
|
|
38
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
39
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
38
|
+
export { j as JobPostService } from './job_posting_service_latest-C_TEBzCf.js';
|
|
39
|
+
export { s as SharedService } from './shared_pickle_output_latest-CXBCG04N.js';
|
|
40
40
|
import 'cva/types';
|
|
41
41
|
import 'react/jsx-runtime';
|
|
42
42
|
import 'cva';
|
|
@@ -49,9 +49,9 @@ import './components/primitives/radio-group.js';
|
|
|
49
49
|
import '@radix-ui/react-radio-group';
|
|
50
50
|
import 'next/link';
|
|
51
51
|
import '@radix-ui/react-tabs';
|
|
52
|
-
import './shared_pickle_output_latest
|
|
52
|
+
import './shared_pickle_output_latest-CtvHTPeX.js';
|
|
53
53
|
import 'zod';
|
|
54
54
|
import 'clsx';
|
|
55
55
|
import './lib/icons.js';
|
|
56
|
-
import './job_posting_service_latest-
|
|
57
|
-
import './displayText-
|
|
56
|
+
import './job_posting_service_latest-DdgK8Nnz.js';
|
|
57
|
+
import './displayText-DahwdHdi.js';
|
package/dist/index.js
CHANGED
|
@@ -2871,7 +2871,7 @@ function JobHeader({
|
|
|
2871
2871
|
/* @__PURE__ */ jsx40("span", { children: label })
|
|
2872
2872
|
]
|
|
2873
2873
|
},
|
|
2874
|
-
name
|
|
2874
|
+
`${name}-${label}`
|
|
2875
2875
|
))
|
|
2876
2876
|
}
|
|
2877
2877
|
)
|
|
@@ -3390,11 +3390,6 @@ function getAddressList(jobPost) {
|
|
|
3390
3390
|
}
|
|
3391
3391
|
return locations;
|
|
3392
3392
|
}
|
|
3393
|
-
function formattedJobLocation(job) {
|
|
3394
|
-
const address = job.jobLocation && formattedAddress(job.jobLocation);
|
|
3395
|
-
const remote = job.isRemote ? "Remote" : "";
|
|
3396
|
-
return [address, remote].filter(Boolean).join(" | ");
|
|
3397
|
-
}
|
|
3398
3393
|
|
|
3399
3394
|
// src/components/jobPost/JobPost.tsx
|
|
3400
3395
|
import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
@@ -3411,7 +3406,7 @@ function JobPost({
|
|
|
3411
3406
|
const formattedEmploymentType = useDisplayText("employmentType", job.employmentType);
|
|
3412
3407
|
const formattedEmploymentLevel = useDisplayText("employmentLevel", job.employmentLevel);
|
|
3413
3408
|
const formattedJobFunction = useDisplayText("jobFunction", job.jobFunction);
|
|
3414
|
-
const
|
|
3409
|
+
const formattedLocations = getAddressList(job);
|
|
3415
3410
|
const formattedSalary = salaryRange(job.estimatedSalary);
|
|
3416
3411
|
const formattedDate = DateFns.formatDistanceToNow(new Date(job.datePosted), {
|
|
3417
3412
|
addSuffix: true
|
|
@@ -3437,11 +3432,11 @@ function JobPost({
|
|
|
3437
3432
|
name: "jobFunction",
|
|
3438
3433
|
label: formattedJobFunction
|
|
3439
3434
|
},
|
|
3440
|
-
|
|
3435
|
+
...formattedLocations.map((label) => ({
|
|
3441
3436
|
icon: "map-pin",
|
|
3442
3437
|
name: "location",
|
|
3443
|
-
label
|
|
3444
|
-
}
|
|
3438
|
+
label
|
|
3439
|
+
}))
|
|
3445
3440
|
].filter((t) => !!t);
|
|
3446
3441
|
return /* @__PURE__ */ jsxs26(
|
|
3447
3442
|
"div",
|