@lockerverse/react 0.2.196 → 0.2.198-dev.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/dist/styles.css CHANGED
@@ -1401,3 +1401,203 @@
1401
1401
  line-height: 1.7;
1402
1402
  color: var(--lockerverse-muted);
1403
1403
  }
1404
+
1405
+ /* Page presentation uses the same theme and controls without a modal shell. */
1406
+ .lockerverse-launcher__dialog.lockerverse-launcher__page {
1407
+ width: 100%;
1408
+ max-width: 600px;
1409
+ max-height: none;
1410
+ margin: 0 auto;
1411
+ overflow: hidden;
1412
+ box-shadow: none;
1413
+ animation: none;
1414
+ }
1415
+ .lockerverse-launcher__page .lockerverse-launcher__header {
1416
+ padding-right: 0;
1417
+ }
1418
+
1419
+ /* Hosted selection follows the spacious widget page; checkout stays separate. */
1420
+ .lockerverse-launcher__page:has(.lockerverse-launcher__products) {
1421
+ padding: 0;
1422
+ overflow: visible;
1423
+ background: transparent;
1424
+ border: 0;
1425
+ border-radius: 0;
1426
+ }
1427
+ .lockerverse-launcher__page > .lockerverse-launcher__header {
1428
+ gap: 24px;
1429
+ margin-bottom: 32px;
1430
+ }
1431
+ .lockerverse-launcher__page
1432
+ > .lockerverse-launcher__header
1433
+ .lockerverse-launcher__brand
1434
+ span {
1435
+ display: none;
1436
+ }
1437
+ .lockerverse-launcher__page
1438
+ > .lockerverse-launcher__header
1439
+ .lockerverse-launcher__brand
1440
+ img {
1441
+ width: 80px;
1442
+ height: 80px;
1443
+ border-radius: 18px;
1444
+ }
1445
+ .lockerverse-launcher__page
1446
+ > .lockerverse-launcher__header
1447
+ .lockerverse-launcher__title {
1448
+ max-width: 16ch;
1449
+ font-size: clamp(34px, 5vw, 44px);
1450
+ font-weight: 650;
1451
+ line-height: 1.08;
1452
+ letter-spacing: -0.045em;
1453
+ text-wrap: initial;
1454
+ }
1455
+ .lockerverse-launcher__page .lockerverse-launcher__product-list {
1456
+ gap: 0;
1457
+ overflow: hidden;
1458
+ background: color-mix(in srgb, var(--lockerverse-text) 4%, transparent);
1459
+ border: 1px solid var(--lockerverse-border);
1460
+ border-radius: 14px;
1461
+ }
1462
+ .lockerverse-launcher__page .lockerverse-launcher__product {
1463
+ min-height: 110px;
1464
+ padding: 24px 22px;
1465
+ background: transparent;
1466
+ border: 0;
1467
+ border-radius: 0;
1468
+ box-shadow: none;
1469
+ transform: none;
1470
+ }
1471
+ .lockerverse-launcher__page
1472
+ .lockerverse-launcher__product
1473
+ + .lockerverse-launcher__product {
1474
+ border-top: 1px solid var(--lockerverse-border);
1475
+ }
1476
+ .lockerverse-launcher__page .lockerverse-launcher__product-copy {
1477
+ gap: 6px;
1478
+ }
1479
+ .lockerverse-launcher__page .lockerverse-launcher__product-name {
1480
+ white-space: normal;
1481
+ }
1482
+ .lockerverse-launcher__page .lockerverse-launcher__product-price {
1483
+ margin-top: 5px;
1484
+ }
1485
+ .lockerverse-launcher__page .lockerverse-launcher__quantity {
1486
+ background: transparent;
1487
+ border-radius: 7px;
1488
+ }
1489
+ .lockerverse-launcher__page .lockerverse-launcher__quantity button {
1490
+ min-height: 40px;
1491
+ background: transparent;
1492
+ }
1493
+ .lockerverse-launcher__page .lockerverse-launcher__footer {
1494
+ position: static;
1495
+ padding: 24px 0 0;
1496
+ margin: 24px 0 0;
1497
+ background: transparent;
1498
+ box-shadow: none;
1499
+ backdrop-filter: none;
1500
+ }
1501
+ @media (max-width: 600px) {
1502
+ .lockerverse-launcher__page
1503
+ > .lockerverse-launcher__header
1504
+ .lockerverse-launcher__brand
1505
+ img {
1506
+ width: 68px;
1507
+ height: 68px;
1508
+ border-radius: 15px;
1509
+ }
1510
+ .lockerverse-launcher__page .lockerverse-launcher__product {
1511
+ gap: 12px;
1512
+ padding: 20px 16px;
1513
+ }
1514
+ }
1515
+
1516
+ /* Keep both hosted steps on the same surface. Modal and fixed checkout are unchanged. */
1517
+ .lockerverse-launcher__dialog.lockerverse-launcher__page:has(
1518
+ .lockerverse-launcher__checkout
1519
+ ) {
1520
+ padding: 0;
1521
+ overflow: visible;
1522
+ background: transparent;
1523
+ border: 0;
1524
+ border-radius: 0;
1525
+ }
1526
+ .lockerverse-launcher__page .lockerverse-launcher__checkout-toolbar {
1527
+ padding: 0;
1528
+ margin: 0 0 10px;
1529
+ }
1530
+ .lockerverse-launcher__page .lockerverse-payment > header {
1531
+ margin-bottom: 32px;
1532
+ }
1533
+ .lockerverse-launcher__page .lockerverse-payment__branding {
1534
+ margin-bottom: 28px;
1535
+ }
1536
+ .lockerverse-launcher__page .lockerverse-payment__branding img {
1537
+ width: 80px;
1538
+ height: 80px;
1539
+ border-radius: 18px;
1540
+ }
1541
+ .lockerverse-launcher__page .lockerverse-payment__branding:has(img) strong {
1542
+ display: none;
1543
+ }
1544
+ .lockerverse-launcher__page .lockerverse-payment > header h1 {
1545
+ max-width: 16ch;
1546
+ font-size: clamp(34px, 5vw, 44px);
1547
+ font-weight: 650;
1548
+ line-height: 1.08;
1549
+ letter-spacing: -0.045em;
1550
+ }
1551
+ .lockerverse-launcher__page .lockerverse-payment__payment-summary {
1552
+ background: color-mix(in srgb, var(--lockerverse-text) 4%, transparent);
1553
+ border-radius: 14px;
1554
+ }
1555
+ @media (max-width: 600px) {
1556
+ .lockerverse-launcher__page .lockerverse-payment__branding img {
1557
+ width: 68px;
1558
+ height: 68px;
1559
+ border-radius: 15px;
1560
+ }
1561
+ }
1562
+
1563
+ .lockerverse-launcher__optional-control {
1564
+ display: inline-flex;
1565
+ align-items: center;
1566
+ justify-content: flex-end;
1567
+ width: 112px;
1568
+ min-height: 44px;
1569
+ }
1570
+ .lockerverse-launcher__optional-switch {
1571
+ width: 46px;
1572
+ height: 28px;
1573
+ padding: 3px;
1574
+ margin: 0;
1575
+ appearance: none;
1576
+ cursor: pointer;
1577
+ background: color-mix(in srgb, var(--lockerverse-text) 24%, transparent);
1578
+ border: 0;
1579
+ border-radius: 999px;
1580
+ }
1581
+ .lockerverse-launcher__optional-switch::before {
1582
+ display: block;
1583
+ width: 22px;
1584
+ height: 22px;
1585
+ content: "";
1586
+ background: #fff;
1587
+ border-radius: 50%;
1588
+ box-shadow: 0 1px 3px #0003;
1589
+ }
1590
+ .lockerverse-launcher__optional-switch:checked {
1591
+ background: var(--lockerverse-accent);
1592
+ }
1593
+ .lockerverse-launcher__optional-switch:checked::before {
1594
+ transform: translateX(18px);
1595
+ }
1596
+ .lockerverse-launcher__optional-switch:focus-visible {
1597
+ outline: 2px solid var(--lockerverse-accent);
1598
+ outline-offset: 3px;
1599
+ }
1600
+ .lockerverse-launcher__optional-switch:disabled {
1601
+ cursor: not-allowed;
1602
+ opacity: 0.45;
1603
+ }
package/dist/types.d.ts CHANGED
@@ -55,6 +55,14 @@ type LockerverseDonateLauncherPosition = "bottom-left" | "bottom-right" | "inlin
55
55
  type LockerverseDonateLauncherProps = Omit<LockerversePaymentProps, "selection"> & {
56
56
  buttonLabel?: string;
57
57
  position?: LockerverseDonateLauncherPosition;
58
+ /** Render the two-step flow directly in the page. Defaults to dialog. */
59
+ presentation?: "dialog" | "page";
60
+ /** Initial editable choices. Remount to load a different link configuration. */
61
+ initialSelection?: LockerversePaymentSelectionItem[];
62
+ /** Product IDs available to select; omitted means all, an empty array means none. */
63
+ productIds?: string[];
64
+ /** Show the configured widget description. Defaults to true. */
65
+ showDescription?: boolean;
58
66
  };
59
67
  //#endregion
60
68
  export { LockerversePaymentRecovery as a, LockerversePaymentTheme as c, LockerversePaymentProps as i, LockerversePaymentUncertain as l, LockerverseDonateLauncherProps as n, LockerversePaymentSelectionItem as o, LockerversePaymentBranding as r, LockerversePaymentStyle as s, LockerverseDonateLauncherPosition as t, LockerverseStripeLoader as u };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;;KAOY;EACN;EAAqB;;EACrB;EAAqB;;EACrB;;KAEM,0BAA0B;KAE1B;EACV;EACA;EACA;;KAGU,0BAA0B;KAE1B;EACV;EACA;;KAGU;EACV;EACA;;KAGU,8BACP,MAAM,kBAAkB,gBACxB,kBAAkB;KAElB,8BAA8B,KACjC;EAGA,WAAW;;EAEX;;EAEA;;EAEA,2BAA2B;EAC3B,WAAW;EACX,qBAAqB,SAAS;EAC9B,2BACE,UAAU;EAEZ,sBAAsB,SAAS;EAC/B,gBAAgB;EAChB,WAAW;EACX,eAAe;EACf,QAAQ;EACR,QAAQ;;KAGE,0BAA0B;EACpC,QAAQ;;KAGE;KAKA,iCAAiC,KAC3C;EAGA;EACA,WAAW"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;;KAOY;EACN;EAAqB;;EACrB;EAAqB;;EACrB;;KAEM,0BAA0B;KAE1B;EACV;EACA;EACA;;KAGU,0BAA0B;KAE1B;EACV;EACA;;KAGU;EACV;EACA;;KAGU,8BACP,MAAM,kBAAkB,gBACxB,kBAAkB;KAElB,8BAA8B,KACjC;EAGA,WAAW;;EAEX;;EAEA;;EAEA,2BAA2B;EAC3B,WAAW;EACX,qBAAqB,SAAS;EAC9B,2BACE,UAAU;EAEZ,sBAAsB,SAAS;EAC/B,gBAAgB;EAChB,WAAW;EACX,eAAe;EACf,QAAQ;EACR,QAAQ;;KAGE,0BAA0B;EACpC,QAAQ;;KAGE;KAKA,iCAAiC,KAC3C;EAGA;EACA,WAAW;;EAEX;;EAEA,mBAAmB;;EAEnB;;EAEA"}
@@ -1,6 +1,6 @@
1
1
  # Lockerverse auctions guide
2
2
 
3
- Package: @lockerverse/react@0.2.196
3
+ Package: @lockerverse/react@0.2.198-dev.1
4
4
 
5
5
  Generated from this release's maintained documentation. Do not edit this copy.
6
6
 
package/guides/events.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Lockerverse events guide
2
2
 
3
- Package: @lockerverse/react@0.2.196
3
+ Package: @lockerverse/react@0.2.198-dev.1
4
4
 
5
5
  Generated from this release's maintained documentation. Do not edit this copy.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Lockerverse integration guide
2
2
 
3
- Package: @lockerverse/react@0.2.196
3
+ Package: @lockerverse/react@0.2.198-dev.1
4
4
 
5
5
  Generated from this release's maintained documentation. Do not edit this copy.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Lockerverse payment-widgets guide
2
2
 
3
- Package: @lockerverse/react@0.2.196
3
+ Package: @lockerverse/react@0.2.198-dev.1
4
4
 
5
5
  Generated from this release's maintained documentation. Do not edit this copy.
6
6
 
@@ -111,6 +111,16 @@ is near or visible; pass the full `selection` and `widget` hook result. Use
111
111
  already selects a product can open that product's checkout directly. Do not
112
112
  add an iframe around native SDK checkout or another Stripe Elements wrapper.
113
113
 
114
+ For a hosted picker page, use `LockerverseDonateLauncher presentation="page"`.
115
+ Keep the SDK's selection, Continue, payment, and Edit order steps. Use `productIds`
116
+ with catalog IDs to limit the visible options, and `initialSelection` with product
117
+ slugs to prefill editable quantities or amounts. Omitted `productIds` shows all;
118
+ an empty list shows none. Required shipping remains automatic. These properties
119
+ are initial mount configuration; remount with a different key for another link.
120
+ Use `showDescription={false}` to show only the configured title and branding.
121
+ Use the public page root class `.lockerverse-launcher__page`, `className`, `style`,
122
+ and theme tokens for host styling. The filter is not a server access restriction.
123
+
114
124
  Use supported `initialCustomFieldValues` for editable prefill. For explicitly
115
125
  requested custom checkout, reuse payment primitives with the Core SDK; the
116
126
  host then owns quote, confirmation, validation, and recovery duties. Retain
@@ -295,8 +305,40 @@ branding, themes, metadata, and recovery properties are the same as
295
305
  `LockerversePayment`. API and transport options belong to
296
306
  `useLockerverseWidget`.
297
307
 
298
- The launcher starts loading Stripe when the visitor opens it. Catalog-only
299
- pages do not load Stripe.
308
+ For a hosted two-step page, use the same launcher without a trigger or dialog:
309
+
310
+ ```tsx
311
+ <LockerverseDonateLauncher
312
+ widget={widget}
313
+ presentation="page"
314
+ theme="light"
315
+ showDescription={false}
316
+ productIds={["configured-product-id"]}
317
+ initialSelection={[{ productSlug: "configured-product-slug", quantity: 2 }]}
318
+ />
319
+ ```
320
+
321
+ `productIds` limits the products visitors can choose. Omit it to show all widget
322
+ products; an empty array shows none. Use IDs from the catalog, not slugs. Required
323
+ shipping remains automatic even when its product ID is not in this list. This is
324
+ a presentation filter, not a server authorization rule.
325
+
326
+ `initialSelection` uses the existing payment selection format and is editable.
327
+ It waits for the catalog, ignores unknown or excluded products, clamps fixed
328
+ quantities to configured limits and inventory, and ignores invalid custom
329
+ amounts. The first valid recurring selection takes precedence over one-time
330
+ choices, since subscriptions cannot be combined with a one-time cart. Both link
331
+ properties are read once per mount; use a React `key` to load a different link.
332
+
333
+ `showDescription={false}` hides the widget description on both steps. The page
334
+ uses the configured widget title and community branding. `className` and `style`
335
+ can style the page root; `.lockerverse-launcher__page` is the supported root
336
+ class. Use the existing theme tokens or a host wrapper for page backgrounds;
337
+ do not target internal control selectors. The default dialog and fixed payment
338
+ component are unchanged.
339
+
340
+ The dialog starts loading Stripe when the visitor opens it. Page presentation
341
+ loads payment when the visitor continues. Catalog-only pages do not load Stripe.
300
342
 
301
343
  ## Catalog hook
302
344
 
package/guides/signup.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Lockerverse signup guide
2
2
 
3
- Package: @lockerverse/react@0.2.196
3
+ Package: @lockerverse/react@0.2.198-dev.1
4
4
 
5
5
  Generated from this release's maintained documentation. Do not edit this copy.
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lockerverse/react",
3
- "version": "0.2.196",
3
+ "version": "0.2.198-dev.1",
4
4
  "description": "Tree-shakable React payment and signup UI for Lockerverse",
5
5
  "repository": {
6
6
  "type": "git",
@@ -136,7 +136,7 @@
136
136
  "embla-carousel-react": "8.6.0",
137
137
  "lucide-react": "0.536.0",
138
138
  "valibot": "1.4.2",
139
- "@lockerverse/sdk": "0.2.196"
139
+ "@lockerverse/sdk": "0.2.198-dev.1"
140
140
  },
141
141
  "devDependencies": {
142
142
  "@size-limit/file": "13.0.3",