@next-degree/pickle-shared-js 0.9.4 → 0.9.7
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_latest-CRQFzMep.d.cts → company_service_latest-Ba8VhDao.d.cts} +23 -23
- package/dist/{company_service_latest-CRQFzMep.d.ts → company_service_latest-Ba8VhDao.d.ts} +23 -23
- package/dist/{company_service_sanity--Aw-Y3Us.d.cts → company_service_sanity-BR1XSAj3.d.ts} +1142 -1142
- package/dist/{company_service_sanity-B5FBDl-4.d.ts → company_service_sanity-D9tvlc53.d.cts} +1142 -1142
- package/dist/components/buttons/BackButton.cjs +1 -1
- package/dist/components/buttons/BackButton.cjs.map +1 -1
- package/dist/components/buttons/BackButton.js +1 -1
- package/dist/components/buttons/BackButton.js.map +1 -1
- package/dist/components/jobPost/JobDescription.cjs.map +1 -1
- package/dist/components/jobPost/JobDescription.js.map +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 +5 -3
- package/dist/components/jobPost/JobPost.cjs.map +1 -1
- package/dist/components/jobPost/JobPost.d.cts +3 -2
- package/dist/components/jobPost/JobPost.d.ts +3 -2
- package/dist/components/jobPost/JobPost.js +5 -3
- 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.cjs +4 -2
- package/dist/components/ui/Button.cjs.map +1 -1
- package/dist/components/ui/Button.d.cts +2 -2
- package/dist/components/ui/Button.d.ts +2 -2
- package/dist/components/ui/Button.js +2 -1
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/Combobox.cjs +20 -20
- package/dist/components/ui/Combobox.cjs.map +1 -1
- package/dist/components/ui/Combobox.d.cts +1 -0
- package/dist/components/ui/Combobox.d.ts +1 -0
- package/dist/components/ui/Combobox.js +18 -18
- package/dist/components/ui/Combobox.js.map +1 -1
- package/dist/components/ui/InputOtp.cjs +8 -1
- package/dist/components/ui/InputOtp.cjs.map +1 -1
- package/dist/components/ui/InputOtp.js +8 -1
- package/dist/components/ui/InputOtp.js.map +1 -1
- package/dist/components/ui/ReadMore.cjs.map +1 -1
- package/dist/components/ui/ReadMore.js.map +1 -1
- package/dist/components/ui/buttonShadcn.d.cts +1 -1
- package/dist/components/ui/buttonShadcn.d.ts +1 -1
- package/dist/{displayText-B5n9hDm3.d.cts → displayText-BIzvCN9H.d.cts} +2 -2
- package/dist/{displayText-Byd8i1xM.d.ts → displayText-BtujjCCA.d.ts} +2 -2
- package/dist/hooks/useDisplayText.d.cts +3 -3
- package/dist/hooks/useDisplayText.d.ts +3 -3
- package/dist/index.cjs +18 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_latest-D9T7gVhJ.d.cts → job_posting_service_latest-duSSyFvo.d.cts} +34 -34
- package/dist/{job_posting_service_latest-D9T7gVhJ.d.ts → job_posting_service_latest-duSSyFvo.d.ts} +34 -34
- package/dist/{job_posting_service_sanity-CeX9tlpb.d.ts → job_posting_service_sanity-DwNhHT1w.d.ts} +979 -979
- package/dist/{job_posting_service_sanity-D5Znr6Ba.d.cts → job_posting_service_sanity-J281ln61.d.cts} +979 -979
- package/dist/lib/locations.d.cts +2 -2
- package/dist/lib/locations.d.ts +2 -2
- 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/styles/globals.css +9 -0
- package/dist/styles/globals.css.map +1 -1
- package/dist/types/data/company_service_latest.cjs +2 -2
- package/dist/types/data/company_service_latest.cjs.map +1 -1
- 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/company_service_latest.js +2 -2
- package/dist/types/data/company_service_latest.js.map +1 -1
- package/dist/types/data/job_posting_service_latest.cjs +2 -2
- package/dist/types/data/job_posting_service_latest.cjs.map +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/job_posting_service_latest.js +2 -2
- package/dist/types/data/job_posting_service_latest.js.map +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-DFxfjA2x.d.cts → company_service_latest-CWBnweTJ.d.cts} +571 -571
- package/dist/{company_service_latest-DFxfjA2x.d.ts → company_service_latest-CWBnweTJ.d.ts} +571 -571
- package/dist/{job_posting_service_latest-B5tqLSgo.d.cts → job_posting_service_latest-DSpkRuDi.d.cts} +528 -528
- package/dist/{job_posting_service_latest-B5tqLSgo.d.ts → job_posting_service_latest-DSpkRuDi.d.ts} +528 -528
- package/dist/{shared_pickle_output_latest-Bwfg5B4p.d.cts → shared_pickle_output_latest-CJb9E6oz.d.cts} +18 -18
- package/dist/{shared_pickle_output_latest-Bwfg5B4p.d.ts → shared_pickle_output_latest-CJb9E6oz.d.ts} +18 -18
- package/dist/{shared_pickle_output_latest-CXBCG04N.d.cts → shared_pickle_output_latest-DKOmTyYk.d.cts} +4 -4
- package/dist/{shared_pickle_output_latest-CXBCG04N.d.ts → shared_pickle_output_latest-DKOmTyYk.d.ts} +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -30,9 +30,9 @@ export { BackButton } from './components/buttons/BackButton.cjs';
|
|
|
30
30
|
export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.cjs';
|
|
31
31
|
export { useDisplayText } from './hooks/useDisplayText.cjs';
|
|
32
32
|
export { useWindowHistory } from './hooks/useWindowHistory.cjs';
|
|
33
|
-
export { c as CompanyService } from './company_service_latest-
|
|
34
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
35
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
33
|
+
export { c as CompanyService } from './company_service_latest-Ba8VhDao.cjs';
|
|
34
|
+
export { j as JobPostService } from './job_posting_service_latest-duSSyFvo.cjs';
|
|
35
|
+
export { s as SharedService } from './shared_pickle_output_latest-DKOmTyYk.cjs';
|
|
36
36
|
import 'cva/types';
|
|
37
37
|
import 'react/jsx-runtime';
|
|
38
38
|
import 'cva';
|
|
@@ -46,5 +46,5 @@ import '@radix-ui/react-radio-group';
|
|
|
46
46
|
import 'next/link';
|
|
47
47
|
import 'clsx';
|
|
48
48
|
import './lib/icons.cjs';
|
|
49
|
-
import './displayText-
|
|
49
|
+
import './displayText-BIzvCN9H.cjs';
|
|
50
50
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -30,9 +30,9 @@ export { BackButton } from './components/buttons/BackButton.js';
|
|
|
30
30
|
export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.js';
|
|
31
31
|
export { useDisplayText } from './hooks/useDisplayText.js';
|
|
32
32
|
export { useWindowHistory } from './hooks/useWindowHistory.js';
|
|
33
|
-
export { c as CompanyService } from './company_service_latest-
|
|
34
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
35
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
33
|
+
export { c as CompanyService } from './company_service_latest-Ba8VhDao.js';
|
|
34
|
+
export { j as JobPostService } from './job_posting_service_latest-duSSyFvo.js';
|
|
35
|
+
export { s as SharedService } from './shared_pickle_output_latest-DKOmTyYk.js';
|
|
36
36
|
import 'cva/types';
|
|
37
37
|
import 'react/jsx-runtime';
|
|
38
38
|
import 'cva';
|
|
@@ -46,5 +46,5 @@ import '@radix-ui/react-radio-group';
|
|
|
46
46
|
import 'next/link';
|
|
47
47
|
import 'clsx';
|
|
48
48
|
import './lib/icons.js';
|
|
49
|
-
import './displayText-
|
|
49
|
+
import './displayText-BtujjCCA.js';
|
|
50
50
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -1118,6 +1118,7 @@ var Combobox = forwardRef11((props, ref) => {
|
|
|
1118
1118
|
classNames,
|
|
1119
1119
|
multiselect,
|
|
1120
1120
|
placeholder,
|
|
1121
|
+
error,
|
|
1121
1122
|
variant = "default",
|
|
1122
1123
|
size,
|
|
1123
1124
|
icon,
|
|
@@ -1268,7 +1269,8 @@ var Combobox = forwardRef11((props, ref) => {
|
|
|
1268
1269
|
children: /* @__PURE__ */ jsx19(CircleX2, { className: "h-4 w-4 text-green-100" })
|
|
1269
1270
|
}
|
|
1270
1271
|
)
|
|
1271
|
-
] })
|
|
1272
|
+
] }),
|
|
1273
|
+
/* @__PURE__ */ jsx19(ErrorMessage_default, { message: error })
|
|
1272
1274
|
] });
|
|
1273
1275
|
});
|
|
1274
1276
|
Combobox.displayName = "Combobox";
|
|
@@ -1693,7 +1695,14 @@ var InputOtp = forwardRef18(
|
|
|
1693
1695
|
maxLength: digits,
|
|
1694
1696
|
"data-testid": `input-otp-element-${props.id}`,
|
|
1695
1697
|
...props,
|
|
1696
|
-
children: [...Array(digits)].map((_, index) => /* @__PURE__ */ jsx26(InputOTPGroup, { children: /* @__PURE__ */ jsx26(
|
|
1698
|
+
children: [...Array(digits)].map((_, index) => /* @__PURE__ */ jsx26(InputOTPGroup, { children: /* @__PURE__ */ jsx26(
|
|
1699
|
+
InputOTPSlot,
|
|
1700
|
+
{
|
|
1701
|
+
"data-testid": `input-otp-slot-${index}`,
|
|
1702
|
+
index,
|
|
1703
|
+
error: Boolean(error)
|
|
1704
|
+
}
|
|
1705
|
+
) }, index))
|
|
1697
1706
|
}
|
|
1698
1707
|
) }),
|
|
1699
1708
|
/* @__PURE__ */ jsx26(ErrorMessage_default, { message: error })
|
|
@@ -2081,7 +2090,7 @@ import { jsx as jsx37 } from "react/jsx-runtime";
|
|
|
2081
2090
|
function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
2082
2091
|
const { history } = useWindowHistory();
|
|
2083
2092
|
const router = useRouter();
|
|
2084
|
-
const isAcceptedRoute = (r) => !!acceptedRoutes?.find((route) => new RegExp("^" + route + "$", "i").test(r));
|
|
2093
|
+
const isAcceptedRoute = (r) => !!acceptedRoutes?.find((route) => new RegExp("^" + route + "$", "i").test(new URL(r).pathname));
|
|
2085
2094
|
const goBack = () => {
|
|
2086
2095
|
const previous = history[history.length - 2];
|
|
2087
2096
|
if (history.length > 1 && isAcceptedRoute(previous)) {
|
|
@@ -2891,6 +2900,7 @@ function JobPost({
|
|
|
2891
2900
|
standalone,
|
|
2892
2901
|
avatarHref,
|
|
2893
2902
|
fallbackHref,
|
|
2903
|
+
backAcceptedRoutes,
|
|
2894
2904
|
actions
|
|
2895
2905
|
}) {
|
|
2896
2906
|
const formattedEmploymentType = useDisplayText("employmentType", job.employmentType);
|
|
@@ -2948,6 +2958,7 @@ function JobPost({
|
|
|
2948
2958
|
standalone,
|
|
2949
2959
|
avatarHref,
|
|
2950
2960
|
backFallbackHref: fallbackHref,
|
|
2961
|
+
backAcceptedRoutes,
|
|
2951
2962
|
tags
|
|
2952
2963
|
}
|
|
2953
2964
|
),
|
|
@@ -2957,7 +2968,7 @@ function JobPost({
|
|
|
2957
2968
|
CompanyTake,
|
|
2958
2969
|
{
|
|
2959
2970
|
avatarSrc,
|
|
2960
|
-
content: job.hiringOrganization?.
|
|
2971
|
+
content: job.hiringOrganization?.companyNDG?.companyNDGTake
|
|
2961
2972
|
}
|
|
2962
2973
|
),
|
|
2963
2974
|
/* @__PURE__ */ jsx39(
|
|
@@ -2966,7 +2977,7 @@ function JobPost({
|
|
|
2966
2977
|
name: job.hiringOrganization?.companyName ?? "",
|
|
2967
2978
|
how: job.hiringOrganization?.companyPhilosophy?.companyHow,
|
|
2968
2979
|
mission: job.hiringOrganization?.companyPhilosophy?.companyMission,
|
|
2969
|
-
wow: job.hiringOrganization?.
|
|
2980
|
+
wow: job.hiringOrganization?.companyNDG?.companyWow,
|
|
2970
2981
|
website: job.hiringOrganization?.companyWebsite
|
|
2971
2982
|
}
|
|
2972
2983
|
),
|
|
@@ -3074,7 +3085,7 @@ var companyNdgSchema = z2.object({
|
|
|
3074
3085
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
3075
3086
|
type: z2.string().describe("Document type used for schema"),
|
|
3076
3087
|
companyWow: z2.optional(z2.string()).describe("What is the wow of this company?"),
|
|
3077
|
-
|
|
3088
|
+
companyNDGTake: z2.optional(z2.string()).describe("What is the NDG POV on this company?"),
|
|
3078
3089
|
companyBestFit: z2.optional(z2.array(z2.string())),
|
|
3079
3090
|
companyInterests: z2.optional(z2.array(z2.string()))
|
|
3080
3091
|
});
|
|
@@ -3110,7 +3121,7 @@ var companySchema = z2.object({
|
|
|
3110
3121
|
brandColor: z2.optional(z2.string()).describe("The brand color of the company"),
|
|
3111
3122
|
companyCareers: z2.optional(companyCareersSchema).describe("Career Specific Information for the company."),
|
|
3112
3123
|
companyPhilosophy: z2.optional(companyPhilosophySchema).describe("Company mission,values and how the company achieves its mission."),
|
|
3113
|
-
|
|
3124
|
+
companyNDG: z2.optional(companyNdgSchema).describe("Next Degree specific information for the company."),
|
|
3114
3125
|
foundingInfo: z2.optional(foundingInformationSchema),
|
|
3115
3126
|
headquartersLocation: z2.optional(placeSchema),
|
|
3116
3127
|
employeeEstimate: z2.optional(z2.string()),
|