@w6w/embed 0.2.1 → 0.2.19

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 (185) hide show
  1. package/README.md +22 -5
  2. package/dist/ConfirmModal-Pv2-A_3U.js +186 -0
  3. package/dist/ConfirmModal-Pv2-A_3U.js.map +1 -0
  4. package/dist/{CreateFunctionModal-DRsFx-FB.js → CreateFunctionModal-DScxp_LN.js} +25 -25
  5. package/dist/{CreateFunctionModal-DRsFx-FB.js.map → CreateFunctionModal-DScxp_LN.js.map} +1 -1
  6. package/dist/{DocumentFormModal-BExK1V-B.js → DocumentFormModal-Br4s8wmi.js} +5 -5
  7. package/dist/{DocumentFormModal-BExK1V-B.js.map → DocumentFormModal-Br4s8wmi.js.map} +1 -1
  8. package/dist/ImportSpecModal-Cpzp8ndt.js +251 -0
  9. package/dist/ImportSpecModal-Cpzp8ndt.js.map +1 -0
  10. package/dist/ModelRoutesManager-1Ac5wcas.js +345 -0
  11. package/dist/ModelRoutesManager-1Ac5wcas.js.map +1 -0
  12. package/dist/WorkflowEditor-CmhXHRxi.js +1109 -0
  13. package/dist/WorkflowEditor-CmhXHRxi.js.map +1 -0
  14. package/dist/apps-ItBvnWX3.js +92 -0
  15. package/dist/apps-ItBvnWX3.js.map +1 -0
  16. package/dist/{callables-3mFrMVG_.js → callables-tOlflvbl.js} +11 -11
  17. package/dist/{callables-3mFrMVG_.js.map → callables-tOlflvbl.js.map} +1 -1
  18. package/dist/chrome/ConfirmModal.d.ts +4 -1
  19. package/dist/chrome/DangerZone.d.ts +4 -3
  20. package/dist/chrome/ExecutionProfileHeader.d.ts +3 -3
  21. package/dist/chrome/JsonToggle.d.ts +29 -20
  22. package/dist/chrome/Modal.d.ts +3 -1
  23. package/dist/chrome/RightRail.d.ts +6 -1
  24. package/dist/chrome/VersionHistoryModal.d.ts +2 -0
  25. package/dist/chrome/index.d.ts +1 -0
  26. package/dist/chrome/workspace.d.ts +36 -1
  27. package/dist/coerce-input-DFJ4n_wc.js +150 -0
  28. package/dist/coerce-input-DFJ4n_wc.js.map +1 -0
  29. package/dist/connections-CzsCyIxY.js +119 -0
  30. package/dist/connections-CzsCyIxY.js.map +1 -0
  31. package/dist/credentials-Cn92LGhJ.js +171 -0
  32. package/dist/credentials-Cn92LGhJ.js.map +1 -0
  33. package/dist/data-stores-UeQvwVCa.js +170 -0
  34. package/dist/data-stores-UeQvwVCa.js.map +1 -0
  35. package/dist/document-sources-DNmBojx6.js +169 -0
  36. package/dist/document-sources-DNmBojx6.js.map +1 -0
  37. package/dist/draft/use-workflow-draft.d.ts +2 -0
  38. package/dist/draft.mjs +2 -2
  39. package/dist/editor/BindingBanner.d.ts +13 -0
  40. package/dist/editor/CallableEditorFrame.d.ts +7 -0
  41. package/dist/editor/EndpointCards.d.ts +4 -1
  42. package/dist/editor/PublishControl.d.ts +19 -0
  43. package/dist/editor/PublishTooltip.d.ts +7 -0
  44. package/dist/editor/SetupIncompleteBanner.d.ts +12 -0
  45. package/dist/editor/StartingStateModal.d.ts +14 -0
  46. package/dist/editor/TargetSelector.d.ts +15 -0
  47. package/dist/editor/TargetSelector.types.d.ts +2 -0
  48. package/dist/editor/WorkflowSettingsModal.d.ts +6 -1
  49. package/dist/editor/WorkflowVariablesEditor.d.ts +6 -0
  50. package/dist/editor/definition.d.ts +6 -0
  51. package/dist/editor/json-apply.d.ts +29 -0
  52. package/dist/editor/step-problems-feed.d.ts +5 -0
  53. package/dist/editor/types.d.ts +2 -2
  54. package/dist/editor-apps-DkkC7wOQ.js +152 -0
  55. package/dist/editor-apps-DkkC7wOQ.js.map +1 -0
  56. package/dist/editor-tools-BR27RGto.js +1683 -0
  57. package/dist/editor-tools-BR27RGto.js.map +1 -0
  58. package/dist/editor.mjs +1 -1
  59. package/dist/editors.mjs +855 -650
  60. package/dist/editors.mjs.map +1 -1
  61. package/dist/{endpoints-B2ynbZo-.js → endpoints-DSRo1Lc5.js} +113 -107
  62. package/dist/endpoints-DSRo1Lc5.js.map +1 -0
  63. package/dist/fields-DvS8XZFc.js +21 -0
  64. package/dist/fields-DvS8XZFc.js.map +1 -0
  65. package/dist/forms/ModelBudgetsManager.d.ts +9 -0
  66. package/dist/forms/ModelRoutesManager.d.ts +14 -0
  67. package/dist/forms.d.ts +4 -0
  68. package/dist/forms.mjs +611 -212
  69. package/dist/forms.mjs.map +1 -1
  70. package/dist/{rail-settings-XYGToh00.js → import-bindings-EUtxZ9Ti.js} +90 -24
  71. package/dist/import-bindings-EUtxZ9Ti.js.map +1 -0
  72. package/dist/index.mjs +154 -117
  73. package/dist/index.mjs.map +1 -1
  74. package/dist/lib/binding-problems.d.ts +42 -0
  75. package/dist/lib/code-rail.d.ts +4 -2
  76. package/dist/lib/history-query.d.ts +45 -0
  77. package/dist/lib/import-bindings.d.ts +89 -0
  78. package/dist/lib/index.d.ts +4 -0
  79. package/dist/lib/invoke-error.d.ts +1 -0
  80. package/dist/lib/rail-settings.d.ts +1 -1
  81. package/dist/lib/sdk-snippets.d.ts +1 -1
  82. package/dist/lib/setup-incomplete.d.ts +22 -0
  83. package/dist/lib/starting-data.d.ts +31 -0
  84. package/dist/lib/state-panel.d.ts +29 -0
  85. package/dist/lib/target-fields.d.ts +11 -15
  86. package/dist/lib/trigger-preview.d.ts +1 -0
  87. package/dist/lib/workflow-live-run.d.ts +93 -8
  88. package/dist/lib/workflow-nodes.d.ts +5 -0
  89. package/dist/lib/workflow-validity.d.ts +65 -16
  90. package/dist/lib/workflow-variables.d.ts +1 -1
  91. package/dist/lib/workflow-version.d.ts +2 -0
  92. package/dist/lib.mjs +86 -69
  93. package/dist/lists/ConnectionDependents.d.ts +31 -0
  94. package/dist/lists/ConnectionDetail.d.ts +4 -1
  95. package/dist/lists/ConnectionList.d.ts +4 -1
  96. package/dist/lists/CredentialDetail.d.ts +15 -0
  97. package/dist/lists/CredentialList.d.ts +14 -0
  98. package/dist/lists/DataStoreList.d.ts +17 -0
  99. package/dist/lists/DataStoreView.d.ts +19 -0
  100. package/dist/lists/Logs.d.ts +19 -0
  101. package/dist/lists/ModelCatalog.d.ts +12 -0
  102. package/dist/lists/ModelUsage.d.ts +12 -0
  103. package/dist/lists.d.ts +14 -0
  104. package/dist/lists.mjs +1766 -609
  105. package/dist/lists.mjs.map +1 -1
  106. package/dist/models-bAayQPJ_.js +270 -0
  107. package/dist/models-bAayQPJ_.js.map +1 -0
  108. package/dist/{project-context-BiCjv_E3.js → project-context-Tvp-La7A.js} +3 -3
  109. package/dist/{project-context-BiCjv_E3.js.map → project-context-Tvp-La7A.js.map} +1 -1
  110. package/dist/rail/ConnectionsTool.d.ts +2 -0
  111. package/dist/rail/HistoryTool.d.ts +2 -0
  112. package/dist/rail/StartingStateTool.d.ts +2 -0
  113. package/dist/rail/settings-sections.d.ts +4 -1
  114. package/dist/rail.mjs +4 -4
  115. package/dist/repos/agents-studio-agents.d.ts +52 -0
  116. package/dist/repos/agents-studio-assets.d.ts +68 -0
  117. package/dist/repos/connections.d.ts +30 -12
  118. package/dist/repos/constants.d.ts +12 -0
  119. package/dist/repos/credentials.d.ts +83 -0
  120. package/dist/repos/data-stores.d.ts +84 -0
  121. package/dist/repos/endpoints.d.ts +9 -3
  122. package/dist/repos/fields.d.ts +34 -0
  123. package/dist/repos/functions.d.ts +7 -5
  124. package/dist/repos/history.d.ts +9 -0
  125. package/dist/repos/index.d.ts +7 -0
  126. package/dist/repos/models.d.ts +289 -0
  127. package/dist/repos/spec-export.d.ts +3 -3
  128. package/dist/repos/spec-import.d.ts +30 -1
  129. package/dist/repos/step-tests.d.ts +2 -0
  130. package/dist/repos/webhook-listen.d.ts +35 -0
  131. package/dist/repos/workflows.d.ts +105 -2
  132. package/dist/repos.mjs +655 -176
  133. package/dist/repos.mjs.map +1 -1
  134. package/dist/setup-incomplete-BHs3Lpfy.js +199 -0
  135. package/dist/setup-incomplete-BHs3Lpfy.js.map +1 -0
  136. package/dist/{slug-C4ktDPdy.js → slug-BVdgiP_L.js} +64 -60
  137. package/dist/slug-BVdgiP_L.js.map +1 -0
  138. package/dist/{spec-export-Cf3VQSQS.js → spec-export-DGy5ijps.js} +73 -60
  139. package/dist/spec-export-DGy5ijps.js.map +1 -0
  140. package/dist/spec-import-SWOonsNr.js +116 -0
  141. package/dist/spec-import-SWOonsNr.js.map +1 -0
  142. package/dist/{step-tests-CivICmTq.js → step-tests-B4E4W3ly.js} +8 -7
  143. package/dist/step-tests-B4E4W3ly.js.map +1 -0
  144. package/dist/theme-context-E2ZhlXDX.js +6 -0
  145. package/dist/theme-context-E2ZhlXDX.js.map +1 -0
  146. package/dist/theme-context.d.ts +2 -0
  147. package/dist/{use-callable-draft-zHLpcr-b.js → use-callable-draft-DCauHt5o.js} +23 -23
  148. package/dist/{use-callable-draft-zHLpcr-b.js.map → use-callable-draft-DCauHt5o.js.map} +1 -1
  149. package/dist/use-workflow-draft-l3P5KZzw.js +338 -0
  150. package/dist/use-workflow-draft-l3P5KZzw.js.map +1 -0
  151. package/dist/{workflow-blank-DyL3_RUA.js → workflow-blank-DFpGObrn.js} +6 -6
  152. package/dist/{workflow-blank-DyL3_RUA.js.map → workflow-blank-DFpGObrn.js.map} +1 -1
  153. package/dist/workflows-BZN4Hyz1.js +623 -0
  154. package/dist/workflows-BZN4Hyz1.js.map +1 -0
  155. package/package.json +3 -2
  156. package/src/styles.css +155 -7
  157. package/dist/ConfirmModal-RLbZT5_k.js +0 -181
  158. package/dist/ConfirmModal-RLbZT5_k.js.map +0 -1
  159. package/dist/ImportSpecModal-BDQIf6rg.js +0 -136
  160. package/dist/ImportSpecModal-BDQIf6rg.js.map +0 -1
  161. package/dist/WorkflowEditor-DlbVv6Fs.js +0 -854
  162. package/dist/WorkflowEditor-DlbVv6Fs.js.map +0 -1
  163. package/dist/apps-1FNUwbGv.js +0 -77
  164. package/dist/apps-1FNUwbGv.js.map +0 -1
  165. package/dist/coerce-input-BicYr7nc.js +0 -139
  166. package/dist/coerce-input-BicYr7nc.js.map +0 -1
  167. package/dist/connections-CjjYeRqb.js +0 -78
  168. package/dist/connections-CjjYeRqb.js.map +0 -1
  169. package/dist/document-sources-C0grrtdq.js +0 -86
  170. package/dist/document-sources-C0grrtdq.js.map +0 -1
  171. package/dist/editor-apps-BdenSV1o.js +0 -95
  172. package/dist/editor-apps-BdenSV1o.js.map +0 -1
  173. package/dist/editor-tools-RxmY5iyi.js +0 -1279
  174. package/dist/editor-tools-RxmY5iyi.js.map +0 -1
  175. package/dist/endpoints-B2ynbZo-.js.map +0 -1
  176. package/dist/rail-settings-XYGToh00.js.map +0 -1
  177. package/dist/slug-C4ktDPdy.js.map +0 -1
  178. package/dist/spec-export-Cf3VQSQS.js.map +0 -1
  179. package/dist/spec-import-CjmxyZDR.js +0 -465
  180. package/dist/spec-import-CjmxyZDR.js.map +0 -1
  181. package/dist/step-tests-CivICmTq.js.map +0 -1
  182. package/dist/trigger-preview-VPkrryDl.js +0 -120
  183. package/dist/trigger-preview-VPkrryDl.js.map +0 -1
  184. package/dist/use-workflow-draft-DzAyUeA6.js +0 -316
  185. package/dist/use-workflow-draft-DzAyUeA6.js.map +0 -1
package/dist/lib.mjs CHANGED
@@ -1,84 +1,101 @@
1
1
  "use client";
2
- import { d as n, i as d, a as c, r as p, b as u, c as m, e as f, s as S, t as g, f as v, v as b, g as w, w as F, h as R } from "./trigger-preview-VPkrryDl.js";
3
- import { d as x, e as y, i as I, p as A, t as E } from "./document-sources-C0grrtdq.js";
4
- import { e as P, h as D, a as T, b as C, i as U, m as V, p as k, r as L, s as W, v as _, w as H } from "./rail-settings-XYGToh00.js";
5
- import { c as j, d as q, i as B, p as G } from "./settings-rail--GdRMusb.js";
6
- import { A as Y, b as $, f as z, i as J, a as M, c as Q, s as X, u as Z } from "./slug-C4ktDPdy.js";
7
- import { i as ea, s as sa } from "./spec-import-invalidation-D3retX4Q.js";
8
- import { b as ta } from "./workflow-blank-DyL3_RUA.js";
9
- import { I as oa, c as la, f as na, i as da, a as ca, m as pa, p as ua, s as ma, t as fa, b as Sa, d as ga, u as va, e as ba, g as wa } from "./coerce-input-BicYr7nc.js";
10
- function t(s) {
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";
5
+ import { c as ra, d as ia, i as oa, p as na } from "./settings-rail--GdRMusb.js";
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-DFpGObrn.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";
10
+ function r(s) {
11
11
  const e = new URLSearchParams(s), a = e.get("edit");
12
12
  if (a === null || a === "") return null;
13
13
  e.delete("edit");
14
- const r = e.toString();
15
- return { id: a, search: r === "" ? "" : `?${r}` };
14
+ const t = e.toString();
15
+ return { id: a, search: t === "" ? "" : `?${t}` };
16
16
  }
17
17
  function i(s) {
18
18
  const a = new URLSearchParams(s).get("run");
19
19
  return a != null && a.startsWith("run_") ? a : null;
20
20
  }
21
21
  export {
22
- Y as ACCOUNT_SLUG_RE,
23
- oa as INPUT_TYPES,
24
- ta as blankDefinition,
25
- $ as buildSnippet,
26
- j as callableRecord,
27
- la as coerceInput,
28
- q as definitionWithPolicy,
29
- x as documentSampleValues,
30
- n as duplicateKeyIndexes,
31
- y as errorHandlerSelfDecision,
32
- P as evaluateEdit,
33
- na as fieldsFromWorkflow,
34
- z as filterKeyInput,
35
- D as hasDefinitionActions,
36
- T as hasDelete,
37
- C as hasVersionHistory,
38
- da as implToTarget,
39
- ca as inputsForSave,
40
- d as invalidReason,
41
- ea as invalidateImportedCallable,
42
- I as isCodeRailAvailable,
43
- J as isEndpointKey,
44
- c as isExprDefault,
45
- U as isRowArchived,
46
- B as isSettingsRailAvailable,
47
- M as isUrnAddressable,
48
- Q as isValidAccountSlug,
49
- t as legacyEditRedirect,
50
- pa as mergeSeed,
51
- V as metadataFieldsForKind,
52
- ua as paramsToFields,
53
- k as parseImportPaste,
54
- G as policyFromDefinition,
55
- A as projectDocumentSources,
56
- p as readSettings,
57
- u as readVariables,
58
- m as readWorkflowStatus,
59
- L as restoreRailState,
60
- f as runFormFields,
22
+ da as ACCOUNT_SLUG_RE,
23
+ ya as INPUT_TYPES,
24
+ L as allowedModes,
25
+ ha as blankDefinition,
26
+ W as buildRows,
27
+ ca as buildSnippet,
28
+ ra as callableRecord,
29
+ Ia as coerceInput,
30
+ ia as definitionWithPolicy,
31
+ l as disabledBannerState,
32
+ F as documentSampleValues,
33
+ y as duplicateKeyIndexes,
34
+ I as errorHandlerSelfDecision,
35
+ _ as evaluateEdit,
36
+ xa as fieldsFromWorkflow,
37
+ pa as filterKeyInput,
38
+ d as findBindingProblems,
39
+ c as findSetupIncomplete,
40
+ N as hasDefinitionActions,
41
+ j as hasDelete,
42
+ H as hasVersionHistory,
43
+ Da as implToTarget,
44
+ Ca as inputsForSave,
45
+ p as invalidReason,
46
+ wa as invalidateImportedCallable,
47
+ x as isCodeRailAvailable,
48
+ ua as isEndpointKey,
49
+ D as isExprDefault,
50
+ q as isRowArchived,
51
+ oa as isSettingsRailAvailable,
52
+ ma as isUrnAddressable,
53
+ fa as isValidAccountSlug,
54
+ r as legacyEditRedirect,
55
+ Pa as mergeSeed,
56
+ G as metadataFieldsForKind,
57
+ Aa as paramsToFields,
58
+ M as parseImportPaste,
59
+ na as policyFromDefinition,
60
+ C as projectDocumentSources,
61
+ u as publishDisabledReason,
62
+ m as publishProblems,
63
+ f as readSettings,
64
+ P as readStartingData,
65
+ A as readVariables,
66
+ g as readWorkflowStatus,
67
+ O as restoreRailState,
68
+ Y as rowReady,
69
+ $ as rowsReady,
70
+ E as runFormFields,
61
71
  i as runParamFromSearch,
62
- ma as shouldSeed,
63
- X as slugify,
64
- W as specCollectionForKind,
65
- sa as specImportListKey,
72
+ z as setBind,
73
+ J as setCreateName,
74
+ Q as setUnconfigured,
75
+ Ea as shouldSeed,
76
+ ga as slugify,
77
+ X as specCollectionForKind,
78
+ va as specImportListKey,
79
+ K as startingDataCollisions,
80
+ T as startingDataForSave,
66
81
  S as stepValid,
67
- fa as targetIsBound,
68
- Sa as targetRef,
69
- ga as targetToImpl,
70
- E as toSnippetCallable,
71
- g as triggerInputSeed,
72
- v as triggerPreviews,
73
- Z as unavailableReason,
74
- va as uncoveredForEndpoint,
75
- ba as uncoveredForFunction,
76
- wa as uncoveredRequiredKeys,
77
- b as variablesForSave,
78
- w as varsRailFor,
79
- _ as visibleRows,
80
- H as workflowKeyEditAllowed,
81
- F as workflowValid,
82
+ Ka as targetIsBound,
83
+ Ta as targetRef,
84
+ Ua as targetToImpl,
85
+ Z as toSelections,
86
+ U as toSnippetCallable,
87
+ b as triggerInputSeed,
88
+ w as triggerPreviews,
89
+ Sa as unavailableReason,
90
+ ka as uncoveredForEndpoint,
91
+ Va as uncoveredForFunction,
92
+ Ba as uncoveredRequiredKeys,
93
+ k as variablesForSave,
94
+ V as varsRailFor,
95
+ aa as visibleRows,
96
+ ea as withCreatedConnection,
97
+ sa as workflowKeyEditAllowed,
98
+ v as workflowValid,
82
99
  R as writeSetting
83
100
  };
84
101
  //# sourceMappingURL=lib.mjs.map
@@ -0,0 +1,31 @@
1
+ import { ConnectionDependentCallable } from '@w6w/sdk/console';
2
+ export type OpenCallable = (kind: string, id: string) => void;
3
+ /** `sites` is `unknown[]` on the wire; render each as a short id string. */
4
+ export declare function siteLabel(site: unknown): string;
5
+ /**
6
+ * A model route that reaches the model through this connection. `broken` means the route stopped
7
+ * resolving — typically this connection was removed or stopped working — and gets a reconnect.
8
+ */
9
+ export interface ConnectionDependentRoute {
10
+ id: string;
11
+ name: string;
12
+ status: "active" | "broken";
13
+ /** The route's own project; Reconnect opens the editor there, whatever project the host is in. */
14
+ project?: string;
15
+ }
16
+ /**
17
+ * The `routes` section of a dependents payload. A `broken` route offers "Reconnect", which opens
18
+ * the model-route editor for that route so a replacement connection can be picked (the editor
19
+ * PATCHes `connection`). Active routes are listed without the action. `projectId` is passed
20
+ * through to the editor; omitted, the provider's project applies.
21
+ */
22
+ export declare function ConnectionDependentRoutes({ routes, projectId, }: {
23
+ routes: ConnectionDependentRoute[];
24
+ projectId?: string | null;
25
+ }): import("react").JSX.Element | null;
26
+ export declare function ConnectionDependentRows({ callables, onOpenCallable, routes, projectId, }: {
27
+ callables: ConnectionDependentCallable[];
28
+ onOpenCallable?: OpenCallable;
29
+ routes?: ConnectionDependentRoute[];
30
+ projectId?: string | null;
31
+ }): import("react").JSX.Element;
@@ -1,8 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
+ import { OpenCallable } from './ConnectionDependents.tsx';
2
3
  export interface ConnectionDetailProps {
3
4
  connectionId: string;
4
5
  /** An action row calls `(actionKey)`; one of its saved tests calls `(actionKey, savedTestId)`. */
5
6
  onOpenAction: (actionKey: string, savedTestId?: string) => void;
7
+ /** A "Used by" row opens the callable's editor; rows are plain text without it. */
8
+ onOpenCallable?: OpenCallable;
6
9
  /** The back affordance renders only when given. */
7
10
  onBack?: () => void;
8
11
  slots?: {
@@ -14,4 +17,4 @@ export interface ConnectionDetailProps {
14
17
  empty?: ReactNode;
15
18
  };
16
19
  }
17
- export declare function ConnectionDetail({ connectionId, onOpenAction, onBack, slots, }: ConnectionDetailProps): import("react").JSX.Element;
20
+ export declare function ConnectionDetail({ connectionId, onOpenAction, onBack, onOpenCallable, slots, }: ConnectionDetailProps): import("react").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { ConnectionListProps as UiConnectionListProps } from '@w6w/ui';
2
2
  import { MouseEvent } from 'react';
3
+ import { OpenCallable } from './ConnectionDependents.tsx';
3
4
  export interface ConnectionListProps {
4
5
  /** Row click; the host decides whether to `preventDefault` when it also passes `getHref`. */
5
6
  onOpen?: (id: string, event: MouseEvent<Element>) => void;
@@ -12,5 +13,7 @@ export interface ConnectionListProps {
12
13
  * Add button.
13
14
  */
14
15
  slots?: UiConnectionListProps["slots"];
16
+ /** When set, dependent rows in the delete confirm open the callable's editor. */
17
+ onOpenCallable?: OpenCallable;
15
18
  }
16
- export declare function ConnectionList({ onOpen, getHref, addLabel, slots }: ConnectionListProps): import("react").JSX.Element;
19
+ export declare function ConnectionList({ onOpen, getHref, addLabel, slots, onOpenCallable, }: ConnectionListProps): import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ export interface CredentialDetailProps {
3
+ credentialId: string;
4
+ /** A connected-app row calls `(connectionId)`; rows are plain text without it. */
5
+ onOpenConnection?: (id: string) => void;
6
+ /** Called after a delete succeeds. */
7
+ onDeleted?: () => void;
8
+ /** The back affordance renders only when given. */
9
+ onBack?: () => void;
10
+ slots?: {
11
+ /** Replaces the not-found state. */
12
+ empty?: ReactNode;
13
+ };
14
+ }
15
+ export declare function CredentialDetail({ credentialId, onOpenConnection, onDeleted, onBack, slots, }: CredentialDetailProps): import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ export interface CredentialListProps {
3
+ /** Narrow the list to one credential contract. */
4
+ contract?: string;
5
+ /** Row click. */
6
+ onOpen?: (id: string) => void;
7
+ slots?: {
8
+ /** Replaces the heading. */
9
+ header?: ReactNode;
10
+ /** Replaces the empty state. */
11
+ empty?: ReactNode;
12
+ };
13
+ }
14
+ export declare function CredentialList({ contract, onOpen, slots }: CredentialListProps): import("react").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { MouseEvent, ReactNode } from 'react';
2
+ export interface DataStoreListSlots {
3
+ /** Replaces the section heading and its description (the New button stays). `null`: none. */
4
+ header?: ReactNode;
5
+ /** Replaces the empty-state copy. */
6
+ empty?: ReactNode;
7
+ }
8
+ export interface DataStoreListProps {
9
+ /** Omitted: the provider's project. `null` or `""`: none; nothing is read and writes refuse. */
10
+ project?: string | null;
11
+ /** The host decides what opening a row means; with `getHref` it may `preventDefault`. */
12
+ onOpen?: (id: string, event: MouseEvent<Element>) => void;
13
+ /** Given, a row's main area is a real `<a href>`; its click still calls `onOpen`. */
14
+ getHref?: (id: string) => string;
15
+ slots?: DataStoreListSlots;
16
+ }
17
+ export declare function DataStoreList({ project, onOpen, getHref, slots }: DataStoreListProps): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { DataStoreErrorLocator } from '@w6w/ui';
2
+ import { ReactNode } from 'react';
3
+ export interface DataStoreViewProps {
4
+ /** The store's id (`ds_…`). */
5
+ id: string;
6
+ /** Omitted: the provider's project. `null` or `""`: none; nothing is read and writes refuse. */
7
+ project?: string | null;
8
+ slots?: {
9
+ /** Replaces the store's name / kind heading. `null`: none. */
10
+ header?: ReactNode;
11
+ };
12
+ }
13
+ /**
14
+ * A thrown SDK failure as the locator the views place: `ApiError{status,code,raw}` with the
15
+ * server's `{error:{code,message,field?,row?,column?}}` read from `raw`. The error's own `code`
16
+ * stands in when the body carried none, so a conflict is never missed for want of an envelope.
17
+ */
18
+ export declare function dataStoreErrorOf(e: unknown): DataStoreErrorLocator;
19
+ export declare function DataStoreView({ id, project, slots }: DataStoreViewProps): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { RunHistoryProps } from './RunHistory.tsx';
3
+ export interface LogsProps extends RunHistoryProps {
4
+ /** The heading above the view. Defaults to `"Logs"`; `null` renders none (the host titles its
5
+ * own page). */
6
+ title?: ReactNode | null;
7
+ }
8
+ /**
9
+ * The project's Logs: the most recent executions of every workflow, function and endpoint in the
10
+ * provider's project, newest first, and the selected one's detail (input, output, error, a
11
+ * workflow run's steps) opened in place. `RunHistory` under a heading — Studio's History page
12
+ * mounts the same body — so every `RunHistory` prop applies, and with none of them it is
13
+ * project-wide with filters held here. Never navigates; `onOpenInEditor` is the host's way into a
14
+ * workflow run's editor.
15
+ */
16
+ export declare function Logs({ title, ...rest }: LogsProps): ReactElement;
17
+ /** {@link Logs} under the name a host routing table tends to use for a page. */
18
+ export declare const LogsView: typeof Logs;
19
+ export type LogsViewProps = LogsProps;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ import { ModelCatalogFilter } from '../repos/models.ts';
3
+ export interface ModelCatalogProps {
4
+ /**
5
+ * The project the Models tab is scoped to. Kept for a uniform tab API: the catalog never sends
6
+ * it (a tenant-wide list), so it changes nothing here.
7
+ */
8
+ projectId?: string | null;
9
+ /** Narrow the list (`provider`, `status`, `limit`). `cursor` is keyset paging, managed here. */
10
+ filter?: Omit<ModelCatalogFilter, "cursor">;
11
+ }
12
+ export declare function ModelCatalog(props: ModelCatalogProps): ReactNode;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ import { ModelUsageFilter } from '../repos/models.ts';
3
+ export interface ModelUsageProps {
4
+ /**
5
+ * The project whose usage is shown. Omitted: the `<W6WEmbedProvider project>`. `null` or `""`:
6
+ * no project — nothing is requested.
7
+ */
8
+ projectId?: string | null;
9
+ /** Narrow the report (`route`, `model`, `from`, `to`, `groupBy`, `limit`). `cursor` is paging. */
10
+ filter?: Omit<ModelUsageFilter, "cursor">;
11
+ }
12
+ export declare function ModelUsage(props: ModelUsageProps): ReactNode;
package/dist/lists.d.ts CHANGED
@@ -12,9 +12,23 @@ export { ActivitySummary } from './lists/ActivitySummary.tsx';
12
12
  export type { ActivitySummaryProps, ActivityTileTarget } from './lists/ActivitySummary.tsx';
13
13
  export { RunHistory } from './lists/RunHistory.tsx';
14
14
  export type { RunHistoryProps } from './lists/RunHistory.tsx';
15
+ export { Logs, LogsView } from './lists/Logs.tsx';
16
+ export type { LogsProps, LogsViewProps } from './lists/Logs.tsx';
15
17
  export { ServiceDetail } from './lists/ServiceDetail.tsx';
16
18
  export type { ServiceDetailProps } from './lists/ServiceDetail.tsx';
17
19
  export { ConnectionList } from './lists/ConnectionList.tsx';
18
20
  export type { ConnectionListProps } from './lists/ConnectionList.tsx';
19
21
  export { ConnectionDetail } from './lists/ConnectionDetail.tsx';
20
22
  export type { ConnectionDetailProps } from './lists/ConnectionDetail.tsx';
23
+ export { ModelCatalog } from './lists/ModelCatalog.tsx';
24
+ export type { ModelCatalogProps } from './lists/ModelCatalog.tsx';
25
+ export { ModelUsage } from './lists/ModelUsage.tsx';
26
+ export type { ModelUsageProps } from './lists/ModelUsage.tsx';
27
+ export { CredentialList } from './lists/CredentialList.tsx';
28
+ export type { CredentialListProps } from './lists/CredentialList.tsx';
29
+ export { CredentialDetail } from './lists/CredentialDetail.tsx';
30
+ export type { CredentialDetailProps } from './lists/CredentialDetail.tsx';
31
+ export { DataStoreList } from './lists/DataStoreList.tsx';
32
+ export type { DataStoreListProps, DataStoreListSlots } from './lists/DataStoreList.tsx';
33
+ export { DataStoreView } from './lists/DataStoreView.tsx';
34
+ export type { DataStoreViewProps } from './lists/DataStoreView.tsx';