shaders 2.3.50 → 2.3.52

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 (191) hide show
  1. package/dist/core/Aurora-BDnL1XdK.js +233 -0
  2. package/dist/core/StudioBackground-Ci26l_Xb.js +337 -0
  3. package/dist/core/registry.js +142 -138
  4. package/dist/core/shaderRegistry.d.ts.map +1 -1
  5. package/dist/core/shaders/Aurora/index.d.ts +99 -0
  6. package/dist/core/shaders/Aurora/index.d.ts.map +1 -0
  7. package/dist/core/shaders/Aurora/index.js +5 -0
  8. package/dist/core/shaders/Beam/index.js +1 -1
  9. package/dist/core/shaders/Blob/index.js +1 -1
  10. package/dist/core/shaders/Blur/index.js +1 -1
  11. package/dist/core/shaders/BrightnessContrast/index.js +1 -1
  12. package/dist/core/shaders/Bulge/index.js +1 -1
  13. package/dist/core/shaders/CRTScreen/index.js +1 -1
  14. package/dist/core/shaders/ChannelBlur/index.js +1 -1
  15. package/dist/core/shaders/Checkerboard/index.js +1 -1
  16. package/dist/core/shaders/ChromaFlow/index.js +1 -1
  17. package/dist/core/shaders/ChromaticAberration/index.js +1 -1
  18. package/dist/core/shaders/Circle/index.js +1 -1
  19. package/dist/core/shaders/ConcentricSpin/index.js +1 -1
  20. package/dist/core/shaders/ContourLines/index.js +1 -1
  21. package/dist/core/shaders/CursorTrail/index.js +1 -1
  22. package/dist/core/shaders/DiffuseBlur/index.js +1 -1
  23. package/dist/core/shaders/Dither/index.js +1 -1
  24. package/dist/core/shaders/DotGrid/index.js +1 -1
  25. package/dist/core/shaders/Duotone/index.js +1 -1
  26. package/dist/core/shaders/FilmGrain/index.js +1 -1
  27. package/dist/core/shaders/FloatingParticles/index.js +1 -1
  28. package/dist/core/shaders/FlowField/index.js +1 -1
  29. package/dist/core/shaders/GlassTiles/index.js +1 -1
  30. package/dist/core/shaders/Glitch/index.js +1 -1
  31. package/dist/core/shaders/Glow/index.js +1 -1
  32. package/dist/core/shaders/Godrays/index.js +1 -1
  33. package/dist/core/shaders/Grayscale/index.js +1 -1
  34. package/dist/core/shaders/Grid/index.js +1 -1
  35. package/dist/core/shaders/GridDistortion/index.js +1 -1
  36. package/dist/core/shaders/Group/index.js +1 -1
  37. package/dist/core/shaders/Halftone/index.js +1 -1
  38. package/dist/core/shaders/HueShift/index.js +1 -1
  39. package/dist/core/shaders/ImageTexture/index.js +1 -1
  40. package/dist/core/shaders/Invert/index.js +1 -1
  41. package/dist/core/shaders/Kaleidoscope/index.js +1 -1
  42. package/dist/core/shaders/LensFlare/index.js +1 -1
  43. package/dist/core/shaders/LinearBlur/index.js +1 -1
  44. package/dist/core/shaders/LinearGradient/index.js +1 -1
  45. package/dist/core/shaders/Liquify/index.js +1 -1
  46. package/dist/core/shaders/Mirror/index.js +1 -1
  47. package/dist/core/shaders/Perspective/index.js +1 -1
  48. package/dist/core/shaders/Pixelate/index.js +1 -1
  49. package/dist/core/shaders/Plasma/index.js +1 -1
  50. package/dist/core/shaders/PolarCoordinates/index.js +1 -1
  51. package/dist/core/shaders/Posterize/index.js +1 -1
  52. package/dist/core/shaders/ProgressiveBlur/index.js +1 -1
  53. package/dist/core/shaders/RadialGradient/index.js +1 -1
  54. package/dist/core/shaders/RectangularCoordinates/index.js +1 -1
  55. package/dist/core/shaders/Ripples/index.js +1 -1
  56. package/dist/core/shaders/Saturation/index.js +1 -1
  57. package/dist/core/shaders/Sharpness/index.js +1 -1
  58. package/dist/core/shaders/Shatter/index.js +1 -1
  59. package/dist/core/shaders/SimplexNoise/index.js +1 -1
  60. package/dist/core/shaders/SineWave/index.js +1 -1
  61. package/dist/core/shaders/SolidColor/index.js +1 -1
  62. package/dist/core/shaders/Spherize/index.js +1 -1
  63. package/dist/core/shaders/Spiral/index.js +1 -1
  64. package/dist/core/shaders/Strands/index.js +1 -1
  65. package/dist/core/shaders/Stretch/index.js +1 -1
  66. package/dist/core/shaders/Stripes/index.js +1 -1
  67. package/dist/core/shaders/StudioBackground/index.d.ts +141 -0
  68. package/dist/core/shaders/StudioBackground/index.d.ts.map +1 -0
  69. package/dist/core/shaders/StudioBackground/index.js +4 -0
  70. package/dist/core/shaders/Swirl/index.js +1 -1
  71. package/dist/core/shaders/TiltShift/index.js +1 -1
  72. package/dist/core/shaders/Tint/index.js +1 -1
  73. package/dist/core/shaders/Tritone/index.js +1 -1
  74. package/dist/core/shaders/Twirl/index.js +1 -1
  75. package/dist/core/shaders/Vibrance/index.js +1 -1
  76. package/dist/core/shaders/VideoTexture/index.js +1 -1
  77. package/dist/core/shaders/WaveDistortion/index.js +1 -1
  78. package/dist/core/shaders/WebcamTexture/index.js +1 -1
  79. package/dist/core/shaders/ZoomBlur/index.js +1 -1
  80. package/dist/react/Aurora.js +164 -0
  81. package/dist/react/StudioBackground.js +164 -0
  82. package/dist/react/components/Aurora.d.ts +31 -0
  83. package/dist/react/components/Aurora.d.ts.map +1 -0
  84. package/dist/react/components/StudioBackground.d.ts +31 -0
  85. package/dist/react/components/StudioBackground.d.ts.map +1 -0
  86. package/dist/react/index.d.ts +2 -0
  87. package/dist/react/index.d.ts.map +1 -1
  88. package/dist/react/index.js +3 -1
  89. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  90. package/dist/react/utils/generatePresetCode.js +48 -0
  91. package/dist/registry.js +1148 -370
  92. package/dist/solid/components/Aurora.d.ts +28 -0
  93. package/dist/solid/components/Aurora.d.ts.map +1 -0
  94. package/dist/solid/components/Aurora.js +168 -0
  95. package/dist/solid/components/StudioBackground.d.ts +28 -0
  96. package/dist/solid/components/StudioBackground.d.ts.map +1 -0
  97. package/dist/solid/components/StudioBackground.js +168 -0
  98. package/dist/solid/index.d.ts +2 -0
  99. package/dist/solid/index.d.ts.map +1 -1
  100. package/dist/solid/index.js +144 -140
  101. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  102. package/dist/solid/utils/generatePresetCode.js +48 -0
  103. package/dist/svelte/components/Aurora.svelte.d.ts +19 -0
  104. package/dist/svelte/components/StudioBackground.svelte.d.ts +19 -0
  105. package/dist/svelte/{generatePresetCode-Co-oSFXj.js → generatePresetCode-DXODN9t6.js} +48 -0
  106. package/dist/svelte/index.d.ts +2 -0
  107. package/dist/svelte/index.js +541 -281
  108. package/dist/svelte/utils/generatePresetCode.js +1 -1
  109. package/dist/vue/Aurora.js +3 -0
  110. package/dist/vue/Aurora.vue_vue_type_script_setup_true_lang.js +156 -0
  111. package/dist/vue/StudioBackground.js +3 -0
  112. package/dist/vue/StudioBackground.vue_vue_type_script_setup_true_lang.js +162 -0
  113. package/dist/vue/components/Aurora.vue.d.ts +54 -0
  114. package/dist/vue/components/Aurora.vue.d.ts.map +1 -0
  115. package/dist/vue/components/StudioBackground.vue.d.ts +54 -0
  116. package/dist/vue/components/StudioBackground.vue.d.ts.map +1 -0
  117. package/dist/vue/index.d.ts +2 -0
  118. package/dist/vue/index.d.ts.map +1 -1
  119. package/dist/vue/index.js +3 -1
  120. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  121. package/dist/vue/utils/generatePresetCode.js +48 -0
  122. package/package.json +17 -1
  123. /package/dist/core/{Beam-BBbjVQDP.js → Beam-CyRoRQEj.js} +0 -0
  124. /package/dist/core/{Blob-DeD9KRj-.js → Blob-BgN4aVOR.js} +0 -0
  125. /package/dist/core/{Blur-Brqgsz7y.js → Blur-NNElJwzj.js} +0 -0
  126. /package/dist/core/{BrightnessContrast-DSePKfxC.js → BrightnessContrast-FdkKMaQQ.js} +0 -0
  127. /package/dist/core/{Bulge-D2OwcL23.js → Bulge-Ca9hW7y4.js} +0 -0
  128. /package/dist/core/{CRTScreen-D6qh6DnD.js → CRTScreen-BHKDJ9_0.js} +0 -0
  129. /package/dist/core/{ChannelBlur-BKo9uGaB.js → ChannelBlur-A0r5Gx_y.js} +0 -0
  130. /package/dist/core/{Checkerboard-ChbG4nPC.js → Checkerboard-XJh_tV6B.js} +0 -0
  131. /package/dist/core/{ChromaFlow-DyqU1igx.js → ChromaFlow-Cc647Knw.js} +0 -0
  132. /package/dist/core/{ChromaticAberration-9nlFN2h0.js → ChromaticAberration-CYvju_kr.js} +0 -0
  133. /package/dist/core/{Circle-DSQ_9vPx.js → Circle-C9DYXDnD.js} +0 -0
  134. /package/dist/core/{ConcentricSpin-CLTGx_sN.js → ConcentricSpin-CnuAW_6I.js} +0 -0
  135. /package/dist/core/{ContourLines-Dc5J7iw5.js → ContourLines-DJ0R9q6Y.js} +0 -0
  136. /package/dist/core/{CursorTrail-COnyRZH9.js → CursorTrail-DpegyvgZ.js} +0 -0
  137. /package/dist/core/{DiffuseBlur-DcV8M7hN.js → DiffuseBlur-BXcJHOEK.js} +0 -0
  138. /package/dist/core/{Dither-C-w0ugGX.js → Dither-BKUz66yF.js} +0 -0
  139. /package/dist/core/{DotGrid-wXnfcjrM.js → DotGrid-CQ3Bqk7F.js} +0 -0
  140. /package/dist/core/{Duotone-B8dYgrFR.js → Duotone-BW1JYEPc.js} +0 -0
  141. /package/dist/core/{FilmGrain-D_6m7GJ4.js → FilmGrain-GEWzNIxN.js} +0 -0
  142. /package/dist/core/{FloatingParticles-YuuXeICf.js → FloatingParticles--9Vfk8l7.js} +0 -0
  143. /package/dist/core/{FlowField-Dx2eqOcU.js → FlowField-cpaUwFHC.js} +0 -0
  144. /package/dist/core/{GlassTiles-hnt2pUQN.js → GlassTiles-BdeSNj7g.js} +0 -0
  145. /package/dist/core/{Glitch-DfPXeSlL.js → Glitch-CROTuIoh.js} +0 -0
  146. /package/dist/core/{Glow-CQv_dRPj.js → Glow-DQDMXgcr.js} +0 -0
  147. /package/dist/core/{Godrays-B_-HliEA.js → Godrays-ByIS3bRa.js} +0 -0
  148. /package/dist/core/{Grayscale-DRFXhxr4.js → Grayscale-DpKuVrqO.js} +0 -0
  149. /package/dist/core/{Grid-DKSUwEIe.js → Grid-CkcYMWZi.js} +0 -0
  150. /package/dist/core/{GridDistortion-DahXljLX.js → GridDistortion-CATS8be1.js} +0 -0
  151. /package/dist/core/{Group-r9gMBd5y.js → Group-DqEcpVau.js} +0 -0
  152. /package/dist/core/{Halftone-ZVjwkjaQ.js → Halftone-DPnEJWAR.js} +0 -0
  153. /package/dist/core/{HueShift-gZlNBwNE.js → HueShift-BuAL_IUD.js} +0 -0
  154. /package/dist/core/{ImageTexture-DuXMku_O.js → ImageTexture-BxUmKJDM.js} +0 -0
  155. /package/dist/core/{Invert-gUjZNHF3.js → Invert-CnrYMYHq.js} +0 -0
  156. /package/dist/core/{Kaleidoscope-COKZ0BDb.js → Kaleidoscope-w7bcRTGG.js} +0 -0
  157. /package/dist/core/{LensFlare-D6jy4M7G.js → LensFlare-D42C5m1g.js} +0 -0
  158. /package/dist/core/{LinearBlur-CArDQIhs.js → LinearBlur-PB7AuAdN.js} +0 -0
  159. /package/dist/core/{LinearGradient-BkB_3gVV.js → LinearGradient-xd6zdc9k.js} +0 -0
  160. /package/dist/core/{Liquify-BrIB9ajS.js → Liquify-BfUbY9Aa.js} +0 -0
  161. /package/dist/core/{Mirror-BRPYfVAr.js → Mirror-CBuDbabq.js} +0 -0
  162. /package/dist/core/{Perspective-CglPLWTZ.js → Perspective-BWEoTtAq.js} +0 -0
  163. /package/dist/core/{Pixelate-CwnuDc5L.js → Pixelate-C1kcXBSy.js} +0 -0
  164. /package/dist/core/{Plasma-CuW-GOI_.js → Plasma-BaKvTyBi.js} +0 -0
  165. /package/dist/core/{PolarCoordinates-9AFXKnSC.js → PolarCoordinates-tXYdB1hR.js} +0 -0
  166. /package/dist/core/{Posterize-DU2yrydV.js → Posterize-D4f1xM4m.js} +0 -0
  167. /package/dist/core/{ProgressiveBlur-BXv2mob_.js → ProgressiveBlur-CmBI0c7e.js} +0 -0
  168. /package/dist/core/{RadialGradient-Dd21Be-_.js → RadialGradient-BOWu2cE6.js} +0 -0
  169. /package/dist/core/{RectangularCoordinates-DAOGnX2p.js → RectangularCoordinates-C2KYwree.js} +0 -0
  170. /package/dist/core/{Ripples-Nk5is8WX.js → Ripples-C3rm4Nv6.js} +0 -0
  171. /package/dist/core/{Saturation-KoiVB92Y.js → Saturation-Bw3ToVIJ.js} +0 -0
  172. /package/dist/core/{Sharpness-CK-zaDVc.js → Sharpness-Dm4dZVlk.js} +0 -0
  173. /package/dist/core/{Shatter-EEzkIXGb.js → Shatter-C5oF85Mn.js} +0 -0
  174. /package/dist/core/{SimplexNoise-DKov4Yho.js → SimplexNoise-CzJ9JuBO.js} +0 -0
  175. /package/dist/core/{SineWave-Cy0wWKUU.js → SineWave-DMogWzg5.js} +0 -0
  176. /package/dist/core/{SolidColor-P4OKglCC.js → SolidColor-CmqDLEvX.js} +0 -0
  177. /package/dist/core/{Spherize-BLEvqakM.js → Spherize-BmA6-b8n.js} +0 -0
  178. /package/dist/core/{Spiral-DXuKs26n.js → Spiral-DmYzx8BO.js} +0 -0
  179. /package/dist/core/{Strands-DsdASoV4.js → Strands-CmEblLfF.js} +0 -0
  180. /package/dist/core/{Stretch-By8f2wmJ.js → Stretch-szy_xiYc.js} +0 -0
  181. /package/dist/core/{Stripes-D8HSlP1H.js → Stripes-Bze5bkdm.js} +0 -0
  182. /package/dist/core/{Swirl-DO8dNtED.js → Swirl-BUKxPesY.js} +0 -0
  183. /package/dist/core/{TiltShift-4QnOmvZ7.js → TiltShift-YxZeQ5Et.js} +0 -0
  184. /package/dist/core/{Tint-Qc-4l2re.js → Tint-Bss3hfZG.js} +0 -0
  185. /package/dist/core/{Tritone-COUPuEp_.js → Tritone-CVr6_qy3.js} +0 -0
  186. /package/dist/core/{Twirl-Se1glQAi.js → Twirl-CKwGdb3_.js} +0 -0
  187. /package/dist/core/{Vibrance-CUTMlggU.js → Vibrance-BiW7HP94.js} +0 -0
  188. /package/dist/core/{VideoTexture-DsvlYXHz.js → VideoTexture-CH9n_1hI.js} +0 -0
  189. /package/dist/core/{WaveDistortion-D75I7wpE.js → WaveDistortion-BYmLNaT1.js} +0 -0
  190. /package/dist/core/{WebcamTexture-Cj0_V3MP.js → WebcamTexture-wlrwZXeq.js} +0 -0
  191. /package/dist/core/{ZoomBlur-Cq6lhjH5.js → ZoomBlur-BtGAMd_0.js} +0 -0
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as ImageTexture_default } from "../../ImageTexture-DuXMku_O.js";
1
+ import { n as componentDefinition, t as ImageTexture_default } from "../../ImageTexture-BxUmKJDM.js";
2
2
  export { componentDefinition, ImageTexture_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as Invert_default } from "../../Invert-gUjZNHF3.js";
1
+ import { n as componentDefinition, t as Invert_default } from "../../Invert-CnrYMYHq.js";
2
2
  export { componentDefinition, Invert_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-CC_c-QAT.js";
3
- import { n as componentDefinition, t as Kaleidoscope_default } from "../../Kaleidoscope-COKZ0BDb.js";
3
+ import { n as componentDefinition, t as Kaleidoscope_default } from "../../Kaleidoscope-w7bcRTGG.js";
4
4
  export { componentDefinition, Kaleidoscope_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../time-BZqyVJXt.js";
3
- import { n as componentDefinition, t as LensFlare_default } from "../../LensFlare-D6jy4M7G.js";
3
+ import { n as componentDefinition, t as LensFlare_default } from "../../LensFlare-D42C5m1g.js";
4
4
  export { componentDefinition, LensFlare_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
- import { n as componentDefinition, t as LinearBlur_default } from "../../LinearBlur-CArDQIhs.js";
2
+ import { n as componentDefinition, t as LinearBlur_default } from "../../LinearBlur-PB7AuAdN.js";
3
3
  export { componentDefinition, LinearBlur_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../colorMixing-Ehw-Hfs_.js";
3
- import { n as componentDefinition, t as LinearGradient_default } from "../../LinearGradient-BkB_3gVV.js";
3
+ import { n as componentDefinition, t as LinearGradient_default } from "../../LinearGradient-xd6zdc9k.js";
4
4
  export { componentDefinition, LinearGradient_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-CC_c-QAT.js";
3
- import { n as componentDefinition, t as Liquify_default } from "../../Liquify-BrIB9ajS.js";
3
+ import { n as componentDefinition, t as Liquify_default } from "../../Liquify-BfUbY9Aa.js";
4
4
  export { componentDefinition, Liquify_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-CC_c-QAT.js";
3
- import { n as componentDefinition, t as Mirror_default } from "../../Mirror-BRPYfVAr.js";
3
+ import { n as componentDefinition, t as Mirror_default } from "../../Mirror-CBuDbabq.js";
4
4
  export { componentDefinition, Mirror_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-CC_c-QAT.js";
3
- import { n as componentDefinition, t as Perspective_default } from "../../Perspective-CglPLWTZ.js";
3
+ import { n as componentDefinition, t as Perspective_default } from "../../Perspective-BWEoTtAq.js";
4
4
  export { componentDefinition, Perspective_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as Pixelate_default } from "../../Pixelate-CwnuDc5L.js";
1
+ import { n as componentDefinition, t as Pixelate_default } from "../../Pixelate-C1kcXBSy.js";
2
2
  export { componentDefinition, Pixelate_default as default };
@@ -1,5 +1,5 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../time-BZqyVJXt.js";
3
3
  import "../../colorMixing-Ehw-Hfs_.js";
4
- import { n as componentDefinition, t as Plasma_default } from "../../Plasma-CuW-GOI_.js";
4
+ import { n as componentDefinition, t as Plasma_default } from "../../Plasma-BaKvTyBi.js";
5
5
  export { componentDefinition, Plasma_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-CC_c-QAT.js";
3
- import { n as componentDefinition, t as PolarCoordinates_default } from "../../PolarCoordinates-9AFXKnSC.js";
3
+ import { n as componentDefinition, t as PolarCoordinates_default } from "../../PolarCoordinates-tXYdB1hR.js";
4
4
  export { componentDefinition, PolarCoordinates_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as Posterize_default } from "../../Posterize-DU2yrydV.js";
1
+ import { n as componentDefinition, t as Posterize_default } from "../../Posterize-D4f1xM4m.js";
2
2
  export { componentDefinition, Posterize_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
- import { n as componentDefinition, t as ProgressiveBlur_default } from "../../ProgressiveBlur-BXv2mob_.js";
2
+ import { n as componentDefinition, t as ProgressiveBlur_default } from "../../ProgressiveBlur-CmBI0c7e.js";
3
3
  export { componentDefinition, ProgressiveBlur_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../colorMixing-Ehw-Hfs_.js";
3
- import { n as componentDefinition, t as RadialGradient_default } from "../../RadialGradient-Dd21Be-_.js";
3
+ import { n as componentDefinition, t as RadialGradient_default } from "../../RadialGradient-BOWu2cE6.js";
4
4
  export { componentDefinition, RadialGradient_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-CC_c-QAT.js";
3
- import { n as componentDefinition, t as RectangularCoordinates_default } from "../../RectangularCoordinates-DAOGnX2p.js";
3
+ import { n as componentDefinition, t as RectangularCoordinates_default } from "../../RectangularCoordinates-C2KYwree.js";
4
4
  export { componentDefinition, RectangularCoordinates_default as default };
@@ -1,5 +1,5 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../time-BZqyVJXt.js";
3
3
  import "../../colorMixing-Ehw-Hfs_.js";
4
- import { n as componentDefinition, t as Ripples_default } from "../../Ripples-Nk5is8WX.js";
4
+ import { n as componentDefinition, t as Ripples_default } from "../../Ripples-C3rm4Nv6.js";
5
5
  export { componentDefinition, Ripples_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as Saturation_default } from "../../Saturation-KoiVB92Y.js";
1
+ import { n as componentDefinition, t as Saturation_default } from "../../Saturation-Bw3ToVIJ.js";
2
2
  export { componentDefinition, Saturation_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as Sharpness_default } from "../../Sharpness-CK-zaDVc.js";
1
+ import { n as componentDefinition, t as Sharpness_default } from "../../Sharpness-Dm4dZVlk.js";
2
2
  export { componentDefinition, Sharpness_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-CC_c-QAT.js";
3
- import { n as componentDefinition, t as Shatter_default } from "../../Shatter-EEzkIXGb.js";
3
+ import { n as componentDefinition, t as Shatter_default } from "../../Shatter-C5oF85Mn.js";
4
4
  export { componentDefinition, Shatter_default as default };
@@ -1,5 +1,5 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../time-BZqyVJXt.js";
3
3
  import "../../colorMixing-Ehw-Hfs_.js";
4
- import { n as componentDefinition, t as SimplexNoise_default } from "../../SimplexNoise-DKov4Yho.js";
4
+ import { n as componentDefinition, t as SimplexNoise_default } from "../../SimplexNoise-CzJ9JuBO.js";
5
5
  export { componentDefinition, SimplexNoise_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../time-BZqyVJXt.js";
3
- import { n as componentDefinition, t as SineWave_default } from "../../SineWave-Cy0wWKUU.js";
3
+ import { n as componentDefinition, t as SineWave_default } from "../../SineWave-DMogWzg5.js";
4
4
  export { componentDefinition, SineWave_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
- import { n as componentDefinition, t as SolidColor_default } from "../../SolidColor-P4OKglCC.js";
2
+ import { n as componentDefinition, t as SolidColor_default } from "../../SolidColor-CmqDLEvX.js";
3
3
  export { componentDefinition, SolidColor_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
- import { n as componentDefinition, t as Spherize_default } from "../../Spherize-BLEvqakM.js";
2
+ import { n as componentDefinition, t as Spherize_default } from "../../Spherize-BmA6-b8n.js";
3
3
  export { componentDefinition, Spherize_default as default };
@@ -1,5 +1,5 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../time-BZqyVJXt.js";
3
3
  import "../../colorMixing-Ehw-Hfs_.js";
4
- import { n as componentDefinition, t as Spiral_default } from "../../Spiral-DXuKs26n.js";
4
+ import { n as componentDefinition, t as Spiral_default } from "../../Spiral-DmYzx8BO.js";
5
5
  export { componentDefinition, Spiral_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../time-BZqyVJXt.js";
3
- import { n as componentDefinition, t as Strands_default } from "../../Strands-DsdASoV4.js";
3
+ import { n as componentDefinition, t as Strands_default } from "../../Strands-CmEblLfF.js";
4
4
  export { componentDefinition, Strands_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-CC_c-QAT.js";
3
- import { n as componentDefinition, t as Stretch_default } from "../../Stretch-By8f2wmJ.js";
3
+ import { n as componentDefinition, t as Stretch_default } from "../../Stretch-szy_xiYc.js";
4
4
  export { componentDefinition, Stretch_default as default };
@@ -1,5 +1,5 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../time-BZqyVJXt.js";
3
3
  import "../../colorMixing-Ehw-Hfs_.js";
4
- import { n as componentDefinition, t as Stripes_default } from "../../Stripes-D8HSlP1H.js";
4
+ import { n as componentDefinition, t as Stripes_default } from "../../Stripes-Bze5bkdm.js";
5
5
  export { componentDefinition, Stripes_default as default };
@@ -0,0 +1,141 @@
1
+ import { ComponentDefinition } from '../../types';
2
+ import { transformColor, transformPosition } from '../../utilities/transformations';
3
+
4
+ export interface ComponentProps {
5
+ /**
6
+ * Base studio surface color
7
+ *
8
+ * Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`).
9
+ * @default "#d8dbec"
10
+ */
11
+ color: Parameters<typeof transformColor>[0];
12
+ /**
13
+ * Overall ambient light level
14
+ *
15
+ * Accepts a number between 0 and 100.
16
+ * @default 20
17
+ */
18
+ brightness: number;
19
+ /**
20
+ * Color of the overhead key light
21
+ *
22
+ * Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`).
23
+ * @default "#d5e4ea"
24
+ */
25
+ keyColor: Parameters<typeof transformColor>[0];
26
+ /**
27
+ * Intensity of the key light
28
+ *
29
+ * Accepts a number between 0 and 100.
30
+ * @default 40
31
+ */
32
+ keyIntensity: number;
33
+ /**
34
+ * How diffuse the key light is
35
+ *
36
+ * Accepts a number between 0 and 100.
37
+ * @default 50
38
+ */
39
+ keySoftness: number;
40
+ /**
41
+ * Color of the side fill lights
42
+ *
43
+ * Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`).
44
+ * @default "#d5e4ea"
45
+ */
46
+ fillColor: Parameters<typeof transformColor>[0];
47
+ /**
48
+ * Intensity of the fill lights
49
+ *
50
+ * Accepts a number between 0 and 100.
51
+ * @default 10
52
+ */
53
+ fillIntensity: number;
54
+ /**
55
+ * How diffuse the fill lights are
56
+ *
57
+ * Accepts a number between 0 and 100.
58
+ * @default 70
59
+ */
60
+ fillSoftness: number;
61
+ /**
62
+ * How far apart the fill lights are from center
63
+ *
64
+ * Accepts a number between 0 and 100.
65
+ * @default 70
66
+ */
67
+ fillAngle: number;
68
+ /**
69
+ * Color of the upward back wash
70
+ *
71
+ * Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`).
72
+ * @default "#c8d4e8"
73
+ */
74
+ backColor: Parameters<typeof transformColor>[0];
75
+ /**
76
+ * Intensity of the back wash
77
+ *
78
+ * Accepts a number between 0 and 100.
79
+ * @default 20
80
+ */
81
+ backIntensity: number;
82
+ /**
83
+ * How diffuse the back wash is
84
+ *
85
+ * Accepts a number between 0 and 100.
86
+ * @default 80
87
+ */
88
+ backSoftness: number;
89
+ /**
90
+ * Where the spotlight meets the floor
91
+ *
92
+ * Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`.
93
+ * @default {"x":0.5,"y":0.8}
94
+ */
95
+ center: Parameters<typeof transformPosition>[0];
96
+ /**
97
+ * How far toward the floor vs wall the spotlights aim
98
+ *
99
+ * Accepts a number between 0 and 100.
100
+ * @default 100
101
+ */
102
+ lightTarget: number;
103
+ /**
104
+ * How rounded the cove is
105
+ *
106
+ * Accepts a number between 0 and 100.
107
+ * @default 10
108
+ */
109
+ wallCurvature: number;
110
+ /**
111
+ * Edge darkening
112
+ *
113
+ * Accepts a number between 0 and 100.
114
+ * @default 0
115
+ */
116
+ vignette: number;
117
+ /**
118
+ * Intensity of drifting ambient lights
119
+ *
120
+ * Accepts a number between 0 and 100.
121
+ * @default 50
122
+ */
123
+ ambientIntensity: number;
124
+ /**
125
+ * Drift speed
126
+ *
127
+ * Accepts a number between -5 and 5.
128
+ * @default 2
129
+ */
130
+ ambientSpeed: number;
131
+ /**
132
+ * Seed for ambient pattern
133
+ *
134
+ * Accepts a number between 0 and 100.
135
+ * @default 0
136
+ */
137
+ seed: number;
138
+ }
139
+ export declare const componentDefinition: ComponentDefinition<ComponentProps>;
140
+ export default componentDefinition;
141
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/StudioBackground/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAC,MAAM,qCAAqC,CAAA;AAGrF,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3C,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC9C,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/C,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,MAAM,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CA0QnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import "../../transformations-CC_c-QAT.js";
2
+ import "../../time-BZqyVJXt.js";
3
+ import { n as componentDefinition, t as StudioBackground_default } from "../../StudioBackground-Ci26l_Xb.js";
4
+ export { componentDefinition, StudioBackground_default as default };
@@ -1,5 +1,5 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../time-BZqyVJXt.js";
3
3
  import "../../colorMixing-Ehw-Hfs_.js";
4
- import { n as componentDefinition, t as Swirl_default } from "../../Swirl-DO8dNtED.js";
4
+ import { n as componentDefinition, t as Swirl_default } from "../../Swirl-BUKxPesY.js";
5
5
  export { componentDefinition, Swirl_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
- import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-4QnOmvZ7.js";
2
+ import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-YxZeQ5Et.js";
3
3
  export { componentDefinition, TiltShift_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
- import { n as componentDefinition, t as Tint_default } from "../../Tint-Qc-4l2re.js";
2
+ import { n as componentDefinition, t as Tint_default } from "../../Tint-Bss3hfZG.js";
3
3
  export { componentDefinition, Tint_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
2
  import "../../colorMixing-Ehw-Hfs_.js";
3
- import { n as componentDefinition, t as Tritone_default } from "../../Tritone-COUPuEp_.js";
3
+ import { n as componentDefinition, t as Tritone_default } from "../../Tritone-CVr6_qy3.js";
4
4
  export { componentDefinition, Tritone_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-CC_c-QAT.js";
3
- import { n as componentDefinition, t as Twirl_default } from "../../Twirl-Se1glQAi.js";
3
+ import { n as componentDefinition, t as Twirl_default } from "../../Twirl-CKwGdb3_.js";
4
4
  export { componentDefinition, Twirl_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as Vibrance_default } from "../../Vibrance-CUTMlggU.js";
1
+ import { n as componentDefinition, t as Vibrance_default } from "../../Vibrance-BiW7HP94.js";
2
2
  export { componentDefinition, Vibrance_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as VideoTexture_default } from "../../VideoTexture-DsvlYXHz.js";
1
+ import { n as componentDefinition, t as VideoTexture_default } from "../../VideoTexture-CH9n_1hI.js";
2
2
  export { componentDefinition, VideoTexture_default as default };
@@ -1,5 +1,5 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-CC_c-QAT.js";
3
3
  import "../../time-BZqyVJXt.js";
4
- import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-D75I7wpE.js";
4
+ import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-BYmLNaT1.js";
5
5
  export { componentDefinition, WaveDistortion_default as default };
@@ -1,2 +1,2 @@
1
- import { n as componentDefinition, t as WebcamTexture_default } from "../../WebcamTexture-Cj0_V3MP.js";
1
+ import { n as componentDefinition, t as WebcamTexture_default } from "../../WebcamTexture-wlrwZXeq.js";
2
2
  export { componentDefinition, WebcamTexture_default as default };
@@ -1,3 +1,3 @@
1
1
  import "../../transformations-CC_c-QAT.js";
2
- import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-Cq6lhjH5.js";
2
+ import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-BtGAMd_0.js";
3
3
  export { componentDefinition, ZoomBlur_default as default };
@@ -0,0 +1,164 @@
1
+ import { ShaderContext } from "./Shader.js";
2
+ import { useContext, useEffect, useMemo, useRef } from "react";
3
+ import { createUniformsMap } from "../core/index.js";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { componentDefinition } from "../core/shaders/Aurora/index.js";
6
+ function computeEffectiveProps(props, defaultProps$1) {
7
+ let baseProps = { ...defaultProps$1 };
8
+ for (const [key, value] of Object.entries(props)) if (key !== "children" && key !== "ref" && value !== void 0) baseProps[key] = value;
9
+ return baseProps;
10
+ }
11
+ var MARKER_STYLE = { display: "contents" };
12
+ var DEFAULT_TRANSFORM = {
13
+ offsetX: 0,
14
+ offsetY: 0,
15
+ rotation: 0,
16
+ scale: 1,
17
+ anchorX: .5,
18
+ anchorY: .5,
19
+ edges: "transparent"
20
+ };
21
+ var defaultProps = {
22
+ blendMode: "normal",
23
+ visible: true
24
+ };
25
+ try {
26
+ if (componentDefinition && componentDefinition.props) Object.entries(componentDefinition.props).forEach(([key, config]) => {
27
+ const propConfig = config;
28
+ if (propConfig && typeof propConfig === "object" && "default" in propConfig) defaultProps[key] = propConfig.default;
29
+ });
30
+ } catch (e) {
31
+ console.warn("Error extracting default props:", e);
32
+ }
33
+ const ShaderComponent = (props) => {
34
+ const context = useContext(ShaderContext);
35
+ if (!context) throw new Error("Shader components must be used inside an <Shader> component or another shader component");
36
+ const { shaderParentId: parentId, shaderNodeRegister: parentRegister, shaderUniformUpdate: parentUniformUpdate, shaderMetadataUpdate: parentMetadataUpdate } = context;
37
+ const instanceId = useMemo(() => {
38
+ return props.id || Math.random().toString(36).substring(2, 10);
39
+ }, [props.id]);
40
+ const effectiveProps = useMemo(() => {
41
+ return computeEffectiveProps(props, defaultProps);
42
+ }, [props]);
43
+ const effectiveTransform = useMemo(() => ({
44
+ ...DEFAULT_TRANSFORM,
45
+ ...props.transform
46
+ }), [props.transform]);
47
+ const markerRef = useRef(null);
48
+ const detectedOrderRef = useRef(void 0);
49
+ const uniformsRef = useRef(null);
50
+ if (uniformsRef.current === null) uniformsRef.current = createUniformsMap(componentDefinition, effectiveProps, instanceId);
51
+ const childContextValue = useMemo(() => {
52
+ return {
53
+ ...context,
54
+ shaderParentId: instanceId
55
+ };
56
+ }, [context, instanceId]);
57
+ useEffect(() => {
58
+ if (!uniformsRef.current) return;
59
+ try {
60
+ const metadata = {
61
+ blendMode: props.blendMode || "normal",
62
+ opacity: props.opacity,
63
+ visible: props.visible === false ? false : true,
64
+ id: props.id,
65
+ mask: props.maskSource ? {
66
+ source: props.maskSource,
67
+ type: props.maskType || "alpha"
68
+ } : void 0,
69
+ renderOrder: props.renderOrder ?? detectedOrderRef.current,
70
+ transform: effectiveTransform
71
+ };
72
+ parentRegister(instanceId, componentDefinition.fragmentNode, parentId, metadata, uniformsRef.current, componentDefinition);
73
+ return () => {
74
+ parentRegister(instanceId, null, null, null, null);
75
+ };
76
+ } catch (error) {
77
+ console.error("Error registering shader node:", error);
78
+ return () => {};
79
+ }
80
+ }, [
81
+ instanceId,
82
+ parentId,
83
+ parentRegister
84
+ ]);
85
+ useEffect(() => {
86
+ if (props.renderOrder === void 0 && markerRef.current) {
87
+ const parent = markerRef.current.parentElement;
88
+ if (parent) {
89
+ const siblings = parent.querySelectorAll(":scope > [data-shader-id]");
90
+ const position = Array.from(siblings).indexOf(markerRef.current);
91
+ if (position >= 0) {
92
+ detectedOrderRef.current = position;
93
+ parentMetadataUpdate(instanceId, { renderOrder: position });
94
+ }
95
+ }
96
+ }
97
+ }, []);
98
+ const prevPropsRef = useRef({});
99
+ useEffect(() => {
100
+ if (!uniformsRef.current) return;
101
+ try {
102
+ Object.entries(uniformsRef.current).forEach(([propName, uniformData]) => {
103
+ if (!uniformData || typeof uniformData !== "object") return;
104
+ const { uniform, transform } = uniformData;
105
+ if (uniform?.value !== void 0 && propName in effectiveProps) {
106
+ const newValue = effectiveProps[propName];
107
+ if (newValue !== prevPropsRef.current[propName]) {
108
+ parentUniformUpdate(instanceId, propName, newValue);
109
+ prevPropsRef.current[propName] = newValue;
110
+ }
111
+ }
112
+ });
113
+ } catch (error) {
114
+ console.error("Error updating uniforms:", error);
115
+ }
116
+ }, [
117
+ effectiveProps,
118
+ instanceId,
119
+ parentUniformUpdate
120
+ ]);
121
+ useEffect(() => {
122
+ try {
123
+ parentMetadataUpdate(instanceId, {
124
+ blendMode: props.blendMode || "normal",
125
+ opacity: props.opacity,
126
+ visible: props.visible === false ? false : true,
127
+ id: props.id,
128
+ mask: props.maskSource ? {
129
+ source: props.maskSource,
130
+ type: props.maskType || "alpha"
131
+ } : void 0,
132
+ renderOrder: props.renderOrder ?? detectedOrderRef.current,
133
+ transform: effectiveTransform
134
+ });
135
+ } catch (error) {
136
+ console.error("Error updating metadata:", error);
137
+ }
138
+ }, [
139
+ props.blendMode,
140
+ props.opacity,
141
+ props.visible,
142
+ props.maskSource,
143
+ props.maskType,
144
+ props.renderOrder,
145
+ props.id,
146
+ effectiveTransform,
147
+ instanceId,
148
+ parentMetadataUpdate
149
+ ]);
150
+ if (props.ref && typeof props.ref === "function") try {
151
+ props.ref(null);
152
+ } catch (e) {}
153
+ return /* @__PURE__ */ jsx(ShaderContext.Provider, {
154
+ value: childContextValue,
155
+ children: /* @__PURE__ */ jsx("span", {
156
+ ref: markerRef,
157
+ style: MARKER_STYLE,
158
+ "data-shader-id": instanceId,
159
+ children: props.children
160
+ })
161
+ });
162
+ };
163
+ var Aurora_default = ShaderComponent;
164
+ export { Aurora_default as default };