@issuegraph/editor 0.10.0 → 0.22.1
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 +38 -7
- package/dist/a11y/baseline.d.ts.map +1 -1
- package/dist/a11y/baseline.js +4 -0
- package/dist/a11y/baseline.js.map +1 -1
- package/dist/audit/findings.d.ts +107 -1
- package/dist/audit/findings.d.ts.map +1 -1
- package/dist/audit/findings.js +113 -6
- package/dist/audit/findings.js.map +1 -1
- package/dist/audit/panel.d.ts +277 -0
- package/dist/audit/panel.d.ts.map +1 -0
- package/dist/audit/panel.js +462 -0
- package/dist/audit/panel.js.map +1 -0
- package/dist/audit/refused.d.ts +99 -0
- package/dist/audit/refused.d.ts.map +1 -0
- package/dist/audit/refused.js +276 -0
- package/dist/audit/refused.js.map +1 -0
- package/dist/audit/styles.d.ts +1 -1
- package/dist/audit/styles.d.ts.map +1 -1
- package/dist/audit/styles.js +428 -0
- package/dist/audit/styles.js.map +1 -1
- package/dist/audit/surface.d.ts +54 -12
- package/dist/audit/surface.d.ts.map +1 -1
- package/dist/audit/surface.js +53 -13
- package/dist/audit/surface.js.map +1 -1
- package/dist/create/draft.d.ts +19 -0
- package/dist/create/draft.d.ts.map +1 -1
- package/dist/create/draft.js +21 -0
- package/dist/create/draft.js.map +1 -1
- package/dist/create/keys.d.ts +68 -8
- package/dist/create/keys.d.ts.map +1 -1
- package/dist/create/keys.js +43 -5
- package/dist/create/keys.js.map +1 -1
- package/dist/index.d.ts +38 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -13
- package/dist/index.js.map +1 -1
- package/dist/overlay/render.d.ts +11 -3
- package/dist/overlay/render.d.ts.map +1 -1
- package/dist/overlay/render.js +22 -6
- package/dist/overlay/render.js.map +1 -1
- package/dist/overlay/request.d.ts +71 -0
- package/dist/overlay/request.d.ts.map +1 -0
- package/dist/overlay/request.js +129 -0
- package/dist/overlay/request.js.map +1 -0
- package/dist/overlay/styles.d.ts +1 -1
- package/dist/overlay/styles.d.ts.map +1 -1
- package/dist/overlay/styles.js +38 -7
- package/dist/overlay/styles.js.map +1 -1
- package/dist/reevaluate/parts.d.ts +130 -0
- package/dist/reevaluate/parts.d.ts.map +1 -0
- package/dist/reevaluate/parts.js +260 -0
- package/dist/reevaluate/parts.js.map +1 -0
- package/dist/reevaluate/render.d.ts +18 -11
- package/dist/reevaluate/render.d.ts.map +1 -1
- package/dist/reevaluate/render.js +21 -135
- package/dist/reevaluate/render.js.map +1 -1
- package/dist/reevaluate/styles.d.ts +1 -1
- package/dist/reevaluate/styles.d.ts.map +1 -1
- package/dist/reevaluate/styles.js +26 -0
- package/dist/reevaluate/styles.js.map +1 -1
- package/dist/reevaluate/view.d.ts +16 -1
- package/dist/reevaluate/view.d.ts.map +1 -1
- package/dist/reevaluate/view.js +21 -1
- package/dist/reevaluate/view.js.map +1 -1
- package/dist/reevaluate/words.d.ts +7 -0
- package/dist/reevaluate/words.d.ts.map +1 -1
- package/dist/scale/ladder.d.ts +62 -6
- package/dist/scale/ladder.d.ts.map +1 -1
- package/dist/scale/ladder.js +119 -8
- package/dist/scale/ladder.js.map +1 -1
- package/dist/scale/render.d.ts +44 -0
- package/dist/scale/render.d.ts.map +1 -1
- package/dist/scale/render.js +197 -27
- package/dist/scale/render.js.map +1 -1
- package/dist/scale/styles.d.ts +11 -5
- package/dist/scale/styles.d.ts.map +1 -1
- package/dist/scale/styles.js +133 -4
- package/dist/scale/styles.js.map +1 -1
- package/dist/workspace/host.d.ts +83 -1
- package/dist/workspace/host.d.ts.map +1 -1
- package/dist/workspace/host.js +197 -4
- package/dist/workspace/host.js.map +1 -1
- package/dist/workspace/inspector.d.ts +33 -7
- package/dist/workspace/inspector.d.ts.map +1 -1
- package/dist/workspace/inspector.js +15 -0
- package/dist/workspace/inspector.js.map +1 -1
- package/dist/workspace/mount.d.ts +23 -1
- package/dist/workspace/mount.d.ts.map +1 -1
- package/dist/workspace/mount.js +500 -17
- package/dist/workspace/mount.js.map +1 -1
- package/dist/workspace/rail.d.ts +5 -2
- package/dist/workspace/rail.d.ts.map +1 -1
- package/dist/workspace/rail.js.map +1 -1
- package/dist/workspace/render.d.ts +379 -3
- package/dist/workspace/render.d.ts.map +1 -1
- package/dist/workspace/render.js +893 -133
- package/dist/workspace/render.js.map +1 -1
- package/dist/workspace/selection.d.ts +11 -0
- package/dist/workspace/selection.d.ts.map +1 -1
- package/dist/workspace/selection.js +10 -0
- package/dist/workspace/selection.js.map +1 -1
- package/dist/workspace/styles.d.ts +1 -1
- package/dist/workspace/styles.d.ts.map +1 -1
- package/dist/workspace/styles.js +868 -18
- package/dist/workspace/styles.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.js","sourceRoot":"","sources":["../../src/audit/surface.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"surface.js","sourceRoot":"","sources":["../../src/audit/surface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAIH,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGhF;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe,CAAC;AAExD,kFAAkF;AAClF,MAAM,CAAC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAE3D;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAE7D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAqD3D,MAAM,WAAW,GAAoC,IAAI,GAAG,CAC1D,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAClD,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM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;AACH,MAAM,UAAU,WAAW,CACzB,OAAqB,EACrB,IAAyB;IAEzB,IAAI,QAA8B,CAAC;IACnC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,GAAG,KAAK,SAAS;YAAE,SAAS;QAChC,IAAI,QAAQ,KAAK,SAAS,IAAI,SAAS,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,QAAQ,CAAC;YAAE,QAAQ,GAAG,GAAG,CAAC;IACrF,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAcD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAqB,EAAE,UAA8B,EAAE;IACvF,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACpC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,KAAK,IAAI,CAAC;IACnC,OAAO;QACL,yBAAyB,qBAAqB,KAAK,KAAK,IAAI;QAC5D,4EAA4E;QAC5E,2EAA2E;QAC3E,4EAA4E;QAC5E,sEAAsE;QACtE,2DAA2D;QAC3D,gEAAgE,MAAM,CAAC,IAAI,CAAC,GAAG;QAC/E,IAAI,qBAAqB,GAAG;QAC5B,gCAAgC,KAAK,SAAS;QAC9C,2CAA2C;QAC3C,WAAW;QACX,QAAQ;KACT,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACb,CAAC"}
|
package/dist/create/draft.d.ts
CHANGED
|
@@ -82,6 +82,25 @@ export declare const IDLE_CREATE_DRAFT: CreateDraft;
|
|
|
82
82
|
* floating chooser, which is the one opened by a pointer.
|
|
83
83
|
*/
|
|
84
84
|
export declare function isChoosingKind(draft: CreateDraft): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Whether anything has been gathered at all — the opposite of idle.
|
|
87
|
+
*
|
|
88
|
+
* IT IS NOT `isChoosingKind`'S COMPLEMENT, AND THAT IS THE WHOLE REASON IT
|
|
89
|
+
* EXISTS. The kind can be chosen before the source on the keyboard path, so
|
|
90
|
+
* `{ kind: 'blocked-by' }` with no source is a draft the reader is in the
|
|
91
|
+
* middle of and one `isChoosingKind` answers `false` for. A shell asking
|
|
92
|
+
* "is a draft live" through that predicate would treat a half-built
|
|
93
|
+
* keyboard draft as no draft at all.
|
|
94
|
+
*
|
|
95
|
+
* WHAT ASKS IT, and why the question is worth a name: `mount.ts` decides
|
|
96
|
+
* whether Escape belongs to the draft or to §17k's transient surfaces. The
|
|
97
|
+
* wrong answer either abandons a relationship the reader was building or
|
|
98
|
+
* leaves a panel that will not close, and both are silent.
|
|
99
|
+
*
|
|
100
|
+
* THREE FIELDS, NOT TWO, on this file's own standing rule: a definition
|
|
101
|
+
* written out at each call site is one a later edit can move at one of them.
|
|
102
|
+
*/
|
|
103
|
+
export declare function isDraftLive(draft: CreateDraft): boolean;
|
|
85
104
|
/**
|
|
86
105
|
* One fact arriving, from whichever path gathered it.
|
|
87
106
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/create/draft.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;IACjC,wCAAwC;IACxC,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;IACjC,qEAAqE;IACrE,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;CAChC;AAED,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB,EAAE,WAI9B,CAAC;AAEH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QAAQ,GAAG,IAAI,CAAC;CAChC;AAED,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB,EAAE,WAI9B,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAE1D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAEvD;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GACrB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAA;CAAE,GACrD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAA;CAAE,GACnD;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE,GACtD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEhC;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;CACpC;AAqBD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,GAAG,YAAY,CAmCtF"}
|
package/dist/create/draft.js
CHANGED
|
@@ -72,6 +72,27 @@ export const IDLE_CREATE_DRAFT = Object.freeze({
|
|
|
72
72
|
export function isChoosingKind(draft) {
|
|
73
73
|
return draft.source !== null && draft.kind === null;
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Whether anything has been gathered at all — the opposite of idle.
|
|
77
|
+
*
|
|
78
|
+
* IT IS NOT `isChoosingKind`'S COMPLEMENT, AND THAT IS THE WHOLE REASON IT
|
|
79
|
+
* EXISTS. The kind can be chosen before the source on the keyboard path, so
|
|
80
|
+
* `{ kind: 'blocked-by' }` with no source is a draft the reader is in the
|
|
81
|
+
* middle of and one `isChoosingKind` answers `false` for. A shell asking
|
|
82
|
+
* "is a draft live" through that predicate would treat a half-built
|
|
83
|
+
* keyboard draft as no draft at all.
|
|
84
|
+
*
|
|
85
|
+
* WHAT ASKS IT, and why the question is worth a name: `mount.ts` decides
|
|
86
|
+
* whether Escape belongs to the draft or to §17k's transient surfaces. The
|
|
87
|
+
* wrong answer either abandons a relationship the reader was building or
|
|
88
|
+
* leaves a panel that will not close, and both are silent.
|
|
89
|
+
*
|
|
90
|
+
* THREE FIELDS, NOT TWO, on this file's own standing rule: a definition
|
|
91
|
+
* written out at each call site is one a later edit can move at one of them.
|
|
92
|
+
*/
|
|
93
|
+
export function isDraftLive(draft) {
|
|
94
|
+
return draft.source !== null || draft.target !== null || draft.kind !== null;
|
|
95
|
+
}
|
|
75
96
|
function complete(draft) {
|
|
76
97
|
const { source, target, kind } = draft;
|
|
77
98
|
if (source === null || target === null || kind === null)
|
package/dist/create/draft.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft.js","sourceRoot":"","sources":["../../src/create/draft.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAoBH,8EAA8E;AAC9E,MAAM,CAAC,MAAM,iBAAiB,GAAgB,MAAM,CAAC,MAAM,CAAC;IAC1D,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,IAAI;CACX,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,cAAc,CAAC,KAAkB;IAC/C,OAAO,KAAK,CAAC,MAAM,KAAK,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC;AACtD,CAAC;AA2CD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question is inverted. {@link CreateInteraction} enumerates OUR OWN
|
|
57
|
-
* interaction
|
|
58
|
-
* is in. A
|
|
59
|
-
* map is silent. What was an open-ended list of other
|
|
60
|
-
* closed description of this design's own flow.
|
|
57
|
+
* interaction — one state per step of the create flow §17b specifies — and the
|
|
58
|
+
* host says which one it is in. A new widget adds no code here: the host reports
|
|
59
|
+
* `elsewhere` and the map is silent. What was an open-ended list of other
|
|
60
|
+
* people's claims became a closed description of this design's own flow.
|
|
61
|
+
*
|
|
62
|
+
* THE SET IS CLOSED BY THE FLOW, NOT BY A COUNT. It has grown twice, both times
|
|
63
|
+
* because a step of this flow was missing from it rather than because the
|
|
64
|
+
* closure argument failed — see {@link CreateInteraction}. The invariant that
|
|
65
|
+
* has never moved is the one that matters: no state here names a host's widget.
|
|
61
66
|
*
|
|
62
67
|
* Two press-level facts remain, and they are bounded in a way the widget list
|
|
63
68
|
* never was — a modifier set and a composition flag are fields on the event
|
|
@@ -119,7 +124,7 @@ export interface KeyboardContext {
|
|
|
119
124
|
* The host answers it because the host is the only one who can: this package
|
|
120
125
|
* has no DOM, and which control holds focus is visible only to the shell.
|
|
121
126
|
* Crucially, answering it needs no knowledge of THIS package — a host maps
|
|
122
|
-
* its own world onto
|
|
127
|
+
* its own world onto states it already understands.
|
|
123
128
|
*/
|
|
124
129
|
readonly interaction: CreateInteraction;
|
|
125
130
|
}
|
|
@@ -145,13 +150,18 @@ export interface KeyboardContext {
|
|
|
145
150
|
* printable keys belong to the box — most issue references carry a digit, so
|
|
146
151
|
* a map that claimed `1`–`5` here would eat nearly every query — and `⌫`
|
|
147
152
|
* deletes a CHARACTER rather than the reader's selected edge.
|
|
153
|
+
* - `add-control` — the create flow's OWN begin control holds focus: §17b's
|
|
154
|
+
* inspector path, the `+ add` button, which draws {@link RELATE_KEY} beside
|
|
155
|
+
* its own word. Only `relate` reaches, for the reason the state exists at all
|
|
156
|
+
* (below). A press at this position begins the draft the control would have
|
|
157
|
+
* begun, from the subject the control publishes.
|
|
148
158
|
* - `elsewhere` — something else owns the keyboard entirely: an inline title,
|
|
149
159
|
* a filter box, a modal, a control this package has never heard of. NOTHING
|
|
150
160
|
* reaches, `Escape` included, because that control needs `Escape` to cancel
|
|
151
161
|
* its own edit.
|
|
152
162
|
*
|
|
153
163
|
* `elsewhere` is what makes the set closed. It is the state for everything not
|
|
154
|
-
* named, so a host growing
|
|
164
|
+
* named, so a host growing another control changes nothing here.
|
|
155
165
|
*
|
|
156
166
|
* ## Why this grew to four, when the whole point was that it does not grow
|
|
157
167
|
*
|
|
@@ -169,9 +179,32 @@ export interface KeyboardContext {
|
|
|
169
179
|
* A HOST STILL ANSWERS IT WITHOUT KNOWING THIS PACKAGE: "my reader is choosing
|
|
170
180
|
* a relationship kind" is a fact about the host's own screen, the same shape as
|
|
171
181
|
* the other three. What did NOT change is the thing the closure protects — no
|
|
172
|
-
* state here names a host's widget, and
|
|
182
|
+
* state here names a host's widget, and another control still adds no code.
|
|
183
|
+
*
|
|
184
|
+
* ## And then to five, by the same argument and for the same kind of step
|
|
185
|
+
*
|
|
186
|
+
* `#173`. §17b gives the create flow three equivalent entries — canvas, keyboard
|
|
187
|
+
* and the inspector's `+ add` — and the third one's control was `elsewhere`, so
|
|
188
|
+
* `R` was inert at exactly the position that DRAWS `R` as its own hint. That is
|
|
189
|
+
* the `#152` shape again: a step of this flow classified as somebody else's
|
|
190
|
+
* widget.
|
|
191
|
+
*
|
|
192
|
+
* THE DIFFERENCE IS NAMABLE, WHICH IS WHAT KEEPS THIS FROM BEING A SLOPE. It is
|
|
193
|
+
* the test the kind chooser already passes and the audit filter already fails:
|
|
194
|
+
* the chooser IS the key map rendered — its digits are {@link KIND_KEYS} — and
|
|
195
|
+
* `+ add` IS this binding rendered, drawing {@link RELATE_KEY} itself. A control
|
|
196
|
+
* that tells the reader to press a key cannot be a control that key is refused
|
|
197
|
+
* by. A delete button, a filter box or a host's own control shares no vocabulary
|
|
198
|
+
* with this map and stays `elsewhere`, which is where every control that draws
|
|
199
|
+
* no key belongs.
|
|
200
|
+
*
|
|
201
|
+
* ONLY `relate` REACHES IT, and that follows from the same sentence rather than
|
|
202
|
+
* from caution: the argument is about the ONE binding this control renders, and
|
|
203
|
+
* it says nothing about any other. `⌫` there would delete a selected edge the
|
|
204
|
+
* reader is not looking at, and a digit would fill a kind slot on a draft that
|
|
205
|
+
* has not begun.
|
|
173
206
|
*/
|
|
174
|
-
export type CreateInteraction = 'canvas' | 'kind-chooser' | 'target-search' | 'elsewhere';
|
|
207
|
+
export type CreateInteraction = 'canvas' | 'kind-chooser' | 'target-search' | 'add-control' | 'elsewhere';
|
|
175
208
|
/**
|
|
176
209
|
* What a key means. `none` leaves the key to the host.
|
|
177
210
|
*
|
|
@@ -193,6 +226,33 @@ export type KeyIntent = {
|
|
|
193
226
|
readonly kind: 'retype';
|
|
194
227
|
readonly edgeId: EdgeId;
|
|
195
228
|
};
|
|
229
|
+
/**
|
|
230
|
+
* The key that begins a relationship — §17b's `R`, and the one key a surface
|
|
231
|
+
* DRAWS beside a control rather than in a legend.
|
|
232
|
+
*
|
|
233
|
+
* DECLARED ABOVE THE TABLE AND USED AS ITS KEY, so the binding and the drawn
|
|
234
|
+
* hint are the same literal by construction. The obvious alternative — deriving
|
|
235
|
+
* it the way {@link KIND_KEYS} is derived — does not survive this package's
|
|
236
|
+
* rules: a `find` over `BINDINGS` is `string | undefined`, and every way to
|
|
237
|
+
* discharge that nil is worse than the problem. A `?? 'r'` fallback is the
|
|
238
|
+
* second literal this constant exists to prevent; a module-load `throw` puts a
|
|
239
|
+
* side effect in a package published `"sideEffects": false`; and exporting
|
|
240
|
+
* `string | undefined` pushes an impossible case onto every renderer. `KIND_KEYS`
|
|
241
|
+
* escapes it only because `flatMap` makes "no entries" a legal value, and a
|
|
242
|
+
* single key has no such empty form.
|
|
243
|
+
*
|
|
244
|
+
* LOWERCASE, BECAUSE THAT IS WHAT THE TABLE MATCHES. {@link normalize} lowercases
|
|
245
|
+
* every press before the lookup, so this is the value a key press actually
|
|
246
|
+
* resolves to. §17a draws it uppercase; that is the stylesheet's `text-transform`
|
|
247
|
+
* and never a second string here.
|
|
248
|
+
*
|
|
249
|
+
* IT IS A LAYOUT VALUE, NOT A PHYSICAL POSITION. `KeyboardEvent.key` reports what
|
|
250
|
+
* the layout produces, so on a layout with no Latin `r` this binding is
|
|
251
|
+
* unreachable and a surface drawing the hint promises a key that does nothing.
|
|
252
|
+
* That is a property of the whole table rather than of this constant, and it is
|
|
253
|
+
* recorded here because publishing the letter is what makes the promise visible.
|
|
254
|
+
*/
|
|
255
|
+
export declare const RELATE_KEY = "r";
|
|
196
256
|
/** A digit the reader can press, and the kind it chooses. */
|
|
197
257
|
export interface KindKey {
|
|
198
258
|
/** The key as {@link keyIntent} spells it — `'1'`, `'2'`, … */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../src/create/keys.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../src/create/keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAC;IAClC;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;IAChC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC;;;;;;;;;;;OAWG;IACH,QAA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AO,CAAC;IAC1B;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B;AAmFD;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,GAAG,SAAS,CA+C9E"}
|
package/dist/create/keys.js
CHANGED
|
@@ -54,10 +54,15 @@
|
|
|
54
54
|
* it, and gets one more entry every time a host grows a control.
|
|
55
55
|
*
|
|
56
56
|
* So the question is inverted. {@link CreateInteraction} enumerates OUR OWN
|
|
57
|
-
* interaction
|
|
58
|
-
* is in. A
|
|
59
|
-
* map is silent. What was an open-ended list of other
|
|
60
|
-
* closed description of this design's own flow.
|
|
57
|
+
* interaction — one state per step of the create flow §17b specifies — and the
|
|
58
|
+
* host says which one it is in. A new widget adds no code here: the host reports
|
|
59
|
+
* `elsewhere` and the map is silent. What was an open-ended list of other
|
|
60
|
+
* people's claims became a closed description of this design's own flow.
|
|
61
|
+
*
|
|
62
|
+
* THE SET IS CLOSED BY THE FLOW, NOT BY A COUNT. It has grown twice, both times
|
|
63
|
+
* because a step of this flow was missing from it rather than because the
|
|
64
|
+
* closure argument failed — see {@link CreateInteraction}. The invariant that
|
|
65
|
+
* has never moved is the one that matters: no state here names a host's widget.
|
|
61
66
|
*
|
|
62
67
|
* Two press-level facts remain, and they are bounded in a way the widget list
|
|
63
68
|
* never was — a modifier set and a composition flag are fields on the event
|
|
@@ -70,6 +75,33 @@
|
|
|
70
75
|
* call site decides it and a sixth binding cannot be added without answering.
|
|
71
76
|
*/
|
|
72
77
|
import { EDGE_FIELDS } from '@issuegraph/core';
|
|
78
|
+
/**
|
|
79
|
+
* The key that begins a relationship — §17b's `R`, and the one key a surface
|
|
80
|
+
* DRAWS beside a control rather than in a legend.
|
|
81
|
+
*
|
|
82
|
+
* DECLARED ABOVE THE TABLE AND USED AS ITS KEY, so the binding and the drawn
|
|
83
|
+
* hint are the same literal by construction. The obvious alternative — deriving
|
|
84
|
+
* it the way {@link KIND_KEYS} is derived — does not survive this package's
|
|
85
|
+
* rules: a `find` over `BINDINGS` is `string | undefined`, and every way to
|
|
86
|
+
* discharge that nil is worse than the problem. A `?? 'r'` fallback is the
|
|
87
|
+
* second literal this constant exists to prevent; a module-load `throw` puts a
|
|
88
|
+
* side effect in a package published `"sideEffects": false`; and exporting
|
|
89
|
+
* `string | undefined` pushes an impossible case onto every renderer. `KIND_KEYS`
|
|
90
|
+
* escapes it only because `flatMap` makes "no entries" a legal value, and a
|
|
91
|
+
* single key has no such empty form.
|
|
92
|
+
*
|
|
93
|
+
* LOWERCASE, BECAUSE THAT IS WHAT THE TABLE MATCHES. {@link normalize} lowercases
|
|
94
|
+
* every press before the lookup, so this is the value a key press actually
|
|
95
|
+
* resolves to. §17a draws it uppercase; that is the stylesheet's `text-transform`
|
|
96
|
+
* and never a second string here.
|
|
97
|
+
*
|
|
98
|
+
* IT IS A LAYOUT VALUE, NOT A PHYSICAL POSITION. `KeyboardEvent.key` reports what
|
|
99
|
+
* the layout produces, so on a layout with no Latin `r` this binding is
|
|
100
|
+
* unreachable and a surface drawing the hint promises a key that does nothing.
|
|
101
|
+
* That is a property of the whole table rather than of this constant, and it is
|
|
102
|
+
* recorded here because publishing the letter is what makes the promise visible.
|
|
103
|
+
*/
|
|
104
|
+
export const RELATE_KEY = 'r';
|
|
73
105
|
/**
|
|
74
106
|
* The vocabulary, as data.
|
|
75
107
|
*
|
|
@@ -87,7 +119,11 @@ const BINDINGS = new Map([
|
|
|
87
119
|
// and it already clears what a previous draft gathered. Withholding it would
|
|
88
120
|
// take the restart away from a reader whose focus is off the rail while
|
|
89
121
|
// leaving it for one whose focus is on it — a difference with no meaning.
|
|
90
|
-
|
|
122
|
+
// `r` ALSO SURVIVES `add-control`, and this is the one binding that does:
|
|
123
|
+
// that state IS this binding rendered as a button, drawing this very letter
|
|
124
|
+
// as its hint (`#173`). The entry is the whole of the fix — the state admits
|
|
125
|
+
// what it renders and nothing else.
|
|
126
|
+
[RELATE_KEY, { kind: 'relate', survives: ['kind-chooser', 'add-control'] }],
|
|
91
127
|
// THE DIGITS ARE WHAT THE CHOOSER IS FOR. `#152`: with focus anywhere but a
|
|
92
128
|
// keyed row the interaction read `elsewhere` and these returned `none` at the
|
|
93
129
|
// one step whose whole purpose is to be answered with a digit.
|
|
@@ -215,6 +251,8 @@ function reaches(binding, interaction) {
|
|
|
215
251
|
return binding.survives.includes('kind-chooser');
|
|
216
252
|
case 'target-search':
|
|
217
253
|
return binding.survives.includes('target-search');
|
|
254
|
+
case 'add-control':
|
|
255
|
+
return binding.survives.includes('add-control');
|
|
218
256
|
case 'elsewhere':
|
|
219
257
|
return false;
|
|
220
258
|
}
|
package/dist/create/keys.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../src/create/keys.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../src/create/keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAsM/C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC;AAE9B;;;;;;;;GAQG;AACH,MAAM,QAAQ,GAAiC,IAAI,GAAG,CAAkB;IACtE,6EAA6E;IAC7E,iEAAiE;IACjE,8EAA8E;IAC9E,6EAA6E;IAC7E,6EAA6E;IAC7E,wEAAwE;IACxE,0EAA0E;IAC1E,0EAA0E;IAC1E,4EAA4E;IAC5E,6EAA6E;IAC7E,oCAAoC;IACpC,CAAC,UAAU,EAAE,EAAE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,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;QACnF,KAAK,eAAe;YAClB,OAAO,OAAO,CAAC,KAAK,KAAK,IAAI;gBAC3B,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;QAC1E,KAAK,aAAa;YAChB,OAAO,OAAO,CAAC,YAAY,KAAK,IAAI;gBAClC,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;QACpF,KAAK,aAAa;YAChB,OAAO,OAAO,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC;QACjG,KAAK,QAAQ;YACX,uEAAuE;YACvE,6DAA6D;YAC7D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC;IAC3D,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -33,17 +33,36 @@
|
|
|
33
33
|
* globals removed, which is what catches a computed access like
|
|
34
34
|
* `globalThis['fet' + 'ch']`.
|
|
35
35
|
*
|
|
36
|
-
* ## The
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
36
|
+
* ## The declared crossings
|
|
37
|
+
*
|
|
38
|
+
* Two, and both are the same argument: only the layer that computes the layout
|
|
39
|
+
* knows where anything is, so a thing that needs a POSITION is drawn there.
|
|
40
|
+
*
|
|
41
|
+
* **The `together-with` connector lives in the VIEWER, not here.** A
|
|
42
|
+
* `together-with` edge must be individually selectable, retypeable and
|
|
43
|
+
* deletable, and an enclosure has no edge to click — so the connector is a hit
|
|
44
|
+
* target, and only the layer that computes the layout knows where its endpoints
|
|
45
|
+
* are. Adding it from out here would mean re-deriving positions layer 1 already
|
|
46
|
+
* has, which is the drifting second implementation the package split exists to
|
|
47
|
+
* avoid.
|
|
48
|
+
*
|
|
49
|
+
* **The four edge MARKS are drawn by the viewer, from a request built here.** A
|
|
50
|
+
* `writing…` chip sits on two nodes, a ✕ beside a terminal, a reason beside the
|
|
51
|
+
* line, and a conflict's second version on the line's perpendicular. None of
|
|
52
|
+
* those is the path's own position, and `overlay/render.ts` records four review
|
|
53
|
+
* rounds of what happens when this layer tries to guess one — each fix correct,
|
|
54
|
+
* each followed by another, because the missing thing was never a property but
|
|
55
|
+
* the geometry.
|
|
56
|
+
*
|
|
57
|
+
* What crosses is a vocabulary of POSITIONS — `companion`, never `conflict` —
|
|
58
|
+
* built by `overlay/request.ts` and consumed by the viewer's `marks.ts`. So the
|
|
59
|
+
* viewer gains no edit awareness: it learns where to put a second line, not that
|
|
60
|
+
* a write can conflict. Every state word, glyph and hue token stays on this side.
|
|
61
|
+
*
|
|
62
|
+
* Both are written down as declared crossings rather than discovered later.
|
|
63
|
+
* Treat them as the precedent for DECLARING a crossing, never as permission for
|
|
64
|
+
* more — and note that neither publishes layer 1's geometry outward, which is
|
|
65
|
+
* the move both of them rejected.
|
|
47
66
|
*
|
|
48
67
|
* ## The surface
|
|
49
68
|
*
|
|
@@ -114,10 +133,14 @@
|
|
|
114
133
|
export type { AuditClass, AuditClassSpec, AuditFinding, AuditGraph, AuditInput, AuditSeverity, EncodingRefusal, } from './audit/findings.ts';
|
|
115
134
|
export { AUDIT_CLASSES, AUDIT_CLASS_SPECS, auditDocument } from './audit/findings.ts';
|
|
116
135
|
export type { AuditHeaderOptions, AuditOverlay, AuditRow } from './audit/surface.ts';
|
|
117
|
-
export { AUDIT_COUNT_ATTRIBUTE, AUDIT_FILTER_ATTRIBUTE, AUDIT_SEVERITY_ATTRIBUTE, auditFilterKeeps, auditOverlay, auditRowAttributes, renderAuditHeader, } from './audit/surface.ts';
|
|
136
|
+
export { AUDIT_COUNT_ATTRIBUTE, AUDIT_FILTER_ATTRIBUTE, AUDIT_PANEL_ATTRIBUTE, AUDIT_SEVERITY_ATTRIBUTE, auditFilterKeeps, auditOverlay, auditRowAttributes, renderAuditHeader, } from './audit/surface.ts';
|
|
137
|
+
export type { AuditPanelOptions, AuditWords } from './audit/panel.ts';
|
|
138
|
+
export { AUDIT_KIND_ATTRIBUTE, renderAuditPanel } from './audit/panel.ts';
|
|
139
|
+
export type { EncodingRefusedBlockOptions } from './audit/refused.ts';
|
|
140
|
+
export { renderEncodingRefusedBlock } from './audit/refused.ts';
|
|
118
141
|
export { auditStylesheet } from './audit/styles.ts';
|
|
119
142
|
export { INITIAL_SCALE_STATE, type ScaleCommand, type ScaleState, scaleReducer, } from './scale/commands.ts';
|
|
120
|
-
export { type IsolatedChip, type ScaleCapsule, type ScaleLadder, type ScaleMatch, type ScaleRefusal, type ScaleRoute, type ScaleRouteKind, type ScaleSearch, type ScaleTier, scaleLadder, } from './scale/ladder.ts';
|
|
143
|
+
export { type IsolatedChip, type OmittedComponents, type ScaleCapsule, type ScaleLadder, type ScaleMatch, type ScaleRefusal, type ScaleRoute, type ScaleRouteKind, type ScaleSearch, type ScaleTier, type SizeRange, scaleLadder, } from './scale/ladder.ts';
|
|
121
144
|
export { type ScaleLadderOptions, type ScaleLadderResult, renderScaleLadder, } from './scale/render.ts';
|
|
122
145
|
export { scaleLadderStylesheet } from './scale/styles.ts';
|
|
123
146
|
export { OVERLAY_TREATMENTS, STATE_ATTRIBUTE, type EdgeOverlay, type OverlayAffordance, type OverlayDash, type OverlayMark, type OverlayStroke, type OverlayTreatment, overlayFor, overlayLabel, treatmentForState, } from './overlay/grammar.ts';
|
|
@@ -128,7 +151,7 @@ export { type PickerWords } from './picker/words.ts';
|
|
|
128
151
|
export { type PickerOptions, type PickerResult, renderPicker, } from './picker/render.ts';
|
|
129
152
|
export { pickerStylesheet } from './picker/styles.ts';
|
|
130
153
|
export { type CreateCommand, type CreateDraft, type CreateResult, IDLE_CREATE_DRAFT, createReducer, } from './create/draft.ts';
|
|
131
|
-
export { type CreateInteraction, type KeyIntent, type KeyPress, type KeyboardContext, type KindKey, KIND_KEYS, keyIntent, } from './create/keys.ts';
|
|
154
|
+
export { type CreateInteraction, type KeyIntent, type KeyPress, type KeyboardContext, type KindKey, KIND_KEYS, RELATE_KEY, keyIntent, } from './create/keys.ts';
|
|
132
155
|
export { type Bounds, type PickerPlacement, type Point, type Size, pickerPlacement, } from './create/placement.ts';
|
|
133
156
|
export { type ChangeFacet, type ChangeSummary, type PlacedChip, type ReevaluateView, type SummaryPart, CHANGE_FACETS, reevaluateView, summaryOf, } from './reevaluate/view.ts';
|
|
134
157
|
export { type ChangeWords } from './reevaluate/words.ts';
|
|
@@ -147,7 +170,7 @@ export { type FirstPassCommand, type FirstPassOutcome, type FirstPassPhase, type
|
|
|
147
170
|
export { type RailWindow, type RailWindowOptions, RAIL_WINDOW, railWindow, } from './workspace/rail.ts';
|
|
148
171
|
export { type InspectorPosition, type InspectorRelationship, type InspectorView, inspectorView, } from './workspace/inspector.ts';
|
|
149
172
|
export { type ConflictDiff, type ConflictIssueChange, conflictDiff, diffIsEmpty, diffWithin, } from './workspace/recovery.ts';
|
|
150
|
-
export { type Zone, type WorkspaceOptions, type WorkspaceRefusal, type WorkspaceRecovery, type WorkspaceResult, type WorkspaceView, type WorkspaceWords, type RecoveryWords, ZONES, renderWorkspace, } from './workspace/render.ts';
|
|
173
|
+
export { type Zone, type WorkspaceOptions, type WorkspaceRefusal, type WorkspaceRecovery, type WorkspaceResult, type WorkspaceView, type WorkspaceWords, type RecoveryWords, type CanvasWords, type RailWords, ZONES, renderWorkspace, } from './workspace/render.ts';
|
|
151
174
|
export { workspaceStylesheet } from './workspace/styles.ts';
|
|
152
175
|
export { type HostCommand, type HostEffect, type HostResult, type HostState, INITIAL_HOST_STATE, RAIL_SLACK, editCarrier, railSlackFor, railWindowTarget, reconcileHost, reduceHost, targetMatches, } from './workspace/host.ts';
|
|
153
176
|
export { type CanvasMode, type FirstPassOption, type MountWords, type MountWorkspaceOptions, type WorkspaceHandle, type WorkspaceProjection, type WorkspaceUpdate, CANVAS_MODES, MOUNT_RAIL_COUNT, mountWorkspace, } from './workspace/mount.ts';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmIG;AAEH,YAAY,EACV,UAAU,EACV,cAAc,EACd,YAAY,EACZ,UAAU,EACV,UAAU,EACV,aAAa,EACb,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEtF,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAE5B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K,YAAY,EACjB,KAAK,mBAAmB,EACxB,YAAY,EACZ,WAAW,EACX,UAAU,GACX,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,KAAK,IAAI,EACT,KAAK,gBAAgB,EAMrB,KAAK,gBAAgB,EAIrB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,aAAa,EAIlB,KAAK,WAAW,EAIhB,KAAK,SAAS,EACd,KAAK,EACL,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,SAAS,EACd,kBAAkB,EAClB,UAAU,EAQV,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,aAAa,GACd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,YAAY,EACZ,gBAAgB,EAChB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -33,17 +33,36 @@
|
|
|
33
33
|
* globals removed, which is what catches a computed access like
|
|
34
34
|
* `globalThis['fet' + 'ch']`.
|
|
35
35
|
*
|
|
36
|
-
* ## The
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
36
|
+
* ## The declared crossings
|
|
37
|
+
*
|
|
38
|
+
* Two, and both are the same argument: only the layer that computes the layout
|
|
39
|
+
* knows where anything is, so a thing that needs a POSITION is drawn there.
|
|
40
|
+
*
|
|
41
|
+
* **The `together-with` connector lives in the VIEWER, not here.** A
|
|
42
|
+
* `together-with` edge must be individually selectable, retypeable and
|
|
43
|
+
* deletable, and an enclosure has no edge to click — so the connector is a hit
|
|
44
|
+
* target, and only the layer that computes the layout knows where its endpoints
|
|
45
|
+
* are. Adding it from out here would mean re-deriving positions layer 1 already
|
|
46
|
+
* has, which is the drifting second implementation the package split exists to
|
|
47
|
+
* avoid.
|
|
48
|
+
*
|
|
49
|
+
* **The four edge MARKS are drawn by the viewer, from a request built here.** A
|
|
50
|
+
* `writing…` chip sits on two nodes, a ✕ beside a terminal, a reason beside the
|
|
51
|
+
* line, and a conflict's second version on the line's perpendicular. None of
|
|
52
|
+
* those is the path's own position, and `overlay/render.ts` records four review
|
|
53
|
+
* rounds of what happens when this layer tries to guess one — each fix correct,
|
|
54
|
+
* each followed by another, because the missing thing was never a property but
|
|
55
|
+
* the geometry.
|
|
56
|
+
*
|
|
57
|
+
* What crosses is a vocabulary of POSITIONS — `companion`, never `conflict` —
|
|
58
|
+
* built by `overlay/request.ts` and consumed by the viewer's `marks.ts`. So the
|
|
59
|
+
* viewer gains no edit awareness: it learns where to put a second line, not that
|
|
60
|
+
* a write can conflict. Every state word, glyph and hue token stays on this side.
|
|
61
|
+
*
|
|
62
|
+
* Both are written down as declared crossings rather than discovered later.
|
|
63
|
+
* Treat them as the precedent for DECLARING a crossing, never as permission for
|
|
64
|
+
* more — and note that neither publishes layer 1's geometry outward, which is
|
|
65
|
+
* the move both of them rejected.
|
|
47
66
|
*
|
|
48
67
|
* ## The surface
|
|
49
68
|
*
|
|
@@ -112,7 +131,9 @@
|
|
|
112
131
|
* @see https://github.com/autnmy/issuegraph/blob/main/SPEC.md
|
|
113
132
|
*/
|
|
114
133
|
export { AUDIT_CLASSES, AUDIT_CLASS_SPECS, auditDocument } from "./audit/findings.js";
|
|
115
|
-
export { AUDIT_COUNT_ATTRIBUTE, AUDIT_FILTER_ATTRIBUTE, AUDIT_SEVERITY_ATTRIBUTE, auditFilterKeeps, auditOverlay, auditRowAttributes, renderAuditHeader, } from "./audit/surface.js";
|
|
134
|
+
export { AUDIT_COUNT_ATTRIBUTE, AUDIT_FILTER_ATTRIBUTE, AUDIT_PANEL_ATTRIBUTE, AUDIT_SEVERITY_ATTRIBUTE, auditFilterKeeps, auditOverlay, auditRowAttributes, renderAuditHeader, } from "./audit/surface.js";
|
|
135
|
+
export { AUDIT_KIND_ATTRIBUTE, renderAuditPanel } from "./audit/panel.js";
|
|
136
|
+
export { renderEncodingRefusedBlock } from "./audit/refused.js";
|
|
116
137
|
export { auditStylesheet } from "./audit/styles.js";
|
|
117
138
|
export { INITIAL_SCALE_STATE, scaleReducer, } from "./scale/commands.js";
|
|
118
139
|
export { scaleLadder, } from "./scale/ladder.js";
|
|
@@ -126,7 +147,7 @@ export {} from "./picker/words.js";
|
|
|
126
147
|
export { renderPicker, } from "./picker/render.js";
|
|
127
148
|
export { pickerStylesheet } from "./picker/styles.js";
|
|
128
149
|
export { IDLE_CREATE_DRAFT, createReducer, } from "./create/draft.js";
|
|
129
|
-
export { KIND_KEYS, keyIntent, } from "./create/keys.js";
|
|
150
|
+
export { KIND_KEYS, RELATE_KEY, keyIntent, } from "./create/keys.js";
|
|
130
151
|
export { pickerPlacement, } from "./create/placement.js";
|
|
131
152
|
export { CHANGE_FACETS, reevaluateView, summaryOf, } from "./reevaluate/view.js";
|
|
132
153
|
export {} from "./reevaluate/words.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAKL,kBAAkB,EAClB,UAAU;AACV,6EAA6E;AAC7E,4EAA4E;AAC5E,6EAA6E;AAC7E,yEAAyE;AACzE,8EAA8E;AAC9E,0EAA0E;AAC1E,6DAA6D;AAC7D,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,aAAa,GACd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAQL,YAAY,EACZ,gBAAgB,EAChB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/overlay/render.d.ts
CHANGED
|
@@ -45,9 +45,17 @@
|
|
|
45
45
|
*
|
|
46
46
|
* ## How an edge is recognised
|
|
47
47
|
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
48
|
+
* Edge paths publish `edgeIdentity(field, from, to)` on `data-ig-group`, and that
|
|
49
|
+
* is the key an edge is matched by. The accessible name — `${from}
|
|
50
|
+
* ${treatment.label} ${to}` — is the FALLBACK, kept for a viewer that has not
|
|
51
|
+
* shipped the identity yet; `overlayOn` below states the full reasoning.
|
|
52
|
+
*
|
|
53
|
+
* This paragraph used to say the opposite, that only the `together-with`
|
|
54
|
+
* connector carried an identity and the name was the only key. It was true when
|
|
55
|
+
* it was written and stopped being true when the paths gained one, while the
|
|
56
|
+
* correct version sat 140 lines below it in the same file. A reader consulting
|
|
57
|
+
* the design record before touching this seam would have concluded the key it
|
|
58
|
+
* rests on does not exist.
|
|
51
59
|
*
|
|
52
60
|
* The label is read from the viewer's OWN `treatmentFor`, never from a copy, so
|
|
53
61
|
* a renamed relationship moves both sides at once. What stays local is the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/overlay/render.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/overlay/render.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,KAAK,EAEV,KAAK,KAAK,EAIX,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAGL,KAAK,WAAW,EAGjB,MAAM,cAAc,CAAC;AAEtB,8EAA8E;AAC9E,eAAO,MAAM,aAAa,eAAe,CAAC;AA4B1C,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IAC1C,2EAA2E;IAC3E,QAAQ,CAAC,UAAU,EAAE,SAAS,WAAW,EAAE,CAAC;CAC7C;AA2TD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,OAAO,GAAE,cAAmB,GAC3B,YAAY,CAyCd;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,EAClC,UAAU,CAAC,EAAE,MAAM,GAClB,WAAW,CA+Db"}
|
package/dist/overlay/render.js
CHANGED
|
@@ -45,9 +45,17 @@
|
|
|
45
45
|
*
|
|
46
46
|
* ## How an edge is recognised
|
|
47
47
|
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
48
|
+
* Edge paths publish `edgeIdentity(field, from, to)` on `data-ig-group`, and that
|
|
49
|
+
* is the key an edge is matched by. The accessible name — `${from}
|
|
50
|
+
* ${treatment.label} ${to}` — is the FALLBACK, kept for a viewer that has not
|
|
51
|
+
* shipped the identity yet; `overlayOn` below states the full reasoning.
|
|
52
|
+
*
|
|
53
|
+
* This paragraph used to say the opposite, that only the `together-with`
|
|
54
|
+
* connector carried an identity and the name was the only key. It was true when
|
|
55
|
+
* it was written and stopped being true when the paths gained one, while the
|
|
56
|
+
* correct version sat 140 lines below it in the same file. A reader consulting
|
|
57
|
+
* the design record before touching this seam would have concluded the key it
|
|
58
|
+
* rests on does not exist.
|
|
51
59
|
*
|
|
52
60
|
* The label is read from the viewer's OWN `treatmentFor`, never from a copy, so
|
|
53
61
|
* a renamed relationship moves both sides at once. What stays local is the
|
|
@@ -465,9 +473,17 @@ export function renderOverlayMark(overlay, mark, reasonCode) {
|
|
|
465
473
|
'data-ig-code': reasonCode ?? null,
|
|
466
474
|
});
|
|
467
475
|
case 'second-version':
|
|
468
|
-
// Also a slot
|
|
469
|
-
//
|
|
470
|
-
//
|
|
476
|
+
// Also a slot, and this comment used to say the held version was drawn
|
|
477
|
+
// "by `attachEdgeOverlays` as the companion stroke". That contradicted the
|
|
478
|
+
// module note at the top of this file, which is the half that was true:
|
|
479
|
+
// the companion needs the path's PERPENDICULAR, which cannot be recovered
|
|
480
|
+
// from a `d` this layer does not interpret, so it is not drawn here and
|
|
481
|
+
// never was after the fourth round removed it.
|
|
482
|
+
//
|
|
483
|
+
// It is drawn by layer 1 now, from the `companion` placement `request.ts`
|
|
484
|
+
// asks for — the layer that computed the layout is the one that can put a
|
|
485
|
+
// line beside a line. What a host adds HERE is whatever labels or offers
|
|
486
|
+
// to act on it — view-diff, retry-on-latest, discard-mine. Never a merge.
|
|
471
487
|
return element('span', {
|
|
472
488
|
class: `${OVERLAY_CLASS} ig-overlay-held`,
|
|
473
489
|
'data-ig-overlay': 'conflict',
|