@fayz-ai/sdk 0.10.1 → 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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/automations.d.ts +94 -0
  3. package/dist/automations.d.ts.map +1 -0
  4. package/dist/automations.js +61 -0
  5. package/dist/automations.js.map +1 -0
  6. package/dist/{chunk-7UXTYT6I.js → chunk-5D2B7R3U.js} +473 -31
  7. package/dist/chunk-5D2B7R3U.js.map +1 -0
  8. package/dist/chunk-U7SC2YFQ.js +135 -0
  9. package/dist/chunk-U7SC2YFQ.js.map +1 -0
  10. package/dist/events.d.ts +48 -0
  11. package/dist/events.d.ts.map +1 -0
  12. package/dist/events.js +101 -0
  13. package/dist/events.js.map +1 -0
  14. package/dist/index.d.ts +8 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +307 -3
  17. package/dist/index.js.map +1 -1
  18. package/dist/lib/boot-skeleton.d.ts +20 -0
  19. package/dist/lib/boot-skeleton.d.ts.map +1 -0
  20. package/dist/lib/connector-oauth.d.ts +118 -0
  21. package/dist/lib/connector-oauth.d.ts.map +1 -0
  22. package/dist/lib/credentials.d.ts +98 -0
  23. package/dist/lib/credentials.d.ts.map +1 -0
  24. package/dist/lib/dedupe-fetch.d.ts +26 -0
  25. package/dist/lib/dedupe-fetch.d.ts.map +1 -0
  26. package/dist/lib/platform-url.d.ts +15 -0
  27. package/dist/lib/platform-url.d.ts.map +1 -0
  28. package/dist/lib/runtime-token.d.ts +104 -0
  29. package/dist/lib/runtime-token.d.ts.map +1 -0
  30. package/dist/release-channels.js +1 -1
  31. package/dist/release-channels.json +93 -93
  32. package/dist/shop.d.ts +377 -11
  33. package/dist/shop.d.ts.map +1 -1
  34. package/dist/shop.js +1 -1
  35. package/dist/vite.d.ts +9 -0
  36. package/dist/vite.d.ts.map +1 -1
  37. package/dist/vite.js +104 -47
  38. package/dist/vite.js.map +1 -1
  39. package/package.json +9 -1
  40. package/dist/chunk-7UXTYT6I.js.map +0 -1
  41. package/dist/chunk-KVMRRT3O.js +0 -135
  42. package/dist/chunk-KVMRRT3O.js.map +0 -1
package/dist/shop.d.ts CHANGED
@@ -2,6 +2,18 @@ export interface FayzShopProviderOptions {
2
2
  supabaseUrl?: string;
3
3
  publishableKey?: string;
4
4
  storeId?: string;
5
+ /**
6
+ * Where the pool's edge functions live. Defaults to `${supabaseUrl}/functions/v1`,
7
+ * which is right in every deployed environment.
8
+ *
9
+ * It exists for the one case that default cannot serve: a function under
10
+ * development runs on the developer's machine (`supabase functions serve`),
11
+ * and it has to be the LOCAL copy that runs, because a deployed function
12
+ * cannot reach a platform API on localhost — and tunnelling the credential
13
+ * broker onto the public internet to work around that is not a trade anyone
14
+ * should make for a dev loop.
15
+ */
16
+ functionsUrl?: string;
5
17
  apiBaseUrl?: string;
6
18
  projectId?: string;
7
19
  mode?: 'broker' | 'supabase';
@@ -24,6 +36,122 @@ export interface FayzShopProviderOptions {
24
36
  */
25
37
  type AccessTokenResolver = () => string | null | undefined;
26
38
  export declare function setShopAccessTokenResolver(resolver: AccessTokenResolver | null): void;
39
+ /**
40
+ * Declared here rather than imported, like ShippingQuoteOption below: this
41
+ * package is the storefront's only dependency and must not drag @fayz-ai/shop
42
+ * into a published-mode install. The shape is asserted against the real
43
+ * provider by the fleet typecheck.
44
+ */
45
+ interface PaymentChargeResult {
46
+ state: 'pending' | 'paid' | 'refunded' | 'failed' | 'unopened';
47
+ orderId: string;
48
+ reference?: string | null;
49
+ charge?: {
50
+ emv: string;
51
+ qrcodeBase64: string | null;
52
+ expiresAt: string;
53
+ } | null;
54
+ providerStatus?: string | null;
55
+ }
56
+ /** Same reason as PaymentChargeResult: declared, not imported. */
57
+ interface CheckoutSessionInput {
58
+ items: Array<{
59
+ productId: string;
60
+ variantId?: string | null;
61
+ quantity: number;
62
+ optionsLabel?: string | null;
63
+ }>;
64
+ customer: {
65
+ name?: string | null;
66
+ email: string;
67
+ document?: string | null;
68
+ };
69
+ shippingAddress?: Record<string, unknown> | null;
70
+ discountCode?: string | null;
71
+ paymentMethod?: string;
72
+ }
73
+ interface CheckoutSession {
74
+ sessionId: string;
75
+ total: number;
76
+ charge: {
77
+ emv: string;
78
+ qrcodeBase64: string | null;
79
+ expiresAt: string;
80
+ } | null;
81
+ state: 'open' | 'paid' | 'failed' | 'expired';
82
+ }
83
+ interface CheckoutSettlement {
84
+ state: 'open' | 'paid' | 'failed' | 'expired' | 'unknown';
85
+ orderId?: string | null;
86
+ reason?: string | null;
87
+ }
88
+ /** The subset of `ShippingQuoteOption` this package produces, declared locally
89
+ * because @fayz-ai/sdk depends on nothing — see quoteShipping. */
90
+ interface ShippingQuoteOption {
91
+ zoneId: string;
92
+ name: string;
93
+ carrier?: string;
94
+ rate: number;
95
+ baseRate: number;
96
+ freeAbove?: number | null;
97
+ etaMinDays?: number;
98
+ etaMaxDays?: number;
99
+ free: boolean;
100
+ }
101
+ /**
102
+ * What is in the cart, for the box the carrier prices.
103
+ *
104
+ * A resolver rather than an argument because the call site that matters —
105
+ * `delivery.store.resolve(postalCode, subtotal)` — has been passing a postcode
106
+ * and a subtotal since before any carrier existed, and every storefront in the
107
+ * wild calls it that way. Wiring it here is done once by the runtime, exactly
108
+ * like setShopAccessTokenResolver above.
109
+ *
110
+ * Unset is a supported state: the quote function falls back to the store's
111
+ * package defaults, which is what makes the first quote work for a catalogue
112
+ * nobody has measured yet.
113
+ */
114
+ export interface ShippingQuoteItem {
115
+ quantity: number;
116
+ weight?: number | null;
117
+ /** As the merchant typed it ('kg', 'g', 'lb'). The function converts; until
118
+ * FAY-1407 it assumed kg, so a catalogue measured in grams quoted parcels a
119
+ * thousand times too heavy. */
120
+ weightUnit?: string | null;
121
+ /** Centimetres. The column names carry the unit, so there is no second one. */
122
+ height?: number | null;
123
+ width?: number | null;
124
+ length?: number | null;
125
+ /**
126
+ * A embalagem que o LOJISTA escolheu para este produto (0047). Quando vem
127
+ * preenchida ela manda: a escolha dele não é uma sugestão para o algoritmo
128
+ * que procura a menor caixa em que o carrinho cabe.
129
+ */
130
+ packageId?: string | null;
131
+ /** False keeps the line out of the box entirely — and a cart where every
132
+ * line is false never reaches a carrier. */
133
+ isPhysical?: boolean;
134
+ productId?: string;
135
+ variantId?: string;
136
+ name?: string;
137
+ sku?: string | null;
138
+ }
139
+ type ShippingItemsResolver = () => ShippingQuoteItem[];
140
+ export declare function setShopShippingItemsResolver(resolver: ShippingItemsResolver | null): void;
141
+ /**
142
+ * "A loja quer que a gente pergunte a um gateway?"
143
+ *
144
+ * A resposta é do LOJISTA (`StoreSettings.carrierQuotes`) e vive no navegador,
145
+ * que já carrega a política no boot. Este pacote não a lê sozinho — daí o mesmo
146
+ * encaixe do carrinho: quem monta a vitrine registra o resolvedor.
147
+ *
148
+ * `undefined` = não decidido, e não decidido pergunta (é como sempre foi).
149
+ * `false` é a escolha explícita de quem calcula pelas próprias faixas: enquanto
150
+ * ninguém lia isto, marcar "eu mesmo calculo" não mudava NADA no checkout, e a
151
+ * cotação da transportadora continuava ganhando das faixas dela.
152
+ */
153
+ type CarrierQuotesResolver = () => boolean | undefined;
154
+ export declare function setShopCarrierQuotesResolver(resolver: CarrierQuotesResolver | null): void;
27
155
  export interface FayzShopProductMetadataOverlay {
28
156
  sku?: string | null;
29
157
  slug?: string | null;
@@ -109,6 +237,9 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
109
237
  isPhysical: boolean;
110
238
  weight: number | null;
111
239
  weightUnit: string;
240
+ heightCm: number | null;
241
+ widthCm: number | null;
242
+ lengthCm: number | null;
112
243
  createdAt: string;
113
244
  updatedAt: string;
114
245
  }[]>;
@@ -140,6 +271,9 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
140
271
  isPhysical: boolean;
141
272
  weight: number | null;
142
273
  weightUnit: string;
274
+ heightCm: number | null;
275
+ widthCm: number | null;
276
+ lengthCm: number | null;
143
277
  createdAt: string;
144
278
  updatedAt: string;
145
279
  } | null>;
@@ -206,6 +340,9 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
206
340
  isPhysical: boolean;
207
341
  weight: number | null;
208
342
  weightUnit: string;
343
+ heightCm: number | null;
344
+ widthCm: number | null;
345
+ lengthCm: number | null;
209
346
  createdAt: string;
210
347
  updatedAt: string;
211
348
  }[]>;
@@ -237,6 +374,9 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
237
374
  isPhysical: boolean;
238
375
  weight: number | null;
239
376
  weightUnit: string;
377
+ heightCm: number | null;
378
+ widthCm: number | null;
379
+ lengthCm: number | null;
240
380
  createdAt: string;
241
381
  updatedAt: string;
242
382
  } | null>;
@@ -269,6 +409,11 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
269
409
  position: number;
270
410
  status: "active" | "archived";
271
411
  imageId: string | null;
412
+ weight: number | null;
413
+ weightUnit: string | null;
414
+ heightCm: number | null;
415
+ widthCm: number | null;
416
+ lengthCm: number | null;
272
417
  }[];
273
418
  }>;
274
419
  listCategories(): Promise<{
@@ -317,6 +462,16 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
317
462
  total: number;
318
463
  imageUrl: string | null;
319
464
  }[];
465
+ shipments: {
466
+ id: string;
467
+ status: string;
468
+ carrier: string | null;
469
+ trackingCode: string | null;
470
+ trackingUrl: string | null;
471
+ shippedAt: string | null;
472
+ estimatedDeliveryAt: string | null;
473
+ deliveredAt: string | null;
474
+ }[];
320
475
  createdAt: string;
321
476
  updatedAt: string;
322
477
  }[]>;
@@ -352,6 +507,16 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
352
507
  total: number;
353
508
  imageUrl: string | null;
354
509
  }[];
510
+ shipments: {
511
+ id: string;
512
+ status: string;
513
+ carrier: string | null;
514
+ trackingCode: string | null;
515
+ trackingUrl: string | null;
516
+ shippedAt: string | null;
517
+ estimatedDeliveryAt: string | null;
518
+ deliveredAt: string | null;
519
+ }[];
355
520
  createdAt: string;
356
521
  updatedAt: string;
357
522
  } | null>;
@@ -387,9 +552,154 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
387
552
  total: number;
388
553
  imageUrl: string | null;
389
554
  }[];
555
+ shipments: {
556
+ id: string;
557
+ status: string;
558
+ carrier: string | null;
559
+ trackingCode: string | null;
560
+ trackingUrl: string | null;
561
+ shippedAt: string | null;
562
+ estimatedDeliveryAt: string | null;
563
+ deliveredAt: string | null;
564
+ }[];
390
565
  createdAt: string;
391
566
  updatedAt: string;
392
567
  } | null>;
568
+ /**
569
+ * Opens the charge, or reports what the acquirer says about it.
570
+ *
571
+ * Both go through the pool's own functions, for the same reason
572
+ * `quoteFromCarrier` does: the credential is redeemed server-side and the
573
+ * storefront never learns the acquirer's URL, let alone its token. Neither
574
+ * call carries an amount — the function reads it off the order row, so a
575
+ * tampered body buys nothing.
576
+ *
577
+ * A store with no acquirer connected answers 404, which surfaces as
578
+ * `unopened`: the page then simply shows the order as pending, which is the
579
+ * behaviour every store had before this existed.
580
+ */
581
+ openCharge(orderId: string, method?: "pix"): Promise<PaymentChargeResult>;
582
+ paymentState(orderId: string): Promise<PaymentChargeResult>;
583
+ /**
584
+ * Open a charge for a cart that is NOT yet an order.
585
+ *
586
+ * Nothing about money leaves the browser: the function re-prices every line
587
+ * from the catalogue, so the total that comes back is the store's, not the
588
+ * caller's. `sessionId` is the only handle, and it neither reads nor pays on
589
+ * its own — `settleCheckoutSession` is what turns it into an order, and only
590
+ * after the acquirer says the money is in.
591
+ */
592
+ openCheckoutSession(input: CheckoutSessionInput): Promise<CheckoutSession>;
593
+ /**
594
+ * Ask whether the money landed. Called on a timer, so a network blip must
595
+ * read as "still waiting" (`unknown`) and never as a payment that failed —
596
+ * one wrong `failed` here throws away a cart the buyer already paid for.
597
+ */
598
+ settleCheckoutSession(sessionId: string): Promise<CheckoutSettlement>;
599
+ /**
600
+ * The merchant's policy, as the shopper's browser is allowed to see it.
601
+ *
602
+ * Without this the settings screens wrote to a table nobody read on this
603
+ * side: StorefrontConfigHost skips the overlay when the provider has no
604
+ * such method, so the checkout kept offering whatever the app declared at
605
+ * build time — a store that turned boleto off still showed boleto.
606
+ *
607
+ * Through the RPC, never the table: plg_shop_settings is closed to anon on
608
+ * purpose and shop_store_settings() is the narrow window (storefront
609
+ * columns only, published stores only). A failure answers null, which is
610
+ * "no policy" — the declared config stands and the store still sells.
611
+ */
612
+ getPublicStoreSettings(): Promise<{
613
+ currency: string;
614
+ locale: string;
615
+ showOutOfStock: boolean | undefined;
616
+ paymentMethods: string[] | undefined;
617
+ paymentProvider: string;
618
+ guestCheckout: boolean | undefined;
619
+ requireConfirmedEmail: boolean | undefined;
620
+ marketingOptIn: boolean | undefined;
621
+ discountsEnabled: boolean | undefined;
622
+ checkoutFields: object | undefined;
623
+ carrierQuotes: boolean | undefined;
624
+ } | null>;
625
+ /**
626
+ * Dispatch by hand.
627
+ *
628
+ * All three are SECURITY DEFINER RPCs that check store membership
629
+ * themselves — the browser cannot ship someone else's order by holding its
630
+ * id, which is why these are not table writes.
631
+ */
632
+ validateDiscountCode(code: string, subtotal?: number): Promise<{
633
+ valid: boolean;
634
+ code: string | null;
635
+ type: "percentage" | "fixed_amount" | null;
636
+ value: number;
637
+ reason: string | undefined;
638
+ }>;
639
+ cancelOrder(orderId: string, reason?: string): Promise<{
640
+ id: string;
641
+ tenantId: string;
642
+ orderNumber: number;
643
+ status: FayzShopOrderStatus;
644
+ financialStatus: FayzShopFinancialStatus;
645
+ fulfillmentStatus: FayzShopFulfillmentStatus;
646
+ currency: string;
647
+ subtotal: number;
648
+ taxTotal: number;
649
+ discountTotal: number;
650
+ shippingTotal: number;
651
+ total: number;
652
+ customerId: string | null;
653
+ customerName: string | null;
654
+ customerEmail: string | null;
655
+ discountCode: string | null;
656
+ notes: string | null;
657
+ shippingAddress: Record<string, string | undefined> | null;
658
+ paymentMethodKind: string | null;
659
+ paidAt: string | null;
660
+ items: {
661
+ id: string;
662
+ orderId: string;
663
+ productId: string | null;
664
+ name: string;
665
+ sku: string | null;
666
+ quantity: number;
667
+ unitPrice: number;
668
+ total: number;
669
+ imageUrl: string | null;
670
+ }[];
671
+ shipments: {
672
+ id: string;
673
+ status: string;
674
+ carrier: string | null;
675
+ trackingCode: string | null;
676
+ trackingUrl: string | null;
677
+ shippedAt: string | null;
678
+ estimatedDeliveryAt: string | null;
679
+ deliveredAt: string | null;
680
+ }[];
681
+ createdAt: string;
682
+ updatedAt: string;
683
+ } | null>;
684
+ createFulfillment(input: {
685
+ orderId: string;
686
+ carrier?: string;
687
+ trackingCode?: string;
688
+ locationId?: string;
689
+ notes?: string;
690
+ items?: Array<{
691
+ orderItemId: string;
692
+ quantity: number;
693
+ }>;
694
+ }): Promise<string>;
695
+ shipFulfillment(id: string, input: {
696
+ trackingCode?: string;
697
+ trackingUrl?: string;
698
+ carrier?: string;
699
+ }): Promise<void>;
700
+ /** Chegou. Só o lojista sabe disso — nenhum provedor nos avisa hoje. */
701
+ deliverFulfillment(id: string, deliveredAt?: string): Promise<void>;
702
+ cancelFulfillment(id: string, note?: string): Promise<void>;
393
703
  createOrder(input: {
394
704
  customerId?: string;
395
705
  customerName?: string;
@@ -439,6 +749,16 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
439
749
  total: number;
440
750
  imageUrl: string | null;
441
751
  }[];
752
+ shipments: {
753
+ id: string;
754
+ status: string;
755
+ carrier: string | null;
756
+ trackingCode: string | null;
757
+ trackingUrl: string | null;
758
+ shippedAt: string | null;
759
+ estimatedDeliveryAt: string | null;
760
+ deliveredAt: string | null;
761
+ }[];
442
762
  createdAt: string;
443
763
  updatedAt: string;
444
764
  } | null>;
@@ -474,6 +794,16 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
474
794
  total: number;
475
795
  imageUrl: string | null;
476
796
  }[];
797
+ shipments: {
798
+ id: string;
799
+ status: string;
800
+ carrier: string | null;
801
+ trackingCode: string | null;
802
+ trackingUrl: string | null;
803
+ shippedAt: string | null;
804
+ estimatedDeliveryAt: string | null;
805
+ deliveredAt: string | null;
806
+ }[];
477
807
  createdAt: string;
478
808
  updatedAt: string;
479
809
  } | null>;
@@ -502,6 +832,10 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
502
832
  recipient?: string;
503
833
  phone?: string;
504
834
  label?: string;
835
+ /** CPF/CNPJ, digits only. Not an address field — it rides here because
836
+ * shop_place_order's signature cannot grow one without a DROP; 0050's
837
+ * trigger lifts it to plg_shop_orders.customer_document. */
838
+ document?: string;
505
839
  };
506
840
  paymentMethod?: "pix" | "credit_card" | "debit_card" | "boleto" | "cash" | "other";
507
841
  metadata?: Record<string, unknown>;
@@ -543,6 +877,16 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
543
877
  total: number;
544
878
  imageUrl: string | null;
545
879
  }[];
880
+ shipments: {
881
+ id: string;
882
+ status: string;
883
+ carrier: string | null;
884
+ trackingCode: string | null;
885
+ trackingUrl: string | null;
886
+ shippedAt: string | null;
887
+ estimatedDeliveryAt: string | null;
888
+ deliveredAt: string | null;
889
+ }[];
546
890
  createdAt: string;
547
891
  updatedAt: string;
548
892
  }>;
@@ -553,6 +897,7 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
553
897
  lastName: string;
554
898
  email: string | null;
555
899
  phone: string | null;
900
+ document: string | null;
556
901
  notes: string | null;
557
902
  ordersCount: number;
558
903
  totalSpent: number;
@@ -566,6 +911,7 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
566
911
  lastName: string;
567
912
  email: string | null;
568
913
  phone: string | null;
914
+ document: string | null;
569
915
  notes: string | null;
570
916
  ordersCount: number;
571
917
  totalSpent: number;
@@ -582,23 +928,41 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
582
928
  lastName: string;
583
929
  email: string | null;
584
930
  phone: string | null;
931
+ document: string | null;
585
932
  notes: string | null;
586
933
  ordersCount: number;
587
934
  totalSpent: number;
588
935
  createdAt: string;
589
936
  updatedAt: string;
590
937
  }>;
591
- quoteShipping(postalCode: string, subtotal: number): Promise<{
592
- zoneId: string;
593
- name: string;
594
- carrier: string | undefined;
595
- rate: number;
596
- baseRate: number;
597
- freeAbove: number | null;
598
- etaMinDays: number | undefined;
599
- etaMaxDays: number | undefined;
600
- free: boolean;
601
- }[]>;
938
+ /**
939
+ * The carrier first, our own zones when it does not answer in time.
940
+ *
941
+ * This is `createShippingQuoter` (packages/shop/src/providers/shipping.ts)
942
+ * by hand, and the duplication is deliberate: this package declares NO
943
+ * dependencies, which is what lets a storefront pull the client without
944
+ * dragging the admin stack in behind it. Importing the primitive for twelve
945
+ * lines would trade that for tidiness. The semantics are copied exactly and
946
+ * both are worth restating —
947
+ *
948
+ * the budget is the connector's (1s, `onFailure: 'degrade'`), because a
949
+ * shopper staring at "calculando" abandons faster than they accept a
950
+ * slightly wrong price; and
951
+ *
952
+ * an EMPTY provider answer is an ANSWER, not a failure. A carrier that
953
+ * does not serve a postcode has told us something, and falling back to
954
+ * the zones there would quote a van that does not go to São Paulo.
955
+ */
956
+ quoteShipping(postalCode: string, subtotal: number): Promise<ShippingQuoteOption[]>;
957
+ /**
958
+ * Record which option the shopper picked, server-side.
959
+ *
960
+ * It sends a SERVICE, never a price: the row it points at was written by
961
+ * the quote function minutes ago, so the worst a tampered call achieves is
962
+ * choosing a different option the carrier actually offered — which is what
963
+ * the radio buttons are for. shop_place_order reads the stored price.
964
+ */
965
+ selectShippingOption(optionId: string): Promise<boolean>;
602
966
  listCustomerAddresses(customerId: string): Promise<{
603
967
  id: string;
604
968
  label: string | undefined;
@@ -627,6 +991,7 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
627
991
  lastName: string;
628
992
  email: string | null;
629
993
  phone: string | null;
994
+ document: string | null;
630
995
  notes: string | null;
631
996
  ordersCount: number;
632
997
  totalSpent: number;
@@ -646,6 +1011,7 @@ export declare function createFayzShopProvider(options: FayzShopProviderOptions)
646
1011
  lastName: string;
647
1012
  email: string | null;
648
1013
  phone: string | null;
1014
+ document: string | null;
649
1015
  notes: string | null;
650
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C;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,SAAS,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAC;YAAC,YAAY,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KACjG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAqD6B,4BAA4B;;;;;;;;;;;;;;oBASpC,MAAM;;;;;;;;;;;;;;2BAIC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;IAa7D;;;;;;;;;;;;;;;;;OAiBG;8BAC6B,MAAM,YAAY,MAAM;IAwCxD;;;;;;;OAOG;mCACkC,MAAM;sCAcH,MAAM;;;;;;;;;;;;;;;0BA4BlB;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;uBAe3F,MAAM,SAAS;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;;;;;;;;;;;;;;uBAe7H,MAAM;4BAGD,4BAA4B;;;;;;;;;;;;;;;;;oBAWpC,MAAM;;;;;;;;;;;;;;;;;;;;EAc/B"}
package/dist/shop.js CHANGED
@@ -1,4 +1,4 @@
1
- export { FayzShopError, PRODUCT_METADATA_OVERLAY_DEPRECATION, createFayzShopProvider, resetProductMetadataOverlayDeprecationWarning, setShopAccessTokenResolver } from './chunk-7UXTYT6I.js';
1
+ export { FayzShopError, PRODUCT_METADATA_OVERLAY_DEPRECATION, createFayzShopProvider, resetProductMetadataOverlayDeprecationWarning, setShopAccessTokenResolver, setShopCarrierQuotesResolver, setShopShippingItemsResolver } from './chunk-5D2B7R3U.js';
2
2
  import './chunk-HA5O3CW7.js';
3
3
  //# sourceMappingURL=shop.js.map
4
4
  //# sourceMappingURL=shop.js.map
package/dist/vite.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import type { UserConfig, PluginOption } from 'vite';
2
+ import { type BootSkeletonOptions } from './lib/boot-skeleton';
3
+ export { BOOT_THEME_STORAGE_KEY, type BootSkeletonOptions } from './lib/boot-skeleton';
2
4
  export interface FayzViteOptions {
3
5
  /** Dev server port. */
4
6
  port?: number;
@@ -30,6 +32,13 @@ export interface FayzViteOptions {
30
32
  * resolution; any other resolve keys (and extra aliases) are merged in.
31
33
  */
32
34
  resolve?: UserConfig['resolve'];
35
+ /**
36
+ * The shell outline painted into index.html, so the wait for the entry chunk
37
+ * is not a blank page. Auto-detected from the app's dependencies; pass
38
+ * `{ surface: 'none' }` to opt out, or colors to match the app's palette on a
39
+ * first-ever visit (later visits reuse the palette the app itself stored).
40
+ */
41
+ bootSkeleton?: BootSkeletonOptions;
33
42
  }
34
43
  /**
35
44
  * Shared Vite config for Fayz dogfood apps. Resolves `@fayz-ai/*` from the local
@@ -1 +1 @@
1
- {"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../src/vite.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAgB,MAAM,MAAM,CAAA;AAiBlE,MAAM,WAAW,eAAe;IAC9B,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,+DAA+D;IAC/D,OAAO,CAAC,EAAE,YAAY,EAAE,C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