@reni-corp/reni-2c-ui 0.4.10 → 0.4.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reni-corp/reni-2c-ui",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "type": "module",
5
5
  "main": "./dist/script.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -51,7 +51,10 @@
51
51
  "typecheck": "tsc --noEmit --skipLibCheck",
52
52
  "test": "vitest run",
53
53
  "test:watch": "vitest",
54
- "test:vrt": "playwright test --config playwright.config.ts"
54
+ "test:vrt": "playwright test --config playwright.config.ts",
55
+ "test:vrt:update": "playwright test --config playwright.config.ts --update-snapshots",
56
+ "test:vrt:docker": "docker run --rm -v $(pwd):/work -w /work mcr.microsoft.com/playwright:v1.58.2-noble npx playwright test --config playwright.config.ts",
57
+ "test:vrt:docker:update": "docker run --rm -v $(pwd):/work -w /work mcr.microsoft.com/playwright:v1.58.2-noble npx playwright test --config playwright.config.ts --update-snapshots"
55
58
  },
56
59
  "dependencies": {
57
60
  "@awesome.me/kit-37f9c6ad08": "^1.0.24",
@@ -76,7 +76,7 @@ const generateMockProducts = (count: number) => {
76
76
  title: productNames[(i - 1) % productNames.length],
77
77
  title2: '',
78
78
  price_sale: [2200, 3300, 4400, 5500, 6600, 1650, 3850, 1100][i % 8],
79
- price_prefix_freeWord: '',
79
+ price_prefix_freeword: '',
80
80
  slide: 1,
81
81
  product_url: `https://example.com/products/product_${i}`,
82
82
  img_urls: [
@@ -196,7 +196,7 @@ export const キー指定マッチ: Story = {
196
196
  product_code: `CAT-${String(i + 1).padStart(3, '0')}`,
197
197
  title: productNames[i % productNames.length],
198
198
  price_sale: [2200, 3300, 4400, 5500, 1650][i % 5],
199
- price_prefix_freeWord: '',
199
+ price_prefix_freeword: '',
200
200
  slide: 1,
201
201
  product_url: `https://example.com/products/product_${i + 1}`,
202
202
  img_urls: [`https://placehold.jp/400x400.png?text=Product${i + 1}`],
@@ -111,7 +111,7 @@ const generateMockProducts = (count: number) => {
111
111
  title: `ZUTOMAYO 商品 ${i}`,
112
112
  title2: `THE WORLD IS CHANGING ${i}`,
113
113
  price_sale: Math.floor(Math.random() * 8000) + 1000,
114
- price_prefix_freeWord: '', // 空文字(CurrencyValueで円記号が自動追加される)
114
+ price_prefix_freeword: '', // 空文字(CurrencyValueで円記号が自動追加される)
115
115
  slide: 1,
116
116
  product_url: `https://example.com/products/product_${i}`,
117
117
  img_urls: [
@@ -96,7 +96,7 @@ const meta: Meta<typeof ProductPurchase> = {
96
96
  id: 'product-1',
97
97
  title: 'Product name',
98
98
  price: 3000,
99
- price_prefix_freeWord: '各種 ',
99
+ price_prefix_freeword: '各種 ',
100
100
  subtitle1: 'Title1',
101
101
  subtitle2: 'Title2',
102
102
  imageUrls: [
@@ -134,7 +134,7 @@ const createMockProduct = (overrides = {}) => ({
134
134
  id: 'product-1',
135
135
  title: 'オフィシャルTシャツ',
136
136
  price: 3500,
137
- price_prefix_freeWord: '各種 ',
137
+ price_prefix_freeword: '各種 ',
138
138
  subtitle1: 'RENI',
139
139
  subtitle2: 'Official Merchandise',
140
140
  imageUrls: [
@@ -158,7 +158,7 @@ const createMockProduct = (overrides = {}) => ({
158
158
  export const 価格プレフィックスなし: Story = {
159
159
  args: {
160
160
  product: createMockProduct({
161
- price_prefix_freeWord: '', // プレフィックスなし
161
+ price_prefix_freeword: '', // プレフィックスなし
162
162
  price: 2980,
163
163
  }),
164
164
  },