@bowlos/reservations 0.25.0 → 0.26.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.
- package/HEADLESS.md +20 -1
- package/dist/{account-nHac98qx.d.cts → account-BXf9e6UW.d.cts} +1 -1
- package/dist/{account-5oZrwcaq.d.ts → account-N1Zs7yvQ.d.ts} +1 -1
- package/dist/{catalog-BMdk6ZSC.d.ts → catalog-BF_xtQxf.d.ts} +1 -1
- package/dist/{catalog-Ca7eN9CP.d.cts → catalog-CVvwgrbZ.d.cts} +1 -1
- package/dist/{chunk-7OHHK65Q.js → chunk-AYQIKZCU.js} +8 -4
- package/dist/chunk-AYQIKZCU.js.map +1 -0
- package/dist/{chunk-5JWJBLPE.js → chunk-PPCQFT3U.js} +19 -4
- package/dist/chunk-PPCQFT3U.js.map +1 -0
- package/dist/cli.cjs +17 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/components.cjs +17 -1
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +4 -4
- package/dist/components.d.ts +4 -4
- package/dist/components.js +19 -3
- package/dist/components.js.map +1 -1
- package/dist/{data-CVq9zXz7.d.cts → data-BCbYaSC1.d.cts} +9 -2
- package/dist/{data-CVq9zXz7.d.ts → data-BCbYaSC1.d.ts} +9 -2
- package/dist/index.cjs +17 -2
- 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 +2 -2
- package/dist/payments.d.cts +1 -1
- package/dist/payments.d.ts +1 -1
- package/dist/{react-C9bUP9LB.d.ts → react-BQikV5KJ.d.ts} +4 -2
- package/dist/{react-Bhpzhr01.d.cts → react-Y11QkXEQ.d.cts} +4 -2
- package/dist/react.cjs +22 -3
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +5 -5
- package/dist/react.d.ts +5 -5
- package/dist/react.js +3 -3
- package/package.json +1 -1
- package/templates/center-site/package.json +1 -1
- package/dist/chunk-5JWJBLPE.js.map +0 -1
- package/dist/chunk-7OHHK65Q.js.map +0 -1
package/dist/components.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import { m as PublicSurface, g as CatalogItem } from './catalog-
|
|
4
|
-
export { h as CatalogResult, i as CatalogSection } from './catalog-
|
|
5
|
-
import { U as PricingMode, S as PaymentIntentInfo, l as Customer } from './data-
|
|
6
|
-
import { d as UseAccountResult } from './react-
|
|
3
|
+
import { m as PublicSurface, g as CatalogItem } from './catalog-CVvwgrbZ.cjs';
|
|
4
|
+
export { h as CatalogResult, i as CatalogSection } from './catalog-CVvwgrbZ.cjs';
|
|
5
|
+
import { U as PricingMode, S as PaymentIntentInfo, l as Customer } from './data-BCbYaSC1.cjs';
|
|
6
|
+
import { d as UseAccountResult } from './react-Y11QkXEQ.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Themeable design tokens for the `@bowlos/reservations/components` layer.
|
package/dist/components.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import { m as PublicSurface, g as CatalogItem } from './catalog-
|
|
4
|
-
export { h as CatalogResult, i as CatalogSection } from './catalog-
|
|
5
|
-
import { U as PricingMode, S as PaymentIntentInfo, l as Customer } from './data-
|
|
6
|
-
import { d as UseAccountResult } from './react-
|
|
3
|
+
import { m as PublicSurface, g as CatalogItem } from './catalog-BF_xtQxf.js';
|
|
4
|
+
export { h as CatalogResult, i as CatalogSection } from './catalog-BF_xtQxf.js';
|
|
5
|
+
import { U as PricingMode, S as PaymentIntentInfo, l as Customer } from './data-BCbYaSC1.js';
|
|
6
|
+
import { d as UseAccountResult } from './react-BQikV5KJ.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Themeable design tokens for the `@bowlos/reservations/components` layer.
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTestMode, useAccount, useAvailability, useBookingPreview, useAddons, useStartTimes, useBookingFlow, useMyReservations, useMyMemberships, useMyLoyalty, useMyCredits, useMyPasses, useFlashSale, useFlashSales, useCatalog } from './chunk-
|
|
2
|
-
import { availableUnitCount } from './chunk-
|
|
1
|
+
import { useTestMode, useAccount, useAvailability, useBookingPreview, useAddons, useStartTimes, useBookingFlow, useMyReservations, useMyMemberships, useMyLoyalty, useMyCredits, useMyPasses, useFlashSale, useFlashSales, useCatalog } from './chunk-AYQIKZCU.js';
|
|
2
|
+
import { availableUnitCount } from './chunk-PPCQFT3U.js';
|
|
3
3
|
import { token, styles, formatCents, formatMinuteLabel, minutesToTime, useCountdown, formatCentsRange } from './chunk-Y3YSDO3H.js';
|
|
4
4
|
export { BOWLOS_DEFAULT_THEME, BowlosTheme, formatCents, formatCentsRange } from './chunk-Y3YSDO3H.js';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -78,7 +78,11 @@ function AuthForm({
|
|
|
78
78
|
const onAuth = (e) => {
|
|
79
79
|
e.preventDefault();
|
|
80
80
|
void guard(
|
|
81
|
-
() => mode === "signIn" ? account.signIn(email, password) :
|
|
81
|
+
() => mode === "signIn" ? account.signIn(email, password) : (
|
|
82
|
+
// Atomic sign-up: login + customer profile in one call (no orphan
|
|
83
|
+
// window from a missed/raced second step).
|
|
84
|
+
account.register(email, password, { fullName, marketingOptIn: false })
|
|
85
|
+
)
|
|
82
86
|
);
|
|
83
87
|
};
|
|
84
88
|
const onLink = (e) => {
|
|
@@ -116,6 +120,18 @@ function AuthForm({
|
|
|
116
120
|
if (account.status === "linked") return null;
|
|
117
121
|
return /* @__PURE__ */ jsxs("form", { className, style: s.card, onSubmit: onAuth, children: [
|
|
118
122
|
/* @__PURE__ */ jsx("h3", { style: s.heading, children: mode === "signIn" ? t.signInHeading : t.signUpHeading }),
|
|
123
|
+
mode === "signUp" && /* @__PURE__ */ jsxs("label", { style: s.label, children: [
|
|
124
|
+
t.name,
|
|
125
|
+
/* @__PURE__ */ jsx(
|
|
126
|
+
"input",
|
|
127
|
+
{
|
|
128
|
+
value: fullName,
|
|
129
|
+
onChange: (e) => setFullName(e.target.value),
|
|
130
|
+
style: s.input,
|
|
131
|
+
required: true
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
] }),
|
|
119
135
|
/* @__PURE__ */ jsxs("label", { style: s.label, children: [
|
|
120
136
|
t.email,
|
|
121
137
|
/* @__PURE__ */ jsx(
|