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 +4 -4
- data/app/pb_kits/playbook/utilities/deprecated.ts +23 -2
- data/dist/chunks/_typeahead-EauOtKPs.js +6 -0
- data/dist/chunks/vendor.js +2 -2
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +3 -3
- data/dist/chunks/_typeahead-CLnLoImA.js +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cf34a7cbdf05a7626ce21c8db3a61e0c932c67f2099d9b9ee04c04341152e063
|
|
4
|
+
data.tar.gz: 11a9f58fc3239cee3508cddf0ad875712e3192de67af4d2b147bdd4770f79e53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
//
|
|
26
|
-
if (process
|
|
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;
|