@rebuy/rebuy 2.6.0-rc.2 → 2.6.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/dist/index.js +7 -1
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +2 -2
- package/dist/schema/widgetData.d.ts +40 -0
- package/dist/schema/widgetData.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/button.d.ts +9 -242
- package/dist/schema/widgets/checkout-and-beyond/button.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts +8 -2
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/image.d.ts +1 -0
- package/dist/schema/widgets/checkout-and-beyond/image.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/layout.d.ts +22 -1
- package/dist/schema/widgets/checkout-and-beyond/layout.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/offers.d.ts +20 -0
- package/dist/schema/widgets/checkout-and-beyond/offers.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/product.d.ts +2 -0
- package/dist/schema/widgets/checkout-and-beyond/product.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/products.d.ts +2 -0
- package/dist/schema/widgets/checkout-and-beyond/products.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/root.d.ts +20 -0
- package/dist/schema/widgets/checkout-and-beyond/root.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/text.d.ts +1 -0
- package/dist/schema/widgets/checkout-and-beyond/text.d.ts.map +1 -1
- package/dist/schema/widgets/contentBlock.d.ts +20 -0
- package/dist/schema/widgets/contentBlock.d.ts.map +1 -1
- package/dist/schema/widgets/rebuyButton.d.ts +20 -0
- package/dist/schema/widgets/rebuyButton.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1085,6 +1085,8 @@ var buttonActions = [
|
|
|
1085
1085
|
"addToOrder",
|
|
1086
1086
|
"declineAllOffers",
|
|
1087
1087
|
"declineOffer",
|
|
1088
|
+
"displayContentInModal",
|
|
1089
|
+
"displayContentInPopover",
|
|
1088
1090
|
"goToRebuyApp",
|
|
1089
1091
|
"goToRebuyVault",
|
|
1090
1092
|
"goToURL",
|
|
@@ -1102,6 +1104,7 @@ var buttonFields = [
|
|
|
1102
1104
|
"declineAllOffers",
|
|
1103
1105
|
"declineOffer",
|
|
1104
1106
|
"destinationUrl",
|
|
1107
|
+
"overlayContent",
|
|
1105
1108
|
"payNow",
|
|
1106
1109
|
"removeFromCart",
|
|
1107
1110
|
"showVariant",
|
|
@@ -1448,7 +1451,9 @@ var CABTextSection = z10.object({
|
|
|
1448
1451
|
});
|
|
1449
1452
|
|
|
1450
1453
|
// src/schema/widgets/checkout-and-beyond/button.ts
|
|
1451
|
-
var CABButtonContent = z11.lazy(
|
|
1454
|
+
var CABButtonContent = z11.lazy(
|
|
1455
|
+
() => z11.discriminatedUnion("sectionType", [CABImageSection, CABLayoutSection, CABTextSection])
|
|
1456
|
+
);
|
|
1452
1457
|
var CABButtonSection = z11.object({
|
|
1453
1458
|
action: z11.union([z11.literal(""), z11.enum(buttonActions)]).default(""),
|
|
1454
1459
|
buttonStyle: z11.enum(buttonStyles).default(ButtonStyle.primary),
|
|
@@ -1634,6 +1639,7 @@ var CABLayoutSection = z22.object({
|
|
|
1634
1639
|
vertical: VerticalAlignment.top
|
|
1635
1640
|
}),
|
|
1636
1641
|
border: z22.lazy(() => CABBorder),
|
|
1642
|
+
buttonField: z22.enum(buttonFields).optional(),
|
|
1637
1643
|
direction: z22.enum(directions).default(Direction.rows),
|
|
1638
1644
|
name: z22.string().optional(),
|
|
1639
1645
|
padding: z22.enum(spacings).default(Spacing.none),
|