@donotdev/core 0.0.34 → 0.0.35

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/empty.js CHANGED
@@ -1,5 +1,19 @@
1
1
  /**
2
2
  * @fileoverview Empty placeholder for optional features
3
- * @description Used by Next.js/Turbopack resolution to alias missing optional features
3
+ * @description Used by Vite/Next.js/Turbopack resolution to alias missing optional features.
4
+ * Returns a Proxy that silently absorbs any property access or function call,
5
+ * preventing runtime errors when consumer code tries to use missing optional deps.
4
6
  */
5
- export default {};
7
+ const handler = {
8
+ get(_, prop) {
9
+ // Support Promise-like: import('shiki').then(m => m.highlight(...)) — no-op
10
+ if (prop === 'then') return undefined;
11
+ return noop;
12
+ },
13
+ apply() {
14
+ return noop;
15
+ },
16
+ };
17
+ const noop = new Proxy(function () {}, handler);
18
+ export default noop;
19
+ export { noop as __esModule };
package/index.d.ts CHANGED
@@ -16590,8 +16590,8 @@ declare function clearPartnerCache(): void;
16590
16590
  declare function getPartnerCacheStatus(): {
16591
16591
  authPartnersCached: boolean;
16592
16592
  oauthPartnersCached: boolean;
16593
- authPartners: ("apple" | "discord" | "emailLink" | "facebook" | "github" | "google" | "linkedin" | "microsoft" | "password" | "reddit" | "spotify" | "twitch" | "twitter" | "yahoo")[] | null;
16594
- oauthPartners: ("discord" | "github" | "google" | "linkedin" | "reddit" | "spotify" | "twitch" | "twitter" | "notion" | "slack" | "medium" | "mastodon" | "youtube")[] | null;
16593
+ authPartners: ("password" | "apple" | "discord" | "emailLink" | "facebook" | "github" | "google" | "linkedin" | "microsoft" | "reddit" | "spotify" | "twitch" | "twitter" | "yahoo")[] | null;
16594
+ oauthPartners: ("medium" | "discord" | "github" | "google" | "linkedin" | "reddit" | "spotify" | "twitch" | "twitter" | "notion" | "slack" | "mastodon" | "youtube")[] | null;
16595
16595
  };
16596
16596
  /**
16597
16597
  * Get AuthPartnerId from Firebase provider ID
@@ -24608,7 +24608,7 @@ interface UseBreathingTimerProps {
24608
24608
  * @author AMBROISE PARK Consulting
24609
24609
  */
24610
24610
  declare function useBreathingTimer({ duration, onComplete, }: UseBreathingTimerProps): {
24611
- status: "active" | "idle" | "paused" | "complete";
24611
+ status: "paused" | "idle" | "active" | "complete";
24612
24612
  timeRemaining: number;
24613
24613
  start: () => void;
24614
24614
  togglePause: () => void;