@akinon/projectzero 1.99.0-rc.70 → 1.99.0-snapshot-ZERO-3640-20250919140314

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 (64) hide show
  1. package/CHANGELOG.md +5 -240
  2. package/app-template/.env.example +0 -1
  3. package/app-template/CHANGELOG.md +300 -5065
  4. package/app-template/README.md +1 -25
  5. package/app-template/package.json +19 -21
  6. package/app-template/public/locales/en/common.json +1 -48
  7. package/app-template/public/locales/tr/common.json +1 -48
  8. package/app-template/src/app/[commerce]/[locale]/[currency]/basket/page.tsx +82 -9
  9. package/app-template/src/app/[commerce]/[locale]/[currency]/category/[pk]/page.tsx +4 -17
  10. package/app-template/src/app/[commerce]/[locale]/[currency]/flat-page/[pk]/page.tsx +1 -12
  11. package/app-template/src/app/[commerce]/[locale]/[currency]/group-product/[pk]/page.tsx +11 -29
  12. package/app-template/src/app/[commerce]/[locale]/[currency]/landing-page/[pk]/page.tsx +1 -12
  13. package/app-template/src/app/[commerce]/[locale]/[currency]/product/[pk]/page.tsx +10 -28
  14. package/app-template/src/app/[commerce]/[locale]/[currency]/special-page/[pk]/page.tsx +1 -12
  15. package/app-template/src/app/api/form/[...id]/route.ts +7 -1
  16. package/app-template/src/assets/fonts/pz-icon.css +0 -3
  17. package/app-template/src/components/__tests__/link.test.tsx +0 -2
  18. package/app-template/src/components/accordion.tsx +19 -22
  19. package/app-template/src/components/currency-select.tsx +0 -1
  20. package/app-template/src/components/file-input.tsx +7 -27
  21. package/app-template/src/components/generate-form-fields.tsx +4 -43
  22. package/app-template/src/components/input.tsx +2 -9
  23. package/app-template/src/components/modal.tsx +16 -32
  24. package/app-template/src/components/pagination.tsx +0 -1
  25. package/app-template/src/components/select.tsx +26 -38
  26. package/app-template/src/components/types/index.ts +1 -25
  27. package/app-template/src/hooks/index.ts +0 -2
  28. package/app-template/src/plugins.js +1 -3
  29. package/app-template/src/settings.js +2 -8
  30. package/app-template/src/types/index.ts +3 -74
  31. package/app-template/src/views/account/address-form.tsx +4 -8
  32. package/app-template/src/views/account/contact-form.tsx +1 -1
  33. package/app-template/src/views/account/content-header.tsx +2 -2
  34. package/app-template/src/views/account/faq/faq-tabs.tsx +2 -8
  35. package/app-template/src/views/basket/basket-item.tsx +14 -22
  36. package/app-template/src/views/basket/summary.tsx +7 -10
  37. package/app-template/src/views/breadcrumb.tsx +2 -2
  38. package/app-template/src/views/category/category-info.tsx +0 -1
  39. package/app-template/src/views/category/filters/index.tsx +1 -1
  40. package/app-template/src/views/guest-login/index.tsx +1 -6
  41. package/app-template/src/views/header/action-menu.tsx +1 -1
  42. package/app-template/src/views/header/search/index.tsx +5 -17
  43. package/app-template/src/views/login/index.tsx +10 -11
  44. package/app-template/src/views/otp-login/index.tsx +6 -11
  45. package/app-template/src/views/product/product-info.tsx +263 -62
  46. package/app-template/src/views/product/slider.tsx +73 -86
  47. package/app-template/src/views/register/index.tsx +11 -15
  48. package/app-template/src/widgets/footer-menu.tsx +2 -6
  49. package/commands/plugins.ts +16 -63
  50. package/dist/commands/plugins.js +16 -57
  51. package/package.json +1 -1
  52. package/app-template/.github/instructions/account.instructions.md +0 -749
  53. package/app-template/.github/instructions/edge-cases.instructions.md +0 -73
  54. package/app-template/src/app/[commerce]/[locale]/[currency]/product/[pk]/loading.tsx +0 -67
  55. package/app-template/src/app/api/image-proxy/route.ts +0 -1
  56. package/app-template/src/app/api/similar-product-list/route.ts +0 -1
  57. package/app-template/src/app/api/similar-products/route.ts +0 -1
  58. package/app-template/src/hooks/use-product-cart.ts +0 -77
  59. package/app-template/src/hooks/use-stock-alert.ts +0 -74
  60. package/app-template/src/utils/variant-validation.ts +0 -41
  61. package/app-template/src/views/basket/basket-content.tsx +0 -106
  62. package/app-template/src/views/product/product-actions.tsx +0 -165
  63. package/app-template/src/views/product/product-share.tsx +0 -56
  64. package/app-template/src/views/product/product-variants.tsx +0 -26
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import { Variant } from '@theme/views/product';
3
- import { VariantType } from '@akinon/next/types';
4
-
5
- interface ProductVariantsProps {
6
- variants: VariantType[];
7
- onVariantChange: () => void;
8
- }
9
-
10
- export const ProductVariants: React.FC<ProductVariantsProps> = ({
11
- variants,
12
- onVariantChange
13
- }) => {
14
- return (
15
- <div className="flex flex-col">
16
- {variants.map((variant) => (
17
- <Variant
18
- key={variant.attribute_key}
19
- {...variant}
20
- className="items-center mt-8"
21
- onChange={onVariantChange}
22
- />
23
- ))}
24
- </div>
25
- );
26
- };