@rebuy/rebuy 2.33.0 → 2.34.0-rc.2
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 +84 -2
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +84 -2
- package/dist/index.mjs.map +3 -3
- package/dist/schema/checkout-and-beyond/index.js +84 -2
- package/dist/schema/checkout-and-beyond/index.js.map +3 -3
- package/dist/schema/checkout-and-beyond/index.mjs +84 -2
- package/dist/schema/checkout-and-beyond/index.mjs.map +3 -3
- package/dist/schema/widget-data.js +84 -2
- package/dist/schema/widget-data.js.map +3 -3
- package/dist/schema/widget-data.mjs +84 -2
- package/dist/schema/widget-data.mjs.map +3 -3
- package/dist/schema/widgets/checkout-and-beyond/icons.d.ts +85 -0
- package/dist/schema/widgets/checkout-and-beyond/icons.d.ts.map +1 -0
- package/dist/schema/widgets/checkout-and-beyond/image.d.ts +78 -1
- package/dist/schema/widgets/checkout-and-beyond/image.d.ts.map +1 -1
- package/dist/server/b2bAvailability.d.ts +16 -0
- package/dist/server/b2bAvailability.d.ts.map +1 -0
- package/dist/server/dataSourceResults.d.ts.map +1 -1
- package/dist/server/index.js +612 -481
- package/dist/server/index.js.map +4 -4
- package/dist/server/index.mjs +612 -481
- package/dist/server/index.mjs.map +4 -4
- package/dist/server/requestSchemas.d.ts +1 -0
- package/dist/server/requestSchemas.d.ts.map +1 -1
- package/dist/server/shared.d.ts +1 -1
- package/dist/server/shared.d.ts.map +1 -1
- package/dist/transforms/index.js +85 -3
- package/dist/transforms/index.js.map +3 -3
- package/dist/transforms/index.mjs +85 -3
- package/dist/transforms/index.mjs.map +3 -3
- package/dist/transforms/smartCart/convertSmartCartProgressBarToV2.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1839,6 +1839,86 @@ var import_zod14 = require("zod");
|
|
|
1839
1839
|
var import_uuid = require("uuid");
|
|
1840
1840
|
var import_zod12 = require("zod");
|
|
1841
1841
|
|
|
1842
|
+
// src/schema/widgets/checkout-and-beyond/icons.ts
|
|
1843
|
+
var iconNames = [
|
|
1844
|
+
"alert-circle",
|
|
1845
|
+
"alert-triangle",
|
|
1846
|
+
"alert-triangle-filled",
|
|
1847
|
+
"arrow-down",
|
|
1848
|
+
"arrow-left",
|
|
1849
|
+
"arrow-right",
|
|
1850
|
+
"arrow-up",
|
|
1851
|
+
"arrow-up-right",
|
|
1852
|
+
"bag",
|
|
1853
|
+
"bullet",
|
|
1854
|
+
"calendar",
|
|
1855
|
+
"camera",
|
|
1856
|
+
"caret-down",
|
|
1857
|
+
"cart",
|
|
1858
|
+
"cash-dollar",
|
|
1859
|
+
"categories",
|
|
1860
|
+
"check",
|
|
1861
|
+
"check-circle",
|
|
1862
|
+
"check-circle-filled",
|
|
1863
|
+
"chevron-down",
|
|
1864
|
+
"chevron-left",
|
|
1865
|
+
"chevron-right",
|
|
1866
|
+
"chevron-up",
|
|
1867
|
+
"circle",
|
|
1868
|
+
"clipboard",
|
|
1869
|
+
"clock",
|
|
1870
|
+
"credit-card",
|
|
1871
|
+
"delete",
|
|
1872
|
+
"delivered",
|
|
1873
|
+
"delivery",
|
|
1874
|
+
"disabled",
|
|
1875
|
+
"discount",
|
|
1876
|
+
"edit",
|
|
1877
|
+
"email",
|
|
1878
|
+
"empty",
|
|
1879
|
+
"external",
|
|
1880
|
+
"filter",
|
|
1881
|
+
"geolocation",
|
|
1882
|
+
"gift-card",
|
|
1883
|
+
"globe",
|
|
1884
|
+
"grid",
|
|
1885
|
+
"image",
|
|
1886
|
+
"info",
|
|
1887
|
+
"info-filled",
|
|
1888
|
+
"list-bulleted",
|
|
1889
|
+
"location",
|
|
1890
|
+
"lock",
|
|
1891
|
+
"map",
|
|
1892
|
+
"menu",
|
|
1893
|
+
"menu-horizontal",
|
|
1894
|
+
"menu-vertical",
|
|
1895
|
+
"minus",
|
|
1896
|
+
"mobile",
|
|
1897
|
+
"note",
|
|
1898
|
+
"order",
|
|
1899
|
+
"organization",
|
|
1900
|
+
"plus",
|
|
1901
|
+
"profile",
|
|
1902
|
+
"question-circle",
|
|
1903
|
+
"question-circle-filled",
|
|
1904
|
+
"reorder",
|
|
1905
|
+
"reset",
|
|
1906
|
+
"return",
|
|
1907
|
+
"savings",
|
|
1908
|
+
"search",
|
|
1909
|
+
"settings",
|
|
1910
|
+
"star",
|
|
1911
|
+
"star-filled",
|
|
1912
|
+
"star-half",
|
|
1913
|
+
"store",
|
|
1914
|
+
"truck",
|
|
1915
|
+
"upload",
|
|
1916
|
+
"x",
|
|
1917
|
+
"x-circle",
|
|
1918
|
+
"x-circle-filled"
|
|
1919
|
+
];
|
|
1920
|
+
var IconName = freezeEnum(iconNames);
|
|
1921
|
+
|
|
1842
1922
|
// src/schema/widgets/checkout-and-beyond/regex.ts
|
|
1843
1923
|
var ARRAY_INDEX_STRING = /^(0|[1-9]\d*)$/;
|
|
1844
1924
|
var DYNAMIC_TOKEN_REGEX = /^\{\{\s*[A-Za-z]+\s*\}\}$/;
|
|
@@ -1896,7 +1976,8 @@ var CABImageSection = import_zod12.z.object({
|
|
|
1896
1976
|
aspectRatio: import_zod12.z.literal(1).nullable().default(null),
|
|
1897
1977
|
border: import_zod12.z.lazy(() => CABBorder),
|
|
1898
1978
|
buttonField: import_zod12.z.enum(buttonFields).optional(),
|
|
1899
|
-
|
|
1979
|
+
/** `icon` renders `source` as an `s-icon` name (the uber-image path also covers icons); the rest are image treatments. */
|
|
1980
|
+
category: import_zod12.z.enum(["gallery", "icon", "icons", "payment-methods", "secure-checkout"]).nullable().default(null),
|
|
1900
1981
|
name: import_zod12.z.string().optional(),
|
|
1901
1982
|
naturalHeight: import_zod12.z.number().default(0),
|
|
1902
1983
|
naturalWidth: import_zod12.z.number().default(0),
|
|
@@ -1908,7 +1989,8 @@ var CABImageSection = import_zod12.z.object({
|
|
|
1908
1989
|
rule: CABRule.optional(),
|
|
1909
1990
|
sectionId: import_zod12.z.uuid().default(() => (0, import_uuid.v7)()),
|
|
1910
1991
|
sectionType: import_zod12.z.literal(SectionType.image).default(SectionType.image),
|
|
1911
|
-
|
|
1992
|
+
/** A URL / dynamic token for an image, an empty default, or an icon NAME when `category: 'icon'`. */
|
|
1993
|
+
source: import_zod12.z.union([import_zod12.z.url(), import_zod12.z.literal(""), import_zod12.z.string().regex(DYNAMIC_TOKEN_REGEX), import_zod12.z.enum(iconNames)]).default(""),
|
|
1912
1994
|
width: import_zod12.z.number().default(100)
|
|
1913
1995
|
});
|
|
1914
1996
|
|