@doswiftly/cli 0.2.6 → 1.0.1

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/CHANGELOG.md +650 -0
  2. package/dist/commands/deploy.d.ts.map +1 -1
  3. package/dist/commands/deploy.js +6 -1
  4. package/dist/commands/deploy.js.map +1 -1
  5. package/package.json +1 -1
  6. package/templates/storefront-nextjs-shadcn/.github/workflows/build-template.yml +2 -1
  7. package/templates/storefront-nextjs-shadcn/.github/workflows/deploy.yml +5 -1
  8. package/templates/storefront-nextjs-shadcn/.github/workflows/preview.yml +3 -1
  9. package/templates/storefront-nextjs-shadcn/app/[locale]/account/addresses/page.tsx +10 -10
  10. package/templates/storefront-nextjs-shadcn/app/[locale]/account/loyalty/page.tsx +1 -1
  11. package/templates/storefront-nextjs-shadcn/app/[locale]/account/orders/[id]/page.tsx +9 -9
  12. package/templates/storefront-nextjs-shadcn/app/[locale]/account/orders/[id]/tracking/page.tsx +1 -1
  13. package/templates/storefront-nextjs-shadcn/app/[locale]/account/orders/page.tsx +2 -2
  14. package/templates/storefront-nextjs-shadcn/app/[locale]/account/settings/page.tsx +3 -3
  15. package/templates/storefront-nextjs-shadcn/app/[locale]/categories/page.tsx +1 -1
  16. package/templates/storefront-nextjs-shadcn/app/[locale]/checkout/page.tsx +74 -74
  17. package/templates/storefront-nextjs-shadcn/app/[locale]/products/[slug]/product-client.tsx +1 -1
  18. package/templates/storefront-nextjs-shadcn/app/[locale]/products/products-client.tsx +4 -4
  19. package/templates/storefront-nextjs-shadcn/app/api/auth/whoami/route.ts +6 -0
  20. package/templates/storefront-nextjs-shadcn/components/account/address-form.tsx +43 -43
  21. package/templates/storefront-nextjs-shadcn/components/account/address-list.tsx +9 -9
  22. package/templates/storefront-nextjs-shadcn/components/account/customer-info.fragment.graphql +5 -5
  23. package/templates/storefront-nextjs-shadcn/components/account/order-details.tsx +8 -8
  24. package/templates/storefront-nextjs-shadcn/components/account/order-history.tsx +2 -2
  25. package/templates/storefront-nextjs-shadcn/components/account/order-summary.fragment.graphql +15 -13
  26. package/templates/storefront-nextjs-shadcn/components/cart/cart-line.fragment.graphql +6 -6
  27. package/templates/storefront-nextjs-shadcn/components/discount/discount-code-input.tsx +10 -10
  28. package/templates/storefront-nextjs-shadcn/components/gift-card/gift-card-input.tsx +9 -9
  29. package/templates/storefront-nextjs-shadcn/components/order/delivery-estimate.tsx +2 -2
  30. package/templates/storefront-nextjs-shadcn/components/product/product-card.tsx +1 -1
  31. package/templates/storefront-nextjs-shadcn/components/seo/product-json-ld.ts +1 -1
  32. package/templates/storefront-nextjs-shadcn/hooks/use-auth-sync.ts +43 -25
  33. package/templates/storefront-nextjs-shadcn/hooks/use-cart-actions.ts +1 -1
  34. package/templates/storefront-nextjs-shadcn/hooks/use-cart-sync.ts +14 -14
  35. package/templates/storefront-nextjs-shadcn/lib/graphql/hooks.ts +101 -112
  36. package/templates/storefront-nextjs-shadcn/lib/graphql/query-keys.ts +2 -2
  37. package/templates/storefront-nextjs-shadcn/lib/graphql/server.ts +29 -12
  38. package/templates/storefront-nextjs-shadcn/lib/graphql/types.ts +1 -1
  39. package/templates/storefront-nextjs-shadcn/messages/en.json +6 -6
  40. package/templates/storefront-nextjs-shadcn/messages/pl.json +6 -6
  41. package/templates/storefront-nextjs-shadcn/package.json +4 -1
  42. package/templates/storefront-nextjs-shadcn/stores/checkout-store.ts +8 -8
@@ -2,6 +2,9 @@
2
2
  "name": "{{PROJECT_NAME}}",
3
3
  "version": "0.1.0",
4
4
  "private": true,
5
+ "engines": {
6
+ "node": ">=22.0.0"
7
+ },
5
8
  "scripts": {
6
9
  "dev": "next dev",
7
10
  "build": "next build",
@@ -12,7 +15,6 @@
12
15
  "codegen:watch": "graphql-codegen --config codegen.ts --watch"
13
16
  },
14
17
  "dependencies": {
15
- "@doswiftly/storefront-operations": "{{STOREFRONT_OPS_VERSION}}",
16
18
  "@doswiftly/storefront-sdk": "^4.0.0",
17
19
  "@tanstack/react-query": "^5.62.0",
18
20
  "next": "^16.2.3",
@@ -40,6 +42,7 @@
40
42
  "@hookform/resolvers": "^5.2.0"
41
43
  },
42
44
  "devDependencies": {
45
+ "@doswiftly/storefront-operations": "{{STOREFRONT_OPS_VERSION}}",
43
46
  "@graphql-codegen/cli": "^5.0.3",
44
47
  "@graphql-codegen/client-preset": "^4.5.1",
45
48
  "@graphql-typed-document-node/core": "^3.2.0",
@@ -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: '',