@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.js
CHANGED
|
@@ -1247,6 +1247,8 @@ var buttonActions = [
|
|
|
1247
1247
|
"addToOrder",
|
|
1248
1248
|
"declineAllOffers",
|
|
1249
1249
|
"declineOffer",
|
|
1250
|
+
"displayContentInModal",
|
|
1251
|
+
"displayContentInPopover",
|
|
1250
1252
|
"goToRebuyApp",
|
|
1251
1253
|
"goToRebuyVault",
|
|
1252
1254
|
"goToURL",
|
|
@@ -1264,6 +1266,7 @@ var buttonFields = [
|
|
|
1264
1266
|
"declineAllOffers",
|
|
1265
1267
|
"declineOffer",
|
|
1266
1268
|
"destinationUrl",
|
|
1269
|
+
"overlayContent",
|
|
1267
1270
|
"payNow",
|
|
1268
1271
|
"removeFromCart",
|
|
1269
1272
|
"showVariant",
|
|
@@ -1610,7 +1613,9 @@ var CABTextSection = import_v410.z.object({
|
|
|
1610
1613
|
});
|
|
1611
1614
|
|
|
1612
1615
|
// src/schema/widgets/checkout-and-beyond/button.ts
|
|
1613
|
-
var CABButtonContent = import_v411.z.lazy(
|
|
1616
|
+
var CABButtonContent = import_v411.z.lazy(
|
|
1617
|
+
() => import_v411.z.discriminatedUnion("sectionType", [CABImageSection, CABLayoutSection, CABTextSection])
|
|
1618
|
+
);
|
|
1614
1619
|
var CABButtonSection = import_v411.z.object({
|
|
1615
1620
|
action: import_v411.z.union([import_v411.z.literal(""), import_v411.z.enum(buttonActions)]).default(""),
|
|
1616
1621
|
buttonStyle: import_v411.z.enum(buttonStyles).default(ButtonStyle.primary),
|
|
@@ -1796,6 +1801,7 @@ var CABLayoutSection = import_v422.z.object({
|
|
|
1796
1801
|
vertical: VerticalAlignment.top
|
|
1797
1802
|
}),
|
|
1798
1803
|
border: import_v422.z.lazy(() => CABBorder),
|
|
1804
|
+
buttonField: import_v422.z.enum(buttonFields).optional(),
|
|
1799
1805
|
direction: import_v422.z.enum(directions).default(Direction.rows),
|
|
1800
1806
|
name: import_v422.z.string().optional(),
|
|
1801
1807
|
padding: import_v422.z.enum(spacings).default(Spacing.none),
|