@instantshader/react 0.3.0 → 0.4.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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, ReactElement } from "react";
2
- import { ParamDef, ShaderDef, ShaderDef as ShaderDef$1, beam, flow } from "instantshader";
2
+ import { ParamDef, ShaderDef, ShaderDef as ShaderDef$1, beam, bloom, flow } from "instantshader";
3
3
 
4
4
  //#region src/ShaderCanvas.d.ts
5
5
  interface ShaderCanvasProps {
@@ -53,5 +53,6 @@ declare function ShaderCanvas({
53
53
  //#region src/shaders.d.ts
54
54
  declare function Flow(props: Omit<ShaderCanvasProps, "shader">): ReactElement;
55
55
  declare function Beam(props: Omit<ShaderCanvasProps, "shader">): ReactElement;
56
+ declare function Bloom(props: Omit<ShaderCanvasProps, "shader">): ReactElement;
56
57
  //#endregion
57
- export { Beam, Flow, type ParamDef, ShaderCanvas, type ShaderCanvasProps, type ShaderDef, beam, flow };
58
+ export { Beam, Bloom, Flow, type ParamDef, ShaderCanvas, type ShaderCanvasProps, type ShaderDef, beam, bloom, flow };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { useEffect, useMemo, useRef } from "react";
3
- import { beam, beam as beam$1, flow, flow as flow$1, mountGradient } from "instantshader";
3
+ import { beam, beam as beam$1, bloom, bloom as bloom$1, flow, flow as flow$1, mountGradient } from "instantshader";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
6
6
  //#region src/ShaderCanvas.tsx
@@ -73,6 +73,12 @@ function Beam(props) {
73
73
  ...props
74
74
  });
75
75
  }
76
+ function Bloom(props) {
77
+ return /* @__PURE__ */ jsx(ShaderCanvas, {
78
+ shader: bloom$1,
79
+ ...props
80
+ });
81
+ }
76
82
 
77
83
  //#endregion
78
- export { Beam, Flow, ShaderCanvas, beam, flow };
84
+ export { Beam, Bloom, Flow, ShaderCanvas, beam, bloom, flow };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instantshader/react",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "React bindings for InstantShader animated WebGL gradients.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "react"
37
37
  ],
38
38
  "dependencies": {
39
- "instantshader": "0.3.0"
39
+ "instantshader": "0.4.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": "^18 || ^19",