@rebuy/rebuy 2.34.0-rc.2 → 2.34.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 CHANGED
@@ -1839,86 +1839,6 @@ 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
-
1922
1842
  // src/schema/widgets/checkout-and-beyond/regex.ts
1923
1843
  var ARRAY_INDEX_STRING = /^(0|[1-9]\d*)$/;
1924
1844
  var DYNAMIC_TOKEN_REGEX = /^\{\{\s*[A-Za-z]+\s*\}\}$/;
@@ -1976,8 +1896,7 @@ var CABImageSection = import_zod12.z.object({
1976
1896
  aspectRatio: import_zod12.z.literal(1).nullable().default(null),
1977
1897
  border: import_zod12.z.lazy(() => CABBorder),
1978
1898
  buttonField: import_zod12.z.enum(buttonFields).optional(),
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),
1899
+ category: import_zod12.z.enum(["gallery", "icons", "payment-methods", "secure-checkout"]).nullable().default(null),
1981
1900
  name: import_zod12.z.string().optional(),
1982
1901
  naturalHeight: import_zod12.z.number().default(0),
1983
1902
  naturalWidth: import_zod12.z.number().default(0),
@@ -1989,8 +1908,7 @@ var CABImageSection = import_zod12.z.object({
1989
1908
  rule: CABRule.optional(),
1990
1909
  sectionId: import_zod12.z.uuid().default(() => (0, import_uuid.v7)()),
1991
1910
  sectionType: import_zod12.z.literal(SectionType.image).default(SectionType.image),
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(""),
1911
+ source: import_zod12.z.union([import_zod12.z.url(), import_zod12.z.literal(""), import_zod12.z.string().regex(DYNAMIC_TOKEN_REGEX)]).default(""),
1994
1912
  width: import_zod12.z.number().default(100)
1995
1913
  });
1996
1914