ropegeo-common 1.22.0 → 1.24.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.
Files changed (39) hide show
  1. package/dist/models/betaSections/betaSection.d.ts +11 -1
  2. package/dist/models/betaSections/betaSection.d.ts.map +1 -1
  3. package/dist/models/betaSections/betaSection.js +6 -2
  4. package/dist/models/betaSections/betaSectionImage.d.ts +4 -1
  5. package/dist/models/betaSections/betaSectionImage.d.ts.map +1 -1
  6. package/dist/models/betaSections/betaSectionImage.js +18 -1
  7. package/dist/models/betaSections/formatExcerptHtml.d.ts +0 -1
  8. package/dist/models/betaSections/formatExcerptHtml.d.ts.map +1 -1
  9. package/dist/models/betaSections/formatExcerptHtml.js +0 -28
  10. package/dist/models/betaSections/normalizeExcerptHtml.d.ts +12 -0
  11. package/dist/models/betaSections/normalizeExcerptHtml.d.ts.map +1 -1
  12. package/dist/models/betaSections/normalizeExcerptHtml.js +38 -21
  13. package/dist/models/betaSections/offlineBetaSectionImage.d.ts +1 -1
  14. package/dist/models/betaSections/offlineBetaSectionImage.d.ts.map +1 -1
  15. package/dist/models/betaSections/offlineBetaSectionImage.js +2 -2
  16. package/dist/models/betaSections/onlineBetaSectionImage.d.ts +1 -1
  17. package/dist/models/betaSections/onlineBetaSectionImage.d.ts.map +1 -1
  18. package/dist/models/betaSections/onlineBetaSectionImage.js +3 -3
  19. package/dist/models/index.d.ts +1 -1
  20. package/dist/models/index.d.ts.map +1 -1
  21. package/dist/models/minimap/abstract/pageMiniMap.d.ts +4 -1
  22. package/dist/models/minimap/abstract/pageMiniMap.d.ts.map +1 -1
  23. package/dist/models/minimap/abstract/pageMiniMap.js +18 -1
  24. package/dist/models/minimap/concrete/offlinePageMiniMap.d.ts +1 -1
  25. package/dist/models/minimap/concrete/offlinePageMiniMap.d.ts.map +1 -1
  26. package/dist/models/minimap/concrete/offlinePageMiniMap.js +3 -2
  27. package/dist/models/minimap/concrete/onlinePageMiniMap.d.ts +1 -1
  28. package/dist/models/minimap/concrete/onlinePageMiniMap.d.ts.map +1 -1
  29. package/dist/models/minimap/concrete/onlinePageMiniMap.js +3 -3
  30. package/dist/models/pageViews/offlineRopewikiPageView.d.ts +1 -1
  31. package/dist/models/pageViews/offlineRopewikiPageView.d.ts.map +1 -1
  32. package/dist/models/pageViews/offlineRopewikiPageView.js +2 -2
  33. package/dist/models/pageViews/onlineRopewikiPageView.d.ts +1 -1
  34. package/dist/models/pageViews/onlineRopewikiPageView.d.ts.map +1 -1
  35. package/dist/models/pageViews/onlineRopewikiPageView.js +3 -3
  36. package/dist/models/pageViews/ropewikiPageView.d.ts +4 -1
  37. package/dist/models/pageViews/ropewikiPageView.d.ts.map +1 -1
  38. package/dist/models/pageViews/ropewikiPageView.js +18 -1
  39. package/package.json +1 -1
@@ -1,6 +1,16 @@
1
1
  import { FetchType } from '../fetchType';
2
2
  import { BetaSectionExcerpt } from './betaSectionExcerpt';
3
3
  import { BetaSectionImage } from './betaSectionImage';
4
+ /**
5
+ * An excerpt split into its verbatim `body` and the surrounding section
6
+ * context. Consumers render `before` and `after` de-emphasized (e.g. faded)
7
+ * relative to `body`; concatenating the three yields well-formed HTML.
8
+ */
9
+ export type ExcerptHtml = {
10
+ before: string;
11
+ body: string;
12
+ after: string;
13
+ };
4
14
  export declare function registerBetaSectionParser(fetchType: FetchType, parse: (body: unknown) => BetaSection): void;
5
15
  export declare abstract class BetaSection {
6
16
  abstract readonly fetchType: FetchType;
@@ -20,7 +30,7 @@ export declare abstract class BetaSection {
20
30
  * Renders an excerpt with nearby section context when its offsets still
21
31
  * match this section, otherwise falls back to the excerpt alone.
22
32
  */
23
- toExcerptHtml(excerpt: BetaSectionExcerpt): string;
33
+ toExcerptHtml(excerpt: BetaSectionExcerpt): ExcerptHtml;
24
34
  static fromResponseBody(body: unknown, fetchType?: FetchType): BetaSection;
25
35
  protected static assertNumber(obj: Record<string, unknown>, key: string): void;
26
36
  protected static assertString(obj: Record<string, unknown>, key: string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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"}
@@ -47,7 +47,7 @@ class BetaSection {
47
47
  (0, formatExcerptHtml_1.isSafeTextBoundary)(this.text, excerpt.start) &&
48
48
  (0, formatExcerptHtml_1.isSafeTextBoundary)(this.text, excerpt.end);
49
49
  if (!validOffsets)
50
- return excerpt.toHtml();
50
+ return { before: '', body: excerpt.toHtml(), after: '' };
51
51
  const excerptStart = excerpt.start;
52
52
  const excerptEnd = excerpt.end;
53
53
  const characters = (0, formatExcerptHtml_1.visibleCharacters)(this.text);
@@ -56,7 +56,11 @@ class BetaSection {
56
56
  this.text.slice((0, formatExcerptHtml_1.previousSentenceStart)(this.text, excerptStart, characters), excerptStart);
57
57
  const after = structuredContext?.after ??
58
58
  this.text.slice(excerptEnd, (0, formatExcerptHtml_1.nextSentenceEnd)(this.text, excerptEnd, characters));
59
- return (0, normalizeExcerptHtml_1.normalizeExcerptListHtml)(`${(0, formatExcerptHtml_1.fadeText)(before, 'toward-end')}${excerpt.text}${(0, formatExcerptHtml_1.fadeText)(after, 'toward-start')}`);
59
+ return (0, normalizeExcerptHtml_1.normalizeExcerptListHtmlParts)({
60
+ before,
61
+ body: excerpt.text,
62
+ after,
63
+ });
60
64
  }
61
65
  static fromResponseBody(body, fetchType) {
62
66
  if (body == null || typeof body !== 'object') {
@@ -8,12 +8,15 @@ export declare abstract class BetaSectionImage {
8
8
  linkUrl: string;
9
9
  caption: string | null;
10
10
  latestRevisionDate: Date;
11
- protected constructor(order: number, id: string, linkUrl: string, caption: string | null, latestRevisionDate: Date);
11
+ /** File contributors; null when not resolved. */
12
+ authors: string[] | null;
13
+ protected constructor(order: number, id: string, linkUrl: string, caption: string | null, latestRevisionDate: Date, authors?: string[] | null);
12
14
  static fromResult(result: unknown, fetchType?: FetchType): BetaSectionImage;
13
15
  protected static assertNumber(obj: Record<string, unknown>, key: string): void;
14
16
  protected static assertNonEmptyString(obj: Record<string, unknown>, key: string): void;
15
17
  protected static assertString(obj: Record<string, unknown>, key: string): void;
16
18
  protected static assertStringOrNull(obj: Record<string, unknown>, key: string): void;
19
+ protected static assertNullableStringArray(obj: Record<string, unknown>, key: string): void;
17
20
  protected static assertDownloadBytesOrNull(obj: Record<string, unknown>, key: string): void;
18
21
  protected static assertIso8601DateString(obj: Record<string, unknown>, key: string): void;
19
22
  protected static normalizeCommonFields(obj: Record<string, unknown>, context: string, expectedFetchType: FetchType): void;
@@ -1 +1 @@
1
- {"version":3,"file":"betaSectionImage.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/betaSectionImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,gBAAgB,GAC7C,IAAI,CAEN;AAED,8BAAsB,gBAAgB;IAClC,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,kBAAkB,EAAE,IAAI,CAAC;IAEzB,SAAS,aACL,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,kBAAkB,EAAE,IAAI;IAS5B,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,SAAS,GAAG,gBAAgB;IA0B3E,SAAS,CAAC,MAAM,CAAC,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,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IASP,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;CAeV"}
@@ -8,12 +8,13 @@ function registerBetaSectionImageParser(fetchType, parse) {
8
8
  betaSectionImageParsers.set(fetchType, parse);
9
9
  }
10
10
  class BetaSectionImage {
11
- constructor(order, id, linkUrl, caption, latestRevisionDate) {
11
+ constructor(order, id, linkUrl, caption, latestRevisionDate, authors = null) {
12
12
  this.order = order;
13
13
  this.id = id;
14
14
  this.linkUrl = linkUrl;
15
15
  this.caption = caption;
16
16
  this.latestRevisionDate = new Date(latestRevisionDate);
17
+ this.authors = authors != null ? authors.slice() : null;
17
18
  }
18
19
  static fromResult(result, fetchType) {
19
20
  if (result == null || typeof result !== 'object') {
@@ -58,6 +59,21 @@ class BetaSectionImage {
58
59
  throw new Error(`BetaSectionImage.${key} must be a string or null, got: ${typeof v}`);
59
60
  }
60
61
  }
62
+ static assertNullableStringArray(obj, key) {
63
+ const v = obj[key];
64
+ if (v === undefined || v === null) {
65
+ obj[key] = null;
66
+ return;
67
+ }
68
+ if (!Array.isArray(v)) {
69
+ throw new Error(`BetaSectionImage.${key} must be an array of strings or null, got: ${typeof v}`);
70
+ }
71
+ for (let i = 0; i < v.length; i++) {
72
+ if (typeof v[i] !== 'string') {
73
+ throw new Error(`BetaSectionImage.${key}[${i}] must be a string`);
74
+ }
75
+ }
76
+ }
61
77
  static assertDownloadBytesOrNull(obj, key) {
62
78
  const v = obj[key];
63
79
  if (v === undefined || v === null) {
@@ -82,6 +98,7 @@ class BetaSectionImage {
82
98
  BetaSectionImage.assertString(obj, 'linkUrl');
83
99
  BetaSectionImage.assertStringOrNull(obj, 'caption');
84
100
  BetaSectionImage.assertIso8601DateString(obj, 'latestRevisionDate');
101
+ BetaSectionImage.assertNullableStringArray(obj, 'authors');
85
102
  const rawFetchType = obj.fetchType;
86
103
  if (rawFetchType !== expectedFetchType) {
87
104
  throw new Error(`${context}.fetchType must be "${expectedFetchType}", got: ${JSON.stringify(rawFetchType)}`);
@@ -11,6 +11,5 @@ export declare function listContext(html: string, excerptStart: number, excerptE
11
11
  before: string;
12
12
  after: string;
13
13
  } | null;
14
- export declare function fadeText(html: string, direction: 'toward-end' | 'toward-start'): string;
15
14
  export {};
16
15
  //# sourceMappingURL=formatExcerptHtml.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatExcerptHtml.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/formatExcerptHtml.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAsBzD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAuBlE;AAYD,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAsCxE;AAuCD,wBAAgB,qBAAqB,CACjC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,gBAAgB,EAAE,GAC/B,MAAM,CAkBR;AAED,wBAAgB,eAAe,CAC3B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,gBAAgB,EAAE,GAC/B,MAAM,CAuBR;AAyCD,wBAAgB,WAAW,CACvB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,gBAAgB,EAAE,GAC/B;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CA0C1C;AAED,wBAAgB,QAAQ,CACpB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,YAAY,GAAG,cAAc,GACzC,MAAM,CA8BR"}
1
+ {"version":3,"file":"formatExcerptHtml.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/formatExcerptHtml.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAsBzD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAuBlE;AAYD,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAsCxE;AAuCD,wBAAgB,qBAAqB,CACjC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,gBAAgB,EAAE,GAC/B,MAAM,CAkBR;AAED,wBAAgB,eAAe,CAC3B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,gBAAgB,EAAE,GAC/B,MAAM,CAuBR;AAyCD,wBAAgB,WAAW,CACvB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,gBAAgB,EAAE,GAC/B;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CA0C1C"}
@@ -5,7 +5,6 @@ exports.isSafeTextBoundary = isSafeTextBoundary;
5
5
  exports.previousSentenceStart = previousSentenceStart;
6
6
  exports.nextSentenceEnd = nextSentenceEnd;
7
7
  exports.listContext = listContext;
8
- exports.fadeText = fadeText;
9
8
  const HEADER_TAG = /^<\s*(\/?)h[1-6]\b/i;
10
9
  const NON_TERMINAL_ABBREVIATIONS = new Set([
11
10
  'dr',
@@ -209,30 +208,3 @@ function listContext(html, excerptStart, excerptEnd, characters) {
209
208
  : html.slice(range.closeStart, nextSentenceEnd(html, range.closeEnd, characters));
210
209
  return { before, after };
211
210
  }
212
- function fadeText(html, direction) {
213
- const parts = html.split(/(<[^>]+>)/g);
214
- const wordCount = parts.reduce((count, part) => part.startsWith('<')
215
- ? count
216
- : count + (part.match(/\S+/g)?.length ?? 0), 0);
217
- if (wordCount === 0)
218
- return html;
219
- let wordIndex = 0;
220
- return parts
221
- .map((part) => {
222
- if (part.startsWith('<'))
223
- return part;
224
- return part
225
- .split(/(\s+)/)
226
- .map((token) => {
227
- if (token.length === 0 || /^\s+$/.test(token))
228
- return token;
229
- const progress = wordCount === 1 ? 1 : wordIndex / (wordCount - 1);
230
- const proximity = direction === 'toward-end' ? progress : 1 - progress;
231
- const opacity = (0.3 + proximity * 0.4).toFixed(2);
232
- wordIndex += 1;
233
- return `<span style="opacity: ${opacity}">${token}</span>`;
234
- })
235
- .join('');
236
- })
237
- .join('');
238
- }
@@ -1,3 +1,15 @@
1
+ /** Leading/trailing context around an excerpt body, split for independent styling. */
2
+ export type ExcerptHtmlParts = {
3
+ before: string;
4
+ body: string;
5
+ after: string;
6
+ };
7
+ /**
8
+ * Repairs the list fragments Ropewiki excerpts commonly produce, distributing
9
+ * any added opening tags to `before` and closing tags to `after` so the three
10
+ * parts remain a well-formed list when concatenated as `before + body + after`.
11
+ */
12
+ export declare function normalizeExcerptListHtmlParts(parts: ExcerptHtmlParts): ExcerptHtmlParts;
1
13
  /**
2
14
  * Repairs the list fragments Ropewiki excerpts commonly produce without
3
15
  * otherwise rewriting the source HTML.
@@ -1 +1 @@
1
- {"version":3,"file":"normalizeExcerptHtml.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/normalizeExcerptHtml.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgC7D"}
1
+ {"version":3,"file":"normalizeExcerptHtml.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/normalizeExcerptHtml.ts"],"names":[],"mappings":"AAIA,sFAAsF;AACtF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,CAkCvF;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQ7D"}
@@ -1,42 +1,59 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizeExcerptListHtmlParts = normalizeExcerptListHtmlParts;
3
4
  exports.normalizeExcerptListHtml = normalizeExcerptListHtml;
4
5
  function countTags(html, pattern) {
5
6
  return html.match(pattern)?.length ?? 0;
6
7
  }
7
8
  /**
8
- * Repairs the list fragments Ropewiki excerpts commonly produce without
9
- * otherwise rewriting the source HTML.
9
+ * Repairs the list fragments Ropewiki excerpts commonly produce, distributing
10
+ * any added opening tags to `before` and closing tags to `after` so the three
11
+ * parts remain a well-formed list when concatenated as `before + body + after`.
10
12
  */
11
- function normalizeExcerptListHtml(html) {
12
- if (html.length === 0)
13
- return html;
14
- let normalized = html;
15
- let olOpenCount = countTags(normalized, /<ol\b[^>]*>/gi);
16
- let olCloseCount = countTags(normalized, /<\/ol\s*>/gi);
13
+ function normalizeExcerptListHtmlParts(parts) {
14
+ let { before, body, after } = parts;
15
+ const combined = () => before + body + after;
16
+ const olOpenCount = countTags(combined(), /<ol\b[^>]*>/gi);
17
+ const olCloseCount = countTags(combined(), /<\/ol\s*>/gi);
17
18
  if (olOpenCount === 0 && olCloseCount > 0) {
18
- normalized = normalized.replace(/<\/ol\s*>/gi, '</ul>');
19
- normalized = '<ul>'.repeat(olCloseCount) + normalized;
20
- olCloseCount = 0;
19
+ before = before.replace(/<\/ol\s*>/gi, '</ul>');
20
+ body = body.replace(/<\/ol\s*>/gi, '</ul>');
21
+ after = after.replace(/<\/ol\s*>/gi, '</ul>');
22
+ before = '<ul>'.repeat(olCloseCount) + before;
21
23
  }
22
24
  else if (olOpenCount > olCloseCount) {
23
- normalized += '</ol>'.repeat(olOpenCount - olCloseCount);
25
+ after += '</ol>'.repeat(olOpenCount - olCloseCount);
24
26
  }
25
27
  else if (olCloseCount > olOpenCount) {
26
- normalized = '<ol>'.repeat(olCloseCount - olOpenCount) + normalized;
28
+ before = '<ol>'.repeat(olCloseCount - olOpenCount) + before;
27
29
  }
28
- const ulOpenCount = countTags(normalized, /<ul\b[^>]*>/gi);
29
- const ulCloseCount = countTags(normalized, /<\/ul\s*>/gi);
30
+ const ulOpenCount = countTags(combined(), /<ul\b[^>]*>/gi);
31
+ const ulCloseCount = countTags(combined(), /<\/ul\s*>/gi);
30
32
  if (ulOpenCount > ulCloseCount) {
31
- normalized += '</ul>'.repeat(ulOpenCount - ulCloseCount);
33
+ after += '</ul>'.repeat(ulOpenCount - ulCloseCount);
32
34
  }
33
35
  else if (ulCloseCount > ulOpenCount) {
34
- normalized = '<ul>'.repeat(ulCloseCount - ulOpenCount) + normalized;
36
+ before = '<ul>'.repeat(ulCloseCount - ulOpenCount) + before;
35
37
  }
36
- const hasListItem = /<li\b[^>]*>/i.test(normalized);
37
- const hasListContainer = /<\/?(?:ul|ol)\b[^>]*>/i.test(normalized);
38
+ const hasListItem = /<li\b[^>]*>/i.test(combined());
39
+ const hasListContainer = /<\/?(?:ul|ol)\b[^>]*>/i.test(combined());
38
40
  if (hasListItem && !hasListContainer) {
39
- normalized = `<ul>${normalized}</ul>`;
41
+ before = `<ul>${before}`;
42
+ after = `${after}</ul>`;
40
43
  }
41
- return normalized;
44
+ return { before, body, after };
45
+ }
46
+ /**
47
+ * Repairs the list fragments Ropewiki excerpts commonly produce without
48
+ * otherwise rewriting the source HTML.
49
+ */
50
+ function normalizeExcerptListHtml(html) {
51
+ if (html.length === 0)
52
+ return html;
53
+ const { before, body, after } = normalizeExcerptListHtmlParts({
54
+ before: '',
55
+ body: html,
56
+ after: '',
57
+ });
58
+ return before + body + after;
42
59
  }
@@ -4,7 +4,7 @@ export declare class OfflineBetaSectionImage extends BetaSectionImage {
4
4
  downloadedBannerPath: string | null;
5
5
  downloadedFullPath: string | null;
6
6
  downloadedPreviewPath: string | null;
7
- constructor(order: number, id: string, downloadedBannerPath: string | null, downloadedFullPath: string | null, linkUrl: string, caption: string | null, latestRevisionDate: Date, downloadedPreviewPath?: string | null);
7
+ constructor(order: number, id: string, downloadedBannerPath: string | null, downloadedFullPath: string | null, linkUrl: string, caption: string | null, latestRevisionDate: Date, downloadedPreviewPath?: string | null, authors?: string[] | null);
8
8
  static fromResult(result: unknown): OfflineBetaSectionImage;
9
9
  }
10
10
  //# sourceMappingURL=offlineBetaSectionImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"offlineBetaSectionImage.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/offlineBetaSectionImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAkC,MAAM,oBAAoB,CAAC;AAEtF,qBAAa,uBAAwB,SAAQ,gBAAgB;IACzD,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAU;IACxC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;gBAGjC,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,oBAAoB,EAAE,MAAM,GAAG,IAAI,EACnC,kBAAkB,EAAE,MAAM,GAAG,IAAI,EACjC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,kBAAkB,EAAE,IAAI,EACxB,qBAAqB,GAAE,MAAM,GAAG,IAAW;IAQ/C,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,uBAAuB;CAgB9D"}
1
+ {"version":3,"file":"offlineBetaSectionImage.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/offlineBetaSectionImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAkC,MAAM,oBAAoB,CAAC;AAEtF,qBAAa,uBAAwB,SAAQ,gBAAgB;IACzD,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAU;IACxC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;gBAGjC,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,oBAAoB,EAAE,MAAM,GAAG,IAAI,EACnC,kBAAkB,EAAE,MAAM,GAAG,IAAI,EACjC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,kBAAkB,EAAE,IAAI,EACxB,qBAAqB,GAAE,MAAM,GAAG,IAAW,EAC3C,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW;IAQnC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,uBAAuB;CAgB9D"}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OfflineBetaSectionImage = void 0;
4
4
  const betaSectionImage_1 = require("./betaSectionImage");
5
5
  class OfflineBetaSectionImage extends betaSectionImage_1.BetaSectionImage {
6
- constructor(order, id, downloadedBannerPath, downloadedFullPath, linkUrl, caption, latestRevisionDate, downloadedPreviewPath = null) {
7
- super(order, id, linkUrl, caption, latestRevisionDate);
6
+ constructor(order, id, downloadedBannerPath, downloadedFullPath, linkUrl, caption, latestRevisionDate, downloadedPreviewPath = null, authors = null) {
7
+ super(order, id, linkUrl, caption, latestRevisionDate, authors);
8
8
  this.fetchType = 'offline';
9
9
  this.downloadedBannerPath = downloadedBannerPath;
10
10
  this.downloadedFullPath = downloadedFullPath;
@@ -8,7 +8,7 @@ export declare class OnlineBetaSectionImage extends BetaSectionImage {
8
8
  previewUrl: string | null;
9
9
  /** Byte sizes per rendition; null when not provided by API. */
10
10
  downloadBytes: DownloadBytes | null;
11
- constructor(order: number, id: string, bannerUrl: string | null, fullUrl: string | null, linkUrl: string, caption: string | null, latestRevisionDate: Date, downloadBytes: DownloadBytes | null, previewUrl?: string | null);
11
+ constructor(order: number, id: string, bannerUrl: string | null, fullUrl: string | null, linkUrl: string, caption: string | null, latestRevisionDate: Date, downloadBytes: DownloadBytes | null, previewUrl?: string | null, authors?: string[] | null);
12
12
  toOffline(downloadedBannerPath: string | null, downloadedFullPath: string | null, downloadedPreviewPath?: string | null): OfflineBetaSectionImage;
13
13
  static fromResult(result: unknown): OnlineBetaSectionImage;
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"onlineBetaSectionImage.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/onlineBetaSectionImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAkC,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,qBAAa,sBAAuB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,SAAS,EAAG,QAAQ,CAAU;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,+DAA+D;IAC/D,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;gBAGhC,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,kBAAkB,EAAE,IAAI,EACxB,aAAa,EAAE,aAAa,GAAG,IAAI,EACnC,UAAU,GAAE,MAAM,GAAG,IAAW;IASpC,SAAS,CACL,oBAAoB,EAAE,MAAM,GAAG,IAAI,EACnC,kBAAkB,EAAE,MAAM,GAAG,IAAI,EACjC,qBAAqB,GAAE,MAAM,GAAG,IAAW,GAC5C,uBAAuB;IAa1B,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,sBAAsB;CAc7D"}
1
+ {"version":3,"file":"onlineBetaSectionImage.d.ts","sourceRoot":"","sources":["../../../src/models/betaSections/onlineBetaSectionImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAkC,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,qBAAa,sBAAuB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,SAAS,EAAG,QAAQ,CAAU;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,+DAA+D;IAC/D,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;gBAGhC,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,kBAAkB,EAAE,IAAI,EACxB,aAAa,EAAE,aAAa,GAAG,IAAI,EACnC,UAAU,GAAE,MAAM,GAAG,IAAW,EAChC,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW;IASnC,SAAS,CACL,oBAAoB,EAAE,MAAM,GAAG,IAAI,EACnC,kBAAkB,EAAE,MAAM,GAAG,IAAI,EACjC,qBAAqB,GAAE,MAAM,GAAG,IAAW,GAC5C,uBAAuB;IAc1B,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,sBAAsB;CAc7D"}
@@ -4,8 +4,8 @@ exports.OnlineBetaSectionImage = void 0;
4
4
  const betaSectionImage_1 = require("./betaSectionImage");
5
5
  const offlineBetaSectionImage_1 = require("./offlineBetaSectionImage");
6
6
  class OnlineBetaSectionImage extends betaSectionImage_1.BetaSectionImage {
7
- constructor(order, id, bannerUrl, fullUrl, linkUrl, caption, latestRevisionDate, downloadBytes, previewUrl = null) {
8
- super(order, id, linkUrl, caption, latestRevisionDate);
7
+ constructor(order, id, bannerUrl, fullUrl, linkUrl, caption, latestRevisionDate, downloadBytes, previewUrl = null, authors = null) {
8
+ super(order, id, linkUrl, caption, latestRevisionDate, authors);
9
9
  this.fetchType = 'online';
10
10
  this.bannerUrl = bannerUrl;
11
11
  this.fullUrl = fullUrl;
@@ -13,7 +13,7 @@ class OnlineBetaSectionImage extends betaSectionImage_1.BetaSectionImage {
13
13
  this.previewUrl = previewUrl;
14
14
  }
15
15
  toOffline(downloadedBannerPath, downloadedFullPath, downloadedPreviewPath = null) {
16
- return new offlineBetaSectionImage_1.OfflineBetaSectionImage(this.order, this.id, downloadedBannerPath, downloadedFullPath, this.linkUrl, this.caption, this.latestRevisionDate, downloadedPreviewPath);
16
+ return new offlineBetaSectionImage_1.OfflineBetaSectionImage(this.order, this.id, downloadedBannerPath, downloadedFullPath, this.linkUrl, this.caption, this.latestRevisionDate, downloadedPreviewPath, this.authors);
17
17
  }
18
18
  static fromResult(result) {
19
19
  if (result == null || typeof result !== 'object') {
@@ -55,7 +55,7 @@ export { BetaSectionImage } from './betaSections/betaSectionImage';
55
55
  export { OnlineBetaSectionImage } from './betaSections/onlineBetaSectionImage';
56
56
  export { OfflineBetaSectionImage } from './betaSections/offlineBetaSectionImage';
57
57
  export { DownloadBytes } from './betaSections/downloadBytes';
58
- export { BetaSection } from './betaSections/betaSection';
58
+ export { BetaSection, type ExcerptHtml } from './betaSections/betaSection';
59
59
  export { BetaSectionExcerpt } from './betaSections/betaSectionExcerpt';
60
60
  export { OnlineBetaSection } from './betaSections/onlineBetaSection';
61
61
  export { OfflineBetaSection } from './betaSections/offlineBetaSection';
@@ -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,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E,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"}
@@ -21,11 +21,14 @@ export declare abstract class PageMiniMap extends MiniMap {
21
21
  pointLayerId: string;
22
22
  bounds: Bounds;
23
23
  legend?: Record<string, LegendItem>;
24
- protected constructor(polyLineLayerId: string, pointLayerId: string, bounds: Bounds, title: string, mapDataId?: string | null, legend?: Record<string, LegendItem>);
24
+ /** Map-file contributors; null when not resolved. */
25
+ authors: string[] | null;
26
+ protected constructor(polyLineLayerId: string, pointLayerId: string, bounds: Bounds, title: string, mapDataId?: string | null, legend?: Record<string, LegendItem>, authors?: string[] | null);
25
27
  getBounds(): Bounds;
26
28
  static fromResult(result: unknown): PageMiniMap;
27
29
  protected static validateCommonFields(r: Record<string, unknown>, expectedFetchType: FetchType, context: string): void;
28
30
  protected static assertNullableMapDataId(obj: Record<string, unknown>, key: string): void;
31
+ protected static assertNullableStringArray(obj: Record<string, unknown>, key: string): void;
29
32
  protected static assertTemplate(value: unknown, keyName: string): void;
30
33
  }
31
34
  //# sourceMappingURL=pageMiniMap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pageMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/abstract/pageMiniMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,oCAAoC,CAAC;AAC5C,OAAO,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,MAAM,EAAE,UAAU,CAAC,EACnC,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW;IAWnC,SAAS,IAAI,MAAM;IAInB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,WAAW;IAuB/C,SAAS,CAAC,MAAM,CAAC,oBAAoB,CACjC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1B,iBAAiB,EAAE,SAAS,EAC5B,OAAO,EAAE,MAAM,GAChB,IAAI;IA+BP,SAAS,CAAC,MAAM,CAAC,uBAAuB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAazF,SAAS,CAAC,MAAM,CAAC,yBAAyB,CACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IAkBP,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;CAQzE"}
@@ -17,7 +17,7 @@ function registerPageMiniMapParser(fetchType, parse) {
17
17
  * Page minimap: vector tiles for a single route/page.
18
18
  */
19
19
  class PageMiniMap extends miniMap_1.MiniMap {
20
- constructor(polyLineLayerId, pointLayerId, bounds, title, mapDataId = null, legend) {
20
+ constructor(polyLineLayerId, pointLayerId, bounds, title, mapDataId = null, legend, authors = null) {
21
21
  super(title);
22
22
  this.miniMapType = miniMapType_1.MiniMapType.Page;
23
23
  this.mapDataId = mapDataId;
@@ -25,6 +25,7 @@ class PageMiniMap extends miniMap_1.MiniMap {
25
25
  this.pointLayerId = pointLayerId;
26
26
  this.bounds = bounds;
27
27
  this.legend = legend;
28
+ this.authors = authors != null ? authors.slice() : null;
28
29
  }
29
30
  getBounds() {
30
31
  return this.bounds;
@@ -69,6 +70,7 @@ class PageMiniMap extends miniMap_1.MiniMap {
69
70
  r.legend = legendItem_1.LegendItem.legendRecordFromResult(r.legend, `${context}.legend`);
70
71
  }
71
72
  PageMiniMap.assertNullableMapDataId(r, 'mapDataId');
73
+ PageMiniMap.assertNullableStringArray(r, 'authors');
72
74
  }
73
75
  static assertNullableMapDataId(obj, key) {
74
76
  const v = obj[key];
@@ -80,6 +82,21 @@ class PageMiniMap extends miniMap_1.MiniMap {
80
82
  throw new Error(`PageMiniMap.${key} must be a non-empty string or null, got: ${typeof v === 'string' ? 'empty string' : typeof v}`);
81
83
  }
82
84
  }
85
+ static assertNullableStringArray(obj, key) {
86
+ const v = obj[key];
87
+ if (v === undefined || v === null) {
88
+ obj[key] = null;
89
+ return;
90
+ }
91
+ if (!Array.isArray(v)) {
92
+ throw new Error(`PageMiniMap.${key} must be an array of strings or null, got: ${typeof v}`);
93
+ }
94
+ for (let i = 0; i < v.length; i++) {
95
+ if (typeof v[i] !== 'string') {
96
+ throw new Error(`PageMiniMap.${key}[${i}] must be a string`);
97
+ }
98
+ }
99
+ }
83
100
  static assertTemplate(value, keyName) {
84
101
  if (typeof value !== 'string') {
85
102
  throw new Error(`${keyName} must be a string, got: ${typeof value}`);
@@ -5,7 +5,7 @@ import type { LegendItem } from '../legend/abstract/legendItem';
5
5
  export declare class OfflinePageMiniMap extends PageMiniMap implements OfflineMiniMap {
6
6
  readonly fetchType: "offline";
7
7
  offlineTilesTemplate: string;
8
- constructor(polyLineLayerId: string, pointLayerId: string, offlineTilesTemplate: string, bounds: Bounds, title: string, mapDataId?: string | null, legend?: Record<string, LegendItem>);
8
+ constructor(polyLineLayerId: string, pointLayerId: string, offlineTilesTemplate: string, bounds: Bounds, title: string, mapDataId?: string | null, legend?: Record<string, LegendItem>, authors?: string[] | null);
9
9
  toPlain(): Record<string, unknown>;
10
10
  static fromResult(result: unknown): OfflinePageMiniMap;
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"offlinePageMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/concrete/offlinePageMiniMap.ts"],"names":[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MAAM,EACd,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,MAAM,GAAG,IAAW,EAC/B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EACnC,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW;IAMnC,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAyBlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,kBAAkB;CAUzD"}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OfflinePageMiniMap = void 0;
4
4
  const pageMiniMap_1 = require("../abstract/pageMiniMap");
5
5
  class OfflinePageMiniMap extends pageMiniMap_1.PageMiniMap {
6
- constructor(polyLineLayerId, pointLayerId, offlineTilesTemplate, bounds, title, mapDataId = null, legend) {
7
- super(polyLineLayerId, pointLayerId, bounds, title, mapDataId, legend);
6
+ constructor(polyLineLayerId, pointLayerId, offlineTilesTemplate, bounds, title, mapDataId = null, legend, authors = null) {
7
+ super(polyLineLayerId, pointLayerId, bounds, title, mapDataId, legend, authors);
8
8
  this.fetchType = 'offline';
9
9
  this.offlineTilesTemplate = offlineTilesTemplate;
10
10
  }
@@ -23,6 +23,7 @@ class OfflinePageMiniMap extends pageMiniMap_1.PageMiniMap {
23
23
  west: this.bounds.west,
24
24
  },
25
25
  title: this.title,
26
+ authors: this.authors,
26
27
  };
27
28
  if (this.legend !== undefined) {
28
29
  plain.legend = Object.fromEntries(Object.entries(this.legend).map(([key, item]) => [key, item.toPlain()]));
@@ -8,7 +8,7 @@ export declare class OnlinePageMiniMap extends PageMiniMap implements OnlineMini
8
8
  onlineTilesTemplate: string;
9
9
  tileCount: number;
10
10
  tileTotalBytes: number;
11
- constructor(polyLineLayerId: string, pointLayerId: string, onlineTilesTemplate: string, bounds: Bounds, title: string, tileCount: number, tileTotalBytes: number, mapDataId?: string | null, legend?: Record<string, LegendItem>);
11
+ constructor(polyLineLayerId: string, pointLayerId: string, onlineTilesTemplate: string, bounds: Bounds, title: string, tileCount: number, tileTotalBytes: number, mapDataId?: string | null, legend?: Record<string, LegendItem>, authors?: string[] | null);
12
12
  toOffline(offlineTilesTemplate: string): OfflinePageMiniMap;
13
13
  static fromResult(result: unknown): OnlinePageMiniMap;
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"onlinePageMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/concrete/onlinePageMiniMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAA6B,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,iBAAkB,SAAQ,WAAY,YAAW,aAAa;IACvE,QAAQ,CAAC,SAAS,EAAG,QAAQ,CAAU;IACvC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;gBAGnB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,SAAS,GAAE,MAAM,GAAG,IAAW,EAC/B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAQvC,SAAS,CAAC,oBAAoB,EAAE,MAAM,GAAG,kBAAkB;IAY3D,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,iBAAiB;CAqBxD"}
1
+ {"version":3,"file":"onlinePageMiniMap.d.ts","sourceRoot":"","sources":["../../../../src/models/minimap/concrete/onlinePageMiniMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAA6B,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,iBAAkB,SAAQ,WAAY,YAAW,aAAa;IACvE,QAAQ,CAAC,SAAS,EAAG,QAAQ,CAAU;IACvC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;gBAGnB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,SAAS,GAAE,MAAM,GAAG,IAAW,EAC/B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EACnC,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW;IAQnC,SAAS,CAAC,oBAAoB,EAAE,MAAM,GAAG,kBAAkB;IAa3D,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,iBAAiB;CAqBxD"}
@@ -5,15 +5,15 @@ const miniMap_1 = require("../abstract/miniMap");
5
5
  const pageMiniMap_1 = require("../abstract/pageMiniMap");
6
6
  const offlinePageMiniMap_1 = require("./offlinePageMiniMap");
7
7
  class OnlinePageMiniMap extends pageMiniMap_1.PageMiniMap {
8
- constructor(polyLineLayerId, pointLayerId, onlineTilesTemplate, bounds, title, tileCount, tileTotalBytes, mapDataId = null, legend) {
9
- super(polyLineLayerId, pointLayerId, bounds, title, mapDataId, legend);
8
+ constructor(polyLineLayerId, pointLayerId, onlineTilesTemplate, bounds, title, tileCount, tileTotalBytes, mapDataId = null, legend, authors = null) {
9
+ super(polyLineLayerId, pointLayerId, bounds, title, mapDataId, legend, authors);
10
10
  this.fetchType = 'online';
11
11
  this.onlineTilesTemplate = onlineTilesTemplate;
12
12
  this.tileCount = tileCount;
13
13
  this.tileTotalBytes = tileTotalBytes;
14
14
  }
15
15
  toOffline(offlineTilesTemplate) {
16
- return new offlinePageMiniMap_1.OfflinePageMiniMap(this.polyLineLayerId, this.pointLayerId, offlineTilesTemplate, this.bounds, this.title, this.mapDataId, this.legend);
16
+ return new offlinePageMiniMap_1.OfflinePageMiniMap(this.polyLineLayerId, this.pointLayerId, offlineTilesTemplate, this.bounds, this.title, this.mapDataId, this.legend, this.authors);
17
17
  }
18
18
  static fromResult(result) {
19
19
  if (result == null || typeof result !== 'object') {
@@ -21,7 +21,7 @@ export declare class OfflineRopewikiPageView extends RopewikiPageView implements
21
21
  }[], difficultyRating: import('../difficulty/difficultyRating').DifficultyRating, permit: import('../permitStatus').PermitStatus | null, rappelCount: MinMax<number> | number | null, jumps: number | null, vehicle: RopewikiVehicleType | null, rappelLongest: LengthMeasurement | null, shuttleTime: TimeMeasurement | null, overallLength: LengthMeasurement | null, descentLength: LengthMeasurement | null, exitLength: LengthMeasurement | null, approachLength: LengthMeasurement | null, overallTime: TimeMeasurement | MinMax<TimeMeasurement> | null, approachTime: TimeMeasurement | MinMax<TimeMeasurement> | null, descentTime: TimeMeasurement | MinMax<TimeMeasurement> | null, exitTime: TimeMeasurement | MinMax<TimeMeasurement> | null, approachElevGain: LengthMeasurement | null, descentElevGain: LengthMeasurement | null, exitElevGain: LengthMeasurement | null, months: string[], latestRevisionDate: Date, bannerImage: OfflineBetaSectionImage | null, betaSections: OfflineBetaSection[], miniMap: OfflinePageMiniMap | OfflineCenteredRegionMiniMap | null, coordinates: {
22
22
  lat: number;
23
23
  lon: number;
24
- } | null);
24
+ } | null, authors?: string[] | null);
25
25
  toBetaSectionLookup(): OfflineBetaSectionLookup;
26
26
  toPagePreview(): OfflinePagePreview;
27
27
  getMapboxPackBounds(): import('../minimap/bounds').Bounds | null;
@@ -1 +1 @@
1
- {"version":3,"file":"offlineRopewikiPageView.d.ts","sourceRoot":"","sources":["../../../src/models/pageViews/offlineRopewikiPageView.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EACH,KAAK,wBAAwB,EAC7B,eAAe,EAClB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAkC,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG7D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGlE,qBAAa,uBAAwB,SAAQ,gBAAiB,YAAW,eAAe;IACpF,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAU;IACxC,WAAW,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC5C,YAAY,EAAE,kBAAkB,EAAE,CAAC;IACnC,OAAO,EAAE,kBAAkB,GAAG,4BAA4B,GAAG,IAAI,CAAC;gBAG9D,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EAAE,EACb,GAAG,EAAE,MA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I,EACxB,WAAW,EAAE,uBAAuB,GAAG,IAAI,EAC3C,YAAY,EAAE,kBAAkB,EAAE,EAClC,OAAO,EAAE,kBAAkB,GAAG,4BAA4B,GAAG,IAAI,EACjE,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,EAChD,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW;IAuCnC,mBAAmB,IAAI,wBAAwB;IAqB/C,aAAa,IAAI,kBAAkB;IAqBnC,mBAAmB,IAAI,OAAO,mBAAmB,EAAE,MAAM,GAAG,IAAI;IAOhE,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,uBAAuB;CA+CxF"}
@@ -14,8 +14,8 @@ const pageViewType_1 = require("./pageViewType");
14
14
  const hydrateOfflinePageWirePaths_1 = require("../../helpers/hydrateOfflinePageWirePaths");
15
15
  const lodash_1 = require("lodash");
16
16
  class OfflineRopewikiPageView extends ropewikiPageView_1.RopewikiPageView {
17
- constructor(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, bannerImage, betaSections, miniMap, coordinates) {
18
- super(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, coordinates);
17
+ constructor(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, bannerImage, betaSections, miniMap, coordinates, authors = null) {
18
+ super(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, coordinates, authors);
19
19
  this.fetchType = 'offline';
20
20
  this.bannerImage = bannerImage;
21
21
  this.betaSections = betaSections;
@@ -43,7 +43,7 @@ export declare class OnlineRopewikiPageView extends RopewikiPageView implements
43
43
  } | number | null, approachElevGainFeet: number | null, descentElevGainFeet: number | null, exitElevGainFeet: number | null, months: string[], latestRevisionDate: Date, bannerImage: OnlineBetaSectionImage | null, betaSections: OnlineBetaSection[], miniMap: OnlinePageMiniMap | OnlineCenteredRegionMiniMap | null, coordinates: {
44
44
  lat: number;
45
45
  lon: number;
46
- } | null, downloadFolder?: string | null);
46
+ } | null, downloadFolder?: string | null, authors?: string[] | null);
47
47
  toBetaSectionLookup(): OnlineBetaSectionLookup;
48
48
  planDownloadPhases(): DownloadPhase[];
49
49
  getDependenciesForPhases(phases: DownloadPhase[]): Record<string, DownloadTaskDependency>;
@@ -1 +1 @@
1
- {"version":3,"file":"onlineRopewikiPageView.d.ts","sourceRoot":"","sources":["../../../src/models/pageViews/onlineRopewikiPageView.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAgB,a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AAE,IAAI,EACxB,WAAW,EAAE,sBAAsB,GAAG,IAAI,EAC1C,YAAY,EAAE,iBAAiB,EAAE,EACjC,OAAO,EAAE,iBAAiB,GAAG,2BAA2B,GAAG,IAAI,EAC/D,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,EAChD,cAAc,GAAE,MAAM,GAAG,IAAW,EACpC,OAAO,GAAE,MAAM,EAAE,GAAG,IAAW;IAwCnC,mBAAmB,IAAI,uBAAuB;IAqB9C,kBAAkB,IAAI,aAAa,EAAE;IAOrC,wBAAwB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC;IA6FnF,4BAA4B,CAC9B,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,uBAAuB,GACzC,OAAO,CAAC,eAAe,CAAC;IAS3B,aAAa,CAAC,MAAM,EAAE,iBAAiB,GAAG,WAAW;IAWrD,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQlC,SAAS,CACL,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EACtD,iBAAiB,CAAC,EAAE,kBAAkB,GAAG,4BAA4B,GAAG,IAAI,GAC7E,uBAAuB;IA0E1B,aAAa,IAAI,iBAAiB;IAsBlC,WAAW,IAAI,SAAS;IAIxB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,sBAAsB;IAuD1D,OAAO,CAAC,uBAAuB;IAI/B,OAAO,CAAC,4BAA4B;IASpC,OAAO,CAAC,wBAAwB;IAahC,OAAO,CAAC,wBAAwB;IAqEhC,OAAO,CAAC,8BAA8B;YA8BxB,uCAAuC;IA+BrD,OAAO,CAAC,wCAAwC;CAuCnD"}
@@ -38,8 +38,8 @@ const downloadConstants_1 = require("../../download/helpers/downloadConstants");
38
38
  const offlinePageBundlePaths_1 = require("../../helpers/offlinePageBundlePaths");
39
39
  const lodash_1 = require("lodash");
40
40
  class OnlineRopewikiPageView extends ropewikiPageView_1.RopewikiPageView {
41
- constructor(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongestFeet, shuttleTimeMinutes, overallLengthMiles, descentLengthMiles, exitLengthMiles, approachLengthMiles, overallTimeHours, approachTimeHours, descentTimeHours, exitTimeHours, approachElevGainFeet, descentElevGainFeet, exitElevGainFeet, months, latestRevisionDate, bannerImage, betaSections, miniMap, coordinates, downloadFolder = null) {
42
- super(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, ropewikiPageView_1.RopewikiPageView.coerceRappelCount(rappelCount), jumps, vehicle, lengthMeasurement_1.LengthMeasurement.coerce(rappelLongestFeet, lengthMeasurement_1.FEET), timeMeasurement_1.TimeMeasurement.coerce(shuttleTimeMinutes, timeMeasurement_1.MINUTES), lengthMeasurement_1.LengthMeasurement.coerce(overallLengthMiles, lengthMeasurement_1.MILES), lengthMeasurement_1.LengthMeasurement.coerce(descentLengthMiles, lengthMeasurement_1.MILES), lengthMeasurement_1.LengthMeasurement.coerce(exitLengthMiles, lengthMeasurement_1.MILES), lengthMeasurement_1.LengthMeasurement.coerce(approachLengthMiles, lengthMeasurement_1.MILES), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(overallTimeHours, timeMeasurement_1.HOURS), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(approachTimeHours, timeMeasurement_1.HOURS), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(descentTimeHours, timeMeasurement_1.HOURS), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(exitTimeHours, timeMeasurement_1.HOURS), lengthMeasurement_1.LengthMeasurement.coerce(approachElevGainFeet, lengthMeasurement_1.FEET), lengthMeasurement_1.LengthMeasurement.coerce(descentElevGainFeet, lengthMeasurement_1.FEET), lengthMeasurement_1.LengthMeasurement.coerce(exitElevGainFeet, lengthMeasurement_1.FEET), months, latestRevisionDate, coordinates);
41
+ constructor(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongestFeet, shuttleTimeMinutes, overallLengthMiles, descentLengthMiles, exitLengthMiles, approachLengthMiles, overallTimeHours, approachTimeHours, descentTimeHours, exitTimeHours, approachElevGainFeet, descentElevGainFeet, exitElevGainFeet, months, latestRevisionDate, bannerImage, betaSections, miniMap, coordinates, downloadFolder = null, authors = null) {
42
+ super(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, ropewikiPageView_1.RopewikiPageView.coerceRappelCount(rappelCount), jumps, vehicle, lengthMeasurement_1.LengthMeasurement.coerce(rappelLongestFeet, lengthMeasurement_1.FEET), timeMeasurement_1.TimeMeasurement.coerce(shuttleTimeMinutes, timeMeasurement_1.MINUTES), lengthMeasurement_1.LengthMeasurement.coerce(overallLengthMiles, lengthMeasurement_1.MILES), lengthMeasurement_1.LengthMeasurement.coerce(descentLengthMiles, lengthMeasurement_1.MILES), lengthMeasurement_1.LengthMeasurement.coerce(exitLengthMiles, lengthMeasurement_1.MILES), lengthMeasurement_1.LengthMeasurement.coerce(approachLengthMiles, lengthMeasurement_1.MILES), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(overallTimeHours, timeMeasurement_1.HOURS), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(approachTimeHours, timeMeasurement_1.HOURS), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(descentTimeHours, timeMeasurement_1.HOURS), ropewikiPageView_1.RopewikiPageView.coerceTimeOrRange(exitTimeHours, timeMeasurement_1.HOURS), lengthMeasurement_1.LengthMeasurement.coerce(approachElevGainFeet, lengthMeasurement_1.FEET), lengthMeasurement_1.LengthMeasurement.coerce(descentElevGainFeet, lengthMeasurement_1.FEET), lengthMeasurement_1.LengthMeasurement.coerce(exitElevGainFeet, lengthMeasurement_1.FEET), months, latestRevisionDate, coordinates, authors);
43
43
  this.fetchType = 'online';
44
44
  this.bannerImage = bannerImage;
45
45
  this.betaSections = betaSections;
@@ -178,7 +178,7 @@ class OnlineRopewikiPageView extends ropewikiPageView_1.RopewikiPageView {
178
178
  }
179
179
  offlineMiniMap = downloadedMiniMap;
180
180
  }
181
- return new offlineRopewikiPageView_1.OfflineRopewikiPageView(this.id, this.routeType, this.name, this.aka, this.url, this.quality, this.userVotes, this.regions, this.difficultyRating, this.permit, this.rappelCount, this.jumps, this.vehicle, this.rappelLongest, this.shuttleTime, this.overallLength, this.descentLength, this.exitLength, this.approachLength, this.overallTime, this.approachTime, this.descentTime, this.exitTime, this.approachElevGain, this.descentElevGain, this.exitElevGain, this.months, this.latestRevisionDate, offlineBannerImage, offlineSections, offlineMiniMap, this.coordinates);
181
+ return new offlineRopewikiPageView_1.OfflineRopewikiPageView(this.id, this.routeType, this.name, this.aka, this.url, this.quality, this.userVotes, this.regions, this.difficultyRating, this.permit, this.rappelCount, this.jumps, this.vehicle, this.rappelLongest, this.shuttleTime, this.overallLength, this.descentLength, this.exitLength, this.approachLength, this.overallTime, this.approachTime, this.descentTime, this.exitTime, this.approachElevGain, this.descentElevGain, this.exitElevGain, this.months, this.latestRevisionDate, offlineBannerImage, offlineSections, offlineMiniMap, this.coordinates, this.authors);
182
182
  }
183
183
  toPagePreview() {
184
184
  const mapData = this.miniMap != null && this.miniMap.miniMapType === miniMapType_1.MiniMapType.Page
@@ -47,13 +47,15 @@ export declare abstract class RopewikiPageView {
47
47
  lat: number;
48
48
  lon: number;
49
49
  } | null;
50
+ /** Ropewiki page contributors; null when not resolved. */
51
+ authors: string[] | null;
50
52
  protected constructor(id: string, routeType: RouteType, name: string, aka: string[], url: string, quality: number, userVotes: number, regions: {
51
53
  name: string;
52
54
  id: string;
53
55
  }[], difficultyRating: DifficultyRating, permit: PermitStatus | null, rappelCount: MinMax<number> | number | null, jumps: number | null, vehicle: RopewikiVehicleType | null, rappelLongest: LengthMeasurement | null, shuttleTime: TimeMeasurement | null, overallLength: LengthMeasurement | null, descentLength: LengthMeasurement | null, exitLength: LengthMeasurement | null, approachLength: LengthMeasurement | null, overallTime: TimeMeasurement | MinMax<TimeMeasurement> | null, approachTime: TimeMeasurement | MinMax<TimeMeasurement> | null, descentTime: TimeMeasurement | MinMax<TimeMeasurement> | null, exitTime: TimeMeasurement | MinMax<TimeMeasurement> | null, approachElevGain: LengthMeasurement | null, descentElevGain: LengthMeasurement | null, exitElevGain: LengthMeasurement | null, months: string[], latestRevisionDate: Date, coordinates: {
54
56
  lat: number;
55
57
  lon: number;
56
- } | null);
58
+ } | null, authors?: string[] | null);
57
59
  static fromResult(result: unknown, fetchType?: FetchType): RopewikiPageView;
58
60
  protected static validateCommonFields(r: Record<string, unknown>, expectedFetchType: FetchType, context: string): void;
59
61
  /**
@@ -78,6 +80,7 @@ export declare abstract class RopewikiPageView {
78
80
  protected static assertNumber(obj: Record<string, unknown>, key: string): void;
79
81
  protected static assertNullableNumber(obj: Record<string, unknown>, key: string): void;
80
82
  protected static assertStringArray(obj: Record<string, unknown>, key: string): void;
83
+ protected static assertNullableStringArray(obj: Record<string, unknown>, key: string): void;
81
84
  protected static assertRegionsArray(obj: Record<string, unknown>, key: string): void;
82
85
  protected static assertDifficultyRating(r: Record<string, unknown>): void;
83
86
  protected static assertVehicle(obj: Record<string, unknown>, key: string): void;
@@ -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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BAAyB,CACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IAkBP,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAC/B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IAoBP,SAAS,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IA4BzE,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAgB/E,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAgB9E,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAC9B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;IAwBP,SAAS,CAAC,MAAM,CAAC,uBAAuB,CACpC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,GAAG,EAAE,MAAM,GACZ,IAAI;CAcV"}
@@ -16,7 +16,7 @@ function registerRopewikiPageViewParser(fetchType, parse) {
16
16
  ropewikiPageViewParsers.set(fetchType, parse);
17
17
  }
18
18
  class RopewikiPageView {
19
- constructor(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, coordinates) {
19
+ constructor(id, routeType, name, aka, url, quality, userVotes, regions, difficultyRating, permit, rappelCount, jumps, vehicle, rappelLongest, shuttleTime, overallLength, descentLength, exitLength, approachLength, overallTime, approachTime, descentTime, exitTime, approachElevGain, descentElevGain, exitElevGain, months, latestRevisionDate, coordinates, authors = null) {
20
20
  this.pageViewType = pageViewType_1.PageViewType.Ropewiki;
21
21
  this.id = id;
22
22
  this.routeType = routeType;
@@ -50,6 +50,7 @@ class RopewikiPageView {
50
50
  coordinates != null
51
51
  ? { lat: coordinates.lat, lon: coordinates.lon }
52
52
  : null;
53
+ this.authors = authors != null ? authors.slice() : null;
53
54
  }
54
55
  static fromResult(result, fetchType) {
55
56
  if (result == null || typeof result !== 'object') {
@@ -84,6 +85,7 @@ class RopewikiPageView {
84
85
  RopewikiPageView.assertStringArray(r, 'months');
85
86
  RopewikiPageView.assertIso8601DateString(r, 'latestRevisionDate');
86
87
  RopewikiPageView.assertNullableCoordinates(r, 'coordinates');
88
+ RopewikiPageView.assertNullableStringArray(r, 'authors');
87
89
  if (r.fetchType !== expectedFetchType) {
88
90
  throw new Error(`${context}.fetchType must be "${expectedFetchType}", got: ${JSON.stringify(r.fetchType)}`);
89
91
  }
@@ -246,6 +248,21 @@ class RopewikiPageView {
246
248
  }
247
249
  }
248
250
  }
251
+ static assertNullableStringArray(obj, key) {
252
+ const v = obj[key];
253
+ if (v === undefined || v === null) {
254
+ obj[key] = null;
255
+ return;
256
+ }
257
+ if (!Array.isArray(v)) {
258
+ throw new Error(`RopewikiPageView.${key} must be an array of strings or null, got: ${typeof v}`);
259
+ }
260
+ for (let i = 0; i < v.length; i++) {
261
+ if (typeof v[i] !== 'string') {
262
+ throw new Error(`RopewikiPageView.${key}[${i}] must be a string`);
263
+ }
264
+ }
265
+ }
249
266
  static assertRegionsArray(obj, key) {
250
267
  const v = obj[key];
251
268
  if (!Array.isArray(v)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ropegeo-common",
3
- "version": "1.22.0",
3
+ "version": "1.24.0",
4
4
  "description": "Shared domain models and helpers for RopeGeo and WebScraper",
5
5
  "license": "ISC",
6
6
  "repository": {