@akinon/projectzero 2.0.0-beta.20 → 2.0.0-beta.22

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 (140) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/app-template/CHANGELOG.md +170 -0
  3. package/app-template/next.config.mjs +0 -1
  4. package/app-template/package.json +31 -30
  5. package/app-template/src/app/[pz]/[...prettyurl]/page.tsx +2 -2
  6. package/app-template/src/app/[pz]/account/layout.tsx +2 -1
  7. package/app-template/src/app/{[commerce]/[locale]/[currency] → [pz]}/blog/[slug]/page.tsx +4 -2
  8. package/app-template/src/app/[pz]/category/[pk]/page.tsx +11 -1
  9. package/app-template/src/app/[pz]/group-product/[pk]/page.tsx +2 -2
  10. package/app-template/src/app/[pz]/layout.tsx +3 -1
  11. package/app-template/src/app/[pz]/list/page.tsx +11 -1
  12. package/app-template/src/app/[pz]/page.tsx +13 -35
  13. package/app-template/src/app/[pz]/pages/[slug]/page.tsx +19 -0
  14. package/app-template/src/app/[pz]/product/[pk]/page.tsx +2 -2
  15. package/app-template/src/app/api/barcode-search/route.ts +1 -1
  16. package/app-template/src/app/api/cache/route.ts +1 -1
  17. package/app-template/src/app/api/image-proxy/route.ts +1 -1
  18. package/app-template/src/app/api/logout/route.ts +1 -1
  19. package/app-template/src/app/api/product-categories/route.ts +1 -1
  20. package/app-template/src/app/api/similar-product-list/route.ts +1 -1
  21. package/app-template/src/app/api/similar-products/route.ts +1 -1
  22. package/app-template/src/app/api/virtual-try-on/route.ts +1 -1
  23. package/app-template/src/app/api/web-vitals/route.ts +1 -1
  24. package/app-template/src/components/quantity-selector.tsx +16 -4
  25. package/app-template/src/components/widget-content.tsx +3 -3
  26. package/app-template/src/routes/index.ts +6 -6
  27. package/app-template/src/utils/__tests__/theme-page-context.test.ts +145 -0
  28. package/app-template/src/utils/theme-page-context.ts +309 -0
  29. package/app-template/src/views/basket/basket-item.tsx +107 -691
  30. package/app-template/src/views/basket/index.ts +0 -2
  31. package/app-template/src/views/basket/summary.tsx +75 -496
  32. package/app-template/src/views/breadcrumb.tsx +38 -13
  33. package/app-template/src/views/category/category-header.tsx +66 -289
  34. package/app-template/src/views/category/category-info.tsx +24 -173
  35. package/app-template/src/views/category/filters/index.tsx +48 -208
  36. package/app-template/src/views/category/layout.tsx +5 -7
  37. package/app-template/src/views/checkout/index.tsx +0 -5
  38. package/app-template/src/views/checkout/steps/payment/index.tsx +2 -5
  39. package/app-template/src/views/checkout/steps/payment/options/credit-card/index.tsx +1 -72
  40. package/app-template/src/views/checkout/steps/payment/payment-option-buttons.tsx +40 -171
  41. package/app-template/src/views/checkout/steps/shipping/address-box.tsx +12 -74
  42. package/app-template/src/views/checkout/steps/shipping/addresses.tsx +45 -128
  43. package/app-template/src/views/checkout/steps/shipping/shipping-options.tsx +27 -232
  44. package/app-template/src/views/checkout/summary.tsx +29 -303
  45. package/app-template/src/views/footer.tsx +13 -415
  46. package/app-template/src/views/guest-login/index.tsx +1 -1
  47. package/app-template/src/views/header/action-menu.tsx +45 -277
  48. package/app-template/src/views/header/band.tsx +21 -6
  49. package/app-template/src/views/header/index.tsx +47 -109
  50. package/app-template/src/views/header/mini-basket.tsx +45 -820
  51. package/app-template/src/views/header/navbar.tsx +111 -178
  52. package/app-template/src/views/header/search/index.tsx +32 -71
  53. package/app-template/src/views/header/search/results.tsx +65 -127
  54. package/app-template/src/views/product/accordion-wrapper.tsx +43 -135
  55. package/app-template/src/views/product/index.ts +1 -1
  56. package/app-template/src/views/product/layout.tsx +7 -2
  57. package/app-template/src/views/product/misc-buttons.tsx +25 -339
  58. package/app-template/src/views/product/product-actions.tsx +8 -137
  59. package/app-template/src/views/product/product-info.tsx +31 -69
  60. package/app-template/src/views/product/product-share.tsx +8 -11
  61. package/app-template/src/views/product/slider.tsx +79 -117
  62. package/app-template/src/views/product-item/index.tsx +46 -119
  63. package/app-template/src/widgets/footer-social.tsx +16 -47
  64. package/app-template/src/widgets/footer-subscription/index.tsx +17 -183
  65. package/codemods/migrate-auth-v5/index.js +339 -0
  66. package/codemods/migrate-auth-v5/transform.js +86 -0
  67. package/dist/commands/plugins.js +23 -2
  68. package/package.json +1 -1
  69. package/app-template/src/app/[commerce]/[locale]/[currency]/pages/[slug]/page.tsx +0 -15
  70. package/app-template/src/views/basket/basket-summary-context.tsx +0 -560
  71. package/app-template/src/views/basket/designer-context.tsx +0 -617
  72. package/app-template/src/views/breadcrumb/breadcrumb-client.tsx +0 -190
  73. package/app-template/src/views/breadcrumb/breadcrumb-registrar.tsx +0 -286
  74. package/app-template/src/views/breadcrumb/constants.ts +0 -15
  75. package/app-template/src/views/breadcrumb/index.tsx +0 -127
  76. package/app-template/src/views/category/native-widget-context.tsx +0 -257
  77. package/app-template/src/views/category/product-list-registrar.tsx +0 -665
  78. package/app-template/src/views/checkout/checkout-address-registrar.tsx +0 -254
  79. package/app-template/src/views/checkout/checkout-buttons-registrar.tsx +0 -183
  80. package/app-template/src/views/checkout/checkout-delivery-method-registrar.tsx +0 -259
  81. package/app-template/src/views/checkout/checkout-payment-options-registrar.tsx +0 -253
  82. package/app-template/src/views/checkout/checkout-summary-registrar.tsx +0 -183
  83. package/app-template/src/views/checkout/constants.ts +0 -5
  84. package/app-template/src/views/checkout/steps/payment/options/masterpass-rest.tsx +0 -15
  85. package/app-template/src/views/checkout/steps/payment/options/saved-card.tsx +0 -18
  86. package/app-template/src/views/footer/footer-app-banner-context.tsx +0 -326
  87. package/app-template/src/views/footer/footer-bottom-context.tsx +0 -215
  88. package/app-template/src/views/footer/footer-bottom-wrapper.tsx +0 -74
  89. package/app-template/src/views/footer/footer-layout-constants.ts +0 -35
  90. package/app-template/src/views/footer/footer-layout-registrar.tsx +0 -342
  91. package/app-template/src/views/footer/footer-layout-switcher.tsx +0 -110
  92. package/app-template/src/views/footer/footer-menu-context.tsx +0 -211
  93. package/app-template/src/views/footer/footer-native-widgets.tsx +0 -60
  94. package/app-template/src/views/footer/footer-social-context.tsx +0 -254
  95. package/app-template/src/views/footer/footer-subscription-context.tsx +0 -210
  96. package/app-template/src/views/footer/footer-utils.ts +0 -43
  97. package/app-template/src/views/footer/footer-value-props-context.tsx +0 -326
  98. package/app-template/src/views/footer/logo-settings.ts +0 -183
  99. package/app-template/src/views/footer/native-widget-config.ts +0 -262
  100. package/app-template/src/views/footer/subscription-settings.ts +0 -122
  101. package/app-template/src/views/footer/use-footer-logo.ts +0 -162
  102. package/app-template/src/views/header/designer-context.tsx +0 -261
  103. package/app-template/src/views/header/header-announcement-registrar.tsx +0 -267
  104. package/app-template/src/views/header/header-client-wrapper.tsx +0 -496
  105. package/app-template/src/views/header/header-content.tsx +0 -1026
  106. package/app-template/src/views/header/header-currency-registrar.tsx +0 -348
  107. package/app-template/src/views/header/header-icons-context.tsx +0 -262
  108. package/app-template/src/views/header/header-language-registrar.tsx +0 -348
  109. package/app-template/src/views/header/header-layout-context.tsx +0 -143
  110. package/app-template/src/views/header/header-layout-registrar.tsx +0 -658
  111. package/app-template/src/views/header/header-logo-context.tsx +0 -228
  112. package/app-template/src/views/header/header-logo.tsx +0 -118
  113. package/app-template/src/views/header/header-mini-basket-context.tsx +0 -524
  114. package/app-template/src/views/header/header-search-registrar.tsx +0 -511
  115. package/app-template/src/views/header/header-text-slider-registrar.tsx +0 -382
  116. package/app-template/src/views/header/inline-search.tsx +0 -262
  117. package/app-template/src/views/header/navbar-menu-context.tsx +0 -219
  118. package/app-template/src/views/header/search/search-input.tsx +0 -61
  119. package/app-template/src/views/header/server-settings-parser.ts +0 -1105
  120. package/app-template/src/views/header/use-header-icons.ts +0 -241
  121. package/app-template/src/views/header/use-header-logo.ts +0 -213
  122. package/app-template/src/views/header/use-navbar-menu.ts +0 -179
  123. package/app-template/src/views/product/accordion-section.tsx +0 -61
  124. package/app-template/src/views/product/custom-button-group.tsx +0 -69
  125. package/app-template/src/views/product/favorites-button-section.tsx +0 -69
  126. package/app-template/src/views/product/find-in-store-section.tsx +0 -60
  127. package/app-template/src/views/product/product-info-section.tsx +0 -140
  128. package/app-template/src/views/product/quantity-section.tsx +0 -73
  129. package/app-template/src/views/product/sale-tag.tsx +0 -10
  130. package/app-template/src/views/product/share-section.tsx +0 -357
  131. package/app-template/src/views/product/variants-section.tsx +0 -126
  132. package/app-template/src/views/product-detail/constants.ts +0 -272
  133. package/app-template/src/views/product-detail/index.ts +0 -10
  134. package/app-template/src/views/product-detail/product-detail-registrar.tsx +0 -616
  135. package/app-template/src/widgets/footer-app-banner.tsx +0 -444
  136. package/app-template/src/widgets/footer-bottom.tsx +0 -127
  137. package/app-template/src/widgets/footer-menu-compact.tsx +0 -238
  138. package/app-template/src/widgets/footer-menu-two.tsx +0 -298
  139. package/app-template/src/widgets/footer-social-client.tsx +0 -251
  140. package/app-template/src/widgets/footer-value-props.tsx +0 -201
@@ -1,272 +0,0 @@
1
- /**
2
- * Product Detail Page Constants
3
- *
4
- * Shared constants for product detail native widget.
5
- * This file can be imported by both server and client components.
6
- */
7
-
8
- export const PRODUCT_DETAIL_PLACEHOLDER_ID = 'product-detail';
9
- export const PRODUCT_DETAIL_WIDGET_SLUG = 'product-detail-styles';
10
-
11
- // Section IDs
12
- export const ADD_TO_CART_SECTION_ID = 'add-to-cart-section';
13
- export const QUANTITY_SECTION_ID = 'quantity-section';
14
- export const VARIANTS_SECTION_ID = 'variants-section';
15
- export const PRODUCT_INFO_SECTION_ID = 'product-info-section';
16
- export const SHARE_SECTION_ID = 'share-section';
17
- export const ACCORDION_SECTION_ID = 'accordion-section';
18
- export const FAVORITES_BUTTON_SECTION_ID = 'favorites-button-section';
19
- export const FIND_IN_STORE_SECTION_ID = 'find-in-store-section';
20
-
21
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
22
- export interface AddToCartProperties {
23
- // Future properties can be added here
24
- }
25
-
26
- export interface AddToCartStyles {
27
- 'font-size'?: string;
28
- 'font-weight'?: string;
29
- color?: string;
30
- 'background-color'?: string;
31
- 'border-color'?: string;
32
- 'border-width'?: string;
33
- 'border-radius'?: string;
34
- 'padding-x'?: string;
35
- 'padding-y'?: string;
36
- height?: string;
37
- 'hover-background-color'?: string;
38
- 'hover-text-color'?: string;
39
- [key: string]: string | undefined;
40
- }
41
-
42
- /**
43
- * Quantity Selector Display Type
44
- * - 'buttons': Plus/minus buttons (default)
45
- * - 'dropdown': Dropdown select menu
46
- */
47
- export type QuantityDisplayType = 'buttons' | 'dropdown';
48
-
49
- export interface QuantityProperties {
50
- displayType: QuantityDisplayType;
51
- maxDropdownOptions?: number;
52
- }
53
-
54
- export interface QuantityStyles {
55
- // Container styles
56
- width?: string;
57
- height?: string;
58
- 'background-color'?: string;
59
- 'border-color'?: string;
60
- 'border-width'?: string;
61
- 'border-radius'?: string;
62
- // Button styles (for buttons mode)
63
- 'button-color'?: string;
64
- 'button-hover-color'?: string;
65
- // Text styles
66
- 'font-size'?: string;
67
- 'font-weight'?: string;
68
- color?: string;
69
- [key: string]: string | undefined;
70
- }
71
-
72
- export interface VariantsStyles {
73
- // Label styles
74
- 'label-font-size'?: string;
75
- 'label-font-weight'?: string;
76
- 'label-color'?: string;
77
- // Button styles
78
- 'button-font-size'?: string;
79
- 'button-font-weight'?: string;
80
- 'button-height'?: string;
81
- 'button-padding-x'?: string;
82
- 'button-border-radius'?: string;
83
- // Default state
84
- 'button-color'?: string;
85
- 'button-background-color'?: string;
86
- 'button-border-color'?: string;
87
- 'button-border-width'?: string;
88
- // Selected state
89
- 'selected-color'?: string;
90
- 'selected-background-color'?: string;
91
- 'selected-border-color'?: string;
92
- // Hover state
93
- 'hover-color'?: string;
94
- 'hover-background-color'?: string;
95
- 'hover-border-color'?: string;
96
- // Disabled state
97
- 'disabled-color'?: string;
98
- 'disabled-background-color'?: string;
99
- 'disabled-border-color'?: string;
100
- [key: string]: string | undefined;
101
- }
102
-
103
- export interface ProductInfoStyles {
104
- // Product name styles
105
- 'name-font-size'?: string;
106
- 'name-font-weight'?: string;
107
- 'name-color'?: string;
108
- 'name-line-height'?: string;
109
- // Price styles
110
- 'price-font-size'?: string;
111
- 'price-font-weight'?: string;
112
- 'price-color'?: string;
113
- // Retail price styles
114
- 'retail-price-font-size'?: string;
115
- 'retail-price-font-weight'?: string;
116
- 'retail-price-color'?: string;
117
- 'retail-price-text-decoration'?: string;
118
- // Description styles
119
- 'description-font-size'?: string;
120
- 'description-font-weight'?: string;
121
- 'description-color'?: string;
122
- 'description-line-height'?: string;
123
- [key: string]: string | undefined;
124
- }
125
-
126
- /**
127
- * Share Button Layout Type
128
- * - 'floating': Expandable horizontal (default, sağa açılan)
129
- * - 'inline-horizontal': Icons displayed inline horizontally
130
- * - 'inline-vertical': Icons displayed inline vertically
131
- * - 'icon-only': Only icons without button text
132
- * - 'compact': Minimal size view
133
- */
134
- export type ShareLayoutType =
135
- | 'floating'
136
- | 'inline-horizontal'
137
- | 'inline-vertical'
138
- | 'icon-only'
139
- | 'compact';
140
-
141
- export interface ShareProperties {
142
- layout: ShareLayoutType;
143
- showLabel?: boolean;
144
- }
145
-
146
- export interface ShareStyles {
147
- // Button styles
148
- 'button-font-size'?: string;
149
- 'button-font-weight'?: string;
150
- 'button-color'?: string;
151
- 'button-background-color'?: string;
152
- 'button-border-color'?: string;
153
- 'button-border-width'?: string;
154
- 'button-border-radius'?: string;
155
- 'button-padding-x'?: string;
156
- 'button-padding-y'?: string;
157
- // Icon styles
158
- 'icon-size'?: string;
159
- 'icon-color'?: string;
160
- 'icon-hover-color'?: string;
161
- 'icon-background-color'?: string;
162
- 'icon-hover-background-color'?: string;
163
- 'icon-border-radius'?: string;
164
- 'icon-spacing'?: string;
165
- [key: string]: string | undefined;
166
- }
167
-
168
- export interface AccordionStyles {
169
- // Container styles
170
- 'container-border-color'?: string;
171
- 'container-border-width'?: string;
172
- 'container-border-radius'?: string;
173
- 'container-spacing'?: string;
174
- // Header/Title styles
175
- 'title-font-size'?: string;
176
- 'title-font-weight'?: string;
177
- 'title-color'?: string;
178
- 'title-background-color'?: string;
179
- 'title-padding-x'?: string;
180
- 'title-padding-y'?: string;
181
- // Icon styles
182
- 'icon-size'?: string;
183
- 'icon-color'?: string;
184
- 'icon-hover-color'?: string;
185
- // Content styles
186
- 'content-font-size'?: string;
187
- 'content-font-weight'?: string;
188
- 'content-color'?: string;
189
- 'content-padding-x'?: string;
190
- 'content-padding-y'?: string;
191
- 'content-background-color'?: string;
192
- // Hover state
193
- 'hover-background-color'?: string;
194
- 'hover-title-color'?: string;
195
- [key: string]: string | undefined;
196
- }
197
-
198
- export interface FavoritesButtonProperties {
199
- icon?: string;
200
- iconActive?: string;
201
- }
202
-
203
- export interface FavoritesButtonStyles {
204
- // Button styles
205
- 'font-size'?: string;
206
- 'font-weight'?: string;
207
- color?: string;
208
- 'background-color'?: string;
209
- 'border-color'?: string;
210
- 'border-width'?: string;
211
- 'border-radius'?: string;
212
- 'padding-x'?: string;
213
- 'padding-y'?: string;
214
- height?: string;
215
- // Icon styles
216
- 'icon-size'?: string;
217
- 'icon-color'?: string;
218
- 'icon-active-color'?: string;
219
- // Hover state
220
- 'hover-background-color'?: string;
221
- 'hover-text-color'?: string;
222
- 'hover-icon-color'?: string;
223
- [key: string]: string | undefined;
224
- }
225
-
226
- export interface FindInStoreProperties {
227
- icon?: string;
228
- showIcon?: boolean;
229
- }
230
-
231
- export interface FindInStoreStyles {
232
- // Button styles
233
- 'button-font-size'?: string;
234
- 'button-font-weight'?: string;
235
- 'button-color'?: string;
236
- 'button-background-color'?: string;
237
- 'button-border-color'?: string;
238
- 'button-border-width'?: string;
239
- 'button-border-radius'?: string;
240
- 'button-padding-x'?: string;
241
- 'button-padding-y'?: string;
242
- 'button-height'?: string;
243
- // Icon styles
244
- 'icon-size'?: string;
245
- 'icon-color'?: string;
246
- // Hover state
247
- 'button-hover-background-color'?: string;
248
- 'button-hover-text-color'?: string;
249
- 'button-hover-icon-color'?: string;
250
- // Modal styles
251
- 'modal-width'?: string;
252
- 'modal-max-width'?: string;
253
- 'modal-max-height'?: string;
254
- 'modal-title-font-size'?: string;
255
- 'modal-title-font-weight'?: string;
256
- 'modal-title-color'?: string;
257
- 'modal-background-color'?: string;
258
- 'modal-border-radius'?: string;
259
- // Modal button styles
260
- 'modal-button-font-size'?: string;
261
- 'modal-button-font-weight'?: string;
262
- 'modal-button-color'?: string;
263
- 'modal-button-background-color'?: string;
264
- 'modal-button-border-color'?: string;
265
- 'modal-button-border-width'?: string;
266
- 'modal-button-border-radius'?: string;
267
- 'modal-button-padding-x'?: string;
268
- 'modal-button-padding-y'?: string;
269
- 'modal-button-hover-background-color'?: string;
270
- 'modal-button-hover-text-color'?: string;
271
- [key: string]: string | undefined;
272
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Product Detail Native Widget
3
- *
4
- * This module exports the product detail registrar and context
5
- * for Theme Editor integration.
6
- */
7
-
8
- export { default as ProductDetailRegistrar } from './product-detail-registrar';
9
- export { useProductDetail } from './product-detail-registrar';
10
- export * from './constants';