@w6w/ui 0.2.57 → 0.2.59

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 (55) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/AddConnectionModal.d.ts +6 -0
  3. package/dist/StepBuilderModal.d.ts +17 -4
  4. package/dist/TriggerFillForm.d.ts +4 -3
  5. package/dist/WorkflowConnections.d.ts +7 -1
  6. package/dist/WorkflowFlowEditor.d.ts +6 -0
  7. package/dist/canvas-context-menu.d.ts +8 -3
  8. package/dist/components/AuthFieldsForm.d.ts +6 -0
  9. package/dist/components/Combobox.d.ts +9 -1
  10. package/dist/components/CredentialPicker.d.ts +1 -1
  11. package/dist/components/ExpressionOptions.d.ts +2 -0
  12. package/dist/condition-editor.d.ts +3 -1
  13. package/dist/connection-app-meta-CNEwLsL3.cjs +24 -0
  14. package/dist/connection-app-meta-CNEwLsL3.cjs.map +1 -0
  15. package/dist/connection-app-meta-Cl6mUAMF.js +13537 -0
  16. package/dist/connection-app-meta-Cl6mUAMF.js.map +1 -0
  17. package/dist/flow-history.d.ts +8 -0
  18. package/dist/flow.cjs +5 -5
  19. package/dist/flow.cjs.map +1 -1
  20. package/dist/flow.mjs +2425 -2618
  21. package/dist/flow.mjs.map +1 -1
  22. package/dist/index.cjs +2 -2
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.mjs +99 -102
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/provider.d.ts +6 -0
  27. package/dist/state-shape.d.ts +13 -0
  28. package/dist/step-preview-state.d.ts +10 -1
  29. package/dist/step-settings-controls.d.ts +20 -0
  30. package/dist/types.d.ts +13 -0
  31. package/package.json +4 -2
  32. package/src/code.css +2 -1
  33. package/src/styles/_box-reset.scss +22 -0
  34. package/src/styles/_callable-list.scss +5 -4
  35. package/src/styles/_canvas.scss +1 -4
  36. package/src/styles/_chips.scss +0 -1
  37. package/src/styles/_connections.scss +101 -0
  38. package/src/styles/_copyable.scss +3 -1
  39. package/src/styles/_data-stores.scss +15 -5
  40. package/src/styles/_data-table.scss +6 -0
  41. package/src/styles/_data-vars.scss +10 -0
  42. package/src/styles/_empty-state.scss +16 -0
  43. package/src/styles/_execution-log.scss +3 -4
  44. package/src/styles/_fields.scss +57 -25
  45. package/src/styles/_flow.scss +11 -0
  46. package/src/styles/_fx.scss +14 -47
  47. package/src/styles/_host-guard.scss +100 -0
  48. package/src/styles/_step-builder.scss +26 -2
  49. package/src/styles/_step-config.scss +4 -5
  50. package/src/styles.css +335 -99
  51. package/src/styles.scss +2 -0
  52. package/dist/connection-app-meta-BeYDm-cs.cjs +0 -24
  53. package/dist/connection-app-meta-BeYDm-cs.cjs.map +0 -1
  54. package/dist/connection-app-meta-aURFNTx_.js +0 -12731
  55. package/dist/connection-app-meta-aURFNTx_.js.map +0 -1
@@ -46,46 +46,22 @@
46
46
  .w6w-fx-wrap input[type="password"],
47
47
  .w6w-fx-wrap input[type="number"],
48
48
  .w6w-fx-wrap select,
49
- .w6w-fx-wrap textarea {
49
+ .w6w-fx-wrap textarea,
50
+ /* (0,2,1): the host guard's textarea arm is (0,2,1) and would out-rank a bare
51
+ (0,1,1) `.w6w-fx-wrap textarea` for min-height outside .w6w-field/.w6w-datavar-row. */
52
+ .w6w-fx-wrap.w6w-fx-wrap textarea {
50
53
  border: none;
51
54
  background: transparent;
52
55
  border-radius: 0;
53
56
  padding: var(--w6w-sp-1) var(--w6w-sp-0-5);
54
57
  outline: none;
55
- /* EVERY property in this block is load-bearing, for the same reason
56
- `.w6w-fx-inline-label`'s `margin: 0` is (see below): a host page layers its
57
- own unscoped `input[type="text"], textarea { … }` rule AFTER this file
58
- (studio's does, at `studio/src/styles.css:513-533`, `:759-771` and `:788`),
59
- so every property this block leaves undeclared is the host's — including
60
- inside a box this library draws. The two below were measured leaking, in
61
- [ui+studio], before they were declared — and they fix DIFFERENT things:
62
-
63
- margin — ALIGNMENT. A host `margin-top: 4px` in an `align-items:
64
- center` row drops the control 2px below the ƒx it shares the
65
- row with (string, number and the bare vars cell; select and
66
- multiselect escaped only because the host rule does not list
67
- them). Rendered: control cy 67 vs ƒx cy 65. On the textarea
68
- row — `align-items: flex-start` — the same 4px showed up as
69
- the ƒx sitting 4px off the control's first line. `margin: 0`
70
- is the whole of that fix.
71
-
72
- min-height — SIZE, and nothing else. Do not re-justify this one as
73
- alignment: the counterfactual was rendered (this `margin: 0`
74
- kept, `min-height: 0` removed) and the row measures a 0.0px
75
- top delta with the host's 80px floor fully in effect. What it
76
- fixes is that a host `textarea { min-height: 80px }`, written
77
- for that host's own bare textareas, was sizing the INSIDE of
78
- a box it cannot see — 80px/94px against the 62px/72px the
79
- same markup renders elsewhere, i.e. one of five control types
80
- 29% taller than the library drew it. The box is the library's
81
- to size; how many lines it holds is `rows` on the control.
82
- If a taller body field is ever wanted, it belongs HERE, not
83
- in a host element selector.
84
-
85
- Declared, not fought for: this stays at the block's existing specificity and
86
- uses no `!important`. A component that is only aligned while the host
87
- cooperates is broken. */
88
- margin: 0;
58
+ /* The control is inside a box this library draws, so it carries no margin or
59
+ host floor of its own. A host `input[type="text"], textarea { margin-top;
60
+ width; min-height: 80px }` (studio's does) is reverted by `_host-guard.scss`
61
+ for every `w6w-` form element, so this block declares no margin. `min-height:
62
+ 0` stays: it is the library's own value for a control inside a flex row (the
63
+ UA's `auto` is a different computed value on inputs/selects), not only a
64
+ counter to the host's textarea floor. */
89
65
  min-height: 0;
90
66
  }
91
67
  /* …and the two widgets that own an input-like box themselves are flattened too,
@@ -114,19 +90,10 @@
114
90
  margin: 0;
115
91
  }
116
92
  /* The label reads as the control's own text, next to it (mirrors
117
- `.w6w-array-check` above, the existing inline-checkbox idiom).
118
- `margin: 0` is LOAD-BEARING, not tidiness: a host page may carry an unscoped
119
- top-level `label { … margin-bottom: 10px }` (studio's own sheet does, at
120
- `studio/src/styles.css:499`), and since it is layered AFTER this file any
121
- property this block leaves undeclared is the host's. A bottom margin inside an
122
- `align-items: center` row lifts the text off the row's centre line — measured
123
- 5px above the checkbox and the ƒx before this declaration existed. Every other
124
- element of the row is defended the same way: the checkbox's `margin: 0` above
125
- out-specifies a host `input[type="checkbox"] { margin-right: … }` (0,2,1 vs
126
- 0,1,1), and the ƒx's chrome is pinned by `.w6w-fx-inline .w6w-expr-fx` below.
127
- A component that only lines up when the host sheet cooperates is broken. */
93
+ `.w6w-array-check` above, the existing inline-checkbox idiom). Its host
94
+ `label { margin-bottom }` is reverted by `_host-guard.scss`, and the ƒx's chrome
95
+ is pinned by `.w6w-fx-inline .w6w-expr-fx` below. */
128
96
  .w6w-fx-inline-label {
129
- margin: 0;
130
97
  color: var(--w6w-text);
131
98
  font-size: 13px;
132
99
  cursor: pointer;
@@ -0,0 +1,100 @@
1
+ // Host guard: the library's own form elements own their LAYOUT against a host
2
+ // page's unscoped element rules (`label { margin-bottom }`, `input[type="text"] {
3
+ // width; margin-top }`, `input[type="checkbox"] { margin-right }`, `textarea {
4
+ // min-height }` — studio's sheet has all of them and is layered AFTER this one).
5
+ //
6
+ // Keyed on the `w6w-` class prefix, never on a component name, so a NEW component
7
+ // is covered with no per-component step. Two arms per kind:
8
+ // self the element itself carries a `w6w-` class token
9
+ // descendant a classless-by-us form element (no `w6w-` token) under a `w6w-` one
10
+ //
11
+ // WHICH properties: DC-2 — only LAYOUT properties a host element rule is seen to
12
+ // set (margin-*, width, min-height) in the `ui` vs `ui+studio` snapshots of
13
+ // `test/host-cascade/`. Paint (colour, background, border, padding, font, outline)
14
+ // is deliberately left to the host: a paint reset would visibly restyle a host.
15
+ // WHAT value: `revert` — the browser's own value, which is what a bare element
16
+ // renders in `ui` alone (a literal such as the UA checkbox `3px` is
17
+ // Chromium-specific).
18
+ //
19
+ // SPECIFICITY: every emitted selector is >= (0,2,1). A host `input[type="text"]`
20
+ // is (0,1,1) and loads later, so a guard at (0,1,1) would TIE and lose on source
21
+ // order. The subject keeps its type alternatives in `:where()` (zero weight) and
22
+ // the marker is REPEATED on purpose — each `:is([class^=…],[class*=…])` is
23
+ // (0,1,0), so `subject:is(M):is(M)` is (0,2,1). Do not "simplify" the repetition
24
+ // away. `@layer`, a `:where()` guard, `all:`/`unset` and raising ui-wide
25
+ // specificity were considered and rejected (they either lose to the host or
26
+ // restyle paint).
27
+ //
28
+ // A ui rule this guard out-ranks that wants a DIFFERENT value must be raised past
29
+ // (0,2,1) (or the guard narrowed) — never accepted as a `ui` delta.
30
+ //
31
+ // `scripts/check-guard.mjs` parses the literal begin/end comments below.
32
+
33
+ @use "sass:list";
34
+ @use "sass:map";
35
+
36
+ $marker: '[class^="w6w-"], [class*=" w6w-"]';
37
+
38
+ // NOTE the `:where()` around every `[type=…]`: it keeps the subject at (0,0,1), so the
39
+ // whole selector is exactly (0,2,1) and TIES (and, being earlier, loses to) a ui rule
40
+ // such as `.w6w-fx-inline > input[type="checkbox"] { margin: 0 }`. Spelling the type as
41
+ // a plain attribute makes the classless-descendant arm (0,3,1) and silently overrides
42
+ // those ui rules (measured: HC4/HC6 red on 7 pairs).
43
+ $text-input: 'input:where(:not([type]), [type="text"], [type="password"], [type="number"], [type="email"], [type="search"], [type="url"], [type="tel"], [type="date"], [type="datetime-local"], [type="time"])';
44
+
45
+ // kind -> (subject, props: host-settable property -> value)
46
+ $host-guard-map: (
47
+ "label": (
48
+ "subject": "label",
49
+ "props": (
50
+ "margin-bottom": revert,
51
+ ),
52
+ ),
53
+ "text-input": (
54
+ "subject": $text-input,
55
+ "props": (
56
+ "width": revert,
57
+ "margin-top": revert,
58
+ ),
59
+ ),
60
+ "textarea": (
61
+ "subject": "textarea",
62
+ "props": (
63
+ "width": revert,
64
+ "margin-top": revert,
65
+ "min-height": revert,
66
+ ),
67
+ ),
68
+ "checkbox": (
69
+ "subject": 'input:where([type="checkbox"])',
70
+ "props": (
71
+ "margin-right": revert,
72
+ ),
73
+ ),
74
+ // `select` and `option`: studio's rules for them set paint only (background,
75
+ // border, padding, colour, font) — no layout property to guard, so no props.
76
+ "select": (
77
+ "subject": "select",
78
+ "props": (),
79
+ ),
80
+ "option": (
81
+ "subject": "option",
82
+ "props": (),
83
+ ),
84
+ );
85
+
86
+ /* w6w-host-guard:begin */
87
+ @each $kind, $spec in $host-guard-map {
88
+ $subject: map.get($spec, "subject");
89
+ $props: map.get($spec, "props");
90
+ @if list.length($props) > 0 {
91
+ /* guard: #{$kind} */
92
+ #{$subject}:is(#{$marker}):is(#{$marker}),
93
+ :is(#{$marker}) #{$subject}:not(:is(#{$marker})) {
94
+ @each $prop, $value in $props {
95
+ #{$prop}: $value;
96
+ }
97
+ }
98
+ }
99
+ }
100
+ /* w6w-host-guard:end */
@@ -98,7 +98,9 @@
98
98
  min-height: 0;
99
99
  padding-right: var(--w6w-sp-1);
100
100
  }
101
- .w6w-stepbuilder-search {
101
+ /* input.x.x is (0,2,1): the host guard's text-input arm is (0,2,1) with
102
+ `width: revert`, so a bare (0,1,0) class would lose `width: 100%` outside a flex column. */
103
+ input.w6w-stepbuilder-search.w6w-stepbuilder-search {
102
104
  background: var(--w6w-panel-2);
103
105
  border: 1px solid var(--w6w-border);
104
106
  border-radius: 8px;
@@ -108,7 +110,7 @@
108
110
  font-family: inherit;
109
111
  width: 100%;
110
112
  }
111
- .w6w-stepbuilder-search:focus {
113
+ input.w6w-stepbuilder-search.w6w-stepbuilder-search:focus {
112
114
  outline: none;
113
115
  border-color: var(--w6w-accent);
114
116
  }
@@ -519,3 +521,25 @@
519
521
  right: 0;
520
522
  top: var(--w6w-sp-2);
521
523
  }
524
+
525
+ /* Search-everything results: one scrolling column of titled sections. */
526
+ .w6w-stepbuilder-results {
527
+ display: flex;
528
+ flex-direction: column;
529
+ gap: var(--w6w-sp-4);
530
+ min-height: 0;
531
+ overflow-y: auto;
532
+ }
533
+ .w6w-stepbuilder-results-section {
534
+ display: flex;
535
+ flex-direction: column;
536
+ gap: var(--w6w-sp-2);
537
+ }
538
+ .w6w-stepbuilder-results-section > h4 {
539
+ margin: 0;
540
+ color: var(--w6w-muted);
541
+ font-size: var(--w6w-fs-xs);
542
+ font-weight: var(--w6w-fw-semibold);
543
+ letter-spacing: 0.04em;
544
+ text-transform: uppercase;
545
+ }
@@ -94,11 +94,10 @@
94
94
  .w6w-flyout {
95
95
  position: fixed;
96
96
  z-index: 40;
97
- /* No `box-sizing: border-box` reset elsewhere in this package (checked) —
98
- the inline `width` set by `Flyout` is meant to match the anchor row
99
- EXACTLY (2026-08-30: "should extend to the end of the prod button and
100
- div"), so padding/border must come out of that width, not add to it. */
101
- box-sizing: border-box;
97
+ /* Border-box (from `_box-reset.scss`, which covers every `w6w-` element) is
98
+ load-bearing here: the inline `width` set by `Flyout` is meant to match the
99
+ anchor row EXACTLY (2026-08-30: "should extend to the end of the prod button
100
+ and div"), so padding/border must come out of that width, not add to it. */
102
101
  background: var(--w6w-panel);
103
102
  border: 1px solid var(--w6w-border);
104
103
  border-radius: 8px;