playbook_ui 15.5.0.pre.alpha.play265012819 → 15.5.0.pre.alpha.play265012854

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7274f6a2b091dc7d9718a017466fe6391fc6cee3d00e061ed60950ce7317c27d
4
- data.tar.gz: 36a7d0eaf4c6b1664edd536706c51da8a45b0f5bd9697410e1641453518f5a60
3
+ metadata.gz: cf34a7cbdf05a7626ce21c8db3a61e0c932c67f2099d9b9ee04c04341152e063
4
+ data.tar.gz: 11a9f58fc3239cee3508cddf0ad875712e3192de67af4d2b147bdd4770f79e53
5
5
  SHA512:
6
- metadata.gz: 225961e5b905c1feba56f35f1ae44f735c732483bce2cbd485bcaefa42dedef92ade6478d185b12e683e61cc1ebe202406a9377416fa14b28a2ce11826719b17
7
- data.tar.gz: 496f6a11b737c6c24c11c126eba020684b63ca078deecc3f8c8b99339ebb73677c137679b0630ab9abae1198edead577e3b77ce2929a9236e0b621cea79b7e8e
6
+ metadata.gz: 641034c37e83b9fb00058a69de651804af40d9880909344cd8678cabe625b1f791b4224b2e94df4537b79c699aa9fd4dc165a09d4679a1d5cd663778d372aea6
7
+ data.tar.gz: 3eff1276d02c1a41a332d770604284b7770b7b4c3c771febb3cc1dd47b2d11c248574498d064e7881c7b6c106eac2c3fa71b2bd1edba2ba83946b2b2d6611053
@@ -22,11 +22,32 @@ export const deprecatedKitWarning = (
22
22
  kitName: string,
23
23
  message?: string
24
24
  ): void => {
25
- // Only run in development mode, not in production or test
26
- if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test') {
25
+ // Skip in test environments (Jest sets NODE_ENV to 'test')
26
+ if (typeof process !== 'undefined' && process.env?.NODE_ENV === 'test') {
27
27
  return;
28
28
  }
29
29
 
30
+ // Skip if production mode was set at build time
31
+ if (typeof process !== 'undefined' && process.env?.NODE_ENV === 'production') {
32
+ return;
33
+ }
34
+
35
+ // Skip if this looks like a production build (minified, no sourcemaps in browser)
36
+ // This helps catch cases where the package was built for production but consumed in dev
37
+ if (typeof window !== 'undefined') {
38
+ // Check for common production indicators
39
+ const isMinified = !new Error().stack?.includes('.ts:') && !new Error().stack?.includes('.tsx:');
40
+ // Allow warnings even in built packages when consumed locally (localhost)
41
+ const isLocalhost = window.location?.hostname === 'localhost' ||
42
+ window.location?.hostname === '127.0.0.1' ||
43
+ window.location?.hostname === '';
44
+
45
+ // Only skip if it's minified AND not on localhost
46
+ if (isMinified && !isLocalhost) {
47
+ return;
48
+ }
49
+ }
50
+
30
51
  // Only warn once per kit per page load
31
52
  if (warnedKits.has(kitName)) {
32
53
  return;