@lockerverse/react 0.2.202 → 0.2.204
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/MIGRATIONS.md +29 -0
- package/README.md +8 -0
- package/dist/lockerverse-donate-launcher.d.ts.map +1 -1
- package/dist/lockerverse-donate-launcher.js +1 -1
- package/dist/lockerverse-donate-launcher.js.map +1 -1
- package/dist/lockerverse-payment.js +1 -1
- package/dist/lockerverse-payment.js.map +1 -1
- package/dist/payment-form.d.ts.map +1 -1
- package/dist/styles.css +143 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/guides/auctions.md +1 -1
- package/guides/events.md +1 -1
- package/guides/integration.md +1 -1
- package/guides/payment-widgets.md +9 -1
- package/guides/signup.md +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-form.d.ts","names":[],"sources":["../src/lockerverse-payment.tsx","../src/payment-form.tsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"payment-form.d.ts","names":[],"sources":["../src/lockerverse-payment.tsx","../src/payment-form.tsx"],"mappings":";;;;iBAyfgB,qBACd,WACG,aACF,0CAAuB,IAAA;;;iBChcV,0BACd,SAAS,KAAK,iCAA8B,oCAAA"}
|
package/dist/styles.css
CHANGED
|
@@ -139,6 +139,11 @@
|
|
|
139
139
|
border-top: 1px solid var(--lockerverse-subtle);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
.lockerverse-payment__contact:first-child {
|
|
143
|
+
padding-top: 0;
|
|
144
|
+
border-top: 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
142
147
|
.lockerverse-payment__contact label:not(:first-child) {
|
|
143
148
|
margin-top: 4px;
|
|
144
149
|
}
|
|
@@ -1601,3 +1606,141 @@
|
|
|
1601
1606
|
cursor: not-allowed;
|
|
1602
1607
|
opacity: 0.45;
|
|
1603
1608
|
}
|
|
1609
|
+
|
|
1610
|
+
/* Ticket products use a paper body with a perforated quantity stub. */
|
|
1611
|
+
.lockerverse-launcher__product-control {
|
|
1612
|
+
display: flex;
|
|
1613
|
+
justify-content: flex-end;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
.lockerverse-launcher__page
|
|
1617
|
+
.lockerverse-launcher__product-list:has([data-ticket]) {
|
|
1618
|
+
gap: 14px;
|
|
1619
|
+
overflow: visible;
|
|
1620
|
+
background: transparent;
|
|
1621
|
+
border: 0;
|
|
1622
|
+
border-radius: 0;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
.lockerverse-launcher__page
|
|
1626
|
+
.lockerverse-launcher__product-list:has([data-ticket])
|
|
1627
|
+
> .lockerverse-launcher__product:not([data-ticket]) {
|
|
1628
|
+
background: color-mix(in srgb, var(--lockerverse-text) 4%, transparent);
|
|
1629
|
+
border: 1px solid var(--lockerverse-border);
|
|
1630
|
+
border-radius: 14px;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
.lockerverse-launcher__product-list
|
|
1634
|
+
.lockerverse-launcher__product[data-ticket] {
|
|
1635
|
+
--lockerverse-ticket-stub-width: 148px;
|
|
1636
|
+
--lockerverse-text: #302427;
|
|
1637
|
+
--lockerverse-muted: #76666b;
|
|
1638
|
+
--lockerverse-accent: #302427;
|
|
1639
|
+
position: relative;
|
|
1640
|
+
grid-template-columns: minmax(0, 1fr) var(--lockerverse-ticket-stub-width);
|
|
1641
|
+
gap: 0;
|
|
1642
|
+
min-height: 132px;
|
|
1643
|
+
padding: 0;
|
|
1644
|
+
overflow: hidden;
|
|
1645
|
+
color: var(--lockerverse-text);
|
|
1646
|
+
background: #f5f3ee;
|
|
1647
|
+
border: 0;
|
|
1648
|
+
border-radius: 14px;
|
|
1649
|
+
box-shadow: none;
|
|
1650
|
+
mask:
|
|
1651
|
+
radial-gradient(
|
|
1652
|
+
circle at calc(100% - var(--lockerverse-ticket-stub-width)) 0,
|
|
1653
|
+
transparent 8px,
|
|
1654
|
+
#000 8.5px
|
|
1655
|
+
)
|
|
1656
|
+
top / 100% 51% no-repeat,
|
|
1657
|
+
radial-gradient(
|
|
1658
|
+
circle at calc(100% - var(--lockerverse-ticket-stub-width)) 100%,
|
|
1659
|
+
transparent 8px,
|
|
1660
|
+
#000 8.5px
|
|
1661
|
+
)
|
|
1662
|
+
bottom / 100% 51% no-repeat;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
.lockerverse-launcher__product[data-ticket]
|
|
1666
|
+
.lockerverse-launcher__product-copy {
|
|
1667
|
+
gap: 8px;
|
|
1668
|
+
padding: 24px;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
.lockerverse-launcher__product[data-ticket]
|
|
1672
|
+
.lockerverse-launcher__product-name {
|
|
1673
|
+
font-size: 20px;
|
|
1674
|
+
font-weight: 700;
|
|
1675
|
+
line-height: 1.35;
|
|
1676
|
+
letter-spacing: -0.5px;
|
|
1677
|
+
white-space: normal;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
.lockerverse-launcher__product[data-ticket]
|
|
1681
|
+
.lockerverse-launcher__product-price {
|
|
1682
|
+
margin-top: 0;
|
|
1683
|
+
font-size: 16px;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
.lockerverse-launcher__product[data-ticket]
|
|
1687
|
+
.lockerverse-launcher__product-control {
|
|
1688
|
+
align-items: center;
|
|
1689
|
+
align-self: stretch;
|
|
1690
|
+
justify-content: center;
|
|
1691
|
+
padding: 16px;
|
|
1692
|
+
background: #eae6df;
|
|
1693
|
+
border-left: 1px dashed #bcb3ac;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
.lockerverse-launcher__product[data-ticket] .lockerverse-launcher__quantity {
|
|
1697
|
+
color: var(--lockerverse-text);
|
|
1698
|
+
background: transparent;
|
|
1699
|
+
border-color: #a89a95;
|
|
1700
|
+
border-radius: 9px;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
.lockerverse-launcher__product[data-ticket]
|
|
1704
|
+
.lockerverse-launcher__quantity
|
|
1705
|
+
button {
|
|
1706
|
+
min-height: 40px;
|
|
1707
|
+
color: inherit;
|
|
1708
|
+
background: transparent;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
.lockerverse-launcher__product[data-ticket]
|
|
1712
|
+
.lockerverse-launcher__quantity
|
|
1713
|
+
button:hover:not(:disabled) {
|
|
1714
|
+
background: #30242714;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
.lockerverse-launcher__product[data-ticket]
|
|
1718
|
+
.lockerverse-launcher__quantity
|
|
1719
|
+
button:focus-visible {
|
|
1720
|
+
outline-color: var(--lockerverse-text);
|
|
1721
|
+
outline-offset: -3px;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
.lockerverse-launcher__product[data-ticket]
|
|
1725
|
+
.lockerverse-launcher__optional-control {
|
|
1726
|
+
justify-content: center;
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
@media (max-width: 600px) {
|
|
1730
|
+
.lockerverse-launcher__product-list
|
|
1731
|
+
.lockerverse-launcher__product[data-ticket] {
|
|
1732
|
+
--lockerverse-ticket-stub-width: 136px;
|
|
1733
|
+
}
|
|
1734
|
+
.lockerverse-launcher__product[data-ticket]
|
|
1735
|
+
.lockerverse-launcher__product-copy {
|
|
1736
|
+
padding: 20px 16px;
|
|
1737
|
+
}
|
|
1738
|
+
.lockerverse-launcher__product[data-ticket]
|
|
1739
|
+
.lockerverse-launcher__product-control {
|
|
1740
|
+
padding-inline: 10px;
|
|
1741
|
+
}
|
|
1742
|
+
.lockerverse-launcher__product[data-ticket]
|
|
1743
|
+
.lockerverse-launcher__product-name {
|
|
1744
|
+
font-size: 17px;
|
|
1745
|
+
}
|
|
1746
|
+
}
|
package/dist/types.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ type LockerversePaymentViewProps = Omit<ComponentPropsWithoutRef<"section">, "ch
|
|
|
34
34
|
branding?: LockerversePaymentBranding;
|
|
35
35
|
/** Show the SDK confirmation panel after a completed payment or free order. */
|
|
36
36
|
completionView?: "inline" | "summary";
|
|
37
|
+
/** Order summary placement. Payment defaults to top; the two-step launcher defaults to bottom. */
|
|
38
|
+
paymentSummaryPosition?: "top" | "bottom" | "hidden";
|
|
37
39
|
/** Opt in to session recovery. Use a stable key scoped to environment, community, and widget. */
|
|
38
40
|
recoveryStorageKey?: string;
|
|
39
41
|
/** Initial values for configured custom fields. Buyers can edit them. Read once per checkout form. */
|
package/dist/types.d.ts.map
CHANGED
|
@@ -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;;EAEX;;EAEA,kBAAkB;;EAElB,mBAAmB;;EAEnB;;EAEA"}
|
|
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;;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,kBAAkB;;EAElB,mBAAmB;;EAEnB;;EAEA"}
|
package/guides/auctions.md
CHANGED
package/guides/events.md
CHANGED
package/guides/integration.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Lockerverse payment-widgets guide
|
|
2
2
|
|
|
3
|
-
Package: @lockerverse/react@0.2.
|
|
3
|
+
Package: @lockerverse/react@0.2.204
|
|
4
4
|
|
|
5
5
|
Generated from this release's maintained documentation. Do not edit this copy.
|
|
6
6
|
|
|
@@ -305,6 +305,14 @@ branding, themes, metadata, and recovery properties are the same as
|
|
|
305
305
|
`LockerversePayment`. API and transport options belong to
|
|
306
306
|
`useLockerverseWidget`.
|
|
307
307
|
|
|
308
|
+
The launcher starts checkout with contact fields. Tips and the order summary
|
|
309
|
+
appear near the payment button. Set `paymentSummaryPosition` to `"top"`,
|
|
310
|
+
`"bottom"`, or `"hidden"` to choose the summary placement. The launcher defaults
|
|
311
|
+
to `"bottom"`; standalone `LockerversePayment` defaults to `"top"`. With a hidden
|
|
312
|
+
summary, the payment button still displays the final amount. Ticket products
|
|
313
|
+
(`fulfillmentType: "event_admission"`) use ticket edges and a perforated quantity
|
|
314
|
+
stub; other products keep their usual card style.
|
|
315
|
+
|
|
308
316
|
For a hosted two-step page, use the same launcher without a trigger or dialog:
|
|
309
317
|
|
|
310
318
|
```tsx
|
package/guides/signup.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lockerverse/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.204",
|
|
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.
|
|
139
|
+
"@lockerverse/sdk": "0.2.204"
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
142
|
"@size-limit/file": "13.0.3",
|