@next-degree/pickle-shared-js 0.12.3 → 0.12.5
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-KaAGfnNV.d.ts → company_service_sanity-B1Xg7ISJ.d.ts} +271 -271
- package/dist/{company_service_sanity-2J1ZuUnu.d.cts → company_service_sanity-CCbS8ElX.d.cts} +271 -271
- package/dist/components/jobCard/JobLocation.d.cts +1 -1
- package/dist/components/jobCard/JobLocation.d.ts +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/{displayText-DW0qiJqh.d.cts → displayText-Ck0qovrl.d.cts} +2 -2
- package/dist/{displayText-DahwdHdi.d.ts → displayText-ClDGmi1J.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 +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +5 -10
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_latest-DdgK8Nnz.d.cts → job_posting_service_latest-Bk53vj02.d.cts} +184 -184
- package/dist/{job_posting_service_latest-DdgK8Nnz.d.ts → job_posting_service_latest-Bk53vj02.d.ts} +184 -184
- package/dist/{job_posting_service_latest-C_TEBzCf.d.cts → job_posting_service_latest-DfX8Y4gB.d.cts} +184 -184
- package/dist/{job_posting_service_latest-C_TEBzCf.d.ts → job_posting_service_latest-DfX8Y4gB.d.ts} +184 -184
- package/dist/{job_posting_service_sanity-BNq-Am9N.d.cts → job_posting_service_sanity-BSxLNte3.d.cts} +395 -395
- package/dist/{job_posting_service_sanity-BKo9TBDT.d.ts → job_posting_service_sanity-C6aPb8kp.d.ts} +395 -395
- 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/company_service_latest.d.cts +1 -1
- package/dist/types/data/company_service_latest.d.ts +1 -1
- 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 +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/types/latest/company_service_latest.d.cts +1 -1
- package/dist/types/latest/company_service_latest.d.ts +1 -1
- package/dist/types/latest/custom/company_service_sanity.d.cts +3 -3
- package/dist/types/latest/custom/company_service_sanity.d.ts +3 -3
- 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/{company_service_latest-C7Moeufo.d.cts → company_service_latest-CVgoQ8Mc.d.cts} +174 -174
- package/dist/{company_service_latest-C7Moeufo.d.ts → company_service_latest-CVgoQ8Mc.d.ts} +174 -174
- package/dist/{company_service_latest-CITz7F53.d.cts → company_service_latest-oWEnaiRd.d.cts} +174 -174
- package/dist/{company_service_latest-CITz7F53.d.ts → company_service_latest-oWEnaiRd.d.ts} +174 -174
- package/dist/{shared_pickle_output_latest-CtvHTPeX.d.cts → shared_pickle_output_latest-BVF7Zh2H.d.cts} +15 -15
- package/dist/{shared_pickle_output_latest-CtvHTPeX.d.ts → shared_pickle_output_latest-BVF7Zh2H.d.ts} +15 -15
- package/dist/{shared_pickle_output_latest-CXBCG04N.d.cts → shared_pickle_output_latest-BjRRmT8R.d.cts} +15 -15
- package/dist/{shared_pickle_output_latest-CXBCG04N.d.ts → shared_pickle_output_latest-BjRRmT8R.d.ts} +15 -15
package/dist/index.d.cts
CHANGED
|
@@ -34,9 +34,9 @@ export { BackButton } from './components/buttons/BackButton.cjs';
|
|
|
34
34
|
export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.cjs';
|
|
35
35
|
export { useDisplayText } from './hooks/useDisplayText.cjs';
|
|
36
36
|
export { useWindowHistory } from './hooks/useWindowHistory.cjs';
|
|
37
|
-
export { c as CompanyService } from './company_service_latest-
|
|
38
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
39
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
37
|
+
export { c as CompanyService } from './company_service_latest-oWEnaiRd.cjs';
|
|
38
|
+
export { j as JobPostService } from './job_posting_service_latest-DfX8Y4gB.cjs';
|
|
39
|
+
export { s as SharedService } from './shared_pickle_output_latest-BjRRmT8R.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-BVF7Zh2H.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-Bk53vj02.cjs';
|
|
57
|
+
import './displayText-Ck0qovrl.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -34,9 +34,9 @@ export { BackButton } from './components/buttons/BackButton.js';
|
|
|
34
34
|
export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.js';
|
|
35
35
|
export { useDisplayText } from './hooks/useDisplayText.js';
|
|
36
36
|
export { useWindowHistory } from './hooks/useWindowHistory.js';
|
|
37
|
-
export { c as CompanyService } from './company_service_latest-
|
|
38
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
39
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
37
|
+
export { c as CompanyService } from './company_service_latest-oWEnaiRd.js';
|
|
38
|
+
export { j as JobPostService } from './job_posting_service_latest-DfX8Y4gB.js';
|
|
39
|
+
export { s as SharedService } from './shared_pickle_output_latest-BjRRmT8R.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-BVF7Zh2H.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-Bk53vj02.js';
|
|
57
|
+
import './displayText-ClDGmi1J.js';
|
package/dist/index.js
CHANGED
|
@@ -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
|
|
@@ -3420,7 +3415,7 @@ function JobPost({
|
|
|
3420
3415
|
!!formattedSalary && {
|
|
3421
3416
|
icon: "banknote",
|
|
3422
3417
|
name: "salary",
|
|
3423
|
-
label:
|
|
3418
|
+
label: formattedSalary
|
|
3424
3419
|
},
|
|
3425
3420
|
!!formattedEmploymentType && {
|
|
3426
3421
|
icon: "briefcase-business",
|
|
@@ -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",
|