Skip to content

Commit 4ee190b

Browse files
committed
Use public SDK version
* Use the SDK version published in the NPM registry instead of the one that lives in this repo (it'll be easier to switch) * Fix compilation errors in the example app
1 parent 902c174 commit 4ee190b

File tree

4 files changed

+28
-22
lines changed

4 files changed

+28
-22
lines changed

packages/connect-react/examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"dependencies": {
99
"@pipedream/connect-react": "file:../..",
10-
"@pipedream/sdk": "^1.3.3",
10+
"@pipedream/sdk": "^1.8.0",
1111
"next": "15.0.3",
1212
"react": "19.0.0-rc-66855b96-20241106",
1313
"react-dom": "19.0.0-rc-66855b96-20241106"

packages/connect-react/examples/nextjs/src/app/page.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
"use client";
22

3-
import { useState } from "react";
4-
import { createFrontendClient } from "@pipedream/sdk/browser";
53
import {
64
ComponentFormContainer, FrontendClientProvider,
75
} from "@pipedream/connect-react";
6+
import {
7+
createFrontendClient,
8+
type ConfigurableProp,
9+
type ConfiguredProps,
10+
} from "@pipedream/sdk/browser";
11+
import { useState } from "react";
812
import { fetchToken } from "./actions";
913

1014
export default function Home() {
@@ -16,7 +20,7 @@ export default function Home() {
1620
const [
1721
configuredProps,
1822
setConfiguredProps,
19-
] = useState({
23+
] = useState<ConfiguredProps<ConfigurableProp[]>>({
2024
text: "hello slack!",
2125
});
2226

@@ -28,7 +32,7 @@ export default function Home() {
2832
const [
2933
sdkResponse,
3034
setSdkResponse,
31-
] = useState<unknown | undefined>(undefined);
35+
] = useState<ConfiguredProps<ConfigurableProp[]> | undefined>(undefined);
3236

3337
const handleDynamicProps = (dynamicProps: { id: string | undefined }) => {
3438
setDynamicPropsId(dynamicProps.id)

packages/connect-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"author": "Pipedream Engineering",
2929
"license": "MIT",
3030
"dependencies": {
31-
"@pipedream/sdk": "workspace:^",
31+
"@pipedream/sdk": "^1.8.0",
3232
"@tanstack/react-query": "^5.59.16",
3333
"lodash.isequal": "^4.5.0",
3434
"react-markdown": "^9.0.1",

pnpm-lock.yaml

Lines changed: 18 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)