@akinon/projectzero 1.99.0-rc.69 → 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 (62) hide show
  1. package/CHANGELOG.md +5 -238
  2. package/app-template/.env.example +0 -1
  3. package/app-template/CHANGELOG.md +304 -5041
  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 -42
  7. package/app-template/public/locales/tr/common.json +1 -42
  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/assets/fonts/pz-icon.css +0 -3
  16. package/app-template/src/components/__tests__/link.test.tsx +0 -2
  17. package/app-template/src/components/accordion.tsx +19 -22
  18. package/app-template/src/components/currency-select.tsx +0 -1
  19. package/app-template/src/components/file-input.tsx +7 -27
  20. package/app-template/src/components/input.tsx +2 -9
  21. package/app-template/src/components/modal.tsx +16 -32
  22. package/app-template/src/components/pagination.tsx +0 -1
  23. package/app-template/src/components/select.tsx +26 -38
  24. package/app-template/src/components/types/index.ts +1 -25
  25. package/app-template/src/hooks/index.ts +0 -2
  26. package/app-template/src/plugins.js +1 -3
  27. package/app-template/src/settings.js +2 -8
  28. package/app-template/src/types/index.ts +3 -74
  29. package/app-template/src/views/account/address-form.tsx +4 -8
  30. package/app-template/src/views/account/contact-form.tsx +1 -1
  31. package/app-template/src/views/account/content-header.tsx +2 -2
  32. package/app-template/src/views/account/faq/faq-tabs.tsx +2 -8
  33. package/app-template/src/views/basket/basket-item.tsx +14 -22
  34. package/app-template/src/views/basket/summary.tsx +7 -10
  35. package/app-template/src/views/breadcrumb.tsx +2 -2
  36. package/app-template/src/views/category/category-info.tsx +0 -1
  37. package/app-template/src/views/category/filters/index.tsx +1 -1
  38. package/app-template/src/views/guest-login/index.tsx +1 -6
  39. package/app-template/src/views/header/action-menu.tsx +1 -1
  40. package/app-template/src/views/header/search/index.tsx +5 -17
  41. package/app-template/src/views/login/index.tsx +10 -11
  42. package/app-template/src/views/otp-login/index.tsx +6 -11
  43. package/app-template/src/views/product/product-info.tsx +263 -62
  44. package/app-template/src/views/product/slider.tsx +73 -86
  45. package/app-template/src/views/register/index.tsx +11 -15
  46. package/app-template/src/widgets/footer-menu.tsx +2 -6
  47. package/commands/plugins.ts +16 -63
  48. package/dist/commands/plugins.js +16 -57
  49. package/package.json +1 -1
  50. package/app-template/.github/instructions/account.instructions.md +0 -749
  51. package/app-template/.github/instructions/edge-cases.instructions.md +0 -73
  52. package/app-template/src/app/[commerce]/[locale]/[currency]/product/[pk]/loading.tsx +0 -67
  53. package/app-template/src/app/api/image-proxy/route.ts +0 -1
  54. package/app-template/src/app/api/similar-product-list/route.ts +0 -1
  55. package/app-template/src/app/api/similar-products/route.ts +0 -1
  56. package/app-template/src/hooks/use-product-cart.ts +0 -77
  57. package/app-template/src/hooks/use-stock-alert.ts +0 -74
  58. package/app-template/src/utils/variant-validation.ts +0 -41
  59. package/app-template/src/views/basket/basket-content.tsx +0 -106
  60. package/app-template/src/views/product/product-actions.tsx +0 -165
  61. package/app-template/src/views/product/product-share.tsx +0 -56
  62. 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
- };