@w6w/embed 0.2.23 → 0.2.26

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 (44) hide show
  1. package/dist/{ImportSpecModal-Cpzp8ndt.js → ImportSpecModal-VdYN1QeZ.js} +21 -20
  2. package/dist/{ImportSpecModal-Cpzp8ndt.js.map → ImportSpecModal-VdYN1QeZ.js.map} +1 -1
  3. package/dist/{WorkflowEditor-LesBKjb2.js → WorkflowEditor-CGKoeSG7.js} +6 -6
  4. package/dist/{WorkflowEditor-LesBKjb2.js.map → WorkflowEditor-CGKoeSG7.js.map} +1 -1
  5. package/dist/{apps-CYUgEfGf.js → apps-FMcQfyL2.js} +2 -2
  6. package/dist/{apps-CYUgEfGf.js.map → apps-FMcQfyL2.js.map} +1 -1
  7. package/dist/chrome/ImportSpecModal.d.ts +2 -0
  8. package/dist/{credentials-Cn92LGhJ.js → credentials-CMR_wEvx.js} +96 -71
  9. package/dist/credentials-CMR_wEvx.js.map +1 -0
  10. package/dist/editor-apps-HEOclsxL.js +152 -0
  11. package/dist/{editor-apps-LZmDWMqf.js.map → editor-apps-HEOclsxL.js.map} +1 -1
  12. package/dist/{editor-tools-DHyWiG21.js → editor-tools-Brw0cv2F.js} +4 -4
  13. package/dist/{editor-tools-DHyWiG21.js.map → editor-tools-Brw0cv2F.js.map} +1 -1
  14. package/dist/editor.mjs +1 -1
  15. package/dist/editors.mjs +7 -7
  16. package/dist/index.mjs +15 -15
  17. package/dist/lib/workflow-blank.d.ts +12 -2
  18. package/dist/lib.mjs +41 -39
  19. package/dist/lists/ConnectionList.d.ts +3 -1
  20. package/dist/lists/CredentialCreate.d.ts +25 -0
  21. package/dist/lists/CredentialDetail.d.ts +5 -1
  22. package/dist/lists/CredentialList.d.ts +3 -1
  23. package/dist/lists.d.ts +2 -0
  24. package/dist/lists.mjs +943 -768
  25. package/dist/lists.mjs.map +1 -1
  26. package/dist/models-CK1KHd39.js.map +1 -1
  27. package/dist/rail.mjs +1 -1
  28. package/dist/repos/agents-studio-agents.d.ts +46 -2
  29. package/dist/repos/credentials.d.ts +16 -2
  30. package/dist/repos/models.d.ts +36 -6
  31. package/dist/repos.mjs +468 -451
  32. package/dist/repos.mjs.map +1 -1
  33. package/dist/{spec-export-DGigBUsP.js → spec-export-DMMET5VM.js} +2 -2
  34. package/dist/{spec-export-DGigBUsP.js.map → spec-export-DMMET5VM.js.map} +1 -1
  35. package/dist/workflow-blank-BJFLdGyE.js +37 -0
  36. package/dist/workflow-blank-BJFLdGyE.js.map +1 -0
  37. package/dist/{workflows-BK6IM4if.js → workflows-Dz8LMjnt.js} +37 -34
  38. package/dist/workflows-Dz8LMjnt.js.map +1 -0
  39. package/package.json +2 -2
  40. package/dist/credentials-Cn92LGhJ.js.map +0 -1
  41. package/dist/editor-apps-LZmDWMqf.js +0 -152
  42. package/dist/workflow-blank-CorOIrSj.js +0 -21
  43. package/dist/workflow-blank-CorOIrSj.js.map +0 -1
  44. package/dist/workflows-BK6IM4if.js.map +0 -1
package/dist/editor.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { W as e } from "./WorkflowEditor-LesBKjb2.js";
2
+ import { W as e } from "./WorkflowEditor-CGKoeSG7.js";
3
3
  export {
4
4
  e as WorkflowEditor
5
5
  };
package/dist/editors.mjs CHANGED
@@ -2,8 +2,8 @@
2
2
  var tn = Object.defineProperty;
3
3
  var an = (t, i, a) => i in t ? tn(t, i, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[i] = a;
4
4
  var Se = (t, i, a) => an(t, typeof i != "symbol" ? i + "" : i, a);
5
- import { H as sn, E as on, B as rn, a as Re, J as xe, b as De } from "./WorkflowEditor-LesBKjb2.js";
6
- import { W as Wt } from "./WorkflowEditor-LesBKjb2.js";
5
+ import { H as sn, E as on, B as rn, a as Re, J as xe, b as De } from "./WorkflowEditor-CGKoeSG7.js";
6
+ import { W as Wt } from "./WorkflowEditor-CGKoeSG7.js";
7
7
  import { jsx as e, jsxs as o, Fragment as D } from "react/jsx-runtime";
8
8
  import { EditButton as ln, DeleteButton as dn, Copyable as Ke, CodeBlock as cn, IconButton as pe, AppIcon as un, ExpressionInput as hn, StepBuilderModal as mn, ExpressionOptionsProvider as Te } from "@w6w/ui";
9
9
  import { useState as g, Component as fn, useRef as _, useEffect as se, useMemo as L, useCallback as he } from "react";
@@ -12,20 +12,20 @@ import { D as vn } from "./DocumentFormModal-Br4s8wmi.js";
12
12
  import { u as ke } from "./project-context-Tvp-La7A.js";
13
13
  import { j as bn, i as gn } from "./spec-import-SWOonsNr.js";
14
14
  import { ApiError as ye } from "@w6w/sdk";
15
- import { k as kn, i as wn } from "./apps-CYUgEfGf.js";
16
- import { C as Nn, c as Ae } from "./editor-tools-DHyWiG21.js";
15
+ import { k as kn, i as wn } from "./apps-FMcQfyL2.js";
16
+ import { C as Nn, c as Ae } from "./editor-tools-Brw0cv2F.js";
17
17
  import { a as Cn, b as Sn } from "./use-callable-draft-DCauHt5o.js";
18
18
  import { E as En, F as In } from "./CreateFunctionModal-DScxp_LN.js";
19
19
  import { d as Oe, z as Fn, b as Pn, u as Bn, w as je, v as Me, A as Rn } from "./endpoints-DSRo1Lc5.js";
20
20
  import { t as xn, a as Je, c as Le, I as Dn, b as Kn, p as ve, f as Tn, u as Ee, s as We, m as Qe, g as Ue, i as Ie, e as An, h as On } from "./coerce-input-DFJ4n_wc.js";
21
21
  import { e as me } from "./import-bindings-EUtxZ9Ti.js";
22
- import { h as qe, b as jn, e as Mn } from "./spec-export-DGigBUsP.js";
22
+ import { h as qe, b as jn, e as Mn } from "./spec-export-DMMET5VM.js";
23
23
  import { useQueryClient as we } from "@tanstack/react-query";
24
- import { o as $e, a1 as Jn, a0 as Ln } from "./workflows-BK6IM4if.js";
24
+ import { o as $e, a1 as Jn, a0 as Ln } from "./workflows-Dz8LMjnt.js";
25
25
  import { SECRET_MASK as Wn } from "@w6w/sdk/console";
26
26
  import { f as He, d as Qn } from "./setup-incomplete-BHs3Lpfy.js";
27
27
  import { n as _e, d as Un } from "./connections-CzsCyIxY.js";
28
- import { u as qn } from "./editor-apps-LZmDWMqf.js";
28
+ import { u as qn } from "./editor-apps-HEOclsxL.js";
29
29
  import { s as $n } from "./slug-BVdgiP_L.js";
30
30
  function Hn(t) {
31
31
  switch (t) {
package/dist/index.mjs CHANGED
@@ -3,18 +3,18 @@ import { jsx as c, jsxs as N } from "react/jsx-runtime";
3
3
  import { QueryClientProvider as O, QueryClient as G, useQuery as z } from "@tanstack/react-query";
4
4
  import { W6WProvider as J, useW6WClient as P, useW6WSession as H, createW6WUiAdapter as V } from "@w6w/react";
5
5
  import { W6WUIProvider as X } from "@w6w/ui";
6
- import { useState as j, useRef as T, useEffect as w, useCallback as R, useMemo as v, useContext as Y, createContext as Z } from "react";
6
+ import { useState as j, useRef as x, useEffect as w, useCallback as R, useMemo as v, useContext as Y, createContext as Z } from "react";
7
7
  import { E as _ } from "./client-context-CX61Bgw-.js";
8
8
  import { c as ee, D as te } from "./draft-registry-YF0tqNN0.js";
9
9
  import { E as re, a as oe } from "./project-context-Tvp-La7A.js";
10
10
  import { b as Ne } from "./project-context-Tvp-La7A.js";
11
11
  import { j as ne } from "./connections-CzsCyIxY.js";
12
- import { x as se } from "./credentials-Cn92LGhJ.js";
12
+ import { B as se } from "./credentials-CMR_wEvx.js";
13
13
  import { e as ie, c as ue } from "./data-stores-UeQvwVCa.js";
14
14
  import { r as ae } from "./fields-DvS8XZFc.js";
15
15
  import { l as ce } from "./models-CK1KHd39.js";
16
16
  import { path as q } from "@w6w/sdk";
17
- import { s as le, t as de, J as fe } from "./workflows-BK6IM4if.js";
17
+ import { s as le, t as de, J as fe } from "./workflows-Dz8LMjnt.js";
18
18
  import { E as pe } from "./theme-context-E2ZhlXDX.js";
19
19
  class me extends Error {
20
20
  constructor(s) {
@@ -122,7 +122,7 @@ function Ce({
122
122
  e(n, u);
123
123
  }, [n, u, e]), null;
124
124
  }
125
- function Ke({
125
+ function Be({
126
126
  apiOrigin: n,
127
127
  getSession: s,
128
128
  identityKey: e,
@@ -137,9 +137,9 @@ function Ke({
137
137
  const [y] = j(ee), [l, L] = j(() => ({
138
138
  identityKey: e,
139
139
  queryClient: I()
140
- })), M = e !== l.identityKey, k = T({ apiOrigin: n, project: o, getSession: s });
140
+ })), M = e !== l.identityKey, k = x({ apiOrigin: n, project: o, getSession: s });
141
141
  M || (k.current = { apiOrigin: n, project: o, getSession: s });
142
- const E = k.current, A = T(E.getSession);
142
+ const E = k.current, A = x(E.getSession);
143
143
  A.current = E.getSession;
144
144
  const [U] = j(() => () => A.current());
145
145
  w(() => {
@@ -156,16 +156,16 @@ function Ke({
156
156
  }, [e, l.identityKey, y]);
157
157
  const C = l.queryClient;
158
158
  w(() => () => C.clear(), [C]);
159
- const [S, $] = j(null), K = R((p, d) => {
159
+ const [S, $] = j(null), B = R((p, d) => {
160
160
  $(
161
161
  (b) => b && b.key === p && b.state.project === d.project && b.state.status === d.status && b.state.error === d.error ? b : { key: p, state: d }
162
162
  );
163
- }, []), [g, D] = j(null), Q = v(() => {
163
+ }, []), [g, D] = j(null), K = v(() => {
164
164
  const p = l.queryClient;
165
165
  return (d) => {
166
166
  D({ key: p, error: new me(d) });
167
167
  };
168
- }, [l.queryClient]), B = R(() => D(null), []), h = l.identityKey, m = E.project, W = typeof m == "object" && m !== null && !Array.isArray(m) && m.use === "default", x = v(() => typeof m == "string" ? { project: m, status: "ready" } : W ? S && S.key === h ? S.state : { project: null, status: "resolving" } : { project: null, status: "ready" }, [m, W, S, h]);
168
+ }, [l.queryClient]), Q = R(() => D(null), []), h = l.identityKey, m = E.project, W = typeof m == "object" && m !== null && !Array.isArray(m) && m.use === "default", T = v(() => typeof m == "string" ? { project: m, status: "ready" } : W ? S && S.key === h ? S.state : { project: null, status: "resolving" } : { project: null, status: "ready" }, [m, W, S, h]);
169
169
  return h === null ? i : /* @__PURE__ */ c(te, { registry: y, children: /* @__PURE__ */ c(O, { client: C, children: /* @__PURE__ */ N(
170
170
  J,
171
171
  {
@@ -173,24 +173,24 @@ function Ke({
173
173
  getSession: U,
174
174
  identityKey: h,
175
175
  ready: r,
176
- project: x.project ?? void 0,
176
+ project: T.project ?? void 0,
177
177
  fetch: u,
178
- onUnauthorized: Q,
178
+ onUnauthorized: K,
179
179
  children: [
180
180
  W ? /* @__PURE__ */ c(
181
181
  Ce,
182
182
  {
183
183
  identityKey: h,
184
184
  enabled: r !== !1,
185
- onState: K
185
+ onState: B
186
186
  }
187
187
  ) : null,
188
- /* @__PURE__ */ c(re.Provider, { value: x, children: /* @__PURE__ */ c(
188
+ /* @__PURE__ */ c(re.Provider, { value: T, children: /* @__PURE__ */ c(
189
189
  Ee,
190
190
  {
191
191
  eager: a,
192
192
  authError: g && g.key === C ? g.error : null,
193
- onAcquire: B,
193
+ onAcquire: Q,
194
194
  children: /* @__PURE__ */ c(we, { children: /* @__PURE__ */ c(ve, { theme: t, children: f }) })
195
195
  }
196
196
  ) })
@@ -200,7 +200,7 @@ function Ke({
200
200
  }
201
201
  export {
202
202
  me as EmbedAuthError,
203
- Ke as W6WEmbedProvider,
203
+ Be as W6WEmbedProvider,
204
204
  Ne as useEmbedProject,
205
205
  $e as useEmbedStatus
206
206
  };
@@ -1,2 +1,12 @@
1
- /** A fresh, minimal workflow definition for a brand-new id (a new object on every call). */
2
- export declare function blankDefinition(id: string): Record<string, unknown>;
1
+ export declare const UNTITLED_WORKFLOW = "Untitled workflow";
2
+ /**
3
+ * The name a new workflow gets: "Untitled workflow", or — when that is taken — the next number
4
+ * after the highest "Untitled workflow N" in `taken`, so a list of new workflows reads 1, 2, 3
5
+ * instead of the same name over and over. Names are compared case-insensitively, trimmed.
6
+ */
7
+ export declare function nextUntitledName(taken: Iterable<string | null | undefined>): string;
8
+ /**
9
+ * A fresh, minimal workflow definition for a brand-new id (a new object on every call). Pass
10
+ * `displayName` (from {@link nextUntitledName}) so a new workflow does not repeat an existing name.
11
+ */
12
+ export declare function blankDefinition(id: string, displayName?: string): Record<string, unknown>;
package/dist/lib.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { d as l, f as d, a as c, i as p, p as u, b as m, r as f, c as g, s as S, t as b, e as w, w as v, g as R } from "./setup-incomplete-BHs3Lpfy.js";
3
- import { d as F, a as y, e as I, i as x, b as D, p as C, r as P, c as A, f as E, s as K, g as T, t as U, v as k, h as V } from "./document-sources-DNmBojx6.js";
4
- import { a as L, b as W, e as _, h as N, c as j, d as H, i as q, m as G, p as M, r as O, f as Y, g as $, s as z, j as J, k as Q, l as X, t as Z, v as aa, w as ea, n as sa } from "./import-bindings-EUtxZ9Ti.js";
2
+ import { d as l, f as d, a as c, i as p, p as u, b as m, r as f, c as g, s as S, t as b, e as w, w as R, g as v } from "./setup-incomplete-BHs3Lpfy.js";
3
+ import { d as h, a as y, e as I, i as x, b as D, p as C, r as P, c as U, f as A, s as E, g as K, t as T, v as k, h as L } from "./document-sources-DNmBojx6.js";
4
+ import { a as W, b as N, e as _, h as B, c as O, d as j, i as H, m as q, p as G, r as M, f as Y, g as $, s as z, j as J, k as Q, l as X, t as Z, v as aa, w as ea, n as sa } from "./import-bindings-EUtxZ9Ti.js";
5
5
  import { c as ra, d as ia, i as oa, p as na } from "./settings-rail--GdRMusb.js";
6
6
  import { A as da, b as ca, f as pa, i as ua, a as ma, c as fa, s as ga, u as Sa } from "./slug-BVdgiP_L.js";
7
- import { i as wa, s as va } from "./spec-import-invalidation-D3retX4Q.js";
8
- import { b as ha } from "./workflow-blank-CorOIrSj.js";
9
- import { I as ya, c as Ia, f as xa, i as Da, a as Ca, m as Pa, p as Aa, s as Ea, t as Ka, b as Ta, d as Ua, u as ka, e as Va, g as Ba } from "./coerce-input-DFJ4n_wc.js";
7
+ import { i as wa, s as Ra } from "./spec-import-invalidation-D3retX4Q.js";
8
+ import { U as Fa, b as ha, n as ya } from "./workflow-blank-BJFLdGyE.js";
9
+ import { I as xa, c as Da, f as Ca, i as Pa, a as Ua, m as Aa, p as Ea, s as Ka, t as Ta, b as ka, d as La, u as Va, e as Wa, g as Na } from "./coerce-input-DFJ4n_wc.js";
10
10
  function r(s) {
11
11
  const e = new URLSearchParams(s), a = e.get("edit");
12
12
  if (a === null || a === "") return null;
@@ -20,82 +20,84 @@ function i(s) {
20
20
  }
21
21
  export {
22
22
  da as ACCOUNT_SLUG_RE,
23
- ya as INPUT_TYPES,
24
- L as allowedModes,
23
+ xa as INPUT_TYPES,
24
+ Fa as UNTITLED_WORKFLOW,
25
+ W as allowedModes,
25
26
  ha as blankDefinition,
26
- W as buildRows,
27
+ N as buildRows,
27
28
  ca as buildSnippet,
28
29
  ra as callableRecord,
29
- Ia as coerceInput,
30
+ Da as coerceInput,
30
31
  ia as definitionWithPolicy,
31
32
  l as disabledBannerState,
32
- F as documentSampleValues,
33
+ h as documentSampleValues,
33
34
  y as duplicateKeyIndexes,
34
35
  I as errorHandlerSelfDecision,
35
36
  _ as evaluateEdit,
36
- xa as fieldsFromWorkflow,
37
+ Ca as fieldsFromWorkflow,
37
38
  pa as filterKeyInput,
38
39
  d as findBindingProblems,
39
40
  c as findSetupIncomplete,
40
- N as hasDefinitionActions,
41
- j as hasDelete,
42
- H as hasVersionHistory,
43
- Da as implToTarget,
44
- Ca as inputsForSave,
41
+ B as hasDefinitionActions,
42
+ O as hasDelete,
43
+ j as hasVersionHistory,
44
+ Pa as implToTarget,
45
+ Ua as inputsForSave,
45
46
  p as invalidReason,
46
47
  wa as invalidateImportedCallable,
47
48
  x as isCodeRailAvailable,
48
49
  ua as isEndpointKey,
49
50
  D as isExprDefault,
50
- q as isRowArchived,
51
+ H as isRowArchived,
51
52
  oa as isSettingsRailAvailable,
52
53
  ma as isUrnAddressable,
53
54
  fa as isValidAccountSlug,
54
55
  r as legacyEditRedirect,
55
- Pa as mergeSeed,
56
- G as metadataFieldsForKind,
57
- Aa as paramsToFields,
58
- M as parseImportPaste,
56
+ Aa as mergeSeed,
57
+ q as metadataFieldsForKind,
58
+ ya as nextUntitledName,
59
+ Ea as paramsToFields,
60
+ G as parseImportPaste,
59
61
  na as policyFromDefinition,
60
62
  C as projectDocumentSources,
61
63
  u as publishDisabledReason,
62
64
  m as publishProblems,
63
65
  f as readSettings,
64
66
  P as readStartingData,
65
- A as readVariables,
67
+ U as readVariables,
66
68
  g as readWorkflowStatus,
67
- O as restoreRailState,
69
+ M as restoreRailState,
68
70
  Y as rowReady,
69
71
  $ as rowsReady,
70
- E as runFormFields,
72
+ A as runFormFields,
71
73
  i as runParamFromSearch,
72
74
  z as setBind,
73
75
  J as setCreateName,
74
76
  Q as setUnconfigured,
75
- Ea as shouldSeed,
77
+ Ka as shouldSeed,
76
78
  ga as slugify,
77
79
  X as specCollectionForKind,
78
- va as specImportListKey,
79
- K as startingDataCollisions,
80
- T as startingDataForSave,
80
+ Ra as specImportListKey,
81
+ E as startingDataCollisions,
82
+ K as startingDataForSave,
81
83
  S as stepValid,
82
- Ka as targetIsBound,
83
- Ta as targetRef,
84
- Ua as targetToImpl,
84
+ Ta as targetIsBound,
85
+ ka as targetRef,
86
+ La as targetToImpl,
85
87
  Z as toSelections,
86
- U as toSnippetCallable,
88
+ T as toSnippetCallable,
87
89
  b as triggerInputSeed,
88
90
  w as triggerPreviews,
89
91
  Sa as unavailableReason,
90
- ka as uncoveredForEndpoint,
91
- Va as uncoveredForFunction,
92
- Ba as uncoveredRequiredKeys,
92
+ Va as uncoveredForEndpoint,
93
+ Wa as uncoveredForFunction,
94
+ Na as uncoveredRequiredKeys,
93
95
  k as variablesForSave,
94
- V as varsRailFor,
96
+ L as varsRailFor,
95
97
  aa as visibleRows,
96
98
  ea as withCreatedConnection,
97
99
  sa as workflowKeyEditAllowed,
98
- v as workflowValid,
99
- R as writeSetting
100
+ R as workflowValid,
101
+ v as writeSetting
100
102
  };
101
103
  //# sourceMappingURL=lib.mjs.map
@@ -15,5 +15,7 @@ export interface ConnectionListProps {
15
15
  slots?: UiConnectionListProps["slots"];
16
16
  /** When set, dependent rows in the delete confirm open the callable's editor. */
17
17
  onOpenCallable?: OpenCallable;
18
+ /** Passed to the connect form's Use existing empty state. Absent: that form shows hint text only. */
19
+ onCreateSharedCredential?: () => void;
18
20
  }
19
- export declare function ConnectionList({ onOpen, getHref, addLabel, slots, onOpenCallable, }: ConnectionListProps): import("react").JSX.Element;
21
+ export declare function ConnectionList({ onOpen, getHref, addLabel, slots, onOpenCallable, onCreateSharedCredential, }: ConnectionListProps): import("react").JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { CredentialTypeField } from '../repos/credentials.ts';
2
+ export interface CredentialCreateProps {
3
+ /** Called with the new credential's id after the server accepted it. */
4
+ onCreated?: (id: string) => void;
5
+ /** The Cancel button renders only when given. */
6
+ onCancel?: () => void;
7
+ }
8
+ /** `field.key -> typed text`. */
9
+ export type CredentialFieldValues = Record<string, string>;
10
+ /**
11
+ * One input per descriptor field, controlled by `values`. Secret fields are masked (CSS, never
12
+ * `type="password"`, which would trigger the browser's save-password prompt), `multiline` ones are
13
+ * textareas. Shared with `CredentialDetail`'s rotate box so both render a type the same way.
14
+ */
15
+ export declare function CredentialFieldInputs({ fields, values, onChange, idPrefix, }: {
16
+ fields: readonly CredentialTypeField[];
17
+ values: CredentialFieldValues;
18
+ onChange: (key: string, value: string) => void;
19
+ idPrefix: string;
20
+ }): import("react").JSX.Element;
21
+ /** True when every descriptor field has some text. */
22
+ export declare const allFieldsFilled: (fields: readonly CredentialTypeField[], values: CredentialFieldValues) => boolean;
23
+ /** `{ [field.key]: typed text }` — the `source` body, values exactly as typed. */
24
+ export declare const sourceFromValues: (fields: readonly CredentialTypeField[], values: CredentialFieldValues) => Record<string, string>;
25
+ export declare function CredentialCreate({ onCreated, onCancel }: CredentialCreateProps): import("react").JSX.Element;
@@ -12,4 +12,8 @@ export interface CredentialDetailProps {
12
12
  empty?: ReactNode;
13
13
  };
14
14
  }
15
- export declare function CredentialDetail({ credentialId, onOpenConnection, onDeleted, onBack, slots, }: CredentialDetailProps): import("react").JSX.Element;
15
+ /**
16
+ * Keyed by `credentialId`, so switching credentials remounts the body: a value typed for one
17
+ * credential is never carried to (and posted to) the next.
18
+ */
19
+ export declare function CredentialDetail(props: CredentialDetailProps): import("react").JSX.Element;
@@ -4,6 +4,8 @@ export interface CredentialListProps {
4
4
  contract?: string;
5
5
  /** Row click. */
6
6
  onOpen?: (id: string) => void;
7
+ /** Renders an `Add credential` action in the header and the empty state; the host opens its create form. */
8
+ onCreate?: () => void;
7
9
  slots?: {
8
10
  /** Replaces the heading. */
9
11
  header?: ReactNode;
@@ -11,4 +13,4 @@ export interface CredentialListProps {
11
13
  empty?: ReactNode;
12
14
  };
13
15
  }
14
- export declare function CredentialList({ contract, onOpen, slots }: CredentialListProps): import("react").JSX.Element;
16
+ export declare function CredentialList({ contract, onOpen, onCreate, slots }: CredentialListProps): import("react").JSX.Element;
package/dist/lists.d.ts CHANGED
@@ -26,6 +26,8 @@ export { ModelUsage } from './lists/ModelUsage.tsx';
26
26
  export type { ModelUsageProps } from './lists/ModelUsage.tsx';
27
27
  export { CredentialList } from './lists/CredentialList.tsx';
28
28
  export type { CredentialListProps } from './lists/CredentialList.tsx';
29
+ export { CredentialCreate } from './lists/CredentialCreate.tsx';
30
+ export type { CredentialCreateProps } from './lists/CredentialCreate.tsx';
29
31
  export { CredentialDetail } from './lists/CredentialDetail.tsx';
30
32
  export type { CredentialDetailProps } from './lists/CredentialDetail.tsx';
31
33
  export { DataStoreList } from './lists/DataStoreList.tsx';