@doswiftly/cli 0.2.6 → 1.0.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 (30) hide show
  1. package/CHANGELOG.md +639 -0
  2. package/package.json +1 -1
  3. package/templates/storefront-nextjs-shadcn/app/[locale]/account/addresses/page.tsx +10 -10
  4. package/templates/storefront-nextjs-shadcn/app/[locale]/account/orders/[id]/page.tsx +9 -9
  5. package/templates/storefront-nextjs-shadcn/app/[locale]/account/orders/[id]/tracking/page.tsx +1 -1
  6. package/templates/storefront-nextjs-shadcn/app/[locale]/account/orders/page.tsx +2 -2
  7. package/templates/storefront-nextjs-shadcn/app/[locale]/account/settings/page.tsx +3 -3
  8. package/templates/storefront-nextjs-shadcn/app/[locale]/checkout/page.tsx +41 -41
  9. package/templates/storefront-nextjs-shadcn/app/[locale]/products/[slug]/product-client.tsx +1 -1
  10. package/templates/storefront-nextjs-shadcn/app/api/auth/whoami/route.ts +6 -0
  11. package/templates/storefront-nextjs-shadcn/components/account/address-form.tsx +43 -43
  12. package/templates/storefront-nextjs-shadcn/components/account/address-list.tsx +9 -9
  13. package/templates/storefront-nextjs-shadcn/components/account/customer-info.fragment.graphql +5 -5
  14. package/templates/storefront-nextjs-shadcn/components/account/order-details.tsx +8 -8
  15. package/templates/storefront-nextjs-shadcn/components/account/order-history.tsx +2 -2
  16. package/templates/storefront-nextjs-shadcn/components/account/order-summary.fragment.graphql +15 -13
  17. package/templates/storefront-nextjs-shadcn/components/cart/cart-line.fragment.graphql +6 -6
  18. package/templates/storefront-nextjs-shadcn/components/discount/discount-code-input.tsx +10 -10
  19. package/templates/storefront-nextjs-shadcn/components/gift-card/gift-card-input.tsx +9 -9
  20. package/templates/storefront-nextjs-shadcn/components/order/delivery-estimate.tsx +2 -2
  21. package/templates/storefront-nextjs-shadcn/components/product/product-card.tsx +1 -1
  22. package/templates/storefront-nextjs-shadcn/components/seo/product-json-ld.ts +1 -1
  23. package/templates/storefront-nextjs-shadcn/hooks/use-auth-sync.ts +43 -25
  24. package/templates/storefront-nextjs-shadcn/hooks/use-cart-actions.ts +1 -1
  25. package/templates/storefront-nextjs-shadcn/hooks/use-cart-sync.ts +14 -14
  26. package/templates/storefront-nextjs-shadcn/lib/graphql/hooks.ts +24 -35
  27. package/templates/storefront-nextjs-shadcn/lib/graphql/server.ts +21 -4
  28. package/templates/storefront-nextjs-shadcn/messages/en.json +6 -6
  29. package/templates/storefront-nextjs-shadcn/messages/pl.json +6 -6
  30. package/templates/storefront-nextjs-shadcn/stores/checkout-store.ts +8 -8
@@ -241,15 +241,15 @@
241
241
  "firstName": "Imię",
242
242
  "lastName": "Nazwisko",
243
243
  "company": "Firma",
244
- "address1": "Adres",
245
- "address1Placeholder": "Ulica i numer",
246
- "address2": "Mieszkanie, piętro",
247
- "zip": "Kod pocztowy",
248
- "zipPlaceholder": "00-000",
244
+ "streetLine1": "Adres",
245
+ "streetLine1Placeholder": "Ulica i numer",
246
+ "streetLine2": "Mieszkanie, piętro",
247
+ "postalCode": "Kod pocztowy",
248
+ "postalCodePlaceholder": "00-000",
249
249
  "city": "Miasto",
250
250
  "country": "Kraj",
251
251
  "countryPlaceholder": "Wybierz kraj",
252
- "province": "Województwo",
252
+ "state": "Województwo",
253
253
  "phone": "Telefon"
254
254
  },
255
255
  "validation": {
@@ -8,11 +8,11 @@ import { createStoreContext } from '@doswiftly/storefront-sdk/react';
8
8
  export interface AddressForm {
9
9
  firstName: string;
10
10
  lastName: string;
11
- address1: string;
12
- address2: string;
11
+ streetLine1: string;
12
+ streetLine2: string;
13
13
  city: string;
14
- province: string;
15
- zip: string;
14
+ state: string;
15
+ postalCode: string;
16
16
  country: string;
17
17
  phone: string;
18
18
  company: string;
@@ -68,11 +68,11 @@ export interface CheckoutState {
68
68
  const emptyAddress: AddressForm = {
69
69
  firstName: '',
70
70
  lastName: '',
71
- address1: '',
72
- address2: '',
71
+ streetLine1: '',
72
+ streetLine2: '',
73
73
  city: '',
74
- province: '',
75
- zip: '',
74
+ state: '',
75
+ postalCode: '',
76
76
  country: 'PL',
77
77
  phone: '',
78
78
  company: '',