@process.co/api-react 0.0.0-bootstrap.0 → 0.1.0-next.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/README.md CHANGED
@@ -1 +1,70 @@
1
- Registry bootstrap for the Process SDK. Install the next dist-tag for the developer preview.
1
+ # Process for React
2
+
3
+ Use your application's signed-in session to call installed workflows. A method returns ordinary data and exposes React state for the parts of the page that care about progress, connection setup or failure. React 18.2 and 19 are supported.
4
+
5
+ ## Bind the app once
6
+
7
+ The example uses one same-origin route per installed method. See the JavaScript package's `handleMethodRequest` example for the server half. The route authenticates the website user and binds the installation and workflow.
8
+
9
+ ```tsx
10
+ 'use client';
11
+ import { browserMethod } from '@process.co/installed-workflow-client/browser';
12
+ import { createProcessReact, ProcessConnectionForm } from '@process.co/api-react';
13
+
14
+ type Message = { id: string; subject: string };
15
+ const methods = {
16
+ inbox: browserMethod<{ limit: number }, { messages: Message[] }>('/api/outlook/inbox')
17
+ };
18
+ const { ProcessProvider, useProcessMethod } = createProcessReact<typeof methods>();
19
+
20
+ export function App({ userId }: { userId: string }) {
21
+ return <ProcessProvider key={userId} methods={methods}><Inbox /></ProcessProvider>;
22
+ }
23
+ function Inbox() {
24
+ const inbox = useProcessMethod('inbox');
25
+ async function load() {
26
+ try {
27
+ const { messages } = await inbox.call({ limit: 20 });
28
+ // messages can also feed another component, cache or search index.
29
+ } catch { /* The hook exposes the failure for rendering. */ }
30
+ }
31
+ if (inbox.state === 'connection-required')
32
+ return <ProcessConnectionForm step={inbox} consent={inbox.method.consent}>Connect Outlook</ProcessConnectionForm>;
33
+ if (inbox.state === 'error') return <p role="alert">Could not load your inbox.</p>;
34
+ return <>
35
+ <button disabled={inbox.state === 'running'} onClick={load}>Load inbox</button>
36
+ {inbox.state === 'completed' && inbox.data.messages.map(m => <p key={m.id}>{m.subject}</p>)}
37
+ </>;
38
+ }
39
+ ```
40
+
41
+ Choose method names and input/output types from your publication. The component initiates a call from a user event. Use a stable method map and key the provider by signed-in user. Unmounting cancels the local wait. Pass `onOperation` to persist a receipt with its user, installation and method. After a navigation, `inbox.resume(receipt)` reads the original call. The connection form posts to the Process-hosted checklist in a separate tab and the original page continues observing. If Process cannot retain a call, the hook exposes the connection step and the promise rejects. The host can offer an explicit new call after setup.
42
+
43
+ ## Render a Process review card
44
+
45
+ Pass each server-issued card revision to `ProcessActionCard`. The host resolves the registered element and version to its trusted React control. For Outlook, use the declared draft or reply-draft control that wraps the shared Outlook compose surface. The SDK forwards the card's data, mode, execution state and allowed actions.
46
+
47
+ ```tsx
48
+ <ProcessActionCard
49
+ card={card}
50
+ resolveControl={p => controls.get(JSON.stringify([p.fern, p.elementVersion, p.uiKey]))}
51
+ onCommand={command => submitCardAction(command)}
52
+ fallback={<p>This item can be reviewed in Process.</p>}
53
+ />
54
+ ```
55
+
56
+ Here `controls` is the app's trusted registry and `submitCardAction` calls its authenticated backend. A command carries the card ID, reviewed revision, action ID and edited input. The server authorizes the user, revision and policy before executing a command. A receipt is read-only. The card component accepts updates from any host transport, including a stream that delivers complete card snapshots. The package does not provision an Outlook workflow, event subscription or agent.
57
+
58
+ ## Migrating from the development package
59
+
60
+ Replace the global Zustand initializer and `useAPI()` with a named method map and a provider per signed-in application tree. Plain JavaScript callers share those same methods. The previous development package's globals and environment helpers have no counterpart in this client. Pass application configuration through your own server and React context.
61
+
62
+ ## Outlook example routes
63
+
64
+ | Application entry point | Purpose |
65
+ | --- | --- |
66
+ | `/api/outlook/inbox` | Call the installed inbox method and return message data to any component. |
67
+ | `/api/outlook/draft-proposals` | Call the published proposal method and return a review card. |
68
+ | `/api/outlook/card-actions` | Submit the user's chosen action and reviewed revision to the server for a policy decision. |
69
+
70
+ These are URLs the example app defines. Bind the first two to their own published Process methods and signed-in session. Put card action handling behind its own authenticated route. Reconnecting and observing a receipt use the originating method route. Inbound provider events use the installation's event subscription and a separate delivery handler.
@@ -0,0 +1,54 @@
1
+ import type { ComponentType, ReactNode } from 'react';
2
+ type ExecutionStatus = 'proposed' | 'awaiting-approval' | 'executing' | 'settlement-unknown' | 'succeeded' | 'failed' | 'denied' | 'cancelled';
3
+ interface Action {
4
+ id: string;
5
+ label: string;
6
+ }
7
+ export interface ActionCard<T> {
8
+ id: string;
9
+ revision?: number;
10
+ status: string;
11
+ title?: string;
12
+ data: T;
13
+ presentation: {
14
+ kind: string;
15
+ fern?: string;
16
+ elementVersion?: string;
17
+ uiKey?: string;
18
+ mode?: 'proposal' | 'receipt';
19
+ };
20
+ execution?: {
21
+ status: ExecutionStatus;
22
+ };
23
+ providerLifecycle?: {
24
+ state: string;
25
+ };
26
+ actions: readonly Action[];
27
+ }
28
+ export interface CardCommand<T> {
29
+ cardId: string;
30
+ revision: number;
31
+ actionId: string;
32
+ input: T;
33
+ }
34
+ export interface CardControlProps<T> {
35
+ value: T;
36
+ data: T;
37
+ title?: string;
38
+ mode: 'proposal' | 'receipt';
39
+ actions: readonly Action[];
40
+ execution?: ActionCard<T>['execution'];
41
+ readonly: boolean;
42
+ pending: boolean;
43
+ onChange(value: T): void;
44
+ onCommand(id: string): Promise<void>;
45
+ }
46
+ interface Props<T> {
47
+ card: ActionCard<T>;
48
+ resolveControl(presentation: ActionCard<T>['presentation']): ComponentType<CardControlProps<T>> | undefined;
49
+ onCommand(command: CardCommand<T>): Promise<void>;
50
+ fallback?: ReactNode;
51
+ }
52
+ /** A new server revision replaces local edits. The host resolves trusted, versioned renderers. */
53
+ export declare function ProcessActionCard<T>(props: Props<T>): import("react/jsx-runtime").JSX.Element;
54
+ export {};
@@ -0,0 +1,42 @@
1
+ 'use client';
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ProcessActionCard = ProcessActionCard;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
7
+ function Surface({ card, resolveControl, onCommand, fallback }) {
8
+ const [value, setValue] = (0, react_1.useState)(() => card.data);
9
+ const [busy, setBusy] = (0, react_1.useState)(false);
10
+ const [failed, setFailed] = (0, react_1.useState)(false);
11
+ const sending = (0, react_1.useRef)(false);
12
+ const Control = card.presentation.kind === 'element-control' ? resolveControl(card.presentation) : undefined;
13
+ if (!Control)
14
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: fallback ?? (0, jsx_runtime_1.jsx)("p", { children: "Review unavailable for this card." }) });
15
+ const mode = card.presentation.mode ?? 'proposal';
16
+ const pending = busy || card.status === 'streaming' || card.execution?.status === 'executing';
17
+ const readonly = pending || card.status !== 'ready' || mode === 'receipt' || card.revision === undefined ||
18
+ card.providerLifecycle?.state === 'sent' || ['succeeded', 'denied', 'settlement-unknown', 'cancelled'].includes(card.execution?.status ?? '');
19
+ async function dispatch(actionId) {
20
+ if (readonly || sending.current || card.revision === undefined || !card.actions.some(action => action.id === actionId))
21
+ return;
22
+ sending.current = true;
23
+ setBusy(true);
24
+ setFailed(false);
25
+ try {
26
+ await onCommand({ cardId: card.id, revision: card.revision, actionId, input: value });
27
+ }
28
+ catch {
29
+ setFailed(true);
30
+ }
31
+ finally {
32
+ sending.current = false;
33
+ setBusy(false);
34
+ }
35
+ }
36
+ return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Control, { value: value, data: value, title: card.title, mode: mode, actions: card.actions, execution: card.execution, pending: pending, readonly: readonly, onChange: next => { if (!readonly)
37
+ setValue(() => next); }, onCommand: dispatch }), failed && (0, jsx_runtime_1.jsx)("p", { role: "alert", children: "The action could not be completed." })] });
38
+ }
39
+ /** A new server revision replaces local edits. The host resolves trusted, versioned renderers. */
40
+ function ProcessActionCard(props) {
41
+ return (0, jsx_runtime_1.jsx)(Surface, { ...props }, JSON.stringify([props.card.id, props.card.revision, props.card.data]));
42
+ }
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { InstalledWorkflowConsent } from '@process.co/installed-workflow-client';
3
+ import type { ConnectionStep, OperationRef } from '@process.co/installed-workflow-client/methods';
4
+ interface Props {
5
+ step: ConnectionStep;
6
+ consent: (operation: OperationRef, signal?: AbortSignal) => Promise<InstalledWorkflowConsent>;
7
+ children?: ReactNode;
8
+ }
9
+ export declare function ProcessConnectionForm(props: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,47 @@
1
+ 'use client';
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ProcessConnectionForm = ProcessConnectionForm;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
7
+ function Form({ step, consent, children }) {
8
+ const [handoff, setHandoff] = (0, react_1.useState)(step.consent);
9
+ const [loading, setLoading] = (0, react_1.useState)(false);
10
+ const [error, setError] = (0, react_1.useState)(false);
11
+ const request = (0, react_1.useRef)(null);
12
+ (0, react_1.useEffect)(() => () => request.current?.abort(), []);
13
+ (0, react_1.useEffect)(() => {
14
+ if (!handoff)
15
+ return;
16
+ const timer = setTimeout(() => setHandoff(undefined), Math.max(0, Date.parse(handoff.expiresAt) - Date.now()));
17
+ return () => clearTimeout(timer);
18
+ }, [handoff]);
19
+ if (handoff && Date.parse(handoff.expiresAt) > Date.now())
20
+ return ((0, jsx_runtime_1.jsxs)("form", { action: handoff.installUrl, method: "post", target: "_blank", rel: "noopener noreferrer", children: [(0, jsx_runtime_1.jsx)("input", { type: "hidden", name: "confirmationCode", value: handoff.confirmationCode }), (0, jsx_runtime_1.jsx)("button", { type: "submit", children: children ?? 'Connect account' })] }));
21
+ async function renew() {
22
+ if (!step.operation || request.current)
23
+ return;
24
+ const controller = new AbortController();
25
+ request.current = controller;
26
+ setLoading(true);
27
+ setError(false);
28
+ try {
29
+ setHandoff(await consent(step.operation, controller.signal));
30
+ }
31
+ catch {
32
+ if (!controller.signal.aborted)
33
+ setError(true);
34
+ }
35
+ finally {
36
+ request.current = null;
37
+ if (!controller.signal.aborted)
38
+ setLoading(false);
39
+ }
40
+ }
41
+ if (!step.operation || step.operation.kind !== 'setup' || step.setupIssue)
42
+ return (0, jsx_runtime_1.jsx)("p", { role: "status", children: step.setupIssue ?? step.reason });
43
+ return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("button", { type: "button", disabled: loading, onClick: renew, children: "Get connection link" }), error && (0, jsx_runtime_1.jsx)("span", { role: "alert", children: "Could not get the connection link. Try again." })] });
44
+ }
45
+ function ProcessConnectionForm(props) {
46
+ return (0, jsx_runtime_1.jsx)(Form, { ...props }, JSON.stringify([props.step.operation?.id, props.step.step, props.step.consent?.installUrl]));
47
+ }
@@ -0,0 +1,68 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ProcessMethod } from '@process.co/installed-workflow-client/methods';
3
+ export { useBoundMethod } from './use-method';
4
+ export type { MethodState } from './use-method';
5
+ export { ProcessConnectionForm } from './connection-form';
6
+ export { ProcessActionCard } from './action-card';
7
+ export type { ActionCard, CardControlProps, CardCommand } from './action-card';
8
+ /** Declare the host's method map once. Method names, arguments, and results then infer at every hook. */
9
+ export declare function createProcessReact<M extends Record<string, ProcessMethod<never, unknown>>>(): {
10
+ ProcessProvider: ({ methods, children }: {
11
+ methods: M;
12
+ children: ReactNode;
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ useProcessMethod: <K extends keyof M & string>(name: K) => {
15
+ call: (input: Parameters<M[K]["start"]>[0], options?: import("@process.co/installed-workflow-client/methods").CallOptions & import("@process.co/installed-workflow-client/methods").WaitOptions) => Promise<Extract<Awaited<ReturnType<M[K]["start"]>>, {
16
+ state: "completed";
17
+ }>["data"]>;
18
+ resume: (op: import("@process.co/installed-workflow-client/methods").OperationRef, options?: import("@process.co/installed-workflow-client/methods").WaitOptions) => Promise<Extract<Awaited<ReturnType<M[K]["start"]>>, {
19
+ state: "completed";
20
+ }>["data"]>;
21
+ method: ProcessMethod<Parameters<M[K]["start"]>[0], Extract<Awaited<ReturnType<M[K]["start"]>>, {
22
+ state: "completed";
23
+ }>["data"]>;
24
+ state: "connection-required";
25
+ reason: string;
26
+ operation?: import("@process.co/installed-workflow-client/methods").OperationRef;
27
+ consent?: import("@process.co/installed-workflow-client").InstalledWorkflowConsent;
28
+ step?: string;
29
+ setupIssue?: string;
30
+ } | {
31
+ call: (input: Parameters<M[K]["start"]>[0], options?: import("@process.co/installed-workflow-client/methods").CallOptions & import("@process.co/installed-workflow-client/methods").WaitOptions) => Promise<Extract<Awaited<ReturnType<M[K]["start"]>>, {
32
+ state: "completed";
33
+ }>["data"]>;
34
+ resume: (op: import("@process.co/installed-workflow-client/methods").OperationRef, options?: import("@process.co/installed-workflow-client/methods").WaitOptions) => Promise<Extract<Awaited<ReturnType<M[K]["start"]>>, {
35
+ state: "completed";
36
+ }>["data"]>;
37
+ method: ProcessMethod<Parameters<M[K]["start"]>[0], Extract<Awaited<ReturnType<M[K]["start"]>>, {
38
+ state: "completed";
39
+ }>["data"]>;
40
+ state: "idle" | "running";
41
+ } | {
42
+ call: (input: Parameters<M[K]["start"]>[0], options?: import("@process.co/installed-workflow-client/methods").CallOptions & import("@process.co/installed-workflow-client/methods").WaitOptions) => Promise<Extract<Awaited<ReturnType<M[K]["start"]>>, {
43
+ state: "completed";
44
+ }>["data"]>;
45
+ resume: (op: import("@process.co/installed-workflow-client/methods").OperationRef, options?: import("@process.co/installed-workflow-client/methods").WaitOptions) => Promise<Extract<Awaited<ReturnType<M[K]["start"]>>, {
46
+ state: "completed";
47
+ }>["data"]>;
48
+ method: ProcessMethod<Parameters<M[K]["start"]>[0], Extract<Awaited<ReturnType<M[K]["start"]>>, {
49
+ state: "completed";
50
+ }>["data"]>;
51
+ state: "error";
52
+ error: unknown;
53
+ } | {
54
+ call: (input: Parameters<M[K]["start"]>[0], options?: import("@process.co/installed-workflow-client/methods").CallOptions & import("@process.co/installed-workflow-client/methods").WaitOptions) => Promise<Extract<Awaited<ReturnType<M[K]["start"]>>, {
55
+ state: "completed";
56
+ }>["data"]>;
57
+ resume: (op: import("@process.co/installed-workflow-client/methods").OperationRef, options?: import("@process.co/installed-workflow-client/methods").WaitOptions) => Promise<Extract<Awaited<ReturnType<M[K]["start"]>>, {
58
+ state: "completed";
59
+ }>["data"]>;
60
+ method: ProcessMethod<Parameters<M[K]["start"]>[0], Extract<Awaited<ReturnType<M[K]["start"]>>, {
61
+ state: "completed";
62
+ }>["data"]>;
63
+ state: "completed";
64
+ data: Extract<Awaited<ReturnType<M[K]["start"]>>, {
65
+ state: "completed";
66
+ }>["data"];
67
+ };
68
+ };
package/dist/index.js ADDED
@@ -0,0 +1,30 @@
1
+ 'use client';
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ProcessActionCard = exports.ProcessConnectionForm = exports.useBoundMethod = void 0;
5
+ exports.createProcessReact = createProcessReact;
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const react_1 = require("react");
8
+ const use_method_1 = require("./use-method");
9
+ var use_method_2 = require("./use-method");
10
+ Object.defineProperty(exports, "useBoundMethod", { enumerable: true, get: function () { return use_method_2.useBoundMethod; } });
11
+ var connection_form_1 = require("./connection-form");
12
+ Object.defineProperty(exports, "ProcessConnectionForm", { enumerable: true, get: function () { return connection_form_1.ProcessConnectionForm; } });
13
+ var action_card_1 = require("./action-card");
14
+ Object.defineProperty(exports, "ProcessActionCard", { enumerable: true, get: function () { return action_card_1.ProcessActionCard; } });
15
+ /** Declare the host's method map once. Method names, arguments, and results then infer at every hook. */
16
+ function createProcessReact() {
17
+ const Context = (0, react_1.createContext)(null);
18
+ function ProcessProvider({ methods, children }) {
19
+ return (0, jsx_runtime_1.jsx)(Context.Provider, { value: methods, children: children });
20
+ }
21
+ function useProcessMethod(name) {
22
+ const methods = (0, react_1.useContext)(Context);
23
+ if (!methods)
24
+ throw new Error('useProcessMethod requires a ProcessProvider');
25
+ if (!Object.hasOwn(methods, name))
26
+ throw new Error('Unknown Process method: ' + name);
27
+ return (0, use_method_1.useBoundMethod)(methods[name]);
28
+ }
29
+ return { ProcessProvider, useProcessMethod };
30
+ }
@@ -0,0 +1,39 @@
1
+ import type { CallOptions, ConnectionStep, OperationRef, ProcessMethod, WaitOptions } from '@process.co/installed-workflow-client/methods';
2
+ export type MethodState<T> = {
3
+ state: 'idle' | 'running';
4
+ } | ConnectionStep | {
5
+ state: 'completed';
6
+ data: T;
7
+ } | {
8
+ state: 'error';
9
+ error: unknown;
10
+ };
11
+ /** No calls on mount. The caller owns the event that starts an operation. */
12
+ export declare function useBoundMethod<I, O>(method: ProcessMethod<I, O>): {
13
+ call: (input: I, options?: CallOptions & WaitOptions) => Promise<O>;
14
+ resume: (op: OperationRef, options?: WaitOptions) => Promise<O>;
15
+ method: ProcessMethod<I, O>;
16
+ state: "connection-required";
17
+ reason: string;
18
+ operation?: OperationRef;
19
+ consent?: import("@process.co/installed-workflow-client").InstalledWorkflowConsent;
20
+ step?: string;
21
+ setupIssue?: string;
22
+ } | {
23
+ call: (input: I, options?: CallOptions & WaitOptions) => Promise<O>;
24
+ resume: (op: OperationRef, options?: WaitOptions) => Promise<O>;
25
+ method: ProcessMethod<I, O>;
26
+ state: "idle" | "running";
27
+ } | {
28
+ call: (input: I, options?: CallOptions & WaitOptions) => Promise<O>;
29
+ resume: (op: OperationRef, options?: WaitOptions) => Promise<O>;
30
+ method: ProcessMethod<I, O>;
31
+ state: "error";
32
+ error: unknown;
33
+ } | {
34
+ call: (input: I, options?: CallOptions & WaitOptions) => Promise<O>;
35
+ resume: (op: OperationRef, options?: WaitOptions) => Promise<O>;
36
+ method: ProcessMethod<I, O>;
37
+ state: "completed";
38
+ data: O;
39
+ };
@@ -0,0 +1,50 @@
1
+ 'use client';
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.useBoundMethod = useBoundMethod;
5
+ const react_1 = require("react");
6
+ const methods_1 = require("@process.co/installed-workflow-client/methods");
7
+ /** No calls on mount. The caller owns the event that starts an operation. */
8
+ function useBoundMethod(method) {
9
+ const [view, setView] = (0, react_1.useState)();
10
+ const active = (0, react_1.useRef)(null);
11
+ (0, react_1.useEffect)(() => () => { active.current?.abort(); active.current = null; }, [method]);
12
+ const run = (0, react_1.useCallback)(async (execute, options) => {
13
+ if (active.current)
14
+ throw new Error('A call is already active in this hook');
15
+ const controller = new AbortController();
16
+ active.current = controller;
17
+ const abort = () => controller.abort(options.signal?.reason);
18
+ if (options.signal?.aborted)
19
+ abort();
20
+ options.signal?.addEventListener('abort', abort, { once: true });
21
+ const show = (result) => {
22
+ if (active.current === controller)
23
+ setView({ method, result });
24
+ };
25
+ show({ state: 'running' });
26
+ try {
27
+ const data = await execute({ ...options, signal: controller.signal, onConnectionRequired: async (step) => {
28
+ show(step);
29
+ await options.onConnectionRequired?.(step);
30
+ } });
31
+ show({ state: 'completed', data });
32
+ return data;
33
+ }
34
+ catch (error) {
35
+ if (error instanceof methods_1.ProcessMethodError && error.result.state === 'connection-required')
36
+ show(error.result);
37
+ else
38
+ show({ state: 'error', error });
39
+ throw error;
40
+ }
41
+ finally {
42
+ options.signal?.removeEventListener('abort', abort);
43
+ if (active.current === controller)
44
+ active.current = null;
45
+ }
46
+ }, [method]);
47
+ const call = (0, react_1.useCallback)((input, options = {}) => run(wait => (0, methods_1.callMethod)(method, input, { ...options, ...wait }), options), [method, run]);
48
+ const resume = (0, react_1.useCallback)((op, options = {}) => run(wait => (0, methods_1.resumeMethod)(method, op, wait), options), [method, run]);
49
+ return { ...(view?.method === method ? view.result : { state: 'idle' }), call, resume, method };
50
+ }
package/package.json CHANGED
@@ -1,9 +1,32 @@
1
1
  {
2
2
  "name": "@process.co/api-react",
3
- "version": "0.0.0-bootstrap.0",
4
- "description": "Bootstrap placeholder for the Process SDK trusted publisher",
3
+ "version": "0.1.0-next.0",
4
+ "description": "React provider, hooks and action surfaces for installed Process workflows.",
5
5
  "license": "MIT",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ }
13
+ },
6
14
  "files": [
7
- "README.md"
8
- ]
15
+ "dist"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public",
19
+ "tag": "next"
20
+ },
21
+ "dependencies": {
22
+ "@process.co/installed-workflow-client": "0.1.0-next.0"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "^18.2.0 || ^19.0.0"
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/process-co/npm-installed-app-sdks.git",
30
+ "directory": "api-react"
31
+ }
9
32
  }