@tenerife.music/ui 1.2.1 → 2.0.0

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.
@@ -592,7 +592,7 @@ var tailwindThemeColors = {
592
592
  };
593
593
 
594
594
  // src/FOUNDATION/tokens/motion/v2.ts
595
- var motionV2Durations = {
595
+ var motionDurations = {
596
596
  fast: "150ms",
597
597
  // Quick interactions
598
598
  normal: "250ms",
@@ -602,7 +602,7 @@ var motionV2Durations = {
602
602
  reduced: "0ms"
603
603
  // For prefers-reduced-motion
604
604
  };
605
- var motionV2Easings = {
605
+ var motionEasings = {
606
606
  soft: "cubic-bezier(0.22, 1, 0.36, 1)",
607
607
  // Gentle, smooth
608
608
  standard: "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -610,141 +610,29 @@ var motionV2Easings = {
610
610
  emphasized: "cubic-bezier(0.2, 0, 0, 1)"
611
611
  // Strong, decisive
612
612
  };
613
- var motionV2Transitions = {
614
- fast: `${motionV2Durations.fast} ${motionV2Easings.standard}`,
615
- normal: `${motionV2Durations.normal} ${motionV2Easings.standard}`,
616
- slow: `${motionV2Durations.slow} ${motionV2Easings.emphasized}`,
617
- soft: `${motionV2Durations.normal} ${motionV2Easings.soft}`,
618
- reduced: `${motionV2Durations.reduced} linear`
619
- };
620
- var motionV2CSSVariables = {
621
- // Durations
622
- "--motion-duration-fast": motionV2Durations.fast,
623
- "--motion-duration-normal": motionV2Durations.normal,
624
- "--motion-duration-slow": motionV2Durations.slow,
625
- "--motion-duration-reduced": motionV2Durations.reduced,
626
- // Easings
627
- "--motion-easing-soft": motionV2Easings.soft,
628
- "--motion-easing-standard": motionV2Easings.standard,
629
- "--motion-easing-emphasized": motionV2Easings.emphasized,
630
- // Transitions
631
- "--motion-transition-fast": motionV2Transitions.fast,
632
- "--motion-transition-normal": motionV2Transitions.normal,
633
- "--motion-transition-slow": motionV2Transitions.slow,
634
- "--motion-transition-soft": motionV2Transitions.soft,
635
- "--motion-transition-reduced": motionV2Transitions.reduced
636
- };
637
-
638
- // src/FOUNDATION/tokens/motion.ts
639
- var durations = {
640
- instant: "0ms",
641
- fast: "150ms",
642
- // 1.5 × base (quick interactions)
643
- normal: "300ms",
644
- // 3 × base (default)
645
- slow: "500ms",
646
- // 5 × base (emphasized)
647
- slower: "700ms",
648
- // 7 × base (very emphasized)
649
- slowest: "1000ms",
650
- // 10 × base (maximum emphasis)
651
- // Additional granular durations
652
- "75": "75ms",
653
- // Ultra-fast
654
- "100": "100ms",
655
- // Base unit
656
- "200": "200ms",
657
- // Fast-normal
658
- "250": "250ms",
659
- // Between fast and normal
660
- "400": "400ms",
661
- // Between normal and slow
662
- "600": "600ms",
663
- // Between slow and slower
664
- "800": "800ms"
665
- // Between slower and slowest
666
- };
667
- var easings = {
668
- // Linear (no easing)
669
- linear: "linear",
670
- // Ease-in (accelerate) - cubic-bezier
671
- "ease-in": "cubic-bezier(0.4, 0, 1, 1)",
672
- // Ease-out (decelerate) - recommended for most UI - cubic-bezier
673
- "ease-out": "cubic-bezier(0, 0, 0.2, 1)",
674
- // Ease-in-out (accelerate and decelerate)
675
- "ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)",
676
- // Advanced easing functions
677
- bounce: "cubic-bezier(0.68, -0.55, 0.265, 1.55)",
678
- elastic: "cubic-bezier(0.175, 0.885, 0.32, 1.275)",
679
- // Material Design easing
680
- "ease-out-cubic": "cubic-bezier(0.215, 0.61, 0.355, 1)",
681
- "ease-in-cubic": "cubic-bezier(0.55, 0.055, 0.675, 0.19)",
682
- "ease-in-out-cubic": "cubic-bezier(0.645, 0.045, 0.355, 1)"
683
- };
684
- var transitions = {
685
- // Fast transitions (quick interactions)
686
- fast: `${durations.fast} ${easings["ease-out"]}`,
687
- "fast-in": `${durations.fast} ${easings["ease-in"]}`,
688
- "fast-out": `${durations.fast} ${easings["ease-out"]}`,
689
- "fast-in-out": `${durations.fast} ${easings["ease-in-out"]}`,
690
- // Normal transitions (default)
691
- normal: `${durations.normal} ${easings["ease-in-out"]}`,
692
- "normal-in": `${durations.normal} ${easings["ease-in"]}`,
693
- "normal-out": `${durations.normal} ${easings["ease-out"]}`,
694
- "normal-in-out": `${durations.normal} ${easings["ease-in-out"]}`,
695
- // Slow transitions (emphasized)
696
- slow: `${durations.slow} ${easings["ease-in-out"]}`,
697
- "slow-in": `${durations.slow} ${easings["ease-in"]}`,
698
- "slow-out": `${durations.slow} ${easings["ease-out"]}`,
699
- "slow-in-out": `${durations.slow} ${easings["ease-in-out"]}`,
700
- // Special transitions
701
- bounce: `${durations.normal} ${easings.bounce}`,
702
- elastic: `${durations.slow} ${easings.elastic}`,
703
- // Default (normal)
704
- DEFAULT: `${durations.normal} ${easings["ease-in-out"]}`
613
+ var motionTransitions = {
614
+ fast: `${motionDurations.fast} ${motionEasings.standard}`,
615
+ normal: `${motionDurations.normal} ${motionEasings.standard}`,
616
+ slow: `${motionDurations.slow} ${motionEasings.emphasized}`,
617
+ soft: `${motionDurations.normal} ${motionEasings.soft}`,
618
+ reduced: `${motionDurations.reduced} linear`
705
619
  };
706
620
  var motionCSSVariables = {
707
621
  // Durations
708
- "--duration-instant": durations.instant,
709
- "--duration-fast": durations.fast,
710
- "--duration-normal": durations.normal,
711
- "--duration-slow": durations.slow,
712
- "--duration-slower": durations.slower,
713
- "--duration-slowest": durations.slowest,
714
- // Additional granular durations
715
- "--duration-75": durations["75"],
716
- "--duration-100": durations["100"],
717
- "--duration-200": durations["200"],
718
- "--duration-250": durations["250"],
719
- "--duration-400": durations["400"],
720
- "--duration-600": durations["600"],
721
- "--duration-800": durations["800"],
622
+ "--motion-duration-fast": motionDurations.fast,
623
+ "--motion-duration-normal": motionDurations.normal,
624
+ "--motion-duration-slow": motionDurations.slow,
625
+ "--motion-duration-reduced": motionDurations.reduced,
722
626
  // Easings
723
- "--ease-linear": easings.linear,
724
- "--ease-in": easings["ease-in"],
725
- "--ease-out": easings["ease-out"],
726
- "--ease-in-out": easings["ease-in-out"],
727
- "--ease-bounce": easings.bounce,
728
- "--ease-elastic": easings.elastic,
729
- "--ease-out-cubic": easings["ease-out-cubic"],
730
- "--ease-in-cubic": easings["ease-in-cubic"],
731
- "--ease-in-out-cubic": easings["ease-in-out-cubic"],
627
+ "--motion-easing-soft": motionEasings.soft,
628
+ "--motion-easing-standard": motionEasings.standard,
629
+ "--motion-easing-emphasized": motionEasings.emphasized,
732
630
  // Transitions
733
- "--transition-fast": transitions.fast,
734
- "--transition-normal": transitions.normal,
735
- "--transition-slow": transitions.slow,
736
- "--transition-default": transitions.DEFAULT,
737
- "--transition-fast-in": transitions["fast-in"],
738
- "--transition-fast-out": transitions["fast-out"],
739
- "--transition-fast-in-out": transitions["fast-in-out"],
740
- "--transition-normal-in": transitions["normal-in"],
741
- "--transition-normal-out": transitions["normal-out"],
742
- "--transition-normal-in-out": transitions["normal-in-out"],
743
- "--transition-slow-in": transitions["slow-in"],
744
- "--transition-slow-out": transitions["slow-out"],
745
- "--transition-slow-in-out": transitions["slow-in-out"],
746
- "--transition-bounce": transitions.bounce,
747
- "--transition-elastic": transitions.elastic
631
+ "--motion-transition-fast": motionTransitions.fast,
632
+ "--motion-transition-normal": motionTransitions.normal,
633
+ "--motion-transition-slow": motionTransitions.slow,
634
+ "--motion-transition-soft": motionTransitions.soft,
635
+ "--motion-transition-reduced": motionTransitions.reduced
748
636
  };
749
637
 
750
638
  // src/FOUNDATION/tokens/radius.ts
@@ -2848,21 +2736,6 @@ function updateCSSVariablesFromTokens(mode) {
2848
2736
  console.error("[Theme] Failed to get merged tokens:", error);
2849
2737
  return;
2850
2738
  }
2851
- const secondary800 = tokens.secondaryColors[800];
2852
- fetch("http://127.0.0.1:7243/ingest/ff5d1e20-0815-4ca0-af82-fcbd3cfa35b1", {
2853
- method: "POST",
2854
- headers: { "Content-Type": "application/json" },
2855
- body: JSON.stringify({
2856
- location: "applyMode.ts:188",
2857
- message: "tokens retrieved",
2858
- data: { hasTokens: !!tokens, secondary800, hasSecondary800: !!secondary800 },
2859
- timestamp: Date.now(),
2860
- sessionId: "debug-session",
2861
- runId: "run1",
2862
- hypothesisId: "B"
2863
- })
2864
- }).catch(() => {
2865
- });
2866
2739
  const {
2867
2740
  primaryColors: primaryColors2,
2868
2741
  accentColors: accentColors2,
@@ -3024,13 +2897,6 @@ function updateCSSVariablesFromTokens(mode) {
3024
2897
  } catch (error) {
3025
2898
  console.error("[Theme] Failed to set motion CSS variables:", error);
3026
2899
  }
3027
- try {
3028
- Object.entries(motionV2CSSVariables).forEach(([key, value]) => {
3029
- root.style.setProperty(key, value);
3030
- });
3031
- } catch (error) {
3032
- console.error("[Theme] Failed to set motion V2 CSS variables:", error);
3033
- }
3034
2900
  try {
3035
2901
  Object.entries(radiusCSSVariables).forEach(([key, value]) => {
3036
2902
  root.style.setProperty(key, value);
@@ -3615,23 +3481,6 @@ function ThemeProvider({
3615
3481
  }
3616
3482
  }, [reduceMotionOverride, enableAnimationsOverride]);
3617
3483
  React__default.default.useEffect(() => {
3618
- if (typeof document !== "undefined" && document.documentElement) {
3619
- const beforeApply = document.documentElement.style.getPropertyValue("--tm-primary");
3620
- fetch("http://127.0.0.1:7243/ingest/ff5d1e20-0815-4ca0-af82-fcbd3cfa35b1", {
3621
- method: "POST",
3622
- headers: { "Content-Type": "application/json" },
3623
- body: JSON.stringify({
3624
- location: "ThemeProvider.tsx:281",
3625
- message: "ThemeProvider useEffect before applyDocumentTheme",
3626
- data: { beforeValue: beforeApply, hasValue: !!beforeApply },
3627
- timestamp: Date.now(),
3628
- sessionId: "debug-session",
3629
- runId: "run1",
3630
- hypothesisId: "C"
3631
- })
3632
- }).catch(() => {
3633
- });
3634
- }
3635
3484
  const initialMode = getInitialMode(defaultMode, storageKey, enableSystem);
3636
3485
  const initialTheme = getInitialTheme(defaultTheme2, themeStorageKey);
3637
3486
  const initialBrand = getInitialBrand(defaultBrand, brandStorageKey);
@@ -3639,27 +3488,6 @@ function ThemeProvider({
3639
3488
  setThemeState(initialTheme);
3640
3489
  setBrandState(initialBrand);
3641
3490
  applyDocumentTheme(initialMode, initialTheme, initialBrand);
3642
- if (typeof document !== "undefined" && document.documentElement) {
3643
- setTimeout(() => {
3644
- if (typeof document !== "undefined" && document.documentElement) {
3645
- const afterApply = document.documentElement.style.getPropertyValue("--tm-primary");
3646
- fetch("http://127.0.0.1:7243/ingest/ff5d1e20-0815-4ca0-af82-fcbd3cfa35b1", {
3647
- method: "POST",
3648
- headers: { "Content-Type": "application/json" },
3649
- body: JSON.stringify({
3650
- location: "ThemeProvider.tsx:289",
3651
- message: "ThemeProvider useEffect after applyDocumentTheme",
3652
- data: { afterValue: afterApply, hasValue: !!afterApply },
3653
- timestamp: Date.now(),
3654
- sessionId: "debug-session",
3655
- runId: "run1",
3656
- hypothesisId: "C"
3657
- })
3658
- }).catch(() => {
3659
- });
3660
- }
3661
- }, 100);
3662
- }
3663
3491
  persistMode(initialMode, storageKey);
3664
3492
  persistTheme(initialTheme, themeStorageKey);
3665
3493
  persistBrand(initialBrand, brandStorageKey);
@@ -3688,45 +3516,7 @@ function ThemeProvider({
3688
3516
  return () => mediaQuery.removeEventListener("change", handleChange);
3689
3517
  }, [enableSystem, storageKey, setMode]);
3690
3518
  React__default.default.useEffect(() => {
3691
- if (typeof document !== "undefined" && document.documentElement) {
3692
- const beforeChange = document.documentElement.style.getPropertyValue("--tm-primary");
3693
- fetch("http://127.0.0.1:7243/ingest/ff5d1e20-0815-4ca0-af82-fcbd3cfa35b1", {
3694
- method: "POST",
3695
- headers: { "Content-Type": "application/json" },
3696
- body: JSON.stringify({
3697
- location: "ThemeProvider.tsx:325",
3698
- message: "ThemeProvider useEffect mode/theme/brand change",
3699
- data: { mode, theme, brand, beforeValue: beforeChange, hasValue: !!beforeChange },
3700
- timestamp: Date.now(),
3701
- sessionId: "debug-session",
3702
- runId: "run1",
3703
- hypothesisId: "C"
3704
- })
3705
- }).catch(() => {
3706
- });
3707
- }
3708
3519
  applyDocumentTheme(mode, theme, brand);
3709
- if (typeof document !== "undefined" && document.documentElement) {
3710
- setTimeout(() => {
3711
- if (typeof document !== "undefined" && document.documentElement) {
3712
- const afterChange = document.documentElement.style.getPropertyValue("--tm-primary");
3713
- fetch("http://127.0.0.1:7243/ingest/ff5d1e20-0815-4ca0-af82-fcbd3cfa35b1", {
3714
- method: "POST",
3715
- headers: { "Content-Type": "application/json" },
3716
- body: JSON.stringify({
3717
- location: "ThemeProvider.tsx:327",
3718
- message: "ThemeProvider useEffect after applyDocumentTheme change",
3719
- data: { afterValue: afterChange, hasValue: !!afterChange },
3720
- timestamp: Date.now(),
3721
- sessionId: "debug-session",
3722
- runId: "run1",
3723
- hypothesisId: "C"
3724
- })
3725
- }).catch(() => {
3726
- });
3727
- }
3728
- }, 100);
3729
- }
3730
3520
  }, [mode, theme, brand]);
3731
3521
  const value = React__default.default.useMemo(
3732
3522
  () => ({
@@ -586,7 +586,7 @@ var tailwindThemeColors = {
586
586
  };
587
587
 
588
588
  // src/FOUNDATION/tokens/motion/v2.ts
589
- var motionV2Durations = {
589
+ var motionDurations = {
590
590
  fast: "150ms",
591
591
  // Quick interactions
592
592
  normal: "250ms",
@@ -596,7 +596,7 @@ var motionV2Durations = {
596
596
  reduced: "0ms"
597
597
  // For prefers-reduced-motion
598
598
  };
599
- var motionV2Easings = {
599
+ var motionEasings = {
600
600
  soft: "cubic-bezier(0.22, 1, 0.36, 1)",
601
601
  // Gentle, smooth
602
602
  standard: "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -604,141 +604,29 @@ var motionV2Easings = {
604
604
  emphasized: "cubic-bezier(0.2, 0, 0, 1)"
605
605
  // Strong, decisive
606
606
  };
607
- var motionV2Transitions = {
608
- fast: `${motionV2Durations.fast} ${motionV2Easings.standard}`,
609
- normal: `${motionV2Durations.normal} ${motionV2Easings.standard}`,
610
- slow: `${motionV2Durations.slow} ${motionV2Easings.emphasized}`,
611
- soft: `${motionV2Durations.normal} ${motionV2Easings.soft}`,
612
- reduced: `${motionV2Durations.reduced} linear`
613
- };
614
- var motionV2CSSVariables = {
615
- // Durations
616
- "--motion-duration-fast": motionV2Durations.fast,
617
- "--motion-duration-normal": motionV2Durations.normal,
618
- "--motion-duration-slow": motionV2Durations.slow,
619
- "--motion-duration-reduced": motionV2Durations.reduced,
620
- // Easings
621
- "--motion-easing-soft": motionV2Easings.soft,
622
- "--motion-easing-standard": motionV2Easings.standard,
623
- "--motion-easing-emphasized": motionV2Easings.emphasized,
624
- // Transitions
625
- "--motion-transition-fast": motionV2Transitions.fast,
626
- "--motion-transition-normal": motionV2Transitions.normal,
627
- "--motion-transition-slow": motionV2Transitions.slow,
628
- "--motion-transition-soft": motionV2Transitions.soft,
629
- "--motion-transition-reduced": motionV2Transitions.reduced
630
- };
631
-
632
- // src/FOUNDATION/tokens/motion.ts
633
- var durations = {
634
- instant: "0ms",
635
- fast: "150ms",
636
- // 1.5 × base (quick interactions)
637
- normal: "300ms",
638
- // 3 × base (default)
639
- slow: "500ms",
640
- // 5 × base (emphasized)
641
- slower: "700ms",
642
- // 7 × base (very emphasized)
643
- slowest: "1000ms",
644
- // 10 × base (maximum emphasis)
645
- // Additional granular durations
646
- "75": "75ms",
647
- // Ultra-fast
648
- "100": "100ms",
649
- // Base unit
650
- "200": "200ms",
651
- // Fast-normal
652
- "250": "250ms",
653
- // Between fast and normal
654
- "400": "400ms",
655
- // Between normal and slow
656
- "600": "600ms",
657
- // Between slow and slower
658
- "800": "800ms"
659
- // Between slower and slowest
660
- };
661
- var easings = {
662
- // Linear (no easing)
663
- linear: "linear",
664
- // Ease-in (accelerate) - cubic-bezier
665
- "ease-in": "cubic-bezier(0.4, 0, 1, 1)",
666
- // Ease-out (decelerate) - recommended for most UI - cubic-bezier
667
- "ease-out": "cubic-bezier(0, 0, 0.2, 1)",
668
- // Ease-in-out (accelerate and decelerate)
669
- "ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)",
670
- // Advanced easing functions
671
- bounce: "cubic-bezier(0.68, -0.55, 0.265, 1.55)",
672
- elastic: "cubic-bezier(0.175, 0.885, 0.32, 1.275)",
673
- // Material Design easing
674
- "ease-out-cubic": "cubic-bezier(0.215, 0.61, 0.355, 1)",
675
- "ease-in-cubic": "cubic-bezier(0.55, 0.055, 0.675, 0.19)",
676
- "ease-in-out-cubic": "cubic-bezier(0.645, 0.045, 0.355, 1)"
677
- };
678
- var transitions = {
679
- // Fast transitions (quick interactions)
680
- fast: `${durations.fast} ${easings["ease-out"]}`,
681
- "fast-in": `${durations.fast} ${easings["ease-in"]}`,
682
- "fast-out": `${durations.fast} ${easings["ease-out"]}`,
683
- "fast-in-out": `${durations.fast} ${easings["ease-in-out"]}`,
684
- // Normal transitions (default)
685
- normal: `${durations.normal} ${easings["ease-in-out"]}`,
686
- "normal-in": `${durations.normal} ${easings["ease-in"]}`,
687
- "normal-out": `${durations.normal} ${easings["ease-out"]}`,
688
- "normal-in-out": `${durations.normal} ${easings["ease-in-out"]}`,
689
- // Slow transitions (emphasized)
690
- slow: `${durations.slow} ${easings["ease-in-out"]}`,
691
- "slow-in": `${durations.slow} ${easings["ease-in"]}`,
692
- "slow-out": `${durations.slow} ${easings["ease-out"]}`,
693
- "slow-in-out": `${durations.slow} ${easings["ease-in-out"]}`,
694
- // Special transitions
695
- bounce: `${durations.normal} ${easings.bounce}`,
696
- elastic: `${durations.slow} ${easings.elastic}`,
697
- // Default (normal)
698
- DEFAULT: `${durations.normal} ${easings["ease-in-out"]}`
607
+ var motionTransitions = {
608
+ fast: `${motionDurations.fast} ${motionEasings.standard}`,
609
+ normal: `${motionDurations.normal} ${motionEasings.standard}`,
610
+ slow: `${motionDurations.slow} ${motionEasings.emphasized}`,
611
+ soft: `${motionDurations.normal} ${motionEasings.soft}`,
612
+ reduced: `${motionDurations.reduced} linear`
699
613
  };
700
614
  var motionCSSVariables = {
701
615
  // Durations
702
- "--duration-instant": durations.instant,
703
- "--duration-fast": durations.fast,
704
- "--duration-normal": durations.normal,
705
- "--duration-slow": durations.slow,
706
- "--duration-slower": durations.slower,
707
- "--duration-slowest": durations.slowest,
708
- // Additional granular durations
709
- "--duration-75": durations["75"],
710
- "--duration-100": durations["100"],
711
- "--duration-200": durations["200"],
712
- "--duration-250": durations["250"],
713
- "--duration-400": durations["400"],
714
- "--duration-600": durations["600"],
715
- "--duration-800": durations["800"],
616
+ "--motion-duration-fast": motionDurations.fast,
617
+ "--motion-duration-normal": motionDurations.normal,
618
+ "--motion-duration-slow": motionDurations.slow,
619
+ "--motion-duration-reduced": motionDurations.reduced,
716
620
  // Easings
717
- "--ease-linear": easings.linear,
718
- "--ease-in": easings["ease-in"],
719
- "--ease-out": easings["ease-out"],
720
- "--ease-in-out": easings["ease-in-out"],
721
- "--ease-bounce": easings.bounce,
722
- "--ease-elastic": easings.elastic,
723
- "--ease-out-cubic": easings["ease-out-cubic"],
724
- "--ease-in-cubic": easings["ease-in-cubic"],
725
- "--ease-in-out-cubic": easings["ease-in-out-cubic"],
621
+ "--motion-easing-soft": motionEasings.soft,
622
+ "--motion-easing-standard": motionEasings.standard,
623
+ "--motion-easing-emphasized": motionEasings.emphasized,
726
624
  // Transitions
727
- "--transition-fast": transitions.fast,
728
- "--transition-normal": transitions.normal,
729
- "--transition-slow": transitions.slow,
730
- "--transition-default": transitions.DEFAULT,
731
- "--transition-fast-in": transitions["fast-in"],
732
- "--transition-fast-out": transitions["fast-out"],
733
- "--transition-fast-in-out": transitions["fast-in-out"],
734
- "--transition-normal-in": transitions["normal-in"],
735
- "--transition-normal-out": transitions["normal-out"],
736
- "--transition-normal-in-out": transitions["normal-in-out"],
737
- "--transition-slow-in": transitions["slow-in"],
738
- "--transition-slow-out": transitions["slow-out"],
739
- "--transition-slow-in-out": transitions["slow-in-out"],
740
- "--transition-bounce": transitions.bounce,
741
- "--transition-elastic": transitions.elastic
625
+ "--motion-transition-fast": motionTransitions.fast,
626
+ "--motion-transition-normal": motionTransitions.normal,
627
+ "--motion-transition-slow": motionTransitions.slow,
628
+ "--motion-transition-soft": motionTransitions.soft,
629
+ "--motion-transition-reduced": motionTransitions.reduced
742
630
  };
743
631
 
744
632
  // src/FOUNDATION/tokens/radius.ts
@@ -2842,21 +2730,6 @@ function updateCSSVariablesFromTokens(mode) {
2842
2730
  console.error("[Theme] Failed to get merged tokens:", error);
2843
2731
  return;
2844
2732
  }
2845
- const secondary800 = tokens.secondaryColors[800];
2846
- fetch("http://127.0.0.1:7243/ingest/ff5d1e20-0815-4ca0-af82-fcbd3cfa35b1", {
2847
- method: "POST",
2848
- headers: { "Content-Type": "application/json" },
2849
- body: JSON.stringify({
2850
- location: "applyMode.ts:188",
2851
- message: "tokens retrieved",
2852
- data: { hasTokens: !!tokens, secondary800, hasSecondary800: !!secondary800 },
2853
- timestamp: Date.now(),
2854
- sessionId: "debug-session",
2855
- runId: "run1",
2856
- hypothesisId: "B"
2857
- })
2858
- }).catch(() => {
2859
- });
2860
2733
  const {
2861
2734
  primaryColors: primaryColors2,
2862
2735
  accentColors: accentColors2,
@@ -3018,13 +2891,6 @@ function updateCSSVariablesFromTokens(mode) {
3018
2891
  } catch (error) {
3019
2892
  console.error("[Theme] Failed to set motion CSS variables:", error);
3020
2893
  }
3021
- try {
3022
- Object.entries(motionV2CSSVariables).forEach(([key, value]) => {
3023
- root.style.setProperty(key, value);
3024
- });
3025
- } catch (error) {
3026
- console.error("[Theme] Failed to set motion V2 CSS variables:", error);
3027
- }
3028
2894
  try {
3029
2895
  Object.entries(radiusCSSVariables).forEach(([key, value]) => {
3030
2896
  root.style.setProperty(key, value);
@@ -3609,23 +3475,6 @@ function ThemeProvider({
3609
3475
  }
3610
3476
  }, [reduceMotionOverride, enableAnimationsOverride]);
3611
3477
  React.useEffect(() => {
3612
- if (typeof document !== "undefined" && document.documentElement) {
3613
- const beforeApply = document.documentElement.style.getPropertyValue("--tm-primary");
3614
- fetch("http://127.0.0.1:7243/ingest/ff5d1e20-0815-4ca0-af82-fcbd3cfa35b1", {
3615
- method: "POST",
3616
- headers: { "Content-Type": "application/json" },
3617
- body: JSON.stringify({
3618
- location: "ThemeProvider.tsx:281",
3619
- message: "ThemeProvider useEffect before applyDocumentTheme",
3620
- data: { beforeValue: beforeApply, hasValue: !!beforeApply },
3621
- timestamp: Date.now(),
3622
- sessionId: "debug-session",
3623
- runId: "run1",
3624
- hypothesisId: "C"
3625
- })
3626
- }).catch(() => {
3627
- });
3628
- }
3629
3478
  const initialMode = getInitialMode(defaultMode, storageKey, enableSystem);
3630
3479
  const initialTheme = getInitialTheme(defaultTheme2, themeStorageKey);
3631
3480
  const initialBrand = getInitialBrand(defaultBrand, brandStorageKey);
@@ -3633,27 +3482,6 @@ function ThemeProvider({
3633
3482
  setThemeState(initialTheme);
3634
3483
  setBrandState(initialBrand);
3635
3484
  applyDocumentTheme(initialMode, initialTheme, initialBrand);
3636
- if (typeof document !== "undefined" && document.documentElement) {
3637
- setTimeout(() => {
3638
- if (typeof document !== "undefined" && document.documentElement) {
3639
- const afterApply = document.documentElement.style.getPropertyValue("--tm-primary");
3640
- fetch("http://127.0.0.1:7243/ingest/ff5d1e20-0815-4ca0-af82-fcbd3cfa35b1", {
3641
- method: "POST",
3642
- headers: { "Content-Type": "application/json" },
3643
- body: JSON.stringify({
3644
- location: "ThemeProvider.tsx:289",
3645
- message: "ThemeProvider useEffect after applyDocumentTheme",
3646
- data: { afterValue: afterApply, hasValue: !!afterApply },
3647
- timestamp: Date.now(),
3648
- sessionId: "debug-session",
3649
- runId: "run1",
3650
- hypothesisId: "C"
3651
- })
3652
- }).catch(() => {
3653
- });
3654
- }
3655
- }, 100);
3656
- }
3657
3485
  persistMode(initialMode, storageKey);
3658
3486
  persistTheme(initialTheme, themeStorageKey);
3659
3487
  persistBrand(initialBrand, brandStorageKey);
@@ -3682,45 +3510,7 @@ function ThemeProvider({
3682
3510
  return () => mediaQuery.removeEventListener("change", handleChange);
3683
3511
  }, [enableSystem, storageKey, setMode]);
3684
3512
  React.useEffect(() => {
3685
- if (typeof document !== "undefined" && document.documentElement) {
3686
- const beforeChange = document.documentElement.style.getPropertyValue("--tm-primary");
3687
- fetch("http://127.0.0.1:7243/ingest/ff5d1e20-0815-4ca0-af82-fcbd3cfa35b1", {
3688
- method: "POST",
3689
- headers: { "Content-Type": "application/json" },
3690
- body: JSON.stringify({
3691
- location: "ThemeProvider.tsx:325",
3692
- message: "ThemeProvider useEffect mode/theme/brand change",
3693
- data: { mode, theme, brand, beforeValue: beforeChange, hasValue: !!beforeChange },
3694
- timestamp: Date.now(),
3695
- sessionId: "debug-session",
3696
- runId: "run1",
3697
- hypothesisId: "C"
3698
- })
3699
- }).catch(() => {
3700
- });
3701
- }
3702
3513
  applyDocumentTheme(mode, theme, brand);
3703
- if (typeof document !== "undefined" && document.documentElement) {
3704
- setTimeout(() => {
3705
- if (typeof document !== "undefined" && document.documentElement) {
3706
- const afterChange = document.documentElement.style.getPropertyValue("--tm-primary");
3707
- fetch("http://127.0.0.1:7243/ingest/ff5d1e20-0815-4ca0-af82-fcbd3cfa35b1", {
3708
- method: "POST",
3709
- headers: { "Content-Type": "application/json" },
3710
- body: JSON.stringify({
3711
- location: "ThemeProvider.tsx:327",
3712
- message: "ThemeProvider useEffect after applyDocumentTheme change",
3713
- data: { afterValue: afterChange, hasValue: !!afterChange },
3714
- timestamp: Date.now(),
3715
- sessionId: "debug-session",
3716
- runId: "run1",
3717
- hypothesisId: "C"
3718
- })
3719
- }).catch(() => {
3720
- });
3721
- }
3722
- }, 100);
3723
- }
3724
3514
  }, [mode, theme, brand]);
3725
3515
  const value = React.useMemo(
3726
3516
  () => ({