@w6w/ui 0.2.55 → 0.2.57

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 (43) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/CallTargetForm.d.ts +10 -0
  3. package/dist/{CodeBlock-CymlfyeA.cjs → CodeBlock-BSX1pi6W.cjs} +2 -2
  4. package/dist/{CodeBlock-CymlfyeA.cjs.map → CodeBlock-BSX1pi6W.cjs.map} +1 -1
  5. package/dist/{CodeBlock-C-oIIYfC.js → CodeBlock-CPKXSNEs.js} +7 -3
  6. package/dist/{CodeBlock-C-oIIYfC.js.map → CodeBlock-CPKXSNEs.js.map} +1 -1
  7. package/dist/CodeEditor.d.ts +2 -0
  8. package/dist/EditConnectionModal.d.ts +7 -6
  9. package/dist/JsonEditor.d.ts +1 -3
  10. package/dist/Markdown.d.ts +3 -1
  11. package/dist/StepBuilderModal.d.ts +2 -3
  12. package/dist/TriggerSampleButton.d.ts +11 -0
  13. package/dist/WorkflowFlowEditor.d.ts +48 -0
  14. package/dist/YamlEditor.d.ts +1 -2
  15. package/dist/callable-fields.d.ts +4 -0
  16. package/dist/code.cjs +1 -1
  17. package/dist/code.mjs +1 -1
  18. package/dist/components/ConfirmModal.d.ts +7 -1
  19. package/dist/components/DataEntryList.d.ts +2 -0
  20. package/dist/components/ResultViewer.d.ts +1 -2
  21. package/dist/connection-app-meta-BeYDm-cs.cjs +24 -0
  22. package/dist/connection-app-meta-BeYDm-cs.cjs.map +1 -0
  23. package/dist/{connection-app-meta-ZCPakGjD.js → connection-app-meta-aURFNTx_.js} +6115 -5806
  24. package/dist/connection-app-meta-aURFNTx_.js.map +1 -0
  25. package/dist/flow.cjs +4 -3
  26. package/dist/flow.cjs.map +1 -1
  27. package/dist/flow.mjs +1820 -1753
  28. package/dist/flow.mjs.map +1 -1
  29. package/dist/index.cjs +2 -2
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.mjs +859 -869
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/provider.d.ts +5 -0
  34. package/package.json +2 -1
  35. package/src/code.css +24 -0
  36. package/src/styles/_code-editor.scss +16 -0
  37. package/src/styles/_copyable.scss +22 -0
  38. package/src/styles/_data-vars.scss +11 -0
  39. package/src/styles/_tester.scss +2 -3
  40. package/src/styles.css +56 -3
  41. package/dist/connection-app-meta-BEXlKBgV.cjs +0 -22
  42. package/dist/connection-app-meta-BEXlKBgV.cjs.map +0 -1
  43. package/dist/connection-app-meta-ZCPakGjD.js.map +0 -1
@@ -164,6 +164,8 @@ export interface DataStoreEntryOptions {
164
164
  more?: boolean;
165
165
  }
166
166
  export interface W6WApi {
167
+ /** Host route for opening a callable in a new tab. */
168
+ callableHref?(kind: "function" | "workflow", id: string): string;
167
169
  /**
168
170
  * List registered apps to pick from in the connection modal.
169
171
  *
@@ -262,6 +264,8 @@ export interface W6WApi {
262
264
  * instead) and hosts should not offer an Edit action. It never throws for the absence.
263
265
  */
264
266
  updateConnection?(id: string, body: {
267
+ /** Switch to a key/token auth method with a full replacement credential. */
268
+ authKey?: string;
265
269
  displayName?: string;
266
270
  binding?: ConnectionBinding;
267
271
  credentialId?: string;
@@ -475,6 +479,7 @@ export interface W6WApi {
475
479
  runWorkflow(id: string, opts?: {
476
480
  variables?: Record<string, unknown>;
477
481
  input?: Record<string, unknown>;
482
+ entry?: string;
478
483
  }): Promise<{
479
484
  runId: string;
480
485
  status: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w6w/ui",
3
- "version": "0.2.55",
3
+ "version": "0.2.57",
4
4
  "description": "React components for w6w — central API management. Build plugins, apps and integrations on them.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://w6w.io",
@@ -121,6 +121,7 @@
121
121
  "test:workflow-connections": "node test/workflow-connections/run.mjs",
122
122
  "test:workflow-undo": "node test/workflow-connections/undo.mjs",
123
123
  "test:workflow-context-menu": "node test/workflow-connections/context-menu.mjs",
124
+ "test:workflow-delete-confirm": "node test/workflow-connections/delete-confirm.mjs",
124
125
  "test:script-completion": "node test/script-completion/run.mjs"
125
126
  }
126
127
  }
package/src/code.css CHANGED
@@ -457,6 +457,30 @@
457
457
  opacity: 1;
458
458
  }
459
459
  }
460
+ /* Keep copy discoverable on results and rendered documents. */
461
+ .w6w-copyable--overlay,
462
+ .w6w-copyable--document {
463
+ position: relative;
464
+ align-items: flex-start;
465
+ }
466
+
467
+ .w6w-copyable--overlay > .w6w-copyable-btn,
468
+ .w6w-copyable--document > .w6w-copyable-btn {
469
+ position: absolute;
470
+ top: var(--w6w-sp-1);
471
+ right: var(--w6w-sp-1);
472
+ background: var(--w6w-panel);
473
+ border-color: var(--w6w-border);
474
+ }
475
+
476
+ .w6w-copyable--document {
477
+ display: block;
478
+ background: transparent;
479
+ border: none;
480
+ padding: 0;
481
+ padding-right: var(--w6w-sp-10);
482
+ }
483
+
460
484
  .w6w-code-block {
461
485
  background: var(--w6w-panel-2);
462
486
  border: 1px solid var(--w6w-border);
@@ -33,3 +33,19 @@
33
33
  :where(.w6w-json-editor, .w6w-code-editor, .w6w-yaml-editor) .cm-gutters {
34
34
  min-height: 100%;
35
35
  }
36
+
37
+ /* Pin copy outside the scroll area for all editor languages. */
38
+ :where(.w6w-json-editor, .w6w-code-editor, .w6w-yaml-editor) {
39
+ position: relative;
40
+ }
41
+ :where(.w6w-json-editor, .w6w-code-editor, .w6w-yaml-editor) > .w6w-copyable-btn {
42
+ position: absolute;
43
+ top: var(--w6w-sp-1);
44
+ right: var(--w6w-sp-1);
45
+ background: var(--w6w-panel);
46
+ border-color: var(--w6w-border);
47
+ z-index: 1;
48
+ }
49
+ :where(.w6w-json-editor, .w6w-code-editor, .w6w-yaml-editor):has(> .w6w-copyable-btn) .cm-content {
50
+ padding-right: var(--w6w-sp-10);
51
+ }
@@ -169,3 +169,25 @@
169
169
  opacity: 1;
170
170
  }
171
171
  }
172
+
173
+ /* Keep copy discoverable on results and rendered documents. */
174
+ .w6w-copyable--overlay,
175
+ .w6w-copyable--document {
176
+ position: relative;
177
+ align-items: flex-start;
178
+ }
179
+ .w6w-copyable--overlay > .w6w-copyable-btn,
180
+ .w6w-copyable--document > .w6w-copyable-btn {
181
+ position: absolute;
182
+ top: var(--w6w-sp-1);
183
+ right: var(--w6w-sp-1);
184
+ background: var(--w6w-panel);
185
+ border-color: var(--w6w-border);
186
+ }
187
+ .w6w-copyable--document {
188
+ display: block;
189
+ background: transparent;
190
+ border: none;
191
+ padding: 0;
192
+ padding-right: var(--w6w-sp-10);
193
+ }
@@ -47,3 +47,14 @@
47
47
  .w6w-datavar-error {
48
48
  color: var(--w6w-danger);
49
49
  }
50
+
51
+ /* A JSON value is a one-line preview; its full content lives in the expanded editor. */
52
+ .w6w-datavar-row > .w6w-fx-wrap {
53
+ min-width: 0;
54
+ }
55
+ .w6w-datavar-row .w6w-datavar-json-preview {
56
+ overflow: hidden;
57
+ text-overflow: ellipsis;
58
+ white-space: nowrap;
59
+ cursor: pointer;
60
+ }
@@ -54,11 +54,10 @@
54
54
  min-height: 0;
55
55
  overflow: auto;
56
56
  }
57
- /* The action bar as a pinned footer: kept out of the scroll region and separated
58
- with a top border so Run / Save / Delete stay visible however long the params. */
57
+ /* Keep the action bar outside the scroll region so Run / Save / Delete stay
58
+ visible however long the params. */
59
59
  .w6w-tester-actions-footer {
60
60
  margin-top: auto;
61
- border-top: 1px solid var(--w6w-border);
62
61
  padding-top: var(--w6w-sp-3);
63
62
  }
64
63
 
package/src/styles.css CHANGED
@@ -2250,6 +2250,30 @@ select optgroup {
2250
2250
  opacity: 1;
2251
2251
  }
2252
2252
  }
2253
+ /* Keep copy discoverable on results and rendered documents. */
2254
+ .w6w-copyable--overlay,
2255
+ .w6w-copyable--document {
2256
+ position: relative;
2257
+ align-items: flex-start;
2258
+ }
2259
+
2260
+ .w6w-copyable--overlay > .w6w-copyable-btn,
2261
+ .w6w-copyable--document > .w6w-copyable-btn {
2262
+ position: absolute;
2263
+ top: var(--w6w-sp-1);
2264
+ right: var(--w6w-sp-1);
2265
+ background: var(--w6w-panel);
2266
+ border-color: var(--w6w-border);
2267
+ }
2268
+
2269
+ .w6w-copyable--document {
2270
+ display: block;
2271
+ background: transparent;
2272
+ border: none;
2273
+ padding: 0;
2274
+ padding-right: var(--w6w-sp-10);
2275
+ }
2276
+
2253
2277
  /* The raw {{ }} input stands alone, so it keeps an input box of its own. */
2254
2278
  .w6w-expr-raw {
2255
2279
  width: 100%;
@@ -2615,6 +2639,18 @@ select optgroup {
2615
2639
  color: var(--w6w-danger);
2616
2640
  }
2617
2641
 
2642
+ /* A JSON value is a one-line preview; its full content lives in the expanded editor. */
2643
+ .w6w-datavar-row > .w6w-fx-wrap {
2644
+ min-width: 0;
2645
+ }
2646
+
2647
+ .w6w-datavar-row .w6w-datavar-json-preview {
2648
+ overflow: hidden;
2649
+ text-overflow: ellipsis;
2650
+ white-space: nowrap;
2651
+ cursor: pointer;
2652
+ }
2653
+
2618
2654
  /* Buttons */
2619
2655
  .w6w-btn {
2620
2656
  background: var(--w6w-accent);
@@ -4408,11 +4444,10 @@ dialog.w6w-modal.w6w-modal-fullscreen .w6w-modal-header {
4408
4444
  overflow: auto;
4409
4445
  }
4410
4446
 
4411
- /* The action bar as a pinned footer: kept out of the scroll region and separated
4412
- with a top border so Run / Save / Delete stay visible however long the params. */
4447
+ /* Keep the action bar outside the scroll region so Run / Save / Delete stay
4448
+ visible however long the params. */
4413
4449
  .w6w-tester-actions-footer {
4414
4450
  margin-top: auto;
4415
- border-top: 1px solid var(--w6w-border);
4416
4451
  padding-top: var(--w6w-sp-3);
4417
4452
  }
4418
4453
 
@@ -4933,6 +4968,24 @@ dialog.w6w-modal.w6w-modal-fullscreen .w6w-modal-header {
4933
4968
  min-height: 100%;
4934
4969
  }
4935
4970
 
4971
+ /* Pin copy outside the scroll area for all editor languages. */
4972
+ :where(.w6w-json-editor, .w6w-code-editor, .w6w-yaml-editor) {
4973
+ position: relative;
4974
+ }
4975
+
4976
+ :where(.w6w-json-editor, .w6w-code-editor, .w6w-yaml-editor) > .w6w-copyable-btn {
4977
+ position: absolute;
4978
+ top: var(--w6w-sp-1);
4979
+ right: var(--w6w-sp-1);
4980
+ background: var(--w6w-panel);
4981
+ border-color: var(--w6w-border);
4982
+ z-index: 1;
4983
+ }
4984
+
4985
+ :where(.w6w-json-editor, .w6w-code-editor, .w6w-yaml-editor):has(> .w6w-copyable-btn) .cm-content {
4986
+ padding-right: var(--w6w-sp-10);
4987
+ }
4988
+
4936
4989
  .w6w-icon-button {
4937
4990
  display: inline-flex;
4938
4991
  align-items: center;