@odla-ai/chapter 0.40.3 → 0.41.1
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/README.md +10 -1
- package/dist/{chunk-E5OXQ3DC.js → chunk-PCRYLPMQ.js} +306 -234
- package/dist/chunk-PCRYLPMQ.js.map +1 -0
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +3 -1
- package/dist/ui/member/index.d.ts +21 -2
- package/dist/ui/member/index.js +3 -1
- package/package.json +2 -2
- package/dist/chunk-E5OXQ3DC.js.map +0 -1
package/README.md
CHANGED
|
@@ -116,7 +116,7 @@ Chapter-owned application, admin, CRM, payment, and scheduling behavior.
|
|
|
116
116
|
boundary so you never pay for what you don't use:
|
|
117
117
|
- `@odla-ai/chapter/ui/member` — **Preact-only**: `SlotPicker`, the date/timezone
|
|
118
118
|
helpers, `JoinIsland` (form → payment → booking), `MembersArea`,
|
|
119
|
-
`Rescheduler`, `PaymentStep`, `<BrandStyle>`. It never imports
|
|
119
|
+
`GiftCodeRedeemer`, `Rescheduler`, `PaymentStep`, `<BrandStyle>`. It never imports
|
|
120
120
|
`@odla-ai/auth-clerk` or `@odla-ai/crm`, so you can adopt a single
|
|
121
121
|
presentational component without the Clerk browser SDK. (A bundle-graph test
|
|
122
122
|
enforces this.)
|
|
@@ -743,6 +743,15 @@ The host still decides which routes use managed theming and owns any legacy
|
|
|
743
743
|
token aliases. Keep the marker after bootstrap declarations so the active
|
|
744
744
|
`--ui-*` values win in the initial parsed document.
|
|
745
745
|
|
|
746
|
+
`GiftCodeRedeemer` is the reusable member-side gift redemption control. It
|
|
747
|
+
accepts the resolved `chapter.copy.member.gifts` copy contract, posts trimmed
|
|
748
|
+
codes to `/api/gifts/redeem`, and keeps its input, action, loading lock, and
|
|
749
|
+
reserved live status region aligned with the shared `@odla-ai/ui`
|
|
750
|
+
inline-action-field contract. `MemberGifts` composes it automatically, while a
|
|
751
|
+
custom member surface can import it directly from `@odla-ai/chapter/ui/member`.
|
|
752
|
+
Code entry uses one-time-code autocomplete, disables automatic capitalization
|
|
753
|
+
and correction, and retains the submitted code after an error.
|
|
754
|
+
|
|
746
755
|
The hub owns a durable outbox: create/verify immutable Stripe Prices first,
|
|
747
756
|
persist the desired revision, retry signed delivery, and mark it active only
|
|
748
757
|
after the exact revision/digest receipt. Version history is for audit and
|