pi-kiosk-shared 2.3.20 → 2.3.21

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,405 +1,405 @@
1
- {
2
- "name": "pi-kiosk-shared",
3
- "version": "2.3.20",
4
- "type": "module",
5
- "private": false,
6
- "description": "Shared types, API contracts, and error classes for Pi Kiosk system",
7
- "keywords": [
8
- "kiosk",
9
- "typescript",
10
- "types",
11
- "api"
12
- ],
13
- "author": "tehacko@seznam.cz",
14
- "license": "MIT",
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/tehacko/pi-kiosk-shared.git"
18
- },
19
- "main": "dist/index.js",
20
- "module": "dist/index.js",
21
- "types": "dist/index.d.ts",
22
- "exports": {
23
- ".": {
24
- "types": "./dist/index.d.ts",
25
- "import": "./dist/index.js",
26
- "require": "./dist/index.js"
27
- },
28
- "./analyticsExploreCaps": {
29
- "types": "./dist/analyticsExploreCaps.d.ts",
30
- "import": "./dist/analyticsExploreCaps.js",
31
- "require": "./dist/analyticsExploreCaps.js"
32
- },
33
- "./analyticsApiTypes": {
34
- "types": "./dist/analyticsApiTypes.d.ts",
35
- "import": "./dist/analyticsApiTypes.js",
36
- "require": "./dist/analyticsApiTypes.js"
37
- },
38
- "./analyticsEvents": {
39
- "types": "./dist/analyticsEvents.d.ts",
40
- "import": "./dist/analyticsEvents.js",
41
- "require": "./dist/analyticsEvents.js"
42
- },
43
- "./analyticsEmitterManifest": {
44
- "types": "./dist/analyticsEmitterManifest.d.ts",
45
- "import": "./dist/analyticsEmitterManifest.js",
46
- "require": "./dist/analyticsEmitterManifest.js"
47
- },
48
- "./crossTab": {
49
- "types": "./dist/crossTab/index.d.ts",
50
- "import": "./dist/crossTab/index.js",
51
- "require": "./dist/crossTab/index.js"
52
- },
53
- "./analyticsDevLog": {
54
- "types": "./dist/analyticsDevLog.d.ts",
55
- "import": "./dist/analyticsDevLog.js",
56
- "require": "./dist/analyticsDevLog.js"
57
- },
58
- "./analyticsConsentAllowlist": {
59
- "types": "./dist/analyticsConsentAllowlist.d.ts",
60
- "import": "./dist/analyticsConsentAllowlist.js",
61
- "require": "./dist/analyticsConsentAllowlist.js"
62
- },
63
- "./analyticsConsentTier2": {
64
- "types": "./dist/analyticsConsentTier2.d.ts",
65
- "import": "./dist/analyticsConsentTier2.js",
66
- "require": "./dist/analyticsConsentTier2.js"
67
- },
68
- "./analytics/metadataBuilders": {
69
- "types": "./dist/analytics/metadataBuilders.d.ts",
70
- "import": "./dist/analytics/metadataBuilders.js",
71
- "require": "./dist/analytics/metadataBuilders.js"
72
- },
73
- "./analytics/missionControl": {
74
- "types": "./dist/analytics/missionControl.d.ts",
75
- "import": "./dist/analytics/missionControl.js",
76
- "require": "./dist/analytics/missionControl.js"
77
- },
78
- "./analyticsAnonymousIdentity": {
79
- "types": "./dist/analyticsAnonymousIdentity.d.ts",
80
- "import": "./dist/analyticsAnonymousIdentity.js",
81
- "require": "./dist/analyticsAnonymousIdentity.js"
82
- },
83
- "./analyticsEmitDedup": {
84
- "types": "./dist/analyticsEmitDedup.d.ts",
85
- "import": "./dist/analyticsEmitDedup.js",
86
- "require": "./dist/analyticsEmitDedup.js"
87
- },
88
- "./analyticsIngestOutboxPolicy": {
89
- "types": "./dist/analyticsIngestOutboxPolicy.d.ts",
90
- "import": "./dist/analyticsIngestOutboxPolicy.js",
91
- "require": "./dist/analyticsIngestOutboxPolicy.js"
92
- },
93
- "./clientLogRedaction": {
94
- "types": "./dist/clientLogRedaction.d.ts",
95
- "import": "./dist/clientLogRedaction.js",
96
- "require": "./dist/clientLogRedaction.js"
97
- },
98
- "./sensitiveMetaKeys": {
99
- "types": "./dist/sensitiveMetaKeys.d.ts",
100
- "import": "./dist/sensitiveMetaKeys.js",
101
- "require": "./dist/sensitiveMetaKeys.js"
102
- },
103
- "./logging": {
104
- "types": "./dist/logging/index.d.ts",
105
- "import": "./dist/logging/index.js",
106
- "require": "./dist/logging/index.js"
107
- },
108
- "./logging/createClientLogger": {
109
- "types": "./dist/logging/createClientLogger.d.ts",
110
- "import": "./dist/logging/createClientLogger.js",
111
- "require": "./dist/logging/createClientLogger.js"
112
- },
113
- "./barcode-scanner": {
114
- "types": "./dist/barcode-scanner.d.ts",
115
- "import": "./dist/barcode-scanner.js",
116
- "require": "./dist/barcode-scanner.js"
117
- },
118
- "./loyalty/loyaltySessionHandoff": {
119
- "types": "./dist/loyalty/loyaltySessionHandoff.d.ts",
120
- "import": "./dist/loyalty/loyaltySessionHandoff.js",
121
- "require": "./dist/loyalty/loyaltySessionHandoff.js"
122
- },
123
- "./promo/promoSessionHandoff": {
124
- "types": "./dist/promo/promoSessionHandoff.d.ts",
125
- "import": "./dist/promo/promoSessionHandoff.js",
126
- "require": "./dist/promo/promoSessionHandoff.js"
127
- },
128
- "./promo/resolvePromoLoyaltyStack": {
129
- "types": "./dist/promo/resolvePromoLoyaltyStack.d.ts",
130
- "import": "./dist/promo/resolvePromoLoyaltyStack.js",
131
- "require": "./dist/promo/resolvePromoLoyaltyStack.js"
132
- },
133
- "./promo/PromoCodeErrorCode": {
134
- "types": "./dist/promo/PromoCodeErrorCode.d.ts",
135
- "import": "./dist/promo/PromoCodeErrorCode.js",
136
- "require": "./dist/promo/PromoCodeErrorCode.js"
137
- },
138
- "./promo/ApplyPromoCodeRequest": {
139
- "types": "./dist/promo/ApplyPromoCodeRequest.d.ts",
140
- "import": "./dist/promo/ApplyPromoCodeRequest.js",
141
- "require": "./dist/promo/ApplyPromoCodeRequest.js"
142
- },
143
- "./promo/ApplyPromoCodeResponse": {
144
- "types": "./dist/promo/ApplyPromoCodeResponse.d.ts",
145
- "import": "./dist/promo/ApplyPromoCodeResponse.js",
146
- "require": "./dist/promo/ApplyPromoCodeResponse.js"
147
- },
148
- "./promo/resolveApplyPromoEventDisplayName": {
149
- "types": "./dist/promo/resolveApplyPromoEventDisplayName.d.ts",
150
- "import": "./dist/promo/resolveApplyPromoEventDisplayName.js",
151
- "require": "./dist/promo/resolveApplyPromoEventDisplayName.js"
152
- },
153
- "./promo/RemovePromoCodeRequest": {
154
- "types": "./dist/promo/RemovePromoCodeRequest.d.ts",
155
- "import": "./dist/promo/RemovePromoCodeRequest.js",
156
- "require": "./dist/promo/RemovePromoCodeRequest.js"
157
- },
158
- "./promo/resolvePromotionsProgramEnabled": {
159
- "types": "./dist/promo/resolvePromotionsProgramEnabled.d.ts",
160
- "import": "./dist/promo/resolvePromotionsProgramEnabled.js",
161
- "require": "./dist/promo/resolvePromotionsProgramEnabled.js"
162
- },
163
- "./checkout/sessionMetadataV4": {
164
- "types": "./dist/checkout/sessionMetadataV4.d.ts",
165
- "import": "./dist/checkout/sessionMetadataV4.js",
166
- "require": "./dist/checkout/sessionMetadataV4.js"
167
- },
168
- "./checkout/sessionMetadataV5": {
169
- "types": "./dist/checkout/sessionMetadataV5.d.ts",
170
- "import": "./dist/checkout/sessionMetadataV5.js",
171
- "require": "./dist/checkout/sessionMetadataV5.js"
172
- },
173
- "./checkout/CartLineFingerprint": {
174
- "types": "./dist/checkout/CartLineFingerprint.d.ts",
175
- "import": "./dist/checkout/CartLineFingerprint.js",
176
- "require": "./dist/checkout/CartLineFingerprint.js"
177
- },
178
- "./order": {
179
- "types": "./dist/order/index.d.ts",
180
- "import": "./dist/order/index.js",
181
- "require": "./dist/order/index.js"
182
- },
183
- "./order/fulfillmentContracts": {
184
- "types": "./dist/order/fulfillmentContracts.d.ts",
185
- "import": "./dist/order/fulfillmentContracts.js",
186
- "require": "./dist/order/fulfillmentContracts.js"
187
- },
188
- "./contracts/inventory": {
189
- "types": "./dist/contracts/inventory/index.d.ts",
190
- "import": "./dist/contracts/inventory/index.js",
191
- "require": "./dist/contracts/inventory/index.js"
192
- },
193
- "./sentry": {
194
- "types": "./dist/sentry/initSentry.d.ts",
195
- "import": "./dist/sentry/initSentry.js",
196
- "require": "./dist/sentry/initSentry.js"
197
- },
198
- "./sentry/correlationTagBridge": {
199
- "types": "./dist/sentry/correlationTagBridge.d.ts",
200
- "import": "./dist/sentry/correlationTagBridge.js",
201
- "require": "./dist/sentry/correlationTagBridge.js"
202
- },
203
- "./sentry/captureRateLimitBreadcrumb": {
204
- "types": "./dist/sentry/captureRateLimitBreadcrumb.d.ts",
205
- "import": "./dist/sentry/captureRateLimitBreadcrumb.js",
206
- "require": "./dist/sentry/captureRateLimitBreadcrumb.js"
207
- },
208
- "./sentry/captureConflictBreadcrumb": {
209
- "types": "./dist/sentry/captureConflictBreadcrumb.d.ts",
210
- "import": "./dist/sentry/captureConflictBreadcrumb.js",
211
- "require": "./dist/sentry/captureConflictBreadcrumb.js"
212
- },
213
- "./theme.css": "./src/tokens/theme.css",
214
- "./admin-theme.css": "./src/tokens/admin-theme.css",
215
- "./responsive.css": "./src/tokens/responsive.css",
216
- "./responsive": {
217
- "types": "./dist/responsive/index.d.ts",
218
- "import": "./dist/responsive/index.js",
219
- "require": "./dist/responsive/index.js"
220
- },
221
- "./ui": {
222
- "types": "./dist/ui/index.d.ts",
223
- "import": "./dist/ui/index.js",
224
- "require": "./dist/ui/index.js"
225
- },
226
- "./ui/Icon": {
227
- "types": "./dist/ui/Icon/index.d.ts",
228
- "import": "./dist/ui/Icon/index.js",
229
- "require": "./dist/ui/Icon/index.js"
230
- },
231
- "./ui/tvShim": {
232
- "types": "./dist/ui/tvShim.d.ts",
233
- "import": "./dist/ui/tvShim.js",
234
- "require": "./dist/ui/tvShim.js"
235
- },
236
- "./tenant-entitlements": {
237
- "types": "./dist/tenant-entitlements/index.d.ts",
238
- "import": "./dist/tenant-entitlements/index.js",
239
- "require": "./dist/tenant-entitlements/index.js"
240
- },
241
- "./theme": {
242
- "types": "./dist/theme/ThemeProvider.d.ts",
243
- "import": "./dist/theme/ThemeProvider.js",
244
- "require": "./dist/theme/ThemeProvider.js"
245
- }
246
- },
247
- "typesVersions": {
248
- "*": {
249
- "sensitiveMetaKeys": [
250
- "./dist/sensitiveMetaKeys.d.ts"
251
- ],
252
- "clientLogRedaction": [
253
- "./dist/clientLogRedaction.d.ts"
254
- ],
255
- "analyticsEvents": [
256
- "./dist/analyticsEvents.d.ts"
257
- ],
258
- "analyticsApiTypes": [
259
- "./dist/analyticsApiTypes.d.ts"
260
- ],
261
- "analyticsExploreCaps": [
262
- "./dist/analyticsExploreCaps.d.ts"
263
- ],
264
- "barcode-scanner": [
265
- "./dist/barcode-scanner.d.ts"
266
- ],
267
- "crossTab": [
268
- "./dist/crossTab/index.d.ts"
269
- ],
270
- "logging": [
271
- "./dist/logging/index.d.ts"
272
- ],
273
- "logging/createClientLogger": [
274
- "./dist/logging/createClientLogger.d.ts"
275
- ]
276
- }
277
- },
278
- "peerDependencies": {
279
- "@marsidev/react-turnstile": "^1.0.0",
280
- "@sentry/react": "^8.0.0",
281
- "@tanstack/react-query": "^5.0.0",
282
- "@zxing/browser": "^0.1.5",
283
- "@zxing/library": "^0.21.3",
284
- "lucide-react": "^1.27.0",
285
- "react": "^18.0.0",
286
- "react-i18next": "^14.0.0"
287
- },
288
- "peerDependenciesMeta": {
289
- "@sentry/react": {
290
- "optional": true
291
- },
292
- "@marsidev/react-turnstile": {
293
- "optional": true
294
- },
295
- "@zxing/browser": {
296
- "optional": true
297
- },
298
- "@zxing/library": {
299
- "optional": true
300
- },
301
- "react-i18next": {
302
- "optional": true
303
- },
304
- "react": {
305
- "optional": true
306
- },
307
- "lucide-react": {
308
- "optional": true
309
- },
310
- "@tanstack/react-query": {
311
- "optional": true
312
- }
313
- },
314
- "dependencies": {
315
- "@undecaf/zbar-wasm": "^0.11.0",
316
- "tailwind-variants": "^0.3.0"
317
- },
318
- "scripts": {
319
- "build": "tsc",
320
- "build:clean": "npm run clean && tsc",
321
- "dev": "tsc --watch",
322
- "type-check": "tsc --noEmit",
323
- "lint": "npm run type-check",
324
- "lint:paths": "npm run type-check",
325
- "test": "jest --config jest.config.cjs --passWithNoTests",
326
- "test:workspace": "npm run test:workspace:package --prefix .. -- shared",
327
- "postinstall": "node scripts/applyMonorepoPatches.mjs",
328
- "test:watch": "jest --config jest.config.cjs --watch",
329
- "test:coverage": "jest --config jest.config.cjs --coverage",
330
- "storybook": "storybook dev -p 6006",
331
- "build-storybook": "storybook build",
332
- "clean": "rimraf dist",
333
- "gate:main-barrel-node-safe": "node scripts/assert-main-barrel-node-safe.mjs",
334
- "prove:cold-overlay": "node scripts/prove-pi-kiosk-shared-cold-overlay.mjs",
335
- "gate:tokens-sync": "node scripts/gate-tokens-sync.mjs",
336
- "gate:tokens-sync:write": "node scripts/gate-tokens-sync.mjs --write",
337
- "gate:brand-hex": "node scripts/gate-brand-hex-ban.mjs",
338
- "gate:brand-hex:all": "node scripts/gate-brand-hex-ban.mjs --all",
339
- "generate:inventory-contract": "node scripts/sync-inventory-contract-enums.mjs",
340
- "check:inventory-contract-sync": "node scripts/sync-inventory-contract-enums.mjs --check",
341
- "gate:inventory-contract-drift": "npm run check:inventory-contract-sync && node scripts/check-inventory-contract-drift.mjs",
342
- "check:inventory-contract-drift": "node scripts/check-inventory-contract-drift.mjs",
343
- "gate:inventory-ops-slo-drift": "node scripts/check-inventory-ops-slo-drift.mjs",
344
- "check:inventory-ops-slo-drift": "node scripts/check-inventory-ops-slo-drift.mjs",
345
- "publish:local": "npm run build:clean && npm pack --pack-destination .",
346
- "gate:publish-dist-declarations": "node scripts/gate-publish-dist-declarations.mjs",
347
- "prepublishOnly": "npm run build:clean && npm run gate:publish-dist-declarations",
348
- "preversion": "npm run test -- --passWithNoTests",
349
- "postversion": "echo 'Version updated. Run git push && git push --tags manually if needed.'",
350
- "audit:deps": "npm audit --audit-level=high",
351
- "export:catalog": "npm run build && node scripts/exportAnalyticsCatalog.mjs"
352
- },
353
- "files": [
354
- "dist",
355
- "patches",
356
- "src/tokens",
357
- "scripts/applyMonorepoPatches.mjs",
358
- "README.md"
359
- ],
360
- "devDependencies": {
361
- "@marsidev/react-turnstile": "^1.1.0",
362
- "@radix-ui/react-select": "^2.3.7",
363
- "@sentry/react": "^8.55.0",
364
- "@storybook/react-vite": "^9.1.20",
365
- "@tanstack/react-query": "^5.66.0",
366
- "@testing-library/dom": "^10.4.1",
367
- "@testing-library/jest-dom": "^6.6.0",
368
- "@testing-library/react": "^16.0.0",
369
- "@testing-library/user-event": "^14.6.0",
370
- "@types/jest": "^30.0.0",
371
- "@types/node": "^20.19.41",
372
- "@types/react": "^18.2.0",
373
- "@types/react-dom": "^19.2.5",
374
- "@zxing/browser": "^0.1.5",
375
- "@zxing/library": "^0.21.3",
376
- "handlebars": "^4.7.9",
377
- "jest": "^30.4.0",
378
- "jest-environment-jsdom": "^30.4.0",
379
- "lucide-react": "^1.27.0",
380
- "patch-package": "^8.0.1",
381
- "react": "^18.3.1",
382
- "react-dom": "^18.3.1",
383
- "react-i18next": "^14.1.0",
384
- "rimraf": "^6.1.3",
385
- "sharp": "^0.34.5",
386
- "storybook": "^9.1.20",
387
- "ts-jest": "^29.4.11",
388
- "typescript": "^5.0.0",
389
- "vite": "^6.4.3"
390
- },
391
- "overrides": {
392
- "babel-plugin-istanbul": "^8.0.2",
393
- "brace-expansion": "^5.0.8",
394
- "fast-uri": "^3.1.4",
395
- "glob": "^13.0.6",
396
- "jsdom": "^27.4.0",
397
- "minimatch": "^10.2.5",
398
- "postcss": "^8.5.23",
399
- "test-exclude": "^8.0.0",
400
- "uuid": "^11.1.1"
401
- },
402
- "engines": {
403
- "node": ">=24.0.0"
404
- }
405
- }
1
+ {
2
+ "name": "pi-kiosk-shared",
3
+ "version": "2.3.21",
4
+ "type": "module",
5
+ "private": false,
6
+ "description": "Shared types, API contracts, and error classes for Pi Kiosk system",
7
+ "keywords": [
8
+ "kiosk",
9
+ "typescript",
10
+ "types",
11
+ "api"
12
+ ],
13
+ "author": "tehacko@seznam.cz",
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/tehacko/pi-kiosk-shared.git"
18
+ },
19
+ "main": "dist/index.js",
20
+ "module": "dist/index.js",
21
+ "types": "dist/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "import": "./dist/index.js",
26
+ "require": "./dist/index.js"
27
+ },
28
+ "./analyticsExploreCaps": {
29
+ "types": "./dist/analyticsExploreCaps.d.ts",
30
+ "import": "./dist/analyticsExploreCaps.js",
31
+ "require": "./dist/analyticsExploreCaps.js"
32
+ },
33
+ "./analyticsApiTypes": {
34
+ "types": "./dist/analyticsApiTypes.d.ts",
35
+ "import": "./dist/analyticsApiTypes.js",
36
+ "require": "./dist/analyticsApiTypes.js"
37
+ },
38
+ "./analyticsEvents": {
39
+ "types": "./dist/analyticsEvents.d.ts",
40
+ "import": "./dist/analyticsEvents.js",
41
+ "require": "./dist/analyticsEvents.js"
42
+ },
43
+ "./analyticsEmitterManifest": {
44
+ "types": "./dist/analyticsEmitterManifest.d.ts",
45
+ "import": "./dist/analyticsEmitterManifest.js",
46
+ "require": "./dist/analyticsEmitterManifest.js"
47
+ },
48
+ "./crossTab": {
49
+ "types": "./dist/crossTab/index.d.ts",
50
+ "import": "./dist/crossTab/index.js",
51
+ "require": "./dist/crossTab/index.js"
52
+ },
53
+ "./analyticsDevLog": {
54
+ "types": "./dist/analyticsDevLog.d.ts",
55
+ "import": "./dist/analyticsDevLog.js",
56
+ "require": "./dist/analyticsDevLog.js"
57
+ },
58
+ "./analyticsConsentAllowlist": {
59
+ "types": "./dist/analyticsConsentAllowlist.d.ts",
60
+ "import": "./dist/analyticsConsentAllowlist.js",
61
+ "require": "./dist/analyticsConsentAllowlist.js"
62
+ },
63
+ "./analyticsConsentTier2": {
64
+ "types": "./dist/analyticsConsentTier2.d.ts",
65
+ "import": "./dist/analyticsConsentTier2.js",
66
+ "require": "./dist/analyticsConsentTier2.js"
67
+ },
68
+ "./analytics/metadataBuilders": {
69
+ "types": "./dist/analytics/metadataBuilders.d.ts",
70
+ "import": "./dist/analytics/metadataBuilders.js",
71
+ "require": "./dist/analytics/metadataBuilders.js"
72
+ },
73
+ "./analytics/missionControl": {
74
+ "types": "./dist/analytics/missionControl.d.ts",
75
+ "import": "./dist/analytics/missionControl.js",
76
+ "require": "./dist/analytics/missionControl.js"
77
+ },
78
+ "./analyticsAnonymousIdentity": {
79
+ "types": "./dist/analyticsAnonymousIdentity.d.ts",
80
+ "import": "./dist/analyticsAnonymousIdentity.js",
81
+ "require": "./dist/analyticsAnonymousIdentity.js"
82
+ },
83
+ "./analyticsEmitDedup": {
84
+ "types": "./dist/analyticsEmitDedup.d.ts",
85
+ "import": "./dist/analyticsEmitDedup.js",
86
+ "require": "./dist/analyticsEmitDedup.js"
87
+ },
88
+ "./analyticsIngestOutboxPolicy": {
89
+ "types": "./dist/analyticsIngestOutboxPolicy.d.ts",
90
+ "import": "./dist/analyticsIngestOutboxPolicy.js",
91
+ "require": "./dist/analyticsIngestOutboxPolicy.js"
92
+ },
93
+ "./clientLogRedaction": {
94
+ "types": "./dist/clientLogRedaction.d.ts",
95
+ "import": "./dist/clientLogRedaction.js",
96
+ "require": "./dist/clientLogRedaction.js"
97
+ },
98
+ "./sensitiveMetaKeys": {
99
+ "types": "./dist/sensitiveMetaKeys.d.ts",
100
+ "import": "./dist/sensitiveMetaKeys.js",
101
+ "require": "./dist/sensitiveMetaKeys.js"
102
+ },
103
+ "./logging": {
104
+ "types": "./dist/logging/index.d.ts",
105
+ "import": "./dist/logging/index.js",
106
+ "require": "./dist/logging/index.js"
107
+ },
108
+ "./logging/createClientLogger": {
109
+ "types": "./dist/logging/createClientLogger.d.ts",
110
+ "import": "./dist/logging/createClientLogger.js",
111
+ "require": "./dist/logging/createClientLogger.js"
112
+ },
113
+ "./barcode-scanner": {
114
+ "types": "./dist/barcode-scanner.d.ts",
115
+ "import": "./dist/barcode-scanner.js",
116
+ "require": "./dist/barcode-scanner.js"
117
+ },
118
+ "./loyalty/loyaltySessionHandoff": {
119
+ "types": "./dist/loyalty/loyaltySessionHandoff.d.ts",
120
+ "import": "./dist/loyalty/loyaltySessionHandoff.js",
121
+ "require": "./dist/loyalty/loyaltySessionHandoff.js"
122
+ },
123
+ "./promo/promoSessionHandoff": {
124
+ "types": "./dist/promo/promoSessionHandoff.d.ts",
125
+ "import": "./dist/promo/promoSessionHandoff.js",
126
+ "require": "./dist/promo/promoSessionHandoff.js"
127
+ },
128
+ "./promo/resolvePromoLoyaltyStack": {
129
+ "types": "./dist/promo/resolvePromoLoyaltyStack.d.ts",
130
+ "import": "./dist/promo/resolvePromoLoyaltyStack.js",
131
+ "require": "./dist/promo/resolvePromoLoyaltyStack.js"
132
+ },
133
+ "./promo/PromoCodeErrorCode": {
134
+ "types": "./dist/promo/PromoCodeErrorCode.d.ts",
135
+ "import": "./dist/promo/PromoCodeErrorCode.js",
136
+ "require": "./dist/promo/PromoCodeErrorCode.js"
137
+ },
138
+ "./promo/ApplyPromoCodeRequest": {
139
+ "types": "./dist/promo/ApplyPromoCodeRequest.d.ts",
140
+ "import": "./dist/promo/ApplyPromoCodeRequest.js",
141
+ "require": "./dist/promo/ApplyPromoCodeRequest.js"
142
+ },
143
+ "./promo/ApplyPromoCodeResponse": {
144
+ "types": "./dist/promo/ApplyPromoCodeResponse.d.ts",
145
+ "import": "./dist/promo/ApplyPromoCodeResponse.js",
146
+ "require": "./dist/promo/ApplyPromoCodeResponse.js"
147
+ },
148
+ "./promo/resolveApplyPromoEventDisplayName": {
149
+ "types": "./dist/promo/resolveApplyPromoEventDisplayName.d.ts",
150
+ "import": "./dist/promo/resolveApplyPromoEventDisplayName.js",
151
+ "require": "./dist/promo/resolveApplyPromoEventDisplayName.js"
152
+ },
153
+ "./promo/RemovePromoCodeRequest": {
154
+ "types": "./dist/promo/RemovePromoCodeRequest.d.ts",
155
+ "import": "./dist/promo/RemovePromoCodeRequest.js",
156
+ "require": "./dist/promo/RemovePromoCodeRequest.js"
157
+ },
158
+ "./promo/resolvePromotionsProgramEnabled": {
159
+ "types": "./dist/promo/resolvePromotionsProgramEnabled.d.ts",
160
+ "import": "./dist/promo/resolvePromotionsProgramEnabled.js",
161
+ "require": "./dist/promo/resolvePromotionsProgramEnabled.js"
162
+ },
163
+ "./checkout/sessionMetadataV4": {
164
+ "types": "./dist/checkout/sessionMetadataV4.d.ts",
165
+ "import": "./dist/checkout/sessionMetadataV4.js",
166
+ "require": "./dist/checkout/sessionMetadataV4.js"
167
+ },
168
+ "./checkout/sessionMetadataV5": {
169
+ "types": "./dist/checkout/sessionMetadataV5.d.ts",
170
+ "import": "./dist/checkout/sessionMetadataV5.js",
171
+ "require": "./dist/checkout/sessionMetadataV5.js"
172
+ },
173
+ "./checkout/CartLineFingerprint": {
174
+ "types": "./dist/checkout/CartLineFingerprint.d.ts",
175
+ "import": "./dist/checkout/CartLineFingerprint.js",
176
+ "require": "./dist/checkout/CartLineFingerprint.js"
177
+ },
178
+ "./order": {
179
+ "types": "./dist/order/index.d.ts",
180
+ "import": "./dist/order/index.js",
181
+ "require": "./dist/order/index.js"
182
+ },
183
+ "./order/fulfillmentContracts": {
184
+ "types": "./dist/order/fulfillmentContracts.d.ts",
185
+ "import": "./dist/order/fulfillmentContracts.js",
186
+ "require": "./dist/order/fulfillmentContracts.js"
187
+ },
188
+ "./contracts/inventory": {
189
+ "types": "./dist/contracts/inventory/index.d.ts",
190
+ "import": "./dist/contracts/inventory/index.js",
191
+ "require": "./dist/contracts/inventory/index.js"
192
+ },
193
+ "./sentry": {
194
+ "types": "./dist/sentry/initSentry.d.ts",
195
+ "import": "./dist/sentry/initSentry.js",
196
+ "require": "./dist/sentry/initSentry.js"
197
+ },
198
+ "./sentry/correlationTagBridge": {
199
+ "types": "./dist/sentry/correlationTagBridge.d.ts",
200
+ "import": "./dist/sentry/correlationTagBridge.js",
201
+ "require": "./dist/sentry/correlationTagBridge.js"
202
+ },
203
+ "./sentry/captureRateLimitBreadcrumb": {
204
+ "types": "./dist/sentry/captureRateLimitBreadcrumb.d.ts",
205
+ "import": "./dist/sentry/captureRateLimitBreadcrumb.js",
206
+ "require": "./dist/sentry/captureRateLimitBreadcrumb.js"
207
+ },
208
+ "./sentry/captureConflictBreadcrumb": {
209
+ "types": "./dist/sentry/captureConflictBreadcrumb.d.ts",
210
+ "import": "./dist/sentry/captureConflictBreadcrumb.js",
211
+ "require": "./dist/sentry/captureConflictBreadcrumb.js"
212
+ },
213
+ "./theme.css": "./src/tokens/theme.css",
214
+ "./admin-theme.css": "./src/tokens/admin-theme.css",
215
+ "./responsive.css": "./src/tokens/responsive.css",
216
+ "./responsive": {
217
+ "types": "./dist/responsive/index.d.ts",
218
+ "import": "./dist/responsive/index.js",
219
+ "require": "./dist/responsive/index.js"
220
+ },
221
+ "./ui": {
222
+ "types": "./dist/ui/index.d.ts",
223
+ "import": "./dist/ui/index.js",
224
+ "require": "./dist/ui/index.js"
225
+ },
226
+ "./ui/Icon": {
227
+ "types": "./dist/ui/Icon/index.d.ts",
228
+ "import": "./dist/ui/Icon/index.js",
229
+ "require": "./dist/ui/Icon/index.js"
230
+ },
231
+ "./ui/tvShim": {
232
+ "types": "./dist/ui/tvShim.d.ts",
233
+ "import": "./dist/ui/tvShim.js",
234
+ "require": "./dist/ui/tvShim.js"
235
+ },
236
+ "./tenant-entitlements": {
237
+ "types": "./dist/tenant-entitlements/index.d.ts",
238
+ "import": "./dist/tenant-entitlements/index.js",
239
+ "require": "./dist/tenant-entitlements/index.js"
240
+ },
241
+ "./theme": {
242
+ "types": "./dist/theme/ThemeProvider.d.ts",
243
+ "import": "./dist/theme/ThemeProvider.js",
244
+ "require": "./dist/theme/ThemeProvider.js"
245
+ }
246
+ },
247
+ "typesVersions": {
248
+ "*": {
249
+ "sensitiveMetaKeys": [
250
+ "./dist/sensitiveMetaKeys.d.ts"
251
+ ],
252
+ "clientLogRedaction": [
253
+ "./dist/clientLogRedaction.d.ts"
254
+ ],
255
+ "analyticsEvents": [
256
+ "./dist/analyticsEvents.d.ts"
257
+ ],
258
+ "analyticsApiTypes": [
259
+ "./dist/analyticsApiTypes.d.ts"
260
+ ],
261
+ "analyticsExploreCaps": [
262
+ "./dist/analyticsExploreCaps.d.ts"
263
+ ],
264
+ "barcode-scanner": [
265
+ "./dist/barcode-scanner.d.ts"
266
+ ],
267
+ "crossTab": [
268
+ "./dist/crossTab/index.d.ts"
269
+ ],
270
+ "logging": [
271
+ "./dist/logging/index.d.ts"
272
+ ],
273
+ "logging/createClientLogger": [
274
+ "./dist/logging/createClientLogger.d.ts"
275
+ ]
276
+ }
277
+ },
278
+ "peerDependencies": {
279
+ "@marsidev/react-turnstile": "^1.0.0",
280
+ "@sentry/react": "^8.0.0",
281
+ "@tanstack/react-query": "^5.0.0",
282
+ "@zxing/browser": "^0.1.5",
283
+ "@zxing/library": "^0.21.3",
284
+ "lucide-react": "^1.27.0",
285
+ "react": "^18.0.0",
286
+ "react-i18next": "^14.0.0"
287
+ },
288
+ "peerDependenciesMeta": {
289
+ "@sentry/react": {
290
+ "optional": true
291
+ },
292
+ "@marsidev/react-turnstile": {
293
+ "optional": true
294
+ },
295
+ "@zxing/browser": {
296
+ "optional": true
297
+ },
298
+ "@zxing/library": {
299
+ "optional": true
300
+ },
301
+ "react-i18next": {
302
+ "optional": true
303
+ },
304
+ "react": {
305
+ "optional": true
306
+ },
307
+ "lucide-react": {
308
+ "optional": true
309
+ },
310
+ "@tanstack/react-query": {
311
+ "optional": true
312
+ }
313
+ },
314
+ "dependencies": {
315
+ "@undecaf/zbar-wasm": "^0.11.0",
316
+ "tailwind-variants": "^0.3.0"
317
+ },
318
+ "scripts": {
319
+ "build": "tsc",
320
+ "build:clean": "npm run clean && tsc",
321
+ "dev": "tsc --watch",
322
+ "type-check": "tsc --noEmit",
323
+ "lint": "npm run type-check",
324
+ "lint:paths": "npm run type-check",
325
+ "test": "jest --config jest.config.cjs --passWithNoTests",
326
+ "test:workspace": "npm run test:workspace:package --prefix .. -- shared",
327
+ "postinstall": "node scripts/applyMonorepoPatches.mjs",
328
+ "test:watch": "jest --config jest.config.cjs --watch",
329
+ "test:coverage": "jest --config jest.config.cjs --coverage",
330
+ "storybook": "storybook dev -p 6006",
331
+ "build-storybook": "storybook build",
332
+ "clean": "rimraf dist",
333
+ "gate:main-barrel-node-safe": "node scripts/assert-main-barrel-node-safe.mjs",
334
+ "prove:cold-overlay": "node scripts/prove-pi-kiosk-shared-cold-overlay.mjs",
335
+ "gate:tokens-sync": "node scripts/gate-tokens-sync.mjs",
336
+ "gate:tokens-sync:write": "node scripts/gate-tokens-sync.mjs --write",
337
+ "gate:brand-hex": "node scripts/gate-brand-hex-ban.mjs",
338
+ "gate:brand-hex:all": "node scripts/gate-brand-hex-ban.mjs --all",
339
+ "generate:inventory-contract": "node scripts/sync-inventory-contract-enums.mjs",
340
+ "check:inventory-contract-sync": "node scripts/sync-inventory-contract-enums.mjs --check",
341
+ "gate:inventory-contract-drift": "npm run check:inventory-contract-sync && node scripts/check-inventory-contract-drift.mjs",
342
+ "check:inventory-contract-drift": "node scripts/check-inventory-contract-drift.mjs",
343
+ "gate:inventory-ops-slo-drift": "node scripts/check-inventory-ops-slo-drift.mjs",
344
+ "check:inventory-ops-slo-drift": "node scripts/check-inventory-ops-slo-drift.mjs",
345
+ "publish:local": "npm run build:clean && npm pack --pack-destination .",
346
+ "gate:publish-dist-declarations": "node scripts/gate-publish-dist-declarations.mjs",
347
+ "prepublishOnly": "npm run build:clean && npm run gate:publish-dist-declarations",
348
+ "preversion": "npm run test -- --passWithNoTests",
349
+ "postversion": "echo 'Version updated. Run git push && git push --tags manually if needed.'",
350
+ "audit:deps": "npm audit --audit-level=high",
351
+ "export:catalog": "npm run build && node scripts/exportAnalyticsCatalog.mjs"
352
+ },
353
+ "files": [
354
+ "dist",
355
+ "patches",
356
+ "src/tokens",
357
+ "scripts/applyMonorepoPatches.mjs",
358
+ "README.md"
359
+ ],
360
+ "devDependencies": {
361
+ "@marsidev/react-turnstile": "^1.1.0",
362
+ "@radix-ui/react-select": "^2.3.7",
363
+ "@sentry/react": "^8.55.0",
364
+ "@storybook/react-vite": "^9.1.20",
365
+ "@tanstack/react-query": "^5.66.0",
366
+ "@testing-library/dom": "^10.4.1",
367
+ "@testing-library/jest-dom": "^6.6.0",
368
+ "@testing-library/react": "^16.0.0",
369
+ "@testing-library/user-event": "^14.6.0",
370
+ "@types/jest": "^30.0.0",
371
+ "@types/node": "^20.19.41",
372
+ "@types/react": "^18.2.0",
373
+ "@types/react-dom": "^19.2.5",
374
+ "@zxing/browser": "^0.1.5",
375
+ "@zxing/library": "^0.21.3",
376
+ "handlebars": "^4.7.9",
377
+ "jest": "^30.4.0",
378
+ "jest-environment-jsdom": "^30.4.0",
379
+ "lucide-react": "^1.27.0",
380
+ "patch-package": "^8.0.1",
381
+ "react": "^18.3.1",
382
+ "react-dom": "^18.3.1",
383
+ "react-i18next": "^14.1.0",
384
+ "rimraf": "^6.1.3",
385
+ "sharp": "^0.34.5",
386
+ "storybook": "^9.1.20",
387
+ "ts-jest": "^29.4.11",
388
+ "typescript": "^5.0.0",
389
+ "vite": "^6.4.3"
390
+ },
391
+ "overrides": {
392
+ "babel-plugin-istanbul": "^8.0.2",
393
+ "brace-expansion": "^5.0.8",
394
+ "fast-uri": "^3.1.4",
395
+ "glob": "^13.0.6",
396
+ "jsdom": "^27.4.0",
397
+ "minimatch": "^10.2.5",
398
+ "postcss": "^8.5.23",
399
+ "test-exclude": "^8.0.0",
400
+ "uuid": "^11.1.1"
401
+ },
402
+ "engines": {
403
+ "node": ">=24.0.0"
404
+ }
405
+ }