@fayz-ai/storefront 0.10.0 → 0.11.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.
Files changed (55) hide show
  1. package/dist/app/createStorefrontApp.d.ts.map +1 -1
  2. package/dist/app/router.d.ts +1 -1
  3. package/dist/app/scaffold.d.ts.map +1 -1
  4. package/dist/{chunk-6B7H3IZ6.js → chunk-SX3J3QIT.js} +1399 -585
  5. package/dist/chunk-SX3J3QIT.js.map +1 -0
  6. package/dist/components/Skeleton.d.ts +17 -0
  7. package/dist/components/Skeleton.d.ts.map +1 -0
  8. package/dist/components/account/CustomerAccountShell.d.ts +7 -3
  9. package/dist/components/account/CustomerAccountShell.d.ts.map +1 -1
  10. package/dist/components/account/section.d.ts +15 -0
  11. package/dist/components/account/section.d.ts.map +1 -0
  12. package/dist/components/cart/CartDrawer.d.ts.map +1 -1
  13. package/dist/components/cart/QuantityInput.d.ts.map +1 -1
  14. package/dist/components/checkout/CheckoutPayment.d.ts +17 -0
  15. package/dist/components/checkout/CheckoutPayment.d.ts.map +1 -0
  16. package/dist/components/checkout/CheckoutSteps.d.ts +9 -0
  17. package/dist/components/checkout/CheckoutSteps.d.ts.map +1 -0
  18. package/dist/components/layout/StorefrontHeader.d.ts.map +1 -1
  19. package/dist/components/order/OrderTrackingTimeline.d.ts.map +1 -1
  20. package/dist/components/order/SuccessMark.d.ts +10 -0
  21. package/dist/components/order/SuccessMark.d.ts.map +1 -0
  22. package/dist/data/loaders.d.ts +0 -4
  23. package/dist/data/loaders.d.ts.map +1 -1
  24. package/dist/data/local-orders.d.ts +5 -0
  25. package/dist/data/local-orders.d.ts.map +1 -0
  26. package/dist/data/shipping-items.d.ts +20 -0
  27. package/dist/data/shipping-items.d.ts.map +1 -0
  28. package/dist/document/config.d.ts +21 -3
  29. package/dist/document/config.d.ts.map +1 -1
  30. package/dist/document/sections.d.ts +1 -1
  31. package/dist/document/sections.d.ts.map +1 -1
  32. package/dist/document/store-policy.d.ts +29 -0
  33. package/dist/document/store-policy.d.ts.map +1 -0
  34. package/dist/hooks/use-my-orders.d.ts.map +1 -1
  35. package/dist/hooks/use-shipping.d.ts +3 -0
  36. package/dist/hooks/use-shipping.d.ts.map +1 -1
  37. package/dist/index.d.ts +2 -1
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +4 -3
  40. package/dist/index.js.map +1 -1
  41. package/dist/lib/errors.d.ts +9 -0
  42. package/dist/lib/errors.d.ts.map +1 -0
  43. package/dist/lib/testids.d.ts +12 -0
  44. package/dist/lib/testids.d.ts.map +1 -1
  45. package/dist/render.js +1 -1
  46. package/dist/stores/cart.store.d.ts +28 -0
  47. package/dist/stores/cart.store.d.ts.map +1 -1
  48. package/dist/stores/delivery.store.d.ts +9 -0
  49. package/dist/stores/delivery.store.d.ts.map +1 -1
  50. package/dist/views/CheckoutPage.d.ts.map +1 -1
  51. package/dist/views/MyPurchasesPage.d.ts.map +1 -1
  52. package/dist/views/OrderConfirmationPage.d.ts.map +1 -1
  53. package/dist/workflows/checkout.d.ts.map +1 -1
  54. package/package.json +7 -7
  55. package/dist/chunk-6B7H3IZ6.js.map +0 -1
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The message inside a thrown value.
3
+ *
4
+ * `err instanceof Error` is not enough here: the Supabase provider rethrows
5
+ * PostgrestError, a plain object with `message`, so every `instanceof` check in
6
+ * the storefront fell through to a generic sentence and lost what the server said.
7
+ */
8
+ export declare function errorMessage(err: unknown): string;
9
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/lib/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAMjD"}
@@ -112,6 +112,7 @@ export declare const TID: {
112
112
  readonly deliveryClear: "delivery-clear";
113
113
  readonly checkoutEmail: "checkout-email";
114
114
  readonly checkoutName: "checkout-name";
115
+ readonly checkoutDocument: "checkout-document";
115
116
  readonly checkoutStreet: "checkout-street";
116
117
  readonly checkoutCity: "checkout-city";
117
118
  readonly checkoutZip: "checkout-zip";
@@ -119,6 +120,17 @@ export declare const TID: {
119
120
  readonly checkoutExpiry: "checkout-expiry";
120
121
  readonly checkoutCvc: "checkout-cvc";
121
122
  readonly placeOrder: "place-order";
123
+ readonly checkoutSteps: "checkout-steps";
124
+ readonly checkoutStep: (n: number) => string;
125
+ readonly checkoutPayment: "checkout-payment";
126
+ readonly checkoutPaymentTotal: "checkout-payment-total";
127
+ readonly checkoutContinue: "checkout-continue";
128
+ readonly checkoutBack: "checkout-back";
129
+ readonly checkoutDone: "checkout-done";
130
+ readonly pixPanel: "pix-panel";
131
+ readonly pixCode: "pix-code";
132
+ readonly pixCopy: "pix-copy";
133
+ readonly pixConfirm: "pix-confirm";
122
134
  readonly checkoutError: "checkout-error";
123
135
  readonly checkoutProcessing: "checkout-processing";
124
136
  readonly orderNumber: "order-number";
@@ -1 +1 @@
1
- {"version":3,"file":"testids.d.ts","sourceRoot":"","sources":["../../src/lib/testids.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG;;;;;;;;;;;;;8BAcG,MAAM;iCACH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;kCAyBL,MAAM;;;;;;;;;;;;;;;;;;oCAqBJ,MAAM;;;;;;;;;;sCAWJ,MAAM;sCACN,MAAM,SAAS,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA+DpB,MAAM;;;;;;;;;;;;;;;;;;CAmBxB,CAAA"}
1
+ {"version":3,"file":"testids.d.ts","sourceRoot":"","sources":["../../src/lib/testids.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG;;;;;;;;;;;;;8BAcG,MAAM;iCACH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;kCAyBL,MAAM;;;;;;;;;;;;;;;;;;oCAqBJ,MAAM;;;;;;;;;;sCAWJ,MAAM;sCACN,MAAM,SAAS,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA4D5B,MAAM;;;;;;;;;;;;;;;uCAiBE,MAAM;;;;;;;;;;;;;;;;;;CAmBxB,CAAA"}
package/dist/render.js CHANGED
@@ -1,4 +1,4 @@
1
- import { validateStore, resolveConfig, registerStorefrontBlocks, registerStorefrontEntities, resetPageDiagnostics, withStaticRenderPass, StorefrontConfigProvider, StorefrontShell, resolvePageData, themeToCss, serializePageData, hydrateStoreDocument, storefrontPaths, isPublicPath, resolveStorefrontProvider } from './chunk-6B7H3IZ6.js';
1
+ import { validateStore, resolveConfig, registerStorefrontBlocks, registerStorefrontEntities, resetPageDiagnostics, withStaticRenderPass, StorefrontConfigProvider, StorefrontShell, resolvePageData, themeToCss, serializePageData, hydrateStoreDocument, storefrontPaths, isPublicPath, resolveStorefrontProvider } from './chunk-SX3J3QIT.js';
2
2
  import { renderToStaticMarkup } from 'react-dom/server';
3
3
  import { historyRouterAdapter, setBlockErrorVisibility, setBlockEditorMode, staticRouterAdapter, buildSeoTags } from '@fayz-ai/core';
4
4
  import { createMockShopProvider } from '@fayz-ai/shop/mock';
@@ -18,6 +18,26 @@ export interface CartLine {
18
18
  imageUrl: string | null;
19
19
  /** inventoryCount at add time — clamps quantity */
20
20
  maxQuantity: number;
21
+ /**
22
+ * What the carrier needs to price a box, copied at add time from the VARIANT
23
+ * when there is one and the product otherwise (0046: a camiseta P and a GG do
24
+ * not occupy the same box).
25
+ *
26
+ * Copied rather than re-fetched because the quote runs on every postcode
27
+ * keystroke and the cart is the only thing that knows what is in it. Lines
28
+ * persisted before FAY-1407 carry none of these and read as unmeasured, which
29
+ * is exactly what they are — the quote degrades to the store's default
30
+ * package instead of failing.
31
+ */
32
+ requiresShipping?: boolean;
33
+ weight?: number | null;
34
+ weightUnit?: string | null;
35
+ heightCm?: number | null;
36
+ widthCm?: number | null;
37
+ lengthCm?: number | null;
38
+ /** Em que embalagem da loja o lojista despacha este produto (0047). Do
39
+ * PRODUTO, nunca da variante — a variante carrega medida, não caixa. */
40
+ packageId?: string | null;
21
41
  }
22
42
  export interface CartState {
23
43
  lines: CartLine[];
@@ -78,6 +98,14 @@ export declare const selectDiscountTotal: (s: Pick<CartState, "lines" | "discoun
78
98
  * called from several screens; components that render the value subscribe to
79
99
  * useDeliveryStore themselves so a fresh quote re-renders them.
80
100
  */
101
+ /**
102
+ * Whether anything in this cart travels.
103
+ *
104
+ * A line added before FAY-1407 has no flag and counts as physical: a cart of
105
+ * real goods that suddenly ships for free is a worse failure than a download
106
+ * that shows a delivery box.
107
+ */
108
+ export declare const selectRequiresShipping: (s: Pick<CartState, "lines">) => boolean;
81
109
  export declare const selectShipping: (s: Pick<CartState, "lines">, cfg: ResolvedStorefrontConfig) => number;
82
110
  export declare const selectTotal: (s: Pick<CartState, "lines" | "discountPercent">, cfg: ResolvedStorefrontConfig) => number;
83
111
  //# sourceMappingURL=cart.store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cart.store.d.ts","sourceRoot":"","sources":["../../src/stores/cart.store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAA;AAElE,OAAO,EAKL,KAAK,sBAAsB,EAC5B,MAAM,yBAAyB,CAAA;AAEhC,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB;;mEAE+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,OAAO,EAAE,sBAAsB,CAAA;IAC/B,YAAY,EAAE,MAAM,CAAA;IACpB,SA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,MACc,CAAA;AAE3E,eAAO,MAAM,mBAAmB,GAAI,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,iBAAiB,CAAC,KAAG,MAC3B,CAAA;AAE3D;;;;;;;;;;;;;;;GAeG;AACH;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GAAI,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,KAAG,OAClB,CAAA;AAEnD,eAAO,MAAM,cAAc,GACzB,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,EAC3B,KAAK,wBAAwB,KAC5B,MAaF,CAAA;AAED,eAAO,MAAM,WAAW,GACtB,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,iBAAiB,CAAC,EAC/C,KAAK,wBAAwB,KAC5B,MAC8E,CAAA"}
@@ -24,6 +24,15 @@ export interface DeliveryState {
24
24
  selectedZoneId: string | null;
25
25
  status: DeliveryStatus;
26
26
  error: string | null;
27
+ /**
28
+ * The name of the exclusion zone covering this CEP, when the store REFUSES the
29
+ * region (0048). Null when it does not.
30
+ *
31
+ * Carried as a separate field rather than a fourth status because every
32
+ * consumer already treats `unserved` as "no delivery here" and that is exactly
33
+ * what this is — the field only lets the message say WHY.
34
+ */
35
+ refusedZone: string | null;
27
36
  /** Look the CEP up and quote it. `subtotal` decides free-above thresholds. */
28
37
  resolve: (postalCode: string, subtotal: number) => Promise<void>;
29
38
  selectZone: (zoneId: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"delivery.store.d.ts","sourceRoot":"","sources":["../../src/stores/delivery.store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyC,KAAK,aAAa,EAAE,MAAM,eAAe,CAAA;AAEzF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAE9D;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAA;AAEj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E,mBAAmB,EAAE,CAAA;IAC9B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,MAAM,EAAE,cAAc,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB;;;;;;;OAOG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAE1B,8EAA8E;IAC9E,OAAO,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAChE,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAYD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;EA8G5B,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGvF;AAED,eAAO,MAAM,oBAAoB,GAC/B,OAAO,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,gBAAgB,GAAG,QAAQ,CAAC,EACnE,UAAU,MAAM,KACf,MAAM,GAAG,IAIX,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/views/CheckoutPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AA2GlD,wBAAgB,YAAY,sBA2kB3B"}
1
+ {"version":3,"file":"CheckoutPage.d.ts","sourceRoot":"","sources":["../../src/views/CheckoutPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAwHlD,wBAAgB,YAAY,sBAwhC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"MyPurchasesPage.d.ts","sourceRoot":"","sources":["../../src/views/MyPurchasesPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAqSvC,wBAAgB,eAAe,sBA2B9B"}
1
+ {"version":3,"file":"MyPurchasesPage.d.ts","sourceRoot":"","sources":["../../src/views/MyPurchasesPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AA4UvC,wBAAgB,eAAe,sBA0B9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"OrderConfirmationPage.d.ts","sourceRoot":"","sources":["../../src/views/OrderConfirmationPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAoDlD,wBAAgB,qBAAqB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,qBAyIrE"}
1
+ {"version":3,"file":"OrderConfirmationPage.d.ts","sourceRoot":"","sources":["../../src/views/OrderConfirmationPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AA8BlD,wBAAgB,qBAAqB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,qBAuPrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/workflows/checkout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGzF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE3D,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ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,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,cAAc,GAAG,iBAAiB,CAAC,CAAA;IACnE,OAAO,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,CAAA;IACpD,QAAQ,EAAE,0BAA0B,CAAA;IACpC,OAAO,CAAC,EAAE,yBAAyB,CAAA;IACnC,8EAA8E;IAC9E,eAAe,CAAC,EAAE,oBAAoB,CAAA;IACtC,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,KAAK,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB;AAoCD;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,EACzC,MAAM,EACN,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,OAAO,EACP,eAAe,EACf,aAAa,EACb,QAAgB,GACjB,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAiGjE"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "fayz": {
4
4
  "status": "beta"
5
5
  },
6
- "version": "0.10.0",
6
+ "version": "0.11.0",
7
7
  "description": "Fayz SDK storefront kit — Shopify-style customer-facing ecommerce template components",
8
8
  "type": "module",
9
9
  "sideEffects": false,
@@ -40,12 +40,12 @@
40
40
  "dist"
41
41
  ],
42
42
  "dependencies": {
43
- "@fayz-ai/auth": "^0.10.0",
44
- "@fayz-ai/core": "^0.10.0",
45
- "@fayz-ai/plugin-auth": "^0.9.1",
46
- "@fayz-ai/sdk": "^0.10.0",
47
- "@fayz-ai/shop": "^0.10.0",
48
- "@fayz-ai/ui": "^0.10.0"
43
+ "@fayz-ai/auth": "^0.11.0",
44
+ "@fayz-ai/core": "^0.11.0",
45
+ "@fayz-ai/plugin-auth": "^0.10.0",
46
+ "@fayz-ai/sdk": "^0.11.0",
47
+ "@fayz-ai/shop": "^0.11.0",
48
+ "@fayz-ai/ui": "^0.11.0"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": "^18.0.0 || ^19.0.0",