pi-kiosk-shared 2.2.87 → 2.2.89

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 (58) hide show
  1. package/dist/analytics/tenantCommandCenter.d.ts +6 -1
  2. package/dist/analytics/tenantCommandCenter.d.ts.map +1 -1
  3. package/dist/analyticsEventDescriptions.js +10 -10
  4. package/dist/analyticsEventLabels.js +3 -3
  5. package/dist/auditEventDescriptions.js +10 -10
  6. package/dist/auditEventLabels.js +6 -6
  7. package/dist/barcode-scanner.d.ts +2 -1
  8. package/dist/barcode-scanner.d.ts.map +1 -1
  9. package/dist/barcode-scanner.js +1 -1
  10. package/dist/barcode-scanner.js.map +1 -1
  11. package/dist/errors.js +1 -1
  12. package/dist/hooks/scannerCameraConstraints.d.ts +13 -0
  13. package/dist/hooks/scannerCameraConstraints.d.ts.map +1 -0
  14. package/dist/hooks/scannerCameraConstraints.js +49 -0
  15. package/dist/hooks/scannerCameraConstraints.js.map +1 -0
  16. package/dist/hooks/selectEngine.d.ts +10 -4
  17. package/dist/hooks/selectEngine.d.ts.map +1 -1
  18. package/dist/hooks/selectEngine.js +1 -16
  19. package/dist/hooks/selectEngine.js.map +1 -1
  20. package/dist/hooks/useBarcodeScanner.d.ts +18 -1
  21. package/dist/hooks/useBarcodeScanner.d.ts.map +1 -1
  22. package/dist/hooks/useBarcodeScanner.js +208 -34
  23. package/dist/hooks/useBarcodeScanner.js.map +1 -1
  24. package/dist/hooks/zxingWasmEngine.d.ts +66 -0
  25. package/dist/hooks/zxingWasmEngine.d.ts.map +1 -0
  26. package/dist/hooks/zxingWasmEngine.js +203 -0
  27. package/dist/hooks/zxingWasmEngine.js.map +1 -0
  28. package/dist/order/fulfillmentContracts.d.ts +2 -0
  29. package/dist/order/fulfillmentContracts.d.ts.map +1 -1
  30. package/dist/permissions/permissionLabels.js +4 -4
  31. package/dist/tenant-entitlements/adminMfaEntitlement.d.ts +1 -1
  32. package/dist/tenant-entitlements/adminMfaEntitlement.d.ts.map +1 -1
  33. package/dist/tenant-entitlements/adminMfaEntitlement.js +5 -1
  34. package/dist/tenant-entitlements/adminMfaEntitlement.js.map +1 -1
  35. package/dist/tenant-entitlements/applyTenantScopeToSimpleStates.d.ts.map +1 -1
  36. package/dist/tenant-entitlements/applyTenantScopeToSimpleStates.js +3 -0
  37. package/dist/tenant-entitlements/applyTenantScopeToSimpleStates.js.map +1 -1
  38. package/dist/tenant-entitlements/capabilityEntitlementRequirements.d.ts +65 -0
  39. package/dist/tenant-entitlements/capabilityEntitlementRequirements.d.ts.map +1 -0
  40. package/dist/tenant-entitlements/capabilityEntitlementRequirements.js +1154 -0
  41. package/dist/tenant-entitlements/capabilityEntitlementRequirements.js.map +1 -0
  42. package/dist/tenant-entitlements/catalog.d.ts +1 -1
  43. package/dist/tenant-entitlements/catalog.d.ts.map +1 -1
  44. package/dist/tenant-entitlements/catalog.js +12 -4
  45. package/dist/tenant-entitlements/catalog.js.map +1 -1
  46. package/dist/tenant-entitlements/index.d.ts +3 -0
  47. package/dist/tenant-entitlements/index.d.ts.map +1 -1
  48. package/dist/tenant-entitlements/index.js +2 -0
  49. package/dist/tenant-entitlements/index.js.map +1 -1
  50. package/dist/tenant-entitlements/tenantBrandKitEntitlement.d.ts +2 -0
  51. package/dist/tenant-entitlements/tenantBrandKitEntitlement.d.ts.map +1 -0
  52. package/dist/tenant-entitlements/tenantBrandKitEntitlement.js +2 -0
  53. package/dist/tenant-entitlements/tenantBrandKitEntitlement.js.map +1 -0
  54. package/dist/tenant-entitlements/types.d.ts +4 -4
  55. package/dist/tenant-entitlements/types.d.ts.map +1 -1
  56. package/dist/tenant-entitlements/types.js +3 -2
  57. package/dist/tenant-entitlements/types.js.map +1 -1
  58. package/package.json +399 -394
package/package.json CHANGED
@@ -1,394 +1,399 @@
1
- {
2
- "name": "pi-kiosk-shared",
3
- "version": "2.2.87",
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
- "./checkout/sessionMetadataV4": {
159
- "types": "./dist/checkout/sessionMetadataV4.d.ts",
160
- "import": "./dist/checkout/sessionMetadataV4.js",
161
- "require": "./dist/checkout/sessionMetadataV4.js"
162
- },
163
- "./checkout/sessionMetadataV5": {
164
- "types": "./dist/checkout/sessionMetadataV5.d.ts",
165
- "import": "./dist/checkout/sessionMetadataV5.js",
166
- "require": "./dist/checkout/sessionMetadataV5.js"
167
- },
168
- "./checkout/CartLineFingerprint": {
169
- "types": "./dist/checkout/CartLineFingerprint.d.ts",
170
- "import": "./dist/checkout/CartLineFingerprint.js",
171
- "require": "./dist/checkout/CartLineFingerprint.js"
172
- },
173
- "./order": {
174
- "types": "./dist/order/index.d.ts",
175
- "import": "./dist/order/index.js",
176
- "require": "./dist/order/index.js"
177
- },
178
- "./order/fulfillmentContracts": {
179
- "types": "./dist/order/fulfillmentContracts.d.ts",
180
- "import": "./dist/order/fulfillmentContracts.js",
181
- "require": "./dist/order/fulfillmentContracts.js"
182
- },
183
- "./contracts/inventory": {
184
- "types": "./dist/contracts/inventory/index.d.ts",
185
- "import": "./dist/contracts/inventory/index.js",
186
- "require": "./dist/contracts/inventory/index.js"
187
- },
188
- "./sentry": {
189
- "types": "./dist/sentry/initSentry.d.ts",
190
- "import": "./dist/sentry/initSentry.js",
191
- "require": "./dist/sentry/initSentry.js"
192
- },
193
- "./sentry/correlationTagBridge": {
194
- "types": "./dist/sentry/correlationTagBridge.d.ts",
195
- "import": "./dist/sentry/correlationTagBridge.js",
196
- "require": "./dist/sentry/correlationTagBridge.js"
197
- },
198
- "./sentry/captureRateLimitBreadcrumb": {
199
- "types": "./dist/sentry/captureRateLimitBreadcrumb.d.ts",
200
- "import": "./dist/sentry/captureRateLimitBreadcrumb.js",
201
- "require": "./dist/sentry/captureRateLimitBreadcrumb.js"
202
- },
203
- "./sentry/captureConflictBreadcrumb": {
204
- "types": "./dist/sentry/captureConflictBreadcrumb.d.ts",
205
- "import": "./dist/sentry/captureConflictBreadcrumb.js",
206
- "require": "./dist/sentry/captureConflictBreadcrumb.js"
207
- },
208
- "./theme.css": "./src/tokens/theme.css",
209
- "./admin-theme.css": "./src/tokens/admin-theme.css",
210
- "./responsive.css": "./src/tokens/responsive.css",
211
- "./responsive": {
212
- "types": "./dist/responsive/index.d.ts",
213
- "import": "./dist/responsive/index.js",
214
- "require": "./dist/responsive/index.js"
215
- },
216
- "./ui": {
217
- "types": "./dist/ui/index.d.ts",
218
- "import": "./dist/ui/index.js",
219
- "require": "./dist/ui/index.js"
220
- },
221
- "./ui/Icon": {
222
- "types": "./dist/ui/Icon/index.d.ts",
223
- "import": "./dist/ui/Icon/index.js",
224
- "require": "./dist/ui/Icon/index.js"
225
- },
226
- "./ui/tvShim": {
227
- "types": "./dist/ui/tvShim.d.ts",
228
- "import": "./dist/ui/tvShim.js",
229
- "require": "./dist/ui/tvShim.js"
230
- },
231
- "./tenant-entitlements": {
232
- "types": "./dist/tenant-entitlements/index.d.ts",
233
- "import": "./dist/tenant-entitlements/index.js",
234
- "require": "./dist/tenant-entitlements/index.js"
235
- },
236
- "./theme": {
237
- "types": "./dist/theme/ThemeProvider.d.ts",
238
- "import": "./dist/theme/ThemeProvider.js",
239
- "require": "./dist/theme/ThemeProvider.js"
240
- }
241
- },
242
- "typesVersions": {
243
- "*": {
244
- "sensitiveMetaKeys": [
245
- "./dist/sensitiveMetaKeys.d.ts"
246
- ],
247
- "clientLogRedaction": [
248
- "./dist/clientLogRedaction.d.ts"
249
- ],
250
- "analyticsEvents": [
251
- "./dist/analyticsEvents.d.ts"
252
- ],
253
- "analyticsApiTypes": [
254
- "./dist/analyticsApiTypes.d.ts"
255
- ],
256
- "analyticsExploreCaps": [
257
- "./dist/analyticsExploreCaps.d.ts"
258
- ],
259
- "crossTab": [
260
- "./dist/crossTab/index.d.ts"
261
- ],
262
- "logging": [
263
- "./dist/logging/index.d.ts"
264
- ],
265
- "logging/createClientLogger": [
266
- "./dist/logging/createClientLogger.d.ts"
267
- ]
268
- }
269
- },
270
- "peerDependencies": {
271
- "@marsidev/react-turnstile": "^1.0.0",
272
- "@sentry/react": "^8.0.0",
273
- "@tanstack/react-query": "^5.0.0",
274
- "@zxing/browser": "^0.1.5",
275
- "@zxing/library": "^0.21.3",
276
- "lucide-react": "^1.27.0",
277
- "react": "^18.0.0",
278
- "react-i18next": "^14.0.0"
279
- },
280
- "peerDependenciesMeta": {
281
- "@sentry/react": {
282
- "optional": true
283
- },
284
- "@marsidev/react-turnstile": {
285
- "optional": true
286
- },
287
- "@zxing/browser": {
288
- "optional": true
289
- },
290
- "@zxing/library": {
291
- "optional": true
292
- },
293
- "react-i18next": {
294
- "optional": true
295
- },
296
- "react": {
297
- "optional": true
298
- },
299
- "lucide-react": {
300
- "optional": true
301
- },
302
- "@tanstack/react-query": {
303
- "optional": true
304
- }
305
- },
306
- "dependencies": {
307
- "tailwind-variants": "^0.3.0"
308
- },
309
- "scripts": {
310
- "build": "tsc",
311
- "build:clean": "npm run clean && tsc",
312
- "dev": "tsc --watch",
313
- "type-check": "tsc --noEmit",
314
- "lint": "npm run type-check",
315
- "lint:paths": "npm run type-check",
316
- "test": "jest --config jest.config.cjs --passWithNoTests",
317
- "test:workspace": "npm run test:workspace:package --prefix .. -- shared",
318
- "postinstall": "node scripts/applyMonorepoPatches.mjs",
319
- "test:watch": "jest --config jest.config.cjs --watch",
320
- "test:coverage": "jest --config jest.config.cjs --coverage",
321
- "storybook": "storybook dev -p 6006",
322
- "build-storybook": "storybook build",
323
- "clean": "rimraf dist",
324
- "gate:main-barrel-node-safe": "node scripts/assert-main-barrel-node-safe.mjs",
325
- "prove:cold-overlay": "node scripts/prove-pi-kiosk-shared-cold-overlay.mjs",
326
- "gate:tokens-sync": "node scripts/gate-tokens-sync.mjs",
327
- "gate:tokens-sync:write": "node scripts/gate-tokens-sync.mjs --write",
328
- "gate:brand-hex": "node scripts/gate-brand-hex-ban.mjs",
329
- "gate:brand-hex:all": "node scripts/gate-brand-hex-ban.mjs --all",
330
- "generate:inventory-contract": "node scripts/sync-inventory-contract-enums.mjs",
331
- "check:inventory-contract-sync": "node scripts/sync-inventory-contract-enums.mjs --check",
332
- "gate:inventory-contract-drift": "npm run check:inventory-contract-sync && node scripts/check-inventory-contract-drift.mjs",
333
- "check:inventory-contract-drift": "node scripts/check-inventory-contract-drift.mjs",
334
- "gate:inventory-ops-slo-drift": "node scripts/check-inventory-ops-slo-drift.mjs",
335
- "check:inventory-ops-slo-drift": "node scripts/check-inventory-ops-slo-drift.mjs",
336
- "publish:local": "npm run build:clean && npm pack --pack-destination ../",
337
- "prepublishOnly": "npm run build:clean",
338
- "preversion": "npm run test -- --passWithNoTests",
339
- "postversion": "echo 'Version updated. Run git push && git push --tags manually if needed.'",
340
- "audit:deps": "npm audit --audit-level=high",
341
- "export:catalog": "npm run build && node scripts/exportAnalyticsCatalog.mjs"
342
- },
343
- "files": [
344
- "dist",
345
- "patches",
346
- "src/tokens",
347
- "scripts/applyMonorepoPatches.mjs",
348
- "README.md"
349
- ],
350
- "devDependencies": {
351
- "@marsidev/react-turnstile": "^1.1.0",
352
- "@radix-ui/react-select": "^2.3.7",
353
- "@sentry/react": "^8.55.0",
354
- "@storybook/react-vite": "^9.1.20",
355
- "@tanstack/react-query": "^5.66.0",
356
- "@testing-library/dom": "^10.4.1",
357
- "@testing-library/jest-dom": "^6.6.0",
358
- "@testing-library/react": "^16.0.0",
359
- "@testing-library/user-event": "^14.6.0",
360
- "@types/jest": "^30.0.0",
361
- "@types/node": "^20.19.41",
362
- "@types/react": "^18.2.0",
363
- "@types/react-dom": "^19.2.5",
364
- "@zxing/browser": "^0.1.5",
365
- "@zxing/library": "^0.21.3",
366
- "handlebars": "^4.7.9",
367
- "jest": "^30.4.0",
368
- "jest-environment-jsdom": "^30.4.0",
369
- "lucide-react": "^1.27.0",
370
- "patch-package": "^8.0.1",
371
- "react": "^18.3.1",
372
- "react-dom": "^18.3.1",
373
- "react-i18next": "^14.1.0",
374
- "rimraf": "^6.1.3",
375
- "storybook": "^9.1.20",
376
- "ts-jest": "^29.4.11",
377
- "typescript": "^5.0.0",
378
- "vite": "^6.4.3"
379
- },
380
- "overrides": {
381
- "babel-plugin-istanbul": "^8.0.2",
382
- "brace-expansion": "^5.0.8",
383
- "fast-uri": "^3.1.4",
384
- "glob": "^13.0.6",
385
- "jsdom": "^27.4.0",
386
- "minimatch": "^10.2.5",
387
- "postcss": "^8.5.23",
388
- "test-exclude": "^8.0.0",
389
- "uuid": "^11.1.1"
390
- },
391
- "engines": {
392
- "node": ">=24.0.0"
393
- }
394
- }
1
+ {
2
+ "name": "pi-kiosk-shared",
3
+ "version": "2.2.89",
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
+ "./checkout/sessionMetadataV4": {
159
+ "types": "./dist/checkout/sessionMetadataV4.d.ts",
160
+ "import": "./dist/checkout/sessionMetadataV4.js",
161
+ "require": "./dist/checkout/sessionMetadataV4.js"
162
+ },
163
+ "./checkout/sessionMetadataV5": {
164
+ "types": "./dist/checkout/sessionMetadataV5.d.ts",
165
+ "import": "./dist/checkout/sessionMetadataV5.js",
166
+ "require": "./dist/checkout/sessionMetadataV5.js"
167
+ },
168
+ "./checkout/CartLineFingerprint": {
169
+ "types": "./dist/checkout/CartLineFingerprint.d.ts",
170
+ "import": "./dist/checkout/CartLineFingerprint.js",
171
+ "require": "./dist/checkout/CartLineFingerprint.js"
172
+ },
173
+ "./order": {
174
+ "types": "./dist/order/index.d.ts",
175
+ "import": "./dist/order/index.js",
176
+ "require": "./dist/order/index.js"
177
+ },
178
+ "./order/fulfillmentContracts": {
179
+ "types": "./dist/order/fulfillmentContracts.d.ts",
180
+ "import": "./dist/order/fulfillmentContracts.js",
181
+ "require": "./dist/order/fulfillmentContracts.js"
182
+ },
183
+ "./contracts/inventory": {
184
+ "types": "./dist/contracts/inventory/index.d.ts",
185
+ "import": "./dist/contracts/inventory/index.js",
186
+ "require": "./dist/contracts/inventory/index.js"
187
+ },
188
+ "./sentry": {
189
+ "types": "./dist/sentry/initSentry.d.ts",
190
+ "import": "./dist/sentry/initSentry.js",
191
+ "require": "./dist/sentry/initSentry.js"
192
+ },
193
+ "./sentry/correlationTagBridge": {
194
+ "types": "./dist/sentry/correlationTagBridge.d.ts",
195
+ "import": "./dist/sentry/correlationTagBridge.js",
196
+ "require": "./dist/sentry/correlationTagBridge.js"
197
+ },
198
+ "./sentry/captureRateLimitBreadcrumb": {
199
+ "types": "./dist/sentry/captureRateLimitBreadcrumb.d.ts",
200
+ "import": "./dist/sentry/captureRateLimitBreadcrumb.js",
201
+ "require": "./dist/sentry/captureRateLimitBreadcrumb.js"
202
+ },
203
+ "./sentry/captureConflictBreadcrumb": {
204
+ "types": "./dist/sentry/captureConflictBreadcrumb.d.ts",
205
+ "import": "./dist/sentry/captureConflictBreadcrumb.js",
206
+ "require": "./dist/sentry/captureConflictBreadcrumb.js"
207
+ },
208
+ "./theme.css": "./src/tokens/theme.css",
209
+ "./admin-theme.css": "./src/tokens/admin-theme.css",
210
+ "./responsive.css": "./src/tokens/responsive.css",
211
+ "./responsive": {
212
+ "types": "./dist/responsive/index.d.ts",
213
+ "import": "./dist/responsive/index.js",
214
+ "require": "./dist/responsive/index.js"
215
+ },
216
+ "./ui": {
217
+ "types": "./dist/ui/index.d.ts",
218
+ "import": "./dist/ui/index.js",
219
+ "require": "./dist/ui/index.js"
220
+ },
221
+ "./ui/Icon": {
222
+ "types": "./dist/ui/Icon/index.d.ts",
223
+ "import": "./dist/ui/Icon/index.js",
224
+ "require": "./dist/ui/Icon/index.js"
225
+ },
226
+ "./ui/tvShim": {
227
+ "types": "./dist/ui/tvShim.d.ts",
228
+ "import": "./dist/ui/tvShim.js",
229
+ "require": "./dist/ui/tvShim.js"
230
+ },
231
+ "./tenant-entitlements": {
232
+ "types": "./dist/tenant-entitlements/index.d.ts",
233
+ "import": "./dist/tenant-entitlements/index.js",
234
+ "require": "./dist/tenant-entitlements/index.js"
235
+ },
236
+ "./theme": {
237
+ "types": "./dist/theme/ThemeProvider.d.ts",
238
+ "import": "./dist/theme/ThemeProvider.js",
239
+ "require": "./dist/theme/ThemeProvider.js"
240
+ }
241
+ },
242
+ "typesVersions": {
243
+ "*": {
244
+ "sensitiveMetaKeys": [
245
+ "./dist/sensitiveMetaKeys.d.ts"
246
+ ],
247
+ "clientLogRedaction": [
248
+ "./dist/clientLogRedaction.d.ts"
249
+ ],
250
+ "analyticsEvents": [
251
+ "./dist/analyticsEvents.d.ts"
252
+ ],
253
+ "analyticsApiTypes": [
254
+ "./dist/analyticsApiTypes.d.ts"
255
+ ],
256
+ "analyticsExploreCaps": [
257
+ "./dist/analyticsExploreCaps.d.ts"
258
+ ],
259
+ "barcode-scanner": [
260
+ "./dist/barcode-scanner.d.ts"
261
+ ],
262
+ "crossTab": [
263
+ "./dist/crossTab/index.d.ts"
264
+ ],
265
+ "logging": [
266
+ "./dist/logging/index.d.ts"
267
+ ],
268
+ "logging/createClientLogger": [
269
+ "./dist/logging/createClientLogger.d.ts"
270
+ ]
271
+ }
272
+ },
273
+ "peerDependencies": {
274
+ "@marsidev/react-turnstile": "^1.0.0",
275
+ "@sentry/react": "^8.0.0",
276
+ "@tanstack/react-query": "^5.0.0",
277
+ "@zxing/browser": "^0.1.5",
278
+ "@zxing/library": "^0.21.3",
279
+ "lucide-react": "^1.27.0",
280
+ "react": "^18.0.0",
281
+ "react-i18next": "^14.0.0"
282
+ },
283
+ "peerDependenciesMeta": {
284
+ "@sentry/react": {
285
+ "optional": true
286
+ },
287
+ "@marsidev/react-turnstile": {
288
+ "optional": true
289
+ },
290
+ "@zxing/browser": {
291
+ "optional": true
292
+ },
293
+ "@zxing/library": {
294
+ "optional": true
295
+ },
296
+ "react-i18next": {
297
+ "optional": true
298
+ },
299
+ "react": {
300
+ "optional": true
301
+ },
302
+ "lucide-react": {
303
+ "optional": true
304
+ },
305
+ "@tanstack/react-query": {
306
+ "optional": true
307
+ }
308
+ },
309
+ "dependencies": {
310
+ "tailwind-variants": "^0.3.0",
311
+ "zxing-wasm": "^3.1.3"
312
+ },
313
+ "scripts": {
314
+ "build": "tsc",
315
+ "build:clean": "npm run clean && tsc",
316
+ "dev": "tsc --watch",
317
+ "type-check": "tsc --noEmit",
318
+ "lint": "npm run type-check",
319
+ "lint:paths": "npm run type-check",
320
+ "test": "jest --config jest.config.cjs --passWithNoTests",
321
+ "test:workspace": "npm run test:workspace:package --prefix .. -- shared",
322
+ "postinstall": "node scripts/applyMonorepoPatches.mjs",
323
+ "test:watch": "jest --config jest.config.cjs --watch",
324
+ "test:coverage": "jest --config jest.config.cjs --coverage",
325
+ "storybook": "storybook dev -p 6006",
326
+ "build-storybook": "storybook build",
327
+ "clean": "rimraf dist",
328
+ "gate:main-barrel-node-safe": "node scripts/assert-main-barrel-node-safe.mjs",
329
+ "prove:cold-overlay": "node scripts/prove-pi-kiosk-shared-cold-overlay.mjs",
330
+ "gate:tokens-sync": "node scripts/gate-tokens-sync.mjs",
331
+ "gate:tokens-sync:write": "node scripts/gate-tokens-sync.mjs --write",
332
+ "gate:brand-hex": "node scripts/gate-brand-hex-ban.mjs",
333
+ "gate:brand-hex:all": "node scripts/gate-brand-hex-ban.mjs --all",
334
+ "generate:inventory-contract": "node scripts/sync-inventory-contract-enums.mjs",
335
+ "check:inventory-contract-sync": "node scripts/sync-inventory-contract-enums.mjs --check",
336
+ "gate:inventory-contract-drift": "npm run check:inventory-contract-sync && node scripts/check-inventory-contract-drift.mjs",
337
+ "check:inventory-contract-drift": "node scripts/check-inventory-contract-drift.mjs",
338
+ "gate:inventory-ops-slo-drift": "node scripts/check-inventory-ops-slo-drift.mjs",
339
+ "check:inventory-ops-slo-drift": "node scripts/check-inventory-ops-slo-drift.mjs",
340
+ "publish:local": "npm run build:clean && npm pack --pack-destination ../",
341
+ "prepublishOnly": "npm run build:clean",
342
+ "preversion": "npm run test -- --passWithNoTests",
343
+ "postversion": "echo 'Version updated. Run git push && git push --tags manually if needed.'",
344
+ "audit:deps": "npm audit --audit-level=high",
345
+ "export:catalog": "npm run build && node scripts/exportAnalyticsCatalog.mjs"
346
+ },
347
+ "files": [
348
+ "dist",
349
+ "patches",
350
+ "src/tokens",
351
+ "scripts/applyMonorepoPatches.mjs",
352
+ "README.md"
353
+ ],
354
+ "devDependencies": {
355
+ "@marsidev/react-turnstile": "^1.1.0",
356
+ "@radix-ui/react-select": "^2.3.7",
357
+ "@sentry/react": "^8.55.0",
358
+ "@storybook/react-vite": "^9.1.20",
359
+ "@tanstack/react-query": "^5.66.0",
360
+ "@testing-library/dom": "^10.4.1",
361
+ "@testing-library/jest-dom": "^6.6.0",
362
+ "@testing-library/react": "^16.0.0",
363
+ "@testing-library/user-event": "^14.6.0",
364
+ "@types/jest": "^30.0.0",
365
+ "@types/node": "^20.19.41",
366
+ "@types/react": "^18.2.0",
367
+ "@types/react-dom": "^19.2.5",
368
+ "@zxing/browser": "^0.1.5",
369
+ "@zxing/library": "^0.21.3",
370
+ "handlebars": "^4.7.9",
371
+ "jest": "^30.4.0",
372
+ "jest-environment-jsdom": "^30.4.0",
373
+ "lucide-react": "^1.27.0",
374
+ "patch-package": "^8.0.1",
375
+ "react": "^18.3.1",
376
+ "react-dom": "^18.3.1",
377
+ "react-i18next": "^14.1.0",
378
+ "rimraf": "^6.1.3",
379
+ "storybook": "^9.1.20",
380
+ "ts-jest": "^29.4.11",
381
+ "typescript": "^5.0.0",
382
+ "vite": "^6.4.3",
383
+ "zxing-wasm": "^3.1.3"
384
+ },
385
+ "overrides": {
386
+ "babel-plugin-istanbul": "^8.0.2",
387
+ "brace-expansion": "^5.0.8",
388
+ "fast-uri": "^3.1.4",
389
+ "glob": "^13.0.6",
390
+ "jsdom": "^27.4.0",
391
+ "minimatch": "^10.2.5",
392
+ "postcss": "^8.5.23",
393
+ "test-exclude": "^8.0.0",
394
+ "uuid": "^11.1.1"
395
+ },
396
+ "engines": {
397
+ "node": ">=24.0.0"
398
+ }
399
+ }