@react-three/postprocessing 2.11.2 → 2.11.4

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/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # react-postprocessing
2
2
 
3
3
  [![Version](https://img.shields.io/npm/v/@react-three/postprocessing?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@react-three/postprocessing)
4
+ [![Storybook](https://img.shields.io/static/v1?message=Storybook&style=flat&colorA=000000&colorB=000000&label=&logo=storybook&logoColor=ffffff)](https://pmndrs.github.io/react-postprocessing)
4
5
  [![Downloads](https://img.shields.io/npm/dt/@react-three/postprocessing.svg?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@react-three/postprocessing)
5
6
  [![Discord Shield](https://img.shields.io/discord/740090768164651008?style=flat&colorA=000000&colorB=000000&label=discord&logo=discord&logoColor=ffffff)](https://discord.gg/ZZjjNvJ)
7
+ [![Open in GitHub Codespaces](https://img.shields.io/static/v1?&message=Open%20in%20%20Codespaces&style=flat&colorA=000000&colorB=000000&label=GitHub&logo=github&logoColor=ffffff)](https://github.com/codespaces/new?template_repository=pmndrs%2Freact-postprocessing)
6
8
 
7
9
  `react-postprocessing` is a
8
10
  [postprocessing](https://github.com/pmndrs/postprocessing) wrapper for
package/dist/index.cjs CHANGED
@@ -224,7 +224,7 @@ const wrapEffect = (effect, defaults) =>
224
224
  const args = React.useMemo(() => { var _a, _b; return [...((_a = defaults === null || defaults === void 0 ? void 0 : defaults.args) !== null && _a !== void 0 ? _a : []), ...((_b = props.args) !== null && _b !== void 0 ? _b : [{ ...defaults, ...props }])]; },
225
225
  // eslint-disable-next-line react-hooks/exhaustive-deps
226
226
  [JSON.stringify(props)]);
227
- return (jsxRuntime.jsx(Component, { camera: camera, "blendMode-blendFunction": blendFunction, "blendMode-opacity": opacity, ...props, ref: ref, args: args }));
227
+ return (jsxRuntime.jsx(Component, { camera: camera, "blendMode-blendFunction": blendFunction, "blendMode-opacity-value": opacity, ...props, ref: ref, args: args }));
228
228
  });
229
229
  const useVector2 = (props, key) => {
230
230
  const value = props[key];
package/dist/index.js CHANGED
@@ -204,7 +204,7 @@ const wrapEffect = (effect, defaults) =>
204
204
  const args = React.useMemo(() => { var _a, _b; return [...((_a = defaults === null || defaults === void 0 ? void 0 : defaults.args) !== null && _a !== void 0 ? _a : []), ...((_b = props.args) !== null && _b !== void 0 ? _b : [{ ...defaults, ...props }])]; },
205
205
  // eslint-disable-next-line react-hooks/exhaustive-deps
206
206
  [JSON.stringify(props)]);
207
- return (jsx(Component, { camera: camera, "blendMode-blendFunction": blendFunction, "blendMode-opacity": opacity, ...props, ref: ref, args: args }));
207
+ return (jsx(Component, { camera: camera, "blendMode-blendFunction": blendFunction, "blendMode-opacity-value": opacity, ...props, ref: ref, args: args }));
208
208
  });
209
209
  const useVector2 = (props, key) => {
210
210
  const value = props[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/postprocessing",
3
- "version": "2.11.2",
3
+ "version": "2.11.4",
4
4
  "description": "postprocessing wrapper for React and @react-three/fiber",
5
5
  "keywords": [
6
6
  "postprocessing",
@@ -55,7 +55,6 @@
55
55
  "devDependencies": {
56
56
  "@react-three/drei": "^9.68.2",
57
57
  "@react-three/fiber": "^8.13.0",
58
- "@rollup/plugin-babel": "^6.0.3",
59
58
  "@rollup/plugin-commonjs": "^24.1.0",
60
59
  "@rollup/plugin-node-resolve": "^15.0.2",
61
60
  "@rollup/plugin-typescript": "^11.1.0",