@cavuno/board 4.65.0 → 4.67.0

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/{_spec-CIufstif.d.mts → _spec-BehBmeHK.d.mts} +131 -1
  3. package/dist/{_spec-CIufstif.d.ts → _spec-BehBmeHK.d.ts} +131 -1
  4. package/dist/{blog-DuNJLfIh.d.ts → blog-BLpOmpyQ.d.ts} +1 -1
  5. package/dist/{blog-teDJ9KaO.d.mts → blog-BmfbjijG.d.mts} +1 -1
  6. package/dist/{board-DZNCHGgl.d.mts → board-CXd9Me7_.d.mts} +2 -2
  7. package/dist/{board-iCHYuNhr.d.ts → board-dV_3NXAI.d.ts} +2 -2
  8. package/dist/{breadcrumbs-Bt3oNIAx.d.mts → breadcrumbs-Cu_SPdRA.d.mts} +2 -2
  9. package/dist/{breadcrumbs-DYGo0yB9.d.ts → breadcrumbs-PEsRCVwI.d.ts} +2 -2
  10. package/dist/browser/cavuno-board.global.min.js +1 -1
  11. package/dist/{chunk-H3YIWHXR.mjs → chunk-ZA5TZ6UH.mjs} +5 -0
  12. package/dist/filters.d.mts +2 -2
  13. package/dist/filters.d.ts +2 -2
  14. package/dist/format.d.mts +4 -4
  15. package/dist/format.d.ts +4 -4
  16. package/dist/index.d.mts +90 -15
  17. package/dist/index.d.ts +90 -15
  18. package/dist/index.js +84 -10
  19. package/dist/index.mjs +80 -11
  20. package/dist/{jobs-CbXbDBij.d.mts → jobs-CbTUedOr.d.mts} +1 -1
  21. package/dist/{jobs-DM_QMccX.d.ts → jobs-D2mKA65F.d.ts} +1 -1
  22. package/dist/{search-B7x4qt9A.d.ts → search-CHejx_k7.d.ts} +1 -1
  23. package/dist/{search-PrqcJMft.d.mts → search-CxUViZsz.d.mts} +1 -1
  24. package/dist/{seo-ohehUCzN.d.mts → seo-CWa4rTf7.d.mts} +1 -1
  25. package/dist/{seo-C1Br7ygq.d.ts → seo-DYyQ8NTh.d.ts} +1 -1
  26. package/dist/seo-files.d.mts +2 -2
  27. package/dist/seo-files.d.ts +2 -2
  28. package/dist/seo.d.mts +6 -6
  29. package/dist/seo.d.ts +6 -6
  30. package/dist/server.d.mts +6 -6
  31. package/dist/server.d.ts +6 -6
  32. package/dist/server.mjs +1 -1
  33. package/dist/sitemap.d.mts +6 -6
  34. package/dist/sitemap.d.ts +6 -6
  35. package/dist/sitemap.mjs +1 -1
  36. package/dist/suggest.d.mts +2 -2
  37. package/dist/suggest.d.ts +2 -2
  38. package/package.json +1 -1
  39. package/skills/cavuno-board-account/SKILL.md +11 -0
  40. package/skills/cavuno-board-collections/SKILL.md +31 -2
  41. package/skills/cavuno-board-filters/SKILL.md +12 -4
  42. package/skills/cavuno-board-post-a-job/SKILL.md +54 -5
  43. package/skills/manifest.json +2 -2
@@ -5,7 +5,7 @@ description: Post a job publicly with @cavuno/board. Use for plan selection, log
5
5
 
6
6
  # Status-first job posting
7
7
 
8
- The public posting funnel is anonymous and rate-limited. Its invariant is status-first handling: `board.jobPosting.create` returns one of four success states, and the host follows that state. Rejected submissions throw `BoardApiError` instead.
8
+ The public posting funnel is anonymous and rate-limited. Its invariant is status-first handling: `board.jobPosting.create` returns one of its success states, and the host follows that state. Rejected submissions throw `BoardApiError` instead.
9
9
 
10
10
  Employer dashboard job management belongs to `board.me.companies.jobs.*`. Candidate access payments belong to `cavuno-board-paywall`.
11
11
 
@@ -160,11 +160,59 @@ switch (result.status) {
160
160
 
161
161
  The mapping is:
162
162
 
163
- - paid Stripe plan → `checkout`;
163
+ - paid Stripe plan → `checkout`, or `embedded_checkout` when you send `checkoutUiMode: 'embedded_page'`;
164
164
  - free or credited posting → `published`, or `pending_approval` on moderated boards;
165
165
  - invoice plan → `invoice_sent`.
166
166
 
167
- The checkout value is a URL for a host-owned full-page redirect. Payment publication happens by webhook; the SDK exposes no Stripe integration or publish-confirm method.
167
+ `checkoutUrl` is a URL for a host-owned full-page redirect. Payment publication happens by webhook; the SDK exposes no Stripe integration or publish-confirm method.
168
+
169
+ ## Embedded checkout
170
+
171
+ To keep the poster on your page, send `checkoutUiMode: 'embedded_page'`. A paid plan then returns `embedded_checkout` with everything Stripe.js needs. Load Stripe.js from `js.stripe.com` yourself; the SDK never bundles it.
172
+
173
+ ```ts no-check
174
+ const result = await board.jobPosting.create({
175
+ submission,
176
+ checkoutUiMode: 'embedded_page',
177
+ });
178
+
179
+ if (result.status === 'embedded_checkout') {
180
+ const stripe = await loadStripe(result.publishableKey, {
181
+ stripeAccount: result.stripeAccountId,
182
+ });
183
+ const checkout = await stripe.initEmbeddedCheckout({
184
+ clientSecret: result.clientSecret,
185
+ onComplete: () => showPaid(result.sessionId),
186
+ });
187
+ checkout.mount('#checkout');
188
+ }
189
+ ```
190
+
191
+ Cards finish in place and fire `onComplete`. Payment methods that need a redirect still return to the board's `/post/success`, so that page must exist in both modes.
192
+
193
+ ## Checkout outcome
194
+
195
+ After either checkout, read what happened with the session id: `sessionId` from `embedded_checkout`, or `session_id` on the `/post/success` return URL. `awaiting_payment` lasts until the payment webhook lands, so poll briefly. `processing` means a bank payment is still clearing and can take days; `payment_failed` means it failed. `jobStatus` and `jobUrl` say whether the job is live.
196
+
197
+ ```ts snippet
198
+ const outcome = await board.jobPosting.getCheckout(sessionId);
199
+
200
+ switch (outcome.status) {
201
+ case 'paid':
202
+ if (outcome.jobUrl) linkToJob(outcome.jobUrl);
203
+ break;
204
+ case 'processing':
205
+ showPaymentProcessing(outcome.jobTitle);
206
+ break;
207
+ case 'awaiting_payment':
208
+ retrySoon();
209
+ break;
210
+ case 'payment_failed':
211
+ case 'canceled':
212
+ offerToPostAgain();
213
+ break;
214
+ }
215
+ ```
168
216
 
169
217
  ## Verified existing credit
170
218
 
@@ -200,8 +248,9 @@ Bare-email billing lookup is intentionally absent because it would expose whethe
200
248
  ## Completion gate
201
249
 
202
250
  - The form renders `forms.job` in order: hidden entries are absent, required and locked entries block submit while empty, and an unknown built-in key is skipped.
203
- - Every `create` call handles all four statuses.
204
- - Paid checkout redirects through `checkoutUrl`; the job appears only after webhook completion.
251
+ - Every `create` call handles every status it can return (`embedded_checkout` only with `checkoutUiMode: 'embedded_page'`).
252
+ - Paid checkout redirects through `checkoutUrl` or mounts `clientSecret`; the job appears only after webhook completion.
253
+ - The return page reads `getCheckout(sessionId)` and tells `paid` from `processing`.
205
254
  - Free unmoderated submission returns a resolving `jobSlug`.
206
255
  - Missing domain logos leave submission usable without `logoUrl`.
207
256
  - Existing credit is selectable only after token verification.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.65.0",
2
+ "version": "4.67.0",
3
3
  "skills": [
4
4
  {
5
5
  "name": "cavuno-board-account",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  {
40
40
  "name": "cavuno-board-collections",
41
- "description": "Custom profile fields and collection references with @cavuno/board. Use for rendering company, talent or job custom fields, collection entries, benefits/technologies/certification sections, or collection-backed filters.",
41
+ "description": "Custom profile fields, collection references and public collections with @cavuno/board. Use for rendering company, talent or job custom fields, collection entries, a page that lists a collection's entries (resources, partners, communities), benefits/technologies/certification sections, or collection-backed filters.",
42
42
  "path": "skills/cavuno-board-collections/SKILL.md",
43
43
  "framework": null,
44
44
  "category": "core"