ropegeo-common 1.25.0 → 1.25.2

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 (28) hide show
  1. package/dist/models/betaSections/betaSection.d.ts +1 -1
  2. package/dist/models/betaSections/betaSection.d.ts.map +1 -1
  3. package/dist/models/betaSections/betaSectionExcerpt.d.ts +4 -4
  4. package/dist/models/betaSections/betaSectionExcerpt.d.ts.map +1 -1
  5. package/dist/models/betaSections/betaSectionExcerpt.js +12 -4
  6. package/dist/models/betaSections/boldRelevantPhrase.d.ts +3 -2
  7. package/dist/models/betaSections/boldRelevantPhrase.d.ts.map +1 -1
  8. package/dist/models/betaSections/boldRelevantPhrase.js +3 -2
  9. package/dist/models/index.d.ts +1 -0
  10. package/dist/models/index.d.ts.map +1 -1
  11. package/dist/models/index.js +7 -2
  12. package/dist/models/measurementKey.d.ts +12 -0
  13. package/dist/models/measurementKey.d.ts.map +1 -0
  14. package/dist/models/measurementKey.js +34 -0
  15. package/dist/models/minimap/legend/concrete/imageContext.d.ts +6 -3
  16. package/dist/models/minimap/legend/concrete/imageContext.d.ts.map +1 -1
  17. package/dist/models/minimap/legend/concrete/imageContext.js +12 -4
  18. package/dist/models/minimap/legend/concrete/measurementContext.d.ts +8 -6
  19. package/dist/models/minimap/legend/concrete/measurementContext.d.ts.map +1 -1
  20. package/dist/models/minimap/legend/concrete/measurementContext.js +12 -30
  21. package/dist/models/pageViews/offlinePageView.d.ts +2 -0
  22. package/dist/models/pageViews/offlinePageView.d.ts.map +1 -1
  23. package/dist/models/pageViews/onlinePageView.d.ts +2 -0
  24. package/dist/models/pageViews/onlinePageView.d.ts.map +1 -1
  25. package/dist/models/pageViews/ropewikiPageView.d.ts +8 -0
  26. package/dist/models/pageViews/ropewikiPageView.d.ts.map +1 -1
  27. package/dist/models/pageViews/ropewikiPageView.js +36 -0
  28. package/package.json +1 -1
@@ -28,7 +28,7 @@ export declare abstract class BetaSection {
28
28
  * Builds a {@link BetaSectionExcerpt} for a verbatim excerpt from this section's text.
29
29
  * When the excerpt cannot be located, `start` and `end` are left undefined.
30
30
  */
31
- toExcerpt(excerptText: string, relevanceStrength: RelevanceStrength, relevantPhrase: string): BetaSectionExcerpt;
31
+ toExcerpt(excerptText: string, relevanceStrength: RelevanceStrength, relevantPhrase?: string): BetaSectionExcerpt;
32
32
  /**
33
33
  * Renders an excerpt with nearby section context when its offsets still
34
34
  * match this section, otherwise falls back to the excerpt alone.
@@ -1 +1 @@
1
- {"version":3,"file":"betaSection.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/betaSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAWtD;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,wBAAgB,yBAAyB,CACrC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,WAAW,GACtC,IAAI,CAEN;AAED,8BAAsB,WAAW;IAC7B,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,IAAI,CAAC;IACzB,mEAAmE;IACnE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAElB,SAAS,aACL,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,k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B1E,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAS9E,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAS9E,SAAS,CAAC,MAAM,CAAC,uBAAuB,CACpC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IAeP,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAClC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,SAAS,GAC7B,IAAI;IAcP,OAAO,CAAC,MAAM,CAAC,4BAA4B;IAgB3C,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAC7B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,EACX,iBAAiB,EAAE,SAAS,GAC7B,gBAAgB,EAAE;IAYrB,SAAS,CAAC,MAAM,CAAC,oBAAoB,CACjC,MAAM,EAAE,gBAAgB,EAAE,EAC1B,SAAS,EAAE,OAAO,GACnB,IAAI;CAeV"}
@@ -6,11 +6,11 @@ export declare class BetaSectionExcerpt {
6
6
  readonly relevanceStrength: RelevanceStrength;
7
7
  /**
8
8
  * Verbatim substring of the text block’s title and/or body that connects
9
- * this excerpt to the map feature. Required even for title-only relevance
10
- * (when `text` is omitted).
9
+ * this excerpt to the map feature. When omitted, excerpt HTML is not
10
+ * phrase-highlighted.
11
11
  */
12
- readonly relevantPhrase: string;
13
- constructor(text: string | undefined, start: number | undefined, end: number | undefined, relevanceStrength: RelevanceStrength, relevantPhrase: string);
12
+ readonly relevantPhrase?: string;
13
+ constructor(text: string | undefined, start: number | undefined, end: number | undefined, relevanceStrength: RelevanceStrength, relevantPhrase?: string);
14
14
  toPlain(): Record<string, unknown>;
15
15
  /** Returns displayable excerpt HTML when the owning beta section is unavailable. */
16
16
  toHtml(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"betaSectionExcerpt.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/betaSectionExcerpt.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,iBAAiB,EACzB,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,kBAAkB;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;gBAG5B,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,MAAM;IAc1B,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAiBlC,oFAAoF;IACpF,MAAM,IAAI,MAAM;IAOhB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,kBAAkB;IA6CtD,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAOnC,OAAO,CAAC,MAAM,CAAC,wBAAwB;CAK1C"}
1
+ {"version":3,"file":"betaSectionExcerpt.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/betaSectionExcerpt.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,iBAAiB,EACzB,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,kBAAkB;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;gBAG7B,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,CAAC,EAAE,MAAM;IAgB3B,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAmBlC,oFAAoF;IACpF,MAAM,IAAI,MAAM;IAKhB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,kBAAkB;IAiDtD,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAOnC,OAAO,CAAC,MAAM,CAAC,wBAAwB;CAK1C"}
@@ -7,7 +7,9 @@ const relevanceStrength_1 = require("../relevanceStrength");
7
7
  class BetaSectionExcerpt {
8
8
  constructor(text, start, end, relevanceStrength, relevantPhrase) {
9
9
  (0, relevanceStrength_1.assertRelevanceStrength)(relevanceStrength, 'BetaSectionExcerpt.relevanceStrength');
10
- BetaSectionExcerpt.assertNonEmptyString(relevantPhrase, 'BetaSectionExcerpt.relevantPhrase');
10
+ if (relevantPhrase !== undefined) {
11
+ BetaSectionExcerpt.assertNonEmptyString(relevantPhrase, 'BetaSectionExcerpt.relevantPhrase');
12
+ }
11
13
  this.text = text;
12
14
  this.start = start;
13
15
  this.end = end;
@@ -17,7 +19,6 @@ class BetaSectionExcerpt {
17
19
  toPlain() {
18
20
  const out = {
19
21
  relevanceStrength: this.relevanceStrength,
20
- relevantPhrase: this.relevantPhrase,
21
22
  };
22
23
  if (this.text !== undefined) {
23
24
  out.text = this.text;
@@ -28,11 +29,15 @@ class BetaSectionExcerpt {
28
29
  if (this.end !== undefined) {
29
30
  out.end = this.end;
30
31
  }
32
+ if (this.relevantPhrase !== undefined) {
33
+ out.relevantPhrase = this.relevantPhrase;
34
+ }
31
35
  return out;
32
36
  }
33
37
  /** Returns displayable excerpt HTML when the owning beta section is unavailable. */
34
38
  toHtml() {
35
- return (0, boldRelevantPhrase_1.boldRelevantPhraseInHtml)((0, normalizeExcerptHtml_1.normalizeExcerptListHtml)(this.text ?? ''), this.relevantPhrase);
39
+ const normalized = (0, normalizeExcerptHtml_1.normalizeExcerptListHtml)(this.text ?? '');
40
+ return (0, boldRelevantPhrase_1.boldRelevantPhraseInHtml)(normalized, this.relevantPhrase);
36
41
  }
37
42
  static fromResult(result) {
38
43
  if (result == null || typeof result !== 'object' || Array.isArray(result)) {
@@ -40,7 +45,10 @@ class BetaSectionExcerpt {
40
45
  }
41
46
  const r = result;
42
47
  const relevanceStrength = (0, relevanceStrength_1.assertRelevanceStrength)(r.relevanceStrength, 'BetaSectionExcerpt.relevanceStrength');
43
- const relevantPhrase = BetaSectionExcerpt.assertNonEmptyString(r.relevantPhrase, 'BetaSectionExcerpt.relevantPhrase');
48
+ let relevantPhrase;
49
+ if (r.relevantPhrase !== undefined && r.relevantPhrase !== null) {
50
+ relevantPhrase = BetaSectionExcerpt.assertNonEmptyString(r.relevantPhrase, 'BetaSectionExcerpt.relevantPhrase');
51
+ }
44
52
  let text;
45
53
  if (r.text !== undefined) {
46
54
  if (typeof r.text !== 'string') {
@@ -2,7 +2,8 @@
2
2
  * Wraps the first contiguous text-run occurrence of `phrase` in `<b>…</b>`
3
3
  * without splitting HTML tags. If the phrase already sits fully inside a
4
4
  * `<b>`/`<strong>` element, or spans multiple text runs (tags in between),
5
- * returns `html` unchanged.
5
+ * returns `html` unchanged. When `phrase` is undefined/null/empty, returns
6
+ * `html` unchanged (no highlighting).
6
7
  */
7
- export declare function boldRelevantPhraseInHtml(html: string, phrase: string): string;
8
+ export declare function boldRelevantPhraseInHtml(html: string, phrase: string | undefined | null): string;
8
9
  //# sourceMappingURL=boldRelevantPhrase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"boldRelevantPhrase.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/boldRelevantPhrase.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAuB7E"}
1
+ {"version":3,"file":"boldRelevantPhrase.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/boldRelevantPhrase.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACpC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAClC,MAAM,CAuBR"}
@@ -5,10 +5,11 @@ exports.boldRelevantPhraseInHtml = boldRelevantPhraseInHtml;
5
5
  * Wraps the first contiguous text-run occurrence of `phrase` in `<b>…</b>`
6
6
  * without splitting HTML tags. If the phrase already sits fully inside a
7
7
  * `<b>`/`<strong>` element, or spans multiple text runs (tags in between),
8
- * returns `html` unchanged.
8
+ * returns `html` unchanged. When `phrase` is undefined/null/empty, returns
9
+ * `html` unchanged (no highlighting).
9
10
  */
10
11
  function boldRelevantPhraseInHtml(html, phrase) {
11
- if (html.length === 0 || phrase.length === 0)
12
+ if (html.length === 0 || phrase == null || phrase.length === 0)
12
13
  return html;
13
14
  const tokens = tokenizeHtml(html);
14
15
  for (let i = 0; i < tokens.length; i++) {
@@ -59,6 +59,7 @@ export { BetaSection, type ExcerptHtml } from './betaSections/betaSection';
59
59
  export { BetaSectionExcerpt } from './betaSections/betaSectionExcerpt';
60
60
  export { boldRelevantPhraseInHtml } from './betaSections/boldRelevantPhrase';
61
61
  export { RELEVANCE_STRENGTHS, assertRelevanceStrength, isRelevanceStrength, type RelevanceStrength, } from './relevanceStrength';
62
+ export { MEASUREMENT_KEYS, assertMeasurementKey, isMeasurementKey, type MeasurementKey, type MeasurementsLookup, } from './measurementKey';
62
63
  export { OnlineBetaSection } from './betaSections/onlineBetaSection';
63
64
  export { OfflineBetaSection } from './betaSections/offlineBetaSection';
64
65
  export { Bounds } from './minimap/bounds';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAC;AAChD,OAAO,8CAA8C,CAAC;AACtD,OAAO,kDAAkD,CAAC;AAC1D,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,qCAAqC,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACH,sBAAsB,EACtB,gBAAgB,EAChB,wBAAwB,EACxB,iCAAiC,GACpC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,GACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,4CAA4C;AAC5C,OAAO,EAAE,qBAAqB,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC1F,wCAAwC;AACxC,OAAO,EAAE,iBAAiB,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClF,uCAAuC;AACvC,OAAO,EAAE,gBAAgB,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAChF,uCAAuC;AACvC,OAAO,EAAE,gBAAgB,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAChF,6CAA6C;AAC7C,OAAO,EAAE,sBAAsB,IAAI,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACzF,uCAAuC;AACvC,OAAO,EAAE,gBAAgB,IAAI,U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ACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,YAAY,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EACH,SAAS,EACT,uBAAuB,EACvB,qCAAqC,EACrC,KAAK,oBAAoB,EACzB,KAAK,iCAAiC,GACzC,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Preview = exports.RopewikiVehicleType = exports.PermitStatus = exports.SavedFilters = exports.SavedPagesFilter = exports.SearchFilter = exports.RouteFilter = exports.RiskMinMax = exports.TimeMinMax = exports.WaterMinMax = exports.TechnicalMinMax = exports.AcaDifficultyFilterOptions = exports.registerDifficultyFilterOptionsParser = exports.DifficultyFilterOptions = exports.Q_ACA_RISK = exports.Q_ACA_TIME = exports.Q_ACA_WATER = exports.Q_ACA_TECHNICAL = exports.Q_DIFFICULTY_TYPE = exports.AcaDifficultyParams = exports.isDifficultyParamsActive = exports.registerDifficultyParamsQueryParser = exports.registerDifficultyParamsQueryInference = exports.DifficultyParams = exports.AcaRiskRating = exports.AcaTimeRating = exports.AcaWaterRating = exports.AcaTechnicalRating = exports.AcaDifficulty = exports.Difficulty = exports.DifficultyType = exports.DifficultyRisk = exports.DifficultyTime = exports.DifficultyWater = exports.DifficultyTechnical = exports.AcaDifficultyRating = exports.RISK_ORDER = exports.AcaWaterSubRating = exports.AcaTimeSubRating = exports.AcaTechnicalSubRating = exports.AcaRiskSubRating = exports.ACA_WATER_ORDER = exports.ACA_TIME_ORDER = exports.ACA_TECHNICAL_ORDER = exports.ACA_RISK_ORDER = exports.resolveDifficultyRatingFromRecord = exports.registerDifficultyParser = exports.DifficultyRating = exports.DifficultyRatingSystem = exports.PageDataSource = void 0;
4
- exports.BaseRopewikiPageView = exports.PageView = exports.PageViewType = exports.RopewikiPageViewResult = exports.RopewikiPageView = exports.OfflineCenteredRegionMiniMap = exports.OnlineCenteredRegionMiniMap = exports.OfflineRegionMiniMap = exports.OnlineRegionMiniMap = exports.OfflinePageMiniMap = exports.OnlinePageMiniMap = exports.CenteredRegionMiniMap = exports.PageMiniMap = exports.RegionMiniMap = exports.MiniMap = exports.MiniMapType = exports.ImageContext = exports.MeasurementContext = exports.RelevantContext = exports.PolygonLegendItem = exports.LineLegendItem = exports.PointLegendItem = exports.registerLegendItemParser = exports.LegendItem = exports.LEGEND_FEATURE_TYPES = exports.LegendFeatureType = exports.Bounds = exports.OfflineBetaSection = exports.OnlineBetaSection = exports.isRelevanceStrength = exports.assertRelevanceStrength = exports.RELEVANCE_STRENGTHS = exports.boldRelevantPhraseInHtml = exports.BetaSectionExcerpt = exports.BetaSection = exports.DownloadBytes = exports.OfflineBetaSectionImage = exports.OnlineBetaSectionImage = exports.BetaSectionImage = exports.RoutesParams = exports.RouteResult = exports.RoutesGeojson = exports.RouteType = exports.RouteGeoJsonFeature = exports.Route = exports.RegionPreview = exports.OfflinePagePreview = exports.OnlinePagePreview = exports.PagePreview = exports.PreviewType = void 0;
5
- exports.DOWNLOADED_ROUTE_PREVIEWS_STORAGE_KEY = exports.SAVED_PAGES_STORAGE_KEY = exports.SavedPage = exports.ImageVersions = exports.VERSION_FORMAT = exports.ImageVersion = exports.RoutePreviewResult = exports.RopewikiRegionImagesResult = exports.RopewikiRegionImagesParams = exports.RopewikiRegionImageView = exports.RegionImagesCursor = exports.RopewikiRegionPreviewsResult = exports.RopewikiRegionPreviewsParams = exports.RegionPreviewsCursor = exports.RopewikiRegionViewResult = exports.RopewikiRegionView = exports.SearchResults = exports.SearchParams = exports.SearchCursor = exports.MapDataTileKeysResults = exports.registerPaginationParser = exports.PaginationResultType = exports.PaginationResults = exports.registerCursorPaginationParser = exports.CursorPaginationResultType = exports.CursorPaginationResults = exports.registerResultParser = exports.ResultType = exports.Result = exports.PaginationParams = exports.CursorPaginationParams = exports.CursorType = exports.Cursor = exports.RopewikiPageLinkPreviewResult = exports.LinkPreviewImage = exports.LinkPreview = exports.DAYS = exports.HOURS = exports.MINUTES = exports.TimeMeasurement = exports.FEET = exports.MILES = exports.LengthMeasurement = exports.MinMax = exports.FREEDOM_MEASUREMENT_SYSTEM = exports.Measurement = exports.formatMeasurementValue = exports.OfflineRopewikiPageView = exports.OnlineRopewikiPageView = void 0;
4
+ exports.RopewikiPageViewResult = exports.RopewikiPageView = exports.OfflineCenteredRegionMiniMap = exports.OnlineCenteredRegionMiniMap = exports.OfflineRegionMiniMap = exports.OnlineRegionMiniMap = exports.OfflinePageMiniMap = exports.OnlinePageMiniMap = exports.CenteredRegionMiniMap = exports.PageMiniMap = exports.RegionMiniMap = exports.MiniMap = exports.MiniMapType = exports.ImageContext = exports.MeasurementContext = exports.RelevantContext = exports.PolygonLegendItem = exports.LineLegendItem = exports.PointLegendItem = exports.registerLegendItemParser = exports.LegendItem = exports.LEGEND_FEATURE_TYPES = exports.LegendFeatureType = exports.Bounds = exports.OfflineBetaSection = exports.OnlineBetaSection = exports.isMeasurementKey = exports.assertMeasurementKey = exports.MEASUREMENT_KEYS = exports.isRelevanceStrength = exports.assertRelevanceStrength = exports.RELEVANCE_STRENGTHS = exports.boldRelevantPhraseInHtml = exports.BetaSectionExcerpt = exports.BetaSection = exports.DownloadBytes = exports.OfflineBetaSectionImage = exports.OnlineBetaSectionImage = exports.BetaSectionImage = exports.RoutesParams = exports.RouteResult = exports.RoutesGeojson = exports.RouteType = exports.RouteGeoJsonFeature = exports.Route = exports.RegionPreview = exports.OfflinePagePreview = exports.OnlinePagePreview = exports.PagePreview = exports.PreviewType = void 0;
5
+ exports.SavedPage = exports.ImageVersions = exports.VERSION_FORMAT = exports.ImageVersion = exports.RoutePreviewResult = exports.RopewikiRegionImagesResult = exports.RopewikiRegionImagesParams = exports.RopewikiRegionImageView = exports.RegionImagesCursor = exports.RopewikiRegionPreviewsResult = exports.RopewikiRegionPreviewsParams = exports.RegionPreviewsCursor = exports.RopewikiRegionViewResult = exports.RopewikiRegionView = exports.SearchResults = exports.SearchParams = exports.SearchCursor = exports.MapDataTileKeysResults = exports.registerPaginationParser = exports.PaginationResultType = exports.PaginationResults = exports.registerCursorPaginationParser = exports.CursorPaginationResultType = exports.CursorPaginationResults = exports.registerResultParser = exports.ResultType = exports.Result = exports.PaginationParams = exports.CursorPaginationParams = exports.CursorType = exports.Cursor = exports.RopewikiPageLinkPreviewResult = exports.LinkPreviewImage = exports.LinkPreview = exports.DAYS = exports.HOURS = exports.MINUTES = exports.TimeMeasurement = exports.FEET = exports.MILES = exports.LengthMeasurement = exports.MinMax = exports.FREEDOM_MEASUREMENT_SYSTEM = exports.Measurement = exports.formatMeasurementValue = exports.OfflineRopewikiPageView = exports.OnlineRopewikiPageView = exports.BaseRopewikiPageView = exports.PageView = exports.PageViewType = void 0;
6
+ exports.DOWNLOADED_ROUTE_PREVIEWS_STORAGE_KEY = exports.SAVED_PAGES_STORAGE_KEY = void 0;
6
7
  require("./api/results/registerAllResultParsers");
7
8
  require("./difficulty/registerDifficultyRatingParsers");
8
9
  require("./filters/registerDifficultyFilterOptionsParsers");
@@ -135,6 +136,10 @@ var relevanceStrength_1 = require("./relevanceStrength");
135
136
  Object.defineProperty(exports, "RELEVANCE_STRENGTHS", { enumerable: true, get: function () { return relevanceStrength_1.RELEVANCE_STRENGTHS; } });
136
137
  Object.defineProperty(exports, "assertRelevanceStrength", { enumerable: true, get: function () { return relevanceStrength_1.assertRelevanceStrength; } });
137
138
  Object.defineProperty(exports, "isRelevanceStrength", { enumerable: true, get: function () { return relevanceStrength_1.isRelevanceStrength; } });
139
+ var measurementKey_1 = require("./measurementKey");
140
+ Object.defineProperty(exports, "MEASUREMENT_KEYS", { enumerable: true, get: function () { return measurementKey_1.MEASUREMENT_KEYS; } });
141
+ Object.defineProperty(exports, "assertMeasurementKey", { enumerable: true, get: function () { return measurementKey_1.assertMeasurementKey; } });
142
+ Object.defineProperty(exports, "isMeasurementKey", { enumerable: true, get: function () { return measurementKey_1.isMeasurementKey; } });
138
143
  var onlineBetaSection_1 = require("./betaSections/onlineBetaSection");
139
144
  Object.defineProperty(exports, "OnlineBetaSection", { enumerable: true, get: function () { return onlineBetaSection_1.OnlineBetaSection; } });
140
145
  var offlineBetaSection_1 = require("./betaSections/offlineBetaSection");
@@ -0,0 +1,12 @@
1
+ import type { Measurement } from './measurements/measurement';
2
+ /**
3
+ * Page-stat keys used by relevant-context measurements.
4
+ * Values match the AI model / Zod enum and page-view lookup keys exactly.
5
+ */
6
+ export declare const MEASUREMENT_KEYS: readonly ["approachLength", "descentLength", "exitLength", "approachElevGain", "descentElevGain", "exitElevGain", "minApproachTime", "maxApproachTime", "minDescentTime", "maxDescentTime", "minExitTime", "maxExitTime", "shuttleTime"];
7
+ export type MeasurementKey = (typeof MEASUREMENT_KEYS)[number];
8
+ /** Key → page measurement for resolving {@link MeasurementContext} without a stored value. */
9
+ export type MeasurementsLookup = Partial<Record<MeasurementKey, Measurement>>;
10
+ export declare function isMeasurementKey(value: unknown): value is MeasurementKey;
11
+ export declare function assertMeasurementKey(value: unknown, context: string): MeasurementKey;
12
+ //# sourceMappingURL=measurementKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measurementKey.d.ts","sourceRoot":"","sources":["../../src/models/measurementKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,gBAAgB,0OAcnB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,8FAA8F;AAC9F,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC,CAAC;AAE9E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAKxE;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,cAAc,CAOpF"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MEASUREMENT_KEYS = void 0;
4
+ exports.isMeasurementKey = isMeasurementKey;
5
+ exports.assertMeasurementKey = assertMeasurementKey;
6
+ /**
7
+ * Page-stat keys used by relevant-context measurements.
8
+ * Values match the AI model / Zod enum and page-view lookup keys exactly.
9
+ */
10
+ exports.MEASUREMENT_KEYS = [
11
+ 'approachLength',
12
+ 'descentLength',
13
+ 'exitLength',
14
+ 'approachElevGain',
15
+ 'descentElevGain',
16
+ 'exitElevGain',
17
+ 'minApproachTime',
18
+ 'maxApproachTime',
19
+ 'minDescentTime',
20
+ 'maxDescentTime',
21
+ 'minExitTime',
22
+ 'maxExitTime',
23
+ 'shuttleTime',
24
+ ];
25
+ function isMeasurementKey(value) {
26
+ return (typeof value === 'string' &&
27
+ exports.MEASUREMENT_KEYS.includes(value));
28
+ }
29
+ function assertMeasurementKey(value, context) {
30
+ if (!isMeasurementKey(value)) {
31
+ throw new Error(`${context} must be one of ${exports.MEASUREMENT_KEYS.map((s) => JSON.stringify(s)).join(', ')}, got: ${JSON.stringify(value)}`);
32
+ }
33
+ return value;
34
+ }
@@ -2,9 +2,12 @@ import { type RelevanceStrength } from '../../../relevanceStrength';
2
2
  export declare class ImageContext {
3
3
  readonly id: string;
4
4
  readonly relevanceStrength: RelevanceStrength;
5
- /** Verbatim substring of the image caption and/or file URL. */
6
- readonly relevantPhrase: string;
7
- constructor(id: string, relevanceStrength: RelevanceStrength, relevantPhrase: string);
5
+ /**
6
+ * Verbatim substring of the image caption. When omitted, caption
7
+ * highlighting is skipped.
8
+ */
9
+ readonly relevantPhrase?: string;
10
+ constructor(id: string, relevanceStrength: RelevanceStrength, relevantPhrase?: string);
8
11
  toPlain(): Record<string, unknown>;
9
12
  static fromResult(result: unknown): ImageContext;
10
13
  private static assertNonEmptyString;
@@ -1 +1 @@
1
- {"version":3,"file":"imageContext.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/concrete/imageContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,iBAAiB,EACzB,MAAM,4BAA4B,CAAC;AAEpC,qBAAa,YAAY;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,+DAA+D;IAC/D,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;gBAEpB,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM;IASpF,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY;IAiBhD,OAAO,CAAC,MAAM,CAAC,oBAAoB;CAMtC"}
1
+ {"version":3,"file":"imageContext.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/concrete/imageContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,iBAAiB,EACzB,MAAM,4BAA4B,CAAC;AAEpC,qBAAa,YAAY;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C;;;OAGG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;gBAErB,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,CAAC,EAAE,MAAM;IAWrF,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAWlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY;IAoBhD,OAAO,CAAC,MAAM,CAAC,oBAAoB;CAMtC"}
@@ -6,17 +6,22 @@ class ImageContext {
6
6
  constructor(id, relevanceStrength, relevantPhrase) {
7
7
  ImageContext.assertNonEmptyString(id, 'ImageContext.id');
8
8
  (0, relevanceStrength_1.assertRelevanceStrength)(relevanceStrength, 'ImageContext.relevanceStrength');
9
- ImageContext.assertNonEmptyString(relevantPhrase, 'ImageContext.relevantPhrase');
9
+ if (relevantPhrase !== undefined) {
10
+ ImageContext.assertNonEmptyString(relevantPhrase, 'ImageContext.relevantPhrase');
11
+ }
10
12
  this.id = id;
11
13
  this.relevanceStrength = relevanceStrength;
12
14
  this.relevantPhrase = relevantPhrase;
13
15
  }
14
16
  toPlain() {
15
- return {
17
+ const out = {
16
18
  id: this.id,
17
19
  relevanceStrength: this.relevanceStrength,
18
- relevantPhrase: this.relevantPhrase,
19
20
  };
21
+ if (this.relevantPhrase !== undefined) {
22
+ out.relevantPhrase = this.relevantPhrase;
23
+ }
24
+ return out;
20
25
  }
21
26
  static fromResult(result) {
22
27
  if (result == null || typeof result !== 'object' || Array.isArray(result)) {
@@ -25,7 +30,10 @@ class ImageContext {
25
30
  const r = result;
26
31
  const id = ImageContext.assertNonEmptyString(r.id, 'ImageContext.id');
27
32
  const relevanceStrength = (0, relevanceStrength_1.assertRelevanceStrength)(r.relevanceStrength, 'ImageContext.relevanceStrength');
28
- const relevantPhrase = ImageContext.assertNonEmptyString(r.relevantPhrase, 'ImageContext.relevantPhrase');
33
+ let relevantPhrase;
34
+ if (r.relevantPhrase !== undefined && r.relevantPhrase !== null) {
35
+ relevantPhrase = ImageContext.assertNonEmptyString(r.relevantPhrase, 'ImageContext.relevantPhrase');
36
+ }
29
37
  return new ImageContext(id, relevanceStrength, relevantPhrase);
30
38
  }
31
39
  static assertNonEmptyString(value, context) {
@@ -1,13 +1,15 @@
1
- import { Measurement } from '../../../measurements/measurement';
2
1
  import { type RelevanceStrength } from '../../../relevanceStrength';
2
+ import { type MeasurementKey } from '../../../measurementKey';
3
+ /**
4
+ * Relevant page-stat reference for a map feature.
5
+ * The numeric value is resolved on the client via {@link MeasurementsLookup}
6
+ * keyed by {@link key}.
7
+ */
3
8
  export declare class MeasurementContext {
4
- readonly label: string;
5
- readonly measurement: Measurement;
9
+ readonly key: MeasurementKey;
6
10
  readonly relevanceStrength: RelevanceStrength;
7
- constructor(label: string, measurement: Measurement, relevanceStrength: RelevanceStrength);
11
+ constructor(key: MeasurementKey, relevanceStrength: RelevanceStrength);
8
12
  toPlain(): Record<string, unknown>;
9
13
  static fromResult(result: unknown): MeasurementContext;
10
- private static parseMeasurement;
11
- private static assertNonEmptyString;
12
14
  }
13
15
  //# sourceMappingURL=measurementContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"measurementContext.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/concrete/measurementContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,OAAO,EAEH,KAAK,iBAAiB,EACzB,MAAM,4BAA4B,CAAC;AAEpC,qBAAa,kBAAkB;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;gBAElC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB;IAQzF,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,kBAAkB;IActD,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAgB/B,OAAO,CAAC,MAAM,CAAC,oBAAoB;CAMtC"}
1
+ {"version":3,"file":"measurementContext.d.ts","sourceRoot":"","sources":["../../../../../src/models/minimap/legend/concrete/measurementContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,iBAAiB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,KAAK,cAAc,EACtB,MAAM,yBAAyB,CAAC;AAEjC;;;;GAIG;AACH,qBAAa,kBAAkB;IAC3B,QAAQ,CAAC,GAAG,EAAE,cAAc,CAAC;IAC7B,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;gBAElC,GAAG,EAAE,cAAc,EAAE,iBAAiB,EAAE,iBAAiB;IAOrE,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,kBAAkB;CAYzD"}
@@ -1,21 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MeasurementContext = void 0;
4
- const lengthMeasurement_1 = require("../../../measurements/lengthMeasurement");
5
- const timeMeasurement_1 = require("../../../measurements/timeMeasurement");
6
4
  const relevanceStrength_1 = require("../../../relevanceStrength");
5
+ const measurementKey_1 = require("../../../measurementKey");
6
+ /**
7
+ * Relevant page-stat reference for a map feature.
8
+ * The numeric value is resolved on the client via {@link MeasurementsLookup}
9
+ * keyed by {@link key}.
10
+ */
7
11
  class MeasurementContext {
8
- constructor(label, measurement, relevanceStrength) {
9
- MeasurementContext.assertNonEmptyString(label, 'MeasurementContext.label');
12
+ constructor(key, relevanceStrength) {
13
+ (0, measurementKey_1.assertMeasurementKey)(key, 'MeasurementContext.key');
10
14
  (0, relevanceStrength_1.assertRelevanceStrength)(relevanceStrength, 'MeasurementContext.relevanceStrength');
11
- this.label = label;
12
- this.measurement = measurement;
15
+ this.key = key;
13
16
  this.relevanceStrength = relevanceStrength;
14
17
  }
15
18
  toPlain() {
16
19
  return {
17
- label: this.label,
18
- measurement: this.measurement.toJSON(),
20
+ key: this.key,
19
21
  relevanceStrength: this.relevanceStrength,
20
22
  };
21
23
  }
@@ -24,29 +26,9 @@ class MeasurementContext {
24
26
  throw new Error('MeasurementContext result must be an object');
25
27
  }
26
28
  const r = result;
27
- const label = MeasurementContext.assertNonEmptyString(r.label, 'MeasurementContext.label');
29
+ const key = (0, measurementKey_1.assertMeasurementKey)(r.key, 'MeasurementContext.key');
28
30
  const relevanceStrength = (0, relevanceStrength_1.assertRelevanceStrength)(r.relevanceStrength, 'MeasurementContext.relevanceStrength');
29
- const measurement = MeasurementContext.parseMeasurement(r.measurement);
30
- return new MeasurementContext(label, measurement, relevanceStrength);
31
- }
32
- static parseMeasurement(value) {
33
- if (value == null || typeof value !== 'object') {
34
- throw new Error('MeasurementContext.measurement must be an object');
35
- }
36
- const r = value;
37
- if (r.measurementType === 'length') {
38
- return lengthMeasurement_1.LengthMeasurement.fromResult(value);
39
- }
40
- if (r.measurementType === 'time') {
41
- return timeMeasurement_1.TimeMeasurement.fromResult(value);
42
- }
43
- throw new Error(`MeasurementContext.measurement.measurementType must be "length" or "time", got: ${JSON.stringify(r.measurementType)}`);
44
- }
45
- static assertNonEmptyString(value, context) {
46
- if (typeof value !== 'string' || value.trim().length === 0) {
47
- throw new Error(`${context} must be a non-empty string`);
48
- }
49
- return value;
31
+ return new MeasurementContext(key, relevanceStrength);
50
32
  }
51
33
  }
52
34
  exports.MeasurementContext = MeasurementContext;
@@ -4,6 +4,7 @@ import type { Bounds } from '../minimap/bounds';
4
4
  import { PageViewType } from './pageViewType';
5
5
  import type { OfflineBetaSection } from '../betaSections/offlineBetaSection';
6
6
  import type { OfflineBetaSectionImage } from '../betaSections/offlineBetaSectionImage';
7
+ import type { MeasurementsLookup } from '../measurementKey';
7
8
  /** Relevant-context section lookup keyed by non-null beta-section id. */
8
9
  export type OfflineBetaSectionLookup = Record<string, OfflineBetaSection>;
9
10
  export type OfflineImageLookupEntry = {
@@ -20,6 +21,7 @@ export interface OfflinePageView {
20
21
  readonly pageViewType: PageViewType;
21
22
  toBetaSectionLookup(): OfflineBetaSectionLookup;
22
23
  toImageLookup(): OfflineImageLookup;
24
+ toMeasurementsLookup(): MeasurementsLookup;
23
25
  toPagePreview(): OfflinePagePreview;
24
26
  /** Bounds for Mapbox offline pack when this page uses a page minimap; otherwise null. */
25
27
  getMapboxPackBounds(): Bounds | null;
@@ -1 +1 @@
1
- {"version":3,"file":"offlinePageView.d.ts","sourceRoot":"","sources":["../../../src/models/pageViews/offlinePageView.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAEvF,yEAAyE;AACzE,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AAE1E,MAAM,MAAM,uBAAuB,GAAG;IAClC,KAAK,EAAE,uBAAuB,CAAC;IAC/B,4CAA4C;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,yDAAyD;AACzD,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAEzE,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAA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E,YAAY,CAAC;IACpC,mBAAmB,IAAI,wBAAwB,CAAC;IAChD,aAAa,IAAI,kBAAkB,CAAC;IACpC,oBAAoB,IAAI,kBAAkB,CAAC;IAC3C,aAAa,IAAI,kBAAkB,CAAC;IACpC,yFAAyF;IACzF,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAAC;CACxC"}
@@ -9,6 +9,7 @@ import type { DownloadJobConfig, DownloadPlatformHarness, DownloadTaskDependency
9
9
  import type { OnlineMiniMap } from '../minimap/abstract/onlineMiniMap';
10
10
  import type { OnlineBetaSection } from '../betaSections/onlineBetaSection';
11
11
  import type { OnlineBetaSectionImage } from '../betaSections/onlineBetaSectionImage';
12
+ import type { MeasurementsLookup } from '../measurementKey';
12
13
  /** Relevant-context section lookup keyed by non-null beta-section id. */
13
14
  export type OnlineBetaSectionLookup = Record<string, OnlineBetaSection>;
14
15
  export type OnlineImageLookupEntry = {
@@ -27,6 +28,7 @@ export interface OnlinePageView {
27
28
  readonly downloadFolder: string | null;
28
29
  toBetaSectionLookup(): OnlineBetaSectionLookup;
29
30
  toImageLookup(): OnlineImageLookup;
31
+ toMeasurementsLookup(): MeasurementsLookup;
30
32
  planDownloadPhases(): DownloadPhase[];
31
33
  getDependenciesForPhases(phases: DownloadPhase[]): Record<string, DownloadTaskDependency>;
32
34
  toOfflineFromExtractedBundle(pageRoot: string, platformHarness: DownloadPlatformHarness): Promise<OfflinePageView>;
@@ -1 +1 @@
1
- {"version":3,"file":"onlinePageView.d.ts","sourceRoot":"","sources":["../../../src/models/pageViews/onlinePageView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CA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AiB,GAAG,SAAS,CAAC;CAC/E"}
@@ -8,6 +8,7 @@ import { PageViewType } from './pageViewType';
8
8
  import { MinMax } from '../measurements/minMax';
9
9
  import { LengthMeasurement } from '../measurements/lengthMeasurement';
10
10
  import { TimeMeasurement, TimeMeasurementUnit } from '../measurements/timeMeasurement';
11
+ import type { MeasurementsLookup } from '../measurementKey';
11
12
  export declare function registerRopewikiPageViewParser(fetchType: FetchType, parse: (result: unknown) => RopewikiPageView): void;
12
13
  export declare abstract class RopewikiPageView {
13
14
  abstract readonly fetchType: FetchType;
@@ -56,6 +57,13 @@ export declare abstract class RopewikiPageView {
56
57
  lat: number;
57
58
  lon: number;
58
59
  } | null, authors?: string[] | null);
60
+ /**
61
+ * Builds a key → measurement map for relevant-context resolution.
62
+ * Time ranges expand to `min*` / `max*` keys; a single time value is stored under both.
63
+ * Only non-null page stats are included.
64
+ */
65
+ toMeasurementsLookup(): MeasurementsLookup;
66
+ private static putTimePair;
59
67
  static fromResult(result: unknown, fetchType?: FetchType): RopewikiPageView;
60
68
  protected static validateCommonFields(r: Record<string, unknown>, expectedFetchType: FetchType, context: string): void;
61
69
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ropewikiPageView.d.ts","sourceRoot":"","sources":["../../../src/models/pageViews/ropewikiPageView.ts"],"names":[],"mappings":"AAAA,OAAO,+CAA+C,CAAC;AACvD,OAAO,EACH,gBAAgB,EAEnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAEH,iBAAiB,EAEp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
55
+ /**
56
+ * Builds a key → measurement map for relevant-context resolution.
57
+ * Time ranges expand to `min*` / `max*` keys; a single time value is stored under both.
58
+ * Only non-null page stats are included.
59
+ */
60
+ toMeasurementsLookup() {
61
+ const lookup = {};
62
+ const putLength = (key, value) => {
63
+ if (value != null)
64
+ lookup[key] = value;
65
+ };
66
+ putLength('approachLength', this.approachLength);
67
+ putLength('descentLength', this.descentLength);
68
+ putLength('exitLength', this.exitLength);
69
+ putLength('approachElevGain', this.approachElevGain);
70
+ putLength('descentElevGain', this.descentElevGain);
71
+ putLength('exitElevGain', this.exitElevGain);
72
+ if (this.shuttleTime != null) {
73
+ lookup.shuttleTime = this.shuttleTime;
74
+ }
75
+ RopewikiPageView.putTimePair(lookup, 'minApproachTime', 'maxApproachTime', this.approachTime);
76
+ RopewikiPageView.putTimePair(lookup, 'minDescentTime', 'maxDescentTime', this.descentTime);
77
+ RopewikiPageView.putTimePair(lookup, 'minExitTime', 'maxExitTime', this.exitTime);
78
+ return lookup;
79
+ }
80
+ static putTimePair(lookup, minKey, maxKey, value) {
81
+ if (value == null)
82
+ return;
83
+ if (value instanceof minMax_1.MinMax) {
84
+ lookup[minKey] = value.min;
85
+ lookup[maxKey] = value.max;
86
+ return;
87
+ }
88
+ lookup[minKey] = value;
89
+ lookup[maxKey] = value;
90
+ }
55
91
  static fromResult(result, fetchType) {
56
92
  if (result == null || typeof result !== 'object') {
57
93
  throw new Error('RopewikiPageView result must be an object');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ropegeo-common",
3
- "version": "1.25.0",
3
+ "version": "1.25.2",
4
4
  "description": "Shared domain models and helpers for RopeGeo and WebScraper",
5
5
  "license": "ISC",
6
6
  "repository": {