@akinon/pz-virtual-try-on 1.126.0 → 1.126.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @akinon/pz-virtual-try-on
2
2
 
3
+ ## 1.126.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 8d9e44ef: ZERO-4365: Remove brand `@theme/*` alias imports from library packages
8
+
9
+ `pz-virtual-try-on/src/components/barcode-scanner.tsx` was importing `LoaderSpinner` from `@theme/components`, which only resolves inside the brand's own `src/` scope (Next.js tsconfig paths -> webpack alias). Plugin source compiled via `transpilePackages` cannot see this alias, so any brand using the plugin (since 1.117.0) fails to build with `Module not found: Can't resolve '@theme/components'`. The `LoaderSpinner` was a redundant second spinner on top of an existing Tailwind `animate-spin` div — removed entirely. The `settings.customRenderers.renderLoadingSpinner` override path is unchanged.
10
+
11
+ `akinon-next/components/select.tsx` was using `import { SelectProps } from '@theme/components/types'` (value import). Changed to `import type` so the brand-side type dependency is erased at compile time and never reaches webpack module resolution.
12
+
13
+ - Updated dependencies [8d9e44ef]
14
+ - @akinon/next@1.126.1
15
+
3
16
  ## 1.126.0
4
17
 
5
18
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-virtual-try-on",
3
- "version": "1.126.0",
3
+ "version": "1.126.1",
4
4
  "license": "MIT",
5
5
  "main": "src/index.ts",
6
6
  "peerDependencies": {
@@ -8,7 +8,7 @@
8
8
  "react-dom": "^18.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@akinon/next": "1.126.0",
11
+ "@akinon/next": "1.126.1",
12
12
  "clsx": "^2.0.0",
13
13
  "tailwind-merge": "^2.0.0",
14
14
  "react-image-crop": "^11.0.5",
@@ -9,8 +9,6 @@ import type {
9
9
  BarcodeFormat
10
10
  } from '../types/barcode';
11
11
 
12
- import { LoaderSpinner } from '@theme/components';
13
-
14
12
  const mapBarcodeFormat = (format: string): BarcodeFormat => {
15
13
  const formatMap: Record<string, BarcodeFormat> = {
16
14
  QR_CODE: 'QR_CODE',
@@ -299,15 +297,12 @@ export function BarcodeScanner({
299
297
  {settings?.customRenderers?.renderLoadingSpinner ? (
300
298
  settings.customRenderers.renderLoadingSpinner()
301
299
  ) : (
302
- <>
303
- <div
304
- className={twMerge(
305
- 'animate-spin w-8 h-8 border-2 border-white border-t-transparent rounded-full mx-auto mb-2',
306
- settings?.customStyles?.loadingSpinner
307
- )}
308
- />
309
- <LoaderSpinner />
310
- </>
300
+ <div
301
+ className={twMerge(
302
+ 'animate-spin w-8 h-8 border-2 border-white border-t-transparent rounded-full mx-auto mb-2',
303
+ settings?.customStyles?.loadingSpinner
304
+ )}
305
+ />
311
306
  )}
312
307
  </div>
313
308
  </div>