foundry-component-library 0.2.8 → 0.2.10

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 (39) hide show
  1. package/lib/components/Awards/index.tsx +37 -32
  2. package/lib/components/Awards/styles.module.scss +26 -1
  3. package/lib/components/ServiceHubsTeaserEffects/TileBalls.tsx +35 -0
  4. package/lib/components/ServiceHubsTeaserEffects/TileFluid.tsx +29 -0
  5. package/lib/components/ServiceHubsTeaserEffects/TileGlass.tsx +23 -0
  6. package/lib/components/ServiceHubsTeaserEffects/TileRays.tsx +94 -0
  7. package/lib/components/ServiceHubsTeaserEffects/bubbles/Bubble.tsx +35 -0
  8. package/lib/components/ServiceHubsTeaserEffects/bubbles/Bubbles.tsx +44 -0
  9. package/lib/components/ServiceHubsTeaserEffects/fluid/Fluid.tsx +192 -0
  10. package/lib/components/ServiceHubsTeaserEffects/fluid/constant.ts +23 -0
  11. package/lib/components/ServiceHubsTeaserEffects/fluid/effect/Fluid.tsx +22 -0
  12. package/lib/components/ServiceHubsTeaserEffects/fluid/effect/FluidEffect.tsx +58 -0
  13. package/lib/components/ServiceHubsTeaserEffects/fluid/glsl/advection.frag +16 -0
  14. package/lib/components/ServiceHubsTeaserEffects/fluid/glsl/base.vert +26 -0
  15. package/lib/components/ServiceHubsTeaserEffects/fluid/glsl/clear.frag +7 -0
  16. package/lib/components/ServiceHubsTeaserEffects/fluid/glsl/composite.frag +41 -0
  17. package/lib/components/ServiceHubsTeaserEffects/fluid/glsl/curl.frag +22 -0
  18. package/lib/components/ServiceHubsTeaserEffects/fluid/glsl/divergence.frag +41 -0
  19. package/lib/components/ServiceHubsTeaserEffects/fluid/glsl/gradientSubstract.frag +26 -0
  20. package/lib/components/ServiceHubsTeaserEffects/fluid/glsl/pressure.frag +28 -0
  21. package/lib/components/ServiceHubsTeaserEffects/fluid/glsl/splat.frag +19 -0
  22. package/lib/components/ServiceHubsTeaserEffects/fluid/glsl/vorticity.frag +36 -0
  23. package/lib/components/ServiceHubsTeaserEffects/fluid/glsl.d.ts +14 -0
  24. package/lib/components/ServiceHubsTeaserEffects/fluid/hooks/useDoubleFBO.tsx +37 -0
  25. package/lib/components/ServiceHubsTeaserEffects/fluid/hooks/useFBOs.tsx +71 -0
  26. package/lib/components/ServiceHubsTeaserEffects/fluid/hooks/useMaterials.tsx +242 -0
  27. package/lib/components/ServiceHubsTeaserEffects/fluid/hooks/usePointer.tsx +54 -0
  28. package/lib/components/ServiceHubsTeaserEffects/fluid/index.ts +5 -0
  29. package/lib/components/ServiceHubsTeaserEffects/fluid/types.ts +27 -0
  30. package/lib/components/ServiceHubsTeaserEffects/fluid/utils.ts +12 -0
  31. package/lib/components/ServiceHubsTeaserEffects/glass/Lens.tsx +66 -0
  32. package/lib/components/ServiceHubsTeaserEffects/index.tsx +67 -0
  33. package/lib/components/ServiceHubsTeaserEffects/rays/LightSource.tsx +64 -0
  34. package/lib/components/ServiceHubsTeaserEffects/rays/noise.js +97 -0
  35. package/lib/components/ServiceHubsTeaserEffects/styles.module.scss +135 -0
  36. package/lib/index.ts +2 -0
  37. package/lib/queries/getHomePage.ts +10 -0
  38. package/lib/queries/getPageBySlug.ts +39 -4
  39. package/package.json +6 -2
@@ -0,0 +1,54 @@
1
+ import { useThree } from '@react-three/fiber';
2
+ import { useCallback, useEffect, useRef } from 'react';
3
+ import { Vector2 } from 'three';
4
+
5
+ type SplatStack = {
6
+ mouseX: number;
7
+ mouseY: number;
8
+ velocityX: number;
9
+ velocityY: number;
10
+ };
11
+
12
+ export const usePointer = ({ force }: { force: number }) => {
13
+ const { size, gl } = useThree();
14
+
15
+ const splatStack = useRef<SplatStack[]>([]).current;
16
+ const lastMouse = useRef(new Vector2());
17
+ const hasMoved = useRef(false);
18
+
19
+ const onPointerMove = useCallback(
20
+ (event: PointerEvent) => {
21
+ const rect = gl.domElement.getBoundingClientRect();
22
+
23
+ const x = event.clientX - rect.left;
24
+ const y = event.clientY - rect.top;
25
+
26
+ const deltaX = x - lastMouse.current.x;
27
+ const deltaY = y - lastMouse.current.y;
28
+
29
+ if (!hasMoved.current) {
30
+ hasMoved.current = true;
31
+ lastMouse.current.set(x, y);
32
+ return;
33
+ }
34
+
35
+ lastMouse.current.set(x, y);
36
+
37
+ splatStack.push({
38
+ mouseX: x / size.width,
39
+ mouseY: 1 - y / size.height,
40
+ velocityX: deltaX * force,
41
+ velocityY: -deltaY * force,
42
+ });
43
+ },
44
+ [force, size.width, size.height, gl, splatStack],
45
+ );
46
+
47
+ useEffect(() => {
48
+ const el = gl.domElement;
49
+ el.addEventListener('pointermove', onPointerMove);
50
+ return () => el.removeEventListener('pointermove', onPointerMove);
51
+ }, [onPointerMove, gl]);
52
+
53
+ return splatStack;
54
+ };
@@ -0,0 +1,5 @@
1
+ /// <reference path="./glsl.d.ts" />
2
+
3
+ export type { FluidProps } from './types';
4
+ export { DEFAULT_CONFIG } from './constant';
5
+ export { Fluid } from './Fluid';
@@ -0,0 +1,27 @@
1
+ import { BlendFunction } from 'postprocessing';
2
+ import { Texture } from 'three';
3
+
4
+ export type SharedProps = {
5
+ blend?: number;
6
+ intensity?: number;
7
+ distortion?: number;
8
+ rainbow?: boolean;
9
+ fluidColor?: string;
10
+ backgroundColor?: string;
11
+ showBackground?: boolean;
12
+ blendFunction?: BlendFunction;
13
+ };
14
+
15
+ export type FluidProps = SharedProps & {
16
+ densityDissipation?: number;
17
+ pressure?: number;
18
+ velocityDissipation?: number;
19
+ force?: number;
20
+ radius?: number;
21
+ curl?: number;
22
+ swirl?: number;
23
+ };
24
+
25
+ export type EffectProps = Required<SharedProps> & {
26
+ tFluid: Texture;
27
+ };
@@ -0,0 +1,12 @@
1
+ import { Color, Vector3 } from 'three';
2
+ import { REFRESH_RATE } from './constant';
3
+
4
+ export const hexToRgb = (hex: string) => {
5
+ const color = new Color(hex);
6
+
7
+ return new Vector3(color.r, color.g, color.b);
8
+ };
9
+
10
+ export const normalizeScreenHz = (value: number, dt: number) => {
11
+ return Math.pow(value, dt * REFRESH_RATE);
12
+ };
@@ -0,0 +1,66 @@
1
+ import * as THREE from "three";
2
+ import { useRef, useState } from "react";
3
+ import { createPortal, useFrame, useThree } from "@react-three/fiber";
4
+ import { useFBO, useGLTF, MeshTransmissionMaterial } from "@react-three/drei";
5
+ import { easing } from "maath";
6
+
7
+ const Lens = ({ children, damping = 0.2, ...props }) => {
8
+ const ref = useRef(null);
9
+ const { nodes } = useGLTF("/lens-transformed.glb");
10
+ const buffer = useFBO();
11
+ const viewport = useThree((state) => state.viewport);
12
+ const [scene] = useState(() => new THREE.Scene());
13
+ useFrame((state, delta) => {
14
+ // Tie lens to the pointer
15
+ // getCurrentViewport gives us the width & height that would fill the screen in threejs units
16
+ // By giving it a target coordinate we can offset these bounds, for instance width/height for a plane that
17
+ // sits 15 units from 0/0/0 towards the camera (which is where the lens is)
18
+ const viewport = state.viewport.getCurrentViewport(
19
+ state.camera,
20
+ [0, 0, 15]
21
+ );
22
+ easing.damp3(
23
+ ref.current!.position,
24
+ [
25
+ (state.pointer.x * viewport.width) / 2,
26
+ (state.pointer.y * viewport.height) / 2,
27
+ 15,
28
+ ],
29
+ damping,
30
+ delta
31
+ );
32
+ // This is entirely optional but spares us one extra render of the scene
33
+ // The createPortal below will mount the children of <Lens> into the new THREE.Scene above
34
+ // The following code will render that scene into a buffer, whose texture will then be fed into
35
+ // a plane spanning the full screen and the lens transmission material
36
+ state.gl.setRenderTarget(buffer);
37
+ state.gl.setClearColor("#f197f4");
38
+ state.gl.render(scene, state.camera);
39
+ state.gl.setRenderTarget(null);
40
+ });
41
+ return (
42
+ <>
43
+ {createPortal(children, scene)}
44
+ <mesh scale={[viewport.width, viewport.height, 1]}>
45
+ <planeGeometry />
46
+ <meshBasicMaterial map={buffer.texture} />
47
+ </mesh>
48
+ <mesh
49
+ scale={0.25}
50
+ ref={ref}
51
+ rotation-x={Math.PI / 2}
52
+ geometry={nodes.Cylinder.geometry}
53
+ {...props}>
54
+ <MeshTransmissionMaterial
55
+ buffer={buffer.texture}
56
+ ior={1.2}
57
+ thickness={1.5}
58
+ anisotropy={0.1}
59
+ chromaticAberration={0.02}
60
+ />
61
+ </mesh>
62
+ </>
63
+ );
64
+ };
65
+
66
+ export default Lens;
@@ -0,0 +1,67 @@
1
+ "use client";
2
+ import { useRef } from "react";
3
+ import Container from "../Container";
4
+ import styles from "./styles.module.scss";
5
+ import TextSection from "../TextSection";
6
+ import TileGlass from "./TileGlass";
7
+ import TileBalls from "./TileBalls";
8
+ import TileRays from "./TileRays";
9
+ import TileFluid from "./TileFluid";
10
+ import { NextLink } from "../../types";
11
+
12
+ const ServiceHubsTeaserEffects = ({
13
+ caption,
14
+ heading,
15
+ text,
16
+ tiles,
17
+ Link,
18
+ }: {
19
+ caption: string;
20
+ heading: string;
21
+ text: string;
22
+ tiles: {
23
+ id: string;
24
+ uri: string;
25
+ title: string;
26
+ customFieldsHub: {
27
+ heading: string;
28
+ };
29
+ }[];
30
+ Link: NextLink;
31
+ }) => {
32
+ const wrapperRef = useRef<HTMLDivElement>(null);
33
+
34
+ return (
35
+ <div className={styles.benefits}>
36
+ <TextSection caption={caption} heading={heading} text={text} isSmall />
37
+ <Container noMobilePadding>
38
+ <div className={styles.wrapper} ref={wrapperRef}>
39
+ <div className={styles.tiles}>
40
+ {tiles.map((tile, i) => {
41
+ const colors: Array<"pink" | "yellow" | "brown" | "blue"> = [
42
+ "pink",
43
+ "yellow",
44
+ "brown",
45
+ "blue",
46
+ ];
47
+ const background = colors[i % colors.length];
48
+
49
+ return (
50
+ <div className={styles.tileWrapper} key={tile.id}>
51
+ <div className={`${styles.tile} ${styles[background]}`}>
52
+ {i === 0 && <TileGlass />}
53
+ {i === 1 && <TileFluid />}
54
+ {i === 2 && <TileRays />}
55
+ {i === 3 && <TileBalls />}
56
+ </div>
57
+ </div>
58
+ );
59
+ })}
60
+ </div>
61
+ </div>
62
+ </Container>
63
+ </div>
64
+ );
65
+ };
66
+
67
+ export default ServiceHubsTeaserEffects;
@@ -0,0 +1,64 @@
1
+ "use client";
2
+
3
+ import { useRef, useMemo } from "react";
4
+ import { useFrame } from "@react-three/fiber";
5
+ import * as THREE from "three";
6
+ import noise from "./noise";
7
+
8
+ export function LightSource(props) {
9
+ const meshRef = useRef();
10
+
11
+ // shared time uniform
12
+ const time = useMemo(() => ({ value: 0 }), []);
13
+
14
+ const material = useMemo(() => {
15
+ const m = new THREE.MeshBasicMaterial({
16
+ color: 0xf197f4,
17
+ transparent: true,
18
+ onBeforeCompile: (shader) => {
19
+ shader.uniforms.time = time;
20
+
21
+ shader.fragmentShader = `
22
+ uniform float time;
23
+ ${shader.fragmentShader}
24
+ `
25
+ .replace(
26
+ `void main() {`,
27
+ `
28
+ ${noise}
29
+ void main() {
30
+ `
31
+ )
32
+ .replace(
33
+ `vec4 diffuseColor = vec4( diffuse, opacity );`,
34
+ `
35
+ vec2 uv = vUv - 0.5;
36
+ vec3 col = vec3(0.0);
37
+
38
+ float f = smoothstep(0.5, 0.0, length(uv));
39
+ f = pow(f, 4.0);
40
+
41
+ float n = snoise(vec3(uv * 7.0, time)) * 0.5 + 0.5;
42
+ n = n * 0.5 + 0.5;
43
+
44
+ col = mix(col, diffuse, f * n);
45
+ vec4 diffuseColor = vec4(col, opacity);
46
+ `
47
+ );
48
+ },
49
+ });
50
+
51
+ m.defines = { USE_UV: "" };
52
+ return m;
53
+ }, [time]);
54
+
55
+ useFrame((_, delta) => {
56
+ time.value += delta;
57
+ });
58
+
59
+ return (
60
+ <mesh ref={meshRef} material={material} {...props}>
61
+ <circleGeometry args={[50, 64]} />
62
+ </mesh>
63
+ );
64
+ }
@@ -0,0 +1,97 @@
1
+ const noise = `
2
+ vec4 permute(vec4 x) {
3
+ return mod(((x * 34.0) + 1.0) * x, 289.0);
4
+ }
5
+
6
+ vec4 taylorInvSqrt(vec4 r) {
7
+ return 1.79284291400159 - 0.85373472095314 * r;
8
+ }
9
+
10
+ vec3 fade(vec3 t) {
11
+ return t * t * t * (t * (t * 6.0 - 15.0) + 10.0);
12
+ }
13
+
14
+ float snoise(vec3 v) {
15
+ const vec2 C = vec2(1.0 / 6.0, 1.0 / 3.0);
16
+ const vec4 D = vec4(0.0, 0.5, 1.0, 2.0);
17
+
18
+ vec3 i = floor(v + dot(v, C.yyy));
19
+ vec3 x0 = v - i + dot(i, C.xxx);
20
+
21
+ vec3 g = step(x0.yzx, x0.xyz);
22
+ vec3 l = 1.0 - g;
23
+ vec3 i1 = min(g.xyz, l.zxy);
24
+ vec3 i2 = max(g.xyz, l.zxy);
25
+
26
+ vec3 x1 = x0 - i1 + C.xxx;
27
+ vec3 x2 = x0 - i2 + C.yyy;
28
+ vec3 x3 = x0 - D.yyy;
29
+
30
+ i = mod(i, 289.0);
31
+ vec4 p = permute(
32
+ permute(
33
+ permute(
34
+ i.z + vec4(0.0, i1.z, i2.z, 1.0)
35
+ ) + i.y + vec4(0.0, i1.y, i2.y, 1.0)
36
+ ) + i.x + vec4(0.0, i1.x, i2.x, 1.0)
37
+ );
38
+
39
+ float n_ = 1.0 / 7.0;
40
+ vec3 ns = n_ * D.wyz - D.xzx;
41
+
42
+ vec4 j = p - 49.0 * floor(p * ns.z * ns.z);
43
+ vec4 x_ = floor(j * ns.z);
44
+ vec4 y_ = floor(j - 7.0 * x_);
45
+
46
+ vec4 x = x_ * ns.x + ns.yyyy;
47
+ vec4 y = y_ * ns.x + ns.yyyy;
48
+ vec4 h = 1.0 - abs(x) - abs(y);
49
+
50
+ vec4 b0 = vec4(x.xy, y.xy);
51
+ vec4 b1 = vec4(x.zw, y.zw);
52
+
53
+ vec4 s0 = floor(b0) * 2.0 + 1.0;
54
+ vec4 s1 = floor(b1) * 2.0 + 1.0;
55
+ vec4 sh = -step(h, vec4(0.0));
56
+
57
+ vec4 a0 = b0.xzyw + s0.xzyw * sh.xxyy;
58
+ vec4 a1 = b1.xzyw + s1.xzyw * sh.zzww;
59
+
60
+ vec3 p0 = vec3(a0.xy, h.x);
61
+ vec3 p1 = vec3(a0.zw, h.y);
62
+ vec3 p2 = vec3(a1.xy, h.z);
63
+ vec3 p3 = vec3(a1.zw, h.w);
64
+
65
+ vec4 norm = taylorInvSqrt(
66
+ vec4(dot(p0, p0), dot(p1, p1), dot(p2, p2), dot(p3, p3))
67
+ );
68
+ p0 *= norm.x;
69
+ p1 *= norm.y;
70
+ p2 *= norm.z;
71
+ p3 *= norm.w;
72
+
73
+ vec4 m = max(
74
+ 0.6 - vec4(
75
+ dot(x0, x0),
76
+ dot(x1, x1),
77
+ dot(x2, x2),
78
+ dot(x3, x3)
79
+ ),
80
+ 0.0
81
+ );
82
+ m = m * m;
83
+
84
+ return 42.0 *
85
+ dot(
86
+ m * m,
87
+ vec4(
88
+ dot(p0, x0),
89
+ dot(p1, x1),
90
+ dot(p2, x2),
91
+ dot(p3, x3)
92
+ )
93
+ );
94
+ }
95
+ `;
96
+
97
+ export default noise;
@@ -0,0 +1,135 @@
1
+ @use "../variables" as *;
2
+
3
+ .benefits {
4
+ overflow: hidden;
5
+ }
6
+
7
+ .wrapper {
8
+ width: 100%;
9
+ // overflow-x: scroll;
10
+ user-select: none;
11
+ }
12
+
13
+ .tiles {
14
+ display: flex;
15
+ flex-wrap: wrap;
16
+ gap: 16px;
17
+ padding-bottom: 64px;
18
+
19
+ @media #{$QUERY-sm} {
20
+ padding-bottom: 32px;
21
+ }
22
+ }
23
+
24
+ .tileWrapper {
25
+ z-index: 0;
26
+ position: relative;
27
+ width: calc(25% - 12px);
28
+ max-width: 100%;
29
+ height: 351px;
30
+
31
+ &:hover {
32
+ z-index: 1;
33
+ }
34
+
35
+ @media screen and (max-width: $screen-sm) {
36
+ max-width: 80%;
37
+ height: 300px;
38
+ }
39
+
40
+ &:first-child {
41
+ @media #{$QUERY-sm} {
42
+ margin-left: 20px;
43
+ }
44
+ }
45
+
46
+ &:last-child {
47
+ @media #{$QUERY-sm} {
48
+ margin-right: 20px;
49
+ }
50
+ }
51
+ }
52
+
53
+ .tile {
54
+ flex-shrink: 0;
55
+ white-space: pre-wrap;
56
+ padding: 0;
57
+ display: flex;
58
+ flex-direction: column;
59
+ align-items: center;
60
+ justify-content: center;
61
+ text-align: center;
62
+ box-sizing: border-box;
63
+ background-color: $color-pink;
64
+ color: $color-brown;
65
+ font-size: 25px;
66
+ width: 100%;
67
+ height: 100%;
68
+ font-family: $font-secondary;
69
+
70
+ path {
71
+ stroke: $color-brown;
72
+ }
73
+
74
+ &.yellow {
75
+ background-color: $color-yellow;
76
+ color: $color-blue;
77
+
78
+ path {
79
+ stroke: $color-blue;
80
+ }
81
+ }
82
+
83
+ &.brown {
84
+ background-color: $color-brown;
85
+ color: $color-pink;
86
+
87
+ path {
88
+ stroke: $color-pink;
89
+ }
90
+ }
91
+
92
+ &.blue {
93
+ background-color: $color-blue;
94
+ color: $color-white;
95
+
96
+ path {
97
+ stroke: $color-white;
98
+ }
99
+ }
100
+
101
+ // &:hover {
102
+ // .face {
103
+ // display: none;
104
+ // }
105
+
106
+ // .tails {
107
+ // display: block;
108
+ // }
109
+ // }
110
+ }
111
+
112
+ .text {
113
+ margin-bottom: 42px;
114
+
115
+ &:last-child {
116
+ margin-bottom: 0;
117
+ }
118
+ }
119
+
120
+ .face {
121
+ display: block;
122
+ font-size: 35px;
123
+ }
124
+
125
+ // .tails {
126
+ // text-align: left;
127
+ // padding-left: 30px;
128
+ // display: none;
129
+ // font-size: 21px;
130
+ // font-family: $font-secondary;
131
+ // }
132
+
133
+ // .tailsText {
134
+ // margin-bottom: 30px;
135
+ // }
package/lib/index.ts CHANGED
@@ -31,6 +31,7 @@ import OfficesTeaser from "./components/OfficesTeaser";
31
31
  import PartnerNetwork from "./components/PartnerNetwork";
32
32
  import QuoteSection from "./components/QuoteSection";
33
33
  import ServiceHubsTeaser from "./components/ServiceHubsTeaser";
34
+ import ServiceHubsTeaserEffects from "./components/ServiceHubsTeaserEffects";
34
35
  import PostContent from "./components/single/Content";
35
36
  import PostTop from "./components/single/Top";
36
37
  import TeamBenefits from "./components/TeamBenefits";
@@ -74,6 +75,7 @@ export {
74
75
  PartnerNetwork,
75
76
  QuoteSection,
76
77
  ServiceHubsTeaser,
78
+ ServiceHubsTeaserEffects,
77
79
  PostContent,
78
80
  PostTop,
79
81
  TeamBenefits,
@@ -113,6 +113,11 @@ type HomePage = {
113
113
  sourceUrl: string;
114
114
  };
115
115
  }[];
116
+ quotes?: {
117
+ name?: string;
118
+ position?: string;
119
+ text?: string;
120
+ }[];
116
121
  };
117
122
  };
118
123
  };
@@ -260,6 +265,11 @@ export default async function getHomePage({
260
265
  sourceUrl
261
266
  }
262
267
  }
268
+ quotes {
269
+ name
270
+ position
271
+ text
272
+ }
263
273
  }
264
274
  }
265
275
  }
@@ -1,19 +1,54 @@
1
1
  import { gql } from "graphql-request";
2
2
  import { Page } from "../../lib/types";
3
3
  import client from "./client";
4
+ import { ContactPage } from "./getContactPage";
4
5
 
5
6
  export default async function getPageBySlug(
6
- slug: string
7
- ): Promise<Page | null> {
7
+ slug: string,
8
+ language: string
9
+ ): Promise<{ page: Page; contactPage: ContactPage }> {
10
+ const contactPage = language === "DE" ? "contact-de" : "contact";
11
+
8
12
  const query = gql`
9
13
  query GetPageBySlug($slug: ID!) {
10
14
  page(id: $slug, idType: URI) {
11
15
  title
16
+ content
17
+ }
18
+ contactPage: page(id: "${contactPage}", idType: URI) {
19
+ customFieldsContact {
20
+ facebook
21
+ instagram
22
+ linkedin
23
+ berlinImage {
24
+ sourceUrl
25
+ }
26
+ berlinText
27
+ berlinEmail
28
+ berlinPhone
29
+ zurichImage {
30
+ sourceUrl
31
+ }
32
+ zurichText
33
+ zurichEmail
34
+ zurichPhone
35
+ newyorkImage {
36
+ sourceUrl
37
+ }
38
+ newyorkText
39
+ newyorkEmail
40
+ newyorkPhone
41
+ contactTeaserHeading
42
+ contactTeaserText
43
+ }
12
44
  }
13
45
  }
14
46
  `;
15
47
 
16
48
  const variables = { slug };
17
- const data: { page: Page } = await client.request(query, variables);
18
- return data.page;
49
+ const data: { page: Page; contactPage: ContactPage } = await client.request(
50
+ query,
51
+ variables
52
+ );
53
+ return data;
19
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foundry-component-library",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -63,6 +63,10 @@
63
63
  "**/*.css"
64
64
  ],
65
65
  "dependencies": {
66
- "graphql-request": "^7.1.2"
66
+ "@react-three/drei": "^10.7.7",
67
+ "@react-three/fiber": "^9.4.2",
68
+ "@react-three/postprocessing": "^3.0.4",
69
+ "graphql-request": "^7.1.2",
70
+ "three": "^0.182.0"
67
71
  }
68
72
  }