@next-degree/pickle-shared-js 0.9.5 → 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_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 +3 -1
- 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 +3 -1
- package/dist/components/jobPost/JobPost.js.map +1 -1
- 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-4cJ7-3Mw.d.cts → displayText-BIzvCN9H.d.cts} +1 -1
- package/dist/{displayText-CBIWVZVw.d.ts → displayText-BtujjCCA.d.ts} +1 -1
- package/dist/hooks/useDisplayText.d.cts +2 -2
- package/dist/hooks/useDisplayText.d.ts +2 -2
- package/dist/index.cjs +14 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- 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 +1 -1
- package/dist/lib/locations.d.ts +1 -1
- package/dist/lib/mappings.d.cts +2 -2
- package/dist/lib/mappings.d.ts +2 -2
- package/dist/services/displayText.d.cts +2 -2
- package/dist/services/displayText.d.ts +2 -2
- package/dist/styles/globals.css +9 -0
- package/dist/styles/globals.css.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/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/{job_posting_service_latest-DOGQ9tEu.d.cts → job_posting_service_latest-duSSyFvo.d.cts} +1 -1
- package/dist/{job_posting_service_latest-DOGQ9tEu.d.ts → job_posting_service_latest-duSSyFvo.d.ts} +1 -1
- 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/index.d.cts
CHANGED
|
@@ -31,7 +31,7 @@ export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.cjs';
|
|
|
31
31
|
export { useDisplayText } from './hooks/useDisplayText.cjs';
|
|
32
32
|
export { useWindowHistory } from './hooks/useWindowHistory.cjs';
|
|
33
33
|
export { c as CompanyService } from './company_service_latest-Ba8VhDao.cjs';
|
|
34
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
34
|
+
export { j as JobPostService } from './job_posting_service_latest-duSSyFvo.cjs';
|
|
35
35
|
export { s as SharedService } from './shared_pickle_output_latest-DKOmTyYk.cjs';
|
|
36
36
|
import 'cva/types';
|
|
37
37
|
import 'react/jsx-runtime';
|
|
@@ -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
|
@@ -31,7 +31,7 @@ export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.js';
|
|
|
31
31
|
export { useDisplayText } from './hooks/useDisplayText.js';
|
|
32
32
|
export { useWindowHistory } from './hooks/useWindowHistory.js';
|
|
33
33
|
export { c as CompanyService } from './company_service_latest-Ba8VhDao.js';
|
|
34
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
34
|
+
export { j as JobPostService } from './job_posting_service_latest-duSSyFvo.js';
|
|
35
35
|
export { s as SharedService } from './shared_pickle_output_latest-DKOmTyYk.js';
|
|
36
36
|
import 'cva/types';
|
|
37
37
|
import 'react/jsx-runtime';
|
|
@@ -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
|
),
|