@paper-design/shaders-react 0.0.7 → 0.0.8

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,40 +1,4 @@
1
- // Generated by dts-bundle-generator v9.5.1
2
-
3
- import React$1 from 'react';
4
-
5
- export interface ShaderMountProps {
6
- ref?: React$1.RefObject<HTMLCanvasElement>;
7
- fragmentShader: string;
8
- style?: React$1.CSSProperties;
9
- uniforms?: Record<string, number | number[]>;
10
- webGlContextAttributes?: WebGLContextAttributes;
11
- animated?: boolean;
12
- }
13
- export declare const ShaderMount: React$1.FC<ShaderMountProps>;
14
- /** Convert color string from HSL, RGB, or hex to 0-to-1-range-RGB array */
15
- export declare function getShaderColorFromString(colorString: string): [
16
- number,
17
- number,
18
- number
19
- ];
20
- export type GrainCloudsUniforms = {
21
- u_color1: [
22
- number,
23
- number,
24
- number
25
- ];
26
- u_color2: [
27
- number,
28
- number,
29
- number
30
- ];
31
- u_noiseScale: number;
32
- u_noiseSpeed: number;
33
- u_grainAmount: number;
34
- };
35
- export type GrainCloudsProps = Omit<ShaderMountProps, "fragmentShader"> & {
36
- uniforms: GrainCloudsUniforms;
37
- };
38
- export declare const GrainClouds: (props: GrainCloudsProps) => JSX.Element;
39
-
40
- export {};
1
+ export { ShaderMount } from './shader-mount';
2
+ export { GrainClouds } from './shaders/grain-clouds';
3
+ export { type GrainCloudsUniforms } from '@paper-design/shaders';
4
+ export { getShaderColorFromString } from '@paper-design/shaders';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface ShaderMountProps {
3
+ ref?: React.RefObject<HTMLCanvasElement>;
4
+ fragmentShader: string;
5
+ style?: React.CSSProperties;
6
+ uniforms?: Record<string, number | number[]>;
7
+ webGlContextAttributes?: WebGLContextAttributes;
8
+ animated?: boolean;
9
+ }
10
+ export declare const ShaderMount: React.FC<ShaderMountProps>;
@@ -0,0 +1,7 @@
1
+ import { type ShaderMountProps } from '../shader-mount';
2
+ import { GrainCloudsUniforms } from '@paper-design/shaders';
3
+ type GrainCloudsProps = Omit<ShaderMountProps, 'fragmentShader'> & {
4
+ uniforms: GrainCloudsUniforms;
5
+ };
6
+ export declare const GrainClouds: (props: GrainCloudsProps) => JSX.Element;
7
+ export {};
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@paper-design/shaders-react",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
6
9
  "exports": {
7
10
  ".": {
8
11
  "types": "./dist/index.d.ts",
@@ -16,7 +19,7 @@
16
19
  "type-check": "tsc --project tsconfig.json"
17
20
  },
18
21
  "dependencies": {
19
- "@paper-design/shaders": "0.0.5",
22
+ "@paper-design/shaders": "workspace:*",
20
23
  "react": "^18.3.1"
21
24
  },
22
25
  "devDependencies": {