@mountaya/studio 0.1.0 → 0.2.0
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/CHANGELOG.md +30 -0
- package/dist/agent/index.cjs +2561 -2815
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +766 -786
- package/dist/agent/index.d.ts +766 -786
- package/dist/agent/index.js +2553 -2790
- package/dist/agent/index.js.map +1 -1
- package/dist/chunk-3Oi_Zrtm.js +9 -0
- package/dist/chunk-3Oi_Zrtm.js.map +1 -0
- package/dist/chunk-B18OPIu_.js +6 -0
- package/dist/chunk-B18OPIu_.js.map +1 -0
- package/dist/chunk-B5Uz3Qct.cjs +15 -0
- package/dist/chunk-B5Uz3Qct.cjs.map +1 -0
- package/dist/chunk-BBEJwkd3.d.cts +839 -0
- package/dist/chunk-BIEc_SkR.cjs +29 -0
- package/dist/chunk-BIEc_SkR.cjs.map +1 -0
- package/dist/chunk-BKMFOe-N.js +171 -0
- package/dist/chunk-BKMFOe-N.js.map +1 -0
- package/dist/chunk-BP4uy7E1.d.ts +11583 -0
- package/dist/chunk-BSHTsFiB.js +1403 -0
- package/dist/chunk-BSHTsFiB.js.map +1 -0
- package/dist/chunk-BTUUABGI.js +17 -0
- package/dist/chunk-BTUUABGI.js.map +1 -0
- package/dist/chunk-BaPiaz5X.cjs +115 -0
- package/dist/chunk-BaPiaz5X.cjs.map +1 -0
- package/dist/chunk-BeCVpkYr.cjs +542 -0
- package/dist/chunk-BeCVpkYr.cjs.map +1 -0
- package/dist/chunk-BgngsvK8.cjs +6202 -0
- package/dist/chunk-BgngsvK8.cjs.map +1 -0
- package/dist/chunk-BhInd7CJ.d.cts +253 -0
- package/dist/chunk-Bn6ZbxkS.cjs +27 -0
- package/dist/chunk-By9ZnkVI.js +60 -0
- package/dist/chunk-By9ZnkVI.js.map +1 -0
- package/dist/chunk-BzqPhxsz.cjs +367 -0
- package/dist/chunk-BzqPhxsz.cjs.map +1 -0
- package/dist/chunk-C2mMX81q.d.ts +443 -0
- package/dist/chunk-C2rr9Q0V.cjs +1402 -0
- package/dist/chunk-C2rr9Q0V.cjs.map +1 -0
- package/dist/{directorThreads-CqmvsV8b.d.cts → chunk-CDJCbwIQ.d.cts} +20 -22
- package/dist/chunk-CLGvBOVH.d.cts +1654 -0
- package/dist/chunk-COdw1dc6.d.ts +525 -0
- package/dist/chunk-CQCJnT2i.d.ts +511 -0
- package/dist/chunk-CSyHY67q.cjs +353 -0
- package/dist/chunk-CSyHY67q.cjs.map +1 -0
- package/dist/chunk-CiK1Iqrv.js +950 -0
- package/dist/chunk-CiK1Iqrv.js.map +1 -0
- package/dist/chunk-CmJBgSwZ.cjs +24 -0
- package/dist/chunk-CmJBgSwZ.cjs.map +1 -0
- package/dist/chunk-CnrsRK2u.cjs +83 -0
- package/dist/chunk-CnrsRK2u.cjs.map +1 -0
- package/dist/chunk-Co782_9r.js +326 -0
- package/dist/chunk-Co782_9r.js.map +1 -0
- package/dist/chunk-Csr3KDpZ.cjs +32 -0
- package/dist/chunk-Csr3KDpZ.cjs.map +1 -0
- package/dist/chunk-CwkmccXv.js +89 -0
- package/dist/chunk-CwkmccXv.js.map +1 -0
- package/dist/chunk-D0Q4iL9B.cjs +255 -0
- package/dist/chunk-D0Q4iL9B.cjs.map +1 -0
- package/dist/chunk-DFwiSzUS.cjs +72 -0
- package/dist/chunk-DFwiSzUS.cjs.map +1 -0
- package/dist/chunk-DIFayl2P.d.cts +443 -0
- package/dist/chunk-DIGF58ux.d.cts +525 -0
- package/dist/chunk-DKuuuld5.js +101 -0
- package/dist/chunk-DKuuuld5.js.map +1 -0
- package/dist/chunk-DMePkFEo.js +5054 -0
- package/dist/chunk-DMePkFEo.js.map +1 -0
- package/dist/chunk-DO5SIBgu.js +305 -0
- package/dist/chunk-DO5SIBgu.js.map +1 -0
- package/dist/chunk-DOQ_7eE5.d.ts +6662 -0
- package/dist/{tabs-B2nRO4p_.d.ts → chunk-DThaaNeb.d.cts} +2 -2
- package/dist/{tabs-B2nRO4p_.d.cts → chunk-DThaaNeb.d.ts} +2 -2
- package/dist/{directorThreads-CqmvsV8b.d.ts → chunk-DUQzjUJy.d.ts} +20 -22
- package/dist/chunk-DX37IPhV.cjs +1903 -0
- package/dist/chunk-DX37IPhV.cjs.map +1 -0
- package/dist/chunk-Damps5Tk.cjs +155 -0
- package/dist/chunk-Damps5Tk.cjs.map +1 -0
- package/dist/chunk-DbK5PhpJ.d.ts +1654 -0
- package/dist/chunk-De0vAASv.d.ts +253 -0
- package/dist/chunk-DhSZ7YZt.d.cts +6662 -0
- package/dist/chunk-DjEvqvPA.cjs +43 -0
- package/dist/chunk-DjEvqvPA.cjs.map +1 -0
- package/dist/{saveFile-j-1kkApx.d.cts → chunk-DkwDzwvu.d.cts} +7 -9
- package/dist/{saveFile-j-1kkApx.d.ts → chunk-DkwDzwvu.d.ts} +7 -9
- package/dist/chunk-Dmszv9If.js +71 -0
- package/dist/chunk-Dmszv9If.js.map +1 -0
- package/dist/chunk-Dp_ftNWY.d.cts +511 -0
- package/dist/chunk-DsHQySz0.js +31 -0
- package/dist/chunk-DsHQySz0.js.map +1 -0
- package/dist/chunk-DwoUyHHh.js +281 -0
- package/dist/chunk-DwoUyHHh.js.map +1 -0
- package/dist/chunk-IaIDQflj.d.cts +2315 -0
- package/dist/chunk-IaIDQflj.d.ts +2315 -0
- package/dist/chunk-cVXLsZfL.d.ts +839 -0
- package/dist/chunk-mIaCX9EJ.d.cts +11583 -0
- package/dist/chunk-nJQxbOwQ.cjs +8962 -0
- package/dist/chunk-nJQxbOwQ.cjs.map +1 -0
- package/dist/chunk-o9jaxhCO.js +8852 -0
- package/dist/chunk-o9jaxhCO.js.map +1 -0
- package/dist/chunk-p-Tt_Lwz.js +14 -0
- package/dist/chunk-p-Tt_Lwz.js.map +1 -0
- package/dist/engines/index.cjs +2046 -3401
- package/dist/engines/index.cjs.map +1 -1
- package/dist/engines/index.d.cts +1510 -1550
- package/dist/engines/index.d.ts +1510 -1550
- package/dist/engines/index.js +2039 -3380
- package/dist/engines/index.js.map +1 -1
- package/dist/handlers/index.cjs +47 -93
- package/dist/handlers/index.cjs.map +1 -1
- package/dist/handlers/index.d.cts +61 -103
- package/dist/handlers/index.d.ts +61 -103
- package/dist/handlers/index.js +27 -36
- package/dist/handlers/index.js.map +1 -1
- package/dist/index.cjs +3347 -4398
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -7297
- package/dist/index.d.ts +8 -7297
- package/dist/index.js +2997 -3187
- package/dist/index.js.map +1 -1
- package/dist/plugins/index.cjs +482 -949
- package/dist/plugins/index.cjs.map +1 -1
- package/dist/plugins/index.d.cts +44 -61
- package/dist/plugins/index.d.ts +44 -61
- package/dist/plugins/index.js +471 -915
- package/dist/plugins/index.js.map +1 -1
- package/dist/seams/index.cjs +77 -140
- package/dist/seams/index.cjs.map +1 -1
- package/dist/seams/index.d.cts +125 -158
- package/dist/seams/index.d.ts +125 -158
- package/dist/seams/index.js +41 -71
- package/dist/seams/index.js.map +1 -1
- package/dist/strings/fr/index.cjs +2130 -2116
- package/dist/strings/fr/index.cjs.map +1 -1
- package/dist/strings/fr/index.d.cts +3 -5
- package/dist/strings/fr/index.d.ts +3 -5
- package/dist/strings/fr/index.js +2125 -2114
- package/dist/strings/fr/index.js.map +1 -1
- package/dist/strings/index.cjs +2331 -2625
- package/dist/strings/index.cjs.map +1 -1
- package/dist/strings/index.d.cts +3 -731
- package/dist/strings/index.d.ts +3 -731
- package/dist/strings/index.js +2324 -2615
- package/dist/strings/index.js.map +1 -1
- package/dist/testing/index.cjs +214 -276
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +61 -121
- package/dist/testing/index.d.ts +61 -121
- package/dist/testing/index.js +208 -273
- package/dist/testing/index.js.map +1 -1
- package/dist/time/index.cjs +23 -23
- package/dist/time/index.cjs.map +1 -1
- package/dist/time/index.d.cts +5 -7
- package/dist/time/index.d.ts +5 -7
- package/dist/time/index.js +18 -21
- package/dist/time/index.js.map +1 -1
- package/package.json +14 -15
- package/src/agent/rules/stateDelta.ts +1 -0
- package/src/agent/stores/agentThreads.ts +1 -4
- package/src/bus/rules/bus.ts +1 -2
- package/src/bus/rules/defineRegistry.ts +3 -5
- package/src/bus/rules/types.ts +6 -7
- package/src/chrome/stores/uiStore.ts +4 -2
- package/src/embed/rules/fieldDependencies.ts +2 -0
- package/src/embed/rules/safetyRules.ts +2 -0
- package/src/embed/rules/tableCode.ts +4 -3
- package/src/index.ts +6 -27
- package/src/itinerary/rules/import.ts +6 -8
- package/src/plugins/contracts/plugin.ts +4 -2
- package/src/seams/rules/formatters.ts +5 -3
- package/src/testing/index.ts +1 -5
- package/src/viewer/rules/platformViewer.ts +1 -0
- package/dist/bus-BwiNiXdH.d.ts +0 -514
- package/dist/bus-DzmhPwdK.d.cts +0 -514
- package/dist/chainModel-B23pEP_1.d.cts +0 -127
- package/dist/chainModel-B23pEP_1.d.ts +0 -127
- package/dist/chunk-2HFY7ETU.js +0 -5721
- package/dist/chunk-2HFY7ETU.js.map +0 -1
- package/dist/chunk-355TOXSB.js +0 -72
- package/dist/chunk-355TOXSB.js.map +0 -1
- package/dist/chunk-4ZCUZVSV.js +0 -10275
- package/dist/chunk-4ZCUZVSV.js.map +0 -1
- package/dist/chunk-6HEKY3NF.js +0 -95
- package/dist/chunk-6HEKY3NF.js.map +0 -1
- package/dist/chunk-7GFLGGBX.cjs +0 -8
- package/dist/chunk-7GFLGGBX.cjs.map +0 -1
- package/dist/chunk-7NBRCENN.cjs +0 -19
- package/dist/chunk-7NBRCENN.cjs.map +0 -1
- package/dist/chunk-AF5GCXE3.js +0 -8
- package/dist/chunk-AF5GCXE3.js.map +0 -1
- package/dist/chunk-CJDIFRGZ.cjs +0 -2005
- package/dist/chunk-CJDIFRGZ.cjs.map +0 -1
- package/dist/chunk-CNPZY7N3.js +0 -349
- package/dist/chunk-CNPZY7N3.js.map +0 -1
- package/dist/chunk-DZJHTWSF.cjs +0 -45
- package/dist/chunk-DZJHTWSF.cjs.map +0 -1
- package/dist/chunk-EABIHHWA.js +0 -42
- package/dist/chunk-EABIHHWA.js.map +0 -1
- package/dist/chunk-EKZWV6RS.cjs +0 -415
- package/dist/chunk-EKZWV6RS.cjs.map +0 -1
- package/dist/chunk-EOKRXXAC.cjs +0 -24
- package/dist/chunk-EOKRXXAC.cjs.map +0 -1
- package/dist/chunk-F73W2ZTJ.js +0 -1126
- package/dist/chunk-F73W2ZTJ.js.map +0 -1
- package/dist/chunk-H4DVOZ5O.js +0 -1897
- package/dist/chunk-H4DVOZ5O.js.map +0 -1
- package/dist/chunk-HI52PBFT.cjs +0 -10314
- package/dist/chunk-HI52PBFT.cjs.map +0 -1
- package/dist/chunk-IDBXFBLG.cjs +0 -1225
- package/dist/chunk-IDBXFBLG.cjs.map +0 -1
- package/dist/chunk-LBWTJZUJ.js +0 -297
- package/dist/chunk-LBWTJZUJ.js.map +0 -1
- package/dist/chunk-NCLA6DKD.cjs +0 -310
- package/dist/chunk-NCLA6DKD.cjs.map +0 -1
- package/dist/chunk-O4MC5DPD.js +0 -19
- package/dist/chunk-O4MC5DPD.js.map +0 -1
- package/dist/chunk-OP37FKW6.cjs +0 -98
- package/dist/chunk-OP37FKW6.cjs.map +0 -1
- package/dist/chunk-OQSYFH3Z.cjs +0 -5945
- package/dist/chunk-OQSYFH3Z.cjs.map +0 -1
- package/dist/chunk-PACIO4NS.cjs +0 -26
- package/dist/chunk-PACIO4NS.cjs.map +0 -1
- package/dist/chunk-PSZ2R3TC.cjs +0 -75
- package/dist/chunk-PSZ2R3TC.cjs.map +0 -1
- package/dist/chunk-QFO5CZG2.cjs +0 -136
- package/dist/chunk-QFO5CZG2.cjs.map +0 -1
- package/dist/chunk-QL63MUEW.cjs +0 -140
- package/dist/chunk-QL63MUEW.cjs.map +0 -1
- package/dist/chunk-RFUPPVZO.js +0 -17
- package/dist/chunk-RFUPPVZO.js.map +0 -1
- package/dist/chunk-RPG2LWMP.js +0 -23
- package/dist/chunk-RPG2LWMP.js.map +0 -1
- package/dist/chunk-TIBXK6B7.cjs +0 -12
- package/dist/chunk-TIBXK6B7.cjs.map +0 -1
- package/dist/chunk-UU65VNEV.js +0 -381
- package/dist/chunk-UU65VNEV.js.map +0 -1
- package/dist/chunk-VGX6TR2I.js +0 -209
- package/dist/chunk-VGX6TR2I.js.map +0 -1
- package/dist/chunk-WUTDDBVP.js +0 -130
- package/dist/chunk-WUTDDBVP.js.map +0 -1
- package/dist/chunk-WVQQLKCI.cjs +0 -224
- package/dist/chunk-WVQQLKCI.cjs.map +0 -1
- package/dist/chunk-WZYXG3SE.js +0 -111
- package/dist/chunk-WZYXG3SE.js.map +0 -1
- package/dist/chunk-XDI2X3KE.js +0 -6
- package/dist/chunk-XDI2X3KE.js.map +0 -1
- package/dist/chunk-XKHLRIC7.cjs +0 -381
- package/dist/chunk-XKHLRIC7.cjs.map +0 -1
- package/dist/context-DNtd2WUv.d.cts +0 -11666
- package/dist/context-DgB72Bur.d.ts +0 -11666
- package/dist/en-Bu4Ti9Ev.d.cts +0 -2315
- package/dist/en-Bu4Ti9Ev.d.ts +0 -2315
- package/dist/shareLink-B6hlt942.d.ts +0 -144
- package/dist/shareLink-C7rIMb7x.d.ts +0 -527
- package/dist/shareLink-CnTxxXjp.d.cts +0 -144
- package/dist/shareLink-DyZVYH2V.d.cts +0 -527
- package/dist/studioPlugin-C3C7VjMy.d.ts +0 -847
- package/dist/studioPlugin-Cf3OBNUv.d.cts +0 -847
- package/dist/types-BzJRV6UI.d.cts +0 -845
- package/dist/types-BzJRV6UI.d.ts +0 -845
- package/dist/zoneForm-CdYNtnnA.d.cts +0 -320
- package/dist/zoneForm-mG85yt5e.d.ts +0 -320
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { ItinerarySegmentGroup, ItinerarySegment } from '@mountaya/elements/data';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The chain a segment list renders, folded once into the models its rows and gutters read.
|
|
5
|
-
*
|
|
6
|
-
* Every one of these is derived from the COMMITTED chain rather than from whatever a list happens
|
|
7
|
-
* to be showing, and that is the rule the whole module keeps: a list also renders the segment
|
|
8
|
-
* currently being drawn and the one being inserted into a gap, neither of which the API knows
|
|
9
|
-
* about. Answering "which row is the tail" positionally over the rendered list is what lets a real
|
|
10
|
-
* tail offer a merge it has no successor for and lose its own Delete.
|
|
11
|
-
*
|
|
12
|
-
* They are folds rather than per-row lookups for a second reason, and it is a performance one that
|
|
13
|
-
* shows up as correctness: a list re-renders on every peer-lock frame and on every throttled tick
|
|
14
|
-
* of an open edit, and a per-row derivation would rescan the chain once per row. Each of these
|
|
15
|
-
* walks it once and hands back objects a memoised row can compare by reference.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* SegmentMergeRefusal names why two adjacent segments cannot be fused: they are drawn by different
|
|
19
|
-
* engines, they sit on either side of a group boundary, the fused itinerary would ask the router
|
|
20
|
-
* for more waypoints than it accepts, or a collaborator holds one of them.
|
|
21
|
-
*
|
|
22
|
-
* Each is a condition the merge tool refuses on, which is the point: surfacing one turns a round
|
|
23
|
-
* trip into an explanation the user reads before reaching for the verb.
|
|
24
|
-
*
|
|
25
|
-
* The order below is the order they are evaluated in: the structural reasons first, because none of
|
|
26
|
-
* them resolves on its own and each names a fix (change the engine, leave the group, simplify one
|
|
27
|
-
* of the two), then the lock, which clears when the peer moves on.
|
|
28
|
-
*
|
|
29
|
-
* One refusal of the API has no reason here: a freehand pair whose joined line holds more drawn
|
|
30
|
-
* vertices than a segment stores (`segments.merge_positions_max`). The API counts them after its
|
|
31
|
-
* own cleaning pass over the joined line, which drops the vertices that sit within a few meters of
|
|
32
|
-
* the line through their neighbours, and the studio holds no copy of that pass. A count taken
|
|
33
|
-
* before it would grey out merges the API makes. So the merge stays offered, and a refused one
|
|
34
|
-
* answers with the API's own sentence, which the verb's failure carries as its `detail`.
|
|
35
|
-
*/
|
|
36
|
-
type SegmentMergeRefusal = "engine" | "group" | "waypointsMax" | "locked";
|
|
37
|
-
/**
|
|
38
|
-
* SegmentChainMerge is one fusion the chain offers: the segment folded into its successor, the
|
|
39
|
-
* successor it folds into, and why the verb is inert when it is. A null reason is a live merge.
|
|
40
|
-
*
|
|
41
|
-
* `intoSegmentId` rides alongside the id the verb acts on because a surface previews its own
|
|
42
|
-
* operands (reaching for the control lights BOTH segments), so the pair is resolved with the model
|
|
43
|
-
* rather than read back out of the list at pointer time.
|
|
44
|
-
*/
|
|
45
|
-
interface SegmentChainMerge {
|
|
46
|
-
readonly disabledReason: SegmentMergeRefusal | null;
|
|
47
|
-
readonly intoSegmentId: string;
|
|
48
|
-
readonly segmentId: string;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* SegmentChainMerges is the same merge objects indexed twice: by the segment that FOLDS DOWN and by
|
|
52
|
-
* the one that ABSORBS it.
|
|
53
|
-
*
|
|
54
|
-
* A row's two menu items ask opposite questions about one pair ("can I fold into the row below" and
|
|
55
|
-
* "can the row above fold into me"), and a gutter asks the first of them about the row above it.
|
|
56
|
-
* Deriving both indexes in the single walk that already builds the merges is what makes those three
|
|
57
|
-
* readings unable to disagree.
|
|
58
|
-
*
|
|
59
|
-
* A MISSING entry is itself an answer, and the two ends are asymmetric: no `byFolded` entry means
|
|
60
|
-
* there is nothing below to fold into (the tail), and no `byAbsorber` entry means there is nothing
|
|
61
|
-
* above to be folded into it (the head).
|
|
62
|
-
*/
|
|
63
|
-
interface SegmentChainMerges {
|
|
64
|
-
readonly byAbsorber: ReadonlyMap<string, SegmentChainMerge>;
|
|
65
|
-
readonly byFolded: ReadonlyMap<string, SegmentChainMerge>;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* buildSegmentChainMerges resolves every adjacent pair of the committed chain into the merge it
|
|
69
|
-
* offers, or into the reason it does not.
|
|
70
|
-
*
|
|
71
|
-
* `lockedSegmentIds` is the set a collaborator currently holds. It arrives resolved rather than
|
|
72
|
-
* as a lock map because who holds what is a session concern and the shape of that session is the
|
|
73
|
-
* host's; what this needs to know is only whether either side of a pair is spoken for.
|
|
74
|
-
*/
|
|
75
|
-
declare const buildSegmentChainMerges: (segments: readonly ItinerarySegment[], lockedSegmentIds?: ReadonlySet<string>) => SegmentChainMerges;
|
|
76
|
-
/**
|
|
77
|
-
* SegmentChainEnds is which rows the API knows about, and which two of them are the real ends of
|
|
78
|
-
* the chain: the facts every chain verb is gated on.
|
|
79
|
-
*/
|
|
80
|
-
interface SegmentChainEnds {
|
|
81
|
-
readonly committedIds: ReadonlySet<string>;
|
|
82
|
-
readonly firstCommittedId: string | null;
|
|
83
|
-
readonly lastCommittedId: string | null;
|
|
84
|
-
}
|
|
85
|
-
/** segmentChainEnds folds the committed chain into {@link SegmentChainEnds}. */
|
|
86
|
-
declare const segmentChainEnds: (segments: readonly ItinerarySegment[]) => SegmentChainEnds;
|
|
87
|
-
/**
|
|
88
|
-
* SegmentGroupRun is one row's place in the chain's grouping.
|
|
89
|
-
*
|
|
90
|
-
* `group` is the group it belongs to, or null. `isFirst` / `isLast` are the ends of the RUN,
|
|
91
|
-
* which is what lets only those two leave without splitting it. `memberCount` is the run's size,
|
|
92
|
-
* so a surface can say that leaving a two-member group dissolves it rather than offering the
|
|
93
|
-
* same wording for an act that also destroys the group's name and colour. `hasFreeNeighbour`
|
|
94
|
-
* answers the other direction: grouping needs an ungrouped segment beside this one, and with
|
|
95
|
-
* none the verb is shown refused rather than hidden, so the absence explains itself.
|
|
96
|
-
*/
|
|
97
|
-
interface SegmentGroupRun {
|
|
98
|
-
readonly group: ItinerarySegmentGroup | null;
|
|
99
|
-
readonly hasFreeNeighbour: boolean;
|
|
100
|
-
readonly isFirst: boolean;
|
|
101
|
-
readonly isLast: boolean;
|
|
102
|
-
readonly memberCount: number;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* buildSegmentGroupRuns folds the chain's grouping into a per-segment model, keyed by segment id.
|
|
106
|
-
*
|
|
107
|
-
* The membership counts come from ONE pass over the chain rather than from asking it per row: doing
|
|
108
|
-
* that inside the per-row walk rescans it once per member, which is quadratic on exactly the
|
|
109
|
-
* itineraries grouping exists for: a long chain where most rows belong to a run.
|
|
110
|
-
*
|
|
111
|
-
* A segment whose `group_id` names no group in `groups` reads as ungrouped, which is the honest
|
|
112
|
-
* answer while a group delete and the chain that referenced it are landing a frame apart. It reads
|
|
113
|
-
* so to its neighbours too: it is a free neighbour to the rows either side of it.
|
|
114
|
-
*/
|
|
115
|
-
declare const buildSegmentGroupRuns: (segments: readonly ItinerarySegment[], groups: readonly ItinerarySegmentGroup[]) => ReadonlyMap<string, SegmentGroupRun>;
|
|
116
|
-
/**
|
|
117
|
-
* segmentGroupDissolvesOnLeave says whether one member leaving takes the whole group with it.
|
|
118
|
-
*
|
|
119
|
-
* Leaving is a range change, not a delete, unless it would leave a single member behind, which is
|
|
120
|
-
* not a group at all. Both are the same user intent expressed against the floor the rule imposes,
|
|
121
|
-
* and stating the test once here is what keeps the menu's wording and the verb's behaviour from
|
|
122
|
-
* answering it differently.
|
|
123
|
-
*/
|
|
124
|
-
declare const segmentGroupDissolvesOnLeave: (memberCount: number) => boolean;
|
|
125
|
-
|
|
126
|
-
export { buildSegmentChainMerges as e, buildSegmentGroupRuns as f, segmentGroupDissolvesOnLeave as g, segmentChainEnds as s };
|
|
127
|
-
export type { SegmentChainEnds as S, SegmentChainMerge as a, SegmentChainMerges as b, SegmentGroupRun as c, SegmentMergeRefusal as d };
|